impaktapps-ui-builder 0.0.409-j → 0.0.409-k

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.
@@ -1,28 +1,28 @@
1
- (function(r,l){typeof exports=="object"&&typeof module!="undefined"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(r=typeof globalThis!="undefined"?globalThis:r||self,l(r.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}},required:["template","name"]},PageMasterUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/pageMaster",options:{widget:"Box"},config:{layout:8,main:{heading:"Page Master"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"WrapperLayout",config:{main:{label:"Page Template",divider:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/template",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Template",options:[{const:"template1",title:"template1"},{const:"template2",title:"template2"},{const:"template3",title:"template3"}],color:"secondary",required:!0}}}]},{type:"TabLayout",config:{main:{tabLabels:["Components","events"],divider:!0},defaultStyle:!0},elements:[{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:"Components Table"},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:"onAddClickHandler",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",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"Edit_Components",tooltipMessage:"Edit 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:"Delete_Components",tooltipMessage:"Reject This Record"}}}}]}]},{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:"Event Table"},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:"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:"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/btn",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:8,lg:7}}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:11.7,main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
1
+ (function(r,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,s(r.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}},required:["template","name"]},PageMasterUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/pageMaster",options:{widget:"Box"},config:{layout:8,main:{heading:"Page Master"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"WrapperLayout",config:{main:{label:"Page Template",divider:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/template",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Template",options:[{const:"template1",title:"template1"},{const:"template2",title:"template2"},{const:"template3",title:"template3"}],color:"secondary",required:!0}}}]},{type:"TabLayout",config:{main:{tabLabels:["Components","events"],divider:!0},defaultStyle:!0},elements:[{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:"Components Table"},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:"onAddClickHandler",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",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"Edit_Components",tooltipMessage:"Edit 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:"Delete_Components",tooltipMessage:"Reject This Record"}}}}]}]},{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:"Event Table"},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:"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:"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/btn",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:8,lg:7}}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:11.7,main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */(function(r,l){(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`",F="__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,Ft=512,ht=30,ll="...",sl=800,ul=16,Ai=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",Ft],["partial",ye],["partialRight",Ve],["rearg",rt]],At="[object Arguments]",gn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Vt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",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),Fl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Wi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Wi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+Wi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+Oi+"]",Vi="\\u200d",Yi="(?:"+Gi+"|"+$i+")",is="(?:"+Et+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Ni+"]?",os="(?:"+Vi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Et+"?"+Gi+"+"+qi+"(?="+[zi,Et,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Et+Yi,"$"].join("|")+")",Et+"?"+Yi+"+"+qi,Et+"+"+Ji,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Vi+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hs=-1,Y={};Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[dr]=Y[fr]=Y[mr]=Y[gr]=!0,Y[At]=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[At]=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=l&&!l.nodeType&&l,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 Fr(d,b){for(var h=-1,L=d==null?0:d.length;++h<L;)if(b(d[h],h,d))return!0;return!1}var Fs=Ar("length");function As(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,b,h){var L;return h(d,function(R,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 Ar(d){return function(b){return b==null?i:b[d]}}function Tr(d){return function(b){return d==null?i:d[b]}}function co(d,b,h,L,R){return R(d,function(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):Fs(d)}function ke(d){return Rt(d)?Ks(d):As(d)}function yo(d){for(var b=d.length;b--&&Dl.test(d.charAt(b)););return b}var Gs=Tr(bs);function $s(d){for(var b=Sr.lastIndex=0;Sr.test(d);)++b;return b}function Ks(d){return d.match(Sr)||[]}function Vs(d){return d.match(ds)||[]}var Ys=function d(b){b=b==null?ie:Pt.defaults(ie.Object(),b,Pt.pick(ie,gs));var h=b.Array,L=b.Date,R=b.Error,W=b.Function,ee=b.Math,$=b.Object,Pr=b.RegExp,qs=b.String,Fe=b.TypeError,In=h.prototype,Js=W.prototype,kt=$.prototype,Ln=b["__core-js_shared__"],Fn=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:""}(),An=kt.toString,Zs=Fn.call($),Qs=ie._,js=Pr("^"+Fn.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 s(e){if(Z(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Ae(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 Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:Fl,evaluate:Al,interpolate:Di,variable:"",imports:{_:s}},s.prototype=On.prototype,s.prototype.constructor=s,Ae.prototype=Ot(On.prototype),Ae.prototype.constructor=Ae;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=Ap(0,a,this.__views__),p=u.start,c=u.end,f=c-p,x=o?c:p-1,S=this.__iteratees__,C=S.length,I=0,A=ae(f,this.__takeCount__);if(!n||!o&&a==f&&A==f)return Jo(e,this.__actions__);var E=[];e:for(;f--&&I<A;){x+=t;for(var k=-1,B=e[x];++k<C;){var M=S[k],N=M.iteratee,Se=M.type,ce=N(B);if(Se==pl)B=ce;else if(!ce){if(Se==Ai)continue e;break e}}E[I++]=B}return E}O.prototype=Ot(On.prototype),O.prototype.constructor=O;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===F?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?F:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function 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 Fu(){this.size=0,this.__data__={hash:new xt,map:new(en||qe),string:new xt}}function Au(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Je.prototype.clear=Fu,Je.prototype.delete=Au,Je.prototype.get=Tu,Je.prototype.has=Eu,Je.prototype.set=Bu;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,F),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function 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 Fo(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Nu(e,t){return Qn(de(e),St(t,0,e.length))}function Wu(e){return Qn(de(e))}function Or(e,t,n){(n!==i&&!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 Ao(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==At||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Ao(p,e))}else{if(!V[C])return a?e:{};p=Bp(e,C,c)}}u||(u=new He);var A=u.get(e);if(A)return A;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 Fe(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)?Fp(e):Wp(e)}function Ur(e,t){return e>t}function Vu(e,t){return e!=null&&G.call(e,t)}function Yu(e,t){return e!=null&&t in $(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 A=S[C],E=t?t(A):A;if(A=n||A!==0?A:0,!(I?Qt(I,E):o(x,E,n))){for(p=u;--p;){var k=c[p];if(!(k?Qt(k,E):o(e[p],E,n)))continue e}I&&I.push(E),x.push(A)}}return x}function 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)==At}function Xu(e){return Z(e)&&ue(e)==Zt}function Zu(e){return Z(e)&&ue(e)==Vt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!Z(e)&&!Z(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?gn:le(e),x=c?gn:le(t);f=f==At?Ye:f,x=x==At?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 A=S&&G.call(e,"__wrapped__"),E=C&&G.call(t,"__wrapped__");if(A||E){var k=A?e.value():e,B=E?t.value():t;return u||(u=new 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),A=!I&&ft(f),E=!I&&!A&&Ut(f);S=f,I||A||E?D(c)?S=c:Q(c)?S=de(c):A?(C=!1,S=Qo(f,!0)):E?(C=!1,S=jo(f,!0)):S=[]:fn(f)||Lt(f)?(S=c,Lt(c)?S=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 Fo(Gt(e))}function up(e,t){var n=Gt(e);return Qn(n,St(t,0,n.length))}function un(e,t,n,o){if(!J(e))return e;t=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,A=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||!A):f?B=E&&I&&!A&&(o||!k):A||k?B=!1:B=o?C<=t:C<t;B?a=S+1:u=S}return ae(u,fl)}function Vo(e,t){for(var n=-1,o=e.length,a=0,u=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!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 A=a;++f<x;)C[A+f]=t[f];for(;++p<c;)(I||a<u)&&(C[A+n[p]]=e[a++]);return C}function de(e,t){var n=-1,o=e.length;for(t||(t=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=Ae.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Fe(y);if(a&&!p&&Xn(u)=="wrapper")var p=new Ae([],!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,A=t&(he|Ke),E=t&Ft,k=I?i:pn(e);function B(){for(var M=arguments.length,N=h(M),Se=M;Se--;)N[Se]=arguments[Se];if(A)var ce=zt(B),Ce=Ds(N,ce);if(o&&(N=ta(N,o,a,A)),u&&(N=na(N,u,p,A)),M-=Ce,A&&M<x){var j=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,A=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,A,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 Fe(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),A=[e,t,n,o,a,S,C,u,p,c];if(I&&Op(A,I),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?f?0:e.length:te(A[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,A);var k=I?Ko:Sa;return Ca(k(E,A),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,A=n&gt?new _t:i;for(u.set(e,t),u.set(t,e);++C<c;){var E=e[C],k=t[C];if(o)var B=p?o(k,E,C,t,e,u):o(E,k,C,e,t,u);if(B!==i){if(B)continue;I=!1;break}if(A){if(!Fr(t,function(M,N){if(!Qt(A,N)&&(E===M||a(E,M,n,o,u)))return A.push(N)})){I=!1;break}}else if(!(E===k||a(E,k,n,o,u))){I=!1;break}}return u.delete(e),u.delete(t),I}function Ip(e,t,n,o,a,u,p){switch(n){case Tt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!u(new En(e),new En(t)));case Kt:case Vt:case Yt:return 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 A=u.get(e),E=u.get(t);if(A&&E)return A==t&&E==e;var k=!0;u.set(e,t),u.set(t,e);for(var B=p;++C<f;){I=c[C];var M=e[I],N=t[I];if(o)var 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(s,"placeholder")?s:e;return t.placeholder}function T(){var e=s.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 Fp(e){var t=G.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=$(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 Ap(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ae(t,e+p);break;case"takeRight":e=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",v=200,b="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",C="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",Y=500,Z="__lodash_placeholder__",re=1,De=2,U=4,Ke=1,gt=2,se=1,We=2,$t=4,he=8,Ve=16,ye=32,Ye=64,Ce=128,it=256,Ft=512,ht=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,yt=1/0,ot=9007199254740991,dl=17976931348623157e292,mn=0/0,ze=4294967295,fl=ze-1,ml=ze>>>1,gl=[["ary",Ce],["bind",se],["bindKey",We],["curry",he],["curryRight",Ve],["flip",Ft],["partial",ye],["partialRight",Ye],["rearg",it]],At="[object Arguments]",gn="[object Array]",hl="[object AsyncFunction]",Kt="[object Boolean]",Vt="[object Date]",yl="[object DOMException]",hn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Pe="[object Map]",Yt="[object Number]",vl="[object Null]",qe="[object Object]",Ei="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",ke="[object Set]",Xt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Tt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),Ll=RegExp(Ri.source),Fl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,El=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(hr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",ki=ql+Xl+Jl,Hi="\\u2700-\\u27bf",Mi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Wi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Wi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+Wi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+Oi+"]",Vi="\\u200d",Yi="(?:"+Gi+"|"+$i+")",is="(?:"+Et+"|"+$i+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Ni+"]?",os="(?:"+Vi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Ji+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),ds=RegExp([Et+"?"+Gi+"+"+qi+"(?="+[zi,Et,"$"].join("|")+")",is+"+"+Xi+"(?="+[zi,Et+Yi,"$"].join("|")+")",Et+"?"+Yi+"+"+qi,Et+"+"+Xi,ls,as,Ui,ss].join("|"),"g"),fs=RegExp("["+Vi+xn+ki+Ni+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hs=-1,V={};V[lr]=V[sr]=V[ur]=V[pr]=V[cr]=V[dr]=V[fr]=V[mr]=V[gr]=!0,V[At]=V[gn]=V[Zt]=V[Kt]=V[Tt]=V[Vt]=V[hn]=V[yn]=V[Pe]=V[Yt]=V[qe]=V[qt]=V[ke]=V[Xt]=V[Jt]=!1;var K={};K[At]=K[gn]=K[Zt]=K[Tt]=K[Kt]=K[Vt]=K[lr]=K[sr]=K[ur]=K[pr]=K[cr]=K[Pe]=K[Yt]=K[qe]=K[qt]=K[ke]=K[Xt]=K[vn]=K[dr]=K[fr]=K[mr]=K[gr]=!0,K[hn]=K[yn]=K[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ie=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,vt=wr&&!0&&r&&!r.nodeType&&r,eo=vt&&vt.exports===wr,Cr=eo&&ji.process,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,g){switch(g.length){case 0:return d.call(y);case 1:return d.call(y,g[0]);case 2:return d.call(y,g[0],g[1]);case 3:return d.call(y,g[0],g[1],g[2])}return d.apply(y,g)}function Cs(d,y,g,L){for(var R=-1,W=d==null?0:d.length;++R<W;){var ee=d[R];y(L,ee,g(ee),d)}return L}function Le(d,y){for(var g=-1,L=d==null?0:d.length;++g<L&&y(d[g],g,d)!==!1;);return d}function Is(d,y){for(var g=d==null?0:d.length;g--&&y(d[g],g,d)!==!1;);return d}function lo(d,y){for(var g=-1,L=d==null?0:d.length;++g<L;)if(!y(d[g],g,d))return!1;return!0}function at(d,y){for(var g=-1,L=d==null?0:d.length,R=0,W=[];++g<L;){var ee=d[g];y(ee,g,d)&&(W[R++]=ee)}return W}function Sn(d,y){var g=d==null?0:d.length;return!!g&&Bt(d,y,0)>-1}function Ir(d,y,g){for(var L=-1,R=d==null?0:d.length;++L<R;)if(g(y,d[L]))return!0;return!1}function q(d,y){for(var g=-1,L=d==null?0:d.length,R=Array(L);++g<L;)R[g]=y(d[g],g,d);return R}function lt(d,y){for(var g=-1,L=y.length,R=d.length;++g<L;)d[R+g]=y[g];return d}function Lr(d,y,g,L){var R=-1,W=d==null?0:d.length;for(L&&W&&(g=d[++R]);++R<W;)g=y(g,d[R],R,d);return g}function Ls(d,y,g,L){var R=d==null?0:d.length;for(L&&R&&(g=d[--R]);R--;)g=y(g,d[R],R,d);return g}function Fr(d,y){for(var g=-1,L=d==null?0:d.length;++g<L;)if(y(d[g],g,d))return!0;return!1}var Fs=Ar("length");function As(d){return d.split("")}function Ts(d){return d.match(Ml)||[]}function so(d,y,g){var L;return g(d,function(R,W,ee){if(y(R,W,ee))return L=W,!1}),L}function wn(d,y,g,L){for(var R=d.length,W=g+(L?1:-1);L?W--:++W<R;)if(y(d[W],W,d))return W;return-1}function Bt(d,y,g){return y===y?zs(d,y,g):wn(d,uo,g)}function Es(d,y,g,L){for(var R=g-1,W=d.length;++R<W;)if(L(d[R],y))return R;return-1}function uo(d){return d!==d}function po(d,y){var g=d==null?0:d.length;return g?Er(d,y)/g:mn}function Ar(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,g,L,R){return R(d,function(W,ee,$){g=L?(L=!1,W):y(g,W,ee,$)}),g}function Bs(d,y){var g=d.length;for(d.sort(y);g--;)d[g]=d[g].value;return d}function Er(d,y){for(var g,L=-1,R=d.length;++L<R;){var W=y(d[L]);W!==i&&(g=g===i?W:g+W)}return g}function Br(d,y){for(var g=-1,L=Array(d);++g<d;)L[g]=y(g);return L}function Rs(d,y){return q(y,function(g){return[g,d[g]]})}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(g){return d[g]})}function Qt(d,y){return d.has(y)}function mo(d,y){for(var g=-1,L=d.length;++g<L&&Bt(y,d[g],0)>-1;);return g}function go(d,y){for(var g=d.length;g--&&Bt(y,d[g],0)>-1;);return g}function Ds(d,y){for(var g=d.length,L=0;g--;)d[g]===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,g=[];!(y=d.next()).done;)g.push(y.value);return g}function Dr(d){var y=-1,g=Array(d.size);return d.forEach(function(L,R){g[++y]=[R,L]}),g}function ho(d,y){return function(g){return d(y(g))}}function st(d,y){for(var g=-1,L=d.length,R=0,W=[];++g<L;){var ee=d[g];(ee===y||ee===Z)&&(d[g]=Z,W[R++]=g)}return W}function Cn(d){var y=-1,g=Array(d.size);return d.forEach(function(L){g[++y]=L}),g}function Ws(d){var y=-1,g=Array(d.size);return d.forEach(function(L){g[++y]=[L,L]}),g}function zs(d,y,g){for(var L=g-1,R=d.length;++L<R;)if(d[L]===y)return L;return-1}function Us(d,y,g){for(var L=g+1;L--;)if(d[L]===y)return L;return L}function Dt(d){return Rt(d)?$s(d):Fs(d)}function He(d){return Rt(d)?Ks(d):As(d)}function yo(d){for(var 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 g=y.Array,L=y.Date,R=y.Error,W=y.Function,ee=y.Math,$=y.Object,Pr=y.RegExp,qs=y.String,Fe=y.TypeError,In=g.prototype,Xs=W.prototype,kt=$.prototype,Ln=y["__core-js_shared__"],Fn=Xs.toString,G=kt.hasOwnProperty,Js=0,vo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),An=kt.toString,Zs=Fn.call($),Qs=ie._,js=Pr("^"+Fn.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?y.Buffer:i,ut=y.Symbol,En=y.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=ho($.getPrototypeOf,$),xo=$.create,_o=kt.propertyIsEnumerable,Rn=In.splice,So=ut?ut.isConcatSpreadable:i,jt=ut?ut.iterator:i,bt=ut?ut.toStringTag:i,Dn=function(){try{var e=Ct($,"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=$.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=y.isFinite,iu=In.join,ou=ho($.keys,$),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($,"create"),Hn=tn&&new tn,Mt={},uu=It(Hr),pu=It(en),cu=It(Mr),du=It(Ht),fu=It(tn),Mn=ut?ut.prototype:i,rn=Mn?Mn.valueOf:i,Io=Mn?Mn.toString:i;function l(e){if(J(e)&&!D(e)&&!(e instanceof O)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Ae(e)}var Ot=function(){function e(){}return function(t){if(!X(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Fl,evaluate:Al,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Ae.prototype=Ot(On.prototype),Ae.prototype.constructor=Ae;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function mu(){var e=new O(this.__wrapped__);return e.__actions__=de(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=de(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=de(this.__views__),e}function gu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function hu(){var e=this.__wrapped__.value(),t=this.__dir__,n=D(e),o=t<0,a=n?e.length:0,u=Ap(0,a,this.__views__),p=u.start,c=u.end,f=c-p,x=o?c:p-1,S=this.__iteratees__,w=S.length,I=0,F=ae(f,this.__takeCount__);if(!n||!o&&a==f&&F==f)return Xo(e,this.__actions__);var E=[];e:for(;f--&&I<F;){x+=t;for(var k=-1,B=e[x];++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==Ai)continue e;break e}}E[I++]=B}return E}O.prototype=Ot(On.prototype),O.prototype.constructor=O;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===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 Xe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Iu(e){return Nn(this.__data__,e)>-1}function Lu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Xe.prototype.clear=Su,Xe.prototype.delete=wu,Xe.prototype.get=Cu,Xe.prototype.has=Iu,Xe.prototype.set=Lu;function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fu(){this.size=0,this.__data__={hash:new xt,map:new(en||Xe),string:new xt}}function Au(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Eu(e){return Zn(this,e).has(e)}function Bu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Je.prototype.clear=Fu,Je.prototype.delete=Au,Je.prototype.get=Tu,Je.prototype.has=Eu,Je.prototype.set=Bu;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,A),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Ru,_t.prototype.has=Du;function Me(e){var t=this.__data__=new Xe(e);this.size=t.size}function Pu(){this.__data__=new Xe,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Xe){var o=n.__data__;if(!en||o.length<v-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(o)}return n.set(e,t),this.size=n.size,this}Me.prototype.clear=Pu,Me.prototype.delete=ku,Me.prototype.get=Hu,Me.prototype.has=Mu,Me.prototype.set=Ou;function Lo(e,t){var n=D(e),o=!n&&Lt(e),a=!n&&!o&&mt(e),u=!n&&!o&&!a&&Ut(e),p=n||o||a||u,c=p?Br(e.length,qs):[],f=c.length;for(var x in e)(t||G.call(e,x))&&!(p&&(x=="length"||a&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||et(x,f)))&&c.push(x);return c}function Fo(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Nu(e,t){return Qn(de(e),St(t,0,e.length))}function Wu(e){return Qn(de(e))}function Or(e,t,n){(n!==i&&!Oe(e[t],n)||n===i&&!(t in e))&&Ze(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&Oe(o,n))||n===i&&!(t in e))&&Ze(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function zu(e,t,n,o){return pt(e,function(a,u,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&Ge(t,ne(t),e)}function Uu(e,t){return e&&Ge(t,me(t),e)}function Ze(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=g(o),u=e==null;++n<o;)a[n]=u?i:bi(e,t[n]);return a}function St(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Te(e,t,n,o,a,u){var p,c=t&re,f=t&De,x=t&U;if(n&&(p=a?n(e,o,a,u):n(e)),p!==i)return p;if(!X(e))return e;var S=D(e);if(S){if(p=Ep(e),!c)return de(e,p)}else{var w=le(e),I=w==yn||w==Ti;if(mt(e))return Qo(e,c);if(w==qe||w==At||I&&!a){if(p=f||I?{}:ya(e),!c)return f?bp(e,Uu(p,e)):vp(e,Ao(p,e))}else{if(!K[w])return a?e:{};p=Bp(e,w,c)}}u||(u=new Me);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 Fe(h);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>=v&&(u=Qt,p=!1,t=new _t(t));e:for(;++a<c;){var S=e[a],w=n==null?S:n(S);if(S=o||S!==0?S:0,p&&w===w){for(var I=x;I--;)if(t[I]===w)continue e;f.push(S)}else u(t,w,o)||f.push(S)}return f}var pt=ra(Ue),Bo=ra(zr,!0);function $u(e,t){var n=!0;return pt(e,function(o,a,u){return n=!!t(o,a,u),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var u=e[o],p=t(u);if(p!=null&&(c===i?p===p&&!_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 pt(e,function(o,a,u){t(o,a,u)&&n.push(o)}),n}function oe(e,t,n,o,a){var u=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++u<p;){var c=e[u];t>0&&n(c)?t>1?oe(c,t-1,n,o,a):lt(a,c):o||(a[a.length]=c)}return a}var Wr=ia(),Do=ia(!0);function Ue(e,t){return e&&Wr(e,t,ne)}function zr(e,t){return e&&Do(e,t,ne)}function zn(e,t){return at(t,function(n){return tt(e[n])})}function wt(e,t){t=dt(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[$e(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return D(e)?o:lt(o,n(e))}function ue(e){return e==null?e===i?xl:vl:bt&&bt in $(e)?Fp(e):Wp(e)}function Ur(e,t){return e>t}function Vu(e,t){return e!=null&&G.call(e,t)}function Yu(e,t){return e!=null&&t in $(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=g(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 w=-1,I=c[0];e:for(;++w<a&&x.length<f;){var F=S[w],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 Xu(e,t,n,o){return Ue(e,function(a,u,p){t(o,n(a),u,p)}),o}function ln(e,t,n){t=dt(t,e),e=_a(e,t);var o=e==null?e:e[$e(Be(t))];return o==null?i:ve(o,e,n)}function ko(e){return J(e)&&ue(e)==At}function Ju(e){return J(e)&&ue(e)==Zt}function Zu(e){return J(e)&&ue(e)==Vt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!J(e)&&!J(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,u){var p=D(e),c=D(t),f=p?gn:le(e),x=c?gn:le(t);f=f==At?qe:f,x=x==At?qe:x;var S=f==qe,w=x==qe,I=f==x;if(I&&mt(e)){if(!mt(t))return!1;p=!0,S=!1}if(I&&!S)return u||(u=new Me),p||Ut(e)?ma(e,t,n,o,a,u):Ip(e,t,f,n,o,a,u);if(!(n&Ke)){var 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 Me),a(k,B,n,o,u)}}return I?(u||(u=new Me),Lp(e,t,n,o,a,u)):!1}function ju(e){return J(e)&&le(e)==Pe}function $r(e,t,n,o){var a=n.length,u=a,p=!o;if(e==null)return!u;for(e=$(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<u;){c=n[a];var f=c[0],x=e[f],S=c[1];if(p&&c[2]){if(x===i&&!(f in e))return!1}else{var w=new Me;if(o)var I=o(x,S,f,e,t,w);if(!(I===i?sn(S,x,Ke|gt,o,w):I))return!1}}return!0}function Ho(e){if(!X(e)||kp(e))return!1;var t=tt(e)?js:Gl;return t.test(It(e))}function ep(e){return J(e)&&ue(e)==qt}function tp(e){return J(e)&&le(e)==ke}function np(e){return J(e)&&ir(e.length)&&!!V[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(!X(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function Vr(e,t){return e<t}function Oo(e,t){var n=-1,o=fe(e)?g(e.length):[];return pt(e,function(a,u,p){o[++n]=t(a,u,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function Wo(e,t){return ui(e)&&va(t)?ba($e(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ke|gt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(u,p){if(a||(a=new Me),X(u))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),u,p+"",e,t,a):i;c===i&&(c=u),Or(e,p,c)}},me)}function ip(e,t,n,o,a,u,p){var c=ci(e,n),f=ci(t,n),x=p.get(f);if(x){Or(e,n,x);return}var S=u?u(c,f,n+"",e,t,p):i,w=S===i;if(w){var I=D(f),F=!I&&mt(f),E=!I&&!F&&Ut(f);S=f,I||F||E?D(c)?S=c:Q(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=Xa(c):(!X(c)||tt(c))&&(S=ya(f))):w=!1}w&&(p.set(f,S),a(S,f,o,u,p),p.delete(f)),Or(e,n,S)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,et(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=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(x){return x(u)});return{criteria:f,index:++o,value:u}});return Bs(a,function(u,p){return yp(u,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,u={};++o<a;){var p=t[o],c=wt(e,p);n(c,p)&&un(u,dt(p,e),c)}return u}function ap(e){return function(t){return wt(t,e)}}function Yr(e,t,n,o){var a=o?Es:Bt,u=-1,p=t.length,c=e;for(e===t&&(t=de(t)),n&&(c=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;et(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(Co()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,u=te(Pn((t-e)/(n||1)),0),p=g(u);u--;)p[o?u:++a]=e,e+=n;return p}function Xr(e,t){var n="";if(!e||t<1||t>ot)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(xa(e,t,ge),e+"")}function sp(e){return Fo(Gt(e))}function up(e,t){var n=Gt(e);return Qn(n,St(t,0,n.length))}function un(e,t,n,o){if(!X(e))return e;t=dt(t,e);for(var a=-1,u=t.length,p=u-1,c=e;c!=null&&++a<u;){var f=$e(t[a]),x=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=p){var S=c[f];x=o?o(S,f,c):i,x===i&&(x=X(S)?S:et(t[a+1])?[]:{})}on(c,f,x),c=c[f]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:ge,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:ge;function cp(e){return Qn(Gt(e))}function 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=g(a);++o<a;)u[o]=e[o+t];return u}function dp(e,t){var n;return pt(e,function(o,a,u){return n=t(o,a,u),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var u=o+a>>>1,p=e[u];p!==null&&!_e(p)&&(n?p<=t:p<t)?o=u+1:a=u}return a}return Jr(e,t,ge,n)}function Jr(e,t,n,o){var a=0,u=e==null?0:e.length;if(u===0)return 0;t=n(t);for(var p=t!==t,c=t===null,f=_e(t),x=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 x?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||!Oe(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 ct(e,t,n){var o=-1,a=Sn,u=e.length,p=!0,c=[],f=c;if(n)p=!1,a=Ir;else if(u>=v){var x=t?null:wp(e);if(x)return Cn(x);p=!1,a=Qt,f=new _t}else f=t?[]:c;e:for(;++o<u;){var S=e[o],w=t?t(S):S;if(S=n||S!==0?S:0,p&&w===w){for(var I=f.length;I--;)if(f[I]===w)continue e;t&&f.push(w),c.push(S)}else a(f,w,n)||(f!==c&&f.push(w),c.push(S))}return c}function Zr(e,t){return t=dt(t,e),e=_a(e,t),e==null||delete e[$e(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 Xo(e,t){var n=e;return n instanceof O&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,lt([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?ct(e[0]):[];for(var a=-1,u=g(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(u[a]=an(u[a]||p,e[c],t,n));return ct(oe(u,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,u=t.length,p={};++o<a;){var c=o<u?t[o]:i;n(p,e[o],c)}return p}function jr(e){return Q(e)?e:[]}function ei(e){return typeof e=="function"?e:ge}function dt(e,t){return D(e)?e:ui(e,t)?[e]:Ia(z(e))}var fp=H;function ft(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e: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=g(f+x),w=!o;++c<f;)S[c]=t[c];for(;++a<p;)(w||a<u)&&(S[n[a]]=e[a]);for(;x--;)S[c++]=e[a++];return S}function na(e,t,n,o){for(var a=-1,u=e.length,p=-1,c=n.length,f=-1,x=t.length,S=te(u-c,0),w=g(S+x),I=!o;++a<S;)w[a]=e[a];for(var F=a;++f<x;)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=g(o));++n<o;)t[n]=e[n];return t}function Ge(e,t,n,o){var a=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var c=t[u],f=o?o(n[c],e[c],c,n,e):i;f===i&&(f=e[c]),a?Ze(n,c,f):on(n,c,f)}return n}function vp(e,t){return Ge(e,si(e),t)}function bp(e,t){return Ge(e,ga(e),t)}function Kn(e,t){return function(n,o){var a=D(n)?Cs:zu,u=t?t():{};return a(n,e,T(o,2),u)}}function Nt(e){return H(function(t,n){var o=-1,a=n.length,u=a>1?n[a-1]:i,p=a>2?n[2]:i;for(u=e.length>3&&typeof u=="function"?(a--,u):i,p&&pe(n[0],n[1],p)&&(u=a<3?i:u,a=1),t=$(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)?He(t):i,o=n?n[0]:t.charAt(0),a=n?ft(n,1).join(""):t.slice(1);return o[e]()+a}}function Wt(e){return function(t){return Lr(rl(nl(t).replace(ps,"")),e,"")}}function pn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ot(e.prototype),o=e.apply(n,t);return X(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var u=arguments.length,p=g(u),c=u,f=zt(a);c--;)p[c]=arguments[c];var x=u<3&&p[0]!==f&&p[u-1]!==f?[]:st(p,f);if(u-=x.length,u<n)return pa(e,t,Vn,a.placeholder,i,p,x,i,i,n-u);var S=this&&this!==ie&&this instanceof a?o:e;return 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 je(function(t){var n=t.length,o=n,a=Ae.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if(typeof u!="function")throw new Fe(h);if(a&&!p&&Jn(u)=="wrapper")var p=new Ae([],!0)}for(o=p?o:n;++o<n;){u=t[o];var c=Jn(u),f=c=="wrapper"?ai(u):i;f&&pi(f[0])&&f[1]==(Ce|he|ye|it)&&!f[4].length&&f[9]==1?p=p[Jn(f[0])].apply(p,f[3]):p=u.length==1&&pi(u)?p[c]():p.thru(u)}return function(){var x=arguments,S=x[0];if(p&&x.length==1&&D(S))return p.plant(S).value();for(var w=0,I=n?t[w].apply(this,x):S;++w<n;)I=t[w].call(this,I);return I}})}function Vn(e,t,n,o,a,u,p,c,f,x){var S=t&Ce,w=t&se,I=t&We,F=t&(he|Ve),E=t&Ft,k=I?i:pn(e);function B(){for(var M=arguments.length,N=g(M),Se=M;Se--;)N[Se]=arguments[Se];if(F)var ce=zt(B),we=Ds(N,ce);if(o&&(N=ta(N,o,a,F)),u&&(N=na(N,u,p,F)),M-=we,F&&M<x){var j=st(N,ce);return pa(e,t,Vn,B.placeholder,n,N,j,c,f,x-M)}var Ne=w?n:this,rt=I?Ne[e]:e;return M=N.length,c?N=zp(N,c):E&&M>1&&N.reverse(),S&&f<M&&(N.length=f),this&&this!==ie&&this instanceof B&&(rt=k||pn(rt)),rt.apply(Ne,N)}return B}function sa(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function Yn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=xe(n),o=xe(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ni(e){return je(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?Xr(t,e):t;var o=Xr(t,Pn(e/Dt(t)));return Rt(t)?ft(He(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&se,u=pn(e);function p(){for(var c=-1,f=arguments.length,x=-1,S=o.length,w=g(S+f),I=this&&this!==ie&&this instanceof p?u:e;++x<S;)w[x]=o[x];for(;f--;)w[x++]=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=nt(t),n===i?(n=t,t=0):n=nt(n),o=o===i?t<n?1:-1:nt(o),lp(t,n,o,e)}}function Xn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Re(t),n=Re(n)),e(t,n)}}function pa(e,t,n,o,a,u,p,c,f,x){var S=t&he,w=S?p:i,I=S?i:p,F=S?u:i,E=S?i:u;t|=S?ye:Ye,t&=~(S?Ye:ye),t&$t||(t&=~(se|We));var k=[e,t,a,F,w,E,I,c,f,x],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=ee[e];return function(n,o){if(n=Re(n),o=o==null?0:ae(P(o),292),o&&wo(n)){var a=(z(n)+"e").split("e"),u=t(a[0]+"e"+(+a[1]+o));return a=(z(u)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=Ht&&1/Cn(new Ht([,-0]))[1]==yt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var n=le(t);return n==Pe?Dr(t):n==ke?Ws(t):Rs(t,e(t))}}function Qe(e,t,n,o,a,u,p,c){var f=t&We;if(!f&&typeof e!="function")throw new Fe(h);var x=o?o.length:0;if(x||(t&=~(ye|Ye),o=a=i),p=p===i?p:te(P(p),0),c=c===i?c:P(c),x-=a?a.length:0,t&Ye){var S=o,w=a;o=a=i}var I=f?i:ai(e),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]-x,0),!c&&t&(he|Ve)&&(t&=~(he|Ve)),!t||t==se)var E=xp(e,t,n);else t==he||t==Ve?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||Oe(e,kt[n])&&!G.call(o,n)?t:e}function fa(e,t,n,o,a,u){return X(e)&&X(t)&&(u.set(t,e),Un(e,t,i,fa,u),u.delete(t)),e}function Cp(e){return fn(e)?i:e}function ma(e,t,n,o,a,u){var p=n&Ke,c=e.length,f=t.length;if(c!=f&&!(p&&f>c))return!1;var x=u.get(e),S=u.get(t);if(x&&S)return x==t&&S==e;var 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(!Fr(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 Oe(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case qt:case Xt:return e==t+"";case Pe:var c=Dr;case ke:var f=o&Ke;if(c||(c=Cn),e.size!=t.size&&!f)return!1;var x=p.get(e);if(x)return x==t;o|=gt,p.set(e,t);var S=ma(c(e),c(t),o,a,u,p);return p.delete(e),S;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Lp(e,t,n,o,a,u){var p=n&Ke,c=ii(e),f=c.length,x=ii(t),S=x.length;if(f!=S&&!p)return!1;for(var 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 je(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 Jn(e){for(var t=e.name+"",n=Mt[t],o=G.call(Mt,t)?n.length:0;o--;){var a=n[o],u=a.func;if(u==null||u==e)return a.name}return t}function zt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function T(){var e=l.iteratee||wi;return e=e===wi?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=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 Fp(e){var t=G.call(e,bt),n=e[bt];try{e[bt]=i;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var si=kr?function(e){return e==null?[]:(e=$(e),at(kr(e),function(t){return _o.call(e,t)}))}:Li,ga=kr?function(e){for(var t=[];e;)lt(t,si(e)),e=Bn(e);return t}:Li,le=ue;(Hr&&le(new Hr(new ArrayBuffer(1)))!=Tt||en&&le(new en)!=Pe||Mr&&le(Mr.resolve())!=Ei||Ht&&le(new Ht)!=ke||tn&&le(new tn)!=Jt)&&(le=function(e){var t=ue(e),n=t==qe?e.constructor:i,o=n?It(n):"";if(o)switch(o){case uu:return Tt;case pu:return Pe;case cu:return Ei;case du:return ke;case fu:return Jt}return t});function Ap(e,t,n){for(var o=-1,a=n.length;++o<a;){var u=n[o],p=u.size;switch(u.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ae(t,e+p);break;case"takeRight":e=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=dt(t,e);for(var o=-1,a=t.length,u=!1;++o<a;){var p=$e(t[o]);if(!(u=e!=null&&n(e,p)))break;e=e[p]}return u||++o!=a?u:(a=e==null?0:e.length,!!a&&ir(a)&&et(p,a)&&(D(e)||Lt(e)))}function Ep(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bp(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case Vt:return new o(+e);case Tt:return mp(e,n);case lr:case sr:case ur:case pr:case cr:case dr:case fr:case mr:case gr:return jo(e,n);case Pe:return new o;case Yt:case Xt:return new o(e);case qt:return gp(e);case ke:return new o;case vn:return hp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dp(e){return D(e)||Lt(e)||!!(So&&e&&e[So])}function 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=s[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:Fi;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kt;return e===n}function va(e){return e===e&&!J(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in $(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 An.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 Fn.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 Ae(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 Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=te(o+a,0)),Cn(e,T(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?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 Fc(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 Ac(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return 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,Ar(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=s(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 Ae(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Ae(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 Ae(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(Fa),rd=aa(Aa);function id(e,t){return oe(er(e,t),1)}function od(e,t){return oe(er(e,t),yt)}function ad(e,t,n){return n=n===i?1:P(n),oe(er(e,t),n)}function Pa(e,t){var n=D(e)?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)?Fo:sp;return t(e)}function yd(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?Wu:cp;return t(e)}function bd(e){if(e==null)return 0;if(fe(e))return or(e)?Dt(e):e.length;var t=le(e);return t==De||t==Pe?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Fr:dp;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&pe(e,t[0],t[1])?t=[]:n>2&&pe(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,oe(t,1),[])}),tr=tu||function(){return ie.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Fe(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 Fe(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 Fe(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 A(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?A(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?A(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),A(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,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Fe(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 Fe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Fd=fp(function(e,t){t=t.length==1&&D(t[0])?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)}),Ad=Qe(function(e,t){return Ze(e,rt,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Fe(y);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Fe(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 Fe(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||Fi,$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&&Fn.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:Ao(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=An.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Ff=H(ln);function ne(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Af(e,t){var n={};return t=T(t,3),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=s.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"),A="//# 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+=`' +
10
+ `)}function Dp(e){return D(e)||Lt(e)||!!(So&&e&&e[So])}function et(e,t){var n=typeof e;return t=t==null?ot:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function pe(e,t,n){if(!X(n))return!1;var o=typeof t;return(o=="number"?fe(n)&&et(t,n.length):o=="string"&&t in n)?Oe(n[t],e):!1}function ui(e,t){if(D(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_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=Jn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=Ln?tt:Fi;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kt;return e===n}function va(e){return e===e&&!X(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===Y&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,u=a<(se|We|Ce),p=o==Ce&&n==he||o==Ce&&n==it&&e[7].length<=t[8]||o==(Ce|it)&&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?st(e[3],Z):t[4]}return c=t[5],c&&(f=e[5],e[5]=f?na(f,c,t[6]):c,e[6]=f?st(e[5],Z):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 $(e))t.push(n);return t}function Wp(e){return An.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=g(u);++a<u;)p[a]=o[t+a];a=-1;for(var c=g(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ve(e,this,c)}}function _a(e,t){return t.length<2?e:wt(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]=et(u,n)?a[u]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=Ca(Ko),dn=nu||function(e,t){return ie.setTimeout(e,t)},di=Ca(pp);function wa(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function Ca(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var u=qr(n,a),p=e[u];e[u]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(n,o,a,u){t.push(a?u.replace(Nl,"$1"):o||n)}),t});function $e(e){if(typeof e=="string"||_e(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function It(e){if(e!=null){try{return Fn.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return 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 Ae(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=g(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=g(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return lt(D(n)?de(n):[n],oe(t,1))}var Vp=H(function(e,t){return Q(e)?an(e,oe(t,1,Q,!0)):[]}),Yp=H(function(e,t){var n=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 Xp(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 Jp(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 Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:P(n);return a<0&&(a=te(o+a,0)),wn(e,T(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=P(n),a=n<0?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?zo(e,P(t)):i}var cc=H(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,T(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,i,n):e}var mc=je(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,q(t,function(a){return et(a,n)?+a:a}).sort(ea)),o});function gc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],u=e.length;for(t=T(t,3);++o<u;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function fi(e){return e==null?e:su.call(e)}function hc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&pe(e,t,n)?(t=0,n=o):(t=t==null?0:P(t),n=n===i?o:P(n)),Ee(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,T(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&Oe(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,T(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(Oe(e[o],t))return o}return-1}function wc(e){return e&&e.length?Vo(e):[]}function Cc(e,t){return e&&e.length?Vo(e,T(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?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 Fc(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 Ac(e,t){return e&&e.length?$n(e,T(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,T(t,3)):[]}var Ec=H(function(e){return ct(oe(e,1,Q,!0))}),Bc=H(function(e){var t=Be(e);return Q(t)&&(t=i),ct(oe(e,1,Q,!0),T(t,2))}),Rc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,ct(oe(e,1,Q,!0),i,t)});function Dc(e){return e&&e.length?ct(e):[]}function Pc(e,t){return e&&e.length?ct(e,T(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ct(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=at(e,function(n){if(Q(n))return t=te(n.length,t),!0}),Br(t,function(n){return q(e,Ar(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(at(e,Q))}),Oc=H(function(e){var t=Be(e);return Q(t)&&(t=i),Qr(at(e,Q),T(t,2))}),Nc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,Qr(at(e,Q),i,t)}),Wc=H(mi);function zc(e,t){return Jo(e||[],t||[],on)}function Uc(e,t){return Jo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=je(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(u){return Nr(u,e)};return t>1||this.__actions__.length||!(o instanceof O)||!et(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Ae(o,this.__chain__).thru(function(u){return t&&!u.length&&u.push(i),u}))});function Vc(){return Da(this)}function Yc(){return new Ae(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Ya(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=La(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Ae(t,this.__chain__)}return this.thru(fi)}function Qc(){return Xo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Ze(e,n,1)});function ed(e,t,n){var o=D(e)?lo:$u;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}function td(e,t){var n=D(e)?at:Ro;return n(e,T(t,3))}var nd=aa(Fa),rd=aa(Aa);function id(e,t){return oe(er(e,t),1)}function od(e,t){return oe(er(e,t),yt)}function ad(e,t,n){return n=n===i?1:P(n),oe(er(e,t),n)}function Pa(e,t){var n=D(e)?Le:pt;return n(e,T(t,3))}function ka(e,t){var n=D(e)?Is:Bo;return n(e,T(t,3))}var ld=Kn(function(e,t,n){G.call(e,n)?e[n].push(t):Ze(e,n,[t])});function sd(e,t,n,o){e=fe(e)?e:Gt(e),n=n&&!o?P(n):0;var a=e.length;return n<0&&(n=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)?g(e.length):[];return pt(e,function(p){u[++o]=a?ve(t,p,n):ln(p,t,n)}),u}),pd=Kn(function(e,t,n){Ze(e,n,t)});function er(e,t){var n=D(e)?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,pt)}function md(e,t,n){var o=D(e)?Ls:co,a=arguments.length<3;return o(e,T(t,4),n,a,Bo)}function gd(e,t){var n=D(e)?at:Ro;return n(e,rr(T(t,3)))}function hd(e){var t=D(e)?Fo:sp;return t(e)}function yd(e,t,n){(n?pe(e,t,n):t===i)?t=1:t=P(t);var o=D(e)?Nu:up;return o(e,t)}function vd(e){var t=D(e)?Wu:cp;return t(e)}function bd(e){if(e==null)return 0;if(fe(e))return or(e)?Dt(e):e.length;var t=le(e);return t==Pe||t==ke?e.size:Kr(e).length}function xd(e,t,n){var o=D(e)?Fr:dp;return n&&pe(e,t,n)&&(t=i),o(e,T(t,3))}var _d=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&pe(e,t[0],t[1])?t=[]:n>2&&pe(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,oe(t,1),[])}),tr=tu||function(){return ie.Date.now()};function Sd(e,t){if(typeof t!="function")throw new Fe(h);return e=P(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Qe(e,Ce,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Fe(h);return e=P(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var gi=H(function(e,t,n){var o=se;if(n.length){var a=st(n,zt(gi));o|=ye}return Qe(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=se|We;if(n.length){var a=st(n,zt(Oa));o|=ye}return Qe(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Qe(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=Qe(e,Ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,u,p,c,f,x=0,S=!1,w=!1,I=!0;if(typeof e!="function")throw new Fe(h);t=Re(t)||0,X(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(j){var Ne=o,rt=a;return o=a=i,x=j,p=e.apply(rt,Ne),p}function E(j){return x=j,c=dn(M,t),S?F(j):p}function k(j){var Ne=j-f,rt=j-x,al=t-Ne;return w?ae(al,u-rt):al}function B(j){var Ne=j-f,rt=j-x;return f===i||Ne>=t||Ne<0||w&&rt>=u}function M(){var j=tr();if(B(j))return N(j);c=dn(M,k(j))}function N(j){return c=i,I&&o?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 we(){var j=tr(),Ne=B(j);if(o=arguments,a=this,f=j,Ne){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 Qe(e,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Fe(h);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 Fe(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ld(e){return Ma(2,e)}var Fd=fp(function(e,t){t=t.length==1&&D(t[0])?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=st(t,zt(hi));return Qe(e,ye,i,t,n)}),Ua=H(function(e,t){var n=st(t,zt(Ua));return Qe(e,Ye,i,t,n)}),Ad=je(function(e,t){return Qe(e,it,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Fe(h);return t=t===i?t:P(t),H(e,t)}function Ed(e,t){if(typeof e!="function")throw new Fe(h);return t=t==null?0:te(P(t),0),H(function(n){var o=n[t],a=ft(n,0,t);return o&&lt(a,o),ve(e,this,a)})}function Bd(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Fe(h);return X(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ha(e,1)}function Dd(e,t){return hi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return D(e)?e:[e]}function kd(e){return 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 Oe(e,t){return e===t||e!==e&&t!==t}var Wd=Xn(Ur),zd=Xn(function(e,t){return e>=t}),Lt=ko(function(){return arguments}())?ko:function(e){return J(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},D=g.isArray,Ud=to?be(to):Ju;function fe(e){return e!=null&&ir(e.length)&&!tt(e)}function Q(e){return J(e)&&fe(e)}function Gd(e){return e===!0||e===!1||J(e)&&ue(e)==Kt}var mt=ru||Fi,$d=no?be(no):Zu;function Kd(e){return J(e)&&e.nodeType===1&&!fn(e)}function Vd(e){if(e==null)return!0;if(fe(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||mt(e)||Ut(e)||Lt(e)))return!e.length;var t=le(e);if(t==Pe||t==ke)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Yd(e,t){return sn(e,t)}function qd(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!J(e))return!1;var t=ue(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Xd(e){return typeof e=="number"&&wo(e)}function tt(e){if(!X(e))return!1;var t=ue(e);return t==yn||t==Ti||t==hl||t==bl}function Ga(e){return typeof e=="number"&&e==P(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ot}function X(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e!=null&&typeof e=="object"}var $a=ro?be(ro):ju;function Jd(e,t){return e===t||$r(e,t,li(t))}function Zd(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function Qd(e){return Ka(e)&&e!=+e}function jd(e){if(Hp(e))throw new R(b);return Ho(e)}function ef(e){return e===null}function tf(e){return e==null}function Ka(e){return typeof e=="number"||J(e)&&ue(e)==Yt}function fn(e){if(!J(e)||ue(e)!=qe)return!1;var t=Bn(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fn.call(n)==Zs}var vi=io?be(io):ep;function nf(e){return Ga(e)&&e>=-ot&&e<=ot}var Va=oo?be(oo):tp;function or(e){return typeof e=="string"||!D(e)&&J(e)&&ue(e)==Xt}function _e(e){return typeof e=="symbol"||J(e)&&ue(e)==vn}var Ut=ao?be(ao):np;function rf(e){return e===i}function of(e){return J(e)&&le(e)==Jt}function af(e){return J(e)&&ue(e)==_l}var lf=Xn(Vr),sf=Xn(function(e,t){return e<=t});function Ya(e){if(!e)return[];if(fe(e))return or(e)?He(e):de(e);if(jt&&e[jt])return Ns(e[jt]());var t=le(e),n=t==Pe?Dr:t==ke?Cn:Gt;return n(e)}function nt(e){if(!e)return e===0?e:0;if(e=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=nt(e),n=t%1;return t===t?n?t-n:t:0}function qa(e){return e?St(P(e),0,ze):0}function Re(e){if(typeof e=="number")return e;if(_e(e))return mn;if(X(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=X(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?mn:+e}function Xa(e){return Ge(e,me(e))}function uf(e){return e?St(P(e),-ot,ot):e===0?e:0}function z(e){return e==null?"":xe(e)}var pf=Nt(function(e,t){if(cn(t)||fe(t)){Ge(t,ne(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Ja=Nt(function(e,t){Ge(t,me(t),e)}),ar=Nt(function(e,t,n,o){Ge(t,me(t),e,o)}),cf=Nt(function(e,t,n,o){Ge(t,ne(t),e,o)}),df=je(Nr);function ff(e,t){var n=Ot(e);return t==null?n:Ao(n,t)}var mf=H(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&pe(t[0],t[1],a)&&(o=1);++n<o;)for(var u=t[n],p=me(u),c=-1,f=p.length;++c<f;){var x=p[c],S=e[x];(S===i||Oe(S,kt[x])&&!G.call(e,x))&&(e[x]=u[x])}return e}),gf=H(function(e){return e.push(i,fa),ve(Za,i,e)});function hf(e,t){return so(e,T(t,3),Ue)}function yf(e,t){return so(e,T(t,3),zr)}function vf(e,t){return e==null?e:Wr(e,T(t,3),me)}function bf(e,t){return e==null?e:Do(e,T(t,3),me)}function xf(e,t){return e&&Ue(e,T(t,3))}function _f(e,t){return e&&zr(e,T(t,3))}function Sf(e){return e==null?[]:zn(e,ne(e))}function wf(e){return e==null?[]:zn(e,me(e))}function bi(e,t,n){var o=e==null?i:wt(e,t);return o===i?n:o}function Cf(e,t){return e!=null&&ha(e,t,Vu)}function xi(e,t){return e!=null&&ha(e,t,Yu)}var If=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),e[t]=n},Si(ge)),Lf=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},T),Ff=H(ln);function ne(e){return fe(e)?Lo(e):Kr(e)}function me(e){return fe(e)?Lo(e,!0):rp(e)}function Af(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,t(o,a,u),o)}),n}function Tf(e,t){var n={};return t=T(t,3),Ue(e,function(o,a,u){Ze(n,a,t(o,a,u))}),n}var Ef=Nt(function(e,t,n){Un(e,t,n)}),Za=Nt(function(e,t,n,o){Un(e,t,n,o)}),Bf=je(function(e,t){var n={};if(e==null)return n;var o=!1;t=q(t,function(u){return u=dt(u,e),o||(o=u.length>1),u}),Ge(e,oi(e),n),o&&(n=Te(n,re|De|U,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rf(e,t){return Qa(e,rr(T(t)))}var Df=je(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=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=dt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var u=e==null?i:e[$e(t[o])];u===i&&(o=a,u=n),e=tt(u)?u.call(e):u}return e}function kf(e,t,n){return e==null?e:un(e,t,n)}function Hf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(ne),el=ca(me);function Mf(e,t,n){var o=D(e),a=o||mt(e)||Ut(e);if(t=T(t,4),n==null){var u=e&&e.constructor;a?n=o?new u:[]:X(e)?n=tt(u)?Ot(Bn(e)):{}:n={}}return(a?Le:Ue)(e,function(p,c,f){return t(n,p,c,f)}),n}function Of(e,t){return e==null?!0:Zr(e,t)}function Nf(e,t,n){return e==null?e:qo(e,t,ei(n))}function Wf(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(n),o)}function Gt(e){return e==null?[]:Rr(e,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=nt(t),n===i?(n=t,t=0):n=nt(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=nt(e),t===i?(t=e,e=0):t=nt(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Co();return ae(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kf=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(z(e).toLowerCase())}function nl(e){return e=z(e),e&&e.replace(Vl,Ps).replace(cs,"")}function Vf(e,t,n){e=z(e),t=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 Xf=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jf=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),n)+e+qn(Pn(a),n)}function jf(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?e+qn(t-o,n):e}function em(e,t,n){e=z(e),t=P(t);var o=t?Dt(e):0;return t&&o<t?qn(t-o,n)+e:e}function tm(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(yr,""),t||0)}function nm(e,t,n){return(n?pe(e,t,n):t===i)?t=1:t=P(t),Xr(z(e),t)}function rm(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=Wt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function om(e,t,n){return n&&typeof n!="number"&&pe(e,t,n)&&(t=n=i),n=n===i?ze:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=xe(t),!t&&Rt(e))?ft(He(e),0,n):e.split(t,n)):[]}var am=Wt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lm(e,t,n){return e=z(e),n=n==null?0:St(P(n),0,e.length),t=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,w="__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,we){return N||(N=Se),w+=e.slice(x,we).replace(Yl,Hs),M&&(c=!0,w+=`' +
12
12
  __e(`+M+`) +
13
- '`),ce&&(f=!0,C+=`';
13
+ '`),ce&&(f=!0,w+=`';
14
14
  `+ce+`;
15
- __p += '`),N&&(C+=`' +
15
+ __p += '`),N&&(w+=`' +
16
16
  ((__t = (`+N+`)) == null ? '' : __t) +
17
- '`),x=Ce+B.length,B}),C+=`';
18
- `;var E=G.call(t,"variable")&&t.variable;if(!E)C=`with (obj) {
19
- `+C+`
17
+ '`),x=we+B.length,B}),w+=`';
18
+ `;var E=G.call(t,"variable")&&t.variable;if(!E)w=`with (obj) {
19
+ `+w+`
20
20
  }
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")+`) {
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")+`) {
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
- `)+C+`return __p
27
- }`;var k=il(function(){return W(u,A+"return "+C).apply(i,p)});if(k.source=C,yi(k))throw k;return k}function um(e){return z(e).toLowerCase()}function pm(e){return z(e).toUpperCase()}function cm(e,t,n){if(e=z(e),e&&(n||t===i))return fo(e);if(!e||!(t=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 Fe(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 Fm(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Am(e){return e=P(e),H(function(t){return zo(t,e)})}var Tm=ni(q),Em=ni(lo),Bm=ni(Fr);function ol(e){return ui(e)?Ar(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 Fi(){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 s.after=Sd,s.ary=Ha,s.assign=pf,s.assignIn=Xa,s.assignInWith=ar,s.assignWith=cf,s.at=df,s.before=Ma,s.bind=gi,s.bindAll=ym,s.bindKey=Oa,s.castArray=Pd,s.chain=Da,s.chunk=Gp,s.compact=$p,s.concat=Kp,s.cond=vm,s.conforms=bm,s.constant=Si,s.countBy=jc,s.create=ff,s.curry=Na,s.curryRight=Wa,s.debounce=za,s.defaults=mf,s.defaultsDeep=gf,s.defer=Cd,s.delay=wd,s.difference=Vp,s.differenceBy=Yp,s.differenceWith=qp,s.drop=Jp,s.dropRight=Xp,s.dropRightWhile=Zp,s.dropWhile=Qp,s.fill=jp,s.filter=td,s.flatMap=id,s.flatMapDeep=od,s.flatMapDepth=ad,s.flatten=Ta,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=_m,s.flowRight=Sm,s.fromPairs=nc,s.functions=Sf,s.functionsIn=Cf,s.groupBy=ld,s.initial=ic,s.intersection=oc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=If,s.invertBy=Lf,s.invokeMap=ud,s.iteratee=Ci,s.keyBy=pd,s.keys=ne,s.keysIn=me,s.map=er,s.mapKeys=Af,s.mapValues=Tf,s.matches=Cm,s.matchesProperty=wm,s.memoize=nr,s.merge=Ef,s.mergeWith=Za,s.method=Im,s.methodOf=Lm,s.mixin=wi,s.negate=rr,s.nthArg=Am,s.omit=Bf,s.omitBy=Rf,s.once=Ld,s.orderBy=cd,s.over=Tm,s.overArgs=Fd,s.overEvery=Em,s.overSome=Bm,s.partial=hi,s.partialRight=Ua,s.partition=dd,s.pick=Df,s.pickBy=Qa,s.property=ol,s.propertyOf=Rm,s.pull=cc,s.pullAll=Ba,s.pullAllBy=dc,s.pullAllWith=fc,s.pullAt=mc,s.range=Dm,s.rangeRight=Pm,s.rearg=Ad,s.reject=gd,s.remove=gc,s.rest=Td,s.reverse=fi,s.sampleSize=yd,s.set=kf,s.setWith=Hf,s.shuffle=vd,s.slice=hc,s.sortBy=_d,s.sortedUniq=Cc,s.sortedUniqBy=wc,s.split=om,s.spread=Ed,s.tail=Ic,s.take=Lc,s.takeRight=Fc,s.takeRightWhile=Ac,s.takeWhile=Tc,s.tap=$c,s.throttle=Bd,s.thru=jn,s.toArray=Ya,s.toPairs=ja,s.toPairsIn=el,s.toPath=Nm,s.toPlainObject=Ja,s.transform=Mf,s.unary=Rd,s.union=Ec,s.unionBy=Bc,s.unionWith=Rc,s.uniq=Dc,s.uniqBy=Pc,s.uniqWith=kc,s.unset=Of,s.unzip=mi,s.unzipWith=Ra,s.update=Nf,s.updateWith=Wf,s.values=Gt,s.valuesIn=zf,s.without=Hc,s.words=rl,s.wrap=Dd,s.xor=Mc,s.xorBy=Oc,s.xorWith=Nc,s.zip=Wc,s.zipObject=zc,s.zipObjectDeep=Uc,s.zipWith=Gc,s.entries=ja,s.entriesIn=el,s.extend=Xa,s.extendWith=ar,wi(s,s),s.add=zm,s.attempt=il,s.camelCase=Kf,s.capitalize=tl,s.ceil=Um,s.clamp=Uf,s.clone=kd,s.cloneDeep=Md,s.cloneDeepWith=Od,s.cloneWith=Hd,s.conformsTo=Nd,s.deburr=nl,s.defaultTo=xm,s.divide=Gm,s.endsWith=Vf,s.eq=Me,s.escape=Yf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Fa,s.findKey=hf,s.findLast=rd,s.findLastIndex=Aa,s.findLastKey=yf,s.floor=$m,s.forEach=Pa,s.forEachRight=ka,s.forIn=vf,s.forInRight=bf,s.forOwn=xf,s.forOwnRight=_f,s.get=bi,s.gt=Wd,s.gte=zd,s.has=wf,s.hasIn=xi,s.head=Ea,s.identity=ge,s.includes=sd,s.indexOf=rc,s.inRange=Gf,s.invoke=Ff,s.isArguments=Lt,s.isArray=D,s.isArrayBuffer=Ud,s.isArrayLike=fe,s.isArrayLikeObject=Q,s.isBoolean=Gd,s.isBuffer=ft,s.isDate=$d,s.isElement=Kd,s.isEmpty=Vd,s.isEqual=Yd,s.isEqualWith=qd,s.isError=yi,s.isFinite=Jd,s.isFunction=et,s.isInteger=Ga,s.isLength=ir,s.isMap=$a,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tf,s.isNull=ef,s.isNumber=Ka,s.isObject=J,s.isObjectLike=Z,s.isPlainObject=fn,s.isRegExp=vi,s.isSafeInteger=nf,s.isSet=Va,s.isString=or,s.isSymbol=_e,s.isTypedArray=Ut,s.isUndefined=rf,s.isWeakMap=of,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Be,s.lastIndexOf=uc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Km,s.maxBy=Vm,s.mean=Ym,s.meanBy=qm,s.min=Jm,s.minBy=Xm,s.stubArray=Li,s.stubFalse=Fi,s.stubObject=km,s.stubString=Hm,s.stubTrue=Mm,s.multiply=Zm,s.nth=pc,s.noConflict=Fm,s.noop=Ii,s.now=tr,s.pad=Qf,s.padEnd=jf,s.padStart=em,s.parseInt=tm,s.random=$f,s.reduce=fd,s.reduceRight=md,s.repeat=nm,s.replace=rm,s.result=Pf,s.round=Qm,s.runInContext=d,s.sample=hd,s.size=bd,s.snakeCase=im,s.some=xd,s.sortedIndex=yc,s.sortedIndexBy=vc,s.sortedIndexOf=bc,s.sortedLastIndex=xc,s.sortedLastIndexBy=_c,s.sortedLastIndexOf=Sc,s.startCase=am,s.startsWith=lm,s.subtract=jm,s.sum=eg,s.sumBy=tg,s.template=sm,s.times=Om,s.toFinite=tt,s.toInteger=P,s.toLength=qa,s.toLower=um,s.toNumber=Re,s.toSafeInteger=uf,s.toString=z,s.toUpper=pm,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=Wm,s.upperCase=hm,s.upperFirst=_i,s.each=Pa,s.eachRight=ka,s.first=Ea,wi(s,function(){var e={};return ze(s,function(t,n){G.call(s.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),s.VERSION=m,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),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==Ai||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),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=s[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(s.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(s,at([M],c));return o&&I?N[0]:N};S&&n&&typeof x=="function"&&x.length!=1&&(f=S=!1);var I=this.__chain__,A=!!this.__actions__.length,E=u&&!I,k=f&&!A;if(!u&&S){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[C],thisArg:i}),new Ae(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);s.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=s[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,s.prototype.at=Kc,s.prototype.chain=Vc,s.prototype.commit=Yc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Pt=Ys();vt?((vt.exports=Pt)._=Pt,Cr._=Pt):ie._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"DateTime",const:"DateTime"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"TreeMap",const:"TreeMap"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,l,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:l,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${l}`,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,l)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:l}}}),getRadioInputField=(r,l,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:l,options:i}}}),getTextArea=(r,l,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:l,minRows:8,hideButton:i}}}),getSelectField=(r,l,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:l,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let l=_.cloneDeep(GraphSection);switch(r){case"TreeMap":l.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height")];case"InputSlider":l.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":l.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":l.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":l.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":l.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":l.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":l.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":l.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":l.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":l.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":l.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":l.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":l.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing")];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":l.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":l.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return l},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 l=_.cloneDeep(r);let i={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(i.elements=l.elements||[],l.elements&&delete l.elements),i.events=l.events||[],l.events&&delete l.events,i={...l,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let l={};return r.map(i=>{l[i.key||"xs"]=+i.value||5.5}),l},flatObjectValueInArray=r=>{if(r[0].length<1)return;const l=Object.keys(r[0])[0];return r.map(m=>m[l])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,l)=>{if(l){let i=r.name;const m=l.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,l)=>{let i;if(l){const m=getFormdataFromLocalStorage();i=_.set(m,l,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const l=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(l,r),i={...i,...getNavigationHistory(l,r)}),i||(i=getNavigationHistory(l,r)),i||l};async function saveHandler(r,l,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 F=await i(r,l,v);navigateHandler(r,!0,m?`/${m}?id=${F.id}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,l,i)=>{l?(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 l=(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,l),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,l)=>{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]}l.setUiSchema(i)};var Component=(r,l,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,F,K;const g=l.path.split(".")[1],v=(w=r.searchParams)==null?void 0:w.get("path"),y=(F=r.searchParams)==null?void 0:F.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,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 F;const g=(F=r.searchParams)==null?void 0:F.get("path"),v=l.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=l.path.split(".")[1];r.formData.events.splice(v,1);const y=saveFormdataInLocalStorage(r.ctx.core.data,g);r.setFormdata(_.get(y,g))},widgetAddClickHandler:function(){var y;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const g=(y=r.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const v=`${g}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var F,K;const g=l.path.split(".")[1],v=(F=r.searchParams)==null?void 0:F.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,F;const g=(w=r.searchParams)==null?void 0:w.get("path"),v=(F=r.searchParams)==null?void 0:F.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const y=`${g}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${y}&id=${v}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:l,dynamicData:i,submitHandler:m,service:g}=r;return{setPage:async function(){const v=await this.getFormdata();l.setFormdata(v);const y=await this.getUiSchema(),w=await this.getSchema();l.setSchema(w),l.setUiSchema(y)},getFormdata:async function(){var F;const v=(F=l.searchParams)==null?void 0:F.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"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var w;const v=(w=l.searchParams)==null?void 0:w.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const y=saveFormdataInLocalStorage(l.ctx.core.data);v?l.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}&id=${v}`):l.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,g,m),Edit_Components:Component(l,i,m,g).editComponents,Delete_Components:Component(l,i,m,g).deleteComponents,eventAddHandler:function(){var w;const v=(w=l.searchParams)==null?void 0:w.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInLocalStorage(l.ctx.core.data);const y=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${y}&id=${v}`)},editEvent:function(){var F;const v=i.path.split(".")[1],y=(F=l.searchParams)==null?void 0:F.get("id");saveFormdataInLocalStorage(l.ctx.core.data);const w=`events[${v}]`;l.navigate(`/ComponentEvents?path=${w}&id=${y}`)},deleteEvent:function(){const v=i.path.split(".")[1];l.formData.events.splice(v,1);const y=saveFormdataInLocalStorage(l.ctx.core.data);l.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,l,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),F=_.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),F.required=["eventType","Handler","eventCode"]):v==="api"?(w.elements[1].elements[0].elements[2]=APISection,F.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}),F.required=["eventType","Handler","inBuiltFunctionType"]):v==="refresh"&&(w.elements[1].elements[0].elements[2]=refreshSectionUiSchema,F.properties.refreshElements.required=["value"],F.properties.refreshElements.items.required=["value"],F.required=["eventType","Handler","refreshElements"])),g&&(F.properties.inBuiltFunctionType.oneOf=[...F.properties.inBuiltFunctionType.oneOf,...g]),y.setSchema(F),y.setUiSchema(w)},getFormData:Component(r,l,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,F,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=(F=r.formData)==null?void 0:F.events)==null?void 0:K.length}]`;r.searchParams.set("path",y),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var F;const v=l.path.split(".")[1],y=(F=r.searchParams)==null?void 0:F.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,l,i,m).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const l=r.name.split("."),i=r.data,m=window.atob(i);let g;g=new File([m],l[l.length-1]);const v=URL.createObjectURL(g),y=document.createElement("a");y.href=l[l.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,l)=>{let i=`${l.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 l=[],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,l=(K=r.config)==null?void 0:K.events.filter(X=>X.eventType==="Success")}).catch(w=>{var X,re;const F=(re=(X=r.config)==null?void 0:X.events)==null?void 0:re.filter(mt=>mt.eventType==="Fail");l=(F==null?void 0:F.length)>0?F:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((w,F)=>w.then(()=>executeEvents({...r,config:F,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(r))return{response:void 0,events:void 0};try{i=executeEventsHandler(r),l=(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");l=(w==null?void 0:w.length)>0?w:[]}if((l==null?void 0:l.length)>0)for(const w of l)executeEvents({...r,config:w,parentEventOutput:i});return i};function executeEventsHandler(r){var l,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(l=r.store.functionParameters)==null?void 0:l.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,l){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):l!=null&&l.onLoad&&(i=Object.keys(l==null?void 0:l.onLoad),i.push(i[0])),i}function executeRefreshHandler(r){const l=getRefreshElements(r.config,r.eventGroups);return Promise.all(l.map(i=>Promise.all(r.eventGroups.onLoad[i].map(m=>executeEvents({...r,config:m,componentName:i})))))}function executeApiRequest(r){var g;const l={...(g=r.userValue)==null?void 0:g.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},m=buildApiPayload(r.config,l,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,l,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,[l]:{...(y=v.properties)==null?void 0:y[l],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,[l]:{...(y=v.properties)==null?void 0:y[l],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,[l]:i.lazyLoading?(y=r==null?void 0:r.data)==null?void 0:y.data:r.data}})}const buildBodyFormat=(r,l,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(l,w)}else(g==null?void 0:g.value)==="*"&&(g==null?void 0:g.key)==="*"?m={...m,...l}:(g==null?void 0:g.value)==="*"?m[g.key]=l:m[g.key]=g.value}),m},buildHeadersFormat=r=>{const l={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{l[i.key]=i.value}),l};function shouldEventExecute(r){var i,m;const l=(m=(i=r.config)==null?void 0:i.events)==null?void 0:m.filter(g=>g.eventType==="onStart");return(l==null?void 0:l.length)>0?executeEventsHandler({...r,config:l[0]}).then(g=>g):r.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,l;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((l=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:l.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 l(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 l(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{let l={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider},eventGroups,functionsProvider:r.functionsProvider};return{setPage:async function(){var F,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=${(F=X==null?void 0:X.data)==null?void 0:F.id}`,{headers:{"Content-Type":"application/json"}})).data,localStorage.setItem("pagemasterMetaData",JSON.stringify({schema:m==null?void 0:m.schema,uiSchema:m==null?void 0:m.uiSchema,config:m==null?void 0:m.config}))}const v=m==null?void 0:m.config,y=m==null?void 0:m.uiSchema,w=(K=m==null?void 0:m.schema)!=null?K:{type:"object",properties:{}};eventGroups={},eventGroups=extractEvents(v),l={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={};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])l.store.functionParameters=i,m=executeEvents({...l,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({...l,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(F=>F.Handler!=="mergeFormdata");y.events=w!=null?w:[],g=await executeEvents({...l,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 F of(w=eventGroups==null?void 0:eventGroups[i])==null?void 0:w[g])l.store.functionParameters=m,executeEvents({...l,config:F,componentName:g})},downloadFile:downloadFile$1,download:doDownload,...r.functionsProvider}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const l=_.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});l.elements[9].elements=i}return l.config.main.label=r.label,r.name&&(l.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,l.elements[3].scope=`#/properties/${r.name}/properties/firstName`,l.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,l.elements[4].scope=`#/properties/${r.name}/properties/secondName`,l.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,l.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,l.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(l.elements[0].config.main.url=r.firstImage),r.secondImage&&(l.elements[1].config.main.url=r.secondImage),r.secondImage&&(l.elements[2].config.main.url=r.thirdImage),r.layout&&(l.config.layout=createLayoutFormat(r.layout)),l};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,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,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,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,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,l)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=l,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=l,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,l)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=l,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,l)=>{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=l,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,l)=>{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=l,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,l)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=l,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,l)=>{const i=_.cloneDeep(Tabsection);return i.scope=l,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(m=>m.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,l)=>{const i=_.cloneDeep(WrapperSection);return i.scope=l,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",i.config.main.isAccordion=r.isAccordion==="YES",r.defaultStyle&&(i.config.defaultStyle=r.defaultStyle==="YES"),r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,l)=>{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=l,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,l)=>{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=l,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,l)=>{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=l,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,l)=>{const i=_.cloneDeep(Table);return i.scope=l,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,l)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=l,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,l)=>{const i=_.cloneDeep(Box);return i.scope=l,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,l)=>{const i=_.cloneDeep(uploadFile);return i.scope=l,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,l)=>{const i=_.cloneDeep(downloadFile);return i.scope=l,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,l)=>{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,l)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=l,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildDateTime=(r,l)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=l,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,l)=>{const i=_.cloneDeep(RankCard);return i.scope=l,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,l)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=l),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,l)=>{const i=_.cloneDeep(Timer);return i.scope=l,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,l)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=l,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,l)=>{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=l,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,l)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=l),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,l)=>{const i=_.cloneDeep(Checkbox);return i.scope=l,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,l)=>{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=l,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,l)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=l,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,l)=>{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,l)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=l,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,l)=>{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=l,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,l)=>{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=l,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,l)=>{const i=_.cloneDeep(FileInput);return i.scope=l,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,l)=>{const i=_.cloneDeep(Stepper);return i.scope=l,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,l)=>{const i=_.cloneDeep(PopUP);return i.scope=l,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,l)=>{const i=_.cloneDeep(dataGrid);return i.scope=l,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,l)=>{const i=_.cloneDeep(InputSlider);return i.scope=l,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,l)=>{const i=_.cloneDeep(TreeMap);return i.scope=l,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,l,i){var m,g,v,y,w,F,K,X,re,mt;i?(v=(g=(m=exports.schema.properties)==null?void 0:m[l])==null?void 0:g.items)!=null&&v.properties&&((K=(F=(w=(y=exports.schema.properties)==null?void 0:y[l])==null?void 0:w.items)==null?void 0:F.properties)!=null&&K[r.name]||(exports.schema.properties[l].items.properties[r.name]={},r.type==="Select"&&((X=r.value)==null?void 0:X.length)>0?exports.schema.properties[l].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[l].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,Ft;l?(se=(gt=($e=exports.schema.properties)==null?void 0:$e[l])==null?void 0:gt.items)!=null&&se.properties&&((Ke=(he=($t=(Ne=exports.schema.properties)==null?void 0:Ne[l])==null?void 0:$t.items)==null?void 0:he.properties)!=null&&Ke[r.name]||(exports.schema.properties[l].items.properties[r.name]={},r.type==="Select"||((ye=r.value)==null?void 0:ye.length)>0?exports.schema.properties[l].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[l].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),U.validationType==="required"?(Ft=(rt=(we=exports.schema.properties)==null?void 0:we[l])==null?void 0:rt.items)==null||Ft.required.push(r.name):(exports.schema.properties[l].items.properties[r.name].type="string",exports.schema.properties[l].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,l,i)=>(buildRule(r,l,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 l={};const i=`#/properties/${r.name}`;switch(r.type){case"TreeMap":l=buildTreeMap(r,i);break;case"DateTime":l=buildDateTime(r,i);break;case"InputSlider":l=buildInputSlider(r,i);break;case"DataGrid":l=buildDataGrid(r,i);break;case"Stepper":l=buildStepper(r,i);break;case"PopUp":l=buildPopUp(r,i);break;case"FileInput":l=buildFileInput(r,i);break;case"AadharcardText":l=buildAdhaarField(r,i);break;case"PanCardText":l=buildPanField(r,i);break;case"TabSection":l=buildTabSection(r,i);break;case"RunnerBoyProgressBar":l=RunnerBoyProgressbar(r,i);break;case"WrapperSection":l=buildWrapperSection(r,i);break;case"Text":l=buildTextField(r,i);break;case"TextArea":l=buildTextArea(r,i);break;case"Date":l=buildDate(r,i);break;case"Select":l=buildSelect(r,i);break;case"Radio":l=buildRadio(r,i);break;case"Button":l=buildButton(r,i);break;case"Table":l=buildTable(r,i);break;case"Array":l=buildArray(r,i);break;case"LazyLoadingTable":l=buildLazyLoadingTable(r,i);break;case"Box":l=buildLabel(r,i);break;case"CheckBox":l=buildCheckbox(r,i);break;case"UploadFile":l=buildUploadFile(r,i);break;case"DownloadFile":l=buildDownloadFile(r,i);break;case"EmptyBox":l=buildEmptyBox(r);break;case"card":l=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":l=buildStackbarGraph(r,i);break;case"LineGraph":l=buildLineGraph(r,i);break;case"PieGraph":l=buildPieGraph(r,i);break;case"HorizontalBarGraph":l=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":l=buildProgressBar(r,i);break;case"SpeedoMeter":l=buildSpeedoMeter(r,i);break;case"ProgressBarCard":l=buildProgressBarCard(r,i);break;case"RankCard":l=buildRankCard(r,i);break;case"Rank":l=buildRollAndDice(r,i);break;case"Slider":l=buildSlider(r,i);break;case"Timer":l=buildTimer(r,i);break;case"MultipleSelect":l=buildMultiSelect(r,i);break;case"LeaderBoard":l=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},l=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return l;if(r.type=="Table"){const m={};r.sizeHolder&&r.sizeHolder.map((g,v)=>{m[g.keyName]=g.value}),l.elements=transformConfigToOutput(r,m)}else r.type=="Array"?l.options.detail.elements=r.elements.map((m,g)=>buildUiSchema(m)):l.elements=r.elements.map((m,g)=>buildUiSchema(m))}return l};function nodeProvider(r,l){return r.type?{accessorKey:r.name,type:r.columnFormat,header:r.label||r.name,size:l[r.name]||180,widget:buildUiSchema(r)}:{accessorKey:r.name,type:r.columnFormat,header:r.label||r.name,size:l[r.name]||180}}function buildHierarchy(r,l=null,i){const m=[];for(const g of r)if((g==null?void 0:g.parent)===l){const v=buildHierarchy(r,g.name,i),y=nodeProvider(g,i);v.length>0&&(y.columns=v,y.type="group"),m.push(y)}return m}function transformConfigToOutput(r,l){const i=[],m=buildHierarchy(r.elements,r.name,exports.schema);for(const g of r.elements)!r.elements.some(y=>y.name===g.parent)&&g.parent!==r.name&&i.push(nodeProvider(g,l));return[...m,...i]}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
+ `)+w+`return __p
27
+ }`;var k=il(function(){return W(u,F+"return "+w).apply(i,p)});if(k.source=w,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=He(e),a=He(t),u=mo(o,a),p=go(o,a)+1;return ft(o,u,p).join("")}function dm(e,t,n){if(e=z(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=xe(t)))return e;var o=He(e),a=go(o,He(t))+1;return ft(o,0,a).join("")}function fm(e,t,n){if(e=z(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=xe(t)))return e;var o=He(e),a=mo(o,He(t));return ft(o,a).join("")}function mm(e,t){var n=ht,o=ll;if(X(t)){var a="separator"in t?t.separator:a;n="length"in t?P(t.length):n,o="omission"in t?xe(t.omission):o}e=z(e);var u=e.length;if(Rt(e)){var p=He(e);u=p.length}if(n>=u)return e;var c=n-Dt(o);if(c<1)return o;var f=p?ft(p,0,c).join(""):e.slice(0,c);if(a===i)return f+o;if(p&&(c+=f.length-c),vi(a)){if(e.slice(c).search(a)){var x,S=f;for(a.global||(a=Pr(a.source,z(Pi.exec(a))+"g")),a.lastIndex=0;x=a.exec(S);)var w=x.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=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=je(function(e,t){return Le(t,function(n){n=$e(n),Ze(e,n,gi(e[n],e))}),e});function vm(e){var t=e==null?0:e.length,n=T();return e=t?q(e,function(o){if(typeof o[1]!="function")throw new Fe(h);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 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 Ci(e,t,n){var o=ne(t),a=zn(t,o);n==null&&!(X(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,ne(t)));var u=!(X(n)&&"chain"in n)||!!n.chain,p=tt(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__),w=S.__actions__=de(this.__actions__);return w.push({func:f,args:arguments,thisArg:e}),S.__chain__=x,S}return f.apply(e,lt([this.value()],arguments))})}),e}function Fm(){return ie._===this&&(ie._=Qs),this}function Ii(){}function Am(e){return e=P(e),H(function(t){return zo(t,e)})}var Tm=ni(q),Em=ni(lo),Bm=ni(Fr);function ol(e){return ui(e)?Ar($e(e)):ap(e)}function Rm(e){return function(t){return e==null?i:wt(e,t)}}var Dm=ua(),Pm=ua(!0);function Li(){return[]}function Fi(){return!1}function km(){return{}}function Hm(){return""}function Mm(){return!0}function Om(e,t){if(e=P(e),e<1||e>ot)return[];var n=ze,o=ae(e,ze);t=T(t),e-=ze;for(var a=Br(o,t);++n<e;)t(n);return a}function Nm(e){return D(e)?q(e,$e):_e(e)?[e]:de(Ia(z(e)))}function Wm(e){var t=++Js;return z(e)+t}var zm=Yn(function(e,t){return e+t},0),Um=ri("ceil"),Gm=Yn(function(e,t){return e/t},1),$m=ri("floor");function Km(e){return e&&e.length?Wn(e,ge,Ur):i}function Vm(e,t){return e&&e.length?Wn(e,T(t,2),Ur):i}function Ym(e){return po(e,ge)}function qm(e,t){return po(e,T(t,2))}function Xm(e){return e&&e.length?Wn(e,ge,Vr):i}function Jm(e,t){return e&&e.length?Wn(e,T(t,2),Vr):i}var Zm=Yn(function(e,t){return e*t},1),Qm=ri("round"),jm=Yn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Er(e,ge):0}function tg(e,t){return e&&e.length?Er(e,T(t,2)):0}return l.after=Sd,l.ary=Ha,l.assign=pf,l.assignIn=Ja,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ma,l.bind=gi,l.bindAll=ym,l.bindKey=Oa,l.castArray=Pd,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vm,l.conforms=bm,l.constant=Si,l.countBy=jc,l.create=ff,l.curry=Na,l.curryRight=Wa,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=Cd,l.difference=Vp,l.differenceBy=Yp,l.differenceWith=qp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=_m,l.flowRight=Sm,l.fromPairs=nc,l.functions=Sf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Lf,l.invokeMap=ud,l.iteratee=wi,l.keyBy=pd,l.keys=ne,l.keysIn=me,l.map=er,l.mapKeys=Af,l.mapValues=Tf,l.matches=wm,l.matchesProperty=Cm,l.memoize=nr,l.merge=Ef,l.mergeWith=Za,l.method=Im,l.methodOf=Lm,l.mixin=Ci,l.negate=rr,l.nthArg=Am,l.omit=Bf,l.omitBy=Rf,l.once=Ld,l.orderBy=cd,l.over=Tm,l.overArgs=Fd,l.overEvery=Em,l.overSome=Bm,l.partial=hi,l.partialRight=Ua,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Ad,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=yd,l.set=kf,l.setWith=Hf,l.shuffle=vd,l.slice=hc,l.sortBy=_d,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=om,l.spread=Ed,l.tail=Ic,l.take=Lc,l.takeRight=Fc,l.takeRightWhile=Ac,l.takeWhile=Tc,l.tap=$c,l.throttle=Bd,l.thru=jn,l.toArray=Ya,l.toPairs=ja,l.toPairsIn=el,l.toPath=Nm,l.toPlainObject=Xa,l.transform=Mf,l.unary=Rd,l.union=Ec,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Of,l.unzip=mi,l.unzipWith=Ra,l.update=Nf,l.updateWith=Wf,l.values=Gt,l.valuesIn=zf,l.without=Hc,l.words=rl,l.wrap=Dd,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Wc,l.zipObject=zc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Ja,l.extendWith=ar,Ci(l,l),l.add=zm,l.attempt=il,l.camelCase=Kf,l.capitalize=tl,l.ceil=Um,l.clamp=Uf,l.clone=kd,l.cloneDeep=Md,l.cloneDeepWith=Od,l.cloneWith=Hd,l.conformsTo=Nd,l.deburr=nl,l.defaultTo=xm,l.divide=Gm,l.endsWith=Vf,l.eq=Oe,l.escape=Yf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Fa,l.findKey=hf,l.findLast=rd,l.findLastIndex=Aa,l.findLastKey=yf,l.floor=$m,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=_f,l.get=bi,l.gt=Wd,l.gte=zd,l.has=Cf,l.hasIn=xi,l.head=Ea,l.identity=ge,l.includes=sd,l.indexOf=rc,l.inRange=Gf,l.invoke=Ff,l.isArguments=Lt,l.isArray=D,l.isArrayBuffer=Ud,l.isArrayLike=fe,l.isArrayLikeObject=Q,l.isBoolean=Gd,l.isBuffer=mt,l.isDate=$d,l.isElement=Kd,l.isEmpty=Vd,l.isEqual=Yd,l.isEqualWith=qd,l.isError=yi,l.isFinite=Xd,l.isFunction=tt,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Jd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ka,l.isObject=X,l.isObjectLike=J,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=Xf,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Jf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Km,l.maxBy=Vm,l.mean=Ym,l.meanBy=qm,l.min=Xm,l.minBy=Jm,l.stubArray=Li,l.stubFalse=Fi,l.stubObject=km,l.stubString=Hm,l.stubTrue=Mm,l.multiply=Zm,l.nth=pc,l.noConflict=Fm,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=$f,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=d,l.sample=hd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Om,l.toFinite=nt,l.toInteger=P,l.toLength=qa,l.toLower=um,l.toNumber=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,Ci(l,function(){var e={};return Ue(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=m,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==Ai||n==cl;O.prototype[e]=function(a){var u=this.clone();return u.__iteratees__.push({iteratee:T(a,3),type:n}),u.__filtered__=u.__filtered__||o,u}}),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)},Ue(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],u=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,f=p instanceof O,x=c[0],S=f||D(p),w=function(M){var N=a.apply(l,lt([M],c));return o&&I?N[0]:N};S&&n&&typeof x=="function"&&x.length!=1&&(f=S=!1);var I=this.__chain__,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 Ae(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)})}}),Ue(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Mt,o)||(Mt[o]=[]),Mt[o].push({name:t,func:n})}}),Mt[Vn(i,We).name]=[{name:"wrapper",func:i}],O.prototype.clone=mu,O.prototype.reverse=gu,O.prototype.value=hu,l.prototype.at=Kc,l.prototype.chain=Vc,l.prototype.commit=Yc,l.prototype.next=qc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Pt=Ys();vt?((vt.exports=Pt)._=Pt,wr._=Pt):ie._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"DateTime",const:"DateTime"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",const:"Select"},{title:"Slider",const:"Slider"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"Timer",const:"Timer"},{title:"Upload File",const:"UploadFile"},{title:"TreeMap",const:"TreeMap"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/parent",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"parent",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Column Format"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}}]}}},getArrayControl=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:s,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,s)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s}}}),getRadioInputField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,options:i}}}),getTextArea=(r,s,i,m)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:m||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:s,minRows:8,hideButton:i}}}),getSelectField=(r,s,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:s,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let s=_.cloneDeep(GraphSection);switch(r){case"TreeMap":s.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height")];case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"])];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":s.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return s},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const s=_.cloneDeep(r);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let s={};return r.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=r=>{if(r[0].length<1)return;const s=Object.keys(r[0])[0];return r.map(m=>m[s])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,s)=>{if(s){let i=r.name;const m=s.split("."),v=[];return m.map((b,h)=>{if(h===0){v.push(b);return}v.push(`${v[h-1]}.${b}`)}),v.map(b=>{const h=_.get(r,b);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.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 h,C;(h=r.searchParams)==null||h.get("id");const v=(C=r.searchParams)==null?void 0:C.get("path");saveFormdataInLocalStorage(r.ctx.core.data,v);const b=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const A=await i(r,s,b);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","Event","Style","Validation"],MultipleSelect:["Core","Properties","Value","Event","Style","Validation"],Table:["Core","Components","Properties","Event","Style","Validation"],LeaderBoard:["Core","Components","Properties","Event","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Event","Style","Validation"],card:["Core","Properties","Event","Style","Validation"],UploadFile:["Core","Event","Style","Validation"],Graph:["Core","Properties","Event","Style","Validation"],DownloadFile:["Core","Event","Style","Validation"],Box:["Core","Event","Style","Validation"],Properties:["Core","Properties","Event","Style","Validation"],ProgressBarCard:["Core","Properties","Event","Style","Validation"],RankCard:["Core","Properties","Event","Style","Validation"],Slider:["Core","Components","Event","Style","Validation"],Timer:["Core","Event","Style","Validation"],Rank:["Core","Event","Style","Validation"],Button:["Core","Properties","Event","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Event","Style","Validation"],Text:["Core","Properties","Event","Style","Validation"],TextArea:["Core","Properties","Event","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Event","Style"],DataGrid:["Core","Components","Properties","Event","Style"],InputSlider:["Core","Properties","Event","Style","Validation"],TreeMap:["Core","Components","Properties","Event","Style"]},refreshPage=(r,s)=>{var m;const i=_.cloneDeep(componentBasicUiSchema);if(r){const v={Core:CoreSection,Value:ValueTab,Style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},b=(m=sectionLabels[r])==null?void 0:m.map(h=>v[h]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=b||[CoreSection,StyleSection,EventSection,ValidationSection]}s.setUiSchema(i)};var Component=(r,s,i,m)=>({setPage:async function(){const v=await this.getFormdata();r.setFormdata(v);const b=this.getSchema();r.setSchema(b),this.refreshPage(v==null?void 0:v.type,r)},refreshPage,getFormdata:function(){var b;const v=(b=r.searchParams)==null?void 0:b.get("path");return getFormdataFromLocalStorage(v)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,m,i,"PageMaster"),onChange:function(){var v,b,h,C;((v=r==null?void 0:r.formData)==null?void 0:v.type)!==((b=r==null?void 0:r.newData)==null?void 0:b.type)&&((h=r==null?void 0:r.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((C=r==null?void 0:r.newData)==null?void 0:C.type,r)},editComponents:function(){var C,A,Y;const v=s.path.split(".")[1],b=(C=r.searchParams)==null?void 0:C.get("path"),h=(A=r.searchParams)==null?void 0:A.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,b),b){const re=`${(Y=r.searchParams)==null?void 0:Y.get("path")}.elements[${v}]`;r.searchParams.set("path",re),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${v}]`}&id=${h}`)},deleteComponents:function(){var A;const v=(A=r.searchParams)==null?void 0:A.get("path"),b=s.path.split(".")[1];r.formData.elements.splice(b,1);const h=saveFormdataInLocalStorage(r.ctx.core.data,v),C=v?_.get(h,v):h;r.setFormdata(C)},deleteEvent:function(){var C;const v=(C=r.searchParams)==null?void 0:C.get("path"),b=s.path.split(".")[1];r.formData.events.splice(b,1);const h=saveFormdataInLocalStorage(r.ctx.core.data,v);r.setFormdata(_.get(h,v))},widgetAddClickHandler:function(){var h;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const v=(h=r.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(r.ctx.core.data,v);const b=`${v}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",b),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var A,Y;const v=s.path.split(".")[1],b=(A=r.searchParams)==null?void 0:A.get("path"),h=(Y=r.searchParams)==null?void 0:Y.get("id");saveFormdataInLocalStorage(r.ctx.core.data,b);const C=`${b}.events[${v}]`;r.navigate(`/ComponentEvents?path=${C}&id=${h}`)},eventAddHandler:function(){var C,A;const v=(C=r.searchParams)==null?void 0:C.get("path"),b=(A=r.searchParams)==null?void 0:A.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,v);const h=`${v}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${h}&id=${b}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:s,dynamicData:i,submitHandler:m,service:v}=r;return{setPage:async function(){const b=await this.getFormdata();s.setFormdata(b);const h=await this.getUiSchema(),C=await this.getSchema();s.setSchema(C),s.setUiSchema(h)},getFormdata:async function(){var A;const b=(A=s.searchParams)==null?void 0:A.get("id");let h={};b&&await v.get(`/page/getById?id=${b}`).then(Y=>{var Z;h=(Z=Y.data)==null?void 0:Z.config});const C=getFormdataFromLocalStorage();return C||(saveFormdataInLocalStorage(h),h)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var C;const b=(C=s.searchParams)==null?void 0:C.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const h=saveFormdataInLocalStorage(s.ctx.core.data);b?s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${b}`):s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,v,m),Edit_Components:Component(s,i,m,v).editComponents,Delete_Components:Component(s,i,m,v).deleteComponents,eventAddHandler:function(){var C;const b=(C=s.searchParams)==null?void 0:C.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInLocalStorage(s.ctx.core.data);const h=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${h}&id=${b}`)},editEvent:function(){var A;const b=i.path.split(".")[1],h=(A=s.searchParams)==null?void 0:A.get("id");saveFormdataInLocalStorage(s.ctx.core.data);const C=`events[${b}]`;s.navigate(`/ComponentEvents?path=${C}&id=${h}`)},deleteEvent:function(){const b=i.path.split(".")[1];s.formData.events.splice(b,1);const h=saveFormdataInLocalStorage(s.ctx.core.data);s.setFormdata(h)}}};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,v)=>({setPage:async function(){const b=await this.getFormData();r.setFormdata(b);const h=await this.getSchema();r.setSchema(h),this.refreshPage(b.Handler,r)},refreshPage:(b,h)=>{const C=_.cloneDeep(EventUiSchema),A=_.cloneDeep(EventSchema);b&&(b==="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"]):b==="api"?(C.elements[1].elements[0].elements[2]=APISection,A.required=["eventType","Handler","method","path"]):b==="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"]):b==="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"])),v&&(A.properties.inBuiltFunctionType.oneOf=[...A.properties.inBuiltFunctionType.oneOf,...v]),h.setSchema(A),h.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 b,h,C;((b=r==null?void 0:r.formData)==null?void 0:b.Handler)!==((h=r==null?void 0:r.newData)==null?void 0:h.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,Y;const b=(C=r.searchParams)==null?void 0:C.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,b);const h=`${b}.events[${(Y=(A=r.formData)==null?void 0:A.events)==null?void 0:Y.length}]`;r.searchParams.set("path",h),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var A;const b=s.path.split(".")[1],h=(A=r.searchParams)==null?void 0:A.get("path");saveFormdataInLocalStorage(r.ctx.core.data,h);const C=`${h}.events[${b}]`;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 v;v=new File([m],s[s.length-1]);const b=URL.createObjectURL(v),h=document.createElement("a");h.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:b,h.download=`${r.name}`,document.body.appendChild(h),h.click(),URL.revokeObjectURL(b),document.body.removeChild(h)},doDownload=(r,s)=>{let i=`${s.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((b,h)=>{i=i+`${h===0?"?":"&"}${b}=${r==null?void 0:r.params[b]}`});const m=document.createElement("a");m.href=i,document.body.appendChild(m),m.click(),m.parentNode.removeChild(m)},executeEvents=async r=>{var m,v,b;let s=[],i=null;try{if(!await shouldEventExecute(r))return{response:void 0,events:void 0};i=await executeEventsHandler(r),s=(m=r.config)==null?void 0:m.events.filter(Y=>Y.eventType==="Success")}catch{const C=(b=(v=r.config)==null?void 0:v.events)==null?void 0:b.filter(Y=>Y.eventType==="Fail");s=(C==null?void 0:C.length)>0?C:[]}if((s==null?void 0:s.length)>0)for(const h of s)await executeEvents({...r,config:h,parentEventOutput:i});return i};async function executeEventsHandler(r){var s,i,m;if(r.config.Handler==="api")return await executeApiEventHandler(r);if(r.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return await executeCustomHandler(r);if(r.config.Handler==="refresh")return await executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return await 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()}async function executeRefreshHandler(r){const s=getRefreshElements(r.config,r.eventGroups);for(const i of s)for(const m of r.eventGroups.onLoad[i])await executeEvents({...r,config:m,componentName:i})}async function executeApiEventHandler(r){var h;const s={...(h=r.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:m,headers:v}=await buildApiPayload(r.config,s,i,r.store,r.dynamicData,r.userValue,r.service);return await r.service[r.config.method](r.config.path,m,v&&{headers:v})}async 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)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(r,s,i,m,v){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(b=>{var h;return{...b,properties:{...b.properties,[s]:{...(h=b.properties)==null?void 0:h[s],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?m.setSchema(b=>{var h;return{...b,properties:{...b.properties,[s]:{...(h=b.properties)==null?void 0:h[s],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||m.setFormdata(b=>({...b,...r==null?void 0:r.data})):r&&(m.setFormdata(b=>({...b,[s]:i.lazyLoading?r.data.data:r.data})),await asyncOperation())}const buildBodyFormat=(r,s,i)=>{const m={...i==null?void 0:i.payload};return r.map(v=>{var b,h;if(typeof(v==null?void 0:v.value)!="string")m[v.key]=v.value;else if((b=v==null?void 0:v.value)!=null&&b.startsWith("$userValue")){const C=v.value.substring(11);m[v.key]=_.get(i,C)}else if((h=v==null?void 0:v.value)!=null&&h.startsWith("$")){const C=v.value.substring(1);m[v.key]=_.get(s,C)}else m[v.key]=v.value}),m},buildHeadersFormat=r=>{const s={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{s[i.key]=i.value}),s};async function shouldEventExecute(r){var i,m;const s=(m=(i=r.config)==null?void 0:i.events)==null?void 0:m.filter(v=>v.eventType==="onStart");return(s==null?void 0:s.length)>0?await executeEventsHandler({...r,config:s[0]}):!0}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,s;if(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)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}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(v=>v.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad),i.push(i[0])),console.log(i),i}function asyncOperation(){return new Promise((r,s)=>{setTimeout(()=>{r("Operation completed successfully!"),s(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function s(i){i.events&&i.events.forEach(m=>{var b;i.type&&(compType=i.type),eventGroups[m.eventType]||(eventGroups[m.eventType]={}),eventGroups[m.eventType][i.name]||(eventGroups[m.eventType][i.name]=[]);const v=(b=m==null?void 0:m.events)==null?void 0:b.find(h=>h.eventType==="Success");!v&&m.eventType==="onLoad"&&m.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!v&&(m.eventType==="onBack"||m.eventType==="onNext"||m.eventType==="onReset")&&m.events.push({Handler:`${m.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[m.eventType][i.name].push({...m,type:compType})})}return s(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload},eventGroups};return{setPage:async function(){r.store.setFormdata({}),r.store.setSchema(i=>({...r.schema,properties:{...r.schema.properties,...i.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await asyncOperation(),s={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups},await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var b;const m=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(b=i.globalFilter)!=null?b:""}],v=await this.updateConfigApiBody(i,m);return v==null?void 0:v.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const m=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,m)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async m=>{var v,b;if(((v=r.store)==null?void 0:v.formData[m])!==r.store.newData[m]&&((b=r.store)==null?void 0:b.newData[m])!==void 0)for(const h of eventGroups.onChange[m])await executeEvents({...s,config:h,componentName:m})}))}},updateConfigApiBody:async function(i,m){var b;let v;for(const h of eventGroups==null?void 0:eventGroups.onLoad[i.path]){h.body?h.body=[...h.body,...m]:h.body=m;const C=(b=h==null?void 0:h.events)==null?void 0:b.filter(A=>A.Handler!=="mergeFormdata");h.events=C!=null?C:[],v=await executeEvents({...s,config:h,componentName:i.path})}return v},onBack:async function(i){var v,b;const m=((v=r.dynamicData)==null?void 0:v.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((b=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:b[m])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var v,b;const m=((v=r.dynamicData)==null?void 0:v.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((b=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:b[m])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var v,b;const m=((v=r.dynamicData)==null?void 0:v.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((b=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:b[m])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,m){var b,h,C;const v=((b=r.dynamicData)==null?void 0:b.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((h=eventGroups==null?void 0:eventGroups[i])==null?void 0:h[v])!==void 0)for(const A of(C=eventGroups==null?void 0:eventGroups[i])==null?void 0:C[v])s.store.functionParameters=m,await executeEvents({...s,config:A,componentName:v})},downloadFile:downloadFile$1,download:doDownload}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const s=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((m,v)=>m.type?{...{widget:buildUiSchema(m),accessorKey:m.name,header:m.label||m.name}}:{accessorKey:m.name,header:m.label||m.name});s.elements[9].elements=i}return s.config.main.label=r.label,r.name&&(s.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,s.elements[3].scope=`#/properties/${r.name}/properties/firstName`,s.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,s.elements[4].scope=`#/properties/${r.name}/properties/secondName`,s.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,s.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,s.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(s.elements[0].config.main.url=r.firstImage),r.secondImage&&(s.elements[1].config.main.url=r.secondImage),r.secondImage&&(s.elements[2].config.main.url=r.thirdImage),r.layout&&(s.config.layout=createLayoutFormat(r.layout)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["First","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(r,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const m=JSON.parse(r.style);m!=null&&m.style&&(i.config.style={...i.config.style,...m.style}),m!=null&&m.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...m.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,s)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=s,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,s)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,r.lazyLoad&&(i.config.main.lazyLoad=r.lazyLoad==="YES"),r.orientation&&(i.config.main.orientation=r.orientation==="YES"?"vertical":"horizontal"),r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(m=>m.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",i.config.main.isAccordion=r.isAccordion==="YES",r.defaultStyle&&(i.config.defaultStyle=r.defaultStyle==="YES"),r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(m=>m.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,s)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{onMount:"onMount",columns:{}}}};const buildTable=(r,s)=>{const i=_.cloneDeep(Table);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,s)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=s,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(m=>m.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,s)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"DateTime",type:"date"}}},buildDate=(r,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildDateTime=(r,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(r,s)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.name}`,scope:`${r.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(r,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,s)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=s),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,s)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.yAxisValue&&(i.config.main.yAxisValue=r.yAxisValue),r.xAxisValue&&(i.config.main.xAxisValue=r.xAxisValue),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(m=>m.label||m.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,s)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(r,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((m,v)=>({label:m.label,id:v}))),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,v,b,h,C,A,Y,Z,re,De;i?(b=(v=(m=exports.schema.properties)==null?void 0:m[s])==null?void 0:v.items)!=null&&b.properties&&((Y=(A=(C=(h=exports.schema.properties)==null?void 0:h[s])==null?void 0:C.items)==null?void 0:A.properties)!=null&&Y[r.name]||(exports.schema.properties[s].items.properties[r.name]={},r.type==="Select"&&((Z=r.value)==null?void 0:Z.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")&&((De=r.value)==null?void 0:De.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}})),r.validation&&r.validation.forEach(U=>{var Ke,gt,se,We,$t,he,Ve,ye,Ye,Ce,it,Ft;s?(se=(gt=(Ke=exports.schema.properties)==null?void 0:Ke[s])==null?void 0:gt.items)!=null&&se.properties&&((Ve=(he=($t=(We=exports.schema.properties)==null?void 0:We[s])==null?void 0:$t.items)==null?void 0:he.properties)!=null&&Ve[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"||((Ye=r.value)==null?void 0:Ye.length)>0)&&(exports.schema.properties[s].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),U.validationType==="required"?(Ft=(it=(Ce=exports.schema.properties)==null?void 0:Ce[s])==null?void 0:it.items)==null||Ft.required.push(r.name):(exports.schema.properties[s].items.properties[r.name].type="string",exports.schema.properties[s].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,s,i)=>(buildRule(r,s,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((m,v)=>{buildSchema(m,r.name,r.type==="Array")})):r.elements.map((m,v)=>{buildSchema(m)})),exports.schema),buildUiSchema=r=>{let s={};const i=`#/properties/${r.name}`;switch(r.type){case"TreeMap":s=buildTreeMap(r,i);break;case"DateTime":s=buildDateTime(r,i);break;case"InputSlider":s=buildInputSlider(r,i);break;case"DataGrid":s=buildDataGrid(r,i);break;case"Stepper":s=buildStepper(r,i);break;case"PopUp":s=buildPopUp(r,i);break;case"FileInput":s=buildFileInput(r,i);break;case"AadharcardText":s=buildAdhaarField(r,i);break;case"PanCardText":s=buildPanField(r,i);break;case"TabSection":s=buildTabSection(r,i);break;case"RunnerBoyProgressBar":s=RunnerBoyProgressbar(r,i);break;case"WrapperSection":s=buildWrapperSection(r,i);break;case"Text":s=buildTextField(r,i);break;case"TextArea":s=buildTextArea(r,i);break;case"Date":s=buildDate(r,i);break;case"Select":s=buildSelect(r,i);break;case"Radio":s=buildRadio(r,i);break;case"Button":s=buildButton(r,i);break;case"Table":s=buildTable(r,i);break;case"Array":s=buildArray(r,i);break;case"LazyLoadingTable":s=buildLazyLoadingTable(r,i);break;case"Box":s=buildLabel(r,i);break;case"CheckBox":s=buildCheckbox(r,i);break;case"UploadFile":s=buildUploadFile(r,i);break;case"DownloadFile":s=buildDownloadFile(r,i);break;case"EmptyBox":s=buildEmptyBox(r);break;case"card":s=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":s=buildStackbarGraph(r,i);break;case"LineGraph":s=buildLineGraph(r,i);break;case"PieGraph":s=buildPieGraph(r,i);break;case"HorizontalBarGraph":s=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":s=buildProgressBar(r,i);break;case"SpeedoMeter":s=buildSpeedoMeter(r,i);break;case"ProgressBarCard":s=buildProgressBarCard(r,i);break;case"RankCard":s=buildRankCard(r,i);break;case"Rank":s=buildRollAndDice(r,i);break;case"Slider":s=buildSlider(r,i);break;case"Timer":s=buildTimer(r,i);break;case"MultipleSelect":s=buildMultiSelect(r,i);break;case"LeaderBoard":s=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},s=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return s;if(r.type=="Table"){let m=function(C){return C.type?{accessorKey:C.name,type:C.columnFormat,header:C.label||C.name,size:h[C.name]||180,widget:buildUiSchema(C)}:{accessorKey:C.name,type:C.columnFormat,header:C.label||C.name,size:h[C.name]||180}},v=function(C,A=null){const Y=[];for(const Z of C)if((Z==null?void 0:Z.parent)===A){const re=v(C,Z.name),De=m(Z);re.length>0&&(De.columns=re,De.type="group"),Y.push(De)}return Y},b=function(C){const A=[],Y=v(C.elements,C.name);for(const Z of C.elements)!C.elements.some(De=>De.name===Z.parent)&&Z.parent!==C.name&&A.push(m(Z));return[...Y,...A]};const h={};r.sizeHolder&&r.sizeHolder.map((C,A)=>{h[C.keyName]=C.value}),s.elements=b(r)}else r.type=="Array"?s.options.detail.elements=r.elements.map((m,v)=>buildUiSchema(m)):s.elements=r.elements.map((m,v)=>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