impaktapps-ui-builder 0.0.283 → 0.0.285

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.
Files changed (23) hide show
  1. package/dist/impaktapps-ui-builder.es.js +225 -292
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +12 -12
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +4 -4
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +2 -1
  8. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +11 -0
  9. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -1
  10. package/package.json +1 -1
  11. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +18 -16
  12. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +17 -14
  13. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +9 -0
  14. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +33 -19
  15. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
  16. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +36 -36
  17. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -1
  18. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +10 -10
  19. package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
  20. package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
  21. package/src/impaktapps-ui-builder/runtime/services/events.ts +70 -137
  22. package/src/impaktapps-ui-builder/runtime/services/interface.ts +11 -0
  23. package/src/impaktapps-ui-builder/runtime/services/service.ts +54 -31
@@ -1,28 +1,28 @@
1
- (function(i,u){typeof exports=="object"&&typeof module!="undefined"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(i=typeof globalThis!="undefined"?globalThis:i||self,u(i.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}}},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",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",programType:!0,options:[{title:"Basic Template",const:1}],required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:5.5,lg:5.5}},options:{widget:"EmptyBox"}}]},{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:"Back"},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:"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:"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:"Submit Page",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"submitPageHandler",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(i,u){typeof exports=="object"&&typeof module!="undefined"?u(exports):typeof define=="function"&&define.amd?define(["exports"],u):(i=typeof globalThis!="undefined"?globalThis:i||self,u(i.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}}},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",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",programType:!0,options:[{label:"Basic Template",value:1}],required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:5.5,lg:5.5}},options:{widget:"EmptyBox"}}]},{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:"Back"},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:"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:"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:"Submit Page",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"submitPageHandler",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(i,u){(function(){var r,h="4.17.21",y=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",M="Invalid `variable` option passed into `_.template`",U="__lodash_hash_undefined__",V=500,K="__lodash_placeholder__",G=1,re=2,xt=4,_t=1,pn=2,_e=1,ut=2,Ii=4,He=8,St=16,ke=32,wt=64,Ne=128,Ut=256,ir=512,al=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,pt=1/0,je=9007199254740991,fl=17976931348623157e292,cn=0/0,Oe=4294967295,dl=Oe-1,hl=Oe>>>1,gl=[["ary",Ne],["bind",_e],["bindKey",ut],["curry",He],["curryRight",St],["flip",ir],["partial",ke],["partialRight",wt],["rearg",Ut]],Ct="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",zt="[object Boolean]",Nt="[object Date]",yl="[object DOMException]",dn="[object Error]",hn="[object Function]",Bi="[object GeneratorFunction]",Te="[object Map]",Gt="[object Number]",vl="[object Null]",Ge="[object Object]",Ri="[object Promise]",bl="[object Proxy]",$t="[object RegExp]",Fe="[object Set]",Kt="[object String]",gn="[object Symbol]",xl="[object Undefined]",qt="[object WeakMap]",_l="[object WeakSet]",Yt="[object ArrayBuffer]",Lt="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",pr="[object Uint8Array]",cr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ti=/&(?:amp|lt|gt|quot|#39);/g,Fi=/[&<>"']/g,Ll=RegExp(Ti.source),Il=RegExp(Fi.source),Al=/<%-([\s\S]+?)%>/g,Bl=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tl=/^\w*$/,Fl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(hr.source),gr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Wl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Nl=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Vl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Vl+Jl+Zl,Mi="\\u2700-\\u27bf",Hi="a-z\\xdf-\\xf6\\xf8-\\xff",Xl="\\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",ki="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Wi=Xl+Ql+jl+es,mr="['\u2019]",ts="["+yn+"]",Ui="["+Wi+"]",vn="["+Pi+"]",zi="\\d+",ns="["+Mi+"]",Ni="["+Hi+"]",Gi="[^"+yn+Wi+zi+Mi+Hi+ki+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+ki+"]",Ki="\\u200d",qi="(?:"+Ni+"|"+Gi+")",is="(?:"+It+"|"+Gi+")",Yi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Vi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,vr,br].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=Zi+Ji+os,ss="(?:"+[ns,vr,br].join("|")+")"+Xi,us="(?:"+[$i+vn+"?",vn,vr,br,ts].join("|")+")",ps=RegExp(mr,"g"),cs=RegExp(vn,"g"),xr=RegExp(yr+"(?="+yr+")|"+us+Xi,"g"),fs=RegExp([It+"?"+Ni+"+"+Yi+"(?="+[Ui,It,"$"].join("|")+")",is+"+"+Vi+"(?="+[Ui,It+qi,"$"].join("|")+")",It+"?"+qi+"+"+Yi,It+"+"+Vi,ls,as,zi,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+Oi+"]"),hs=/[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"],ms=-1,Y={};Y[or]=Y[ar]=Y[lr]=Y[sr]=Y[ur]=Y[pr]=Y[cr]=Y[fr]=Y[dr]=!0,Y[Ct]=Y[fn]=Y[Yt]=Y[zt]=Y[Lt]=Y[Nt]=Y[dn]=Y[hn]=Y[Te]=Y[Gt]=Y[Ge]=Y[$t]=Y[Fe]=Y[Kt]=Y[qt]=!1;var q={};q[Ct]=q[fn]=q[Yt]=q[Lt]=q[zt]=q[Nt]=q[or]=q[ar]=q[lr]=q[sr]=q[ur]=q[Te]=q[Gt]=q[Ge]=q[$t]=q[Fe]=q[Kt]=q[gn]=q[pr]=q[cr]=q[fr]=q[dr]=!0,q[dn]=q[hn]=q[qt]=!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,Qi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ie=Qi||ws||Function("return this")(),_r=u&&!u.nodeType&&u,ct=_r&&!0&&i&&!i.nodeType&&i,ji=ct&&ct.exports===_r,Sr=ji&&Qi.process,Se=function(){try{var f=ct&&ct.require&&ct.require("util").types;return f||Sr&&Sr.binding&&Sr.binding("util")}catch{}}(),eo=Se&&Se.isArrayBuffer,to=Se&&Se.isDate,no=Se&&Se.isMap,ro=Se&&Se.isRegExp,io=Se&&Se.isSet,oo=Se&&Se.isTypedArray;function ge(f,m,g){switch(g.length){case 0:return f.call(m);case 1:return f.call(m,g[0]);case 2:return f.call(m,g[0],g[1]);case 3:return f.call(m,g[0],g[1],g[2])}return f.apply(m,g)}function Cs(f,m,g,L){for(var T=-1,W=f==null?0:f.length;++T<W;){var ee=f[T];m(L,ee,g(ee),f)}return L}function we(f,m){for(var g=-1,L=f==null?0:f.length;++g<L&&m(f[g],g,f)!==!1;);return f}function Ls(f,m){for(var g=f==null?0:f.length;g--&&m(f[g],g,f)!==!1;);return f}function ao(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(!m(f[g],g,f))return!1;return!0}function et(f,m){for(var g=-1,L=f==null?0:f.length,T=0,W=[];++g<L;){var ee=f[g];m(ee,g,f)&&(W[T++]=ee)}return W}function bn(f,m){var g=f==null?0:f.length;return!!g&&At(f,m,0)>-1}function wr(f,m,g){for(var L=-1,T=f==null?0:f.length;++L<T;)if(g(m,f[L]))return!0;return!1}function J(f,m){for(var g=-1,L=f==null?0:f.length,T=Array(L);++g<L;)T[g]=m(f[g],g,f);return T}function tt(f,m){for(var g=-1,L=m.length,T=f.length;++g<L;)f[T+g]=m[g];return f}function Cr(f,m,g,L){var T=-1,W=f==null?0:f.length;for(L&&W&&(g=f[++T]);++T<W;)g=m(g,f[T],T,f);return g}function Is(f,m,g,L){var T=f==null?0:f.length;for(L&&T&&(g=f[--T]);T--;)g=m(g,f[T],T,f);return g}function Lr(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(m(f[g],g,f))return!0;return!1}var As=Ir("length");function Bs(f){return f.split("")}function Rs(f){return f.match(kl)||[]}function lo(f,m,g){var L;return g(f,function(T,W,ee){if(m(T,W,ee))return L=W,!1}),L}function xn(f,m,g,L){for(var T=f.length,W=g+(L?1:-1);L?W--:++W<T;)if(m(f[W],W,f))return W;return-1}function At(f,m,g){return m===m?zs(f,m,g):xn(f,so,g)}function Ts(f,m,g,L){for(var T=g-1,W=f.length;++T<W;)if(L(f[T],m))return T;return-1}function so(f){return f!==f}function uo(f,m){var g=f==null?0:f.length;return g?Br(f,m)/g:cn}function Ir(f){return function(m){return m==null?r:m[f]}}function Ar(f){return function(m){return f==null?r:f[m]}}function po(f,m,g,L,T){return T(f,function(W,ee,$){g=L?(L=!1,W):m(g,W,ee,$)}),g}function Fs(f,m){var g=f.length;for(f.sort(m);g--;)f[g]=f[g].value;return f}function Br(f,m){for(var g,L=-1,T=f.length;++L<T;){var W=m(f[L]);W!==r&&(g=g===r?W:g+W)}return g}function Rr(f,m){for(var g=-1,L=Array(f);++g<f;)L[g]=m(g);return L}function Es(f,m){return J(m,function(g){return[g,f[g]]})}function co(f){return f&&f.slice(0,mo(f)+1).replace(gr,"")}function me(f){return function(m){return f(m)}}function Tr(f,m){return J(m,function(g){return f[g]})}function Vt(f,m){return f.has(m)}function fo(f,m){for(var g=-1,L=f.length;++g<L&&At(m,f[g],0)>-1;);return g}function ho(f,m){for(var g=f.length;g--&&At(m,f[g],0)>-1;);return g}function Ds(f,m){for(var g=f.length,L=0;g--;)f[g]===m&&++L;return L}var Ps=Ar(ys),Ms=Ar(vs);function Hs(f){return"\\"+xs[f]}function ks(f,m){return f==null?r:f[m]}function Bt(f){return ds.test(f)}function Os(f){return hs.test(f)}function Ws(f){for(var m,g=[];!(m=f.next()).done;)g.push(m.value);return g}function Fr(f){var m=-1,g=Array(f.size);return f.forEach(function(L,T){g[++m]=[T,L]}),g}function go(f,m){return function(g){return f(m(g))}}function nt(f,m){for(var g=-1,L=f.length,T=0,W=[];++g<L;){var ee=f[g];(ee===m||ee===K)&&(f[g]=K,W[T++]=g)}return W}function _n(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=L}),g}function Us(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=[L,L]}),g}function zs(f,m,g){for(var L=g-1,T=f.length;++L<T;)if(f[L]===m)return L;return-1}function Ns(f,m,g){for(var L=g+1;L--;)if(f[L]===m)return L;return L}function Rt(f){return Bt(f)?$s(f):As(f)}function Ee(f){return Bt(f)?Ks(f):Bs(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var Gs=Ar(bs);function $s(f){for(var m=xr.lastIndex=0;xr.test(f);)++m;return m}function Ks(f){return f.match(xr)||[]}function qs(f){return f.match(fs)||[]}var Ys=function f(m){m=m==null?ie:Tt.defaults(ie.Object(),m,Tt.pick(ie,gs));var g=m.Array,L=m.Date,T=m.Error,W=m.Function,ee=m.Math,$=m.Object,Er=m.RegExp,Vs=m.String,Ce=m.TypeError,Sn=g.prototype,Js=W.prototype,Ft=$.prototype,wn=m["__core-js_shared__"],Cn=Js.toString,N=Ft.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Ft.toString,Xs=Cn.call($),Qs=ie._,js=Er("^"+Cn.call(N).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=ji?m.Buffer:r,rt=m.Symbol,An=m.Uint8Array,vo=In?In.allocUnsafe:r,Bn=go($.getPrototypeOf,$),bo=$.create,xo=Ft.propertyIsEnumerable,Rn=Sn.splice,_o=rt?rt.isConcatSpreadable:r,Jt=rt?rt.iterator:r,ft=rt?rt.toStringTag:r,Tn=function(){try{var e=yt($,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==ie.clearTimeout&&m.clearTimeout,tu=L&&L.now!==ie.Date.now&&L.now,nu=m.setTimeout!==ie.setTimeout&&m.setTimeout,Fn=ee.ceil,En=ee.floor,Dr=$.getOwnPropertySymbols,ru=In?In.isBuffer:r,So=m.isFinite,iu=Sn.join,ou=go($.keys,$),te=ee.max,ae=ee.min,au=L.now,lu=m.parseInt,wo=ee.random,su=Sn.reverse,Pr=yt(m,"DataView"),Zt=yt(m,"Map"),Mr=yt(m,"Promise"),Et=yt(m,"Set"),Xt=yt(m,"WeakMap"),Qt=yt($,"create"),Dn=Xt&&new Xt,Dt={},uu=vt(Pr),pu=vt(Zt),cu=vt(Mr),fu=vt(Et),du=vt(Xt),Pn=rt?rt.prototype:r,jt=Pn?Pn.valueOf:r,Co=Pn?Pn.toString:r;function l(e){if(X(e)&&!F(e)&&!(e instanceof k)){if(e instanceof Le)return e;if(N.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Pt=function(){function e(){}return function(t){if(!Z(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Mn(){}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:Al,evaluate:Bl,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Pt(Mn.prototype),Le.prototype.constructor=Le;function k(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function hu(){var e=new k(this.__wrapped__);return e.__actions__=ce(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ce(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ce(this.__views__),e}function gu(){if(this.__filtered__){var e=new k(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=F(e),o=t<0,a=n?e.length:0,s=Bp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,v=o?c:p-1,b=this.__iteratees__,x=b.length,C=0,I=ae(d,this.__takeCount__);if(!n||!o&&a==d&&I==d)return Vo(e,this.__actions__);var B=[];e:for(;d--&&C<I;){v+=t;for(var D=-1,R=e[v];++D<x;){var H=b[D],O=H.iteratee,be=H.type,pe=O(R);if(be==pl)R=pe;else if(!pe){if(be==Ai)continue e;break e}}B[C++]=R}return B}k.prototype=Pt(Mn.prototype),k.prototype.constructor=k;function dt(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__=Qt?Qt(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(Qt){var n=t[e];return n===U?r:n}return N.call(t,e)?t[e]:r}function xu(e){var t=this.__data__;return Qt?t[e]!==r:N.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===r?U:t,this}dt.prototype.clear=yu,dt.prototype.delete=vu,dt.prototype.get=bu,dt.prototype.has=xu,dt.prototype.set=_u;function $e(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=Hn(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=Hn(t,e);return n<0?r:t[n][1]}function Lu(e){return Hn(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=Hn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}$e.prototype.clear=Su,$e.prototype.delete=wu,$e.prototype.get=Cu,$e.prototype.has=Lu,$e.prototype.set=Iu;function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new dt,map:new(Zt||$e),string:new dt}}function Bu(e){var t=Vn(this,e).delete(e);return this.size-=t?1:0,t}function Ru(e){return Vn(this,e).get(e)}function Tu(e){return Vn(this,e).has(e)}function Fu(e,t){var n=Vn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Ke.prototype.clear=Au,Ke.prototype.delete=Bu,Ke.prototype.get=Ru,Ke.prototype.has=Tu,Ke.prototype.set=Fu;function ht(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,U),this}function Du(e){return this.__data__.has(e)}ht.prototype.add=ht.prototype.push=Eu,ht.prototype.has=Du;function De(e){var t=this.__data__=new $e(e);this.size=t.size}function Pu(){this.__data__=new $e,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function ku(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof $e){var o=n.__data__;if(!Zt||o.length<y-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(o)}return n.set(e,t),this.size=n.size,this}De.prototype.clear=Pu,De.prototype.delete=Mu,De.prototype.get=Hu,De.prototype.has=ku,De.prototype.set=Ou;function Lo(e,t){var n=F(e),o=!n&&bt(e),a=!n&&!o&&st(e),s=!n&&!o&&!a&&Ot(e),p=n||o||a||s,c=p?Rr(e.length,Vs):[],d=c.length;for(var v in e)(t||N.call(e,v))&&!(p&&(v=="length"||a&&(v=="offset"||v=="parent")||s&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Je(v,d)))&&c.push(v);return c}function Io(e){var t=e.length;return t?e[qr(0,t-1)]:r}function Wu(e,t){return Jn(ce(e),gt(t,0,e.length))}function Uu(e){return Jn(ce(e))}function Hr(e,t,n){(n!==r&&!Pe(e[t],n)||n===r&&!(t in e))&&qe(e,t,n)}function en(e,t,n){var o=e[t];(!(N.call(e,t)&&Pe(o,n))||n===r&&!(t in e))&&qe(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function zu(e,t,n,o){return it(e,function(a,s,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&Ue(t,ne(t),e)}function Nu(e,t){return e&&Ue(t,de(t),e)}function qe(e,t,n){t=="__proto__"&&Tn?Tn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function kr(e,t){for(var n=-1,o=t.length,a=g(o),s=e==null;++n<o;)a[n]=s?r:yi(e,t[n]);return a}function gt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Ie(e,t,n,o,a,s){var p,c=t&G,d=t&re,v=t&xt;if(n&&(p=a?n(e,o,a,s):n(e)),p!==r)return p;if(!Z(e))return e;var b=F(e);if(b){if(p=Tp(e),!c)return ce(e,p)}else{var x=le(e),C=x==hn||x==Bi;if(st(e))return Xo(e,c);if(x==Ge||x==Ct||C&&!a){if(p=d||C?{}:ma(e),!c)return d?bp(e,Nu(p,e)):vp(e,Ao(p,e))}else{if(!q[x])return a?e:{};p=Fp(e,x,c)}}s||(s=new De);var I=s.get(e);if(I)return I;s.set(e,p),Ka(e)?e.forEach(function(R){p.add(Ie(R,t,n,R,e,s))}):Ga(e)&&e.forEach(function(R,H){p.set(H,Ie(R,t,n,H,e,s))});var B=v?d?ri:ni:d?de:ne,D=b?r:B(e);return we(D||e,function(R,H){D&&(H=R,R=e[H]),en(p,H,Ie(R,t,n,H,e,s))}),p}function Gu(e){var t=ne(e);return function(n){return Bo(n,e,t)}}function Bo(e,t,n){var o=n.length;if(e==null)return!o;for(e=$(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===r&&!(a in e)||!s(p))return!1}return!0}function Ro(e,t,n){if(typeof e!="function")throw new Ce(S);return sn(function(){e.apply(r,n)},t)}function tn(e,t,n,o){var a=-1,s=bn,p=!0,c=e.length,d=[],v=t.length;if(!c)return d;n&&(t=J(t,me(n))),o?(s=wr,p=!1):t.length>=y&&(s=Vt,p=!1,t=new ht(t));e:for(;++a<c;){var b=e[a],x=n==null?b:n(b);if(b=o||b!==0?b:0,p&&x===x){for(var C=v;C--;)if(t[C]===x)continue e;d.push(b)}else s(t,x,o)||d.push(b)}return d}var it=na(We),To=na(Wr,!0);function $u(e,t){var n=!0;return it(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function kn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===r?p===p&&!ve(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),o=o===r||o>a?a:E(o),o<0&&(o+=a),o=n>o?0:Ya(o);n<o;)e[n++]=t;return e}function Fo(e,t){var n=[];return it(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function oe(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?oe(c,t-1,n,o,a):tt(a,c):o||(a[a.length]=c)}return a}var Or=ra(),Eo=ra(!0);function We(e,t){return e&&Or(e,t,ne)}function Wr(e,t){return e&&Eo(e,t,ne)}function On(e,t){return et(t,function(n){return Ze(e[n])})}function mt(e,t){t=at(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[ze(t[n++])];return n&&n==o?e:r}function Do(e,t,n){var o=t(e);return F(e)?o:tt(o,n(e))}function se(e){return e==null?e===r?xl:vl:ft&&ft in $(e)?Ap(e):Up(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&N.call(e,t)}function Yu(e,t){return e!=null&&t in $(e)}function Vu(e,t,n){return e>=ae(t,n)&&e<te(t,n)}function zr(e,t,n){for(var o=n?wr:bn,a=e[0].length,s=e.length,p=s,c=g(s),d=1/0,v=[];p--;){var b=e[p];p&&t&&(b=J(b,me(t))),d=ae(b.length,d),c[p]=!n&&(t||a>=120&&b.length>=120)?new ht(p&&b):r}b=e[0];var x=-1,C=c[0];e:for(;++x<a&&v.length<d;){var I=b[x],B=t?t(I):I;if(I=n||I!==0?I:0,!(C?Vt(C,B):o(v,B,n))){for(p=s;--p;){var D=c[p];if(!(D?Vt(D,B):o(e[p],B,n)))continue e}C&&C.push(B),v.push(I)}}return v}function Ju(e,t,n,o){return We(e,function(a,s,p){t(o,n(a),s,p)}),o}function nn(e,t,n){t=at(t,e),e=xa(e,t);var o=e==null?e:e[ze(Be(t))];return o==null?r:ge(o,e,n)}function Po(e){return X(e)&&se(e)==Ct}function Zu(e){return X(e)&&se(e)==Yt}function Xu(e){return X(e)&&se(e)==Nt}function rn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,o,rn,a)}function Qu(e,t,n,o,a,s){var p=F(e),c=F(t),d=p?fn:le(e),v=c?fn:le(t);d=d==Ct?Ge:d,v=v==Ct?Ge:v;var b=d==Ge,x=v==Ge,C=d==v;if(C&&st(e)){if(!st(t))return!1;p=!0,b=!1}if(C&&!b)return s||(s=new De),p||Ot(e)?da(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&_t)){var I=b&&N.call(e,"__wrapped__"),B=x&&N.call(t,"__wrapped__");if(I||B){var D=I?e.value():e,R=B?t.value():t;return s||(s=new De),a(D,R,n,o,s)}}return C?(s||(s=new De),Ip(e,t,n,o,a,s)):!1}function ju(e){return X(e)&&le(e)==Te}function Nr(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;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<s;){c=n[a];var d=c[0],v=e[d],b=c[1];if(p&&c[2]){if(v===r&&!(d in e))return!1}else{var x=new De;if(o)var C=o(v,b,d,e,t,x);if(!(C===r?rn(b,v,_t|pn,o,x):C))return!1}}return!0}function Mo(e){if(!Z(e)||Mp(e))return!1;var t=Ze(e)?js:Gl;return t.test(vt(e))}function ep(e){return X(e)&&se(e)==$t}function tp(e){return X(e)&&le(e)==Fe}function np(e){return X(e)&&tr(e.length)&&!!Y[se(e)]}function Ho(e){return typeof e=="function"?e:e==null?he:typeof e=="object"?F(e)?Wo(e[0],e[1]):Oo(e):il(e)}function Gr(e){if(!ln(e))return ou(e);var t=[];for(var n in $(e))N.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!Z(e))return Wp(e);var t=ln(e),n=[];for(var o in e)o=="constructor"&&(t||!N.call(e,o))||n.push(o);return n}function $r(e,t){return e<t}function ko(e,t){var n=-1,o=fe(e)?g(e.length):[];return it(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function Oo(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Wo(e,t){return li(e)&&ya(t)?va(ze(e),t):function(n){var o=yi(n,e);return o===r&&o===t?vi(n,e):rn(t,o,_t|pn)}}function Wn(e,t,n,o,a){e!==t&&Or(t,function(s,p){if(a||(a=new De),Z(s))ip(e,t,p,n,Wn,o,a);else{var c=o?o(ui(e,p),s,p+"",e,t,a):r;c===r&&(c=s),Hr(e,p,c)}},de)}function ip(e,t,n,o,a,s,p){var c=ui(e,n),d=ui(t,n),v=p.get(d);if(v){Hr(e,n,v);return}var b=s?s(c,d,n+"",e,t,p):r,x=b===r;if(x){var C=F(d),I=!C&&st(d),B=!C&&!I&&Ot(d);b=d,C||I||B?F(c)?b=c:Q(c)?b=ce(c):I?(x=!1,b=Xo(d,!0)):B?(x=!1,b=Qo(d,!0)):b=[]:un(d)||bt(d)?(b=c,bt(c)?b=Va(c):(!Z(c)||Ze(c))&&(b=ma(d))):x=!1}x&&(p.set(d,b),a(b,d,o,s,p),p.delete(d)),Hr(e,n,b)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Je(t,n)?e[t]:r}function zo(e,t,n){t.length?t=J(t,function(s){return F(s)?function(p){return mt(p,s.length===1?s[0]:s)}:s}):t=[he];var o=-1;t=J(t,me(A()));var a=ko(e,function(s,p,c){var d=J(t,function(v){return v(s)});return{criteria:d,index:++o,value:s}});return Fs(a,function(s,p){return yp(s,p,n)})}function op(e,t){return No(e,t,function(n,o){return vi(e,o)})}function No(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=mt(e,p);n(c,p)&&on(s,at(p,e),c)}return s}function ap(e){return function(t){return mt(t,e)}}function Kr(e,t,n,o){var a=o?Ts:At,s=-1,p=t.length,c=e;for(e===t&&(t=ce(t)),n&&(c=J(e,me(n)));++s<p;)for(var d=0,v=t[s],b=n?n(v):v;(d=a(c,b,d,o))>-1;)c!==e&&Rn.call(c,d,1),Rn.call(e,d,1);return e}function Go(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;Je(a)?Rn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(wo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=te(Fn((t-e)/(n||1)),0),p=g(s);s--;)p[o?s:++a]=e,e+=n;return p}function Yr(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return pi(ba(e,t,he),e+"")}function sp(e){return Io(Wt(e))}function up(e,t){var n=Wt(e);return Jn(n,gt(t,0,n.length))}function on(e,t,n,o){if(!Z(e))return e;t=at(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=ze(t[a]),v=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var b=c[d];v=o?o(b,d,c):r,v===r&&(v=Z(b)?b:Je(t[a+1])?[]:{})}en(c,d,v),c=c[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:he,pp=Tn?function(e,t){return Tn(e,"toString",{configurable:!0,enumerable:!1,value:xi(t),writable:!0})}:he;function cp(e){return Jn(Wt(e))}function Ae(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 s=g(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return it(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function Un(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=hl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!ve(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Vr(e,t,he,n)}function Vr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=ve(t),v=t===r;a<s;){var b=En((a+s)/2),x=n(e[b]),C=x!==r,I=x===null,B=x===x,D=ve(x);if(p)var R=o||B;else v?R=B&&(o||C):c?R=B&&C&&(o||!I):d?R=B&&C&&!I&&(o||!D):I||D?R=!1:R=o?x<=t:x<t;R?a=b+1:s=b}return ae(s,dl)}function Ko(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!Pe(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function qo(e){return typeof e=="number"?e:ve(e)?cn:+e}function ye(e){if(typeof e=="string")return e;if(F(e))return J(e,ye)+"";if(ve(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-pt?"-0":t}function ot(e,t,n){var o=-1,a=bn,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=wr;else if(s>=y){var v=t?null:wp(e);if(v)return _n(v);p=!1,a=Vt,d=new ht}else d=t?[]:c;e:for(;++o<s;){var b=e[o],x=t?t(b):b;if(b=n||b!==0?b:0,p&&x===x){for(var C=d.length;C--;)if(d[C]===x)continue e;t&&d.push(x),c.push(b)}else a(d,x,n)||(d!==c&&d.push(x),c.push(b))}return c}function Jr(e,t){return t=at(t,e),e=xa(e,t),e==null||delete e[ze(Be(t))]}function Yo(e,t,n,o){return on(e,t,n(mt(e,t)),o)}function zn(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?Ae(e,o?0:s,o?s+1:a):Ae(e,o?s+1:0,o?a:s)}function Vo(e,t){var n=e;return n instanceof k&&(n=n.value()),Cr(t,function(o,a){return a.func.apply(a.thisArg,tt([o],a.args))},n)}function Zr(e,t,n){var o=e.length;if(o<2)return o?ot(e[0]):[];for(var a=-1,s=g(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=tn(s[a]||p,e[c],t,n));return ot(oe(s,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:r;n(p,e[o],c)}return p}function Xr(e){return Q(e)?e:[]}function Qr(e){return typeof e=="function"?e:he}function at(e,t){return F(e)?e:li(e,t)?[e]:Ca(z(e))}var dp=P;function lt(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:Ae(e,t,n)}var Zo=eu||function(e){return ie.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,o=vo?vo(n):new e.constructor(n);return e.copy(o),o}function jr(e){var t=new e.constructor(e.byteLength);return new An(t).set(new An(e)),t}function hp(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gp(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return jt?$(jt.call(e)):{}}function Qo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,o=e===null,a=e===e,s=ve(e),p=t!==r,c=t===null,d=t===t,v=ve(t);if(!c&&!v&&!s&&e>t||s&&p&&d&&!c&&!v||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!v&&e<t||v&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=jo(a[o],s[o]);if(d){if(o>=c)return d;var v=n[o];return d*(v=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,v=te(s-p,0),b=g(d+v),x=!o;++c<d;)b[c]=t[c];for(;++a<p;)(x||a<s)&&(b[n[a]]=e[a]);for(;v--;)b[c++]=e[a++];return b}function ta(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,v=t.length,b=te(s-c,0),x=g(b+v),C=!o;++a<b;)x[a]=e[a];for(var I=a;++d<v;)x[I+d]=t[d];for(;++p<c;)(C||a<s)&&(x[I+n[p]]=e[a++]);return x}function ce(e,t){var n=-1,o=e.length;for(t||(t=g(o));++n<o;)t[n]=e[n];return t}function Ue(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):r;d===r&&(d=e[c]),a?qe(n,c,d):en(n,c,d)}return n}function vp(e,t){return Ue(e,ai(e),t)}function bp(e,t){return Ue(e,ha(e),t)}function Nn(e,t){return function(n,o){var a=F(n)?Cs:zu,s=t?t():{};return a(n,e,A(o,2),s)}}function Mt(e){return P(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:r,p=a>2?n[2]:r;for(s=e.length>3&&typeof s=="function"?(a--,s):r,p&&ue(n[0],n[1],p)&&(s=a<3?r:s,a=1),t=$(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function na(e,t){return function(n,o){if(n==null)return n;if(!fe(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=$(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function ra(e){return function(t,n,o){for(var a=-1,s=$(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&_e,a=an(e);function s(){var p=this&&this!==ie&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function ia(e){return function(t){t=z(t);var n=Bt(t)?Ee(t):r,o=n?n[0]:t.charAt(0),a=n?lt(n,1).join(""):t.slice(1);return o[e]()+a}}function Ht(e){return function(t){return Cr(nl(tl(t).replace(ps,"")),e,"")}}function an(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=Pt(e.prototype),o=e.apply(n,t);return Z(o)?o:n}}function _p(e,t,n){var o=an(e);function a(){for(var s=arguments.length,p=g(s),c=s,d=kt(a);c--;)p[c]=arguments[c];var v=s<3&&p[0]!==d&&p[s-1]!==d?[]:nt(p,d);if(s-=v.length,s<n)return ua(e,t,Gn,a.placeholder,r,p,v,r,r,n-s);var b=this&&this!==ie&&this instanceof a?o:e;return ge(b,this,p)}return a}function oa(e){return function(t,n,o){var a=$(t);if(!fe(t)){var s=A(n,3);t=ne(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:r}}function aa(e){return Ve(function(t){var n=t.length,o=n,a=Le.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new Ce(S);if(a&&!p&&Yn(s)=="wrapper")var p=new Le([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Yn(s),d=c=="wrapper"?ii(s):r;d&&si(d[0])&&d[1]==(Ne|He|ke|Ut)&&!d[4].length&&d[9]==1?p=p[Yn(d[0])].apply(p,d[3]):p=s.length==1&&si(s)?p[c]():p.thru(s)}return function(){var v=arguments,b=v[0];if(p&&v.length==1&&F(b))return p.plant(b).value();for(var x=0,C=n?t[x].apply(this,v):b;++x<n;)C=t[x].call(this,C);return C}})}function Gn(e,t,n,o,a,s,p,c,d,v){var b=t&Ne,x=t&_e,C=t&ut,I=t&(He|St),B=t&ir,D=C?r:an(e);function R(){for(var H=arguments.length,O=g(H),be=H;be--;)O[be]=arguments[be];if(I)var pe=kt(R),xe=Ds(O,pe);if(o&&(O=ea(O,o,a,I)),s&&(O=ta(O,s,p,I)),H-=xe,I&&H<v){var j=nt(O,pe);return ua(e,t,Gn,R.placeholder,n,O,j,c,d,v-H)}var Me=x?n:this,Qe=C?Me[e]:e;return H=O.length,c?O=zp(O,c):B&&H>1&&O.reverse(),b&&d<H&&(O.length=d),this&&this!==ie&&this instanceof R&&(Qe=D||an(Qe)),Qe.apply(Me,O)}return R}function la(e,t){return function(n,o){return Ju(n,e,t(o),{})}}function $n(e,t){return function(n,o){var a;if(n===r&&o===r)return t;if(n!==r&&(a=n),o!==r){if(a===r)return o;typeof n=="string"||typeof o=="string"?(n=ye(n),o=ye(o)):(n=qo(n),o=qo(o)),a=e(n,o)}return a}}function ei(e){return Ve(function(t){return t=J(t,me(A())),P(function(n){var o=this;return e(t,function(a){return ge(a,o,n)})})})}function Kn(e,t){t=t===r?" ":ye(t);var n=t.length;if(n<2)return n?Yr(t,e):t;var o=Yr(t,Fn(e/Rt(t)));return Bt(t)?lt(Ee(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&_e,s=an(e);function p(){for(var c=-1,d=arguments.length,v=-1,b=o.length,x=g(b+d),C=this&&this!==ie&&this instanceof p?s:e;++v<b;)x[v]=o[v];for(;d--;)x[v++]=arguments[++c];return ge(C,a?n:this,x)}return p}function sa(e){return function(t,n,o){return o&&typeof o!="number"&&ue(t,n,o)&&(n=o=r),t=Xe(t),n===r?(n=t,t=0):n=Xe(n),o=o===r?t<n?1:-1:Xe(o),lp(t,n,o,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Re(t),n=Re(n)),e(t,n)}}function ua(e,t,n,o,a,s,p,c,d,v){var b=t&He,x=b?p:r,C=b?r:p,I=b?s:r,B=b?r:s;t|=b?ke:wt,t&=~(b?wt:ke),t&Ii||(t&=~(_e|ut));var D=[e,t,a,I,x,B,C,c,d,v],R=n.apply(r,D);return si(e)&&_a(R,D),R.placeholder=o,Sa(R,e,t)}function ti(e){var t=ee[e];return function(n,o){if(n=Re(n),o=o==null?0:ae(E(o),292),o&&So(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=Et&&1/_n(new Et([,-0]))[1]==pt?function(e){return new Et(e)}:wi;function pa(e){return function(t){var n=le(t);return n==Te?Fr(t):n==Fe?Us(t):Es(t,e(t))}}function Ye(e,t,n,o,a,s,p,c){var d=t&ut;if(!d&&typeof e!="function")throw new Ce(S);var v=o?o.length:0;if(v||(t&=~(ke|wt),o=a=r),p=p===r?p:te(E(p),0),c=c===r?c:E(c),v-=a?a.length:0,t&wt){var b=o,x=a;o=a=r}var C=d?r:ii(e),I=[e,t,n,o,a,b,x,s,p,c];if(C&&Op(I,C),e=I[0],t=I[1],n=I[2],o=I[3],a=I[4],c=I[9]=I[9]===r?d?0:e.length:te(I[9]-v,0),!c&&t&(He|St)&&(t&=~(He|St)),!t||t==_e)var B=xp(e,t,n);else t==He||t==St?B=_p(e,t,c):(t==ke||t==(_e|ke))&&!a.length?B=Sp(e,t,n,o):B=Gn.apply(r,I);var D=C?$o:_a;return Sa(D(B,I),e,t)}function ca(e,t,n,o){return e===r||Pe(e,Ft[n])&&!N.call(o,n)?t:e}function fa(e,t,n,o,a,s){return Z(e)&&Z(t)&&(s.set(t,e),Wn(e,t,r,fa,s),s.delete(t)),e}function Cp(e){return un(e)?r:e}function da(e,t,n,o,a,s){var p=n&_t,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var v=s.get(e),b=s.get(t);if(v&&b)return v==t&&b==e;var x=-1,C=!0,I=n&pn?new ht:r;for(s.set(e,t),s.set(t,e);++x<c;){var B=e[x],D=t[x];if(o)var R=p?o(D,B,x,t,e,s):o(B,D,x,e,t,s);if(R!==r){if(R)continue;C=!1;break}if(I){if(!Lr(t,function(H,O){if(!Vt(I,O)&&(B===H||a(B,H,n,o,s)))return I.push(O)})){C=!1;break}}else if(!(B===D||a(B,D,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Yt:return!(e.byteLength!=t.byteLength||!s(new An(e),new An(t)));case zt:case Nt:case Gt:return Pe(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Te:var c=Fr;case Fe:var d=o&_t;if(c||(c=_n),e.size!=t.size&&!d)return!1;var v=p.get(e);if(v)return v==t;o|=pn,p.set(e,t);var b=da(c(e),c(t),o,a,s,p);return p.delete(e),b;case gn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&_t,c=ni(e),d=c.length,v=ni(t),b=v.length;if(d!=b&&!p)return!1;for(var x=d;x--;){var C=c[x];if(!(p?C in t:N.call(t,C)))return!1}var I=s.get(e),B=s.get(t);if(I&&B)return I==t&&B==e;var D=!0;s.set(e,t),s.set(t,e);for(var R=p;++x<d;){C=c[x];var H=e[C],O=t[C];if(o)var be=p?o(O,H,C,t,e,s):o(H,O,C,e,t,s);if(!(be===r?H===O||a(H,O,n,o,s):be)){D=!1;break}R||(R=C=="constructor")}if(D&&!R){var pe=e.constructor,xe=t.constructor;pe!=xe&&"constructor"in e&&"constructor"in t&&!(typeof pe=="function"&&pe instanceof pe&&typeof xe=="function"&&xe instanceof xe)&&(D=!1)}return s.delete(e),s.delete(t),D}function Ve(e){return pi(ba(e,r,Ba),e+"")}function ni(e){return Do(e,ne,ai)}function ri(e){return Do(e,de,ha)}var ii=Dn?function(e){return Dn.get(e)}:wi;function Yn(e){for(var t=e.name+"",n=Dt[t],o=N.call(Dt,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function kt(e){var t=N.call(l,"placeholder")?l:e;return t.placeholder}function A(){var e=l.iteratee||_i;return e=e===_i?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Vn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=ne(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,ya(a)]}return t}function yt(e,t){var n=ks(e,t);return Mo(n)?n:r}function Ap(e){var t=N.call(e,ft),n=e[ft];try{e[ft]=r;var o=!0}catch{}var a=Ln.call(e);return o&&(t?e[ft]=n:delete e[ft]),a}var ai=Dr?function(e){return e==null?[]:(e=$(e),et(Dr(e),function(t){return xo.call(e,t)}))}:Ci,ha=Dr?function(e){for(var t=[];e;)tt(t,ai(e)),e=Bn(e);return t}:Ci,le=se;(Pr&&le(new Pr(new ArrayBuffer(1)))!=Lt||Zt&&le(new Zt)!=Te||Mr&&le(Mr.resolve())!=Ri||Et&&le(new Et)!=Fe||Xt&&le(new Xt)!=qt)&&(le=function(e){var t=se(e),n=t==Ge?e.constructor:r,o=n?vt(n):"";if(o)switch(o){case uu:return Lt;case pu:return Te;case cu:return Ri;case fu:return Fe;case du:return qt}return t});function Bp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.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 Rp(e){var t=e.match(Ml);return t?t[1].split(Hl):[]}function ga(e,t,n){t=at(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=ze(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Je(p,a)&&(F(e)||bt(e)))}function Tp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&N.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!ln(e)?Pt(Bn(e)):{}}function Fp(e,t,n){var o=e.constructor;switch(t){case Yt:return jr(e);case zt:case Nt:return new o(+e);case Lt:return hp(e,n);case or:case ar:case lr:case sr:case ur:case pr:case cr:case fr:case dr:return Qo(e,n);case Te:return new o;case Gt:case Kt:return new o(e);case $t:return gp(e);case Fe:return new o;case gn:return mp(e)}}function Ep(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(i,u){(function(){var r,g="4.17.21",b=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",M="Invalid `variable` option passed into `_.template`",ae="__lodash_hash_undefined__",De=500,lt="__lodash_placeholder__",Ie=1,Wt=2,bt=4,xt=1,pn=2,ye=1,st=2,Ii=4,Pe=8,_t=16,Me=32,St=64,ze=128,zt=256,ir=512,al=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,ut=1/0,Xe=9007199254740991,fl=17976931348623157e292,cn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",ze],["bind",ye],["bindKey",st],["curry",Pe],["curryRight",_t],["flip",ir],["partial",Me],["partialRight",St],["rearg",zt]],wt="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",Nt="[object Boolean]",Ut="[object Date]",yl="[object DOMException]",dn="[object Error]",gn="[object Function]",Bi="[object GeneratorFunction]",Ae="[object Map]",Gt="[object Number]",vl="[object Null]",Ne="[object Object]",Ti="[object Promise]",bl="[object Proxy]",$t="[object RegExp]",Be="[object Set]",Kt="[object String]",hn="[object Symbol]",xl="[object Undefined]",qt="[object WeakMap]",_l="[object WeakSet]",Vt="[object ArrayBuffer]",Ct="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",pr="[object Uint8Array]",cr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Fi.source),Il=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Bl=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(gr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Ol=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kl=/[()=,{}\[\]\/\s]/,Wl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Yl+Jl+Zl,Mi="\\u2700-\\u27bf",Oi="a-z\\xdf-\\xf6\\xf8-\\xff",Xl="\\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",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",ki="\\ufe0e\\ufe0f",Wi=Xl+Ql+jl+es,mr="['\u2019]",ts="["+yn+"]",zi="["+Wi+"]",vn="["+Pi+"]",Ni="\\d+",ns="["+Mi+"]",Ui="["+Oi+"]",Gi="[^"+yn+Wi+Ni+Mi+Oi+Hi+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Hi+"]",Ki="\\u200d",qi="(?:"+Ui+"|"+Gi+")",is="(?:"+Lt+"|"+Gi+")",Vi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+ki+"]?",os="(?:"+Ki+"(?:"+[$i,vr,br].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=Zi+Ji+os,ss="(?:"+[ns,vr,br].join("|")+")"+Xi,us="(?:"+[$i+vn+"?",vn,vr,br,ts].join("|")+")",ps=RegExp(mr,"g"),cs=RegExp(vn,"g"),xr=RegExp(yr+"(?="+yr+")|"+us+Xi,"g"),fs=RegExp([Lt+"?"+Ui+"+"+Vi+"(?="+[zi,Lt,"$"].join("|")+")",is+"+"+Yi+"(?="+[zi,Lt+qi,"$"].join("|")+")",Lt+"?"+qi+"+"+Vi,Lt+"+"+Yi,ls,as,Ni,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+ki+"]"),gs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hs=["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"],ms=-1,$={};$[or]=$[ar]=$[lr]=$[sr]=$[ur]=$[pr]=$[cr]=$[fr]=$[dr]=!0,$[wt]=$[fn]=$[Vt]=$[Nt]=$[Ct]=$[Ut]=$[dn]=$[gn]=$[Ae]=$[Gt]=$[Ne]=$[$t]=$[Be]=$[Kt]=$[qt]=!1;var G={};G[wt]=G[fn]=G[Vt]=G[Ct]=G[Nt]=G[Ut]=G[or]=G[ar]=G[lr]=G[sr]=G[ur]=G[Ae]=G[Gt]=G[Ne]=G[$t]=G[Be]=G[Kt]=G[hn]=G[pr]=G[cr]=G[fr]=G[dr]=!0,G[dn]=G[gn]=G[qt]=!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,Qi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,j=Qi||ws||Function("return this")(),_r=u&&!u.nodeType&&u,pt=_r&&!0&&i&&!i.nodeType&&i,ji=pt&&pt.exports===_r,Sr=ji&&Qi.process,ve=function(){try{var f=pt&&pt.require&&pt.require("util").types;return f||Sr&&Sr.binding&&Sr.binding("util")}catch{}}(),eo=ve&&ve.isArrayBuffer,to=ve&&ve.isDate,no=ve&&ve.isMap,ro=ve&&ve.isRegExp,io=ve&&ve.isSet,oo=ve&&ve.isTypedArray;function ce(f,m,h){switch(h.length){case 0:return f.call(m);case 1:return f.call(m,h[0]);case 2:return f.call(m,h[0],h[1]);case 3:return f.call(m,h[0],h[1],h[2])}return f.apply(m,h)}function Cs(f,m,h,L){for(var F=-1,W=f==null?0:f.length;++F<W;){var Z=f[F];m(L,Z,h(Z),f)}return L}function be(f,m){for(var h=-1,L=f==null?0:f.length;++h<L&&m(f[h],h,f)!==!1;);return f}function Ls(f,m){for(var h=f==null?0:f.length;h--&&m(f[h],h,f)!==!1;);return f}function ao(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(!m(f[h],h,f))return!1;return!0}function Qe(f,m){for(var h=-1,L=f==null?0:f.length,F=0,W=[];++h<L;){var Z=f[h];m(Z,h,f)&&(W[F++]=Z)}return W}function bn(f,m){var h=f==null?0:f.length;return!!h&&It(f,m,0)>-1}function wr(f,m,h){for(var L=-1,F=f==null?0:f.length;++L<F;)if(h(m,f[L]))return!0;return!1}function K(f,m){for(var h=-1,L=f==null?0:f.length,F=Array(L);++h<L;)F[h]=m(f[h],h,f);return F}function je(f,m){for(var h=-1,L=m.length,F=f.length;++h<L;)f[F+h]=m[h];return f}function Cr(f,m,h,L){var F=-1,W=f==null?0:f.length;for(L&&W&&(h=f[++F]);++F<W;)h=m(h,f[F],F,f);return h}function Is(f,m,h,L){var F=f==null?0:f.length;for(L&&F&&(h=f[--F]);F--;)h=m(h,f[F],F,f);return h}function Lr(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(m(f[h],h,f))return!0;return!1}var As=Ir("length");function Bs(f){return f.split("")}function Ts(f){return f.match(Hl)||[]}function lo(f,m,h){var L;return h(f,function(F,W,Z){if(m(F,W,Z))return L=W,!1}),L}function xn(f,m,h,L){for(var F=f.length,W=h+(L?1:-1);L?W--:++W<F;)if(m(f[W],W,f))return W;return-1}function It(f,m,h){return m===m?Ns(f,m,h):xn(f,so,h)}function Fs(f,m,h,L){for(var F=h-1,W=f.length;++F<W;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var h=f==null?0:f.length;return h?Br(f,m)/h:cn}function Ir(f){return function(m){return m==null?r:m[f]}}function Ar(f){return function(m){return f==null?r:f[m]}}function po(f,m,h,L,F){return F(f,function(W,Z,U){h=L?(L=!1,W):m(h,W,Z,U)}),h}function Rs(f,m){var h=f.length;for(f.sort(m);h--;)f[h]=f[h].value;return f}function Br(f,m){for(var h,L=-1,F=f.length;++L<F;){var W=m(f[L]);W!==r&&(h=h===r?W:h+W)}return h}function Tr(f,m){for(var h=-1,L=Array(f);++h<f;)L[h]=m(h);return L}function Es(f,m){return K(m,function(h){return[h,f[h]]})}function co(f){return f&&f.slice(0,mo(f)+1).replace(hr,"")}function fe(f){return function(m){return f(m)}}function Fr(f,m){return K(m,function(h){return f[h]})}function Yt(f,m){return f.has(m)}function fo(f,m){for(var h=-1,L=f.length;++h<L&&It(m,f[h],0)>-1;);return h}function go(f,m){for(var h=f.length;h--&&It(m,f[h],0)>-1;);return h}function Ds(f,m){for(var h=f.length,L=0;h--;)f[h]===m&&++L;return L}var Ps=Ar(ys),Ms=Ar(vs);function Os(f){return"\\"+xs[f]}function Hs(f,m){return f==null?r:f[m]}function At(f){return ds.test(f)}function ks(f){return gs.test(f)}function Ws(f){for(var m,h=[];!(m=f.next()).done;)h.push(m.value);return h}function Rr(f){var m=-1,h=Array(f.size);return f.forEach(function(L,F){h[++m]=[F,L]}),h}function ho(f,m){return function(h){return f(m(h))}}function et(f,m){for(var h=-1,L=f.length,F=0,W=[];++h<L;){var Z=f[h];(Z===m||Z===lt)&&(f[h]=lt,W[F++]=h)}return W}function _n(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=L}),h}function zs(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=[L,L]}),h}function Ns(f,m,h){for(var L=h-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Us(f,m,h){for(var L=h+1;L--;)if(f[L]===m)return L;return L}function Bt(f){return At(f)?$s(f):As(f)}function Te(f){return At(f)?Ks(f):Bs(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var Gs=Ar(bs);function $s(f){for(var m=xr.lastIndex=0;xr.test(f);)++m;return m}function Ks(f){return f.match(xr)||[]}function qs(f){return f.match(fs)||[]}var Vs=function f(m){m=m==null?j:Tt.defaults(j.Object(),m,Tt.pick(j,hs));var h=m.Array,L=m.Date,F=m.Error,W=m.Function,Z=m.Math,U=m.Object,Er=m.RegExp,Ys=m.String,xe=m.TypeError,Sn=h.prototype,Js=W.prototype,Ft=U.prototype,wn=m["__core-js_shared__"],Cn=Js.toString,N=Ft.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Ft.toString,Xs=Cn.call(U),Qs=j._,js=Er("^"+Cn.call(N).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=ji?m.Buffer:r,tt=m.Symbol,An=m.Uint8Array,vo=In?In.allocUnsafe:r,Bn=ho(U.getPrototypeOf,U),bo=U.create,xo=Ft.propertyIsEnumerable,Tn=Sn.splice,_o=tt?tt.isConcatSpreadable:r,Jt=tt?tt.iterator:r,ct=tt?tt.toStringTag:r,Fn=function(){try{var e=mt(U,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==j.clearTimeout&&m.clearTimeout,tu=L&&L.now!==j.Date.now&&L.now,nu=m.setTimeout!==j.setTimeout&&m.setTimeout,Rn=Z.ceil,En=Z.floor,Dr=U.getOwnPropertySymbols,ru=In?In.isBuffer:r,So=m.isFinite,iu=Sn.join,ou=ho(U.keys,U),X=Z.max,te=Z.min,au=L.now,lu=m.parseInt,wo=Z.random,su=Sn.reverse,Pr=mt(m,"DataView"),Zt=mt(m,"Map"),Mr=mt(m,"Promise"),Rt=mt(m,"Set"),Xt=mt(m,"WeakMap"),Qt=mt(U,"create"),Dn=Xt&&new Xt,Et={},uu=yt(Pr),pu=yt(Zt),cu=yt(Mr),fu=yt(Rt),du=yt(Xt),Pn=tt?tt.prototype:r,jt=Pn?Pn.valueOf:r,Co=Pn?Pn.toString:r;function l(e){if(V(e)&&!R(e)&&!(e instanceof H)){if(e instanceof _e)return e;if(N.call(e,"__wrapped__"))return La(e)}return new _e(e)}var Dt=function(){function e(){}return function(t){if(!q(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Mn(){}function _e(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:Al,evaluate:Bl,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,_e.prototype=Dt(Mn.prototype),_e.prototype.constructor=_e;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new H(this.__wrapped__);return e.__actions__=le(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=le(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=le(this.__views__),e}function hu(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),o=t<0,a=n?e.length:0,s=Bp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,y=o?c:p-1,v=this.__iteratees__,x=v.length,C=0,I=te(d,this.__takeCount__);if(!n||!o&&a==d&&I==d)return Yo(e,this.__actions__);var B=[];e:for(;d--&&C<I;){y+=t;for(var D=-1,T=e[y];++D<x;){var O=v[D],k=O.iteratee,he=O.type,oe=k(T);if(he==pl)T=oe;else if(!oe){if(he==Ai)continue e;break e}}B[C++]=T}return B}H.prototype=Dt(Mn.prototype),H.prototype.constructor=H;function ft(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__=Qt?Qt(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(Qt){var n=t[e];return n===ae?r:n}return N.call(t,e)?t[e]:r}function xu(e){var t=this.__data__;return Qt?t[e]!==r:N.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===r?ae:t,this}ft.prototype.clear=yu,ft.prototype.delete=vu,ft.prototype.get=bu,ft.prototype.has=xu,ft.prototype.set=_u;function Ue(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=On(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Tn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=On(t,e);return n<0?r:t[n][1]}function Lu(e){return On(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=On(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ue.prototype.clear=Su,Ue.prototype.delete=wu,Ue.prototype.get=Cu,Ue.prototype.has=Lu,Ue.prototype.set=Iu;function Ge(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new ft,map:new(Zt||Ue),string:new ft}}function Bu(e){var t=Yn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Yn(this,e).get(e)}function Fu(e){return Yn(this,e).has(e)}function Ru(e,t){var n=Yn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Ge.prototype.clear=Au,Ge.prototype.delete=Bu,Ge.prototype.get=Tu,Ge.prototype.has=Fu,Ge.prototype.set=Ru;function dt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ge;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,ae),this}function Du(e){return this.__data__.has(e)}dt.prototype.add=dt.prototype.push=Eu,dt.prototype.has=Du;function Fe(e){var t=this.__data__=new Ue(e);this.size=t.size}function Pu(){this.__data__=new Ue,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ou(e){return this.__data__.get(e)}function Hu(e){return this.__data__.has(e)}function ku(e,t){var n=this.__data__;if(n instanceof Ue){var o=n.__data__;if(!Zt||o.length<b-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ge(o)}return n.set(e,t),this.size=n.size,this}Fe.prototype.clear=Pu,Fe.prototype.delete=Mu,Fe.prototype.get=Ou,Fe.prototype.has=Hu,Fe.prototype.set=ku;function Lo(e,t){var n=R(e),o=!n&&vt(e),a=!n&&!o&&at(e),s=!n&&!o&&!a&&Ht(e),p=n||o||a||s,c=p?Tr(e.length,Ys):[],d=c.length;for(var y in e)(t||N.call(e,y))&&!(p&&(y=="length"||a&&(y=="offset"||y=="parent")||s&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ve(y,d)))&&c.push(y);return c}function Io(e){var t=e.length;return t?e[qr(0,t-1)]:r}function Wu(e,t){return Jn(le(e),gt(t,0,e.length))}function zu(e){return Jn(le(e))}function Or(e,t,n){(n!==r&&!Re(e[t],n)||n===r&&!(t in e))&&$e(e,t,n)}function en(e,t,n){var o=e[t];(!(N.call(e,t)&&Re(o,n))||n===r&&!(t in e))&&$e(e,t,n)}function On(e,t){for(var n=e.length;n--;)if(Re(e[n][0],t))return n;return-1}function Nu(e,t,n,o){return nt(e,function(a,s,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&ke(t,Q(t),e)}function Uu(e,t){return e&&ke(t,ue(t),e)}function $e(e,t,n){t=="__proto__"&&Fn?Fn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hr(e,t){for(var n=-1,o=t.length,a=h(o),s=e==null;++n<o;)a[n]=s?r:yi(e,t[n]);return a}function gt(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Se(e,t,n,o,a,s){var p,c=t&Ie,d=t&Wt,y=t&bt;if(n&&(p=a?n(e,o,a,s):n(e)),p!==r)return p;if(!q(e))return e;var v=R(e);if(v){if(p=Fp(e),!c)return le(e,p)}else{var x=ne(e),C=x==gn||x==Bi;if(at(e))return Xo(e,c);if(x==Ne||x==wt||C&&!a){if(p=d||C?{}:ma(e),!c)return d?bp(e,Uu(p,e)):vp(e,Ao(p,e))}else{if(!G[x])return a?e:{};p=Rp(e,x,c)}}s||(s=new Fe);var I=s.get(e);if(I)return I;s.set(e,p),Ka(e)?e.forEach(function(T){p.add(Se(T,t,n,T,e,s))}):Ga(e)&&e.forEach(function(T,O){p.set(O,Se(T,t,n,O,e,s))});var B=y?d?ri:ni:d?ue:Q,D=v?r:B(e);return be(D||e,function(T,O){D&&(O=T,T=e[O]),en(p,O,Se(T,t,n,O,e,s))}),p}function Gu(e){var t=Q(e);return function(n){return Bo(n,e,t)}}function Bo(e,t,n){var o=n.length;if(e==null)return!o;for(e=U(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===r&&!(a in e)||!s(p))return!1}return!0}function To(e,t,n){if(typeof e!="function")throw new xe(S);return sn(function(){e.apply(r,n)},t)}function tn(e,t,n,o){var a=-1,s=bn,p=!0,c=e.length,d=[],y=t.length;if(!c)return d;n&&(t=K(t,fe(n))),o?(s=wr,p=!1):t.length>=b&&(s=Yt,p=!1,t=new dt(t));e:for(;++a<c;){var v=e[a],x=n==null?v:n(v);if(v=o||v!==0?v:0,p&&x===x){for(var C=y;C--;)if(t[C]===x)continue e;d.push(v)}else s(t,x,o)||d.push(v)}return d}var nt=na(He),Fo=na(Wr,!0);function $u(e,t){var n=!0;return nt(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function Hn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===r?p===p&&!ge(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),o=o===r||o>a?a:E(o),o<0&&(o+=a),o=n>o?0:Va(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return nt(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function ee(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?ee(c,t-1,n,o,a):je(a,c):o||(a[a.length]=c)}return a}var kr=ra(),Eo=ra(!0);function He(e,t){return e&&kr(e,t,Q)}function Wr(e,t){return e&&Eo(e,t,Q)}function kn(e,t){return Qe(t,function(n){return Ye(e[n])})}function ht(e,t){t=it(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[We(t[n++])];return n&&n==o?e:r}function Do(e,t,n){var o=t(e);return R(e)?o:je(o,n(e))}function re(e){return e==null?e===r?xl:vl:ct&&ct in U(e)?Ap(e):zp(e)}function zr(e,t){return e>t}function qu(e,t){return e!=null&&N.call(e,t)}function Vu(e,t){return e!=null&&t in U(e)}function Yu(e,t,n){return e>=te(t,n)&&e<X(t,n)}function Nr(e,t,n){for(var o=n?wr:bn,a=e[0].length,s=e.length,p=s,c=h(s),d=1/0,y=[];p--;){var v=e[p];p&&t&&(v=K(v,fe(t))),d=te(v.length,d),c[p]=!n&&(t||a>=120&&v.length>=120)?new dt(p&&v):r}v=e[0];var x=-1,C=c[0];e:for(;++x<a&&y.length<d;){var I=v[x],B=t?t(I):I;if(I=n||I!==0?I:0,!(C?Yt(C,B):o(y,B,n))){for(p=s;--p;){var D=c[p];if(!(D?Yt(D,B):o(e[p],B,n)))continue e}C&&C.push(B),y.push(I)}}return y}function Ju(e,t,n,o){return He(e,function(a,s,p){t(o,n(a),s,p)}),o}function nn(e,t,n){t=it(t,e),e=xa(e,t);var o=e==null?e:e[We(Ce(t))];return o==null?r:ce(o,e,n)}function Po(e){return V(e)&&re(e)==wt}function Zu(e){return V(e)&&re(e)==Vt}function Xu(e){return V(e)&&re(e)==Ut}function rn(e,t,n,o,a){return e===t?!0:e==null||t==null||!V(e)&&!V(t)?e!==e&&t!==t:Qu(e,t,n,o,rn,a)}function Qu(e,t,n,o,a,s){var p=R(e),c=R(t),d=p?fn:ne(e),y=c?fn:ne(t);d=d==wt?Ne:d,y=y==wt?Ne:y;var v=d==Ne,x=y==Ne,C=d==y;if(C&&at(e)){if(!at(t))return!1;p=!0,v=!1}if(C&&!v)return s||(s=new Fe),p||Ht(e)?da(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&xt)){var I=v&&N.call(e,"__wrapped__"),B=x&&N.call(t,"__wrapped__");if(I||B){var D=I?e.value():e,T=B?t.value():t;return s||(s=new Fe),a(D,T,n,o,s)}}return C?(s||(s=new Fe),Ip(e,t,n,o,a,s)):!1}function ju(e){return V(e)&&ne(e)==Ae}function Ur(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;for(e=U(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){c=n[a];var d=c[0],y=e[d],v=c[1];if(p&&c[2]){if(y===r&&!(d in e))return!1}else{var x=new Fe;if(o)var C=o(y,v,d,e,t,x);if(!(C===r?rn(v,y,xt|pn,o,x):C))return!1}}return!0}function Mo(e){if(!q(e)||Mp(e))return!1;var t=Ye(e)?js:Gl;return t.test(yt(e))}function ep(e){return V(e)&&re(e)==$t}function tp(e){return V(e)&&ne(e)==Be}function np(e){return V(e)&&tr(e.length)&&!!$[re(e)]}function Oo(e){return typeof e=="function"?e:e==null?pe:typeof e=="object"?R(e)?Wo(e[0],e[1]):ko(e):il(e)}function Gr(e){if(!ln(e))return ou(e);var t=[];for(var n in U(e))N.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!q(e))return Wp(e);var t=ln(e),n=[];for(var o in e)o=="constructor"&&(t||!N.call(e,o))||n.push(o);return n}function $r(e,t){return e<t}function Ho(e,t){var n=-1,o=se(e)?h(e.length):[];return nt(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function ko(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Ur(n,e,t)}}function Wo(e,t){return li(e)&&ya(t)?va(We(e),t):function(n){var o=yi(n,e);return o===r&&o===t?vi(n,e):rn(t,o,xt|pn)}}function Wn(e,t,n,o,a){e!==t&&kr(t,function(s,p){if(a||(a=new Fe),q(s))ip(e,t,p,n,Wn,o,a);else{var c=o?o(ui(e,p),s,p+"",e,t,a):r;c===r&&(c=s),Or(e,p,c)}},ue)}function ip(e,t,n,o,a,s,p){var c=ui(e,n),d=ui(t,n),y=p.get(d);if(y){Or(e,n,y);return}var v=s?s(c,d,n+"",e,t,p):r,x=v===r;if(x){var C=R(d),I=!C&&at(d),B=!C&&!I&&Ht(d);v=d,C||I||B?R(c)?v=c:Y(c)?v=le(c):I?(x=!1,v=Xo(d,!0)):B?(x=!1,v=Qo(d,!0)):v=[]:un(d)||vt(d)?(v=c,vt(c)?v=Ya(c):(!q(c)||Ye(c))&&(v=ma(d))):x=!1}x&&(p.set(d,v),a(v,d,o,s,p),p.delete(d)),Or(e,n,v)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Ve(t,n)?e[t]:r}function No(e,t,n){t.length?t=K(t,function(s){return R(s)?function(p){return ht(p,s.length===1?s[0]:s)}:s}):t=[pe];var o=-1;t=K(t,fe(A()));var a=Ho(e,function(s,p,c){var d=K(t,function(y){return y(s)});return{criteria:d,index:++o,value:s}});return Rs(a,function(s,p){return yp(s,p,n)})}function op(e,t){return Uo(e,t,function(n,o){return vi(e,o)})}function Uo(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=ht(e,p);n(c,p)&&on(s,it(p,e),c)}return s}function ap(e){return function(t){return ht(t,e)}}function Kr(e,t,n,o){var a=o?Fs:It,s=-1,p=t.length,c=e;for(e===t&&(t=le(t)),n&&(c=K(e,fe(n)));++s<p;)for(var d=0,y=t[s],v=n?n(y):y;(d=a(c,v,d,o))>-1;)c!==e&&Tn.call(c,d,1),Tn.call(e,d,1);return e}function Go(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;Ve(a)?Tn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(wo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=X(Rn((t-e)/(n||1)),0),p=h(s);s--;)p[o?s:++a]=e,e+=n;return p}function Vr(e,t){var n="";if(!e||t<1||t>Xe)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return pi(ba(e,t,pe),e+"")}function sp(e){return Io(kt(e))}function up(e,t){var n=kt(e);return Jn(n,gt(t,0,n.length))}function on(e,t,n,o){if(!q(e))return e;t=it(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=We(t[a]),y=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var v=c[d];y=o?o(v,d,c):r,y===r&&(y=q(v)?v:Ve(t[a+1])?[]:{})}en(c,d,y),c=c[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:pe,pp=Fn?function(e,t){return Fn(e,"toString",{configurable:!0,enumerable:!1,value:xi(t),writable:!0})}:pe;function cp(e){return Jn(kt(e))}function we(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 s=h(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return nt(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function zn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!ge(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Yr(e,t,pe,n)}function Yr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=ge(t),y=t===r;a<s;){var v=En((a+s)/2),x=n(e[v]),C=x!==r,I=x===null,B=x===x,D=ge(x);if(p)var T=o||B;else y?T=B&&(o||C):c?T=B&&C&&(o||!I):d?T=B&&C&&!I&&(o||!D):I||D?T=!1:T=o?x<=t:x<t;T?a=v+1:s=v}return te(s,dl)}function Ko(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!Re(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function qo(e){return typeof e=="number"?e:ge(e)?cn:+e}function de(e){if(typeof e=="string")return e;if(R(e))return K(e,de)+"";if(ge(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-ut?"-0":t}function rt(e,t,n){var o=-1,a=bn,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=wr;else if(s>=b){var y=t?null:wp(e);if(y)return _n(y);p=!1,a=Yt,d=new dt}else d=t?[]:c;e:for(;++o<s;){var v=e[o],x=t?t(v):v;if(v=n||v!==0?v:0,p&&x===x){for(var C=d.length;C--;)if(d[C]===x)continue e;t&&d.push(x),c.push(v)}else a(d,x,n)||(d!==c&&d.push(x),c.push(v))}return c}function Jr(e,t){return t=it(t,e),e=xa(e,t),e==null||delete e[We(Ce(t))]}function Vo(e,t,n,o){return on(e,t,n(ht(e,t)),o)}function Nn(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?we(e,o?0:s,o?s+1:a):we(e,o?s+1:0,o?a:s)}function Yo(e,t){var n=e;return n instanceof H&&(n=n.value()),Cr(t,function(o,a){return a.func.apply(a.thisArg,je([o],a.args))},n)}function Zr(e,t,n){var o=e.length;if(o<2)return o?rt(e[0]):[];for(var a=-1,s=h(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=tn(s[a]||p,e[c],t,n));return rt(ee(s,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:r;n(p,e[o],c)}return p}function Xr(e){return Y(e)?e:[]}function Qr(e){return typeof e=="function"?e:pe}function it(e,t){return R(e)?e:li(e,t)?[e]:Ca(z(e))}var dp=P;function ot(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:we(e,t,n)}var Zo=eu||function(e){return j.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,o=vo?vo(n):new e.constructor(n);return e.copy(o),o}function jr(e){var t=new e.constructor(e.byteLength);return new An(t).set(new An(e)),t}function gp(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hp(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return jt?U(jt.call(e)):{}}function Qo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,o=e===null,a=e===e,s=ge(e),p=t!==r,c=t===null,d=t===t,y=ge(t);if(!c&&!y&&!s&&e>t||s&&p&&d&&!c&&!y||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!y&&e<t||y&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=jo(a[o],s[o]);if(d){if(o>=c)return d;var y=n[o];return d*(y=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,y=X(s-p,0),v=h(d+y),x=!o;++c<d;)v[c]=t[c];for(;++a<p;)(x||a<s)&&(v[n[a]]=e[a]);for(;y--;)v[c++]=e[a++];return v}function ta(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,y=t.length,v=X(s-c,0),x=h(v+y),C=!o;++a<v;)x[a]=e[a];for(var I=a;++d<y;)x[I+d]=t[d];for(;++p<c;)(C||a<s)&&(x[I+n[p]]=e[a++]);return x}function le(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function ke(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):r;d===r&&(d=e[c]),a?$e(n,c,d):en(n,c,d)}return n}function vp(e,t){return ke(e,ai(e),t)}function bp(e,t){return ke(e,ga(e),t)}function Un(e,t){return function(n,o){var a=R(n)?Cs:Nu,s=t?t():{};return a(n,e,A(o,2),s)}}function Pt(e){return P(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:r,p=a>2?n[2]:r;for(s=e.length>3&&typeof s=="function"?(a--,s):r,p&&ie(n[0],n[1],p)&&(s=a<3?r:s,a=1),t=U(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function na(e,t){return function(n,o){if(n==null)return n;if(!se(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=U(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function ra(e){return function(t,n,o){for(var a=-1,s=U(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&ye,a=an(e);function s(){var p=this&&this!==j&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function ia(e){return function(t){t=z(t);var n=At(t)?Te(t):r,o=n?n[0]:t.charAt(0),a=n?ot(n,1).join(""):t.slice(1);return o[e]()+a}}function Mt(e){return function(t){return Cr(nl(tl(t).replace(ps,"")),e,"")}}function an(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=Dt(e.prototype),o=e.apply(n,t);return q(o)?o:n}}function _p(e,t,n){var o=an(e);function a(){for(var s=arguments.length,p=h(s),c=s,d=Ot(a);c--;)p[c]=arguments[c];var y=s<3&&p[0]!==d&&p[s-1]!==d?[]:et(p,d);if(s-=y.length,s<n)return ua(e,t,Gn,a.placeholder,r,p,y,r,r,n-s);var v=this&&this!==j&&this instanceof a?o:e;return ce(v,this,p)}return a}function oa(e){return function(t,n,o){var a=U(t);if(!se(t)){var s=A(n,3);t=Q(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:r}}function aa(e){return qe(function(t){var n=t.length,o=n,a=_e.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new xe(S);if(a&&!p&&Vn(s)=="wrapper")var p=new _e([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Vn(s),d=c=="wrapper"?ii(s):r;d&&si(d[0])&&d[1]==(ze|Pe|Me|zt)&&!d[4].length&&d[9]==1?p=p[Vn(d[0])].apply(p,d[3]):p=s.length==1&&si(s)?p[c]():p.thru(s)}return function(){var y=arguments,v=y[0];if(p&&y.length==1&&R(v))return p.plant(v).value();for(var x=0,C=n?t[x].apply(this,y):v;++x<n;)C=t[x].call(this,C);return C}})}function Gn(e,t,n,o,a,s,p,c,d,y){var v=t&ze,x=t&ye,C=t&st,I=t&(Pe|_t),B=t&ir,D=C?r:an(e);function T(){for(var O=arguments.length,k=h(O),he=O;he--;)k[he]=arguments[he];if(I)var oe=Ot(T),me=Ds(k,oe);if(o&&(k=ea(k,o,a,I)),s&&(k=ta(k,s,p,I)),O-=me,I&&O<y){var J=et(k,oe);return ua(e,t,Gn,T.placeholder,n,k,J,c,d,y-O)}var Ee=x?n:this,Ze=C?Ee[e]:e;return O=k.length,c?k=Np(k,c):B&&O>1&&k.reverse(),v&&d<O&&(k.length=d),this&&this!==j&&this instanceof T&&(Ze=D||an(Ze)),Ze.apply(Ee,k)}return T}function la(e,t){return function(n,o){return Ju(n,e,t(o),{})}}function $n(e,t){return function(n,o){var a;if(n===r&&o===r)return t;if(n!==r&&(a=n),o!==r){if(a===r)return o;typeof n=="string"||typeof o=="string"?(n=de(n),o=de(o)):(n=qo(n),o=qo(o)),a=e(n,o)}return a}}function ei(e){return qe(function(t){return t=K(t,fe(A())),P(function(n){var o=this;return e(t,function(a){return ce(a,o,n)})})})}function Kn(e,t){t=t===r?" ":de(t);var n=t.length;if(n<2)return n?Vr(t,e):t;var o=Vr(t,Rn(e/Bt(t)));return At(t)?ot(Te(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&ye,s=an(e);function p(){for(var c=-1,d=arguments.length,y=-1,v=o.length,x=h(v+d),C=this&&this!==j&&this instanceof p?s:e;++y<v;)x[y]=o[y];for(;d--;)x[y++]=arguments[++c];return ce(C,a?n:this,x)}return p}function sa(e){return function(t,n,o){return o&&typeof o!="number"&&ie(t,n,o)&&(n=o=r),t=Je(t),n===r?(n=t,t=0):n=Je(n),o=o===r?t<n?1:-1:Je(o),lp(t,n,o,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Le(t),n=Le(n)),e(t,n)}}function ua(e,t,n,o,a,s,p,c,d,y){var v=t&Pe,x=v?p:r,C=v?r:p,I=v?s:r,B=v?r:s;t|=v?Me:St,t&=~(v?St:Me),t&Ii||(t&=~(ye|st));var D=[e,t,a,I,x,B,C,c,d,y],T=n.apply(r,D);return si(e)&&_a(T,D),T.placeholder=o,Sa(T,e,t)}function ti(e){var t=Z[e];return function(n,o){if(n=Le(n),o=o==null?0:te(E(o),292),o&&So(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=Rt&&1/_n(new Rt([,-0]))[1]==ut?function(e){return new Rt(e)}:wi;function pa(e){return function(t){var n=ne(t);return n==Ae?Rr(t):n==Be?zs(t):Es(t,e(t))}}function Ke(e,t,n,o,a,s,p,c){var d=t&st;if(!d&&typeof e!="function")throw new xe(S);var y=o?o.length:0;if(y||(t&=~(Me|St),o=a=r),p=p===r?p:X(E(p),0),c=c===r?c:E(c),y-=a?a.length:0,t&St){var v=o,x=a;o=a=r}var C=d?r:ii(e),I=[e,t,n,o,a,v,x,s,p,c];if(C&&kp(I,C),e=I[0],t=I[1],n=I[2],o=I[3],a=I[4],c=I[9]=I[9]===r?d?0:e.length:X(I[9]-y,0),!c&&t&(Pe|_t)&&(t&=~(Pe|_t)),!t||t==ye)var B=xp(e,t,n);else t==Pe||t==_t?B=_p(e,t,c):(t==Me||t==(ye|Me))&&!a.length?B=Sp(e,t,n,o):B=Gn.apply(r,I);var D=C?$o:_a;return Sa(D(B,I),e,t)}function ca(e,t,n,o){return e===r||Re(e,Ft[n])&&!N.call(o,n)?t:e}function fa(e,t,n,o,a,s){return q(e)&&q(t)&&(s.set(t,e),Wn(e,t,r,fa,s),s.delete(t)),e}function Cp(e){return un(e)?r:e}function da(e,t,n,o,a,s){var p=n&xt,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var x=-1,C=!0,I=n&pn?new dt:r;for(s.set(e,t),s.set(t,e);++x<c;){var B=e[x],D=t[x];if(o)var T=p?o(D,B,x,t,e,s):o(B,D,x,e,t,s);if(T!==r){if(T)continue;C=!1;break}if(I){if(!Lr(t,function(O,k){if(!Yt(I,k)&&(B===O||a(B,O,n,o,s)))return I.push(k)})){C=!1;break}}else if(!(B===D||a(B,D,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Ct:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Vt:return!(e.byteLength!=t.byteLength||!s(new An(e),new An(t)));case Nt:case Ut:case Gt:return Re(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Ae:var c=Rr;case Be:var d=o&xt;if(c||(c=_n),e.size!=t.size&&!d)return!1;var y=p.get(e);if(y)return y==t;o|=pn,p.set(e,t);var v=da(c(e),c(t),o,a,s,p);return p.delete(e),v;case hn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&xt,c=ni(e),d=c.length,y=ni(t),v=y.length;if(d!=v&&!p)return!1;for(var x=d;x--;){var C=c[x];if(!(p?C in t:N.call(t,C)))return!1}var I=s.get(e),B=s.get(t);if(I&&B)return I==t&&B==e;var D=!0;s.set(e,t),s.set(t,e);for(var T=p;++x<d;){C=c[x];var O=e[C],k=t[C];if(o)var he=p?o(k,O,C,t,e,s):o(O,k,C,e,t,s);if(!(he===r?O===k||a(O,k,n,o,s):he)){D=!1;break}T||(T=C=="constructor")}if(D&&!T){var oe=e.constructor,me=t.constructor;oe!=me&&"constructor"in e&&"constructor"in t&&!(typeof oe=="function"&&oe instanceof oe&&typeof me=="function"&&me instanceof me)&&(D=!1)}return s.delete(e),s.delete(t),D}function qe(e){return pi(ba(e,r,Ba),e+"")}function ni(e){return Do(e,Q,ai)}function ri(e){return Do(e,ue,ga)}var ii=Dn?function(e){return Dn.get(e)}:wi;function Vn(e){for(var t=e.name+"",n=Et[t],o=N.call(Et,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function Ot(e){var t=N.call(l,"placeholder")?l:e;return t.placeholder}function A(){var e=l.iteratee||_i;return e=e===_i?Oo:e,arguments.length?e(arguments[0],arguments[1]):e}function Yn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=Q(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,ya(a)]}return t}function mt(e,t){var n=Hs(e,t);return Mo(n)?n:r}function Ap(e){var t=N.call(e,ct),n=e[ct];try{e[ct]=r;var o=!0}catch{}var a=Ln.call(e);return o&&(t?e[ct]=n:delete e[ct]),a}var ai=Dr?function(e){return e==null?[]:(e=U(e),Qe(Dr(e),function(t){return xo.call(e,t)}))}:Ci,ga=Dr?function(e){for(var t=[];e;)je(t,ai(e)),e=Bn(e);return t}:Ci,ne=re;(Pr&&ne(new Pr(new ArrayBuffer(1)))!=Ct||Zt&&ne(new Zt)!=Ae||Mr&&ne(Mr.resolve())!=Ti||Rt&&ne(new Rt)!=Be||Xt&&ne(new Xt)!=qt)&&(ne=function(e){var t=re(e),n=t==Ne?e.constructor:r,o=n?yt(n):"";if(o)switch(o){case uu:return Ct;case pu:return Ae;case cu:return Ti;case fu:return Be;case du:return qt}return t});function Bp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=te(t,e+p);break;case"takeRight":e=X(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(Ml);return t?t[1].split(Ol):[]}function ha(e,t,n){t=it(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=We(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Ve(p,a)&&(R(e)||vt(e)))}function Fp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&N.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!ln(e)?Dt(Bn(e)):{}}function Rp(e,t,n){var o=e.constructor;switch(t){case Vt:return jr(e);case Nt:case Ut:return new o(+e);case Ct:return gp(e,n);case or:case ar:case lr:case sr:case ur:case pr:case cr:case fr:case dr:return Qo(e,n);case Ae:return new o;case Gt:case Kt:return new o(e);case $t:return hp(e);case Be:return new o;case hn:return mp(e)}}function Ep(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 F(e)||bt(e)||!!(_o&&e&&e[_o])}function Je(e,t){var n=typeof e;return t=t==null?je:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function ue(e,t,n){if(!Z(n))return!1;var o=typeof t;return(o=="number"?fe(n)&&Je(t,n.length):o=="string"&&t in n)?Pe(n[t],e):!1}function li(e,t){if(F(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Tl.test(e)||!Rl.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 si(e){var t=Yn(e),n=l[t];if(typeof n!="function"||!(t in k.prototype))return!1;if(e===n)return!0;var o=ii(n);return!!o&&e===o[0]}function Mp(e){return!!yo&&yo in e}var Hp=wn?Ze:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ft;return e===n}function ya(e){return e===e&&!Z(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in $(n))}}function kp(e){var t=jn(e,function(o){return n.size===V&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,s=a<(_e|ut|Ne),p=o==Ne&&n==He||o==Ne&&n==Ut&&e[7].length<=t[8]||o==(Ne|Ut)&&t[7].length<=t[8]&&n==He;if(!(s||p))return e;o&_e&&(e[2]=t[2],a|=n&_e?0:Ii);var c=t[3];if(c){var d=e[3];e[3]=d?ea(d,c,t[4]):c,e[4]=d?nt(e[3],K):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ta(d,c,t[6]):c,e[6]=d?nt(e[5],K):t[6]),c=t[7],c&&(e[7]=c),o&Ne&&(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 Wp(e){var t=[];if(e!=null)for(var n in $(e))t.push(n);return t}function Up(e){return Ln.call(e)}function ba(e,t,n){return t=te(t===r?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=te(o.length-t,0),p=g(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=g(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ge(e,this,c)}}function xa(e,t){return t.length<2?e:mt(e,Ae(t,0,-1))}function zp(e,t){for(var n=e.length,o=ae(t.length,n),a=ce(e);o--;){var s=t[o];e[o]=Je(s,n)?a[s]:r}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),sn=nu||function(e,t){return ie.setTimeout(e,t)},pi=wa(pp);function Sa(e,t,n){var o=t+"";return pi(e,Ep(o,Np(Rp(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(r,arguments)}}function Jn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===r?o:t;++n<t;){var s=qr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ca=kp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fl,function(n,o,a,s){t.push(a?s.replace(Wl,"$1"):o||n)}),t});function ze(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-pt?"-0":t}function vt(e){if(e!=null){try{return Cn.call(e)}catch{}try{return e+""}catch{}}return""}function Np(e,t){return we(gl,function(n){var o="_."+n[0];t&n[1]&&!bn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof k)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ce(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?ue(e,t,n):t===r)?t=1:t=te(E(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=g(Fn(o/t));a<o;)p[s++]=Ae(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 s=e[t];s&&(a[o++]=s)}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 tt(F(n)?ce(n):[n],oe(t,1))}var qp=P(function(e,t){return Q(e)?tn(e,oe(t,1,Q,!0)):[]}),Yp=P(function(e,t){var n=Be(t);return Q(n)&&(n=r),Q(e)?tn(e,oe(t,1,Q,!0),A(n,2)):[]}),Vp=P(function(e,t){var n=Be(t);return Q(n)&&(n=r),Q(e)?tn(e,oe(t,1,Q,!0),r,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),Ae(e,t<0?0:t,o)):[]}function Zp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,0,t<0?0:t)):[]}function Xp(e,t){return e&&e.length?zn(e,A(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?zn(e,A(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&ue(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Ia(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=te(o+a,0)),xn(e,A(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!==r&&(a=E(n),a=n<0?te(o+a,0):ae(a,o-1)),xn(e,A(t,3),a,!0)}function Ba(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,pt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(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 Ra(e){return e&&e.length?e[0]:r}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=te(o+a,0)),At(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ae(e,0,-1):[]}var oc=P(function(e){var t=J(e,Xr);return t.length&&t[0]===e[0]?zr(t):[]}),ac=P(function(e){var t=Be(e),n=J(e,Xr);return t===Be(n)?t=r:n.pop(),n.length&&n[0]===e[0]?zr(n,A(t,2)):[]}),lc=P(function(e){var t=Be(e),n=J(e,Xr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?zr(n,r,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]:r}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==r&&(a=E(n),a=a<0?te(o+a,0):ae(a,o-1)),t===t?Ns(e,t,a):xn(e,so,a,!0)}function pc(e,t){return e&&e.length?Uo(e,E(t)):r}var cc=P(Ta);function Ta(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,A(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,r,n):e}var hc=Ve(function(e,t){var n=e==null?0:e.length,o=kr(e,t);return Go(e,J(t,function(a){return Je(a,n)?+a:a}).sort(jo)),o});function gc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=A(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return Go(e,a),n}function ci(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&ue(e,t,n)?(t=0,n=o):(t=t==null?0:E(t),n=n===r?o:E(n)),Ae(e,t,n)):[]}function yc(e,t){return Un(e,t)}function vc(e,t,n){return Vr(e,t,A(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Un(e,t);if(o<n&&Pe(e[o],t))return o}return-1}function xc(e,t){return Un(e,t,!0)}function _c(e,t,n){return Vr(e,t,A(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Un(e,t,!0)-1;if(Pe(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function Cc(e,t){return e&&e.length?Ko(e,A(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Ae(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),Ae(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,t<0?0:t,o)):[]}function Bc(e,t){return e&&e.length?zn(e,A(t,3),!1,!0):[]}function Rc(e,t){return e&&e.length?zn(e,A(t,3)):[]}var Tc=P(function(e){return ot(oe(e,1,Q,!0))}),Fc=P(function(e){var t=Be(e);return Q(t)&&(t=r),ot(oe(e,1,Q,!0),A(t,2))}),Ec=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,ot(oe(e,1,Q,!0),r,t)});function Dc(e){return e&&e.length?ot(e):[]}function Pc(e,t){return e&&e.length?ot(e,A(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:r,e&&e.length?ot(e,r,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=et(e,function(n){if(Q(n))return t=te(n.length,t),!0}),Rr(t,function(n){return J(e,Ir(n))})}function Fa(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:J(n,function(o){return ge(t,r,o)})}var Hc=P(function(e,t){return Q(e)?tn(e,t):[]}),kc=P(function(e){return Zr(et(e,Q))}),Oc=P(function(e){var t=Be(e);return Q(t)&&(t=r),Zr(et(e,Q),A(t,2))}),Wc=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,Zr(et(e,Q),r,t)}),Uc=P(fi);function zc(e,t){return Jo(e||[],t||[],en)}function Nc(e,t){return Jo(e||[],t||[],on)}var Gc=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Fa(e,n)});function Ea(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function Zn(e,t){return t(e)}var Kc=Ve(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return kr(s,e)};return t>1||this.__actions__.length||!(o instanceof k)||!Je(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Zn,args:[a],thisArg:r}),new Le(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(r),s}))});function qc(){return Ea(this)}function Yc(){return new Le(this.value(),this.__chain__)}function Vc(){this.__values__===r&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Zc(e){for(var t,n=this;n instanceof Mn;){var o=La(n);o.__index__=0,o.__values__=r,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Xc(){var e=this.__wrapped__;if(e instanceof k){var t=e;return this.__actions__.length&&(t=new k(this)),t=t.reverse(),t.__actions__.push({func:Zn,args:[ci],thisArg:r}),new Le(t,this.__chain__)}return this.thru(ci)}function Qc(){return Vo(this.__wrapped__,this.__actions__)}var jc=Nn(function(e,t,n){N.call(e,n)?++e[n]:qe(e,n,1)});function ef(e,t,n){var o=F(e)?ao:$u;return n&&ue(e,t,n)&&(t=r),o(e,A(t,3))}function tf(e,t){var n=F(e)?et:Fo;return n(e,A(t,3))}var nf=oa(Ia),rf=oa(Aa);function of(e,t){return oe(Xn(e,t),1)}function af(e,t){return oe(Xn(e,t),pt)}function lf(e,t,n){return n=n===r?1:E(n),oe(Xn(e,t),n)}function Da(e,t){var n=F(e)?we:it;return n(e,A(t,3))}function Pa(e,t){var n=F(e)?Ls:To;return n(e,A(t,3))}var sf=Nn(function(e,t,n){N.call(e,n)?e[n].push(t):qe(e,n,[t])});function uf(e,t,n,o){e=fe(e)?e:Wt(e),n=n&&!o?E(n):0;var a=e.length;return n<0&&(n=te(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&At(e,t,n)>-1}var pf=P(function(e,t,n){var o=-1,a=typeof t=="function",s=fe(e)?g(e.length):[];return it(e,function(p){s[++o]=a?ge(t,p,n):nn(p,t,n)}),s}),cf=Nn(function(e,t,n){qe(e,n,t)});function Xn(e,t){var n=F(e)?J:ko;return n(e,A(t,3))}function ff(e,t,n,o){return e==null?[]:(F(t)||(t=t==null?[]:[t]),n=o?r:n,F(n)||(n=n==null?[]:[n]),zo(e,t,n))}var df=Nn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function hf(e,t,n){var o=F(e)?Cr:po,a=arguments.length<3;return o(e,A(t,4),n,a,it)}function gf(e,t,n){var o=F(e)?Is:po,a=arguments.length<3;return o(e,A(t,4),n,a,To)}function mf(e,t){var n=F(e)?et:Fo;return n(e,er(A(t,3)))}function yf(e){var t=F(e)?Io:sp;return t(e)}function vf(e,t,n){(n?ue(e,t,n):t===r)?t=1:t=E(t);var o=F(e)?Wu:up;return o(e,t)}function bf(e){var t=F(e)?Uu:cp;return t(e)}function xf(e){if(e==null)return 0;if(fe(e))return nr(e)?Rt(e):e.length;var t=le(e);return t==Te||t==Fe?e.size:Gr(e).length}function _f(e,t,n){var o=F(e)?Lr:fp;return n&&ue(e,t,n)&&(t=r),o(e,A(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ue(e,t[0],t[1])?t=[]:n>2&&ue(t[0],t[1],t[2])&&(t=[t[0]]),zo(e,oe(t,1),[])}),Qn=tu||function(){return ie.Date.now()};function wf(e,t){if(typeof t!="function")throw new Ce(S);return e=E(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Ye(e,Ne,r,r,r,r,t)}function Ha(e,t){var n;if(typeof t!="function")throw new Ce(S);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var di=P(function(e,t,n){var o=_e;if(n.length){var a=nt(n,kt(di));o|=ke}return Ye(e,o,t,n,a)}),ka=P(function(e,t,n){var o=_e|ut;if(n.length){var a=nt(n,kt(ka));o|=ke}return Ye(t,o,e,n,a)});function Oa(e,t,n){t=n?r:t;var o=Ye(e,He,r,r,r,r,r,t);return o.placeholder=Oa.placeholder,o}function Wa(e,t,n){t=n?r:t;var o=Ye(e,St,r,r,r,r,r,t);return o.placeholder=Wa.placeholder,o}function Ua(e,t,n){var o,a,s,p,c,d,v=0,b=!1,x=!1,C=!0;if(typeof e!="function")throw new Ce(S);t=Re(t)||0,Z(n)&&(b=!!n.leading,x="maxWait"in n,s=x?te(Re(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(j){var Me=o,Qe=a;return o=a=r,v=j,p=e.apply(Qe,Me),p}function B(j){return v=j,c=sn(H,t),b?I(j):p}function D(j){var Me=j-d,Qe=j-v,ol=t-Me;return x?ae(ol,s-Qe):ol}function R(j){var Me=j-d,Qe=j-v;return d===r||Me>=t||Me<0||x&&Qe>=s}function H(){var j=Qn();if(R(j))return O(j);c=sn(H,D(j))}function O(j){return c=r,C&&o?I(j):(o=a=r,p)}function be(){c!==r&&Zo(c),v=0,o=d=a=c=r}function pe(){return c===r?p:O(Qn())}function xe(){var j=Qn(),Me=R(j);if(o=arguments,a=this,d=j,Me){if(c===r)return B(d);if(x)return Zo(c),c=sn(H,t),I(d)}return c===r&&(c=sn(H,t)),p}return xe.cancel=be,xe.flush=pe,xe}var Cf=P(function(e,t){return Ro(e,1,t)}),Lf=P(function(e,t,n){return Ro(e,Re(t)||0,n)});function If(e){return Ye(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ce(S);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(jn.Cache||Ke),n}jn.Cache=Ke;function er(e){if(typeof e!="function")throw new Ce(S);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 Af(e){return Ha(2,e)}var Bf=dp(function(e,t){t=t.length==1&&F(t[0])?J(t[0],me(A())):J(oe(t,1),me(A()));var n=t.length;return P(function(o){for(var a=-1,s=ae(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return ge(e,this,o)})}),hi=P(function(e,t){var n=nt(t,kt(hi));return Ye(e,ke,r,t,n)}),za=P(function(e,t){var n=nt(t,kt(za));return Ye(e,wt,r,t,n)}),Rf=Ve(function(e,t){return Ye(e,Ut,r,r,r,t)});function Tf(e,t){if(typeof e!="function")throw new Ce(S);return t=t===r?t:E(t),P(e,t)}function Ff(e,t){if(typeof e!="function")throw new Ce(S);return t=t==null?0:te(E(t),0),P(function(n){var o=n[t],a=lt(n,0,t);return o&&tt(a,o),ge(e,this,a)})}function Ef(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ce(S);return Z(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:o,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return hi(Qr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return F(e)?e:[e]}function Hf(e){return Ie(e,xt)}function kf(e,t){return t=typeof t=="function"?t:r,Ie(e,xt,t)}function Of(e){return Ie(e,G|xt)}function Wf(e,t){return t=typeof t=="function"?t:r,Ie(e,G|xt,t)}function Uf(e,t){return t==null||Bo(e,t,ne(t))}function Pe(e,t){return e===t||e!==e&&t!==t}var zf=qn(Ur),Nf=qn(function(e,t){return e>=t}),bt=Po(function(){return arguments}())?Po:function(e){return X(e)&&N.call(e,"callee")&&!xo.call(e,"callee")},F=g.isArray,Gf=eo?me(eo):Zu;function fe(e){return e!=null&&tr(e.length)&&!Ze(e)}function Q(e){return X(e)&&fe(e)}function $f(e){return e===!0||e===!1||X(e)&&se(e)==zt}var st=ru||Li,Kf=to?me(to):Xu;function qf(e){return X(e)&&e.nodeType===1&&!un(e)}function Yf(e){if(e==null)return!0;if(fe(e)&&(F(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Ot(e)||bt(e)))return!e.length;var t=le(e);if(t==Te||t==Fe)return!e.size;if(ln(e))return!Gr(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function Vf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?rn(e,t,r,n):!!o}function gi(e){if(!X(e))return!1;var t=se(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Zf(e){return typeof e=="number"&&So(e)}function Ze(e){if(!Z(e))return!1;var t=se(e);return t==hn||t==Bi||t==ml||t==bl}function Na(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var Ga=no?me(no):ju;function Xf(e,t){return e===t||Nr(e,t,oi(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Nr(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Hp(e))throw new T(w);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||X(e)&&se(e)==Gt}function un(e){if(!X(e)||se(e)!=Ge)return!1;var t=Bn(e);if(t===null)return!0;var n=N.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cn.call(n)==Xs}var mi=ro?me(ro):ep;function rd(e){return Na(e)&&e>=-je&&e<=je}var Ka=io?me(io):tp;function nr(e){return typeof e=="string"||!F(e)&&X(e)&&se(e)==Kt}function ve(e){return typeof e=="symbol"||X(e)&&se(e)==gn}var Ot=oo?me(oo):np;function id(e){return e===r}function od(e){return X(e)&&le(e)==qt}function ad(e){return X(e)&&se(e)==_l}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(fe(e))return nr(e)?Ee(e):ce(e);if(Jt&&e[Jt])return Ws(e[Jt]());var t=le(e),n=t==Te?Fr:t==Fe?_n:Wt;return n(e)}function Xe(e){if(!e)return e===0?e:0;if(e=Re(e),e===pt||e===-pt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Xe(e),n=t%1;return t===t?n?t-n:t:0}function Ya(e){return e?gt(E(e),0,Oe):0}function Re(e){if(typeof e=="number")return e;if(ve(e))return cn;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=co(e);var n=Nl.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?cn:+e}function Va(e){return Ue(e,de(e))}function ud(e){return e?gt(E(e),-je,je):e===0?e:0}function z(e){return e==null?"":ye(e)}var pd=Mt(function(e,t){if(ln(t)||fe(t)){Ue(t,ne(t),e);return}for(var n in t)N.call(t,n)&&en(e,n,t[n])}),Ja=Mt(function(e,t){Ue(t,de(t),e)}),rr=Mt(function(e,t,n,o){Ue(t,de(t),e,o)}),cd=Mt(function(e,t,n,o){Ue(t,ne(t),e,o)}),fd=Ve(kr);function dd(e,t){var n=Pt(e);return t==null?n:Ao(n,t)}var hd=P(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:r;for(a&&ue(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=de(s),c=-1,d=p.length;++c<d;){var v=p[c],b=e[v];(b===r||Pe(b,Ft[v])&&!N.call(e,v))&&(e[v]=s[v])}return e}),gd=P(function(e){return e.push(r,fa),ge(Za,r,e)});function md(e,t){return lo(e,A(t,3),We)}function yd(e,t){return lo(e,A(t,3),Wr)}function vd(e,t){return e==null?e:Or(e,A(t,3),de)}function bd(e,t){return e==null?e:Eo(e,A(t,3),de)}function xd(e,t){return e&&We(e,A(t,3))}function _d(e,t){return e&&Wr(e,A(t,3))}function Sd(e){return e==null?[]:On(e,ne(e))}function wd(e){return e==null?[]:On(e,de(e))}function yi(e,t,n){var o=e==null?r:mt(e,t);return o===r?n:o}function Cd(e,t){return e!=null&&ga(e,t,qu)}function vi(e,t){return e!=null&&ga(e,t,Yu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},xi(he)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},A),Ad=P(nn);function ne(e){return fe(e)?Lo(e):Gr(e)}function de(e){return fe(e)?Lo(e,!0):rp(e)}function Bd(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){qe(n,t(o,a,s),o)}),n}function Rd(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){qe(n,a,t(o,a,s))}),n}var Td=Mt(function(e,t,n){Wn(e,t,n)}),Za=Mt(function(e,t,n,o){Wn(e,t,n,o)}),Fd=Ve(function(e,t){var n={};if(e==null)return n;var o=!1;t=J(t,function(s){return s=at(s,e),o||(o=s.length>1),s}),Ue(e,ri(e),n),o&&(n=Ie(n,G|re|xt,Cp));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Xa(e,er(A(t)))}var Dd=Ve(function(e,t){return e==null?{}:op(e,t)});function Xa(e,t){if(e==null)return{};var n=J(ri(e),function(o){return[o]});return t=A(t),No(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=at(t,e);var o=-1,a=t.length;for(a||(a=1,e=r);++o<a;){var s=e==null?r:e[ze(t[o])];s===r&&(o=a,s=n),e=Ze(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Hd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:on(e,t,n,o)}var Qa=pa(ne),ja=pa(de);function kd(e,t,n){var o=F(e),a=o||st(e)||Ot(e);if(t=A(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:Z(e)?n=Ze(s)?Pt(Bn(e)):{}:n={}}return(a?we:We)(e,function(p,c,d){return t(n,p,c,d)}),n}function Od(e,t){return e==null?!0:Jr(e,t)}function Wd(e,t,n){return e==null?e:Yo(e,t,Qr(n))}function Ud(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:Yo(e,t,Qr(n),o)}function Wt(e){return e==null?[]:Tr(e,ne(e))}function zd(e){return e==null?[]:Tr(e,de(e))}function Nd(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Re(n),n=n===n?n:0),t!==r&&(t=Re(t),t=t===t?t:0),gt(Re(e),t,n)}function Gd(e,t,n){return t=Xe(t),n===r?(n=t,t=0):n=Xe(n),e=Re(e),Vu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&ue(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Xe(e),t===r?(t=e,e=0):t=Xe(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 Kd=Ht(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return bi(z(e).toLowerCase())}function tl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=ye(t);var o=e.length;n=n===r?o:gt(E(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yd(e){return e=z(e),e&&Il.test(e)?e.replace(Fi,Ms):e}function Vd(e){return e=z(e),e&&El.test(e)?e.replace(hr,"\\$&"):e}var Jd=Ht(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Ht(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=z(e),t=E(t);var o=t?Rt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Kn(En(a),n)+e+Kn(Fn(a),n)}function jd(e,t,n){e=z(e),t=E(t);var o=t?Rt(e):0;return t&&o<t?e+Kn(t-o,n):e}function eh(e,t,n){e=z(e),t=E(t);var o=t?Rt(e):0;return t&&o<t?Kn(t-o,n)+e:e}function th(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(gr,""),t||0)}function nh(e,t,n){return(n?ue(e,t,n):t===r)?t=1:t=E(t),Yr(z(e),t)}function rh(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ih=Ht(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function oh(e,t,n){return n&&typeof n!="number"&&ue(e,t,n)&&(t=n=r),n=n===r?Oe:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=ye(t),!t&&Bt(e))?lt(Ee(e),0,n):e.split(t,n)):[]}var ah=Ht(function(e,t,n){return e+(n?" ":"")+bi(t)});function lh(e,t,n){return e=z(e),n=n==null?0:gt(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sh(e,t,n){var o=l.templateSettings;n&&ue(e,t,n)&&(t=r),e=z(e),t=rr({},t,o,ca);var a=rr({},t.imports,o.imports,ca),s=ne(a),p=Tr(a,s),c,d,v=0,b=t.interpolate||mn,x="__p += '",C=Er((t.escape||mn).source+"|"+b.source+"|"+(b===Ei?Ul:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),I="//# sourceURL="+(N.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
- `;e.replace(C,function(R,H,O,be,pe,xe){return O||(O=be),x+=e.slice(v,xe).replace(Yl,Hs),H&&(c=!0,x+=`' +
12
- __e(`+H+`) +
13
- '`),pe&&(d=!0,x+=`';
14
- `+pe+`;
15
- __p += '`),O&&(x+=`' +
16
- ((__t = (`+O+`)) == null ? '' : __t) +
17
- '`),v=xe+R.length,R}),x+=`';
10
+ `)}function Dp(e){return R(e)||vt(e)||!!(_o&&e&&e[_o])}function Ve(e,t){var n=typeof e;return t=t==null?Xe:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function ie(e,t,n){if(!q(n))return!1;var o=typeof t;return(o=="number"?se(n)&&Ve(t,n.length):o=="string"&&t in n)?Re(n[t],e):!1}function li(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ge(e)?!0:Fl.test(e)||!Tl.test(e)||t!=null&&e in U(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function si(e){var t=Vn(e),n=l[t];if(typeof n!="function"||!(t in H.prototype))return!1;if(e===n)return!0;var o=ii(n);return!!o&&e===o[0]}function Mp(e){return!!yo&&yo in e}var Op=wn?Ye:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ft;return e===n}function ya(e){return e===e&&!q(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in U(n))}}function Hp(e){var t=jn(e,function(o){return n.size===De&&n.clear(),o}),n=t.cache;return t}function kp(e,t){var n=e[1],o=t[1],a=n|o,s=a<(ye|st|ze),p=o==ze&&n==Pe||o==ze&&n==zt&&e[7].length<=t[8]||o==(ze|zt)&&t[7].length<=t[8]&&n==Pe;if(!(s||p))return e;o&ye&&(e[2]=t[2],a|=n&ye?0:Ii);var c=t[3];if(c){var d=e[3];e[3]=d?ea(d,c,t[4]):c,e[4]=d?et(e[3],lt):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ta(d,c,t[6]):c,e[6]=d?et(e[5],lt):t[6]),c=t[7],c&&(e[7]=c),o&ze&&(e[8]=e[8]==null?t[8]:te(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Wp(e){var t=[];if(e!=null)for(var n in U(e))t.push(n);return t}function zp(e){return Ln.call(e)}function ba(e,t,n){return t=X(t===r?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=X(o.length-t,0),p=h(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=h(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ce(e,this,c)}}function xa(e,t){return t.length<2?e:ht(e,we(t,0,-1))}function Np(e,t){for(var n=e.length,o=te(t.length,n),a=le(e);o--;){var s=t[o];e[o]=Ve(s,n)?a[s]:r}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),sn=nu||function(e,t){return j.setTimeout(e,t)},pi=wa(pp);function Sa(e,t,n){var o=t+"";return pi(e,Ep(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(r,arguments)}}function Jn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===r?o:t;++n<t;){var s=qr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ca=Hp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,o,a,s){t.push(a?s.replace(Wl,"$1"):o||n)}),t});function We(e){if(typeof e=="string"||ge(e))return e;var t=e+"";return t=="0"&&1/e==-ut?"-0":t}function yt(e){if(e!=null){try{return Cn.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return be(hl,function(n){var o="_."+n[0];t&n[1]&&!bn(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof H)return e.clone();var t=new _e(e.__wrapped__,e.__chain__);return t.__actions__=le(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?ie(e,t,n):t===r)?t=1:t=X(E(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=h(Rn(o/t));a<o;)p[s++]=we(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 s=e[t];s&&(a[o++]=s)}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 je(R(n)?le(n):[n],ee(t,1))}var qp=P(function(e,t){return Y(e)?tn(e,ee(t,1,Y,!0)):[]}),Vp=P(function(e,t){var n=Ce(t);return Y(n)&&(n=r),Y(e)?tn(e,ee(t,1,Y,!0),A(n,2)):[]}),Yp=P(function(e,t){var n=Ce(t);return Y(n)&&(n=r),Y(e)?tn(e,ee(t,1,Y,!0),r,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),we(e,t<0?0:t,o)):[]}function Zp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,we(e,0,t<0?0:t)):[]}function Xp(e,t){return e&&e.length?Nn(e,A(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?Nn(e,A(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&ie(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Ia(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=X(o+a,0)),xn(e,A(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!==r&&(a=E(n),a=n<0?X(o+a,0):te(a,o-1)),xn(e,A(t,3),a,!0)}function Ba(e){var t=e==null?0:e.length;return t?ee(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ee(e,ut):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(t),ee(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 Ta(e){return e&&e.length?e[0]:r}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=X(o+a,0)),It(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?we(e,0,-1):[]}var oc=P(function(e){var t=K(e,Xr);return t.length&&t[0]===e[0]?Nr(t):[]}),ac=P(function(e){var t=Ce(e),n=K(e,Xr);return t===Ce(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Nr(n,A(t,2)):[]}),lc=P(function(e){var t=Ce(e),n=K(e,Xr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Nr(n,r,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Ce(e){var t=e==null?0:e.length;return t?e[t-1]:r}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==r&&(a=E(n),a=a<0?X(o+a,0):te(a,o-1)),t===t?Us(e,t,a):xn(e,so,a,!0)}function pc(e,t){return e&&e.length?zo(e,E(t)):r}var cc=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,A(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,r,n):e}var gc=qe(function(e,t){var n=e==null?0:e.length,o=Hr(e,t);return Go(e,K(t,function(a){return Ve(a,n)?+a:a}).sort(jo)),o});function hc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=A(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return Go(e,a),n}function ci(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&ie(e,t,n)?(t=0,n=o):(t=t==null?0:E(t),n=n===r?o:E(n)),we(e,t,n)):[]}function yc(e,t){return zn(e,t)}function vc(e,t,n){return Yr(e,t,A(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=zn(e,t);if(o<n&&Re(e[o],t))return o}return-1}function xc(e,t){return zn(e,t,!0)}function _c(e,t,n){return Yr(e,t,A(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=zn(e,t,!0)-1;if(Re(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function Cc(e,t){return e&&e.length?Ko(e,A(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?we(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),we(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,we(e,t<0?0:t,o)):[]}function Bc(e,t){return e&&e.length?Nn(e,A(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Nn(e,A(t,3)):[]}var Fc=P(function(e){return rt(ee(e,1,Y,!0))}),Rc=P(function(e){var t=Ce(e);return Y(t)&&(t=r),rt(ee(e,1,Y,!0),A(t,2))}),Ec=P(function(e){var t=Ce(e);return t=typeof t=="function"?t:r,rt(ee(e,1,Y,!0),r,t)});function Dc(e){return e&&e.length?rt(e):[]}function Pc(e,t){return e&&e.length?rt(e,A(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:r,e&&e.length?rt(e,r,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=Qe(e,function(n){if(Y(n))return t=X(n.length,t),!0}),Tr(t,function(n){return K(e,Ir(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:K(n,function(o){return ce(t,r,o)})}var Oc=P(function(e,t){return Y(e)?tn(e,t):[]}),Hc=P(function(e){return Zr(Qe(e,Y))}),kc=P(function(e){var t=Ce(e);return Y(t)&&(t=r),Zr(Qe(e,Y),A(t,2))}),Wc=P(function(e){var t=Ce(e);return t=typeof t=="function"?t:r,Zr(Qe(e,Y),r,t)}),zc=P(fi);function Nc(e,t){return Jo(e||[],t||[],en)}function Uc(e,t){return Jo(e||[],t||[],on)}var Gc=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Ra(e,n)});function Ea(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function Zn(e,t){return t(e)}var Kc=qe(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return Hr(s,e)};return t>1||this.__actions__.length||!(o instanceof H)||!Ve(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Zn,args:[a],thisArg:r}),new _e(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(r),s}))});function qc(){return Ea(this)}function Vc(){return new _e(this.value(),this.__chain__)}function Yc(){this.__values__===r&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Zc(e){for(var t,n=this;n instanceof Mn;){var o=La(n);o.__index__=0,o.__values__=r,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Xc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Zn,args:[ci],thisArg:r}),new _e(t,this.__chain__)}return this.thru(ci)}function Qc(){return Yo(this.__wrapped__,this.__actions__)}var jc=Un(function(e,t,n){N.call(e,n)?++e[n]:$e(e,n,1)});function ef(e,t,n){var o=R(e)?ao:$u;return n&&ie(e,t,n)&&(t=r),o(e,A(t,3))}function tf(e,t){var n=R(e)?Qe:Ro;return n(e,A(t,3))}var nf=oa(Ia),rf=oa(Aa);function of(e,t){return ee(Xn(e,t),1)}function af(e,t){return ee(Xn(e,t),ut)}function lf(e,t,n){return n=n===r?1:E(n),ee(Xn(e,t),n)}function Da(e,t){var n=R(e)?be:nt;return n(e,A(t,3))}function Pa(e,t){var n=R(e)?Ls:Fo;return n(e,A(t,3))}var sf=Un(function(e,t,n){N.call(e,n)?e[n].push(t):$e(e,n,[t])});function uf(e,t,n,o){e=se(e)?e:kt(e),n=n&&!o?E(n):0;var a=e.length;return n<0&&(n=X(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&It(e,t,n)>-1}var pf=P(function(e,t,n){var o=-1,a=typeof t=="function",s=se(e)?h(e.length):[];return nt(e,function(p){s[++o]=a?ce(t,p,n):nn(p,t,n)}),s}),cf=Un(function(e,t,n){$e(e,n,t)});function Xn(e,t){var n=R(e)?K:Ho;return n(e,A(t,3))}function ff(e,t,n,o){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=o?r:n,R(n)||(n=n==null?[]:[n]),No(e,t,n))}var df=Un(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var o=R(e)?Cr:po,a=arguments.length<3;return o(e,A(t,4),n,a,nt)}function hf(e,t,n){var o=R(e)?Is:po,a=arguments.length<3;return o(e,A(t,4),n,a,Fo)}function mf(e,t){var n=R(e)?Qe:Ro;return n(e,er(A(t,3)))}function yf(e){var t=R(e)?Io:sp;return t(e)}function vf(e,t,n){(n?ie(e,t,n):t===r)?t=1:t=E(t);var o=R(e)?Wu:up;return o(e,t)}function bf(e){var t=R(e)?zu:cp;return t(e)}function xf(e){if(e==null)return 0;if(se(e))return nr(e)?Bt(e):e.length;var t=ne(e);return t==Ae||t==Be?e.size:Gr(e).length}function _f(e,t,n){var o=R(e)?Lr:fp;return n&&ie(e,t,n)&&(t=r),o(e,A(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ie(e,t[0],t[1])?t=[]:n>2&&ie(t[0],t[1],t[2])&&(t=[t[0]]),No(e,ee(t,1),[])}),Qn=tu||function(){return j.Date.now()};function wf(e,t){if(typeof t!="function")throw new xe(S);return e=E(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Ke(e,ze,r,r,r,r,t)}function Oa(e,t){var n;if(typeof t!="function")throw new xe(S);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var di=P(function(e,t,n){var o=ye;if(n.length){var a=et(n,Ot(di));o|=Me}return Ke(e,o,t,n,a)}),Ha=P(function(e,t,n){var o=ye|st;if(n.length){var a=et(n,Ot(Ha));o|=Me}return Ke(t,o,e,n,a)});function ka(e,t,n){t=n?r:t;var o=Ke(e,Pe,r,r,r,r,r,t);return o.placeholder=ka.placeholder,o}function Wa(e,t,n){t=n?r:t;var o=Ke(e,_t,r,r,r,r,r,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,s,p,c,d,y=0,v=!1,x=!1,C=!0;if(typeof e!="function")throw new xe(S);t=Le(t)||0,q(n)&&(v=!!n.leading,x="maxWait"in n,s=x?X(Le(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(J){var Ee=o,Ze=a;return o=a=r,y=J,p=e.apply(Ze,Ee),p}function B(J){return y=J,c=sn(O,t),v?I(J):p}function D(J){var Ee=J-d,Ze=J-y,ol=t-Ee;return x?te(ol,s-Ze):ol}function T(J){var Ee=J-d,Ze=J-y;return d===r||Ee>=t||Ee<0||x&&Ze>=s}function O(){var J=Qn();if(T(J))return k(J);c=sn(O,D(J))}function k(J){return c=r,C&&o?I(J):(o=a=r,p)}function he(){c!==r&&Zo(c),y=0,o=d=a=c=r}function oe(){return c===r?p:k(Qn())}function me(){var J=Qn(),Ee=T(J);if(o=arguments,a=this,d=J,Ee){if(c===r)return B(d);if(x)return Zo(c),c=sn(O,t),I(d)}return c===r&&(c=sn(O,t)),p}return me.cancel=he,me.flush=oe,me}var Cf=P(function(e,t){return To(e,1,t)}),Lf=P(function(e,t,n){return To(e,Le(t)||0,n)});function If(e){return Ke(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new xe(S);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(jn.Cache||Ge),n}jn.Cache=Ge;function er(e){if(typeof e!="function")throw new xe(S);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 Af(e){return Oa(2,e)}var Bf=dp(function(e,t){t=t.length==1&&R(t[0])?K(t[0],fe(A())):K(ee(t,1),fe(A()));var n=t.length;return P(function(o){for(var a=-1,s=te(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return ce(e,this,o)})}),gi=P(function(e,t){var n=et(t,Ot(gi));return Ke(e,Me,r,t,n)}),Na=P(function(e,t){var n=et(t,Ot(Na));return Ke(e,St,r,t,n)}),Tf=qe(function(e,t){return Ke(e,zt,r,r,r,t)});function Ff(e,t){if(typeof e!="function")throw new xe(S);return t=t===r?t:E(t),P(e,t)}function Rf(e,t){if(typeof e!="function")throw new xe(S);return t=t==null?0:X(E(t),0),P(function(n){var o=n[t],a=ot(n,0,t);return o&&je(a,o),ce(e,this,a)})}function Ef(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new xe(S);return q(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 Df(e){return Ma(e,1)}function Pf(e,t){return gi(Qr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Of(e){return Se(e,bt)}function Hf(e,t){return t=typeof t=="function"?t:r,Se(e,bt,t)}function kf(e){return Se(e,Ie|bt)}function Wf(e,t){return t=typeof t=="function"?t:r,Se(e,Ie|bt,t)}function zf(e,t){return t==null||Bo(e,t,Q(t))}function Re(e,t){return e===t||e!==e&&t!==t}var Nf=qn(zr),Uf=qn(function(e,t){return e>=t}),vt=Po(function(){return arguments}())?Po:function(e){return V(e)&&N.call(e,"callee")&&!xo.call(e,"callee")},R=h.isArray,Gf=eo?fe(eo):Zu;function se(e){return e!=null&&tr(e.length)&&!Ye(e)}function Y(e){return V(e)&&se(e)}function $f(e){return e===!0||e===!1||V(e)&&re(e)==Nt}var at=ru||Li,Kf=to?fe(to):Xu;function qf(e){return V(e)&&e.nodeType===1&&!un(e)}function Vf(e){if(e==null)return!0;if(se(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||at(e)||Ht(e)||vt(e)))return!e.length;var t=ne(e);if(t==Ae||t==Be)return!e.size;if(ln(e))return!Gr(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function Yf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?rn(e,t,r,n):!!o}function hi(e){if(!V(e))return!1;var t=re(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Zf(e){return typeof e=="number"&&So(e)}function Ye(e){if(!q(e))return!1;var t=re(e);return t==gn||t==Bi||t==ml||t==bl}function Ua(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xe}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function V(e){return e!=null&&typeof e=="object"}var Ga=no?fe(no):ju;function Xf(e,t){return e===t||Ur(e,t,oi(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Ur(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Op(e))throw new F(w);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||V(e)&&re(e)==Gt}function un(e){if(!V(e)||re(e)!=Ne)return!1;var t=Bn(e);if(t===null)return!0;var n=N.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cn.call(n)==Xs}var mi=ro?fe(ro):ep;function rd(e){return Ua(e)&&e>=-Xe&&e<=Xe}var Ka=io?fe(io):tp;function nr(e){return typeof e=="string"||!R(e)&&V(e)&&re(e)==Kt}function ge(e){return typeof e=="symbol"||V(e)&&re(e)==hn}var Ht=oo?fe(oo):np;function id(e){return e===r}function od(e){return V(e)&&ne(e)==qt}function ad(e){return V(e)&&re(e)==_l}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(se(e))return nr(e)?Te(e):le(e);if(Jt&&e[Jt])return Ws(e[Jt]());var t=ne(e),n=t==Ae?Rr:t==Be?_n:kt;return n(e)}function Je(e){if(!e)return e===0?e:0;if(e=Le(e),e===ut||e===-ut){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Je(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?gt(E(e),0,Oe):0}function Le(e){if(typeof e=="number")return e;if(ge(e))return cn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=co(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Nl.test(e)?cn:+e}function Ya(e){return ke(e,ue(e))}function ud(e){return e?gt(E(e),-Xe,Xe):e===0?e:0}function z(e){return e==null?"":de(e)}var pd=Pt(function(e,t){if(ln(t)||se(t)){ke(t,Q(t),e);return}for(var n in t)N.call(t,n)&&en(e,n,t[n])}),Ja=Pt(function(e,t){ke(t,ue(t),e)}),rr=Pt(function(e,t,n,o){ke(t,ue(t),e,o)}),cd=Pt(function(e,t,n,o){ke(t,Q(t),e,o)}),fd=qe(Hr);function dd(e,t){var n=Dt(e);return t==null?n:Ao(n,t)}var gd=P(function(e,t){e=U(e);var n=-1,o=t.length,a=o>2?t[2]:r;for(a&&ie(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=ue(s),c=-1,d=p.length;++c<d;){var y=p[c],v=e[y];(v===r||Re(v,Ft[y])&&!N.call(e,y))&&(e[y]=s[y])}return e}),hd=P(function(e){return e.push(r,fa),ce(Za,r,e)});function md(e,t){return lo(e,A(t,3),He)}function yd(e,t){return lo(e,A(t,3),Wr)}function vd(e,t){return e==null?e:kr(e,A(t,3),ue)}function bd(e,t){return e==null?e:Eo(e,A(t,3),ue)}function xd(e,t){return e&&He(e,A(t,3))}function _d(e,t){return e&&Wr(e,A(t,3))}function Sd(e){return e==null?[]:kn(e,Q(e))}function wd(e){return e==null?[]:kn(e,ue(e))}function yi(e,t,n){var o=e==null?r:ht(e,t);return o===r?n:o}function Cd(e,t){return e!=null&&ha(e,t,qu)}function vi(e,t){return e!=null&&ha(e,t,Vu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},xi(pe)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},A),Ad=P(nn);function Q(e){return se(e)?Lo(e):Gr(e)}function ue(e){return se(e)?Lo(e,!0):rp(e)}function Bd(e,t){var n={};return t=A(t,3),He(e,function(o,a,s){$e(n,t(o,a,s),o)}),n}function Td(e,t){var n={};return t=A(t,3),He(e,function(o,a,s){$e(n,a,t(o,a,s))}),n}var Fd=Pt(function(e,t,n){Wn(e,t,n)}),Za=Pt(function(e,t,n,o){Wn(e,t,n,o)}),Rd=qe(function(e,t){var n={};if(e==null)return n;var o=!1;t=K(t,function(s){return s=it(s,e),o||(o=s.length>1),s}),ke(e,ri(e),n),o&&(n=Se(n,Ie|Wt|bt,Cp));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Xa(e,er(A(t)))}var Dd=qe(function(e,t){return e==null?{}:op(e,t)});function Xa(e,t){if(e==null)return{};var n=K(ri(e),function(o){return[o]});return t=A(t),Uo(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=it(t,e);var o=-1,a=t.length;for(a||(a=1,e=r);++o<a;){var s=e==null?r:e[We(t[o])];s===r&&(o=a,s=n),e=Ye(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Od(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:on(e,t,n,o)}var Qa=pa(Q),ja=pa(ue);function Hd(e,t,n){var o=R(e),a=o||at(e)||Ht(e);if(t=A(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:q(e)?n=Ye(s)?Dt(Bn(e)):{}:n={}}return(a?be:He)(e,function(p,c,d){return t(n,p,c,d)}),n}function kd(e,t){return e==null?!0:Jr(e,t)}function Wd(e,t,n){return e==null?e:Vo(e,t,Qr(n))}function zd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:Vo(e,t,Qr(n),o)}function kt(e){return e==null?[]:Fr(e,Q(e))}function Nd(e){return e==null?[]:Fr(e,ue(e))}function Ud(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Le(n),n=n===n?n:0),t!==r&&(t=Le(t),t=t===t?t:0),gt(Le(e),t,n)}function Gd(e,t,n){return t=Je(t),n===r?(n=t,t=0):n=Je(n),e=Le(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&ie(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Je(e),t===r?(t=e,e=0):t=Je(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=wo();return te(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kd=Mt(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return bi(z(e).toLowerCase())}function tl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=de(t);var o=e.length;n=n===r?o:gt(E(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=z(e),e&&Il.test(e)?e.replace(Ri,Ms):e}function Yd(e){return e=z(e),e&&El.test(e)?e.replace(gr,"\\$&"):e}var Jd=Mt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Mt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=z(e),t=E(t);var o=t?Bt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Kn(En(a),n)+e+Kn(Rn(a),n)}function jd(e,t,n){e=z(e),t=E(t);var o=t?Bt(e):0;return t&&o<t?e+Kn(t-o,n):e}function eg(e,t,n){e=z(e),t=E(t);var o=t?Bt(e):0;return t&&o<t?Kn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(hr,""),t||0)}function ng(e,t,n){return(n?ie(e,t,n):t===r)?t=1:t=E(t),Vr(z(e),t)}function rg(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Mt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&ie(e,t,n)&&(t=n=r),n=n===r?Oe:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=de(t),!t&&At(e))?ot(Te(e),0,n):e.split(t,n)):[]}var ag=Mt(function(e,t,n){return e+(n?" ":"")+bi(t)});function lg(e,t,n){return e=z(e),n=n==null?0:gt(E(n),0,e.length),t=de(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&ie(e,t,n)&&(t=r),e=z(e),t=rr({},t,o,ca);var a=rr({},t.imports,o.imports,ca),s=Q(a),p=Fr(a,s),c,d,y=0,v=t.interpolate||mn,x="__p += '",C=Er((t.escape||mn).source+"|"+v.source+"|"+(v===Ei?zl:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),I="//# sourceURL="+(N.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
+ `;e.replace(C,function(T,O,k,he,oe,me){return k||(k=he),x+=e.slice(y,me).replace(Vl,Os),O&&(c=!0,x+=`' +
12
+ __e(`+O+`) +
13
+ '`),oe&&(d=!0,x+=`';
14
+ `+oe+`;
15
+ __p += '`),k&&(x+=`' +
16
+ ((__t = (`+k+`)) == null ? '' : __t) +
17
+ '`),y=me+T.length,T}),x+=`';
18
18
  `;var B=N.call(t,"variable")&&t.variable;if(!B)x=`with (obj) {
19
19
  `+x+`
20
20
  }
21
- `;else if(Ol.test(B))throw new T(M);x=(d?x.replace(Sl,""):x).replace(wl,"$1").replace(Cl,"$1;"),x="function("+(B||"obj")+`) {
21
+ `;else if(kl.test(B))throw new F(M);x=(d?x.replace(Sl,""):x).replace(wl,"$1").replace(Cl,"$1;"),x="function("+(B||"obj")+`) {
22
22
  `+(B?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(d?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+x+`return __p
27
- }`;var D=rl(function(){return W(s,I+"return "+x).apply(r,p)});if(D.source=x,gi(D))throw D;return D}function uh(e){return z(e).toLowerCase()}function ph(e){return z(e).toUpperCase()}function ch(e,t,n){if(e=z(e),e&&(n||t===r))return co(e);if(!e||!(t=ye(t)))return e;var o=Ee(e),a=Ee(t),s=fo(o,a),p=ho(o,a)+1;return lt(o,s,p).join("")}function fh(e,t,n){if(e=z(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var o=Ee(e),a=ho(o,Ee(t))+1;return lt(o,0,a).join("")}function dh(e,t,n){if(e=z(e),e&&(n||t===r))return e.replace(gr,"");if(!e||!(t=ye(t)))return e;var o=Ee(e),a=fo(o,Ee(t));return lt(o,a).join("")}function hh(e,t){var n=al,o=ll;if(Z(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,o="omission"in t?ye(t.omission):o}e=z(e);var s=e.length;if(Bt(e)){var p=Ee(e);s=p.length}if(n>=s)return e;var c=n-Rt(o);if(c<1)return o;var d=p?lt(p,0,c).join(""):e.slice(0,c);if(a===r)return d+o;if(p&&(c+=d.length-c),mi(a)){if(e.slice(c).search(a)){var v,b=d;for(a.global||(a=Er(a.source,z(Di.exec(a))+"g")),a.lastIndex=0;v=a.exec(b);)var x=v.index;d=d.slice(0,x===r?c:x)}}else if(e.indexOf(ye(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function gh(e){return e=z(e),e&&Ll.test(e)?e.replace(Ti,Gs):e}var mh=Ht(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),bi=ia("toUpperCase");function nl(e,t,n){return e=z(e),t=n?r:t,t===r?Os(e)?qs(e):Rs(e):e.match(t)||[]}var rl=P(function(e,t){try{return ge(e,r,t)}catch(n){return gi(n)?n:new T(n)}}),yh=Ve(function(e,t){return we(t,function(n){n=ze(n),qe(e,n,di(e[n],e))}),e});function vh(e){var t=e==null?0:e.length,n=A();return e=t?J(e,function(o){if(typeof o[1]!="function")throw new Ce(S);return[n(o[0]),o[1]]}):[],P(function(o){for(var a=-1;++a<t;){var s=e[a];if(ge(s[0],this,o))return ge(s[1],this,o)}})}function bh(e){return Gu(Ie(e,G))}function xi(e){return function(){return e}}function xh(e,t){return e==null||e!==e?t:e}var _h=aa(),Sh=aa(!0);function he(e){return e}function _i(e){return Ho(typeof e=="function"?e:Ie(e,G))}function wh(e){return Oo(Ie(e,G))}function Ch(e,t){return Wo(e,Ie(t,G))}var Lh=P(function(e,t){return function(n){return nn(n,e,t)}}),Ih=P(function(e,t){return function(n){return nn(e,n,t)}});function Si(e,t,n){var o=ne(t),a=On(t,o);n==null&&!(Z(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=On(t,ne(t)));var s=!(Z(n)&&"chain"in n)||!!n.chain,p=Ze(e);return we(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var v=this.__chain__;if(s||v){var b=e(this.__wrapped__),x=b.__actions__=ce(this.__actions__);return x.push({func:d,args:arguments,thisArg:e}),b.__chain__=v,b}return d.apply(e,tt([this.value()],arguments))})}),e}function Ah(){return ie._===this&&(ie._=Qs),this}function wi(){}function Bh(e){return e=E(e),P(function(t){return Uo(t,e)})}var Rh=ei(J),Th=ei(ao),Fh=ei(Lr);function il(e){return li(e)?Ir(ze(e)):ap(e)}function Eh(e){return function(t){return e==null?r:mt(e,t)}}var Dh=sa(),Ph=sa(!0);function Ci(){return[]}function Li(){return!1}function Mh(){return{}}function Hh(){return""}function kh(){return!0}function Oh(e,t){if(e=E(e),e<1||e>je)return[];var n=Oe,o=ae(e,Oe);t=A(t),e-=Oe;for(var a=Rr(o,t);++n<e;)t(n);return a}function Wh(e){return F(e)?J(e,ze):ve(e)?[e]:ce(Ca(z(e)))}function Uh(e){var t=++Zs;return z(e)+t}var zh=$n(function(e,t){return e+t},0),Nh=ti("ceil"),Gh=$n(function(e,t){return e/t},1),$h=ti("floor");function Kh(e){return e&&e.length?kn(e,he,Ur):r}function qh(e,t){return e&&e.length?kn(e,A(t,2),Ur):r}function Yh(e){return uo(e,he)}function Vh(e,t){return uo(e,A(t,2))}function Jh(e){return e&&e.length?kn(e,he,$r):r}function Zh(e,t){return e&&e.length?kn(e,A(t,2),$r):r}var Xh=$n(function(e,t){return e*t},1),Qh=ti("round"),jh=$n(function(e,t){return e-t},0);function eg(e){return e&&e.length?Br(e,he):0}function tg(e,t){return e&&e.length?Br(e,A(t,2)):0}return l.after=wf,l.ary=Ma,l.assign=pd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=cd,l.at=fd,l.before=Ha,l.bind=di,l.bindAll=yh,l.bindKey=ka,l.castArray=Mf,l.chain=Ea,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vh,l.conforms=bh,l.constant=xi,l.countBy=jc,l.create=dd,l.curry=Oa,l.curryRight=Wa,l.debounce=Ua,l.defaults=hd,l.defaultsDeep=gd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Yp,l.differenceWith=Vp,l.drop=Jp,l.dropRight=Zp,l.dropRightWhile=Xp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ba,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_h,l.flowRight=Sh,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=_i,l.keyBy=cf,l.keys=ne,l.keysIn=de,l.map=Xn,l.mapKeys=Bd,l.mapValues=Rd,l.matches=wh,l.matchesProperty=Ch,l.memoize=jn,l.merge=Td,l.mergeWith=Za,l.method=Lh,l.methodOf=Ih,l.mixin=Si,l.negate=er,l.nthArg=Bh,l.omit=Fd,l.omitBy=Ed,l.once=Af,l.orderBy=ff,l.over=Rh,l.overArgs=Bf,l.overEvery=Th,l.overSome=Fh,l.partial=hi,l.partialRight=za,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eh,l.pull=cc,l.pullAll=Ta,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=hc,l.range=Dh,l.rangeRight=Ph,l.rearg=Rf,l.reject=mf,l.remove=gc,l.rest=Tf,l.reverse=ci,l.sampleSize=vf,l.set=Md,l.setWith=Hd,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=oh,l.spread=Ff,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Bc,l.takeWhile=Rc,l.tap=$c,l.throttle=Ef,l.thru=Zn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=Wh,l.toPlainObject=Va,l.transform=kd,l.unary=Df,l.union=Tc,l.unionBy=Fc,l.unionWith=Ec,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=Mc,l.unset=Od,l.unzip=fi,l.unzipWith=Fa,l.update=Wd,l.updateWith=Ud,l.values=Wt,l.valuesIn=zd,l.without=Hc,l.words=nl,l.wrap=Pf,l.xor=kc,l.xorBy=Oc,l.xorWith=Wc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=Nc,l.zipWith=Gc,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,Si(l,l),l.add=zh,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Nh,l.clamp=Nd,l.clone=Hf,l.cloneDeep=Of,l.cloneDeepWith=Wf,l.cloneWith=kf,l.conformsTo=Uf,l.deburr=tl,l.defaultTo=xh,l.divide=Gh,l.endsWith=qd,l.eq=Pe,l.escape=Yd,l.escapeRegExp=Vd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Aa,l.findLastKey=yd,l.floor=$h,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=yi,l.gt=zf,l.gte=Nf,l.has=Cd,l.hasIn=vi,l.head=Ra,l.identity=he,l.includes=uf,l.indexOf=rc,l.inRange=Gd,l.invoke=Ad,l.isArguments=bt,l.isArray=F,l.isArrayBuffer=Gf,l.isArrayLike=fe,l.isArrayLikeObject=Q,l.isBoolean=$f,l.isBuffer=st,l.isDate=Kf,l.isElement=qf,l.isEmpty=Yf,l.isEqual=Vf,l.isEqualWith=Jf,l.isError=gi,l.isFinite=Zf,l.isFunction=Ze,l.isInteger=Na,l.isLength=tr,l.isMap=Ga,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=Z,l.isObjectLike=X,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ve,l.isTypedArray=Ot,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Jd,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kh,l.maxBy=qh,l.mean=Yh,l.meanBy=Vh,l.min=Jh,l.minBy=Zh,l.stubArray=Ci,l.stubFalse=Li,l.stubObject=Mh,l.stubString=Hh,l.stubTrue=kh,l.multiply=Xh,l.nth=pc,l.noConflict=Ah,l.noop=wi,l.now=Qn,l.pad=Qd,l.padEnd=jd,l.padStart=eh,l.parseInt=th,l.random=$d,l.reduce=hf,l.reduceRight=gf,l.repeat=nh,l.replace=rh,l.result=Pd,l.round=Qh,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ih,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ah,l.startsWith=lh,l.subtract=jh,l.sum=eg,l.sumBy=tg,l.template=sh,l.times=Oh,l.toFinite=Xe,l.toInteger=E,l.toLength=Ya,l.toLower=uh,l.toNumber=Re,l.toSafeInteger=ud,l.toString=z,l.toUpper=ph,l.trim=ch,l.trimEnd=fh,l.trimStart=dh,l.truncate=hh,l.unescape=gh,l.uniqueId=Uh,l.upperCase=mh,l.upperFirst=bi,l.each=Da,l.eachRight=Pa,l.first=Ra,Si(l,function(){var e={};return We(l,function(t,n){N.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,we(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),we(["drop","take"],function(e,t){k.prototype[e]=function(n){n=n===r?1:te(E(n),0);var o=this.__filtered__&&!t?new k(this):this.clone();return o.__filtered__?o.__takeCount__=ae(n,o.__takeCount__):o.__views__.push({size:ae(n,Oe),type:e+(o.__dir__<0?"Right":"")}),o},k.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;k.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:A(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),we(["head","last"],function(e,t){var n="take"+(t?"Right":"");k.prototype[e]=function(){return this[n](1).value()[0]}}),we(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");k.prototype[e]=function(){return this.__filtered__?new k(this):this[n](1)}}),k.prototype.compact=function(){return this.filter(he)},k.prototype.find=function(e){return this.filter(e).head()},k.prototype.findLast=function(e){return this.reverse().find(e)},k.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new k(this):this.map(function(n){return nn(n,e,t)})}),k.prototype.reject=function(e){return this.filter(er(A(e)))},k.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new k(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},k.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},k.prototype.toArray=function(){return this.take(Oe)},We(k.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],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof k,v=c[0],b=d||F(p),x=function(H){var O=a.apply(l,tt([H],c));return o&&C?O[0]:O};b&&n&&typeof v=="function"&&v.length!=1&&(d=b=!1);var C=this.__chain__,I=!!this.__actions__.length,B=s&&!C,D=d&&!I;if(!s&&b){p=D?p:new k(this);var R=e.apply(p,c);return R.__actions__.push({func:Zn,args:[x],thisArg:r}),new Le(R,C)}return B&&D?e.apply(this,c):(R=this.thru(x),B?o?R.value()[0]:R.value():R)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var t=Sn[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 s=this.value();return t.apply(F(s)?s:[],a)}return this[n](function(p){return t.apply(F(p)?p:[],a)})}}),We(k.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";N.call(Dt,o)||(Dt[o]=[]),Dt[o].push({name:t,func:n})}}),Dt[Gn(r,ut).name]=[{name:"wrapper",func:r}],k.prototype.clone=hu,k.prototype.reverse=gu,k.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Yc,l.prototype.next=Vc,l.prototype.plant=Zc,l.prototype.reverse=Xc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,Jt&&(l.prototype[Jt]=Jc),l},Tt=Ys();ct?((ct.exports=Tt)._=Tt,_r._=Tt):ie._=Tt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},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"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string"},validationValue:{type:"string"}}}}}},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",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Lazy Loading Table",const:"LazyLoadingTable"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Radio",const:"Radio"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"Rank",const:"Rank"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"ProgressBar",const:"ProgressBar"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"Upload File",const:"UploadFile"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Slider",const:"Slider"},{title:"Timer",const:"Timer"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"LeaderBoard",const:"LeaderBoard"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"12"}]}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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}]};var buildConfig=i=>{const u=_.cloneDeep(i);let r={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(r.elements=u.elements||[],u.elements&&delete u.elements),r.events=u.events||[],u.events&&delete u.events,r={...u,...r},r};const createLayoutFormat=i=>{let u={};return i.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=i=>{const u=Object.keys(i[0])[0];return i.map(h=>h[u])},getNavigationHistory=(i,u)=>{if(u){let r=i.name;const h=u.split("."),y=[];return h.map((w,S)=>{if(S===0){y.push(w);return}y.push(`${y[S-1]}.${w}`)}),y.map(w=>{const S=_.get(i,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(i,u)=>{let r;if(u){const h=getFormdataFromLocalStorage();r=_.set(h,u,buildConfig(i))}else r=buildConfig(i);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=i=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return i&&(r=_.get(u,i),r={...r,...getNavigationHistory(u,i)}),r||(r=getNavigationHistory(u,i)),r||u},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",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Lazy Loading Table",const:"LazyLoadingTable"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"ProgressBar",const:"ProgressBar"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"Upload File",const:"UploadFile"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Slider",const:"Slider"},{title:"Timer",const:"Timer"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"LeaderBoard",const:"LeaderBoard"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"12"}]}}}]}}}]},OptionArray={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"}}}]}}},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:{}}},getArrayControl=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:r||"Labels for Tab"}}}]}}}),getInputField=(i,u)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(i,u,r,h)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text",options:r}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(i){let u=_.cloneDeep(GraphSection);if(i==="SpeedoMeter")u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];else if(i==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(i==="LeaderBoard")u.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)];else if(i==="CardSlider"){const r=getInputField("heading","Heading"),h=getInputField("iconName","Icon Name");u.elements=[r,h]}else if(i==="ProgressBar"||i==="ProgressBarCard"){const r=getInputField("heading","Heading"),h=getInputField("bottomLabel_1","First BottomLabel"),y=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,h,y,w]}else if(i==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(i==="Box"){const r=getInputField("value","Value");u.elements=[getSelectField("graphType","Label Type",[{title:"URL",const:"url"},{title:"Heading",const:"heading"}]),r]}else if(i==="Button"){const r=getInputField("color","Color"),h=getInputField("size","Size"),y=getInputField("iconName","Icon Name");u.elements=[getSelectField("buttonType","Button Type",[{title:"Button With Text",const:"Button"},{title:"Button With Icon",const:"IconButton"},{title:"Button With Icon and Text",const:"ButtonWithIconAndText"}]),y,h,r,getSelectField("defaultStyle","Default Style",[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(i==="Graph"){const r=getInputField("height","Height"),h=getInputField("heading","Heading"),y=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[h,r,getSelectField("graphType","Graph Type",[{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"}]),y,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else i==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:i==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:i==="Table"||i==="LazyLoadingTable"?u.elements=[getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),EmptyBox]:i==="Radio"&&(u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]);return u},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:"Back"},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:[OptionArray]},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",options:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]},sectionLabels={Select:["Core","Value","style","Event","Validation"],MultipleSelect:["Core","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LazyLoadingTable:["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","Properties","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","Properties","style","Event","Validation"],Timer:["Core","Properties","style","Event","Validation"],Rank:["Core","Properties","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Event","Validation"]},refreshPage=(i,u)=>{var h;const r=_.cloneDeep(componentBasicUiSchema);if(i){const y={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(i),Validation:ValidationSection},w=(h=sectionLabels[i])==null?void 0:h.map(S=>y[S]);r.elements[1].config.main.tabLabels=sectionLabels[i]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(i,u)=>({setPage:async function(){const r=await this.getFormdata();i.setFormdata(r);const h=this.getSchema();i.setSchema(h),this.refreshPage(r==null?void 0:r.type,i)},refreshPage,getFormdata:async function(){var h;const r=(h=i.searchParams)==null?void 0:h.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var h;const r=(h=i.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(i.formData,r),i.navigate(-1),i.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,h,y,w;((r=i==null?void 0:i.formData)==null?void 0:r.type)!==((h=i==null?void 0:i.newData)==null?void 0:h.type)&&((y=i==null?void 0:i.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((w=i==null?void 0:i.newData)==null?void 0:w.type,i)},editComponents:async function(){var w,S,M;const r=u.path.split(".")[1],h=(w=i.searchParams)==null?void 0:w.get("path"),y=(S=i.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(i.formData,h),h){const V=`${(M=i.searchParams)==null?void 0:M.get("path")}.elements[${r}]`;i.searchParams.set("path",V),i.setSearchParams(i.searchParams),this.setPage()}else i.navigate(`/Component?path=${`elements[${r}]`}&id=${y}`)},deleteComponents:async function(){var S;const r=(S=i.searchParams)==null?void 0:S.get("path"),h=u.path.split(".")[1];i.formData.elements.splice(h,1);const y=saveFormdataInLocalStorage(i.formData,r),w=r?_.get(y,r):y;i.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=i.searchParams)==null?void 0:w.get("path"),h=u.path.split(".")[1];i.formData.events.splice(h,1);const y=saveFormdataInLocalStorage(i.formData,r);i.setFormdata(_.get(y,r))},widgetAddClickHandler:async function(){var y;Array.isArray(i.formData.elements)||(i.formData.elements=[]);const r=(y=i.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(i.formData,r);const h=`${r}.elements[${i.formData.elements.length}]`;i.searchParams.set("path",h),i.setSearchParams(i.searchParams),this.setPage()},eventEditHandler:async function(){var S,M;const r=u.path.split(".")[1],h=(S=i.searchParams)==null?void 0:S.get("path"),y=(M=i.searchParams)==null?void 0:M.get("id");saveFormdataInLocalStorage(i.formData,h);const w=`${h}.events[${r}]`;i.navigate(`/ComponentEvents?path=${w}&id=${y}`)},eventAddHandler:async function(){var w,S;const r=(w=i.searchParams)==null?void 0:w.get("path"),h=(S=i.searchParams)==null?void 0:S.get("id");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const y=`${r}.events[${i.formData.events.length}]`;i.navigate(`/ComponentEvents?path=${y}&id=${h}`)},backHandler:function(){i.navigate(-1)}}),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=i=>{const u=_.cloneDeep(leaderBoard);if(i.elements){const r=i.elements.map((h,y)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});u.elements[9].elements=r}return i.name&&(u.elements[0].scope=`#/properties/${i.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${i.name}/properties/firstName`,u.elements[1].scope=`#/properties/${i.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${i.name}/properties/secondName`,u.elements[2].scope=`#/properties/${i.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${i.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${i.name}/properties/table`),i.firstImage&&(u.elements[0].config.main.url=i.firstImage),i.secondImage&&(u.elements[1].config.main.url=i.secondImage),i.secondImage&&(u.elements[2].config.main.url=i.thirdImage),i.layout&&(u.config.layout=i.layout),u};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=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.heading&&(r.config.main.heading=i.heading),i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=i.bottomLabel_1),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},buildProgressBar=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.layout&&(r.config.layout=i.layout),r.config.main.heading=i.heading,i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.config.main.bottomLabel_1=i.bottomLabel_1),r},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:["MAMA New Project","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=(i,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r};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=(i,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.heading&&(r.config.main.header=i.heading),i.segments&&(r.config.main.segments=i.segments),i.style){const h=JSON.parse(i.style);h!=null&&h.style&&(r.config.style={...r.config.style,...h.style}),h!=null&&h.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...h.containerStyle})}return i.width&&(r.config.main.width=i.width),i.speedoCaption&&(r.config.main.currentValueText=i.speedoCaption),i.data&&(r.config.main.data=i.data),i.needleColor&&(r.config.style.needleColor=i.needleColor),i.segments&&(r.config.style.segments=i.segments),i.endColor&&(r.config.style.endColor=i.endColor),i.startColor&&(r.config.style.startColor=i.startColor),i.segmentColors&&(r.config.style.segmentColors=i.segmentColors),r},buildPieGraph=(i,u)=>{const r=_.cloneDeep(PieGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.height&&(r.config.style.containerStyle.height=i.height),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),r.scope=u,r.config.main.header=i.heading,i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r},buildStackbarGraph=(i,u)=>{const r=_.cloneDeep(BarGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=i.graphType,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(i,u)=>{const r=_.cloneDeep(Tabsection);return i.sectionLabels&&(r.config.main.tabLabels=i.sectionLabels.map(h=>h.label)),r.config.main.id=i.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(i,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=i.label,r.config.main.divider=!!i.divider,r.config.main.header=!!i.heading,r};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=(i,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=i.label,i.style&&(r.config.style=JSON.parse(i.style)),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,r};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"}}};const buildSelect=(i,u)=>{const r=_.cloneDeep(SelectInputField);if(r.config.main.label=i.label,i.value){const h=i.value.map(y=>({title:y.label,const:y.value}));r.config.main.options=h}return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(Button);return i.buttonType&&(r.options.widget=i.buttonType==="IconButton"?"IconButton":"Button",i.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=i.iconName:r.config.main.icon=i.iconName),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.defaultStyle&&(r.config.main.styleDefault=i.defaultStyle==="true"),r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.size&&(r.config.main.size=i.size),i.color&&(r.config.main.color=i.color),i.label&&(r.config.main.name=i.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(i,u)=>{const r=_.cloneDeep(Table);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable==="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),r},buildLazyLoadingTable=(i,u)=>{const r=_.cloneDeep(lazyLoadingTable);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable!=="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),r.config.main.label=i.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(i,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},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$1={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=(i,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=i.layout),i.layout&&(uploadFile.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),r.config.main.errorMessage=i.errorMessage,r},buildDownloadFile=(i,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,i.layout&&(r.config.layout=i.layout),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.errorMessage&&(r.config.main.errorMessage=i.errorMessage),r};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=(i,u)=>{const r=_.cloneDeep(Card);return i.style&&(r.config.style=JSON.parse(i.style)),r.elements[0].scope=`#/properties/${i.name}/properties/value`,r.elements[1].scope=`#/properties/${i.name}/properties/url`,r.elements[2].scope=`#/properties/${i.name}/properties/description`,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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 buildDate=(i,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=i.label,r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,i.image&&(r.config.main.url=i.image),i.title&&(r.config.main.title=i.title),i.description&&(r.config.main.description=i.description),i.rank&&(r.config.main.rank=`#${i.rank}`),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RollAndDice);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(MultipleSelect);if(r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.value){const h=i.value.map(y=>({title:y.label,const:y.value}));r.config.main.options=h!=null?h:[]}return r},buildBasicUiSchema=i=>({type:"HorizontalLayout",pageName:`${i.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=(i,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(i,u)=>{const r=_.cloneDeep(cardSlider);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(i,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},buildLineGraph=(i,u)=>{const r=_.cloneDeep(LineGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.header=i.heading,i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r.scope=u,r},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=(i,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.sectionLabels&&(r.config.main.options=i.sectionLabels.map(h=>h.label||h.Options)),i.style&&(r.config.style=JSON.parse(i.style)),r};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=(i,u)=>{const r=_.cloneDeep(emptyBox);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};exports.schema={type:"object",properties:{},required:[]};function buildRule(i,u){i.validation&&i.validation.forEach(r=>{var h,y,w,S,M,U,V,K,G,re;u?(w=(y=(h=exports.schema.properties)==null?void 0:h[u])==null?void 0:y.items)!=null&&w.properties&&((V=(U=(M=(S=exports.schema.properties)==null?void 0:S[u])==null?void 0:M.items)==null?void 0:U.properties)!=null&&V[i.name]||(exports.schema.properties[u].items.properties[i.name]={}),r.validationType==="required"?(re=(G=(K=exports.schema.properties)==null?void 0:K[u])==null?void 0:G.items)==null||re.required.push(i.name):(exports.schema.properties[u].items.properties[i.name].type="string",exports.schema.properties[u].items.properties[i.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue))):(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={}),r.validationType==="required"?exports.schema.required.push(i.name):(exports.schema.properties[i.name].type="string",exports.schema.properties[i.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue)))})}const buildSchema=(i,u)=>(buildRule(i,u),i!=null&&i.elements&&(i.type=="Table"?(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={type:"array",items:{type:"object",properties:{},required:[]}}),i.elements.map((r,h)=>{buildSchema(r,i.name)})):i.elements.map((r,h)=>{buildSchema(r)})),exports.schema),buildUiSchema=i=>{let u={};const r=`#/properties/${i.name}`;switch(i.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(i,r);break;case"TabSection":u=buildTabSection(i);break;case"WrapperSection":u=buildWrapperSection(i);break;case"Text":u=buildTextField(i,r);break;case"TextArea":u=buildTextArea(i,r);break;case"Date":u=buildDate(i,r);break;case"Select":u=buildSelect(i,r);break;case"Radio":u=buildRadio(i,r);break;case"Button":u=buildButton(i,r);break;case"Table":u=buildTable(i,r);break;case"LazyLoadingTable":u=buildLazyLoadingTable(i,r);break;case"Box":u=buildLabel(i,r);break;case"CheckBox":u=buildCheckbox(i,r);break;case"UploadFile":u=buildUploadFile(i,r);break;case"DownloadFile":u=buildDownloadFile(i,r);break;case"EmptyBox":u=buildEmptyBox(i);break;case"card":u=buildCard(i);break;case"Graph":switch(i.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(i,r);break;case"LineGraph":u=buildLineGraph(i,r);break;case"PieGraph":u=buildPieGraph(i,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(i,r);break}break;case"ProgressBar":u=buildProgressBar(i,r);break;case"SpeedoMeter":u=buildSpeedoMeter(i,r);break;case"ProgressBarCard":u=buildProgressBarCard(i,r);break;case"RankCard":u=buildRankCard(i,r);break;case"Rank":u=buildRollAndDice(i,r);break;case"Slider":u=buildSlider(i,r);break;case"Timer":u=buildTimer(i,r);break;case"MultipleSelect":u=buildMultiSelect(i,r);break;case"LeaderBoard":u=buildLeaderBoard(i);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(i)}if(i!=null&&i.elements){if((i==null?void 0:i.type)==="LeaderBoard")return u;i.type=="Table"?u.elements=i.elements.map((h,y)=>h.type?{accessorKey:h.name,header:h.label||h.name,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name}):u.elements=i.elements.map((h,y)=>buildUiSchema(h))}return u};var pageMaster=i=>{const{store:u,dynamicData:r,config:h,submitHandler:y}=i;return{setPage:async function(){const w=await this.getFormdata();u.setFormdata(w);const S=await this.getUiSchema(),M=await this.getSchema();u.setSchema(M),u.setUiSchema(S)},getFormdata:async function(){var S;(S=u.searchParams)==null||S.get("id");const w=getFormdataFromLocalStorage();return w||(saveFormdataInLocalStorage(h),h)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const S=saveFormdataInLocalStorage(u.formData);u.navigate(`/Component?path=${`elements[${S==null?void 0:S.elements.length}]`}&id=${w}`)},submitPageHandler:async function(){console.log(exports.schema),y(u,i.service).then(w=>{localStorage.removeItem("pageFormdata"),u.navigate(-1),u.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(u,r).editComponents,Delete_Components:Component(u,r).deleteComponents,eventAddHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.formData);const S=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${S}&id=${w}`)},editEvent:async function(){var U;const w=r.path.split(".")[1],S=(U=u.searchParams)==null?void 0:U.get("id");saveFormdataInLocalStorage(u.formData);const M=`events[${w}]`;u.navigate(`/ComponentEvents?path=${M}&id=${S}`)},deleteEvent:async function(){const w=r.path.split(".")[1];u.formData.events.splice(w,1);const S=saveFormdataInLocalStorage(u.formData);u.setFormdata(S)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},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",options:[{title:"Click Event",const:"onClick"},{title:"onStart",const:"onStart"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Success",const:"Success"},{title:"Fail",const:"Fail"}]}}},getSelectField("Handler","Handler",[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}])]},{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:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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",options:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]}}},{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"}}}]}}}]};var event=(i,u)=>({setPage:async function(){const r=await this.getFormData();i.setFormdata(r);const h=await this.getSchema();i.setSchema(h),this.refreshPage(r.Handler,i)},refreshPage:(r,h)=>{const y=_.cloneDeep(EventUiSchema);r&&(r==="custom"?y.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?y.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(y.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"}]),y.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(y.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),h.setUiSchema(y)},getFormData:Component(i,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,h,y;((r=i==null?void 0:i.formData)==null?void 0:r.Handler)!==((h=i==null?void 0:i.newData)==null?void 0:h.Handler)&&((y=i==null?void 0:i.newData)==null?void 0:y.Handler)!==void 0&&this.refreshPage(i.newData.Handler||i.formdata.Handler,i)},saveHandler:Component(i,u).saveHandler,addEvent:async function(){var y,w,S;const r=(y=i.searchParams)==null?void 0:y.get("path");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const h=`${r}.events[${(S=(w=i.formData)==null?void 0:w.events)==null?void 0:S.length}]`;i.searchParams.set("path",h),i.setSearchParams(i.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],h=(w=i.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(i.formData,h);const y=`${h}.events[${r}]`;i.searchParams.set("path",y),i.setSearchParams(i.searchParams),this.setPage()},deleteEvent:Component(i,u).deleteEvent,backHandler:function(){i.navigate(-1)}});const downloadFile=i=>{const u=i.name.split("."),r=i.data,h=window.atob(r);let y;y=new File([h],u[u.length-1]);const w=URL.createObjectURL(y),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${i.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async(i,u,r,h,y,w,S,M,U)=>{let V=[],K=null;if(i.eventType==="onLoad"){const{response:G,events:re}=await executetOnLoadEvent(i,u,r,h,y,w,S,M,U);if(i.returnResponse)return G;K=G,V=re}else{if(!shouldEventExecute(i,u,r,h,y,w,S,M))return{response:void 0,events:void 0};const{response:G,events:re}=await executeEventsHandler(i,u,r,h,y,w,S,M,U);K=G,V=re}if((V==null?void 0:V.length)>0)for(const G of V)await executeEvents(G,u,r,h,y,w,S,M,K)},executetOnLoadEvent=async(i,u,r,h,y,w,S,M,U)=>{try{if(!shouldEventExecute(i,u,r,h,y,w,S,M))return{response:void 0,events:void 0};const{response:V}=await executeEventsHandler(i,u,r,h,y,w,S,M,U);if(i.returnResponse)return{response:V};const K=i==null?void 0:i.events.filter(re=>re.eventType==="Success"),G=K.length>0?K:[{Handler:"mergeFormdata",eventType:"Success",type:i.type}];return{response:V,events:G}}catch{const K=i==null?void 0:i.events.filter(re=>re.eventType==="Fail"),G=K.length>0?K:[];return{response:void 0,events:G}}};async function executeEventsHandler(i,u,r,h,y,w,S,M,U){if(i.Handler==="api")return await executeApiEventHandler(i,u,r,h,y,w);if(i.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(i,u,r,h,y,w,S,U);if(i.Handler==="custom")return await executeCustomHandler(i,u,r,h,y,w,S,U);if(i.Handler==="refresh")return await executeRefreshHandler(i,u,r,h,y,w,S,U,M);if(i.Handler==="mergeFormdata")return await mergeFormdata(U,u,i,r)}async function executeRefreshHandler(i,u,r,h,y,w,S,M,U){const V=getRefreshElements(i,U);for(const K of V)for(const G of U.onLoad[K])await executeEvents(G,K,r,h,y,w,S);return{response:void 0,events:void 0}}async function executeApiEventHandler(i,u,r,h,y,w,S,M){const U={...y==null?void 0:y.payload},V={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:K,headers:G}=await buildApiPayload(i,U,V,r,h,y);let re;return re=await w[i.method](i.path,K,G&&{headers:G}),i.returnResponse?{response:re}:{response:re,events:i==null?void 0:i.events}}async function executeInBuiltFunctionHandler(refreshHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){let parameter={};if(refreshHandlerConfig.funcParametersCode){const makeFunc=eval(refreshHandlerConfig.funcParametersCode);parameter=makeFunc(store,dynamicData,userValue,parentEventOutput,service)}return serviceHolder[refreshHandlerConfig.inBuiltFunctionType](parameter),{response:void 0,events:refreshHandlerConfig==null?void 0:refreshHandlerConfig.events}}async function executeCustomHandler(customHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){console.log(service);const makeFunc=eval(customHandlerConfig.eventCode),response=await makeFunc(store,dynamicData,userValue,parentEventOutput,service,componentName);return{response,events:customHandlerConfig==null?void 0:customHandlerConfig.events}}async function mergeFormdata(i,u,r,h){return r.type==="Select"&&!(_.isEmpty(i)&&i)?h.setSchema(y=>({...y,properties:{...y.properties,[u]:{oneOf:i.data}}})):r.type==="page"?h.setFormdata(y=>({...y,...i==null?void 0:i.data})):i&&h.setFormdata(y=>({...y,[u]:i.data})),{response:void 0,events:void 0}}const buildBodyFormat=(i,u,r)=>{const h={...r==null?void 0:r.payload};return i.map(y=>{var w,S;if((y==null?void 0:y.value)!=="string")h[y.key]=y.value;else if((w=y==null?void 0:y.value)!=null&&w.startsWith("$userValue")){const M=y.value.substring(11);h[y.key]=_.get(r,M)}else if((S=y==null?void 0:y.value)!=null&&S.startsWith("$")){const M=y.value.substring(1);h[y.key]=_.get(u,M)}else h[y.key]=y.value}),h},buildHeadersFormat=i=>{const u={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return i.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(i,u,r,h,y,w,S,M){var V;const U=(V=i==null?void 0:i.events)==null?void 0:V.filter(K=>K.eventType==="onStart");if((U==null?void 0:U.length)>0){const{response:K}=await executeEventsHandler(U[0],u,r,h,y,w,S,M);return K}}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var i,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(i=store==null?void 0:store.ctx)==null?void 0:i.core)==null?void 0:u.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(i,u){var h;let r=[];return((h=i==null?void 0:i.refreshElements)==null?void 0:h.length)>0?r=i.refreshElements.map(y=>y.value):u!=null&&u.onLoad&&(r=Object.keys(u==null?void 0:u.onLoad),r.push(r[0])),console.log(r),r}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=i=>{function u(r){r.events&&r.events.forEach(h=>{r.type&&(compType=r.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][r.name]||(eventGroups[h.eventType][r.name]=[]),eventGroups[h.eventType][r.name].push({...h,type:compType})})}return u(i),i!=null&&i.elements&&i.elements.forEach(extractEvents),eventGroups};var service=i=>({setPage:async function(){i.store.setFormdata({}),eventGroups={},eventGroups=extractEvents(i.config),await executeEvents({Handler:"refresh",eventType:"onPageRefresh"},"all",i.store,i.dynamicData,i.userValue,i.service,this,eventGroups),i.store.setSchema(u=>({...i.schema,properties:{...i.schema.properties,...u.properties}})),i.uiSchema.elements.push(notifyUiSchema),i.store.setUiSchema(i.uiSchema)},onClick:async function(){var r;const u=((r=i.dynamicData)==null?void 0:r.tableButtonPath)||i.dynamicData.path.split(".")[0];for(const h of eventGroups==null?void 0:eventGroups.onClick[u])await executeEvents(h,u,i.store,i.dynamicData,i.userValue,i.service,this,eventGroups)},onPaginationChange:async u=>{var r;for(const h of eventGroups==null?void 0:eventGroups.onLoad[u.path]){const y=[{key:"size",value:u.pagination.pageSize},{key:"start",value:u.pagination.pageIndex*u.pagination.pageSize},{key:"filters",value:u.columnFilters||[]},{key:"globalFilter",value:(r=u.globalFilter)!=null?r:""}];h.body?(h.returnResponse=!0,h.body=[...h.body,...y]):(h.returnResponse=!0,h.body=y),await executeEvents(h,u.path,i.store,i.dynamicData,i.userValue,i.service,void 0,eventGroups)}},onChange:async function(){if(eventGroups.onChange){const u=Object.keys(eventGroups.onChange);Promise.all(u.map(async r=>{var h,y;if(((h=i.store)==null?void 0:h.formData[r])!==i.store.newData[r]&&((y=i.store)==null?void 0:y.newData[r])!==void 0)for(const w of eventGroups.onChange[r])await executeEvents(w,r,i.store,i.dynamicData,i.userValue,i.service,this,eventGroups)}))}},downloadFile}),clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearPreviousCache=clearLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var D=rl(function(){return W(s,I+"return "+x).apply(r,p)});if(D.source=x,hi(D))throw D;return D}function ug(e){return z(e).toLowerCase()}function pg(e){return z(e).toUpperCase()}function cg(e,t,n){if(e=z(e),e&&(n||t===r))return co(e);if(!e||!(t=de(t)))return e;var o=Te(e),a=Te(t),s=fo(o,a),p=go(o,a)+1;return ot(o,s,p).join("")}function fg(e,t,n){if(e=z(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=de(t)))return e;var o=Te(e),a=go(o,Te(t))+1;return ot(o,0,a).join("")}function dg(e,t,n){if(e=z(e),e&&(n||t===r))return e.replace(hr,"");if(!e||!(t=de(t)))return e;var o=Te(e),a=fo(o,Te(t));return ot(o,a).join("")}function gg(e,t){var n=al,o=ll;if(q(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,o="omission"in t?de(t.omission):o}e=z(e);var s=e.length;if(At(e)){var p=Te(e);s=p.length}if(n>=s)return e;var c=n-Bt(o);if(c<1)return o;var d=p?ot(p,0,c).join(""):e.slice(0,c);if(a===r)return d+o;if(p&&(c+=d.length-c),mi(a)){if(e.slice(c).search(a)){var y,v=d;for(a.global||(a=Er(a.source,z(Di.exec(a))+"g")),a.lastIndex=0;y=a.exec(v);)var x=y.index;d=d.slice(0,x===r?c:x)}}else if(e.indexOf(de(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function hg(e){return e=z(e),e&&Ll.test(e)?e.replace(Fi,Gs):e}var mg=Mt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),bi=ia("toUpperCase");function nl(e,t,n){return e=z(e),t=n?r:t,t===r?ks(e)?qs(e):Ts(e):e.match(t)||[]}var rl=P(function(e,t){try{return ce(e,r,t)}catch(n){return hi(n)?n:new F(n)}}),yg=qe(function(e,t){return be(t,function(n){n=We(n),$e(e,n,di(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=A();return e=t?K(e,function(o){if(typeof o[1]!="function")throw new xe(S);return[n(o[0]),o[1]]}):[],P(function(o){for(var a=-1;++a<t;){var s=e[a];if(ce(s[0],this,o))return ce(s[1],this,o)}})}function bg(e){return Gu(Se(e,Ie))}function xi(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=aa(),Sg=aa(!0);function pe(e){return e}function _i(e){return Oo(typeof e=="function"?e:Se(e,Ie))}function wg(e){return ko(Se(e,Ie))}function Cg(e,t){return Wo(e,Se(t,Ie))}var Lg=P(function(e,t){return function(n){return nn(n,e,t)}}),Ig=P(function(e,t){return function(n){return nn(e,n,t)}});function Si(e,t,n){var o=Q(t),a=kn(t,o);n==null&&!(q(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=kn(t,Q(t)));var s=!(q(n)&&"chain"in n)||!!n.chain,p=Ye(e);return be(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var y=this.__chain__;if(s||y){var v=e(this.__wrapped__),x=v.__actions__=le(this.__actions__);return x.push({func:d,args:arguments,thisArg:e}),v.__chain__=y,v}return d.apply(e,je([this.value()],arguments))})}),e}function Ag(){return j._===this&&(j._=Qs),this}function wi(){}function Bg(e){return e=E(e),P(function(t){return zo(t,e)})}var Tg=ei(K),Fg=ei(ao),Rg=ei(Lr);function il(e){return li(e)?Ir(We(e)):ap(e)}function Eg(e){return function(t){return e==null?r:ht(e,t)}}var Dg=sa(),Pg=sa(!0);function Ci(){return[]}function Li(){return!1}function Mg(){return{}}function Og(){return""}function Hg(){return!0}function kg(e,t){if(e=E(e),e<1||e>Xe)return[];var n=Oe,o=te(e,Oe);t=A(t),e-=Oe;for(var a=Tr(o,t);++n<e;)t(n);return a}function Wg(e){return R(e)?K(e,We):ge(e)?[e]:le(Ca(z(e)))}function zg(e){var t=++Zs;return z(e)+t}var Ng=$n(function(e,t){return e+t},0),Ug=ti("ceil"),Gg=$n(function(e,t){return e/t},1),$g=ti("floor");function Kg(e){return e&&e.length?Hn(e,pe,zr):r}function qg(e,t){return e&&e.length?Hn(e,A(t,2),zr):r}function Vg(e){return uo(e,pe)}function Yg(e,t){return uo(e,A(t,2))}function Jg(e){return e&&e.length?Hn(e,pe,$r):r}function Zg(e,t){return e&&e.length?Hn(e,A(t,2),$r):r}var Xg=$n(function(e,t){return e*t},1),Qg=ti("round"),jg=$n(function(e,t){return e-t},0);function eh(e){return e&&e.length?Br(e,pe):0}function th(e,t){return e&&e.length?Br(e,A(t,2)):0}return l.after=wf,l.ary=Ma,l.assign=pd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=cd,l.at=fd,l.before=Oa,l.bind=di,l.bindAll=yg,l.bindKey=Ha,l.castArray=Mf,l.chain=Ea,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=xi,l.countBy=jc,l.create=dd,l.curry=ka,l.curryRight=Wa,l.debounce=za,l.defaults=gd,l.defaultsDeep=hd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Vp,l.differenceWith=Yp,l.drop=Jp,l.dropRight=Zp,l.dropRightWhile=Xp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ba,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=_i,l.keyBy=cf,l.keys=Q,l.keysIn=ue,l.map=Xn,l.mapKeys=Bd,l.mapValues=Td,l.matches=wg,l.matchesProperty=Cg,l.memoize=jn,l.merge=Fd,l.mergeWith=Za,l.method=Lg,l.methodOf=Ig,l.mixin=Si,l.negate=er,l.nthArg=Bg,l.omit=Rd,l.omitBy=Ed,l.once=Af,l.orderBy=ff,l.over=Tg,l.overArgs=Bf,l.overEvery=Fg,l.overSome=Rg,l.partial=gi,l.partialRight=Na,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eg,l.pull=cc,l.pullAll=Fa,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hc,l.rest=Ff,l.reverse=ci,l.sampleSize=vf,l.set=Md,l.setWith=Od,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Rf,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Bc,l.takeWhile=Tc,l.tap=$c,l.throttle=Ef,l.thru=Zn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=Wg,l.toPlainObject=Ya,l.transform=Hd,l.unary=Df,l.union=Fc,l.unionBy=Rc,l.unionWith=Ec,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=Mc,l.unset=kd,l.unzip=fi,l.unzipWith=Ra,l.update=Wd,l.updateWith=zd,l.values=kt,l.valuesIn=Nd,l.without=Oc,l.words=nl,l.wrap=Pf,l.xor=Hc,l.xorBy=kc,l.xorWith=Wc,l.zip=zc,l.zipObject=Nc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,Si(l,l),l.add=Ng,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Ug,l.clamp=Ud,l.clone=Of,l.cloneDeep=kf,l.cloneDeepWith=Wf,l.cloneWith=Hf,l.conformsTo=zf,l.deburr=tl,l.defaultTo=xg,l.divide=Gg,l.endsWith=qd,l.eq=Re,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Aa,l.findLastKey=yd,l.floor=$g,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=yi,l.gt=Nf,l.gte=Uf,l.has=Cd,l.hasIn=vi,l.head=Ta,l.identity=pe,l.includes=uf,l.indexOf=rc,l.inRange=Gd,l.invoke=Ad,l.isArguments=vt,l.isArray=R,l.isArrayBuffer=Gf,l.isArrayLike=se,l.isArrayLikeObject=Y,l.isBoolean=$f,l.isBuffer=at,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Jf,l.isError=hi,l.isFinite=Zf,l.isFunction=Ye,l.isInteger=Ua,l.isLength=tr,l.isMap=Ga,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=q,l.isObjectLike=V,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ge,l.isTypedArray=Ht,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Jd,l.last=Ce,l.lastIndexOf=uc,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Vg,l.meanBy=Yg,l.min=Jg,l.minBy=Zg,l.stubArray=Ci,l.stubFalse=Li,l.stubObject=Mg,l.stubString=Og,l.stubTrue=Hg,l.multiply=Xg,l.nth=pc,l.noConflict=Ag,l.noop=wi,l.now=Qn,l.pad=Qd,l.padEnd=jd,l.padStart=eg,l.parseInt=tg,l.random=$d,l.reduce=gf,l.reduceRight=hf,l.repeat=ng,l.replace=rg,l.result=Pd,l.round=Qg,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ig,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=kg,l.toFinite=Je,l.toInteger=E,l.toLength=Va,l.toLower=ug,l.toNumber=Le,l.toSafeInteger=ud,l.toString=z,l.toUpper=pg,l.trim=cg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=zg,l.upperCase=mg,l.upperFirst=bi,l.each=Da,l.eachRight=Pa,l.first=Ta,Si(l,function(){var e={};return He(l,function(t,n){N.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=g,be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),be(["drop","take"],function(e,t){H.prototype[e]=function(n){n=n===r?1:X(E(n),0);var o=this.__filtered__&&!t?new H(this):this.clone();return o.__filtered__?o.__takeCount__=te(n,o.__takeCount__):o.__views__.push({size:te(n,Oe),type:e+(o.__dir__<0?"Right":"")}),o},H.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),be(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;H.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:A(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),be(["head","last"],function(e,t){var n="take"+(t?"Right":"");H.prototype[e]=function(){return this[n](1).value()[0]}}),be(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(pe)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new H(this):this.map(function(n){return nn(n,e,t)})}),H.prototype.reject=function(e){return this.filter(er(A(e)))},H.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new H(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(Oe)},He(H.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],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof H,y=c[0],v=d||R(p),x=function(O){var k=a.apply(l,je([O],c));return o&&C?k[0]:k};v&&n&&typeof y=="function"&&y.length!=1&&(d=v=!1);var C=this.__chain__,I=!!this.__actions__.length,B=s&&!C,D=d&&!I;if(!s&&v){p=D?p:new H(this);var T=e.apply(p,c);return T.__actions__.push({func:Zn,args:[x],thisArg:r}),new _e(T,C)}return B&&D?e.apply(this,c):(T=this.thru(x),B?o?T.value()[0]:T.value():T)})}),be(["pop","push","shift","sort","splice","unshift"],function(e){var t=Sn[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 s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(p){return t.apply(R(p)?p:[],a)})}}),He(H.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";N.call(Et,o)||(Et[o]=[]),Et[o].push({name:t,func:n})}}),Et[Gn(r,st).name]=[{name:"wrapper",func:r}],H.prototype.clone=gu,H.prototype.reverse=hu,H.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Vc,l.prototype.next=Yc,l.prototype.plant=Zc,l.prototype.reverse=Xc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,Jt&&(l.prototype[Jt]=Jc),l},Tt=Vs();pt?((pt.exports=Tt)._=Tt,_r._=Tt):j._=Tt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},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"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string"},validationValue:{type:"string"}}}}}},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",options:[{label:"Select",value:"Select"},{label:"Date",value:"Date"},{label:"CheckBox",value:"CheckBox"},{label:"Table",value:"Table"},{label:"Lazy Loading Table",value:"LazyLoadingTable"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Radio",value:"Radio"},{label:"Text Area",value:"TextArea"},{label:"Button",value:"Button"},{label:"Card",value:"card"},{label:"Rank",value:"Rank"},{label:"SpeedoMeter",value:"SpeedoMeter"},{label:"ProgressBar",value:"ProgressBar"},{label:"Graph",value:"Graph"},{label:"Label",value:"Box"},{label:"Upload File",value:"UploadFile"},{label:"Download File",value:"DownloadFile"},{label:"Empty Box",value:"EmptyBox"},{label:"ProgressBar Card",value:"ProgressBarCard"},{label:"Rank Card",value:"RankCard"},{label:"Runner Boy Progress Bar",value:"RunnerBoyProgressBar"},{label:"Slider",value:"Slider"},{label:"Timer",value:"Timer"},{label:"MultipleSelect",value:"MultipleSelect"},{label:"LeaderBoard",value:"LeaderBoard"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{label:"Extra Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{label:"3",value:"3"},{label:"5.5",value:"5.5"},{label:"8",value:"8"},{label:"12",value:"12"}]}}}]}}}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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}]};var buildConfig=i=>{const u=_.cloneDeep(i);let r={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(r.elements=u.elements||[],u.elements&&delete u.elements),r.events=u.events||[],u.events&&delete u.events,r={...u,...r},r};const createLayoutFormat=i=>{let u={};return i.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=i=>{const u=Object.keys(i[0])[0];return i.map(g=>g[u])},getNavigationHistory=(i,u)=>{if(u){let r=i.name;const g=u.split("."),b=[];return g.map((w,S)=>{if(S===0){b.push(w);return}b.push(`${b[S-1]}.${w}`)}),b.map(w=>{const S=_.get(i,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(i,u)=>{let r;if(u){const g=getFormdataFromLocalStorage();r=_.set(g,u,buildConfig(i))}else r=buildConfig(i);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=i=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return i&&(r=_.get(u,i),r={...r,...getNavigationHistory(u,i)}),r||(r=getNavigationHistory(u,i)),r||u},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",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Lazy Loading Table",const:"LazyLoadingTable"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"ProgressBar",const:"ProgressBar"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"Upload File",const:"UploadFile"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Slider",const:"Slider"},{title:"Timer",const:"Timer"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"LeaderBoard",const:"LeaderBoard"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"12"}]}}}]}}}]},OptionArray={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"}}}]}}},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:{}}},getArrayControl=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:r||"Labels for Tab"}}}]}}}),getInputField=(i,u)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(i,u,r,g)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"TextArea"},config:{layout:g||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text",options:r}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(i){let u=_.cloneDeep(GraphSection);if(i==="SpeedoMeter")u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];else if(i==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(i==="LeaderBoard")u.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)];else if(i==="CardSlider"){const r=getInputField("heading","Heading"),g=getInputField("iconName","Icon Name");u.elements=[r,g]}else if(i==="ProgressBar"||i==="ProgressBarCard"){const r=getInputField("heading","Heading"),g=getInputField("bottomLabel_1","First BottomLabel"),b=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,g,b,w]}else if(i==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(i==="Box"){const r=getInputField("value","Value");u.elements=[getSelectField("graphType","Label Type",[{label:"URL",value:"url"},{label:"Heading",value:"heading"}]),r]}else if(i==="Button"){const r=getInputField("color","Color"),g=getInputField("size","Size"),b=getInputField("iconName","Icon Name");u.elements=[getSelectField("buttonType","Button Type",[{label:"Button With Text",value:"Button"},{label:"Button With Icon",value:"IconButton"},{label:"Button With Icon and Text",value:"ButtonWithIconAndText"}]),b,g,r,getSelectField("defaultStyle","Default Style",[{label:"Apply Default Style",value:"true"},{label:"No Style",value:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(i==="Graph"){const r=getInputField("height","Height"),g=getInputField("heading","Heading"),b=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[g,r,getSelectField("graphType","Graph Type",[{label:"Bar Graph",value:"BarGraph"},{label:"Stack Bar Graph",value:"StackBarGraph"},{label:"Line Graph",value:"LineGraph"},{label:"Pie Graph",value:"PieGraph"},{label:"Horizontal Bar Graph",value:"HorizontalBarGraph"}]),b,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else i==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:i==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:i==="Table"||i==="LazyLoadingTable"?u.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"]),getInputField("selectKey","Selection Key"),EmptyBox]:i==="Radio"?u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]:i==="Select"?u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])]:i==="MultipleSelect"&&(u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox]);return u},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:"Back"},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:[OptionArray]},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",options:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]},sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LazyLoadingTable:["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","Properties","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","Properties","style","Event","Validation"],Timer:["Core","Properties","style","Event","Validation"],Rank:["Core","Properties","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Event","Validation"]},refreshPage=(i,u)=>{var g;const r=_.cloneDeep(componentBasicUiSchema);if(i){const b={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(i),Validation:ValidationSection},w=(g=sectionLabels[i])==null?void 0:g.map(S=>b[S]);r.elements[1].config.main.tabLabels=sectionLabels[i]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(i,u)=>({setPage:async function(){const r=await this.getFormdata();i.setFormdata(r);const g=this.getSchema();i.setSchema(g),this.refreshPage(r==null?void 0:r.type,i)},refreshPage,getFormdata:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");saveFormdataInLocalStorage(i.formData,r),i.navigate(-1),i.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,g,b,w;((r=i==null?void 0:i.formData)==null?void 0:r.type)!==((g=i==null?void 0:i.newData)==null?void 0:g.type)&&((b=i==null?void 0:i.newData)==null?void 0:b.type)!==void 0&&this.refreshPage((w=i==null?void 0:i.newData)==null?void 0:w.type,i)},editComponents:async function(){var w,S,M;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path"),b=(S=i.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(i.formData,g),g){const De=`${(M=i.searchParams)==null?void 0:M.get("path")}.elements[${r}]`;i.searchParams.set("path",De),i.setSearchParams(i.searchParams),this.setPage()}else i.navigate(`/Component?path=${`elements[${r}]`}&id=${b}`)},deleteComponents:async function(){var S;const r=(S=i.searchParams)==null?void 0:S.get("path"),g=u.path.split(".")[1];i.formData.elements.splice(g,1);const b=saveFormdataInLocalStorage(i.formData,r),w=r?_.get(b,r):b;i.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=u.path.split(".")[1];i.formData.events.splice(g,1);const b=saveFormdataInLocalStorage(i.formData,r);i.setFormdata(_.get(b,r))},widgetAddClickHandler:async function(){var b;Array.isArray(i.formData.elements)||(i.formData.elements=[]);const r=(b=i.searchParams)==null?void 0:b.get("path");saveFormdataInLocalStorage(i.formData,r);const g=`${r}.elements[${i.formData.elements.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},eventEditHandler:async function(){var S,M;const r=u.path.split(".")[1],g=(S=i.searchParams)==null?void 0:S.get("path"),b=(M=i.searchParams)==null?void 0:M.get("id");saveFormdataInLocalStorage(i.formData,g);const w=`${g}.events[${r}]`;i.navigate(`/ComponentEvents?path=${w}&id=${b}`)},eventAddHandler:async function(){var w,S;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=(S=i.searchParams)==null?void 0:S.get("id");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const b=`${r}.events[${i.formData.events.length}]`;i.navigate(`/ComponentEvents?path=${b}&id=${g}`)},backHandler:function(){i.navigate(-1)}}),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=i=>{const u=_.cloneDeep(leaderBoard);if(i.elements){const r=i.elements.map((g,b)=>g.type?{...{widget:buildUiSchema(g),accessorKey:g.name,header:g.label||g.name}}:{accessorKey:g.name,header:g.label||g.name});u.elements[9].elements=r}return i.name&&(u.elements[0].scope=`#/properties/${i.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${i.name}/properties/firstName`,u.elements[1].scope=`#/properties/${i.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${i.name}/properties/secondName`,u.elements[2].scope=`#/properties/${i.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${i.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${i.name}/properties/table`),i.firstImage&&(u.elements[0].config.main.url=i.firstImage),i.secondImage&&(u.elements[1].config.main.url=i.secondImage),i.secondImage&&(u.elements[2].config.main.url=i.thirdImage),i.layout&&(u.config.layout=i.layout),u};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=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.heading&&(r.config.main.heading=i.heading),i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=i.bottomLabel_1),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},buildProgressBar=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.layout&&(r.config.layout=i.layout),r.config.main.heading=i.heading,i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.config.main.bottomLabel_1=i.bottomLabel_1),r},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:["MAMA New Project","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=(i,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r};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=(i,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.heading&&(r.config.main.header=i.heading),i.segments&&(r.config.main.segments=i.segments),i.style){const g=JSON.parse(i.style);g!=null&&g.style&&(r.config.style={...r.config.style,...g.style}),g!=null&&g.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...g.containerStyle})}return i.width&&(r.config.main.width=i.width),i.speedoCaption&&(r.config.main.currentValueText=i.speedoCaption),i.data&&(r.config.main.data=i.data),i.needleColor&&(r.config.style.needleColor=i.needleColor),i.segments&&(r.config.style.segments=i.segments),i.endColor&&(r.config.style.endColor=i.endColor),i.startColor&&(r.config.style.startColor=i.startColor),i.segmentColors&&(r.config.style.segmentColors=i.segmentColors),r},buildPieGraph=(i,u)=>{const r=_.cloneDeep(PieGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.height&&(r.config.style.containerStyle.height=i.height),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),r.scope=u,r.config.main.header=i.heading,i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r},buildStackbarGraph=(i,u)=>{const r=_.cloneDeep(BarGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=i.graphType,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(i,u)=>{const r=_.cloneDeep(Tabsection);return i.sectionLabels&&(r.config.main.tabLabels=i.sectionLabels.map(g=>g.label)),r.config.main.id=i.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(i,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=i.label,r.config.main.divider=!!i.divider,r.config.main.header=!!i.heading,r};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=(i,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=i.label,i.style&&(r.config.style=JSON.parse(i.style)),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(SelectInputField);return r.config.main.label=i.label,i.value&&(r.config.main.options=i.value),i.freeSolo&&(r.config.main.freeSolo=i.freeSolo==="YES"),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(Button);return i.buttonType&&(r.options.widget=i.buttonType==="IconButton"?"IconButton":"Button",i.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=i.iconName:r.config.main.icon=i.iconName),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.defaultStyle&&(r.config.main.styleDefault=i.defaultStyle==="true"),r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.size&&(r.config.main.size=i.size),i.color&&(r.config.main.color=i.color),i.label&&(r.config.main.name=i.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(i,u)=>{const r=_.cloneDeep(Table);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable==="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r},buildLazyLoadingTable=(i,u)=>{const r=_.cloneDeep(lazyLoadingTable);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable!=="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r.config.main.label=i.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(i,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},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$1={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=(i,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=i.layout),i.layout&&(uploadFile.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),r.config.main.errorMessage=i.errorMessage,r},buildDownloadFile=(i,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,i.layout&&(r.config.layout=i.layout),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.errorMessage&&(r.config.main.errorMessage=i.errorMessage),r};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=(i,u)=>{const r=_.cloneDeep(Card);return i.style&&(r.config.style=JSON.parse(i.style)),r.elements[0].scope=`#/properties/${i.name}/properties/value`,r.elements[1].scope=`#/properties/${i.name}/properties/url`,r.elements[2].scope=`#/properties/${i.name}/properties/description`,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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 buildDate=(i,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=i.label,r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,i.image&&(r.config.main.url=i.image),i.title&&(r.config.main.title=i.title),i.description&&(r.config.main.description=i.description),i.rank&&(r.config.main.rank=`#${i.rank}`),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RollAndDice);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(MultipleSelect);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.value&&(r.config.main.options=i.value),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),r},buildBasicUiSchema=i=>({type:"HorizontalLayout",pageName:`${i.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=(i,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(i,u)=>{const r=_.cloneDeep(cardSlider);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(i,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},buildLineGraph=(i,u)=>{const r=_.cloneDeep(LineGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.header=i.heading,i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r.scope=u,r},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=(i,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.sectionLabels&&(r.config.main.options=i.sectionLabels.map(g=>g.label||g.Options)),i.style&&(r.config.style=JSON.parse(i.style)),r};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=(i,u)=>{const r=_.cloneDeep(emptyBox);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};exports.schema={type:"object",properties:{},required:[]};function buildRule(i,u){i.validation&&i.validation.forEach(r=>{var g,b,w,S,M,ae,De,lt,Ie,Wt;u?(w=(b=(g=exports.schema.properties)==null?void 0:g[u])==null?void 0:b.items)!=null&&w.properties&&((De=(ae=(M=(S=exports.schema.properties)==null?void 0:S[u])==null?void 0:M.items)==null?void 0:ae.properties)!=null&&De[i.name]||(exports.schema.properties[u].items.properties[i.name]={}),r.validationType==="required"?(Wt=(Ie=(lt=exports.schema.properties)==null?void 0:lt[u])==null?void 0:Ie.items)==null||Wt.required.push(i.name):(exports.schema.properties[u].items.properties[i.name].type="string",exports.schema.properties[u].items.properties[i.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue))):(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={}),r.validationType==="required"?exports.schema.required.push(i.name):(exports.schema.properties[i.name].type="string",exports.schema.properties[i.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue)))})}const buildSchema=(i,u)=>(buildRule(i,u),i!=null&&i.elements&&(i.type=="Table"?(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={type:"array",items:{type:"object",properties:{},required:[]}}),i.elements.map((r,g)=>{buildSchema(r,i.name)})):i.elements.map((r,g)=>{buildSchema(r)})),exports.schema),buildUiSchema=i=>{let u={};const r=`#/properties/${i.name}`;switch(i.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(i,r);break;case"TabSection":u=buildTabSection(i);break;case"WrapperSection":u=buildWrapperSection(i);break;case"Text":u=buildTextField(i,r);break;case"TextArea":u=buildTextArea(i,r);break;case"Date":u=buildDate(i,r);break;case"Select":u=buildSelect(i,r);break;case"Radio":u=buildRadio(i,r);break;case"Button":u=buildButton(i,r);break;case"Table":u=buildTable(i,r);break;case"LazyLoadingTable":u=buildLazyLoadingTable(i,r);break;case"Box":u=buildLabel(i,r);break;case"CheckBox":u=buildCheckbox(i,r);break;case"UploadFile":u=buildUploadFile(i,r);break;case"DownloadFile":u=buildDownloadFile(i,r);break;case"EmptyBox":u=buildEmptyBox(i);break;case"card":u=buildCard(i);break;case"Graph":switch(i.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(i,r);break;case"LineGraph":u=buildLineGraph(i,r);break;case"PieGraph":u=buildPieGraph(i,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(i,r);break}break;case"ProgressBar":u=buildProgressBar(i,r);break;case"SpeedoMeter":u=buildSpeedoMeter(i,r);break;case"ProgressBarCard":u=buildProgressBarCard(i,r);break;case"RankCard":u=buildRankCard(i,r);break;case"Rank":u=buildRollAndDice(i,r);break;case"Slider":u=buildSlider(i,r);break;case"Timer":u=buildTimer(i,r);break;case"MultipleSelect":u=buildMultiSelect(i,r);break;case"LeaderBoard":u=buildLeaderBoard(i);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(i)}if(i!=null&&i.elements){if((i==null?void 0:i.type)==="LeaderBoard")return u;i.type=="Table"?u.elements=i.elements.map((g,b)=>g.type?{accessorKey:g.name,header:g.label||g.name,widget:buildUiSchema(g)}:{accessorKey:g.name,header:g.label||g.name}):u.elements=i.elements.map((g,b)=>buildUiSchema(g))}return u};var pageMaster=i=>{const{store:u,dynamicData:r,config:g,submitHandler:b}=i;return{setPage:async function(){const w=await this.getFormdata();u.setFormdata(w);const S=await this.getUiSchema(),M=await this.getSchema();u.setSchema(M),u.setUiSchema(S)},getFormdata:async function(){var S;(S=u.searchParams)==null||S.get("id");const w=getFormdataFromLocalStorage();return w||(saveFormdataInLocalStorage(g),g)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const S=saveFormdataInLocalStorage(u.formData);u.navigate(`/Component?path=${`elements[${S==null?void 0:S.elements.length}]`}&id=${w}`)},submitPageHandler:async function(){console.log(exports.schema),b(u,i.service).then(w=>{localStorage.removeItem("pageFormdata"),u.navigate(-1),u.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(u,r).editComponents,Delete_Components:Component(u,r).deleteComponents,eventAddHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.formData);const S=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${S}&id=${w}`)},editEvent:async function(){var ae;const w=r.path.split(".")[1],S=(ae=u.searchParams)==null?void 0:ae.get("id");saveFormdataInLocalStorage(u.formData);const M=`events[${w}]`;u.navigate(`/ComponentEvents?path=${M}&id=${S}`)},deleteEvent:async function(){const w=r.path.split(".")[1];u.formData.events.splice(w,1);const S=saveFormdataInLocalStorage(u.formData);u.setFormdata(S)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},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",options:[{label:"Click Event",value:"onClick"},{label:"onStart",value:"onStart"},{label:"Load Event",value:"onLoad"},{label:"Change Event",value:"onChange"},{label:"Success",value:"Success"},{label:"Fail",value:"Fail"}]}}},getSelectField("Handler","Handler",[{label:"Custom",value:"custom"},{label:"Api",value:"api"},{label:"Inbuilt Function",value:"inBuiltFunction"},{label:"Refresh",value:"refresh"}])]},{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:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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",options:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]}}},{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"}}}]}}}]};var event=(i,u)=>({setPage:async function(){const r=await this.getFormData();i.setFormdata(r);const g=await this.getSchema();i.setSchema(g),this.refreshPage(r.Handler,i)},refreshPage:(r,g)=>{const b=_.cloneDeep(EventUiSchema);r&&(r==="custom"?b.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?b.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(b.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{label:"RankProvider",value:"RankProvider"},{label:"Download File",value:"downloadFile"}]),b.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(b.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),g.setUiSchema(b)},getFormData:Component(i,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,g,b;((r=i==null?void 0:i.formData)==null?void 0:r.Handler)!==((g=i==null?void 0:i.newData)==null?void 0:g.Handler)&&((b=i==null?void 0:i.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(i.newData.Handler||i.formdata.Handler,i)},saveHandler:Component(i,u).saveHandler,addEvent:async function(){var b,w,S;const r=(b=i.searchParams)==null?void 0:b.get("path");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const g=`${r}.events[${(S=(w=i.formData)==null?void 0:w.events)==null?void 0:S.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(i.formData,g);const b=`${g}.events[${r}]`;i.searchParams.set("path",b),i.setSearchParams(i.searchParams),this.setPage()},deleteEvent:Component(i,u).deleteEvent,backHandler:function(){i.navigate(-1)}});const downloadFile=i=>{const u=i.name.split("."),r=i.data,g=window.atob(r);let b;b=new File([g],u[u.length-1]);const w=URL.createObjectURL(b),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${i.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async i=>{var g,b,w;let u=[],r=null;try{if(!shouldEventExecute(i))return{response:void 0,events:void 0};r=await executeEventsHandler(i);const M=(g=i.config)==null?void 0:g.events.filter(ae=>ae.eventType==="Success");if(i.config.returnNeeded)return r;u=M}catch{const M=(w=(b=i.config)==null?void 0:b.events)==null?void 0:w.filter(De=>De.eventType==="Fail");u=(M==null?void 0:M.length)>0?M:[]}if((u==null?void 0:u.length)>0)for(const S of u)await executeEvents({...i,config:S,parentEventOutput:r});return r};async function executeEventsHandler(i){if(i.config.Handler==="api")return await executeApiEventHandler(i);if(i.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(i);if(i.config.Handler==="custom")return await executeCustomHandler(i);if(i.config.Handler==="refresh")return await executeRefreshHandler(i);if(i.config.Handler==="mergeFormdata")return await mergeFormdata(i.parentEventOutput,i.componentName,i.config,i.store)}async function executeRefreshHandler(i){const u=getRefreshElements(i.config,i.eventGroups);for(const r of u)for(const g of i.eventGroups.onLoad[r])await executeEvents({...i,config:g})}async function executeApiEventHandler(i){var M;const u={...(M=i.userValue)==null?void 0:M.payload},r={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:g,headers:b}=await buildApiPayload(i.config,u,r,i.store,i.dynamicData,i.userValue,i.service);let w;return w=await(await fetch(i.config.path,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)})).json(),w}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(i,u,r,g){r.type==="Select"&&!(_.isEmpty(i)&&i)?g.setSchema(b=>({...b,properties:{...b.properties,[u]:{enum:i.data}}})):r.type==="page"?g.setFormdata(b=>({...b,...i==null?void 0:i.data})):i&&g.setFormdata(b=>({...b,[u]:i}))}const buildBodyFormat=(i,u,r)=>{const g={...r==null?void 0:r.payload};return i.map(b=>{var w,S;if((b==null?void 0:b.value)!=="string")g[b.key]=b.value;else if((w=b==null?void 0:b.value)!=null&&w.startsWith("$userValue")){const M=b.value.substring(11);g[b.key]=_.get(r,M)}else if((S=b==null?void 0:b.value)!=null&&S.startsWith("$")){const M=b.value.substring(1);g[b.key]=_.get(u,M)}else g[b.key]=b.value}),g},buildHeadersFormat=i=>{const u={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return i.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(i){var r,g;const u=(g=(r=i.config)==null?void 0:r.events)==null?void 0:g.filter(b=>b.eventType==="onStart");if((u==null?void 0:u.length)>0){const{response:b}=await executeEventsHandler(i);return b}}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var i,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(i=store==null?void 0:store.ctx)==null?void 0:i.core)==null?void 0:u.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(i,u){var g;let r=[];return((g=i==null?void 0:i.refreshElements)==null?void 0:g.length)>0?r=i.refreshElements.map(b=>b.value):u!=null&&u.onLoad&&(r=Object.keys(u==null?void 0:u.onLoad),r.push(r[0])),console.log(r),r}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=i=>{function u(r){r.events&&r.events.forEach(g=>{var w;r.type&&(compType=r.type),eventGroups[g.eventType]||(eventGroups[g.eventType]={}),eventGroups[g.eventType][r.name]||(eventGroups[g.eventType][r.name]=[]),!((w=g==null?void 0:g.events)==null?void 0:w.find(S=>S.eventType==="Success"))&&g.eventType==="onLoad"&&g.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType}),eventGroups[g.eventType][r.name].push({...g,type:compType})})}return u(i),i!=null&&i.elements&&i.elements.forEach(extractEvents),eventGroups};var service=i=>{eventGroups={},eventGroups=extractEvents(i.config);let u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:void 0,eventGroups};return{setPage:async function(){i.store.setFormdata({}),u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:this,eventGroups},await executeEvents({...u,config:{Handler:"refresh",eventType:"onPageRefresh"},componentName:"all"}),i.store.setSchema(r=>({...i.schema,properties:{...i.schema.properties,...r.properties}})),i.uiSchema.elements.push(notifyUiSchema),i.store.setUiSchema(i.uiSchema)},onClick:async function(){var g;const r=((g=i.dynamicData)==null?void 0:g.tableButtonPath)||i.dynamicData.path.split(".")[0];for(const b of eventGroups==null?void 0:eventGroups.onClick[r])await executeEvents({...u,config:b,componentName:r})},onPaginationChange:async r=>{var g,b;for(const w of eventGroups==null?void 0:eventGroups.onLoad[r.path]){const S=[{key:"size",value:r.pagination.pageSize},{key:"start",value:r.pagination.pageIndex*r.pagination.pageSize},{key:"sorting",value:r.sorting||[]},{key:"filters",value:r.columnFilters||[]},{key:"globalFilter",value:(g=r.globalFilter)!=null?g:""}];w.body?w.body=[...w.body,...S]:w.body=S;const M=(b=w==null?void 0:w.events)==null?void 0:b.filter(De=>De.Handler!=="mergeFormdata");return w.events=M!=null?M:[],await executeEvents({...u,config:w,componentName:r.path})}},onChange:async function(){if(eventGroups.onChange){const r=Object.keys(eventGroups.onChange);Promise.all(r.map(async g=>{var b,w;if(((b=i.store)==null?void 0:b.formData[g])!==i.store.newData[g]&&((w=i.store)==null?void 0:w.newData[g])!==void 0)for(const S of eventGroups.onChange[g])await executeEvents({...u,config:S,componentName:g})}))}},downloadFile}},clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearPreviousCache=clearLocalStorage,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