impaktapps-ui-builder 0.0.409-a → 0.0.409-e

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,x="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",C="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",$=500,j="__lodash_placeholder__",re=1,mt=2,U=4,$e=1,gt=2,se=1,Ne=2,$t=4,he=8,Ke=16,ye=32,Ve=64,Ce=128,rt=256,At=512,ht=30,ll="...",sl=800,ul=16,Fi=1,pl=2,cl=3,yt=1/0,it=9007199254740991,dl=17976931348623157e292,mn=0/0,ze=4294967295,fl=ze-1,ml=ze>>>1,gl=[["ary",Ce],["bind",se],["bindKey",Ne],["curry",he],["curryRight",Ke],["flip",At],["partial",ye],["partialRight",Ve],["rearg",rt]],Ft="[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]",De="[object Map]",Yt="[object Number]",vl="[object Null]",Ye="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",Pe="[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,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),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\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,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Wl=/^[-+]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",zi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",Wi="["+zi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+zi+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+"(?="+[Wi,Et,"$"].join("|")+")",is+"+"+Ji+"(?="+[Wi,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,Y={};Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[Ft]=Y[gn]=Y[Zt]=Y[Kt]=Y[Tt]=Y[Vt]=Y[hn]=Y[yn]=Y[De]=Y[Yt]=Y[Ye]=Y[qt]=Y[Pe]=Y[Jt]=Y[Xt]=!1;var V={};V[Ft]=V[gn]=V[Zt]=V[Tt]=V[Kt]=V[Vt]=V[lr]=V[sr]=V[ur]=V[pr]=V[cr]=V[De]=V[Yt]=V[Ye]=V[qt]=V[Pe]=V[Jt]=V[vn]=V[dr]=V[fr]=V[mr]=V[gr]=!0,V[hn]=V[yn]=V[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,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,Ie=function(){try{var d=vt&&vt.require&&vt.require("util").types;return d||Cr&&Cr.binding&&Cr.binding("util")}catch{}}(),to=Ie&&Ie.isArrayBuffer,no=Ie&&Ie.isDate,ro=Ie&&Ie.isMap,io=Ie&&Ie.isRegExp,oo=Ie&&Ie.isSet,ao=Ie&&Ie.isTypedArray;function ve(d,y,h){switch(h.length){case 0:return d.call(y);case 1:return d.call(y,h[0]);case 2:return d.call(y,h[0],h[1]);case 3:return d.call(y,h[0],h[1],h[2])}return d.apply(y,h)}function Cs(d,y,h,L){for(var R=-1,z=d==null?0:d.length;++R<z;){var ee=d[R];y(L,ee,h(ee),d)}return L}function Le(d,y){for(var h=-1,L=d==null?0:d.length;++h<L&&y(d[h],h,d)!==!1;);return d}function Is(d,y){for(var h=d==null?0:d.length;h--&&y(d[h],h,d)!==!1;);return d}function lo(d,y){for(var h=-1,L=d==null?0:d.length;++h<L;)if(!y(d[h],h,d))return!1;return!0}function ot(d,y){for(var h=-1,L=d==null?0:d.length,R=0,z=[];++h<L;){var ee=d[h];y(ee,h,d)&&(z[R++]=ee)}return z}function Sn(d,y){var h=d==null?0:d.length;return!!h&&Bt(d,y,0)>-1}function Ir(d,y,h){for(var L=-1,R=d==null?0:d.length;++L<R;)if(h(y,d[L]))return!0;return!1}function q(d,y){for(var h=-1,L=d==null?0:d.length,R=Array(L);++h<L;)R[h]=y(d[h],h,d);return R}function at(d,y){for(var h=-1,L=y.length,R=d.length;++h<L;)d[R+h]=y[h];return d}function Lr(d,y,h,L){var R=-1,z=d==null?0:d.length;for(L&&z&&(h=d[++R]);++R<z;)h=y(h,d[R],R,d);return h}function Ls(d,y,h,L){var R=d==null?0:d.length;for(L&&R&&(h=d[--R]);R--;)h=y(h,d[R],R,d);return h}function Ar(d,y){for(var h=-1,L=d==null?0:d.length;++h<L;)if(y(d[h],h,d))return!0;return!1}var As=Fr("length");function Fs(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,y,h){var L;return h(d,function(R,z,ee){if(y(R,z,ee))return L=z,!1}),L}function wn(d,y,h,L){for(var R=d.length,z=h+(L?1:-1);L?z--:++z<R;)if(y(d[z],z,d))return z;return-1}function Bt(d,y,h){return y===y?Ws(d,y,h):wn(d,uo,h)}function Es(d,y,h,L){for(var R=h-1,z=d.length;++R<z;)if(L(d[R],y))return R;return-1}function uo(d){return d!==d}function po(d,y){var h=d==null?0:d.length;return h?Er(d,y)/h:mn}function Fr(d){return function(y){return y==null?i:y[d]}}function Tr(d){return function(y){return d==null?i:d[y]}}function co(d,y,h,L,R){return R(d,function(z,ee,K){h=L?(L=!1,z):y(h,z,ee,K)}),h}function Bs(d,y){var h=d.length;for(d.sort(y);h--;)d[h]=d[h].value;return d}function Er(d,y){for(var h,L=-1,R=d.length;++L<R;){var z=y(d[L]);z!==i&&(h=h===i?z:h+z)}return h}function Br(d,y){for(var h=-1,L=Array(d);++h<d;)L[h]=y(h);return L}function Rs(d,y){return q(y,function(h){return[h,d[h]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function be(d){return function(y){return d(y)}}function Rr(d,y){return q(y,function(h){return d[h]})}function Qt(d,y){return d.has(y)}function mo(d,y){for(var h=-1,L=d.length;++h<L&&Bt(y,d[h],0)>-1;);return h}function go(d,y){for(var h=d.length;h--&&Bt(y,d[h],0)>-1;);return h}function Ds(d,y){for(var h=d.length,L=0;h--;)d[h]===y&&++L;return L}var Ps=Tr(ys),ks=Tr(vs);function Hs(d){return"\\"+xs[d]}function Ms(d,y){return d==null?i:d[y]}function Rt(d){return fs.test(d)}function Os(d){return ms.test(d)}function Ns(d){for(var y,h=[];!(y=d.next()).done;)h.push(y.value);return h}function Dr(d){var y=-1,h=Array(d.size);return d.forEach(function(L,R){h[++y]=[R,L]}),h}function ho(d,y){return function(h){return d(y(h))}}function lt(d,y){for(var h=-1,L=d.length,R=0,z=[];++h<L;){var ee=d[h];(ee===y||ee===j)&&(d[h]=j,z[R++]=h)}return z}function Cn(d){var y=-1,h=Array(d.size);return d.forEach(function(L){h[++y]=L}),h}function zs(d){var y=-1,h=Array(d.size);return d.forEach(function(L){h[++y]=[L,L]}),h}function Ws(d,y,h){for(var L=h-1,R=d.length;++L<R;)if(d[L]===y)return L;return-1}function Us(d,y,h){for(var L=h+1;L--;)if(d[L]===y)return L;return L}function Dt(d){return Rt(d)?$s(d):As(d)}function ke(d){return Rt(d)?Ks(d):Fs(d)}function yo(d){for(var y=d.length;y--&&Dl.test(d.charAt(y)););return y}var Gs=Tr(bs);function $s(d){for(var y=Sr.lastIndex=0;Sr.test(d);)++y;return y}function Ks(d){return d.match(Sr)||[]}function Vs(d){return d.match(ds)||[]}var Ys=function d(y){y=y==null?ie:Pt.defaults(ie.Object(),y,Pt.pick(ie,gs));var h=y.Array,L=y.Date,R=y.Error,z=y.Function,ee=y.Math,K=y.Object,Pr=y.RegExp,qs=y.String,Ae=y.TypeError,In=h.prototype,Js=z.prototype,kt=K.prototype,Ln=y["__core-js_shared__"],An=Js.toString,G=kt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=kt.toString,Zs=An.call(K),Qs=ie._,js=Pr("^"+An.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?y.Buffer:i,st=y.Symbol,En=y.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho(K.getPrototypeOf,K),xo=K.create,_o=kt.propertyIsEnumerable,Rn=In.splice,So=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,bt=st?st.toStringTag:i,Dn=function(){try{var e=Ct(K,"defineProperty");return e({},"",{}),e}catch{}}(),eu=y.clearTimeout!==ie.clearTimeout&&y.clearTimeout,tu=L&&L.now!==ie.Date.now&&L.now,nu=y.setTimeout!==ie.setTimeout&&y.setTimeout,Pn=ee.ceil,kn=ee.floor,kr=K.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=y.isFinite,iu=In.join,ou=ho(K.keys,K),te=ee.max,ae=ee.min,au=L.now,lu=y.parseInt,Co=ee.random,su=In.reverse,Hr=Ct(y,"DataView"),en=Ct(y,"Map"),Mr=Ct(y,"Promise"),Ht=Ct(y,"Set"),tn=Ct(y,"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=st?st.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(X(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Fe)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Fe(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 Fe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Fe.prototype=Ot(On.prototype),Fe.prototype.constructor=Fe;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=Fp(0,a,this.__views__),p=u.start,c=u.end,f=c-p,b=o?c:p-1,S=this.__iteratees__,w=S.length,I=0,F=ae(f,this.__takeCount__);if(!n||!o&&a==f&&F==f)return Jo(e,this.__actions__);var E=[];e:for(;f--&&I<F;){b+=t;for(var k=-1,B=e[b];++k<w;){var M=S[k],N=M.iteratee,Se=M.type,ce=N(B);if(Se==pl)B=ce;else if(!ce){if(Se==Fi)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===A?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?A:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function qe(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}qe.prototype.clear=Su,qe.prototype.delete=wu,qe.prototype.get=Cu,qe.prototype.has=Iu,qe.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 Au(){this.size=0,this.__data__={hash:new xt,map:new(en||qe),string:new xt}}function Fu(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=Au,Je.prototype.delete=Fu,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,A),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function He(e){var t=this.__data__=new qe(e);this.size=t.size}function Pu(){this.__data__=new qe,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 qe){var o=n.__data__;if(!en||o.length<g-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}He.prototype.clear=Pu,He.prototype.delete=ku,He.prototype.get=Hu,He.prototype.has=Mu,He.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&Lt(e),a=!n&&!o&&ft(e),u=!n&&!o&&!a&&Ut(e),p=n||o||a||u,c=p?Br(e.length,qs):[],f=c.length;for(var b in e)(t||G.call(e,b))&&!(p&&(b=="length"||a&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||je(b,f)))&&c.push(b);return c}function Ao(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 zu(e){return Qn(de(e))}function Or(e,t,n){(n!==i&&!Me(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&Me(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n;return-1}function Wu(e,t,n,o){return ut(e,function(a,u,p){t(o,a,n(a),p)}),o}function Fo(e,t){return e&&Ue(t,ne(t),e)}function Uu(e,t){return e&&Ue(t,me(t),e)}function Xe(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 Te(e,t,n,o,a,u){var p,c=t&re,f=t&mt,b=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 w=le(e),I=w==yn||w==Ti;if(ft(e))return Qo(e,c);if(w==Ye||w==Ft||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Fo(p,e))}else{if(!V[w])return a?e:{};p=Bp(e,w,c)}}u||(u=new He);var F=u.get(e);if(F)return F;u.set(e,p),Va(e)?e.forEach(function(B){p.add(Te(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Te(B,t,n,M,e,u))});var E=b?f?oi:ii:f?me:ne,k=S?i:E(e);return Le(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Te(B,t,n,M,e,u))}),p}function Gu(e){var t=ne(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(v);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=[],b=t.length;if(!c)return f;n&&(t=q(t,be(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=b;I--;)if(t[I]===w)continue e;f.push(S)}else u(t,w,o)||f.push(S)}return f}var ut=ra(We),Bo=ra(Wr,!0);function $u(e,t){var n=!0;return ut(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function zn(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&&!_e(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 ut(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):at(a,c):o||(a[a.length]=c)}return a}var zr=ia(),Do=ia(!0);function We(e,t){return e&&zr(e,t,ne)}function Wr(e,t){return e&&Do(e,t,ne)}function Wn(e,t){return ot(t,function(n){return et(e[n])})}function wt(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ge(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:at(o,n(e))}function ue(e){return e==null?e===i?xl:vl:bt&&bt in K(e)?Ap(e):zp(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<te(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,b=[];p--;){var S=e[p];p&&t&&(S=q(S,be(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&&b.length<f;){var F=S[w],E=t?t(F):F;if(F=n||F!==0?F:0,!(I?Qt(I,E):o(b,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),b.push(F)}}return b}function Ju(e,t,n,o){return We(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=ct(t,e),e=_a(e,t);var o=e==null?e:e[Ge(Be(t))];return o==null?i:ve(o,e,n)}function ko(e){return X(e)&&ue(e)==Ft}function Xu(e){return X(e)&&ue(e)==Zt}function Zu(e){return X(e)&&ue(e)==Vt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(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),b=c?gn:le(t);f=f==Ft?Ye:f,b=b==Ft?Ye:b;var S=f==Ye,w=b==Ye,I=f==b;if(I&&ft(e)){if(!ft(t))return!1;p=!0,S=!1}if(I&&!S)return u||(u=new He),p||Ut(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&$e)){var F=S&&G.call(e,"__wrapped__"),E=w&&G.call(t,"__wrapped__");if(F||E){var k=F?e.value():e,B=E?t.value():t;return u||(u=new He),a(k,B,n,o,u)}}return I?(u||(u=new He),Lp(e,t,n,o,a,u)):!1}function ju(e){return X(e)&&le(e)==De}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],b=e[f],S=c[1];if(p&&c[2]){if(b===i&&!(f in e))return!1}else{var w=new He;if(o)var I=o(b,S,f,e,t,w);if(!(I===i?sn(S,b,$e|gt,o,w):I))return!1}}return!0}function Ho(e){if(!J(e)||kp(e))return!1;var t=et(e)?js:Gl;return t.test(It(e))}function ep(e){return X(e)&&ue(e)==qt}function tp(e){return X(e)&&le(e)==Pe}function np(e){return X(e)&&ir(e.length)&&!!Y[ue(e)]}function Mo(e){return typeof e=="function"?e:e==null?ge:typeof e=="object"?D(e)?zo(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)?h(e.length):[];return ut(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 zo(e,t){return ui(e)&&va(t)?ba(Ge(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,$e|gt)}}function Un(e,t,n,o,a){e!==t&&zr(t,function(u,p){if(a||(a=new He),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),b=p.get(f);if(b){Or(e,n,b);return}var S=u?u(c,f,n+"",e,t,p):i,w=S===i;if(w){var I=D(f),F=!I&&ft(f),E=!I&&!F&&Ut(f);S=f,I||F||E?D(c)?S=c:Z(c)?S=de(c):F?(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):(!J(c)||et(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 Wo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,je(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=q(t,function(u){return D(u)?function(p){return wt(p,u.length===1?u[0]:u)}:u}):t=[ge];var o=-1;t=q(t,be(T()));var a=Oo(e,function(u,p,c){var f=q(t,function(b){return b(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,ct(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=q(e,be(n)));++u<p;)for(var f=0,b=t[u],S=n?n(b):b;(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;je(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=te(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>it)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 Ao(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=ct(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=Ge(t[a]),b=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var S=c[f];b=o?o(S,f,c):i,b===i&&(b=J(S)?S:je(t[a+1])?[]:{})}on(c,f,b),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 Ee(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 ut(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&&!_e(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=_e(t),b=t===i;a<u;){var S=kn((a+u)/2),w=n(e[S]),I=w!==i,F=w===null,E=w===w,k=_e(w);if(p)var B=o||E;else b?B=E&&(o||I):c?B=E&&I&&(o||!F):f?B=E&&I&&!F&&(o||!k):F||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||!Me(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function Yo(e){return typeof e=="number"?e:_e(e)?mn:+e}function xe(e){if(typeof e=="string")return e;if(D(e))return q(e,xe)+"";if(_e(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function pt(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 b=t?null:wp(e);if(b)return Cn(b);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=ct(t,e),e=_a(e,t),e==null||delete e[Ge(Be(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?Ee(e,o?0:u,o?u+1:a):Ee(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,at([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?pt(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 pt(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 Z(e)?e:[]}function ei(e){return typeof e=="function"?e:ge}function ct(e,t){return D(e)?e:ui(e,t)?[e]:Ia(W(e))}var fp=H;function dt(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Ee(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=_e(e),p=t!==i,c=t===null,f=t===t,b=_e(t);if(!c&&!b&&!u&&e>t||u&&p&&f&&!c&&!b||o&&p&&f||!n&&f||!a)return 1;if(!o&&!u&&!b&&e<t||b&&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 b=n[o];return f*(b=="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,b=te(u-p,0),S=h(f+b),w=!o;++c<f;)S[c]=t[c];for(;++a<p;)(w||a<u)&&(S[n[a]]=e[a]);for(;b--;)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,b=t.length,S=te(u-c,0),w=h(S+b),I=!o;++a<S;)w[a]=e[a];for(var F=a;++f<b;)w[F+f]=t[f];for(;++p<c;)(I||a<u)&&(w[F+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 Ue(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?Xe(n,c,f):on(n,c,f)}return n}function vp(e,t){return Ue(e,si(e),t)}function bp(e,t){return Ue(e,ga(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?Cs:Wu,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=W(t);var n=Rt(t)?ke(t):i,o=n?n[0]:t.charAt(0),a=n?dt(n,1).join(""):t.slice(1);return o[e]()+a}}function zt(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=h(u),c=u,f=Wt(a);c--;)p[c]=arguments[c];var b=u<3&&p[0]!==f&&p[u-1]!==f?[]:lt(p,f);if(u-=b.length,u<n)return pa(e,t,Vn,a.placeholder,i,p,b,i,i,n-u);var S=this&&this!==ie&&this instanceof a?o:e;return ve(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=ne(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 Qe(function(t){var n=t.length,o=n,a=Fe.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Ae(v);if(a&&!p&&Xn(u)=="wrapper")var p=new Fe([],!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]==(Ce|he|ye|rt)&&!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 b=arguments,S=b[0];if(p&&b.length==1&&D(S))return p.plant(S).value();for(var w=0,I=n?t[w].apply(this,b):S;++w<n;)I=t[w].call(this,I);return I}})}function Vn(e,t,n,o,a,u,p,c,f,b){var S=t&Ce,w=t&se,I=t&Ne,F=t&(he|Ke),E=t&At,k=I?i:pn(e);function B(){for(var M=arguments.length,N=h(M),Se=M;Se--;)N[Se]=arguments[Se];if(F)var ce=Wt(B),we=Ds(N,ce);if(o&&(N=ta(N,o,a,F)),u&&(N=na(N,u,p,F)),M-=we,F&&M<b){var Q=lt(N,ce);return pa(e,t,Vn,B.placeholder,n,N,Q,c,f,b-M)}var Oe=w?n:this,nt=I?Oe[e]:e;return M=N.length,c?N=Wp(N,c):E&&M>1&&N.reverse(),S&&f<M&&(N.length=f),this&&this!==ie&&this instanceof B&&(nt=k||pn(nt)),nt.apply(Oe,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=xe(n),o=xe(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ni(e){return Qe(function(t){return t=q(t,be(T())),H(function(n){var o=this;return e(t,function(a){return ve(a,o,n)})})})}function qn(e,t){t=t===i?" ":xe(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)?dt(ke(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,b=-1,S=o.length,w=h(S+f),I=this&&this!==ie&&this instanceof p?u:e;++b<S;)w[b]=o[b];for(;f--;)w[b++]=arguments[++c];return ve(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=tt(t),n===i?(n=t,t=0):n=tt(n),o=o===i?t<n?1:-1:tt(o),lp(t,n,o,e)}}function Jn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Re(t),n=Re(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,b){var S=t&he,w=S?p:i,I=S?i:p,F=S?u:i,E=S?i:u;t|=S?ye:Ve,t&=~(S?Ve:ye),t&$t||(t&=~(se|Ne));var k=[e,t,a,F,w,E,I,c,f,b],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=ee[e];return function(n,o){if(n=Re(n),o=o==null?0:ae(P(o),292),o&&wo(n)){var a=(W(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(W(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==De?Dr(t):n==Pe?zs(t):Rs(t,e(t))}}function Ze(e,t,n,o,a,u,p,c){var f=t&Ne;if(!f&&typeof e!="function")throw new Ae(v);var b=o?o.length:0;if(b||(t&=~(ye|Ve),o=a=i),p=p===i?p:te(P(p),0),c=c===i?c:P(c),b-=a?a.length:0,t&Ve){var S=o,w=a;o=a=i}var I=f?i:ai(e),F=[e,t,n,o,a,S,w,u,p,c];if(I&&Op(F,I),e=F[0],t=F[1],n=F[2],o=F[3],a=F[4],c=F[9]=F[9]===i?f?0:e.length:te(F[9]-b,0),!c&&t&(he|Ke)&&(t&=~(he|Ke)),!t||t==se)var E=xp(e,t,n);else t==he||t==Ke?E=_p(e,t,c):(t==ye||t==(se|ye))&&!a.length?E=Sp(e,t,n,o):E=Vn.apply(i,F);var k=I?Ko:Sa;return wa(k(E,F),e,t)}function da(e,t,n,o){return e===i||Me(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&$e,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var b=u.get(e),S=u.get(t);if(b&&S)return b==t&&S==e;var w=-1,I=!0,F=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(F){if(!Ar(t,function(M,N){if(!Qt(F,N)&&(E===M||a(E,M,n,o,u)))return F.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 Me(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case De:var c=Dr;case Pe:var f=o&$e;if(c||(c=Cn),e.size!=t.size&&!f)return!1;var b=p.get(e);if(b)return b==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&$e,c=ii(e),f=c.length,b=ii(t),S=b.length;if(f!=S&&!p)return!1;for(var w=f;w--;){var I=c[w];if(!(p?I in t:G.call(t,I)))return!1}var F=u.get(e),E=u.get(t);if(F&&E)return F==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 Se=p?o(N,M,I,t,e,u):o(M,N,I,e,t,u);if(!(Se===i?M===N||a(M,N,n,o,u):Se)){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 Qe(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,ne,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=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 Wt(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=ne(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 Ap(e){var t=G.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=K(e),ot(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)at(t,si(e)),e=Bn(e);return t}:Li,le=ue;(Hr&&le(new Hr(new ArrayBuffer(1)))!=Tt||en&&le(new en)!=De||Mr&&le(Mr.resolve())!=Ei||Ht&&le(new Ht)!=Pe||tn&&le(new tn)!=Xt)&&(le=function(e){var t=ue(e),n=t==Ye?e.constructor:i,o=n?It(n):"";if(o)switch(o){case uu:return Tt;case pu:return De;case cu:return Ei;case du:return Pe;case fu:return Xt}return t});function Fp(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=te(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=ct(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=Ge(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)&&je(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 De:return new o;case Yt:case Jt:return new o(e);case qt:return gp(e);case Pe: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",g=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",w="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",K=500,X="__lodash_placeholder__",re=1,mt=2,U=4,$e=1,gt=2,se=1,Ne=2,$t=4,he=8,Ke=16,ye=32,Ve=64,we=128,rt=256,At=512,ht=30,ll="...",sl=800,ul=16,Fi=1,pl=2,cl=3,yt=1/0,it=9007199254740991,dl=17976931348623157e292,mn=0/0,We=4294967295,fl=We-1,ml=We>>>1,gl=[["ary",we],["bind",se],["bindKey",Ne],["curry",he],["curryRight",Ke],["flip",At],["partial",ye],["partialRight",Ve],["rearg",rt]],Ft="[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]",De="[object Map]",Yt="[object Number]",vl="[object Null]",Ye="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",Pe="[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),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\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,Y={};Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[Ft]=Y[gn]=Y[Zt]=Y[Kt]=Y[Tt]=Y[Vt]=Y[hn]=Y[yn]=Y[De]=Y[Yt]=Y[Ye]=Y[qt]=Y[Pe]=Y[Jt]=Y[Xt]=!1;var V={};V[Ft]=V[gn]=V[Zt]=V[Tt]=V[Kt]=V[Vt]=V[lr]=V[sr]=V[ur]=V[pr]=V[cr]=V[De]=V[Yt]=V[Ye]=V[qt]=V[Pe]=V[Jt]=V[vn]=V[dr]=V[fr]=V[mr]=V[gr]=!0,V[hn]=V[yn]=V[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,Ie=function(){try{var d=vt&&vt.require&&vt.require("util").types;return d||wr&&wr.binding&&wr.binding("util")}catch{}}(),to=Ie&&Ie.isArrayBuffer,no=Ie&&Ie.isDate,ro=Ie&&Ie.isMap,io=Ie&&Ie.isRegExp,oo=Ie&&Ie.isSet,ao=Ie&&Ie.isTypedArray;function ve(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,W=d==null?0:d.length;++R<W;){var ee=d[R];b(L,ee,h(ee),d)}return L}function Le(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 ot(d,b){for(var h=-1,L=d==null?0:d.length,R=0,W=[];++h<L;){var ee=d[h];b(ee,h,d)&&(W[R++]=ee)}return W}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 q(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 at(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,W=d==null?0:d.length;for(L&&W&&(h=d[++R]);++R<W;)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 Ar(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 As=Fr("length");function Fs(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,b,h){var L;return h(d,function(R,W,ee){if(b(R,W,ee))return L=W,!1}),L}function Cn(d,b,h,L){for(var R=d.length,W=h+(L?1:-1);L?W--:++W<R;)if(b(d[W],W,d))return W;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,W=d.length;++R<W;)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 Fr(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(W,ee,$){h=L?(L=!1,W):b(h,W,ee,$)}),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 W=b(d[L]);W!==i&&(h=h===i?W:h+W)}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 q(b,function(h){return[h,d[h]]})}function fo(d){return d&&d.slice(0,yo(d)+1).replace(yr,"")}function be(d){return function(b){return d(b)}}function Rr(d,b){return q(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 lt(d,b){for(var h=-1,L=d.length,R=0,W=[];++h<L;){var ee=d[h];(ee===b||ee===X)&&(d[h]=X,W[R++]=h)}return W}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):As(d)}function ke(d){return Rt(d)?Ks(d):Fs(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,W=b.Function,ee=b.Math,$=b.Object,Pr=b.RegExp,qs=b.String,Ae=b.TypeError,In=h.prototype,Js=W.prototype,kt=$.prototype,Ln=b["__core-js_shared__"],An=Js.toString,G=kt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=kt.toString,Zs=An.call($),Qs=ie._,js=Pr("^"+An.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?b.Buffer:i,st=b.Symbol,En=b.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho($.getPrototypeOf,$),xo=$.create,_o=kt.propertyIsEnumerable,Rn=In.splice,So=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,bt=st?st.toStringTag:i,Dn=function(){try{var e=wt($,"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=ee.ceil,kn=ee.floor,kr=$.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,Co=b.isFinite,iu=In.join,ou=ho($.keys,$),te=ee.max,ae=ee.min,au=L.now,lu=b.parseInt,wo=ee.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($,"create"),Hn=tn&&new tn,Mt={},uu=It(Hr),pu=It(en),cu=It(Mr),du=It(Ht),fu=It(tn),Mn=st?st.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 Fe)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Fe(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 Fe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Fe.prototype=Ot(On.prototype),Fe.prototype.constructor=Fe;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,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=Fp(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,F=ae(f,this.__takeCount__);if(!n||!o&&a==f&&F==f)return Jo(e,this.__actions__);var E=[];e:for(;f--&&I<F;){x+=t;for(var k=-1,B=e[x];++k<C;){var M=S[k],N=M.iteratee,Se=M.type,ce=N(B);if(Se==pl)B=ce;else if(!ce){if(Se==Fi)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===A?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?A:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function qe(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}qe.prototype.clear=Su,qe.prototype.delete=Cu,qe.prototype.get=wu,qe.prototype.has=Iu,qe.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 Au(){this.size=0,this.__data__={hash:new xt,map:new(en||qe),string:new xt}}function Fu(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=Au,Je.prototype.delete=Fu,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,A),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function He(e){var t=this.__data__=new qe(e);this.size=t.size}function Pu(){this.__data__=new qe,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 qe){var o=n.__data__;if(!en||o.length<g-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}He.prototype.clear=Pu,He.prototype.delete=ku,He.prototype.get=Hu,He.prototype.has=Mu,He.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&Lt(e),a=!n&&!o&&ft(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")||je(x,f)))&&c.push(x);return c}function Ao(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&&!Me(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&Me(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n;return-1}function zu(e,t,n,o){return ut(e,function(a,u,p){t(o,a,n(a),p)}),o}function Fo(e,t){return e&&Ue(t,ne(t),e)}function Uu(e,t){return e&&Ue(t,me(t),e)}function Xe(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 Te(e,t,n,o,a,u){var p,c=t&re,f=t&mt,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(ft(e))return Qo(e,c);if(C==Ye||C==Ft||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Fo(p,e))}else{if(!V[C])return a?e:{};p=Bp(e,C,c)}}u||(u=new He);var F=u.get(e);if(F)return F;u.set(e,p),Va(e)?e.forEach(function(B){p.add(Te(B,t,n,B,e,u))}):$a(e)&&e.forEach(function(B,M){p.set(M,Te(B,t,n,M,e,u))});var E=x?f?oi:ii:f?me:ne,k=S?i:E(e);return Le(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Te(B,t,n,M,e,u))}),p}function Gu(e){var t=ne(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=$(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=q(t,be(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],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 ut=ra(ze),Bo=ra(zr,!0);function $u(e,t){var n=!0;return ut(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&&!_e(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 ut(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):at(a,c):o||(a[a.length]=c)}return a}var Wr=ia(),Do=ia(!0);function ze(e,t){return e&&Wr(e,t,ne)}function zr(e,t){return e&&Do(e,t,ne)}function zn(e,t){return ot(t,function(n){return et(e[n])})}function Ct(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ge(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:at(o,n(e))}function ue(e){return e==null?e===i?xl:vl:bt&&bt in $(e)?Ap(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 $(e)}function qu(e,t,n){return e>=ae(t,n)&&e<te(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=q(S,be(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 F=S[C],E=t?t(F):F;if(F=n||F!==0?F: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(F)}}return x}function Ju(e,t,n,o){return ze(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=ct(t,e),e=_a(e,t);var o=e==null?e:e[Ge(Be(t))];return o==null?i:ve(o,e,n)}function ko(e){return Z(e)&&ue(e)==Ft}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==Ft?Ye:f,x=x==Ft?Ye:x;var S=f==Ye,C=x==Ye,I=f==x;if(I&&ft(e)){if(!ft(t))return!1;p=!0,S=!1}if(I&&!S)return u||(u=new He),p||Ut(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&$e)){var F=S&&G.call(e,"__wrapped__"),E=C&&G.call(t,"__wrapped__");if(F||E){var k=F?e.value():e,B=E?t.value():t;return u||(u=new He),a(k,B,n,o,u)}}return I?(u||(u=new He),Lp(e,t,n,o,a,u)):!1}function ju(e){return Z(e)&&le(e)==De}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=$(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 He;if(o)var I=o(x,S,f,e,t,C);if(!(I===i?sn(S,x,$e|gt,o,C):I))return!1}}return!0}function Ho(e){if(!J(e)||kp(e))return!1;var t=et(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)==Pe}function np(e){return Z(e)&&ir(e.length)&&!!Y[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 $(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)?h(e.length):[];return ut(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(Ge(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,$e|gt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(u,p){if(a||(a=new He),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),F=!I&&ft(f),E=!I&&!F&&Ut(f);S=f,I||F||E?D(c)?S=c:Q(c)?S=de(c):F?(C=!1,S=Qo(f,!0)):E?(C=!1,S=jo(f,!0)):S=[]:fn(f)||Lt(f)?(S=c,Lt(c)?S=Ja(c):(!J(c)||et(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,je(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=q(t,function(u){return D(u)?function(p){return Ct(p,u.length===1?u[0]:u)}:u}):t=[ge];var o=-1;t=q(t,be(T()));var a=Oo(e,function(u,p,c){var f=q(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,ct(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=q(e,be(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;je(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=te(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>it)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 Ao(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=ct(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=Ge(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:je(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 Ee(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 ut(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&&!_e(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=_e(t),x=t===i;a<u;){var S=kn((a+u)/2),C=n(e[S]),I=C!==i,F=C===null,E=C===C,k=_e(C);if(p)var B=o||E;else x?B=E&&(o||I):c?B=E&&I&&(o||!F):f?B=E&&I&&!F&&(o||!k):F||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||!Me(c,f)){var f=c;u[a++]=p===0?0:p}}return u}function Yo(e){return typeof e=="number"?e:_e(e)?mn:+e}function xe(e){if(typeof e=="string")return e;if(D(e))return q(e,xe)+"";if(_e(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function pt(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],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=ct(t,e),e=_a(e,t),e==null||delete e[Ge(Be(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?Ee(e,o?0:u,o?u+1:a):Ee(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,at([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?pt(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 pt(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 Q(e)?e:[]}function ei(e){return typeof e=="function"?e:ge}function ct(e,t){return D(e)?e:ui(e,t)?[e]:Ia(z(e))}var fp=H;function dt(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Ee(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?$(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=_e(e),p=t!==i,c=t===null,f=t===t,x=_e(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=te(u-p,0),S=h(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=te(u-c,0),C=h(S+x),I=!o;++a<S;)C[a]=e[a];for(var F=a;++f<x;)C[F+f]=t[f];for(;++p<c;)(I||a<u)&&(C[F+n[p]]=e[a++]);return C}function de(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function Ue(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?Xe(n,c,f):on(n,c,f)}return n}function vp(e,t){return Ue(e,si(e),t)}function bp(e,t){return Ue(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=$(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=$(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=$(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)?ke(t):i,o=n?n[0]:t.charAt(0),a=n?dt(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=h(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var x=u<3&&p[0]!==f&&p[u-1]!==f?[]:lt(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 ve(S,this,p)}return a}function aa(e){return function(t,n,o){var a=$(t);if(!fe(t)){var u=T(n,3);t=ne(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 Qe(function(t){var n=t.length,o=n,a=Fe.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 Fe([],!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]==(we|he|ye|rt)&&!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 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&we,C=t&se,I=t&Ne,F=t&(he|Ke),E=t&At,k=I?i:pn(e);function B(){for(var M=arguments.length,N=h(M),Se=M;Se--;)N[Se]=arguments[Se];if(F)var ce=zt(B),Ce=Ds(N,ce);if(o&&(N=ta(N,o,a,F)),u&&(N=na(N,u,p,F)),M-=Ce,F&&M<x){var j=lt(N,ce);return pa(e,t,Vn,B.placeholder,n,N,j,c,f,x-M)}var Oe=C?n:this,nt=I?Oe[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&&(nt=k||pn(nt)),nt.apply(Oe,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=xe(n),o=xe(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ni(e){return Qe(function(t){return t=q(t,be(T())),H(function(n){var o=this;return e(t,function(a){return ve(a,o,n)})})})}function qn(e,t){t=t===i?" ":xe(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)?dt(ke(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=h(S+f),I=this&&this!==ie&&this instanceof p?u:e;++x<S;)C[x]=o[x];for(;f--;)C[x++]=arguments[++c];return ve(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=tt(t),n===i?(n=t,t=0):n=tt(n),o=o===i?t<n?1:-1:tt(o),lp(t,n,o,e)}}function Jn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Re(t),n=Re(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,x){var S=t&he,C=S?p:i,I=S?i:p,F=S?u:i,E=S?i:u;t|=S?ye:Ve,t&=~(S?Ve:ye),t&$t||(t&=~(se|Ne));var k=[e,t,a,F,C,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=ee[e];return function(n,o){if(n=Re(n),o=o==null?0:ae(P(o),292),o&&Co(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 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==De?Dr(t):n==Pe?Ws(t):Rs(t,e(t))}}function Ze(e,t,n,o,a,u,p,c){var f=t&Ne;if(!f&&typeof e!="function")throw new Ae(y);var x=o?o.length:0;if(x||(t&=~(ye|Ve),o=a=i),p=p===i?p:te(P(p),0),c=c===i?c:P(c),x-=a?a.length:0,t&Ve){var S=o,C=a;o=a=i}var I=f?i:ai(e),F=[e,t,n,o,a,S,C,u,p,c];if(I&&Op(F,I),e=F[0],t=F[1],n=F[2],o=F[3],a=F[4],c=F[9]=F[9]===i?f?0:e.length:te(F[9]-x,0),!c&&t&(he|Ke)&&(t&=~(he|Ke)),!t||t==se)var E=xp(e,t,n);else t==he||t==Ke?E=_p(e,t,c):(t==ye||t==(se|ye))&&!a.length?E=Sp(e,t,n,o):E=Vn.apply(i,F);var k=I?Ko:Sa;return Ca(k(E,F),e,t)}function da(e,t,n,o){return e===i||Me(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 wp(e){return fn(e)?i:e}function ma(e,t,n,o,a,u){var p=n&$e,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,F=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(F){if(!Ar(t,function(M,N){if(!Qt(F,N)&&(E===M||a(E,M,n,o,u)))return F.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 Me(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case De:var c=Dr;case Pe:var f=o&$e;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&$e,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 F=u.get(e),E=u.get(t);if(F&&E)return F==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 Se=p?o(N,M,I,t,e,u):o(M,N,I,e,t,u);if(!(Se===i?M===N||a(M,N,n,o,u):Se)){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 Qe(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,ne,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=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||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=ne(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 Ap(e){var t=G.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=$(e),ot(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)at(t,si(e)),e=Bn(e);return t}:Li,le=ue;(Hr&&le(new Hr(new ArrayBuffer(1)))!=Tt||en&&le(new en)!=De||Mr&&le(Mr.resolve())!=Ei||Ht&&le(new Ht)!=Pe||tn&&le(new tn)!=Xt)&&(le=function(e){var t=ue(e),n=t==Ye?e.constructor:i,o=n?It(n):"";if(o)switch(o){case uu:return Tt;case pu:return De;case cu:return Ei;case du:return Pe;case fu:return Xt}return t});function Fp(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=te(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=ct(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=Ge(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)&&je(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 De:return new o;case Yt:case Jt:return new o(e);case qt:return gp(e);case Pe: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 je(e,t){var n=typeof e;return t=t==null?it: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)&&je(t,n.length):o=="string"&&t in n)?Me(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||_e(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=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?et:Ai;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|Ne|Ce),p=o==Ce&&n==he||o==Ce&&n==rt&&e[7].length<=t[8]||o==(Ce|rt)&&t[7].length<=t[8]&&n==he;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?lt(e[3],j):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?lt(e[5],j):t[6]),c=t[7],c&&(e[7]=c),o&Ce&&(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 zp(e){return Fn.call(e)}function xa(e,t,n){return t=te(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=te(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),ve(e,this,c)}}function _a(e,t){return t.length<2?e:wt(e,Ee(t,0,-1))}function Wp(e,t){for(var n=e.length,o=ae(t.length,n),a=de(e);o--;){var u=t[o];e[o]=je(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 Ge(e){if(typeof e=="string"||_e(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function It(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Le(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 Fe(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=te(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++]=Ee(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 at(D(n)?de(n):[n],oe(t,1))}var Vp=H(function(e,t){return Z(e)?an(e,oe(t,1,Z,!0)):[]}),Yp=H(function(e,t){var n=Be(t);return Z(n)&&(n=i),Z(e)?an(e,oe(t,1,Z,!0),T(n,2)):[]}),qp=H(function(e,t){var n=Be(t);return Z(n)&&(n=i),Z(e)?an(e,oe(t,1,Z,!0),i,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Ee(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,Ee(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 Aa(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=te(o+a,0)),wn(e,T(t,3),a)}function Fa(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?te(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=te(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ee(e,0,-1):[]}var oc=H(function(e){var t=q(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Be(e),n=q(e,jr);return t===Be(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Be(e),n=q(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 Be(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?te(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?Wo(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=Qe(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,q(t,function(a){return je(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)),Ee(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&&Me(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(Me(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?Ee(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Ee(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Ee(e,t<0?0:t,o)):[]}function Fc(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 pt(oe(e,1,Z,!0))}),Bc=H(function(e){var t=Be(e);return Z(t)&&(t=i),pt(oe(e,1,Z,!0),T(t,2))}),Rc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,pt(oe(e,1,Z,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(Z(n))return t=te(n.length,t),!0}),Br(t,function(n){return q(e,Fr(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=mi(e);return t==null?n:q(n,function(o){return ve(t,i,o)})}var Hc=H(function(e,t){return Z(e)?an(e,t):[]}),Mc=H(function(e){return Qr(ot(e,Z))}),Oc=H(function(e){var t=Be(e);return Z(t)&&(t=i),Qr(ot(e,Z),T(t,2))}),Nc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,Qr(ot(e,Z),i,t)}),zc=H(mi);function Wc(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=Qe(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)||!je(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Fe(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Fe(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 Fe(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Xe(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)?ot:Ro;return n(e,T(t,3))}var nd=aa(Aa),rd=aa(Fa);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)?Le:ut;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):Xe(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=te(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 ut(e,function(p){u[++o]=a?ve(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Xe(e,n,t)});function er(e,t){var n=D(e)?q: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,ut)}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)?ot:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Ao: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)?zu: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==De||t==Pe?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Ar: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(v);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,Ze(e,Ce,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Ae(v);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=lt(n,Wt(gi));o|=ye}return Ze(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=se|Ne;if(n.length){var a=lt(n,Wt(Oa));o|=ye}return Ze(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Ze(e,he,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function za(e,t,n){t=n?i:t;var o=Ze(e,Ke,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Wa(e,t,n){var o,a,u,p,c,f,b=0,S=!1,w=!1,I=!0;if(typeof e!="function")throw new Ae(v);t=Re(t)||0,J(n)&&(S=!!n.leading,w="maxWait"in n,u=w?te(Re(n.maxWait)||0,t):u,I="trailing"in n?!!n.trailing:I);function F(Q){var Oe=o,nt=a;return o=a=i,b=Q,p=e.apply(nt,Oe),p}function E(Q){return b=Q,c=dn(M,t),S?F(Q):p}function k(Q){var Oe=Q-f,nt=Q-b,al=t-Oe;return w?ae(al,u-nt):al}function B(Q){var Oe=Q-f,nt=Q-b;return f===i||Oe>=t||Oe<0||w&&nt>=u}function M(){var Q=tr();if(B(Q))return N(Q);c=dn(M,k(Q))}function N(Q){return c=i,I&&o?F(Q):(o=a=i,p)}function Se(){c!==i&&Zo(c),b=0,o=f=a=c=i}function ce(){return c===i?p:N(tr())}function we(){var Q=tr(),Oe=B(Q);if(o=arguments,a=this,f=Q,Oe){if(c===i)return E(f);if(w)return Zo(c),c=dn(M,t),F(f)}return c===i&&(c=dn(M,t)),p}return we.cancel=Se,we.flush=ce,we}var wd=H(function(e,t){return Eo(e,1,t)}),Cd=H(function(e,t,n){return Eo(e,Re(t)||0,n)});function Id(e){return Ze(e,At)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ae(v);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(v);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 Ad=fp(function(e,t){t=t.length==1&&D(t[0])?q(t[0],be(T())):q(oe(t,1),be(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 ve(e,this,o)})}),hi=H(function(e,t){var n=lt(t,Wt(hi));return Ze(e,ye,i,t,n)}),Ua=H(function(e,t){var n=lt(t,Wt(Ua));return Ze(e,Ve,i,t,n)}),Fd=Qe(function(e,t){return Ze(e,rt,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Ae(v);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Ae(v);return t=t==null?0:te(P(t),0),H(function(n){var o=n[t],a=dt(n,0,t);return o&&at(a,o),ve(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ae(v);return J(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Wa(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 Te(e,U)}function Hd(e,t){return t=typeof t=="function"?t:i,Te(e,U,t)}function Md(e){return Te(e,re|U)}function Od(e,t){return t=typeof t=="function"?t:i,Te(e,re|U,t)}function Nd(e,t){return t==null||To(e,t,ne(t))}function Me(e,t){return e===t||e!==e&&t!==t}var zd=Jn(Ur),Wd=Jn(function(e,t){return e>=t}),Lt=ko(function(){return arguments}())?ko:function(e){return X(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=h.isArray,Ud=to?be(to):Xu;function fe(e){return e!=null&&ir(e.length)&&!et(e)}function Z(e){return X(e)&&fe(e)}function Gd(e){return e===!0||e===!1||X(e)&&ue(e)==Kt}var ft=ru||Ai,$d=no?be(no):Zu;function Kd(e){return X(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"||ft(e)||Ut(e)||Lt(e)))return!e.length;var t=le(e);if(t==De||t==Pe)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(!X(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"&&wo(e)}function et(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<=it}function J(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var $a=ro?be(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(x);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||X(e)&&ue(e)==Yt}function fn(e){if(!X(e)||ue(e)!=Ye)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&&An.call(n)==Zs}var vi=io?be(io):ep;function nf(e){return Ga(e)&&e>=-it&&e<=it}var Va=oo?be(oo):tp;function or(e){return typeof e=="string"||!D(e)&&X(e)&&ue(e)==Jt}function _e(e){return typeof e=="symbol"||X(e)&&ue(e)==vn}var Ut=ao?be(ao):np;function rf(e){return e===i}function of(e){return X(e)&&le(e)==Xt}function af(e){return X(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)?ke(e):de(e);if(jt&&e[jt])return Ns(e[jt]());var t=le(e),n=t==De?Dr:t==Pe?Cn:Gt;return n(e)}function tt(e){if(!e)return e===0?e:0;if(e=Re(e),e===yt||e===-yt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=tt(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?St(P(e),0,ze):0}function Re(e){if(typeof e=="number")return e;if(_e(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):Wl.test(e)?mn:+e}function Ja(e){return Ue(e,me(e))}function uf(e){return e?St(P(e),-it,it):e===0?e:0}function W(e){return e==null?"":xe(e)}var pf=Nt(function(e,t){if(cn(t)||fe(t)){Ue(t,ne(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Xa=Nt(function(e,t){Ue(t,me(t),e)}),ar=Nt(function(e,t,n,o){Ue(t,me(t),e,o)}),cf=Nt(function(e,t,n,o){Ue(t,ne(t),e,o)}),df=Qe(Nr);function ff(e,t){var n=Ot(e);return t==null?n:Fo(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 b=p[c],S=e[b];(S===i||Me(S,kt[b])&&!G.call(e,b))&&(e[b]=u[b])}return e}),gf=H(function(e){return e.push(i,fa),ve(Za,i,e)});function hf(e,t){return so(e,T(t,3),We)}function yf(e,t){return so(e,T(t,3),Wr)}function vf(e,t){return e==null?e:zr(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&&We(e,T(t,3))}function _f(e,t){return e&&Wr(e,T(t,3))}function Sf(e){return e==null?[]:Wn(e,ne(e))}function wf(e){return e==null?[]:Wn(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=Fn.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Af=H(ln);function ne(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Ff(e,t){var n={};return t=T(t,3),We(e,function(o,a,u){Xe(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),We(e,function(o,a,u){Xe(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=Qe(function(e,t){var n={};if(e==null)return n;var o=!1;t=q(t,function(u){return u=ct(u,e),o||(o=u.length>1),u}),Ue(e,oi(e),n),o&&(n=Te(n,re|mt|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=Qe(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=q(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=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[Ge(t[o])];u===i&&(o=a,u=n),e=et(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(ne),el=ca(me);function Mf(e,t,n){var o=D(e),a=o||ft(e)||Ut(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:J(e)?n=et(u)?Ot(Bn(e)):{}:n={}}return(a?Le:We)(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 zf(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,ne(e))}function Wf(e){return e==null?[]:Rr(e,me(e))}function Uf(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Re(n),n=n===n?n:0),t!==i&&(t=Re(t),t=t===t?t:0),St(Re(e),t,n)}function Gf(e,t,n){return t=tt(t),n===i?(n=t,t=0):n=tt(n),e=Re(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=tt(e),t===i?(t=e,e=0):t=tt(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=zt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(W(e).toLowerCase())}function nl(e){return e=W(e),e&&e.replace(Vl,Ps).replace(cs,"")}function Vf(e,t,n){e=W(e),t=xe(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=W(e),e&&Ll.test(e)?e.replace(Ri,ks):e}function qf(e){return e=W(e),e&&Rl.test(e)?e.replace(hr,"\\$&"):e}var Jf=zt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=W(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=W(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=W(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(W(e).replace(yr,""),t||0)}function nm(e,t,n){return(n?pe(e,t,n):t===i)?t=1:t=P(t),Jr(W(e),t)}function rm(){var e=arguments,t=W(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(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=W(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=xe(t),!t&&Rt(e))?dt(ke(e),0,n):e.split(t,n)):[]}var am=zt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lm(e,t,n){return e=W(e),n=n==null?0:St(P(n),0,e.length),t=xe(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=W(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),u=ne(a),p=Rr(a,u),c,f,b=0,S=t.interpolate||bn,w="__p += '",I=Pr((t.escape||bn).source+"|"+S.source+"|"+(S===Di?zl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),F="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
- `;e.replace(I,function(B,M,N,Se,ce,we){return N||(N=Se),w+=e.slice(b,we).replace(Yl,Hs),M&&(c=!0,w+=`' +
10
+ `)}function Dp(e){return D(e)||Lt(e)||!!(So&&e&&e[So])}function je(e,t){var n=typeof e;return t=t==null?it: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)&&je(t,n.length):o=="string"&&t in n)?Me(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||_e(e)?!0:El.test(e)||!Tl.test(e)||t!=null&&e in $(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?et:Ai;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 $(n))}}function Mp(e){var t=nr(e,function(o){return n.size===K&&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|Ne|we),p=o==we&&n==he||o==we&&n==rt&&e[7].length<=t[8]||o==(we|rt)&&t[7].length<=t[8]&&n==he;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?lt(e[3],X):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?lt(e[5],X):t[6]),c=t[7],c&&(e[7]=c),o&we&&(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 $(e))t.push(n);return t}function Wp(e){return Fn.call(e)}function xa(e,t,n){return t=te(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,u=te(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),ve(e,this,c)}}function _a(e,t){return t.length<2?e:Ct(e,Ee(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]=je(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 Ge(e){if(typeof e=="string"||_e(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function It(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Le(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 Fe(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=te(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++]=Ee(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 at(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=Be(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=Be(t);return Q(n)&&(n=i),Q(e)?an(e,oe(t,1,Q,!0),i,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),Ee(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,Ee(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 Aa(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=te(o+a,0)),Cn(e,T(t,3),a)}function Fa(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?te(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=te(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ee(e,0,-1):[]}var oc=H(function(e){var t=q(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Be(e),n=q(e,jr);return t===Be(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,T(t,2)):[]}),lc=H(function(e){var t=Be(e),n=q(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 Be(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?te(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=Qe(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,q(t,function(a){return je(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)),Ee(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&&Me(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(Me(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?Ee(e,1,t):[]}function Lc(e,t,n){return e&&e.length?(t=n||t===i?1:P(t),Ee(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:P(t),t=o-t,Ee(e,t<0?0:t,o)):[]}function Fc(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 pt(oe(e,1,Q,!0))}),Bc=H(function(e){var t=Be(e);return Q(t)&&(t=i),pt(oe(e,1,Q,!0),T(t,2))}),Rc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,pt(oe(e,1,Q,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(Q(n))return t=te(n.length,t),!0}),Br(t,function(n){return q(e,Fr(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=mi(e);return t==null?n:q(n,function(o){return ve(t,i,o)})}var Hc=H(function(e,t){return Q(e)?an(e,t):[]}),Mc=H(function(e){return Qr(ot(e,Q))}),Oc=H(function(e){var t=Be(e);return Q(t)&&(t=i),Qr(ot(e,Q),T(t,2))}),Nc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,Qr(ot(e,Q),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=Qe(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)||!je(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Fe(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Fe(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 Fe(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Xe(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)?ot:Ro;return n(e,T(t,3))}var nd=aa(Aa),rd=aa(Fa);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)?Le:ut;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):Xe(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=te(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 ut(e,function(p){u[++o]=a?ve(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Xe(e,n,t)});function er(e,t){var n=D(e)?q: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,ut)}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)?ot:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Ao: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==De||t==Pe?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Ar: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,Ze(e,we,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=lt(n,zt(gi));o|=ye}return Ze(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=se|Ne;if(n.length){var a=lt(n,zt(Oa));o|=ye}return Ze(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Ze(e,he,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Wa(e,t,n){t=n?i:t;var o=Ze(e,Ke,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=Re(t)||0,J(n)&&(S=!!n.leading,C="maxWait"in n,u=C?te(Re(n.maxWait)||0,t):u,I="trailing"in n?!!n.trailing:I);function F(j){var Oe=o,nt=a;return o=a=i,x=j,p=e.apply(nt,Oe),p}function E(j){return x=j,c=dn(M,t),S?F(j):p}function k(j){var Oe=j-f,nt=j-x,al=t-Oe;return C?ae(al,u-nt):al}function B(j){var Oe=j-f,nt=j-x;return f===i||Oe>=t||Oe<0||C&&nt>=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?F(j):(o=a=i,p)}function Se(){c!==i&&Zo(c),x=0,o=f=a=c=i}function ce(){return c===i?p:N(tr())}function Ce(){var j=tr(),Oe=B(j);if(o=arguments,a=this,f=j,Oe){if(c===i)return E(f);if(C)return Zo(c),c=dn(M,t),F(f)}return c===i&&(c=dn(M,t)),p}return Ce.cancel=Se,Ce.flush=ce,Ce}var Cd=H(function(e,t){return Eo(e,1,t)}),wd=H(function(e,t,n){return Eo(e,Re(t)||0,n)});function Id(e){return Ze(e,At)}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 Ad=fp(function(e,t){t=t.length==1&&D(t[0])?q(t[0],be(T())):q(oe(t,1),be(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 ve(e,this,o)})}),hi=H(function(e,t){var n=lt(t,zt(hi));return Ze(e,ye,i,t,n)}),Ua=H(function(e,t){var n=lt(t,zt(Ua));return Ze(e,Ve,i,t,n)}),Fd=Qe(function(e,t){return Ze(e,rt,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:te(P(t),0),H(function(n){var o=n[t],a=dt(n,0,t);return o&&at(a,o),ve(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 Te(e,U)}function Hd(e,t){return t=typeof t=="function"?t:i,Te(e,U,t)}function Md(e){return Te(e,re|U)}function Od(e,t){return t=typeof t=="function"?t:i,Te(e,re|U,t)}function Nd(e,t){return t==null||To(e,t,ne(t))}function Me(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)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=h.isArray,Ud=to?be(to):Xu;function fe(e){return e!=null&&ir(e.length)&&!et(e)}function Q(e){return Z(e)&&fe(e)}function Gd(e){return e===!0||e===!1||Z(e)&&ue(e)==Kt}var ft=ru||Ai,$d=no?be(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"||ft(e)||Ut(e)||Lt(e)))return!e.length;var t=le(e);if(t==De||t==Pe)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 Jd(e){return typeof e=="number"&&Co(e)}function et(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<=it}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?be(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)!=Ye)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&&An.call(n)==Zs}var vi=io?be(io):ep;function nf(e){return Ga(e)&&e>=-it&&e<=it}var Va=oo?be(oo):tp;function or(e){return typeof e=="string"||!D(e)&&Z(e)&&ue(e)==Jt}function _e(e){return typeof e=="symbol"||Z(e)&&ue(e)==vn}var Ut=ao?be(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)?ke(e):de(e);if(jt&&e[jt])return Ns(e[jt]());var t=le(e),n=t==De?Dr:t==Pe?wn:Gt;return n(e)}function tt(e){if(!e)return e===0?e:0;if(e=Re(e),e===yt||e===-yt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function P(e){var t=tt(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?St(P(e),0,We):0}function Re(e){if(typeof e=="number")return e;if(_e(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 Ja(e){return Ue(e,me(e))}function uf(e){return e?St(P(e),-it,it):e===0?e:0}function z(e){return e==null?"":xe(e)}var pf=Nt(function(e,t){if(cn(t)||fe(t)){Ue(t,ne(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Xa=Nt(function(e,t){Ue(t,me(t),e)}),ar=Nt(function(e,t,n,o){Ue(t,me(t),e,o)}),cf=Nt(function(e,t,n,o){Ue(t,ne(t),e,o)}),df=Qe(Nr);function ff(e,t){var n=Ot(e);return t==null?n:Fo(n,t)}var mf=H(function(e,t){e=$(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||Me(S,kt[x])&&!G.call(e,x))&&(e[x]=u[x])}return e}),gf=H(function(e){return e.push(i,fa),ve(Za,i,e)});function hf(e,t){return so(e,T(t,3),ze)}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&&ze(e,T(t,3))}function _f(e,t){return e&&zr(e,T(t,3))}function Sf(e){return e==null?[]:zn(e,ne(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=Fn.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Af=H(ln);function ne(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Ff(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),ze(e,function(o,a,u){Xe(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=Qe(function(e,t){var n={};if(e==null)return n;var o=!1;t=q(t,function(u){return u=ct(u,e),o||(o=u.length>1),u}),Ue(e,oi(e),n),o&&(n=Te(n,re|mt|U,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=Qe(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=q(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=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[Ge(t[o])];u===i&&(o=a,u=n),e=et(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(ne),el=ca(me);function Mf(e,t,n){var o=D(e),a=o||ft(e)||Ut(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:J(e)?n=et(u)?Ot(Bn(e)):{}:n={}}return(a?Le:ze)(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,ne(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=Re(n),n=n===n?n:0),t!==i&&(t=Re(t),t=t===t?t:0),St(Re(e),t,n)}function Gf(e,t,n){return t=tt(t),n===i?(n=t,t=0):n=tt(n),e=Re(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=tt(e),t===i?(t=e,e=0):t=tt(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(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=xe(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 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=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),Jr(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?We:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=xe(t),!t&&Rt(e))?dt(ke(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=xe(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=ne(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"),F="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hs+"]")+`
11
+ `;e.replace(I,function(B,M,N,Se,ce,Ce){return N||(N=Se),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
- '`),b=we+B.length,B}),w+=`';
18
- `;var E=G.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(wl,"$1").replace(Cl,"$1;"),w="function("+(E||"obj")+`) {
21
+ `;else if(Ol.test(E))throw new R(w);C=(f?C.replace(Sl,""):C).replace(Cl,"$1").replace(wl,"$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 z(u,F+"return "+w).apply(i,p)});if(k.source=w,yi(k))throw k;return k}function um(e){return W(e).toLowerCase()}function pm(e){return W(e).toUpperCase()}function cm(e,t,n){if(e=W(e),e&&(n||t===i))return fo(e);if(!e||!(t=xe(t)))return e;var o=ke(e),a=ke(t),u=mo(o,a),p=go(o,a)+1;return dt(o,u,p).join("")}function dm(e,t,n){if(e=W(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=xe(t)))return e;var o=ke(e),a=go(o,ke(t))+1;return dt(o,0,a).join("")}function fm(e,t,n){if(e=W(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=xe(t)))return e;var o=ke(e),a=mo(o,ke(t));return dt(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?xe(t.omission):o}e=W(e);var u=e.length;if(Rt(e)){var p=ke(e);u=p.length}if(n>=u)return e;var c=n-Dt(o);if(c<1)return o;var f=p?dt(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 b,S=f;for(a.global||(a=Pr(a.source,W(Pi.exec(a))+"g")),a.lastIndex=0;b=a.exec(S);)var w=b.index;f=f.slice(0,w===i?c:w)}}else if(e.indexOf(xe(a),c)!=c){var I=f.lastIndexOf(a);I>-1&&(f=f.slice(0,I))}return f+o}function gm(e){return e=W(e),e&&Il.test(e)?e.replace(Bi,Gs):e}var hm=zt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=W(e),t=n?i:t,t===i?Os(e)?Vs(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return ve(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),ym=Qe(function(e,t){return Le(t,function(n){n=Ge(n),Xe(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?q(e,function(o){if(typeof o[1]!="function")throw new Ae(v);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var u=e[a];if(ve(u[0],this,o))return ve(u[1],this,o)}})}function bm(e){return Gu(Te(e,re))}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:Te(e,re))}function wm(e){return No(Te(e,re))}function Cm(e,t){return zo(e,Te(t,re))}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=ne(t),a=Wn(t,o);n==null&&!(J(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=Wn(t,ne(t)));var u=!(J(n)&&"chain"in n)||!!n.chain,p=et(e);return Le(a,function(c){var f=t[c];e[c]=f,p&&(e.prototype[c]=function(){var b=this.__chain__;if(u||b){var S=e(this.__wrapped__),w=S.__actions__=de(this.__actions__);return w.push({func:f,args:arguments,thisArg:e}),S.__chain__=b,S}return f.apply(e,at([this.value()],arguments))})}),e}function Am(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Fm(e){return e=P(e),H(function(t){return Wo(t,e)})}var Tm=ni(q),Em=ni(lo),Bm=ni(Ar);function ol(e){return ui(e)?Fr(Ge(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 Ai(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>it)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)?q(e,Ge):_e(e)?[e]:de(Ia(W(e)))}function zm(e){var t=++Xs;return W(e)+t}var Wm=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?zn(e,ge,Ur):i}function Vm(e,t){return e&&e.length?zn(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?zn(e,ge,Vr):i}function Xm(e,t){return e&&e.length?zn(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=za,l.debounce=Wa,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=Cd,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=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=ne,l.keysIn=me,l.map=er,l.mapKeys=Ff,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=Fm,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Ad,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=Fd,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=Ac,l.takeRightWhile=Fc,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=zf,l.values=Gt,l.valuesIn=Wf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=zc,l.zipObject=Wc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,Ci(l,l),l.add=Wm,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=Me,l.escape=Yf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Fa,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=zd,l.gte=Wd,l.has=Cf,l.hasIn=xi,l.head=Ea,l.identity=ge,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Af,l.isArguments=Lt,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=fe,l.isArrayLikeObject=Z,l.isBoolean=Gd,l.isBuffer=ft,l.isDate=$d,l.isElement=Kd,l.isEmpty=Vd,l.isEqual=Yd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Jd,l.isFunction=et,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=J,l.isObjectLike=X,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Va,l.isString=or,l.isSymbol=_e,l.isTypedArray=Ut,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Be,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=Ai,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Am,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=tt,l.toInteger=P,l.toLength=qa,l.toLower=um,l.toNumber=Re,l.toSafeInteger=uf,l.toString=W,l.toUpper=pm,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=zm,l.upperCase=hm,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ea,Ci(l,function(){var e={};return We(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Le(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:te(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()}}),Le(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Fi||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}}),Le(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Le(["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)},We(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,b=c[0],S=f||D(p),w=function(M){var N=a.apply(l,at([M],c));return o&&I?N[0]:N};S&&n&&typeof b=="function"&&b.length!=1&&(f=S=!1);var I=this.__chain__,F=!!this.__actions__.length,E=u&&!I,k=f&&!F;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 Fe(B,I)}return E&&k?e.apply(this,c):(B=this.thru(w),E?o?B.value()[0]:B.value():B)})}),Le(["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)})}}),We(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,Ne).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,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:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{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/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/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"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"]),EmptyBox];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((x,v)=>{if(v===0){g.push(x);return}g.push(`${g[v-1]}.${x}`)}),g.map(x=>{const v=_.get(r,x);v?i=i+` > ${(v==null?void 0:v.name)||(v==null?void 0:v.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 v,C;(v=r.searchParams)==null||v.get("id");const g=(C=r.searchParams)==null?void 0:C.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const x=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const A=await i(r,s,x);navigateHandler(r,!0,m?`/${m}?id=${A.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","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"],InputSlider:["Core","Properties","style","Event","Validation"]},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},x=(m=sectionLabels[r])==null?void 0:m.map(v=>g[v]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=x||[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 x=this.getSchema();r.setSchema(x),this.refreshPage(g==null?void 0:g.type,r)},refreshPage,getFormdata:function(){var x;const g=(x=r.searchParams)==null?void 0:x.get("path");return getFormdataFromLocalStorage(g)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var g,x,v,C;((g=r==null?void 0:r.formData)==null?void 0:g.type)!==((x=r==null?void 0:r.newData)==null?void 0:x.type)&&((v=r==null?void 0:r.newData)==null?void 0:v.type)!==void 0&&this.refreshPage((C=r==null?void 0:r.newData)==null?void 0:C.type,r)},editComponents:function(){var C,A,$;const g=s.path.split(".")[1],x=(C=r.searchParams)==null?void 0:C.get("path"),v=(A=r.searchParams)==null?void 0:A.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,x),x){const re=`${($=r.searchParams)==null?void 0:$.get("path")}.elements[${g}]`;r.searchParams.set("path",re),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${g}]`}&id=${v}`)},deleteComponents:function(){var A;const g=(A=r.searchParams)==null?void 0:A.get("path"),x=s.path.split(".")[1];r.formData.elements.splice(x,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g),C=g?_.get(v,g):v;r.setFormdata(C)},deleteEvent:function(){var C;const g=(C=r.searchParams)==null?void 0:C.get("path"),x=s.path.split(".")[1];r.formData.events.splice(x,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g);r.setFormdata(_.get(v,g))},widgetAddClickHandler:function(){var v;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const g=(v=r.searchParams)==null?void 0:v.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const x=`${g}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",x),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var A,$;const g=s.path.split(".")[1],x=(A=r.searchParams)==null?void 0:A.get("path"),v=($=r.searchParams)==null?void 0:$.get("id");saveFormdataInLocalStorage(r.ctx.core.data,x);const C=`${x}.events[${g}]`;r.navigate(`/ComponentEvents?path=${C}&id=${v}`)},eventAddHandler:function(){var C,A;const g=(C=r.searchParams)==null?void 0:C.get("path"),x=(A=r.searchParams)==null?void 0:A.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const v=`${g}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${v}&id=${x}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,config:m,submitHandler:g,service:x}=r;return{setPage:async function(){const v=await this.getFormdata();s.setFormdata(v);const C=await this.getUiSchema(),A=await this.getSchema();s.setSchema(A),s.setUiSchema(C)},getFormdata:function(){var C;(C=s.searchParams)==null||C.get("id");const v=getFormdataFromLocalStorage();return v||(saveFormdataInLocalStorage(m),m)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var A;const v=(A=s.searchParams)==null?void 0:A.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const C=saveFormdataInLocalStorage(s.ctx.core.data);v?s.navigate(`/Component?path=${`elements[${C==null?void 0:C.elements.length}]`}&id=${v}`):s.navigate(`/Component?path=${`elements[${C==null?void 0:C.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,x,g),Edit_Components:Component(s,i,g,x).editComponents,Delete_Components:Component(s,i,g,x).deleteComponents,eventAddHandler:function(){var A;const v=(A=s.searchParams)==null?void 0:A.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const C=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${C}&id=${v}`)},editEvent:function(){var $;const v=i.path.split(".")[1],C=($=s.searchParams)==null?void 0:$.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const A=`events[${v}]`;s.navigate(`/ComponentEvents?path=${A}&id=${C}`)},deleteEvent:function(){const v=i.path.split(".")[1];s.formData.events.splice(v,1);const C=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(C)}}};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 x=await this.getFormData();r.setFormdata(x);const v=await this.getSchema();r.setSchema(v),this.refreshPage(x.Handler,r)},refreshPage:(x,v)=>{const C=_.cloneDeep(EventUiSchema),A=_.cloneDeep(EventSchema);x&&(x==="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),A.required=["eventType","Handler","eventCode"]):x==="api"?(C.elements[1].elements[0].elements[2]=APISection,A.required=["eventType","Handler","method","path"]):x==="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}),A.required=["eventType","Handler","inBuiltFunctionType"]):x==="refresh"&&(C.elements[1].elements[0].elements[2]=refreshSectionUiSchema,A.properties.refreshElements.required=["value"],A.properties.refreshElements.items.required=["value"],A.required=["eventType","Handler","refreshElements"])),g&&(A.properties.inBuiltFunctionType.oneOf=[...A.properties.inBuiltFunctionType.oneOf,...g]),v.setSchema(A),v.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 x,v,C;((x=r==null?void 0:r.formData)==null?void 0:x.Handler)!==((v=r==null?void 0:r.newData)==null?void 0:v.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,A,$;const x=(C=r.searchParams)==null?void 0:C.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,x);const v=`${x}.events[${($=(A=r.formData)==null?void 0:A.events)==null?void 0:$.length}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var A;const x=s.path.split(".")[1],v=(A=r.searchParams)==null?void 0:A.get("path");saveFormdataInLocalStorage(r.ctx.core.data,v);const C=`${v}.events[${x}]`;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 x=URL.createObjectURL(g),v=document.createElement("a");v.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:x,v.download=`${r.name}`,document.body.appendChild(v),v.click(),URL.revokeObjectURL(x),document.body.removeChild(v)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((x,v)=>{i=i+`${v===0?"?":"&"}${x}=${r==null?void 0:r.params[x]}`});const m=document.createElement("a");m.href=i,document.body.appendChild(m),m.click(),m.parentNode.removeChild(m)},executeEvents=r=>{var g,x,v;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 $;i=C,s=($=r.config)==null?void 0:$.events.filter(j=>j.eventType==="Success")}).catch(C=>{var j,re;const A=(re=(j=r.config)==null?void 0:j.events)==null?void 0:re.filter(mt=>mt.eventType==="Fail");s=(A==null?void 0:A.length)>0?A:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((C,A)=>C.then(()=>executeEvents({...r,config:A,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($=>$.eventType==="Success")}catch{const C=(v=(x=r.config)==null?void 0:x.events)==null?void 0:v.filter($=>$.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(x=>x)}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);if(params.config.isSync!=="Yes")makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(r=>r);else return 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(x=>{var v;return{...x,properties:{...x.properties,[s]:{...(v=x.properties)==null?void 0:v[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(x=>{var v;return{...x,properties:{...x.properties,[s]:{...(v=x.properties)==null?void 0:v[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(x=>({...x,...r==null?void 0:r.data})):r&&m.setFormdata(x=>{var v;return{...x,[s]:i.lazyLoading?(v=r==null?void 0:r.data)==null?void 0:v.data:r.data}})}const buildBodyFormat=(r,s,i)=>{let m={...i==null?void 0:i.payload};return r.map(g=>{var x,v;if(typeof(g==null?void 0:g.value)!="string")m[g.key]=g.value;else if((x=g==null?void 0:g.value)!=null&&x.startsWith("$userValue")){const C=g.value.substring(11);m[g.key]=_.get(i,C)}else if((v=g==null?void 0:g.value)!=null&&v.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 x;i.type&&(compType=i.type),eventGroups[m.eventType]||(eventGroups[m.eventType]={}),eventGroups[m.eventType][i.name]||(eventGroups[m.eventType][i.name]=[]);const g=(x=m==null?void 0:m.events)==null?void 0:x.find(v=>v.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 A,$;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 j=await r.service.post("/page/getByName",i,{headers:{"Content-Type":"application/json"}});m=(await r.service.get(`/page/getById?id=${(A=j==null?void 0:j.data)==null?void 0:A.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 x=m==null?void 0:m.config,v=m==null?void 0:m.uiSchema,C=($=m==null?void 0:m.schema)!=null?$:{type:"object",properties:{}};eventGroups={},eventGroups=extractEvents(x),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(j=>({...C,properties:{...C.properties,...j.properties}})),v.elements.push(notifyUiSchema),r.store.setUiSchema(v)},onCellRenderer:i=>{var x;let m={};i.spanRef.current.style.color="yellow";const g=((x=r.dynamicData)==null?void 0:x.tableButtonPath)||r.dynamicData.path.split(".")[0];for(const v of eventGroups==null?void 0:eventGroups.onCellRenderer[g])s.store.functionParameters=i,m=executeEvents({...s,config:v,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 x;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:(x=i.globalFilter)!=null?x:""}],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,x;if(((g=r.store)==null?void 0:g.formData[m])!==r.store.newData[m]&&((x=r.store)==null?void 0:x.newData[m])!==void 0)for(const v of eventGroups.onChange[m])await executeEvents({...s,config:v,componentName:m})}))}},updateConfigApiBody:async function(i,m){var x;let g;for(const v of eventGroups==null?void 0:eventGroups.onLoad[i.path]){v.body?v.body=[...v.body,...m]:v.body=m;const C=(x=v==null?void 0:v.events)==null?void 0:x.filter(A=>A.Handler!=="mergeFormdata");v.events=C!=null?C:[],g=await executeEvents({...s,config:v,componentName:i.path})}return g},onBack:async function(i){var g,x;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((x=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:x[m])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var g,x;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((x=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:x[m])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var g,x;const m=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((x=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:x[m])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,m){var x,v,C;const g=((x=r.dynamicData)==null?void 0:x.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((v=eventGroups==null?void 0:eventGroups[i])==null?void 0:v[g])!==void 0)for(const A of(C=eventGroups==null?void 0:eventGroups[i])==null?void 0:C[g])s.store.functionParameters=m,await executeEvents({...s,config:A,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:{label:"Default Label",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.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};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,s,i){var m,g,x,v,C,A,$,j,re,mt;i?(x=(g=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:g.items)!=null&&x.properties&&(($=(A=(C=(v=exports.schema.properties)==null?void 0:v[s])==null?void 0:C.items)==null?void 0:A.properties)!=null&&$[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((j=r.value)==null?void 0:j.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((re=r.value)==null?void 0:re.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")&&((mt=r.value)==null?void 0:mt.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 $e,gt,se,Ne,$t,he,Ke,ye,Ve,Ce,rt,At;s?(se=(gt=($e=exports.schema.properties)==null?void 0:$e[s])==null?void 0:gt.items)!=null&&se.properties&&((Ke=(he=($t=(Ne=exports.schema.properties)==null?void 0:Ne[s])==null?void 0:$t.items)==null?void 0:he.properties)!=null&&Ke[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((ye=r.value)==null?void 0:ye.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((Ve=r.value)==null?void 0:Ve.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"?(At=(rt=(Ce=exports.schema.properties)==null?void 0:Ce[s])==null?void 0:rt.items)==null||At.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,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"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"){const m={};r.sizeHolder&&r.sizeHolder.map((g,x)=>{m[g.keyName]=g.value}),s.elements=r.elements.map((g,x)=>g.type&&g.type!=="date"&&g.type!=="dateTime"&&g.type!=="amount"?{accessorKey:g.name,header:g.label||g.name,size:m[g.name]||180,type:g.type,widget:buildUiSchema(g)}:{type:g.type,accessorKey:g.name,header:g.label||g.name,size:m[g.name]||180})}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,F+"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=xe(t)))return e;var o=ke(e),a=ke(t),u=mo(o,a),p=go(o,a)+1;return dt(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=xe(t)))return e;var o=ke(e),a=go(o,ke(t))+1;return dt(o,0,a).join("")}function fm(e,t,n){if(e=z(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=xe(t)))return e;var o=ke(e),a=mo(o,ke(t));return dt(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?xe(t.omission):o}e=z(e);var u=e.length;if(Rt(e)){var p=ke(e);u=p.length}if(n>=u)return e;var c=n-Dt(o);if(c<1)return o;var f=p?dt(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(xe(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 ve(e,i,t)}catch(n){return yi(n)?n:new R(n)}}),ym=Qe(function(e,t){return Le(t,function(n){n=Ge(n),Xe(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?q(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(ve(u[0],this,o))return ve(u[1],this,o)}})}function bm(e){return Gu(Te(e,re))}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:Te(e,re))}function Cm(e){return No(Te(e,re))}function wm(e,t){return Wo(e,Te(t,re))}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=ne(t),a=zn(t,o);n==null&&!(J(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,ne(t)));var u=!(J(n)&&"chain"in n)||!!n.chain,p=et(e);return Le(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,at([this.value()],arguments))})}),e}function Am(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Fm(e){return e=P(e),H(function(t){return zo(t,e)})}var Tm=ni(q),Em=ni(lo),Bm=ni(Ar);function ol(e){return ui(e)?Fr(Ge(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 Ai(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>it)return[];var n=We,o=ae(e,We);t=T(t),e-=We;for(var a=Br(o,t);++n<e;)t(n);return a}function Nm(e){return D(e)?q(e,Ge):_e(e)?[e]:de(Ia(z(e)))}function Wm(e){var t=++Xs;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 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=ne,l.keysIn=me,l.map=er,l.mapKeys=Ff,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=Fm,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Ad,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=Fd,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=Ac,l.takeRightWhile=Fc,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=Me,l.escape=Yf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Fa,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=Af,l.isArguments=Lt,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=fe,l.isArrayLikeObject=Q,l.isBoolean=Gd,l.isBuffer=ft,l.isDate=$d,l.isElement=Kd,l.isEmpty=Vd,l.isEqual=Yd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Jd,l.isFunction=et,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=J,l.isObjectLike=Z,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Va,l.isString=or,l.isSymbol=_e,l.isTypedArray=Ut,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Be,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=Ai,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Am,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=tt,l.toInteger=P,l.toLength=qa,l.toLower=um,l.toNumber=Re,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,wi(l,function(){var e={};return ze(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Le(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:te(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,We),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Le(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Fi||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}}),Le(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Le(["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(We)},ze(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,at([M],c));return o&&I?N[0]:N};S&&n&&typeof x=="function"&&x.length!=1&&(f=S=!1);var I=this.__chain__,F=!!this.__actions__.length,E=u&&!I,k=f&&!F;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 Fe(B,I)}return E&&k?e.apply(this,c):(B=this.thru(C),E?o?B.value()[0]:B.value():B)})}),Le(["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)})}}),ze(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,Ne).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:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"},{title:"TreeMap",const:"TreeMap"}]},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/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/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"]),EmptyBox];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,w;(y=r.searchParams)==null||y.get("id");const g=(w=r.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const v=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const A=await i(r,s,v);navigateHandler(r,!0,m?`/${m}?id=${A.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","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"],InputSlider:["Core","Properties","style","Event","Validation"],TreeMap:["Core","Components","Properties","style","Event"]},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,w;((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((w=r==null?void 0:r.newData)==null?void 0:w.type,r)},editComponents:function(){var w,A,K;const g=s.path.split(".")[1],v=(w=r.searchParams)==null?void 0:w.get("path"),y=(A=r.searchParams)==null?void 0:A.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,v),v){const re=`${(K=r.searchParams)==null?void 0:K.get("path")}.elements[${g}]`;r.searchParams.set("path",re),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${g}]`}&id=${y}`)},deleteComponents:function(){var A;const g=(A=r.searchParams)==null?void 0:A.get("path"),v=s.path.split(".")[1];r.formData.elements.splice(v,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,g),w=g?_.get(y,g):y;r.setFormdata(w)},deleteEvent:function(){var w;const g=(w=r.searchParams)==null?void 0:w.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 A,K;const g=s.path.split(".")[1],v=(A=r.searchParams)==null?void 0:A.get("path"),y=(K=r.searchParams)==null?void 0:K.get("id");saveFormdataInLocalStorage(r.ctx.core.data,v);const w=`${v}.events[${g}]`;r.navigate(`/ComponentEvents?path=${w}&id=${y}`)},eventAddHandler:function(){var w,A;const g=(w=r.searchParams)==null?void 0:w.get("path"),v=(A=r.searchParams)==null?void 0:A.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(),w=await this.getSchema();s.setSchema(w),s.setUiSchema(y)},getFormdata:async function(){var A;const v=(A=s.searchParams)==null?void 0:A.get("id");let y={};v&&await g.get(`/page/getById?id=${v}`).then(K=>{var X;y=(X=K.data)==null?void 0:X.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 v=(w=s.searchParams)==null?void 0:w.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 w;const v=(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=${v}`)},editEvent:function(){var A;const v=i.path.split(".")[1],y=(A=s.searchParams)==null?void 0:A.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const w=`events[${v}]`;s.navigate(`/ComponentEvents?path=${w}&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 w=_.cloneDeep(EventUiSchema),A=_.cloneDeep(EventSchema);v&&(v==="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),A.required=["eventType","Handler","eventCode"]):v==="api"?(w.elements[1].elements[0].elements[2]=APISection,A.required=["eventType","Handler","method","path"]):v==="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}),A.required=["eventType","Handler","inBuiltFunctionType"]):v==="refresh"&&(w.elements[1].elements[0].elements[2]=refreshSectionUiSchema,A.properties.refreshElements.required=["value"],A.properties.refreshElements.items.required=["value"],A.required=["eventType","Handler","refreshElements"])),g&&(A.properties.inBuiltFunctionType.oneOf=[...A.properties.inBuiltFunctionType.oneOf,...g]),y.setSchema(A),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 v,y,w;((v=r==null?void 0:r.formData)==null?void 0:v.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,A,K;const v=(w=r.searchParams)==null?void 0:w.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,v);const y=`${v}.events[${(K=(A=r.formData)==null?void 0:A.events)==null?void 0:K.length}]`;r.searchParams.set("path",y),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var A;const v=s.path.split(".")[1],y=(A=r.searchParams)==null?void 0:A.get("path");saveFormdataInLocalStorage(r.ctx.core.data,y);const w=`${y}.events[${v}]`;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 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(w=>w?executeEventsHandler(r):{response:void 0,events:void 0}).then(w=>{var K;i=w,s=(K=r.config)==null?void 0:K.events.filter(X=>X.eventType==="Success")}).catch(w=>{var X,re;const A=(re=(X=r.config)==null?void 0:X.events)==null?void 0:re.filter(mt=>mt.eventType==="Fail");s=(A==null?void 0:A.length)>0?A:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((w,A)=>w.then(()=>executeEvents({...r,config:A,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(K=>K.eventType==="Success")}catch{const w=(y=(v=r.config)==null?void 0:v.events)==null?void 0:y.filter(K=>K.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(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);if(params.config.isSync!=="Yes")makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(r=>r);else return 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 w=g.value.substring(11);m[g.key]=_.get(i,w)}else if((y=g==null?void 0:g.value)!=null&&y.startsWith("$")){const w=g.value.substring(1);m[g.key]=_.get(s,w)}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 A,K;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 X=await r.service.post("/page/getByName",i,{headers:{"Content-Type":"application/json"}});m=(await r.service.get(`/page/getById?id=${(A=X==null?void 0:X.data)==null?void 0:A.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,w=(K=m==null?void 0:m.schema)!=null?K:{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(X=>({...w,properties:{...w.properties,...X.properties}})),y.elements.push(notifyUiSchema),r.store.setUiSchema(y)},onCellRenderer:i=>{var v;let m={};i.spanRef.current.style.color="yellow";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 w=(v=y==null?void 0:y.events)==null?void 0:v.filter(A=>A.Handler!=="mergeFormdata");y.events=w!=null?w:[],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,w;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 A of(w=eventGroups==null?void 0:eventGroups[i])==null?void 0:w[g])s.store.functionParameters=m,executeEvents({...s,config:A,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:{label:"Default Label",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.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,w,A,K,X,re,mt;i?(v=(g=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:g.items)!=null&&v.properties&&((K=(A=(w=(y=exports.schema.properties)==null?void 0:y[s])==null?void 0:w.items)==null?void 0:A.properties)!=null&&K[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((X=r.value)==null?void 0:X.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((re=r.value)==null?void 0:re.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")&&((mt=r.value)==null?void 0:mt.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 $e,gt,se,Ne,$t,he,Ke,ye,Ve,we,rt,At;s?(se=(gt=($e=exports.schema.properties)==null?void 0:$e[s])==null?void 0:gt.items)!=null&&se.properties&&((Ke=(he=($t=(Ne=exports.schema.properties)==null?void 0:Ne[s])==null?void 0:$t.items)==null?void 0:he.properties)!=null&&Ke[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"||((ye=r.value)==null?void 0:ye.length)>0?exports.schema.properties[s].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((Ve=r.value)==null?void 0:Ve.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"?(At=(rt=(we=exports.schema.properties)==null?void 0:we[s])==null?void 0:rt.items)==null||At.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,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);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"){const m={};r.sizeHolder&&r.sizeHolder.map((g,v)=>{m[g.keyName]=g.value}),s.elements=r.elements.map((g,v)=>g.type&&g.type!=="date"&&g.type!=="dateTime"&&g.type!=="amount"?{accessorKey:g.name,header:g.label||g.name,size:m[g.name]||180,type:g.type,widget:buildUiSchema(g)}:{type:g.type,accessorKey:g.name,header:g.label||g.name,size:m[g.name]||180})}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"}})});
28
28
  //# sourceMappingURL=impaktapps-ui-builder.umd.js.map