impaktapps-ui-builder 0.0.101-alpha.81 → 0.0.101-alpha.83
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.
- package/dist/impaktapps-ui-builder.es.js +44 -23
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +17 -9
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +16 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +9 -4
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
(function(n,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(n=typeof globalThis!="undefined"?globalThis:n||self,s(n.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["template","name","label"]},PageMasterUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page",elements:[{type:"WrapperLayout",config:{main:{label:"Basic Details",isAccordion:!0,gap:"8px"}},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Heading",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:0,sm:0,md:4,lg:6}},options:{widget:"EmptyBox"}}]},{type:"TabLayout",config:{layout:12,main:{tabLabels:["Page Components","Page Events"]},style:{TabPanelStyle:{padding:0}},TabsStyle:{borderTop:`1px solid ${n.palette.common.black}29`,marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}},TabContainerStyle:{marginTop:"-16px"}},elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"onAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name",size:300,type:"string"},{accessorKey:"type",header:"Type",size:300,type:"string"},{header:"Edit",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",onClick:"Edit_Components",tooltipMessage:"Edit This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",flex:1,widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{scope:"#/properties/Remarks Container",type:"WrapperLayout",config:{layout:12,main:{divider:!1,rowSpacing:0,gap:0},componentsBoxStyle:{padding:"8px 8px 8px 24px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:8,sm:9.5,md:10,lg:10.5}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpPageMasterComponent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"
|
|
1
|
+
(function(n,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(n=typeof globalThis!="undefined"?globalThis:n||self,s(n.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},template:{oneOf:[{const:"Template-1",title:"template1"},{const:"Template-2",title:"template2"},{const:"Template-3",title:"template3"}]},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},RemoveItemButton:{disabled:!0}},required:["template","name","label"]},PageMasterUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page",elements:[{type:"WrapperLayout",config:{main:{label:"Basic Details",isAccordion:!0,gap:"8px"}},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Page Heading",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:0,sm:0,md:4,lg:6}},options:{widget:"EmptyBox"}}]},{type:"TabLayout",config:{layout:12,main:{tabLabels:["Page Components","Page Events"]},style:{TabPanelStyle:{padding:0}},TabsStyle:{borderTop:`1px solid ${n.palette.common.black}29`,marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}},TabContainerStyle:{marginTop:"-16px"}},elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"onAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name",size:300,type:"string"},{accessorKey:"type",header:"Type",size:300,type:"string"},{header:"Edit",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",onClick:"Edit_Components",tooltipMessage:"Edit This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",flex:1,widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{scope:"#/properties/Remarks Container",type:"WrapperLayout",config:{layout:12,main:{divider:!1,rowSpacing:0,gap:0},componentsBoxStyle:{padding:"8px 8px 8px 24px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:8,sm:9.5,md:10,lg:10.5}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpPageMasterComponent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"Delete_Components",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpPageMasterEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}};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(n,s){(function(){var i,d="4.17.21",y=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",b="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",E=500,P="__lodash_placeholder__",B=1,Y=2,N=4,Q=1,V=2,G=1,se=2,ge=4,J=8,Te=16,de=32,Le=64,Be=128,at=256,Ft=512,ht=30,ll="...",sl=800,pl=16,Fi=1,ul=2,cl=3,vt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ke=4294967295,fl=Ke-1,ml=Ke>>>1,gl=[["ary",Be],["bind",G],["bindKey",se],["curry",J],["curryRight",Te],["flip",Ft],["partial",de],["partialRight",Le],["rearg",at]],Tt="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Ti="[object GeneratorFunction]",Ue="[object Map]",Vt="[object Number]",vl="[object Null]",Xe="[object Object]",Li="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",ze="[object Set]",Jt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,$l=/^0b[01]+$/i,Wl=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Ni="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Ui=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Ui+"]",Sn="["+ki+"]",$i="\\d+",ns="["+Mi+"]",Wi="["+Ni+"]",Gi="[^"+xn+Ui+$i+Mi+Ni+Hi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+br+")",Yi="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Hi+"]",Ki="\\u200d",Vi="(?:"+Wi+"|"+Gi+")",is="(?:"+Bt+"|"+Gi+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[Yi,xr,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,xr,Sr,ts].join("|")+")",us=RegExp(vr,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(br+"(?="+br+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+Wi+"+"+qi+"(?="+[zi,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,$i,ss].join("|"),"g"),fs=RegExp("["+Ki+xn+ki+Oi+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ys=-1,ee={};ee[lr]=ee[sr]=ee[pr]=ee[ur]=ee[cr]=ee[dr]=ee[fr]=ee[mr]=ee[gr]=!0,ee[Tt]=ee[gn]=ee[Zt]=ee[Yt]=ee[Lt]=ee[Kt]=ee[yn]=ee[hn]=ee[Ue]=ee[Vt]=ee[Xe]=ee[qt]=ee[ze]=ee[Jt]=ee[Xt]=!1;var j={};j[Tt]=j[gn]=j[Zt]=j[Lt]=j[Yt]=j[Kt]=j[lr]=j[sr]=j[pr]=j[ur]=j[cr]=j[Ue]=j[Vt]=j[Xe]=j[qt]=j[ze]=j[Jt]=j[vn]=j[dr]=j[fr]=j[mr]=j[gr]=!0,j[yn]=j[hn]=j[Xt]=!1;var hs={\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={"&":"&","<":"<",">":">",'"':""","'":"'"},bs={"&":"&","<":"<",">":">",""":'"',"'":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,bt=wr&&!0&&n&&!n.nodeType&&n,eo=bt&&bt.exports===wr,_r=eo&&ji.process,Re=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||_r&&_r.binding&&_r.binding("util")}catch{}}(),to=Re&&Re.isArrayBuffer,no=Re&&Re.isDate,ro=Re&&Re.isMap,io=Re&&Re.isRegExp,oo=Re&&Re.isSet,ao=Re&&Re.isTypedArray;function we(m,x,v){switch(v.length){case 0:return m.call(x);case 1:return m.call(x,v[0]);case 2:return m.call(x,v[0],v[1]);case 3:return m.call(x,v[0],v[1],v[2])}return m.apply(x,v)}function _s(m,x,v,F){for(var k=-1,K=m==null?0:m.length;++k<K;){var ae=m[k];x(F,ae,v(ae),m)}return F}function De(m,x){for(var v=-1,F=m==null?0:m.length;++v<F&&x(m[v],v,m)!==!1;);return m}function Is(m,x){for(var v=m==null?0:m.length;v--&&x(m[v],v,m)!==!1;);return m}function lo(m,x){for(var v=-1,F=m==null?0:m.length;++v<F;)if(!x(m[v],v,m))return!1;return!0}function st(m,x){for(var v=-1,F=m==null?0:m.length,k=0,K=[];++v<F;){var ae=m[v];x(ae,v,m)&&(K[k++]=ae)}return K}function Cn(m,x){var v=m==null?0:m.length;return!!v&&Rt(m,x,0)>-1}function Ir(m,x,v){for(var F=-1,k=m==null?0:m.length;++F<k;)if(v(x,m[F]))return!0;return!1}function te(m,x){for(var v=-1,F=m==null?0:m.length,k=Array(F);++v<F;)k[v]=x(m[v],v,m);return k}function pt(m,x){for(var v=-1,F=x.length,k=m.length;++v<F;)m[k+v]=x[v];return m}function Er(m,x,v,F){var k=-1,K=m==null?0:m.length;for(F&&K&&(v=m[++k]);++k<K;)v=x(v,m[k],k,m);return v}function Es(m,x,v,F){var k=m==null?0:m.length;for(F&&k&&(v=m[--k]);k--;)v=x(v,m[k],k,m);return v}function Ar(m,x){for(var v=-1,F=m==null?0:m.length;++v<F;)if(x(m[v],v,m))return!0;return!1}var As=Fr("length");function Fs(m){return m.split("")}function Ts(m){return m.match(Nl)||[]}function so(m,x,v){var F;return v(m,function(k,K,ae){if(x(k,K,ae))return F=K,!1}),F}function wn(m,x,v,F){for(var k=m.length,K=v+(F?1:-1);F?K--:++K<k;)if(x(m[K],K,m))return K;return-1}function Rt(m,x,v){return x===x?zs(m,x,v):wn(m,po,v)}function Ls(m,x,v,F){for(var k=v-1,K=m.length;++k<K;)if(F(m[k],x))return k;return-1}function po(m){return m!==m}function uo(m,x){var v=m==null?0:m.length;return v?Lr(m,x)/v:mn}function Fr(m){return function(x){return x==null?i:x[m]}}function Tr(m){return function(x){return m==null?i:m[x]}}function co(m,x,v,F,k){return k(m,function(K,ae,Z){v=F?(F=!1,K):x(v,K,ae,Z)}),v}function Bs(m,x){var v=m.length;for(m.sort(x);v--;)m[v]=m[v].value;return m}function Lr(m,x){for(var v,F=-1,k=m.length;++F<k;){var K=x(m[F]);K!==i&&(v=v===i?K:v+K)}return v}function Br(m,x){for(var v=-1,F=Array(m);++v<m;)F[v]=x(v);return F}function Rs(m,x){return te(x,function(v){return[v,m[v]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function _e(m){return function(x){return m(x)}}function Rr(m,x){return te(x,function(v){return m[v]})}function Qt(m,x){return m.has(x)}function mo(m,x){for(var v=-1,F=m.length;++v<F&&Rt(x,m[v],0)>-1;);return v}function go(m,x){for(var v=m.length;v--&&Rt(x,m[v],0)>-1;);return v}function Ds(m,x){for(var v=m.length,F=0;v--;)m[v]===x&&++F;return F}var Ps=Tr(hs),ks=Tr(vs);function Ms(m){return"\\"+xs[m]}function Ns(m,x){return m==null?i:m[x]}function Dt(m){return fs.test(m)}function Hs(m){return ms.test(m)}function Os(m){for(var x,v=[];!(x=m.next()).done;)v.push(x.value);return v}function Dr(m){var x=-1,v=Array(m.size);return m.forEach(function(F,k){v[++x]=[k,F]}),v}function yo(m,x){return function(v){return m(x(v))}}function ut(m,x){for(var v=-1,F=m.length,k=0,K=[];++v<F;){var ae=m[v];(ae===x||ae===P)&&(m[v]=P,K[k++]=v)}return K}function _n(m){var x=-1,v=Array(m.size);return m.forEach(function(F){v[++x]=F}),v}function Us(m){var x=-1,v=Array(m.size);return m.forEach(function(F){v[++x]=[F,F]}),v}function zs(m,x,v){for(var F=v-1,k=m.length;++F<k;)if(m[F]===x)return F;return-1}function $s(m,x,v){for(var F=v+1;F--;)if(m[F]===x)return F;return F}function Pt(m){return Dt(m)?Gs(m):As(m)}function $e(m){return Dt(m)?Ys(m):Fs(m)}function ho(m){for(var x=m.length;x--&&Dl.test(m.charAt(x)););return x}var Ws=Tr(bs);function Gs(m){for(var x=Cr.lastIndex=0;Cr.test(m);)++x;return x}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(x){x=x==null?ue:kt.defaults(ue.Object(),x,kt.pick(ue,gs));var v=x.Array,F=x.Date,k=x.Error,K=x.Function,ae=x.Math,Z=x.Object,Pr=x.RegExp,qs=x.String,Pe=x.TypeError,In=v.prototype,Js=K.prototype,Mt=Z.prototype,En=x["__core-js_shared__"],An=Js.toString,X=Mt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=Mt.toString,Zs=An.call(Z),Qs=ue._,js=Pr("^"+An.call(X).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?x.Buffer:i,ct=x.Symbol,Ln=x.Uint8Array,bo=Tn?Tn.allocUnsafe:i,Bn=yo(Z.getPrototypeOf,Z),xo=Z.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(Z,"defineProperty");return e({},"",{}),e}catch{}}(),ep=x.clearTimeout!==ue.clearTimeout&&x.clearTimeout,tp=F&&F.now!==ue.Date.now&&F.now,np=x.setTimeout!==ue.setTimeout&&x.setTimeout,Pn=ae.ceil,kn=ae.floor,kr=Z.getOwnPropertySymbols,rp=Tn?Tn.isBuffer:i,wo=x.isFinite,ip=In.join,op=yo(Z.keys,Z),le=ae.max,fe=ae.min,ap=F.now,lp=x.parseInt,_o=ae.random,sp=In.reverse,Mr=It(x,"DataView"),en=It(x,"Map"),Nr=It(x,"Promise"),Nt=It(x,"Set"),tn=It(x,"WeakMap"),nn=It(Z,"create"),Mn=tn&&new tn,Ht={},pp=Et(Mr),up=Et(en),cp=Et(Nr),dp=Et(Nt),fp=Et(tn),Nn=ct?ct.prototype:i,rn=Nn?Nn.valueOf:i,Io=Nn?Nn.toString:i;function l(e){if(re(e)&&!M(e)&&!(e instanceof $)){if(e instanceof ke)return e;if(X.call(e,"__wrapped__"))return Ea(e)}return new ke(e)}var Ot=function(){function e(){}return function(t){if(!ne(t))return{};if(xo)return xo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Hn(){}function ke(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=Hn.prototype,l.prototype.constructor=l,ke.prototype=Ot(Hn.prototype),ke.prototype.constructor=ke;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ke,this.__views__=[]}function mp(){var e=new $(this.__wrapped__);return e.__actions__=be(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=be(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=be(this.__views__),e}function gp(){if(this.__filtered__){var e=new $(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,r=M(e),o=t<0,a=r?e.length:0,p=Fu(0,a,this.__views__),c=p.start,f=p.end,g=f-c,S=o?f:c-1,C=this.__iteratees__,w=C.length,A=0,T=fe(g,this.__takeCount__);if(!r||!o&&a==g&&T==g)return Jo(e,this.__actions__);var R=[];e:for(;g--&&A<T;){S+=t;for(var O=-1,D=e[S];++O<w;){var z=C[O],W=z.iteratee,Ae=z.type,ve=W(D);if(Ae==ul)D=ve;else if(!ve){if(Ae==Fi)continue e;break e}}R[A++]=D}return R}$.prototype=Ot(Hn.prototype),$.prototype.constructor=$;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function vp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bp(e){var t=this.__data__;if(nn){var r=t[e];return r===I?i:r}return X.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return nn?t[e]!==i:X.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=vp,St.prototype.get=bp,St.prototype.has=xp,St.prototype.set=Sp;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,r=On(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function _p(e){var t=this.__data__,r=On(t,e);return r<0?i:t[r][1]}function Ip(e){return On(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=On(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Ep;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Ze),string:new St}}function Fp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Qe.prototype.clear=Ap,Qe.prototype.delete=Fp,Qe.prototype.get=Tp,Qe.prototype.has=Lp,Qe.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function We(e){var t=this.__data__=new Ze(e);this.size=t.size}function Pp(){this.__data__=new Ze,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Np(e){return this.__data__.has(e)}function Hp(e,t){var r=this.__data__;if(r instanceof Ze){var o=r.__data__;if(!en||o.length<y-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(o)}return r.set(e,t),this.size=r.size,this}We.prototype.clear=Pp,We.prototype.delete=kp,We.prototype.get=Mp,We.prototype.has=Np,We.prototype.set=Hp;function Eo(e,t){var r=M(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&Wt(e),c=r||o||a||p,f=c?Br(e.length,qs):[],g=f.length;for(var S in e)(t||X.call(e,S))&&!(c&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||nt(S,g)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Op(e,t){return Qn(be(e),wt(t,0,e.length))}function Up(e){return Qn(be(e))}function Hr(e,t,r){(r!==i&&!Ge(e[t],r)||r===i&&!(t in e))&&je(e,t,r)}function on(e,t,r){var o=e[t];(!(X.call(e,t)&&Ge(o,r))||r===i&&!(t in e))&&je(e,t,r)}function On(e,t){for(var r=e.length;r--;)if(Ge(e[r][0],t))return r;return-1}function zp(e,t,r,o){return dt(e,function(a,p,c){t(o,a,r(a),c)}),o}function Fo(e,t){return e&&qe(t,pe(t),e)}function $p(e,t){return e&&qe(t,Se(t),e)}function je(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Or(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:bi(e,t[r]);return a}function wt(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Me(e,t,r,o,a,p){var c,f=t&B,g=t&Y,S=t&N;if(r&&(c=a?r(e,o,a,p):r(e)),c!==i)return c;if(!ne(e))return e;var C=M(e);if(C){if(c=Lu(e),!f)return be(e,c)}else{var w=me(e),A=w==hn||w==Ti;if(yt(e))return Qo(e,f);if(w==Xe||w==Tt||A&&!a){if(c=g||A?{}:ha(e),!f)return g?bu(e,$p(c,e)):vu(e,Fo(c,e))}else{if(!j[w])return a?e:{};c=Bu(e,w,f)}}p||(p=new We);var T=p.get(e);if(T)return T;p.set(e,c),Ka(e)?e.forEach(function(D){c.add(Me(D,t,r,D,e,p))}):Ga(e)&&e.forEach(function(D,z){c.set(z,Me(D,t,r,z,e,p))});var R=S?g?oi:ii:g?Se:pe,O=C?i:R(e);return De(O||e,function(D,z){O&&(z=D,D=e[z]),on(c,z,Me(D,t,r,z,e,p))}),c}function Wp(e){var t=pe(e);return function(r){return To(r,e,t)}}function To(e,t,r){var o=r.length;if(e==null)return!o;for(e=Z(e);o--;){var a=r[o],p=t[a],c=e[a];if(c===i&&!(a in e)||!p(c))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new Pe(h);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,c=!0,f=e.length,g=[],S=t.length;if(!f)return g;r&&(t=te(t,_e(r))),o?(p=Ir,c=!1):t.length>=y&&(p=Qt,c=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,c&&w===w){for(var A=S;A--;)if(t[A]===w)continue e;g.push(C)}else p(t,w,o)||g.push(C)}return g}var dt=ra(Ve),Bo=ra(zr,!0);function Gp(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Un(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],c=t(p);if(c!=null&&(f===i?c===c&&!Ee(c):r(c,f)))var f=c,g=p}return g}function Yp(e,t,r,o){var a=e.length;for(r=H(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:H(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function ce(e,t,r,o,a){var p=-1,c=e.length;for(r||(r=Du),a||(a=[]);++p<c;){var f=e[p];t>0&&r(f)?t>1?ce(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var Ur=ia(),Do=ia(!0);function Ve(e,t){return e&&Ur(e,t,pe)}function zr(e,t){return e&&Do(e,t,pe)}function zn(e,t){return st(t,function(r){return rt(e[r])})}function _t(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Je(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return M(e)?o:pt(o,r(e))}function ye(e){return e==null?e===i?xl:vl:xt&&xt in Z(e)?Au(e):Uu(e)}function $r(e,t){return e>t}function Kp(e,t){return e!=null&&X.call(e,t)}function Vp(e,t){return e!=null&&t in Z(e)}function qp(e,t,r){return e>=fe(t,r)&&e<le(t,r)}function Wr(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,c=p,f=v(p),g=1/0,S=[];c--;){var C=e[c];c&&t&&(C=te(C,_e(t))),g=fe(C.length,g),f[c]=!r&&(t||a>=120&&C.length>=120)?new Ct(c&&C):i}C=e[0];var w=-1,A=f[0];e:for(;++w<a&&S.length<g;){var T=C[w],R=t?t(T):T;if(T=r||T!==0?T:0,!(A?Qt(A,R):o(S,R,r))){for(c=p;--c;){var O=f[c];if(!(O?Qt(O,R):o(e[c],R,r)))continue e}A&&A.push(R),S.push(T)}}return S}function Jp(e,t,r,o){return Ve(e,function(a,p,c){t(o,r(a),p,c)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[Je(He(t))];return o==null?i:we(o,e,r)}function ko(e){return re(e)&&ye(e)==Tt}function Xp(e){return re(e)&&ye(e)==Zt}function Zp(e){return re(e)&&ye(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!re(e)&&!re(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var c=M(e),f=M(t),g=c?gn:me(e),S=f?gn:me(t);g=g==Tt?Xe:g,S=S==Tt?Xe:S;var C=g==Xe,w=S==Xe,A=g==S;if(A&&yt(e)){if(!yt(t))return!1;c=!0,C=!1}if(A&&!C)return p||(p=new We),c||Wt(e)?ma(e,t,r,o,a,p):Iu(e,t,g,r,o,a,p);if(!(r&Q)){var T=C&&X.call(e,"__wrapped__"),R=w&&X.call(t,"__wrapped__");if(T||R){var O=T?e.value():e,D=R?t.value():t;return p||(p=new We),a(O,D,r,o,p)}}return A?(p||(p=new We),Eu(e,t,r,o,a,p)):!1}function jp(e){return re(e)&&me(e)==Ue}function Gr(e,t,r,o){var a=r.length,p=a,c=!o;if(e==null)return!p;for(e=Z(e);a--;){var f=r[a];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var g=f[0],S=e[g],C=f[1];if(c&&f[2]){if(S===i&&!(g in e))return!1}else{var w=new We;if(o)var A=o(S,C,g,e,t,w);if(!(A===i?sn(C,S,Q|V,o,w):A))return!1}}return!0}function Mo(e){if(!ne(e)||ku(e))return!1;var t=rt(e)?js:Wl;return t.test(Et(e))}function eu(e){return re(e)&&ye(e)==qt}function tu(e){return re(e)&&me(e)==ze}function nu(e){return re(e)&&ir(e.length)&&!!ee[ye(e)]}function No(e){return typeof e=="function"?e:e==null?Ce:typeof e=="object"?M(e)?Uo(e[0],e[1]):Oo(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in Z(e))X.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!ne(e))return Ou(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!X.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function Ho(e,t){var r=-1,o=xe(e)?v(e.length):[];return dt(e,function(a,p,c){o[++r]=t(a,p,c)}),o}function Oo(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(r){return r===e||Gr(r,e,t)}}function Uo(e,t){return pi(e)&&va(t)?ba(Je(e),t):function(r){var o=bi(r,e);return o===i&&o===t?xi(r,e):sn(t,o,Q|V)}}function $n(e,t,r,o,a){e!==t&&Ur(t,function(p,c){if(a||(a=new We),ne(p))iu(e,t,c,r,$n,o,a);else{var f=o?o(ci(e,c),p,c+"",e,t,a):i;f===i&&(f=p),Hr(e,c,f)}},Se)}function iu(e,t,r,o,a,p,c){var f=ci(e,r),g=ci(t,r),S=c.get(g);if(S){Hr(e,r,S);return}var C=p?p(f,g,r+"",e,t,c):i,w=C===i;if(w){var A=M(g),T=!A&&yt(g),R=!A&&!T&&Wt(g);C=g,A||T||R?M(f)?C=f:ie(f)?C=be(f):T?(w=!1,C=Qo(g,!0)):R?(w=!1,C=jo(g,!0)):C=[]:fn(g)||At(g)?(C=f,At(f)?C=Ja(f):(!ne(f)||rt(f))&&(C=ha(g))):w=!1}w&&(c.set(g,C),a(C,g,o,p,c),c.delete(g)),Hr(e,r,C)}function zo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,nt(t,r)?e[t]:i}function $o(e,t,r){t.length?t=te(t,function(p){return M(p)?function(c){return _t(c,p.length===1?p[0]:p)}:p}):t=[Ce];var o=-1;t=te(t,_e(L()));var a=Ho(e,function(p,c,f){var g=te(t,function(S){return S(p)});return{criteria:g,index:++o,value:p}});return Bs(a,function(p,c){return hu(p,c,r)})}function ou(e,t){return Wo(e,t,function(r,o){return xi(e,o)})}function Wo(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var c=t[o],f=_t(e,c);r(f,c)&&pn(p,mt(c,e),f)}return p}function au(e){return function(t){return _t(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,c=t.length,f=e;for(e===t&&(t=be(t)),r&&(f=te(e,_e(r)));++p<c;)for(var g=0,S=t[p],C=r?r(S):S;(g=a(f,C,g,o))>-1;)f!==e&&Rn.call(f,g,1),Rn.call(e,g,1);return e}function Go(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;nt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(_o()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=le(Pn((t-e)/(r||1)),0),c=v(p);p--;)c[o?p:++a]=e,e+=r;return c}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function U(e,t){return di(xa(e,t,Ce),e+"")}function su(e){return Ao(Gt(e))}function pu(e,t){var r=Gt(e);return Qn(r,wt(t,0,r.length))}function pn(e,t,r,o){if(!ne(e))return e;t=mt(t,e);for(var a=-1,p=t.length,c=p-1,f=e;f!=null&&++a<p;){var g=Je(t[a]),S=r;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=c){var C=f[g];S=o?o(C,g,f):i,S===i&&(S=ne(C)?C:nt(t[a+1])?[]:{})}on(f,g,S),f=f[g]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:Ce,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:Ce;function cu(e){return Qn(Gt(e))}function Ne(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=v(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function Wn(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,c=e[p];c!==null&&!Ee(c)&&(r?c<=t:c<t)?o=p+1:a=p}return a}return Xr(e,t,Ce,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var c=t!==t,f=t===null,g=Ee(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),A=w!==i,T=w===null,R=w===w,O=Ee(w);if(c)var D=o||R;else S?D=R&&(o||A):f?D=R&&A&&(o||!T):g?D=R&&A&&!T&&(o||!O):T||O?D=!1:D=o?w<=t:w<t;D?a=C+1:p=C}return fe(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var c=e[r],f=t?t(c):c;if(!r||!Ge(f,g)){var g=f;p[a++]=c===0?0:c}}return p}function Vo(e){return typeof e=="number"?e:Ee(e)?mn:+e}function Ie(e){if(typeof e=="string")return e;if(M(e))return te(e,Ie)+"";if(Ee(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,c=!0,f=[],g=f;if(r)c=!1,a=Ir;else if(p>=y){var S=t?null:wu(e);if(S)return _n(S);c=!1,a=Qt,g=new Ct}else g=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,c&&w===w){for(var A=g.length;A--;)if(g[A]===w)continue e;t&&g.push(w),f.push(C)}else a(g,w,r)||(g!==f&&g.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[Je(He(t))]}function qo(e,t,r,o){return pn(e,t,r(_t(e,t)),o)}function Gn(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?Ne(e,o?0:p,o?p+1:a):Ne(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof $&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var c=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||c,e[f],t,r));return ft(ce(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,c={};++o<a;){var f=o<p?t[o]:i;r(c,e[o],f)}return c}function jr(e){return ie(e)?e:[]}function ei(e){return typeof e=="function"?e:Ce}function mt(e,t){return M(e)?e:pi(e,t)?[e]:Ia(q(e))}var fu=U;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:Ne(e,t,r)}var Zo=ep||function(e){return ue.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=bo?bo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?Z(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=Ee(e),c=t!==i,f=t===null,g=t===t,S=Ee(t);if(!f&&!S&&!p&&e>t||p&&c&&g&&!f&&!S||o&&c&&g||!r&&g||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!c&&a||!g)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,c=a.length,f=r.length;++o<c;){var g=ea(a[o],p[o]);if(g){if(o>=f)return g;var S=r[o];return g*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,c=r.length,f=-1,g=t.length,S=le(p-c,0),C=v(g+S),w=!o;++f<g;)C[f]=t[f];for(;++a<c;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,c=-1,f=r.length,g=-1,S=t.length,C=le(p-f,0),w=v(C+S),A=!o;++a<C;)w[a]=e[a];for(var T=a;++g<S;)w[T+g]=t[g];for(;++c<f;)(A||a<p)&&(w[T+r[c]]=e[a++]);return w}function be(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function qe(e,t,r,o){var a=!r;r||(r={});for(var p=-1,c=t.length;++p<c;){var f=t[p],g=o?o(r[f],e[f],f,r,e):i;g===i&&(g=e[f]),a?je(r,f,g):on(r,f,g)}return r}function vu(e,t){return qe(e,si(e),t)}function bu(e,t){return qe(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=M(r)?_s:zp,p=t?t():{};return a(r,e,L(o,2),p)}}function Ut(e){return U(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,c=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,c&&he(r[0],r[1],c)&&(p=a<3?i:p,a=1),t=Z(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!xe(r))return e(r,o);for(var a=r.length,p=t?a:-1,c=Z(r);(t?p--:++p<a)&&o(c[p],p,c)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=Z(t),c=o(t),f=c.length;f--;){var g=c[e?f:++a];if(r(p[g],g,p)===!1)break}return t}}function xu(e,t,r){var o=t&G,a=un(e);function p(){var c=this&&this!==ue&&this instanceof p?a:e;return c.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=q(t);var r=Dt(t)?$e(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function zt(e){return function(t){return Er(rl(nl(t).replace(us,"")),e,"")}}function un(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 r=Ot(e.prototype),o=e.apply(r,t);return ne(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,c=v(p),f=p,g=$t(a);f--;)c[f]=arguments[f];var S=p<3&&c[0]!==g&&c[p-1]!==g?[]:ut(c,g);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,c,S,i,i,r-p);var C=this&&this!==ue&&this instanceof a?o:e;return we(C,this,c)}return a}function aa(e){return function(t,r,o){var a=Z(t);if(!xe(t)){var p=L(r,3);t=pe(t),r=function(f){return p(a[f],f,a)}}var c=e(t,r,o);return c>-1?a[p?t[c]:c]:i}}function la(e){return tt(function(t){var r=t.length,o=r,a=ke.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Pe(h);if(a&&!c&&Xn(p)=="wrapper")var c=new ke([],!0)}for(o=c?o:r;++o<r;){p=t[o];var f=Xn(p),g=f=="wrapper"?ai(p):i;g&&ui(g[0])&&g[1]==(Be|J|de|at)&&!g[4].length&&g[9]==1?c=c[Xn(g[0])].apply(c,g[3]):c=p.length==1&&ui(p)?c[f]():c.thru(p)}return function(){var S=arguments,C=S[0];if(c&&S.length==1&&M(C))return c.plant(C).value();for(var w=0,A=r?t[w].apply(this,S):C;++w<r;)A=t[w].call(this,A);return A}})}function Kn(e,t,r,o,a,p,c,f,g,S){var C=t&Be,w=t&G,A=t&se,T=t&(J|Te),R=t&Ft,O=A?i:un(e);function D(){for(var z=arguments.length,W=v(z),Ae=z;Ae--;)W[Ae]=arguments[Ae];if(T)var ve=$t(D),Fe=Ds(W,ve);if(o&&(W=ta(W,o,a,T)),p&&(W=na(W,p,c,T)),z-=Fe,T&&z<S){var oe=ut(W,ve);return ua(e,t,Kn,D.placeholder,r,W,oe,f,g,S-z)}var Ye=w?r:this,ot=A?Ye[e]:e;return z=W.length,f?W=zu(W,f):R&&z>1&&W.reverse(),C&&g<z&&(W.length=g),this&&this!==ue&&this instanceof D&&(ot=O||un(ot)),ot.apply(Ye,W)}return D}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=Ie(r),o=Ie(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return tt(function(t){return t=te(t,_e(L())),U(function(r){var o=this;return e(t,function(a){return we(a,o,r)})})})}function qn(e,t){t=t===i?" ":Ie(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt($e(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&G,p=un(e);function c(){for(var f=-1,g=arguments.length,S=-1,C=o.length,w=v(C+g),A=this&&this!==ue&&this instanceof c?p:e;++S<C;)w[S]=o[S];for(;g--;)w[S++]=arguments[++f];return we(A,a?r:this,w)}return c}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&he(t,r,o)&&(r=o=i),t=it(t),r===i?(r=t,t=0):r=it(r),o=o===i?t<r?1:-1:it(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Oe(t),r=Oe(r)),e(t,r)}}function ua(e,t,r,o,a,p,c,f,g,S){var C=t&J,w=C?c:i,A=C?i:c,T=C?p:i,R=C?i:p;t|=C?de:Le,t&=~(C?Le:de),t&ge||(t&=~(G|se));var O=[e,t,a,T,w,R,A,f,g,S],D=r.apply(i,O);return ui(e)&&Ca(D,O),D.placeholder=o,wa(D,e,t)}function ri(e){var t=ae[e];return function(r,o){if(r=Oe(r),o=o==null?0:fe(H(o),292),o&&wo(r)){var a=(q(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(q(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var wu=Nt&&1/_n(new Nt([,-0]))[1]==vt?function(e){return new Nt(e)}:Ii;function ca(e){return function(t){var r=me(t);return r==Ue?Dr(t):r==ze?Us(t):Rs(t,e(t))}}function et(e,t,r,o,a,p,c,f){var g=t&se;if(!g&&typeof e!="function")throw new Pe(h);var S=o?o.length:0;if(S||(t&=~(de|Le),o=a=i),c=c===i?c:le(H(c),0),f=f===i?f:H(f),S-=a?a.length:0,t&Le){var C=o,w=a;o=a=i}var A=g?i:ai(e),T=[e,t,r,o,a,C,w,p,c,f];if(A&&Hu(T,A),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?g?0:e.length:le(T[9]-S,0),!f&&t&(J|Te)&&(t&=~(J|Te)),!t||t==G)var R=xu(e,t,r);else t==J||t==Te?R=Su(e,t,f):(t==de||t==(G|de))&&!a.length?R=Cu(e,t,r,o):R=Kn.apply(i,T);var O=A?Yo:Ca;return wa(O(R,T),e,t)}function da(e,t,r,o){return e===i||Ge(e,Mt[r])&&!X.call(o,r)?t:e}function fa(e,t,r,o,a,p){return ne(e)&&ne(t)&&(p.set(t,e),$n(e,t,i,fa,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var c=r&Q,f=e.length,g=t.length;if(f!=g&&!(c&&g>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,A=!0,T=r&V?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var R=e[w],O=t[w];if(o)var D=c?o(O,R,w,t,e,p):o(R,O,w,e,t,p);if(D!==i){if(D)continue;A=!1;break}if(T){if(!Ar(t,function(z,W){if(!Qt(T,W)&&(R===z||a(R,z,r,o,p)))return T.push(W)})){A=!1;break}}else if(!(R===O||a(R,O,r,o,p))){A=!1;break}}return p.delete(e),p.delete(t),A}function Iu(e,t,r,o,a,p,c){switch(r){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return Ge(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Ue:var f=Dr;case ze:var g=o&Q;if(f||(f=_n),e.size!=t.size&&!g)return!1;var S=c.get(e);if(S)return S==t;o|=V,c.set(e,t);var C=ma(f(e),f(t),o,a,p,c);return c.delete(e),C;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var c=r&Q,f=ii(e),g=f.length,S=ii(t),C=S.length;if(g!=C&&!c)return!1;for(var w=g;w--;){var A=f[w];if(!(c?A in t:X.call(t,A)))return!1}var T=p.get(e),R=p.get(t);if(T&&R)return T==t&&R==e;var O=!0;p.set(e,t),p.set(t,e);for(var D=c;++w<g;){A=f[w];var z=e[A],W=t[A];if(o)var Ae=c?o(W,z,A,t,e,p):o(z,W,A,e,t,p);if(!(Ae===i?z===W||a(z,W,r,o,p):Ae)){O=!1;break}D||(D=A=="constructor")}if(O&&!D){var ve=e.constructor,Fe=t.constructor;ve!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof ve=="function"&&ve instanceof ve&&typeof Fe=="function"&&Fe instanceof Fe)&&(O=!1)}return p.delete(e),p.delete(t),O}function tt(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,pe,si)}function oi(e){return Po(e,Se,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Ht[t],o=X.call(Ht,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function $t(e){var t=X.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||wi;return e=e===wi?No:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=pe(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,va(a)]}return t}function It(e,t){var r=Ns(e,t);return Mo(r)?r:i}function Au(e){var t=X.call(e,xt),r=e[xt];try{e[xt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[xt]=r:delete e[xt]),a}var si=kr?function(e){return e==null?[]:(e=Z(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,me=ye;(Mr&&me(new Mr(new ArrayBuffer(1)))!=Lt||en&&me(new en)!=Ue||Nr&&me(Nr.resolve())!=Li||Nt&&me(new Nt)!=ze||tn&&me(new tn)!=Xt)&&(me=function(e){var t=ye(e),r=t==Xe?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return Ue;case cp:return Li;case dp:return ze;case fp:return Xt}return t});function Fu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],c=p.size;switch(p.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=fe(t,e+c);break;case"takeRight":e=le(e,t-c);break}}return{start:e,end:t}}function Tu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var c=Je(t[o]);if(!(p=e!=null&&r(e,c)))break;e=e[c]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&nt(c,a)&&(M(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&X.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case Ue:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case ze:return new o;case vn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
8
|
+
*/(function(n,s){(function(){var i,d="4.17.21",y=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",v="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",E=500,P="__lodash_placeholder__",B=1,Y=2,N=4,Q=1,V=2,G=1,se=2,ge=4,J=8,Te=16,de=32,Le=64,Be=128,at=256,Ft=512,ht=30,ll="...",sl=800,pl=16,Fi=1,ul=2,cl=3,bt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ke=4294967295,fl=Ke-1,ml=Ke>>>1,gl=[["ary",Be],["bind",G],["bindKey",se],["curry",J],["curryRight",Te],["flip",Ft],["partial",de],["partialRight",Le],["rearg",at]],Tt="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Ti="[object GeneratorFunction]",ze="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",Li="[object Promise]",vl="[object Proxy]",qt="[object RegExp]",Ue="[object Set]",Jt="[object String]",bn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,$l=/^0b[01]+$/i,Wl=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Ni="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",zi=Zl+Ql+jl+es,br="['\u2019]",ts="["+xn+"]",Ui="["+zi+"]",Sn="["+ki+"]",$i="\\d+",ns="["+Mi+"]",Wi="["+Ni+"]",Gi="[^"+xn+zi+$i+Mi+Ni+Hi+"]",vr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+vr+")",Yi="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Hi+"]",Ki="\\u200d",Vi="(?:"+Wi+"|"+Gi+")",is="(?:"+Bt+"|"+Gi+")",qi="(?:"+br+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+br+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[Yi,xr,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,xr,Sr,ts].join("|")+")",us=RegExp(br,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(vr+"(?="+vr+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+Wi+"+"+qi+"(?="+[Ui,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[Ui,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,$i,ss].join("|"),"g"),fs=RegExp("["+Ki+xn+ki+Oi+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ys=-1,ee={};ee[lr]=ee[sr]=ee[pr]=ee[ur]=ee[cr]=ee[dr]=ee[fr]=ee[mr]=ee[gr]=!0,ee[Tt]=ee[gn]=ee[Zt]=ee[Yt]=ee[Lt]=ee[Kt]=ee[yn]=ee[hn]=ee[ze]=ee[Vt]=ee[Xe]=ee[qt]=ee[Ue]=ee[Jt]=ee[Xt]=!1;var j={};j[Tt]=j[gn]=j[Zt]=j[Lt]=j[Yt]=j[Kt]=j[lr]=j[sr]=j[pr]=j[ur]=j[cr]=j[ze]=j[Vt]=j[Xe]=j[qt]=j[Ue]=j[Jt]=j[bn]=j[dr]=j[fr]=j[mr]=j[gr]=!0,j[yn]=j[hn]=j[Xt]=!1;var hs={\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"},bs={"&":"&","<":"<",">":">",'"':""","'":"'"},vs={"&":"&","<":"<",">":">",""":'"',"'":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=ji||ws||Function("return this")(),wr=s&&!s.nodeType&&s,vt=wr&&!0&&n&&!n.nodeType&&n,eo=vt&&vt.exports===wr,_r=eo&&ji.process,Re=function(){try{var m=vt&&vt.require&&vt.require("util").types;return m||_r&&_r.binding&&_r.binding("util")}catch{}}(),to=Re&&Re.isArrayBuffer,no=Re&&Re.isDate,ro=Re&&Re.isMap,io=Re&&Re.isRegExp,oo=Re&&Re.isSet,ao=Re&&Re.isTypedArray;function we(m,x,b){switch(b.length){case 0:return m.call(x);case 1:return m.call(x,b[0]);case 2:return m.call(x,b[0],b[1]);case 3:return m.call(x,b[0],b[1],b[2])}return m.apply(x,b)}function _s(m,x,b,F){for(var k=-1,K=m==null?0:m.length;++k<K;){var ae=m[k];x(F,ae,b(ae),m)}return F}function De(m,x){for(var b=-1,F=m==null?0:m.length;++b<F&&x(m[b],b,m)!==!1;);return m}function Is(m,x){for(var b=m==null?0:m.length;b--&&x(m[b],b,m)!==!1;);return m}function lo(m,x){for(var b=-1,F=m==null?0:m.length;++b<F;)if(!x(m[b],b,m))return!1;return!0}function st(m,x){for(var b=-1,F=m==null?0:m.length,k=0,K=[];++b<F;){var ae=m[b];x(ae,b,m)&&(K[k++]=ae)}return K}function Cn(m,x){var b=m==null?0:m.length;return!!b&&Rt(m,x,0)>-1}function Ir(m,x,b){for(var F=-1,k=m==null?0:m.length;++F<k;)if(b(x,m[F]))return!0;return!1}function te(m,x){for(var b=-1,F=m==null?0:m.length,k=Array(F);++b<F;)k[b]=x(m[b],b,m);return k}function pt(m,x){for(var b=-1,F=x.length,k=m.length;++b<F;)m[k+b]=x[b];return m}function Er(m,x,b,F){var k=-1,K=m==null?0:m.length;for(F&&K&&(b=m[++k]);++k<K;)b=x(b,m[k],k,m);return b}function Es(m,x,b,F){var k=m==null?0:m.length;for(F&&k&&(b=m[--k]);k--;)b=x(b,m[k],k,m);return b}function Ar(m,x){for(var b=-1,F=m==null?0:m.length;++b<F;)if(x(m[b],b,m))return!0;return!1}var As=Fr("length");function Fs(m){return m.split("")}function Ts(m){return m.match(Nl)||[]}function so(m,x,b){var F;return b(m,function(k,K,ae){if(x(k,K,ae))return F=K,!1}),F}function wn(m,x,b,F){for(var k=m.length,K=b+(F?1:-1);F?K--:++K<k;)if(x(m[K],K,m))return K;return-1}function Rt(m,x,b){return x===x?Us(m,x,b):wn(m,po,b)}function Ls(m,x,b,F){for(var k=b-1,K=m.length;++k<K;)if(F(m[k],x))return k;return-1}function po(m){return m!==m}function uo(m,x){var b=m==null?0:m.length;return b?Lr(m,x)/b:mn}function Fr(m){return function(x){return x==null?i:x[m]}}function Tr(m){return function(x){return m==null?i:m[x]}}function co(m,x,b,F,k){return k(m,function(K,ae,Z){b=F?(F=!1,K):x(b,K,ae,Z)}),b}function Bs(m,x){var b=m.length;for(m.sort(x);b--;)m[b]=m[b].value;return m}function Lr(m,x){for(var b,F=-1,k=m.length;++F<k;){var K=x(m[F]);K!==i&&(b=b===i?K:b+K)}return b}function Br(m,x){for(var b=-1,F=Array(m);++b<m;)F[b]=x(b);return F}function Rs(m,x){return te(x,function(b){return[b,m[b]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function _e(m){return function(x){return m(x)}}function Rr(m,x){return te(x,function(b){return m[b]})}function Qt(m,x){return m.has(x)}function mo(m,x){for(var b=-1,F=m.length;++b<F&&Rt(x,m[b],0)>-1;);return b}function go(m,x){for(var b=m.length;b--&&Rt(x,m[b],0)>-1;);return b}function Ds(m,x){for(var b=m.length,F=0;b--;)m[b]===x&&++F;return F}var Ps=Tr(hs),ks=Tr(bs);function Ms(m){return"\\"+xs[m]}function Ns(m,x){return m==null?i:m[x]}function Dt(m){return fs.test(m)}function Hs(m){return ms.test(m)}function Os(m){for(var x,b=[];!(x=m.next()).done;)b.push(x.value);return b}function Dr(m){var x=-1,b=Array(m.size);return m.forEach(function(F,k){b[++x]=[k,F]}),b}function yo(m,x){return function(b){return m(x(b))}}function ut(m,x){for(var b=-1,F=m.length,k=0,K=[];++b<F;){var ae=m[b];(ae===x||ae===P)&&(m[b]=P,K[k++]=b)}return K}function _n(m){var x=-1,b=Array(m.size);return m.forEach(function(F){b[++x]=F}),b}function zs(m){var x=-1,b=Array(m.size);return m.forEach(function(F){b[++x]=[F,F]}),b}function Us(m,x,b){for(var F=b-1,k=m.length;++F<k;)if(m[F]===x)return F;return-1}function $s(m,x,b){for(var F=b+1;F--;)if(m[F]===x)return F;return F}function Pt(m){return Dt(m)?Gs(m):As(m)}function $e(m){return Dt(m)?Ys(m):Fs(m)}function ho(m){for(var x=m.length;x--&&Dl.test(m.charAt(x)););return x}var Ws=Tr(vs);function Gs(m){for(var x=Cr.lastIndex=0;Cr.test(m);)++x;return x}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(x){x=x==null?ue:kt.defaults(ue.Object(),x,kt.pick(ue,gs));var b=x.Array,F=x.Date,k=x.Error,K=x.Function,ae=x.Math,Z=x.Object,Pr=x.RegExp,qs=x.String,Pe=x.TypeError,In=b.prototype,Js=K.prototype,Mt=Z.prototype,En=x["__core-js_shared__"],An=Js.toString,X=Mt.hasOwnProperty,Xs=0,bo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=Mt.toString,Zs=An.call(Z),Qs=ue._,js=Pr("^"+An.call(X).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?x.Buffer:i,ct=x.Symbol,Ln=x.Uint8Array,vo=Tn?Tn.allocUnsafe:i,Bn=yo(Z.getPrototypeOf,Z),xo=Z.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(Z,"defineProperty");return e({},"",{}),e}catch{}}(),ep=x.clearTimeout!==ue.clearTimeout&&x.clearTimeout,tp=F&&F.now!==ue.Date.now&&F.now,np=x.setTimeout!==ue.setTimeout&&x.setTimeout,Pn=ae.ceil,kn=ae.floor,kr=Z.getOwnPropertySymbols,rp=Tn?Tn.isBuffer:i,wo=x.isFinite,ip=In.join,op=yo(Z.keys,Z),le=ae.max,fe=ae.min,ap=F.now,lp=x.parseInt,_o=ae.random,sp=In.reverse,Mr=It(x,"DataView"),en=It(x,"Map"),Nr=It(x,"Promise"),Nt=It(x,"Set"),tn=It(x,"WeakMap"),nn=It(Z,"create"),Mn=tn&&new tn,Ht={},pp=Et(Mr),up=Et(en),cp=Et(Nr),dp=Et(Nt),fp=Et(tn),Nn=ct?ct.prototype:i,rn=Nn?Nn.valueOf:i,Io=Nn?Nn.toString:i;function l(e){if(re(e)&&!M(e)&&!(e instanceof $)){if(e instanceof ke)return e;if(X.call(e,"__wrapped__"))return Ea(e)}return new ke(e)}var Ot=function(){function e(){}return function(t){if(!ne(t))return{};if(xo)return xo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Hn(){}function ke(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=Hn.prototype,l.prototype.constructor=l,ke.prototype=Ot(Hn.prototype),ke.prototype.constructor=ke;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ke,this.__views__=[]}function mp(){var e=new $(this.__wrapped__);return e.__actions__=ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ve(this.__views__),e}function gp(){if(this.__filtered__){var e=new $(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,r=M(e),o=t<0,a=r?e.length:0,p=Fu(0,a,this.__views__),c=p.start,f=p.end,g=f-c,S=o?f:c-1,C=this.__iteratees__,w=C.length,A=0,T=fe(g,this.__takeCount__);if(!r||!o&&a==g&&T==g)return Jo(e,this.__actions__);var R=[];e:for(;g--&&A<T;){S+=t;for(var O=-1,D=e[S];++O<w;){var U=C[O],W=U.iteratee,Ae=U.type,be=W(D);if(Ae==ul)D=be;else if(!be){if(Ae==Fi)continue e;break e}}R[A++]=D}return R}$.prototype=Ot(Hn.prototype),$.prototype.constructor=$;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function vp(e){var t=this.__data__;if(nn){var r=t[e];return r===I?i:r}return X.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return nn?t[e]!==i:X.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=bp,St.prototype.get=vp,St.prototype.has=xp,St.prototype.set=Sp;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,r=On(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function _p(e){var t=this.__data__,r=On(t,e);return r<0?i:t[r][1]}function Ip(e){return On(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=On(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Ep;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Ze),string:new St}}function Fp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Qe.prototype.clear=Ap,Qe.prototype.delete=Fp,Qe.prototype.get=Tp,Qe.prototype.has=Lp,Qe.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function We(e){var t=this.__data__=new Ze(e);this.size=t.size}function Pp(){this.__data__=new Ze,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Np(e){return this.__data__.has(e)}function Hp(e,t){var r=this.__data__;if(r instanceof Ze){var o=r.__data__;if(!en||o.length<y-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(o)}return r.set(e,t),this.size=r.size,this}We.prototype.clear=Pp,We.prototype.delete=kp,We.prototype.get=Mp,We.prototype.has=Np,We.prototype.set=Hp;function Eo(e,t){var r=M(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&Wt(e),c=r||o||a||p,f=c?Br(e.length,qs):[],g=f.length;for(var S in e)(t||X.call(e,S))&&!(c&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||nt(S,g)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Op(e,t){return Qn(ve(e),wt(t,0,e.length))}function zp(e){return Qn(ve(e))}function Hr(e,t,r){(r!==i&&!Ge(e[t],r)||r===i&&!(t in e))&&je(e,t,r)}function on(e,t,r){var o=e[t];(!(X.call(e,t)&&Ge(o,r))||r===i&&!(t in e))&&je(e,t,r)}function On(e,t){for(var r=e.length;r--;)if(Ge(e[r][0],t))return r;return-1}function Up(e,t,r,o){return dt(e,function(a,p,c){t(o,a,r(a),c)}),o}function Fo(e,t){return e&&qe(t,pe(t),e)}function $p(e,t){return e&&qe(t,Se(t),e)}function je(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Or(e,t){for(var r=-1,o=t.length,a=b(o),p=e==null;++r<o;)a[r]=p?i:vi(e,t[r]);return a}function wt(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Me(e,t,r,o,a,p){var c,f=t&B,g=t&Y,S=t&N;if(r&&(c=a?r(e,o,a,p):r(e)),c!==i)return c;if(!ne(e))return e;var C=M(e);if(C){if(c=Lu(e),!f)return ve(e,c)}else{var w=me(e),A=w==hn||w==Ti;if(yt(e))return Qo(e,f);if(w==Xe||w==Tt||A&&!a){if(c=g||A?{}:ha(e),!f)return g?vu(e,$p(c,e)):bu(e,Fo(c,e))}else{if(!j[w])return a?e:{};c=Bu(e,w,f)}}p||(p=new We);var T=p.get(e);if(T)return T;p.set(e,c),Ka(e)?e.forEach(function(D){c.add(Me(D,t,r,D,e,p))}):Ga(e)&&e.forEach(function(D,U){c.set(U,Me(D,t,r,U,e,p))});var R=S?g?oi:ii:g?Se:pe,O=C?i:R(e);return De(O||e,function(D,U){O&&(U=D,D=e[U]),on(c,U,Me(D,t,r,U,e,p))}),c}function Wp(e){var t=pe(e);return function(r){return To(r,e,t)}}function To(e,t,r){var o=r.length;if(e==null)return!o;for(e=Z(e);o--;){var a=r[o],p=t[a],c=e[a];if(c===i&&!(a in e)||!p(c))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new Pe(h);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,c=!0,f=e.length,g=[],S=t.length;if(!f)return g;r&&(t=te(t,_e(r))),o?(p=Ir,c=!1):t.length>=y&&(p=Qt,c=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,c&&w===w){for(var A=S;A--;)if(t[A]===w)continue e;g.push(C)}else p(t,w,o)||g.push(C)}return g}var dt=ra(Ve),Bo=ra(Ur,!0);function Gp(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function zn(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],c=t(p);if(c!=null&&(f===i?c===c&&!Ee(c):r(c,f)))var f=c,g=p}return g}function Yp(e,t,r,o){var a=e.length;for(r=H(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:H(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function ce(e,t,r,o,a){var p=-1,c=e.length;for(r||(r=Du),a||(a=[]);++p<c;){var f=e[p];t>0&&r(f)?t>1?ce(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var zr=ia(),Do=ia(!0);function Ve(e,t){return e&&zr(e,t,pe)}function Ur(e,t){return e&&Do(e,t,pe)}function Un(e,t){return st(t,function(r){return rt(e[r])})}function _t(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Je(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return M(e)?o:pt(o,r(e))}function ye(e){return e==null?e===i?xl:bl:xt&&xt in Z(e)?Au(e):zu(e)}function $r(e,t){return e>t}function Kp(e,t){return e!=null&&X.call(e,t)}function Vp(e,t){return e!=null&&t in Z(e)}function qp(e,t,r){return e>=fe(t,r)&&e<le(t,r)}function Wr(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,c=p,f=b(p),g=1/0,S=[];c--;){var C=e[c];c&&t&&(C=te(C,_e(t))),g=fe(C.length,g),f[c]=!r&&(t||a>=120&&C.length>=120)?new Ct(c&&C):i}C=e[0];var w=-1,A=f[0];e:for(;++w<a&&S.length<g;){var T=C[w],R=t?t(T):T;if(T=r||T!==0?T:0,!(A?Qt(A,R):o(S,R,r))){for(c=p;--c;){var O=f[c];if(!(O?Qt(O,R):o(e[c],R,r)))continue e}A&&A.push(R),S.push(T)}}return S}function Jp(e,t,r,o){return Ve(e,function(a,p,c){t(o,r(a),p,c)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[Je(He(t))];return o==null?i:we(o,e,r)}function ko(e){return re(e)&&ye(e)==Tt}function Xp(e){return re(e)&&ye(e)==Zt}function Zp(e){return re(e)&&ye(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!re(e)&&!re(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var c=M(e),f=M(t),g=c?gn:me(e),S=f?gn:me(t);g=g==Tt?Xe:g,S=S==Tt?Xe:S;var C=g==Xe,w=S==Xe,A=g==S;if(A&&yt(e)){if(!yt(t))return!1;c=!0,C=!1}if(A&&!C)return p||(p=new We),c||Wt(e)?ma(e,t,r,o,a,p):Iu(e,t,g,r,o,a,p);if(!(r&Q)){var T=C&&X.call(e,"__wrapped__"),R=w&&X.call(t,"__wrapped__");if(T||R){var O=T?e.value():e,D=R?t.value():t;return p||(p=new We),a(O,D,r,o,p)}}return A?(p||(p=new We),Eu(e,t,r,o,a,p)):!1}function jp(e){return re(e)&&me(e)==ze}function Gr(e,t,r,o){var a=r.length,p=a,c=!o;if(e==null)return!p;for(e=Z(e);a--;){var f=r[a];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var g=f[0],S=e[g],C=f[1];if(c&&f[2]){if(S===i&&!(g in e))return!1}else{var w=new We;if(o)var A=o(S,C,g,e,t,w);if(!(A===i?sn(C,S,Q|V,o,w):A))return!1}}return!0}function Mo(e){if(!ne(e)||ku(e))return!1;var t=rt(e)?js:Wl;return t.test(Et(e))}function eu(e){return re(e)&&ye(e)==qt}function tu(e){return re(e)&&me(e)==Ue}function nu(e){return re(e)&&ir(e.length)&&!!ee[ye(e)]}function No(e){return typeof e=="function"?e:e==null?Ce:typeof e=="object"?M(e)?zo(e[0],e[1]):Oo(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in Z(e))X.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!ne(e))return Ou(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!X.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function Ho(e,t){var r=-1,o=xe(e)?b(e.length):[];return dt(e,function(a,p,c){o[++r]=t(a,p,c)}),o}function Oo(e){var t=li(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(r){return r===e||Gr(r,e,t)}}function zo(e,t){return pi(e)&&ba(t)?va(Je(e),t):function(r){var o=vi(r,e);return o===i&&o===t?xi(r,e):sn(t,o,Q|V)}}function $n(e,t,r,o,a){e!==t&&zr(t,function(p,c){if(a||(a=new We),ne(p))iu(e,t,c,r,$n,o,a);else{var f=o?o(ci(e,c),p,c+"",e,t,a):i;f===i&&(f=p),Hr(e,c,f)}},Se)}function iu(e,t,r,o,a,p,c){var f=ci(e,r),g=ci(t,r),S=c.get(g);if(S){Hr(e,r,S);return}var C=p?p(f,g,r+"",e,t,c):i,w=C===i;if(w){var A=M(g),T=!A&&yt(g),R=!A&&!T&&Wt(g);C=g,A||T||R?M(f)?C=f:ie(f)?C=ve(f):T?(w=!1,C=Qo(g,!0)):R?(w=!1,C=jo(g,!0)):C=[]:fn(g)||At(g)?(C=f,At(f)?C=Ja(f):(!ne(f)||rt(f))&&(C=ha(g))):w=!1}w&&(c.set(g,C),a(C,g,o,p,c),c.delete(g)),Hr(e,r,C)}function Uo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,nt(t,r)?e[t]:i}function $o(e,t,r){t.length?t=te(t,function(p){return M(p)?function(c){return _t(c,p.length===1?p[0]:p)}:p}):t=[Ce];var o=-1;t=te(t,_e(L()));var a=Ho(e,function(p,c,f){var g=te(t,function(S){return S(p)});return{criteria:g,index:++o,value:p}});return Bs(a,function(p,c){return hu(p,c,r)})}function ou(e,t){return Wo(e,t,function(r,o){return xi(e,o)})}function Wo(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var c=t[o],f=_t(e,c);r(f,c)&&pn(p,mt(c,e),f)}return p}function au(e){return function(t){return _t(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,c=t.length,f=e;for(e===t&&(t=ve(t)),r&&(f=te(e,_e(r)));++p<c;)for(var g=0,S=t[p],C=r?r(S):S;(g=a(f,C,g,o))>-1;)f!==e&&Rn.call(f,g,1),Rn.call(e,g,1);return e}function Go(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;nt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(_o()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=le(Pn((t-e)/(r||1)),0),c=b(p);p--;)c[o?p:++a]=e,e+=r;return c}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function z(e,t){return di(xa(e,t,Ce),e+"")}function su(e){return Ao(Gt(e))}function pu(e,t){var r=Gt(e);return Qn(r,wt(t,0,r.length))}function pn(e,t,r,o){if(!ne(e))return e;t=mt(t,e);for(var a=-1,p=t.length,c=p-1,f=e;f!=null&&++a<p;){var g=Je(t[a]),S=r;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=c){var C=f[g];S=o?o(C,g,f):i,S===i&&(S=ne(C)?C:nt(t[a+1])?[]:{})}on(f,g,S),f=f[g]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:Ce,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:Ce;function cu(e){return Qn(Gt(e))}function Ne(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=b(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function Wn(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,c=e[p];c!==null&&!Ee(c)&&(r?c<=t:c<t)?o=p+1:a=p}return a}return Xr(e,t,Ce,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var c=t!==t,f=t===null,g=Ee(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),A=w!==i,T=w===null,R=w===w,O=Ee(w);if(c)var D=o||R;else S?D=R&&(o||A):f?D=R&&A&&(o||!T):g?D=R&&A&&!T&&(o||!O):T||O?D=!1:D=o?w<=t:w<t;D?a=C+1:p=C}return fe(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var c=e[r],f=t?t(c):c;if(!r||!Ge(f,g)){var g=f;p[a++]=c===0?0:c}}return p}function Vo(e){return typeof e=="number"?e:Ee(e)?mn:+e}function Ie(e){if(typeof e=="string")return e;if(M(e))return te(e,Ie)+"";if(Ee(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-bt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,c=!0,f=[],g=f;if(r)c=!1,a=Ir;else if(p>=y){var S=t?null:wu(e);if(S)return _n(S);c=!1,a=Qt,g=new Ct}else g=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,c&&w===w){for(var A=g.length;A--;)if(g[A]===w)continue e;t&&g.push(w),f.push(C)}else a(g,w,r)||(g!==f&&g.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[Je(He(t))]}function qo(e,t,r,o){return pn(e,t,r(_t(e,t)),o)}function Gn(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?Ne(e,o?0:p,o?p+1:a):Ne(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof $&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=b(o);++a<o;)for(var c=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||c,e[f],t,r));return ft(ce(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,c={};++o<a;){var f=o<p?t[o]:i;r(c,e[o],f)}return c}function jr(e){return ie(e)?e:[]}function ei(e){return typeof e=="function"?e:Ce}function mt(e,t){return M(e)?e:pi(e,t)?[e]:Ia(q(e))}var fu=z;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:Ne(e,t,r)}var Zo=ep||function(e){return ue.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=vo?vo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?Z(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=Ee(e),c=t!==i,f=t===null,g=t===t,S=Ee(t);if(!f&&!S&&!p&&e>t||p&&c&&g&&!f&&!S||o&&c&&g||!r&&g||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!c&&a||!g)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,c=a.length,f=r.length;++o<c;){var g=ea(a[o],p[o]);if(g){if(o>=f)return g;var S=r[o];return g*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,c=r.length,f=-1,g=t.length,S=le(p-c,0),C=b(g+S),w=!o;++f<g;)C[f]=t[f];for(;++a<c;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,c=-1,f=r.length,g=-1,S=t.length,C=le(p-f,0),w=b(C+S),A=!o;++a<C;)w[a]=e[a];for(var T=a;++g<S;)w[T+g]=t[g];for(;++c<f;)(A||a<p)&&(w[T+r[c]]=e[a++]);return w}function ve(e,t){var r=-1,o=e.length;for(t||(t=b(o));++r<o;)t[r]=e[r];return t}function qe(e,t,r,o){var a=!r;r||(r={});for(var p=-1,c=t.length;++p<c;){var f=t[p],g=o?o(r[f],e[f],f,r,e):i;g===i&&(g=e[f]),a?je(r,f,g):on(r,f,g)}return r}function bu(e,t){return qe(e,si(e),t)}function vu(e,t){return qe(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=M(r)?_s:Up,p=t?t():{};return a(r,e,L(o,2),p)}}function zt(e){return z(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,c=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,c&&he(r[0],r[1],c)&&(p=a<3?i:p,a=1),t=Z(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!xe(r))return e(r,o);for(var a=r.length,p=t?a:-1,c=Z(r);(t?p--:++p<a)&&o(c[p],p,c)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=Z(t),c=o(t),f=c.length;f--;){var g=c[e?f:++a];if(r(p[g],g,p)===!1)break}return t}}function xu(e,t,r){var o=t&G,a=un(e);function p(){var c=this&&this!==ue&&this instanceof p?a:e;return c.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=q(t);var r=Dt(t)?$e(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function Ut(e){return function(t){return Er(rl(nl(t).replace(us,"")),e,"")}}function un(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 r=Ot(e.prototype),o=e.apply(r,t);return ne(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,c=b(p),f=p,g=$t(a);f--;)c[f]=arguments[f];var S=p<3&&c[0]!==g&&c[p-1]!==g?[]:ut(c,g);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,c,S,i,i,r-p);var C=this&&this!==ue&&this instanceof a?o:e;return we(C,this,c)}return a}function aa(e){return function(t,r,o){var a=Z(t);if(!xe(t)){var p=L(r,3);t=pe(t),r=function(f){return p(a[f],f,a)}}var c=e(t,r,o);return c>-1?a[p?t[c]:c]:i}}function la(e){return tt(function(t){var r=t.length,o=r,a=ke.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Pe(h);if(a&&!c&&Xn(p)=="wrapper")var c=new ke([],!0)}for(o=c?o:r;++o<r;){p=t[o];var f=Xn(p),g=f=="wrapper"?ai(p):i;g&&ui(g[0])&&g[1]==(Be|J|de|at)&&!g[4].length&&g[9]==1?c=c[Xn(g[0])].apply(c,g[3]):c=p.length==1&&ui(p)?c[f]():c.thru(p)}return function(){var S=arguments,C=S[0];if(c&&S.length==1&&M(C))return c.plant(C).value();for(var w=0,A=r?t[w].apply(this,S):C;++w<r;)A=t[w].call(this,A);return A}})}function Kn(e,t,r,o,a,p,c,f,g,S){var C=t&Be,w=t&G,A=t&se,T=t&(J|Te),R=t&Ft,O=A?i:un(e);function D(){for(var U=arguments.length,W=b(U),Ae=U;Ae--;)W[Ae]=arguments[Ae];if(T)var be=$t(D),Fe=Ds(W,be);if(o&&(W=ta(W,o,a,T)),p&&(W=na(W,p,c,T)),U-=Fe,T&&U<S){var oe=ut(W,be);return ua(e,t,Kn,D.placeholder,r,W,oe,f,g,S-U)}var Ye=w?r:this,ot=A?Ye[e]:e;return U=W.length,f?W=Uu(W,f):R&&U>1&&W.reverse(),C&&g<U&&(W.length=g),this&&this!==ue&&this instanceof D&&(ot=O||un(ot)),ot.apply(Ye,W)}return D}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=Ie(r),o=Ie(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return tt(function(t){return t=te(t,_e(L())),z(function(r){var o=this;return e(t,function(a){return we(a,o,r)})})})}function qn(e,t){t=t===i?" ":Ie(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt($e(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&G,p=un(e);function c(){for(var f=-1,g=arguments.length,S=-1,C=o.length,w=b(C+g),A=this&&this!==ue&&this instanceof c?p:e;++S<C;)w[S]=o[S];for(;g--;)w[S++]=arguments[++f];return we(A,a?r:this,w)}return c}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&he(t,r,o)&&(r=o=i),t=it(t),r===i?(r=t,t=0):r=it(r),o=o===i?t<r?1:-1:it(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Oe(t),r=Oe(r)),e(t,r)}}function ua(e,t,r,o,a,p,c,f,g,S){var C=t&J,w=C?c:i,A=C?i:c,T=C?p:i,R=C?i:p;t|=C?de:Le,t&=~(C?Le:de),t&ge||(t&=~(G|se));var O=[e,t,a,T,w,R,A,f,g,S],D=r.apply(i,O);return ui(e)&&Ca(D,O),D.placeholder=o,wa(D,e,t)}function ri(e){var t=ae[e];return function(r,o){if(r=Oe(r),o=o==null?0:fe(H(o),292),o&&wo(r)){var a=(q(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(q(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var wu=Nt&&1/_n(new Nt([,-0]))[1]==bt?function(e){return new Nt(e)}:Ii;function ca(e){return function(t){var r=me(t);return r==ze?Dr(t):r==Ue?zs(t):Rs(t,e(t))}}function et(e,t,r,o,a,p,c,f){var g=t&se;if(!g&&typeof e!="function")throw new Pe(h);var S=o?o.length:0;if(S||(t&=~(de|Le),o=a=i),c=c===i?c:le(H(c),0),f=f===i?f:H(f),S-=a?a.length:0,t&Le){var C=o,w=a;o=a=i}var A=g?i:ai(e),T=[e,t,r,o,a,C,w,p,c,f];if(A&&Hu(T,A),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?g?0:e.length:le(T[9]-S,0),!f&&t&(J|Te)&&(t&=~(J|Te)),!t||t==G)var R=xu(e,t,r);else t==J||t==Te?R=Su(e,t,f):(t==de||t==(G|de))&&!a.length?R=Cu(e,t,r,o):R=Kn.apply(i,T);var O=A?Yo:Ca;return wa(O(R,T),e,t)}function da(e,t,r,o){return e===i||Ge(e,Mt[r])&&!X.call(o,r)?t:e}function fa(e,t,r,o,a,p){return ne(e)&&ne(t)&&(p.set(t,e),$n(e,t,i,fa,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var c=r&Q,f=e.length,g=t.length;if(f!=g&&!(c&&g>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,A=!0,T=r&V?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var R=e[w],O=t[w];if(o)var D=c?o(O,R,w,t,e,p):o(R,O,w,e,t,p);if(D!==i){if(D)continue;A=!1;break}if(T){if(!Ar(t,function(U,W){if(!Qt(T,W)&&(R===U||a(R,U,r,o,p)))return T.push(W)})){A=!1;break}}else if(!(R===O||a(R,O,r,o,p))){A=!1;break}}return p.delete(e),p.delete(t),A}function Iu(e,t,r,o,a,p,c){switch(r){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return Ge(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case ze:var f=Dr;case Ue:var g=o&Q;if(f||(f=_n),e.size!=t.size&&!g)return!1;var S=c.get(e);if(S)return S==t;o|=V,c.set(e,t);var C=ma(f(e),f(t),o,a,p,c);return c.delete(e),C;case bn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var c=r&Q,f=ii(e),g=f.length,S=ii(t),C=S.length;if(g!=C&&!c)return!1;for(var w=g;w--;){var A=f[w];if(!(c?A in t:X.call(t,A)))return!1}var T=p.get(e),R=p.get(t);if(T&&R)return T==t&&R==e;var O=!0;p.set(e,t),p.set(t,e);for(var D=c;++w<g;){A=f[w];var U=e[A],W=t[A];if(o)var Ae=c?o(W,U,A,t,e,p):o(U,W,A,e,t,p);if(!(Ae===i?U===W||a(U,W,r,o,p):Ae)){O=!1;break}D||(D=A=="constructor")}if(O&&!D){var be=e.constructor,Fe=t.constructor;be!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof be=="function"&&be instanceof be&&typeof Fe=="function"&&Fe instanceof Fe)&&(O=!1)}return p.delete(e),p.delete(t),O}function tt(e){return di(xa(e,i,Ta),e+"")}function ii(e){return Po(e,pe,si)}function oi(e){return Po(e,Se,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Ht[t],o=X.call(Ht,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function $t(e){var t=X.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||wi;return e=e===wi?No:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=pe(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,ba(a)]}return t}function It(e,t){var r=Ns(e,t);return Mo(r)?r:i}function Au(e){var t=X.call(e,xt),r=e[xt];try{e[xt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[xt]=r:delete e[xt]),a}var si=kr?function(e){return e==null?[]:(e=Z(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,me=ye;(Mr&&me(new Mr(new ArrayBuffer(1)))!=Lt||en&&me(new en)!=ze||Nr&&me(Nr.resolve())!=Li||Nt&&me(new Nt)!=Ue||tn&&me(new tn)!=Xt)&&(me=function(e){var t=ye(e),r=t==Xe?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return ze;case cp:return Li;case dp:return Ue;case fp:return Xt}return t});function Fu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],c=p.size;switch(p.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=fe(t,e+c);break;case"takeRight":e=le(e,t-c);break}}return{start:e,end:t}}function Tu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var c=Je(t[o]);if(!(p=e!=null&&r(e,c)))break;e=e[c]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&nt(c,a)&&(M(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&X.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case ze:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case Ue:return new o;case bn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Du(e){return M(e)||At(e)||!!(Co&&e&&e[Co])}function nt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function he(e,t,r){if(!ne(r))return!1;var o=typeof t;return(o=="number"?xe(r)&&nt(t,r.length):o=="string"&&t in r)?Ge(r[t],e):!1}function pi(e,t){if(M(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ee(e)?!0:Ll.test(e)||!Tl.test(e)||t!=null&&e in Z(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in $.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!vo&&vo in e}var Mu=En?rt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function va(e){return e===e&&!ne(e)}function ba(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in Z(r))}}function Nu(e){var t=nr(e,function(o){return r.size===E&&r.clear(),o}),r=t.cache;return t}function Hu(e,t){var r=e[1],o=t[1],a=r|o,p=a<(G|se|Be),c=o==Be&&r==J||o==Be&&r==at&&e[7].length<=t[8]||o==(Be|at)&&t[7].length<=t[8]&&r==J;if(!(p||c))return e;o&G&&(e[2]=t[2],a|=r&G?0:ge);var f=t[3];if(f){var g=e[3];e[3]=g?ta(g,f,t[4]):f,e[4]=g?ut(e[3],P):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?na(g,f,t[6]):f,e[6]=g?ut(e[5],P):t[6]),f=t[7],f&&(e[7]=f),o&Be&&(e[8]=e[8]==null?t[8]:fe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Ou(e){var t=[];if(e!=null)for(var r in Z(e))t.push(r);return t}function Uu(e){return Fn.call(e)}function xa(e,t,r){return t=le(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=le(o.length-t,0),c=v(p);++a<p;)c[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(c),we(e,this,f)}}function Sa(e,t){return t.length<2?e:_t(e,Ne(t,0,-1))}function zu(e,t){for(var r=e.length,o=fe(t.length,r),a=be(e);o--;){var p=t[o];e[o]=nt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=_a(Yo),dn=np||function(e,t){return ue.setTimeout(e,t)},di=_a(uu);function wa(e,t,r){var o=t+"";return di(e,Ru(o,$u(Tu(o),r)))}function _a(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),c=e[p];e[p]=e[r],e[r]=c}return e.length=t,e}var Ia=Nu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Ol,"$1"):o||r)}),t});function Je(e){if(typeof e=="string"||Ee(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function $u(e,t){return De(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof $)return e.clone();var t=new ke(e.__wrapped__,e.__chain__);return t.__actions__=be(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Wu(e,t,r){(r?he(e,t,r):t===i)?t=1:t=le(H(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,c=v(Pn(o/t));a<o;)c[p++]=Ne(e,a,a+=t);return c}function Gu(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(M(r)?be(r):[r],ce(t,1))}var Ku=U(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=U(function(e,t){var r=He(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),L(r,2)):[]}),qu=U(function(e,t){var r=He(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),Ne(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Ne(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Gn(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Gn(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&he(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=le(o+a,0)),wn(e,L(t,3),a)}function Fa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=H(r),a=r<0?le(o+a,0):fe(a,o-1)),wn(e,L(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,vt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:H(t),ce(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=le(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ne(e,0,-1):[]}var oc=U(function(e){var t=te(e,jr);return t.length&&t[0]===e[0]?Wr(t):[]}),ac=U(function(e){var t=He(e),r=te(e,jr);return t===He(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Wr(r,L(t,2)):[]}),lc=U(function(e){var t=He(e),r=te(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?Wr(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function He(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=H(r),a=a<0?le(o+a,0):fe(a,o-1)),t===t?$s(e,t,a):wn(e,po,a,!0)}function uc(e,t){return e&&e.length?zo(e,H(t)):i}var cc=U(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=tt(function(e,t){var r=e==null?0:e.length,o=Or(e,t);return Go(e,te(t,function(a){return nt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var c=e[o];t(c,o,e)&&(r.push(c),a.push(o))}return Go(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&he(e,t,r)?(t=0,r=o):(t=t==null?0:H(t),r=r===i?o:H(r)),Ne(e,t,r)):[]}function hc(e,t){return Wn(e,t)}function vc(e,t,r){return Xr(e,t,L(r,2))}function bc(e,t){var r=e==null?0:e.length;if(r){var o=Wn(e,t);if(o<r&&Ge(e[o],t))return o}return-1}function xc(e,t){return Wn(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=Wn(e,t,!0)-1;if(Ge(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function _c(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Ne(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:H(t),Ne(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Ne(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?Gn(e,L(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Gn(e,L(t,3)):[]}var Lc=U(function(e){return ft(ce(e,1,ie,!0))}),Bc=U(function(e){var t=He(e);return ie(t)&&(t=i),ft(ce(e,1,ie,!0),L(t,2))}),Rc=U(function(e){var t=He(e);return t=typeof t=="function"?t:i,ft(ce(e,1,ie,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(ie(r))return t=le(r.length,t),!0}),Br(t,function(r){return te(e,Fr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:te(r,function(o){return we(t,i,o)})}var Mc=U(function(e,t){return ie(e)?an(e,t):[]}),Nc=U(function(e){return Qr(st(e,ie))}),Hc=U(function(e){var t=He(e);return ie(t)&&(t=i),Qr(st(e,ie),L(t,2))}),Oc=U(function(e){var t=He(e);return t=typeof t=="function"?t:i,Qr(st(e,ie),i,t)}),Uc=U(mi);function zc(e,t){return Xo(e||[],t||[],on)}function $c(e,t){return Xo(e||[],t||[],pn)}var Wc=U(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=tt(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Or(p,e)};return t>1||this.__actions__.length||!(o instanceof $)||!nt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new ke(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new ke(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof Hn;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof $){var t=e;return this.__actions__.length&&(t=new $(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new ke(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){X.call(e,r)?++e[r]:je(e,r,1)});function ed(e,t,r){var o=M(e)?lo:Gp;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=M(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Fa);function id(e,t){return ce(er(e,t),1)}function od(e,t){return ce(er(e,t),vt)}function ad(e,t,r){return r=r===i?1:H(r),ce(er(e,t),r)}function Pa(e,t){var r=M(e)?De:dt;return r(e,L(t,3))}function ka(e,t){var r=M(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){X.call(e,r)?e[r].push(t):je(e,r,[t])});function sd(e,t,r,o){e=xe(e)?e:Gt(e),r=r&&!o?H(r):0;var a=e.length;return r<0&&(r=le(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=U(function(e,t,r){var o=-1,a=typeof t=="function",p=xe(e)?v(e.length):[];return dt(e,function(c){p[++o]=a?we(t,c,r):ln(c,t,r)}),p}),ud=Yn(function(e,t,r){je(e,r,t)});function er(e,t){var r=M(e)?te:Ho;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(M(t)||(t=t==null?[]:[t]),r=o?i:r,M(r)||(r=r==null?[]:[r]),$o(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=M(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=M(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=M(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=M(e)?Ao:su;return t(e)}function hd(e,t,r){(r?he(e,t,r):t===i)?t=1:t=H(t);var o=M(e)?Op:pu;return o(e,t)}function vd(e){var t=M(e)?Up:cu;return t(e)}function bd(e){if(e==null)return 0;if(xe(e))return or(e)?Pt(e):e.length;var t=me(e);return t==Ue||t==ze?e.size:Yr(e).length}function xd(e,t,r){var o=M(e)?Ar:du;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=U(function(e,t){if(e==null)return[];var r=t.length;return r>1&&he(e,t[0],t[1])?t=[]:r>2&&he(t[0],t[1],t[2])&&(t=[t[0]]),$o(e,ce(t,1),[])}),tr=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Pe(h);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,et(e,Be,i,i,i,i,t)}function Na(e,t){var r;if(typeof t!="function")throw new Pe(h);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=U(function(e,t,r){var o=G;if(r.length){var a=ut(r,$t(gi));o|=de}return et(e,o,t,r,a)}),Ha=U(function(e,t,r){var o=G|se;if(r.length){var a=ut(r,$t(Ha));o|=de}return et(t,o,e,r,a)});function Oa(e,t,r){t=r?i:t;var o=et(e,J,i,i,i,i,i,t);return o.placeholder=Oa.placeholder,o}function Ua(e,t,r){t=r?i:t;var o=et(e,Te,i,i,i,i,i,t);return o.placeholder=Ua.placeholder,o}function za(e,t,r){var o,a,p,c,f,g,S=0,C=!1,w=!1,A=!0;if(typeof e!="function")throw new Pe(h);t=Oe(t)||0,ne(r)&&(C=!!r.leading,w="maxWait"in r,p=w?le(Oe(r.maxWait)||0,t):p,A="trailing"in r?!!r.trailing:A);function T(oe){var Ye=o,ot=a;return o=a=i,S=oe,c=e.apply(ot,Ye),c}function R(oe){return S=oe,f=dn(z,t),C?T(oe):c}function O(oe){var Ye=oe-g,ot=oe-S,al=t-Ye;return w?fe(al,p-ot):al}function D(oe){var Ye=oe-g,ot=oe-S;return g===i||Ye>=t||Ye<0||w&&ot>=p}function z(){var oe=tr();if(D(oe))return W(oe);f=dn(z,O(oe))}function W(oe){return f=i,A&&o?T(oe):(o=a=i,c)}function Ae(){f!==i&&Zo(f),S=0,o=g=a=f=i}function ve(){return f===i?c:W(tr())}function Fe(){var oe=tr(),Ye=D(oe);if(o=arguments,a=this,g=oe,Ye){if(f===i)return R(g);if(w)return Zo(f),f=dn(z,t),T(g)}return f===i&&(f=dn(z,t)),c}return Fe.cancel=Ae,Fe.flush=ve,Fe}var wd=U(function(e,t){return Lo(e,1,t)}),_d=U(function(e,t,r){return Lo(e,Oe(t)||0,r)});function Id(e){return et(e,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Pe(h);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var c=e.apply(this,o);return r.cache=p.set(a,c)||p,c};return r.cache=new(nr.Cache||Qe),r}nr.Cache=Qe;function rr(e){if(typeof e!="function")throw new Pe(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Na(2,e)}var Ad=fu(function(e,t){t=t.length==1&&M(t[0])?te(t[0],_e(L())):te(ce(t,1),_e(L()));var r=t.length;return U(function(o){for(var a=-1,p=fe(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return we(e,this,o)})}),yi=U(function(e,t){var r=ut(t,$t(yi));return et(e,de,i,t,r)}),$a=U(function(e,t){var r=ut(t,$t($a));return et(e,Le,i,t,r)}),Fd=tt(function(e,t){return et(e,at,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Pe(h);return t=t===i?t:H(t),U(e,t)}function Ld(e,t){if(typeof e!="function")throw new Pe(h);return t=t==null?0:le(H(t),0),U(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),we(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Pe(h);return ne(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return M(e)?e:[e]}function kd(e){return Me(e,N)}function Md(e,t){return t=typeof t=="function"?t:i,Me(e,N,t)}function Nd(e){return Me(e,B|N)}function Hd(e,t){return t=typeof t=="function"?t:i,Me(e,B|N,t)}function Od(e,t){return t==null||To(e,t,pe(t))}function Ge(e,t){return e===t||e!==e&&t!==t}var Ud=Jn($r),zd=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return re(e)&&X.call(e,"callee")&&!So.call(e,"callee")},M=v.isArray,$d=to?_e(to):Xp;function xe(e){return e!=null&&ir(e.length)&&!rt(e)}function ie(e){return re(e)&&xe(e)}function Wd(e){return e===!0||e===!1||re(e)&&ye(e)==Yt}var yt=rp||Ai,Gd=no?_e(no):Zp;function Yd(e){return re(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(xe(e)&&(M(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Wt(e)||At(e)))return!e.length;var t=me(e);if(t==Ue||t==ze)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(X.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!re(e))return!1;var t=ye(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&wo(e)}function rt(e){if(!ne(e))return!1;var t=ye(e);return t==hn||t==Ti||t==yl||t==bl}function Wa(e){return typeof e=="number"&&e==H(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function ne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function re(e){return e!=null&&typeof e=="object"}var Ga=ro?_e(ro):jp;function Xd(e,t){return e===t||Gr(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,Gr(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new k(u);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||re(e)&&ye(e)==Vt}function fn(e){if(!re(e)||ye(e)!=Xe)return!1;var t=Bn(e);if(t===null)return!0;var r=X.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var vi=io?_e(io):eu;function nf(e){return Wa(e)&&e>=-lt&&e<=lt}var Ka=oo?_e(oo):tu;function or(e){return typeof e=="string"||!M(e)&&re(e)&&ye(e)==Jt}function Ee(e){return typeof e=="symbol"||re(e)&&ye(e)==vn}var Wt=ao?_e(ao):nu;function rf(e){return e===i}function of(e){return re(e)&&me(e)==Xt}function af(e){return re(e)&&ye(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(xe(e))return or(e)?$e(e):be(e);if(jt&&e[jt])return Os(e[jt]());var t=me(e),r=t==Ue?Dr:t==ze?_n:Gt;return r(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===vt||e===-vt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=it(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?wt(H(e),0,Ke):0}function Oe(e){if(typeof e=="number")return e;if(Ee(e))return mn;if(ne(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ne(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var r=$l.test(e);return r||Gl.test(e)?Cs(e.slice(2),r?2:8):zl.test(e)?mn:+e}function Ja(e){return qe(e,Se(e))}function pf(e){return e?wt(H(e),-lt,lt):e===0?e:0}function q(e){return e==null?"":Ie(e)}var uf=Ut(function(e,t){if(cn(t)||xe(t)){qe(t,pe(t),e);return}for(var r in t)X.call(t,r)&&on(e,r,t[r])}),Xa=Ut(function(e,t){qe(t,Se(t),e)}),ar=Ut(function(e,t,r,o){qe(t,Se(t),e,o)}),cf=Ut(function(e,t,r,o){qe(t,pe(t),e,o)}),df=tt(Or);function ff(e,t){var r=Ot(e);return t==null?r:Fo(r,t)}var mf=U(function(e,t){e=Z(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&he(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],c=Se(p),f=-1,g=c.length;++f<g;){var S=c[f],C=e[S];(C===i||Ge(C,Mt[S])&&!X.call(e,S))&&(e[S]=p[S])}return e}),gf=U(function(e){return e.push(i,fa),we(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ve)}function hf(e,t){return so(e,L(t,3),zr)}function vf(e,t){return e==null?e:Ur(e,L(t,3),Se)}function bf(e,t){return e==null?e:Do(e,L(t,3),Se)}function xf(e,t){return e&&Ve(e,L(t,3))}function Sf(e,t){return e&&zr(e,L(t,3))}function Cf(e){return e==null?[]:zn(e,pe(e))}function wf(e){return e==null?[]:zn(e,Se(e))}function bi(e,t,r){var o=e==null?i:_t(e,t);return o===i?r:o}function _f(e,t){return e!=null&&ya(e,t,Kp)}function xi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),e[t]=r},Ci(Ce)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),X.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=U(ln);function pe(e){return xe(e)?Eo(e):Yr(e)}function Se(e){return xe(e)?Eo(e,!0):ru(e)}function Ff(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,t(o,a,p),o)}),r}function Tf(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,a,t(o,a,p))}),r}var Lf=Ut(function(e,t,r){$n(e,t,r)}),Za=Ut(function(e,t,r,o){$n(e,t,r,o)}),Bf=tt(function(e,t){var r={};if(e==null)return r;var o=!1;t=te(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),qe(e,oi(e),r),o&&(r=Me(r,B|Y|N,_u));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=tt(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=te(oi(e),function(o){return[o]});return t=L(t),Wo(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[Je(t[o])];p===i&&(o=a,p=r),e=rt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(pe),el=ca(Se);function Nf(e,t,r){var o=M(e),a=o||yt(e)||Wt(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:ne(e)?r=rt(p)?Ot(Bn(e)):{}:r={}}return(a?De:Ve)(e,function(c,f,g){return t(r,c,f,g)}),r}function Hf(e,t){return e==null?!0:Zr(e,t)}function Of(e,t,r){return e==null?e:qo(e,t,ei(r))}function Uf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function Gt(e){return e==null?[]:Rr(e,pe(e))}function zf(e){return e==null?[]:Rr(e,Se(e))}function $f(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=Oe(r),r=r===r?r:0),t!==i&&(t=Oe(t),t=t===t?t:0),wt(Oe(e),t,r)}function Wf(e,t,r){return t=it(t),r===i?(r=t,t=0):r=it(r),e=Oe(e),qp(e,t,r)}function Gf(e,t,r){if(r&&typeof r!="boolean"&&he(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=it(e),t===i?(t=e,e=0):t=it(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=_o();return fe(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=zt(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(q(e).toLowerCase())}function nl(e){return e=q(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=q(e),t=Ie(t);var o=e.length;r=r===i?o:wt(H(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=q(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=q(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=zt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(q(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?he(e,t,r):t===i)?t=1:t=H(t),Jr(q(e),t)}function rm(){var e=arguments,t=q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&he(e,t,r)&&(t=r=i),r=r===i?Ke:r>>>0,r?(e=q(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=Ie(t),!t&&Dt(e))?gt($e(e),0,r):e.split(t,r)):[]}var am=zt(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=q(e),r=r==null?0:wt(H(r),0,e.length),t=Ie(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&he(e,t,r)&&(t=i),e=q(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=pe(a),c=Rr(a,p),f,g,S=0,C=t.interpolate||bn,w="__p += '",A=Pr((t.escape||bn).source+"|"+C.source+"|"+(C===Di?Ul:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),T="//# sourceURL="+(X.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(A,function(D,
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
10
|
+
`)}function Du(e){return M(e)||At(e)||!!(Co&&e&&e[Co])}function nt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function he(e,t,r){if(!ne(r))return!1;var o=typeof t;return(o=="number"?xe(r)&&nt(t,r.length):o=="string"&&t in r)?Ge(r[t],e):!1}function pi(e,t){if(M(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ee(e)?!0:Ll.test(e)||!Tl.test(e)||t!=null&&e in Z(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in $.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!bo&&bo in e}var Mu=En?rt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function ba(e){return e===e&&!ne(e)}function va(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in Z(r))}}function Nu(e){var t=nr(e,function(o){return r.size===E&&r.clear(),o}),r=t.cache;return t}function Hu(e,t){var r=e[1],o=t[1],a=r|o,p=a<(G|se|Be),c=o==Be&&r==J||o==Be&&r==at&&e[7].length<=t[8]||o==(Be|at)&&t[7].length<=t[8]&&r==J;if(!(p||c))return e;o&G&&(e[2]=t[2],a|=r&G?0:ge);var f=t[3];if(f){var g=e[3];e[3]=g?ta(g,f,t[4]):f,e[4]=g?ut(e[3],P):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?na(g,f,t[6]):f,e[6]=g?ut(e[5],P):t[6]),f=t[7],f&&(e[7]=f),o&Be&&(e[8]=e[8]==null?t[8]:fe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Ou(e){var t=[];if(e!=null)for(var r in Z(e))t.push(r);return t}function zu(e){return Fn.call(e)}function xa(e,t,r){return t=le(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=le(o.length-t,0),c=b(p);++a<p;)c[a]=o[t+a];a=-1;for(var f=b(t+1);++a<t;)f[a]=o[a];return f[t]=r(c),we(e,this,f)}}function Sa(e,t){return t.length<2?e:_t(e,Ne(t,0,-1))}function Uu(e,t){for(var r=e.length,o=fe(t.length,r),a=ve(e);o--;){var p=t[o];e[o]=nt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=_a(Yo),dn=np||function(e,t){return ue.setTimeout(e,t)},di=_a(uu);function wa(e,t,r){var o=t+"";return di(e,Ru(o,$u(Tu(o),r)))}function _a(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),c=e[p];e[p]=e[r],e[r]=c}return e.length=t,e}var Ia=Nu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Ol,"$1"):o||r)}),t});function Je(e){if(typeof e=="string"||Ee(e))return e;var t=e+"";return t=="0"&&1/e==-bt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function $u(e,t){return De(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof $)return e.clone();var t=new ke(e.__wrapped__,e.__chain__);return t.__actions__=ve(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Wu(e,t,r){(r?he(e,t,r):t===i)?t=1:t=le(H(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,c=b(Pn(o/t));a<o;)c[p++]=Ne(e,a,a+=t);return c}function Gu(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=b(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(M(r)?ve(r):[r],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var r=He(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),L(r,2)):[]}),qu=z(function(e,t){var r=He(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),Ne(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Ne(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Gn(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Gn(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&he(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=le(o+a,0)),wn(e,L(t,3),a)}function Fa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=H(r),a=r<0?le(o+a,0):fe(a,o-1)),wn(e,L(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,bt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:H(t),ce(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=le(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ne(e,0,-1):[]}var oc=z(function(e){var t=te(e,jr);return t.length&&t[0]===e[0]?Wr(t):[]}),ac=z(function(e){var t=He(e),r=te(e,jr);return t===He(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Wr(r,L(t,2)):[]}),lc=z(function(e){var t=He(e),r=te(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?Wr(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function He(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=H(r),a=a<0?le(o+a,0):fe(a,o-1)),t===t?$s(e,t,a):wn(e,po,a,!0)}function uc(e,t){return e&&e.length?Uo(e,H(t)):i}var cc=z(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=tt(function(e,t){var r=e==null?0:e.length,o=Or(e,t);return Go(e,te(t,function(a){return nt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var c=e[o];t(c,o,e)&&(r.push(c),a.push(o))}return Go(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&he(e,t,r)?(t=0,r=o):(t=t==null?0:H(t),r=r===i?o:H(r)),Ne(e,t,r)):[]}function hc(e,t){return Wn(e,t)}function bc(e,t,r){return Xr(e,t,L(r,2))}function vc(e,t){var r=e==null?0:e.length;if(r){var o=Wn(e,t);if(o<r&&Ge(e[o],t))return o}return-1}function xc(e,t){return Wn(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=Wn(e,t,!0)-1;if(Ge(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function _c(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Ne(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:H(t),Ne(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Ne(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?Gn(e,L(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Gn(e,L(t,3)):[]}var Lc=z(function(e){return ft(ce(e,1,ie,!0))}),Bc=z(function(e){var t=He(e);return ie(t)&&(t=i),ft(ce(e,1,ie,!0),L(t,2))}),Rc=z(function(e){var t=He(e);return t=typeof t=="function"?t:i,ft(ce(e,1,ie,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(ie(r))return t=le(r.length,t),!0}),Br(t,function(r){return te(e,Fr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:te(r,function(o){return we(t,i,o)})}var Mc=z(function(e,t){return ie(e)?an(e,t):[]}),Nc=z(function(e){return Qr(st(e,ie))}),Hc=z(function(e){var t=He(e);return ie(t)&&(t=i),Qr(st(e,ie),L(t,2))}),Oc=z(function(e){var t=He(e);return t=typeof t=="function"?t:i,Qr(st(e,ie),i,t)}),zc=z(mi);function Uc(e,t){return Xo(e||[],t||[],on)}function $c(e,t){return Xo(e||[],t||[],pn)}var Wc=z(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=tt(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Or(p,e)};return t>1||this.__actions__.length||!(o instanceof $)||!nt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new ke(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new ke(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof Hn;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof $){var t=e;return this.__actions__.length&&(t=new $(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new ke(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){X.call(e,r)?++e[r]:je(e,r,1)});function ed(e,t,r){var o=M(e)?lo:Gp;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=M(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Fa);function id(e,t){return ce(er(e,t),1)}function od(e,t){return ce(er(e,t),bt)}function ad(e,t,r){return r=r===i?1:H(r),ce(er(e,t),r)}function Pa(e,t){var r=M(e)?De:dt;return r(e,L(t,3))}function ka(e,t){var r=M(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){X.call(e,r)?e[r].push(t):je(e,r,[t])});function sd(e,t,r,o){e=xe(e)?e:Gt(e),r=r&&!o?H(r):0;var a=e.length;return r<0&&(r=le(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=z(function(e,t,r){var o=-1,a=typeof t=="function",p=xe(e)?b(e.length):[];return dt(e,function(c){p[++o]=a?we(t,c,r):ln(c,t,r)}),p}),ud=Yn(function(e,t,r){je(e,r,t)});function er(e,t){var r=M(e)?te:Ho;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(M(t)||(t=t==null?[]:[t]),r=o?i:r,M(r)||(r=r==null?[]:[r]),$o(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=M(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=M(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=M(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=M(e)?Ao:su;return t(e)}function hd(e,t,r){(r?he(e,t,r):t===i)?t=1:t=H(t);var o=M(e)?Op:pu;return o(e,t)}function bd(e){var t=M(e)?zp:cu;return t(e)}function vd(e){if(e==null)return 0;if(xe(e))return or(e)?Pt(e):e.length;var t=me(e);return t==ze||t==Ue?e.size:Yr(e).length}function xd(e,t,r){var o=M(e)?Ar:du;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=z(function(e,t){if(e==null)return[];var r=t.length;return r>1&&he(e,t[0],t[1])?t=[]:r>2&&he(t[0],t[1],t[2])&&(t=[t[0]]),$o(e,ce(t,1),[])}),tr=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Pe(h);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,et(e,Be,i,i,i,i,t)}function Na(e,t){var r;if(typeof t!="function")throw new Pe(h);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=z(function(e,t,r){var o=G;if(r.length){var a=ut(r,$t(gi));o|=de}return et(e,o,t,r,a)}),Ha=z(function(e,t,r){var o=G|se;if(r.length){var a=ut(r,$t(Ha));o|=de}return et(t,o,e,r,a)});function Oa(e,t,r){t=r?i:t;var o=et(e,J,i,i,i,i,i,t);return o.placeholder=Oa.placeholder,o}function za(e,t,r){t=r?i:t;var o=et(e,Te,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Ua(e,t,r){var o,a,p,c,f,g,S=0,C=!1,w=!1,A=!0;if(typeof e!="function")throw new Pe(h);t=Oe(t)||0,ne(r)&&(C=!!r.leading,w="maxWait"in r,p=w?le(Oe(r.maxWait)||0,t):p,A="trailing"in r?!!r.trailing:A);function T(oe){var Ye=o,ot=a;return o=a=i,S=oe,c=e.apply(ot,Ye),c}function R(oe){return S=oe,f=dn(U,t),C?T(oe):c}function O(oe){var Ye=oe-g,ot=oe-S,al=t-Ye;return w?fe(al,p-ot):al}function D(oe){var Ye=oe-g,ot=oe-S;return g===i||Ye>=t||Ye<0||w&&ot>=p}function U(){var oe=tr();if(D(oe))return W(oe);f=dn(U,O(oe))}function W(oe){return f=i,A&&o?T(oe):(o=a=i,c)}function Ae(){f!==i&&Zo(f),S=0,o=g=a=f=i}function be(){return f===i?c:W(tr())}function Fe(){var oe=tr(),Ye=D(oe);if(o=arguments,a=this,g=oe,Ye){if(f===i)return R(g);if(w)return Zo(f),f=dn(U,t),T(g)}return f===i&&(f=dn(U,t)),c}return Fe.cancel=Ae,Fe.flush=be,Fe}var wd=z(function(e,t){return Lo(e,1,t)}),_d=z(function(e,t,r){return Lo(e,Oe(t)||0,r)});function Id(e){return et(e,Ft)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Pe(h);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var c=e.apply(this,o);return r.cache=p.set(a,c)||p,c};return r.cache=new(nr.Cache||Qe),r}nr.Cache=Qe;function rr(e){if(typeof e!="function")throw new Pe(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Na(2,e)}var Ad=fu(function(e,t){t=t.length==1&&M(t[0])?te(t[0],_e(L())):te(ce(t,1),_e(L()));var r=t.length;return z(function(o){for(var a=-1,p=fe(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return we(e,this,o)})}),yi=z(function(e,t){var r=ut(t,$t(yi));return et(e,de,i,t,r)}),$a=z(function(e,t){var r=ut(t,$t($a));return et(e,Le,i,t,r)}),Fd=tt(function(e,t){return et(e,at,i,i,i,t)});function Td(e,t){if(typeof e!="function")throw new Pe(h);return t=t===i?t:H(t),z(e,t)}function Ld(e,t){if(typeof e!="function")throw new Pe(h);return t=t==null?0:le(H(t),0),z(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),we(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Pe(h);return ne(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),Ua(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return M(e)?e:[e]}function kd(e){return Me(e,N)}function Md(e,t){return t=typeof t=="function"?t:i,Me(e,N,t)}function Nd(e){return Me(e,B|N)}function Hd(e,t){return t=typeof t=="function"?t:i,Me(e,B|N,t)}function Od(e,t){return t==null||To(e,t,pe(t))}function Ge(e,t){return e===t||e!==e&&t!==t}var zd=Jn($r),Ud=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return re(e)&&X.call(e,"callee")&&!So.call(e,"callee")},M=b.isArray,$d=to?_e(to):Xp;function xe(e){return e!=null&&ir(e.length)&&!rt(e)}function ie(e){return re(e)&&xe(e)}function Wd(e){return e===!0||e===!1||re(e)&&ye(e)==Yt}var yt=rp||Ai,Gd=no?_e(no):Zp;function Yd(e){return re(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(xe(e)&&(M(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Wt(e)||At(e)))return!e.length;var t=me(e);if(t==ze||t==Ue)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(X.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!re(e))return!1;var t=ye(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&wo(e)}function rt(e){if(!ne(e))return!1;var t=ye(e);return t==hn||t==Ti||t==yl||t==vl}function Wa(e){return typeof e=="number"&&e==H(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function ne(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function re(e){return e!=null&&typeof e=="object"}var Ga=ro?_e(ro):jp;function Xd(e,t){return e===t||Gr(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,Gr(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new k(u);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||re(e)&&ye(e)==Vt}function fn(e){if(!re(e)||ye(e)!=Xe)return!1;var t=Bn(e);if(t===null)return!0;var r=X.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var bi=io?_e(io):eu;function nf(e){return Wa(e)&&e>=-lt&&e<=lt}var Ka=oo?_e(oo):tu;function or(e){return typeof e=="string"||!M(e)&&re(e)&&ye(e)==Jt}function Ee(e){return typeof e=="symbol"||re(e)&&ye(e)==bn}var Wt=ao?_e(ao):nu;function rf(e){return e===i}function of(e){return re(e)&&me(e)==Xt}function af(e){return re(e)&&ye(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(xe(e))return or(e)?$e(e):ve(e);if(jt&&e[jt])return Os(e[jt]());var t=me(e),r=t==ze?Dr:t==Ue?_n:Gt;return r(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===bt||e===-bt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=it(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?wt(H(e),0,Ke):0}function Oe(e){if(typeof e=="number")return e;if(Ee(e))return mn;if(ne(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ne(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var r=$l.test(e);return r||Gl.test(e)?Cs(e.slice(2),r?2:8):Ul.test(e)?mn:+e}function Ja(e){return qe(e,Se(e))}function pf(e){return e?wt(H(e),-lt,lt):e===0?e:0}function q(e){return e==null?"":Ie(e)}var uf=zt(function(e,t){if(cn(t)||xe(t)){qe(t,pe(t),e);return}for(var r in t)X.call(t,r)&&on(e,r,t[r])}),Xa=zt(function(e,t){qe(t,Se(t),e)}),ar=zt(function(e,t,r,o){qe(t,Se(t),e,o)}),cf=zt(function(e,t,r,o){qe(t,pe(t),e,o)}),df=tt(Or);function ff(e,t){var r=Ot(e);return t==null?r:Fo(r,t)}var mf=z(function(e,t){e=Z(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&he(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],c=Se(p),f=-1,g=c.length;++f<g;){var S=c[f],C=e[S];(C===i||Ge(C,Mt[S])&&!X.call(e,S))&&(e[S]=p[S])}return e}),gf=z(function(e){return e.push(i,fa),we(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ve)}function hf(e,t){return so(e,L(t,3),Ur)}function bf(e,t){return e==null?e:zr(e,L(t,3),Se)}function vf(e,t){return e==null?e:Do(e,L(t,3),Se)}function xf(e,t){return e&&Ve(e,L(t,3))}function Sf(e,t){return e&&Ur(e,L(t,3))}function Cf(e){return e==null?[]:Un(e,pe(e))}function wf(e){return e==null?[]:Un(e,Se(e))}function vi(e,t,r){var o=e==null?i:_t(e,t);return o===i?r:o}function _f(e,t){return e!=null&&ya(e,t,Kp)}function xi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),e[t]=r},Ci(Ce)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),X.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=z(ln);function pe(e){return xe(e)?Eo(e):Yr(e)}function Se(e){return xe(e)?Eo(e,!0):ru(e)}function Ff(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,t(o,a,p),o)}),r}function Tf(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,a,t(o,a,p))}),r}var Lf=zt(function(e,t,r){$n(e,t,r)}),Za=zt(function(e,t,r,o){$n(e,t,r,o)}),Bf=tt(function(e,t){var r={};if(e==null)return r;var o=!1;t=te(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),qe(e,oi(e),r),o&&(r=Me(r,B|Y|N,_u));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=tt(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=te(oi(e),function(o){return[o]});return t=L(t),Wo(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[Je(t[o])];p===i&&(o=a,p=r),e=rt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(pe),el=ca(Se);function Nf(e,t,r){var o=M(e),a=o||yt(e)||Wt(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:ne(e)?r=rt(p)?Ot(Bn(e)):{}:r={}}return(a?De:Ve)(e,function(c,f,g){return t(r,c,f,g)}),r}function Hf(e,t){return e==null?!0:Zr(e,t)}function Of(e,t,r){return e==null?e:qo(e,t,ei(r))}function zf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function Gt(e){return e==null?[]:Rr(e,pe(e))}function Uf(e){return e==null?[]:Rr(e,Se(e))}function $f(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=Oe(r),r=r===r?r:0),t!==i&&(t=Oe(t),t=t===t?t:0),wt(Oe(e),t,r)}function Wf(e,t,r){return t=it(t),r===i?(r=t,t=0):r=it(r),e=Oe(e),qp(e,t,r)}function Gf(e,t,r){if(r&&typeof r!="boolean"&&he(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=it(e),t===i?(t=e,e=0):t=it(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=_o();return fe(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=Ut(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(q(e).toLowerCase())}function nl(e){return e=q(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=q(e),t=Ie(t);var o=e.length;r=r===i?o:wt(H(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=q(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=q(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=Ut(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=Ut(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=q(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(q(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?he(e,t,r):t===i)?t=1:t=H(t),Jr(q(e),t)}function rm(){var e=arguments,t=q(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=Ut(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&he(e,t,r)&&(t=r=i),r=r===i?Ke:r>>>0,r?(e=q(e),e&&(typeof t=="string"||t!=null&&!bi(t))&&(t=Ie(t),!t&&Dt(e))?gt($e(e),0,r):e.split(t,r)):[]}var am=Ut(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=q(e),r=r==null?0:wt(H(r),0,e.length),t=Ie(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&he(e,t,r)&&(t=i),e=q(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=pe(a),c=Rr(a,p),f,g,S=0,C=t.interpolate||vn,w="__p += '",A=Pr((t.escape||vn).source+"|"+C.source+"|"+(C===Di?zl:vn).source+"|"+(t.evaluate||vn).source+"|$","g"),T="//# sourceURL="+(X.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(A,function(D,U,W,Ae,be,Fe){return W||(W=Ae),w+=e.slice(S,Fe).replace(Vl,Ms),U&&(f=!0,w+=`' +
|
|
12
|
+
__e(`+U+`) +
|
|
13
|
+
'`),be&&(g=!0,w+=`';
|
|
14
|
+
`+be+`;
|
|
15
15
|
__p += '`),W&&(w+=`' +
|
|
16
16
|
((__t = (`+W+`)) == null ? '' : __t) +
|
|
17
17
|
'`),S=Fe+D.length,D}),w+=`';
|
|
18
18
|
`;var R=X.call(t,"variable")&&t.variable;if(!R)w=`with (obj) {
|
|
19
19
|
`+w+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(Hl.test(R))throw new k(
|
|
21
|
+
`;else if(Hl.test(R))throw new k(v);w=(g?w.replace(Cl,""):w).replace(wl,"$1").replace(_l,"$1;"),w="function("+(R||"obj")+`) {
|
|
22
22
|
`+(R?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+w+`return __p
|
|
27
|
-
}`;var O=il(function(){return K(p,T+"return "+w).apply(i,c)});if(O.source=w,hi(O))throw O;return O}function pm(e){return q(e).toLowerCase()}function um(e){return q(e).toUpperCase()}function cm(e,t,r){if(e=q(e),e&&(r||t===i))return fo(e);if(!e||!(t=Ie(t)))return e;var o=$e(e),a=$e(t),p=mo(o,a),c=go(o,a)+1;return gt(o,p,c).join("")}function dm(e,t,r){if(e=q(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=Ie(t)))return e;var o=$e(e),a=go(o,$e(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=q(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=Ie(t)))return e;var o=$e(e),a=mo(o,$e(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(ne(t)){var a="separator"in t?t.separator:a;r="length"in t?H(t.length):r,o="omission"in t?Ie(t.omission):o}e=q(e);var p=e.length;if(Dt(e)){var c=$e(e);p=c.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var g=c?gt(c,0,f).join(""):e.slice(0,f);if(a===i)return g+o;if(c&&(f+=g.length-f),vi(a)){if(e.slice(f).search(a)){var S,C=g;for(a.global||(a=Pr(a.source,q(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;g=g.slice(0,w===i?f:w)}}else if(e.indexOf(Ie(a),f)!=f){var A=g.lastIndexOf(a);A>-1&&(g=g.slice(0,A))}return g+o}function gm(e){return e=q(e),e&&Il.test(e)?e.replace(Bi,Ws):e}var ym=zt(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=q(e),t=r?i:t,t===i?Hs(e)?Ks(e):Ts(e):e.match(t)||[]}var il=U(function(e,t){try{return we(e,i,t)}catch(r){return hi(r)?r:new k(r)}}),hm=tt(function(e,t){return De(t,function(r){r=Je(r),je(e,r,gi(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=L();return e=t?te(e,function(o){if(typeof o[1]!="function")throw new Pe(h);return[r(o[0]),o[1]]}):[],U(function(o){for(var a=-1;++a<t;){var p=e[a];if(we(p[0],this,o))return we(p[1],this,o)}})}function bm(e){return Wp(Me(e,B))}function Ci(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function Ce(e){return e}function wi(e){return No(typeof e=="function"?e:Me(e,B))}function wm(e){return Oo(Me(e,B))}function _m(e,t){return Uo(e,Me(t,B))}var Im=U(function(e,t){return function(r){return ln(r,e,t)}}),Em=U(function(e,t){return function(r){return ln(e,r,t)}});function _i(e,t,r){var o=pe(t),a=zn(t,o);r==null&&!(ne(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,pe(t)));var p=!(ne(r)&&"chain"in r)||!!r.chain,c=rt(e);return De(a,function(f){var g=t[f];e[f]=g,c&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=be(this.__actions__);return w.push({func:g,args:arguments,thisArg:e}),C.__chain__=S,C}return g.apply(e,pt([this.value()],arguments))})}),e}function Am(){return ue._===this&&(ue._=Qs),this}function Ii(){}function Fm(e){return e=H(e),U(function(t){return zo(t,e)})}var Tm=ni(te),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Fr(Je(e)):au(e)}function Rm(e){return function(t){return e==null?i:_t(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Nm(){return!0}function Hm(e,t){if(e=H(e),e<1||e>lt)return[];var r=Ke,o=fe(e,Ke);t=L(t),e-=Ke;for(var a=Br(o,t);++r<e;)t(r);return a}function Om(e){return M(e)?te(e,Je):Ee(e)?[e]:be(Ia(q(e)))}function Um(e){var t=++Xs;return q(e)+t}var zm=Vn(function(e,t){return e+t},0),$m=ri("ceil"),Wm=Vn(function(e,t){return e/t},1),Gm=ri("floor");function Ym(e){return e&&e.length?Un(e,Ce,$r):i}function Km(e,t){return e&&e.length?Un(e,L(t,2),$r):i}function Vm(e){return uo(e,Ce)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?Un(e,Ce,Kr):i}function Xm(e,t){return e&&e.length?Un(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,Ce):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Na,l.bind=gi,l.bindAll=hm,l.bindKey=Ha,l.castArray=Pd,l.chain=Da,l.chunk=Wu,l.compact=Gu,l.concat=Yu,l.cond=vm,l.conforms=bm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Oa,l.curryRight=Ua,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=_d,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=wi,l.keyBy=ud,l.keys=pe,l.keysIn=Se,l.map=er,l.mapKeys=Ff,l.mapValues=Tf,l.matches=wm,l.matchesProperty=_m,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=_i,l.negate=rr,l.nthArg=Fm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Tm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=$a,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Fd,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=vd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=wc,l.sortedUniqBy=_c,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=Gc,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Om,l.toPlainObject=Ja,l.transform=Nf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Hf,l.unzip=mi,l.unzipWith=Ra,l.update=Of,l.updateWith=Uf,l.values=Gt,l.valuesIn=zf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Nc,l.xorBy=Hc,l.xorWith=Oc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=$c,l.zipWith=Wc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,_i(l,l),l.add=zm,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=$m,l.clamp=$f,l.clone=kd,l.cloneDeep=Nd,l.cloneDeepWith=Hd,l.cloneWith=Md,l.conformsTo=Od,l.deburr=nl,l.defaultTo=xm,l.divide=Wm,l.endsWith=Kf,l.eq=Ge,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Fa,l.findLastKey=hf,l.floor=Gm,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=Sf,l.get=bi,l.gt=Ud,l.gte=zd,l.has=_f,l.hasIn=xi,l.head=La,l.identity=Ce,l.includes=sd,l.indexOf=rc,l.inRange=Wf,l.invoke=Af,l.isArguments=At,l.isArray=M,l.isArrayBuffer=$d,l.isArrayLike=xe,l.isArrayLikeObject=ie,l.isBoolean=Wd,l.isBuffer=yt,l.isDate=Gd,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=rt,l.isInteger=Wa,l.isLength=ir,l.isMap=Ga,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=ne,l.isObjectLike=re,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=Ee,l.isTypedArray=Wt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=He,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Nm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=Gf,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=hc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Hm,l.toFinite=it,l.toInteger=H,l.toLength=qa,l.toLower=pm,l.toNumber=Oe,l.toSafeInteger=pf,l.toString=q,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Um,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,_i(l,function(){var e={};return Ve(l,function(t,r){X.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){$.prototype[e]=function(r){r=r===i?1:le(H(r),0);var o=this.__filtered__&&!t?new $(this):this.clone();return o.__filtered__?o.__takeCount__=fe(r,o.__takeCount__):o.__views__.push({size:fe(r,Ke),type:e+(o.__dir__<0?"Right":"")}),o},$.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Fi||r==cl;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),De(["head","last"],function(e,t){var r="take"+(t?"Right":"");$.prototype[e]=function(){return this[r](1).value()[0]}}),De(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[r](1)}}),$.prototype.compact=function(){return this.filter(Ce)},$.prototype.find=function(e){return this.filter(e).head()},$.prototype.findLast=function(e){return this.reverse().find(e)},$.prototype.invokeMap=U(function(e,t){return typeof e=="function"?new $(this):this.map(function(r){return ln(r,e,t)})}),$.prototype.reject=function(e){return this.filter(rr(L(e)))},$.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new $(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ke)},Ve($.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var c=this.__wrapped__,f=o?[1]:arguments,g=c instanceof $,S=f[0],C=g||M(c),w=function(z){var W=a.apply(l,pt([z],f));return o&&A?W[0]:W};C&&r&&typeof S=="function"&&S.length!=1&&(g=C=!1);var A=this.__chain__,T=!!this.__actions__.length,R=p&&!A,O=g&&!T;if(!p&&C){c=O?c:new $(this);var D=e.apply(c,f);return D.__actions__.push({func:jn,args:[w],thisArg:i}),new ke(D,A)}return R&&O?e.apply(this,f):(D=this.thru(w),R?o?D.value()[0]:D.value():D)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(M(p)?p:[],a)}return this[r](function(c){return t.apply(M(c)?c:[],a)})}}),Ve($.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";X.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:r})}}),Ht[Kn(i,se).name]=[{name:"wrapper",func:i}],$.prototype.clone=mp,$.prototype.reverse=gp,$.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();bt?((bt.exports=kt)._=kt,wr._=kt):ue._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("treeStructure","Flat Tree Structure",["YES","NO"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",options:{widget:"Array"},config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),y=[];return d.map((u,h)=>{if(h===0){y.push(u);return}y.push(`${y[h-1]}.${u}`)}),y.map(u=>{const h=_.get(n,u);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var u,h;(u=n.searchParams)==null||u.get("id");const d=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const b=await i(n,s,y);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,s){var I,E;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const P={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(I=sectionLabels[n])==null?void 0:I.map(Y=>P[Y]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=B||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const y=(E=s.searchParams)==null?void 0:E.get("path"),u=y.lastIndexOf("."),h=y.slice(0,u),b=_.get(d,h);(b==null?void 0:b.type)==="Table"&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},i.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:8,lg:3}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const u=this.getSchema();n.setSchema(u),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var u;const y=(u=n.searchParams)==null?void 0:u.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var E,P,B;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const u=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(E=n.searchParams)==null?void 0:E.get("path"),b=(P=n.searchParams)==null?void 0:P.get("id");let I=[{label:(B=u.name)!=null?B:"NewPage",path:`/PageMaster${b?`?id=${b}`:""}`}];if(h){const Y=h.split("."),N=[];Y.map((Q,V)=>{if(V===0){N.push(Q);return}N.push(`${N[V-1]}.${Q}`)}),N.map(Q=>{const V=_.get(u,Q);I.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${Q}${b?`&id=${b}`:""}`})})}return y.properties.pageName.path=I,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var y,u,h,b;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((u=n==null?void 0:n.newData)==null?void 0:u.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((b=n==null?void 0:n.newData)==null?void 0:b.type,n)},editComponents:function(){var b,I,E;const y=s.path.split(".")[1],u=(b=n.searchParams)==null?void 0:b.get("path"),h=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,u),u){const B=`${(E=n.searchParams)==null?void 0:E.get("path")}.elements[${y}]`;n.searchParams.set("path",B),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var E;const u=(E=n.searchParams)==null?void 0:E.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,u),I=u?_.get(b,u):b;n.setFormdata(I),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var I;const u=(I=n.searchParams)==null?void 0:I.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,u);n.setFormdata(_.get(b,u)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const y=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const u=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",u),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,E;const y=s.path.split(".")[1],u=(I=n.searchParams)==null?void 0:I.get("path"),h=(E=n.searchParams)==null?void 0:E.get("id");saveFormdataInSessionStorage(n.ctx.core.data,u);const b=`${u}.events[${y}]`;n.navigate(`/ComponentEvents?path=${b}&id=${h}`)},eventAddHandler:function(){var b,I;const y=(b=n.searchParams)==null?void 0:b.get("path"),u=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const h=`${y}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${u}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpEventSection")},copyPasteElement:function(y,u=this.setPage.bind(this)){var I;const[h,b]=(I=s.path.split(".").pop())==null?void 0:I.split("_");h==="Copy"?this.CopyElement(y,b):this.PasteElement(u,b)},CopyElement:function(y=n,u){var Y;const h=lodash.exports.cloneDeep(y.schema),b=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],E=(Y=n.searchParams)==null?void 0:Y.get("path"),P=this.elementPathHandler(E,I,u),B=getFormdataFromSessionStorage(P);this.ElementPathSetter(b,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setSchema(h),n.setUiSchema(b)},PasteElement:function(y,u){var Y;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(Y=n.searchParams)==null?void 0:Y.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const b=getFormdataFromSessionStorage(h),I=u==="Component"?b.elements.length:b.events.length,E=this.elementPathHandler(h,I,u),P=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};P.Handler&&u==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):P.name&&u==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(P,E),y())},RemoveItemButton:function(y=n){const u=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);u.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(u),n.setUiSchema(h)},elementPathHandler:function(y,u,h){return h==="Component"?y?`${y}.elements[${u}]`:`elements[${u}]`:y?`${y}.events[${u}]`:`events[${u}]`},ElementPathSetter:function(y,u){u||JSON.parse(sessionStorage.getItem("copiedConfig"))}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:y}=n;return{setPage:async function(){const u=await this.getFormdata();s.setFormdata(u);const h=await this.getUiSchema(),b=await this.getSchema();s.setSchema(b),s.setUiSchema(h)},getFormdata:async function(){var I;const u=(I=s.searchParams)==null?void 0:I.get("id"),h=await n.pageConfigProvider(u),b=getFormdataFromSessionStorage();return b||(saveFormdataInSessionStorage(h),h)},getUiSchema:function(){const u=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,y).ElementPathSetter(u),u},getSchema:()=>{const u=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1),u},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var b;const u=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const h=saveFormdataInSessionStorage(s.ctx.core.data);u?s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${u}`):s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,y,d),Edit_Components:Component(s,i,d,y).editComponents,Delete_Components:async function(){await Component(s,i,d,y).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var b;const u=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const h=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${h}&id=${u}`)},editEvent:function(){var I;const u=i.path.split(".")[1],h=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const b=`events[${u}]`;s.navigate(`/ComponentEvents?path=${b}&id=${h}`)},deleteEvent:function(){const u=sessionStorage.getItem("rowId");s.formData.events.splice(u,1);const h=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(h),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,y).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,y).RemoveItemButton(s)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"10px 0px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",options:{widget:"Array"},config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",options:{widget:"Array"},config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",options:{widget:"Array"},config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,s,i,d,y)=>({setPage:async function(){const u=await this.getFormData();n.setFormdata(u);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(u.Handler,n)},refreshPage:(u,h)=>{var N,Q,V;const b=_.cloneDeep(EventUiSchema(h.theme.myTheme)),I=_.cloneDeep(EventSchema);u&&(u==="custom"?(b.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),b.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},b.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),I.required=["eventType","Handler","eventCode"]):u==="api"?(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=APISection,I.required=["eventType","Handler","method","path"]):u==="inBuiltFunction"?(b.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),b.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},b.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),I.required=["eventType","Handler","inBuiltFunctionType"]):u==="refresh"&&(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=refreshSectionUiSchema,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),y&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,s,i,d).ElementPathSetter(b),I.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),P=(N=h.searchParams)==null?void 0:N.get("path"),B=(Q=h.searchParams)==null?void 0:Q.get("id");let Y=[{label:(V=E.name)!=null?V:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(P){const G=P.split("."),se=[];G.map((ge,J)=>{if(J===0){se.push(ge);return}se.push(`${se[J-1]}.${ge}`)}),se.map(ge=>{const J=_.get(E,ge);Y.push({label:(J==null?void 0:J.name)||(J==null?void 0:J.eventType)||"NewComponent",path:J!=null&&J.eventType?`/ComponentEvents?path=${ge}${B?`&id=${B}`:""}`:`/Component?path=${ge}${B?`&id=${B}`:""}`})})}console.log("pathArray>>",Y),I.properties.pageName.path=Y,h.setSchema(I),h.setUiSchema(b)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var P,B,Y;const u=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),b=(P=n.searchParams)==null?void 0:P.get("path"),I=(B=n.searchParams)==null?void 0:B.get("id");let E=[{label:(Y=h.name)!=null?Y:"NewPage",path:`/PageMaster${I?`?id=${I}`:""}`}];if(b){const N=b.split("."),Q=[];N.map((V,G)=>{if(G===0){Q.push(V);return}Q.push(`${Q[G-1]}.${V}`)}),Q.map(V=>{const G=_.get(h,V);E.push({label:(G==null?void 0:G.name)||(G==null?void 0:G.eventType)||"NewComponent",path:G!=null&&G.eventType?`/ComponentEvents?path=${V}${I?`&id=${I}`:""}`:`/Component?path=${V}${I?`&id=${I}`:""}`})})}return console.log("pathArray>>",E),u.properties.pageName.path=_.cloneDeep(E),u},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var u,h,b;((u=n==null?void 0:n.formData)==null?void 0:u.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((b=n==null?void 0:n.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var b,I,E;const u=(b=n.searchParams)==null?void 0:b.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,u);const h=`${u}.events[${(E=(I=n.formData)==null?void 0:I.events)==null?void 0:E.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const u=s.path.split(".")[1],h=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const b=`${h}.events[${u}]`;n.searchParams.set("path",b),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const u=s.path.split(".")[1];sessionStorage.setItem("rowId",u),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let y;y=new File([d],s[s.length-1]);const u=URL.createObjectURL(y),h=document.createElement("a");h.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:u,h.download=`${n.name}`,document.body.appendChild(h),h.click(),URL.revokeObjectURL(u),document.body.removeChild(h)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((u,h)=>{i=i+`${h===0?"?":"&"}${u}=${n==null?void 0:n.params[u]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var y,u,h;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(b=>{if(!b)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(b=>{var E;i=b,s=(E=n.config)==null?void 0:E.events.filter(P=>P.eventType==="Success")}).catch(b=>{var P,B;const I=(B=(P=n.config)==null?void 0:P.events)==null?void 0:B.filter(Y=>Y.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((b,I)=>b.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(y=n.config)==null?void 0:y.events.filter(E=>E.eventType==="Success")}catch{const b=(h=(u=n.config)==null?void 0:u.events)==null?void 0:h.filter(E=>E.eventType==="Fail");s=(b==null?void 0:b.length)>0?b:[]}if((s==null?void 0:s.length)>0)for(const b of s)executeEvents({...n,config:b,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(y=>y.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(y=>executeEvents({...n,config:y,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var y;const s={...(y=n.userValue)==null?void 0:y.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(u=>u)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,s,i,d,y,u){var h,b,I;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(E=>{var P;return{...E,properties:{...E.properties,[s]:{...(P=E.properties)==null?void 0:P[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(E=>{var P;return{...E,properties:{...E.properties,[s]:{...(P=E.properties)==null?void 0:P[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(E=>({...E,...n==null?void 0:n.data}))):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(u[s]=(h=n.data)==null?void 0:h.data,u[`${s}_RowCount`]=(I=(b=n.data)==null?void 0:b.meta)==null?void 0:I.totalRowCount,d.setFormdata(E=>({...E,...u}))):n&&(u[s]=n.data,d.setFormdata(E=>({...E,...u})))}const buildBodyFormat=(n,s,i,d)=>{let y={...i==null?void 0:i.payload};return n.map(u=>{var h,b,I,E,P;if(typeof(u==null?void 0:u.value)!="string")y[u.key]=u.value;else if((h=u==null?void 0:u.value)!=null&&h.startsWith("$userValue")){const B=u.value.substring(11);y[u.key]=_.get(i,B)}else if((b=u==null?void 0:u.value)!=null&&b.startsWith("$urlParams")){const B=u.value.substring(11),Y=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(B);y[u.key]=Y}else if((E=u==null?void 0:u.value)!=null&&E.startsWith("$local")){const B=u.value.substring(7),Y=JSON.parse(sessionStorage.getItem(B)||'""');y[u.key]=Y}else if((P=u==null?void 0:u.value)!=null&&P.startsWith("$")){const B=u.value.substring(1);y[u.key]=_.get(s,B)}else(u==null?void 0:u.value)==="*"&&(u==null?void 0:u.key)==="*"?y={...y,...s}:(u==null?void 0:u.value)==="*"?y[u.key]=s:y[u.key]=u.value}),y},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,y;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(u=>u.eventType==="onStart");return(s==null?void 0:s.length)>0?((y=s[0])==null?void 0:y.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(u=>u):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function s(i){i.events&&i.events.forEach(d=>{var u;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const y=(u=d==null?void 0:d.events)==null?void 0:u.find(h=>h.eventType==="Success");!y&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var E,P,B,Y,N,Q,V,G,se,ge,J,Te,de;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const y=pageData==null?void 0:pageData.config,u=pageData==null?void 0:pageData.uiSchema,h=new CustomEvent("pageNameChanged",{detail:{pageName:y.label}});window.dispatchEvent(h);const b=(P=(E=n==null?void 0:n.store)==null?void 0:E.theme)==null?void 0:P.myTheme;u.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((Y=(B=b==null?void 0:b.palette)==null?void 0:B.text)==null?void 0:Y.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(Q=(N=b==null?void 0:b.palette)==null?void 0:N.primary)==null?void 0:Q.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(G=(V=b==null?void 0:b.palette)==null?void 0:V.primary)==null?void 0:G.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(ge=(se=b==null?void 0:b.palette)==null?void 0:se.primary)==null?void 0:ge.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Te=(J=b==null?void 0:b.palette)==null?void 0:J.primary)==null?void 0:Te.dark},marginRight:"4px"}}}]});const I=(de=pageData==null?void 0:pageData.schema)!=null?de:{type:"object",properties:{}};eventGroups=extractEvents(y),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:{}}),n.store.setSchema(Le=>({...I,...Le,properties:{...I.properties,...Le.properties}})),u.elements.push(notifyUiSchema),n.store.setUiSchema(u)},onCellRenderer:d=>{var y,u,h,b;if(eventGroups.onCellRenderer){let I={};const E=((y=n.dynamicData)==null?void 0:y.tableButtonPath)||((h=(u=n==null?void 0:n.dynamicData)==null?void 0:u.path)==null?void 0:h.split(".")[0]);for(const P of(b=eventGroups==null?void 0:eventGroups.onCellRenderer)==null?void 0:b[E])i.store.functionParameters=d,I=executeEvents({...i,config:P,componentName:E});return I}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const y=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onRowMovement");const u=await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onLoad");return u==null?void 0:u.data},onPaginationChange:async function(d){var h;const y=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(h=d.globalFilter)!=null?h:""}],u=await this.callExecuteEvents(d,y,"onLoad");return u==null?void 0:u.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const y=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],u=await this.callExecuteEvents(d,y);return u==null?void 0:u.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async y=>{var u,h;if(((u=n.store)==null?void 0:u.formData[y])!==n.store.newData[y]&&((h=n.store)==null?void 0:h.newData[y])!==void 0)for(const b of eventGroups.onChange[y])await executeEvents({...i,config:b,componentName:y})}))}},callExecuteEvents:async function(d,y,u){var b,I;let h;for(const E of(b=eventGroups==null?void 0:eventGroups[u])==null?void 0:b[d.path]){E.body?E.body=[...E.body,...y]:E.body=y;const P=(I=E==null?void 0:E.events)==null?void 0:I.filter(B=>B.Handler!=="mergeFormdata");E.events=P!=null?P:[],h=await executeEvents({...i,config:E,componentName:d.path})}return h},onBack:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,y){var h,b,I;const u=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||n.dynamicData.path.split(".")[0];((b=eventGroups==null?void 0:eventGroups[d])==null?void 0:b[u])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[u].map(E=>{i.store.functionParameters=y,executeEvents({...i,config:E,componentName:u})}))},downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,y)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.multiline&&(i.config.main.multiline=n.multiline==="YES"),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.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=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,y)=>({label:d.label,id:y}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,y,u,h,b,I,E,P,B,Y;i?(u=(y=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:y.items)!=null&&u.properties&&((E=(I=(b=(h=exports.schema.properties)==null?void 0:h[s])==null?void 0:b.items)==null?void 0:I.properties)!=null&&E[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((P=n.value)==null?void 0:P.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(N=>({const:N.value,title:N.label}))}:n.type==="MultipleSelect"&&((B=n.value)==null?void 0:B.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(N=>({const:N.value,title:N.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((Y=n.value)==null?void 0:Y.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(N=>({const:N.value,title:N.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(N=>({const:N.value,title:N.label}))}})),n.validation&&n.validation.forEach(N=>{var Q,V,G,se,ge,J,Te,de,Le,Be,at,Ft;s?(G=(V=(Q=exports.schema.properties)==null?void 0:Q[s])==null?void 0:V.items)!=null&&G.properties&&((Te=(J=(ge=(se=exports.schema.properties)==null?void 0:se[s])==null?void 0:ge.items)==null?void 0:J.properties)!=null&&Te[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((de=n.value)==null?void 0:de.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Le=n.value)==null?void 0:Le.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),N.validationType==="required"?(Ft=(at=(Be=exports.schema.properties)==null?void 0:Be[s])==null?void 0:at.items)==null||Ft.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][N.validationType]=isNaN(N.validationValue)?N.validationValue:Number(N.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),N.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][N.validationType]=isNaN(N.validationValue)?N.validationValue:Number(N.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,y)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,y)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>({accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,elements:u.type=="ColumnGroup"?u.elements.map(b=>buildUiSchema(b,s)):[]}))}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>u.type?{accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,widget:u.type!="ColumnGroup"?buildUiSchema(u,s):void 0,elements:u.type=="ColumnGroup"?u.elements.map(b=>buildUiSchema(b,s)):[],columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"}:{accessorKey:u.name,type:u.columnFormat,header:u.label||u.name,size:y[u.name]||180,columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"})}else n.type=="Array"?i.options.detail.elements=n.elements.map((y,u)=>buildUiSchema(y,s)):i.elements=n.elements.map((y,u)=>buildUiSchema(y,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
}`;var O=il(function(){return K(p,T+"return "+w).apply(i,c)});if(O.source=w,hi(O))throw O;return O}function pm(e){return q(e).toLowerCase()}function um(e){return q(e).toUpperCase()}function cm(e,t,r){if(e=q(e),e&&(r||t===i))return fo(e);if(!e||!(t=Ie(t)))return e;var o=$e(e),a=$e(t),p=mo(o,a),c=go(o,a)+1;return gt(o,p,c).join("")}function dm(e,t,r){if(e=q(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=Ie(t)))return e;var o=$e(e),a=go(o,$e(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=q(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=Ie(t)))return e;var o=$e(e),a=mo(o,$e(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(ne(t)){var a="separator"in t?t.separator:a;r="length"in t?H(t.length):r,o="omission"in t?Ie(t.omission):o}e=q(e);var p=e.length;if(Dt(e)){var c=$e(e);p=c.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var g=c?gt(c,0,f).join(""):e.slice(0,f);if(a===i)return g+o;if(c&&(f+=g.length-f),bi(a)){if(e.slice(f).search(a)){var S,C=g;for(a.global||(a=Pr(a.source,q(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;g=g.slice(0,w===i?f:w)}}else if(e.indexOf(Ie(a),f)!=f){var A=g.lastIndexOf(a);A>-1&&(g=g.slice(0,A))}return g+o}function gm(e){return e=q(e),e&&Il.test(e)?e.replace(Bi,Ws):e}var ym=Ut(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=q(e),t=r?i:t,t===i?Hs(e)?Ks(e):Ts(e):e.match(t)||[]}var il=z(function(e,t){try{return we(e,i,t)}catch(r){return hi(r)?r:new k(r)}}),hm=tt(function(e,t){return De(t,function(r){r=Je(r),je(e,r,gi(e[r],e))}),e});function bm(e){var t=e==null?0:e.length,r=L();return e=t?te(e,function(o){if(typeof o[1]!="function")throw new Pe(h);return[r(o[0]),o[1]]}):[],z(function(o){for(var a=-1;++a<t;){var p=e[a];if(we(p[0],this,o))return we(p[1],this,o)}})}function vm(e){return Wp(Me(e,B))}function Ci(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function Ce(e){return e}function wi(e){return No(typeof e=="function"?e:Me(e,B))}function wm(e){return Oo(Me(e,B))}function _m(e,t){return zo(e,Me(t,B))}var Im=z(function(e,t){return function(r){return ln(r,e,t)}}),Em=z(function(e,t){return function(r){return ln(e,r,t)}});function _i(e,t,r){var o=pe(t),a=Un(t,o);r==null&&!(ne(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=Un(t,pe(t)));var p=!(ne(r)&&"chain"in r)||!!r.chain,c=rt(e);return De(a,function(f){var g=t[f];e[f]=g,c&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=ve(this.__actions__);return w.push({func:g,args:arguments,thisArg:e}),C.__chain__=S,C}return g.apply(e,pt([this.value()],arguments))})}),e}function Am(){return ue._===this&&(ue._=Qs),this}function Ii(){}function Fm(e){return e=H(e),z(function(t){return Uo(t,e)})}var Tm=ni(te),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Fr(Je(e)):au(e)}function Rm(e){return function(t){return e==null?i:_t(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Nm(){return!0}function Hm(e,t){if(e=H(e),e<1||e>lt)return[];var r=Ke,o=fe(e,Ke);t=L(t),e-=Ke;for(var a=Br(o,t);++r<e;)t(r);return a}function Om(e){return M(e)?te(e,Je):Ee(e)?[e]:ve(Ia(q(e)))}function zm(e){var t=++Xs;return q(e)+t}var Um=Vn(function(e,t){return e+t},0),$m=ri("ceil"),Wm=Vn(function(e,t){return e/t},1),Gm=ri("floor");function Ym(e){return e&&e.length?zn(e,Ce,$r):i}function Km(e,t){return e&&e.length?zn(e,L(t,2),$r):i}function Vm(e){return uo(e,Ce)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?zn(e,Ce,Kr):i}function Xm(e,t){return e&&e.length?zn(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,Ce):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Na,l.bind=gi,l.bindAll=hm,l.bindKey=Ha,l.castArray=Pd,l.chain=Da,l.chunk=Wu,l.compact=Gu,l.concat=Yu,l.cond=bm,l.conforms=vm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Oa,l.curryRight=za,l.debounce=Ua,l.defaults=mf,l.defaultsDeep=gf,l.defer=wd,l.delay=_d,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=wf,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=wi,l.keyBy=ud,l.keys=pe,l.keysIn=Se,l.map=er,l.mapKeys=Ff,l.mapValues=Tf,l.matches=wm,l.matchesProperty=_m,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=_i,l.negate=rr,l.nthArg=Fm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Tm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=$a,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Fd,l.reject=gd,l.remove=gc,l.rest=Td,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=bd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=wc,l.sortedUniqBy=_c,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=Gc,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Om,l.toPlainObject=Ja,l.transform=Nf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Hf,l.unzip=mi,l.unzipWith=Ra,l.update=Of,l.updateWith=zf,l.values=Gt,l.valuesIn=Uf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Nc,l.xorBy=Hc,l.xorWith=Oc,l.zip=zc,l.zipObject=Uc,l.zipObjectDeep=$c,l.zipWith=Wc,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,_i(l,l),l.add=Um,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=$m,l.clamp=$f,l.clone=kd,l.cloneDeep=Nd,l.cloneDeepWith=Hd,l.cloneWith=Md,l.conformsTo=Od,l.deburr=nl,l.defaultTo=xm,l.divide=Wm,l.endsWith=Kf,l.eq=Ge,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Fa,l.findLastKey=hf,l.floor=Gm,l.forEach=Pa,l.forEachRight=ka,l.forIn=bf,l.forInRight=vf,l.forOwn=xf,l.forOwnRight=Sf,l.get=vi,l.gt=zd,l.gte=Ud,l.has=_f,l.hasIn=xi,l.head=La,l.identity=Ce,l.includes=sd,l.indexOf=rc,l.inRange=Wf,l.invoke=Af,l.isArguments=At,l.isArray=M,l.isArrayBuffer=$d,l.isArrayLike=xe,l.isArrayLikeObject=ie,l.isBoolean=Wd,l.isBuffer=yt,l.isDate=Gd,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=rt,l.isInteger=Wa,l.isLength=ir,l.isMap=Ga,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=ne,l.isObjectLike=re,l.isPlainObject=fn,l.isRegExp=bi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=Ee,l.isTypedArray=Wt,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=He,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Nm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=Gf,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=vd,l.snakeCase=im,l.some=xd,l.sortedIndex=hc,l.sortedIndexBy=bc,l.sortedIndexOf=vc,l.sortedLastIndex=xc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Hm,l.toFinite=it,l.toInteger=H,l.toLength=qa,l.toLower=pm,l.toNumber=Oe,l.toSafeInteger=pf,l.toString=q,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=zm,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,_i(l,function(){var e={};return Ve(l,function(t,r){X.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){$.prototype[e]=function(r){r=r===i?1:le(H(r),0);var o=this.__filtered__&&!t?new $(this):this.clone();return o.__filtered__?o.__takeCount__=fe(r,o.__takeCount__):o.__views__.push({size:fe(r,Ke),type:e+(o.__dir__<0?"Right":"")}),o},$.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Fi||r==cl;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),De(["head","last"],function(e,t){var r="take"+(t?"Right":"");$.prototype[e]=function(){return this[r](1).value()[0]}}),De(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[r](1)}}),$.prototype.compact=function(){return this.filter(Ce)},$.prototype.find=function(e){return this.filter(e).head()},$.prototype.findLast=function(e){return this.reverse().find(e)},$.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new $(this):this.map(function(r){return ln(r,e,t)})}),$.prototype.reject=function(e){return this.filter(rr(L(e)))},$.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new $(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ke)},Ve($.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var c=this.__wrapped__,f=o?[1]:arguments,g=c instanceof $,S=f[0],C=g||M(c),w=function(U){var W=a.apply(l,pt([U],f));return o&&A?W[0]:W};C&&r&&typeof S=="function"&&S.length!=1&&(g=C=!1);var A=this.__chain__,T=!!this.__actions__.length,R=p&&!A,O=g&&!T;if(!p&&C){c=O?c:new $(this);var D=e.apply(c,f);return D.__actions__.push({func:jn,args:[w],thisArg:i}),new ke(D,A)}return R&&O?e.apply(this,f):(D=this.thru(w),R?o?D.value()[0]:D.value():D)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(M(p)?p:[],a)}return this[r](function(c){return t.apply(M(c)?c:[],a)})}}),Ve($.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";X.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:r})}}),Ht[Kn(i,se).name]=[{name:"wrapper",func:i}],$.prototype.clone=mp,$.prototype.reverse=gp,$.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();vt?((vt.exports=kt)._=kt,wr._=kt):ue._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":s.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":s.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":s.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":s.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":s.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("treeStructure","Flat Tree Structure",["YES","NO"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",options:{widget:"Array"},config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),y=[];return d.map((u,h)=>{if(h===0){y.push(u);return}y.push(`${y[h-1]}.${u}`)}),y.map(u=>{const h=_.get(n,u);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var u,h;(u=n.searchParams)==null||u.get("id");const d=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const v=await i(n,s,y);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,s){var I,E;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const P={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(I=sectionLabels[n])==null?void 0:I.map(Y=>P[Y]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=B||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const y=(E=s.searchParams)==null?void 0:E.get("path"),u=y.lastIndexOf("."),h=y.slice(0,u),v=_.get(d,h);(v==null?void 0:v.type)==="Table"&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},i.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:8,lg:3}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const u=this.getSchema();n.setSchema(u),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var u;const y=(u=n.searchParams)==null?void 0:u.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var E,P,B;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const u=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(E=n.searchParams)==null?void 0:E.get("path"),v=(P=n.searchParams)==null?void 0:P.get("id");let I=[{label:(B=u.name)!=null?B:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(h){const Y=h.split("."),N=[];Y.map((Q,V)=>{if(V===0){N.push(Q);return}N.push(`${N[V-1]}.${Q}`)}),N.map(Q=>{const V=_.get(u,Q);I.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${Q}${v?`&id=${v}`:""}`})})}return y.properties.pageName.path=I,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var y,u,h,v;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((u=n==null?void 0:n.newData)==null?void 0:u.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((v=n==null?void 0:n.newData)==null?void 0:v.type,n)},editComponents:function(){var v,I,E;const y=s.path.split(".")[1],u=(v=n.searchParams)==null?void 0:v.get("path"),h=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,u),u){const B=`${(E=n.searchParams)==null?void 0:E.get("path")}.elements[${y}]`;n.searchParams.set("path",B),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var E;const u=(E=n.searchParams)==null?void 0:E.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,u),I=u?_.get(v,u):v;n.setFormdata(I),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var I;const u=(I=n.searchParams)==null?void 0:I.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,u);n.setFormdata(_.get(v,u)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const y=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const u=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",u),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,E;const y=s.path.split(".")[1],u=(I=n.searchParams)==null?void 0:I.get("path"),h=(E=n.searchParams)==null?void 0:E.get("id");saveFormdataInSessionStorage(n.ctx.core.data,u);const v=`${u}.events[${y}]`;n.navigate(`/ComponentEvents?path=${v}&id=${h}`)},eventAddHandler:function(){var v,I;const y=(v=n.searchParams)==null?void 0:v.get("path"),u=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const h=`${y}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${u}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const y=s.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpEventSection")},copyPasteElement:function(y,u=this.setPage.bind(this)){var I;const[h,v]=(I=s.path.split(".").pop())==null?void 0:I.split("_");h==="Copy"?this.CopyElement(y,v):this.PasteElement(u,v)},CopyElement:function(y=n,u){var Y;const h=lodash.exports.cloneDeep(y.schema),v=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],E=(Y=n.searchParams)==null?void 0:Y.get("path"),P=this.elementPathHandler(E,I,u),B=getFormdataFromSessionStorage(P);this.ElementPathSetter(v,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setSchema(h),n.setUiSchema(v)},PasteElement:function(y,u){var Y;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(Y=n.searchParams)==null?void 0:Y.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const v=getFormdataFromSessionStorage(h),I=u==="Component"?v.elements.length:v.events.length,E=this.elementPathHandler(h,I,u),P=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};P.Handler&&u==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):P.name&&u==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(P,E),y())},RemoveItemButton:function(y=n){const u=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);u.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(u),n.setUiSchema(h)},elementPathHandler:function(y,u,h){return h==="Component"?y?`${y}.elements[${u}]`:`elements[${u}]`:y?`${y}.events[${u}]`:`events[${u}]`},ElementPathSetter:function(y,u){u||JSON.parse(sessionStorage.getItem("copiedConfig"))}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:y}=n;return{setPage:async function(){const u=await this.getFormdata();s.setFormdata(u);const h=await this.getUiSchema(),v=await this.getSchema();s.setSchema(v),s.setUiSchema(h)},getFormdata:async function(){var I;const u=(I=s.searchParams)==null?void 0:I.get("id"),h=await n.pageConfigProvider(u),v=getFormdataFromSessionStorage();return v||(saveFormdataInSessionStorage(h),h)},getUiSchema:function(){const u=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,y).ElementPathSetter(u),u},getSchema:()=>{const u=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1),u},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var v;const u=(v=s.searchParams)==null?void 0:v.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const h=saveFormdataInSessionStorage(s.ctx.core.data);u?s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${u}`):s.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,y,d),Edit_Components:Component(s,i,d,y).editComponents,Delete_Components:async function(){await Component(s,i,d,y).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var v;const u=(v=s.searchParams)==null?void 0:v.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const h=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${h}&id=${u}`)},editEvent:function(){var I;const u=i.path.split(".")[1],h=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const v=`events[${u}]`;s.navigate(`/ComponentEvents?path=${v}&id=${h}`)},deleteEvent:function(){const u=sessionStorage.getItem("rowId");s.formData.events.splice(u,1);const h=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(h),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const u=i.path.split(".")[1];sessionStorage.setItem("rowId",u),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,y).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,y).RemoveItemButton(s)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",options:{widget:"Array"},config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",options:{widget:"Array"},config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",options:{widget:"Array"},config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,s,i,d,y)=>({setPage:async function(){const u=await this.getFormData();n.setFormdata(u);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(u.Handler,n)},refreshPage:(u,h)=>{var N,Q,V;const v=_.cloneDeep(EventUiSchema(h.theme.myTheme)),I=_.cloneDeep(EventSchema);u&&(u==="custom"?(v.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),I.required=["eventType","Handler","eventCode"]):u==="api"?(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=APISection,I.required=["eventType","Handler","method","path"]):u==="inBuiltFunction"?(v.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),I.required=["eventType","Handler","inBuiltFunctionType"]):u==="refresh"&&(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=refreshSectionUiSchema,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),y&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,s,i,d).ElementPathSetter(v),I.properties.RemoveItemButton.disabled=!1);const E=JSON.parse(sessionStorage.getItem("pageFormdata")),P=(N=h.searchParams)==null?void 0:N.get("path"),B=(Q=h.searchParams)==null?void 0:Q.get("id");let Y=[{label:(V=E.name)!=null?V:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(P){const G=P.split("."),se=[];G.map((ge,J)=>{if(J===0){se.push(ge);return}se.push(`${se[J-1]}.${ge}`)}),se.map(ge=>{const J=_.get(E,ge);Y.push({label:(J==null?void 0:J.name)||(J==null?void 0:J.eventType)||"NewComponent",path:J!=null&&J.eventType?`/ComponentEvents?path=${ge}${B?`&id=${B}`:""}`:`/Component?path=${ge}${B?`&id=${B}`:""}`})})}console.log("pathArray>>",Y),I.properties.pageName.path=Y,h.setSchema(I),h.setUiSchema(v)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var P,B,Y;const u=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(u.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),v=(P=n.searchParams)==null?void 0:P.get("path"),I=(B=n.searchParams)==null?void 0:B.get("id");let E=[{label:(Y=h.name)!=null?Y:"NewPage",path:`/PageMaster${I?`?id=${I}`:""}`}];if(v){const N=v.split("."),Q=[];N.map((V,G)=>{if(G===0){Q.push(V);return}Q.push(`${Q[G-1]}.${V}`)}),Q.map(V=>{const G=_.get(h,V);E.push({label:(G==null?void 0:G.name)||(G==null?void 0:G.eventType)||"NewComponent",path:G!=null&&G.eventType?`/ComponentEvents?path=${V}${I?`&id=${I}`:""}`:`/Component?path=${V}${I?`&id=${I}`:""}`})})}return console.log("pathArray>>",E),u.properties.pageName.path=_.cloneDeep(E),u},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var u,h,v;((u=n==null?void 0:n.formData)==null?void 0:u.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((v=n==null?void 0:n.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var v,I,E;const u=(v=n.searchParams)==null?void 0:v.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,u);const h=`${u}.events[${(E=(I=n.formData)==null?void 0:I.events)==null?void 0:E.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const u=s.path.split(".")[1],h=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const v=`${h}.events[${u}]`;n.searchParams.set("path",v),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const u=s.path.split(".")[1];sessionStorage.setItem("rowId",u),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let y;y=new File([d],s[s.length-1]);const u=URL.createObjectURL(y),h=document.createElement("a");h.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:u,h.download=`${n.name}`,document.body.appendChild(h),h.click(),URL.revokeObjectURL(u),document.body.removeChild(h)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((u,h)=>{i=i+`${h===0?"?":"&"}${u}=${n==null?void 0:n.params[u]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var y,u,h;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(v=>{if(!v)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(v=>{var E;i=v,s=(E=n.config)==null?void 0:E.events.filter(P=>P.eventType==="Success")}).catch(v=>{var P,B;const I=(B=(P=n.config)==null?void 0:P.events)==null?void 0:B.filter(Y=>Y.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((v,I)=>v.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(y=n.config)==null?void 0:y.events.filter(E=>E.eventType==="Success")}catch{const v=(h=(u=n.config)==null?void 0:u.events)==null?void 0:h.filter(E=>E.eventType==="Fail");s=(v==null?void 0:v.length)>0?v:[]}if((s==null?void 0:s.length)>0)for(const v of s)executeEvents({...n,config:v,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(y=>y.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(y=>executeEvents({...n,config:y,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var y;const s={...(y=n.userValue)==null?void 0:y.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(u=>u)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,s,i,d,y,u){var h,v,I;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(E=>{var P;return{...E,properties:{...E.properties,[s]:{...(P=E.properties)==null?void 0:P[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(E=>{var P;return{...E,properties:{...E.properties,[s]:{...(P=E.properties)==null?void 0:P[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(E=>({...E,...n==null?void 0:n.data}))):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(u[s]=(h=n.data)==null?void 0:h.data,u[`${s}_RowCount`]=(I=(v=n.data)==null?void 0:v.meta)==null?void 0:I.totalRowCount,d.setFormdata(E=>({...E,...u}))):n&&(u[s]=n.data,d.setFormdata(E=>({...E,...u})))}const buildBodyFormat=(n,s,i,d)=>{let y={...i==null?void 0:i.payload};return n.map(u=>{var h,v,I,E,P;if(typeof(u==null?void 0:u.value)!="string")y[u.key]=u.value;else if((h=u==null?void 0:u.value)!=null&&h.startsWith("$userValue")){const B=u.value.substring(11);y[u.key]=_.get(i,B)}else if((v=u==null?void 0:u.value)!=null&&v.startsWith("$urlParams")){const B=u.value.substring(11),Y=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(B);y[u.key]=Y}else if((E=u==null?void 0:u.value)!=null&&E.startsWith("$local")){const B=u.value.substring(7),Y=JSON.parse(sessionStorage.getItem(B)||'""');y[u.key]=Y}else if((P=u==null?void 0:u.value)!=null&&P.startsWith("$")){const B=u.value.substring(1);y[u.key]=_.get(s,B)}else(u==null?void 0:u.value)==="*"&&(u==null?void 0:u.key)==="*"?y={...y,...s}:(u==null?void 0:u.value)==="*"?y[u.key]=s:y[u.key]=u.value}),y},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,y;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(u=>u.eventType==="onStart");return(s==null?void 0:s.length)>0?((y=s[0])==null?void 0:y.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(u=>u):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function s(i){i.events&&i.events.forEach(d=>{var u;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const y=(u=d==null?void 0:d.events)==null?void 0:u.find(h=>h.eventType==="Success");!y&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var E,P,B,Y,N,Q,V,G,se,ge,J,Te,de;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const y=pageData==null?void 0:pageData.config,u=pageData==null?void 0:pageData.uiSchema,h=new CustomEvent("pageNameChanged",{detail:{pageName:y.label}});window.dispatchEvent(h);const v=(P=(E=n==null?void 0:n.store)==null?void 0:E.theme)==null?void 0:P.myTheme;u.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((Y=(B=v==null?void 0:v.palette)==null?void 0:B.text)==null?void 0:Y.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(Q=(N=v==null?void 0:v.palette)==null?void 0:N.primary)==null?void 0:Q.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(G=(V=v==null?void 0:v.palette)==null?void 0:V.primary)==null?void 0:G.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(ge=(se=v==null?void 0:v.palette)==null?void 0:se.primary)==null?void 0:ge.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Te=(J=v==null?void 0:v.palette)==null?void 0:J.primary)==null?void 0:Te.dark},marginRight:"4px"}}}]});const I=(de=pageData==null?void 0:pageData.schema)!=null?de:{type:"object",properties:{}};eventGroups=extractEvents(y),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:{}}),n.store.setSchema(Le=>({...I,...Le,properties:{...I.properties,...Le.properties}})),u.elements.push(notifyUiSchema),n.store.setUiSchema(u)},onCellRenderer:d=>{var y,u,h,v;if(eventGroups.onCellRenderer){let I={};const E=((y=n.dynamicData)==null?void 0:y.tableButtonPath)||((h=(u=n==null?void 0:n.dynamicData)==null?void 0:u.path)==null?void 0:h.split(".")[0]);for(const P of(v=eventGroups==null?void 0:eventGroups.onCellRenderer)==null?void 0:v[E])i.store.functionParameters=d,I=executeEvents({...i,config:P,componentName:E});return I}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const y=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onRowMovement");const u=await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onLoad");return u==null?void 0:u.data},onPaginationChange:async function(d){var h;const y=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(h=d.globalFilter)!=null?h:""}],u=await this.callExecuteEvents(d,y,"onLoad");return u==null?void 0:u.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const y=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],u=await this.callExecuteEvents(d,y);return u==null?void 0:u.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async y=>{var u,h;if(((u=n.store)==null?void 0:u.formData[y])!==n.store.newData[y]&&((h=n.store)==null?void 0:h.newData[y])!==void 0)for(const v of eventGroups.onChange[y])await executeEvents({...i,config:v,componentName:y})}))}},callExecuteEvents:async function(d,y,u){var v,I;let h;for(const E of(v=eventGroups==null?void 0:eventGroups[u])==null?void 0:v[d.path]){E.body?E.body=[...E.body,...y]:E.body=y;const P=(I=E==null?void 0:E.events)==null?void 0:I.filter(B=>B.Handler!=="mergeFormdata");E.events=P!=null?P:[],h=await executeEvents({...i,config:E,componentName:d.path})}return h},onBack:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var u,h;const y=((u=n.dynamicData)==null?void 0:u.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,y){var h,v,I;const u=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||n.dynamicData.path.split(".")[0];((v=eventGroups==null?void 0:eventGroups[d])==null?void 0:v[u])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[u].map(E=>{i.store.functionParameters=y,executeEvents({...i,config:E,componentName:u})}))},downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,y)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.multiline&&(i.config.main.multiline=n.multiline==="YES"),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.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=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,y)=>({label:d.label,id:y}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,y,u,h,v,I,E,P,B,Y;i?(u=(y=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:y.items)!=null&&u.properties&&((E=(I=(v=(h=exports.schema.properties)==null?void 0:h[s])==null?void 0:v.items)==null?void 0:I.properties)!=null&&E[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((P=n.value)==null?void 0:P.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(N=>({const:N.value,title:N.label}))}:n.type==="MultipleSelect"&&((B=n.value)==null?void 0:B.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(N=>({const:N.value,title:N.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((Y=n.value)==null?void 0:Y.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(N=>({const:N.value,title:N.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(N=>({const:N.value,title:N.label}))}})),n.validation&&n.validation.forEach(N=>{var Q,V,G,se,ge,J,Te,de,Le,Be,at,Ft;s?(G=(V=(Q=exports.schema.properties)==null?void 0:Q[s])==null?void 0:V.items)!=null&&G.properties&&((Te=(J=(ge=(se=exports.schema.properties)==null?void 0:se[s])==null?void 0:ge.items)==null?void 0:J.properties)!=null&&Te[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((de=n.value)==null?void 0:de.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Le=n.value)==null?void 0:Le.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),N.validationType==="required"?(Ft=(at=(Be=exports.schema.properties)==null?void 0:Be[s])==null?void 0:at.items)==null||Ft.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][N.validationType]=isNaN(N.validationValue)?N.validationValue:Number(N.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),N.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][N.validationType]=isNaN(N.validationValue)?N.validationValue:Number(N.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,y)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,y)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>({accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,elements:u.type=="ColumnGroup"?u.elements.map(v=>buildUiSchema(v,s)):[]}))}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((u,h)=>{y[u.keyName]=u.value}),i.elements=n.elements.map((u,h)=>u.type?{accessorKey:u.name,header:u.label||u.name,size:y[u.name]||180,type:u.columnFormat,widget:u.type!="ColumnGroup"?buildUiSchema(u,s):void 0,elements:u.type=="ColumnGroup"?u.elements.map(v=>buildUiSchema(v,s)):[],columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"}:{accessorKey:u.name,type:u.columnFormat,header:u.label||u.name,size:y[u.name]||180,columnFilterModeOptions:u.filteringOptions,enableColumnFilter:u.enableFilter==="Yes",enableSorting:u.enableSorting==="Yes"})}else n.type=="Array"?i.options.detail.elements=n.elements.map((y,u)=>buildUiSchema(y,s)):i.elements=n.elements.map((y,u)=>buildUiSchema(y,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,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
|