/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:294:    ${t.palette.mode==="light"?Fu(br(t.palette.divider,1),.88):Nu(br(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${sFe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),na=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableCell"}),{align:s="inherit",className:i,component:o,padding:l,scope:c,size:u,sortDirection:d,variant:f,...p}=n,m=I.useContext(gae),h=I.useContext(BA),_=h&&h.variant==="head";let g;o?g=o:g=_?"th":"td";let y=c;g==="td"?y=void 0:!y&&_&&(y="col");const b=f||h&&h.variant,x={...n,align:s,component:g,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:b==="head"&&m&&m.stickyHeader,variant:b},w=iFe(x);let C=null;return d&&(C=d==="asc"?"ascending":"descending"),a.jsx(oFe,{as:g,ref:r,className:lt(w.root,i),"aria-sort":C,scope:y,ownerState:x,...p})});function aFe(t){return tr("MuiTableContainer",t)}rr("MuiTableContainer",["root"]);const lFe=t=>{const{classes:e}=t;return nr({root:["root"]},aFe,e)},cFe=Ce("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),uFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableContainer"}),{className:s,component:i="div",...o}=n,l={...n,component:i},c=lFe(l);return a.jsx(cFe,{ref:r,as:i,className:lt(c.root,s),ownerState:l,...o})});function dFe(t){return tr("MuiTableHead",t)}rr("MuiTableHead",["root"]);const fFe=t=>{const{classes:e}=t;return nr({root:["root"]},dFe,e)},pFe=Ce("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),mFe={variant:"head"},$W="thead",OW=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableHead"}),{className:s,component:i=$W,...o}=n,l={...n,component:i},c=fFe(l);return a.jsx(BA.Provider,{value:mFe,children:a.jsx(pFe,{as:i,className:lt(c.root,s),ref:r,role:i===$W?null:"rowgroup",ownerState:l,...o})})});function hFe(t){return tr("MuiToolbar",t)}rr("MuiToolbar",["root","gutters","regular","dense"]);const gFe=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nr({root:["root",!r&&"gutters",n]},hFe,e)},_Fe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xt(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),tN=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiToolbar"}),{className:s,component:i="div",disableGutters:o=!1,variant:l="regular",...c}=n,u={...n,component:i,disableGutters:o,variant:l},d=gFe(u);return a.jsx(_Fe,{as:i,className:lt(d.root,s),ref:r,ownerState:u,...c})}),vFe=I.forwardRef(function(e,r){const{backIconButtonProps:n,count:s,disabled:i=!1,getItemAriaLabel:o,nextIconButtonProps:l,onPageChange:c,page:u,rowsPerPage:d,showFirstButton:f,showLastButton:p,slots:m={},slotProps:h={},..._}=e,g=ui(),y=q=>{c(q,0)},b=q=>{c(q,u-1)},x=q=>{c(q,u+1)},w=q=>{c(q,Math.max(0,Math.ceil(s/d)-1))},C=m.firstButton??Zr,k=m.lastButton??Zr,A=m.nextButton??Zr,P=m.previousButton??Zr,T=m.firstButtonIcon??U8e,j=m.lastButtonIcon??B8e,R=m.nextButtonIcon??nse,D=m.previousButtonIcon??rse,O=g?k:C,N=g?A:P,F=g?P:A,U=g?C:k,z=g?h.lastButton:h.firstButton,H=g?h.nextButton:h.previousButton,W=g?h.previousButton:h.nextButton,K=g?h.firstButton:h.lastButton;return a.jsxs("div",{ref:r,..._,children:[f&&a.jsx(O,{onClick:y,disabled:i||u===0,"aria-label":o("first",u),title:o("first",u),...z,children:g?a.jsx(j,{...h.lastButtonIcon}):a.jsx(T,{...h.firstButtonIcon})}),a.jsx(N,{onClick:b,disabled:i||u===0,color:"inherit","aria-label":o("previous",u),title:o("previous",u),...H??n,children:g?a.jsx(R,{...h.nextButtonIcon}):a.jsx(D,{...h.previousButtonIcon})}),a.jsx(F,{onClick:x,disabled:i||(s!==-1?u>=Math.ceil(s/d)-1:!1),color:"inherit","aria-label":o("next",u),title:o("next",u),...W??l,children:g?a.jsx(D,{...h.previousButtonIcon}):a.jsx(R,{...h.nextButtonIcon})}),p&&a.jsx(U,{onClick:w,disabled:i||u>=Math.ceil(s/d)-1,"aria-label":o("last",u),title:o("last",u),...K,children:g?a.jsx(T,{...h.firstButtonIcon}):a.jsx(j,{...h.lastButtonIcon})})]})});function yFe(t){return tr("MuiTablePagination",t)}const yb=rr("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var LW;const bFe=Ce(na,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(Xt(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),xFe=Ce(tN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${yb.actions}`]:e.actions,...e.toolbar})})(Xt(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yb.actions}`]:{flexShrink:0,marginLeft:20}}))),SFe=Ce("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),wFe=Ce("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(Xt(({theme:t})=>({...t.typography.body2,flexShrink:0}))),CFe=Ce(yA,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${yb.selectIcon}`]:e.selectIcon,[`& .${yb.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yb.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),AFe=Ce(E_,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),kFe=Ce("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(Xt(({theme:t})=>({...t.typography.body2,flexShrink:0})));function MFe({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function PFe(t){return`Go to ${t} page`}const jFe=t=>{const{classes:e}=t;return nr({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},yFe,e)},TFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTablePagination"}),{ActionsComponent:s=vFe,backIconButtonProps:i,colSpan:o,component:l=na,count:c,disabled:u=!1,getItemAriaLabel:d=PFe,labelDisplayedRows:f=MFe,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:m,onPageChange:h,onRowsPerPageChange:_,page:g,rowsPerPage:y,rowsPerPageOptions:b=[10,25,50,100],SelectProps:x={},showFirstButton:w=!1,showLastButton:C=!1,slotProps:k={},slots:A={},...P}=n,T=n,j=jFe(T),R=k?.select??x,D=R.native?"option":AFe;let O;(l===na||l==="td")&&(O=o||1e3);const N=$c(R.id),F=$c(R.labelId),U=()=>c===-1?(g+1)*y:y===-1?c:Math.min(c,(g+1)*y),z={slots:A,slotProps:k},[H,W]=mr("root",{ref:r,className:j.root,elementType:bFe,externalForwardedProps:{...z,component:l,...P},ownerState:T,additionalProps:{colSpan:O}}),[K,q]=mr("toolbar",{className:j.toolbar,elementType:xFe,externalForwardedProps:z,ownerState:T}),[X,Q]=mr("spacer",{className:j.spacer,elementType:SFe,externalForwardedProps:z,ownerState:T}),[Y,Z]=mr("selectLabel",{className:j.selectLabel,elementType:wFe,externalForwardedProps:z,ownerState:T,additionalProps:{id:F}}),[re,fe]=mr("select",{className:j.select,elementType:CFe,externalForwardedProps:z,ownerState:T}),[de,se]=mr("menuItem",{className:j.menuItem,elementType:D,externalForwardedProps:z,ownerState:T}),[le,ee]=mr("displayedRows",{className:j.displayedRows,elementType:kFe,externalForwardedProps:z,ownerState:T});return a.jsx(H,{...W,children:a.jsxs(K,{...q,children:[a.jsx(X,{...Q}),b.length>1&&a.jsx(Y,{...Z,children:p}),b.length>1&&a.jsx(re,{variant:"standard",...!R.variant&&{input:LW||(LW=a.jsx(vA,{}))},value:y,onChange:_,id:N,labelId:F,...R,classes:{...R.classes,root:lt(j.input,j.selectRoot,(R.classes||{}).root),select:lt(j.select,(R.classes||{}).select),icon:lt(j.selectIcon,(R.classes||{}).icon)},disabled:u,...fe,children:b.map(J=>I.createElement(de,{...se,key:J.label?J.label:J,value:J.value?J.value:J},J.label?J.label:J))}),a.jsx(le,{...ee,children:f({from:c===0?0:g*y+1,to:U(),count:c===-1?-1:c,page:g})}),a.jsx(s,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:h,page:g,rowsPerPage:y,showFirstButton:w,showLastButton:C,slotProps:k.actions,slots:A.actions,getItemAriaLabel:d,disabled:u})]})})});function EFe(t){return tr("MuiTableRow",t)}const NW=rr("MuiTableRow",["root","selected","hover","head","footer"]),RFe=t=>{const{classes:e,selected:r,hover:n,head:s,footer:i}=t;return nr({root:["root",r&&"selected",n&&"hover",s&&"head",i&&"footer"]},EFe,e)},IFe=Ce("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Xt(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NW.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${NW.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),FW="tr",d_=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableRow"}),{className:s,component:i=FW,hover:o=!1,selected:l=!1,...c}=n,u=I.useContext(BA),d={...n,component:i,hover:o,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},f=RFe(d);return a.jsx(IFe,{as:i,ref:r,className:lt(f.root,s),role:i===FW?null:"row",ownerState:d,...c})}),DFe=rs(a.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $Fe(t){return tr("MuiTableSortLabel",t)}const XE=rr("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),OFe=t=>{const{classes:e,direction:r,active:n}=t,s={root:["root",n&&"active",`direction${tt(r)}`],icon:["icon",`iconDirection${tt(r)}`]};return nr(s,$Fe,e)},LFe=Ce(La,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.active&&e.active]}})(Xt(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${XE.icon}`]:{opacity:.5}},[`&.${XE.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${XE.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}))),NFe=Ce("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,e[`iconDirection${tt(r.direction)}`]]}})(Xt(({theme:t})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),FFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableSortLabel"}),{active:s=!1,children:i,className:o,direction:l="asc",hideSortIcon:c=!1,IconComponent:u=DFe,slots:d={},slotProps:f={},...p}=n,m={...n,active:s,direction:l,hideSortIcon:c,IconComponent:u},h=OFe(m),_={slots:d,slotProps:f},[g,y]=mr("root",{elementType:LFe,externalForwardedProps:_,ownerState:m,className:lt(h.root,o),ref:r}),[b,x]=mr("icon",{elementType:NFe,externalForwardedProps:_,ownerState:m,className:h.icon});return a.jsxs(g,{disableRipple:!0,component:"span",...y,...p,children:[i,c&&!s?null:a.jsx(b,{as:u,...x})]})});function UFe(t){return tr("MuiToggleButton",t)}const Zm=rr("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),_ae=I.createContext({}),vae=I.createContext(void 0);function BFe(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const zFe=t=>{const{classes:e,fullWidth:r,selected:n,disabled:s,size:i,color:o}=t,l={root:["root",n&&"selected",s&&"disabled",r&&"fullWidth",`size${tt(i)}`,o]};return nr(l,UFe,e)},qFe=Ce(La,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${tt(r.size)}`]]}})(Xt(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Zm.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:br(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Zm.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.text.primary,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette.text.primary,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.text.primary,t.palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Kn()).map(([e])=>({props:{color:e},style:{[`&.${Zm.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette[e].main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette[e].main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette[e].main,t.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),VFe=I.forwardRef(function(e,r){const{value:n,...s}=I.useContext(_ae),i=I.useContext(vae),o=k_({...s,selected:BFe(e.value,n)},e),l=fr({props:o,name:"MuiToggleButton"}),{children:c,className:u,color:d="standard",disabled:f=!1,disableFocusRipple:p=!1,fullWidth:m=!1,onChange:h,onClick:_,selected:g,size:y="medium",value:b,...x}=l,w={...l,color:d,disabled:f,disableFocusRipple:p,fullWidth:m,size:y},C=zFe(w),k=P=>{_&&(_(P,b),P.defaultPrevented)||h&&h(P,b)},A=i||"";return a.jsx(qFe,{className:lt(s.className,C.root,u,A),disabled:f,focusRipple:!p,ref:r,onClick:k,onChange:h,value:b,ownerState:w,"aria-pressed":g,...x,children:c})});function HFe(t){return tr("MuiToggleButtonGroup",t)}const Gs=rr("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),GFe=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:s}=t,i={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${tt(r)}`,s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return nr(i,HFe,e)},WFe=Ce("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Gs.grouped}`]:e.grouped},{[`& .${Gs.grouped}`]:e[`grouped${tt(r.orientation)}`]},{[`& .${Gs.firstButton}`]:e.firstButton},{[`& .${Gs.lastButton}`]:e.lastButton},{[`& .${Gs.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Xt(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Gs.grouped}`]:{[`&.${Gs.selected} + .${Gs.grouped}.${Gs.selected}`]:{borderTop:0,marginTop:0}},[`& .${Gs.firstButton},& .${Gs.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Gs.lastButton},& .${Gs.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Gs.lastButton}.${Zm.disabled},& .${Gs.middleButton}.${Zm.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Gs.grouped}`]:{[`&.${Gs.selected} + .${Gs.grouped}.${Gs.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Gs.firstButton},& .${Gs.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Gs.lastButton},& .${Gs.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Gs.lastButton}.${Zm.disabled},& .${Gs.middleButton}.${Zm.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),YFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:i,color:o="standard",disabled:l=!1,exclusive:c=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:m,...h}=n,_={...n,disabled:l,fullWidth:u,orientation:f,size:p},g=GFe(_),y=I.useCallback((A,P)=>{if(!d)return;const T=m&&m.indexOf(P);let j;m&&T>=0?(j=m.slice(),j.splice(T,1)):j=m?m.concat(P):[P],d(A,j)},[d,m]),b=I.useCallback((A,P)=>{d&&d(A,m===P?null:P)},[d,m]),x=I.useMemo(()=>({className:g.grouped,onChange:c?b:y,value:m,size:p,fullWidth:u,color:o,disabled:l}),[g.grouped,c,b,y,m,p,u,o,l]),w=nre(s),C=w.length,k=A=>{const P=A===0,T=A===C-1;return P&&T?"":P?g.firstButton:T?g.lastButton:g.middleButton};return a.jsx(WFe,{role:"group",className:lt(g.root,i),ref:r,ownerState:_,...h,children:a.jsx(_ae.Provider,{value:x,children:w.map((A,P)=>a.jsx(vae.Provider,{value:k(P),children:A},P))})})});function yae(t){const e=he.c(18),{children:r,maxItems:n,small:s,expandable:i,itemsAfterCollapse:o,sx:l}=t,c=i===void 0?!1:i,u=o===void 0?1:o;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={display:"flex",flexWrap:"nowrap",alignItems:"baseline"},e[0]=d):d=e[0];let f;e[1]!==c?(f=!c&&{pointerEvents:"none",display:{xs:"none",sm:"flex"}},e[1]=c,e[2]=f):f=e[2];let p;e[3]!==f?(p={".MuiButtonBase-root":{...f}},e[3]=f,e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==p?(m={...l,ol:d,li:p},e[5]=l,e[6]=p,e[7]=m):m=e[7];let h;if(e[8]!==r||e[9]!==s){let g;e[11]!==s?(g=(y,b)=>a.jsx(gt,{sx:{fontSize:s?"13px":"20px"},children:y},`breadcrumb-${b}`),e[11]=s,e[12]=g):g=e[12],h=I.Children.map(r,g),e[8]=r,e[9]=s,e[10]=h}else h=e[10];let _;return e[13]!==u||e[14]!==n||e[15]!==m||e[16]!==h?(_=a.jsx(c7e,{maxItems:n,itemsAfterCollapse:u,separator:"/",sx:m,children:h}),e[13]=u,e[14]=n,e[15]=m,e[16]=h,e[17]=_):_=e[17],_}function bae(){const t=he.c(7),e=Nr(KFe);let r;t[0]!==e?(r=()=>{e(!0)},t[0]=e,t[1]=r):r=t[1];const n=r;let s;t[2]!==e?(s=()=>{e(!1)},t[2]=e,t[3]=s):s=t[3];const i=s;let o;return t[4]!==i||t[5]!==n?(o={navigationOpen:n,navigationClose:i},t[4]=i,t[5]=n,t[6]=o):o=t[6],o}function KFe(t){return t.setNavigation}function QFe(){const t=he.c(10),e=Nr(ZFe),{navigationOpen:r,navigationClose:n}=bae();let s;t[0]!==e||t[1]!==n||t[2]!==r?(s=()=>{e?n():r()},t[0]=e,t[1]=n,t[2]=r,t[3]=s):s=t[3];const i=s;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o={fontSize:"24px"},t[4]=o):o=t[4];let l;t[5]!==e?(l=e?a.jsx(ge.NavigationBurgerClose,{}):a.jsx(ge.NavigationBurgerOpen,{}),t[5]=e,t[6]=l):l=t[6];let c;return t[7]!==i||t[8]!==l?(c=a.jsx(Zr,{onClick:i,sx:o,children:l}),t[7]=i,t[8]=l,t[9]=c):c=t[9],c}function ZFe(t){return t.navigation}function UW(t){const e=he.c(39),{icon:r,value:n,label:s,onClick:i,subItems:o,isSubItem:l,subListOpen:c,onSubListOpen:u,isActive:d,hasSubItems:f}=t;let p;e[0]!==u||e[1]!==n?(p=()=>{u&&u(n)},e[0]=u,e[1]=n,e[2]=p):p=e[2];const m=p;let h;e[3]!==i||e[4]!==n?(h=()=>{i&&i(n)},e[3]=i,e[4]=n,e[5]=h):h=e[5];const g=o?m:h,y=d&&!l&&!f?"16px":"20px",b=l?.5:1;let x;e[6]!==d||e[7]!==l?(x=l&&{pl:d?"48px":"53px",position:"relative"},e[6]=d,e[7]=l,e[8]=x):x=e[8];let w;e[9]!==f||e[10]!==d?(w=d&&{fontWeight:600,...f&&{},...!f&&{borderLeft:"4px solid",borderColor:"primary.main",backgroundColor:"action.hover"}},e[9]=f,e[10]=d,e[11]=w):w=e[11];let C;e[12]!==y||e[13]!==b||e[14]!==x||e[15]!==w?(C={position:"relative",pr:"14px",pl:y,py:b,my:0,...x,...w},e[12]=y,e[13]=b,e[14]=x,e[15]=w,e[16]=C):C=e[16];let k;e[17]!==r||e[18]!==l?(k=!l&&a.jsx(LO,{sx:{minWidth:"auto",mr:"12px",fontSize:"20px"},children:r}),e[17]=r,e[18]=l,e[19]=k):k=e[19];const A=l?"body2":"body1",P=d?"600":"400";let T;e[20]!==A||e[21]!==P?(T={variant:A,fontWeight:P},e[20]=A,e[21]=P,e[22]=T):T=e[22];let j;e[23]!==s||e[24]!==T||e[25]!==n?(j=a.jsx(dA,{inset:!1,primary:s,primaryTypographyProps:T},n),e[23]=s,e[24]=T,e[25]=n,e[26]=j):j=e[26];let R;e[27]!==o?.length||e[28]!==c?(R=o?.length&&a.jsx(gt,{sx:{transformOrigin:"center",transition:"transform .35s",opacity:"0.5",height:"20px",...c&&{transform:"rotate(.5turn)"}},children:a.jsx(ge.DownArrow,{fontSize:20})}),e[27]=o?.length,e[28]=c,e[29]=R):R=e[29];let D;e[30]!==j||e[31]!==R||e[32]!==C||e[33]!==k?(D=a.jsxs(Vne,{sx:C,disableGutters:!0,children:[k,j,R]}),e[30]=j,e[31]=R,e[32]=C,e[33]=k,e[34]=D):D=e[34];let O;return e[35]!==D||e[36]!==g||e[37]!==n?(O=a.jsx(wA,{onClick:g,disableGutters:!0,disablePadding:!0,children:D},n),e[35]=D,e[36]=g,e[37]=n,e[38]=O):O=e[38],O}const xae=270;function XFe(t){const e=he.c(59),{open:r,headerComponent:n,footerComponent:s,items:i,activeValue:o}=t,l=As(),c=Nd(l.breakpoints.up("md"))?"persistent":"temporary",u=Nr(tUe),{navigationOpen:d,navigationClose:f}=bae(),p=Nr(eUe),m=Nr(JFe);let h;e[0]!==m?(h=Z=>{m(Z)},e[0]=m,e[1]=h):h=e[1];const _=h;let g;e[2]!==f||e[3]!==c?(g=()=>{c==="temporary"&&f()},e[2]=f,e[3]=c,e[4]=g):g=e[4];const y=g;let b;e[5]!==p?(b=Z=>{const{value:re}=Z;return p.includes(re)},e[5]=p,e[6]=b):b=e[6];const x=b;let w;e[7]!==d||e[8]!==r?(w=()=>{r&&d()},e[7]=d,e[8]=r,e[9]=w):w=e[9];let C;e[10]!==i||e[11]!==d||e[12]!==r?(C=[i,r,d],e[10]=i,e[11]=d,e[12]=r,e[13]=C):C=e[13],I.useEffect(w,C);let k,A;e[14]!==f||e[15]!==c?(k=()=>{const Z=setTimeout(()=>{c==="temporary"&&f()},0);return()=>{clearTimeout(Z)}},A=[f,c],e[14]=f,e[15]=c,e[16]=k,e[17]=A):(k=e[16],A=e[17]),I.useEffect(k,A);const P=I.useRef(!1);let T,j;e[18]!==o||e[19]!==i||e[20]!==m||e[21]!==p?(T=()=>{if(P.current)return;const Z=i.find(re=>re.subItems?.find(fe=>{const{value:de}=fe;return de===o}));Z&&!p.includes(Z.value)&&m(Z.value),P.current=!0},j=[o,i,m,p],e[18]=o,e[19]=i,e[20]=m,e[21]=p,e[22]=T,e[23]=j):(T=e[22],j=e[23]),I.useEffect(T,j);const R=Nd(l.breakpoints.down($.appBarMobileBreakpoint))?"125px":"60px",D=l.zIndex.appBar-1;let O;e[24]!==R||e[25]!==D?(O={sx:{mt:R,zIndex:D}},e[24]=R,e[25]=D,e[26]=O):O=e[26];const N=l.zIndex.appBar-1;let F;e[27]!==N?(F={zIndex:N},e[27]=N,e[28]=F):F=e[28];const U=`calc(100vh - ${R})`;let z;e[29]!==U?(z={height:U,width:xae,position:"relative"},e[29]=U,e[30]=z):z=e[30];let H;e[31]!==n?(H=n&&a.jsx(gt,{sx:{px:3,pb:2},children:n}),e[31]=n,e[32]=H):H=e[32];let W;e[33]===Symbol.for("react.memo_cache_sentinel")?(W={flexGrow:1,overflowY:"auto",mt:"0 !important"},e[33]=W):W=e[33];let K;if(e[34]!==y||e[35]!==_||e[36]!==x||e[37]!==i){let Z;e[39]!==y||e[40]!==_||e[41]!==x?(Z=(re,fe)=>{const de=x(re);return a.jsxs(gt,{sx:{position:"relative",zIndex:1e3,color:"text.primary",borderBottom:"1px solid",borderColor:"divider"},children:[a.jsx(z6,{to:re.value,onClick:se=>{re.subItems?se.preventDefault():y()},style:{textDecoration:"none",color:"inherit"},target:re.external?"_blank":"_self",children:se=>{const{isActive:le}=se;return a.jsx(UW,{...re,onSubListOpen:_,subListOpen:de,isActive:le,hasSubItems:!!re.subItems?.length})}}),re.subItems?.length&&a.jsx(Qb,{in:de,timeout:"auto",unmountOnExit:!0,children:a.jsx(_h,{component:"div",sx:{pt:0,pb:0},children:re.subItems.map(se=>a.jsx(z6,{to:se.value,style:{textDecoration:"none",color:"inherit"},target:se.external?"_blank":"_self",children:le=>{const{isActive:ee}=le;return a.jsx(UW,{...se,onClick:y,isSubItem:!0,isActive:ee})}},`${se.value}-${fe}`))})})]},`${re.value}-${fe}`)},e[39]=y,e[40]=_,e[41]=x,e[42]=Z):Z=e[42],K=i.map(Z),e[34]=y,e[35]=_,e[36]=x,e[37]=i,e[38]=K}else K=e[38];let q;e[43]!==K?(q=a.jsx(_h,{sx:W,component:"nav","aria-labelledby":"nested-list-subheader",disablePadding:!0,children:K}),e[43]=K,e[44]=q):q=e[44];let X;e[45]!==s?(X=s&&a.jsx(gt,{sx:{px:3,pt:1},children:s}),e[45]=s,e[46]=X):X=e[46];let Q;e[47]!==z||e[48]!==H||e[49]!==q||e[50]!==X?(Q=a.jsxs(te,{sx:z,nowrap:!0,children:[H,q,X]}),e[47]=z,e[48]=H,e[49]=q,e[50]=X,e[51]=Q):Q=e[51];let Y;return e[52]!==y||e[53]!==u||e[54]!==O||e[55]!==F||e[56]!==Q||e[57]!==c?(Y=a.jsx(aae,{variant:c,onClose:y,open:u,PaperProps:O,sx:F,children:Q}),e[52]=y,e[53]=u,e[54]=O,e[55]=F,e[56]=Q,e[57]=c,e[58]=Y):Y=e[58],Y}function JFe(t){return t.setNavigationSubListOpen}function eUe(t){return t.navigationSubListOpen}function tUe(t){return t.navigation}function G0(t){const e=he.c(19),{children:r,appBar:n,fullHeight:s,navigation:i,fullWidth:o}=t,l=ci(),c=Nr(rUe),u=aC(l.breakpoints.up("md"))?"persistent":"temporary";let d;e[0]!==o?(d=o&&{"&.MuiContainer-maxWidthXl":{maxWidth:"100%"}},e[0]=o,e[1]=d):d=e[1];let f;e[2]!==d?(f={...d},e[2]=d,e[3]=f):f=e[3];const p=n?10:2,m=s&&"100vh",h=s&&"100vh",_=i&&c&&u==="persistent"?`${xae}px`:0;let g;e[4]!==p||e[5]!==m||e[6]!==h||e[7]!==_?(g={pt:p,pb:3,height:m,maxHeight:h,overflow:"visible",pl:_,width:"100%"},e[4]=p,e[5]=m,e[6]=h,e[7]=_,e[8]=g):g=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={overflow:"visible"},e[9]=y):y=e[9];let b;e[10]!==r||e[11]!==s?(b=a.jsx(te,{fullHeight:s,spacing:2.5,nowrap:!0,sx:y,children:r}),e[10]=r,e[11]=s,e[12]=b):b=e[12];let x;e[13]!==g||e[14]!==b?(x=a.jsx(gt,{sx:g,children:b}),e[13]=g,e[14]=b,e[15]=x):x=e[15];let w;return e[16]!==x||e[17]!==f?(w=a.jsx(H7e,{maxWidth:"xl",sx:f,children:x}),e[16]=x,e[17]=f,e[18]=w):w=e[18],w}function rUe(t){return t.navigation}function nUe(t){const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={flex:"0 0 auto",pb:1,pt:.5,px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(S7e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function Kt(t){const e=he.c(10),{children:r,title:n,titleColor:s,dense:i,sx:o}=t,l=s===void 0?"text.primary":s;let c;e[0]!==o?(c={p:2,flex:"1 1 auto",minWidth:0,...o},e[0]=o,e[1]=c):c=e[1];let u;e[2]!==i||e[3]!==n||e[4]!==l?(u=n&&a.jsx(gt,{sx:{mb:2,"&:last-child":{mb:0}},children:a.jsx(_e,{type:i?"body1":"h6",color:l,fontWeight:600,children:n})}),e[2]=i,e[3]=n,e[4]=l,e[5]=u):u=e[5];let d;return e[6]!==r||e[7]!==c||e[8]!==u?(d=a.jsxs(gt,{sx:c,children:[u,r]}),e[6]=r,e[7]=c,e[8]=u,e[9]=d):d=e[9],d}const sUe=Ce(({className:t,opaque:e,...r})=>a.jsx(hae,{...r,classes:{popper:t}}))(({theme:t,...e})=>()=>typeof e.title=="string"||!e.opaque?{}:{[`& .${Xs.tooltip}`]:{padding:"0 !important",backgroundColor:t.palette.background.paper,color:t.palette.text.primary,opacity:0,boxShadow:t.shadows[5],border:"1px solid",borderColor:t.palette.divider},"& .tooltip-items":{maxHeight:"60vh",overflowY:"auto"},[`& .${Xs.arrow}`]:{color:t.palette.background.paper,"&::before":{backgroundColor:t.palette.background.paper,border:"1px solid",borderColor:t.palette.divider,borderBottom:0}}});function Mn(t){const e=he.c(8);let r,n,s;e[0]!==t?({arrow:n,placement:s,...r}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s):(r=e[1],n=e[2],s=e[3]);const i=n===void 0?!0:n,o=s===void 0?"bottom":s;let l;return e[4]!==i||e[5]!==o||e[6]!==r?(l=a.jsx(sUe,{arrow:i,placement:o,...r}),e[4]=i,e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function iUe(t){const e=he.c(5),{children:r,tooltip:n}=t;let s;e[0]!==n?(s=n&&a.jsx(Mn,{title:n,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})}),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==r||e[3]!==s?(i=a.jsxs(QL,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:2.25,children:[r,s]}),e[2]=r,e[3]=s,e[4]=i):i=e[4],i}function oUe(t){const e=he.c(24),{title:r,children:n,tooltip:s,dense:i,folder:o}=t,l=i===void 0?!1:i,c=o===void 0?!1:o,u=ci(),d=l?"h6":"h5";let f;e[0]!==d?(f={variant:d,fontWeight:"600",lineHeight:1},e[0]=d,e[1]=f):f=e[1];const p=l||c?0:"inherit",m=c?1:2,h=l||c?1:2,_=l||c?"10px":"40px";let g;e[2]!==_?(g={minHeight:_,display:"flex",alignItems:"center"},e[2]=_,e[3]=g):g=e[3];let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y={alignSelf:"center"},e[4]=y):y=e[4];let b;e[5]!==p||e[6]!==m||e[7]!==h||e[8]!==g||e[9]!==u.palette.text.secondary?(b={color:u.palette.text.secondary,display:"flex",flex:"0 0 auto",lineHeight:p,pt:m,pb:h,".MuiCardHeader-content":g,".MuiCardHeader-action":y},e[5]=p,e[6]=m,e[7]=h,e[8]=g,e[9]=u.palette.text.secondary,e[10]=b):b=e[10];let x;e[11]!==n||e[12]!==s?(x=a.jsx(iUe,{tooltip:s,children:n}),e[11]=n,e[12]=s,e[13]=x):x=e[13];let w;e[14]!==b||e[15]!==x||e[16]!==f||e[17]!==r?(w=a.jsx(j7e,{title:r,titleTypographyProps:f,sx:b,action:x}),e[14]=b,e[15]=x,e[16]=f,e[17]=r,e[18]=w):w=e[18];let C;e[19]!==c?(C=c&&a.jsx(Oc,{}),e[19]=c,e[20]=C):C=e[20];let k;return e[21]!==w||e[22]!==C?(k=a.jsxs(a.Fragment,{children:[w,C]}),e[21]=w,e[22]=C,e[23]=k):k=e[23],k}function pr(t){const e=he.c(58);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g;e[0]!==t?({children:r,title:h,headerActionsComponent:i,footerActionsComponent:s,tooltip:_,highlightedColor:o,fullHeight:d,dense:f,folder:p,elevation:m,modalElevation:l,variant:g,sx:u,error:n,...c}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15]);const y=d===void 0?!1:d,b=f===void 0?!1:f,x=p===void 0?!1:p,w=m===void 0?1:m,C=y?"hidden":"visible",k=y?"100%":"auto";let A;e[16]!==o?(A=o&&{borderBottom:"5px solid",borderBottomColor:`${o}.main`},e[16]=o,e[17]=A):A=e[17];let P;e[18]!==g?(P=g==="outlined"&&{backgroundColor:"transparent"},e[18]=g,e[19]=P):P=e[19];let T;e[20]!==n?(T=n&&{border:"2px solid !important",borderColor:aUe},e[20]=n,e[21]=T):T=e[21];let j;e[22]!==w||e[23]!==l?(j=l&&{backgroundImage:H=>H.palette.mode==="dark"?`linear-gradient(${Ic("#fff",+hh(24+w*24))}, ${Ic("#fff",+hh(24+w*24))})`:"none"},e[22]=w,e[23]=l,e[24]=j):j=e[24];let R;e[25]!==u||e[26]!==j||e[27]!==C||e[28]!==k||e[29]!==A||e[30]!==P||e[31]!==T?(R={flex:"1 1 auto",display:"flex",overflow:C,height:k,...A,...P,...T,...j,...u},e[25]=u,e[26]=j,e[27]=C,e[28]=k,e[29]=A,e[30]=P,e[31]=T,e[32]=R):R=e[32];let D;e[33]===Symbol.for("react.memo_cache_sentinel")?(D={flex:"1 1 auto",minWidth:0},e[33]=D):D=e[33];let O;e[34]!==b||e[35]!==x||e[36]!==i||e[37]!==h||e[38]!==_?(O=!h&&!_&&!i?null:a.jsx(oUe,{title:h,tooltip:_,dense:b,folder:x,children:i}),e[34]=b,e[35]=x,e[36]=i,e[37]=h,e[38]=_,e[39]=O):O=e[39];let N;if(e[40]!==r||e[41]!==b){let H;e[43]!==b?(H=W=>W.type===Kt?I.cloneElement(W,{dense:b}):W,e[43]=b,e[44]=H):H=e[44],N=I.Children.map(r,H),e[40]=r,e[41]=b,e[42]=N}else N=e[42];let F;e[45]!==s?(F=s&&a.jsx(nUe,{children:s}),e[45]=s,e[46]=F):F=e[46];let U;e[47]!==y||e[48]!==O||e[49]!==N||e[50]!==F?(U=a.jsxs(te,{spacing:0,sx:D,fullHeight:y,nowrap:!0,children:[O,N,F]}),e[47]=y,e[48]=O,e[49]=N,e[50]=F,e[51]=U):U=e[51];let z;return e[52]!==w||e[53]!==c||e[54]!==R||e[55]!==U||e[56]!==g?(z=a.jsx(v7e,{elevation:w,variant:g,sx:R,...c,children:U}),e[52]=w,e[53]=c,e[54]=R,e[55]=U,e[56]=g,e[57]=z):z=e[57],z}function aUe(t){return`${t.palette.error.main} !important`}function zA(t){const e=he.c(20),{children:r,fullHeight:n,transparent:s}=t;let i;e[0]!==n?(i=n&&{height:"100%",maxHeight:"100%",overflow:"hidden"},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==i?(o={width:"100%",maxWidth:"1000px",margin:"0 auto",...i},e[2]=i,e[3]=o):o=e[3];let l;e[4]!==s?(l=s&&{backgroundColor:"transparent"},e[4]=s,e[5]=l):l=e[5];let c;e[6]!==l?(c={...l},e[6]=l,e[7]=c):c=e[7];let u;e[8]!==s?(u=s&&{elevation:0},e[8]=s,e[9]=u):u=e[9];let d;e[10]!==r?(d=a.jsx(a.Fragment,{children:r}),e[10]=r,e[11]=d):d=e[11];let f;e[12]!==n||e[13]!==c||e[14]!==u||e[15]!==d?(f=a.jsx(pr,{fullHeight:n,sx:c,...u,children:d}),e[12]=n,e[13]=c,e[14]=u,e[15]=d,e[16]=f):f=e[16];let p;return e[17]!==o||e[18]!==f?(p=a.jsx(gt,{sx:o,children:f}),e[17]=o,e[18]=f,e[19]=p):p=e[19],p}function lUe(t){const e=he.c(10),{center:r,fullHeight:n,appBar:s,navigation:i,transparent:o}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(uUe,{}),e[0]=l):l=e[0];let c;e[1]!==r||e[2]!==n||e[3]!==o?(c=r?a.jsx(zA,{fullHeight:n,transparent:o,children:a.jsx(Bd,{})}):a.jsx(pr,{fullHeight:n,sx:{...o&&{backgroundColor:"transparent"}},...o&&{elevation:0},children:a.jsx(Bd,{})}),e[1]=r,e[2]=n,e[3]=o,e[4]=c):c=e[4];let u;return e[5]!==s||e[6]!==n||e[7]!==i||e[8]!==c?(u=a.jsxs(G0,{appBar:s,navigation:i,fullWidth:!0,fullHeight:n,children:[l,c]}),e[5]=s,e[6]=n,e[7]=i,e[8]=c,e[9]=u):u=e[9],u}const Sae="app-page-header-actions";function hs(t){const e=he.c(2),{children:r}=t;let n;return e[0]!==r?(n=a.jsx(YO,{container:cUe,children:r}),e[0]=r,e[1]=n):n=e[1],n}function cUe(){return document.querySelector(`#${Sae}`)}function uUe(){const t=he.c(59),e=WL();let r;t[0]!==e?(r=e.map(hUe).filter(mUe),t[0]=e,t[1]=r):r=t[1];const n=r;let s;e:{if(!n){let z;t[2]===Symbol.for("react.memo_cache_sentinel")?(z=[],t[2]=z):z=t[2],s=z;break e}let U;t[3]!==n?(U=n.map(pUe).filter(fUe),t[3]=n,t[4]=U):U=t[4],s=U}const i=s;let o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P;if(t[5]!==i){const U=i.slice(0,-1);d=i[i.length-1],u=te,f=.5,p=!0,m="row",h="space-between",_="flex-start",t[25]===Symbol.for("react.memo_cache_sentinel")?(g={ml:-1},t[25]=g):g=t[25],c=te,C="row",k=1,A="center",t[26]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(QFe,{}),t[26]=P):P=t[26],l=te,w=0,o=yae,y=10,b=!1,x=U.map(dUe),t[5]=i,t[6]=o,t[7]=l,t[8]=c,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=_,t[16]=g,t[17]=y,t[18]=b,t[19]=x,t[20]=w,t[21]=C,t[22]=k,t[23]=A,t[24]=P}else o=t[6],l=t[7],c=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],_=t[15],g=t[16],y=t[17],b=t[18],x=t[19],w=t[20],C=t[21],k=t[22],A=t[23],P=t[24];let T;t[27]!==d?(T=d&&a.jsx(_e,{type:"h6",color:"text.primary",fontWeight:600,children:d.label}),t[27]=d,t[28]=T):T=t[28];let j;t[29]!==o||t[30]!==T||t[31]!==y||t[32]!==b||t[33]!==x?(j=a.jsxs(o,{maxItems:y,expandable:b,children:[x,T]}),t[29]=o,t[30]=T,t[31]=y,t[32]=b,t[33]=x,t[34]=j):j=t[34];let R;t[35]!==d.caption?(R=d.caption&&a.jsx(_e,{type:"body2",color:"text.secondary",sx:{wordBreak:"break-all"},children:d.caption}),t[35]=d.caption,t[36]=R):R=t[36];let D;t[37]!==l||t[38]!==j||t[39]!==R||t[40]!==w?(D=a.jsxs(l,{spacing:w,children:[j,R]}),t[37]=l,t[38]=j,t[39]=R,t[40]=w,t[41]=D):D=t[41];let O;t[42]!==c||t[43]!==D||t[44]!==C||t[45]!==k||t[46]!==A||t[47]!==P?(O=a.jsxs(c,{direction:C,spacing:k,align:A,children:[P,D]}),t[42]=c,t[43]=D,t[44]=C,t[45]=k,t[46]=A,t[47]=P,t[48]=O):O=t[48];let N;t[49]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(gt,{id:Sae,sx:{mt:"2px"}}),t[49]=N):N=t[49];let F;return t[50]!==u||t[51]!==f||t[52]!==p||t[53]!==m||t[54]!==h||t[55]!==_||t[56]!==g||t[57]!==O?(F=a.jsxs(u,{spacing:f,fullWidth:p,direction:m,justify:h,align:_,sx:g,children:[O,N]}),t[50]=u,t[51]=f,t[52]=p,t[53]=m,t[54]=h,t[55]=_,t[56]=g,t[57]=O,t[58]=F):F=t[58],F}function dUe(t){const{to:e,label:r}=t;return e?a.jsx(gt,{component:"span",sx:{color:"primary.main","&:hover":{color:"primary.dark"}},children:a.jsx(z6,{to:e,style:{color:"inherit"},children:()=>a.jsx(te,{direction:"row",align:"center",spacing:1,children:a.jsx(_e,{children:r})})},e)},e):a.jsx(te,{direction:"row",align:"center",spacing:1,children:a.jsx(_e,{children:r})},r)}function fUe(t){return!!t}function pUe(t){return typeof t=="object"&&"breadcrumb"in t?t.breadcrumb:null}function mUe(t){return!!t}function hUe(t){if(t.handle){if(typeof t.handle=="object")return t.handle;if(typeof t.handle=="function")return t.handle(t)}return null}function gUe(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(G0,{appBar:!0,navigation:!0,fullWidth:!0,children:a.jsx(zA,{children:a.jsx(Tr,{})})}),t[0]=e):e=t[0],e}function _Ue(){const t=Nr(xUe),e=Nr(bUe),r=Nr(yUe),n=Nr(vUe);return!!(t||e.length||r||n)}function vUe(t){return t.drawerOpen}function yUe(t){return t.confirmationSimpleDialogOpen}function bUe(t){return t.dialogsOpen}function xUe(t){return t.confirmationDialogOpen}function rN(){const t=he.c(2);if(_Ue()){let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{asSnackbar:!0}),t[0]=n):n=t[0],n}let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(G0,{fullWidth:!0,fullHeight:!0,children:a.jsx(zA,{transparent:!0,children:a.jsx(Tr,{})})}),t[1]=r):r=t[1],r}function SUe(t){const e=he.c(15),{alt:r,size:n,src:s,variant:i,color:o,children:l,initials:c}=t,u=s===void 0?"":s;let d=null;if(c&&r){let g;e[0]!==r?(g=r.split(" ").map(wUe).slice(0,2).join(""),e[0]=r,e[1]=g):g=e[1],d=g}else l&&(d=l);const f=d;let p;e[2]!==o?(p=o&&{backgroundColor:o},e[2]=o,e[3]=p):p=e[3];let m;e[4]!==n?(m=n&&{height:n,width:n},e[4]=n,e[5]=m):m=e[5];let h;e[6]!==p||e[7]!==m?(h={...p,...m},e[6]=p,e[7]=m,e[8]=h):h=e[8];let _;return e[9]!==r||e[10]!==f||e[11]!==u||e[12]!==h||e[13]!==i?(_=a.jsx(HNe,{alt:r,src:u,variant:i,sx:h,"data-testid":"avatar",children:f}),e[9]=r,e[10]=f,e[11]=u,e[12]=h,e[13]=i,e[14]=_):_=e[14],_}function wUe(t){return t[0]}function CUe(t){const e=he.c(21),{onClick:r,fullname:n,description:s,image:i,menuItems:o,hideFullName:l}=t,c=ci();let u;e[0]!==c.breakpoints?(u=c.breakpoints.up("md"),e[0]=c.breakpoints,e[1]=u):u=e[1];const d=Nd(u),{menuOpen:f}=Jt(),p=Nd(c.breakpoints.down($.appBarMobileBreakpoint))?{display:"inline-block",cursor:"pointer",marginLeft:"auto",position:"relative",top:"-44px"}:{display:"inline-block",cursor:"pointer",marginLeft:"auto"};let m;e[2]!==o||e[3]!==f||e[4]!==r?(m=x=>{x.preventDefault(),r&&r(x),o&&o.length&&f({anchorEl:x.currentTarget,items:o,anchorOrigin:{vertical:"bottom",horizontal:"right"}})},e[2]=o,e[3]=f,e[4]=r,e[5]=m):m=e[5];const h=m;let _;e[6]!==s||e[7]!==n||e[8]!==l||e[9]!==d?(_=d&&a.jsxs(gt,{children:[!l&&a.jsx(gt,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(_e,{type:"body1",align:"right",lineHeight:1,fontWeight:600,children:n})}),s&&s.length&&a.jsx(te,{direction:"row",align:"baseline",justify:"flex-end",spacing:.5,divided:s.length>1,children:s.map(AUe)})]}),e[6]=s,e[7]=n,e[8]=l,e[9]=d,e[10]=_):_=e[10];let g;e[11]!==n||e[12]!==i?(g=a.jsx(SUe,{alt:n,src:i,size:40,initials:!0}),e[11]=n,e[12]=i,e[13]=g):g=e[13];let y;e[14]!==_||e[15]!==g?(y=a.jsxs(te,{direction:"row",align:"center",justify:"flex-end",children:[_,g]}),e[14]=_,e[15]=g,e[16]=y):y=e[16];let b;return e[17]!==h||e[18]!==y||e[19]!==p?(b=a.jsx(gt,{sx:p,onClick:h,"data-testid":"profile-card",children:y}),e[17]=h,e[18]=y,e[19]=p,e[20]=b):b=e[20],b}function AUe(t,e){return a.jsx(_e,{lineHeight:1,type:"caption",children:t},e)}const kUe=t=>I.createElement("svg",{width:66,height:18,viewBox:"0 0 66 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 18V0H66V18H0ZM4 14H61.9862H62V4H4V14Z",fill:"#01A982"}));function MUe({productName:t}){const e=ci();return a.jsxs(te,{direction:"row",align:"center",spacing:3,nowrap:!0,children:[a.jsx(gt,{sx:{width:"66px",height:"18px"},children:a.jsx(kUe,{})}),a.jsxs(_e,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[e.breakpoints.up(445)]:{width:"100%"},[e.breakpoints.down(445)]:{width:"70%"},[e.breakpoints.down(434)]:{width:"65%"},[e.breakpoints.down(410)]:{width:"60%"},[e.breakpoints.down(390)]:{width:"55%"},[e.breakpoints.down(367)]:{width:"45%"}},children:[t.includes("HPE")&&a.jsx(gt,{component:"span",sx:{fontWeight:500},children:"HPE"}),a.jsxs(gt,{component:"span",children:[" ",t.replace("HPE","")]})]})]})}function PUe(t){const e=he.c(18),{children:r,info:n,siteSelector:s}=t,{hostname:i,product_name:o}=n;let l,c;e[0]!==i||e[1]!==o?(l=()=>{document.title=i===window.location.hostname?`${i} - ${o}`:`${i} - ${window.location.hostname} - ${o}`},c=[i,o],e[0]=i,e[1]=o,e[2]=l,e[3]=c):(l=e[2],c=e[3]),I.useEffect(l,c);const u=ci(),d=aC(u.breakpoints.down($.appBarMobileBreakpoint))?{my:4,mx:.5}:"";let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={borderBottom:"1px solid",borderColor:"divider"},e[4]=f):f=e[4];let p;e[5]!==d?(p={height:"60px !important",minHeight:"60px !important",gap:"10px",...d},e[5]=d,e[6]=p):p=e[6];let m;e[7]!==o?(m=a.jsx(MUe,{productName:o}),e[7]=o,e[8]=m):m=e[8];let h;e[9]!==s||e[10]!==m?(h=a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[m,s]}),e[9]=s,e[10]=m,e[11]=h):h=e[11];let _;e[12]!==r||e[13]!==h?(_=a.jsxs(te,{justify:"space-between",direction:"row",fullWidth:!0,children:[h,r]}),e[12]=r,e[13]=h,e[14]=_):_=e[14];let g;return e[15]!==p||e[16]!==_?(g=a.jsx(hNe,{elevation:0,color:"inherit",sx:f,children:a.jsx(tN,{sx:p,children:_})}),e[15]=p,e[16]=_,e[17]=g):g=e[17],g}function En(t){const e=he.c(21);let r,n,s,i,o,l,c;e[0]!==t?({onClick:o,disabled:n,value:c,children:r,divider:s,icon:i,...l}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7]);const u=`menu-item-${c}`;let d;e[8]!==i?(d=i&&a.jsx(LO,{sx:{fontSize:"18px"},children:i}),e[8]=i,e[9]=d):d=e[9];let f;e[10]!==r?(f=a.jsx(dA,{children:r}),e[10]=r,e[11]=f):f=e[11];let p;return e[12]!==n||e[13]!==s||e[14]!==o||e[15]!==l||e[16]!==u||e[17]!==d||e[18]!==f||e[19]!==c?(p=a.jsxs(E_,{divider:s,onClick:o,disabled:n,value:c,"data-testid":u,...l,children:[d,f]}),e[12]=n,e[13]=s,e[14]=o,e[15]=l,e[16]=u,e[17]=d,e[18]=f,e[19]=c,e[20]=p):p=e[20],p}function jUe(t){const e=he.c(40),{darkText:r,lightText:n,systemText:s,title:i}=t,o=Nr(EUe),l=Nr(TUe);let c;e[0]!==l?(c=N=>()=>{l(N)},e[0]=l,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={px:2,pb:1,pt:.5},e[2]=d):d=e[2];let f;e[3]!==i?(f=a.jsx(_e,{color:"text.secondary",sx:d,children:i}),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==u?(p=u("dark"),e[5]=u,e[6]=p):p=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(ge.Darkmode,{}),e[7]=m):m=e[7];const h=o==="dark"?"divider":"none";let _;e[8]!==h?(_={backgroundColor:h},e[8]=h,e[9]=_):_=e[9];let g;e[10]!==r||e[11]!==p||e[12]!==_?(g=a.jsx(En,{onClick:p,icon:m,sx:_,children:r}),e[10]=r,e[11]=p,e[12]=_,e[13]=g):g=e[13];let y;e[14]!==u?(y=u("light"),e[14]=u,e[15]=y):y=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(ge.Lightmode,{}),e[16]=b):b=e[16];const x=o==="light"?"divider":"none";let w;e[17]!==x?(w={backgroundColor:x},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==n||e[20]!==w||e[21]!==y?(C=a.jsx(En,{onClick:y,icon:b,sx:w,children:n}),e[19]=n,e[20]=w,e[21]=y,e[22]=C):C=e[22];let k;e[23]!==u?(k=u("system"),e[23]=u,e[24]=k):k=e[24];let A;e[25]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(ge.Monitor,{}),e[25]=A):A=e[25];const P=o==="system"?"divider":"none";let T;e[26]!==P?(T={backgroundColor:P},e[26]=P,e[27]=T):T=e[27];let j;e[28]!==s||e[29]!==k||e[30]!==T?(j=a.jsx(En,{onClick:k,icon:A,sx:T,children:s}),e[28]=s,e[29]=k,e[30]=T,e[31]=j):j=e[31];let R;e[32]!==C||e[33]!==j||e[34]!==f||e[35]!==g?(R=a.jsxs(pv,{children:[f,g,C,j]}),e[32]=C,e[33]=j,e[34]=f,e[35]=g,e[36]=R):R=e[36];let D;e[37]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx("div",{children:a.jsx(Zr,{size:"small",sx:{fontSize:"22px",mt:"2px"},children:a.jsx(ge.DarkModeToggle,{})})}),e[37]=D):D=e[37];let O;return e[38]!==R?(O=a.jsx(Mn,{opaque:!0,disableFocusListener:!0,enterTouchDelay:0,title:R,children:D}),e[38]=R,e[39]=O):O=e[39],O}function TUe(t){return t.setThemeMode}function EUe(t){return t.themeMode}function wae(){const t=he.c(13),e=Ye();let r;t[0]!==e?(r=e.formatMessage({id:"darkmode.title"}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=e.formatMessage({id:"darkmode.dark"}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=e.formatMessage({id:"darkmode.light"}),t[4]=e,t[5]=s):s=t[5];let i;t[6]!==e?(i=e.formatMessage({id:"darkmode.system"}),t[6]=e,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==n||t[10]!==s||t[11]!==i?(o=a.jsx(jUe,{title:r,darkText:n,lightText:s,systemText:i}),t[8]=r,t[9]=n,t[10]=s,t[11]=i,t[12]=o):o=t[12],o}const Tt=()=>!0,Cae=t=>!["","/","/site-loader"].includes(t);function ro({nf:t,rootUrl:e,applyActionUrl:r,persistActionUrl:n,reloadActionUrl:s,factoryResetActionUrl:i}){return{[e]:o=>et({permissions:ie.configuration,activeServicesNames:[t],services:o}),[r]:Tt,[n]:Tt,[s]:Tt,[i]:Tt}}function RUe({nf:t,rootUrl:e,connectionsUrl:r,connectionsDeleteActionUrl:n,connectionsResetActionUrl:s,listenersUrl:i}){return{[e]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[r]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[i]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[n]:Tt,[s]:Tt}}function no({nf:t,rootUrl:e,joinClusterActionUrl:r,leaveClusterActionUrl:n,leaveCpWithoutConsensusActionUrl:s,removeApDeadNodesActionUrl:i,applyBootConfigUrl:o}){return{[e]:l=>et({permissions:ie.configuration,activeServicesNames:[t],services:l}),[o]:Tt,...r&&{[r]:Tt},...n&&{[n]:Tt},...s&&{[s]:Tt},...i&&{[i]:Tt}}}const IUe={[$.urls.amf]:t=>et({permissions:[ie.configuration,ie.monitoring],activeServicesNames:[ue.AMF],services:t}),[$.urls.amfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF],services:t}),...RUe({nf:ue.AMF,rootUrl:$.urls.amfStatusNgap,connectionsUrl:$.urls.amfStatusNgapConnections,connectionsDeleteActionUrl:$.urls.amfStatusNgapConnectionsDelete_Action,connectionsResetActionUrl:$.urls.amfStatusNgapConnectionsReset_Action,listenersUrl:$.urls.amfStatusNgapListeners}),...no({nf:ue.AMF,rootUrl:$.urls.amfCluster,applyBootConfigUrl:$.urls.amfClusterApplyBootConfig_Action}),...ro({nf:ue.AMF,rootUrl:$.urls.amfConfiguration,applyActionUrl:$.urls.amfConfigurationApply_Action,persistActionUrl:$.urls.amfConfigurationPersist_Action,reloadActionUrl:$.urls.amfConfigurationReload_Action,factoryResetActionUrl:$.urls.amfConfigurationFactoryReset_Action})},DUe={[$.urls.ausf]:t=>et({permissions:[ie.configuration],activeServicesNames:[ue.AUSF],services:t}),...no({nf:ue.AUSF,rootUrl:$.urls.ausfCluster,applyBootConfigUrl:$.urls.ausfClusterApplyBootConfig_Action}),...ro({nf:ue.AUSF,rootUrl:$.urls.ausfConfiguration,applyActionUrl:$.urls.ausfConfigurationApply_Action,persistActionUrl:$.urls.ausfConfigurationPersist_Action,reloadActionUrl:$.urls.ausfConfigurationReload_Action,factoryResetActionUrl:$.urls.ausfConfigurationFactoryReset_Action})};function Fp({nf:t,rootUrl:e,connectionsUrl:r,peersUrl:n}){return{[e]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s}),[r]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s}),[n]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s})}}function qA({nf:t,rootUrl:e,socketsUrl:r,peersUrl:n,blockedPeersUrl:s,blockedPeersFlushActionUrl:i}){return{[e]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[r]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[n]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),...s&&i&&{[s]:o=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:o}),[i]:Tt}}}const $Ue={[$.urls.bmsc]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.BMSC],services:t}),[$.urls.bmscStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.BMSC],services:t}),...Fp({nf:ue.BMSC,rootUrl:$.urls.bmscStatusDiameter,connectionsUrl:$.urls.bmscStatusDiameterConnections,peersUrl:$.urls.bmscStatusDiameterPeers}),...qA({nf:ue.BMSC,rootUrl:$.urls.bmscStatusGtpc,socketsUrl:$.urls.bmscStatusGtpcSockets,peersUrl:$.urls.bmscStatusGtpcPeers}),...no({nf:ue.BMSC,rootUrl:$.urls.bmscCluster,applyBootConfigUrl:$.urls.bmscClusterApplyBootConfig_Action}),...ro({nf:ue.BMSC,rootUrl:$.urls.bmscConfiguration,applyActionUrl:$.urls.bmscConfigurationApply_Action,persistActionUrl:$.urls.bmscConfigurationPersist_Action,reloadActionUrl:$.urls.bmscConfigurationReload_Action,factoryResetActionUrl:$.urls.bmscConfigurationFactoryReset_Action})};function OUe({nf:t,rootUrl:e}){return{[e]:r=>et({permissions:ie.monitoring,activeServicesNames:[t],services:r})}}const LUe={[$.urls.chf]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.CHF],services:t}),...no({nf:ue.CHF,rootUrl:$.urls.chfCluster,applyBootConfigUrl:$.urls.chfClusterApplyBootConfig_Action}),[$.urls.chfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.CHF],services:t}),...Fp({nf:ue.CHF,rootUrl:$.urls.chfStatusDiameter,connectionsUrl:$.urls.chfStatusDiameterConnections,peersUrl:$.urls.chfStatusDiameterPeers}),...ro({nf:ue.CHF,rootUrl:$.urls.chfConfiguration,applyActionUrl:$.urls.chfConfigurationApply_Action,persistActionUrl:$.urls.chfConfigurationPersist_Action,reloadActionUrl:$.urls.chfConfigurationReload_Action,factoryResetActionUrl:$.urls.chfConfigurationFactoryReset_Action}),[$.urls.chfStatusGtpPrime]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.CHF],services:t}),...OUe({nf:ue.CHF,rootUrl:$.urls.chfStatusGtpPrimeConnections})},NUe={[$.urls.dra]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.DRA],services:t}),[$.urls.draStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.DRA],services:t}),...Fp({nf:ue.DRA,rootUrl:$.urls.draStatusDiameter,connectionsUrl:$.urls.draStatusDiameterConnections,peersUrl:$.urls.draStatusDiameterPeers}),...no({nf:ue.DRA,rootUrl:$.urls.draCluster,applyBootConfigUrl:$.urls.draClusterApplyBootConfig_Action}),...ro({nf:ue.DRA,rootUrl:$.urls.draConfiguration,applyActionUrl:$.urls.draConfigurationApply_Action,persistActionUrl:$.urls.draConfigurationPersist_Action,factoryResetActionUrl:$.urls.draConfigurationFactoryReset_Action,reloadActionUrl:$.urls.draConfigurationReload_Action})},FUe={[$.urls.dsm]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),...ro({nf:ue.DSM,rootUrl:$.urls.dsmConfiguration,applyActionUrl:$.urls.dsmConfigurationApply_Action,persistActionUrl:$.urls.dsmConfigurationPersist_Action,reloadActionUrl:$.urls.dsmConfigurationReload_Action,factoryResetActionUrl:$.urls.dsmConfigurationFactoryReset_Action}),[$.urls.dsmZones]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesEntries]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesDetail]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesCreate_Action]:Tt,[$.urls.dsmZonesDelete_Action]:Tt,[$.urls.dsmZonesDownload]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),...no({nf:ue.DSM,rootUrl:$.urls.dsmCluster,applyBootConfigUrl:$.urls.dsmClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.dsmClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.dsmClusterLeaveCluster_Action})},UUe={[$.urls.eir]:t=>et({permissions:[ie.provisioning,ie.monitoring,ie.configuration,ie.management],activeServicesNames:[ue.EIR],services:t}),[$.urls.eirStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.EIR],services:t}),...Fp({nf:ue.EIR,rootUrl:$.urls.eirStatusDiameter,connectionsUrl:$.urls.eirStatusDiameterConnections,peersUrl:$.urls.eirStatusDiameterPeers}),...ro({nf:ue.EIR,rootUrl:$.urls.eirConfiguration,applyActionUrl:$.urls.eirConfigurationApply_Action,persistActionUrl:$.urls.eirConfigurationPersist_Action,reloadActionUrl:$.urls.eirConfigurationReload_Action,factoryResetActionUrl:$.urls.eirConfigurationFactoryReset_Action}),[$.urls.eirRules]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirRulesEntries]:()=>et({permissions:ie.provisioning}),[$.urls.eirRulesDetails]:()=>et({permissions:ie.provisioning}),[$.urls.eirRulesCreateBulk_Action]:Tt,[$.urls.eirRulesCreate_Action]:Tt,[$.urls.eirRulesUpdate_Action]:Tt,[$.urls.eirRulesDelete_Action]:Tt,[$.urls.eirRulesEquipmentConfigurationSet]:()=>et({permissions:ie.provisioning}),[$.urls.eirAutoRules]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirAutorulesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirAutorulesCreateBulk_Action]:Tt,[$.urls.eirAutorulesCreate_Action]:Tt,[$.urls.eirAutorulesUpdate_Action]:Tt,[$.urls.eirAutorulesDelete_Action]:Tt,...no({nf:ue.EIR,rootUrl:$.urls.eirCluster,applyBootConfigUrl:$.urls.eirClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.eirClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.eirClusterLeaveCluster_Action})};function nN({nf:t,rootUrl:e,socketsUrl:r}){return{[e]:n=>et({permissions:ie.monitoring,activeServicesNames:[t],services:n}),[r]:n=>et({permissions:ie.monitoring,activeServicesNames:[t],services:n})}}function sN({nf:t,rootUrl:e,createUrl:r,deleteUrl:n}){return{[e]:s=>et({permissions:ie.lawful_interception,activeServicesNames:[t],services:s}),[r]:Tt,[n]:Tt}}const BUe={[$.urls.mme]:t=>et({permissions:[ie.monitoring,ie.configuration,ie.lawful_interception],activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...Fp({nf:ue.MME,rootUrl:$.urls.mmeStatusDiameter,connectionsUrl:$.urls.mmeStatusDiameterConnections,peersUrl:$.urls.mmeStatusDiameterPeers}),[$.urls.mmeStatusS1ap]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnectionsDisconnect]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnectionsReset]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apListeners]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...qA({nf:ue.MME,rootUrl:$.urls.mmeStatusGtpc,socketsUrl:$.urls.mmeStatusGtpcSockets,peersUrl:$.urls.mmeStatusGtpcPeers,blockedPeersUrl:$.urls.mmeStatusGtpcBlockedPeers,blockedPeersFlushActionUrl:$.urls.mmeStatusGtpcBlockedPeersFlush_Action}),...nN({nf:ue.MME,rootUrl:$.urls.mmeStatusGtpu,socketsUrl:$.urls.mmeStatusGtpuSockets}),[$.urls.mmeStatusSgs]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSgsConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcap]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcapConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcapListeners]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDns]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDnsCache]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDnsCacheFlush]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusM3]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusM3Connections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...no({nf:ue.MME,rootUrl:$.urls.mmeCluster,applyBootConfigUrl:$.urls.mmeClusterApplyBootConfig_Action}),...ro({nf:ue.MME,rootUrl:$.urls.mmeConfiguration,applyActionUrl:$.urls.mmeConfigurationApply_Action,persistActionUrl:$.urls.mmeConfigurationPersist_Action,reloadActionUrl:$.urls.mmeConfigurationReload_Action,factoryResetActionUrl:$.urls.mmeConfigurationFactoryReset_Action}),...sN({nf:ue.MME,rootUrl:$.urls.mmeLawfulInterception,createUrl:$.urls.mmeLawfulInterceptionCreate_Action,deleteUrl:$.urls.mmeLawfulInterceptionDelete_Action})},zUe={[$.urls.monitoring]:()=>et({permissions:ie.monitoring}),[$.urls.monitoringUeStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF,ue.SMF,ue.UDR,ue.MME,ue.UPF,ue.PCF,ue.SGWC],partialActiveServices:!0,services:t}),[$.urls.monitoringUeStatusDetails]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF,ue.SMF,ue.UDR,ue.MME,ue.UPF,ue.PCF,ue.SGWC],partialActiveServices:!0,services:t}),[$.urls.monitoringUeStatusDetailsUdmReattach_Action]:Tt,[$.urls.monitoringUeStatusDetailsAmf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF],services:t}),[$.urls.monitoringUeStatusDetailsAmfRemove_Action]:Tt,[$.urls.monitoringUeStatusDetailsSmf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.monitoringUeStatusDetailsUpf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.monitoringUeStatusDetailsUdr]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UDR],services:t}),[$.urls.monitoringUeStatusDetailsMme]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.monitoringUeStatusDetailsMmeDisconnect_Action]:Tt,[$.urls.monitoringUeStatusDetailsMmeDetach_Action]:Tt,[$.urls.monitoringUeStatusDetailsMmePurge_Action]:Tt,[$.urls.monitoringUeStatusDetailsSgwc]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.monitoringUeStatusDetailsPcf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.PCF],services:t}),[$.urls.monitoringCoreStatistics]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GRAFANA],services:t}),[$.urls.monitoringSystem]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GRAFANA],services:t}),[$.urls.monitoringAlerts]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.ALERTMANAGER],services:t})},qUe={[$.urls.network]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusInterfaces]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusNeighbors]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusNeighborsFlush_Action]:Tt,[$.urls.networkStatusRoutes]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusRules]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBird]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBirdProtocols]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBirdBfdSessions]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),...ro({nf:ue.NCM,rootUrl:$.urls.networkConfiguration,applyActionUrl:$.urls.networkConfigurationApply_Action,persistActionUrl:$.urls.networkConfigurationPersist_Action,reloadActionUrl:$.urls.networkConfigurationReload_Action,factoryResetActionUrl:$.urls.networkConfigurationFactoryReset_Action})},VUe={[$.urls.nrf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NRF],services:t}),...ro({nf:ue.NRF,rootUrl:$.urls.nrfConfiguration,applyActionUrl:$.urls.nrfConfigurationApply_Action,persistActionUrl:$.urls.nrfConfigurationPersist_Action,reloadActionUrl:$.urls.nrfConfigurationReload_Action,factoryResetActionUrl:$.urls.nrfConfigurationFactoryReset_Action}),[$.urls.nrfStaticProfiles]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStaticProfilesDetails]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStaticProfilesCreate_Action]:Tt,[$.urls.nrfStaticProfilesUpdate_Action]:Tt,[$.urls.nrfStaticProfilesDelete_Action]:Tt,...no({nf:ue.NRF,rootUrl:$.urls.nrfCluster,applyBootConfigUrl:$.urls.nrfClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.nrfClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.nrfClusterLeaveCluster_Action})},HUe={[$.urls.pcf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.PCF],services:t}),[$.urls.pcfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.PCF],services:t}),...Fp({nf:ue.PCF,rootUrl:$.urls.pcfStatusDiameter,connectionsUrl:$.urls.pcfStatusDiameterConnections,peersUrl:$.urls.pcfStatusDiameterPeers}),...no({nf:ue.PCF,rootUrl:$.urls.pcfCluster,applyBootConfigUrl:$.urls.pcfClusterApplyBootConfig_Action}),...ro({nf:ue.PCF,rootUrl:$.urls.pcfConfiguration,applyActionUrl:$.urls.pcfConfigurationApply_Action,persistActionUrl:$.urls.pcfConfigurationPersist_Action,reloadActionUrl:$.urls.pcfConfigurationReload_Action,factoryResetActionUrl:$.urls.pcfConfigurationFactoryReset_Action})},GUe={[$.urls.platform]:()=>et({permissions:ie.management}),[$.urls.platformAuthentication]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationStrategies]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationAuthConfig]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationTerms]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationBackendsUpdate_Action]:Tt,[$.urls.platformAuthenticationOpenIdConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationRadiusConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationLdapConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationAuthConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationOpenIdConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationTermsUpdate_Action]:Tt,[$.urls.platformUsers]:()=>et({permissions:ie.management}),[$.urls.platformUsersEntries]:()=>et({permissions:ie.management}),[$.urls.platformUsersDetails]:()=>et({permissions:ie.management}),[$.urls.platformUsersAudits]:()=>et({permissions:ie.management}),[$.urls.platformUsersCreate_Action]:Tt,[$.urls.platformUsersUpdate_Action]:Tt,[$.urls.platformUsersDelete_Action]:Tt,[$.urls.platformUsersPasswordChange_Action]:Tt,[$.urls.platformUsersRevokeTokens_Action]:Tt,[$.urls.platformUsersCurrentUserPasswordChange_Action]:Tt,[$.urls.platformRoles]:()=>et({permissions:ie.management}),[$.urls.platformRolesEntries]:()=>et({permissions:ie.management}),[$.urls.platformRolesCreate_Action]:Tt,[$.urls.platformRolesUpdate_Action]:Tt,[$.urls.platformRolesDelete_Action]:Tt,[$.urls.platformRolesDetails]:()=>et({permissions:ie.management}),[$.urls.platformTls]:()=>et({permissions:ie.management}),[$.urls.platformTlsConfigurationUpdate_Action]:Tt,[$.urls.platformTlsClientCertificateUpdate_Action]:Tt,[$.urls.platformTlsServerCertificateUpdate_Action]:Tt,[$.urls.platformLogShipping]:()=>et({permissions:ie.management}),[$.urls.platformLogShippingApply_Action]:Tt,[$.urls.platformLogShippingFactoryReset_Action]:Tt,[$.urls.platformKpiShipping]:()=>et({permissions:ie.management}),[$.urls.platformKpiShippingApply_Action]:Tt,[$.urls.platformKpiShippingFactoryReset_Action]:Tt,[$.urls.platformAlertShipping]:()=>et({permissions:ie.management}),[$.urls.platformAlertShippingApply_Action]:Tt,[$.urls.platformAlertShippingFactoryReset_Action]:Tt,...no({nf:ue.PLS,rootUrl:$.urls.platformCluster,applyBootConfigUrl:$.urls.platformClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.platformClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.platformClusterLeaveCluster_Action})},WUe={[$.urls.sgwc]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),...qA({nf:ue.SGWC,rootUrl:$.urls.sgwcStatusGtpc,socketsUrl:$.urls.sgwcStatusGtpcSockets,peersUrl:$.urls.sgwcStatusGtpcPeers}),[$.urls.sgwcStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),...no({nf:ue.SGWC,rootUrl:$.urls.sgwcCluster,applyBootConfigUrl:$.urls.sgwcClusterApplyBootConfig_Action}),...ro({nf:ue.SGWC,rootUrl:$.urls.sgwcConfiguration,applyActionUrl:$.urls.sgwcConfigurationApply_Action,persistActionUrl:$.urls.sgwcConfigurationPersist_Action,reloadActionUrl:$.urls.sgwcConfigurationReload_Action,factoryResetActionUrl:$.urls.sgwcConfigurationFactoryReset_Action})},YUe={[$.urls.smf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),...qA({nf:ue.SMF,rootUrl:$.urls.smfStatusGtpc,socketsUrl:$.urls.smfStatusGtpcSockets,peersUrl:$.urls.smfStatusGtpcPeers}),...nN({nf:ue.SMF,rootUrl:$.urls.smfStatusGtpu,socketsUrl:$.urls.smfStatusGtpuSockets}),...no({nf:ue.SMF,rootUrl:$.urls.smfCluster,applyBootConfigUrl:$.urls.smfClusterApplyBootConfig_Action}),[$.urls.smfStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),...ro({nf:ue.SMF,rootUrl:$.urls.smfConfiguration,applyActionUrl:$.urls.smfConfigurationApply_Action,persistActionUrl:$.urls.smfConfigurationPersist_Action,reloadActionUrl:$.urls.smfConfigurationReload_Action,factoryResetActionUrl:$.urls.smfConfigurationFactoryReset_Action}),...sN({nf:ue.SMF,rootUrl:$.urls.smfLawfulInterception,createUrl:$.urls.smfLawfulInterceptionCreate_Action,deleteUrl:$.urls.smfLawfulInterceptionDelete_Action})},KUe={[$.urls.smsf]:t=>et({permissions:[ie.monitoring,ie.configuration,ie.management],activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),...Fp({nf:ue.SMSF,rootUrl:$.urls.smsfStatusDiameter,connectionsUrl:$.urls.smsfStatusDiameterConnections,peersUrl:$.urls.smsfStatusDiameterPeers}),[$.urls.smsfStatusSmpp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfStatusSmppConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),...ro({nf:ue.SMSF,rootUrl:$.urls.smsfConfiguration,applyActionUrl:$.urls.smsfConfigurationApply_Action,persistActionUrl:$.urls.smsfConfigurationPersist_Action,reloadActionUrl:$.urls.smsfConfigurationReload_Action,factoryResetActionUrl:$.urls.smsfConfigurationFactoryReset_Action}),[$.urls.smsfSmsBox]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxList]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxSend_Action]:Tt,[$.urls.smsfSmsBoxMsisdn]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxMsisdnDirection]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxMsisdnDirectionDelete]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBox]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),...no({nf:ue.SMSF,rootUrl:$.urls.smsfCluster,applyBootConfigUrl:$.urls.smsfClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.smsfClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.smsfClusterLeaveCluster_Action})},QUe={[$.urls.system]:()=>et({permissions:[[ie.management],[ie.monitoring],[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemLicensing]:t=>et({permissions:ie.management,activeServicesNames:[ue.LICENSED],services:t}),[$.urls.systemLicensingInstall_Action]:Tt,[$.urls.systemLicensingDelete_Action]:Tt,[$.urls.systemBackup]:()=>et({permissions:[[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemBackupSchedules]:()=>et({permissions:[[ie.backup,ie.configuration],[ie.backup,ie.provisioning]]}),[$.urls.systemBackupSchedulesConfiguration]:()=>et({permissions:[[ie.backup,ie.configuration]]}),[$.urls.systemBackupSchedulesConfigurationBackup_Action]:Tt,[$.urls.systemBackupSchedulesNf]:()=>et({permissions:[[ie.backup,ie.provisioning]]}),[$.urls.systemBackupRestoreSchedules]:()=>et({permissions:[[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemBackupRestoreSchedulesConfiguration]:()=>et({permissions:[[ie.backup,ie.configuration]]}),[$.urls.systemBackupRestoreSchedulesConfigurationBackup_Action]:Tt,[$.urls.systemBackupRestoreSchedulesConfigurationRestore_Action]:Tt,[$.urls.systemBackupRestoreSchedulesNf]:()=>et({permissions:[[ie.backup,ie.provisioning]]}),[$.urls.systemBackupScheduleBackup_Action]:Tt,[$.urls.systemBackupScheduleRestore_Action]:Tt,[$.urls.systemBackupUpdateConfiguration_Action]:Tt,[$.urls.systemServices]:()=>et({permissions:ie.management}),[$.urls.systemServicesManagement_Action]:Tt,[$.urls.systemUpgrade]:()=>et({permissions:ie.management}),[$.urls.systemUpgradeUpload_Action]:Tt,[$.urls.systemLogs]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFollow]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsEntries]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFields]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFieldsName]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsConfig]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsConfigUpdate_Action]:Tt,[$.urls.systemLogsCursor]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsCursorItem]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemTerminal]:t=>et({canFn:Ue,permissions:ie.management,activeServicesNames:[ue.TERMINAL],services:t}),[$.urls.systemTerminalList]:t=>et({canFn:Ue,permissions:ie.management,activeServicesNames:[ue.TERMINAL],services:t}),[$.urls.restart]:()=>et({permissions:ie.management}),[$.urls.systemBootPartitions]:()=>et({permissions:ie.management}),[$.urls.systemBootPartitionsUpdate_Action]:Tt,[$.urls.systemTroubleshootDump]:()=>et({permissions:ie.management}),[$.urls.systemTroubleshootDumpCreate_Action]:Tt,[$.urls.systemTroubleshootDumpDelete_Action]:Tt},ZUe={[$.urls.udm]:t=>et({permissions:[ie.provisioning,ie.configuration,ie.monitoring],activeServicesNames:[ue.UDM],services:t}),[$.urls.udmStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UDM],services:t}),...Fp({nf:ue.UDM,rootUrl:$.urls.udmStatusDiameter,connectionsUrl:$.urls.udmStatusDiameterConnections,peersUrl:$.urls.udmStatusDiameterPeers}),...ro({nf:ue.UDM,rootUrl:$.urls.udmConfiguration,applyActionUrl:$.urls.udmConfigurationApply_Action,persistActionUrl:$.urls.udmConfigurationPersist_Action,reloadActionUrl:$.urls.udmConfigurationReload_Action,factoryResetActionUrl:$.urls.udmConfigurationFactoryReset_Action}),[$.urls.udmHomeNetworkKeys]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmHomeNetworkKeysCreate_Action]:Tt,[$.urls.udmHomeNetworkKeysDelete_Action]:Tt,[$.urls.udmHomeNetworkKeysUpload_Action]:Tt,...no({nf:ue.UDM,rootUrl:$.urls.udmCluster,applyBootConfigUrl:$.urls.udmClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.udmClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.udmClusterLeaveCluster_Action}),[$.urls.udmPlmnPrefixes]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmPlmnPrefix]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmPlmnPrefixesCreate_Action]:Tt,[$.urls.udmPlmnPrefixesUpdate_Action]:Tt,[$.urls.udmPlmnPrefixesDelete_Action]:Tt},XUe={[$.urls.udr]:t=>et({permissions:[ie.provisioning,ie.configuration,ie.transport_keys,ie.operator_codes,ie.milenage_constants],activeServicesNames:[ue.UDR],services:t}),...ro({nf:ue.UDR,rootUrl:$.urls.udrConfiguration,applyActionUrl:$.urls.udrConfigurationApply_Action,persistActionUrl:$.urls.udrConfigurationPersist_Action,reloadActionUrl:$.urls.udrConfigurationReload_Action,factoryResetActionUrl:$.urls.udrConfigurationFactoryReset_Action}),[$.urls.udrPlmns]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPlmnsCreate_Action]:Tt,[$.urls.udrPlmnsDelete_Action]:Tt,[$.urls.udrSupis]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrSupisUpload_Action]:Tt,[$.urls.udrSupisUploadAsync_Action]:Tt,[$.urls.udrSupisDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrSupisCreate_Action]:Tt,[$.urls.udrSupisUpdate_Action]:Tt,[$.urls.udrSupisDelete_Action]:Tt,[$.urls.udrProvisionedDataProfile]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrProvisionedDataProfileDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrProvisionedDataProfileCreate_Action]:Tt,[$.urls.udrProvisionedDataProfileUpdate_Action]:Tt,[$.urls.udrProvisionedDataProfileDelete_Action]:Tt,[$.urls.udrPolicyDataProfile]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPolicyDataProfileDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPolicyDataProfileCreate_Action]:Tt,[$.urls.udrPolicyDataProfileUpdate_Action]:Tt,[$.urls.udrPolicyDataProfileDelete_Action]:Tt,[$.urls.udrImsApplicationServerAcls]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsCreate_Action]:Tt,[$.urls.udrImsApplicationServerAclsUpdate_Action]:Tt,[$.urls.udrImsApplicationServerAclsDelete_Action]:Tt,[$.urls.udrImsPrivateIdentities]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesApplicationServersProfiles]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesCreate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesUpdate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesDelete_Action]:Tt,[$.urls.udrImsPrivateIdentitiesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesPrivateStatus]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesPublicStatus]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesCreate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesCreateBasic_Action]:Tt,[$.urls.udrImsPrivateIdentitiesUpdate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesDelete_Action]:Tt,[$.urls.udrImsServiceProfiles]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesCreate_Action]:Tt,[$.urls.udrImsServiceProfilesUpdate_Action]:Tt,[$.urls.udrImsServiceProfilesDelete_Action]:Tt,[$.urls.udrImsInitialFilters]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersCreate_Action]:Tt,[$.urls.udrImsInitialFiltersUpdate_Action]:Tt,[$.urls.udrImsInitialFiltersDelete_Action]:Tt,[$.urls.udrTransportKeys]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysEntries]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysDetails]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysCreate_Action]:Tt,[$.urls.udrTransportKeysUpdate_Action]:Tt,[$.urls.udrTransportKeysDelete_Action]:Tt,[$.urls.udrOperatorCodes]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesEntries]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesDetails]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesCreate_Action]:Tt,[$.urls.udrOperatorCodesUpdate_Action]:Tt,[$.urls.udrOperatorCodesDelete_Action]:Tt,[$.urls.udrCustomMilenageConstants]:t=>et({permissions:ie.milenage_constants,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrCustomMilenageConstantsUpdate_Action]:Tt,[$.urls.udrCustomMilenageConstantsDelete_Action]:Tt,...no({nf:ue.UDR,rootUrl:$.urls.udrCluster,applyBootConfigUrl:$.urls.udrClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.udrClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.udrClusterLeaveCluster_Action})},JUe={[$.urls.upf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),...nN({nf:ue.UPF,rootUrl:$.urls.upfStatusGtpu,socketsUrl:$.urls.upfStatusGtpuSockets}),...no({nf:ue.UPF,rootUrl:$.urls.upfCluster,applyBootConfigUrl:$.urls.upfClusterApplyBootConfig_Action}),...ro({nf:ue.UPF,rootUrl:$.urls.upfConfiguration,applyActionUrl:$.urls.upfConfigurationApply_Action,persistActionUrl:$.urls.upfConfigurationPersist_Action,reloadActionUrl:$.urls.upfConfigurationReload_Action,factoryResetActionUrl:$.urls.upfConfigurationFactoryReset_Action}),...sN({nf:ue.UPF,rootUrl:$.urls.upfLawfulInterception,createUrl:$.urls.upfLawfulInterceptionCreate_Action,deleteUrl:$.urls.upfLawfulInterceptionDelete_Action})},eBe={[$.urls.aaa]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.AAA],services:t}),...no({nf:ue.AAA,rootUrl:$.urls.aaaCluster,applyBootConfigUrl:$.urls.aaaClusterApplyBootConfig_Action}),[$.urls.aaaStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AAA],services:t}),[$.urls.aaaStatusRadius]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AAA],services:t}),...ro({nf:ue.AAA,rootUrl:$.urls.aaaConfiguration,applyActionUrl:$.urls.aaaConfigurationApply_Action,persistActionUrl:$.urls.aaaConfigurationPersist_Action,reloadActionUrl:$.urls.aaaConfigurationReload_Action,factoryResetActionUrl:$.urls.aaaConfigurationFactoryReset_Action})},BW={[$.urls.siteLoader]:Tt,[$.urls.profile]:Tt,[$.urls.home]:()=>et({permissions:ie.monitoring}),...qUe,...eBe,...IUe,...DUe,...$Ue,...LUe,...FUe,...NUe,...UUe,...BUe,...VUe,...HUe,...WUe,...YUe,...KUe,...ZUe,...XUe,...JUe,...zUe,...GUe,...QUe,"/marvis":Tt,"/marvis/overview":Tt,"/marvis/actions":Tt,"/marvis/minis":Tt,"/marvis/ai":Tt,"/radio":Tt},tBe=Pr(),Lt=(t,e)=>{try{return K6(t,e),!0}catch{return!1}},K6=(t,e)=>{if(!Cae(t))return;if(!BW[t])throw new Error(tBe.formatMessage({id:"route.errors.route_not_managed"},{path:t}));if(!e.length)return;const r=BW[t](e);if(r!==!0)throw r.areServicesActive?Li({type:mn.FORBIDDEN,data:Array.isArray(r.permissions)?r.permissions.join(", "):r.permissions}):Li({type:mn.SERVICE_UNAVAILABLE,data:r.services?.join(", ")})};function et({permissions:t,services:e,activeServicesNames:r,canFn:n=as,partialActiveServices:s=!1}){const i=t?n(t):!0,o=e&&r?u4e({services:e,activeServices:r,partial:s}):!0;return!i||!o?{permissions:t,services:r,hasPermissions:i,areServicesActive:o}:!0}function Aae(){const t=pie();return!Ni.isEmpty(t)}const vt=Pr();function kae(t){return t.filter(e=>!e.disabled).map(e=>e.subItems?{...e,subItems:e.subItems.filter(r=>!r.disabled)}:e).map(e=>!e.subItems||e.subItems&&e.subItems?.length>0?e:void 0).filter(e=>!!e)}function _o(t,e){return!!e.find(r=>r.name===t)?.db_cluster}function rBe({services:t}){return[{value:$.urls.home,icon:a.jsx(ge.Home,{}),label:vt.formatMessage({id:"route.home"}),disabled:!Lt($.urls.home,t)},{value:$.urls.network,icon:a.jsx(ge.NCM,{}),label:vt.formatMessage({id:"route.ncm"}),disabled:!Lt($.urls.network,t),subItems:[{value:$.urls.networkStatus,label:vt.formatMessage({id:"route.ncm.status"}),disabled:!Lt($.urls.networkStatus,t)},{value:$.urls.networkConfiguration,label:vt.formatMessage({id:"route.ncm.configuration"}),disabled:!Lt($.urls.networkConfiguration,t)}]},{value:$.urls.aaa,icon:a.jsx(ge.AAA,{}),label:vt.formatMessage({id:"route.aaa"}),disabled:!Lt($.urls.aaa,t),subItems:[{value:$.urls.aaaStatus,label:vt.formatMessage({id:"route.aaa.status"}),disabled:!Lt($.urls.aaaStatus,t)},{value:$.urls.aaaConfiguration,label:vt.formatMessage({id:"route.aaa.configuration"}),disabled:!Lt($.urls.aaaConfiguration,t)},{value:$.urls.aaaCluster,label:vt.formatMessage({id:"route.aaa.cluster"}),disabled:!Lt($.urls.aaaCluster,t)||!_o(ue.AAA,t)}]},{value:$.urls.amf,icon:a.jsx(ge.AMF,{}),label:vt.formatMessage({id:"route.amf"}),disabled:!Lt($.urls.amf,t),subItems:[{value:$.urls.amfStatus,label:vt.formatMessage({id:"route.amf.status"}),disabled:!Lt($.urls.amfStatus,t)},{value:$.urls.amfConfiguration,label:vt.formatMessage({id:"route.amf.configuration"}),disabled:!Lt($.urls.amfConfiguration,t)},{value:$.urls.amfCluster,label:vt.formatMessage({id:"route.amf.cluster"}),disabled:!Lt($.urls.amfCluster,t)||!_o(ue.AMF,t)}]},{value:$.urls.ausf,icon:a.jsx(ge.AUSF,{}),label:vt.formatMessage({id:"route.ausf"}),disabled:!Lt($.urls.ausf,t),subItems:[{value:$.urls.ausfConfiguration,label:vt.formatMessage({id:"route.ausf.configuration"}),disabled:!Lt($.urls.ausfConfiguration,t)},{value:$.urls.ausfCluster,label:vt.formatMessage({id:"route.ausf.cluster"}),disabled:!Lt($.urls.ausfCluster,t)||!_o(ue.AUSF,t)}]},{value:$.urls.bmsc,icon:a.jsx(ge.BMSC,{}),label:vt.formatMessage({id:"route.bmsc"}),disabled:!Lt($.urls.bmsc,t),subItems:[{value:$.urls.bmscStatus,label:vt.formatMessage({id:"route.bmsc.status"}),disabled:!Lt($.urls.bmscStatus,t)},{value:$.urls.bmscConfiguration,label:vt.formatMessage({id:"route.bmsc.configuration"}),disabled:!Lt($.urls.bmscConfiguration,t)},{value:$.urls.bmscCluster,label:vt.formatMessage({id:"route.bmsc.cluster"}),disabled:!Lt($.urls.bmscCluster,t)||!_o(ue.BMSC,t)}]},{value:$.urls.chf,icon:a.jsx(ge.CHF,{}),label:vt.formatMessage({id:"route.chf"}),disabled:!Lt($.urls.chf,t),subItems:[{value:$.urls.chfStatus,label:vt.formatMessage({id:"route.chf.status"}),disabled:!Lt($.urls.chfStatus,t)},{value:$.urls.chfConfiguration,label:vt.formatMessage({id:"route.chf.configuration"}),disabled:!Lt($.urls.chfConfiguration,t)},{value:$.urls.chfCluster,label:vt.formatMessage({id:"route.chf.cluster"}),disabled:!Lt($.urls.chfCluster,t)||!_o(ue.CHF,t)}]},{value:$.urls.dsm,icon:a.jsx(ge.DSM,{}),label:vt.formatMessage({id:"route.dsm"}),disabled:!Lt($.urls.dsm,t),subItems:[{value:$.urls.dsmConfiguration,label:vt.formatMessage({id:"route.dsm.configuration"}),disabled:!Lt($.urls.dsmConfiguration,t)},{value:$.urls.dsmZones,label:vt.formatMessage({id:"route.dsm.zones"}),disabled:!Lt($.urls.dsmZones,t)},{value:$.urls.dsmCluster,label:vt.formatMessage({id:"route.dsm.cluster"}),disabled:!Lt($.urls.dsmCluster,t)||!_o(ue.DSM,t)}]},{value:$.urls.dra,icon:a.jsx(ge.DRA,{}),label:vt.formatMessage({id:"route.dra"}),disabled:!Lt($.urls.dra,t),subItems:[{value:$.urls.draStatus,label:vt.formatMessage({id:"route.dra.status"}),disabled:!Lt($.urls.draStatus,t)},{value:$.urls.draConfiguration,label:vt.formatMessage({id:"route.dra.configuration"}),disabled:!Lt($.urls.draConfiguration,t)},{value:$.urls.draCluster,label:vt.formatMessage({id:"route.dra.cluster"}),disabled:!Lt($.urls.draCluster,t)||!_o(ue.DRA,t)}]},{value:$.urls.eir,icon:a.jsx(ge.EIR,{}),label:vt.formatMessage({id:"route.eir"}),disabled:!Lt($.urls.eir,t),subItems:[{value:$.urls.eirStatus,label:vt.formatMessage({id:"route.eir.status"}),disabled:!Lt($.urls.eirStatus,t)},{value:$.urls.eirConfiguration,label:vt.formatMessage({id:"route.eir.configuration"}),disabled:!Lt($.urls.eirConfiguration,t)},{value:$.urls.eirRules,label:vt.formatMessage({id:"route.eir.rules"}),disabled:!Lt($.urls.eirRules,t)},{value:$.urls.eirAutoRules,label:vt.formatMessage({id:"route.eir.auto-rules"}),disabled:!Lt($.urls.eirAutoRules,t)},{value:$.urls.eirCluster,label:vt.formatMessage({id:"route.eir.cluster"}),disabled:!Lt($.urls.eirCluster,t)||!_o(ue.EIR,t)}]},{value:$.urls.mme,icon:a.jsx(ge.MME,{}),label:vt.formatMessage({id:"route.mme"}),disabled:!Lt($.urls.mme,t),subItems:[{value:$.urls.mmeStatus,label:vt.formatMessage({id:"route.mme.status"}),disabled:!Lt($.urls.mmeStatus,t)},{value:$.urls.mmeConfiguration,label:vt.formatMessage({id:"route.mme.configuration"}),disabled:!Lt($.urls.mmeConfiguration,t)},{value:$.urls.mmeLawfulInterception,label:vt.formatMessage({id:"route.mme.lawful-interception"}),disabled:!Lt($.urls.mmeLawfulInterception,t)},{value:$.urls.mmeCluster,label:vt.formatMessage({id:"route.mme.cluster"}),disabled:!Lt($.urls.mmeCluster,t)||!_o(ue.MME,t)}]},{value:$.urls.nrf,icon:a.jsx(ge.NRF,{}),label:vt.formatMessage({id:"route.nrf"}),disabled:!Lt($.urls.nrf,t),subItems:[{value:$.urls.nrfStatus,label:vt.formatMessage({id:"route.nrf.status"}),disabled:!Lt($.urls.nrfStatus,t)},{value:$.urls.nrfConfiguration,label:vt.formatMessage({id:"route.nrf.configuration"}),disabled:!Lt($.urls.nrfConfiguration,t)},{value:$.urls.nrfStaticProfiles,label:vt.formatMessage({id:"route.nrf.static-profiles"}),disabled:!Lt($.urls.nrfStaticProfiles,t)},{value:$.urls.nrfCluster,label:vt.formatMessage({id:"route.nrf.cluster"}),disabled:!Lt($.urls.nrfCluster,t)||!_o(ue.NRF,t)}]},{value:$.urls.pcf,icon:a.jsx(ge.PCF,{}),label:vt.formatMessage({id:"route.pcf"}),disabled:!Lt($.urls.pcf,t),subItems:[{value:$.urls.pcfStatus,label:vt.formatMessage({id:"route.pcf.status"}),disabled:!Lt($.urls.pcfStatus,t)},{value:$.urls.pcfConfiguration,label:vt.formatMessage({id:"route.pcf.configuration"}),disabled:!Lt($.urls.pcfConfiguration,t)},{value:$.urls.pcfCluster,label:vt.formatMessage({id:"route.pcf.cluster"}),disabled:!Lt($.urls.pcfCluster,t)||!_o(ue.PCF,t)}]},{value:$.urls.sgwc,icon:a.jsx(ge.SGWC,{}),label:vt.formatMessage({id:"route.sgwc"}),disabled:!Lt($.urls.sgwc,t),subItems:[{value:$.urls.sgwcStatus,label:vt.formatMessage({id:"route.sgwc.status"}),disabled:!Lt($.urls.sgwcStatus,t)},{value:$.urls.sgwcConfiguration,label:vt.formatMessage({id:"route.sgwc.configuration"}),disabled:!Lt($.urls.sgwcConfiguration,t)},{value:$.urls.sgwcCluster,label:vt.formatMessage({id:"route.sgwc.cluster"}),disabled:!Lt($.urls.sgwcCluster,t)||!_o(ue.SGWC,t)}]},{value:$.urls.smf,icon:a.jsx(ge.SMF,{}),label:vt.formatMessage({id:"route.smf"}),disabled:!Lt($.urls.smf,t),subItems:[{value:$.urls.smfStatus,label:vt.formatMessage({id:"route.smf.status"}),disabled:!Lt($.urls.smfStatus,t)},{value:$.urls.smfConfiguration,label:vt.formatMessage({id:"route.smf.configuration"}),disabled:!Lt($.urls.smfConfiguration,t)},{value:$.urls.smfLawfulInterception,label:vt.formatMessage({id:"route.smf.lawful-interception"}),disabled:!Lt($.urls.smfLawfulInterception,t)},{value:$.urls.smfCluster,label:vt.formatMessage({id:"route.smf.cluster"}),disabled:!Lt($.urls.smfCluster,t)||!_o(ue.SMF,t)}]},{value:$.urls.smsf,icon:a.jsx(ge.SMSF,{}),label:vt.formatMessage({id:"route.smsf"}),disabled:!Lt($.urls.smsf,t),subItems:[{value:$.urls.smsfStatus,label:vt.formatMessage({id:"route.smsf.status"}),disabled:!Lt($.urls.smsfStatus,t)},{value:$.urls.smsfConfiguration,label:vt.formatMessage({id:"route.smsf.configuration"}),disabled:!Lt($.urls.smsfConfiguration,t)},{value:$.urls.smsfSmsBox,label:vt.formatMessage({id:"route.smsf.sms-box"}),disabled:!Lt($.urls.smsfSmsBox,t)},{value:$.urls.smsfCluster,label:vt.formatMessage({id:"route.smsf.cluster"}),disabled:!Lt($.urls.smsfCluster,t)||!_o(ue.SMSF,t)}]},{value:$.urls.udm,icon:a.jsx(ge.UDM,{}),label:vt.formatMessage({id:"route.udm"}),disabled:!Lt($.urls.udm,t),subItems:[{value:$.urls.udmStatus,label:vt.formatMessage({id:"route.udm.status"}),disabled:!Lt($.urls.udmStatus,t)},{value:$.urls.udmConfiguration,label:vt.formatMessage({id:"route.udm.configuration"}),disabled:!Lt($.urls.udmConfiguration,t)},{value:$.urls.udmPlmnPrefixes,label:vt.formatMessage({id:"route.udm.plmn-prefixes"}),disabled:!Lt($.urls.udmConfiguration,t)},{value:$.urls.udmHomeNetworkKeys,label:vt.formatMessage({id:"route.udm.home-network-keys"}),disabled:!Lt($.urls.udmHomeNetworkKeys,t)},{value:$.urls.udmCluster,label:vt.formatMessage({id:"route.udm.cluster"}),disabled:!Lt($.urls.udmCluster,t)||!_o(ue.UDM,t)}]},{value:$.urls.udr,icon:a.jsx(ge.UDR,{}),label:vt.formatMessage({id:"route.udr"}),disabled:!Lt($.urls.udr,t),subItems:[{value:$.urls.udrConfiguration,label:vt.formatMessage({id:"route.udr.configuration"}),disabled:!Lt($.urls.udrConfiguration,t)},{value:$.urls.udrPlmns,label:vt.formatMessage({id:"route.udr.plmns"}),disabled:!Lt($.urls.udrPlmns,t)},{value:$.urls.udrSupis,label:vt.formatMessage({id:"route.udr.supis"}),disabled:!Lt($.urls.udrSupis,t)},{value:$.urls.udrProvisionedDataProfile,label:vt.formatMessage({id:"route.udr.provisioned-data-profile"}),disabled:!Lt($.urls.udrProvisionedDataProfile,t)},{value:$.urls.udrPolicyDataProfile,label:vt.formatMessage({id:"route.udr.policy-data-profile"}),disabled:!Lt($.urls.udrPolicyDataProfile,t)},{value:$.urls.udrImsApplicationServerAcls,label:vt.formatMessage({id:"route.udr.ims-application-server-acls"}),disabled:!Lt($.urls.udrImsApplicationServerAcls,t)},{value:$.urls.udrImsPrivateIdentities,label:vt.formatMessage({id:"route.udr.ims-private-identities"}),disabled:!Lt($.urls.udrImsPrivateIdentities,t)},{value:$.urls.udrImsServiceProfiles,label:vt.formatMessage({id:"route.udr.ims-service-profiles"}),disabled:!Lt($.urls.udrImsServiceProfiles,t)},{value:$.urls.udrImsInitialFilters,label:vt.formatMessage({id:"route.udr.ims-initial-filters"}),disabled:!Lt($.urls.udrImsInitialFilters,t)},{value:$.urls.udrTransportKeys,label:vt.formatMessage({id:"route.udr.transport-keys"}),disabled:!Lt($.urls.udrTransportKeys,t)},{value:$.urls.udrOperatorCodes,label:vt.formatMessage({id:"route.udr.operator-codes"}),disabled:!Lt($.urls.udrOperatorCodes,t)},{value:$.urls.udrCustomMilenageConstants,label:vt.formatMessage({id:"route.udr.custom-milenage-constants"}),disabled:!Lt($.urls.udrCustomMilenageConstants,t)},{value:$.urls.udrCluster,label:vt.formatMessage({id:"route.udr.cluster"}),disabled:!Lt($.urls.udrCluster,t)||!_o(ue.UDR,t)}]},{value:$.urls.upf,icon:a.jsx(ge.UPF,{}),label:vt.formatMessage({id:"route.upf"}),disabled:!Lt($.urls.upf,t),subItems:[{value:$.urls.upfStatus,label:vt.formatMessage({id:"route.upf.status"}),disabled:!Lt($.urls.upfStatus,t)},{value:$.urls.upfConfiguration,label:vt.formatMessage({id:"route.upf.configuration"}),disabled:!Lt($.urls.upfConfiguration,t)},{value:$.urls.upfLawfulInterception,label:vt.formatMessage({id:"route.upf.lawful-interception"}),disabled:!Lt($.urls.upfLawfulInterception,t)},{value:$.urls.upfCluster,label:vt.formatMessage({id:"route.upf.cluster"}),disabled:!Lt($.urls.upfCluster,t)||!_o(ue.UPF,t)}]},{value:"/marvis",label:"P5G Marvis",icon:a.jsx(ge.Magic,{}),disabled:false,subItems:[{value:"/marvis/overview",label:"P5G Marvis Insights",disabled:false},{value:"/marvis/actions",label:"P5G Marvis Actions",disabled:false},{value:"/marvis/minis",label:"P5G Marvis Minis",disabled:false},{value:"/marvis/ai",label:"P5G Marvis AI",disabled:false}]},{value:"/radio",label:"P5G Radio",icon:a.jsx(ge.Magic,{}),disabled:false}]}function nBe({services:t}){return[{value:$.urls.monitoring,icon:a.jsx(ge.Monitoring,{}),label:vt.formatMessage({id:"route.monitoring"}),disabled:!Lt($.urls.monitoring,t),subItems:[{value:$.urls.monitoringUeStatus,label:vt.formatMessage({id:"route.monitoring.ue-status"}),icon:a.jsx(ge.UEstatus,{}),disabled:!Lt($.urls.monitoringUeStatus,t)},{value:$.urls.monitoringCoreStatistics,label:vt.formatMessage({id:"route.monitoring.core-statistics"}),icon:a.jsx(ge.Grafana,{}),external:!0,disabled:!Lt($.urls.monitoringCoreStatistics,t)},{value:$.urls.monitoringSystem,icon:a.jsx(ge.Grafana,{}),label:vt.formatMessage({id:"route.monitoring.system"}),external:!0,disabled:!Lt($.urls.monitoringSystem,t)}]},{value:$.urls.platform,icon:a.jsx(ge.Platform,{}),label:vt.formatMessage({id:"route.platform"}),disabled:!Lt($.urls.platform,t),subItems:[{value:$.urls.platformAuthentication,icon:a.jsx(ge.AuthenticationStrategies,{}),label:vt.formatMessage({id:"route.platform.auth"}),disabled:!Lt($.urls.platformAuthentication,t)},{value:$.urls.platformUsers,icon:a.jsx(ge.Users,{}),label:vt.formatMessage({id:"route.platform.users"}),disabled:!Lt($.urls.platformUsers,t)},{value:$.urls.platformRoles,icon:a.jsx(ge.Roles,{}),label:vt.formatMessage({id:"route.platform.roles"}),disabled:!Lt($.urls.platformRoles,t)},{value:$.urls.platformTls,icon:a.jsx(ge.TLS,{}),label:vt.formatMessage({id:"route.platform.tls"}),disabled:!Lt($.urls.platformTls,t)},{value:$.urls.platformLogShipping,label:vt.formatMessage({id:"route.platform.log-shipping"}),icon:a.jsx(ge.Fluentbit,{}),disabled:!Lt($.urls.platformLogShipping,t)},{value:$.urls.platformKpiShipping,label:vt.formatMessage({id:"route.platform.kpi-shipping"}),icon:a.jsx(ge.Prometheus,{}),disabled:!Lt($.urls.platformKpiShipping,t)},{value:$.urls.platformAlertShipping,label:vt.formatMessage({id:"route.platform.alert-shipping"}),icon:a.jsx(ge.Prometheus,{}),disabled:!Lt($.urls.platformAlertShipping,t)},{value:$.urls.platformCluster,label:vt.formatMessage({id:"route.platform.cluster"}),icon:a.jsx(ge.Cluster,{}),disabled:!Lt($.urls.platformCluster,t)}]},{value:$.urls.system,icon:a.jsx(ge.System,{}),label:vt.formatMessage({id:"route.system"}),disabled:!Lt($.urls.system,t),subItems:[{value:$.urls.systemLicensing,label:vt.formatMessage({id:"route.system.licensing"}),disabled:!Lt($.urls.systemLicensing,t),icon:a.jsx(ge.Licensing,{})},{value:$.urls.systemBackup,label:vt.formatMessage({id:"route.system.backup"}),disabled:!Lt($.urls.systemBackup,t),icon:a.jsx(ge.Backup,{})},{value:$.urls.systemServices,label:vt.formatMessage({id:"route.system.services"}),disabled:!Lt($.urls.systemServices,t),icon:a.jsx(ge.Service,{})},{value:$.urls.systemUpgrade,label:vt.formatMessage({id:"route.system.upgrade"}),disabled:!Lt($.urls.systemUpgrade,t),icon:a.jsx(ge.Upgrade,{})},{value:$.urls.systemLogs,icon:a.jsx(ge.Logs,{}),label:vt.formatMessage({id:"route.system.logs"}),disabled:!Lt($.urls.systemLogs,t)},{value:$.urls.systemTerminal,icon:a.jsx(ge.Terminal,{}),label:vt.formatMessage({id:"route.system.terminal"}),disabled:!Lt($.urls.systemTerminal,t)},{value:$.urls.systemTroubleshootDump,icon:a.jsx(ge.Download,{}),label:vt.formatMessage({id:"route.system.troubleshoot_dump"}),disabled:!Lt($.urls.systemTroubleshootDump,t)},{id:"restart",value:$.urls.restart,icon:a.jsx(ge.Refresh,{}),external:!0,_target:"_self",label:vt.formatMessage({id:"route.restart"}),disabled:!Lt($.urls.restart,t)},{id:"boot-partition",value:$.urls.systemBootPartitions,icon:a.jsx(ge.Servers,{}),label:vt.formatMessage({id:"route.boot_partitions"}),disabled:!Lt($.urls.systemBootPartitions,t)}]},{value:$.urls.monitoringAlerts,label:vt.formatMessage({id:"route.monitoring.alerts"}),icon:a.jsx(ge.Alerts,{}),disabled:!Lt($.urls.monitoringAlerts,t)},{value:$.urls.docs,icon:a.jsx(ge.Manual,{}),label:vt.formatMessage({id:"route.docs"}),subItems:[{value:$.urls.docsDatasheet,label:vt.formatMessage({id:"route.docs.datasheet"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsFeatureDescription,label:vt.formatMessage({id:"route.docs.feature-description"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsInstallationGuide,label:vt.formatMessage({id:"route.docs.installation-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsMonitoringGuide,label:vt.formatMessage({id:"route.docs.monitoring-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsProductDescription,label:vt.formatMessage({id:"route.docs.product-description"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsReleaseNotes,label:vt.formatMessage({id:"route.docs.release-notes"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsSecurityGuide,label:vt.formatMessage({id:"route.docs.security-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsTroubleshootingGuide,label:vt.formatMessage({id:"route.docs.troubleshooting-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsUserGuide,label:vt.formatMessage({id:"route.docs.user-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0}]},{value:$.urls.docsOas,icon:a.jsx(ge.OAS,{}),label:vt.formatMessage({id:"route.docs.oas"}),subItems:[{value:$.urls.docsOasAaa,icon:a.jsx(ge.AAA,{}),label:vt.formatMessage({id:"route.docs.oas.aaa"}),external:!0},{value:$.urls.docsOasAmf,icon:a.jsx(ge.AMF,{}),label:vt.formatMessage({id:"route.docs.oas.amf"}),external:!0},{value:$.urls.docsOasAusf,icon:a.jsx(ge.AUSF,{}),label:vt.formatMessage({id:"route.docs.oas.ausf"}),external:!0},{value:$.urls.docsOasBmsc,icon:a.jsx(ge.BMSC,{}),label:vt.formatMessage({id:"route.docs.oas.bmsc"}),external:!0},{value:$.urls.docsOasChf,icon:a.jsx(ge.CHF,{}),label:vt.formatMessage({id:"route.docs.oas.chf"}),external:!0},{value:$.urls.docsOasDra,icon:a.jsx(ge.DRA,{}),label:vt.formatMessage({id:"route.docs.oas.dra"}),external:!0},{value:$.urls.docsOasDsm,icon:a.jsx(ge.DSM,{}),label:vt.formatMessage({id:"route.docs.oas.dsm"}),external:!0},{value:$.urls.docsOasEir,icon:a.jsx(ge.EIR,{}),label:vt.formatMessage({id:"route.docs.oas.eir"}),external:!0},{value:$.urls.docsOasLicensed,icon:a.jsx(ge.Licensing,{}),label:vt.formatMessage({id:"route.docs.oas.licensed"}),external:!0},{value:$.urls.docsOasMme,icon:a.jsx(ge.MME,{}),label:vt.formatMessage({id:"route.docs.oas.mme"}),external:!0},{value:$.urls.docsOasNcm,icon:a.jsx(ge.NCM,{}),label:vt.formatMessage({id:"route.docs.oas.ncm"}),external:!0},{value:$.urls.docsOasNrf,icon:a.jsx(ge.NRF,{}),label:vt.formatMessage({id:"route.docs.oas.nrf"}),external:!0},{value:$.urls.docsOasPcf,icon:a.jsx(ge.PCF,{}),label:vt.formatMessage({id:"route.docs.oas.pcf"}),external:!0},{value:$.urls.docsOasPls,icon:a.jsx(ge.Platform,{}),label:vt.formatMessage({id:"route.docs.oas.pls"}),external:!0},{value:$.urls.docsOasSgwc,icon:a.jsx(ge.SGWC,{}),label:vt.formatMessage({id:"route.docs.oas.sgwc"}),external:!0},{value:$.urls.docsOasSmf,icon:a.jsx(ge.SMF,{}),label:vt.formatMessage({id:"route.docs.oas.smf"}),external:!0},{value:$.urls.docsOasSmsf,icon:a.jsx(ge.SMSF,{}),label:vt.formatMessage({id:"route.docs.oas.smsf"}),external:!0},{value:$.urls.docsOasUdm,icon:a.jsx(ge.UDM,{}),label:vt.formatMessage({id:"route.docs.oas.udm"}),external:!0},{value:$.urls.docsOasUdr,icon:a.jsx(ge.UDR,{}),label:vt.formatMessage({id:"route.docs.oas.udr"}),external:!0},{value:$.urls.docsOasUpf,icon:a.jsx(ge.UPF,{}),label:vt.formatMessage({id:"route.docs.oas.upf"}),external:!0},{value:$.urls.docsOasSwUpdate,icon:a.jsx(ge.Upgrade,{}),label:vt.formatMessage({id:"route.docs.oas.swUpdate"}),external:!0}]}]}const sBe=999;function Iv(t){const e=he.c(7),{badgeContent:r,color:n,children:s,variant:i,max:o,invisible:l}=t,c=n===void 0?"secondary":n,u=o===void 0?sBe:o;let d;return e[0]!==r||e[1]!==s||e[2]!==c||e[3]!==l||e[4]!==u||e[5]!==i?(d=a.jsx(ZNe,{badgeContent:r,color:c,variant:i,max:u,invisible:l,children:s}),e[0]=r,e[1]=s,e[2]=c,e[3]=l,e[4]=u,e[5]=i,e[6]=d):d=e[6],d}const Mae=I.createContext({readOnly:!1}),dn=t=>{const e=he.c(13),{canWrite:r,fullHeight:n,children:s,sx:i}=t,o=!r;let l;e[0]!==o?(l={readOnly:o},e[0]=o,e[1]=l):l=e[1];const[c]=I.useState(l);let u;e[2]!==n?(u=n&&{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},e[2]=n,e[3]=u):u=e[3];let d;e[4]!==i||e[5]!==u?(d={...u,...i},e[4]=i,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==s||e[8]!==d?(f=a.jsx(Kd,{style:d,children:s}),e[7]=s,e[8]=d,e[9]=f):f=e[9];let p;return e[10]!==c||e[11]!==f?(p=a.jsx(Mae.Provider,{value:c,children:f}),e[10]=c,e[11]=f,e[12]=p):p=e[12],p},iN=()=>I.useContext(Mae);function Xr(t){const e=he.c(8),{data:r,sx:n}=t;if(!xt(r))return null;let s=r.error.detail,i,o;e[0]!==r.error.errors?(o=r.error.errors??{},e[0]=r.error.errors,e[1]=o):o=e[1];const l=o;if(!Ni.isEmpty(l)&&typeof l=="object"&&"password"in l)s=l.password,i=r.error.detail;else if(!Ni.isEmpty(l)&&typeof l=="object"){let u;e[2]!==l?(u=JSON.stringify(l,null,2),e[2]=l,e[3]=u):u=e[3],s=u,i=r.error.detail}else r.error.title&&(i=r.error.title);let c;return e[4]!==s||e[5]!==n||e[6]!==i?(c=a.jsx(Lr,{severity:"error",title:i,message:s,sx:n,"data-testid":"query-error-alert"}),e[4]=s,e[5]=n,e[6]=i,e[7]=c):c=e[7],c}function Ys(t){const e=he.c(16);let r;e[0]!==t?(r=t===void 0?{}:t,e[0]=t,e[1]=r):r=e[1];const{editLoadTo:n}=r,{dialogClose:s}=Jt(),i=gr(),o=gr(),{load:l,data:c}=i,{data:u,state:d}=o,f=!!n;let p,m;e[2]!==s||e[3]!==u||e[4]!==d?(p=()=>{u&&!xt(u)&&d==="idle"&&s()},m=[s,u,d],e[2]=s,e[3]=u,e[4]=d,e[5]=p,e[6]=m):(p=e[5],m=e[6]),I.useEffect(p,m);let h,_;e[7]!==n||e[8]!==f||e[9]!==l?(h=()=>{f&&l(n)},_=[l,n,f],e[7]=n,e[8]=f,e[9]=l,e[10]=h,e[11]=_):(h=e[10],_=e[11]),I.useEffect(h,_);const g=f&&!c;let y;return e[12]!==i||e[13]!==g||e[14]!==o?(y={dataFetcher:i,upsertFetcher:o,isLoading:g},e[12]=i,e[13]=g,e[14]=o,e[15]=y):y=e[15],y}const iBe=dr().shape({defaultPartition:We().required()});function Dt(t){const e=he.c(6),{animation:r,height:n,width:s,variant:i,sx:o}=t,l=r===void 0?"pulse":r,c=i===void 0?"text":i,u=c==="circular"&&!n?50:n,d=c==="circular"&&!s?50:s;let f;return e[0]!==l||e[1]!==o||e[2]!==u||e[3]!==d||e[4]!==c?(f=a.jsx(mb,{animation:l,height:u,width:d,variant:c,sx:o}),e[0]=l,e[1]=o,e[2]=u,e[3]=d,e[4]=c,e[5]=f):f=e[5],f}function oBe(t){const e=he.c(15),{color:r,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checkedIcon:f,checked:p,label:m}=t;let h;e[0]!==p||e[1]!==f||e[2]!==r||e[3]!==o||e[4]!==c||e[5]!==u||e[6]!==i||e[7]!==l||e[8]!==s||e[9]!==d?(h=a.jsx(fae,{color:r,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:p,checkedIcon:f}),e[0]=p,e[1]=f,e[2]=r,e[3]=o,e[4]=c,e[5]=u,e[6]=i,e[7]=l,e[8]=s,e[9]=d,e[10]=h):h=e[10];let _;return e[11]!==n||e[12]!==m||e[13]!==h?(_=a.jsx(Rv,{disabled:n,control:h,label:m}),e[11]=n,e[12]=m,e[13]=h,e[14]=_):_=e[14],_}function aBe(t){const e=he.c(15),{label:r,radioItems:n,row:s,defaultValue:i,value:o,onChange:l}=t;let c;e[0]!==n?(c=n===void 0?[]:n,e[0]=n,e[1]=c):c=e[1];const u=c,d=s===void 0?!0:s;if(!u||!u.length)return null;let f;e[2]!==r?(f=r&&a.jsx(mv,{component:"legend",children:r}),e[2]=r,e[3]=f):f=e[3];let p;e[4]!==u?(p=u.map(lBe),e[4]=u,e[5]=p):p=e[5];let m;e[6]!==i||e[7]!==l||e[8]!==d||e[9]!==p||e[10]!==o?(m=a.jsx(pae,{value:o,defaultValue:i,row:d,onChange:l,children:p}),e[6]=i,e[7]=l,e[8]=d,e[9]=p,e[10]=o,e[11]=m):m=e[11];let h;return e[12]!==f||e[13]!==m?(h=a.jsxs(hv,{component:"fieldset",children:[f,m]}),e[12]=f,e[13]=m,e[14]=h):h=e[14],h}function lBe(t,e){return a.jsx(oBe,{label:t.label,value:t.value,disabled:t.disabled},e)}function Nc(t){const e=he.c(10),{value:r,color:n,type:s,thickness:i,label:o,variant:l,size:c,customColor:u,labelVariant:d}=t,f=s===void 0?"linear":s,p=i===void 0?3.6:i,m=d===void 0?"caption":d;let h;return e[0]!==n||e[1]!==u||e[2]!==o||e[3]!==m||e[4]!==c||e[5]!==p||e[6]!==f||e[7]!==r||e[8]!==l?(h=f==="circular"?a.jsxs(gt,{sx:{position:"relative",display:"inline-flex"},children:[a.jsxs(gt,{sx:{position:"relative",display:"flex"},children:[a.jsx(mC,{sx:{color:cBe},variant:"determinate",thickness:p,value:100,size:c}),a.jsx(mC,{color:n,variant:l,thickness:p,value:r,size:c,sx:{position:"absolute",left:0,top:0,...u&&{color:u}}})]}),a.jsx(gt,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(cn,{variant:m,component:"div",color:"text.secondary",children:o})})]}):a.jsx(R8e,{variant:l,sx:{height:`${p}px`,...u&&{color:u}},color:n,value:r}),e[0]=n,e[1]=u,e[2]=o,e[3]=m,e[4]=c,e[5]=p,e[6]=f,e[7]=r,e[8]=l,e[9]=h):h=e[9],h}function cBe(t){return t.palette.grey[300]}const _s=t=>{const e=he.c(5),{children:r,loading:n}=t;let s;e[0]!==r||e[1]!==n?(s=n?a.jsx(gt,{sx:{display:"flex",justifyContent:"center",p:10},children:a.jsx(Nc,{type:"circular",color:"primary"})}):r,e[0]=r,e[1]=n,e[2]=s):s=e[2];let i;return e[3]!==s?(i=a.jsx(yv,{children:s}),e[3]=s,e[4]=i):i=e[4],i};function uBe(){const t=he.c(30),e=Ye(),{dialogClose:r,confirmationSimpleDialogOpen:n}=Jt();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={editLoadTo:`${$.urls.system}/boot-partitions`},t[0]=s):s=t[0];const{dataFetcher:i,upsertFetcher:o}=Ys(s),{data:l}=i,{data:c,state:u,submit:d}=o,{submit:f}=gr();let p,m;t[1]!==f||t[2]!==c?(p=()=>()=>{c&&!xt(c)&&f(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},m=[f,c],t[1]=f,t[2]=c,t[3]=p,t[4]=m):(p=t[3],m=t[4]),I.useEffect(p,m);let h;t[5]!==n||t[6]!==e||t[7]!==d?(h=C=>{n({title:e.formatMessage({id:"route.system.dialog.confirm_reboot.title"}),description:e.formatMessage({id:"route.system.dialog.confirm_reboot.description"}),onConfirm:()=>{d(C,{action:"/system/boot-partitions-update",method:"PUT",encType:"application/json"})},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[5]=n,t[6]=e,t[7]=d,t[8]=h):h=t[8];const _=h;let g;t[9]!==r?(g=()=>{r()},t[9]=r,t[10]=g):g=t[10];const y=g;if(!l){let C,k;t[11]===Symbol.for("react.memo_cache_sentinel")?(C={mt:1},k=a.jsx(Dt,{variant:"rounded"}),t[11]=C,t[12]=k):(C=t[11],k=t[12]);let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsxs(te,{direction:"row",children:[a.jsx(Dt,{variant:"circular",width:22,height:22}),a.jsx(Dt,{variant:"rounded",width:200})]}),t[13]=A):A=t[13];let P;t[14]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsxs(te,{spacing:3,children:[A,a.jsxs(te,{direction:"row",children:[a.jsx(Dt,{variant:"circular",width:22,height:22}),a.jsx(Dt,{variant:"rounded",width:200})]})]}),t[14]=P):P=t[14];let T;return t[15]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(_s,{children:a.jsxs(te,{spacing:4,sx:C,children:[k,P,a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Dt,{variant:"rounded",width:90,height:36}),a.jsx(Dt,{variant:"rounded",width:90,height:36})]})]})}),t[15]=T):T=t[15],T}let b;t[16]!==l.bootPartitions.default?(b={defaultPartition:l.bootPartitions.default},t[16]=l.bootPartitions.default,t[17]=b):b=t[17];let x;t[18]!==y||t[19]!==e||t[20]!==l.bootPartitions.default||t[21]!==l.bootPartitions.primary||t[22]!==l.bootPartitions.secondary||t[23]!==c||t[24]!==u?(x=C=>{const{dirty:k}=C;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(_e,{children:e.formatMessage({id:"route.system.dialog.boot_partitions.subtitle"})}),a.jsx(gt,{children:a.jsx(Ke,{name:"defaultPartition",children:A=>{const{field:P,form:T}=A,{setFieldValue:j}=T;return a.jsx(aBe,{row:!1,radioItems:[{value:"primary",label:`${l.bootPartitions.primary} ${l.bootPartitions.default==="primary"?`(${e.formatMessage({id:"common.current"})})`:""}`},{value:"secondary",label:l.bootPartitions.secondary?`${l.bootPartitions.secondary} ${l.bootPartitions.default==="secondary"?`(${e.formatMessage({id:"common.current"})})`:""}`:e.formatMessage({id:"common.empty"}),disabled:!l.bootPartitions.secondary}],value:P.value,onChange:(R,D)=>{j(P.name,D)}})}})}),a.jsx(Xr,{data:c}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"common.form.cancel"}),disabled:u!=="idle",onClick:y}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.form.submit"}),disabled:!k,loading:u!=="idle"})]})]})})},t[18]=y,t[19]=e,t[20]=l.bootPartitions.default,t[21]=l.bootPartitions.primary,t[22]=l.bootPartitions.secondary,t[23]=c,t[24]=u,t[25]=x):x=t[25];let w;return t[26]!==_||t[27]!==b||t[28]!==x?(w=a.jsx(_s,{children:a.jsx(Wr,{validationSchema:iBe,initialValues:b,onSubmit:_,children:x})}),t[26]=_,t[27]=b,t[28]=x,t[29]=w):w=t[29],w}function dBe(){const t=he.c(35),e=ys(),r=Ye(),{confirmationDialogOpen:n,dialogOpen:s}=Jt(),i=Np(),{submit:o}=gr();i?.services;let l;t[0]!==i?.services?(l=i?.services??[],t[0]=i?.services,t[1]=l):l=t[1];const c=l;let u;t[2]!==i?.alerts?(u=()=>i?.alerts??[],t[2]=i?.alerts,t[3]=u):u=t[3],i?.alerts;let d;t[4]!==u?(d=u(),t[4]=u,t[5]=d):d=t[5];const f=d;let p;t[6]!==c?(p=nBe({services:c}),t[6]=c,t[7]=p):p=t[7];const m=p;let h;t[8]!==m?(h=kae(m),t[8]=m,t[9]=h):h=t[9];const _=h,g=f?.length;let y;t[10]!==e?(y=D=>{D.external?window.open(D.value,D._target||"_blank"):e(D.value)},t[10]=e,t[11]=y):y=t[11];const b=y;let x;t[12]!==n||t[13]!==r||t[14]!==o?(x=()=>{n({title:r.formatMessage({id:"route.system.dialog.restart.title"}),alertMessage:r.formatMessage({id:"route.system.dialog.restart.text"}),onConfirm:()=>{o(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},severity:"warning"})},t[12]=n,t[13]=r,t[14]=o,t[15]=x):x=t[15];const w=x;let C;t[16]!==s||t[17]!==r?(C=()=>{s({title:r.formatMessage({id:"route.system.dialog.boot_partitions.title"}),content:pBe})},t[16]=s,t[17]=r,t[18]=C):C=t[18];const k=C;let A;t[19]!==k||t[20]!==b||t[21]!==w?(A=D=>{e:switch(D.id){case"restart":{w();break e}case"boot-partition":{k();break e}default:b(D)}},t[19]=k,t[20]=b,t[21]=w,t[22]=A):A=t[22];const P=A;let T;if(t[23]!==_||t[24]!==g||t[25]!==P||t[26]!==b){let D;t[28]!==g||t[29]!==P||t[30]!==b?(D=O=>a.jsx(Mn,{opaque:!0,disableFocusListener:!0,enterTouchDelay:0,title:O.subItems?a.jsxs(pv,{children:[a.jsx(_e,{color:"text.secondary",sx:{px:2,pb:1,pt:.5},children:O.label}),a.jsx(gt,{className:"tooltip-items",children:O.subItems.map((N,F)=>{const{label:U,value:z,disabled:H,icon:W}=N;return a.jsx(En,{disabled:H,onClick:()=>P(N),divider:O.subItems&&F===O.subItems.findIndex(fBe)-1,icon:W,children:U},`${z}-${F}`)})})]}):O.label,children:a.jsx(gt,{children:a.jsx(Iv,{badgeContent:O.value===$.urls.monitoringAlerts?g:void 0,color:"error",children:a.jsx(Zr,{size:"small",sx:{fontSize:"20px"},onClick:()=>{O.subItems||b(O)},children:O.icon})})})},O.value),t[28]=g,t[29]=P,t[30]=b,t[31]=D):D=t[31],T=_.map(D),t[23]=_,t[24]=g,t[25]=P,t[26]=b,t[27]=T}else T=t[27];let j;t[32]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(wae,{}),t[32]=j):j=t[32];let R;return t[33]!==T?(R=a.jsxs(te,{direction:"row",spacing:1,nowrap:!0,align:"center",children:[T,j]}),t[33]=T,t[34]=R):R=t[34],R}function fBe(t){return t.id==="restart"}function pBe(){return a.jsx(uBe,{})}function oN(t){const e=Ji.getSiteNode();return!!t.unreachable_peers.find(n=>{if(typeof n=="string"){const s=n.split("@")[1]??n;return e===s}else return e===n.api_address})}function Dv(t){const e=he.c(24),{to:r,initialData:n,search:s}=t,i=gr();let o,l,c;e[0]!==i?({load:l,data:o,...c}=i,e[0]=i,e[1]=o,e[2]=l,e[3]=c):(o=e[1],l=e[2],c=e[3]);const[u,d]=I.useState(n),f=I.useRef(null);let p;e[4]!==l||e[5]!==s||e[6]!==r?(p=()=>{const A=new URLSearchParams(s);A.append("polling","true"),l(`${r}?${A}`)},e[4]=l,e[5]=s,e[6]=r,e[7]=p):p=e[7];const m=p;let h;e[8]!==m?(h=()=>{f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>{m()},$.polling.default)},e[8]=m,e[9]=h):h=e[9];const _=h;let g,y;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=()=>()=>{f.current&&window.clearTimeout(f.current)},y=[],e[10]=g,e[11]=y):(g=e[10],y=e[11]),I.useEffect(g,y);let b,x;e[12]!==o||e[13]!==_?(b=()=>{if(o&&typeof o=="object"&&"__polling_error"in o)return _();o&&d(o),_()},x=[o,_],e[12]=o,e[13]=_,e[14]=b,e[15]=x):(b=e[14],x=e[15]),I.useEffect(b,x);let w,C;e[16]!==m||e[17]!==n?(w=()=>{n||m(),d(n)},C=[m,n],e[16]=m,e[17]=n,e[18]=w,e[19]=C):(w=e[18],C=e[19]),I.useEffect(w,C);let k;return e[20]!==u||e[21]!==l||e[22]!==c?(k={load:l,data:u,...c},e[20]=u,e[21]=l,e[22]=c,e[23]=k):k=e[23],k}function Gr(t){const e=he.c(9);let r;e[0]!==t?(r=t===void 0?{useSearchParams:!0}:t,e[0]=t,e[1]=r):r=e[1];const{useSearchParams:n}=r,s=n===void 0?!0:n,i=zn(),o=Lp("."),{search:l}=to();let c;e[2]!==l||e[3]!==s?(c=s&&{search:l},e[2]=l,e[3]=s,e[4]=c):c=e[4];let u;e[5]!==i||e[6]!==o.pathname||e[7]!==c?(u={to:o.pathname,initialData:i,...c},e[5]=i,e[6]=o.pathname,e[7]=c,e[8]=u):u=e[8];const{data:d}=Dv(u);return d}function ms(t){const e=he.c(13),{id:r,label:n,color:s,variant:i,onDelete:o,size:l,disabled:c,sx:u}=t;let d;e[0]!==u?(d={flexShrink:0,width:"fit-content",...u},e[0]=u,e[1]=d):d=e[1];let f;e[2]!==r||e[3]!==o?(f=o&&r?()=>o(r):void 0,e[2]=r,e[3]=o,e[4]=f):f=e[4];let p;return e[5]!==s||e[6]!==c||e[7]!==n||e[8]!==l||e[9]!==d||e[10]!==f||e[11]!==i?(p=a.jsx(cL,{color:s,sx:d,label:n,variant:i,onDelete:f,size:l,disabled:c}),e[5]=s,e[6]=c,e[7]=n,e[8]=l,e[9]=d,e[10]=f,e[11]=i,e[12]=p):p=e[12],p}function mBe(){const t=he.c(39);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={to:$.urls.siteLoader},t[0]=e):e=t[0];const{data:r}=Dv(e),{popoverOpen:n,popoverClose:s}=Jt(),i=Ye(),{submit:o,state:l}=gr();let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=Ji.getSiteNode(),t[1]=c):c=t[1];const[u,d]=I.useState(c);let f;t[2]!==s||t[3]!==o?(f=F=>{if(!F.api_address)return;const{api_address:U}=F;d(U),o({siteNodeAddress:U},{method:"POST",encType:"application/json",action:"/"}),s()},t[2]=s,t[3]=o,t[4]=f):f=t[4];const p=f;let m;e:{if(!r){let U;t[5]===Symbol.for("react.memo_cache_sentinel")?(U=[],t[5]=U):U=t[5],m=U;break e}let F;t[6]!==r.current_node||t[7]!==r.peers||t[8]!==r.unreachable_peers?(F=[...Ni.sortBy([r.current_node,...r.peers],vBe).map(_Be),...r.unreachable_peers.map(gBe)],t[6]=r.current_node,t[7]=r.peers,t[8]=r.unreachable_peers,t[9]=F):F=t[9],m=F}const h=m;let _;t[10]!==u||t[11]!==h?(_=h.find(F=>F.api_address===u),t[10]=u,t[11]=h,t[12]=_):_=t[12];const g=_;let y,b;t[13]!==r?(y=()=>{d(F=>!F&&r?r.current_node.api_address:F)},b=[r],t[13]=r,t[14]=y,t[15]=b):(y=t[14],b=t[15]),I.useEffect(y,b);let x;t[16]!==p||t[17]!==i||t[18]!==n||t[19]!==u||t[20]!==h?(x=F=>{n({anchorEl:F.currentTarget,anchorOrigin:{horizontal:"left",vertical:"bottom"},disableGutters:!0,content:()=>a.jsx(pv,{children:h.map(U=>{const z=u===U.api_address;return a.jsx(En,{onClick:()=>{p(U)},disabled:z||U.unreachable,selected:z,sx:{opacity:U.unreachable?"0.8 !important":"1 !important"},children:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",justify:"space-between",fullWidth:!0,children:[a.jsxs(te,{direction:"row",align:"center",children:[U.unreachable?a.jsx(te,{align:"center",justify:"center",sx:{color:"error.main"},children:a.jsx(ge.StatusErrorSmall,{size:14})}):a.jsx(te,{align:"center",justify:"center",sx:{color:"success.main"},children:a.jsx(ge.StatusSuccessSmall,{size:14})}),a.jsx(te,{align:"center",children:a.jsx(_e,{children:U.name})})]}),a.jsx(te,{direction:"row",align:"center",spacing:.5,sx:{ml:4},children:U.unreachable&&a.jsx(ms,{label:i.formatMessage({id:"cluster.status.unreachable_node"}),size:"small"})})]})},`${U.name}-${U.api_address}`)})})})},t[16]=p,t[17]=i,t[18]=n,t[19]=u,t[20]=h,t[21]=x):x=t[21];const w=x;let C;t[22]!==h?(C=h.filter(hBe),t[22]=h,t[23]=C):C=t[23];const k=C.length;if(h.length<2||!r)return null;const A=g?.name;let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P={textTransform:"none"},t[24]=P):P=t[24];let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(ge.DownArrow,{size:14}),t[25]=T):T=t[25];let j;t[26]!==i||t[27]!==k?(j=k>0&&a.jsx(Mn,{title:i.formatMessage({id:k>1?"cluster.status.unreachable_nodes_count":"cluster.status.unreachable_node_count"},{count:k}),children:a.jsx(gt,{sx:{color:"warning.main",mt:1},children:a.jsx(ge.StatusWarning,{size:"20"})})}),t[26]=i,t[27]=k,t[28]=j):j=t[28];let R;t[29]!==j?(R=a.jsxs(te,{direction:"row",align:"center",spacing:1.5,children:[T,j]}),t[29]=j,t[30]=R):R=t[30];let D;t[31]!==r?(D=a.jsx(a.Fragment,{children:oN(r)?a.jsx(gt,{sx:{color:"error.main"},children:a.jsx(ge.StatusErrorSmall,{size:14})}):a.jsx(gt,{sx:{color:"success.main"},children:a.jsx(ge.StatusSuccessSmall,{size:14})})}),t[31]=r,t[32]=D):D=t[32];const O=l!=="idle";let N;return t[33]!==w||t[34]!==R||t[35]!==D||t[36]!==O||t[37]!==A?(N=a.jsx(Ze,{size:"medium",text:A,variant:"text",sx:P,endIcon:R,startIcon:D,onClick:w,disabled:O}),t[33]=w,t[34]=R,t[35]=D,t[36]=O,t[37]=A,t[38]=N):N=t[38],N}function hBe(t){return t.unreachable}function gBe(t){return typeof t=="string"?{name:"",api_address:t.split("@")[1]??t,unreachable:!0}:{name:t.name,api_address:t.api_address,unreachable:!0}}function _Be(t){return{name:t.name,api_address:t.api_address,unreachable:!1}}function vBe(t){return t.api_address}function Pae(t){const e=he.c(35),{info:r,variant:n,profileCard:s}=t,i=Ye(),o=As(),l=aC(o.breakpoints.down($.appBarMobileBreakpoint))?"5px 0 0 0":"",c=aC(o.breakpoints.down($.appBarMobileBreakpoint))?"100%":"auto",{menuClose:u}=Jt(),d=ys();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=Ih(),e[0]=f):f=e[0];const p=f;let m;e[1]!==i?(m=i.formatMessage({id:"user.menu.profile"}),e[1]=i,e[2]=m):m=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Profile,{}),e[3]=h):h=e[3];let _;e[4]!==u||e[5]!==d?(_=()=>{u(),d($.urls.profile)},e[4]=u,e[5]=d,e[6]=_):_=e[6];let g;e[7]!==m||e[8]!==_?(g={label:m,value:"profile",icon:h,onClick:_},e[7]=m,e[8]=_,e[9]=g):g=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ge.Logout,{}),e[10]=y):y=e[10];let b;e[11]!==u||e[12]!==d?(b={label:"Logout",value:"logout",icon:y,onClick:()=>{u(),d($.urls.logout,{replace:!0})}},e[11]=u,e[12]=d,e[13]=b):b=e[13];let x;e[14]!==g||e[15]!==b?(x=[g,b],e[14]=g,e[15]=b,e[16]=x):x=e[16];const w=x;let C;e[17]!==n?(C=n!=="simpleLayout"?a.jsx(mBe,{}):void 0,e[17]=n,e[18]=C):C=e[18];let k;e[19]!==l||e[20]!==c?(k={margin:l,width:c},e[19]=l,e[20]=c,e[21]=k):k=e[21];let A;e[22]!==n?(A=n==="simpleLayout"?a.jsx(wae,{}):a.jsx(dBe,{}),e[22]=n,e[23]=A):A=e[23];let P;e[24]!==s||e[25]!==w?(P=s&&a.jsx(CUe,{fullname:p?.fullname||"",menuItems:w,description:p?.sub?[p?.sub]:[""]}),e[24]=s,e[25]=w,e[26]=P):P=e[26];let T;e[27]!==k||e[28]!==A||e[29]!==P?(T=a.jsxs(te,{direction:"row",align:"center",spacing:1,sx:k,justify:"between",children:[A,P]}),e[27]=k,e[28]=A,e[29]=P,e[30]=T):T=e[30];let j;return e[31]!==r||e[32]!==T||e[33]!==C?(j=a.jsx(PUe,{info:r,siteSelector:C,children:T}),e[31]=r,e[32]=T,e[33]=C,e[34]=j):j=e[34],j}const Ti=t=>{const e=he.c(2),{children:r}=t;let n;return e[0]!==r?(n=a.jsx(vv,{children:r}),e[0]=r,e[1]=n):n=e[1],n};function aN(t){const e=he.c(20),{title:r,children:n,closeOnBackdropClick:s,closeOnEsc:i,onClose:o,fullScreen:l,maxWidth:c,open:u,"data-testid":d,disableAutoFocus:f}=t,p=i===void 0?!0:i;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={xs:"250px",sm:"500px"},e[0]=m):m=e[0];let h;e[1]!==l?(h=l&&{height:"calc(100vh - 32px)",width:"calc(100% - 32px)",maxWidth:"1400px"},e[1]=l,e[2]=h):h=e[2];let _;e[3]!==h?(_={".MuiDialog-paper":{m:2,minWidth:m,maxHeight:"calc(100vh - 32px)",boxShadow:"none",...h},my:0},e[3]=h,e[4]=_):_=e[4];const g=_;let y;e[5]!==s||e[6]!==p||e[7]!==o?(y=(C,k)=>{k==="backdropClick"&&!s||k==="escapeKeyDown"&&!p||o&&o(C,k)},e[5]=s,e[6]=p,e[7]=o,e[8]=y):y=e[8];const b=y;let x;e[9]!==r?(x=r&&a.jsx(JL,{children:r}),e[9]=r,e[10]=x):x=e[10];let w;return e[11]!==n||e[12]!==d||e[13]!==f||e[14]!==b||e[15]!==c||e[16]!==u||e[17]!==x||e[18]!==g?(w=a.jsxs(Xne,{open:u,onClose:b,sx:g,maxWidth:c,"data-testid":d,disableAutoFocus:f,children:[x,n]}),e[11]=n,e[12]=d,e[13]=f,e[14]=b,e[15]=c,e[16]=u,e[17]=x,e[18]=g,e[19]=w):w=e[19],w}function yBe(t){const e=he.c(44),{severity:r,onConfirm:n,onCancel:s,title:i,description:o,alertMessage:l,content:c,dataTestid:u,cancelButtonText:d,continueButtonText:f}=t,p=d===void 0?"Cancel":d,m=f===void 0?"Continue":f,{confirmationDialogClose:h}=Jt(),_=Nr(SBe),g=Nr(xBe),y=Nr(bBe),[b,x]=I.useState(!1),w=I.useRef(null);let C,k;e[0]!==_||e[1]!==y||e[2]!==g?(C=()=>{_&&y&&(x(!0),w.current&&(window.clearTimeout(w.current),w.current=null)),_&&!y&&(x(!1),w.current=window.setTimeout(()=>{g(null)},1e3))},k=[_,y,g],e[0]=_,e[1]=y,e[2]=g,e[3]=C,e[4]=k):(C=e[3],k=e[4]),I.useEffect(C,k);let A;e[5]!==h||e[6]!==n?(A=()=>{n(),h()},e[5]=h,e[6]=n,e[7]=A):A=e[7];const P=A;let T;e[8]!==h||e[9]!==s?(T=()=>{s&&s(),h()},e[8]=h,e[9]=s,e[10]=T):T=e[10];const j=T;let R;e[11]!==r?(R=r==="danger"&&{color:"error.main"},e[11]=r,e[12]=R):R=e[12];let D;e[13]!==R?(D={...R,fontWeight:"600"},e[13]=R,e[14]=D):D=e[14];let O;e[15]!==i?(O=i.toLocaleUpperCase(),e[15]=i,e[16]=O):O=e[16];let N;e[17]!==D||e[18]!==O?(N=a.jsx(JL,{sx:D,children:O}),e[17]=D,e[18]=O,e[19]=N):N=e[19];let F;e[20]!==o?(F=a.jsx(_e,{type:"body1",lineHeight:3,children:o}),e[20]=o,e[21]=F):F=e[21];const U=r==="danger"?"error":r||"info";let z;e[22]!==l||e[23]!==U?(z=a.jsx(Lr,{severity:U,message:l}),e[22]=l,e[23]=U,e[24]=z):z=e[24];let H;e[25]!==c||e[26]!==F||e[27]!==z?(H=a.jsxs(_s,{children:[F,z,c]}),e[25]=c,e[26]=F,e[27]=z,e[28]=H):H=e[28];let W;e[29]!==p||e[30]!==j?(W=a.jsx(Ze,{variant:"outlined",text:p,onClick:j}),e[29]=p,e[30]=j,e[31]=W):W=e[31];let K;e[32]!==m||e[33]!==P?(K=a.jsx(Ze,{text:m,onClick:P}),e[32]=m,e[33]=P,e[34]=K):K=e[34];let q;e[35]!==W||e[36]!==K?(q=a.jsxs(Ti,{children:[W,K]}),e[35]=W,e[36]=K,e[37]=q):q=e[37];let X;return e[38]!==u||e[39]!==b||e[40]!==N||e[41]!==H||e[42]!==q?(X=a.jsxs(aN,{open:b,"data-testid":u,children:[N,H,q]}),e[38]=u,e[39]=b,e[40]=N,e[41]=H,e[42]=q,e[43]=X):X=e[43],X}function bBe(t){return t.confirmationDialogOpen}function xBe(t){return t.setConfirmationDialog}function SBe(t){return t.confirmationDialogState}function wBe(t){const e=he.c(29),{title:r,cancelText:n,confirmText:s,description:i,onConfirm:o,onCancel:l}=t,c=r===void 0?"Do you confirm?":r,u=n===void 0?"Cancel":n,d=s===void 0?"Confirm":s,{confirmationSimpleDialogClose:f}=Jt(),p=Nr(kBe),m=Nr(ABe),h=Nr(CBe),[_,g]=I.useState(!1),y=I.useRef(null);let b,x;e[0]!==p||e[1]!==h||e[2]!==m?(b=()=>{p&&h&&(g(!0),y.current&&(window.clearTimeout(y.current),y.current=null)),p&&!h&&(g(!1),y.current=window.setTimeout(()=>{m(null)},1e3))},x=[p,h,m],e[0]=p,e[1]=h,e[2]=m,e[3]=b,e[4]=x):(b=e[3],x=e[4]),I.useEffect(b,x);let w;e[5]!==f||e[6]!==o?(w=()=>{o(),f()},e[5]=f,e[6]=o,e[7]=w):w=e[7];const C=w;let k;e[8]!==f||e[9]!==l?(k=()=>{l&&l(),f()},e[8]=f,e[9]=l,e[10]=k):k=e[10];const A=k;let P;e[11]!==c?(P=a.jsx(JL,{children:c}),e[11]=c,e[12]=P):P=e[12];let T;e[13]!==i?(T=i&&a.jsx(_s,{children:a.jsx(_e,{children:i})}),e[13]=i,e[14]=T):T=e[14];let j;e[15]!==u||e[16]!==A?(j=a.jsx(Ze,{variant:"outlined",text:u,onClick:A}),e[15]=u,e[16]=A,e[17]=j):j=e[17];let R;e[18]!==d||e[19]!==C?(R=a.jsx(Ze,{text:d,onClick:C}),e[18]=d,e[19]=C,e[20]=R):R=e[20];let D;e[21]!==j||e[22]!==R?(D=a.jsxs(Ti,{children:[j,R]}),e[21]=j,e[22]=R,e[23]=D):D=e[23];let O;return e[24]!==_||e[25]!==D||e[26]!==P||e[27]!==T?(O=a.jsxs(aN,{open:_,"data-testid":"confirmation-simple-dialog",children:[P,T,D]}),e[24]=_,e[25]=D,e[26]=P,e[27]=T,e[28]=O):O=e[28],O}function CBe(t){return t.confirmationSimpleDialogOpen}function ABe(t){return t.setConfirmationSimpleDialog}function kBe(t){return t.confirmationSimpleDialogState}function jae(t){const e=he.c(39);let r,n,s,i,o,l;e[0]!==t?({id:l,children:r,open:s,preventClose:i,closeIcon:n,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);const c=l===void 0?$6:l,u=Nr(jBe),d=Nr(PBe),f=Nr(MBe),[p,m]=I.useState(!1),h=I.useRef(null),{dialogClose:_}=Jt();let g;e[7]!==u||e[8]!==c?(g=u.includes(c),e[7]=u,e[8]=c,e[9]=g):g=e[9];const y=g;let b;if(e[10]!==d||e[11]!==c){let O;e[13]!==c?(O=N=>N.id===c,e[13]=c,e[14]=O):O=e[14],b=d.find(O),e[10]=d,e[11]=c,e[12]=b}else b=e[12];const x=b;let w,C;e[15]!==x||e[16]!==c||e[17]!==y||e[18]!==s||e[19]!==f?(w=()=>{typeof s<"u"||(x&&y&&(m(!0),h.current&&(window.clearTimeout(h.current),h.current=null)),x&&!y&&(m(!1),h.current=window.setTimeout(()=>{f(c)},1e3)))},C=[x,c,y,s,f],e[15]=x,e[16]=c,e[17]=y,e[18]=s,e[19]=f,e[20]=w,e[21]=C):(w=e[20],C=e[21]),I.useEffect(w,C);let k;e[22]!==_||e[23]!==c||e[24]!==i?(k=(O,N)=>{i&&i(O,N)||_(c)},e[22]=_,e[23]=c,e[24]=i,e[25]=k):k=e[25];const A=k;let P;e[26]!==_||e[27]!==c||e[28]!==i?(P=O=>{i&&i(O)||_(c)},e[26]=_,e[27]=c,e[28]=i,e[29]=P):P=e[29];const T=P,j=!!(p||s);let R;e[30]!==n||e[31]!==T?(R=n&&a.jsx(Zr,{onClick:T,sx:{position:"absolute",right:"16px",top:"8px",zIndex:1e3},children:a.jsx(ge.Close,{})}),e[30]=n,e[31]=T,e[32]=R):R=e[32];let D;return e[33]!==r||e[34]!==A||e[35]!==o||e[36]!==j||e[37]!==R?(D=a.jsxs(aN,{...o,open:j,onClose:A,children:[R,r]}),e[33]=r,e[34]=A,e[35]=o,e[36]=j,e[37]=R,e[38]=D):D=e[38],D}function MBe(t){return t.setDialogsClose}function PBe(t){return t.dialogs}function jBe(t){return t.dialogsOpen}function TBe(t){const e=he.c(21),{onClose:r,children:n,title:s,variant:i,width:o,open:l}=t,c=i===void 0?"temporary":i,u=o===void 0?300:o,d=Nr(IBe),f=Nr(RBe),p=Nr(EBe),[m,h]=I.useState(!1),_=I.useRef(null);let g;e[0]!==r?(g=()=>{r&&r({},"backdropClick")},e[0]=r,e[1]=g):g=e[1];const y=g;let b,x;e[2]!==d||e[3]!==p||e[4]!==f?(b=()=>{d&&p&&(h(!0),_.current&&(window.clearTimeout(_.current),_.current=null)),d&&!p&&(h(!1),_.current=window.setTimeout(()=>{f(null)},1e3))},x=[d,p,f],e[2]=d,e[3]=p,e[4]=f,e[5]=b,e[6]=x):(b=e[5],x=e[6]),I.useEffect(b,x);const w=!!(m||l);let C;e[7]!==u?(C={height:"100vh",position:"relative",width:u},e[7]=u,e[8]=C):C=e[8];let k;e[9]!==y||e[10]!==s?(k=s&&a.jsxs(te,{sx:{mb:2,py:2,px:2,pb:0},spacing:2,children:[a.jsxs(te,{direction:"row",align:"center",spacing:2,nowrap:!0,children:[a.jsx(_e,{type:"h6",sx:{flex:1},children:s}),a.jsx(Zr,{size:"small",onClick:y,children:a.jsx(ge.Close,{})})]}),a.jsx(Oc,{})]}),e[9]=y,e[10]=s,e[11]=k):k=e[11];let A;e[12]!==n||e[13]!==C||e[14]!==k?(A=a.jsxs(te,{sx:C,nowrap:!0,children:[k,n]}),e[12]=n,e[13]=C,e[14]=k,e[15]=A):A=e[15];let P;return e[16]!==r||e[17]!==w||e[18]!==A||e[19]!==c?(P=a.jsx(aae,{variant:c,anchor:"right",onClose:r,open:w,children:A}),e[16]=r,e[17]=w,e[18]=A,e[19]=c,e[20]=P):P=e[20],P}function EBe(t){return t.drawerOpen}function RBe(t){return t.setDrawerState}function IBe(t){return t.drawerState}function DBe(t){const e=he.c(26);let r,n,s,i,o,l;e[0]!==t?({anchorEl:r,onClose:s,children:n,anchorOrigin:l,open:i,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);let c;e[7]!==l?(c=l===void 0?{vertical:"bottom",horizontal:"left"}:l,e[7]=l,e[8]=c):c=e[8];const u=c,d=Nr(LBe),f=Nr(OBe),p=Nr($Be),[m,h]=I.useState(!1),_=I.useRef(null);let g,y;e[9]!==p||e[10]!==d||e[11]!==i||e[12]!==f?(g=()=>{typeof i<"u"||(d&&p&&(h(!0),_.current&&(window.clearTimeout(_.current),_.current=null)),d&&!p&&(h(!1),_.current=window.setTimeout(()=>{f(null)},1e3)))},y=[p,d,i,f],e[9]=p,e[10]=d,e[11]=i,e[12]=f,e[13]=g,e[14]=y):(g=e[13],y=e[14]),I.useEffect(g,y);const b=!!(m||i);let x;e[15]!==u.horizontal||e[16]!==o.transformOrigin?(x={vertical:"top",horizontal:u.horizontal,...o.transformOrigin},e[15]=u.horizontal,e[16]=o.transformOrigin,e[17]=x):x=e[17];let w;return e[18]!==r||e[19]!==u||e[20]!==n||e[21]!==s||e[22]!==o||e[23]!==b||e[24]!==x?(w=a.jsx(one,{anchorEl:r,open:b,onClose:s,anchorOrigin:u,transformOrigin:x,...o,children:n}),e[18]=r,e[19]=u,e[20]=n,e[21]=s,e[22]=o,e[23]=b,e[24]=x,e[25]=w):w=e[25],w}function $Be(t){return t.menuOpen}function OBe(t){return t.setMenuState}function LBe(t){return t.menuState}function NBe(t){const e=he.c(23),{anchorOrigin:r,transformOrigin:n,children:s,onClose:i,anchorEl:o,disableGutters:l,overflowVisible:c,open:u}=t;let d;e[0]!==r?(d=r===void 0?{vertical:"bottom",horizontal:"left"}:r,e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=n===void 0?{vertical:"top",horizontal:"left"}:n,e[2]=n,e[3]=p):p=e[3];const m=p,h=Nr(BBe),_=Nr(UBe),g=Nr(FBe),[y,b]=I.useState(!1),x=I.useRef(null);let w,C;e[4]!==g||e[5]!==u||e[6]!==h||e[7]!==_?(w=()=>{typeof u<"u"||(h&&g&&(b(!0),x.current&&(window.clearTimeout(x.current),x.current=null)),h&&!g&&(b(!1),x.current=window.setTimeout(()=>{_(null)},1e3)))},C=[g,u,h,_],e[4]=g,e[5]=u,e[6]=h,e[7]=_,e[8]=w,e[9]=C):(w=e[8],C=e[9]),I.useEffect(w,C);const k=!!(y||u),A=l?0:2,P=c?"visible":"auto";let T;e[10]!==A||e[11]!==P?(T={p:A,overflow:P},e[10]=A,e[11]=P,e[12]=T):T=e[12];let j;e[13]!==s||e[14]!==T?(j=a.jsx(gt,{sx:T,children:s}),e[13]=s,e[14]=T,e[15]=j):j=e[15];let R;return e[16]!==o||e[17]!==f||e[18]!==i||e[19]!==j||e[20]!==k||e[21]!==m?(R=a.jsx(ine,{open:k,anchorEl:o,anchorOrigin:f,transformOrigin:m,onClose:i,children:j}),e[16]=o,e[17]=f,e[18]=i,e[19]=j,e[20]=k,e[21]=m,e[22]=R):R=e[22],R}function FBe(t){return t.popoverOpen}function UBe(t){return t.setPopoverState}function BBe(t){return t.popoverState}function zBe(t){const e=he.c(22),{onClick:r,message:n,severity:s,title:i,onClose:o,noIcon:l,action:c,anchorOrigin:u}=t;let d;e[0]!==u?(d=u===void 0?{vertical:"top",horizontal:"right"}:u,e[0]=u,e[1]=d):d=e[1];const f=d,p=Nr(HBe),m=Nr(VBe),h=Nr(qBe),[_,g]=I.useState(!1),y=I.useRef(null);let b,x;e[2]!==h||e[3]!==m||e[4]!==p?(b=()=>{p&&h&&(g(!0),y.current&&(window.clearTimeout(y.current),y.current=null)),p&&!h&&(g(!1),y.current=window.setTimeout(()=>{m(null)},1e3))},x=[h,p,m],e[2]=h,e[3]=m,e[4]=p,e[5]=b,e[6]=x):(b=e[5],x=e[6]),I.useEffect(b,x);let w;e[7]!==o?(w=A=>{o&&o(A,"clickaway")},e[7]=o,e[8]=w):w=e[8];let C;e[9]!==c||e[10]!==n||e[11]!==l||e[12]!==s||e[13]!==w||e[14]!==i?(C=a.jsx(Vte,{children:a.jsx(Lr,{message:n,onClose:w,severity:s,title:i,action:c,noIcon:l})}),e[9]=c,e[10]=n,e[11]=l,e[12]=s,e[13]=w,e[14]=i,e[15]=C):C=e[15];let k;return e[16]!==f||e[17]!==_||e[18]!==r||e[19]!==o||e[20]!==C?(k=a.jsx(D9e,{autoHideDuration:5e3,open:_,onClick:r,anchorOrigin:f,onClose:o,children:C}),e[16]=f,e[17]=_,e[18]=r,e[19]=o,e[20]=C,e[21]=k):k=e[21],k}function qBe(t){return t.snackbarOpen}function VBe(t){return t.setSnackbarState}function HBe(t){return t.snackbarState}function Tae(){const t=he.c(31),e=Nr(sze),r=Nr(nze),n=Nr(rze),s=Nr(tze),i=Nr(eze),o=Nr(JBe),l=Nr(XBe),c=Nr(ZBe),u=Nr(QBe),d=Nr(KBe),f=Nr(YBe),p=Nr(WBe),m=r?.content,h=i?.content;let _;if(t[0]!==e||t[1]!==p){let A;t[3]!==p?(A=(P,T)=>{if(!P)return null;const j=P.content,R=P.id||"";return a.jsx(jae,{id:R,...P,children:j&&a.jsx(j,{dialogClose:()=>{p(R)}})},`${R}-${T}`)},t[3]=p,t[4]=A):A=t[4],_=e.map(A),t[0]=e,t[1]=p,t[2]=_}else _=t[2];let g;t[5]!==d||t[6]!==s?(g=s&&a.jsx(zBe,{...s,onClose:(A,P)=>{s.onClose&&s.onClose(A,P),d()}}),t[5]=d,t[6]=s,t[7]=g):g=t[7];let y;t[8]!==m||t[9]!==r||t[10]!==c?(y=r&&a.jsx(TBe,{onClose:()=>{c(),r.onClose&&r.onClose()},title:r?.title,width:r?.width,variant:r?.variant,children:r?.content&&a.jsx(m,{})}),t[8]=m,t[9]=r,t[10]=c,t[11]=y):y=t[11];let b;t[12]!==n||t[13]!==u?(b=n&&a.jsx(DBe,{anchorEl:n?.anchorEl,anchorOrigin:n?.anchorOrigin,onClose:u,children:n?.items.map(GBe)}),t[12]=n,t[13]=u,t[14]=b):b=t[14];let x;t[15]!==h||t[16]!==i||t[17]!==f?(x=i&&a.jsx(NBe,{anchorEl:i?.anchorEl,onClose:f,anchorOrigin:i?.anchorOrigin,disableGutters:i?.disableGutters,children:i?.content&&a.jsx(h,{})}),t[15]=h,t[16]=i,t[17]=f,t[18]=x):x=t[18];let w;t[19]!==o?(w=o&&a.jsx(yBe,{...o}),t[19]=o,t[20]=w):w=t[20];let C;t[21]!==l?(C=l&&a.jsx(wBe,{title:l.title,description:l.description,confirmText:l.confirmText,cancelText:l.cancelText,onCancel:l.onCancel,onConfirm:l.onConfirm}),t[21]=l,t[22]=C):C=t[22];let k;return t[23]!==_||t[24]!==g||t[25]!==y||t[26]!==b||t[27]!==x||t[28]!==w||t[29]!==C?(k=a.jsxs(a.Fragment,{children:[_,g,y,b,x,w,C]}),t[23]=_,t[24]=g,t[25]=y,t[26]=b,t[27]=x,t[28]=w,t[29]=C,t[30]=k):k=t[30],k}function GBe(t,e){return a.jsx(En,{...t,children:t.label},`${t.value}-${e}`)}function WBe(t){return t.setDialogsClose}function YBe(t){return t.setPopoverClose}function KBe(t){return t.setSnackbarClose}function QBe(t){return t.setMenuClose}function ZBe(t){return t.setDrawerClose}function XBe(t){return t.confirmationSimpleDialogState}function JBe(t){return t.confirmationDialogState}function eze(t){return t.popoverState}function tze(t){return t.snackbarState}function rze(t){return t.menuState}function nze(t){return t.drawerState}function sze(t){return t.dialogs}const ize=()=>{const t=he.c(30),e=Ye(),r=to(),n=Np();n?.services;let s;t[0]!==n?.services?(s=n?.services??[],t[0]=n?.services,t[1]=s):s=t[1];const i=s;let o;t[2]!==n?.info?.version?(o=()=>n?.info?.version??"-",t[2]=n?.info?.version,t[3]=o):o=t[3],n?.info?.version;let l;t[4]!==o?(l=o(),t[4]=o,t[5]=l):l=t[5];const c=l;n?.info?.hostname;const u=n?.info?.hostname??"-";let d;t[6]!==i?(d=rBe({services:i}),t[6]=i,t[7]=d):d=t[7];const f=d;let p;t[8]!==f?(p=kae(f),t[8]=f,t[9]=p):p=t[9];const m=p;let h;if(t[10]!==r.pathname){e:{const A=r.pathname.split("/");if(A.length>2){h=A.slice(0,3).join("/");break e}h=r.pathname}t[10]=r.pathname,t[11]=h}else h=t[11];const _=h;let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g={pb:1},t[12]=g):g=t[12];let y;t[13]!==e?(y=e.formatMessage({id:"menu.info.version"}),t[13]=e,t[14]=y):y=t[14];let b;t[15]!==c?(b=a.jsx("strong",{children:c}),t[15]=c,t[16]=b):b=t[16];let x;t[17]!==y||t[18]!==b?(x=a.jsxs(_e,{type:"caption",children:[y,": ",b]}),t[17]=y,t[18]=b,t[19]=x):x=t[19];let w;t[20]!==u||t[21]!==e?(w=u&&a.jsxs(_e,{type:"caption",children:[e.formatMessage({id:"menu.info.hostname"}),": ",a.jsx("strong",{children:u})]}),t[20]=u,t[21]=e,t[22]=w):w=t[22];let C;t[23]!==w||t[24]!==x?(C=a.jsx(te,{sx:g,direction:"row",justify:"space-between",align:"center",children:a.jsxs(te,{direction:"column",spacing:0,children:[x,w]})}),t[23]=w,t[24]=x,t[25]=C):C=t[25];let k;return t[26]!==m||t[27]!==_||t[28]!==C?(k=a.jsx(XFe,{items:m,activeValue:_,footerComponent:C}),t[26]=m,t[27]=_,t[28]=C,t[29]=k):k=t[29],k};var oze=Object.create,Eae=Object.defineProperty,aze=Object.getOwnPropertyDescriptor,lze=Object.getOwnPropertyNames,cze=Object.getPrototypeOf,uze=Object.prototype.hasOwnProperty,dze=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lze(e))!uze.call(t,s)&&s!==r&&Eae(t,s,{get:()=>e[s],enumerable:!(n=aze(e,s))||n.enumerable});return t},pze=(t,e,r)=>(r=t!=null?oze(cze(t)):{},fze(!t||!t.__esModule?Eae(r,"default",{value:t,enumerable:!0}):r,t)),mze=dze((t,e)=>{(function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))})(t,function(r){var n=function(m){return function(h){var _=m(h);return h.add(_),_}},s=function(m){return function(h,_){return m.set(h,_),_}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,l=o*2,c=function(m,h){return function(_){var g=h.get(_),y=g===void 0?_.size:g<l?g+1:0;if(!_.has(y))return m(_,y);if(_.size<o){for(;_.has(y);)y=Math.floor(Math.random()*l);return m(_,y)}if(_.size>i)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;_.has(y);)y=Math.floor(Math.random()*i);return m(_,y)}},u=new WeakMap,d=s(u),f=c(d,u),p=n(f);r.addUniqueNumber=p,r.generateUniqueNumber=f})});pze(mze());var Ed=(typeof window>"u"?"undefined":typeof window)=="object",jc={setTimeout:Ed?setTimeout.bind(window):setTimeout,clearTimeout:Ed?clearTimeout.bind(window):clearTimeout,setInterval:Ed?setInterval.bind(window):setInterval,clearInterval:Ed?clearInterval.bind(window):clearInterval};function hze(t){jc.setTimeout=t.setTimeout,jc.clearTimeout=t.clearTimeout,jc.setInterval=t.setInterval,jc.clearInterval=t.clearInterval}var zg={},gze=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,zg[e]=zg[e]||[],zg[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||e.newValue===null)return;let r=JSON.parse(e.newValue);this.mc.port2.postMessage(r)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let r=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,r),jc.setTimeout(()=>{window.localStorage.removeItem(n)},500),zg[this.name].forEach(s=>{s!==this&&s.mc.port2.postMessage(JSON.parse(r))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=zg[this.name].indexOf(this);zg[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,r){return this.mc.port1.addEventListener(e,r)}removeEventListener(e,r){return this.mc.port1.removeEventListener(e,r)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_ze=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:gze;function vze(t=0){return new Promise(e=>jc.setTimeout(e,t))}function Rae(){return Math.random().toString(36).substring(2)}var yze=class{options;channel;token=Rae();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,r){this.channel=e,this.options=r,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,r=n=>{let{token:s,action:i}=n.data;s!==this.token&&(i===0&&s>this.token&&(e=!0),i===1&&(e=!0))};this.channel.addEventListener("message",r);try{return this.sendAction(0),await vze(this.options.responseTime),this.channel.removeEventListener("message",r),this.isApplying=!1,e?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,r=null;return new Promise(n=>{let s=()=>{if(e)return;e=!0;try{jc.clearInterval(r)}catch{}let o=this.intervals.indexOf(r);o>=0&&this.intervals.splice(o,1),this.channel.removeEventListener("message",i),n()};r=jc.setInterval(()=>{this.apply().then(()=>{this.isLeader&&s()})},this.options.fallbackInterval),this.intervals.push(r);let i=o=>{let{action:l}=o.data;l===2&&this.apply().then(()=>{this.isLeader&&s()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=r=>{let{action:n}=r.data;n===0&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>jc.clearInterval(e))}catch{}}}},bze=class{channel;options;elector;token=Rae();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:r}=e;if(this.options=e,this.channel=new _ze(r),this.registry.set(this.token,1),e.leaderElection){let n={fallbackInterval:2e3,responseTime:100};this.elector=new yze(this.channel,n),this.elector.waitForLeadership()}this.channel.addEventListener("message",n=>{let{action:s,token:i,data:o}=n.data;switch(s){case 3:this.registry.set(i,2);break;case 4:this.registry.delete(i);break;case 5:this.idle(i);break;case 6:this.active(i);break;case 7:this.prompt(i);break;case 8:this.start(i);break;case 9:this.reset(i);break;case 10:this.activate(i);break;case 11:this.pause(i);break;case 12:this.resume(i);break;case 13:this.options.onMessage(o);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let r=[...this.registry.values()].every(n=>n===0);e===this.token&&this.send(7),r&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let r=[...this.registry.values()].every(n=>n===2);e===this.token&&this.send(5),!this.allIdle&&r&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let r=[...this.registry.values()].some(n=>n===1);e===this.token&&this.send(6),r&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},xze=Ed?document:null,Sze=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function wze(t,e){let r;function n(...s){r&&clearTimeout(r),r=setTimeout(()=>{t(...s),r=null},e)}return n.cancel=function(){clearTimeout(r)},n}function JE(t,e){let r=0;return function(...n){let s=new Date().getTime();if(!(s-r<e))return r=s,t(...n)}}var Di=()=>Date.now(),qg=2147483647;function Cze({timeout:t=1e3*60*20,promptTimeout:e=0,promptBeforeIdle:r=0,element:n=xze,events:s=Sze,timers:i=void 0,immediateEvents:o=[],onPresenceChange:l=()=>{},onPrompt:c=()=>{},onIdle:u=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:p=()=>{},debounce:m=0,throttle:h=0,eventsThrottle:_=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:b=!1,crossTab:x=!1,name:w="idle-timer",syncTimers:C=0,leaderElection:k=!1,disabled:A=!1}={}){let P=I.useRef(Di()),T=I.useRef(Di()),j=I.useRef(null),R=I.useRef(null),D=I.useRef(0),O=I.useRef(0),N=I.useRef(0),F=I.useRef(0),U=I.useRef(!1),z=I.useRef(!1),H=I.useRef(!1),W=I.useRef(!0),K=I.useRef(!1),q=I.useRef(null),X=I.useRef(null),Q=I.useRef(t),Y=I.useRef(0);I.useEffect(()=>{if(e&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&e)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=qg)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${qg}.`);if(e>=qg)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${qg}.`);if(r>=qg)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${qg}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(Q.current=t-r,Y.current=r):(Q.current=t,Y.current=e),!W.current){if(y||A)return;U.current&&(me.current(null,_r),X.current&&X.current.active()),Ve()}},[t,e,r,y,A]);let Z=I.useRef(b);I.useEffect(()=>{Z.current=b},[b]);let re=I.useRef(o),fe=I.useRef(n),de=I.useRef([...new Set([...s,...o]).values()]),se=I.useRef(A);I.useEffect(()=>{se.current=A,!W.current&&(A?ft():y||Ve())},[A]);let le=I.useRef(l);I.useEffect(()=>{le.current=l},[l]);let ee=I.useRef(c);I.useEffect(()=>{ee.current=c},[c]);let J=I.useRef(u);I.useEffect(()=>{J.current=u},[u]);let me=I.useRef(d);I.useEffect(()=>{me.current=d},[d]);let pe=I.useRef(f);I.useEffect(()=>{pe.current=f},[f]);let Se=I.useRef(p);I.useEffect(()=>{Se.current=p},[p]);let ve=I.useMemo(()=>{let st=(wt,Pe)=>pe.current(wt,Pe);return m>0?wze(st,m):h>0?JE(st,h):st},[h,m]),xe=I.useRef();I.useEffect(()=>{x&&C&&(xe.current=JE(()=>{X.current.active()},C))},[x,C]);let qe=()=>{q.current!==null&&(jc.clearTimeout(q.current),q.current=null)},Le=(st,wt=!0)=>{qe(),q.current=jc.setTimeout(nt,st||Q.current),wt&&(R.current=Di())},Te=st=>{!z.current&&!U.current&&(ee.current(st,_r),le.current({type:"active",prompted:!0},_r)),F.current=0,N.current=Di(),z.current=!0,Le(Y.current,!1)},je=()=>{qe(),U.current||(J.current(null,_r),le.current({type:"idle"},_r)),U.current=!0,j.current=Di(),Z.current?$e():z.current&&(N.current=0,z.current=!1)},Ge=st=>{qe(),(U.current||z.current)&&(me.current(st,_r),le.current({type:"active",prompted:!1},_r)),z.current=!1,N.current=0,U.current=!1,D.current+=Di()-j.current,O.current+=Di()-j.current,Me(),Le()},nt=st=>{if(!U.current){ve.cancel&&ve.cancel();let wt=Di()-R.current;if(!(Q.current+Y.current<wt)&&Y.current>0&&!z.current){X.current?X.current.prompt():Te(st);return}X.current?X.current.idle():je();return}X.current?X.current.active():Ge(st)},Re=st=>{if(!g&&!R.current&&(R.current=Di(),me.current(null,_r)),ve(st,_r),z.current)return;if(qe(),!U.current&&re.current.includes(st.type)){nt(st);return}let wt=Di()-R.current;if(U.current&&!b||!U.current&&wt>=Q.current){nt(st);return}H.current=!1,F.current=0,N.current=0,Le(),x&&C&&xe.current()},we=I.useRef(Re);I.useEffect(()=>{let st=K.current;st&&$e(),_>0?we.current=JE(Re,_):we.current=Re,st&&Me()},[_,h,m,pe,x,C]);let Me=()=>{Ed&&fe.current&&(K.current||(de.current.forEach(st=>{fe.current.addEventListener(st,we.current,{capture:!0,passive:!0})}),K.current=!0))},$e=(st=!1)=>{Ed&&fe.current&&(K.current||st)&&(de.current.forEach(wt=>{fe.current.removeEventListener(wt,we.current,{capture:!0})}),K.current=!1)},Ve=I.useCallback(st=>se.current?!1:(qe(),Me(),U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,X.current&&!st&&X.current.start(),Le(),!0),[q,U,se,Q,X]),Ne=I.useCallback(st=>se.current?!1:(qe(),Me(),T.current=Di(),D.current+=Di()-j.current,O.current+=Di()-j.current,D.current=0,U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,X.current&&!st&&X.current.reset(),y||Le(),!0),[q,U,Q,y,se,X]),Oe=I.useCallback(st=>se.current?!1:(qe(),Me(),(U.current||z.current)&&Ge(),U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,T.current=Di(),X.current&&!st&&X.current.activate(),Le(),!0),[q,U,z,se,Q,X]),ft=I.useCallback((st=!1)=>se.current||H.current?!1:(F.current=ar(),H.current=!0,$e(),qe(),X.current&&!st&&X.current.pause(),!0),[q,se,X]),Ct=I.useCallback((st=!1)=>se.current||!H.current?!1:(H.current=!1,z.current||Me(),U.current||Le(F.current),N.current&&(N.current=Di()),X.current&&!st&&X.current.resume(),!0),[q,Q,se,F,X]),Et=I.useCallback((st,wt)=>(X.current?(wt&&Se.current(st,_r),X.current.message(st)):wt&&Se.current(st,_r),!0),[p]),at=I.useCallback(()=>U.current,[U]),$t=I.useCallback(()=>z.current,[z]),Ee=I.useCallback(()=>X.current?X.current.isLeader:null,[X]),Be=I.useCallback(()=>X.current?X.current.isLastActive:null,[X]),qt=I.useCallback(()=>X.current?X.current.token:null,[X]),ar=I.useCallback(()=>{if(H.current)return F.current;let st=F.current?F.current:Y.current+Q.current,wt=R.current?Di()-R.current:0,Pe=Math.floor(st-wt);return Pe<0?0:Math.abs(Pe)},[Q,Y,z,F,R]),hr=I.useCallback(()=>Math.round(Di()-T.current),[T]),ir=I.useCallback(()=>Math.round(Di()-P.current),[P]),cr=I.useCallback(()=>j.current?new Date(j.current):null,[j]),kr=I.useCallback(()=>R.current?new Date(R.current):null,[R]),Rr=I.useCallback(()=>U.current?Math.round(Di()-j.current+D.current):Math.round(D.current),[j,D]),Ut=I.useCallback(()=>U.current?Math.round(Di()-j.current+O.current):Math.round(O.current),[j,O]),fn=I.useCallback(()=>{let st=Math.round(hr()-Rr());return st>=0?st:0},[j,D]),Zt=I.useCallback(()=>{let st=Math.round(ir()-Ut());return st>=0?st:0},[j,D]);I.useEffect(()=>{if(m>0&&h>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");i&&hze(i);let st=()=>{X.current&&X.current.close(),ve.cancel&&ve.cancel(),qe(),$e(!0)};return Ed&&window.addEventListener("beforeunload",st),()=>{Ed&&window.removeEventListener("beforeunload",st),X.current&&X.current.close(),ve.cancel&&ve.cancel(),qe(),$e(!0)}},[]),I.useEffect(()=>{X.current&&X.current.close(),x?X.current=new bze({channelName:w,leaderElection:k,onPrompt:()=>{Te()},onIdle:()=>{je()},onActive:()=>{Ge()},onMessage:st=>{Se.current(st,_r)},start:Ve,reset:Ne,activate:Oe,pause:ft,resume:Ct}):X.current=null},[x,w,k,ee,J,me,Se,Ve,Ne,ft,Ct]),I.useEffect(()=>{W.current||(qe(),$e(!0)),!(y||A)&&(g?Ve():Me())},[y,g,A,W]),I.useEffect(()=>{if(!W.current){let st=[...new Set([...s,...o]).values()];if($e(),de.current=st,fe.current=n,re.current=o,y||A)return;g?Ve():Me()}},[n,JSON.stringify(s),JSON.stringify(o),W,A,y,g]),I.useEffect(()=>{W.current&&(W.current=!1)},[W]);let _r={message:Et,start:Ve,reset:Ne,activate:Oe,pause:ft,resume:Ct,isIdle:at,isPrompted:$t,isLeader:Ee,isLastActiveTab:Be,getTabId:qt,getRemainingTime:ar,getElapsedTime:hr,getTotalElapsedTime:ir,getLastIdleTime:cr,getLastActiveTime:kr,getIdleTime:Rr,getTotalIdleTime:Ut,getActiveTime:fn,getTotalActiveTime:Zt,setOnPresenceChange:st=>{l=st,le.current=st},setOnPrompt:st=>{c=st,ee.current=st},setOnIdle:st=>{u=st,J.current=st},setOnActive:st=>{d=st,me.current=st},setOnAction:st=>{f=st,pe.current=st},setOnMessage:st=>{p=st,Se.current=st}};return _r}var Aze=I.createContext(null);Aze.Consumer;const kze=()=>{const t=window.location.pathname;let e=$.urls.logout;return[$.urls.logout,$.urls.login].includes(t)||(e=`${e}?returnUrl=${t}`),e};function Mze(t){const e=he.c(29),{timeout:r}=t,n=Ye(),s=r*1e3;let i;e:{if(s&&s<$.idleTime.promptTimeout_s){i=s-3e4;break e}i=$.idleTime.promptTimeout_s*1e3}const o=i,[l,c]=I.useState(s),[u,d]=I.useState(!1),f=ys(),{submit:p}=gr();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=(N,F)=>{F&&c(F.getRemainingTime()),d(!0)},e[0]=m):m=e[0];const h=m;let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{d(!1)},e[1]=_):_=e[1];const g=_;let y;e[2]!==f?(y=()=>{const N=kze();f(N,{replace:!0})},e[2]=f,e[3]=y):y=e[3];const b=y;let x;e[4]!==b||e[5]!==o||e[6]!==s?(x={timeout:s,crossTab:!0,leaderElection:!0,syncTimers:200,promptBeforeIdle:o,onPrompt:h,onActive:g,onIdle:b},e[4]=b,e[5]=o,e[6]=s,e[7]=x):x=e[7];const w=Cze(x);let C;e[8]!==w?(C=()=>{w.activate()},e[8]=w,e[9]=C):C=e[9];const k=C;let A;e[10]!==p?(A=()=>{p(null,{method:"POST",encType:"multipart/form-data",action:"refresh-token"})},e[10]=p,e[11]=A):A=e[11];const P=A;let T,j;e[12]!==o||e[13]!==w?(T=()=>{const N=setInterval(()=>{const F=w.getRemainingTime();c(F),d(U=>U&&F>o?!1:U)},300);return()=>{clearInterval(N)}},j=[o,w],e[12]=o,e[13]=w,e[14]=T,e[15]=j):(T=e[14],j=e[15]),I.useEffect(T,j);let R;e[16]!==n?(R=n.formatMessage({id:"idle-state.modal.title"}),e[16]=n,e[17]=R):R=e[17];let D;e[18]!==k||e[19]!==P||e[20]!==o||e[21]!==n||e[22]!==u||e[23]!==l?(D=u&&a.jsx(_s,{children:a.jsxs(te,{align:"center",spacing:2,children:[a.jsx(_e,{fontWeight:"600",fontSize:"medium",sx:{alignSelf:"flex-start"},children:n.formatMessage({id:"idle-state.modal.message"})}),a.jsx(Nc,{type:"circular",variant:"determinate",value:Math.ceil(l/o*100),label:`${Math.ceil(l/1e3)}s`,labelVariant:"h5",thickness:4,size:140}),a.jsx(Ze,{text:n.formatMessage({id:"idle-state.modal.continue"}),onClick:()=>{k(),P()}})]})}),e[18]=k,e[19]=P,e[20]=o,e[21]=n,e[22]=u,e[23]=l,e[24]=D):D=e[24];let O;return e[25]!==u||e[26]!==R||e[27]!==D?(O=a.jsx(jae,{id:"idleTimerDialog",open:u,disableAutoFocus:!0,title:R,children:D}),e[25]=u,e[26]=R,e[27]=D,e[28]=O):O=e[28],O}const Pze=()=>{const t=he.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={useSearchParams:!1},t[0]=e):e=t[0];const r=Gr(e),n=As(),s=Nd(n.breakpoints.down($.appBarMobileBreakpoint))?65:0;let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(rN,{}),t[1]=i):i=t[1];let o;t[2]!==s?(o=c=>a.jsxs("div",{style:{minWidth:"345px",marginTop:s},children:[a.jsx(Pae,{info:c?.info||{hostname:"-",product_name:"-",version:"-"},variant:"appShellLayout",profileCard:!0}),a.jsx(ize,{}),a.jsx(Tae,{}),a.jsx(Bd,{}),!!c?.frontendConfig.ui_inactivity_s&&a.jsx(Mze,{timeout:c.frontendConfig.ui_inactivity_s})]}),t[2]=s,t[3]=o):o=t[3];let l;return t[4]!==r.bootstrap||t[5]!==o?(l=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.bootstrap,errorElement:i,children:o})}),t[4]=r.bootstrap,t[5]=o,t[6]=l):l=t[6],l},zW=t=>{const e=he.c(6),{profileCard:r}=t,n=zn();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(rN,{}),e[0]=s):s=e[0];let i;e[1]!==r?(i=l=>a.jsxs(a.Fragment,{children:[a.jsx(Tae,{}),a.jsx(Pae,{info:l,variant:"simpleLayout",profileCard:r}),a.jsx(G0,{appBar:!0,fullWidth:!0,fullHeight:!0,children:a.jsx(zA,{transparent:!0,fullHeight:!0,children:a.jsx(Bd,{})})})]}),e[1]=r,e[2]=i):i=e[2];let o;return e[3]!==n.info||e[4]!==i?(o=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:n.info,errorElement:s,children:i})}),e[3]=n.info,e[4]=i,e[5]=o):o=e[5],o};async function lN(){return De({options:{url:"/frontend/config",method:"GET"}})}async function ma(){const{services:t}=await lN();return t}async function Iae({nf:t}){const e=`${$.apis.cluster.status(t)}`;return De({options:{url:e,method:"GET"}})}async function jze({node:t,nf:e}){const r=`${$.apis.cluster.join(e)}`;return De({options:{url:r,method:"POST",data:JSON.stringify({node:t})}})}async function Tze({nf:t,force:e}){const r=`${$.apis.cluster.leave(t)}?force=${e}`;return De({options:{url:r,method:"POST"}})}async function Eze({nf:t}){const e=await ma();return Ds({services:e,name:t})?Iae({nf:t}):null}async function Rze(){const t=await ma(),e=yie(t).map(r=>r.name);return $.monitoring.clusters.filter(r=>e.includes(r))}const Q6=Pr();function Ize(){return window.location.pathname.endsWith("/configuration")?rt(window.location.pathname):rt(`${window.location.pathname}${window.location.search}`)}async function Dze({request:t}){const{siteNodeAddress:e}=await t.json();return Ji.setSiteNode(e),Ize()}function $ze(t){return async({request:e})=>{const r=await e.json(),n=await jze({nf:t,node:r.node});if(xt(n))Ar(n.error?.detail||Q6.formatMessage({id:"cluster.dialog.join_ko"}));else{if(t===ue.PLS)throw Ji.deleteSiteNode(),Gb();Nt(Q6.formatMessage({id:"cluster.dialog.join_ok"}))}return Ft(n)}}function Oze(t){return async({request:e})=>{const r=await e.json(),n=await Tze({nf:t,force:r.force});return xt(n)||(t===ue.PLS&&Ji.deleteSiteNode(),Nt(Q6.formatMessage({id:"cluster.dialog.leave_ok"}))),Ft(n)}}const Lze=[{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_total_count",query:"count(license_status) or vector(0)"},{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_valid_count",query:"count_values('license_status', license_status==1) or vector(0)"},{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_expiring_count",query:"count(rr:licensed_license_remaining_days>0 and rr:licensed_license_remaining_days<7) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"total_transmit_bytes",query:"sum(node_network_transmit_bytes_total{device=~'eth[0-9]+'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"total_receive_bytes",query:"sum(node_network_receive_bytes_total{device=~'eth[0-9]+'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"transmit_rate_bps",query:"sum(irate(node_network_transmit_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"receive_rate_bps",query:"sum(irate(node_network_receive_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"ts_transmit_rate_bps",query_range:"sum(irate(node_network_transmit_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"ts_receive_rate_bps",query_range:"sum(irate(node_network_receive_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network_interfaces",field_name:"interfaces_active_count",query:"count(node_network_up{device=~'eth[0-9]+'} == 1) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network_interfaces",field_name:"interfaces_total_count",query:"count(node_network_up{device=~'eth[0-9]+'}) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"cpu_count",query:"count(count(node_cpu_seconds_total) by (cpu))"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"cpu_busy_perc",query:"(((count(count(node_cpu_seconds_total) by (cpu))) - avg(sum by (mode)(irate(node_cpu_seconds_total{mode='idle'}[5m])))) * 100) / count(count(node_cpu_seconds_total) by (cpu)) > 0"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"ts_cpu_busy_perc",query_range:"(((count(count(node_cpu_seconds_total) by (cpu))) - avg(sum by (mode)(irate(node_cpu_seconds_total{mode='idle'}[5m])))) * 100) / count(count(node_cpu_seconds_total) by (cpu)) > 0"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_total_bytes",query:"node_memory_MemTotal_bytes"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_available_bytes",query:"node_memory_MemAvailable_bytes"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_used_perc",query:"100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"ts_memory_used_perc",query_range:"100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_total_bytes",query:"node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'}"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_available_bytes",query:"node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'}"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_used_perc",query:"100 - ((node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'} * 100) / node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"ts_disk_used_perc",query_range:"100 - ((node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'} * 100) / node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"uptime",field_name:"uptime_seconds",query:"node_time_seconds - node_boot_time_seconds"},{source:ue.PROMETHEUS,group:"platform",sub_group:"alerts",field_name:"alerts_count",query:"sum(ALERTS)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_rules",field_name:"eir_rules_count",query:"sum(eir_rules_status) or vector(0)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_cluster_nodes",field_name:"active_nodes_count",query:"sum(nf_data_layer_cluster_nodes_status{target_type='eir'}) or vector(0)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_cluster_nodes",field_name:"total_nodes_count",query:"count(nf_data_layer_cluster_nodes_status{target_type='eir'}) or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_sims",field_name:"provisioned_sims_count",query:"nf_data_layer_table_row_count{table='supi'} or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_cluster_nodes",field_name:"active_nodes_count",query:"sum(nf_data_layer_cluster_nodes_status{target_type='udr'}) or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_cluster_nodes",field_name:"total_nodes_count",query:"count(nf_data_layer_cluster_nodes_status{target_type='udr'}) or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_ue",field_name:"active_ue_count",query:"sum(amf_ran_node_ue) or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_ue",field_name:"registered_ue_count",query:"amf_ue_registered or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_active_radios",field_name:"active_radios_count",query:"sum(amf_ran_node_status) or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_ue",field_name:"active_ue_count",query:"mme_s1_enb_active_ue or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_ue",field_name:"registered_ue_count",query:"mme_ue_registered or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_active_radios",field_name:"active_radios_count",query:"mme_s1_enb or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_users",field_name:"users_count",query:"smf_supi or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_users",field_name:"sessions_count",query:"sum(smf_sessions) or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_connected_peers",field_name:"connected_peers_count",query:"sum(pfcp_node_status{target_type='smf'}) or vector(0)"},{source:ue.PCF,group:"control_plane",sub_group:"pcf_sessions",field_name:"n7_sessions_count",query:"pcf_n7_sessions or vector(0)"},{source:ue.PCF,group:"control_plane",sub_group:"pcf_sessions",field_name:"n5_sessions_count",query:"pcf_n5_sessions or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"total_load_uplink_bytes",query:"upf_forw_bytes{out_tag='core',in_tag='access'} or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"total_load_downlink_bytes",query:"upf_forw_bytes{out_tag='access',in_tag='core'} or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"throughput_uplink_bps",query:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='core',in_tag='access'}[1m]))*8 or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"throughput_downlink_bps",query:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='access',in_tag='core'}[1m]))*8 or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"ts_throughput_uplink_bps",query_range:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='core',in_tag='access',apn_dnn=~'.+'}[1m]))*8"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"ts_throughput_downlink_bps",query_range:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='access',in_tag='core',apn_dnn=~'.+'}[1m]))*8"},{source:ue.UPF,group:"user_plane",sub_group:"upf_sessions",field_name:"active_sessions",query:"upf_sessions or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_ip",field_name:"ip_total_count",query:"upf_pool_address_total_count or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_ip",field_name:"ip_allocated_count",query:"upf_pool_address_total_allocated or vector(0)"}];var eR,qW;function Dae(){if(qW)return eR;qW=1;var t=Z$(),e=z3();function r(n,s,i){(i!==void 0&&!e(n[s],i)||i===void 0&&!(s in n))&&t(n,s,i)}return eR=r,eR}var eb={exports:{}};eb.exports;var VW;function $ae(){return VW||(VW=1,(function(t,e){var r=Ghe(),n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,p=l?l(f):new u.constructor(f);return u.copy(p),p}t.exports=c})(eb,eb.exports)),eb.exports}var tR,HW;function cN(){if(HW)return tR;HW=1;var t=Whe();function e(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}return tR=e,tR}var rR,GW;function Oae(){if(GW)return rR;GW=1;var t=cN();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}return rR=e,rR}var nR,WW;function uN(){if(WW)return nR;WW=1;function t(e,r){var n=-1,s=e.length;for(r||(r=Array(s));++n<s;)r[n]=e[n];return r}return nR=t,nR}var sR,YW;function Nze(){if(YW)return sR;YW=1;var t=Qd(),e=Object.create,r=(function(){function n(){}return function(s){if(!t(s))return{};if(e)return e(s);n.prototype=s;var i=new n;return n.prototype=void 0,i}})();return sR=r,sR}var iR,KW;function dN(){if(KW)return iR;KW=1;var t=Yhe(),e=t(Object.getPrototypeOf,Object);return iR=e,iR}var oR,QW;function Lae(){if(QW)return oR;QW=1;var t=Nze(),e=dN(),r=X$();function n(s){return typeof s.constructor=="function"&&!r(s)?t(e(s)):{}}return oR=n,oR}var aR,ZW;function fN(){if(ZW)return aR;ZW=1;var t=av(),e=lv();function r(n){return e(n)&&t(n)}return aR=r,aR}var lR,XW;function W0(){if(XW)return lR;XW=1;var t=J$(),e=dN(),r=lv(),n="[object Object]",s=Function.prototype,i=Object.prototype,o=s.toString,l=i.hasOwnProperty,c=o.call(Object);function u(d){if(!r(d)||t(d)!=n)return!1;var f=e(d);if(f===null)return!0;var p=l.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==c}return lR=u,lR}var cR,JW;function Nae(){if(JW)return cR;JW=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return cR=t,cR}var uR,eY;function Fae(){if(eY)return uR;eY=1;var t=Z$(),e=z3(),r=Object.prototype,n=r.hasOwnProperty;function s(i,o,l){var c=i[o];(!(n.call(i,o)&&e(c,l))||l===void 0&&!(o in i))&&t(i,o,l)}return uR=s,uR}var dR,tY;function $v(){if(tY)return dR;tY=1;var t=Fae(),e=Z$();function r(n,s,i,o){var l=!i;i||(i={});for(var c=-1,u=s.length;++c<u;){var d=s[c],f=o?o(i[d],n[d],d,i,n):void 0;f===void 0&&(f=n[d]),l?e(i,d,f):t(i,d,f)}return i}return dR=r,dR}var fR,rY;function Fze(){if(rY)return fR;rY=1;function t(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}return fR=t,fR}var pR,nY;function Uze(){if(nY)return pR;nY=1;var t=Qd(),e=X$(),r=Fze(),n=Object.prototype,s=n.hasOwnProperty;function i(o){if(!t(o))return r(o);var l=e(o),c=[];for(var u in o)u=="constructor"&&(l||!s.call(o,u))||c.push(u);return c}return pR=i,pR}var mR,sY;function Ov(){if(sY)return mR;sY=1;var t=Khe(),e=Uze(),r=av();function n(s){return r(s)?t(s,!0):e(s)}return mR=n,mR}var hR,iY;function Bze(){if(iY)return hR;iY=1;var t=$v(),e=Ov();function r(n){return t(n,e(n))}return hR=r,hR}var gR,oY;function zze(){if(oY)return gR;oY=1;var t=Dae(),e=$ae(),r=Oae(),n=uN(),s=Lae(),i=eO(),o=cv(),l=fN(),c=tO(),u=Qhe(),d=Qd(),f=W0(),p=cte(),m=Nae(),h=Bze();function _(g,y,b,x,w,C,k){var A=m(g,b),P=m(y,b),T=k.get(P);if(T){t(g,b,T);return}var j=C?C(A,P,b+"",g,y,k):void 0,R=j===void 0;if(R){var D=o(P),O=!D&&c(P),N=!D&&!O&&p(P);j=P,D||O||N?o(A)?j=A:l(A)?j=n(A):O?(R=!1,j=e(P,!0)):N?(R=!1,j=r(P,!0)):j=[]:f(P)||i(P)?(j=A,i(A)?j=h(A):(!d(A)||u(A))&&(j=s(P))):R=!1}R&&(k.set(P,j),w(j,P,x,C,k),k.delete(P)),t(g,b,j)}return gR=_,gR}var _R,aY;function pN(){if(aY)return _R;aY=1;var t=ute(),e=Dae(),r=Zhe(),n=zze(),s=Qd(),i=Ov(),o=Nae();function l(c,u,d,f,p){c!==u&&r(u,function(m,h){if(p||(p=new t),s(m))n(c,u,h,d,l,f,p);else{var _=f?f(o(c,h),m,h+"",c,u,p):void 0;_===void 0&&(_=m),e(c,h,_)}},i)}return _R=l,_R}var vR,lY;function Uae(){if(lY)return vR;lY=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return vR=t,vR}var yR,cY;function Bae(){if(cY)return yR;cY=1;var t=Uae(),e=Math.max;function r(n,s,i){return s=e(s===void 0?n.length-1:s,0),function(){for(var o=arguments,l=-1,c=e(o.length-s,0),u=Array(c);++l<c;)u[l]=o[s+l];l=-1;for(var d=Array(s+1);++l<s;)d[l]=o[l];return d[s]=i(u),t(n,this,d)}}return yR=r,yR}var bR,uY;function qze(){if(uY)return bR;uY=1;function t(e){return function(){return e}}return bR=t,bR}var xR,dY;function Vze(){if(dY)return xR;dY=1;var t=qze(),e=Xhe(),r=q3(),n=e?function(s,i){return e(s,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:r;return xR=n,xR}var SR,fY;function Hze(){if(fY)return SR;fY=1;var t=800,e=16,r=Date.now;function n(s){var i=0,o=0;return function(){var l=r(),c=e-(l-o);if(o=l,c>0){if(++i>=t)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}return SR=n,SR}var wR,pY;function zae(){if(pY)return wR;pY=1;var t=Vze(),e=Hze(),r=e(t);return wR=r,wR}var CR,mY;function Fh(){if(mY)return CR;mY=1;var t=q3(),e=Bae(),r=zae();function n(s,i){return r(e(s,i,t),s+"")}return CR=n,CR}var AR,hY;function mN(){if(hY)return AR;hY=1;var t=z3(),e=av(),r=Jhe(),n=Qd();function s(i,o,l){if(!n(l))return!1;var c=typeof o;return(c=="number"?e(l)&&r(o,l.length):c=="string"&&o in l)?t(l[o],i):!1}return AR=s,AR}var kR,gY;function qae(){if(gY)return kR;gY=1;var t=Fh(),e=mN();function r(n){return t(function(s,i){var o=-1,l=i.length,c=l>1?i[l-1]:void 0,u=l>2?i[2]:void 0;for(c=n.length>3&&typeof c=="function"?(l--,c):void 0,u&&e(i[0],i[1],u)&&(c=l<3?void 0:c,l=1),s=Object(s);++o<l;){var d=i[o];d&&n(s,d,o,c)}return s})}return kR=r,kR}var MR,_Y;function Gze(){if(_Y)return MR;_Y=1;var t=pN(),e=qae(),r=e(function(n,s,i){t(n,s,i)});return MR=r,MR}var Wze=Gze();const Yze=Pi(Wze),Z6={emergency:0,alert:1,critical:2,error:3,warning:4,notice:5,info:6,informational:6,debug:7};function Kze(t){return t.reduce((e,r)=>({...e,[r.labels.alertname]:e[r.labels.alertname]?{...e[r.labels.alertname],items:[...e[r.labels.alertname].items,r],counts:{...e[r.labels.alertname].counts,total:e[r.labels.alertname].counts.total+1,[r.labels.severity]:e[r.labels.alertname].counts[r.labels.severity]+1}}:{items:[r],counts:{total:1,emergency:0,alert:0,critical:0,error:0,warning:0,notice:0,informational:0,info:0,debug:0,[r.labels.severity]:1}}}),{})}var b_=(t=>(t.REGISTERED="REGISTERED",t.SUSPENDED="SUSPENDED",t.UNDISCOVERABLE="UNDISCOVERABLE",t))(b_||{});function Qze(t,e=0){try{switch(t.resultType){case"vector":return t.result[e]?.value[1];case"scalar":return t.result[e];case"string":return t.result[e];case"matrix":return t.result[e]?.values.map(([r,n])=>({timestamp:r,value:n}))}}catch(r){console.error("Cannot extract data from prometheus data",r,t.result);return}}async function Vae(){const t=$.apis.nrf.profiles.status;return De({options:{url:t,method:"GET"}})}async function Hae(){const t=$.apis.nrf.staticProfiles;return De({options:{url:t,method:"GET"}})}async function Zze(t){const e=$.apis.nrf.staticProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Xze(t){const e=`${$.apis.nrf.staticProfiles}/${t.nfInstanceId}`;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Jze(t){const e=`${$.apis.nrf.staticProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}function X6({group:t,sub_group:e,field_name:r,data:n}){return!t||!e||!n?null:r?{[t]:{[e]:{[r]:n}}}:{[t]:{[e]:n}}}function eqe(t){return Lze.filter(e=>t.includes(e.source)).map(e=>{const r="query_range"in e?`${$.apis.prometheus.query_range({query:e.query_range})}`:`${$.apis.prometheus.query(e.query)}`;return{...e,url:r}})}async function tqe(t){const e=await De({options:{url:t.url,method:"GET"}}),r=Qze(e.data);return X6({...t,data:r})}async function rqe(t){if(!t.includes(ue.NRF))return null;try{const e=await Vae();let r=0,n=0,s=0;return e.forEach(i=>{switch(i.nf_profile.nfStatus){case b_.REGISTERED:r++;break;case b_.SUSPENDED:n++;break;case b_.UNDISCOVERABLE:s++;break}}),X6({group:"control_plane",sub_group:"nrf_profiles",data:{registered_count:r,suspended_count:n,undiscoverable_count:s}})}catch(e){if(e.message!=="canceled")return X6({group:"control_plane",sub_group:"nrf_profiles",data:{registered_count:$.errorKey,suspended_count:$.errorKey,undiscoverable_count:$.errorKey}});throw e}}async function nqe(){const t=await ma(),e=yie(t).map(n=>n.name);return(await Promise.all([...eqe(e).map(async n=>tqe(n)),rqe(e)])).filter(n=>!!n).reduce((n,s)=>Yze(n,s),{})}async function Gae(){const t=$.apis.prometheusAlerts;return(await De({options:{url:t,method:"GET"}})).sort((r,n)=>Z6[r.labels.severity]<Z6[n.labels.severity]?-1:0)}async function Wae(){const[t,e]=await Promise.all([jie(),lN()]),{services:r}=e,n=Ds({services:r,name:ue.ALERTMANAGER});let s=null;if(n&&as(ie.monitoring))try{s=await Gae()}catch(i){console.error(i)}return{info:t,services:r,alerts:s,frontendConfig:e}}const Yae=t=>Object.entries(t).filter(([,e])=>e!=null).reduce((e,[r,n])=>(e[r]=n,e),{}),Kae=t=>!t||t&&Object.keys(t).length===0;async function sqe(t){const e=Object.entries(t);return Promise.all(e.map(([,r])=>r)).then(r=>e.reduce((n,[s],i)=>({...n,[s]:r[i]}),{}))}function hN(t){return!!new URL(t.url).searchParams.has("polling")}async function Wt({loaderArgs:t,deferred:e,data:r}){const{request:n}=t;if(hN(n)||!e)try{const i=await sqe(r);return i===null?{__polling_error:!1}:i}catch{return{__polling_error:!0}}if(e)return Foe(r)}function Na(){const t=he.c(13),[e,r]=hl();let n;e:{let h;t[0]!==e?(h=e.get($.searchParams.pageSize),t[0]=e,t[1]=h):h=t[1];const _=h;if(_&&parseInt(_)){n=parseInt(_);break e}n=$.pageSize}const s=n,i=$.pageSizeOptions,o=iqe;let l;t[2]!==s?(l=h=>{switch(o(h)){case 0:return h.next_token?s*2:s;case 1:return h.next_token?s*3:s*2;case 2:return s*3}},t[2]=s,t[3]=l):l=t[3];const c=l;let u;t[4]!==r?(u=h=>{r(_=>(_.delete($.searchParams.paginationToken),$.pageSizeOptions.includes(h)?_.set($.searchParams.pageSize,h.toString()):_.set($.searchParams.pageSize,$.pageSize.toString()),_),{replace:!0})},t[4]=r,t[5]=u):u=t[5];const d=u;let f;t[6]!==r?(f=h=>_=>{const g=o(h);e:switch(_){case 0:{r(y=>(h.prev_token&&y.set($.searchParams.paginationToken,h.prev_token),y),{replace:!0});break e}case 1:{g===0?r(y=>(h.next_token&&y.set($.searchParams.paginationToken,h.next_token),y),{replace:!0}):r(y=>(h.prev_token&&y.set($.searchParams.paginationToken,h.prev_token),y),{replace:!0});break e}case 2:r(y=>(h.next_token&&y.set($.searchParams.paginationToken,h.next_token),y),{replace:!0})}},t[6]=r,t[7]=f):f=t[7];const p=f;let m;return t[8]!==p||t[9]!==d||t[10]!==c||t[11]!==s?(m={pageSize:s,pageSizeOptions:i,changePageSize:d,changePage:p,getRowsCount:c,getPage:o},t[8]=p,t[9]=d,t[10]=c,t[11]=s,t[12]=m):m=t[12],m}function iqe(t){return t.next_token&&t.prev_token?1:t.next_token?0:t.prev_token?2:0}function Fa(t){const e=new URL(t.request.url),r=e.searchParams.get($.searchParams.pageSize),n=e.searchParams.get($.searchParams.paginationToken);if(!r||r&&!$.pageSizeOptions.includes(+r))throw e.searchParams.set($.searchParams.pageSize,$.pageSize.toString()),rt(e.toString());return{pageSize:r,paginationToken:n}}function Qae(){if(!!Ih())throw rt("/");return!0}function oqe(){if(!!!Ih())throw Gb();return!0}async function aqe({request:t}){const r=new URL(t.url).searchParams.get("returnUrl");await ZTe();let n=$.urls.login;return r&&![$.urls.logout,"/",$.urls.login].includes(r)&&(n=`${n}?returnUrl=${r}`),window.location.href=n,null}function lqe(t){return Qae(),Wt({loaderArgs:t,deferred:!0,data:{frontendConfig:lN(),openIdAuthorization:JTe()}})}async function cqe({request:t}){Qae();const e=new URL(t.url),r=e.searchParams.get("code"),n=e.searchParams.get("iss"),s=e.searchParams.get("session_state")||e.searchParams.get("state");if(!r)throw rt($.urls.login);const i=await e4e({code:r,...n&&{iss:n},...s&&{state:s}});return xt(i)?(Ar(i.error?.detail),rt($.urls.login)):(fie(i),rt($.urls.home))}async function uqe(t){const{pageSize:e,paginationToken:r}=Fa(t),{username:n}=t.params;if(!n)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{audits:r4e(n,r||void 0,+e)}})}async function dqe(t){if(Ji.getRestartStatus())throw rt($.urls.restart);oqe();const{request:e}=t;if(!hN(e)){const n=await die();if(oN(n))return Ji.deleteSiteNode(),window.location.href=window.location.pathname,null}return Wt({loaderArgs:t,deferred:!0,data:{bootstrap:Wae()}})}function vY(t){return Wt({loaderArgs:t,deferred:!0,data:{info:jie()}})}const fqe=Pr();async function pqe(t){const{request:e}=t,r=hN(e);try{const n=await die();if(oN(n)&&r){const s=Ji.getSiteNode();Ar(fqe.formatMessage({id:"cluster.site_picker.node_down"},{ip_address:s}))}return n}catch(n){if(r)return{__polling_error:!0};throw n}}const mqe={path:"logout",loader:aqe},Zae=(t,e="")=>{const r=t.path==="/"?t.path:`${e!=="/"?e:""}${t.path&&t.path!=="/"?"/"+t.path:""}`;try{K6(r,[])}catch(n){console.error("FIX ME! ${fullPath}",n)}return{fullPath:r,...t,loader:async n=>{if(Ih()&&!n.request.url.includes($.urls.profile)&&!Aae())throw rt($.urls.unauthorized);if(!Cae(r))return t.loader&&t.loader!==!0?t.loader(n):null;const s=await ma();return K6(r,s),t.loader&&t.loader!==!0?t.loader(n):null},...t.children&&{children:t.children.map(n=>Zae(n,r))}}},en=()=>{const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(gt,{sx:{p:2},children:a.jsx(Tr,{})}),t[0]=e):e=t[0],e};function Or(t){const e=he.c(4),{center:r,fullHeight:n,transparent:s}=t;let i;return e[0]!==r||e[1]!==n||e[2]!==s?(i=a.jsx(lUe,{appBar:!0,navigation:!0,center:r,fullHeight:n,transparent:s}),e[0]=r,e[1]=n,e[2]=s,e[3]=i):i=e[3],i}const Xae=I.createContext(null);function hqe(){const[t,e]=I.useState(null);return I.useEffect(()=>{e(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function gqe(t){const{children:e,value:r}=t,n=hqe(),s=I.useMemo(()=>({idPrefix:n,value:r}),[n,r]);return a.jsx(Xae.Provider,{value:s,children:e})}function Jae(){return I.useContext(Xae)}function ele(t,e){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-P-${e}`}function tle(t,e){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-T-${e}`}const _qe=I.forwardRef(function(e,r){const{children:n,...s}=e,i=Jae();if(i===null)throw new TypeError("No TabContext provided");const o=I.Children.map(n,l=>I.isValidElement(l)?I.cloneElement(l,{"aria-controls":ele(i,l.props.value),id:tle(i,l.props.value)}):null);return a.jsx(sse,{...s,ref:r,value:i.value,children:o})});function vqe(t){return tr("MuiTabPanel",t)}rr("MuiTabPanel",["root","hidden"]);const yqe=t=>{const{classes:e,hidden:r}=t;return nr({root:["root",r&&"hidden"]},vqe,e)},bqe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({padding:t.spacing(3)})),xqe=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTabPanel"}),{children:s,className:i,value:o,keepMounted:l=!1,...c}=n,u={...n},d=yqe(u),f=Jae();if(f===null)throw new TypeError("No TabContext provided");const p=ele(f,o),m=tle(f,o);return a.jsx(bqe,{"aria-labelledby":m,className:lt(d.root,i),hidden:o!==f.value,id:p,ref:r,role:"tabpanel",ownerState:u,...c,children:(l||o===f.value)&&s})});var nn=(t=>(t.DEFAULT="DEFAULT",t.INFO="INFO",t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(nn||{});function bi(t){const e=he.c(15),{label:r,status:n,asChip:s}=t;let i;e:switch(n){case"SUCCESS":{i="success.main";break e}case"INFO":{i="info.main";break e}case"WARNING":{i="warning.main";break e}case"ERROR":{i="error.main";break e}default:i="divider"}const o=i;if(!r){let f;return e[0]!==o?(f=a.jsx(gt,{sx:{backgroundColor:o,borderRadius:"100px",width:"12px",height:"12px",flex:"0 0 auto"}}),e[0]=o,e[1]=f):f=e[1],f}if(s){let f;e[2]!==o?(f={textTransform:"capitalize",color:"text.primary",fontWeight:"500",backgroundColor:o,px:1,fontSize:"14px"},e[2]=o,e[3]=f):f=e[3];let p;return e[4]!==r||e[5]!==f?(p=a.jsx(ms,{id:r,label:r,size:"small",sx:f}),e[4]=r,e[5]=f,e[6]=p):p=e[6],p}let l;e[7]!==o?(l=a.jsx(gt,{sx:{backgroundColor:o,borderRadius:"100px",width:"12px",height:"12px",flex:"0 0 auto"}}),e[7]=o,e[8]=l):l=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={textTransform:"capitalize"},e[9]=c):c=e[9];let u;e[10]!==r?(u=a.jsx(_e,{fontWeight:500,lineHeight:"24px",sx:c,type:"body2",children:r}),e[10]=r,e[11]=u):u=e[11];let d;return e[12]!==l||e[13]!==u?(d=a.jsxs(te,{direction:"row",align:"center",nowrap:!0,children:[l,u]}),e[12]=l,e[13]=u,e[14]=d):d=e[14],d}function VA(t){const e=he.c(33),{value:r,tabs:n,centered:s,color:i,onChange:o,fullHeight:l}=t;let c;e[0]!==n?(c=n===void 0?[]:n,e[0]=n,e[1]=c):c=e[1];const u=c,d=s===void 0?!1:s,f=l===void 0?!1:l,[p,m]=I.useState(r||u[0].value);let h,_;e[2]!==r?(h=()=>{r&&m(r)},_=[r],e[2]=r,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_);let g;e[5]!==o?(g=(D,O)=>{m(O),o&&o(O)},e[5]=o,e[6]=g):g=e[6];const y=g;if(!p)return null;let b;e[7]!==f?(b=f&&{height:"100%",maxHeight:"100%",overflow:"auto",display:"flex",flexDirection:"column"},e[7]=f,e[8]=b):b=e[8];let x;e[9]!==b?(x={width:"100%",...b},e[9]=b,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:0,right:0,height:"1px",backgroundColor:"divider"}},e[11]=w):w=e[11];let C;e[12]===Symbol.for("react.memo_cache_sentinel")?(C={".MuiTabScrollButton-root.Mui-disabled":{opacity:.2}},e[12]=C):C=e[12];let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k={sx:{height:"4px"}},e[13]=k):k=e[13];let A;e[14]!==u?(A=u.map(Sqe),e[14]=u,e[15]=A):A=e[15];let P;e[16]!==d||e[17]!==i||e[18]!==y||e[19]!==A?(P=a.jsx(gt,{sx:w,children:a.jsx(_qe,{sx:C,variant:"scrollable",allowScrollButtonsMobile:!0,onChange:y,centered:d,indicatorColor:i,TabIndicatorProps:k,children:A})}),e[16]=d,e[17]=i,e[18]=y,e[19]=A,e[20]=P):P=e[20];let T;if(e[21]!==f||e[22]!==u){let D;e[24]!==f?(D=(O,N)=>O.content?a.jsx(xqe,{value:O.value,sx:{p:0,...f&&{flexGrow:"1",maxHeight:"100%",overflow:"auto"}},children:O.content},N):null,e[24]=f,e[25]=D):D=e[25],T=u.map(D),e[21]=f,e[22]=u,e[23]=T}else T=e[23];let j;e[26]!==p||e[27]!==P||e[28]!==T?(j=a.jsxs(gqe,{value:p,children:[P,T]}),e[26]=p,e[27]=P,e[28]=T,e[29]=j):j=e[29];let R;return e[30]!==j||e[31]!==x?(R=a.jsx(gt,{sx:x,children:j}),e[30]=j,e[31]=x,e[32]=R):R=e[32],R}function Sqe(t,e){return a.jsx(p6,{label:a.jsxs(T1e,{direction:"row",alignItems:"center",spacing:1,children:[t.status&&a.jsx(bi,{status:t.status}),t.error&&a.jsx(gt,{color:"error.main",sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(ge.StatusErrorSmall,{})}),a.jsx("div",{children:t.label})]}),sx:{textTransform:"capitalize",fontSize:"1rem",fontWeight:400,"&.Mui-selected":{fontWeight:600,color:"primary.main"}},disabled:!!t.disabled,value:t.value},e)}const Ao=t=>{const e=he.c(25),{tabs:r,keepQueryParams:n}=t,s=n===void 0?!1:n,i=Lp("."),o=ys(),l=WL(),c=to();let u;e[0]!==s||e[1]!==c.search||e[2]!==o?(u=k=>{s?o(`${k}${c.search}`,{replace:!0}):o(k,{replace:!0})},e[0]=s,e[1]=c.search,e[2]=o,e[3]=u):u=e[3];const d=u;let f;if(e[4]!==i||e[5]!==r){let k;e[7]!==i?(k=A=>({...A,url:`${i.pathname}/${A.url}`}),e[7]=i,e[8]=k):k=e[8],f=r.map(k),e[4]=i,e[5]=r,e[6]=f}else f=e[6];const p=f;let m;if(e[9]!==l||e[10]!==p){let k;e[12]!==l?(k=A=>l.map(Cqe).includes(A),e[12]=l,e[13]=k):k=e[13],m=p.map(wqe).find(k),e[9]=l,e[10]=p,e[11]=m}else m=e[11];const _=m??p[0].url;let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"hidden"},e[14]=g):g=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y={flex:"0 0 auto"},e[15]=y):y=e[15];let b;e[16]!==d||e[17]!==p||e[18]!==_?(b=p?.length>0&&a.jsx(VA,{value:_,tabs:p.map(Aqe),onChange:d}),e[16]=d,e[17]=p,e[18]=_,e[19]=b):b=e[19];let x;e[20]!==b?(x=a.jsx(te,{sx:y,children:b}),e[20]=b,e[21]=x):x=e[21];let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(te,{fullHeight:!0,sx:{flex:"1 1 auto"},children:a.jsx(Bd,{})}),e[22]=w):w=e[22];let C;return e[23]!==x?(C=a.jsxs(te,{fullHeight:!0,nowrap:!0,sx:g,spacing:0,children:[x,w]}),e[23]=x,e[24]=C):C=e[24],C};function wqe(t){return t.url}function Cqe(t){return t.pathname}function Aqe(t){const{url:e,label:r,status:n}=t;return{value:e,label:r,status:n}}const kqe=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},PR=new Set(["__proto__","prototype","constructor"]),Mqe=new Set("0123456789");function Pqe(t){const e=[];let r="",n="start",s=!1;for(const i of t)switch(i){case"\\":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=i),n="property",s=!s;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=i;break}if(PR.has(r))return[];e.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=i;break}if(n==="property"){if(PR.has(r))return[];e.push(r),r=""}n="index";break}case"]":{if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!Mqe.has(i))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=i}}switch(s&&(r+="\\"),n){case"property":{if(PR.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}function jqe(t,e){if(typeof e!="number"&&Array.isArray(t)){const r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function Tqe(t,e,r){if(!kqe(t)||typeof e!="string")return t;const n=Pqe(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(jqe(t,i)?t=s===n.length-1?void 0:null:t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}function da(t){const e=he.c(29),{disabled:r,color:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checkedIcon:f,checked:p,icon:m,indeterminate:h,indeterminateIcon:_,name:g,customColor:y,sx:b,label:x}=t,w=x===void 0?"":x,C=w?"inherit":0;let k;e[0]!==C?(k={mx:C},e[0]=C,e[1]=k):k=e[1];let A;e[2]!==y?(A=y&&{"&.Mui-checked svg":{color:y}},e[2]=y,e[3]=A):A=e[3];let P;e[4]!==b||e[5]!==A?(P={...b,...A},e[4]=b,e[5]=A,e[6]=P):P=e[6];let T;e[7]!==p||e[8]!==f||e[9]!==n||e[10]!==o||e[11]!==c||e[12]!==u||e[13]!==m||e[14]!==h||e[15]!==_||e[16]!==g||e[17]!==i||e[18]!==l||e[19]!==s||e[20]!==P||e[21]!==d?(T=a.jsx(XL,{color:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:p,checkedIcon:f,icon:m,indeterminate:h,name:g,indeterminateIcon:_,sx:P}),e[7]=p,e[8]=f,e[9]=n,e[10]=o,e[11]=c,e[12]=u,e[13]=m,e[14]=h,e[15]=_,e[16]=g,e[17]=i,e[18]=l,e[19]=s,e[20]=P,e[21]=d,e[22]=T):T=e[22];let j;return e[23]!==p||e[24]!==r||e[25]!==w||e[26]!==k||e[27]!==T?(j=a.jsx(Rv,{disabled:r,sx:k,checked:p,control:T,label:w}),e[23]=p,e[24]=r,e[25]=w,e[26]=k,e[27]=T,e[28]=j):j=e[28],j}const Eqe=I.forwardRef((t,e)=>{const r=he.c(8),{autoScale:n,children:s}=t;let i;r[0]!==n?(i=n&&{height:"calc(100% - 52px)",overflow:"auto",width:"100%",maxHeight:"calc(100% - 52px)",position:"relative"},r[0]=n,r[1]=i):i=r[1];let o;r[2]!==i?(o={...i},r[2]=i,r[3]=o):o=r[3];let l;return r[4]!==s||r[5]!==e||r[6]!==o?(l=a.jsx(uFe,{sx:o,ref:e,children:s}),r[4]=s,r[5]=e,r[6]=o,r[7]=l):l=r[7],l});function Rqe(t){const e=he.c(27),{selectable:r,selectedRows:n,selectedAllRows:s,rowsCount:i,rowsPerPage:o,showFirstLastButton:l,page:c,hidePagination:u,onPageChange:d,rowsPerPageOptions:f,onRowsPerPageChange:p,labelDisplayedRows:m,loading:h,customFooterComponent:_,hideRowsCount:g}=t,y=g===void 0?!1:g,b=h?"0.5":1;let x;e[0]!==b?(x={opacity:b},e[0]=b,e[1]=x):x=e[1];let w;e[2]!==_?(w=_&&a.jsx(gt,{sx:{ml:2,flexGrow:1,justifySelf:"flex-start"},children:_}),e[2]=_,e[3]=w):w=e[3];let C;e[4]!==r||e[5]!==s||e[6]!==n?(C=r&&a.jsxs(gt,{sx:{flexShrink:0,ml:2},children:[n?.length?a.jsxs(_e,{type:"body2",children:[n.length," ",`row${n.length>1?"s":""}`," selected"]}):null,s&&a.jsx(_e,{type:"body2",children:"All rows selected"})]}),e[4]=r,e[5]=s,e[6]=n,e[7]=C):C=e[7];let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k={flexShrink:0},e[8]=k):k=e[8];let A;e[9]!==u||e[10]!==y||e[11]!==m||e[12]!==d||e[13]!==p||e[14]!==c||e[15]!==i||e[16]!==o||e[17]!==f||e[18]!==l?(A=u?y?null:a.jsx(tN,{variant:"dense",children:a.jsxs(gt,{sx:{marginTop:2,marginBottom:2},children:[a.jsxs(_e,{type:"body2",children:[i," Rows"]})," "]})}):a.jsx(TFe,{rowsPerPageOptions:f||[-1],component:"div",count:i,rowsPerPage:o,page:c,onPageChange:d,onRowsPerPageChange:p,showFirstButton:l,showLastButton:l,labelDisplayedRows:m,sx:{"& .MuiTablePagination-actions":{display:"flex",ml:1},"& .MuiSelect-select":{pt:"5px"}}}),e[9]=u,e[10]=y,e[11]=m,e[12]=d,e[13]=p,e[14]=c,e[15]=i,e[16]=o,e[17]=f,e[18]=l,e[19]=A):A=e[19];let P;e[20]!==A?(P=a.jsx(gt,{sx:k,children:A}),e[20]=A,e[21]=P):P=e[21];let T;return e[22]!==x||e[23]!==w||e[24]!==C||e[25]!==P?(T=a.jsxs(QL,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,sx:x,children:[w,C,P]}),e[22]=x,e[23]=w,e[24]=C,e[25]=P,e[26]=T):T=e[26],T}const w2=Ce(na,{shouldForwardProp:t=>t!=="loading"})(({theme:t,loading:e})=>({borderBottom:e?"0":`1px solid ${t.palette.divider}`})),Iqe=Ce(FFe)(({theme:t})=>({"&.Mui-active, &":{"& .MuiTableSortLabel-icon":{color:t.palette.primary.main}}}));function Dqe(t){const e=he.c(56),{rowsCount:r,columns:n,order:s,orderBy:i,onSort:o,rowActions:l,loading:c,selectable:u,selectedRows:d,selectedAllRows:f,onSelectedAllRows:p,fullColSpan:m,rowDetail:h,disableSelectAll:_,stickyRowActions:g,dense:y}=t,b=ci();let x;e[0]!==o||e[1]!==s||e[2]!==i?(x=H=>{const K=i===H.key&&s===Gl.ASC?Gl.DESC:Gl.ASC,q=H.key;o&&o(K,q)},e[0]=o,e[1]=s,e[2]=i,e[3]=x):x=e[3];const w=x,C=!!(d&&d.length&&d.length<r&&r>0),k=!!(d&&d.length&&d.length===r&&r>0||f);let A;e[4]!==b.palette.background.paper?(A=br(b.palette.background.paper,.5),e[4]=b.palette.background.paper,e[5]=A):A=e[5];let P;e[6]!==l?.length?(P=l?.length&&{"&:last-child":{backdropFilter:"none"}},e[6]=l?.length,e[7]=P):P=e[7];let T;e[8]!==A||e[9]!==P?(T={"& th":{background:"transparent",backdropFilter:"blur(12px)",backgroundColor:A,...P}},e[8]=A,e[9]=P,e[10]=T):T=e[10];let j;e[11]!==y||e[12]!==c||e[13]!==h?(j=h&&a.jsx(w2,{loading:c,variant:"head",padding:"checkbox",sx:{fontSize:"16px",width:"48px",minWidth:"48px",...y&&{p:1}},children:a.jsx(te,{align:"center",justify:"center",children:a.jsx(ge.Info,{})})}),e[11]=y,e[12]=c,e[13]=h,e[14]=j):j=e[14];let R;e[15]!==y||e[16]!==_||e[17]!==k||e[18]!==C||e[19]!==c||e[20]!==p||e[21]!==u?(R=u&&a.jsx(w2,{loading:c,variant:"head",padding:"checkbox",children:!_&&a.jsx(da,{color:"primary",indeterminate:C,checked:k,onChange:p,disabled:c,size:y?"small":"medium"})}),e[15]=y,e[16]=_,e[17]=k,e[18]=C,e[19]=c,e[20]=p,e[21]=u,e[22]=R):R=e[22];let D;if(e[23]!==n||e[24]!==y||e[25]!==w||e[26]!==c||e[27]!==s||e[28]!==i){let H;e[30]!==y||e[31]!==w||e[32]!==c||e[33]!==s||e[34]!==i?(H=(W,K)=>a.jsx(w2,{align:W.numeric?"right":"left",sortDirection:i===W.key?s:!1,variant:"head",loading:c,sx:{fontWeight:"600",maxWidth:W.maxWidth?`${W.maxWidth}px`:"inherit",minWidth:W.minWidth?`${W.minWidth}px`:"inherit",width:W.width?`${W.width}px`:"inherit",...y&&{p:.5,pr:2}},children:a.jsx(Iqe,{active:W.sortable?i===W.key:!1,direction:i===W.key?s:Gl.ASC,onClick:()=>{W.sortable&&w(W)},sx:W.sortable?void 0:{cursor:"auto","&:hover":{color:"text.primary"},"& .MuiTableSortLabel-icon":{display:"none"}},children:W.label})},`${String(W.key)}-${K}`),e[30]=y,e[31]=w,e[32]=c,e[33]=s,e[34]=i,e[35]=H):H=e[35],D=n.map(H),e[23]=n,e[24]=y,e[25]=w,e[26]=c,e[27]=s,e[28]=i,e[29]=D}else D=e[29];let O;e[36]!==c||e[37]!==l?.length||e[38]!==g||e[39]!==b.palette.background.paper?(O=l?.length?a.jsx(w2,{padding:"checkbox",loading:c,sx:{...g&&{position:"sticky",right:0,backdropFilter:"blur(12px) !important",backgroundColor:`${br(b.palette.background.paper,.5)}`}}}):null,e[36]=c,e[37]=l?.length,e[38]=g,e[39]=b.palette.background.paper,e[40]=O):O=e[40];let N;e[41]!==j||e[42]!==R||e[43]!==D||e[44]!==O?(N=a.jsxs(d_,{children:[j,R,D,O]}),e[41]=j,e[42]=R,e[43]=D,e[44]=O,e[45]=N):N=e[45];let F;e[46]!==T||e[47]!==N?(F=a.jsx(OW,{sx:T,children:N}),e[46]=T,e[47]=N,e[48]=F):F=e[48];let U;e[49]!==y||e[50]!==m||e[51]!==c?(U=c?a.jsx(OW,{sx:{position:"sticky",top:y?"33px":"58px",left:0,right:0,zIndex:3},children:a.jsx(d_,{children:a.jsx(na,{colSpan:m,sx:{p:0,border:0},children:a.jsx(Nc,{color:"primary",thickness:1})})})}):null,e[49]=y,e[50]=m,e[51]=c,e[52]=U):U=e[52];let z;return e[53]!==F||e[54]!==U?(z=a.jsxs(a.Fragment,{children:[F,U]}),e[53]=F,e[54]=U,e[55]=z):z=e[55],z}var Gl=(t=>(t.ASC="asc",t.DESC="desc",t))(Gl||{});const $qe=Array.from({length:4});function Br(t){const e=he.c(153),{order:r,orderBy:n,columns:s,data:i,rowsCount:o,page:l,rowsPerPage:c,rowKey:u,onSort:d,rowActions:f,rowDetail:p,onPageChange:m,showFirstLastButton:h,loading:_,noDataText:g,autoScale:y,selectable:b,selectedRows:x,selectedAllRows:w,onSelectedRow:C,hidePagination:k,hideRowsCount:A,onRowsPerPageChange:P,rowsPerPageOptions:T,labelDisplayedRows:j,disableSelectAll:R,stickyRowActions:D,customRowSx:O,customFooterComponent:N,dense:F,onRowClick:U,containerRef:z}=t,H=r===void 0?"asc":r,W=g===void 0?"No data to display":g,K=As();let q;e[0]!==x?(q=x||[],e[0]=x,e[1]=q):q=e[1];const[X,Q]=I.useState(q),[Y,Z]=I.useState(!!w);let re;e[2]===Symbol.for("react.memo_cache_sentinel")?(re=[],e[2]=re):re=e[2];const[fe,de]=I.useState(re),{menuOpen:se,menuClose:le}=Jt();let ee;e[3]!==f?(ee=f?.filter(Nqe),e[3]=f,e[4]=ee):ee=e[4];const J=ee;let me;e[5]!==f?(me=f?.filter(Lqe),e[5]=f,e[6]=me):me=e[6];const pe=me,Se=Oqe;let ve;e[7]!==m?(ve=(Ae,ze)=>{m&&m(ze)},e[7]=m,e[8]=ve):ve=e[8];const xe=ve;let qe;e[9]!==P?(qe=Ae=>{const ze=Ae.target.value;P&&P(parseInt(ze))},e[9]=P,e[10]=qe):qe=e[10];const Le=qe;let Te;e[11]!==le||e[12]!==se||e[13]!==pe?(Te=(Ae,ze,_t)=>{pe&&(Ae.stopPropagation(),se({anchorEl:Ae.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:pe.filter(jt=>{const{hidden:Gt}=jt;return Gt?!Gt(ze,_t):!0}).map(jt=>{const{label:Gt,onClick:Yt,disabled:Rt,icon:At}=jt;return{label:Gt,value:Gt,disabled:typeof Rt=="function"?Rt(ze,_t):Rt,icon:At,onClick:()=>{le(),Yt(ze,_t)}}})}))},e[11]=le,e[12]=se,e[13]=pe,e[14]=Te):Te=e[14];const je=Te;let Ge;e[15]!==fe?(Ge=Ae=>fe.includes(Ae),e[15]=fe,e[16]=Ge):Ge=e[16];const nt=Ge;let Re;e[17]!==p?(Re=Ae=>p?typeof p.disabled=="function"?p.disabled(Ae):p.disabled:!0,e[17]=p,e[18]=Re):Re=e[18];const we=Re;let Me;e[19]!==nt||e[20]!==fe?(Me=Ae=>{const ze=nt(Ae);let _t;ze?_t=fe.filter(jt=>jt!==Ae):_t=[...fe,Ae],de(_t)},e[19]=nt,e[20]=fe,e[21]=Me):Me=e[21];const $e=Me;let Ve;e[22]!==Y||e[23]!==X?(Ve=Ae=>X.includes(Ae)||Y,e[22]=Y,e[23]=X,e[24]=Ve):Ve=e[24];const Ne=Ve;let Oe;e[25]!==Ne||e[26]!==C||e[27]!==b||e[28]!==X?(Oe=(Ae,ze)=>{if(!b)return;const _t=Ne(Ae);let jt;_t?jt=X.filter(Gt=>Gt!==Ae):jt=[...X,Ae],Q(jt),C&&C(jt,!1,ze,_t?1:0)},e[25]=Ne,e[26]=C,e[27]=b,e[28]=X,e[29]=Oe):Oe=e[29];const ft=Oe;let Ct;e[30]!==C||e[31]!==Y?(Ct=()=>{const Ae=[],ze=!Y;Z(ze),Q(Ae),C&&C(Ae,ze,null,ze?2:3)},e[30]=C,e[31]=Y,e[32]=Ct):Ct=e[32];const Et=Ct,at=s.length+(f?.length?1:0)+(p?1:0)+(b?1:0);let $t,Ee;e[33]!==w?($t=()=>{Z(!!w)},Ee=[w],e[33]=w,e[34]=$t,e[35]=Ee):($t=e[34],Ee=e[35]),I.useEffect($t,Ee);let Be,qt;e[36]!==x?(Be=()=>{x&&Q(x)},qt=[x],e[36]=x,e[37]=Be,e[38]=qt):(Be=e[37],qt=e[38]),I.useEffect(Be,qt);let ar;e[39]!==y?(ar=y&&{overflow:"hidden",maxHeight:"100%"},e[39]=y,e[40]=ar):ar=e[40];const hr=_?"none":"inherit";let ir;e[41]!==ar||e[42]!==hr?(ir={width:"100%",height:"100%",flex:"1 1 auto",...ar,pointerEvents:hr},e[41]=ar,e[42]=hr,e[43]=ir):ir=e[43];const cr=!!p;let kr;e[44]!==s||e[45]!==F||e[46]!==R||e[47]!==at||e[48]!==Et||e[49]!==_||e[50]!==d||e[51]!==H||e[52]!==n||e[53]!==f||e[54]!==o||e[55]!==b||e[56]!==Y||e[57]!==X||e[58]!==D||e[59]!==cr?(kr=a.jsx(Dqe,{rowsCount:o,order:H,orderBy:n,columns:s,onSort:d,rowActions:f,loading:_,selectable:b,disableSelectAll:R,selectedRows:X,selectedAllRows:Y,onSelectedAllRows:Et,fullColSpan:at,rowDetail:cr,stickyRowActions:D,dense:F}),e[44]=s,e[45]=F,e[46]=R,e[47]=at,e[48]=Et,e[49]=_,e[50]=d,e[51]=H,e[52]=n,e[53]=f,e[54]=o,e[55]=b,e[56]=Y,e[57]=X,e[58]=D,e[59]=cr,e[60]=kr):kr=e[60];let Rr;if(e[61]!==s||e[62]!==O||e[63]!==i||e[64]!==F||e[65]!==at||e[66]!==je||e[67]!==$e||e[68]!==ft||e[69]!==k||e[70]!==A||e[71]!==we||e[72]!==nt||e[73]!==Ne||e[74]!==_||e[75]!==U||e[76]!==p||e[77]!==u||e[78]!==b||e[79]!==Y||e[80]!==D||e[81]!==K||e[82]!==J||e[83]!==pe){let Ae;e[85]!==s||e[86]!==O||e[87]!==F||e[88]!==at||e[89]!==je||e[90]!==$e||e[91]!==ft||e[92]!==k||e[93]!==A||e[94]!==we||e[95]!==nt||e[96]!==Ne||e[97]!==_||e[98]!==U||e[99]!==p||e[100]!==u||e[101]!==b||e[102]!==Y||e[103]!==D||e[104]!==K||e[105]!==J||e[106]!==pe?(Ae=(ze,_t)=>{const jt=we(ze),Gt=O?O(ze):{};return a.jsxs(I.Fragment,{children:[a.jsxs(d_,{tabIndex:-1,"data-testid":`row-key-${ze[u]}`,selected:Ne(ze[u]),sx:{opacity:_?.5:1,transition:"opacity 300ms",...U&&{cursor:"pointer","&:hover":{backgroundColor:"divider"}},...k&&A&&{"&:last-child td":{borderBottomColor:"transparent"}},...Gt},onClick:()=>{U&&U(ze)},children:[p&&a.jsx(na,{padding:"checkbox",sx:{p:0,pl:.1,width:"48px",minWidth:"48px",position:"relative"},children:a.jsx(Zr,{size:F?"small":"medium",onClick:()=>{$e(ze[u])},disabled:jt,sx:{p:0,pl:.1,position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",borderRadius:0,...jt&&{opacity:.4}},children:nt(ze[u])?a.jsx(ge.Minus,{}):a.jsx(ge.Plus,{})})}),b&&a.jsx(na,{padding:"checkbox",children:a.jsx(da,{color:"primary",size:F?"small":"medium",checked:Ne(ze[u]),onChange:()=>ft(ze[u],ze),disabled:Y})}),s.map((Yt,Rt)=>a.jsx(na,{align:Yt.numeric?"right":"left",sx:{maxWidth:Yt.maxWidth?`${Yt.maxWidth}px`:"inherit",minWidth:Yt.minWidth?`${Yt.minWidth}px`:"inherit",width:Yt.width?`${Yt.width}px`:"inherit",wordBreak:Yt.wordBreak?Yt.wordBreak:"inherit",whiteSpace:Yt.whiteSpace?Yt.whiteSpace:"inherit",...F&&{py:0,pl:.5,pr:2}},children:Se(Yt,ze,_t)},`${String(Yt.key)}-${Rt}-${_t}`)),J||pe?a.jsx(na,{align:"right",sx:{...D&&{position:"sticky",backdropFilter:"blur(12px) !important",backgroundColor:`${br(K.palette.background.paper,.5)}`,borderLeft:"1px solid",borderLeftColor:"divider",right:0,px:1.5,py:0}},children:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",justify:"flex-end",children:[J?.map((Yt,Rt)=>a.jsx(hae,{title:Yt.label,children:a.jsx("div",{children:a.jsx(Zr,{size:"small",onClick:()=>Yt.onClick(ze,_t),disabled:typeof Yt.disabled=="function"?Yt.disabled(ze,_t):Yt.disabled,children:Yt.icon})})},Rt)),!!pe?.length&&a.jsx(Zr,{size:"small",onClick:Yt=>je(Yt,ze,_t),children:a.jsx(ge.More,{size:24})})]})}):null]}),p&&!we(ze)&&a.jsx(d_,{children:a.jsx(na,{colSpan:at,sx:{p:0,borderBottom:0},children:a.jsx(Qb,{in:nt(ze[u]),children:a.jsx(gt,{sx:{p:F?1:2,pl:F?6:8,borderBottom:"1px solid",borderColor:"divider"},children:p.content(ze)})})})})]},`${ze[u]}-${_t}}`)},e[85]=s,e[86]=O,e[87]=F,e[88]=at,e[89]=je,e[90]=$e,e[91]=ft,e[92]=k,e[93]=A,e[94]=we,e[95]=nt,e[96]=Ne,e[97]=_,e[98]=U,e[99]=p,e[100]=u,e[101]=b,e[102]=Y,e[103]=D,e[104]=K,e[105]=J,e[106]=pe,e[107]=Ae):Ae=e[107],Rr=i.map(Ae),e[61]=s,e[62]=O,e[63]=i,e[64]=F,e[65]=at,e[66]=je,e[67]=$e,e[68]=ft,e[69]=k,e[70]=A,e[71]=we,e[72]=nt,e[73]=Ne,e[74]=_,e[75]=U,e[76]=p,e[77]=u,e[78]=b,e[79]=Y,e[80]=D,e[81]=K,e[82]=J,e[83]=pe,e[84]=Rr}else Rr=e[84];let Ut;e[108]!==s||e[109]!==i.length||e[110]!==_||e[111]!==f?.length||e[112]!==p||e[113]!==b?(Ut=!i.length&&_?$qe.map((Ae,ze)=>a.jsxs(d_,{children:[p&&a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}),b&&a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}),s.map((_t,jt)=>a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})},`${String(_t.key)}-${jt}-${ze}`)),f?.length?a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}):null]},`skeleton-${ze}`)):null,e[108]=s,e[109]=i.length,e[110]=_,e[111]=f?.length,e[112]=p,e[113]=b,e[114]=Ut):Ut=e[114];let fn;e[115]!==i.length||e[116]!==at||e[117]!==_||e[118]!==W?(fn=!i.length&&!_?a.jsx(d_,{children:a.jsx(na,{colSpan:at,sx:{p:2,border:0},children:a.jsx(Lr,{severity:"info",message:W,sx:{backgroundColor:"divider"}})})}):null,e[115]=i.length,e[116]=at,e[117]=_,e[118]=W,e[119]=fn):fn=e[119];let Zt;e[120]!==Rr||e[121]!==Ut||e[122]!==fn?(Zt=a.jsxs(rFe,{children:[Rr,Ut,fn]}),e[120]=Rr,e[121]=Ut,e[122]=fn,e[123]=Zt):Zt=e[123];let _r;e[124]!==y||e[125]!==kr||e[126]!==Zt?(_r=a.jsxs(Z9e,{stickyHeader:y,children:[kr,Zt]}),e[124]=y,e[125]=kr,e[126]=Zt,e[127]=_r):_r=e[127];let st;e[128]!==y||e[129]!==z||e[130]!==_r?(st=a.jsx(Eqe,{autoScale:y,ref:z,children:_r}),e[128]=y,e[129]=z,e[130]=_r,e[131]=st):st=e[131];let wt;e[132]!==N||e[133]!==i.length||e[134]!==xe||e[135]!==Le||e[136]!==k||e[137]!==A||e[138]!==j||e[139]!==_||e[140]!==l||e[141]!==o||e[142]!==c||e[143]!==T||e[144]!==b||e[145]!==Y||e[146]!==X||e[147]!==h?(wt=i.length>0&&a.jsx(Rqe,{customFooterComponent:N,selectable:b,selectedRows:X,selectedAllRows:Y,rowsCount:o,rowsPerPage:c,page:l,showFirstLastButton:h,hidePagination:k,hideRowsCount:A,onPageChange:xe,onRowsPerPageChange:Le,rowsPerPageOptions:T,labelDisplayedRows:j,loading:_}),e[132]=N,e[133]=i.length,e[134]=xe,e[135]=Le,e[136]=k,e[137]=A,e[138]=j,e[139]=_,e[140]=l,e[141]=o,e[142]=c,e[143]=T,e[144]=b,e[145]=Y,e[146]=X,e[147]=h,e[148]=wt):wt=e[148];let Pe;return e[149]!==ir||e[150]!==st||e[151]!==wt?(Pe=a.jsxs(gt,{sx:ir,children:[st,wt]}),e[149]=ir,e[150]=st,e[151]=wt,e[152]=Pe):Pe=e[152],Pe}function Oqe(t,e,r){const n=Tqe(e,t.key.toString()),s=typeof n>"u"||n===null;return t.cellRender?t.cellRender(e,r):s?"":a.jsx(_e,{type:"body2",children:`${n}`})}function Lqe(t){return t.wrapped}function Nqe(t){return!t.wrapped}function Fqe(){const t=he.c(19),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"aaa.status.radius.local_addr"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addr",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"aaa.status.radius.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==i||t[9]!==l?(c=[i,l],t[8]=i,t[9]=l,t[10]=c):c=t[10];const u=c;let d;t[11]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(mb,{variant:"rounded",height:"100%",sx:{m:2}}),t[11]=d):d=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(en,{}),t[12]=f):f=t[12];let p;t[13]!==u||t[14]!==n.state?(p=h=>a.jsx(Br,{autoScale:!0,data:h||[],orderBy:"local_addr",page:0,loading:n.state!=="idle",rowsCount:h?.length,rowsPerPage:h?.length,rowKey:"local_addr",columns:u,hidePagination:!0}),t[13]=u,t[14]=n.state,t[15]=p):p=t[15];let m;return t[16]!==r.radiusStatus||t[17]!==p?(m=a.jsx(I.Suspense,{fallback:d,children:a.jsx(Qt,{resolve:r.radiusStatus,errorElement:f,children:p})}),t[16]=r.radiusStatus,t[17]=p,t[18]=m):m=t[18],m}const Uqe=async()=>{const t=`${$.apis.aaa.radius.status}`;return De({options:{url:t,method:"GET"}})};async function Bqe(t){return Wt({loaderArgs:t,deferred:!0,data:{radiusStatus:Uqe()}})}const yY=Pr();function zqe(t){const{dev:e,port:r,host:n,tos:s,name:i}=t;return{erlang:{distribution:{host:n,name:i,port:+r,...e!==""&&{dev:e},...s!==""&&{tos:+s}}}}}function qqe(t){const{dev:e,port:r,host:n,tos:s,name:i}=t.erlang.distribution;return{dev:e??"",port:+r,host:n,tos:s??"",name:i}}const Vqe=dr().shape({dev:We(),host:We().required(yY.formatMessage({id:"network_configuration.form.errors.required"})),name:We().required(yY.formatMessage({id:"network_configuration.form.errors.required"})),port:kn().required().min(1025).max(65535),tos:kn().min(0).max(255)}),Hqe=Pr(),Gqe=dr().shape({node:We().required(Hqe.formatMessage({id:"cluster.form.errors.required"})).strict(!0)}),Wqe=dr().shape({force:li()});function Yqe(t){const e=he.c(6);let r,n;e[0]!==t?({children:r,...n}=t,e[0]=t,e[1]=r,e[2]=n):(r=e[1],n=e[2]);let s;return e[3]!==r||e[4]!==n?(s=a.jsx(dne,{...n,children:r}),e[3]=r,e[4]=n,e[5]=s):s=e[5],s}function dt(t){const e=he.c(86);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P,T,j;e[0]!==t?({color:n,disabled:s,size:k,variant:j,label:u,error:i,fullWidth:o,helperText:l,multiline:f,name:p,value:T,placeholder:y,required:x,onChange:h,onKeyDown:_,onBlur:m,InputProps:r,tooltip:A,type:P,min:d,pattern:g,sx:C,inputProps:c,showPasswordVisibility:w,...b}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g,e[16]=y,e[17]=b,e[18]=x,e[19]=w,e[20]=C,e[21]=k,e[22]=A,e[23]=P,e[24]=T,e[25]=j):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15],y=e[16],b=e[17],x=e[18],w=e[19],C=e[20],k=e[21],A=e[22],P=e[23],T=e[24],j=e[25]);const R=k===void 0?"small":k,[D,O]=I.useState(!1);let N;e[26]!==D?(N=()=>{O(!D)},e[26]=D,e[27]=N):N=e[27];const F=N,U=iN(),z=!!f;let H;e[28]!==p?(H=p&&{"data-testid":`field-${p}`},e[28]=p,e[29]=H):H=e[29];let W;e[30]!==p?(W=p&&{"data-testid":`field-input-${p}`},e[30]=p,e[31]=W):W=e[31];let K;e[32]!==d||e[33]!==P?(K=P==="number"&&{step:"any",min:d},e[32]=d,e[33]=P,e[34]=K):K=e[34];let q;e[35]!==P?(q=P==="time"&&{step:"1"},e[35]=P,e[36]=q):q=e[36];let X;e[37]!==c||e[38]!==g||e[39]!==W||e[40]!==K||e[41]!==q?(X={...W,pattern:g,...K,...q,...c},e[37]=c,e[38]=g,e[39]=W,e[40]=K,e[41]=q,e[42]=X):X=e[42];const Q=U&&U,Y=D?void 0:P;let Z;e[43]!==r?.endAdornment||e[44]!==A?(Z=A&&{endAdornment:a.jsxs(gt,{sx:{display:"flex",alignItems:"center"},children:[r?.endAdornment,a.jsx(Mn,{title:A,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})})]})},e[43]=r?.endAdornment,e[44]=A,e[45]=Z):Z=e[45];let re;e[46]!==F||e[47]!==p||e[48]!==D||e[49]!==w?(re=w&&{endAdornment:a.jsx(Yqe,{position:"end",children:a.jsx(Zr,{"data-testid":`field-${p}-button-showPassword`,"aria-label":"toggle password visibility",onClick:F,children:D?a.jsx(ge.PasswordHide,{}):a.jsx(ge.PasswordView,{})})})},e[46]=F,e[47]=p,e[48]=D,e[49]=w,e[50]=re):re=e[50];let fe;e[51]!==r||e[52]!==Y||e[53]!==Z||e[54]!==re||e[55]!==Q?(fe={...Q,type:Y,...Z,...re,...r},e[51]=r,e[52]=Y,e[53]=Z,e[54]=re,e[55]=Q,e[56]=fe):fe=e[56];let de;e[57]===Symbol.for("react.memo_cache_sentinel")?(de={opacity:.7},e[57]=de):de=e[57];let se;e[58]!==A?(se=A&&{".MuiAutocomplete-endAdornment":{position:"relative"},input:{width:"calc(100% - 40px)"}},e[58]=A,e[59]=se):se=e[59];let le;e[60]!==C||e[61]!==se?(le={...C,position:"relative",".Mui-disabled":de,...se},e[60]=C,e[61]=se,e[62]=le):le=e[62];let ee;return e[63]!==n||e[64]!==s||e[65]!==i||e[66]!==o||e[67]!==l||e[68]!==u||e[69]!==f||e[70]!==p||e[71]!==m||e[72]!==h||e[73]!==_||e[74]!==y||e[75]!==b||e[76]!==x||e[77]!==R||e[78]!==fe||e[79]!==le||e[80]!==z||e[81]!==H||e[82]!==X||e[83]!==T||e[84]!==j?(ee=a.jsx(k0,{...b,name:p,value:T,color:n,disabled:s,size:R,variant:j,label:u,error:i,fullWidth:o,helperText:l,multiline:z,maxRows:f,minRows:f,placeholder:y,required:x,onChange:h,onKeyDown:_,onBlur:m,...H,inputProps:X,InputProps:fe,sx:le}),e[63]=n,e[64]=s,e[65]=i,e[66]=o,e[67]=l,e[68]=u,e[69]=f,e[70]=p,e[71]=m,e[72]=h,e[73]=_,e[74]=y,e[75]=b,e[76]=x,e[77]=R,e[78]=fe,e[79]=le,e[80]=z,e[81]=H,e[82]=X,e[83]=T,e[84]=j,e[85]=ee):ee=e[85],ee}function xr(t){const e=he.c(68),{sx:r,expanded:n,disableGutters:s,square:i,title:o,content:l,onChange:c,spacing:u,reversedArrow:d,subtitle:f,actions:p,actionsComponent:m,elevation:h,error:_,unmountOnExit:g,modalElevation:y}=t,b=n===void 0?!1:n,x=s===void 0?!1:s,w=g===void 0?!1:g,[C,k]=I.useState(b),{menuOpen:A,menuClose:P}=Jt();let T;e[0]!==c?(T=(xe,qe)=>{c&&c(xe,qe),k(qe)},e[0]=c,e[1]=T):T=e[1];const j=T;let R;e[2]!==p||e[3]!==P||e[4]!==A?(R=xe=>{p&&(xe.stopPropagation(),A({anchorEl:xe.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:p.map(qe=>{const{label:Le,onClick:Te,disabled:je,icon:Ge}=qe;return{label:Le,value:Le,disabled:typeof je=="function"?je():je,icon:Ge,onClick:()=>{P(),Te()}}})}))},e[2]=p,e[3]=P,e[4]=A,e[5]=R):R=e[5];const D=R;let O,N;e[6]!==b?(O=()=>{k(b)},N=[b],e[6]=b,e[7]=O,e[8]=N):(O=e[7],N=e[8]),I.useEffect(O,N);let F,U;e[9]===Symbol.for("react.memo_cache_sentinel")?(F={display:"none !important"},U={width:"100%"},e[9]=F,e[10]=U):(F=e[9],U=e[10]);let z;e[11]!==_?(z=_&&{border:"2px solid",borderColor:"error.main"},e[11]=_,e[12]=z):z=e[12];let H;e[13]!==h||e[14]!==y?(H=h&&y&&{backgroundImage:xe=>xe.palette.mode==="dark"?`linear-gradient(${br("#fff",+hh(24+h*24))}, ${br("#fff",+hh(24+h*24))})`:"none"},e[13]=h,e[14]=y,e[15]=H):H=e[15];let W;e[16]!==r||e[17]!==z||e[18]!==H?(W={"&:before":F,"& .MuiAccordion-region":U,...z,...H,...r},e[16]=r,e[17]=z,e[18]=H,e[19]=W):W=e[19];let K;e[20]!==w?(K={transition:{unmountOnExit:w}},e[20]=w,e[21]=K):K=e[21];let q;e[22]!==d?(q=d&&{flexDirection:"row-reverse"},e[22]=d,e[23]=q):q=e[23];let X;e[24]!==q?(X={...q},e[24]=q,e[25]=X):X=e[25];let Q;e[26]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.DownArrow,{}),e[26]=Q):Q=e[26];let Y;e[27]!==d?(Y=d&&{ml:2},e[27]=d,e[28]=Y):Y=e[28];let Z;e[29]!==Y?(Z={...Y},e[29]=Y,e[30]=Z):Z=e[30];let re;e[31]!==o?(re=typeof o=="string"?a.jsx(_e,{type:"subtitle1",color:"text.secondary",children:o}):o,e[31]=o,e[32]=re):re=e[32];let fe;e[33]!==f||e[34]!==Z||e[35]!==re?(fe=a.jsxs(te,{sx:Z,spacing:0,children:[re,f]}),e[33]=f,e[34]=Z,e[35]=re,e[36]=fe):fe=e[36];let de;e[37]!==p||e[38]!==m?(de=m&&a.jsx(gt,{sx:{flex:"0 0 auto",...!p&&{pr:2}},children:m}),e[37]=p,e[38]=m,e[39]=de):de=e[39];let se;e[40]!==p?.length||e[41]!==D||e[42]!==d?(se=!!p?.length&&a.jsx(gt,{sx:{flex:"0 0 auto",...!d&&{pr:2}},children:a.jsx(Zr,{component:"span",role:"button",onClick:D,children:a.jsx(ge.More,{})})}),e[40]=p?.length,e[41]=D,e[42]=d,e[43]=se):se=e[43];let le;e[44]!==de||e[45]!==se?(le=a.jsxs(te,{direction:"row",align:"center",children:[de,se]}),e[44]=de,e[45]=se,e[46]=le):le=e[46];let ee;e[47]!==fe||e[48]!==le?(ee=a.jsxs(te,{justify:"space-between",align:"center",fullWidth:!0,direction:"row",children:[fe,le]}),e[47]=fe,e[48]=le,e[49]=ee):ee=e[49];let J;e[50]!==X||e[51]!==ee?(J=a.jsx(dNe,{sx:X,expandIcon:Q,children:ee}),e[50]=X,e[51]=ee,e[52]=J):J=e[52];let me;e[53]!==l?(me=a.jsx(iNe,{children:l}),e[53]=l,e[54]=me):me=e[54];let pe;e[55]!==x||e[56]!==h||e[57]!==C||e[58]!==j||e[59]!==i||e[60]!==W||e[61]!==K||e[62]!==J||e[63]!==me?(pe=a.jsxs(tNe,{sx:W,disableGutters:x,expanded:C,onChange:j,square:i,elevation:h,slotProps:K,children:[J,me]}),e[55]=x,e[56]=h,e[57]=C,e[58]=j,e[59]=i,e[60]=W,e[61]=K,e[62]=J,e[63]=me,e[64]=pe):pe=e[64];const Se=pe;let ve;return e[65]!==Se||e[66]!==u?(ve=u?a.jsx("div",{children:Se}):Se,e[65]=Se,e[66]=u,e[67]=ve):ve=e[67],ve}function Jn(t){const e=he.c(17),{sx:r,spacing:n,children:s,exclusive:i}=t,o=n===void 0?0:n,l=i===void 0?!0:i,[c,u]=I.useState(null);let d,f;e[0]!==s||e[1]!==l?(d=()=>{l&&I.Children.forEach(s,(h,_)=>{h.props.expanded&&u(_)})},f=[s,l],e[0]=s,e[1]=l,e[2]=d,e[3]=f):(d=e[2],f=e[3]),I.useEffect(d,f);let p;if(e[4]!==s||e[5]!==l||e[6]!==c||e[7]!==o){let h;e[9]!==l||e[10]!==c||e[11]!==o?(h=(_,g)=>{let y={disableGutters:o?!0:!_.props.disableGutters,group:!0,spacing:o};return l&&(y={...y,expanded:c===g,onChange:(b,x)=>{_.props.onChange&&_.props.onChange(b,x),u(g)}}),I.cloneElement(_,y)},e[9]=l,e[10]=c,e[11]=o,e[12]=h):h=e[12],p=I.Children.map(s,h),e[4]=s,e[5]=l,e[6]=c,e[7]=o,e[8]=p}else p=e[8];let m;return e[13]!==o||e[14]!==r||e[15]!==p?(m=a.jsx(te,{sx:r,spacing:o,children:p}),e[13]=o,e[14]=r,e[15]=p,e[16]=m):m=e[16],m}function Kqe(t){const e=he.c(12),{nf:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i}=Ys(),{submit:o,data:l,state:c}=i;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={force:!1},e[0]=u):u=e[0];let d;e[1]!==r||e[2]!==o?(d=m=>{const{force:h}=m;o({force:h},{method:"POST",encType:"application/json",action:`${r===ue.PLS?"platform":r}/cluster/leave-cluster`})},e[1]=r,e[2]=o,e[3]=d):d=e[3];let f;e[4]!==l||e[5]!==s||e[6]!==n||e[7]!==c?(f=()=>a.jsxs(_s,{children:[a.jsx(_e,{sx:{mb:1},children:n.formatMessage({id:"cluster.dialog.leave.description"})}),a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"force",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsx(da,{size:"small",label:n.formatMessage({id:"cluster.dialog.leave.force"}),checked:h.value,onChange:(y,b)=>{g(h.name,b)}})}}),a.jsx(Xr,{data:l}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"cluster.dialog.leave.cancel"}),variant:"outlined",onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"cluster.dialog.leave.confirm"}),type:"submit",loading:c!=="idle"})]})]})})]}),e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=f):f=e[8];let p;return e[9]!==d||e[10]!==f?(p=a.jsx(Wr,{validationSchema:Wqe,initialValues:u,onSubmit:d,children:f}),e[9]=d,e[10]=f,e[11]=p):p=e[11],p}const Qqe=t=>{const e=he.c(50),{data:r,onClusterJoin:n,clusterJoinLoading:s,disabled:i,nf:o}=t,l=ci(),c=Ye(),{confirmationDialogOpen:u,confirmationDialogClose:d,popoverOpen:f,popoverClose:p,dialogOpen:m}=Jt();let h;e[0]!==d||e[1]!==u||e[2]!==c||e[3]!==p?(h=async(W,K)=>{const q=await W();Object.keys(q).length===0&&u({title:c.formatMessage({id:"cluster.dialog.join.title"}),alertMessage:c.formatMessage({id:"cluster.dialog.join.description"}),onCancel:d,onConfirm:()=>{p(),K()},severity:"danger",cancelButtonText:c.formatMessage({id:"cluster.dialog.join.cancel"}),continueButtonText:c.formatMessage({id:"cluster.dialog.join.confirm"})})},e[0]=d,e[1]=u,e[2]=c,e[3]=p,e[4]=h):h=e[4];const _=h;let g;e[5]!==m||e[6]!==c||e[7]!==o?(g=()=>{m({title:c.formatMessage({id:"cluster.dialog.leave.title"}),content:()=>a.jsx(Kqe,{nf:o})})},e[5]=m,e[6]=c,e[7]=o,e[8]=g):g=e[8];const y=g;let b;e[9]!==s||e[10]!==i||e[11]!==_||e[12]!==c||e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==f?(b=W=>{const K=function(X){const{node:Q}=X;n&&n({node:`${o}@${Q}`})};f({anchorEl:W.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},content:()=>a.jsx(Wr,{onSubmit:K,initialValues:{node:""},validationSchema:Gqe,children:q=>{const{submitForm:X,validateForm:Q}=q;return a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{sx:{minWidth:"430px"},children:[a.jsx(Ke,{name:"node",children:Y=>{const{field:Z,meta:re}=Y;return a.jsx(a.Fragment,{children:a.jsx(dt,{...Z,label:c.formatMessage({id:"cluster.form.node"}),size:"small",error:!!re.error,helperText:re.error,disabled:i,placeholder:c.formatMessage({id:"cluster.form.node_placeholder"})})})}}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{variant:"outlined",type:"reset",size:"medium",disabled:!Ue(ie.configuration)||i,onClick:p,text:c.formatMessage({id:"cluster.buttons.cancel"})}),a.jsx(Ze,{type:"button",size:"medium",text:c.formatMessage({id:"cluster.buttons.join"}),onClick:()=>void _(Q,X),disabled:!Ue(ie.configuration)||i,loading:s})]})]})})}})})},e[9]=s,e[10]=i,e[11]=_,e[12]=c,e[13]=o,e[14]=n,e[15]=p,e[16]=f,e[17]=b):b=e[17];const x=b,w=Zqe,C=Xqe;let k;e[18]!==c?(k=c.formatMessage({id:"cluster.buttons.leave_cluster"}),e[18]=c,e[19]=k):k=e[19];const A=i||r.nodes.length===1;let P;e[20]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Shift,{}),e[20]=P):P=e[20];let T;e[21]!==y||e[22]!==k||e[23]!==A?(T=a.jsx(Ze,{variant:"outlined",text:k,onClick:y,disabled:A,startIcon:P}),e[21]=y,e[22]=k,e[23]=A,e[24]=T):T=e[24];let j;e[25]!==c?(j=c.formatMessage({id:"cluster.buttons.join_cluster"}),e[25]=c,e[26]=j):j=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Cluster,{}),e[27]=R):R=e[27];let D;e[28]!==s||e[29]!==i||e[30]!==x||e[31]!==j?(D=a.jsx(Ze,{text:j,startIcon:R,onClick:x,disabled:i,loading:s}),e[28]=s,e[29]=i,e[30]=x,e[31]=j,e[32]=D):D=e[32];let O;e[33]!==D||e[34]!==T?(O=a.jsx(hs,{children:a.jsxs(te,{direction:"row",spacing:1,justify:"flex-end",children:[T,D]})}),e[33]=D,e[34]=T,e[35]=O):O=e[35];let N;e[36]!==c?(N=c.formatMessage({id:"cluster.title"}),e[36]=c,e[37]=N):N=e[37];let F;e[38]!==r||e[39]!==c||e[40]!==l?(F=C(r).map(W=>{const K=W.repositories?.every(Jqe),q=W.repositories.reduce(eVe,0),X=W.repositories.reduce(tVe,0);return a.jsx(xr,{elevation:2,title:W.name,sx:{...!K&&{border:`1px solid ${l.palette.warning.main} !important`}},subtitle:a.jsxs(te,{direction:"row",align:"center",justify:"space-between",nowrap:!0,spacing:2,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[a.jsx(_e,{children:c.formatMessage({id:"cluster.status.repositories"})}),!!q&&a.jsx(bi,{label:`${q}`,status:nn.SUCCESS}),!!X&&a.jsx(bi,{label:`${X}`,status:nn.ERROR})]}),a.jsxs(te,{direction:"row",align:"center",children:[W.name===r.current_node&&a.jsx(ms,{label:c.formatMessage({id:"cluster.status.current_node"}),size:"small"}),!K&&a.jsx(Mn,{title:c.formatMessage({id:"cluster.status.repo_with_errors"}),children:a.jsx(gt,{sx:{color:"warning"},children:a.jsx(ge.StatusWarning,{})})})]})]}),content:a.jsxs(a.Fragment,{children:[!!W.repositories&&!!W.repositories.length&&a.jsx(te,{spacing:2,divided:!0,children:W.repositories.map(Q=>a.jsxs(te,{nowrap:!0,justify:"space-between",direction:"row",align:"center",children:[a.jsxs(te,{direction:"row",nowrap:!0,spacing:1,children:[a.jsx(bi,{label:Q.name,status:w(Q.status)}),Q.status==="ERROR"&&a.jsx(Mn,{title:"Repo has error!",children:a.jsx(gt,{sx:{color:"error"},children:a.jsx(ge.StatusError,{})})})]}),a.jsx(_e,{sx:{backgroundColor:Q.type==="CP"?l.palette.boy.light:l.palette.girl.light,color:Q.type==="CP"?l.palette.boy.contrastText:l.palette.girl.contrastText,fontWeight:"bold",fontSize:"12px",borderRadius:5,px:1},children:Q.type})]},Q.name))}),!W.repositories?.length&&a.jsx(Lr,{severity:"warning",title:c.formatMessage({id:"cluster.message.no_repo"})})]})},W.name)}),e[38]=r,e[39]=c,e[40]=l,e[41]=F):F=e[41];let U;e[42]!==F?(U=a.jsx(Kt,{children:a.jsx(Jn,{spacing:2,exclusive:!1,children:F})}),e[42]=F,e[43]=U):U=e[43];let z;e[44]!==N||e[45]!==U?(z=a.jsx(pr,{title:N,children:U}),e[44]=N,e[45]=U,e[46]=z):z=e[46];let H;return e[47]!==O||e[48]!==z?(H=a.jsxs(a.Fragment,{children:[O,z]}),e[47]=O,e[48]=z,e[49]=H):H=e[49],H};function Zqe(t){switch(t){case"UP":return nn.SUCCESS;case"DOWN":return nn.ERROR;case"ERROR":return nn.ERROR;default:return nn.DEFAULT}}function Xqe(t){const e=t.nodes.find(n=>n.name===t.current_node),r=t.nodes.filter(n=>n.name!==t.current_node);return e?[e,...r]:r}function Jqe(t){return t.status==="UP"}function eVe(t,e){return e.status==="UP"?t+1:t}function tVe(t,e){return e.status!=="UP"?t+1:t}function al(t){const e=he.c(4),{children:r,spacing:n,sx:s}=t,i=n===void 0?2:n;let o;return e[0]!==r||e[1]!==i||e[2]!==s?(o=a.jsx(ca,{container:!0,spacing:i,sx:s,children:r}),e[0]=r,e[1]=i,e[2]=s,e[3]=o):o=e[3],o}function Is(t){const e=he.c(5),{children:r,size:n,zeroMinWidth:s,sx:i}=t;let o;return e[0]!==r||e[1]!==n||e[2]!==i||e[3]!==s?(o=a.jsx(ca,{item:!0,...n,zeroMinWidth:s,sx:i,children:r}),e[0]=r,e[1]=n,e[2]=i,e[3]=s,e[4]=o):o=e[4],o}function rVe(t){const e=he.c(18),{data:r,onSubmit:n,error:s,disabled:i,loading:o}=t,l=Ye();let c;e[0]!==n?(c=_=>{n&&n(_)},e[0]=n,e[1]=c):c=e[1];const u=c;let d;e[2]!==l?(d=l.formatMessage({id:"network_configuration.fieldset"}),e[2]=l,e[3]=d):d=e[3];let f;e[4]!==r?(f=qqe(r),e[4]=r,e[5]=f):f=e[5];let p;e[6]!==i||e[7]!==s||e[8]!==l||e[9]!==o?(p=_=>{const{dirty:g}=_;return a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{direction:"column",spacing:2,align:"flex-start",children:[a.jsxs(al,{children:[a.jsx(Is,{size:{xs:12},children:a.jsx(Ke,{name:"name",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.name"}),size:"small",error:!!x.error,helperText:x.error,sx:{display:"none"}})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"host",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.host"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"port",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.port"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"dev",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.dev"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"tos",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.tos"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})})]}),a.jsx(Xr,{data:s,sx:{width:"100%"}}),a.jsx(Ze,{type:"submit",text:l.formatMessage({id:"network_configuration.buttons.persist_and_reboot"}),disabled:!Ue(ie.configuration)||i||!g,loading:o})]})})},e[6]=i,e[7]=s,e[8]=l,e[9]=o,e[10]=p):p=e[10];let m;e[11]!==u||e[12]!==f||e[13]!==p?(m=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:f,validationSchema:Vqe,onSubmit:u,enableReinitialize:!0,children:p})}),e[11]=u,e[12]=f,e[13]=p,e[14]=m):m=e[14];let h;return e[15]!==d||e[16]!==m?(h=a.jsx(pr,{title:d,children:m}),e[15]=d,e[16]=m,e[17]=h):h=e[17],h}function nVe(){const t=he.c(18),e=Gr(),{submit:r,data:n,state:s}=gr(),{submit:i,state:o}=gr(),l=s!=="idle"||o!=="idle";let c;t[0]!==r?(c=y=>{r(zqe(y),{method:"PUT",encType:"application/json",action:"apply-boot-config"})},t[0]=r,t[1]=c):c=t[1];const u=c;let d;t[2]!==i?(d=y=>{const{node:b}=y;i({node:b},{method:"POST",encType:"application/json",action:"join-cluster"})},t[2]=i,t[3]=d):d=t[3];const f=d;let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(mb,{variant:"rounded",sx:{height:"267px"}}),t[4]=p):p=t[4];let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsxs(te,{spacing:2,children:[p,a.jsx(mb,{variant:"rounded",sx:{height:"187px"}})]}),t[5]=m):m=t[5];let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Tr,{}),t[6]=h):h=t[6];let _;t[7]!==n||t[8]!==s||t[9]!==o||t[10]!==l||t[11]!==u||t[12]!==f||t[13]!==e.clusterStatus?(_=y=>a.jsxs(te,{spacing:2,children:[a.jsx(rVe,{data:y,onSubmit:u,disabled:l,loading:s!=="idle",error:n}),a.jsx(I.Suspense,{fallback:a.jsx(mb,{variant:"rounded",sx:{height:"187px"}}),children:a.jsx(Qt,{resolve:e.clusterStatus,errorElement:a.jsx(Tr,{}),children:b=>a.jsx(a.Fragment,{children:b&&a.jsx(Qqe,{nf:y.erlang.distribution.name,data:b,onClusterJoin:f,clusterJoinLoading:o!=="idle",disabled:l})})})})]}),t[7]=n,t[8]=s,t[9]=o,t[10]=l,t[11]=u,t[12]=f,t[13]=e.clusterStatus,t[14]=_):_=t[14];let g;return t[15]!==e.bootConfig||t[16]!==_?(g=a.jsx(I.Suspense,{fallback:m,children:a.jsx(Qt,{resolve:e.bootConfig,errorElement:h,children:_})}),t[15]=e.bootConfig,t[16]=_,t[17]=g):g=t[17],g}async function sVe(t){const e=$.apis.boot_config(t);return De({options:{url:e,method:"GET"}})}async function iVe({nf:t,values:e}){const r=$.apis.boot_config(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}function oVe(t){return async({request:e})=>{const r=await e.json(),n=await iVe({nf:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function aVe(t,e={clusterStatus:!1}){return function(r){return Wt({deferred:!0,loaderArgs:r,data:{bootConfig:sVe(t),clusterStatus:e.clusterStatus?Iae({nf:t}):null}})}}const bY=Pr();function vr({to:t,labelIntl:e,labelIntlParams:r,icon:n,captionIntl:s,captionIntlParams:i}){return{breadcrumb:{to:t,label:bY.formatMessage({id:e},r),icon:n,...s&&{caption:bY.formatMessage({id:s},i)}}}}function so(t,e={dbCluster:!1}){const r=t===ue.PLS?"platform":t;return{path:"cluster",loader:aVe(t,{clusterStatus:e.dbCluster}),errorElement:a.jsx(Tr,{}),element:a.jsx(nVe,{},t),shouldRevalidate:({actionResult:n})=>!xt(n),handle:vr({labelIntl:`route.${r}.cluster`,to:`/${r}/path`}),children:[{path:"apply-boot-config",action:oVe(t),loader:()=>rt("..")},...e.dbCluster?[{path:"join-cluster",action:$ze(t),loader:()=>rt("..")},{path:"leave-cluster",action:Oze(t),loader:()=>rt("..")}]:[]]}}function bb(){return bb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bb.apply(null,arguments)}var lp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"||typeof self<"u"?self:{};function Y0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xY,SY={exports:{}};var jR,wY,CY,lVe=(xY||(xY=1,jR=SY,(function(){var t={}.hasOwnProperty;function e(){for(var r=[],n=0;n<arguments.length;n++){var s=arguments[n];if(s){var i=typeof s;if(i==="string"||i==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var o=e.apply(null,s);o&&r.push(o)}}else if(i==="object")if(s.toString===Object.prototype.toString)for(var l in s)t.call(s,l)&&s[l]&&r.push(l);else r.push(s.toString())}}return r.join(" ")}jR.exports?(e.default=e,jR.exports=e):window.classNames=e})()),SY.exports),J6=Y0(lVe),AY,wc=Y0((function(){if(CY)return wY;CY=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,i=Object.prototype.toString;function o(c){var u=typeof c;return!!c&&(u=="object"||u=="function")}function l(c){if(typeof c=="number")return c;if((function(f){return typeof f=="symbol"||(function(p){return!!p&&typeof p=="object"})(f)&&i.call(f)=="[object Symbol]"})(c))return NaN;if(o(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=o(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=c.replace(t,"");var d=r.test(c);return d||n.test(c)?s(c.slice(2),d?2:8):e.test(c)?NaN:+c}return wY=function(c,u,d){return d===void 0&&(d=u,u=void 0),d!==void 0&&(d=(d=l(d))==d?d:0),u!==void 0&&(u=(u=l(u))==u?u:0),(function(f,p,m){return f==f&&(m!==void 0&&(f=f<=m?f:m),p!==void 0&&(f=f>=p?f:p)),f})(l(c),u,d)}})()),TR={exports:{}},cVe=(AY||(AY=1,(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",i="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",h="[object RegExp]",_="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",C=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[i]=A[x]=A[o]=A[w]=A[l]=A[c]=A[u]=A[d]=A[f]=A[p]=A[h]=A[_]=A[g]=A[b]=!1;var P=typeof lp=="object"&&lp&&lp.Object===Object&&lp,T=typeof self=="object"&&self&&self.Object===Object&&self,j=P||T||Function("return this")(),R=e&&!e.nodeType&&e,D=R&&t&&!t.nodeType&&t,O=D&&D.exports===R,N=O&&P.process,F=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),U=F&&F.isTypedArray;function z(ke,He){for(var ut=-1,It=ke==null?0:ke.length;++ut<It;)if(He(ke[ut],ut,ke))return!0;return!1}function H(ke){var He=-1,ut=Array(ke.size);return ke.forEach(function(It,wr){ut[++He]=[wr,It]}),ut}function W(ke){var He=-1,ut=Array(ke.size);return ke.forEach(function(It){ut[++He]=It}),ut}var K,q,X,Q=Array.prototype,Y=Function.prototype,Z=Object.prototype,re=j["__core-js_shared__"],fe=Y.toString,de=Z.hasOwnProperty,se=(K=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",le=Z.toString,ee=RegExp("^"+fe.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=O?j.Buffer:void 0,me=j.Symbol,pe=j.Uint8Array,Se=Z.propertyIsEnumerable,ve=Q.splice,xe=me?me.toStringTag:void 0,qe=Object.getOwnPropertySymbols,Le=J?J.isBuffer:void 0,Te=(q=Object.keys,X=Object,function(ke){return q(X(ke))}),je=st(j,"DataView"),Ge=st(j,"Map"),nt=st(j,"Promise"),Re=st(j,"Set"),we=st(j,"WeakMap"),Me=st(Object,"create"),$e=ze(je),Ve=ze(Ge),Ne=ze(nt),Oe=ze(Re),ft=ze(we),Ct=me?me.prototype:void 0,Et=Ct?Ct.valueOf:void 0;function at(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function $t(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function Ee(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function Be(ke){var He=-1,ut=ke==null?0:ke.length;for(this.__data__=new Ee;++He<ut;)this.add(ke[He])}function qt(ke){var He=this.__data__=new $t(ke);this.size=He.size}function ar(ke,He){var ut=Gt(ke),It=!ut&&jt(ke),wr=!ut&&!It&&Yt(ke),Cr=!ut&&!It&&!wr&&ot(ke),sn=ut||It||wr||Cr,pn=sn?(function(Vr,Fr){for(var Qn=-1,Er=Array(Vr);++Qn<Vr;)Er[Qn]=Fr(Qn);return Er})(ke.length,String):[],jn=pn.length;for(var es in ke)!de.call(ke,es)||sn&&(es=="length"||wr&&(es=="offset"||es=="parent")||Cr&&(es=="buffer"||es=="byteLength"||es=="byteOffset")||Ae(es,jn))||pn.push(es);return pn}function hr(ke,He){for(var ut=ke.length;ut--;)if(_t(ke[ut][0],He))return ut;return-1}function ir(ke){return ke==null?ke===void 0?"[object Undefined]":"[object Null]":xe&&xe in Object(ke)?(function(He){var ut=de.call(He,xe),It=He[xe];try{He[xe]=void 0;var wr=!0}catch{}var Cr=le.call(He);return wr&&(ut?He[xe]=It:delete He[xe]),Cr})(ke):(function(He){return le.call(He)})(ke)}function cr(ke){return or(ke)&&ir(ke)==s}function kr(ke,He,ut,It,wr){return ke===He||(ke==null||He==null||!or(ke)&&!or(He)?ke!=ke&&He!=He:(function(Cr,sn,pn,jn,es,Vr){var Fr=Gt(Cr),Qn=Gt(sn),Er=Fr?i:Pe(Cr),on=Qn?i:Pe(sn),Ei=(Er=Er==s?p:Er)==p,ha=(on=on==s?p:on)==p,Zn=Er==on;if(Zn&&Yt(Cr)){if(!Yt(sn))return!1;Fr=!0,Ei=!1}if(Zn&&!Ei)return Vr||(Vr=new qt),Fr||ot(Cr)?fn(Cr,sn,pn,jn,es,Vr):(function(ns,Gn,Wu,zo,sf,$s,Ui){switch(Wu){case w:if(ns.byteLength!=Gn.byteLength||ns.byteOffset!=Gn.byteOffset)return!1;ns=ns.buffer,Gn=Gn.buffer;case x:return!(ns.byteLength!=Gn.byteLength||!$s(new pe(ns),new pe(Gn)));case o:case l:case f:return _t(+ns,+Gn);case c:return ns.name==Gn.name&&ns.message==Gn.message;case h:case g:return ns==Gn+"";case d:var Po=H;case _:var yl=1&zo;if(Po||(Po=W),ns.size!=Gn.size&&!yl)return!1;var co=Ui.get(ns);if(co)return co==Gn;zo|=2,Ui.set(ns,Gn);var jo=fn(Po(ns),Po(Gn),zo,sf,$s,Ui);return Ui.delete(ns),jo;case y:if(Et)return Et.call(ns)==Et.call(Gn)}return!1})(Cr,sn,Er,pn,jn,es,Vr);if(!(1&pn)){var Fi=Ei&&de.call(Cr,"__wrapped__"),lo=ha&&de.call(sn,"__wrapped__");if(Fi||lo){var Ki=Fi?Cr.value():Cr,Yp=lo?sn.value():sn;return Vr||(Vr=new qt),es(Ki,Yp,pn,jn,Vr)}}return!!Zn&&(Vr||(Vr=new qt),(function(ns,Gn,Wu,zo,sf,$s){var Ui=1&Wu,Po=Zt(ns),yl=Po.length,co=Zt(Gn),jo=co.length;if(yl!=jo&&!Ui)return!1;for(var Yu=yl;Yu--;){var To=Po[Yu];if(!(Ui?To in Gn:de.call(Gn,To)))return!1}var Wh=$s.get(ns);if(Wh&&$s.get(Gn))return Wh==Gn;var Ku=!0;$s.set(ns,Gn),$s.set(Gn,ns);for(var of=Ui;++Yu<yl;){var Yc=ns[To=Po[Yu]],af=Gn[To];if(zo)var Yh=Ui?zo(af,Yc,To,Gn,ns,$s):zo(Yc,af,To,ns,Gn,$s);if(!(Yh===void 0?Yc===af||sf(Yc,af,Wu,zo,$s):Yh)){Ku=!1;break}of||(of=To=="constructor")}if(Ku&&!of){var Va=ns.constructor,Eo=Gn.constructor;Va==Eo||!("constructor"in ns)||!("constructor"in Gn)||typeof Va=="function"&&Va instanceof Va&&typeof Eo=="function"&&Eo instanceof Eo||(Ku=!1)}return $s.delete(ns),$s.delete(Gn),Ku})(Cr,sn,pn,jn,es,Vr))})(ke,He,ut,It,kr,wr))}function Rr(ke){return!(!zt(ke)||(function(He){return!!se&&se in He})(ke))&&(Rt(ke)?ee:C).test(ze(ke))}function Ut(ke){if(ut=(He=ke)&&He.constructor,It=typeof ut=="function"&&ut.prototype||Z,He!==It)return Te(ke);var He,ut,It,wr=[];for(var Cr in Object(ke))de.call(ke,Cr)&&Cr!="constructor"&&wr.push(Cr);return wr}function fn(ke,He,ut,It,wr,Cr){var sn=1&ut,pn=ke.length,jn=He.length;if(pn!=jn&&!(sn&&jn>pn))return!1;var es=Cr.get(ke);if(es&&Cr.get(He))return es==He;var Vr=-1,Fr=!0,Qn=2&ut?new Be:void 0;for(Cr.set(ke,He),Cr.set(He,ke);++Vr<pn;){var Er=ke[Vr],on=He[Vr];if(It)var Ei=sn?It(on,Er,Vr,He,ke,Cr):It(Er,on,Vr,ke,He,Cr);if(Ei!==void 0){if(Ei)continue;Fr=!1;break}if(Qn){if(!z(He,function(ha,Zn){if(Fi=Zn,!Qn.has(Fi)&&(Er===ha||wr(Er,ha,ut,It,Cr)))return Qn.push(Zn);var Fi})){Fr=!1;break}}else if(Er!==on&&!wr(Er,on,ut,It,Cr)){Fr=!1;break}}return Cr.delete(ke),Cr.delete(He),Fr}function Zt(ke){return(function(He,ut,It){var wr=ut(He);return Gt(He)?wr:(function(Cr,sn){for(var pn=-1,jn=sn.length,es=Cr.length;++pn<jn;)Cr[es+pn]=sn[pn];return Cr})(wr,It(He))})(ke,ct,wt)}function _r(ke,He){var ut,It,wr=ke.__data__;return((It=typeof(ut=He))=="string"||It=="number"||It=="symbol"||It=="boolean"?ut!=="__proto__":ut===null)?wr[typeof He=="string"?"string":"hash"]:wr.map}function st(ke,He){var ut=(function(It,wr){return It?.[wr]})(ke,He);return Rr(ut)?ut:void 0}at.prototype.clear=function(){this.__data__=Me?Me(null):{},this.size=0},at.prototype.delete=function(ke){var He=this.has(ke)&&delete this.__data__[ke];return this.size-=He?1:0,He},at.prototype.get=function(ke){var He=this.__data__;if(Me){var ut=He[ke];return ut===r?void 0:ut}return de.call(He,ke)?He[ke]:void 0},at.prototype.has=function(ke){var He=this.__data__;return Me?He[ke]!==void 0:de.call(He,ke)},at.prototype.set=function(ke,He){var ut=this.__data__;return this.size+=this.has(ke)?0:1,ut[ke]=Me&&He===void 0?r:He,this},$t.prototype.clear=function(){this.__data__=[],this.size=0},$t.prototype.delete=function(ke){var He=this.__data__,ut=hr(He,ke);return!(ut<0||(ut==He.length-1?He.pop():ve.call(He,ut,1),--this.size,0))},$t.prototype.get=function(ke){var He=this.__data__,ut=hr(He,ke);return ut<0?void 0:He[ut][1]},$t.prototype.has=function(ke){return hr(this.__data__,ke)>-1},$t.prototype.set=function(ke,He){var ut=this.__data__,It=hr(ut,ke);return It<0?(++this.size,ut.push([ke,He])):ut[It][1]=He,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new at,map:new(Ge||$t),string:new at}},Ee.prototype.delete=function(ke){var He=_r(this,ke).delete(ke);return this.size-=He?1:0,He},Ee.prototype.get=function(ke){return _r(this,ke).get(ke)},Ee.prototype.has=function(ke){return _r(this,ke).has(ke)},Ee.prototype.set=function(ke,He){var ut=_r(this,ke),It=ut.size;return ut.set(ke,He),this.size+=ut.size==It?0:1,this},Be.prototype.add=Be.prototype.push=function(ke){return this.__data__.set(ke,r),this},Be.prototype.has=function(ke){return this.__data__.has(ke)},qt.prototype.clear=function(){this.__data__=new $t,this.size=0},qt.prototype.delete=function(ke){var He=this.__data__,ut=He.delete(ke);return this.size=He.size,ut},qt.prototype.get=function(ke){return this.__data__.get(ke)},qt.prototype.has=function(ke){return this.__data__.has(ke)},qt.prototype.set=function(ke,He){var ut=this.__data__;if(ut instanceof $t){var It=ut.__data__;if(!Ge||It.length<199)return It.push([ke,He]),this.size=++ut.size,this;ut=this.__data__=new Ee(It)}return ut.set(ke,He),this.size=ut.size,this};var wt=qe?function(ke){return ke==null?[]:(ke=Object(ke),(function(He,ut){for(var It=-1,wr=He==null?0:He.length,Cr=0,sn=[];++It<wr;){var pn=He[It];ut(pn,It,He)&&(sn[Cr++]=pn)}return sn})(qe(ke),function(He){return Se.call(ke,He)}))}:function(){return[]},Pe=ir;function Ae(ke,He){return!!(He=He??n)&&(typeof ke=="number"||k.test(ke))&&ke>-1&&ke%1==0&&ke<He}function ze(ke){if(ke!=null){try{return fe.call(ke)}catch{}try{return ke+""}catch{}}return""}function _t(ke,He){return ke===He||ke!=ke&&He!=He}(je&&Pe(new je(new ArrayBuffer(1)))!=w||Ge&&Pe(new Ge)!=d||nt&&Pe(nt.resolve())!=m||Re&&Pe(new Re)!=_||we&&Pe(new we)!=b)&&(Pe=function(ke){var He=ir(ke),ut=He==p?ke.constructor:void 0,It=ut?ze(ut):"";if(It)switch(It){case $e:return w;case Ve:return d;case Ne:return m;case Oe:return _;case ft:return b}return He});var jt=cr((function(){return arguments})())?cr:function(ke){return or(ke)&&de.call(ke,"callee")&&!Se.call(ke,"callee")},Gt=Array.isArray,Yt=Le||function(){return!1};function Rt(ke){if(!zt(ke))return!1;var He=ir(ke);return He==u||He=="[object GeneratorFunction]"||He=="[object AsyncFunction]"||He=="[object Proxy]"}function At(ke){return typeof ke=="number"&&ke>-1&&ke%1==0&&ke<=n}function zt(ke){var He=typeof ke;return ke!=null&&(He=="object"||He=="function")}function or(ke){return ke!=null&&typeof ke=="object"}var ot=U?(function(ke){return function(He){return ke(He)}})(U):function(ke){return or(ke)&&At(ke.length)&&!!A[ir(ke)]};function ct(ke){return(He=ke)!=null&&At(He.length)&&!Rt(He)?ar(ke):Ut(ke);var He}t.exports=function(ke,He){return kr(ke,He)}})(TR,TR.exports)),TR.exports),uVe=Y0(cVe);function kY(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function dVe(t){t===void 0&&(t={});var e=t.onResize,r=I.useRef(void 0);r.current=e;var n=t.round||Math.round,s=I.useRef(),i=I.useState({width:void 0,height:void 0}),o=i[0],l=i[1],c=I.useRef(!1);I.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var u=I.useRef({width:void 0,height:void 0}),d=(function(f,p){var m=I.useRef(null),h=I.useRef(null);h.current=p;var _=I.useRef(null);I.useEffect(function(){g()});var g=I.useCallback(function(){var y=_.current,b=h.current,x=y||(b?b instanceof Element?b:b.current:null);m.current&&m.current.element===x&&m.current.subscriber===f||(m.current&&m.current.cleanup&&m.current.cleanup(),m.current={element:x,subscriber:f,cleanup:x?f(x):void 0})},[f]);return I.useEffect(function(){return function(){m.current&&m.current.cleanup&&(m.current.cleanup(),m.current=null)}},[]),I.useCallback(function(y){_.current=y,g()},[g])})(I.useCallback(function(f){return s.current&&s.current.box===t.box&&s.current.round===n||(s.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var m=p[0],h=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",_=kY(m,h,"inlineSize"),g=kY(m,h,"blockSize"),y=_?n(_):void 0,b=g?n(g):void 0;if(u.current.width!==y||u.current.height!==b){var x={width:y,height:b};u.current.width=y,u.current.height=b,r.current?r.current(x):c.current||l(x)}})}),s.current.instance.observe(f,{box:t.box}),function(){s.current&&s.current.instance.unobserve(f)}},[t.box,n]),t.ref);return I.useMemo(function(){return{ref:d,width:o.width,height:o.height}},[d,o.width,o.height])}var fVe="allotment-module_splitView__L-yRc",pVe="allotment-module_sashContainer__fzwJF",mVe="allotment-module_splitViewContainer__rQnVa",rle="allotment-module_splitViewView__MGZ6O",hVe="allotment-module_vertical__WSwwa",gVe="allotment-module_horizontal__7doS8",_Ve="allotment-module_separatorBorder__x-rDS";let ky,nle=!1,sle=!1;typeof navigator=="object"&&(ky=navigator.userAgent,sle=ky.indexOf("Macintosh")>=0,nle=(ky.indexOf("Macintosh")>=0||ky.indexOf("iPad")>=0||ky.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const ile=nle,vVe=sle,MY=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;let yVe=class{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}};function C2(t,e){const r=t.length,n=r-e.length;return n>=0&&t.slice(n,r)===e}var PY,jY={exports:{}},TY,EY,bVe=(PY||(PY=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function s(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new s(d,f||c,p),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],m]:c._events[h].push(m):(c._events[h]=m,c._eventsCount++),c}function o(c,u){--c._eventsCount==0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),l.prototype.eventNames=function(){var c,u,d=[];if(this._eventsCount===0)return d;for(u in c=this._events)e.call(c,u)&&d.push(r?u.slice(1):u);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(c)):d},l.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},l.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},l.prototype.emit=function(c,u,d,f,p,m){var h=r?r+c:c;if(!this._events[h])return!1;var _,g,y=this._events[h],b=arguments.length;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,p),!0;case 6:return y.fn.call(y.context,u,d,f,p,m),!0}for(g=1,_=new Array(b-1);g<b;g++)_[g-1]=arguments[g];y.fn.apply(y.context,_)}else{var x,w=y.length;for(g=0;g<w;g++)switch(y[g].once&&this.removeListener(c,y[g].fn,void 0,!0),b){case 1:y[g].fn.call(y[g].context);break;case 2:y[g].fn.call(y[g].context,u);break;case 3:y[g].fn.call(y[g].context,u,d);break;case 4:y[g].fn.call(y[g].context,u,d,f);break;default:if(!_)for(x=1,_=new Array(b-1);x<b;x++)_[x-1]=arguments[x];y[g].fn.apply(y[g].context,_)}}return!0},l.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},l.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},l.prototype.removeListener=function(c,u,d,f){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn!==u||f&&!m.once||d&&m.context!==d||o(this,p);else{for(var h=0,_=[],g=m.length;h<g;h++)(m[h].fn!==u||f&&!m[h].once||d&&m[h].context!==d)&&_.push(m[h]);_.length?this._events[p]=_.length===1?_[0]:_:o(this,p)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(jY)),jY.exports),gN=Y0(bVe);function RY(t,e){const r=t.indexOf(e);r>-1&&(t.splice(r,1),t.unshift(e))}function ER(t,e){const r=t.indexOf(e);r>-1&&(t.splice(r,1),t.push(e))}function Il(t,e,r=1){const n=Math.max(0,Math.ceil((e-t)/r)),s=new Array(n);let i=-1;for(;++i<n;)s[i]=t+i*r;return s}var xVe=Y0((function(){if(EY)return TY;EY=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,i=typeof lp=="object"&&lp&&lp.Object===Object&&lp,o=typeof self=="object"&&self&&self.Object===Object&&self,l=i||o||Function("return this")(),c=Object.prototype.toString,u=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(h){var _=typeof h;return!!h&&(_=="object"||_=="function")}function m(h){if(typeof h=="number")return h;if((function(y){return typeof y=="symbol"||(function(b){return!!b&&typeof b=="object"})(y)&&c.call(y)=="[object Symbol]"})(h))return NaN;if(p(h)){var _=typeof h.valueOf=="function"?h.valueOf():h;h=p(_)?_+"":_}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var g=r.test(h);return g||n.test(h)?s(h.slice(2),g?2:8):e.test(h)?NaN:+h}return TY=function(h,_,g){var y,b,x,w,C,k,A=0,P=!1,T=!1,j=!0;if(typeof h!="function")throw new TypeError("Expected a function");function R(U){var z=y,H=b;return y=b=void 0,A=U,w=h.apply(H,z)}function D(U){var z=U-k;return k===void 0||z>=_||z<0||T&&U-A>=x}function O(){var U=f();if(D(U))return N(U);C=setTimeout(O,(function(z){var H=_-(z-k);return T?d(H,x-(z-A)):H})(U))}function N(U){return C=void 0,j&&y?R(U):(y=b=void 0,w)}function F(){var U=f(),z=D(U);if(y=arguments,b=this,k=U,z){if(C===void 0)return(function(H){return A=H,C=setTimeout(O,_),P?R(H):w})(k);if(T)return C=setTimeout(O,_),R(k)}return C===void 0&&(C=setTimeout(O,_)),w}return _=m(_)||0,p(g)&&(P=!!g.leading,x=(T="maxWait"in g)?u(m(g.maxWait)||0,_):x,j="trailing"in g?!!g.trailing:j),F.cancel=function(){C!==void 0&&clearTimeout(C),A=0,y=k=b=C=void 0},F.flush=function(){return C===void 0?w:N(f())},F}})()),SVe="sash-module_sash__K-9lB",wVe="sash-module_disabled__Hm-wx",CVe="sash-module_mac__Jf6OJ",IY="sash-module_vertical__pB-rs",AVe="sash-module_minimum__-UKxp",kVe="sash-module_maximum__TCWxD",DY="sash-module_horizontal__kFbiw",RR="sash-module_hover__80W6I",IR="sash-module_active__bJspD";let Vl=(function(t){return t.Vertical="VERTICAL",t.Horizontal="HORIZONTAL",t})({}),rl=(function(t){return t.Disabled="DISABLED",t.Minimum="MINIMUM",t.Maximum="MAXIMUM",t.Enabled="ENABLED",t})({}),ole=ile?20:8;const ale=new gN;let $Y=class extends gN{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(wVe,e===rl.Disabled),this.el.classList.toggle("sash-disabled",e===rl.Disabled),this.el.classList.toggle(AVe,e===rl.Minimum),this.el.classList.toggle("sash-minimum",e===rl.Minimum),this.el.classList.toggle(kVe,e===rl.Maximum),this.el.classList.toggle("sash-maximum",e===rl.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,r,n){var s;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=xVe(i=>i.classList.add("sash-hover",RR),this.hoverDelay),this._state=rl.Enabled,this.onPointerStart=i=>{const o=i.pageX,l=i.pageY,c={startX:o,currentX:o,startY:l,currentY:l};this.el.classList.add("sash-active",IR),this.emit("start",c),this.el.setPointerCapture(i.pointerId);const u=f=>{f.preventDefault();const p={startX:o,currentX:f.pageX,startY:l,currentY:f.pageY};this.emit("change",p)},d=f=>{f.preventDefault(),this.el.classList.remove("sash-active",IR),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(f.pointerId),window.removeEventListener("pointermove",u),window.removeEventListener("pointerup",d)};window.addEventListener("pointermove",u),window.addEventListener("pointerup",d)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(IR)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",RR)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",RR)},this.el=document.createElement("div"),this.el.classList.add("sash",SVe),this.el.dataset.testid="sash",e.append(this.el),vVe&&this.el.classList.add("sash-mac",CVe),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof n.size=="number"?(this.size=n.size,n.orientation===Vl.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=ole,ale.on("onDidChangeGlobalSize",i=>{this.size=i,this.layout()})),this.layoutProvider=r,this.orientation=(s=n.orientation)!=null?s:Vl.Vertical,this.orientation===Vl.Horizontal?(this.el.classList.add("sash-horizontal",DY),this.el.classList.remove("sash-vertical",IY)):(this.el.classList.remove("sash-horizontal",DY),this.el.classList.add("sash-vertical",IY)),this.layout()}layout(){if(this.orientation===Vl.Vertical){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}},$C;var DR;(DR=$C||($C={})).Distribute={type:"distribute"},DR.Split=function(t){return{type:"split",index:t}},DR.Invisible=function(t){return{type:"invisible",cachedVisibleSize:t}};let Ul=(function(t){return t.Normal="NORMAL",t.Low="LOW",t.High="HIGH",t})({}),lle=class{constructor(e,r,n){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=r,this.container.classList.add("split-view-view",rle),this.container.dataset.testid="split-view-view",typeof n=="number"?(this._size=n,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(e,r){e!==this.visible&&(e?(this.size=wc(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof r=="number"?r:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}},MVe=class extends lle{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}},PVe=class extends lle{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}},jVe=class extends gN{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,r={},n,s,i){var o,l;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=c=>{this.emit("sashchange",c),this.saveProportions();for(const u of this.viewItems)u.enabled=!0},this.orientation=(o=r.orientation)!=null?o:Vl.Vertical,this.proportionalLayout=(l=r.proportionalLayout)!=null?l:!0,this.getSashOrthogonalSize=r.getSashOrthogonalSize,n&&(this.onDidChange=n),s&&(this.onDidDragStart=s),i&&(this.onDidDragEnd=i),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",pVe),e.prepend(this.sashContainer),r.descriptor){this.size=r.descriptor.size;for(const[c,u]of r.descriptor.views.entries()){const d=u.size,f=u.container,p=u.view;this.addView(f,p,d,c,!0)}this.contentSize=this.viewItems.reduce((c,u)=>c+u.size,0),this.saveProportions()}}addView(e,r,n,s=this.viewItems.length,i){let o;o=typeof n=="number"?n:n.type==="split"?this.getViewSize(n.index)/2:n.type==="invisible"?{cachedVisibleSize:n.cachedVisibleSize}:r.minimumSize;const l=this.orientation===Vl.Vertical?new PVe(e,r,o):new MVe(e,r,o);if(this.viewItems.splice(s,0,l),this.viewItems.length>1){const c=this.orientation===Vl.Vertical?new $Y(this.sashContainer,{getHorizontalSashTop:f=>this.getSashPosition(f),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:Vl.Horizontal}):new $Y(this.sashContainer,{getVerticalSashLeft:f=>this.getSashPosition(f),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:Vl.Vertical}),u=this.orientation===Vl.Vertical?f=>({sash:c,start:f.startY,current:f.currentY}):f=>({sash:c,start:f.startX,current:f.currentX});c.on("start",f=>{var p;this.emit("sashDragStart"),this.onSashStart(u(f));const m=this.viewItems.map(h=>h.size);(p=this.onDidDragStart)==null||p.call(this,m)}),c.on("change",f=>this.onSashChange(u(f))),c.on("end",()=>{var f;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(m=>m.sash===c));const p=this.viewItems.map(m=>m.size);(f=this.onDidDragEnd)==null||f.call(this,p)}),c.on("reset",()=>{const f=this.sashItems.findIndex(g=>g.sash===c),p=Il(f,-1,-1),m=Il(f+1,this.viewItems.length),h=this.findFirstSnapIndex(p),_=this.findFirstSnapIndex(m);(typeof h!="number"||this.viewItems[h].visible)&&(typeof _!="number"||this.viewItems[_].visible)&&this.emit("sashreset",f)});const d={sash:c};this.sashItems.splice(s-1,0,d)}i||this.relayout(),i||typeof n=="number"||n.type!=="distribute"||this.distributeViewSizes()}removeView(e,r){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");const n=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){const s=Math.max(e-1,0);this.sashItems.splice(s,1)[0].sash.dispose()}return this.relayout(),r&&r.type==="distribute"&&this.distributeViewSizes(),n}moveView(e,r,n){const s=this.getViewCachedVisibleSize(r),i=s===void 0?this.getViewSize(r):$C.Invisible(s),o=this.removeView(r);this.addView(e,o,i,n)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e=this.size){const r=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(let n=0;n<this.viewItems.length;n++){const s=this.viewItems[n];s.size=wc(Math.round(this.proportions[n]*e),s.minimumSize,s.maximumSize)}else{const n=Il(0,this.viewItems.length),s=n.filter(o=>this.viewItems[o].priority===Ul.Low),i=n.filter(o=>this.viewItems[o].priority===Ul.High);this.resize(this.viewItems.length-1,e-r,void 0,s,i)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,r){if(e<0||e>=this.viewItems.length)return;const n=Il(0,this.viewItems.length).filter(l=>l!==e),s=[...n.filter(l=>this.viewItems[l].priority===Ul.Low),e],i=n.filter(l=>this.viewItems[l].priority===Ul.High),o=this.viewItems[e];r=Math.round(r),r=wc(r,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=r,this.relayout(s,i)}resizeViews(e){for(let r=0;r<e.length;r++){const n=this.viewItems[r];let s=e[r];s=Math.round(s),s=wc(s,n.minimumSize,Math.min(n.maximumSize,this.size)),n.size=s}this.contentSize=this.viewItems.reduce((r,n)=>r+n.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,r){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(r),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const e=[];let r=0;for(const l of this.viewItems)l.maximumSize-l.minimumSize>0&&(e.push(l),r+=l.size);const n=Math.floor(r/e.length);for(const l of e)l.size=wc(n,l.minimumSize,l.maximumSize);const s=Il(0,this.viewItems.length),i=s.filter(l=>this.viewItems[l].priority===Ul.Low),o=s.filter(l=>this.viewItems[l].priority===Ul.High);this.relayout(i,o)}dispose(){this.sashItems.forEach(e=>e.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(e,r){const n=this.viewItems.reduce((s,i)=>s+i.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,r),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:e,start:r}){const n=this.sashItems.findIndex(s=>s.sash===e);(s=>{const i=this.viewItems.map(b=>b.size);let o,l,c=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;const d=Il(n,-1,-1),f=Il(n+1,this.viewItems.length),p=d.reduce((b,x)=>b+(this.viewItems[x].minimumSize-i[x]),0),m=d.reduce((b,x)=>b+(this.viewItems[x].viewMaximumSize-i[x]),0),h=f.length===0?Number.POSITIVE_INFINITY:f.reduce((b,x)=>b+(i[x]-this.viewItems[x].minimumSize),0),_=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((b,x)=>b+(i[x]-this.viewItems[x].viewMaximumSize),0);c=Math.max(p,_),u=Math.min(h,m);const g=this.findFirstSnapIndex(d),y=this.findFirstSnapIndex(f);if(typeof g=="number"){const b=this.viewItems[g],x=Math.floor(b.viewMinimumSize/2);o={index:g,limitDelta:b.visible?c-x:c+x,size:b.size}}if(typeof y=="number"){const b=this.viewItems[y],x=Math.floor(b.viewMinimumSize/2);l={index:y,limitDelta:b.visible?u+x:u-x,size:b.size}}this.sashDragState={start:s,current:s,index:n,sizes:i,minDelta:c,maxDelta:u,snapBefore:o,snapAfter:l}})(r)}onSashChange({current:e}){const{index:r,start:n,sizes:s,minDelta:i,maxDelta:o,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const u=e-n;this.resize(r,u,s,void 0,void 0,i,o,l,c),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){let r=0;for(let n=0;n<this.sashItems.length;n++)if(r+=this.viewItems[n].size,this.sashItems[n].sash===e)return r;return 0}resize(e,r,n=this.viewItems.map(d=>d.size),s,i,o=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,c,u){if(e<0||e>=this.viewItems.length)return 0;const d=Il(e,-1,-1),f=Il(e+1,this.viewItems.length);if(i)for(const A of i)RY(d,A),RY(f,A);if(s)for(const A of s)ER(d,A),ER(f,A);const p=d.map(A=>this.viewItems[A]),m=d.map(A=>n[A]),h=f.map(A=>this.viewItems[A]),_=f.map(A=>n[A]),g=d.reduce((A,P)=>A+(this.viewItems[P].minimumSize-n[P]),0),y=d.reduce((A,P)=>A+(this.viewItems[P].maximumSize-n[P]),0),b=f.length===0?Number.POSITIVE_INFINITY:f.reduce((A,P)=>A+(n[P]-this.viewItems[P].minimumSize),0),x=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((A,P)=>A+(n[P]-this.viewItems[P].maximumSize),0),w=Math.max(g,x,o),C=Math.min(b,y,l);let k=!1;if(c){const A=this.viewItems[c.index],P=r>=c.limitDelta;k=P!==A.visible,A.setVisible(P,c.size)}if(!k&&u){const A=this.viewItems[u.index],P=r<u.limitDelta;k=P!==A.visible,A.setVisible(P,u.size)}if(k)return this.resize(e,r,n,s,i,o,l);for(let A=0,P=r=wc(r,w,C);A<p.length;A++){const T=p[A],j=wc(m[A]+P,T.minimumSize,T.maximumSize);P-=j-m[A],T.size=j}for(let A=0,P=r;A<h.length;A++){const T=h[A],j=wc(_[A]-P,T.minimumSize,T.maximumSize);P+=j-_[A],T.size=j}return r}distributeEmptySpace(e){const r=this.viewItems.reduce((u,d)=>u+d.size,0);let n=this.size-r;const s=Il(0,this.viewItems.length),i=[],o=s.filter(u=>this.viewItems[u].priority===Ul.Low),l=s.filter(u=>this.viewItems[u].priority===Ul.Normal),c=s.filter(u=>this.viewItems[u].priority===Ul.High);i.push(...c,...l,...o),typeof e=="number"&&ER(i,e);for(let u=0;n!==0&&u<i.length;u++){const d=this.viewItems[i[u]],f=wc(d.size+n,d.minimumSize,d.maximumSize);n-=f-d.size,d.size=f}}layoutViews(){var e;this.contentSize=this.viewItems.reduce((n,s)=>n+s.size,0);let r=0;for(const n of this.viewItems)n.layout(r),r+=n.size;(e=this.onDidChange)!=null&&e.call(this,this.viewItems.map(n=>n.size)),this.sashItems.forEach(n=>n.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}updateSashEnablement(){let e=!1;const r=this.viewItems.map(c=>e=c.size-c.minimumSize>0||e);e=!1;const n=this.viewItems.map(c=>e=c.maximumSize-c.size>0||e),s=[...this.viewItems].reverse();e=!1;const i=s.map(c=>e=c.size-c.minimumSize>0||e).reverse();e=!1;const o=s.map(c=>e=c.maximumSize-c.size>0||e).reverse();let l=0;for(let c=0;c<this.sashItems.length;c++){const{sash:u}=this.sashItems[c];l+=this.viewItems[c].size;const d=!(r[c]&&o[c+1]),f=!(n[c]&&i[c+1]);if(d&&f){const p=Il(c,-1,-1),m=Il(c+1,this.viewItems.length),h=this.findFirstSnapIndex(p),_=this.findFirstSnapIndex(m),g=typeof h=="number"&&!this.viewItems[h].visible,y=typeof _=="number"&&!this.viewItems[_].visible;g&&i[c]&&(l>0||this.startSnappingEnabled)?u.state=rl.Minimum:y&&r[c]&&(l<this.contentSize||this.endSnappingEnabled)?u.state=rl.Maximum:u.state=rl.Disabled}else u.state=d&&!f?rl.Minimum:!d&&f?rl.Maximum:rl.Enabled}}findFirstSnapIndex(e){for(const r of e){const n=this.viewItems[r];if(n.visible&&n.snap)return r}for(const r of e){const n=this.viewItems[r];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return r}}},Vg=class{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}},OY=class{constructor(e,r){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=r}getPreferredSize(){return this.proportion*this.layoutService.getSize()}},A2=class{getPreferredSize(){}},LY=class{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if(typeof e=="number")this.layoutStrategy=new Vg(e);else if(typeof e=="string"){const r=e.trim();if(C2(r,"%")){const n=Number(r.slice(0,-1))/100;this.layoutStrategy=new OY(n,this.layoutService)}else if(C2(r,"px")){const n=Number(r.slice(0,-2))/100;this.layoutStrategy=new Vg(n)}else if(typeof Number.parseFloat(r)=="number"){const n=Number.parseFloat(r);this.layoutStrategy=new Vg(n)}else this.layoutStrategy=new A2}else this.layoutStrategy=new A2}constructor(e,r){var n;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=r.element,this.minimumSize=typeof r.minimumSize=="number"?r.minimumSize:30,this.maximumSize=typeof r.maximumSize=="number"?r.maximumSize:Number.POSITIVE_INFINITY,typeof r.preferredSize=="number")this.layoutStrategy=new Vg(r.preferredSize);else if(typeof r.preferredSize=="string"){const s=r.preferredSize.trim();if(C2(s,"%")){const i=Number(s.slice(0,-1))/100;this.layoutStrategy=new OY(i,this.layoutService)}else if(C2(s,"px")){const i=Number(s.slice(0,-2));this.layoutStrategy=new Vg(i)}else if(typeof Number.parseFloat(s)=="number"){const i=Number.parseFloat(s);this.layoutStrategy=new Vg(i)}else this.layoutStrategy=new A2}else this.layoutStrategy=new A2;this.priority=(n=r.priority)!=null?n:Ul.Normal,this.snap=typeof r.snap=="boolean"&&r.snap}layout(e){}};function NY(t){return t.minSize!==void 0||t.maxSize!==void 0||t.preferredSize!==void 0||t.priority!==void 0||t.visible!==void 0}const _N=I.forwardRef(({className:t,children:e},r)=>Yn.createElement("div",{ref:r,className:J6("split-view-view",rle,t)},e));_N.displayName="Allotment.Pane";const cle=I.forwardRef(({children:t,className:e,id:r,maxSize:n=1/0,minSize:s=30,proportionalLayout:i=!0,separator:o=!0,sizes:l,defaultSizes:c=l,snap:u=!1,vertical:d=!1,onChange:f,onReset:p,onVisibleChange:m,onDragStart:h,onDragEnd:_},g)=>{const y=I.useRef(null),b=I.useRef([]),x=I.useRef(new Map),w=I.useRef(null),C=I.useRef(new Map),k=I.useRef(new yVe),A=I.useRef([]),[P,T]=I.useState(!1),j=I.useMemo(()=>Yn.Children.toArray(t).filter(Yn.isValidElement),[t]),R=I.useCallback(D=>{var O,N;const F=(O=A.current)==null?void 0:O[D];return typeof F?.preferredSize=="number"&&((N=w.current)!=null&&N.resizeView(D,Math.round(F.preferredSize)),!0)},[]);return I.useImperativeHandle(g,()=>({reset:()=>{if(p)p();else{var D;(D=w.current)==null||D.distributeViewSizes();for(let O=0;O<A.current.length;O++)R(O)}},resize:D=>{var O;(O=w.current)==null||O.resizeViews(D)}})),MY(()=>{let D=!0;c&&C.current.size!==c.length&&(D=!1,console.warn(`Expected ${c.length} children based on defaultSizes but found ${C.current.size}`)),D&&c&&(b.current=j.map(F=>F.key));const O=bb({orientation:d?Vl.Vertical:Vl.Horizontal,proportionalLayout:i},D&&c&&{descriptor:{size:c.reduce((F,U)=>F+U,0),views:c.map((F,U)=>{var z,H,W,K;const q=x.current.get(b.current[U]),X=new LY(k.current,bb({element:document.createElement("div"),minimumSize:(z=q?.minSize)!=null?z:s,maximumSize:(H=q?.maxSize)!=null?H:n,priority:(W=q?.priority)!=null?W:Ul.Normal},q?.preferredSize&&{preferredSize:q?.preferredSize},{snap:(K=q?.snap)!=null?K:u}));return A.current.push(X),{container:[...C.current.values()][U],size:F,view:X}})}});w.current=new jVe(y.current,O,f,h,_),w.current.on("sashDragStart",()=>{var F;(F=y.current)==null||F.classList.add("split-view-sash-dragging")}),w.current.on("sashDragEnd",()=>{var F;(F=y.current)==null||F.classList.remove("split-view-sash-dragging")}),w.current.on("sashchange",F=>{if(m&&w.current){const U=j.map(z=>z.key);for(let z=0;z<U.length;z++){const H=x.current.get(U[z]);H?.visible!==void 0&&H.visible!==w.current.isViewVisible(z)&&m(z,w.current.isViewVisible(z))}}}),w.current.on("sashreset",F=>{if(p)p();else{var U;if(R(F)||R(F+1))return;(U=w.current)==null||U.distributeViewSizes()}});const N=w.current;return()=>{N.dispose()}},[]),MY(()=>{if(P){const Q=j.map(de=>de.key),Y=[...b.current],Z=Q.filter(de=>!b.current.includes(de)),re=Q.filter(de=>b.current.includes(de)),fe=b.current.map(de=>!Q.includes(de));for(let de=fe.length-1;de>=0;de--){var D;fe[de]&&((D=w.current)!=null&&D.removeView(de),Y.splice(de,1),A.current.splice(de,1))}for(const de of Z){var O,N,F,U,z;const se=x.current.get(de),le=new LY(k.current,bb({element:document.createElement("div"),minimumSize:(O=se?.minSize)!=null?O:s,maximumSize:(N=se?.maxSize)!=null?N:n,priority:(F=se?.priority)!=null?F:Ul.Normal},se?.preferredSize&&{preferredSize:se?.preferredSize},{snap:(U=se?.snap)!=null?U:u}));(z=w.current)!=null&&z.addView(C.current.get(de),le,$C.Distribute,Q.findIndex(ee=>ee===de)),Y.splice(Q.findIndex(ee=>ee===de),0,de),A.current.splice(Q.findIndex(ee=>ee===de),0,le)}for(;!uVe(Q,Y);)for(const[de,se]of Q.entries()){const le=Y.findIndex(ee=>ee===se);if(le!==de){var H;(H=w.current)==null||H.moveView(C.current.get(se),le,de);const ee=Y[le];Y.splice(le,1),Y.splice(de,0,ee);break}}for(const de of Z){var W;const se=Q.findIndex(ee=>ee===de),le=A.current[se].preferredSize;le!==void 0&&((W=w.current)==null||W.resizeView(se,le))}for(const de of[...Z,...re]){var K,q;const se=x.current.get(de),le=Q.findIndex(ee=>ee===de);se&&NY(se)&&se.visible!==void 0&&((K=w.current)==null?void 0:K.isViewVisible(le))!==se.visible&&((q=w.current)==null||q.setViewVisible(le,se.visible))}for(const de of re){const se=x.current.get(de),le=Q.findIndex(ee=>ee===de);if(se&&NY(se)){var X;se.preferredSize!==void 0&&A.current[le].preferredSize!==se.preferredSize&&(A.current[le].preferredSize=se.preferredSize);let ee=!1;se.minSize!==void 0&&A.current[le].minimumSize!==se.minSize&&(A.current[le].minimumSize=se.minSize,ee=!0),se.maxSize!==void 0&&A.current[le].maximumSize!==se.maxSize&&(A.current[le].maximumSize=se.maxSize,ee=!0),ee&&((X=w.current)==null||X.layout())}}(Z.length>0||fe.length>0)&&(b.current=Q)}},[j,P,n,s,u]),I.useEffect(()=>{w.current&&(w.current.onDidChange=f)},[f]),I.useEffect(()=>{w.current&&(w.current.onDidDragStart=h)},[h]),I.useEffect(()=>{w.current&&(w.current.onDidDragEnd=_)},[_]),dVe({ref:y,onResize:({width:D,height:O})=>{var N;D&&O&&((N=w.current)!=null&&N.layout(d?O:D),k.current.setSize(d?O:D),T(!0))}}),I.useEffect(()=>{ile&&TVe(20)},[]),Yn.createElement("div",{ref:y,className:J6("split-view",d?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":o},fVe,d?hVe:gVe,{[_Ve]:o},e),id:r},Yn.createElement("div",{className:J6("split-view-container",mVe)},Yn.Children.toArray(t).map(D=>{if(!Yn.isValidElement(D))return null;const O=D.key;return D.type.displayName==="Allotment.Pane"?(x.current.set(O,D.props),Yn.cloneElement(D,{key:O,ref:N=>{const F=D.ref;F&&(F.current=N),N?C.current.set(O,N):C.current.delete(O)}})):Yn.createElement(_N,{key:O,ref:N=>{N?C.current.set(O,N):C.current.delete(O)}},D)})))});function TVe(t){const e=wc(t,4,20),r=wc(t,1,8);document.documentElement.style.setProperty("--sash-size",e+"px"),document.documentElement.style.setProperty("--sash-hover-size",r+"px"),(function(n){ole=n,ale.emit("onDidChangeGlobalSize",n)})(e)}cle.displayName="Allotment";var $R=Object.assign(cle,{Pane:_N});function ts(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function EVe(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),ts(t.additionalItems)}function FY(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const Uh="__additional_property",e$="additionalProperties",Lv="allOf",Tc="anyOf",zd="const",RVe="default",HA="dependencies",IVe="enum",aa="__errors",cp="$id",DVe="if",gp="items",$Ve="_$junk_option_schema_id$_",Yw="$name",ll="oneOf",vi="properties",OVe="required",OC="submitButtonOptions",Hi="$ref",vN="__rjsf_additionalProperties",ule="__rjsf_rootSchema",LVe="ui:field",yN="ui:widget",xb="ui:options",NVe="ui:globalOptions";function Dn(t={},e={}){return Object.keys(t).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const s=t[n];return n===yN&&ts(s)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===xb&&ts(s)?{...r,...s}:{...r,[n.substring(3)]:s}},{...e})}function bN(t,e={},r){if(!t.additionalProperties)return!1;const{expandable:n=!0}=Dn(e);return n===!1?n:t.maxProperties!==void 0&&r?Object.keys(r).length<t.maxProperties:!0}function LC(t){const e={[aa]:[],addError(r){this[aa].push(r)}};if(Array.isArray(t))return t.reduce((r,n,s)=>({...r,[s]:LC(n)}),e);if(ph(t)){const r=t;return Object.keys(r).reduce((n,s)=>({...n,[s]:LC(r[s])}),e)}return e}var FVe="__lodash_hash_undefined__";function UVe(t){return this.__data__.set(t,FVe),this}function BVe(t){return this.__data__.has(t)}function G_(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new khe;++e<r;)this.add(t[e])}G_.prototype.add=G_.prototype.push=UVe;G_.prototype.has=BVe;function zVe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xN(t,e){return t.has(e)}var qVe=1,VVe=2;function dle(t,e,r,n,s,i){var o=r&qVe,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var f=-1,p=!0,m=r&VVe?new G_:void 0;for(i.set(t,e),i.set(e,t);++f<l;){var h=t[f],_=e[f];if(n)var g=o?n(_,h,f,e,t,i):n(h,_,f,t,e,i);if(g!==void 0){if(g)continue;p=!1;break}if(m){if(!zVe(e,function(y,b){if(!xN(m,b)&&(h===y||s(h,y,r,n,i)))return m.push(b)})){p=!1;break}}else if(!(h===_||s(h,_,r,n,i))){p=!1;break}}return i.delete(t),i.delete(e),p}function HVe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,s){r[++e]=[s,n]}),r}function SN(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var GVe=1,WVe=2,YVe="[object Boolean]",KVe="[object Date]",QVe="[object Error]",ZVe="[object Map]",XVe="[object Number]",JVe="[object RegExp]",eHe="[object Set]",tHe="[object String]",rHe="[object Symbol]",nHe="[object ArrayBuffer]",sHe="[object DataView]",UY=sC?sC.prototype:void 0,OR=UY?UY.valueOf:void 0;function iHe(t,e,r,n,s,i,o){switch(r){case sHe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nHe:return!(t.byteLength!=e.byteLength||!i(new ZF(t),new ZF(e)));case YVe:case KVe:case XVe:return K$(+t,+e);case QVe:return t.name==e.name&&t.message==e.message;case JVe:case tHe:return t==e+"";case ZVe:var l=HVe;case eHe:var c=n&GVe;if(l||(l=SN),t.size!=e.size&&!c)return!1;var u=o.get(t);if(u)return u==e;n|=WVe,o.set(t,e);var d=dle(l(t),l(e),n,s,i,o);return o.delete(t),d;case rHe:if(OR)return OR.call(t)==OR.call(e)}return!1}var oHe=1,aHe=Object.prototype,lHe=aHe.hasOwnProperty;function cHe(t,e,r,n,s,i){var o=r&oHe,l=XF(t),c=l.length,u=XF(e),d=u.length;if(c!=d&&!o)return!1;for(var f=c;f--;){var p=l[f];if(!(o?p in e:lHe.call(e,p)))return!1}var m=i.get(t),h=i.get(e);if(m&&h)return m==e&&h==t;var _=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<c;){p=l[f];var y=t[p],b=e[p];if(n)var x=o?n(b,y,p,e,t,i):n(y,b,p,t,e,i);if(!(x===void 0?y===b||s(y,b,r,n,i):x)){_=!1;break}g||(g=p=="constructor")}if(_&&!g){var w=t.constructor,C=e.constructor;w!=C&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(_=!1)}return i.delete(t),i.delete(e),_}var uHe=1,BY="[object Arguments]",zY="[object Array]",k2="[object Object]",dHe=Object.prototype,qY=dHe.hasOwnProperty;function fHe(t,e,r,n,s,i){var o=Da(t),l=Da(e),c=o?zY:LD(t),u=l?zY:LD(e);c=c==BY?k2:c,u=u==BY?k2:u;var d=c==k2,f=u==k2,p=c==u;if(p&&Rb(t)){if(!Rb(e))return!1;o=!0,d=!1}if(p&&!d)return i||(i=new ab),o||U3(t)?dle(t,e,r,n,s,i):iHe(t,e,c,r,n,s,i);if(!(r&uHe)){var m=d&&qY.call(t,"__wrapped__"),h=f&&qY.call(e,"__wrapped__");if(m||h){var _=m?t.value():t,g=h?e.value():e;return i||(i=new ab),s(_,g,r,n,i)}}return p?(i||(i=new ab),cHe(t,e,r,n,s,i)):!1}function GA(t,e,r,n,s){return t===e?!0:t==null||e==null||!Ib(t)&&!Ib(e)?t!==t&&e!==e:fHe(t,e,r,n,GA,s)}function pHe(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?GA(t,e,void 0,r):!!n}function Bs(t,e){return pHe(t,e,(r,n)=>{if(typeof r=="function"&&typeof n=="function")return!0})}var mHe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hHe=/^\w*$/;function wN(t,e){if(Da(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Xee(t)?!0:hHe.test(t)||!mHe.test(t)||e!=null&&t in Object(e)}function Nv(t,e){return Da(t)?t:wN(t,e)?[t]:Mhe(Jee(t))}function WA(t,e){e=Nv(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[ov(e[r++])];return r&&r==n?t:void 0}function $r(t,e,r){var n=t==null?void 0:WA(t,e);return n===void 0?r:n}var gHe="[object Map]",_He="[object Set]",vHe=Object.prototype,yHe=vHe.hasOwnProperty;function W_(t){if(t==null)return!0;if(B3(t)&&(Da(t)||typeof t=="string"||typeof t.splice=="function"||Rb(t)||U3(t)||Db(t)))return!t.length;var e=LD(t);if(e==gHe||e==_He)return!t.size;if(Phe(t))return!jhe(t).length;for(var r in t)if(yHe.call(t,r))return!1;return!0}var My={},VY;function bHe(){if(VY)return My;VY=1;var t=/~/,e=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function n(u){return t.test(u)?u.replace(e,r):u}function s(u,d,f){for(var p,m,h=1,_=d.length;h<_;){if(d[h]==="constructor"||d[h]==="prototype"||d[h]==="__proto__")return u;if(p=n(d[h++]),m=_>h,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),m&&(d[h]!==""&&d[h]<1/0||d[h]==="-"?u[p]=[]:u[p]={})),!m)break;u=u[p]}var g=u[p];return f===void 0?delete u[p]:u[p]=f,g}function i(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const d of u)if(typeof d!="string"&&typeof d!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,d){if(typeof u!="object")throw new Error("Invalid input object.");d=i(d);var f=d.length;if(f===1)return u;for(var p=1;p<f;){if(u=u[n(d[p++])],f===p)return u;if(typeof u!="object"||u===null)return}}function l(u,d,f){if(typeof u!="object")throw new Error("Invalid input object.");if(d=i(d),d.length===0)throw new Error("Invalid JSON pointer for set.");return s(u,d,f)}function c(u){var d=i(u);return{get:function(f){return o(f,d)},set:function(f,p){return l(f,d,p)}}}return My.get=o,My.set=l,My.compile=c,My}var xHe=bHe();const SHe=Pi(xHe);function wHe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function CHe(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(s);++n<s;)i[n]=t[n+e];return i}function AHe(t,e){return e.length<2?t:WA(t,CHe(e,0,-1))}function fle(t,e){return e=Nv(e,t),t=AHe(t,e),t==null||delete t[ov(wHe(e))]}function kHe(t){return ph(t)?void 0:t}var HY=sC?sC.isConcatSpreadable:void 0;function MHe(t){return Da(t)||Db(t)||!!(HY&&t&&t[HY])}function K0(t,e,r,n,s){var i=-1,o=t.length;for(r||(r=MHe),s||(s=[]);++i<o;){var l=t[i];e>0&&r(l)?e>1?K0(l,e-1,r,n,s):The(s,l):n||(s[s.length]=l)}return s}function PHe(t){var e=t==null?0:t.length;return e?K0(t,1):[]}function jHe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var GY=Math.max;function ple(t,e,r){return e=GY(e===void 0?t.length-1:e,0),function(){for(var n=arguments,s=-1,i=GY(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=n[s];return l[e]=r(o),jHe(t,this,l)}}function THe(t){return function(){return t}}function YA(t){return t}var EHe=JF?function(t,e){return JF(t,"toString",{configurable:!0,enumerable:!1,value:THe(e),writable:!0})}:YA,RHe=800,IHe=16,DHe=Date.now;function $He(t){var e=0,r=0;return function(){var n=DHe(),s=IHe-(n-r);if(r=n,s>0){if(++e>=RHe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var mle=$He(EHe);function hle(t){return mle(ple(t,void 0,PHe),t+"")}var OHe=1,LHe=2,NHe=4,NC=hle(function(t,e){var r={};if(t==null)return r;var n=!1;e=ete(e,function(i){return i=Nv(i,t),n||(n=i.length>1),i}),tte(t,rte(t),r),n&&(r=Ehe(r,OHe|LHe|NHe,kHe));for(var s=e.length;s--;)fle(r,e[s]);return r});function CN(t,e){const r=e[t];return[NC(e,[t]),r]}function gle(t,e={},r=[]){const n=t||"";let s;if(n.startsWith("#"))s=decodeURIComponent(n.substring(1));else throw new Error(`Could not find a definition for ${t}.`);const i=SHe.get(e,s);if(i===void 0)throw new Error(`Could not find a definition for ${t}.`);const o=i[Hi];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...f]=r,p=[...f,n,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${p}`)}const[l,c]=CN(Hi,i),u=gle(c,e,[...r,n]);return Object.keys(l).length>0?{...l,...u}:u}return i}function _le(t,e={}){return gle(t,e,[])}var FHe=Object.prototype,UHe=FHe.hasOwnProperty;function BHe(t,e){return t!=null&&UHe.call(t,e)}function vle(t,e,r){e=Nv(e,t);for(var n=-1,s=e.length,i=!1;++n<s;){var o=ov(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=s?i:(s=t==null?0:t.length,!!s&&Rhe(s)&&Q$(o,s)&&(Da(t)||Db(t)))}function ia(t,e){return t!=null&&vle(t,e,BHe)}var zHe="[object Number]";function yle(t){return typeof t=="number"||Ib(t)&&nte(t)==zHe}var qHe="[object String]";function KA(t){return typeof t=="string"||!Da(t)&&Ib(t)&&nte(t)==qHe}function VHe(t,e,r,n){var s=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++s]);++s<i;)r=e(r,t[s],s,t);return r}function HHe(t){return function(e,r,n){for(var s=-1,i=Object(e),o=n(e),l=o.length;l--;){var c=o[++s];if(r(i[c],c,i)===!1)break}return e}}var ble=HHe();function xle(t,e){return t&&ble(t,e,Fm)}function GHe(t,e){return function(r,n){if(r==null)return r;if(!B3(r))return t(r,n);for(var s=r.length,i=-1,o=Object(r);++i<s&&n(o[i],i,o)!==!1;);return r}}var Sle=GHe(xle),WHe=1,YHe=2;function KHe(t,e,r,n){var s=r.length,i=s;if(t==null)return!i;for(t=Object(t);s--;){var o=r[s];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++s<i;){o=r[s];var l=o[0],c=t[l],u=o[1];if(o[2]){if(c===void 0&&!(l in t))return!1}else{var d=new ab,f;if(!(f===void 0?GA(u,c,WHe|YHe,n,d):f))return!1}}return!0}function wle(t){return t===t&&!Ci(t)}function QHe(t){for(var e=Fm(t),r=e.length;r--;){var n=e[r],s=t[n];e[r]=[n,s,wle(s)]}return e}function Cle(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function ZHe(t){var e=QHe(t);return e.length==1&&e[0][2]?Cle(e[0][0],e[0][1]):function(r){return r===t||KHe(r,t,e)}}function XHe(t,e){return t!=null&&e in Object(t)}function Ale(t,e){return t!=null&&vle(t,e,XHe)}var JHe=1,eGe=2;function tGe(t,e){return wN(t)&&wle(e)?Cle(ov(t),e):function(r){var n=$r(r,t);return n===void 0&&n===e?Ale(r,t):GA(e,n,JHe|eGe)}}function rGe(t){return function(e){return e?.[t]}}function nGe(t){return function(e){return WA(e,t)}}function sGe(t){return wN(t)?rGe(ov(t)):nGe(t)}function AN(t){return typeof t=="function"?t:t==null?YA:typeof t=="object"?Da(t)?tGe(t[0],t[1]):ZHe(t):sGe(t)}function iGe(t,e,r,n,s){return s(t,function(i,o,l){r=n?(n=!1,i):e(r,i,o,l)}),r}function oGe(t,e,r){var n=Da(t)?VHe:iGe,s=arguments.length<3;return n(t,AN(e),r,s,Sle)}function kle(t){return typeof t=="function"?t:YA}var aGe=/\s/;function lGe(t){for(var e=t.length;e--&&aGe.test(t.charAt(e)););return e}var cGe=/^\s+/;function uGe(t){return t&&t.slice(0,lGe(t)+1).replace(cGe,"")}var WY=NaN,dGe=/^[-+]0x[0-9a-f]+$/i,fGe=/^0b[01]+$/i,pGe=/^0o[0-7]+$/i,mGe=parseInt;function hGe(t){if(typeof t=="number")return t;if(Xee(t))return WY;if(Ci(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ci(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=uGe(t);var r=fGe.test(t);return r||pGe.test(t)?mGe(t.slice(2),r?2:8):dGe.test(t)?WY:+t}var YY=1/0,gGe=17976931348623157e292;function _Ge(t){if(!t)return t===0?t:0;if(t=hGe(t),t===YY||t===-YY){var e=t<0?-1:1;return e*gGe}return t===t?t:0}function vGe(t){var e=_Ge(t),r=e%1;return e===e?r?e-r:e:0}var yGe=9007199254740991,LR=4294967295,bGe=Math.min;function Mle(t,e){if(t=vGe(t),t<1||t>yGe)return[];var r=LR,n=bGe(t,LR);e=kle(e),t-=LR;for(var s=Ihe(n,e);++r<t;)e(r);return s}function Ple(t,e,r){var n;if(t&&r){const s=$r(t,r);if(s===void 0)return;for(let i=0;i<e.length;i++){const o=e[i],l=$r(o,[vi,r],{});if(!(l.type==="object"||l.type==="array")&&(l.const===s||!((n=l.enum)===null||n===void 0)&&n.includes(s)))return i}}}function jle(t,e,r,n,s){if(e===void 0)return 0;const i=Ple(e,r,s);if(yle(i))return i;for(let o=0;o<r.length;o++){const l=r[o];if(s&&ia(l,[vi,s])){const c=$r(e,s),u=$r(l,[vi,s],{});if(t.isValid(u,c,n))return o}else if(l[vi]){const c={anyOf:Object.keys(l[vi]).map(d=>({required:[d]}))};let u;if(l.anyOf){const{...d}=l;d.allOf?d.allOf=d.allOf.slice():d.allOf=[],d.allOf.push(c),u=d}else u=Object.assign({},l,c);if(delete u.required,t.isValid(u,e,n))return o}else if(t.isValid(l,e,n))return o}return 0}function kN(t,e,r,n,s){return jle(t,e,r,n,s)}function MN(t,e,r,n){if(!Ci(t))return t;e=Nv(e,t);for(var s=-1,i=e.length,o=i-1,l=t;l!=null&&++s<i;){var c=ov(e[s]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(s!=o){var d=l[c];u=n?n(d,c,l):void 0,u===void 0&&(u=Ci(d)?d:Q$(e[s+1])?[]:{})}Dhe(l,c,u),l=l[c]}return t}function yo(t,e,r){return t==null?t:MN(t,e,r)}function xGe(t,e,r){var n=Da(t),s=n||Rb(t)||U3(t);if(e=AN(e),r==null){var i=t&&t.constructor;s?r=n?new i:[]:Ci(t)?r=ste(i)?$he(Ohe(t)):{}:r={}}return(s?ite:xle)(t,function(o,l,c){return e(r,o,l,c)}),r}function t$(t,e,r){(r!==void 0&&!K$(t[e],r)||r===void 0&&!(e in t))&&Lhe(t,e,r)}function FC(t){return Ib(t)&&B3(t)}function r$(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function SGe(t){return tte(t,ote(t))}function wGe(t,e,r,n,s,i,o){var l=r$(t,r),c=r$(e,r),u=o.get(c);if(u){t$(t,r,u);return}var d=i?i(l,c,r+"",t,e,o):void 0,f=d===void 0;if(f){var p=Da(c),m=!p&&Rb(c),h=!p&&!m&&U3(c);d=c,p||m||h?Da(l)?d=l:FC(l)?d=Nhe(l):m?(f=!1,d=Fhe(c,!0)):h?(f=!1,d=Uhe(c,!0)):d=[]:ph(c)||Db(c)?(d=l,Db(l)?d=SGe(l):(!Ci(l)||ste(l))&&(d=Bhe(c))):f=!1}f&&(o.set(c,d),s(d,c,n,i,o),o.delete(c)),t$(t,r,d)}function Tle(t,e,r,n,s){t!==e&&ble(e,function(i,o){if(s||(s=new ab),Ci(i))wGe(t,e,o,r,Tle,n,s);else{var l=n?n(r$(t,o),i,o+"",t,e,s):void 0;l===void 0&&(l=i),t$(t,o,l)}},ote)}function PN(t,e){return mle(ple(t,e,YA),t+"")}function CGe(t,e,r){if(!Ci(r))return!1;var n=typeof e;return(n=="number"?B3(r)&&Q$(e,r.length):n=="string"&&e in r)?K$(r[e],t):!1}function AGe(t){return PN(function(e,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(s--,i):void 0,o&&CGe(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var l=r[n];l&&t(e,l,n,i)}return e})}var kGe=AGe(function(t,e,r){Tle(t,e,r)}),MGe=1/0;function PGe(t){var e=t==null?0:t.length;return e?K0(t,MGe):[]}function jGe(t,e,r,n){for(var s=t.length,i=r+-1;++i<s;)if(e(t[i],i,t))return i;return-1}function TGe(t){return t!==t}function EGe(t,e,r){for(var n=r-1,s=t.length;++n<s;)if(t[n]===e)return n;return-1}function RGe(t,e,r){return e===e?EGe(t,e,r):jGe(t,TGe,r)}function Ele(t,e){var r=t==null?0:t.length;return!!r&&RGe(t,e,0)>-1}function IGe(){}var DGe=1/0,$Ge=IP&&1/SN(new IP([,-0]))[1]==DGe?function(t){return new IP(t)}:IGe,OGe=200;function Rle(t,e,r){var n=-1,s=Ele,i=t.length,o=!0,l=[],c=l;if(i>=OGe){var u=$Ge(t);if(u)return SN(u);o=!1,s=xN,c=new G_}else c=l;e:for(;++n<i;){var d=t[n],f=d;if(d=d!==0?d:0,o&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;l.push(d)}else s(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}function LGe(t){return t&&t.length?Rle(t):[]}var NR,KY;function Ile(){if(KY)return NR;KY=1;function t(e,r){for(var n=-1,s=e==null?0:e.length;++n<s&&r(e[n],n,e)!==!1;);return e}return NR=t,NR}var FR,QY;function NGe(){if(QY)return FR;QY=1;var t=$v(),e=dte();function r(n,s){return n&&t(s,e(s),n)}return FR=r,FR}var UR,ZY;function FGe(){if(ZY)return UR;ZY=1;var t=$v(),e=Ov();function r(n,s){return n&&t(s,e(s),n)}return UR=r,UR}var BR,XY;function UGe(){if(XY)return BR;XY=1;var t=$v(),e=fte();function r(n,s){return t(n,e(n),s)}return BR=r,BR}var zR,JY;function Dle(){if(JY)return zR;JY=1;var t=pte(),e=dN(),r=fte(),n=ege(),s=Object.getOwnPropertySymbols,i=s?function(o){for(var l=[];o;)t(l,r(o)),o=e(o);return l}:n;return zR=i,zR}var qR,eK;function BGe(){if(eK)return qR;eK=1;var t=$v(),e=Dle();function r(n,s){return t(n,e(n),s)}return qR=r,qR}var VR,tK;function $le(){if(tK)return VR;tK=1;var t=tge(),e=Dle(),r=Ov();function n(s){return t(s,r,e)}return VR=n,VR}var HR,rK;function zGe(){if(rK)return HR;rK=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n){var s=n.length,i=new n.constructor(s);return s&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return HR=r,HR}var GR,nK;function qGe(){if(nK)return GR;nK=1;var t=cN();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.byteLength)}return GR=e,GR}var WR,sK;function VGe(){if(sK)return WR;sK=1;var t=/\w*$/;function e(r){var n=new r.constructor(r.source,t.exec(r));return n.lastIndex=r.lastIndex,n}return WR=e,WR}var YR,iK;function HGe(){if(iK)return YR;iK=1;var t=mte(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function n(s){return r?Object(r.call(s)):{}}return YR=n,YR}var KR,oK;function GGe(){if(oK)return KR;oK=1;var t=cN(),e=qGe(),r=VGe(),n=HGe(),s=Oae(),i="[object Boolean]",o="[object Date]",l="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",f="[object String]",p="[object Symbol]",m="[object ArrayBuffer]",h="[object DataView]",_="[object Float32Array]",g="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",x="[object Int32Array]",w="[object Uint8Array]",C="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]";function P(T,j,R){var D=T.constructor;switch(j){case m:return t(T);case i:case o:return new D(+T);case h:return e(T,R);case _:case g:case y:case b:case x:case w:case C:case k:case A:return s(T,R);case l:return new D;case c:case f:return new D(T);case u:return r(T);case d:return new D;case p:return n(T)}}return KR=P,KR}var QR,aK;function WGe(){if(aK)return QR;aK=1;var t=V3(),e=lv(),r="[object Map]";function n(s){return e(s)&&t(s)==r}return QR=n,QR}var ZR,lK;function YGe(){if(lK)return ZR;lK=1;var t=WGe(),e=jh(),r=rO(),n=r&&r.isMap,s=n?e(n):t;return ZR=s,ZR}var XR,cK;function KGe(){if(cK)return XR;cK=1;var t=V3(),e=lv(),r="[object Set]";function n(s){return e(s)&&t(s)==r}return XR=n,XR}var JR,uK;function QGe(){if(uK)return JR;uK=1;var t=KGe(),e=jh(),r=rO(),n=r&&r.isSet,s=n?e(n):t;return JR=s,JR}var e5,dK;function Ole(){if(dK)return e5;dK=1;var t=ute(),e=Ile(),r=Fae(),n=NGe(),s=FGe(),i=$ae(),o=uN(),l=UGe(),c=BGe(),u=rge(),d=$le(),f=V3(),p=zGe(),m=GGe(),h=Lae(),_=cv(),g=tO(),y=YGe(),b=Qd(),x=QGe(),w=dte(),C=Ov(),k=1,A=2,P=4,T="[object Arguments]",j="[object Array]",R="[object Boolean]",D="[object Date]",O="[object Error]",N="[object Function]",F="[object GeneratorFunction]",U="[object Map]",z="[object Number]",H="[object Object]",W="[object RegExp]",K="[object Set]",q="[object String]",X="[object Symbol]",Q="[object WeakMap]",Y="[object ArrayBuffer]",Z="[object DataView]",re="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",se="[object Int16Array]",le="[object Int32Array]",ee="[object Uint8Array]",J="[object Uint8ClampedArray]",me="[object Uint16Array]",pe="[object Uint32Array]",Se={};Se[T]=Se[j]=Se[Y]=Se[Z]=Se[R]=Se[D]=Se[re]=Se[fe]=Se[de]=Se[se]=Se[le]=Se[U]=Se[z]=Se[H]=Se[W]=Se[K]=Se[q]=Se[X]=Se[ee]=Se[J]=Se[me]=Se[pe]=!0,Se[O]=Se[N]=Se[Q]=!1;function ve(xe,qe,Le,Te,je,Ge){var nt,Re=qe&k,we=qe&A,Me=qe&P;if(Le&&(nt=je?Le(xe,Te,je,Ge):Le(xe)),nt!==void 0)return nt;if(!b(xe))return xe;var $e=_(xe);if($e){if(nt=p(xe),!Re)return o(xe,nt)}else{var Ve=f(xe),Ne=Ve==N||Ve==F;if(g(xe))return i(xe,Re);if(Ve==H||Ve==T||Ne&&!je){if(nt=we||Ne?{}:h(xe),!Re)return we?c(xe,s(nt,xe)):l(xe,n(nt,xe))}else{if(!Se[Ve])return je?xe:{};nt=m(xe,Ve,Re)}}Ge||(Ge=new t);var Oe=Ge.get(xe);if(Oe)return Oe;Ge.set(xe,nt),x(xe)?xe.forEach(function(Et){nt.add(ve(Et,qe,Le,Et,xe,Ge))}):y(xe)&&xe.forEach(function(Et,at){nt.set(at,ve(Et,qe,Le,at,xe,Ge))});var ft=Me?we?d:u:we?C:w,Ct=$e?void 0:ft(xe);return e(Ct||xe,function(Et,at){Ct&&(at=Et,Et=xe[at]),r(nt,at,ve(Et,qe,Le,at,xe,Ge))}),nt}return e5=ve,e5}var t5,fK;function ZGe(){if(fK)return t5;fK=1;var t=Ole(),e=1,r=4;function n(s){return t(s,e|r)}return t5=n,t5}var r5,pK;function Lle(){if(pK)return r5;pK=1;var t=nge();function e(r,n){return t(r,n)}return r5=e,r5}var n5,mK;function XGe(){if(mK)return n5;mK=1;var t=mte(),e=eO(),r=cv(),n=t?t.isConcatSpreadable:void 0;function s(i){return r(i)||e(i)||!!(n&&i&&i[n])}return n5=s,n5}var s5,hK;function jN(){if(hK)return s5;hK=1;var t=pte(),e=XGe();function r(n,s,i,o,l){var c=-1,u=n.length;for(i||(i=e),l||(l=[]);++c<u;){var d=n[c];s>0&&i(d)?s>1?r(d,s-1,i,o,l):t(l,d):o||(l[l.length]=d)}return l}return s5=r,s5}var i5,gK;function JGe(){if(gK)return i5;gK=1;var t=av();function e(r,n){return function(s,i){if(s==null)return s;if(!t(s))return r(s,i);for(var o=s.length,l=n?o:-1,c=Object(s);(n?l--:++l<o)&&i(c[l],l,c)!==!1;);return s}}return i5=e,i5}var o5,_K;function Nle(){if(_K)return o5;_K=1;var t=sge(),e=JGe(),r=e(t);return o5=r,o5}var a5,vK;function eWe(){if(vK)return a5;vK=1;var t=Nle(),e=av();function r(n,s){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(l,c,u){o[++i]=s(l,c,u)}),o}return a5=r,a5}var l5,yK;function tWe(){if(yK)return l5;yK=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return l5=t,l5}var c5,bK;function rWe(){if(bK)return c5;bK=1;var t=hte();function e(r,n){if(r!==n){var s=r!==void 0,i=r===null,o=r===r,l=t(r),c=n!==void 0,u=n===null,d=n===n,f=t(n);if(!u&&!f&&!l&&r>n||l&&c&&d&&!u&&!f||i&&c&&d||!s&&d||!o)return 1;if(!i&&!l&&!f&&r<n||f&&s&&o&&!i&&!l||u&&s&&o||!c&&o||!d)return-1}return 0}return c5=e,c5}var u5,xK;function nWe(){if(xK)return u5;xK=1;var t=rWe();function e(r,n,s){for(var i=-1,o=r.criteria,l=n.criteria,c=o.length,u=s.length;++i<c;){var d=t(o[i],l[i]);if(d){if(i>=u)return d;var f=s[i];return d*(f=="desc"?-1:1)}}return r.index-n.index}return u5=e,u5}var d5,SK;function sWe(){if(SK)return d5;SK=1;var t=Th(),e=gte(),r=ige(),n=eWe(),s=tWe(),i=jh(),o=nWe(),l=q3(),c=cv();function u(d,f,p){f.length?f=t(f,function(_){return c(_)?function(g){return e(g,_.length===1?_[0]:_)}:_}):f=[l];var m=-1;f=t(f,i(r));var h=n(d,function(_,g,y){var b=t(f,function(x){return x(_)});return{criteria:b,index:++m,value:_}});return s(h,function(_,g){return o(_,g,p)})}return d5=u,d5}var f5,wK;function Fle(){if(wK)return f5;wK=1;var t=jN(),e=sWe(),r=Fh(),n=mN(),s=r(function(i,o){if(i==null)return[];var l=o.length;return l>1&&n(i,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,t(o,1),[])});return f5=s,f5}var p5,CK;function iWe(){if(CK)return p5;CK=1;function t(e,r,n,s){for(var i=e.length,o=n+(s?1:-1);s?o--:++o<i;)if(r(e[o],o,e))return o;return-1}return p5=t,p5}var m5,AK;function oWe(){if(AK)return m5;AK=1;function t(e){return e!==e}return m5=t,m5}var h5,kK;function aWe(){if(kK)return h5;kK=1;function t(e,r,n){for(var s=n-1,i=e.length;++s<i;)if(e[s]===r)return s;return-1}return h5=t,h5}var g5,MK;function Ule(){if(MK)return g5;MK=1;var t=iWe(),e=oWe(),r=aWe();function n(s,i,o){return i===i?r(s,i,o):t(s,e,o)}return g5=n,g5}var _5,PK;function TN(){if(PK)return _5;PK=1;var t=Ule();function e(r,n){var s=r==null?0:r.length;return!!s&&t(r,n,0)>-1}return _5=e,_5}var v5,jK;function EN(){if(jK)return v5;jK=1;function t(e,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)if(n(r,e[s]))return!0;return!1}return v5=t,v5}var y5,TK;function lWe(){if(TK)return y5;TK=1;function t(){}return y5=t,y5}var b5,EK;function cWe(){if(EK)return b5;EK=1;var t=oge(),e=lWe(),r=_te(),n=1/0,s=t&&1/r(new t([,-0]))[1]==n?function(i){return new t(i)}:e;return b5=s,b5}var x5,RK;function Ble(){if(RK)return x5;RK=1;var t=nO(),e=TN(),r=EN(),n=sO(),s=cWe(),i=_te(),o=200;function l(c,u,d){var f=-1,p=e,m=c.length,h=!0,_=[],g=_;if(d)h=!1,p=r;else if(m>=o){var y=u?null:s(c);if(y)return i(y);h=!1,p=n,g=new t}else g=u?[]:_;e:for(;++f<m;){var b=c[f],x=u?u(b):b;if(b=d||b!==0?b:0,h&&x===x){for(var w=g.length;w--;)if(g[w]===x)continue e;u&&g.push(x),_.push(b)}else p(g,x,d)||(g!==_&&g.push(x),_.push(b))}return _}return x5=l,x5}var S5,IK;function RN(){if(IK)return S5;IK=1;var t=Ble();function e(r){return r&&r.length?t(r):[]}return S5=e,S5}var w5,DK;function IN(){if(DK)return w5;DK=1;var t=Ble();function e(r,n){return n=typeof n=="function"?n:void 0,r&&r.length?t(r,void 0,n):[]}return w5=e,w5}var C5,$K;function uWe(){if($K)return C5;$K=1;var t=Fh(),e=z3(),r=mN(),n=Ov(),s=Object.prototype,i=s.hasOwnProperty,o=t(function(l,c){l=Object(l);var u=-1,d=c.length,f=d>2?c[2]:void 0;for(f&&r(c[0],c[1],f)&&(d=1);++u<d;)for(var p=c[u],m=n(p),h=-1,_=m.length;++h<_;){var g=m[h],y=l[g];(y===void 0||e(y,s[g])&&!i.call(l,g))&&(l[g]=p[g])}return l});return C5=o,C5}var A5,OK;function zle(){if(OK)return A5;OK=1;var t=nO(),e=TN(),r=EN(),n=Th(),s=jh(),i=sO(),o=Math.min;function l(c,u,d){for(var f=d?r:e,p=c[0].length,m=c.length,h=m,_=Array(m),g=1/0,y=[];h--;){var b=c[h];h&&u&&(b=n(b,s(u))),g=o(b.length,g),_[h]=!d&&(u||p>=120&&b.length>=120)?new t(h&&b):void 0}b=c[0];var x=-1,w=_[0];e:for(;++x<p&&y.length<g;){var C=b[x],k=u?u(C):C;if(C=d||C!==0?C:0,!(w?i(w,k):f(y,k,d))){for(h=m;--h;){var A=_[h];if(!(A?i(A,k):f(c[h],k,d)))continue e}w&&w.push(k),y.push(C)}}return y}return A5=l,A5}var k5,LK;function qle(){if(LK)return k5;LK=1;var t=fN();function e(r){return t(r)?r:[]}return k5=e,k5}var M5,NK;function Vle(){if(NK)return M5;NK=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return M5=t,M5}var P5,FK;function Hle(){if(FK)return P5;FK=1;var t=Th(),e=zle(),r=Fh(),n=qle(),s=Vle(),i=r(function(o){var l=s(o),c=t(o,n);return l=typeof l=="function"?l:void 0,l&&c.pop(),c.length&&c[0]===o[0]?e(c,void 0,l):[]});return P5=i,P5}var j5,UK;function dWe(){if(UK)return j5;UK=1;var t=J$(),e=lv(),r="[object Boolean]";function n(s){return s===!0||s===!1||e(s)&&t(s)==r}return j5=n,j5}var T5,BK;function DN(){if(BK)return T5;BK=1;var t=Lle(),e=Fle(),r=RN(),n=IN(),s=uWe(),i=Hle(),o=W0(),l=dWe(),c=O=>Array.isArray(O)?O:[O],u=O=>O===void 0,d=O=>o(O)||Array.isArray(O)?Object.keys(O):[],f=(O,N)=>O.hasOwnProperty(N),p=O=>e(r(O)),m=O=>u(O)||Array.isArray(O)&&O.length===0,h=(O,N,F,U)=>N&&f(N,F)&&O&&f(O,F)&&U(O[F],N[F]),_=(O,N)=>u(O)&&N===0||u(N)&&O===0||t(O,N),g=(O,N)=>u(O)&&N===!1||u(N)&&O===!1||t(O,N),y=O=>u(O)||t(O,{})||O===!0,b=O=>u(O)||t(O,{}),x=O=>u(O)||o(O)||O===!0||O===!1;function w(O,N){return m(O)&&m(N)?!0:t(p(O),p(N))}function C(O,N){return O=c(O),N=c(N),t(p(O),p(N))}function k(O,N,F,U){var z=r(d(O).concat(d(N)));return b(O)&&b(N)?!0:b(O)&&d(N).length||b(N)&&d(O).length?!1:z.every(function(H){var W=O[H],K=N[H];return Array.isArray(W)&&Array.isArray(K)?t(p(O),p(N)):Array.isArray(W)&&!Array.isArray(K)||Array.isArray(K)&&!Array.isArray(W)?!1:h(O,N,H,U)})}function A(O,N,F,U){return o(O)&&o(N)?U(O,N):Array.isArray(O)&&Array.isArray(N)?k(O,N,F,U):t(O,N)}function P(O,N,F,U){var z=n(O,U),H=n(N,U),W=i(z,H,U);return W.length===Math.max(z.length,H.length)}var T={title:t,uniqueItems:g,minLength:_,minItems:_,minProperties:_,required:w,enum:w,type:C,items:A,anyOf:P,allOf:P,oneOf:P,properties:k,patternProperties:k,dependencies:k},j=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],R=["additionalProperties","additionalItems","contains","propertyNames","not"];function D(O,N,F){if(F=s(F,{ignore:[]}),y(O)&&y(N))return!0;if(!x(O)||!x(N))throw new Error("Either of the values are not a JSON schema.");if(O===N)return!0;if(l(O)&&l(N))return O===N;if(O===void 0&&N===!1||N===void 0&&O===!1||u(O)&&!u(N)||!u(O)&&u(N))return!1;var U=r(Object.keys(O).concat(Object.keys(N)));if(F.ignore.length&&(U=U.filter(H=>F.ignore.indexOf(H)===-1)),!U.length)return!0;function z(H,W){return D(H,W,F)}return U.every(function(H){var W=O[H],K=N[H];if(R.indexOf(H)!==-1)return D(W,K,F);var q=T[H];if(q||(q=t),t(W,K))return!0;if(j.indexOf(H)===-1&&(!f(O,H)&&f(N,H)||f(O,H)&&!f(N,H)))return W===K;var X=q(W,K,H,z);if(!l(X))throw new Error("Comparer must return true or false");return X})}return T5=D,T5}var E5,zK;function $N(){if(zK)return E5;zK=1;function t(e){return Object.prototype.toString.call(e)==="[object Array]"}return E5=Array.isArray||t,E5}var R5,qK;function fWe(){if(qK)return R5;qK=1;function t(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}return R5=t,R5}var I5,VK;function pWe(){if(VK)return I5;VK=1;var t=fWe();function e(r){return t(r)&&r%1===0}return I5=e,I5}var D5,HK;function Gle(){if(HK)return D5;HK=1;var t=$N(),e=pWe();function r(n){var s;if(!t(n)||(s=n.length,!s))return!1;for(var i=0;i<s;i++)if(!e(n[i]))return!1;return!0}return D5=r,D5}var $5,GK;function Wle(){if(GK)return $5;GK=1;function t(e){return typeof e=="function"}return $5=t,$5}var O5,WK;function mWe(){if(WK)return O5;WK=1;var t=$N(),e=Gle(),r=Wle(),n=Math.pow(2,31)-1;function s(l,c){var u=1,d;if(l===0)return c;if(c===0)return l;for(;l%2===0&&c%2===0;)l=l/2,c=c/2,u=u*2;for(;l%2===0;)l=l/2;for(;c;){for(;c%2===0;)c=c/2;l>c&&(d=c,c=l,l=d),c=c-l}return u*l}function i(l,c){var u=0,d;if(l===0)return c;if(c===0)return l;for(;(l&1)===0&&(c&1)===0;)l>>>=1,c>>>=1,u++;for(;(l&1)===0;)l>>>=1;for(;c;){for(;(c&1)===0;)c>>>=1;l>c&&(d=c,c=l,l=d),c=c-l}return l<<u}function o(){var l=arguments.length,c,u,d,f,p,m,h;for(c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];if(e(c)){if(l===2)return p=c[0],m=c[1],p<0&&(p=-p),m<0&&(m=-m),p<=n&&m<=n?i(p,m):s(p,m);d=c}else if(t(c[0]))if(l>1){if(d=c[0],u=c[1],!r(u))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+u+"`.")}else d=c[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+c[0]+"`.");if(f=d.length,f<2)return null;if(u){for(p=new Array(f),h=0;h<f;h++)p[h]=u(d[h],h);d=p}if(l<3&&!e(d))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+d+"`.");for(h=0;h<f;h++)p=d[h],p<0&&(d[h]=-p);for(p=d[0],h=1;h<f;h++)m=d[h],m<=n&&p<=n?p=i(p,m):p=s(p,m);return p}return O5=o,O5}var L5,YK;function hWe(){if(YK)return L5;YK=1;var t=mWe(),e=$N(),r=Gle(),n=Wle();function s(){var i=arguments.length,o,l,c,u,d,f,p;for(o=new Array(i),p=0;p<i;p++)o[p]=arguments[p];if(r(o)){if(i===2)return d=o[0],f=o[1],d<0&&(d=-d),f<0&&(f=-f),d===0||f===0?0:d/t(d,f)*f;c=o}else if(e(o[0]))if(i>1){if(c=o[0],l=o[1],!n(l))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+l+"`.")}else c=o[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+o[0]+"`.");if(u=c.length,u<2)return null;if(l){for(d=new Array(u),p=0;p<u;p++)d[p]=l(c[p],p);c=d}if(i<3&&!r(c))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+c+"`.");for(p=0;p<u;p++)d=c[p],d<0&&(c[p]=-d);for(d=c[0],p=1;p<u;p++){if(f=c[p],d===0||f===0)return 0;d=d/t(d,f)*f}return d}return L5=s,L5}var N5,KK;function gWe(){if(KK)return N5;KK=1;var t=pN(),e=Qd();function r(n,s,i,o,l,c){return e(n)&&e(s)&&(c.set(s,n),t(n,s,void 0,r,c),c.delete(s)),n}return N5=r,N5}var F5,QK;function _We(){if(QK)return F5;QK=1;var t=pN(),e=qae(),r=e(function(n,s,i,o){t(n,s,i,o)});return F5=r,F5}var U5,ZK;function vWe(){if(ZK)return U5;ZK=1;var t=Uae(),e=Fh(),r=gWe(),n=_We(),s=e(function(i){return i.push(void 0,r),t(n,void 0,i)});return U5=s,U5}var B5,XK;function ON(){if(XK)return B5;XK=1;var t=jN();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return B5=e,B5}var z5,JK;function Yle(){if(JK)return z5;JK=1;var t=jN(),e=1/0;function r(n){var s=n==null?0:n.length;return s?t(n,e):[]}return z5=r,z5}var q5,eQ;function yWe(){if(eQ)return q5;eQ=1;var t=Th(),e=zle(),r=Fh(),n=qle(),s=r(function(i){var o=t(i,n);return o.length&&o[0]===i[0]?e(o):[]});return q5=s,q5}var V5,tQ;function bWe(){if(tQ)return V5;tQ=1;function t(e,r,n,s){for(var i=n-1,o=e.length;++i<o;)if(s(e[i],r))return i;return-1}return V5=t,V5}var H5,rQ;function xWe(){if(rQ)return H5;rQ=1;var t=Th(),e=Ule(),r=bWe(),n=jh(),s=uN(),i=Array.prototype,o=i.splice;function l(c,u,d,f){var p=f?r:e,m=-1,h=u.length,_=c;for(c===u&&(u=s(u)),d&&(_=t(c,n(d)));++m<h;)for(var g=0,y=u[m],b=d?d(y):y;(g=p(_,b,g,f))>-1;)_!==c&&o.call(_,g,1),o.call(c,g,1);return c}return H5=l,H5}var G5,nQ;function SWe(){if(nQ)return G5;nQ=1;var t=xWe();function e(r,n){return r&&r.length&&n&&n.length?t(r,n):r}return G5=e,G5}var W5,sQ;function wWe(){if(sQ)return W5;sQ=1;var t=q3();function e(r){return typeof r=="function"?r:t}return W5=e,W5}var Y5,iQ;function Kle(){if(iQ)return Y5;iQ=1;var t=Ile(),e=Nle(),r=wWe(),n=cv();function s(i,o){var l=n(i)?t:e;return l(i,r(o))}return Y5=s,Y5}var K5,oQ;function CWe(){if(oQ)return K5;oQ=1;var t=nO(),e=TN(),r=EN(),n=Th(),s=jh(),i=sO(),o=200;function l(c,u,d,f){var p=-1,m=e,h=!0,_=c.length,g=[],y=u.length;if(!_)return g;d&&(u=n(u,s(d))),f?(m=r,h=!1):u.length>=o&&(m=i,h=!1,u=new t(u));e:for(;++p<_;){var b=c[p],x=d==null?b:d(b);if(b=f||b!==0?b:0,h&&x===x){for(var w=y;w--;)if(u[w]===x)continue e;g.push(b)}else m(u,x,f)||g.push(b)}return g}return K5=l,K5}var Q5,aQ;function AWe(){if(aQ)return Q5;aQ=1;var t=CWe(),e=Fh(),r=fN(),n=e(function(s,i){return r(s)?t(s,i):[]});return Q5=n,Q5}var Z5,lQ;function Qle(){if(lQ)return Z5;lQ=1;const t=ON(),e=Yle(),r=W0(),n=RN(),s=IN(),i=AWe();function o(_){for(const g in _)u(_,g)&&m(_[g])&&delete _[g];return _}const l=_=>n(e(_.map(d))),c=(_,g)=>_.map(y=>y&&y[g]),u=(_,g)=>Object.prototype.hasOwnProperty.call(_,g),d=_=>r(_)||Array.isArray(_)?Object.keys(_):[],f=_=>_!==void 0,p=_=>r(_)||_===!0||_===!1,m=_=>!d(_).length&&_!==!1&&_!==!0;return Z5={allUniqueKeys:l,deleteUndefinedProps:o,getValues:c,has:u,isEmptySchema:m,isSchema:p,keys:d,notUndefined:f,uniqWith:s,withoutArr:(_,...g)=>i.apply(null,[_].concat(t(g)))},Z5}var X5,cQ;function kWe(){if(cQ)return X5;cQ=1;const t=DN(),e=Kle(),{allUniqueKeys:r,deleteUndefinedProps:n,getValues:s,keys:i,notUndefined:o,uniqWith:l,withoutArr:c}=Qle();function u(f){e(f,function(p,m){p===!1&&delete f[m]})}function d(f,p){return r(f).reduce(function(h,_){const g=s(f,_),y=l(g.filter(o),t);return h[_]=p(y,_),h},{})}return X5={keywords:["properties","patternProperties","additionalProperties"],resolver(f,p,m,h){h.ignoreAdditionalProperties||(f.forEach(function(g){const y=f.filter(C=>C!==g),b=i(g.properties),w=i(g.patternProperties).map(C=>new RegExp(C));y.forEach(function(C){const k=i(C.properties),A=k.filter(T=>w.some(j=>j.test(T)));c(k,b,A).forEach(function(T){C.properties[T]=m.properties([C.properties[T],g.additionalProperties],T)})})}),f.forEach(function(g){const y=f.filter(x=>x!==g),b=i(g.patternProperties);g.additionalProperties===!1&&y.forEach(function(x){const w=i(x.patternProperties);c(w,b).forEach(k=>delete x.patternProperties[k])})}));const _={additionalProperties:m.additionalProperties(f.map(g=>g.additionalProperties)),patternProperties:d(f.map(g=>g.patternProperties),m.patternProperties),properties:d(f.map(g=>g.properties),m.properties)};return _.additionalProperties===!1&&u(_.properties),n(_)}},X5}var J5,uQ;function MWe(){if(uQ)return J5;uQ=1;const t=DN(),e=Kle(),{allUniqueKeys:r,deleteUndefinedProps:n,has:s,isSchema:i,notUndefined:o,uniqWith:l}=Qle();function c(p){e(p,function(m,h){m===!1&&p.splice(h,1)})}function u(p,m){return p.map(function(h){if(h)if(Array.isArray(h.items)){const _=h.items[m];if(i(_))return _;if(s(h,"additionalItems"))return h.additionalItems}else return h.items})}function d(p){return p.map(function(m){if(m)return Array.isArray(m.items)?m.additionalItems:m.items})}function f(p,m,h){return r(h).reduce(function(g,y){const b=u(p,y),x=l(b.filter(o),t);return g[y]=m(x,y),g},[])}return J5={keywords:["items","additionalItems"],resolver(p,m,h){const _=p.map(x=>x.items),g=_.filter(o),y={};g.every(i)?y.items=h.items(_):y.items=f(p,h.items,_);let b;return g.every(Array.isArray)?b=p.map(x=>x.additionalItems):g.some(Array.isArray)&&(b=d(p)),b&&(y.additionalItems=h.additionalItems(b)),y.additionalItems===!1&&Array.isArray(y.items)&&c(y.items),n(y)}},J5}var eI,dQ;function PWe(){if(dQ)return eI;dQ=1;const t=ZGe(),e=DN(),r=hWe(),n=vWe(),s=ON(),i=Yle(),o=yWe(),l=Hle(),c=Lle(),u=W0(),d=SWe(),f=Fle(),p=RN(),m=IN(),h=kWe(),_=MWe(),g=(se,le)=>se.indexOf(le)!==-1,y=se=>u(se)||se===!0||se===!1,b=se=>se===!1,x=se=>se===!0,w=(se,le,ee)=>ee(se),C=se=>f(p(i(se))),k=se=>se!==void 0,A=se=>p(i(se.map(H))),P=se=>se[0],T=se=>C(se),j=se=>Math.max.apply(Math,se),R=se=>Math.min.apply(Math,se),D=se=>se.some(x),O=se=>m(s(se),c);function N(se){return function(le,ee){return e({[se]:le},{[se]:ee})}}function F(se){let{allOf:le=[],...ee}=se;return ee=u(se)?ee:se,[ee,...le.map(F)]}function U(se,le){return se.map(ee=>ee&&ee[le])}function z(se,le){return se.map(function(ee,J){try{return le(ee,J)}catch{return}}).filter(k)}function H(se){return u(se)||Array.isArray(se)?Object.keys(se):[]}function W(se,le){if(le=le||[],!se.length)return le;const ee=se.slice(0).shift(),J=se.slice(1);return le.length?W(J,s(le.map(me=>ee.map(pe=>[pe].concat(me))))):W(J,ee.map(me=>me))}function K(se,le){let ee;try{ee=se.map(function(J){return JSON.stringify(J,null,2)}).join(`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:321:`,jJe="️",TJe="‍",$I="￼";let pw=null,mw=null;function EJe(t=[]){const e={};sl.groups=e;const r=new sl;pw==null&&(pw=fX(wJe)),mw==null&&(mw=fX(CJe)),sr(r,"'",s3),sr(r,"{",kb),sr(r,"}",Mb),sr(r,"[",qC),sr(r,"]",VC),sr(r,"(",HC),sr(r,")",GC),sr(r,"<",WC),sr(r,">",YC),sr(r,"（",KC),sr(r,"）",QC),sr(r,"「",ZC),sr(r,"」",XC),sr(r,"『",JC),sr(r,"』",e3),sr(r,"＜",t3),sr(r,"＞",r3),sr(r,"&",n3),sr(r,"*",i3),sr(r,"@",Qf),sr(r,"`",a3),sr(r,"^",l3),sr(r,":",ep),sr(r,",",JN),sr(r,"$",c3),sr(r,".",bu),sr(r,"=",u3),sr(r,"!",e7),sr(r,"-",Fl),sr(r,"%",Pb),sr(r,"|",d3),sr(r,"+",f3),sr(r,"#",p3),sr(r,"?",jb),sr(r,'"',t7),sr(r,"/",xu),sr(r,";",r7),sr(r,"~",Tb),sr(r,"_",m3),sr(r,"\\",o3),sr(r,"・",Yce);const n=pi(r,kd,ZN,{[a$]:!0});pi(n,kd,n);const s=pi(n,Ad,Gce,{[Ab]:!0}),i=pi(n,Dy,Wce,{[tb]:!0}),o=pi(r,Ad,Pd,{[l$]:!0});pi(o,kd,s),pi(o,Ad,o),pi(s,kd,s),pi(s,Ad,s);const l=pi(r,Dy,d$,{[c$]:!0});pi(l,Ad),pi(l,kd,i),pi(l,Dy,l),pi(i,kd,i),pi(i,Ad),pi(i,Dy,i);const c=sr(r,DI,XN,{[EI]:!0}),u=sr(r,dX,m$,{[EI]:!0}),d=pi(r,II,m$,{[EI]:!0});sr(r,$I,d),sr(u,DI,c),sr(u,$I,d),pi(u,II,d),sr(d,dX),sr(d,DI),pi(d,II,d),sr(d,$I,d);const f=pi(r,RI,Kce,{[Hce]:!0});sr(f,"#"),pi(f,RI,f),sr(f,jJe,f);const p=sr(f,TJe);sr(p,"#"),pi(p,RI,f);const m=[[Ad,o],[kd,s]],h=[[Ad,null],[Dy,l],[kd,i]];for(let _=0;_<pw.length;_++)Hf(r,pw[_],f$,Pd,m);for(let _=0;_<mw.length;_++)Hf(r,mw[_],p$,d$,h);Xm(f$,{tld:!0,ascii:!0},e),Xm(p$,{utld:!0,alpha:!0},e),Hf(r,"file",Jw,Pd,m),Hf(r,"mailto",Jw,Pd,m),Hf(r,"http",s_,Pd,m),Hf(r,"https",s_,Pd,m),Hf(r,"ftp",s_,Pd,m),Hf(r,"ftps",s_,Pd,m),Xm(Jw,{scheme:!0,ascii:!0},e),Xm(s_,{slashscheme:!0,ascii:!0},e),t=t.sort((_,g)=>_[0]>g[0]?1:-1);for(let _=0;_<t.length;_++){const g=t[_][0],b=t[_][1]?{[AJe]:!0}:{[kJe]:!0};g.indexOf("-")>=0?b[u$]=!0:Ad.test(g)?kd.test(g)?b[Ab]=!0:b[l$]=!0:b[a$]=!0,uX(r,g,g,b)}return uX(r,"localhost",o0,{ascii:!0}),r.jd=new sl(h3),{start:r,tokens:Object.assign({groups:e},Qce)}}function Zce(t,e){const r=RJe(e.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,s=[];let i=0,o=0;for(;o<n;){let l=t,c=null,u=0,d=null,f=-1,p=-1;for(;o<n&&(c=l.go(r[o]));)l=c,l.accepts()?(f=0,p=0,d=l):f>=0&&(f+=r[o].length,p++),u+=r[o].length,i+=r[o].length,o++;i-=f,o-=p,u-=f,s.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return s}function RJe(t){const e=[],r=t.length;let n=0;for(;n<r;){let s=t.charCodeAt(n),i,o=s<55296||s>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?t[n]:t.slice(n,n+2);e.push(o),n+=o.length}return e}function Hf(t,e,r,n,s){let i;const o=e.length;for(let l=0;l<o-1;l++){const c=e[l];t.j[c]?i=t.j[c]:(i=new sl(n),i.jr=s.slice(),t.j[c]=i),t=i}return i=new sl(r),i.jr=s.slice(),t.j[e[o-1]]=i,i}function fX(t){const e=[],r=[];let n=0,s="0123456789";for(;n<t.length;){let i=0;for(;s.indexOf(t[n+i])>=0;)i++;if(i>0){e.push(r.join(""));for(let o=parseInt(t.substring(n,n+i),10);o>0;o--)r.pop();n+=i}else r.push(t[n]),n++}return e}const a0={defaultProtocol:"http",events:null,format:pX,formatHref:pX,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function n7(t,e=null){let r=Object.assign({},a0);t&&(r=Object.assign(r,t instanceof n7?t.o:t));const n=r.ignoreTags,s=[];for(let i=0;i<n.length;i++)s.push(n[i].toUpperCase());this.o=r,e&&(this.defaultRender=e),this.ignoreTags=s}n7.prototype={o:a0,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,r){const n=e!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=r.t in s?s[r.t]:a0[t],typeof s=="function"&&n&&(s=s(e,r))):typeof s=="function"&&n&&(s=s(e,r.t,r)),s)},getObj(t,e,r){let n=this.o[t];return typeof n=="function"&&e!=null&&(n=n(e,r.t,r)),n},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function pX(t){return t}function Xce(t,e){this.t="token",this.v=t,this.tk=e}Xce.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),r=t.get("truncate",e,this),n=t.get("format",e,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=a0.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,r=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",r,this),s=t.get("tagName",r,e),i=this.toFormattedString(t),o={},l=t.get("className",r,e),c=t.get("target",r,e),u=t.get("rel",r,e),d=t.getObj("attributes",r,e),f=t.getObj("events",r,e);return o.href=n,l&&(o.class=l),c&&(o.target=c),u&&(o.rel=u),d&&Object.assign(o,d),{tagName:s,attributes:o,content:i,eventListeners:f}}};function ak(t,e){class r extends Xce{constructor(s,i){super(s,i),this.t=t}}for(const n in e)r.prototype[n]=e[n];return r.t=t,r}const mX=ak("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),hX=ak("text"),IJe=ak("nl"),hw=ak("url",{isLink:!0,toHref(t=a0.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==o0&&t[1].t===ep}}),Dl=t=>new sl(t);function DJe({groups:t}){const e=t.domain.concat([n3,i3,Qf,o3,a3,l3,c3,u3,Fl,ZN,Pb,d3,f3,p3,xu,h3,Tb,m3]),r=[s3,ep,JN,bu,e7,Pb,jb,t7,r7,WC,YC,kb,Mb,VC,qC,HC,GC,KC,QC,ZC,XC,JC,e3,t3,r3],n=[n3,s3,i3,o3,a3,l3,c3,u3,Fl,kb,Mb,Pb,d3,f3,p3,jb,xu,h3,Tb,m3],s=Dl(),i=sr(s,Tb);Cn(i,n,i),Cn(i,t.domain,i);const o=Dl(),l=Dl(),c=Dl();Cn(s,t.domain,o),Cn(s,t.scheme,l),Cn(s,t.slashscheme,c),Cn(o,n,i),Cn(o,t.domain,o);const u=sr(o,Qf);sr(i,Qf,u),sr(l,Qf,u),sr(c,Qf,u);const d=sr(i,bu);Cn(d,n,i),Cn(d,t.domain,i);const f=Dl();Cn(u,t.domain,f),Cn(f,t.domain,f);const p=sr(f,bu);Cn(p,t.domain,f);const m=Dl(mX);Cn(p,t.tld,m),Cn(p,t.utld,m),sr(u,o0,m);const h=sr(f,Fl);sr(h,Fl,h),Cn(h,t.domain,f),Cn(m,t.domain,f),sr(m,bu,p),sr(m,Fl,h);const _=sr(m,ep);Cn(_,t.numeric,mX);const g=sr(o,Fl),y=sr(o,bu);sr(g,Fl,g),Cn(g,t.domain,o),Cn(y,n,i),Cn(y,t.domain,o);const b=Dl(hw);Cn(y,t.tld,b),Cn(y,t.utld,b),Cn(b,t.domain,o),Cn(b,n,i),sr(b,bu,y),sr(b,Fl,g),sr(b,Qf,u);const x=sr(b,ep),w=Dl(hw);Cn(x,t.numeric,w);const C=Dl(hw),k=Dl();Cn(C,e,C),Cn(C,r,k),Cn(k,e,C),Cn(k,r,k),sr(b,xu,C),sr(w,xu,C);const A=sr(l,ep),P=sr(c,ep),T=sr(P,xu),j=sr(T,xu);Cn(l,t.domain,o),sr(l,bu,y),sr(l,Fl,g),Cn(c,t.domain,o),sr(c,bu,y),sr(c,Fl,g),Cn(A,t.domain,C),sr(A,xu,C),sr(A,jb,C),Cn(j,t.domain,C),Cn(j,e,C),sr(j,xu,C);const R=[[kb,Mb],[qC,VC],[HC,GC],[WC,YC],[KC,QC],[ZC,XC],[JC,e3],[t3,r3]];for(let D=0;D<R.length;D++){const[O,N]=R[D],F=sr(C,O);sr(k,O,F),sr(F,N,C);const U=Dl(hw);Cn(F,e,U);const z=Dl();Cn(F,r),Cn(U,e,U),Cn(U,r,z),Cn(z,e,U),Cn(z,r,z),sr(U,N,C),sr(z,N,C)}return sr(s,o0,b),sr(s,XN,IJe),{start:s,tokens:Qce}}function $Je(t,e,r){let n=r.length,s=0,i=[],o=[];for(;s<n;){let l=t,c=null,u=null,d=0,f=null,p=-1;for(;s<n&&!(c=l.go(r[s].t));)o.push(r[s++]);for(;s<n&&(u=c||l.go(r[s].t));)c=null,l=u,l.accepts()?(p=0,f=l):p>=0&&p++,s++,d++;if(p<0)s-=d,s<n&&(o.push(r[s]),s++);else{o.length>0&&(i.push(OI(hX,e,o)),o=[]),s-=p,d-=p;const m=f.t,h=r.slice(s-d,s);i.push(OI(m,e,h))}}return o.length>0&&i.push(OI(hX,e,o)),i}function OI(t,e,r){const n=r[0].s,s=r[r.length-1].e,i=e.slice(n,s);return new t(i,r)}const Oo={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function OJe(){Oo.scanner=EJe(Oo.customSchemes);for(let t=0;t<Oo.tokenQueue.length;t++)Oo.tokenQueue[t][1]({scanner:Oo.scanner});Oo.parser=DJe(Oo.scanner.tokens);for(let t=0;t<Oo.pluginQueue.length;t++)Oo.pluginQueue[t][1]({scanner:Oo.scanner,parser:Oo.parser});return Oo.initialized=!0,Oo}function Jce(t){return Oo.initialized||OJe(),$Je(Oo.parser.start,t,Zce(Oo.scanner.start,t))}Jce.scan=Zce;function LJe(t,e,r){const n=Jce(t),s=[];for(let i=0;i<n.length;i++){const o=n[i];if(o.t==="nl"&&e.get("nl2br")){const l=`__linkify-el-${r.elementId++}`;s.push(I.createElement("br",{key:l}))}else if(!o.isLink||!e.check(o))s.push(o.toString());else{let l=e.render(o);if(!("key"in l.props)){const c=`__linkify-el-${r.elementId++}`,u=Object.assign({key:c},l.props);l=I.cloneElement(l,u)}s.push(l)}}return s}function eue(t,e,r){if(I.Children.count(t.props.children)===0)return t;const n=[];I.Children.forEach(t.props.children,o=>{typeof o=="string"?n.push.apply(n,LJe(o,e,r)):I.isValidElement(o)?typeof o.type=="string"&&e.ignoreTags.indexOf(o.type.toUpperCase())>=0?n.push(o):n.push(eue(o,e,r)):n.push(o)});const s=`__linkify-el-${r.elementId++}`,i=Object.assign({key:s},t.props);return I.cloneElement(t,i,n)}const NJe=t=>{let e=0;const r=({tagName:c,attributes:u,content:d})=>(u.key=`__linkify-lnk-${e++}`,u.class&&(u.className=u.class,delete u.class),I.createElement(c,u,d)),n={key:"__linkify-wrapper"};for(const c in t)c!=="options"&&c!=="as"&&c!=="tagName"&&c!=="children"&&(n[c]=t[c]);const s=new n7(t.options,r),i=t.as||t.tagName||I.Fragment||"span",o=t.children,l=I.createElement(i,n,o);return eue(l,s,{elementId:0})};function g3(t){const e=he.c(10),{description:r,band:n}=t;let s;if(e[0]!==r){e:{if(!r){s=null;break e}const l=r.toString();if(l.includes(D6)){const[c,u]=l.toString().split(D6);let d;e[2]!==c||e[3]!==u?(d={defaultText:c,descriptionText:u},e[2]=c,e[3]=u,e[4]=d):d=e[4],s=d}else{let c;e[5]!==l?(c={defaultText:null,descriptionText:l},e[5]=l,e[6]=c):c=e[6],s=c}}e[0]=r,e[1]=s}else s=e[1];const i=s;let o;return e[7]!==n||e[8]!==i?(o=i?a.jsxs(te,{direction:"column",sx:{backgroundColor:"divider",px:2,py:1.5,flex:"0 0 auto","&:last-child":{borderRadius:"0 0 10px 10px"},...!n&&{p:0,my:.5,backgroundColor:"transparent"},color:"text.secondary"},spacing:0,nowrap:!0,children:[i.descriptionText&&a.jsxs(te,{direction:"row",nowrap:!0,align:"flex-start",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:"grey.600",pt:n?.2:.5},align:"center",justify:"center",children:a.jsx(ge.Info,{size:n?20:16})}),a.jsx(_e,{color:"inherit",type:"body2",sx:{"& a":{color:"primary.main"}},children:a.jsx(NJe,{options:{target:"blank"},children:i.descriptionText})})]}),i.defaultText&&a.jsxs(te,{direction:"row",nowrap:!0,align:"flex-start",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:"grey.600",pt:n?.2:.5},align:"center",justify:"center",children:a.jsx(ge.Catalog,{size:n?20:16})}),a.jsx(_e,{type:"body2",fontWeight:500,color:"inherit",children:i.defaultText})]})]}):null,e[7]=n,e[8]=i,e[9]=o):o=e[9],o}function tue(t){const e=he.c(26),{schema:r,objKeys:n,objData:s,objErrors:i,onClick:o,title:l,id:c,isErrored:u,registry:d}=t;let f;e[0]!==r?(f=Bce(r),e[0]=r,e[1]=f):f=e[1];const p=f,m=r.description;let h;if(e[2]!==n||e[3]!==r.properties){let C;e[5]!==r.properties?(C=k=>{const A=r.properties?.[k];return!A||A===!0||Ah(A)?null:k},e[5]=r.properties,e[6]=C):C=e[6],h=n.map(C).filter(UJe),e[2]=n,e[3]=r.properties,e[4]=h}else h=e[4];const _=h;let g;e:{if(!Uce(r)){let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=[],e[7]=k):k=e[7],g=k;break e}let C;e[8]!==s||e[9]!==_?(C=Object.keys(s).filter(k=>!_.includes(k)),e[8]=s,e[9]=_,e[10]=C):C=e[10],g=C}const y=g;let b;e[11]!==y||e[12]!==_?(b=[..._,...y],e[11]=y,e[12]=_,e[13]=b):b=e[13];const x=b;let w;return e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==p||e[18]!==u||e[19]!==s||e[20]!==i||e[21]!==o||e[22]!==d||e[23]!==r||e[24]!==l?(w=p?null:a.jsxs(pr,{title:a.jsx(X0,{title:l,isObject:!0,id:c,isErrored:u}),folder:!0,headerActionsComponent:a.jsx(Ze,{onClick:o,text:"edit",size:"small",startIcon:a.jsx(ge.Edit,{}),variant:"outlined"}),error:u,elevation:2,sx:{mb:3},children:[m?a.jsx(g3,{description:m,id:c,schema:r,registry:null,band:!0}):a.jsx(a.Fragment,{}),x.length>0?a.jsx(te,{spacing:0,children:x.map(C=>{const k=r.properties?.[C]||r.additionalProperties;let A;k&&k!==!0&&k?.title?A=k.title:A=C,A=Zl(A);let P=s?.[C];const T=k&&k!==!0&&k.type==="object",j=k&&k!==!0&&k.type==="array"&&!(i0(k)||zC(k)),R=k&&k!==!0&&QN(k),D=k&&k!==!0&&"discriminator"in k,O=!j&&!T&&!D,N=i?Object.keys(i).includes(C):!1;if(j)P=VN({items:P,schema:k,registry:d});else if(k&&k!==!0&&(i0(k)||zC(k)))P=P?.length?a.jsx(gt,{children:a.jsx(ks,{size:"small",items:P.map(FJe)})},C):a.jsx(_e,{type:"body2",children:"—"});else if(R){const F=k.format?.split(":"),U=F?.[1],z=F?.[2];P=a.jsx(ms,{label:`${U} script ${z?" (base64)":""}`,size:"small",color:"info"},C)}else P=a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:P!==void 0?`${P}`:"—"},C);return a.jsxs(te,{direction:"row",align:"center",justify:"space-between",sx:{flex:"1 1 auto",px:2,py:.5,borderBottom:"1px solid",borderColor:"divider","&:last-child":{borderBottom:0}},nowrap:!0,children:[a.jsxs(te,{direction:"row",align:"center",sx:{color:N?"error.main":"text.secondary"},nowrap:!0,children:[j&&a.jsx(ge.Stack,{size:24}),T&&a.jsx(ge.List,{size:24}),D&&a.jsx(ge.Directions,{size:20}),O&&a.jsx(te,{sx:{width:"24px",height:"24px",flex:"0 0 auto",pt:"1px"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Circle,{size:12})}),a.jsx(_e,{type:"body2",fontWeight:"600",sx:{wordBreak:"break-all"},color:N?"error.main":"text.primary",noWrap:!0,children:A}),j&&a.jsx(_e,{type:"caption",sx:{fontWeight:"600",px:.5,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",textAlign:"center"},children:P?.length})]}),O&&P]},C)})}):a.jsx(a.Fragment,{})]}),e[14]=m,e[15]=x,e[16]=c,e[17]=p,e[18]=u,e[19]=s,e[20]=i,e[21]=o,e[22]=d,e[23]=r,e[24]=l,e[25]=w):w=e[25],w}function FJe(t){return{id:t,label:t}}function UJe(t){return!!t}function BJe(t){const e=he.c(18),{schema:r,children:n,paths:s,index:i,registry:o}=t,l=n.props,c=zr(zJe);let u;e[0]!==c||e[1]!==s?(u=()=>{s&&c({id:s.selectableItemId})},e[0]=c,e[1]=s,e[2]=u):u=e[2];const d=u;let f;e:{if(!r.properties){let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[3]=x):x=e[3],f=x;break e}let b;e[4]!==r.properties?(b=Object.keys(r.properties),e[4]=r.properties,e[5]=b):b=e[5],f=b}const p=f;let m;e[6]!==l.errorSchema?(m=Object.keys(l.errorSchema||{}),e[6]=l.errorSchema,e[7]=m):m=e[7];const h=m.length>0,_=l.formData,g=`#${i} - ${l.schema.title||l.name}`;let y;return e[8]!==l.errorSchema||e[9]!==_||e[10]!==d||e[11]!==h||e[12]!==s.selectableItemId||e[13]!==p||e[14]!==o||e[15]!==r||e[16]!==g?(y=a.jsx(a.Fragment,{children:a.jsx(tue,{isErrored:h,id:s.selectableItemId,schema:r,objKeys:p,objData:_,objErrors:l.errorSchema,title:g,onClick:d,registry:o})}),e[8]=l.errorSchema,e[9]=_,e[10]=d,e[11]=h,e[12]=s.selectableItemId,e[13]=p,e[14]=o,e[15]=r,e[16]=g,e[17]=y):y=e[17],y}function zJe(t){return t.handleSelectNode}function qJe(t){const e=he.c(40),{children:r,disabled:n,hasToolbar:s,hasCopy:i,hasMoveDown:o,hasMoveUp:l,hasRemove:c,index:u,onCopyIndexClick:d,onDropIndexClick:f,onReorderClick:p,readonly:m,uiSchema:h,registry:_,schema:g,parentIdSchema:y}=t,b=zr(HJe),x=r.props,{CopyButton:w,MoveDownButton:C,MoveUpButton:k,RemoveButton:A}=_.templates.ButtonTemplates;let P;e[0]===Symbol.for("react.memo_cache_sentinel")?(P={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"600",minWidth:0},e[0]=P):P=e[0];const T=P;let j;e:{if(!b){j=void 0;break e}let W,K;if(e[1]!==u||e[2]!==y.$id||e[3]!==b){const Q=y.$id.split(".").slice(2),Z=[...b.split("."),...Q,u];W=Array.from(Z).map(VJe),K=Array.from(Z),e[1]=u,e[2]=y.$id,e[3]=b,e[4]=W,e[5]=K}else W=e[4],K=e[5];const q=K.join(".");let X;e[6]!==W||e[7]!==q?(X={selectableItemPath:W,selectableItemId:q},e[6]=W,e[7]=q,e[8]=X):X=e[8],j=X}const R=j;let D;e[9]!==x.errorSchema?(D=Object.keys(x.errorSchema||{}),e[9]=x.errorSchema,e[10]=D):D=e[10];const O=D.length>0,N=g.type==="object";if(!R)return null;let F;e[11]!==w||e[12]!==C||e[13]!==k||e[14]!==A||e[15]!==n||e[16]!==i||e[17]!==o||e[18]!==l||e[19]!==c||e[20]!==s||e[21]!==u||e[22]!==d||e[23]!==f||e[24]!==p||e[25]!==m||e[26]!==_||e[27]!==h?(F=s&&a.jsxs(te,{direction:"row",justify:"flex-end",children:[(l||o||i)&&a.jsxs(SJe,{children:[(l||o)&&a.jsx(k,{style:T,disabled:n||m||!l,onClick:p(u,u-1),uiSchema:h,registry:_}),(l||o)&&a.jsx(C,{style:T,disabled:n||m||!o,onClick:p(u,u+1),uiSchema:h,registry:_}),i&&a.jsx(w,{style:T,disabled:n||m,onClick:d(u),uiSchema:h,registry:_})]},u),c&&a.jsx(A,{style:T,disabled:n||m,onClick:f(u),uiSchema:h,registry:_})]}),e[11]=w,e[12]=C,e[13]=k,e[14]=A,e[15]=n,e[16]=i,e[17]=o,e[18]=l,e[19]=c,e[20]=s,e[21]=u,e[22]=d,e[23]=f,e[24]=p,e[25]=m,e[26]=_,e[27]=h,e[28]=F):F=e[28];let U;e[29]!==r||e[30]!==N||e[31]!==R||e[32]!==t?(U=N?a.jsx(BJe,{...t,paths:R}):r,e[29]=r,e[30]=N,e[31]=R,e[32]=t,e[33]=U):U=e[33];let z;e[34]!==U?(z=a.jsx(Kt,{children:U}),e[34]=U,e[35]=z):z=e[35];let H;return e[36]!==O||e[37]!==F||e[38]!==z?(H=a.jsx(pr,{error:O,elevation:3,footerActionsComponent:F,children:z}),e[36]=O,e[37]=F,e[38]=z,e[39]=H):H=e[39],H}function VJe(t){return t.toString()}function HJe(t){return t.selectedId}function rue(t){const e=he.c(50),{title:r,idSchema:n,children:s,isErrored:i,headerActionsComponent:o,isArray:l,description:c}=t,u=zr(GJe),d=n.$id===wo;let f;if(e[0]!==n.$id||e[1]!==u){f=n.$id===u;const w=u?.split(".")||[],C=w[w.length-1];w&&C&&n.$id===`${wo}.${C}`&&(f=!0),e[0]=n.$id,e[1]=u,e[2]=f}else f=e[2];let p;e[3]!==f||e[4]!==u?(p=w=>{if(!u||!f)return;const C=w.schemaFields[u];if(C&&C.type===ol.DISCRIMINATOR)return C},e[3]=f,e[4]=u,e[5]=p):p=e[5];const m=zr(p);if(d){let w;return e[6]!==s||e[7]!==n.$id?(w=a.jsx(gt,{"data-id":n.$id,children:s}),e[6]=s,e[7]=n.$id,e[8]=w):w=e[8],w}else if(f){let w;e[9]!==l||e[10]!==i?(w=l&&!i&&{borderBottom:"1px solid",borderColor:"divider"},e[9]=l,e[10]=i,e[11]=w):w=e[11];let C;e[12]!==i?(C=i&&{border:"2px solid",borderColor:"error.main"},e[12]=i,e[13]=C):C=e[13];let k;e[14]!==w||e[15]!==C?(k={flex:"1 1 auto",...w,...C},e[14]=w,e[15]=C,e[16]=k):k=e[16];let A;e[17]!==m||e[18]!==o||e[19]!==r?(A=!m&&a.jsxs(te,{justify:"space-between",sx:{borderBottom:"1px solid",borderBottomColor:"divider",px:2,py:1,flex:"0 0 auto"},direction:"row",align:"center",fullWidth:!0,children:[r,o]}),e[17]=m,e[18]=o,e[19]=r,e[20]=A):A=e[20];let P;e[21]!==c||e[22]!==n?(P=c&&a.jsx(g3,{description:c,band:!0,id:n.$id,schema:n,registry:null}),e[21]=c,e[22]=n,e[23]=P):P=e[23];let T;e[24]!==s||e[25]!==l?(T=l?s:a.jsx(Kt,{children:s}),e[24]=s,e[25]=l,e[26]=T):T=e[26];let j;return e[27]!==n.$id||e[28]!==k||e[29]!==A||e[30]!==P||e[31]!==T?(j=a.jsxs(te,{"data-id":n.$id,spacing:0,fullHeight:!0,sx:k,nowrap:!0,children:[A,P,T]}),e[27]=n.$id,e[28]=k,e[29]=A,e[30]=P,e[31]=T,e[32]=j):j=e[32],j}const h=d?0:2;let _;e[33]===Symbol.for("react.memo_cache_sentinel")?(_={mb:1.5,maxWidth:"100%"},e[33]=_):_=e[33];let g;e[34]!==c||e[35]!==n?(g=c&&a.jsx(g3,{description:c,band:!0,id:n.$id,schema:n,registry:null}),e[34]=c,e[35]=n,e[36]=g):g=e[36];let y;e[37]!==s||e[38]!==l?(y=l?a.jsx(a.Fragment,{children:s}):a.jsx(Kt,{children:s}),e[37]=s,e[38]=l,e[39]=y):y=e[39];let b;e[40]!==g||e[41]!==y?(b=a.jsxs(a.Fragment,{children:[g,y]}),e[40]=g,e[41]=y,e[42]=b):b=e[42];let x;return e[43]!==o||e[44]!==n.$id||e[45]!==i||e[46]!==h||e[47]!==b||e[48]!==r?(x=a.jsx(pr,{title:r,error:i,folder:!0,"data-id":n.$id,elevation:h,headerActionsComponent:o,sx:_,children:b}),e[43]=o,e[44]=n.$id,e[45]=i,e[46]=h,e[47]=b,e[48]=r,e[49]=x):x=e[49],x}function GJe(t){return t.selectedId}function WJe(t){const e=he.c(103),{canAdd:r,disabled:n,idSchema:s,uiSchema:i,items:o,onAddClick:l,readonly:c,registry:u,schema:d,title:f}=t,p=zr(JJe),m=zr(XJe);let h;e[0]!==o||e[1]!==u||e[2]!==d?(h=VN({items:o.map(ZJe),schema:d,registry:u}),e[0]=o,e[1]=u,e[2]=d,e[3]=h):h=e[3];const _=h,g=QJe;let y;e[4]!==_?(y=(we,Me,$e)=>{if(we!==null&&typeof we=="object"&&"__index__"in we){const Ve=$e==="UP"?Me-1:Me+1;return _[Ve].__index__}return $e==="UP"?Me-1:Me+1},e[4]=_,e[5]=y):y=e[5];const b=y;let x;e[6]!==i?(x=Dn(i),e[6]=i,e[7]=x):x=e[7];const w=x,{ButtonTemplates:C}=u.templates,{AddButton:k}=C;let A;e[8]!==o?(A=o.reduce(KJe,{}),e[8]=o,e[9]=A):A=e[9];const P=A;let T;e[10]!==P?(T=Object.keys(P),e[10]=P,e[11]=T):T=e[11];const j=T.length>0;let R;e[12]!==s.$id||e[13]!==p?(R=we=>{if(!p)return;const Me=s.$id.split(".").slice(2),Ve=[...p.split("."),...Me,we];return{selectableItemPath:Array.from(Ve).map(YJe),selectableItemId:Array.from(Ve).join(".")}},e[12]=s.$id,e[13]=p,e[14]=R):R=e[14];const D=R;let O;e[15]!==D||e[16]!==m?(O=(we,Me)=>{const $e=g(we,Me),Ve=D($e);if(Ve)return setTimeout(()=>{m({id:Ve.selectableItemId})},0)},e[15]=D,e[16]=m,e[17]=O):O=e[17];let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(ge.Edit,{}),e[18]=N):N=e[18];let F;e[19]!==O?(F={label:"Edit",onClick:O,icon:N},e[19]=O,e[20]=F):F=e[20];let U,z;e[21]!==o?(U=(we,Me)=>{const $e=g(we,Me),{onCopyIndexClick:Ve}=o[$e];return Ve($e)()},z=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne}=o[$e];return!!(Ve||Ne)},e[21]=o,e[22]=U,e[23]=z):(U=e[22],z=e[23]);let H;e[24]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Copy,{}),e[24]=H):H=e[24];let W;e[25]!==U||e[26]!==z?(W={label:"Copy",onClick:U,disabled:z,icon:H,wrapped:!0},e[25]=U,e[26]=z,e[27]=W):W=e[27];let K;e[28]!==b||e[29]!==o?(K=(we,Me)=>{const $e=g(we,Me),{onReorderClick:Ve}=o[$e];return Ve($e,b(we,Me,"UP"))()},e[28]=b,e[29]=o,e[30]=K):K=e[30];let q;e[31]!==o?(q=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne,hasMoveUp:Oe}=o[$e];return Ve||Ne||!Oe},e[31]=o,e[32]=q):q=e[32];let X;e[33]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.UpArrow,{}),e[33]=X):X=e[33];let Q;e[34]!==K||e[35]!==q?(Q={label:"Up",onClick:K,disabled:q,icon:X,wrapped:!0},e[34]=K,e[35]=q,e[36]=Q):Q=e[36];let Y;e[37]!==b||e[38]!==o?(Y=(we,Me)=>{const $e=g(we,Me),{onReorderClick:Ve}=o[$e];return Ve($e,b(we,Me,"DOWN"))()},e[37]=b,e[38]=o,e[39]=Y):Y=e[39];let Z;e[40]!==o?(Z=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne,hasMoveDown:Oe}=o[$e];return Ve||Ne||!Oe},e[40]=o,e[41]=Z):Z=e[41];let re;e[42]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(ge.DownArrow,{}),e[42]=re):re=e[42];let fe;e[43]!==Y||e[44]!==Z?(fe={label:"Down",onClick:Y,disabled:Z,icon:re,wrapped:!0},e[43]=Y,e[44]=Z,e[45]=fe):fe=e[45];let de,se;e[46]!==o?(de=(we,Me)=>{const $e=g(we,Me),{onDropIndexClick:Ve}=o[$e];return setTimeout(()=>{Ve($e)()},0)},se=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne}=o[$e];return!!(Ve||Ne)},e[46]=o,e[47]=de,e[48]=se):(de=e[47],se=e[48]);let le;e[49]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(ge.Trash,{}),e[49]=le):le=e[49];let ee;e[50]!==de||e[51]!==se?(ee={label:"Remove",onClick:de,disabled:se,icon:le,wrapped:!0},e[50]=de,e[51]=se,e[52]=ee):ee=e[52];let J;e[53]!==F||e[54]!==W||e[55]!==Q||e[56]!==fe||e[57]!==ee?(J=[F,W,Q,fe,ee],e[53]=F,e[54]=W,e[55]=Q,e[56]=fe,e[57]=ee,e[58]=J):J=e[58];const pe=J;let Se;e[59]===Symbol.for("react.memo_cache_sentinel")?(Se=[],e[59]=Se):Se=e[59];let ve=Se;if(d.items&&!Array.isArray(d.items)&&d.items!==!0){let we,Me;if(e[60]!==D||e[61]!==m||e[62]!==o||e[63]!==d.items){let $e={};const Ve=d.items.allOf||d.items.anyOf||d.items.oneOf;let Ne;e[66]!==d.items?(Ne=qu(d.items),e[66]=d.items,e[67]=Ne):Ne=e[67],we=Ne,d.items.properties?$e=d.items.properties:Ve&&Ve.forEach(Oe=>{Oe===!0||Oe===!1||Oe.properties&&Oe.type==="object"&&($e={...$e,...Oe.properties})}),Me=Object.keys($e||{}).filter(Oe=>{const ft=$e?.[Oe];return ft&&ft!==!0&&!Ve?!Ah(ft):!0}).map(Oe=>{const ft=Oe,Ct=$e?.[Oe],Et=Zl(Oe),at={key:ft,label:Et,numeric:!1,minWidth:"150"};return Ct&&typeof Ct=="object"&&(at.numeric=Ct.type==="number",at.label=Zl(Ct.title||Oe)),at.cellRender=($t,Ee)=>{const Be=D(Ee),qt=$t[ft],ar=Ct&&Ct!==!0&&i0(Ct),hr=Ct&&Ct!==!0&&zC(Ct),ir=qt&&Ct&&Ct!==!0&&QN(Ct);if(ar||hr)return Array.isArray(qt)?a.jsx("span",{children:qt.join(", ")||"—"}):a.jsx("span",{children:"-"});const cr=!!o[Ee].children.props.errorSchema?.[ft];if(typeof qt=="object"||Array.isArray(qt))return a.jsx(Ze,{variant:"text",size:"small",startIcon:Array.isArray(qt)?a.jsx(ge.Stack,{size:24}):a.jsx(ge.List,{size:24}),onClick:()=>{Be&&m({id:`${Be.selectableItemId}.${Oe}`})},text:Array.isArray(qt)?`${qt.length} item${qt.length!==1?"s":""}`:""});if(ir){const kr=Ct.format?.split(":"),Rr=kr?.[1],Ut=kr?.[2];return a.jsx(ms,{label:`${Rr} script ${Ut?" (base64)":"—"}`,size:"small",color:cr?"error":"info"})}return we===Oe?a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ge.Directions,{size:16}),a.jsx(_e,{type:"body2",color:cr?"error":"text.primary",children:`${qt??"—"}`})]}):a.jsx(_e,{type:"body2",color:cr?"error":"text.primary",children:`${qt??"—"}`})},at}),e[60]=D,e[61]=m,e[62]=o,e[63]=d.items,e[64]=we,e[65]=Me}else we=e[64],Me=e[65];if(ve=Me,we){let $e;e[68]!==ve||e[69]!==we?($e=ve.filter(Ct=>Ct.key===we),e[68]=ve,e[69]=we,e[70]=$e):$e=e[70];const Ve=$e;let Ne;e[71]!==ve||e[72]!==we?(Ne=ve.filter(Ct=>Ct.key!==we),e[71]=ve,e[72]=we,e[73]=Ne):Ne=e[73];const Oe=Ne;let ft;e[74]!==Ve||e[75]!==Oe?(ft=[...Ve,...Oe],e[74]=Ve,e[75]=Oe,e[76]=ft):ft=e[76],ve=ft}}const xe=ve,qe=!!xe.length,Le=w.title||f;let Te;e[77]!==s.$id||e[78]!==j||e[79]!==Le?(Te=a.jsx(X0,{id:s.$id,title:Le,isErrored:j,isArray:!0}),e[77]=s.$id,e[78]=j,e[79]=Le,e[80]=Te):Te=e[80];let je;e[81]!==k||e[82]!==r||e[83]!==n||e[84]!==l||e[85]!==c||e[86]!==u||e[87]!==i?(je=r&&a.jsx(k,{className:"array-item-add",onClick:l,disabled:n||c,uiSchema:i,registry:u}),e[81]=k,e[82]=r,e[83]=n,e[84]=l,e[85]=c,e[86]=u,e[87]=i,e[88]=je):je=e[88];const Ge=w.description||d.description;let nt;e[89]!==xe||e[90]!==s||e[91]!==o||e[92]!==_||e[93]!==pe?(nt=xe.length?a.jsx(Br,{columns:xe,rowsCount:_.length,rowsPerPage:_.length,orderBy:xe[0].key,page:0,hidePagination:!0,rowKey:xe[0].key,data:_,rowActions:pe,stickyRowActions:!0,hideRowsCount:!0}):a.jsx(te,{children:o.map(we=>{const{key:Me,...$e}=we;return a.jsx(qJe,{...$e,parentIdSchema:s},Me)})}),e[89]=xe,e[90]=s,e[91]=o,e[92]=_,e[93]=pe,e[94]=nt):nt=e[94];let Re;return e[95]!==s||e[96]!==j||e[97]!==qe||e[98]!==Te||e[99]!==je||e[100]!==Ge||e[101]!==nt?(Re=a.jsx(rue,{idSchema:s,isErrored:j,isArray:qe,title:Te,headerActionsComponent:je,description:Ge,children:nt}),e[95]=s,e[96]=j,e[97]=qe,e[98]=Te,e[99]=je,e[100]=Ge,e[101]=nt,e[102]=Re):Re=e[102],Re}function YJe(t){return t.toString()}function KJe(t,e){const r=e.children.props.errorSchema;return{...t,...r}}function QJe(t,e){return t!==null&&typeof t=="object"&&"__index__"in t?t.__index__:e}function ZJe(t){return t.children.props.formData}function XJe(t){return t.handleSelectNode}function JJe(t){return t.selectedId}function Fv(t){const e=he.c(29),{value:r,label:n,error:s,language:i,onChange:o,showError:l,sx:c,readonly:u}=t,d=l===void 0?!0:l,f=$Ee(),p=ci();let m;e[0]!==f?(m=()=>{f&&(f.languages.html.registerHTMLLanguageService("xml",{format:{wrapLineLength:0,preserveNewLines:!1,tabSize:2}},{documentFormattingEdits:!0}),f.languages.setLanguageConfiguration("xml",{indentationRules:{increaseIndentPattern:new RegExp(`<(?!\\?|[^>]*\\/>)([-_.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}"']*$`),decreaseIndentPattern:new RegExp("^\\s*(<\\/(?!html)[-_.A-Za-z0-9]+\\b[^>]*>|-->|})")}}))},e[0]=f,e[1]=m):m=e[1];let h;e[2]!==i||e[3]!==f?(h=[i,f],e[2]=i,e[3]=f,e[4]=h):h=e[4],I.useEffect(m,h);let _;e[5]!==s||e[6]!==n?(_=n&&a.jsx(_e,{color:s?"error":"text.secondary",sx:{flex:"0 0 auto"},children:n}),e[5]=s,e[6]=n,e[7]=_):_=e[7];const g=s?"error.main":"grey.400";let y;e[8]!==c||e[9]!==g?(y={p:1,flex:"1 1 auto",width:"100%",border:"1px solid",borderColor:g,borderRadius:1,...c},e[8]=c,e[9]=g,e[10]=y):y=e[10];const b=p.palette.mode==="light"?"light":"vs-dark";let x;e[11]!==u?(x={automaticLayout:!0,autoClosingBrackets:"always",autoClosingQuotes:"always",autoIndent:"full",formatOnPaste:!0,formatOnType:!0,detectIndentation:!0,readOnly:u},e[11]=u,e[12]=x):x=e[12];let w;e[13]!==i||e[14]!==o||e[15]!==b||e[16]!==x||e[17]!==r?(w=a.jsx(SL,{theme:b,defaultValue:r,language:i,onChange:o,options:x}),e[13]=i,e[14]=o,e[15]=b,e[16]=x,e[17]=r,e[18]=w):w=e[18];let C;e[19]!==y||e[20]!==w?(C=a.jsx(gt,{sx:y,children:w}),e[19]=y,e[20]=w,e[21]=C):C=e[21];let k;e[22]!==s||e[23]!==d?(k=d&&s&&a.jsx(_e,{color:"error",type:"caption",sx:{pl:1.5,flex:"0 0 auto"},children:s}),e[22]=s,e[23]=d,e[24]=k):k=e[24];let A;return e[25]!==C||e[26]!==k||e[27]!==_?(A=a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,spacing:.5,children:[_,C,k]}),e[25]=C,e[26]=k,e[27]=_,e[28]=A):A=e[28],A}function eet(t){const e=he.c(15),{schema:r,rawErrors:n,value:s,onChange:i,label:o,readonly:l}=t,{format:c}=r;let u;e[0]!==c?(u=c?.split(":"),e[0]=c,e[1]=u):u=e[1];const d=u,f=d?.[0]==="code",p=d?.[1],m=d?.[2]==="base64";let h;e:{if(m){const C=s||"";let k;e[2]!==C?(k=atob(C),e[2]=C,e[3]=k):k=e[3],h=k;break e}h=s}const _=h;let g;e[4]!==m||e[5]!==i?(g=C=>{if(C)return i(m?btoa(C):C)},e[4]=m,e[5]=i,e[6]=g):g=e[6];const y=g;if(!f||!p)return null;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b={height:"500px"},e[7]=b):b=e[7];const x=n?.[0];let w;return e[8]!==_||e[9]!==y||e[10]!==o||e[11]!==p||e[12]!==l||e[13]!==x?(w=a.jsx(gt,{sx:b,children:a.jsx(Fv,{value:_,language:p,error:x,showError:!1,onChange:y,label:o,readonly:l})}),e[8]=_,e[9]=y,e[10]=o,e[11]=p,e[12]=l,e[13]=x,e[14]=w):w=e[14],w}function tet(t){const e=he.c(4),{schema:r}=t;if(QN(r)){let i;return e[0]!==t?(i=a.jsx(eet,{...t}),e[0]=t,e[1]=i):i=e[1],i}let s;return e[2]!==t?(s=a.jsx(Mce,{...t}),e[2]=t,e[3]=s):s=e[3],s}function ret(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.Add,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Add new",disabled:n,startIcon:s,variant:"outlined"}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function net(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.DownArrow,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Down",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function set(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.UpArrow,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Up",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function iet(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.Trash,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Remove",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function oet(){return null}function aet(t){const e=he.c(28),r=ci(),n=mce(t.schema);let s;e[0]!==t.schema.type?(s=Array.isArray(t.schema.type)&&t.schema.type.find(cet),e[0]=t.schema.type,e[1]=s):s=e[1];const i=s,o=t.schema.anyOf&&t.description;if(n)return null;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={mb:3},e[2]=l):l=e[2];let c;e[3]!==t.schema.deprecated||e[4]!==r?(c=t.schema.deprecated&&{backgroundColor:br(r.palette.warning.main,.2),borderRadius:1,p:.5},e[3]=t.schema.deprecated,e[4]=r,e[5]=c):c=e[5];let u;e[6]!==c?(u={"& .form-group.field.field-string, & .form-group.field.field-boolean, & .form-group.field.field-integer":l,...c},e[6]=c,e[7]=u):u=e[7];let d;e[8]!==t.schema.deprecated?(d=t.schema.deprecated&&a.jsx(Lr,{title:"Deprecated",severity:"warning"}),e[8]=t.schema.deprecated,e[9]=d):d=e[9];let f;e[10]!==i?(f=i&&{padding:2,border:"1px solid",borderColor:"divider",borderRadius:1,mb:3},e[10]=i,e[11]=f):f=e[11];let p;e[12]!==f?(p={...f},e[12]=f,e[13]=p):p=e[13];let m;e[14]!==i||e[15]!==t?(m=i&&a.jsx(gt,{sx:{flex:"0 0 auto",ml:-.5},children:a.jsx(da,{label:"Set to Null",checked:t.formData===null,onChange:(b,x)=>{t.onChange(x?null:void 0)},size:"small"})}),e[14]=i,e[15]=t,e[16]=m):m=e[16];const h=o?void 0:t.description;let _;e[17]!==t||e[18]!==h?(_=a.jsx(Pce,{...t,description:h}),e[17]=t,e[18]=h,e[19]=_):_=e[19];let g;e[20]!==p||e[21]!==m||e[22]!==_?(g=a.jsxs(te,{fullWidth:!0,spacing:0,sx:p,children:[m,_]}),e[20]=p,e[21]=m,e[22]=_,e[23]=g):g=e[23];let y;return e[24]!==g||e[25]!==u||e[26]!==d?(y=a.jsxs(te,{sx:u,"data-id":"field",spacing:1.5,children:[d,g]}),e[24]=g,e[25]=u,e[26]=d,e[27]=y):y=e[27],y}function cet(t){return t!=="null"}function uet(t,e){const r=e.indexOf(t[t.length-1]);return t.length===1&&t[0]===wo?[...e.slice(r+1)]:r!==-1?[...t,...e.slice(r+1)]:[...t,...e]}function det(t){const e=he.c(38),{errorSchema:r,description:n,properties:s,disabled:i,readonly:o,uiSchema:l,idSchema:c,schema:u,formData:d,onAddClick:f,registry:p,title:m}=t,h=zr(met),_=zr(pet),{ButtonTemplates:g}=p.templates,{AddButton:y}=g,b=c.$id===wo;let x;e[0]!==h?(x=N=>{if(!h)return;const F=N.split("."),U=h.split("."),z=uet(U,F);return{selectableItemPath:z.map(fet),selectableItemId:z.join(".")}},e[0]=h,e[1]=x):x=e[1];const w=x;let C;e[2]!==w||e[3]!==_?(C=N=>{const F=w(N);F&&_({id:F.selectableItemId})},e[2]=w,e[3]=_,e[4]=C):C=e[4];const k=C;let A;e[5]!==r?(A=Object.keys(r||{}),e[5]=r,e[6]=A):A=e[6];const P=A.length>0;let T;e[7]!==c.$id||e[8]!==P||e[9]!==m?(T=a.jsx(X0,{id:c.$id,title:m,isObject:!0,isErrored:P}),e[7]=c.$id,e[8]=P,e[9]=m,e[10]=T):T=e[10];let j;e[11]!==y||e[12]!==i||e[13]!==d||e[14]!==f||e[15]!==o||e[16]!==p||e[17]!==u||e[18]!==l?(j=bN(u,l,d)&&a.jsx(y,{className:"object-property-expand",onClick:f(u),disabled:i||o,uiSchema:l,registry:p}),e[11]=y,e[12]=i,e[13]=d,e[14]=f,e[15]=o,e[16]=p,e[17]=u,e[18]=l,e[19]=j):j=e[19];let R;if(e[20]!==k||e[21]!==b||e[22]!==s||e[23]!==p){let N;e[25]!==k||e[26]!==b||e[27]!==p?(N=(F,U)=>{const z=F.content.props,H=z.schema,W=H.title||z.name,K=z.formData,q=Object.keys(H.properties||[]),X=H.type==="object"&&!b,Q=z.idSchema.$id,Y=z.errorSchema,Z=Object.keys(Y||{}).length>0;return Ah(H)?null:F.hidden?F.content:X?a.jsx(tue,{id:Q,schema:H,objKeys:q,objData:K,objErrors:Y,onClick:()=>k(Q),title:W,isErrored:Z,registry:p},`${Q}-${U}`):a.jsx(gt,{sx:{mb:1.5,"&:last-child":{mb:0}},"data-id":"object-box",children:F.content},`${Q}-${U}`)},e[25]=k,e[26]=b,e[27]=p,e[28]=N):N=e[28],R=s.map(N),e[20]=k,e[21]=b,e[22]=s,e[23]=p,e[24]=R}else R=e[24];let D;e[29]!==R?(D=a.jsx(a.Fragment,{children:R}),e[29]=R,e[30]=D):D=e[30];let O;return e[31]!==n||e[32]!==c||e[33]!==P||e[34]!==T||e[35]!==j||e[36]!==D?(O=a.jsx(rue,{idSchema:c,title:T,description:n,isErrored:P,headerActionsComponent:j,children:D}),e[31]=n,e[32]=c,e[33]=P,e[34]=T,e[35]=j,e[36]=D,e[37]=O):O=e[37],O}function fet(t){return t?.toString()}function pet(t){return t.handleSelectNode}function met(t){return t.selectedId}function het(t){const e=new Set;function r(n){if(typeof n!="object"||n===null)return;const s=n;"discriminator"in s&&typeof s.discriminator=="object"&&s.discriminator&&"propertyName"in s.discriminator&&typeof s.discriminator.propertyName=="string"&&s.discriminator.propertyName&&e.add(s.discriminator.propertyName);for(const i in s)r(s[i])}return r(t),e}function qs(t){const e=he.c(79);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P;e[0]!==t?({disabled:o,variant:P,label:f,error:l,fullWidth:c,name:h,value:A,size:w,required:x,onChange:_,children:n,multiple:m,open:g,id:d,labelId:p,autoWidth:r,helperText:u,renderValue:b,color:s,defaultValue:i,tooltip:k,sx:C,...y}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g,e[16]=y,e[17]=b,e[18]=x,e[19]=w,e[20]=C,e[21]=k,e[22]=A,e[23]=P):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15],y=e[16],b=e[17],x=e[18],w=e[19],C=e[20],k=e[21],A=e[22],P=e[23]);const T=iN();let j;e[24]!==w?(j=w==="small"&&{"&.MuiInputLabel-animated ":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}}},e[24]=w,e[25]=j):j=e[25];let R;e[26]!==j?(R={...j},e[26]=j,e[27]=R):R=e[27];let D;e[28]!==f||e[29]!==p||e[30]!==R?(D=a.jsx(GO,{id:p,sx:R,children:f}),e[28]=f,e[29]=p,e[30]=R,e[31]=D):D=e[31];const O=T&&T;let N;e[32]!==h?(N=h&&{"data-testid":`field-${h}`},e[32]=h,e[33]=N):N=e[33];let F;e[34]!==k?(F=k&&{endAdornment:a.jsx(gt,{sx:{position:"relative",right:12,display:"flex",alignItems:"center"},children:a.jsx(Mn,{title:k,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})})})},e[34]=k,e[35]=F):F=e[35];let U;e[36]!==w?(U=w==="small"&&{m:0,p:0},e[36]=w,e[37]=U):U=e[37];let z;e[38]!==k?(z=k&&{".MuiSelect-icon":{position:"relative",right:16}},e[38]=k,e[39]=z):z=e[39];let H;e[40]!==U||e[41]!==z?(H={...U,m:0,p:0,...z},e[40]=U,e[41]=z,e[42]=H):H=e[42];const W=`field-input-${h}`;let K;e[43]!==W?(K={"data-testid":W},e[43]=W,e[44]=K):K=e[44];let q;e[45]!==r||e[46]!==n||e[47]!==s||e[48]!==i||e[49]!==o||e[50]!==l||e[51]!==c||e[52]!==d||e[53]!==f||e[54]!==p||e[55]!==m||e[56]!==h||e[57]!==_||e[58]!==g||e[59]!==y||e[60]!==b||e[61]!==x||e[62]!==w||e[63]!==K||e[64]!==O||e[65]!==N||e[66]!==F||e[67]!==H||e[68]!==A||e[69]!==P?(q=a.jsx(yA,{...y,labelId:p,id:d,value:A,open:g,label:f,name:h,disabled:o,variant:P,error:l,fullWidth:c,required:x,onChange:_,multiple:m,autoWidth:r,renderValue:b,defaultValue:i,color:s,...O,...N,size:w,...F,sx:H,inputProps:K,children:n}),e[45]=r,e[46]=n,e[47]=s,e[48]=i,e[49]=o,e[50]=l,e[51]=c,e[52]=d,e[53]=f,e[54]=p,e[55]=m,e[56]=h,e[57]=_,e[58]=g,e[59]=y,e[60]=b,e[61]=x,e[62]=w,e[63]=K,e[64]=O,e[65]=N,e[66]=F,e[67]=H,e[68]=A,e[69]=P,e[70]=q):q=e[70];let X;e[71]!==l||e[72]!==u?(X=u&&a.jsx(gv,{error:l,children:u}),e[71]=l,e[72]=u,e[73]=X):X=e[73];let Q;return e[74]!==C||e[75]!==q||e[76]!==X||e[77]!==D?(Q=a.jsxs(hv,{fullWidth:!0,sx:C,children:[D,q,X]}),e[74]=C,e[75]=q,e[76]=X,e[77]=D,e[78]=Q):Q=e[78],Q}function get(t){const e=he.c(51),{id:r,options:n,label:s,hideLabel:i,required:o,disabled:l,schema:c,readonly:u,value:d,multiple:f,name:p,onChange:m,size:h,rawErrors:_,registry:g}=t;let y;e[0]!==_?(y=_===void 0?[]:_,e[0]=_,e[1]=y):y=e[1];const b=y,{enumOptions:x,enumDisabled:w,emptyValue:C}=n,{rootSchema:k}=g;let A,P,T,j;if(e[2]!==x||e[3]!==f||e[4]!==p||e[5]!==m||e[6]!==C||e[7]!==k||e[8]!==d){const K=het(k);let q;e[13]!==f?(q=f?[]:"",e[13]=f,e[14]=q):q=e[14],A=q;let X;e[15]!==x||e[16]!==m||e[17]!==C?(X=Y=>{const{target:Z}=Y,{value:re}=Z,fe=Gi(re,x,C);m(fe)},e[15]=x,e[16]=m,e[17]=C,e[18]=X):X=e[18],P=X;let Q;e[19]!==x||e[20]!==f||e[21]!==d?(Q=ZA(d,x,f),e[19]=x,e[20]=f,e[21]=d,e[22]=Q):Q=e[22],T=Q,j=K.has(p)&&x?.length===1&&d,e[2]=x,e[3]=f,e[4]=p,e[5]=m,e[6]=C,e[7]=k,e[8]=d,e[9]=A,e[10]=P,e[11]=T,e[12]=j}else A=e[9],P=e[10],T=e[11],j=e[12];if(j){let K;e[23]===Symbol.for("react.memo_cache_sentinel")?(K={alignSelf:"start"},e[23]=K):K=e[23];let q;return e[24]!==d?(q=a.jsx(ms,{sx:K,label:d}),e[24]=d,e[25]=q):q=e[25],q}let R;e[26]!==i||e[27]!==s?(R=Up(s||void 0,i,!1)||"",e[26]=i,e[27]=s,e[28]=R):R=e[28];const D=`${R}`,O=typeof T>"u"?A:T,N=l||u,F=b.length>0;let U;e[29]!==r?(U=Ua(r),e[29]=r,e[30]=U):U=e[30];let z;e[31]!==f||e[32]!==o||e[33]!==c?(z=!f&&c.default===void 0&&!o&&a.jsx(En,{value:"",children:"---"}),e[31]=f,e[32]=o,e[33]=c,e[34]=z):z=e[34];let H;e[35]!==w||e[36]!==x?(H=Array.isArray(x)&&x.map((K,q)=>{const{value:X,label:Q}=K,Y=Array.isArray(w)&&w.indexOf(X)!==-1;return a.jsx(En,{value:String(q),disabled:Y,children:Q},q)}),e[35]=w,e[36]=x,e[37]=H):H=e[37];let W;return e[38]!==P||e[39]!==r||e[40]!==f||e[41]!==o||e[42]!==h||e[43]!==z||e[44]!==H||e[45]!==D||e[46]!==O||e[47]!==N||e[48]!==F||e[49]!==U?(W=a.jsxs(qs,{id:r,name:r,label:D,value:O,required:o,disabled:N,multiple:f,error:F,onChange:P,size:h,fullWidth:!1,"aria-describedby":U,children:[z,H]}),e[38]=P,e[39]=r,e[40]=f,e[41]=o,e[42]=h,e[43]=z,e[44]=H,e[45]=D,e[46]=O,e[47]=N,e[48]=F,e[49]=U,e[50]=W):W=e[50],W}function _et(){const t=he.c(16),e=zr(wet),r=zr(xet),n=zr(bet),s=zr(yet),i=zr(vet);let o;t[0]!==s?(o=x=>{const w=RZe(x.formData);s(w)},t[0]=s,t[1]=o):o=t[1];const l=o;let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c={ObjectFieldTemplate:det,TitleFieldTemplate:X0,DescriptionFieldTemplate:g3,ArrayFieldTemplate:WJe,FieldTemplate:aet,BaseInputTemplate:tet,ButtonTemplates:{AddButton:ret,RemoveButton:iet,MoveDownButton:net,MoveUpButton:set,SubmitButton:oet}},t[2]=c):c=t[2];const u=c;let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d={ArrayField:tJe,AnyOfField:cX,OneOfField:cX},t[3]=d):d=t[3];const f=d;let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={select:get},t[4]=p):p=t[4];const m=p;if(!e||!n){let x;return t[5]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[5]=x):x=t[5],x}let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h={overflow:"hidden"},t[6]=h):h=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",px:2,py:1},children:a.jsx(vJe,{})}),t[7]=_):_=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"auto","& .form-group > .MuiFormControl-root":{mt:0},"& .form-group.field":{"&.field-array, &.field-object":{maxWidth:"100%"}}},t[8]=g):g=t[8];let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y={arrayMinItems:{populate:"requiredOnly"},emptyObjectFields:"populateRequiredDefaults"},t[9]=y):y=t[9];let b;return t[10]!==l||t[11]!==r||t[12]!==n||t[13]!==e||t[14]!==i?(b=a.jsxs(te,{fullHeight:!0,direction:"column",nowrap:!0,sx:h,spacing:0,children:[_,a.jsx(gt,{sx:g,children:a.jsx(EZe,{schema:e,validator:Nce,formData:r,onChange:l,liveValidate:!0,showErrorList:!1,noHtml5Validate:!0,idSeparator:".",templates:u,fields:f,widgets:m,transformErrors:jce,experimental_defaultFormStateBehavior:y,uiSchema:i},n)})]}),t[10]=l,t[11]=r,t[12]=n,t[13]=e,t[14]=i,t[15]=b):b=t[15],b}function vet(t){return t.selectedUiSchema||void 0}function yet(t){return t.handleDataChange}function bet(t){return t.selectedId}function xet(t){return t.selectedData}function wet(t){return t.selectedSchema}const zp=t=>{const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={flexGrow:1,overflowY:"auto",pt:1,px:2,pb:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(te,{direction:"column",nowrap:!0,sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s};function kh(t){const e=he.c(25);let r,n,s,i,o,l,c,u,d;e[0]!==t?({color:n,disabled:s,size:c,value:d,children:r,onClick:i,sx:u,single:l,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9]);let f;e[10]!==l||e[11]!==c?(f=c==="small"&&{height:40,...l&&{width:40}},e[10]=l,e[11]=c,e[12]=f):f=e[12];let p;e[13]!==u||e[14]!==f?(p={...u,...f},e[13]=u,e[14]=f,e[15]=p):p=e[15];let m;return e[16]!==r||e[17]!==n||e[18]!==s||e[19]!==i||e[20]!==o||e[21]!==c||e[22]!==p||e[23]!==d?(m=a.jsx(VFe,{color:n,disabled:s,size:c,value:d,onClick:i,...o,sx:p,children:r}),e[16]=r,e[17]=n,e[18]=s,e[19]=i,e[20]=o,e[21]=c,e[22]=p,e[23]=d,e[24]=m):m=e[24],m}function lk(t){const e=he.c(19);let r,n,s,i,o,l;e[0]!==t?({value:l,onChange:s,children:r,"data-testid":n,innerSelection:o,...i}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);const c=o===void 0?!0:o,[u,d]=I.useState(l);let f;e[7]!==c||e[8]!==s?(f=(g,y)=>{c&&d(y),s&&s(y)},e[7]=c,e[8]=s,e[9]=f):f=e[9];const p=f;let m,h;e[10]!==l?(m=()=>{d(l)},h=[l],e[10]=l,e[11]=m,e[12]=h):(m=e[11],h=e[12]),I.useEffect(m,h);let _;return e[13]!==r||e[14]!==n||e[15]!==p||e[16]!==i||e[17]!==u?(_=a.jsx(YFe,{value:u,onChange:p,"data-testid":n,...i,children:r}),e[13]=r,e[14]=n,e[15]=p,e[16]=i,e[17]=u,e[18]=_):_=e[18],_}function Cet(){const t=he.c(13),e=zr(ket),r=zr(Aet);let n;t[0]!==r?(n=f=>{r(f)},t[0]=r,t[1]=n):n=t[1];const s=e===nl.JSON_VIEW_MODE;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(ge.Tree,{size:24}),t[2]=i):i=t[2];let o;t[3]!==s?(o=a.jsx(kh,{value:nl.JSON_VIEW_MODE,disabled:s,children:i},nl.JSON_VIEW_MODE),t[3]=s,t[4]=o):o=t[4];const l=e===nl.EDITOR_VIEW_MODE;let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ge.Code,{size:24}),t[5]=c):c=t[5];let u;t[6]!==l?(u=a.jsx(kh,{value:nl.EDITOR_VIEW_MODE,disabled:l,children:c},nl.EDITOR_VIEW_MODE),t[6]=l,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==o||t[10]!==u||t[11]!==e?(d=a.jsxs(lk,{color:"primary",value:e,onChange:n,exclusive:!0,children:[o,u]}),t[8]=n,t[9]=o,t[10]=u,t[11]=e,t[12]=d):d=t[12],d}function Aet(t){return t.setViewMode}function ket(t){return t.viewMode}function Met(t){const e=he.c(36),{toolbarActions:r,actionError:n}=t,s=zr(Det),i=zr(Iet),o=zr(Ret),l=zr(Eet),c=zr(Tet),{drawerOpen:u,drawerClose:d,popoverOpen:f}=Jt(),p=zr(jet);let m;e[0]!==d||e[1]!==u||e[2]!==i||e[3]!==c||e[4]!==p?(m=()=>{u({width:600,title:`${i.length} Error${i.length!==1?"s":""}`,content:()=>a.jsx(zp,{children:i.map(T=>{const{id:j}=IZe(T),R=j?.split("."),D=R?.map((O,N)=>{const F=R?.slice(0,N+1).join(".");let U=!1;function z(W){const K=R?.slice(0,W+1).join("."),q=p[K];return q||(U=!0,z(W-1))}const H=z(N);return{text:O,trail:F,schemaField:H,parentSchemaField:U}})||[];return a.jsx(gt,{onClick:()=>{c({id:D[D.length-1].schemaField.id}),d()},sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",message:T.message,title:D.map(Pet).join(" / ")})},T.property)})})})},e[0]=d,e[1]=u,e[2]=i,e[3]=c,e[4]=p,e[5]=m):m=e[5];const h=m;let _;e[6]!==n||e[7]!==f?(_=T=>{f({anchorEl:T.currentTarget,anchorOrigin:{vertical:"top",horizontal:"right"},content:()=>a.jsx(a.Fragment,{children:n})})},e[6]=n,e[7]=f,e[8]=_):_=e[8];const g=_;let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={px:2,py:1,borderTop:"1px solid",borderColor:"divider"},e[9]=y):y=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Cet,{}),e[10]=b):b=e[10];let x;e[11]!==i.length||e[12]!==h||e[13]!==l?(x=l===nl.JSON_VIEW_MODE&&i.length>0&&a.jsx(gt,{onClick:h,sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",title:`${i.length} Error${i.length>1?"s":""}`})}),e[11]=i.length,e[12]=h,e[13]=l,e[14]=x):x=e[14];let w;e[15]!==o||e[16]!==l?(w=l===nl.EDITOR_VIEW_MODE&&o>0&&a.jsx(Lr,{severity:"error",title:`${o} Error${o>1?"s":""}`}),e[15]=o,e[16]=l,e[17]=w):w=e[17];let C;e[18]!==o||e[19]!==i.length||e[20]!==l?(C=(l===nl.EDITOR_VIEW_MODE&&o===0||l===nl.JSON_VIEW_MODE&&i.length===0)&&a.jsx(Lr,{severity:"success",title:"No Errors"}),e[18]=o,e[19]=i.length,e[20]=l,e[21]=C):C=e[21];let k;e[22]!==x||e[23]!==w||e[24]!==C?(k=a.jsxs(te,{direction:"row",children:[b,a.jsxs(te,{justify:"center",children:[x,w,C]})]}),e[22]=x,e[23]=w,e[24]=C,e[25]=k):k=e[25];let A;e[26]!==n||e[27]!==s||e[28]!==o||e[29]!==i.length||e[30]!==g||e[31]!==r?(A=r&&a.jsxs(te,{direction:"row",children:[r?.map(T=>{const{name:j,onClick:R,disabledOnErrors:D,variant:O,...N}=T;return a.jsx(Ze,{variant:O,text:j,onClick:()=>{R(s)},disabled:D?i.length>0||o>0:!1,...N},j)}),n&&a.jsx(gt,{onClick:g,sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",title:"Error"})})]}),e[26]=n,e[27]=s,e[28]=o,e[29]=i.length,e[30]=g,e[31]=r,e[32]=A):A=e[32];let P;return e[33]!==k||e[34]!==A?(P=a.jsx(gt,{sx:y,children:a.jsxs(te,{align:"center",justify:"space-between",fullWidth:!0,direction:"row",nowrap:!0,children:[k,A]})}),e[33]=k,e[34]=A,e[35]=P):P=e[35],P}function Pet(t){const{text:e,schemaField:r,parentSchemaField:n}=t;return Zl(n?e:r?.title||e)}function jet(t){return t.schemaFields}function Tet(t){return t.handleSelectNode}function Eet(t){return t.viewMode}function Ret(t){return t.editorErrors}function Iet(t){return t.errors}function Det(t){return t.data}function $et(t){const e=he.c(61),{title:r,type:n,id:s,itemsLength:i,deprecated:o}=t,l=ci(),c=zr(Uet),u=zr(Fet);let d;e[0]!==s?(d=Q=>Q.selectedId===s,e[0]=s,e[1]=d):d=e[1];const f=zr(d);let p;e[2]!==s?(p=Q=>Q.expandedIds.includes(s),e[2]=s,e[3]=p):p=e[3];const m=zr(p),h=s===wo,_=n===ol.DISCRIMINATOR,g=n===ol.LEAF,y=n===ol.ARRAY,b=n===ol.OBJECT,x=i===0;let w;e[4]!==s||e[5]!==h?(w=Q=>Q.expandedIds.includes(s.split(".").slice(0,-1).join("."))||h,e[4]=s,e[5]=h,e[6]=w):w=e[6];const C=zr(w);let k;e[7]!==s||e[8]!==n?(k=Q=>{const Y=Q.schemaFields[s];if(Y&&n!==Y.type&&Y.type===ol.DISCRIMINATOR)return Y},e[7]=s,e[8]=n,e[9]=k):k=e[9];const A=zr(k);let P;e[10]!==r?(P=Zl(r),e[10]=r,e[11]=P):P=e[11];const T=P;let j;e[12]!==s||e[13]!==h?(j=Q=>{const Y=Q.errors;if(h&&Y?.length)return!0;const Z=s.replace(wo,"");if(!Y||!Z)return!1;const re=Z.split(".");return Y.map(Net).map(Let).filter(Oet).some(fe=>re.every((de,se)=>fe[se]===de))},e[12]=s,e[13]=h,e[14]=j):j=e[14];const R=zr(j);if(!C||_||_)return null;let D;e[15]!==f||e[16]!==l?(D=f?Ic(l.palette.primary.main,.1):"transparent",e[15]=f,e[16]=l,e[17]=D):D=e[17];let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O={backgroundColor:"action.hover"},e[18]=O):O=e[18];let N;e[19]!==o?(N=o&&{"& p":{textDecoration:"line-through"}},e[19]=o,e[20]=N):N=e[20];let F;e[21]!==D||e[22]!==N?(F={backgroundColor:D,borderRadius:1,borderTopRightRadius:0,borderBottomRightRadius:0,mt:"1px",flex:"0 0 auto","&:hover":O,cursor:"pointer",...N},e[21]=D,e[22]=N,e[23]=F):F=e[23];let U;e[24]!==c||e[25]!==s||e[26]!==g?(U=()=>{let Q=s;g&&(Q=s.split(".").slice(0,-1).join(".")),c({id:Q})},e[24]=c,e[25]=s,e[26]=g,e[27]=U):U=e[27];let z;e[28]!==s||e[29]!==x||e[30]!==m||e[31]!==y||e[32]!==b||e[33]!==u?(z=(y||b)&&!x?a.jsx(te,{sx:{fontSize:"16px",p:1,cursor:"pointer"},onClick:Q=>{Q.stopPropagation(),u({id:s,expanded:!m})},children:m?a.jsx(ge.DownArrow,{}):a.jsx(ge.RightArrow,{})}):a.jsx(gt,{sx:{p:1},children:a.jsx(gt,{sx:{width:"16px",height:"16px"}})}),e[28]=s,e[29]=x,e[30]=m,e[31]=y,e[32]=b,e[33]=u,e[34]=z):z=e[34];let H;e[35]!==T||e[36]!==f||e[37]!==R||e[38]!==h||e[39]!==y||e[40]!==b||e[41]!==i?(H=(y||b)&&a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:R?"error.main":f?"primary.main":"text.primary",fontSize:"24px"},align:"center",justify:"center",nowrap:!0,children:h?a.jsx(ge.Tree,{}):y?a.jsx(ge.Stack,{}):a.jsx(ge.List,{})}),a.jsx(_e,{type:"body1",sx:{textTransform:"none",overflow:"hidden",whiteSpace:"nowrap"},color:R?"error":f?"primary.main":"text.primary",fontWeight:R||f?"600":"400",children:T}),y&&a.jsx(_e,{type:"caption",sx:{fontWeight:"600",px:.5,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",textAlign:"center"},children:i})]}),e[35]=T,e[36]=f,e[37]=R,e[38]=h,e[39]=y,e[40]=b,e[41]=i,e[42]=H):H=e[42];let W;e[43]!==A||e[44]!==T||e[45]!==f||e[46]!==R||e[47]!==g?(W=g&&a.jsxs(te,{direction:"row",nowrap:!0,align:"center",sx:{flex:"0 0 auto"},children:[a.jsx(te,{sx:{flex:"0 0 auto",color:R?"error.main":"text.secondary",fontSize:"12px",height:"24px",width:"24px"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Circle,{})}),a.jsx(_e,{type:"body1",sx:{flex:"0 0 auto"},color:R?"error":"text.primary",fontWeight:R||f?"600":"400",children:A?.discriminatorTitle?`${Zl(A.discriminatorTitle)}`:T})]}),e[43]=A,e[44]=T,e[45]=f,e[46]=R,e[47]=g,e[48]=W):W=e[48];let K;e[49]!==A?(K=!!A&&a.jsxs(te,{direction:"row",nowrap:!0,spacing:0,align:"center",sx:{ml:1,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",flex:"0 0 auto"},children:[a.jsx(te,{sx:{width:"24px",height:"24px",flex:"0 0 auto"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Directions,{size:14})}),a.jsx(_e,{type:"caption",sx:{textTransform:"none",fontWeight:"600",flex:"0 0 auto",pr:.8},children:Zl(A.title)})]}),e[49]=A,e[50]=K):K=e[50];let q;e[51]!==o?(q=o&&a.jsxs(te,{align:"center",direction:"row",sx:{ml:1,px:.5,borderRadius:.5,color:"warning.contrastText",backgroundColor:"warning.main"},nowrap:!0,children:[a.jsx(ge.StatusWarningSmall,{size:16}),a.jsx(_e,{type:"caption",color:"warning",children:"Deprecated"})]}),e[51]=o,e[52]=q):q=e[52];let X;return e[53]!==F||e[54]!==U||e[55]!==z||e[56]!==H||e[57]!==W||e[58]!==K||e[59]!==q?(X=a.jsxs(te,{align:"center",direction:"row",justify:"flex-start",spacing:0,sx:F,onClick:U,nowrap:!0,children:[z,H,W,K,q]}),e[53]=F,e[54]=U,e[55]=z,e[56]=H,e[57]=W,e[58]=K,e[59]=q,e[60]=X):X=e[60],X}function Oet(t){return!!t}function Let(t){return t?t.split("."):""}function Net(t){return t.property}function Fet(t){return t.setExpandedId}function Uet(t){return t.handleSelectNode}function Bet(t){const e=he.c(7),{children:r,type:n,id:s}=t;let i;e[0]!==s?(i=u=>u.expandedIds.includes(s),e[0]=s,e[1]=i):i=e[1];const o=zr(i);if(n===ol.DISCRIMINATOR){let u;return e[2]!==r?(u=a.jsx(a.Fragment,{children:r}),e[2]=r,e[3]=u):u=e[3],u}if(!o)return null;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={pl:1.5},e[4]=l):l=e[4];let c;return e[5]!==r?(c=a.jsx(gt,{sx:l,children:r}),e[5]=r,e[6]=c):c=e[6],c}function ck(t){const e=he.c(10),{title:r,type:n,id:s,schema:i,discriminatorTitle:o}=t,l=zr(zet);let c,u;e[0]!==o||e[1]!==s||e[2]!==i||e[3]!==l||e[4]!==r||e[5]!==n?(c=()=>{n!==ol.LEAF&&l({id:s,schema:i,title:r,type:n,discriminatorTitle:o})},u=[o,s,i,l,r,n],e[0]=o,e[1]=s,e[2]=i,e[3]=l,e[4]=r,e[5]=n,e[6]=c,e[7]=u):(c=e[6],u=e[7]),I.useEffect(c,u);let d;return e[8]!==t?(d=a.jsxs(a.Fragment,{children:[a.jsx($et,{...t}),a.jsx(Bet,{...t})]}),e[8]=t,e[9]=d):d=e[9],d}function zet(t){return t.setSchemaFields}function gX(t){const e=he.c(25),{registry:r,formData:n,options:s,baseType:i,schema:o,idSchema:l,name:c}=t,{schemaUtils:u}=r,d=l.$id===wo,f=t.registry.fields.SchemaField;let p;e[0]!==o?(p=qu(o),e[0]=o,e[1]=p):p=e[1];const m=p;let h;if(e[2]!==n||e[3]!==s||e[4]!==u){let j;e[6]!==n||e[7]!==u?(j=R=>u.retrieveSchema(R,n),e[6]=n,e[7]=u,e[8]=j):j=e[8],h=s.map(j),e[2]=n,e[3]=s,e[4]=u,e[5]=h}else h=e[5];const _=h,g=u.getClosestMatchingOption(n,s,0,m),y=g>=0&&_[g]||null;let b;e:{if(y){let j;e[9]!==i||e[10]!==y?(j=y.type?y:{...y,type:i},e[9]=i,e[10]=y,e[11]=j):j=e[11],b=j;break e}b=null}const x=b;let w;const{title:C}=_[g];C?w=C:w=`Option ${g+1}`;const k=w,A=!!o.deprecated;let P;e[12]!==f||e[13]!==k||e[14]!==l.$id||e[15]!==A||e[16]!==d||e[17]!==c||e[18]!==y||e[19]!==x||e[20]!==t||e[21]!==o?(P=y&&x&&a.jsx(a.Fragment,{children:a.jsx(ck,{id:l.$id,title:k||"root",schema:o,type:ol.DISCRIMINATOR,discriminatorTitle:o.title||c,isRoot:d,deprecated:A,children:a.jsx(f,{...t,schema:x})},l.$id)}),e[12]=f,e[13]=k,e[14]=l.$id,e[15]=A,e[16]=d,e[17]=c,e[18]=y,e[19]=x,e[20]=t,e[21]=o,e[22]=P):P=e[22];let T;return e[23]!==P?(T=a.jsx(a.Fragment,{children:P}),e[23]=P,e[24]=T):T=e[24],T}function qet(){const t=he.c(5),e=zr(Wet),r=zr(Get),n=zr(Het),s=zr(Vet);let i;return t[0]!==s||t[1]!==r||t[2]!==n||t[3]!==e?(i=[...e].length>1?a.jsxs(te,{sx:{flex:"0 0 auto",borderTop:"1px solid",borderColor:"divider",px:2,py:1.5},direction:"column",align:"flex-start",justify:"space-between",spacing:.3,children:[a.jsx(_e,{type:"caption",fontWeight:"600",children:"View Level"}),a.jsx(lk,{color:"primary",value:r,onChange:o=>{n(o)},exclusive:!0,sx:{height:"32px"},children:[...e].map(o=>a.jsx(kh,{value:o,disabled:r===o||s,children:o},o))})]}):null,t[0]=s,t[1]=r,t[2]=n,t[3]=e,t[4]=i):i=t[4],i}function Vet(t){return!!t.errors.length}function Het(t){return t.setSelectedViewLevel}function Get(t){return t.selectedViewLevel}function Wet(t){return t.viewLevels}function Yet(t){const e=he.c(16),{items:r,idSchema:n,title:s,schema:i,registry:o}=t,c=n.$id===wo;let u;e[0]!==r||e[1]!==o||e[2]!==i?(u=VN({items:r.map(Qet),schema:i,registry:o}),e[0]=r,e[1]=o,e[2]=i,e[3]=u):u=e[3];const d=u,f=!!i.deprecated,p=n.$id,m=n.$id,h=d.length;let _;e[4]!==r?(_=r.map(Ket),e[4]=r,e[5]=_):_=e[5];let g;e[6]!==_?(g=a.jsx(a.Fragment,{children:_}),e[6]=_,e[7]=g):g=e[7];let y;return e[8]!==n.$id||e[9]!==f||e[10]!==c||e[11]!==d.length||e[12]!==i||e[13]!==g||e[14]!==s?(y=a.jsx(ck,{id:p,title:s,type:ol.ARRAY,schema:i,isRoot:c,itemsLength:h,deprecated:f,children:g},m),e[8]=n.$id,e[9]=f,e[10]=c,e[11]=d.length,e[12]=i,e[13]=g,e[14]=s,e[15]=y):y=e[15],y}function Ket(t,e){return a.jsx(I.Fragment,{children:t.children},e)}function Qet(t){return t.children.props.formData}function Zet(t){const e=he.c(14),{children:r,id:n,schema:s,label:i,hidden:o}=t,l=mce(s);let c;e[0]!==s?(c=s.type!=="array"&&s.type!=="object"&&s.type!==void 0||!s.type&&s.enum||s.items&&s.type==="array"&&!Array.isArray(s.items)&&s.items!==!0&&s.items.enum||i0(s)||Fce(s),e[0]=s,e[1]=c):c=e[1];const u=c,d=!!s.deprecated;if(o||l||Bce(s)){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={display:"none"},e[2]=m):m=e[2];let h;return e[3]!==r?(h=a.jsx(gt,{sx:m,children:r}),e[3]=r,e[4]=h):h=e[4],h}let f;e[5]!==r||e[6]!==n||e[7]!==d||e[8]!==u||e[9]!==i||e[10]!==s?(f=u?a.jsx(ck,{id:n,type:ol.LEAF,schema:s,title:i,isRoot:!1,deprecated:d}):r,e[5]=r,e[6]=n,e[7]=d,e[8]=u,e[9]=i,e[10]=s,e[11]=f):f=e[11];let p;return e[12]!==f?(p=a.jsx(a.Fragment,{children:f}),e[12]=f,e[13]=p):p=e[13],p}function Xet(t){const e=he.c(16),{title:r,properties:n,idSchema:s,schema:i,formData:o}=t,l=s.$id,c=l===wo;let u;e[0]!==l?(u=g=>g.expandedIds.includes(l),e[0]=l,e[1]=u):u=e[1];const d=zr(u);let f;e[2]!==o||e[3]!==i||e[4]!==r?(f=zce(i,o)||r||"root",e[2]=o,e[3]=i,e[4]=r,e[5]=f):f=e[5];const p=f,m=!!i.deprecated;let h;e[6]!==d||e[7]!==n?(h=d?a.jsx(te,{spacing:0,direction:"column",justify:"flex-start",children:n.map(ett)}):n.map(Jet),e[6]=d,e[7]=n,e[8]=h):h=e[8];let _;return e[9]!==s.$id||e[10]!==m||e[11]!==c||e[12]!==p||e[13]!==i||e[14]!==h?(_=a.jsx(ck,{id:s.$id,title:p,isRoot:c,schema:i,type:ol.OBJECT,deprecated:m,children:h},s.$id),e[9]=s.$id,e[10]=m,e[11]=c,e[12]=p,e[13]=i,e[14]=h,e[15]=_):_=e[15],_}function Jet(t,e){const{content:r}=t;return a.jsx(I.Fragment,{children:r},e)}function ett(t,e){const{content:r}=t;return a.jsx(I.Fragment,{children:r},e)}function ttt(){return null}const rtt=I.memo(function(e){const r=he.c(18),{data:n}=e,s=zr(ott),i=zr(att),o=zr(ltt),l=zr(ctt),c=I.useRef(null),u=I.useRef(!1);let d;r[0]===Symbol.for("react.memo_cache_sentinel")?(d={AnyOfField:gX,OneOfField:gX},r[0]=d):d=r[0];const f=d;let p;r[1]===Symbol.for("react.memo_cache_sentinel")?(p={FieldTemplate:Zet,ObjectFieldTemplate:Xet,ArrayFieldTemplate:Yet,ButtonTemplates:{SubmitButton:ttt}},r[1]=p):p=r[1];const m=p;let h;r[2]!==l?(h=k=>{u.current||(l(k.formData),u.current=!0)},r[2]=l,r[3]=h):h=r[3];const _=h;let g,y;r[4]!==n||r[5]!==s||r[6]!==o?(g=()=>{if(c.current?.validate&&s){const{errors:k}=c.current.validate(n,s);o(k)}},y=[n,c,s,o],r[4]=n,r[5]=s,r[6]=o,r[7]=g,r[8]=y):(g=r[7],y=r[8]),I.useEffect(g,y);let b,x;if(r[9]!==o?(b=()=>()=>{o([])},x=[o],r[9]=o,r[10]=b,r[11]=x):(b=r[10],x=r[11]),I.useEffect(b,x),!s)return null;let w;r[12]===Symbol.for("react.memo_cache_sentinel")?(w={arrayMinItems:{populate:"requiredOnly"},emptyObjectFields:"populateRequiredDefaults"},r[12]=w):w=r[12];let C;return r[13]!==n||r[14]!==_||r[15]!==s||r[16]!==i?(C=a.jsx(kce,{schema:s,validator:Nce,formData:n,liveValidate:!1,noHtml5Validate:!1,noValidate:!0,showErrorList:"top",onChange:_,ref:c,idSeparator:".",fields:f,templates:m,transformErrors:jce,experimental_defaultFormStateBehavior:w,uiSchema:i}),r[13]=n,r[14]=_,r[15]=s,r[16]=i,r[17]=C):C=r[17],C});function ntt(){const t=he.c(12),e=zr(itt),r=I.useDeferredValue(e),n=zr(stt);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"relative"},t[0]=s):s=t[0];let i;t[1]!==n?(i=!n[wo]&&a.jsx(pr,{sx:{position:"absolute",left:0,bottom:0,top:0,right:0,zIndex:999,p:2},children:a.jsxs(te,{spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"})]}),a.jsx(Dt,{variant:"rounded",height:"24px"})]}),a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"})]})]})]})}),t[1]=n,t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o={flex:"1 1 auto",overflow:"auto",p:2,pr:0},t[3]=o):o=t[3];let l;t[4]!==r?(l=r&&a.jsx(rtt,{data:r}),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==l?(c=a.jsx(gt,{sx:o,children:l}),t[6]=l,t[7]=c):c=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(qet,{}),t[8]=u):u=t[8];let d;return t[9]!==i||t[10]!==c?(d=a.jsxs(te,{spacing:0,fullHeight:!0,fullWidth:!0,nowrap:!0,sx:s,children:[i,c,u]}),t[9]=i,t[10]=c,t[11]=d):d=t[11],d}function stt(t){return t.schemaFields}function itt(t){return t.data}function ott(t){return t.schema}function att(t){return t.uiSchema||void 0}function ltt(t){return t.setErrors}function ctt(t){return t.setData}function utt(t){const e=he.c(37),{$ref:r,schema:n,data:s,toolbarActions:i,uiSchema:o,actionError:l}=t,c=zr(htt),u=zr(mtt),d=zr(ptt),f=zr(ftt),p=zr(dtt),m=ci();let h;e[0]!==r||e[1]!==s||e[2]!==c||e[3]!==n||e[4]!==o?(h=()=>{c({$ref:r,schema:n,data:s,uiSchema:o||{}})},e[0]=r,e[1]=s,e[2]=c,e[3]=n,e[4]=o,e[5]=h):h=e[5];let _;e[6]!==r||e[7]!==s||e[8]!==c||e[9]!==u||e[10]!==n||e[11]!==o?(_=[r,s,c,u,n,o],e[6]=r,e[7]=s,e[8]=c,e[9]=u,e[10]=n,e[11]=o,e[12]=_):_=e[12],I.useEffect(h,_);let g,y;e[13]!==u?(g=()=>()=>{u()},y=[u],e[13]=u,e[14]=g,e[15]=y):(g=e[14],y=e[15]),I.useEffect(g,y);let b;e[16]!==m.palette.divider||e[17]!==m.palette.primary.main?(b={overflow:"hidden","--separator-border":m.palette.divider,"--focus-border":m.palette.primary.main},e[16]=m.palette.divider,e[17]=m.palette.primary.main,e[18]=b):b=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x={flex:"1 1 auto"},e[19]=x):x=e[19];let w;e[20]!==d||e[21]!==f||e[22]!==p?(w=p===nl.JSON_VIEW_MODE&&a.jsxs($R,{children:[a.jsx($R.Pane,{preferredSize:300,minSize:200,maxSize:400,children:a.jsx(ntt,{},f)}),a.jsx($R.Pane,{children:a.jsx(_et,{},`${d??"no-selection"}-${f}`)})]}),e[20]=d,e[21]=f,e[22]=p,e[23]=w):w=e[23];let C;e[24]!==p?(C=p===nl.EDITOR_VIEW_MODE&&a.jsx(AYe,{}),e[24]=p,e[25]=C):C=e[25];let k;e[26]!==w||e[27]!==C?(k=a.jsxs(gt,{sx:x,children:[w,C]}),e[26]=w,e[27]=C,e[28]=k):k=e[28];let A;e[29]===Symbol.for("react.memo_cache_sentinel")?(A={flex:"0 0 auto"},e[29]=A):A=e[29];let P;e[30]!==l||e[31]!==i?(P=a.jsx(gt,{sx:A,children:a.jsx(Met,{toolbarActions:i,actionError:l})}),e[30]=l,e[31]=i,e[32]=P):P=e[32];let T;return e[33]!==P||e[34]!==b||e[35]!==k?(T=a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,sx:b,spacing:0,children:[k,P]}),e[33]=P,e[34]=b,e[35]=k,e[36]=T):T=e[36],T}function dtt(t){return t.viewMode}function ftt(t){return t.selectedViewLevel}function ptt(t){return t.selectedId}function mtt(t){return t.reset}function htt(t){return t.initialize}const nue=I.memo(utt),gtt={[ue.AAA]:"#/components/schemas/AAAConfig",[ue.AMF]:"#/components/schemas/AMFConfig",[ue.AUSF]:"#/components/schemas/AusfConfig",[ue.BMSC]:"#/components/schemas/BmscConfig",[ue.CHF]:"#/components/schemas/CHFConfig",[ue.DRA]:"#/components/schemas/DRAConfiguration",[ue.DSM]:"#/components/schemas/DsmConfig",[ue.EIR]:"#/components/schemas/EirConfig",[ue.MME]:"#/components/schemas/MMEConfiguration",[ue.NCM]:"#/components/schemas/NCMConfig",[ue.NRF]:"#/components/schemas/NRFConfig",[ue.PCF]:"#/components/schemas/PCFConfig",[ue.SGWC]:"#/components/schemas/SGWConfiguration",[ue.SMF]:"#/components/schemas/SMFConfig",[ue.SMSF]:"#/components/schemas/SmsfConfig",[ue.UDM]:"#/components/schemas/UdmConfig",[ue.UDR]:"#/components/schemas/UdrConfig",[ue.UPF]:"#/components/schemas/UPFConfiguration"};function _tt(t){const e=he.c(56),{nf:r}=t,n=zn(),{submit:s,state:i,data:o}=gr(),{submit:l,state:c,data:u}=gr();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={key:"fetcher-factory-reset"},e[0]=d):d=e[0];const{submit:f,state:p,data:m}=gr(d);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h={key:"fetcher-reload"},e[1]=h):h=e[1];const{submit:_,state:g,data:y}=gr(h),b=ys(),x=gtt[r]||null;let w;e[2]!==s?(w=async ee=>{ee&&s(ee,{method:"POST",encType:"application/json",action:"apply"})},e[2]=s,e[3]=w):w=e[3];const C=w;let k;e[4]!==l?(k=async()=>{l(null,{method:"POST",encType:"application/json",action:"persist"})},e[4]=l,e[5]=k):k=e[5];const A=k;let P;e[6]!==f||e[7]!==b?(P=async()=>{f(null,{method:"POST",encType:"application/json",action:"factory-reset"}),b(".")},e[6]=f,e[7]=b,e[8]=P):P=e[8];const T=P;let j;e[9]!==_?(j=async()=>{_(null,{method:"POST",encType:"application/json",action:"reload"})},e[9]=_,e[10]=j):j=e[10];const R=j,D=g==="submitting"||g==="loading";let O;e[11]!==R||e[12]!==D?(O={name:"Reload",variant:"outlined",onClick:R,loading:D},e[11]=R,e[12]=D,e[13]=O):O=e[13];const N=p==="submitting"||p==="loading";let F;e[14]!==T||e[15]!==N?(F={name:"Factory Reset",variant:"outlined",onClick:T,loading:N},e[14]=T,e[15]=N,e[16]=F):F=e[16];const U=c==="submitting"||c==="loading";let z;e[17]!==A||e[18]!==U?(z={name:"Persist",variant:"outlined",onClick:A,loading:U},e[17]=A,e[18]=U,e[19]=z):z=e[19];const H=i==="submitting"||i==="loading";let W;e[20]!==C||e[21]!==H?(W={name:"Apply",onClick:C,loading:H,disabledOnErrors:!0},e[20]=C,e[21]=H,e[22]=W):W=e[22];let K;e[23]!==F||e[24]!==z||e[25]!==W||e[26]!==O?(K=[O,F,z,W],e[23]=F,e[24]=z,e[25]=W,e[26]=O,e[27]=K):K=e[27];const q=K;let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X={api_version:{"ui:widget":"hidden"},commit_timestamp:{"ui:widget":"hidden"}},e[28]=X):X=e[28];const Q=X;let Y;e:{if(xt(o)||xt(u)||xt(m)||xt(y)){let ee;e[29]===Symbol.for("react.memo_cache_sentinel")?(ee={maxWidth:"1000px"},e[29]=ee):ee=e[29];let J;e[30]!==o?(J=a.jsx(Xr,{data:o}),e[30]=o,e[31]=J):J=e[31];let me;e[32]!==u?(me=a.jsx(Xr,{data:u}),e[32]=u,e[33]=me):me=e[33];let pe;e[34]!==m?(pe=a.jsx(Xr,{data:m}),e[34]=m,e[35]=pe):pe=e[35];let Se;e[36]!==y?(Se=a.jsx(Xr,{data:y}),e[36]=y,e[37]=Se):Se=e[37];let ve;e[38]!==J||e[39]!==me||e[40]!==pe||e[41]!==Se?(ve=a.jsxs(te,{nowrap:!0,sx:ee,children:[J,me,pe,Se]}),e[38]=J,e[39]=me,e[40]=pe,e[41]=Se,e[42]=ve):ve=e[42],Y=ve;break e}Y=null}const Z=Y;if(!x)throw new Error(`NF "${r}" not supported`);let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),e[43]=re):re=e[43];let fe;e[44]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),e[44]=fe):fe=e[44];let de;e[45]!==Z||e[46]!==r||e[47]!==x||e[48]!==q?(de=ee=>{const[J,me]=ee;return a.jsx(te,{fullHeight:!0,nowrap:!0,spacing:0,children:a.jsx(nue,{$ref:x,data:me,schema:J,toolbarActions:q,uiSchema:Q,actionError:Z},r)})},e[45]=Z,e[46]=r,e[47]=x,e[48]=q,e[49]=de):de=e[49];let se;e[50]!==n.configuration||e[51]!==de?(se=a.jsx(Qt,{resolve:n.configuration,errorElement:fe,children:de}),e[50]=n.configuration,e[51]=de,e[52]=se):se=e[52];let le;return e[53]!==r||e[54]!==se?(le=a.jsx(I.Suspense,{fallback:re,children:se},r),e[53]=r,e[54]=se,e[55]=le):le=e[55],le}async function vtt(t){const e=$.apis.nfOAS.replace("{nf}",t);return De({options:{url:e,method:"GET"}})}async function ytt(t){const e=$.apis.nfConfig.replace("{nf}",t);return De({options:{url:e,method:"GET"}})}async function btt({nf:t,values:e}){const r=$.apis.nfConfig.replace("{nf}",t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function xtt({nf:t}){const e=$.apis.nfConfigPersist.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}async function Stt({nf:t}){const e=$.apis.nfConfigFactoryReset.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}async function wtt({nf:t}){const e=$.apis.nfRestart.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}function Ctt(t){return async({request:e})=>{const r=await e.json(),n=await btt({nf:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function Att(t){return async()=>{const e=await xtt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function ktt(t){return async()=>{const e=await Stt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function Mtt(t){return async()=>{const e=await wtt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}async function Ptt(t){return Foe({configuration:Promise.all([vtt(t),ytt(t)])})}function io(t){return{path:"configuration",handle:vr({to:`/${t}/configuration`,labelIntl:`route.${t}.configuration`}),loader:async()=>Ptt(t),shouldRevalidate:({actionResult:e})=>!xt(e),element:a.jsx(_tt,{nf:t},t),children:[{path:"apply",action:Ctt(t),loader:()=>rt("..")},{path:"persist",action:Att(t),loader:()=>rt("..")},{path:"factory-reset",action:ktt(t),loader:()=>rt("..")},{path:"reload",action:Mtt(t),loader:()=>rt("..")}]}}const jtt=Pr(),Ttt={path:"aaa",handle:vr({labelIntl:"route.aaa",icon:a.jsx(ge.AAA,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AAA)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.AAA),{path:"status",handle:vr({labelIntl:"route.aaa.status",to:$.urls.aaaStatus}),element:a.jsx(Ao,{tabs:[{url:"radius",label:jtt.formatMessage({id:"route.aaa.status.radius"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"radius",replace:!0})},{path:"radius",element:a.jsx(Fqe,{}),loader:Bqe,errorElement:a.jsx(en,{})}]}]}]};function s7(t){const e=he.c(17);let r,n,s,i;e[0]!==t?({children:r,listItemActions:s,divided:n,...i}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i):(r=e[1],n=e[2],s=e[3],i=e[4]);const{menuOpen:o,menuClose:l}=Jt();let c;e[5]!==s||e[6]!==l||e[7]!==o?(c=(p,m,h)=>{s&&o({anchorEl:p.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:s.map(_=>{const{label:g,onClick:y,disabled:b,icon:x}=_;return{label:g,value:g,disabled:typeof b=="function"?b(m):b,icon:x,onClick:()=>{l(),y(m,h)}}})})},e[5]=s,e[6]=l,e[7]=o,e[8]=c):c=e[8];const u=c;let d;e[9]!==r||e[10]!==n||e[11]!==u||e[12]!==s?(d=I.Children.map(r,(p,m)=>{const h={divided:!!(n&&m<I.Children.toArray(r).length-1),...s&&{handleOpenListItemActions:u}};return I.cloneElement(p,h)}),e[9]=r,e[10]=n,e[11]=u,e[12]=s,e[13]=d):d=e[13];let f;return e[14]!==i||e[15]!==d?(f=a.jsx(_h,{...i,children:d}),e[14]=i,e[15]=d,e[16]=f):f=e[16],f}function i7(t){const e=he.c(35),{index:r,item:n,listKey:s,selected:i,onClick:o,primaryText:l,secondaryText:c,divided:u,handleOpenListItemActions:d,endIcon:f,decorator:p,sx:m}=t;let h;e[0]!==o?(h=!o&&{":hover":{background:"transparent",cursor:"auto"}},e[0]=o,e[1]=h):h=e[1];let _;e[2]!==i?(_=i&&{backgroundColor:Ett},e[2]=i,e[3]=_):_=e[3];let g;e[4]!==m||e[5]!==h||e[6]!==_?(g={display:"flex",transition:"background-color 0.35s",...h,..._,...m},e[4]=m,e[5]=h,e[6]=_,e[7]=g):g=e[7];const y=!o;let b;e[8]===Symbol.for("react.memo_cache_sentinel")?(b={my:"2px"},e[8]=b):b=e[8];let x;e[9]!==i?(x=i&&{fontWeight:600},e[9]=i,e[10]=x):x=e[10];let w;e[11]!==x?(w={primary:{sx:{typography:"body1",...x}}},e[11]=x,e[12]=w):w=e[12];let C;e[13]!==l||e[14]!==c||e[15]!==w?(C=a.jsx(dA,{primary:l,secondary:c,sx:b,slotProps:w}),e[13]=l,e[14]=c,e[15]=w,e[16]=C):C=e[16];let k;e[17]!==d||e[18]!==r||e[19]!==n||e[20]!==s||e[21]!==t?(k=d&&a.jsx(gt,{sx:{width:{xs:"64px",md:"32px"}},children:a.jsx(Zr,{onClick:T=>{T.stopPropagation(),d(T,t,r||0)},"data-testid":`list-dropdown-tools-${s&&n?n[s]:r}`,size:"small",children:a.jsx(ge.More,{})})}),e[17]=d,e[18]=r,e[19]=n,e[20]=s,e[21]=t,e[22]=k):k=e[22];let A;e[23]!==f?(A=f&&a.jsx(gt,{sx:{width:{xs:"64px",md:"32px",display:"flex",alignItems:"center",justifyContent:"flex-end"}},children:f}),e[23]=f,e[24]=A):A=e[24];let P;return e[25]!==p||e[26]!==u||e[27]!==o||e[28]!==i||e[29]!==g||e[30]!==y||e[31]!==C||e[32]!==k||e[33]!==A?(P=a.jsxs(Vne,{selected:i,onClick:o,sx:g,divider:u,disableRipple:y,children:[p,C,k,A]}),e[25]=p,e[26]=u,e[27]=o,e[28]=i,e[29]=g,e[30]=y,e[31]=C,e[32]=k,e[33]=A,e[34]=P):P=e[34],P}function Ett(t){return`${t.palette.action.hover} !important`}const la=t=>{const e=he.c(39),{navs:r}=t,n=Lp("."),s=ys(),i=WL();let o;e[0]!==s?(o=N=>{s(N,{replace:!0})},e[0]=s,e[1]=o):o=e[1];const l=o;let c;if(e[2]!==r||e[3]!==n){let N;e[5]!==n?(N=F=>({...F,url:`${n.pathname}/${F.url}`}),e[5]=n,e[6]=N):N=e[6],c=r.map(N),e[2]=r,e[3]=n,e[4]=c}else c=e[4];const u=c;let d;e[7]!==i?(d=N=>!!i.find(F=>F.pathname===N),e[7]=i,e[8]=d):d=e[8];const f=d;let p;if(e[9]!==f||e[10]!==u){let N;e[12]!==f?(N=F=>f(F.url),e[12]=f,e[13]=N):N=e[13],p=u.find(N),e[9]=f,e[10]=u,e[11]=p}else p=e[11];const m=p;let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h={height:"100%",overflow:"hidden"},e[14]=h):h=e[14];let _;e[15]!==f||e[16]!==l||e[17]!==u?(_=u?.length>1&&a.jsx(Is,{size:{xs:3,lg:2},sx:{height:"100%",overflow:"hidden"},children:a.jsx(gt,{sx:{borderRight:"1px solid",borderColor:"divider",height:"100%",overflow:"auto"},children:a.jsx(s7,{disablePadding:!0,children:u.map(N=>{const{url:F,label:U,status:z}=N,H=z?a.jsx(gt,{sx:{pr:1},children:a.jsx(bi,{status:z})}):null;return a.jsx(i7,{primaryText:U,selected:f(F),onClick:()=>l(F),endIcon:a.jsx(ge.RightArrow,{}),decorator:a.jsx(gt,{sx:{pr:1},children:H})},F)})})})}),e[15]=f,e[16]=l,e[17]=u,e[18]=_):_=e[18];const g=r?.length>1?9:12,y=r?.length>1?10:12;let b;e[19]!==g||e[20]!==y?(b={xs:g,lg:y},e[19]=g,e[20]=y,e[21]=b):b=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x={height:"100%",overflow:"hidden"},e[22]=x):x=e[22];let w;e[23]===Symbol.for("react.memo_cache_sentinel")?(w={overflow:"hidden"},e[23]=w):w=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C={flex:"0 0 auto",px:2,py:.5,borderBottom:"1px solid",borderColor:"divider",height:"48px"},e[24]=C):C=e[24];const k=m?.title?m?.title:m?.label;let A;e[25]!==k?(A=a.jsx(_e,{type:"h6",fontWeight:600,children:k}),e[25]=k,e[26]=A):A=e[26];let P;e[27]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx("div",{id:sue}),e[27]=P):P=e[27];let T;e[28]!==A?(T=a.jsxs(te,{direction:"row",justify:"space-between",align:"center",fullWidth:!0,sx:C,children:[A,P]}),e[28]=A,e[29]=T):T=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(gt,{sx:{flex:"1 1 auto",maxHeight:"100%",overflow:"hidden"},children:a.jsx(Bd,{})}),e[30]=j):j=e[30];let R;e[31]!==T?(R=a.jsxs(te,{fullHeight:!0,sx:w,spacing:0,nowrap:!0,fullWidth:!0,children:[T,j]}),e[31]=T,e[32]=R):R=e[32];let D;e[33]!==R||e[34]!==b?(D=a.jsx(Is,{size:b,sx:x,children:R}),e[33]=R,e[34]=b,e[35]=D):D=e[35];let O;return e[36]!==D||e[37]!==_?(O=a.jsxs(al,{spacing:0,sx:h,children:[_,D]}),e[36]=D,e[37]=_,e[38]=O):O=e[38],O},sue="master-detail-header-actions";function o7(t){const e=he.c(2),{children:r}=t;let n;if(e[0]!==r){const s=document.querySelector(`#${sue}`);n=s&&aA.createPortal(a.jsx(a.Fragment,{children:r}),s),e[0]=r,e[1]=n}else n=e[1];return n}function Rtt({sst:t,sd:e}){if(!t&&!e)return"";let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}const Itt=t=>{const e=he.c(24),{row:r}=t,n=Ye();let s;e[0]!==r.supported_ta_list?(s=r.supported_ta_list?.reduce(Ltt,[])??[],e[0]=r.supported_ta_list,e[1]=s):s=e[1];const o=s;let l;e[2]!==n?(l=n.formatMessage({id:"ngap.status.connections.row_detail.tac"}),e[2]=n,e[3]=l):l=e[3];let c;e[4]!==l?(c={key:"tac",label:l},e[4]=l,e[5]=c):c=e[5];let u;e[6]!==n?(u=n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns"}),e[6]=n,e[7]=u):u=e[7];let d;e[8]!==n?(d=y=>{const{broadcast_plmns:b}=y;return b?a.jsx(te,{direction:"column",divided:!0,children:b.map(x=>{const{plmn:w,nssai:C}=x;return a.jsxs(te,{direction:"row",align:"baseline",spacing:4,children:[a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns.plmn"})}),a.jsx(_e,{type:"body2",children:w})]}),C?.length?a.jsxs(te,{direction:"row",align:"baseline",nowrap:!0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns.nssais"})}),a.jsx(ks,{size:"small",items:C?.map(Ntt)||[]})]}):a.jsx(a.Fragment,{})]},w)})}):a.jsx(a.Fragment,{})},e[8]=n,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f={key:"broadcast_plmns",label:u,cellRender:d},e[10]=u,e[11]=d,e[12]=f):f=e[12];let p;e[13]!==c||e[14]!==f?(p=[c,f],e[13]=c,e[14]=f,e[15]=p):p=e[15];const m=p;let h;e[16]!==n?(h=n.formatMessage({id:"ngap.status.connections.supported_ta_list"}),e[16]=n,e[17]=h):h=e[17];let _;e[18]!==m||e[19]!==o?(_=a.jsx(Br,{data:o,orderBy:"tac",page:0,rowsCount:o.length,rowsPerPage:o.length,rowKey:"tac",columns:m,hidePagination:!0,hideRowsCount:!0}),e[18]=m,e[19]=o,e[20]=_):_=e[20];let g;return e[21]!==h||e[22]!==_?(g=a.jsx(pr,{dense:!0,folder:!0,title:h,children:_}),e[21]=h,e[22]=_,e[23]=g):g=e[23],g};function Dtt(t){return Rtt(t)}function $tt(t){return!!t}function Ott(t,e){return[...t,{plmn:e.plmn,nssai:e.nssai?.map(Dtt).filter($tt)||[]}]}function Ltt(t,e){return[...t,{tac:e.tac,broadcast_plmns:e.broadcast_plmns.reduce(Ott,[])}]}function Ntt(t){return{label:`${t}`,id:`${t}`}}function Ftt(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eC={exports:{}},Utt=eC.exports,_X;function Btt(){return _X||(_X=1,(function(t,e){(function(r,n){t.exports=n()})(Utt,(function(){var r;function n(){return r.apply(null,arguments)}function s(L){r=L}function i(L){return L instanceof Array||Object.prototype.toString.call(L)==="[object Array]"}function o(L){return L!=null&&Object.prototype.toString.call(L)==="[object Object]"}function l(L,G){return Object.prototype.hasOwnProperty.call(L,G)}function c(L){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(L).length===0;var G;for(G in L)if(l(L,G))return!1;return!0}function u(L){return L===void 0}function d(L){return typeof L=="number"||Object.prototype.toString.call(L)==="[object Number]"}function f(L){return L instanceof Date||Object.prototype.toString.call(L)==="[object Date]"}function p(L,G){var ne=[],ae,ye=L.length;for(ae=0;ae<ye;++ae)ne.push(G(L[ae],ae));return ne}function m(L,G){for(var ne in G)l(G,ne)&&(L[ne]=G[ne]);return l(G,"toString")&&(L.toString=G.toString),l(G,"valueOf")&&(L.valueOf=G.valueOf),L}function h(L,G,ne,ae){return Ix(L,G,ne,ae,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(L){return L._pf==null&&(L._pf=_()),L._pf}var y;Array.prototype.some?y=Array.prototype.some:y=function(L){var G=Object(this),ne=G.length>>>0,ae;for(ae=0;ae<ne;ae++)if(ae in G&&L.call(this,G[ae],ae,G))return!0;return!1};function b(L){var G=null,ne=!1,ae=L._d&&!isNaN(L._d.getTime());if(ae&&(G=g(L),ne=y.call(G.parsedDateParts,function(ye){return ye!=null}),ae=G.overflow<0&&!G.empty&&!G.invalidEra&&!G.invalidMonth&&!G.invalidWeekday&&!G.weekdayMismatch&&!G.nullInput&&!G.invalidFormat&&!G.userInvalidated&&(!G.meridiem||G.meridiem&&ne),L._strict&&(ae=ae&&G.charsLeftOver===0&&G.unusedTokens.length===0&&G.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(L))L._isValid=ae;else return ae;return L._isValid}function x(L){var G=h(NaN);return L!=null?m(g(G),L):g(G).userInvalidated=!0,G}var w=n.momentProperties=[],C=!1;function k(L,G){var ne,ae,ye,Ie=w.length;if(u(G._isAMomentObject)||(L._isAMomentObject=G._isAMomentObject),u(G._i)||(L._i=G._i),u(G._f)||(L._f=G._f),u(G._l)||(L._l=G._l),u(G._strict)||(L._strict=G._strict),u(G._tzm)||(L._tzm=G._tzm),u(G._isUTC)||(L._isUTC=G._isUTC),u(G._offset)||(L._offset=G._offset),u(G._pf)||(L._pf=g(G)),u(G._locale)||(L._locale=G._locale),Ie>0)for(ne=0;ne<Ie;ne++)ae=w[ne],ye=G[ae],u(ye)||(L[ae]=ye);return L}function A(L){k(this,L),this._d=new Date(L._d!=null?L._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,n.updateOffset(this),C=!1)}function P(L){return L instanceof A||L!=null&&L._isAMomentObject!=null}function T(L){n.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+L)}function j(L,G){var ne=!0;return m(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,L),ne){var ae=[],ye,Ie,St,Sr=arguments.length;for(Ie=0;Ie<Sr;Ie++){if(ye="",typeof arguments[Ie]=="object"){ye+=`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:324:`+new Error().stack),ne=!1}return G.apply(this,arguments)},G)}var R={};function D(L,G){n.deprecationHandler!=null&&n.deprecationHandler(L,G),R[L]||(T(G),R[L]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function O(L){return typeof Function<"u"&&L instanceof Function||Object.prototype.toString.call(L)==="[object Function]"}function N(L){var G,ne;for(ne in L)l(L,ne)&&(G=L[ne],O(G)?this[ne]=G:this["_"+ne]=G);this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F(L,G){var ne=m({},L),ae;for(ae in G)l(G,ae)&&(o(L[ae])&&o(G[ae])?(ne[ae]={},m(ne[ae],L[ae]),m(ne[ae],G[ae])):G[ae]!=null?ne[ae]=G[ae]:delete ne[ae]);for(ae in L)l(L,ae)&&!l(G,ae)&&o(L[ae])&&(ne[ae]=m({},ne[ae]));return ne}function U(L){L!=null&&this.set(L)}var z;Object.keys?z=Object.keys:z=function(L){var G,ne=[];for(G in L)l(L,G)&&ne.push(G);return ne};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(L,G,ne){var ae=this._calendar[L]||this._calendar.sameElse;return O(ae)?ae.call(G,ne):ae}function K(L,G,ne){var ae=""+Math.abs(L),ye=G-ae.length,Ie=L>=0;return(Ie?ne?"+":"":"-")+Math.pow(10,Math.max(0,ye)).toString().substr(1)+ae}var q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,X=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Q={},Y={};function Z(L,G,ne,ae){var ye=ae;typeof ae=="string"&&(ye=function(){return this[ae]()}),L&&(Y[L]=ye),G&&(Y[G[0]]=function(){return K(ye.apply(this,arguments),G[1],G[2])}),ne&&(Y[ne]=function(){return this.localeData().ordinal(ye.apply(this,arguments),L)})}function re(L){return L.match(/\[[\s\S]/)?L.replace(/^\[|\]$/g,""):L.replace(/\\/g,"")}function fe(L){var G=L.match(q),ne,ae;for(ne=0,ae=G.length;ne<ae;ne++)Y[G[ne]]?G[ne]=Y[G[ne]]:G[ne]=re(G[ne]);return function(ye){var Ie="",St;for(St=0;St<ae;St++)Ie+=O(G[St])?G[St].call(ye,L):G[St];return Ie}}function de(L,G){return L.isValid()?(G=se(G,L.localeData()),Q[G]=Q[G]||fe(G),Q[G](L)):L.localeData().invalidDate()}function se(L,G){var ne=5;function ae(ye){return G.longDateFormat(ye)||ye}for(X.lastIndex=0;ne>=0&&X.test(L);)L=L.replace(X,ae),X.lastIndex=0,ne-=1;return L}var le={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ee(L){var G=this._longDateFormat[L],ne=this._longDateFormat[L.toUpperCase()];return G||!ne?G:(this._longDateFormat[L]=ne.match(q).map(function(ae){return ae==="MMMM"||ae==="MM"||ae==="DD"||ae==="dddd"?ae.slice(1):ae}).join(""),this._longDateFormat[L])}var J="Invalid date";function me(){return this._invalidDate}var pe="%d",Se=/\d{1,2}/;function ve(L){return this._ordinal.replace("%d",L)}var xe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qe(L,G,ne,ae){var ye=this._relativeTime[ne];return O(ye)?ye(L,G,ne,ae):ye.replace(/%d/i,L)}function Le(L,G){var ne=this._relativeTime[L>0?"future":"past"];return O(ne)?ne(G):ne.replace(/%s/i,G)}var Te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function je(L){return typeof L=="string"?Te[L]||Te[L.toLowerCase()]:void 0}function Ge(L){var G={},ne,ae;for(ae in L)l(L,ae)&&(ne=je(ae),ne&&(G[ne]=L[ae]));return G}var nt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Re(L){var G=[],ne;for(ne in L)l(L,ne)&&G.push({unit:ne,priority:nt[ne]});return G.sort(function(ae,ye){return ae.priority-ye.priority}),G}var we=/\d/,Me=/\d\d/,$e=/\d{3}/,Ve=/\d{4}/,Ne=/[+-]?\d{6}/,Oe=/\d\d?/,ft=/\d\d\d\d?/,Ct=/\d\d\d\d\d\d?/,Et=/\d{1,3}/,at=/\d{1,4}/,$t=/[+-]?\d{1,6}/,Ee=/\d+/,Be=/[+-]?\d+/,qt=/Z|[+-]\d\d:?\d\d/gi,ar=/Z|[+-]\d\d(?::?\d\d)?/gi,hr=/[+-]?\d+(\.\d{1,3})?/,ir=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cr=/^[1-9]\d?/,kr=/^([1-9]\d|\d)/,Rr;Rr={};function Ut(L,G,ne){Rr[L]=O(G)?G:function(ae,ye){return ae&&ne?ne:G}}function fn(L,G){return l(Rr,L)?Rr[L](G._strict,G._locale):new RegExp(Zt(L))}function Zt(L){return _r(L.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,ne,ae,ye,Ie){return ne||ae||ye||Ie}))}function _r(L){return L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function st(L){return L<0?Math.ceil(L)||0:Math.floor(L)}function wt(L){var G=+L,ne=0;return G!==0&&isFinite(G)&&(ne=st(G)),ne}var Pe={};function Ae(L,G){var ne,ae=G,ye;for(typeof L=="string"&&(L=[L]),d(G)&&(ae=function(Ie,St){St[G]=wt(Ie)}),ye=L.length,ne=0;ne<ye;ne++)Pe[L[ne]]=ae}function ze(L,G){Ae(L,function(ne,ae,ye,Ie){ye._w=ye._w||{},G(ne,ye._w,ye,Ie)})}function _t(L,G,ne){G!=null&&l(Pe,L)&&Pe[L](G,ne._a,ne,L)}function jt(L){return L%4===0&&L%100!==0||L%400===0}var Gt=0,Yt=1,Rt=2,At=3,zt=4,or=5,ot=6,ct=7,ke=8;Z("Y",0,0,function(){var L=this.year();return L<=9999?K(L,4):"+"+L}),Z(0,["YY",2],0,function(){return this.year()%100}),Z(0,["YYYY",4],0,"year"),Z(0,["YYYYY",5],0,"year"),Z(0,["YYYYYY",6,!0],0,"year"),Ut("Y",Be),Ut("YY",Oe,Me),Ut("YYYY",at,Ve),Ut("YYYYY",$t,Ne),Ut("YYYYYY",$t,Ne),Ae(["YYYYY","YYYYYY"],Gt),Ae("YYYY",function(L,G){G[Gt]=L.length===2?n.parseTwoDigitYear(L):wt(L)}),Ae("YY",function(L,G){G[Gt]=n.parseTwoDigitYear(L)}),Ae("Y",function(L,G){G[Gt]=parseInt(L,10)});function He(L){return jt(L)?366:365}n.parseTwoDigitYear=function(L){return wt(L)+(wt(L)>68?1900:2e3)};var ut=wr("FullYear",!0);function It(){return jt(this.year())}function wr(L,G){return function(ne){return ne!=null?(sn(this,L,ne),n.updateOffset(this,G),this):Cr(this,L)}}function Cr(L,G){if(!L.isValid())return NaN;var ne=L._d,ae=L._isUTC;switch(G){case"Milliseconds":return ae?ne.getUTCMilliseconds():ne.getMilliseconds();case"Seconds":return ae?ne.getUTCSeconds():ne.getSeconds();case"Minutes":return ae?ne.getUTCMinutes():ne.getMinutes();case"Hours":return ae?ne.getUTCHours():ne.getHours();case"Date":return ae?ne.getUTCDate():ne.getDate();case"Day":return ae?ne.getUTCDay():ne.getDay();case"Month":return ae?ne.getUTCMonth():ne.getMonth();case"FullYear":return ae?ne.getUTCFullYear():ne.getFullYear();default:return NaN}}function sn(L,G,ne){var ae,ye,Ie,St,Sr;if(!(!L.isValid()||isNaN(ne))){switch(ae=L._d,ye=L._isUTC,G){case"Milliseconds":return void(ye?ae.setUTCMilliseconds(ne):ae.setMilliseconds(ne));case"Seconds":return void(ye?ae.setUTCSeconds(ne):ae.setSeconds(ne));case"Minutes":return void(ye?ae.setUTCMinutes(ne):ae.setMinutes(ne));case"Hours":return void(ye?ae.setUTCHours(ne):ae.setHours(ne));case"Date":return void(ye?ae.setUTCDate(ne):ae.setDate(ne));case"FullYear":break;default:return}Ie=ne,St=L.month(),Sr=L.date(),Sr=Sr===29&&St===1&&!jt(Ie)?28:Sr,ye?ae.setUTCFullYear(Ie,St,Sr):ae.setFullYear(Ie,St,Sr)}}function pn(L){return L=je(L),O(this[L])?this[L]():this}function jn(L,G){if(typeof L=="object"){L=Ge(L);var ne=Re(L),ae,ye=ne.length;for(ae=0;ae<ye;ae++)this[ne[ae].unit](L[ne[ae].unit])}else if(L=je(L),O(this[L]))return this[L](G);return this}function es(L,G){return(L%G+G)%G}var Vr;Array.prototype.indexOf?Vr=Array.prototype.indexOf:Vr=function(L){var G;for(G=0;G<this.length;++G)if(this[G]===L)return G;return-1};function Fr(L,G){if(isNaN(L)||isNaN(G))return NaN;var ne=es(G,12);return L+=(G-ne)/12,ne===1?jt(L)?29:28:31-ne%7%2}Z("M",["MM",2],"Mo",function(){return this.month()+1}),Z("MMM",0,0,function(L){return this.localeData().monthsShort(this,L)}),Z("MMMM",0,0,function(L){return this.localeData().months(this,L)}),Ut("M",Oe,cr),Ut("MM",Oe,Me),Ut("MMM",function(L,G){return G.monthsShortRegex(L)}),Ut("MMMM",function(L,G){return G.monthsRegex(L)}),Ae(["M","MM"],function(L,G){G[Yt]=wt(L)-1}),Ae(["MMM","MMMM"],function(L,G,ne,ae){var ye=ne._locale.monthsParse(L,ae,ne._strict);ye!=null?G[Yt]=ye:g(ne).invalidMonth=L});var Qn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Er="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),on=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ei=ir,ha=ir;function Zn(L,G){return L?i(this._months)?this._months[L.month()]:this._months[(this._months.isFormat||on).test(G)?"format":"standalone"][L.month()]:i(this._months)?this._months:this._months.standalone}function Fi(L,G){return L?i(this._monthsShort)?this._monthsShort[L.month()]:this._monthsShort[on.test(G)?"format":"standalone"][L.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lo(L,G,ne){var ae,ye,Ie,St=L.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ae=0;ae<12;++ae)Ie=h([2e3,ae]),this._shortMonthsParse[ae]=this.monthsShort(Ie,"").toLocaleLowerCase(),this._longMonthsParse[ae]=this.months(Ie,"").toLocaleLowerCase();return ne?G==="MMM"?(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:null):(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:null):G==="MMM"?(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:null)):(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:null))}function Ki(L,G,ne){var ae,ye,Ie;if(this._monthsParseExact)return lo.call(this,L,G,ne);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ae=0;ae<12;ae++){if(ye=h([2e3,ae]),ne&&!this._longMonthsParse[ae]&&(this._longMonthsParse[ae]=new RegExp("^"+this.months(ye,"").replace(".","")+"$","i"),this._shortMonthsParse[ae]=new RegExp("^"+this.monthsShort(ye,"").replace(".","")+"$","i")),!ne&&!this._monthsParse[ae]&&(Ie="^"+this.months(ye,"")+"|^"+this.monthsShort(ye,""),this._monthsParse[ae]=new RegExp(Ie.replace(".",""),"i")),ne&&G==="MMMM"&&this._longMonthsParse[ae].test(L))return ae;if(ne&&G==="MMM"&&this._shortMonthsParse[ae].test(L))return ae;if(!ne&&this._monthsParse[ae].test(L))return ae}}function Yp(L,G){if(!L.isValid())return L;if(typeof G=="string"){if(/^\d+$/.test(G))G=wt(G);else if(G=L.localeData().monthsParse(G),!d(G))return L}var ne=G,ae=L.date();return ae=ae<29?ae:Math.min(ae,Fr(L.year(),ne)),L._isUTC?L._d.setUTCMonth(ne,ae):L._d.setMonth(ne,ae),L}function ns(L){return L!=null?(Yp(this,L),n.updateOffset(this,!0),this):Cr(this,"Month")}function Gn(){return Fr(this.year(),this.month())}function Wu(L){return this._monthsParseExact?(l(this,"_monthsRegex")||sf.call(this),L?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ei),this._monthsShortStrictRegex&&L?this._monthsShortStrictRegex:this._monthsShortRegex)}function zo(L){return this._monthsParseExact?(l(this,"_monthsRegex")||sf.call(this),L?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ha),this._monthsStrictRegex&&L?this._monthsStrictRegex:this._monthsRegex)}function sf(){function L(Qr,In){return In.length-Qr.length}var G=[],ne=[],ae=[],ye,Ie,St,Sr;for(ye=0;ye<12;ye++)Ie=h([2e3,ye]),St=_r(this.monthsShort(Ie,"")),Sr=_r(this.months(Ie,"")),G.push(St),ne.push(Sr),ae.push(Sr),ae.push(St);G.sort(L),ne.sort(L),ae.sort(L),this._monthsRegex=new RegExp("^("+ae.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+G.join("|")+")","i")}function $s(L,G,ne,ae,ye,Ie,St){var Sr;return L<100&&L>=0?(Sr=new Date(L+400,G,ne,ae,ye,Ie,St),isFinite(Sr.getFullYear())&&Sr.setFullYear(L)):Sr=new Date(L,G,ne,ae,ye,Ie,St),Sr}function Ui(L){var G,ne;return L<100&&L>=0?(ne=Array.prototype.slice.call(arguments),ne[0]=L+400,G=new Date(Date.UTC.apply(null,ne)),isFinite(G.getUTCFullYear())&&G.setUTCFullYear(L)):G=new Date(Date.UTC.apply(null,arguments)),G}function Po(L,G,ne){var ae=7+G-ne,ye=(7+Ui(L,0,ae).getUTCDay()-G)%7;return-ye+ae-1}function yl(L,G,ne,ae,ye){var Ie=(7+ne-ae)%7,St=Po(L,ae,ye),Sr=1+7*(G-1)+Ie+St,Qr,In;return Sr<=0?(Qr=L-1,In=He(Qr)+Sr):Sr>He(L)?(Qr=L+1,In=Sr-He(L)):(Qr=L,In=Sr),{year:Qr,dayOfYear:In}}function co(L,G,ne){var ae=Po(L.year(),G,ne),ye=Math.floor((L.dayOfYear()-ae-1)/7)+1,Ie,St;return ye<1?(St=L.year()-1,Ie=ye+jo(St,G,ne)):ye>jo(L.year(),G,ne)?(Ie=ye-jo(L.year(),G,ne),St=L.year()+1):(St=L.year(),Ie=ye),{week:Ie,year:St}}function jo(L,G,ne){var ae=Po(L,G,ne),ye=Po(L+1,G,ne);return(He(L)-ae+ye)/7}Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),Ut("w",Oe,cr),Ut("ww",Oe,Me),Ut("W",Oe,cr),Ut("WW",Oe,Me),ze(["w","ww","W","WW"],function(L,G,ne,ae){G[ae.substr(0,1)]=wt(L)});function Yu(L){return co(L,this._week.dow,this._week.doy).week}var To={dow:0,doy:6};function Wh(){return this._week.dow}function Ku(){return this._week.doy}function of(L){var G=this.localeData().week(this);return L==null?G:this.add((L-G)*7,"d")}function Yc(L){var G=co(this,1,4).week;return L==null?G:this.add((L-G)*7,"d")}Z("d",0,"do","day"),Z("dd",0,0,function(L){return this.localeData().weekdaysMin(this,L)}),Z("ddd",0,0,function(L){return this.localeData().weekdaysShort(this,L)}),Z("dddd",0,0,function(L){return this.localeData().weekdays(this,L)}),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),Ut("d",Oe),Ut("e",Oe),Ut("E",Oe),Ut("dd",function(L,G){return G.weekdaysMinRegex(L)}),Ut("ddd",function(L,G){return G.weekdaysShortRegex(L)}),Ut("dddd",function(L,G){return G.weekdaysRegex(L)}),ze(["dd","ddd","dddd"],function(L,G,ne,ae){var ye=ne._locale.weekdaysParse(L,ae,ne._strict);ye!=null?G.d=ye:g(ne).invalidWeekday=L}),ze(["d","e","E"],function(L,G,ne,ae){G[ae]=wt(L)});function af(L,G){return typeof L!="string"?L:isNaN(L)?(L=G.weekdaysParse(L),typeof L=="number"?L:null):parseInt(L,10)}function Yh(L,G){return typeof L=="string"?G.weekdaysParse(L)%7||7:isNaN(L)?null:L}function Va(L,G){return L.slice(G,7).concat(L.slice(0,G))}var Eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lf=ir,cf=ir,xx=ir;function Yv(L,G){var ne=i(this._weekdays)?this._weekdays:this._weekdays[L&&L!==!0&&this._weekdays.isFormat.test(G)?"format":"standalone"];return L===!0?Va(ne,this._week.dow):L?ne[L.day()]:ne}function Sx(L){return L===!0?Va(this._weekdaysShort,this._week.dow):L?this._weekdaysShort[L.day()]:this._weekdaysShort}function Kp(L){return L===!0?Va(this._weekdaysMin,this._week.dow):L?this._weekdaysMin[L.day()]:this._weekdaysMin}function ac(L,G,ne){var ae,ye,Ie,St=L.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ae=0;ae<7;++ae)Ie=h([2e3,1]).day(ae),this._minWeekdaysParse[ae]=this.weekdaysMin(Ie,"").toLocaleLowerCase(),this._shortWeekdaysParse[ae]=this.weekdaysShort(Ie,"").toLocaleLowerCase(),this._weekdaysParse[ae]=this.weekdays(Ie,"").toLocaleLowerCase();return ne?G==="dddd"?(ye=Vr.call(this._weekdaysParse,St),ye!==-1?ye:null):G==="ddd"?(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1?ye:null):(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null):G==="dddd"?(ye=Vr.call(this._weekdaysParse,St),ye!==-1||(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null)):G==="ddd"?(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1||(ye=Vr.call(this._weekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null)):(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1||(ye=Vr.call(this._weekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1?ye:null))}function Kv(L,G,ne){var ae,ye,Ie;if(this._weekdaysParseExact)return ac.call(this,L,G,ne);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ae=0;ae<7;ae++){if(ye=h([2e3,1]).day(ae),ne&&!this._fullWeekdaysParse[ae]&&(this._fullWeekdaysParse[ae]=new RegExp("^"+this.weekdays(ye,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ae]=new RegExp("^"+this.weekdaysShort(ye,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ae]=new RegExp("^"+this.weekdaysMin(ye,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ae]||(Ie="^"+this.weekdays(ye,"")+"|^"+this.weekdaysShort(ye,"")+"|^"+this.weekdaysMin(ye,""),this._weekdaysParse[ae]=new RegExp(Ie.replace(".",""),"i")),ne&&G==="dddd"&&this._fullWeekdaysParse[ae].test(L))return ae;if(ne&&G==="ddd"&&this._shortWeekdaysParse[ae].test(L))return ae;if(ne&&G==="dd"&&this._minWeekdaysParse[ae].test(L))return ae;if(!ne&&this._weekdaysParse[ae].test(L))return ae}}function Qp(L){if(!this.isValid())return L!=null?this:NaN;var G=Cr(this,"Day");return L!=null?(L=af(L,this.localeData()),this.add(L-G,"d")):G}function Kc(L){if(!this.isValid())return L!=null?this:NaN;var G=(this.day()+7-this.localeData()._week.dow)%7;return L==null?G:this.add(L-G,"d")}function Qv(L){if(!this.isValid())return L!=null?this:NaN;if(L!=null){var G=Yh(L,this.localeData());return this.day(this.day()%7?G:G-7)}else return this.day()||7}function Qh(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=lf),this._weekdaysStrictRegex&&L?this._weekdaysStrictRegex:this._weekdaysRegex)}function wx(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cf),this._weekdaysShortStrictRegex&&L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zh(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xx),this._weekdaysMinStrictRegex&&L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function uf(){function L(mo,Wa){return Wa.length-mo.length}var G=[],ne=[],ae=[],ye=[],Ie,St,Sr,Qr,In;for(Ie=0;Ie<7;Ie++)St=h([2e3,1]).day(Ie),Sr=_r(this.weekdaysMin(St,"")),Qr=_r(this.weekdaysShort(St,"")),In=_r(this.weekdays(St,"")),G.push(Sr),ne.push(Qr),ae.push(In),ye.push(Sr),ye.push(Qr),ye.push(In);G.sort(L),ne.sort(L),ae.sort(L),ye.sort(L),this._weekdaysRegex=new RegExp("^("+ye.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+G.join("|")+")","i")}function Xh(){return this.hours()%12||12}function Ro(){return this.hours()||24}Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,Xh),Z("k",["kk",2],0,Ro),Z("hmm",0,0,function(){return""+Xh.apply(this)+K(this.minutes(),2)}),Z("hmmss",0,0,function(){return""+Xh.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)}),Z("Hmm",0,0,function(){return""+this.hours()+K(this.minutes(),2)}),Z("Hmmss",0,0,function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)});function Qc(L,G){Z(L,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),G)})}Qc("a",!0),Qc("A",!1);function Zp(L,G){return G._meridiemParse}Ut("a",Zp),Ut("A",Zp),Ut("H",Oe,kr),Ut("h",Oe,cr),Ut("k",Oe,cr),Ut("HH",Oe,Me),Ut("hh",Oe,Me),Ut("kk",Oe,Me),Ut("hmm",ft),Ut("hmmss",Ct),Ut("Hmm",ft),Ut("Hmmss",Ct),Ae(["H","HH"],At),Ae(["k","kk"],function(L,G,ne){var ae=wt(L);G[At]=ae===24?0:ae}),Ae(["a","A"],function(L,G,ne){ne._isPm=ne._locale.isPM(L),ne._meridiem=L}),Ae(["h","hh"],function(L,G,ne){G[At]=wt(L),g(ne).bigHour=!0}),Ae("hmm",function(L,G,ne){var ae=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae)),g(ne).bigHour=!0}),Ae("hmmss",function(L,G,ne){var ae=L.length-4,ye=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae,2)),G[or]=wt(L.substr(ye)),g(ne).bigHour=!0}),Ae("Hmm",function(L,G,ne){var ae=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae))}),Ae("Hmmss",function(L,G,ne){var ae=L.length-4,ye=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae,2)),G[or]=wt(L.substr(ye))});function Xp(L){return(L+"").toLowerCase().charAt(0)==="p"}var Yk=/[ap]\.?m?\.?/i,Zv=wr("Hours",!0);function Xv(L,G,ne){return L>11?ne?"pm":"PM":ne?"am":"AM"}var df={calendar:H,longDateFormat:le,invalidDate:J,ordinal:pe,dayOfMonthOrdinalParse:Se,relativeTime:xe,months:Qn,monthsShort:Er,week:To,weekdays:Eo,weekdaysMin:Wv,weekdaysShort:Kh,meridiemParse:Yk},bs={},ff={},Jp;function Kk(L,G){var ne,ae=Math.min(L.length,G.length);for(ne=0;ne<ae;ne+=1)if(L[ne]!==G[ne])return ne;return ae}function Cx(L){return L&&L.toLowerCase().replace("_","-")}function Jv(L){for(var G=0,ne,ae,ye,Ie;G<L.length;){for(Ie=Cx(L[G]).split("-"),ne=Ie.length,ae=Cx(L[G+1]),ae=ae?ae.split("-"):null;ne>0;){if(ye=Jh(Ie.slice(0,ne).join("-")),ye)return ye;if(ae&&ae.length>=ne&&Kk(Ie,ae)>=ne-1)break;ne--}G++}return Jp}function Qk(L){return!!(L&&L.match("^[^/\\\\]*$"))}function Jh(L){var G=null,ne;if(bs[L]===void 0&&t&&t.exports&&Qk(L))try{G=Jp._abbr,ne=Ftt,ne("./locale/"+L),Zc(G)}catch{bs[L]=null}return bs[L]}function Zc(L,G){var ne;return L&&(u(G)?ne=bl(L):ne=e1(L,G),ne?Jp=ne:typeof console<"u"&&console.warn&&console.warn("Locale "+L+" not found. Did you forget to load it?")),Jp._abbr}function e1(L,G){if(G!==null){var ne,ae=df;if(G.abbr=L,bs[L]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ae=bs[L]._config;else if(G.parentLocale!=null)if(bs[G.parentLocale]!=null)ae=bs[G.parentLocale]._config;else if(ne=Jh(G.parentLocale),ne!=null)ae=ne._config;else return ff[G.parentLocale]||(ff[G.parentLocale]=[]),ff[G.parentLocale].push({name:L,config:G}),null;return bs[L]=new U(F(ae,G)),ff[L]&&ff[L].forEach(function(ye){e1(ye.name,ye.config)}),Zc(L),bs[L]}else return delete bs[L],null}function Zk(L,G){if(G!=null){var ne,ae,ye=df;bs[L]!=null&&bs[L].parentLocale!=null?bs[L].set(F(bs[L]._config,G)):(ae=Jh(L),ae!=null&&(ye=ae._config),G=F(ye,G),ae==null&&(G.abbr=L),ne=new U(G),ne.parentLocale=bs[L],bs[L]=ne),Zc(L)}else bs[L]!=null&&(bs[L].parentLocale!=null?(bs[L]=bs[L].parentLocale,L===Zc()&&Zc(L)):bs[L]!=null&&delete bs[L]);return bs[L]}function bl(L){var G;if(L&&L._locale&&L._locale._abbr&&(L=L._locale._abbr),!L)return Jp;if(!i(L)){if(G=Jh(L),G)return G;L=[L]}return Jv(L)}function Xk(){return z(bs)}function t1(L){var G,ne=L._a;return ne&&g(L).overflow===-2&&(G=ne[Yt]<0||ne[Yt]>11?Yt:ne[Rt]<1||ne[Rt]>Fr(ne[Gt],ne[Yt])?Rt:ne[At]<0||ne[At]>24||ne[At]===24&&(ne[zt]!==0||ne[or]!==0||ne[ot]!==0)?At:ne[zt]<0||ne[zt]>59?zt:ne[or]<0||ne[or]>59?or:ne[ot]<0||ne[ot]>999?ot:-1,g(L)._overflowDayOfYear&&(G<Gt||G>Rt)&&(G=Rt),g(L)._overflowWeeks&&G===-1&&(G=ct),g(L)._overflowWeekday&&G===-1&&(G=ke),g(L).overflow=G),L}var Jk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,r1=/Z|[+-]\d\d(?::?\d\d)?/,eg=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],n1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tM=/^\/?Date\((-?\d+)/i,Ax=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rM={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kx(L){var G,ne,ae=L._i,ye=Jk.exec(ae)||eM.exec(ae),Ie,St,Sr,Qr,In=eg.length,mo=n1.length;if(ye){for(g(L).iso=!0,G=0,ne=In;G<ne;G++)if(eg[G][1].exec(ye[1])){St=eg[G][0],Ie=eg[G][2]!==!1;break}if(St==null){L._isValid=!1;return}if(ye[3]){for(G=0,ne=mo;G<ne;G++)if(n1[G][1].exec(ye[3])){Sr=(ye[2]||" ")+n1[G][0];break}if(Sr==null){L._isValid=!1;return}}if(!Ie&&Sr!=null){L._isValid=!1;return}if(ye[4])if(r1.exec(ye[4]))Qr="Z";else{L._isValid=!1;return}L._f=St+(Sr||"")+(Qr||""),tg(L)}else L._isValid=!1}function nM(L,G,ne,ae,ye,Ie){var St=[sM(L),Er.indexOf(G),parseInt(ne,10),parseInt(ae,10),parseInt(ye,10)];return Ie&&St.push(parseInt(Ie,10)),St}function sM(L){var G=parseInt(L,10);return G<=49?2e3+G:G<=999?1900+G:G}function iM(L){return L.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oM(L,G,ne){if(L){var ae=Kh.indexOf(L),ye=new Date(G[0],G[1],G[2]).getDay();if(ae!==ye)return g(ne).weekdayMismatch=!0,ne._isValid=!1,!1}return!0}function aM(L,G,ne){if(L)return rM[L];if(G)return 0;var ae=parseInt(ne,10),ye=ae%100,Ie=(ae-ye)/100;return Ie*60+ye}function Mx(L){var G=Ax.exec(iM(L._i)),ne;if(G){if(ne=nM(G[4],G[3],G[2],G[5],G[6],G[7]),!oM(G[1],ne,L))return;L._a=ne,L._tzm=aM(G[8],G[9],G[10]),L._d=Ui.apply(null,L._a),L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),g(L).rfc2822=!0}else L._isValid=!1}function lM(L){var G=tM.exec(L._i);if(G!==null){L._d=new Date(+G[1]);return}if(kx(L),L._isValid===!1)delete L._isValid;else return;if(Mx(L),L._isValid===!1)delete L._isValid;else return;L._strict?L._isValid=!1:n.createFromInputFallback(L)}n.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(L){L._d=new Date(L._i+(L._useUTC?" UTC":""))});function Xc(L,G,ne){return L??G??ne}function em(L){var G=new Date(n.now());return L._useUTC?[G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate()]:[G.getFullYear(),G.getMonth(),G.getDate()]}function s1(L){var G,ne,ae=[],ye,Ie,St;if(!L._d){for(ye=em(L),L._w&&L._a[Rt]==null&&L._a[Yt]==null&&Px(L),L._dayOfYear!=null&&(St=Xc(L._a[Gt],ye[Gt]),(L._dayOfYear>He(St)||L._dayOfYear===0)&&(g(L)._overflowDayOfYear=!0),ne=Ui(St,0,L._dayOfYear),L._a[Yt]=ne.getUTCMonth(),L._a[Rt]=ne.getUTCDate()),G=0;G<3&&L._a[G]==null;++G)L._a[G]=ae[G]=ye[G];for(;G<7;G++)L._a[G]=ae[G]=L._a[G]==null?G===2?1:0:L._a[G];L._a[At]===24&&L._a[zt]===0&&L._a[or]===0&&L._a[ot]===0&&(L._nextDay=!0,L._a[At]=0),L._d=(L._useUTC?Ui:$s).apply(null,ae),Ie=L._useUTC?L._d.getUTCDay():L._d.getDay(),L._tzm!=null&&L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),L._nextDay&&(L._a[At]=24),L._w&&typeof L._w.d<"u"&&L._w.d!==Ie&&(g(L).weekdayMismatch=!0)}}function Px(L){var G,ne,ae,ye,Ie,St,Sr,Qr,In;G=L._w,G.GG!=null||G.W!=null||G.E!=null?(Ie=1,St=4,ne=Xc(G.GG,L._a[Gt],co(Ps(),1,4).year),ae=Xc(G.W,1),ye=Xc(G.E,1),(ye<1||ye>7)&&(Qr=!0)):(Ie=L._locale._week.dow,St=L._locale._week.doy,In=co(Ps(),Ie,St),ne=Xc(G.gg,L._a[Gt],In.year),ae=Xc(G.w,In.week),G.d!=null?(ye=G.d,(ye<0||ye>6)&&(Qr=!0)):G.e!=null?(ye=G.e+Ie,(G.e<0||G.e>6)&&(Qr=!0)):ye=Ie),ae<1||ae>jo(ne,Ie,St)?g(L)._overflowWeeks=!0:Qr!=null?g(L)._overflowWeekday=!0:(Sr=yl(ne,ae,ye,Ie,St),L._a[Gt]=Sr.year,L._dayOfYear=Sr.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function tg(L){if(L._f===n.ISO_8601){kx(L);return}if(L._f===n.RFC_2822){Mx(L);return}L._a=[],g(L).empty=!0;var G=""+L._i,ne,ae,ye,Ie,St,Sr=G.length,Qr=0,In,mo;for(ye=se(L._f,L._locale).match(q)||[],mo=ye.length,ne=0;ne<mo;ne++)Ie=ye[ne],ae=(G.match(fn(Ie,L))||[])[0],ae&&(St=G.substr(0,G.indexOf(ae)),St.length>0&&g(L).unusedInput.push(St),G=G.slice(G.indexOf(ae)+ae.length),Qr+=ae.length),Y[Ie]?(ae?g(L).empty=!1:g(L).unusedTokens.push(Ie),_t(Ie,ae,L)):L._strict&&!ae&&g(L).unusedTokens.push(Ie);g(L).charsLeftOver=Sr-Qr,G.length>0&&g(L).unusedInput.push(G),L._a[At]<=12&&g(L).bigHour===!0&&L._a[At]>0&&(g(L).bigHour=void 0),g(L).parsedDateParts=L._a.slice(0),g(L).meridiem=L._meridiem,L._a[At]=jx(L._locale,L._a[At],L._meridiem),In=g(L).era,In!==null&&(L._a[Gt]=L._locale.erasConvertYear(In,L._a[Gt])),s1(L),t1(L)}function jx(L,G,ne){var ae;return ne==null?G:L.meridiemHour!=null?L.meridiemHour(G,ne):(L.isPM!=null&&(ae=L.isPM(ne),ae&&G<12&&(G+=12),!ae&&G===12&&(G=0)),G)}function Tx(L){var G,ne,ae,ye,Ie,St,Sr=!1,Qr=L._f.length;if(Qr===0){g(L).invalidFormat=!0,L._d=new Date(NaN);return}for(ye=0;ye<Qr;ye++)Ie=0,St=!1,G=k({},L),L._useUTC!=null&&(G._useUTC=L._useUTC),G._f=L._f[ye],tg(G),b(G)&&(St=!0),Ie+=g(G).charsLeftOver,Ie+=g(G).unusedTokens.length*10,g(G).score=Ie,Sr?Ie<ae&&(ae=Ie,ne=G):(ae==null||Ie<ae||St)&&(ae=Ie,ne=G,St&&(Sr=!0));m(L,ne||G)}function Ex(L){if(!L._d){var G=Ge(L._i),ne=G.day===void 0?G.date:G.day;L._a=p([G.year,G.month,ne,G.hour,G.minute,G.second,G.millisecond],function(ae){return ae&&parseInt(ae,10)}),s1(L)}}function pf(L){var G=new A(t1(Rx(L)));return G._nextDay&&(G.add(1,"d"),G._nextDay=void 0),G}function Rx(L){var G=L._i,ne=L._f;return L._locale=L._locale||bl(L._l),G===null||ne===void 0&&G===""?x({nullInput:!0}):(typeof G=="string"&&(L._i=G=L._locale.preparse(G)),P(G)?new A(t1(G)):(f(G)?L._d=G:i(ne)?Tx(L):ne?tg(L):cM(L),b(L)||(L._d=null),L))}function cM(L){var G=L._i;u(G)?L._d=new Date(n.now()):f(G)?L._d=new Date(G.valueOf()):typeof G=="string"?lM(L):i(G)?(L._a=p(G.slice(0),function(ne){return parseInt(ne,10)}),s1(L)):o(G)?Ex(L):d(G)?L._d=new Date(G):n.createFromInputFallback(L)}function Ix(L,G,ne,ae,ye){var Ie={};return(G===!0||G===!1)&&(ae=G,G=void 0),(ne===!0||ne===!1)&&(ae=ne,ne=void 0),(o(L)&&c(L)||i(L)&&L.length===0)&&(L=void 0),Ie._isAMomentObject=!0,Ie._useUTC=Ie._isUTC=ye,Ie._l=ne,Ie._i=L,Ie._f=G,Ie._strict=ae,pf(Ie)}function Ps(L,G,ne,ae){return Ix(L,G,ne,ae,!1)}var Dx=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=Ps.apply(null,arguments);return this.isValid()&&L.isValid()?L<this?this:L:x()}),tm=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=Ps.apply(null,arguments);return this.isValid()&&L.isValid()?L>this?this:L:x()});function mf(L,G){var ne,ae;if(G.length===1&&i(G[0])&&(G=G[0]),!G.length)return Ps();for(ne=G[0],ae=1;ae<G.length;++ae)(!G[ae].isValid()||G[ae][L](ne))&&(ne=G[ae]);return ne}function uM(){var L=[].slice.call(arguments,0);return mf("isBefore",L)}function rg(){var L=[].slice.call(arguments,0);return mf("isAfter",L)}var $x=function(){return Date.now?Date.now():+new Date},hf=["year","quarter","month","week","day","hour","minute","second","millisecond"];function i1(L){var G,ne=!1,ae,ye=hf.length;for(G in L)if(l(L,G)&&!(Vr.call(hf,G)!==-1&&(L[G]==null||!isNaN(L[G]))))return!1;for(ae=0;ae<ye;++ae)if(L[hf[ae]]){if(ne)return!1;parseFloat(L[hf[ae]])!==wt(L[hf[ae]])&&(ne=!0)}return!0}function o1(){return this._isValid}function Ox(){return qo(NaN)}function rm(L){var G=Ge(L),ne=G.year||0,ae=G.quarter||0,ye=G.month||0,Ie=G.week||G.isoWeek||0,St=G.day||0,Sr=G.hour||0,Qr=G.minute||0,In=G.second||0,mo=G.millisecond||0;this._isValid=i1(G),this._milliseconds=+mo+In*1e3+Qr*6e4+Sr*1e3*60*60,this._days=+St+Ie*7,this._months=+ye+ae*3+ne*12,this._data={},this._locale=bl(),this._bubble()}function nm(L){return L instanceof rm}function a1(L){return L<0?Math.round(-1*L)*-1:Math.round(L)}function dM(L,G,ne){var ae=Math.min(L.length,G.length),ye=Math.abs(L.length-G.length),Ie=0,St;for(St=0;St<ae;St++)wt(L[St])!==wt(G[St])&&Ie++;return Ie+ye}function Lx(L,G){Z(L,0,0,function(){var ne=this.utcOffset(),ae="+";return ne<0&&(ne=-ne,ae="-"),ae+K(~~(ne/60),2)+G+K(~~ne%60,2)})}Lx("Z",":"),Lx("ZZ",""),Ut("Z",ar),Ut("ZZ",ar),Ae(["Z","ZZ"],function(L,G,ne){ne._useUTC=!0,ne._tzm=l1(ar,L)});var fM=/([\+\-]|\d\d)/gi;function l1(L,G){var ne=(G||"").match(L),ae,ye,Ie;return ne===null?null:(ae=ne[ne.length-1]||[],ye=(ae+"").match(fM)||["-",0,0],Ie=+(ye[1]*60)+wt(ye[2]),Ie===0?0:ye[0]==="+"?Ie:-Ie)}function uo(L,G){var ne,ae;return G._isUTC?(ne=G.clone(),ae=(P(L)||f(L)?L.valueOf():Ps(L).valueOf())-ne.valueOf(),ne._d.setTime(ne._d.valueOf()+ae),n.updateOffset(ne,!1),ne):Ps(L).local()}function Qu(L){return-Math.round(L._d.getTimezoneOffset())}n.updateOffset=function(){};function Nx(L,G,ne){var ae=this._offset||0,ye;if(!this.isValid())return L!=null?this:NaN;if(L!=null){if(typeof L=="string"){if(L=l1(ar,L),L===null)return this}else Math.abs(L)<16&&!ne&&(L=L*60);return!this._isUTC&&G&&(ye=Qu(this)),this._offset=L,this._isUTC=!0,ye!=null&&this.add(ye,"m"),ae!==L&&(!G||this._changeInProgress?m1(this,qo(L-ae,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?ae:Qu(this)}function Fx(L,G){return L!=null?(typeof L!="string"&&(L=-L),this.utcOffset(L,G),this):-this.utcOffset()}function Ux(L){return this.utcOffset(0,L)}function Bx(L){return this._isUTC&&(this.utcOffset(0,L),this._isUTC=!1,L&&this.subtract(Qu(this),"m")),this}function c1(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var L=l1(qt,this._i);L!=null?this.utcOffset(L):this.utcOffset(0,!0)}return this}function pM(L){return this.isValid()?(L=L?Ps(L).utcOffset():0,(this.utcOffset()-L)%60===0):!1}function gf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function u1(){if(!u(this._isDSTShifted))return this._isDSTShifted;var L={},G;return k(L,this),L=Rx(L),L._a?(G=L._isUTC?h(L._a):Ps(L._a),this._isDSTShifted=this.isValid()&&dM(L._a,G.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function sm(){return this.isValid()?!this._isUTC:!1}function d1(){return this.isValid()?this._isUTC:!1}function f1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Zu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qo(L,G){var ne=L,ae=null,ye,Ie,St;return nm(L)?ne={ms:L._milliseconds,d:L._days,M:L._months}:d(L)||!isNaN(+L)?(ne={},G?ne[G]=+L:ne.milliseconds=+L):(ae=Zu.exec(L))?(ye=ae[1]==="-"?-1:1,ne={y:0,d:wt(ae[Rt])*ye,h:wt(ae[At])*ye,m:wt(ae[zt])*ye,s:wt(ae[or])*ye,ms:wt(a1(ae[ot]*1e3))*ye}):(ae=_f.exec(L))?(ye=ae[1]==="-"?-1:1,ne={y:Jc(ae[2],ye),M:Jc(ae[3],ye),w:Jc(ae[4],ye),d:Jc(ae[5],ye),h:Jc(ae[6],ye),m:Jc(ae[7],ye),s:Jc(ae[8],ye)}):ne==null?ne={}:typeof ne=="object"&&("from"in ne||"to"in ne)&&(St=zx(Ps(ne.from),Ps(ne.to)),ne={},ne.ms=St.milliseconds,ne.M=St.months),Ie=new rm(ne),nm(L)&&l(L,"_locale")&&(Ie._locale=L._locale),nm(L)&&l(L,"_isValid")&&(Ie._isValid=L._isValid),Ie}qo.fn=rm.prototype,qo.invalid=Ox;function Jc(L,G){var ne=L&&parseFloat(L.replace(",","."));return(isNaN(ne)?0:ne)*G}function eu(L,G){var ne={};return ne.months=G.month()-L.month()+(G.year()-L.year())*12,L.clone().add(ne.months,"M").isAfter(G)&&--ne.months,ne.milliseconds=+G-+L.clone().add(ne.months,"M"),ne}function zx(L,G){var ne;return L.isValid()&&G.isValid()?(G=uo(G,L),L.isBefore(G)?ne=eu(L,G):(ne=eu(G,L),ne.milliseconds=-ne.milliseconds,ne.months=-ne.months),ne):{milliseconds:0,months:0}}function p1(L,G){return function(ne,ae){var ye,Ie;return ae!==null&&!isNaN(+ae)&&(D(G,"moment()."+G+"(period, number) is deprecated. Please use moment()."+G+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ie=ne,ne=ae,ae=Ie),ye=qo(ne,ae),m1(this,ye,L),this}}function m1(L,G,ne,ae){var ye=G._milliseconds,Ie=a1(G._days),St=a1(G._months);L.isValid()&&(ae=ae??!0,St&&Yp(L,Cr(L,"Month")+St*ne),Ie&&sn(L,"Date",Cr(L,"Date")+Ie*ne),ye&&L._d.setTime(L._d.valueOf()+ye*ne),ae&&n.updateOffset(L,Ie||St))}var mM=p1(1,"add"),hM=p1(-1,"subtract");function qx(L){return typeof L=="string"||L instanceof String}function Vx(L){return P(L)||f(L)||qx(L)||d(L)||h1(L)||Hx(L)||L===null||L===void 0}function Hx(L){var G=o(L)&&!c(L),ne=!1,ae=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ye,Ie,St=ae.length;for(ye=0;ye<St;ye+=1)Ie=ae[ye],ne=ne||l(L,Ie);return G&&ne}function h1(L){var G=i(L),ne=!1;return G&&(ne=L.filter(function(ae){return!d(ae)&&qx(L)}).length===0),G&&ne}function Ha(L){var G=o(L)&&!c(L),ne=!1,ae=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ye,Ie;for(ye=0;ye<ae.length;ye+=1)Ie=ae[ye],ne=ne||l(L,Ie);return G&&ne}function ng(L,G){var ne=L.diff(G,"days",!0);return ne<-6?"sameElse":ne<-1?"lastWeek":ne<0?"lastDay":ne<1?"sameDay":ne<2?"nextDay":ne<7?"nextWeek":"sameElse"}function ga(L,G){arguments.length===1&&(arguments[0]?Vx(arguments[0])?(L=arguments[0],G=void 0):Ha(arguments[0])&&(G=arguments[0],L=void 0):(L=void 0,G=void 0));var ne=L||Ps(),ae=uo(ne,this).startOf("day"),ye=n.calendarFormat(this,ae)||"sameElse",Ie=G&&(O(G[ye])?G[ye].call(this,ne):G[ye]);return this.format(Ie||this.localeData().calendar(ye,this,Ps(ne)))}function vf(){return new A(this)}function g1(L,G){var ne=P(L)?L:Ps(L);return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()>ne.valueOf():ne.valueOf()<this.clone().startOf(G).valueOf()):!1}function sg(L,G){var ne=P(L)?L:Ps(L);return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()<ne.valueOf():this.clone().endOf(G).valueOf()<ne.valueOf()):!1}function ig(L,G,ne,ae){var ye=P(L)?L:Ps(L),Ie=P(G)?G:Ps(G);return this.isValid()&&ye.isValid()&&Ie.isValid()?(ae=ae||"()",(ae[0]==="("?this.isAfter(ye,ne):!this.isBefore(ye,ne))&&(ae[1]===")"?this.isBefore(Ie,ne):!this.isAfter(Ie,ne))):!1}function _1(L,G){var ne=P(L)?L:Ps(L),ae;return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()===ne.valueOf():(ae=ne.valueOf(),this.clone().startOf(G).valueOf()<=ae&&ae<=this.clone().endOf(G).valueOf())):!1}function Xu(L,G){return this.isSame(L,G)||this.isAfter(L,G)}function Gx(L,G){return this.isSame(L,G)||this.isBefore(L,G)}function og(L,G,ne){var ae,ye,Ie;if(!this.isValid())return NaN;if(ae=uo(L,this),!ae.isValid())return NaN;switch(ye=(ae.utcOffset()-this.utcOffset())*6e4,G=je(G),G){case"year":Ie=lc(this,ae)/12;break;case"month":Ie=lc(this,ae);break;case"quarter":Ie=lc(this,ae)/3;break;case"second":Ie=(this-ae)/1e3;break;case"minute":Ie=(this-ae)/6e4;break;case"hour":Ie=(this-ae)/36e5;break;case"day":Ie=(this-ae-ye)/864e5;break;case"week":Ie=(this-ae-ye)/6048e5;break;default:Ie=this-ae}return ne?Ie:st(Ie)}function lc(L,G){if(L.date()<G.date())return-lc(G,L);var ne=(G.year()-L.year())*12+(G.month()-L.month()),ae=L.clone().add(ne,"months"),ye,Ie;return G-ae<0?(ye=L.clone().add(ne-1,"months"),Ie=(G-ae)/(ae-ye)):(ye=L.clone().add(ne+1,"months"),Ie=(G-ae)/(ye-ae)),-(ne+Ie)||0}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function gM(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Vo(L){if(!this.isValid())return null;var G=L!==!0,ne=G?this.clone().utc():this;return ne.year()<0||ne.year()>9999?de(ne,G?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?G?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",de(ne,"Z")):de(ne,G?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function v1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var L="moment",G="",ne,ae,ye,Ie;return this.isLocal()||(L=this.utcOffset()===0?"moment.utc":"moment.parseZone",G="Z"),ne="["+L+'("]',ae=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ye="-MM-DD[T]HH:mm:ss.SSS",Ie=G+'[")]',this.format(ne+ae+ye+Ie)}function cc(L){L||(L=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var G=de(this,L);return this.localeData().postformat(G)}function Wx(L,G){return this.isValid()&&(P(L)&&L.isValid()||Ps(L).isValid())?qo({to:this,from:L}).locale(this.locale()).humanize(!G):this.localeData().invalidDate()}function ag(L){return this.from(Ps(),L)}function Ju(L,G){return this.isValid()&&(P(L)&&L.isValid()||Ps(L).isValid())?qo({from:this,to:L}).locale(this.locale()).humanize(!G):this.localeData().invalidDate()}function y1(L){return this.to(Ps(),L)}function b1(L){var G;return L===void 0?this._locale._abbr:(G=bl(L),G!=null&&(this._locale=G),this)}var lg=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(L){return L===void 0?this.localeData():this.locale(L)});function x1(){return this._locale}var fo=1e3,Ga=60*fo,uc=60*Ga,im=(365*400+97)*24*uc;function xl(L,G){return(L%G+G)%G}function Ho(L,G,ne){return L<100&&L>=0?new Date(L+400,G,ne)-im:new Date(L,G,ne).valueOf()}function Go(L,G,ne){return L<100&&L>=0?Date.UTC(L+400,G,ne)-im:Date.UTC(L,G,ne)}function tu(L){var G,ne;if(L=je(L),L===void 0||L==="millisecond"||!this.isValid())return this;switch(ne=this._isUTC?Go:Ho,L){case"year":G=ne(this.year(),0,1);break;case"quarter":G=ne(this.year(),this.month()-this.month()%3,1);break;case"month":G=ne(this.year(),this.month(),1);break;case"week":G=ne(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":G=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":G=ne(this.year(),this.month(),this.date());break;case"hour":G=this._d.valueOf(),G-=xl(G+(this._isUTC?0:this.utcOffset()*Ga),uc);break;case"minute":G=this._d.valueOf(),G-=xl(G,Ga);break;case"second":G=this._d.valueOf(),G-=xl(G,fo);break}return this._d.setTime(G),n.updateOffset(this,!0),this}function Sl(L){var G,ne;if(L=je(L),L===void 0||L==="millisecond"||!this.isValid())return this;switch(ne=this._isUTC?Go:Ho,L){case"year":G=ne(this.year()+1,0,1)-1;break;case"quarter":G=ne(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":G=ne(this.year(),this.month()+1,1)-1;break;case"week":G=ne(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":G=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":G=ne(this.year(),this.month(),this.date()+1)-1;break;case"hour":G=this._d.valueOf(),G+=uc-xl(G+(this._isUTC?0:this.utcOffset()*Ga),uc)-1;break;case"minute":G=this._d.valueOf(),G+=Ga-xl(G,Ga)-1;break;case"second":G=this._d.valueOf(),G+=fo-xl(G,fo)-1;break}return this._d.setTime(G),n.updateOffset(this,!0),this}function wl(){return this._d.valueOf()-(this._offset||0)*6e4}function dc(){return Math.floor(this.valueOf()/1e3)}function Yx(){return new Date(this.valueOf())}function S1(){var L=this;return[L.year(),L.month(),L.date(),L.hour(),L.minute(),L.second(),L.millisecond()]}function w1(){var L=this;return{years:L.year(),months:L.month(),date:L.date(),hours:L.hours(),minutes:L.minutes(),seconds:L.seconds(),milliseconds:L.milliseconds()}}function Kx(){return this.isValid()?this.toISOString():null}function Bi(){return b(this)}function Os(){return m({},g(this))}function Ln(){return g(this).overflow}function ru(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Z("N",0,0,"eraAbbr"),Z("NN",0,0,"eraAbbr"),Z("NNN",0,0,"eraAbbr"),Z("NNNN",0,0,"eraName"),Z("NNNNN",0,0,"eraNarrow"),Z("y",["y",1],"yo","eraYear"),Z("y",["yy",2],0,"eraYear"),Z("y",["yyy",3],0,"eraYear"),Z("y",["yyyy",4],0,"eraYear"),Ut("N",fc),Ut("NN",fc),Ut("NNN",fc),Ut("NNNN",pc),Ut("NNNNN",su),Ae(["N","NN","NNN","NNNN","NNNNN"],function(L,G,ne,ae){var ye=ne._locale.erasParse(L,ae,ne._strict);ye?g(ne).era=ye:g(ne).invalidEra=L}),Ut("y",Ee),Ut("yy",Ee),Ut("yyy",Ee),Ut("yyyy",Ee),Ut("yo",mc),Ae(["y","yy","yyy","yyyy"],Gt),Ae(["yo"],function(L,G,ne,ae){var ye;ne._locale._eraYearOrdinalRegex&&(ye=L.match(ne._locale._eraYearOrdinalRegex)),ne._locale.eraYearOrdinalParse?G[Gt]=ne._locale.eraYearOrdinalParse(L,ye):G[Gt]=parseInt(L,10)});function _a(L,G){var ne,ae,ye,Ie=this._eras||bl("en")._eras;for(ne=0,ae=Ie.length;ne<ae;++ne){switch(typeof Ie[ne].since){case"string":ye=n(Ie[ne].since).startOf("day"),Ie[ne].since=ye.valueOf();break}switch(typeof Ie[ne].until){case"undefined":Ie[ne].until=1/0;break;case"string":ye=n(Ie[ne].until).startOf("day").valueOf(),Ie[ne].until=ye.valueOf();break}}return Ie}function C1(L,G,ne){var ae,ye,Ie=this.eras(),St,Sr,Qr;for(L=L.toUpperCase(),ae=0,ye=Ie.length;ae<ye;++ae)if(St=Ie[ae].name.toUpperCase(),Sr=Ie[ae].abbr.toUpperCase(),Qr=Ie[ae].narrow.toUpperCase(),ne)switch(G){case"N":case"NN":case"NNN":if(Sr===L)return Ie[ae];break;case"NNNN":if(St===L)return Ie[ae];break;case"NNNNN":if(Qr===L)return Ie[ae];break}else if([St,Sr,Qr].indexOf(L)>=0)return Ie[ae]}function nu(L,G){var ne=L.since<=L.until?1:-1;return G===void 0?n(L.since).year():n(L.since).year()+(G-L.offset)*ne}function Qx(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].name;return""}function Zx(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].narrow;return""}function yf(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].abbr;return""}function ed(){var L,G,ne,ae,ye=this.localeData().eras();for(L=0,G=ye.length;L<G;++L)if(ne=ye[L].since<=ye[L].until?1:-1,ae=this.clone().startOf("day").valueOf(),ye[L].since<=ae&&ae<=ye[L].until||ye[L].until<=ae&&ae<=ye[L].since)return(this.year()-n(ye[L].since).year())*ne+ye[L].offset;return this.year()}function A1(L){return l(this,"_erasNameRegex")||am.call(this),L?this._erasNameRegex:this._erasRegex}function om(L){return l(this,"_erasAbbrRegex")||am.call(this),L?this._erasAbbrRegex:this._erasRegex}function k1(L){return l(this,"_erasNarrowRegex")||am.call(this),L?this._erasNarrowRegex:this._erasRegex}function fc(L,G){return G.erasAbbrRegex(L)}function pc(L,G){return G.erasNameRegex(L)}function su(L,G){return G.erasNarrowRegex(L)}function mc(L,G){return G._eraYearOrdinalRegex||Ee}function am(){var L=[],G=[],ne=[],ae=[],ye,Ie,St,Sr,Qr,In=this.eras();for(ye=0,Ie=In.length;ye<Ie;++ye)St=_r(In[ye].name),Sr=_r(In[ye].abbr),Qr=_r(In[ye].narrow),G.push(St),L.push(Sr),ne.push(Qr),ae.push(St),ae.push(Sr),ae.push(Qr);this._erasRegex=new RegExp("^("+ae.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+G.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+L.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ne.join("|")+")","i")}Z(0,["gg",2],0,function(){return this.weekYear()%100}),Z(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bf(L,G){Z(0,[L,L.length],0,G)}bf("gggg","weekYear"),bf("ggggg","weekYear"),bf("GGGG","isoWeekYear"),bf("GGGGG","isoWeekYear"),Ut("G",Be),Ut("g",Be),Ut("GG",Oe,Me),Ut("gg",Oe,Me),Ut("GGGG",at,Ve),Ut("gggg",at,Ve),Ut("GGGGG",$t,Ne),Ut("ggggg",$t,Ne),ze(["gggg","ggggg","GGGG","GGGGG"],function(L,G,ne,ae){G[ae.substr(0,2)]=wt(L)}),ze(["gg","GG"],function(L,G,ne,ae){G[ae]=n.parseTwoDigitYear(L)});function xf(L){return Jx.call(this,L,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function cg(L){return Jx.call(this,L,this.isoWeek(),this.isoWeekday(),1,4)}function td(){return jo(this.year(),1,4)}function zi(){return jo(this.isoWeekYear(),1,4)}function ug(){var L=this.localeData()._week;return jo(this.year(),L.dow,L.doy)}function Xx(){var L=this.localeData()._week;return jo(this.weekYear(),L.dow,L.doy)}function Jx(L,G,ne,ae,ye){var Ie;return L==null?co(this,ae,ye).year:(Ie=jo(L,ae,ye),G>Ie&&(G=Ie),_M.call(this,L,G,ne,ae,ye))}function _M(L,G,ne,ae,ye){var Ie=yl(L,G,ne,ae,ye),St=Ui(Ie.year,0,Ie.dayOfYear);return this.year(St.getUTCFullYear()),this.month(St.getUTCMonth()),this.date(St.getUTCDate()),this}Z("Q",0,"Qo","quarter"),Ut("Q",we),Ae("Q",function(L,G){G[Yt]=(wt(L)-1)*3});function vM(L){return L==null?Math.ceil((this.month()+1)/3):this.month((L-1)*3+this.month()%3)}Z("D",["DD",2],"Do","date"),Ut("D",Oe,cr),Ut("DD",Oe,Me),Ut("Do",function(L,G){return L?G._dayOfMonthOrdinalParse||G._ordinalParse:G._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],Rt),Ae("Do",function(L,G){G[Rt]=wt(L.match(Oe)[0])});var ri=wr("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),Ut("DDD",Et),Ut("DDDD",$e),Ae(["DDD","DDDD"],function(L,G,ne){ne._dayOfYear=wt(L)});function M1(L){var G=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return L==null?G:this.add(L-G,"d")}Z("m",["mm",2],0,"minute"),Ut("m",Oe,kr),Ut("mm",Oe,Me),Ae(["m","mm"],zt);var lm=wr("Minutes",!1);Z("s",["ss",2],0,"second"),Ut("s",Oe,kr),Ut("ss",Oe,Me),Ae(["s","ss"],or);var cm=wr("Seconds",!1);Z("S",0,0,function(){return~~(this.millisecond()/100)}),Z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,function(){return this.millisecond()*10}),Z(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Z(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Z(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Z(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Z(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ut("S",Et,we),Ut("SS",Et,Me),Ut("SSS",Et,$e);var Cl,rd;for(Cl="SSSS";Cl.length<=9;Cl+="S")Ut(Cl,Ee);function Sf(L,G){G[ot]=wt(("0."+L)*1e3)}for(Cl="S";Cl.length<=9;Cl+="S")Ae(Cl,Sf);rd=wr("Milliseconds",!1),Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");function yM(){return this._isUTC?"UTC":""}function eS(){return this._isUTC?"Coordinated Universal Time":""}var er=A.prototype;er.add=mM,er.calendar=ga,er.clone=vf,er.diff=og,er.endOf=Sl,er.format=cc,er.from=Wx,er.fromNow=ag,er.to=Ju,er.toNow=y1,er.get=pn,er.invalidAt=Ln,er.isAfter=g1,er.isBefore=sg,er.isBetween=ig,er.isSame=_1,er.isSameOrAfter=Xu,er.isSameOrBefore=Gx,er.isValid=Bi,er.lang=lg,er.locale=b1,er.localeData=x1,er.max=tm,er.min=Dx,er.parsingFlags=Os,er.set=jn,er.startOf=tu,er.subtract=hM,er.toArray=S1,er.toObject=w1,er.toDate=Yx,er.toISOString=Vo,er.inspect=v1,typeof Symbol<"u"&&Symbol.for!=null&&(er[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),er.toJSON=Kx,er.toString=gM,er.unix=dc,er.valueOf=wl,er.creationData=ru,er.eraName=Qx,er.eraNarrow=Zx,er.eraAbbr=yf,er.eraYear=ed,er.year=ut,er.isLeapYear=It,er.weekYear=xf,er.isoWeekYear=cg,er.quarter=er.quarters=vM,er.month=ns,er.daysInMonth=Gn,er.week=er.weeks=of,er.isoWeek=er.isoWeeks=Yc,er.weeksInYear=ug,er.weeksInWeekYear=Xx,er.isoWeeksInYear=td,er.isoWeeksInISOWeekYear=zi,er.date=ri,er.day=er.days=Qp,er.weekday=Kc,er.isoWeekday=Qv,er.dayOfYear=M1,er.hour=er.hours=Zv,er.minute=er.minutes=lm,er.second=er.seconds=cm,er.millisecond=er.milliseconds=rd,er.utcOffset=Nx,er.utc=Ux,er.local=Bx,er.parseZone=c1,er.hasAlignedHourOffset=pM,er.isDST=gf,er.isLocal=sm,er.isUtcOffset=d1,er.isUtc=f1,er.isUTC=f1,er.zoneAbbr=yM,er.zoneName=eS,er.dates=j("dates accessor is deprecated. Use date instead.",ri),er.months=j("months accessor is deprecated. Use month instead",ns),er.years=j("years accessor is deprecated. Use year instead",ut),er.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fx),er.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",u1);function tS(L){return Ps(L*1e3)}function nd(){return Ps.apply(null,arguments).parseZone()}function dg(L){return L}var Nn=U.prototype;Nn.calendar=W,Nn.longDateFormat=ee,Nn.invalidDate=me,Nn.ordinal=ve,Nn.preparse=dg,Nn.postformat=dg,Nn.relativeTime=qe,Nn.pastFuture=Le,Nn.set=N,Nn.eras=_a,Nn.erasParse=C1,Nn.erasConvertYear=nu,Nn.erasAbbrRegex=om,Nn.erasNameRegex=A1,Nn.erasNarrowRegex=k1,Nn.months=Zn,Nn.monthsShort=Fi,Nn.monthsParse=Ki,Nn.monthsRegex=zo,Nn.monthsShortRegex=Wu,Nn.week=Yu,Nn.firstDayOfYear=Ku,Nn.firstDayOfWeek=Wh,Nn.weekdays=Yv,Nn.weekdaysMin=Kp,Nn.weekdaysShort=Sx,Nn.weekdaysParse=Kv,Nn.weekdaysRegex=Qh,Nn.weekdaysShortRegex=wx,Nn.weekdaysMinRegex=Zh,Nn.isPM=Xp,Nn.meridiem=Xv;function um(L,G,ne,ae){var ye=bl(),Ie=h().set(ae,G);return ye[ne](Ie,L)}function sd(L,G,ne){if(d(L)&&(G=L,L=void 0),L=L||"",G!=null)return um(L,G,ne,"month");var ae,ye=[];for(ae=0;ae<12;ae++)ye[ae]=um(L,ae,ne,"month");return ye}function dm(L,G,ne,ae){typeof L=="boolean"?(d(G)&&(ne=G,G=void 0),G=G||""):(G=L,ne=G,L=!1,d(G)&&(ne=G,G=void 0),G=G||"");var ye=bl(),Ie=L?ye._week.dow:0,St,Sr=[];if(ne!=null)return um(G,(ne+Ie)%7,ae,"day");for(St=0;St<7;St++)Sr[St]=um(G,(St+Ie)%7,ae,"day");return Sr}function fg(L,G){return sd(L,G,"months")}function pg(L,G){return sd(L,G,"monthsShort")}function rS(L,G,ne){return dm(L,G,ne,"weekdays")}function nS(L,G,ne){return dm(L,G,ne,"weekdaysShort")}function id(L,G,ne){return dm(L,G,ne,"weekdaysMin")}Zc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var G=L%10,ne=wt(L%100/10)===1?"th":G===1?"st":G===2?"nd":G===3?"rd":"th";return L+ne}}),n.lang=j("moment.lang is deprecated. Use moment.locale instead.",Zc),n.langData=j("moment.langData is deprecated. Use moment.localeData instead.",bl);var po=Math.abs;function sS(){var L=this._data;return this._milliseconds=po(this._milliseconds),this._days=po(this._days),this._months=po(this._months),L.milliseconds=po(L.milliseconds),L.seconds=po(L.seconds),L.minutes=po(L.minutes),L.hours=po(L.hours),L.months=po(L.months),L.years=po(L.years),this}function P1(L,G,ne,ae){var ye=qo(G,ne);return L._milliseconds+=ae*ye._milliseconds,L._days+=ae*ye._days,L._months+=ae*ye._months,L._bubble()}function wf(L,G){return P1(this,L,G,1)}function fm(L,G){return P1(this,L,G,-1)}function pm(L){return L<0?Math.floor(L):Math.ceil(L)}function mm(){var L=this._milliseconds,G=this._days,ne=this._months,ae=this._data,ye,Ie,St,Sr,Qr;return L>=0&&G>=0&&ne>=0||L<=0&&G<=0&&ne<=0||(L+=pm(mg(ne)+G)*864e5,G=0,ne=0),ae.milliseconds=L%1e3,ye=st(L/1e3),ae.seconds=ye%60,Ie=st(ye/60),ae.minutes=Ie%60,St=st(Ie/60),ae.hours=St%24,G+=st(St/24),Qr=st(hm(G)),ne+=Qr,G-=pm(mg(Qr)),Sr=st(ne/12),ne%=12,ae.days=G,ae.months=ne,ae.years=Sr,this}function hm(L){return L*4800/146097}function mg(L){return L*146097/4800}function od(L){if(!this.isValid())return NaN;var G,ne,ae=this._milliseconds;if(L=je(L),L==="month"||L==="quarter"||L==="year")switch(G=this._days+ae/864e5,ne=this._months+hm(G),L){case"month":return ne;case"quarter":return ne/3;case"year":return ne/12}else switch(G=this._days+Math.round(mg(this._months)),L){case"week":return G/7+ae/6048e5;case"day":return G+ae/864e5;case"hour":return G*24+ae/36e5;case"minute":return G*1440+ae/6e4;case"second":return G*86400+ae/1e3;case"millisecond":return Math.floor(G*864e5)+ae;default:throw new Error("Unknown unit "+L)}}function Al(L){return function(){return this.as(L)}}var hc=Al("ms"),j1=Al("s"),T1=Al("m"),iu=Al("h"),ou=Al("d"),gm=Al("w"),E1=Al("M"),R1=Al("Q"),_m=Al("y"),vm=hc;function iS(){return qo(this)}function oS(L){return L=je(L),this.isValid()?this[L+"s"]():NaN}function va(L){return function(){return this.isValid()?this._data[L]:NaN}}var hg=va("milliseconds"),aS=va("seconds"),I1=va("minutes"),D1=va("hours"),Wo=va("days"),ya=va("months"),au=va("years");function $1(){return st(this.days()/7)}var kl=Math.round,Yo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ko(L,G,ne,ae,ye){return ye.relativeTime(G||1,!!ne,L,ae)}function ni(L,G,ne,ae){var ye=qo(L).abs(),Ie=kl(ye.as("s")),St=kl(ye.as("m")),Sr=kl(ye.as("h")),Qr=kl(ye.as("d")),In=kl(ye.as("M")),mo=kl(ye.as("w")),Wa=kl(ye.as("y")),Ml=Ie<=ne.ss&&["s",Ie]||Ie<ne.s&&["ss",Ie]||St<=1&&["m"]||St<ne.m&&["mm",St]||Sr<=1&&["h"]||Sr<ne.h&&["hh",Sr]||Qr<=1&&["d"]||Qr<ne.d&&["dd",Qr];return ne.w!=null&&(Ml=Ml||mo<=1&&["w"]||mo<ne.w&&["ww",mo]),Ml=Ml||In<=1&&["M"]||In<ne.M&&["MM",In]||Wa<=1&&["y"]||["yy",Wa],Ml[2]=G,Ml[3]=+L>0,Ml[4]=ae,Ko.apply(null,Ml)}function gg(L){return L===void 0?kl:typeof L=="function"?(kl=L,!0):!1}function gc(L,G){return Yo[L]===void 0?!1:G===void 0?Yo[L]:(Yo[L]=G,L==="s"&&(Yo.ss=G-1),!0)}function an(L,G){if(!this.isValid())return this.localeData().invalidDate();var ne=!1,ae=Yo,ye,Ie;return typeof L=="object"&&(G=L,L=!1),typeof L=="boolean"&&(ne=L),typeof G=="object"&&(ae=Object.assign({},Yo,G),G.s!=null&&G.ss==null&&(ae.ss=G.s-1)),ye=this.localeData(),Ie=ni(this,!ne,ae,ye),ne&&(Ie=ye.pastFuture(+this,Ie)),ye.postformat(Ie)}var ss=Math.abs;function Ls(L){return(L>0)-(L<0)||+L}function ad(){if(!this.isValid())return this.localeData().invalidDate();var L=ss(this._milliseconds)/1e3,G=ss(this._days),ne=ss(this._months),ae,ye,Ie,St,Sr=this.asSeconds(),Qr,In,mo,Wa;return Sr?(ae=st(L/60),ye=st(ae/60),L%=60,ae%=60,Ie=st(ne/12),ne%=12,St=L?L.toFixed(3).replace(/\.?0+$/,""):"",Qr=Sr<0?"-":"",In=Ls(this._months)!==Ls(Sr)?"-":"",mo=Ls(this._days)!==Ls(Sr)?"-":"",Wa=Ls(this._milliseconds)!==Ls(Sr)?"-":"",Qr+"P"+(Ie?In+Ie+"Y":"")+(ne?In+ne+"M":"")+(G?mo+G+"D":"")+(ye||ae||L?"T":"")+(ye?Wa+ye+"H":"")+(ae?Wa+ae+"M":"")+(L?Wa+St+"S":"")):"P0D"}var _n=rm.prototype;_n.isValid=o1,_n.abs=sS,_n.add=wf,_n.subtract=fm,_n.as=od,_n.asMilliseconds=hc,_n.asSeconds=j1,_n.asMinutes=T1,_n.asHours=iu,_n.asDays=ou,_n.asWeeks=gm,_n.asMonths=E1,_n.asQuarters=R1,_n.asYears=_m,_n.valueOf=vm,_n._bubble=mm,_n.clone=iS,_n.get=oS,_n.milliseconds=hg,_n.seconds=aS,_n.minutes=I1,_n.hours=D1,_n.days=Wo,_n.weeks=$1,_n.months=ya,_n.years=au,_n.humanize=an,_n.toISOString=ad,_n.toString=ad,_n.toJSON=ad,_n.locale=b1,_n.localeData=x1,_n.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ad),_n.lang=lg,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),Ut("x",Be),Ut("X",hr),Ae("X",function(L,G,ne){ne._d=new Date(parseFloat(L)*1e3)}),Ae("x",function(L,G,ne){ne._d=new Date(wt(L))});return n.version="2.30.1",s(Ps),n.fn=er,n.min=uM,n.max=rg,n.now=$x,n.utc=h,n.unix=tS,n.months=fg,n.isDate=f,n.locale=Zc,n.invalid=x,n.duration=qo,n.isMoment=P,n.weekdays=rS,n.parseZone=nd,n.localeData=bl,n.isDuration=nm,n.monthsShort=pg,n.weekdaysMin=id,n.defineLocale=e1,n.updateLocale=Zk,n.locales=Xk,n.weekdaysShort=nS,n.normalizeUnits=je,n.relativeTimeRounding=gg,n.relativeTimeThreshold=gc,n.calendarFormat=ng,n.prototype=er,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}))})(eC)),eC.exports}var ztt=Btt();const iue=Pi(ztt),oue=Pr();function Mr(t){return t?iue(t).format($[oue.locale.split("-")[0]].fullDateFormat):""}function qtt(t){return iue.unix(t).format($[oue.locale.split("-")[0]].fullDateFormat)}function Vtt(){const t=he.c(81),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=de=>{n({association_id:de},{action:"delete",method:"POST",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==n?(l=de=>{n({association_id:de},{action:"reset",method:"POST",encType:"application/json"})},t[2]=n,t[3]=l):l=t[3];const c=l;let u;t[4]!==e?(u=e.formatMessage({id:"ngap.status.connections.association_id"}),t[4]=e,t[5]=u):u=t[5];let d;t[6]!==u?(d={key:"association_id",label:u},t[6]=u,t[7]=d):d=t[7];let f;t[8]!==e?(f=e.formatMessage({id:"ngap.status.connections.connected_at"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]!==f?(p={key:"connected_at",label:f,cellRender:Xtt},t[10]=f,t[11]=p):p=t[11];let m;t[12]!==e?(m=e.formatMessage({id:"ngap.status.connections.global_ran_node_id"}),t[12]=e,t[13]=m):m=t[13];let h;t[14]!==e?(h=de=>{const{global_ran_node_id:se}=de;return se?a.jsxs(te,{direction:"column",spacing:0,children:[a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.id"})}),a.jsx(_e,{type:"body2",children:se.id})]}),a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.plmn"})}),a.jsx(_e,{type:"body2",children:se.plmn})]}),a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.type"})}),a.jsx(_e,{type:"body2",children:se.type})]})]}):a.jsx(a.Fragment,{})},t[14]=e,t[15]=h):h=t[15];let _;t[16]!==m||t[17]!==h?(_={key:"global_ran_node_id",label:m,cellRender:h},t[16]=m,t[17]=h,t[18]=_):_=t[18];let g;t[19]!==e?(g=e.formatMessage({id:"ngap.status.connections.ran_node_name"}),t[19]=e,t[20]=g):g=t[20];let y;t[21]!==g?(y={key:"ran_node_name",label:g},t[21]=g,t[22]=y):y=t[22];let b;t[23]!==e?(b=e.formatMessage({id:"mme.sbcap.status.connections.local_addrs"}),t[23]=e,t[24]=b):b=t[24];let x;t[25]!==b?(x={key:"local_addrs",label:b,cellRender:Qtt},t[25]=b,t[26]=x):x=t[26];let w;t[27]!==e?(w=e.formatMessage({id:"ngap.status.connections.local_port"}),t[27]=e,t[28]=w):w=t[28];let C;t[29]!==w?(C={key:"local_port",label:w},t[29]=w,t[30]=C):C=t[30];let k;t[31]!==e?(k=e.formatMessage({id:"mme.sbcap.status.connections.remote_addrs"}),t[31]=e,t[32]=k):k=t[32];let A;t[33]!==k?(A={key:"remote_addrs",label:k,cellRender:Ytt},t[33]=k,t[34]=A):A=t[34];let P;t[35]!==e?(P=e.formatMessage({id:"ngap.status.connections.remote_port"}),t[35]=e,t[36]=P):P=t[36];let T;t[37]!==P?(T={key:"remote_port",label:P},t[37]=P,t[38]=T):T=t[38];let j;t[39]!==e?(j=e.formatMessage({id:"ngap.status.connections.srb_count"}),t[39]=e,t[40]=j):j=t[40];let R;t[41]!==j?(R={key:"srb_count",label:j},t[41]=j,t[42]=R):R=t[42];let D;t[43]!==y||t[44]!==x||t[45]!==C||t[46]!==A||t[47]!==T||t[48]!==R||t[49]!==d||t[50]!==p||t[51]!==_?(D=[d,p,_,y,x,C,A,T,R],t[43]=y,t[44]=x,t[45]=C,t[46]=A,t[47]=T,t[48]=R,t[49]=d,t[50]=p,t[51]=_,t[52]=D):D=t[52];const O=D;let N;t[53]!==e?(N=e.formatMessage({id:"ngap.status.connections.actions.delete"}),t[53]=e,t[54]=N):N=t[54];let F;t[55]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),t[55]=F):F=t[55];let U;t[56]!==o?(U=de=>{const{association_id:se}=de;o(se)},t[56]=o,t[57]=U):U=t[57];let z;t[58]!==N||t[59]!==U?(z={label:N,icon:F,disabled:Wtt,onClick:U},t[58]=N,t[59]=U,t[60]=z):z=t[60];let H;t[61]!==e?(H=e.formatMessage({id:"ngap.status.connections.actions.reset"}),t[61]=e,t[62]=H):H=t[62];let W;t[63]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(ge.Refresh,{}),t[63]=W):W=t[63];let K;t[64]!==c?(K=de=>{const{association_id:se}=de;c(se)},t[64]=c,t[65]=K):K=t[65];let q;t[66]!==H||t[67]!==K?(q={label:H,icon:W,disabled:Gtt,onClick:K},t[66]=H,t[67]=K,t[68]=q):q=t[68];let X;t[69]!==z||t[70]!==q?(X=[z,q],t[69]=z,t[70]=q,t[71]=X):X=t[71];const Q=X;let Y;t[72]===Symbol.for("react.memo_cache_sentinel")?(Y=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[72]=Y):Y=t[72];let Z;t[73]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(en,{}),t[73]=Z):Z=t[73];let re;t[74]!==O||t[75]!==s.state||t[76]!==Q?(re=de=>a.jsx(Br,{autoScale:!0,data:de||[],orderBy:"association_id",page:0,loading:s.state!=="idle",rowsCount:de?.length,rowsPerPage:de?.length,rowKey:"association_id",columns:O,hidePagination:!0,rowDetail:{content:Htt},rowActions:Q,stickyRowActions:!0}),t[74]=O,t[75]=s.state,t[76]=Q,t[77]=re):re=t[77];let fe;return t[78]!==r.connections||t[79]!==re?(fe=a.jsx(I.Suspense,{fallback:Y,children:a.jsx(Qt,{resolve:r.connections,errorElement:Z,children:re})}),t[78]=r.connections,t[79]=re,t[80]=fe):fe=t[80],fe}function Htt(t){return a.jsx(Itt,{row:t})}function Gtt(){return!Ue(ie.monitoring)}function Wtt(){return!Ue(ie.monitoring)}function Ytt(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Ktt)||[]})}function Ktt(t){return{label:`${t}`,id:`${t}`}}function Qtt(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Ztt)||[]})}function Ztt(t){return{label:`${t}`,id:`${t}`}}function Xtt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Jtt(){const t=he.c(24),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"ngap.status.listeners.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:ert},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"ngap.status.listeners.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"ngap.status.listeners.transport_name"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"transport_name",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==i||t[13]!==l||t[14]!==u?(d=[i,l,u],t[12]=i,t[13]=l,t[14]=u,t[15]=d):d=t[15];const f=d;let p;t[16]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=p):p=t[16];let m;t[17]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(en,{}),t[17]=m):m=t[17];let h;t[18]!==f||t[19]!==n.state?(h=g=>a.jsx(Br,{autoScale:!0,data:g,orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:g?.length,rowsPerPage:g?.length,rowKey:"transport_name",columns:f,hidePagination:!0}),t[18]=f,t[19]=n.state,t[20]=h):h=t[20];let _;return t[21]!==r.listeners||t[22]!==h?(_=a.jsx(I.Suspense,{fallback:p,children:a.jsx(Qt,{resolve:r.listeners,errorElement:m,children:h})}),t[21]=r.listeners,t[22]=h,t[23]=_):_=t[23],_}function ert(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(trt)||[]})}function trt(t){return{label:`${t}`,id:t}}async function rrt({nf:t}){const e=$.apis.ngap.status.connections(t);return De({options:{url:e,method:"GET"}})}async function nrt({nf:t,association_id:e}){const r=`${$.apis.ngap.status.connections(t)}/${e}/remove`;return De({options:{url:r,method:"POST"}})}async function srt({nf:t,association_id:e}){const r=`${$.apis.ngap.status.connections(t)}/${e}/reset`;return De({options:{url:r,method:"POST"}})}async function irt({nf:t}){const e=$.apis.ngap.status.listeners(t);return De({options:{url:e,method:"GET"}})}function ort({nf:t}){return async({request:e})=>{const{association_id:r}=await e.json(),n=await nrt({nf:t,association_id:r});return xt(n)?Ar(n.error.title):Nt(),Ft(n)}}function art({nf:t}){return async({request:e})=>{const{association_id:r}=await e.json(),n=await srt({nf:t,association_id:r});return xt(n)?Ar(n.error.title):Nt(),Ft(n)}}function lrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:rrt({nf:t})}})}function crt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{listeners:irt({nf:t})}})}function urt({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:r.formatMessage({id:"route.ngap.connections"})},{url:"listeners",label:r.formatMessage({id:"route.ngap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:lrt({nf:e}),element:a.jsx(Vtt,{}),children:[{path:"delete",action:ort({nf:e}),loader:()=>rt("..")},{path:"reset",action:art({nf:e}),loader:()=>rt("..")}]},{path:"listeners",loader:crt({nf:e}),element:a.jsx(Jtt,{})}]}}const drt=Pr(),frt={path:"amf",handle:vr({labelIntl:"route.amf",icon:a.jsx(ge.AMF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AMF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.amf.status",to:$.urls.amfStatus}),element:a.jsx(Ao,{tabs:[{url:"ngap",label:drt.formatMessage({id:"route.ngap"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"ngap",replace:!0})},urt({path:"ngap",nf:ue.AMF})]},io(ue.AMF)]}]},prt={path:"ausf",handle:vr({labelIntl:"route.ausf",icon:a.jsx(ge.AUSF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AUSF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.AUSF)]}]};function mrt(t){const e=he.c(17),{children:r,title:n,description:s,"data-testid":i}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:"100%",maxWidth:"480px",flex:"0 0 auto"},e[0]=o):o=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={mb:2},e[1]=l):l=e[1];let c;e[2]!==n?(c=a.jsx(_e,{type:"h5",fontWeight:500,children:n}),e[2]=n,e[3]=c):c=e[3];let u;e[4]!==s?(u=a.jsx(_e,{color:"text.secondary",children:s}),e[4]=s,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==u?(d=a.jsxs(gt,{sx:l,children:[c,u]}),e[6]=c,e[7]=u,e[8]=d):d=e[8];let f;e[9]!==r?(f=a.jsx(gt,{children:r}),e[9]=r,e[10]=f):f=e[10];let p;e[11]!==d||e[12]!==f?(p=a.jsxs(Kt,{children:[d,f]}),e[11]=d,e[12]=f,e[13]=p):p=e[13];let m;return e[14]!==i||e[15]!==p?(m=a.jsx(te,{fullHeight:!0,align:"center",justify:"center",children:a.jsx(pr,{"data-testid":i,sx:o,children:p})}),e[14]=i,e[15]=p,e[16]=m):m=e[16],m}const hrt=dr().shape({username:We().required("Username is required"),password:We().required("Password is required")}),aue=t=>{const e=he.c(12),{backend:r}=t,n=Ye(),s=On(),i=gl(),o=T6e();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={username:"",password:""},e[0]=l):l=e[0];const c=l;let u;e[1]!==r||e[2]!==i?(u=async m=>{const{username:h,password:_}=m;i({username:h,password:_,backend:r},{method:"POST",encType:"application/json"})},e[1]=r,e[2]=i,e[3]=u):u=e[3];const d=u;let f;e[4]!==o||e[5]!==r||e[6]!==n||e[7]!==s?(f=m=>{const{isSubmitting:h}=m,_=h||s.state!=="idle";return a.jsx(te,{sx:{mt:2},children:a.jsx(Kd,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"username",children:g=>{const{field:y,form:b}=g,{touched:x,errors:w}=b;return a.jsx(dt,{fullWidth:!0,label:n.formatMessage({id:"login.username.label"}),placeholder:n.formatMessage({id:"login.username.placeholder"}),error:!!(x.username&&w.username),disabled:h,helperText:x.username&&w.username?n.formatMessage({id:"login.username.error"}):void 0,...y})}}),a.jsx(Ke,{name:"password",children:g=>{const{field:y,form:b}=g,{touched:x,errors:w}=b;return a.jsx(dt,{...y,fullWidth:!0,type:"password",showPasswordVisibility:!0,label:n.formatMessage({id:"login.password.label"}),placeholder:n.formatMessage({id:"login.password.placeholder"}),error:!!(x.password&&w.password),disabled:h,helperText:x.password&&w.password?n.formatMessage({id:"login.password.error"}):void 0})}}),a.jsx(Xr,{data:o}),a.jsx(Ze,{fullWidth:!0,size:"large","data-testid":"button-submit",disabled:_,loading:_,text:n.formatMessage({id:`login.submit.${r}`}),type:"submit",sx:{mt:1}})]})})})},e[4]=o,e[5]=r,e[6]=n,e[7]=s,e[8]=f):f=e[8];let p;return e[9]!==d||e[10]!==f?(p=a.jsx(a.Fragment,{children:a.jsx(Wr,{initialValues:c,validationSchema:hrt,onSubmit:d,validateOnBlur:!1,validateOnChange:!1,children:f})}),e[9]=d,e[10]=f,e[11]=p):p=e[11],p};function grt(t){const e=he.c(35),{terms:r,forbiddenNotice:n,onConfirm:s}=t,i=Ye(),[o,l]=I.useState(!1),[c,u]=I.useState(!1),d=I.useRef(null);let f,p;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{const U=d.current;if(!U)return;if(U.scrollHeight===U.clientHeight){l(!0);return}const z=()=>{U.offsetHeight+U.scrollTop===U.scrollHeight&&l(!0)};return U.addEventListener("scroll",z),()=>{U.removeEventListener("scroll",z)}},p=[],e[0]=f,e[1]=p):(f=e[0],p=e[1]),I.useEffect(f,p);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=(U,z)=>{u(z)},e[2]=m):m=e[2];const h=m;let _;e[3]!==s?(_=()=>{s&&s()},e[3]=s,e[4]=_):_=e[4];const g=_;let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={height:"100%"},e[5]=y):y=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b={maxWidth:"600px"},e[6]=b):b=e[6];let x;e[7]!==i?(x=i.formatMessage({id:"system_usage_terms.title"}),e[7]=i,e[8]=x):x=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w={maxHeight:"400px",overflow:"auto",whiteSpace:"pre-wrap"},e[9]=w):w=e[9];let C;e[10]!==r?(C=a.jsx(pr,{elevation:0,children:a.jsx(Kt,{children:a.jsx(_e,{ref:d,color:"text.secondary",sx:w,children:r})})}),e[10]=r,e[11]=C):C=e[11];let k;e[12]!==n?(k=n&&a.jsx(Lr,{severity:"warning",message:n}),e[12]=n,e[13]=k):k=e[13];const A=!o;let P;e[14]!==i?(P=i.formatMessage({id:"system_usage_terms.checkbox.accept"}),e[14]=i,e[15]=P):P=e[15];let T;e[16]!==A||e[17]!==P||e[18]!==c?(T=a.jsx(da,{disabled:A,checked:c,onChange:h,label:P}),e[16]=A,e[17]=P,e[18]=c,e[19]=T):T=e[19];const j=!c;let R;e[20]!==i?(R=i.formatMessage({id:"common.confirm"}),e[20]=i,e[21]=R):R=e[21];let D;e[22]===Symbol.for("react.memo_cache_sentinel")?(D={alignSelf:"flex-end"},e[22]=D):D=e[22];let O;e[23]!==g||e[24]!==j||e[25]!==R?(O=a.jsx(Ze,{disabled:j,text:R,onClick:g,sx:D}),e[23]=g,e[24]=j,e[25]=R,e[26]=O):O=e[26];let N;e[27]!==k||e[28]!==T||e[29]!==O||e[30]!==C?(N=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[C,k,T,O]})}),e[27]=k,e[28]=T,e[29]=O,e[30]=C,e[31]=N):N=e[31];let F;return e[32]!==N||e[33]!==x?(F=a.jsx(gt,{display:"flex",justifyContent:"center",alignItems:"center",sx:y,children:a.jsx(te,{spacing:2,sx:b,children:a.jsx(pr,{title:x,children:N})})}),e[32]=N,e[33]=x,e[34]=F):F=e[34],F}const _rt=()=>{const t=he.c(10),e=Ye(),r=zn(),[n,s]=I.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{s(!0)},t[0]=i):i=t[0];const o=i;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Dt,{variant:"rounded",sx:{height:"250px"}}),t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Tr,{}),t[2]=c):c=t[2];let u;t[3]!==e||t[4]!==r.openIdAuthorization||t[5]!==n?(u=f=>{const{auth_backends:p,system_terms:m}=f,h=p.filter(vrt);return a.jsx(a.Fragment,{children:m?.enabled&&!n?a.jsx(grt,{terms:m.terms,forbiddenNotice:m.forbidden_notice,onConfirm:o}):a.jsxs(mrt,{title:e.formatMessage({id:"login.title"}),description:e.formatMessage({id:"login.subtitle"}),"data-testid":"login-form",children:[h.length>1&&a.jsx(VA,{value:h[0],tabs:h.map(yrt)}),h.length===1&&a.jsx(aue,{backend:h[0]}),p.includes(_i.openid)&&a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.openIdAuthorization,errorElement:a.jsxs(a.Fragment,{children:[a.jsx(Oc,{sx:{my:2},children:e.formatMessage({id:"common.or"})}),a.jsx(Tr,{})]}),children:_=>_?a.jsxs(a.Fragment,{children:[a.jsx(Oc,{sx:{my:2},children:e.formatMessage({id:"common.or"})}),a.jsx(Ze,{text:"Sign in with OpenID",fullWidth:!0,startIcon:a.jsx(ge.OpenID,{}),size:"large",color:"openid",onClick:()=>{window.location.href=_.url}})]}):null})})]})})},t[3]=e,t[4]=r.openIdAuthorization,t[5]=n,t[6]=u):u=t[6];let d;return t[7]!==r.frontendConfig||t[8]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:r.frontendConfig,errorElement:c,children:u})}),t[7]=r.frontendConfig,t[8]=u,t[9]=d):d=t[9],d};function vrt(t){return t!=="openid"}function yrt(t){return{label:t,value:t,disabled:!1,content:a.jsx(aue,{backend:t})}}async function brt({request:t}){const e=new URL(t.url).searchParams,r=await t.json(),n=await KTe(r);if(!xt(n)){fie(n);const s=e.get("returnUrl")||$.urls.home,i=e.get("redirect_to");if(i){window.location.href=i;return}return rt(s)}return Ft({...n,error:{...n.error,backend:r.backend}})}async function xrt({request:t}){const{username:e,refreshToken:r}=await t.json(),n=await XTe(e,r);return xt(n)?Ar():Nt(),Ft(n)}const Srt={path:"login",loader:lqe,action:brt,element:a.jsx(_rt,{})},wrt={path:"login-openid",loader:cqe},Crt={path:"refresh-token",action:gL},Art=t=>{const e=he.c(68),{row:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"diameter.status.connections.local_peer"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==r.local_addr||e[3]!==r.local_addrs?(i=r.local_addrs&&r.local_addrs.length>0?r.local_addrs:r.local_addr?[r.local_addr]:void 0,e[2]=r.local_addr,e[3]=r.local_addrs,e[4]=i):i=e[4];let o;e[5]!==r.local_capabilities.origin_host||e[6]!==r.local_capabilities.origin_realm||e[7]!==r.local_capabilities.product_name||e[8]!==r.local_capabilities.vendor_id||e[9]!==r.local_port||e[10]!==s||e[11]!==i?(o={peer:s,origin_host:r.local_capabilities.origin_host,origin_realm:r.local_capabilities.origin_realm,addresses:i,port:r.local_port,vendor_id:r.local_capabilities.vendor_id,product_name:r.local_capabilities.product_name},e[5]=r.local_capabilities.origin_host,e[6]=r.local_capabilities.origin_realm,e[7]=r.local_capabilities.product_name,e[8]=r.local_capabilities.vendor_id,e[9]=r.local_port,e[10]=s,e[11]=i,e[12]=o):o=e[12];let l;e[13]!==n?(l=n.formatMessage({id:"diameter.status.connections.remote_peer"}),e[13]=n,e[14]=l):l=e[14];let c;e[15]!==r.remote_addr||e[16]!==r.remote_addrs?(c=r.remote_addrs&&r.remote_addrs.length>0?r.remote_addrs:r.remote_addr?[r.remote_addr]:void 0,e[15]=r.remote_addr,e[16]=r.remote_addrs,e[17]=c):c=e[17];let u;e[18]!==r.remote_capabilities.origin_host||e[19]!==r.remote_capabilities.origin_realm||e[20]!==r.remote_capabilities.product_name||e[21]!==r.remote_capabilities.vendor_id||e[22]!==r.remote_port||e[23]!==l||e[24]!==c?(u={peer:l,origin_host:r.remote_capabilities.origin_host,origin_realm:r.remote_capabilities.origin_realm,addresses:c,port:r.remote_port,vendor_id:r.remote_capabilities.vendor_id,product_name:r.remote_capabilities.product_name},e[18]=r.remote_capabilities.origin_host,e[19]=r.remote_capabilities.origin_realm,e[20]=r.remote_capabilities.product_name,e[21]=r.remote_capabilities.vendor_id,e[22]=r.remote_port,e[23]=l,e[24]=c,e[25]=u):u=e[25];let d;e[26]!==o||e[27]!==u?(d=[o,u],e[26]=o,e[27]=u,e[28]=d):d=e[28];const p=d;let m;e[29]!==n?(m=n.formatMessage({id:"diameter.status.connections.peer"}),e[29]=n,e[30]=m):m=e[30];let h;e[31]!==m?(h={key:"peer",label:m},e[31]=m,e[32]=h):h=e[32];let _;e[33]!==n?(_=n.formatMessage({id:"diameter.status.connections.capabilities.origin_host"}),e[33]=n,e[34]=_):_=e[34];let g;e[35]!==_?(g={key:"origin_host",label:_},e[35]=_,e[36]=g):g=e[36];let y;e[37]!==n?(y=n.formatMessage({id:"diameter.status.connections.capabilities.origin_realm"}),e[37]=n,e[38]=y):y=e[38];let b;e[39]!==y?(b={key:"origin_realm",label:y},e[39]=y,e[40]=b):b=e[40];let x;e[41]!==n?(x=n.formatMessage({id:"diameter.status.connections.addrs"}),e[41]=n,e[42]=x):x=e[42];let w;e[43]!==x?(w={key:"addresses",label:x,cellRender:Mrt},e[43]=x,e[44]=w):w=e[44];let C;e[45]!==n?(C=n.formatMessage({id:"diameter.status.connections.port"}),e[45]=n,e[46]=C):C=e[46];let k;e[47]!==C?(k={key:"port",label:C},e[47]=C,e[48]=k):k=e[48];let A;e[49]!==n?(A=n.formatMessage({id:"diameter.status.connections.capabilities.vendor_id"}),e[49]=n,e[50]=A):A=e[50];let P;e[51]!==A?(P={key:"vendor_id",label:A},e[51]=A,e[52]=P):P=e[52];let T;e[53]!==n?(T=n.formatMessage({id:"diameter.status.connections.capabilities.product_name"}),e[53]=n,e[54]=T):T=e[54];let j;e[55]!==T?(j={key:"product_name",label:T},e[55]=T,e[56]=j):j=e[56];let R;e[57]!==g||e[58]!==b||e[59]!==w||e[60]!==k||e[61]!==P||e[62]!==j||e[63]!==h?(R=[h,g,b,w,k,P,j],e[57]=g,e[58]=b,e[59]=w,e[60]=k,e[61]=P,e[62]=j,e[63]=h,e[64]=R):R=e[64];const D=R;let O;return e[65]!==D||e[66]!==p?(O=a.jsx(pr,{title:"Peers",folder:!0,dense:!0,elevation:2,children:a.jsx(Br,{data:p,orderBy:"peer",page:0,rowsCount:p.length,rowsPerPage:p.length,rowKey:"peer",columns:D,hidePagination:!0,hideRowsCount:!0})}),e[65]=D,e[66]=p,e[67]=O):O=e[67],O};function krt(t){return{label:`${t}`,id:`${t}`}}function Mrt(t){const{addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(krt)||[]})}function Prt(){const t=he.c(60),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async H=>{n({connectionId:H},{method:"POST",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==e?(l=e.formatMessage({id:"diameter.status.connections.user"}),t[2]=e,t[3]=l):l=t[3];let c;t[4]!==l?(c={key:"user",label:l},t[4]=l,t[5]=c):c=t[5];let u;t[6]!==e?(u=e.formatMessage({id:"diameter.status.connections.name"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]!==u?(d={key:"name",label:u},t[8]=u,t[9]=d):d=t[9];let f;t[10]!==e?(f=e.formatMessage({id:"diameter.status.connections.side"}),t[10]=e,t[11]=f):f=t[11];let p;t[12]!==f?(p={key:"side",label:f},t[12]=f,t[13]=p):p=t[13];let m;t[14]!==e?(m=e.formatMessage({id:"diameter.status.connections.stack"}),t[14]=e,t[15]=m):m=t[15];let h;t[16]!==m?(h={key:"stack",label:m},t[16]=m,t[17]=h):h=t[17];let _;t[18]!==e?(_=e.formatMessage({id:"diameter.status.connections.watchdog"}),t[18]=e,t[19]=_):_=t[19];let g;t[20]!==_?(g={key:"watchdog",label:_},t[20]=_,t[21]=g):g=t[21];let y;t[22]!==e?(y=e.formatMessage({id:"diameter.status.connections.connection_type"}),t[22]=e,t[23]=y):y=t[23];let b;t[24]!==y?(b={key:"connection_type",label:y},t[24]=y,t[25]=b):b=t[25];let x;t[26]!==e?(x=e.formatMessage({id:"diameter.status.connections.applications"}),t[26]=e,t[27]=x):x=t[27];let w;t[28]!==x?(w={key:"applications",label:x,cellRender:Irt},t[28]=x,t[29]=w):w=t[29];let C;t[30]!==e?(C=e.formatMessage({id:"diameter.status.connections.vendor_specific_applications"}),t[30]=e,t[31]=C):C=t[31];let k;t[32]!==C?(k={key:"vendor_specific_applications",label:C,cellRender:Ert},t[32]=C,t[33]=k):k=t[33];let A;t[34]!==g||t[35]!==b||t[36]!==w||t[37]!==k||t[38]!==c||t[39]!==d||t[40]!==p||t[41]!==h?(A=[c,d,p,h,g,b,w,k],t[34]=g,t[35]=b,t[36]=w,t[37]=k,t[38]=c,t[39]=d,t[40]=p,t[41]=h,t[42]=A):A=t[42];const P=A;let T;t[43]!==e?(T=e.formatMessage({id:"diameter.status.connections.actions.disconnect"}),t[43]=e,t[44]=T):T=t[44];let j;t[45]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Disconnect,{}),t[45]=j):j=t[45];let R;t[46]!==o?(R=async H=>{const{name:W}=H;o(W)},t[46]=o,t[47]=R):R=t[47];let D;t[48]!==T||t[49]!==R?(D=[{label:T,icon:j,disabled:Trt,onClick:R}],t[48]=T,t[49]=R,t[50]=D):D=t[50];const O=D;let N;t[51]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[51]=N):N=t[51];let F;t[52]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(en,{}),t[52]=F):F=t[52];let U;t[53]!==P||t[54]!==s.state||t[55]!==O?(U=H=>a.jsx(Br,{autoScale:!0,data:H||[],orderBy:"name",page:0,loading:s.state!=="idle",rowsCount:H?.length,rowsPerPage:H?.length,rowKey:"name",columns:P,hidePagination:!0,rowDetail:{content:jrt},rowActions:O,stickyRowActions:!0}),t[53]=P,t[54]=s.state,t[55]=O,t[56]=U):U=t[56];let z;return t[57]!==r.connections||t[58]!==U?(z=a.jsx(I.Suspense,{fallback:N,children:a.jsx(Qt,{resolve:r.connections,errorElement:F,children:U})}),t[57]=r.connections,t[58]=U,t[59]=z):z=t[59],z}function jrt(t){return a.jsx(Art,{row:t})}function Trt(){return!Ue(ie.monitoring)}function Ert(t){const{vendor_specific_applications:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Rrt)||[]})}function Rrt(t){const{application_id:e,vendor_id:r}=t;return{label:`${e} (${r})`,id:`${e} (${r})`}}function Irt(t){const{applications:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Drt)||[]})}function Drt(t){return{label:`${t}`,id:`${t}`}}function $rt(){const t=he.c(64),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"diameter.status.peers.status"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"status",label:s,cellRender:zrt},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"diameter.status.peers.name"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"name",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"diameter.status.peers.stack"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"stack",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"diameter.status.peers.product_name"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"product_name",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"diameter.status.peers.vendor_id"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"vendor_id",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"diameter.status.peers.remote_host"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"remote_host",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"diameter.status.peers.remote_realm"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"remote_realm",label:g},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"diameter.status.peers.addrs"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"addrs",label:b,cellRender:Urt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"diameter.status.peers.app_ids"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"app_ids",label:w,cellRender:Nrt},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==e?(k=e.formatMessage({id:"diameter.status.peers.transports"}),t[36]=e,t[37]=k):k=t[37];let A;t[38]!==k?(A={key:"transports",label:k,cellRender:Ort},t[38]=k,t[39]=A):A=t[39];let P;t[40]!==e?(P=e.formatMessage({id:"diameter.status.peers.connection"}),t[40]=e,t[41]=P):P=t[41];let T;t[42]!==P?(T={key:"connection",label:P},t[42]=P,t[43]=T):T=t[43];let j;t[44]!==i||t[45]!==_||t[46]!==y||t[47]!==x||t[48]!==C||t[49]!==A||t[50]!==T||t[51]!==l||t[52]!==u||t[53]!==f||t[54]!==m?(j=[i,l,u,f,m,_,y,x,C,A,T],t[44]=i,t[45]=_,t[46]=y,t[47]=x,t[48]=C,t[49]=A,t[50]=T,t[51]=l,t[52]=u,t[53]=f,t[54]=m,t[55]=j):j=t[55];const R=j;let D;t[56]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[56]=D):D=t[56];let O;t[57]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(en,{}),t[57]=O):O=t[57];let N;t[58]!==R||t[59]!==n.state?(N=U=>a.jsx(Br,{autoScale:!0,data:U,orderBy:"name",page:0,loading:n.state==="loading",rowsCount:U?.length,rowsPerPage:U?.length,rowKey:"name",columns:R,hidePagination:!0}),t[58]=R,t[59]=n.state,t[60]=N):N=t[60];let F;return t[61]!==r.peers||t[62]!==N?(F=a.jsx(I.Suspense,{fallback:D,children:a.jsx(Qt,{resolve:r.peers,errorElement:O,children:N})}),t[61]=r.peers,t[62]=N,t[63]=F):F=t[63],F}function Ort(t){const{transports:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Lrt)||[]})}function Lrt(t){return{label:t,id:t}}function Nrt(t){const{app_ids:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Frt)||[]})}function Frt(t){return{label:`${t}`,id:t}}function Urt(t){const{addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Brt)||[]})}function Brt(t){return{label:`${t}`,id:t}}function zrt(t){const{status:e}=t;return a.jsx(bi,{label:e,status:e==="UP"?nn.SUCCESS:nn.ERROR})}async function qrt({nf:t}){const e=$.apis.diameter.status.connections(t);return De({options:{url:e,method:"GET"}})}async function Vrt({nf:t,connectionId:e}){const r=$.apis.diameter.status.disconnect(t);return De({options:{url:r,method:"POST",data:JSON.stringify({connection_id:e})}})}async function Hrt({nf:t}){const e=$.apis.diameter.status.peers(t);return De({options:{url:e,method:"GET"}})}function Grt({nf:t}){return async({request:e})=>{const r=await e.json(),{connectionId:n}=r,s=await Vrt({nf:t,connectionId:n});return xt(s)?Ar():Nt(),Ft(s)}}function Wrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:qrt({nf:t})}})}function Yrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{peers:Hrt({nf:t})}})}function qp({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:r.formatMessage({id:"route.diameter.connections"})},{url:"peers",label:r.formatMessage({id:"route.diameter.peers"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",action:Grt({nf:e}),loader:Wrt({nf:e}),element:a.jsx(Prt,{}),errorElement:a.jsx(en,{})},{path:"peers",loader:Yrt({nf:e}),element:a.jsx($rt,{}),errorElement:a.jsx(en,{})}]}}function Krt(){const t=he.c(43),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async()=>{n({},{method:"POST",encType:"application/json",action:"flush"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==e?(l=e.formatMessage({id:"denypeer.status.gtpc.id"}),t[2]=e,t[3]=l):l=t[3];let c;t[4]!==l?(c={key:"id",label:l},t[4]=l,t[5]=c):c=t[5];let u;t[6]!==e?(u=e.formatMessage({id:"denypeer.status.gtpc.blocked_count"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]!==u?(d={key:"blocked_count",label:u},t[8]=u,t[9]=d):d=t[9];let f;t[10]!==e?(f=e.formatMessage({id:"denypeer.status.gtpc.expires"}),t[10]=e,t[11]=f):f=t[11];let p;t[12]!==f?(p={key:"expires",label:f},t[12]=f,t[13]=p):p=t[13];let m;t[14]!==e?(m=e.formatMessage({id:"denypeer.status.gtpc.rule_type"}),t[14]=e,t[15]=m):m=t[15];let h;t[16]!==m?(h={key:"rule_type",label:m},t[16]=m,t[17]=h):h=t[17];let _;t[18]!==e?(_=e.formatMessage({id:"denypeer.status.gtpc.blocked"}),t[18]=e,t[19]=_):_=t[19];let g;t[20]!==_?(g={key:"blocked",label:_},t[20]=_,t[21]=g):g=t[21];let y;t[22]!==e?(y=e.formatMessage({id:"denypeer.status.gtpc.type"}),t[22]=e,t[23]=y):y=t[23];let b;t[24]!==y?(b={key:"type",label:y},t[24]=y,t[25]=b):b=t[25];let x;t[26]!==g||t[27]!==b||t[28]!==c||t[29]!==d||t[30]!==p||t[31]!==h?(x=[c,d,p,h,g,b],t[26]=g,t[27]=b,t[28]=c,t[29]=d,t[30]=p,t[31]=h,t[32]=x):x=t[32];const w=x;let C;t[33]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[33]=C):C=t[33];let k;t[34]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(en,{}),t[34]=k):k=t[34];let A;t[35]!==w||t[36]!==o||t[37]!==e||t[38]!==s.state?(A=T=>a.jsx(Br,{autoScale:!0,data:T||[],orderBy:"id",page:0,loading:s.state!=="idle",rowsCount:T?.length,rowsPerPage:T?.length,rowKey:"id",columns:w,hidePagination:!0,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{disabled:s.state==="loading",loading:s.state==="submitting",variant:"outlined",onClick:()=>void o(),text:e.formatMessage({id:"denypeer.status.gtpc.actions.flush"})})})}),t[35]=w,t[36]=o,t[37]=e,t[38]=s.state,t[39]=A):A=t[39];let P;return t[40]!==r.blockedPeers||t[41]!==A?(P=a.jsx(I.Suspense,{fallback:C,children:a.jsx(Qt,{resolve:r.blockedPeers,errorElement:k,children:A})}),t[40]=r.blockedPeers,t[41]=A,t[42]=P):P=t[42],P}function Qrt(){const t=he.c(54),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpc.status.peers.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpc.status.peers.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpc.status.peers.remote_addr"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpc.status.peers.version"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"version",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"gtpc.status.peers.reset_counter"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"reset_counter",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"gtpc.status.peers.uptime_sec"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"uptime_sec",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"gtpc.status.peers.last_reset_at"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"last_reset_at",label:g,cellRender:Xrt},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"gtpc.status.peers.connected_at"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"connected_at",label:b,cellRender:Zrt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"gtpc.status.peers.num_tuns"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"num_tuns",label:w},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==i||t[37]!==_||t[38]!==y||t[39]!==x||t[40]!==C||t[41]!==l||t[42]!==u||t[43]!==f||t[44]!==m?(k=[i,l,u,f,m,_,y,x,C],t[36]=i,t[37]=_,t[38]=y,t[39]=x,t[40]=C,t[41]=l,t[42]=u,t[43]=f,t[44]=m,t[45]=k):k=t[45];const A=k;let P;t[46]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[46]=P):P=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[47]=T):T=t[47];let j;t[48]!==A||t[49]!==n.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"transport_name",columns:A,hidePagination:!0}),t[48]=A,t[49]=n.state,t[50]=j):j=t[50];let R;return t[51]!==r.peers||t[52]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:r.peers,errorElement:T,children:j})}),t[51]=r.peers,t[52]=j,t[53]=R):R=t[53],R}function Zrt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Xrt(t){const{last_reset_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Jrt(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpc.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpc.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpc.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpc.status.sockets.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.sockets||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.sockets,errorElement:_,children:g})}),t[26]=r.sockets,t[27]=g,t[28]=y):y=t[28],y}async function ent({nf:t}){const e=$.apis.denypeer.status.gtpc(t);return De({options:{url:e,method:"GET"}})}async function tnt({nf:t}){const e=$.apis.denypeer.status.flushBlocked(t);return De({options:{url:e,method:"POST"}})}function rnt({nf:t}){return async()=>{const e=await tnt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function nnt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{blockedPeers:ent({nf:t})}})}async function snt({nf:t}){const e=$.apis.gtpc.status.sockets(t);return De({options:{url:e,method:"GET"}})}async function int({nf:t}){const e=$.apis.gtpc.status.peers(t);return De({options:{url:e,method:"GET"}})}function ont({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:snt({nf:t})}})}function ant({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{peers:int({nf:t})}})}function uk({path:t,nf:e,showBlockedPeers:r}){const n=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:n.formatMessage({id:"route.gtpc.sockets"})},{url:"peers",label:n.formatMessage({id:"route.gtpc.peers"})},...r?[{url:"blocked-peers",label:n.formatMessage({id:"route.gtpc.denypeer.blocked_peers"})}]:[]]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:ont({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Jrt,{})},{path:"peers",loader:ant({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Qrt,{})},...r?[{path:"blocked-peers",loader:nnt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Krt,{}),children:[{action:rnt({nf:e}),path:"flush",loader:()=>rt("..")}]}]:[]]}}const vX=Pr(),lnt={path:"bmsc",handle:vr({labelIntl:"route.bmsc",icon:a.jsx(ge.BMSC,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.BMSC)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.bmsc.status",to:$.urls.bmscStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:vX.formatMessage({id:"route.diameter"})},{url:"gtpc",label:vX.formatMessage({id:"route.bmsc.status.gtpc"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.BMSC}),uk({path:"gtpc",nf:ue.BMSC,showBlockedPeers:!1})]},io(ue.BMSC)]}]};function cnt(){const t=he.c(39),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"route.gtpp.status.local_address"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addr",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"route.gtpp.status.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"route.gtpp.status.remote_address"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"route.gtpp.status.remote_host"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_host",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"route.gtpp.status.remote_port"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"remote_port",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"route.gtpp.status.transport_name"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"transport_name",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==i||t[25]!==_||t[26]!==l||t[27]!==u||t[28]!==f||t[29]!==m?(g=[i,l,u,f,m,_],t[24]=i,t[25]=_,t[26]=l,t[27]=u,t[28]=f,t[29]=m,t[30]=g):g=t[30];const y=g;let b;t[31]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[31]=b):b=t[31];let x;t[32]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(en,{}),t[32]=x):x=t[32];let w;t[33]!==y||t[34]!==n.state?(w=k=>a.jsx(Br,{autoScale:!0,data:k,orderBy:"local_addr",page:0,loading:n.state!=="idle",rowsCount:k?.length,rowsPerPage:k?.length,rowKey:"local_addr",columns:y,hidePagination:!0,stickyRowActions:!0}),t[33]=y,t[34]=n.state,t[35]=w):w=t[35];let C;return t[36]!==r.connections||t[37]!==w?(C=a.jsx(I.Suspense,{fallback:b,children:a.jsx(Qt,{resolve:r.connections,errorElement:x,children:w})}),t[36]=r.connections,t[37]=w,t[38]=C):C=t[38],C}async function unt({nf:t}){const e=$.apis.gtpPrime.status.connections(t);return De({options:{url:e,method:"GET"}})}function dnt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:unt({nf:t})}})}const fnt=Pr();function pnt({path:t,nf:e}){return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:fnt.formatMessage({id:"route.gtpp.status.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:dnt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(cnt,{})}]}}const yX=Pr(),mnt={path:"chf",handle:vr({labelIntl:"route.chf",icon:a.jsx(ge.CHF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.CHF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.chf.status",to:$.urls.chfStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:yX.formatMessage({id:"route.diameter"})},{url:"gtpprime",label:yX.formatMessage({id:"route.chf.status.gtp_prime"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.CHF}),pnt({path:"gtpprime",nf:ue.CHF})]},io(ue.CHF)]}]},hnt=Pr(),gnt={path:"dra",handle:vr({labelIntl:"route.dra",icon:a.jsx(ge.DRA,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.DRA)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.dra.status",to:$.urls.draStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:hnt.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.DRA})]},io(ue.DRA)]}]},_nt=t=>{const e=he.c(26),{id:r,children:n,onConfirm:s,onCancel:i}=t,o=Ye(),{dialogClose:l}=Jt();let c;e[0]!==l||e[1]!==r||e[2]!==s?(c=()=>{l(r),s()},e[0]=l,e[1]=r,e[2]=s,e[3]=c):c=e[3];const u=c;let d;e[4]!==l||e[5]!==r||e[6]!==i?(d=()=>{l(r),i?.()},e[4]=l,e[5]=r,e[6]=i,e[7]=d):d=e[7];const f=d;let p;e[8]!==n?(p=a.jsx(_s,{children:n}),e[8]=n,e[9]=p):p=e[9];let m;e[10]!==o?(m=o.formatMessage({id:"confirm_dialog.cancel"}),e[10]=o,e[11]=m):m=e[11];let h;e[12]!==f||e[13]!==m?(h=a.jsx(Ze,{text:m,onClick:f,variant:"outlined"}),e[12]=f,e[13]=m,e[14]=h):h=e[14];let _;e[15]!==o?(_=o.formatMessage({id:"confirm_dialog.ok"}),e[15]=o,e[16]=_):_=e[16];let g;e[17]!==u||e[18]!==_?(g=a.jsx(Ze,{text:_,onClick:u}),e[17]=u,e[18]=_,e[19]=g):g=e[19];let y;e[20]!==h||e[21]!==g?(y=a.jsxs(Ti,{children:[h,g]}),e[20]=h,e[21]=g,e[22]=y):y=e[22];let b;return e[23]!==p||e[24]!==y?(b=a.jsxs(a.Fragment,{children:[p,y]}),e[23]=p,e[24]=y,e[25]=b):b=e[25],b},di=()=>{const{dialogOpen:t,dialogClose:e}=Jt(),r=Ye();return{openConfirmDialog:({id:s,title:i=r.formatMessage({id:"confirm_dialog.title"}),text:o,onConfirm:l,onCancel:c,closeOnBackdropClick:u=!0})=>{t({id:s,title:i,content:()=>a.jsx(_nt,{id:s,onConfirm:l,onCancel:c,children:a.jsx(_e,{children:o})}),closeOnBackdropClick:u})},closeConfirmDialog:e}},Lm=Pr(),vnt=dr().shape({fileContent:We().required(Lm.formatMessage({id:"dsm_zones.upload.required"}))}),ynt=dr().shape({server:We().required(Lm.formatMessage({id:"dsm_zones.upload.required"})),files:yr().when("fileUpload",(t,e)=>t?e.min(1,Lm.formatMessage({id:"dsm_zones.upload.min"})).max(1,Lm.formatMessage({id:"dsm_zones.upload.max"})).required(Lm.formatMessage({id:"dsm_zones.upload.required"})):e),fileContent:We().when("fileUpload",(t,e)=>t?e:e.required(Lm.formatMessage({id:"dsm_zones.upload.required"}))),name:We().when("fileUpload",(t,e)=>t?e:e.required(Lm.formatMessage({id:"dsm_zones.upload.required"})))}),bnt=t=>{const e=he.c(20),{dsmZone:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,load:c}=i,{data:u,state:d,submit:f}=o;let p,m;e[0]!==r||e[1]!==c?(p=()=>{const{name:A,server:P}=r;c(`${$.urls.dsmZones}/${P}/${A}`)},m=[r,c],e[0]=r,e[1]=c,e[2]=p,e[3]=m):(p=e[2],m=e[3]),I.useEffect(p,m);let h;e[4]!==f?(h=A=>{const{server:P,name:T,fileContent:j}=A,R=new File([j],T),D=new FormData;D.set("server",P),D.set("file",R),f(D,{method:"POST",encType:"multipart/form-data",action:`${$.urls.dsmZones}/create`})},e[4]=f,e[5]=h):h=e[5];const _=h,{name:g,server:y}=r,b=l?.zone?.content||"";let x;e[6]!==g||e[7]!==y||e[8]!==b?(x={server:y,name:g,fileContent:b},e[6]=g,e[7]=y,e[8]=b,e[9]=x):x=e[9];const w=x;if(!l){let A;return e[10]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),e[10]=A):A=e[10],A}let C;e[11]!==s||e[12]!==u||e[13]!==d||e[14]!==n?(C=A=>{const{dirty:P}=A;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(yv,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"server",children:xnt}),a.jsx(Ke,{name:"name",children:Snt}),a.jsx(Ke,{name:"fileContent",children:T=>{const{field:j,meta:R,form:D}=T,{setFieldValue:O}=D;return a.jsx(Fv,{value:j.value,label:n.formatMessage({id:"dsm_zones.upload.form.file.content"}),error:R.error,language:"plaintext",onChange:N=>{O(j.name,N)}})}}),a.jsx(Xr,{data:u})]})}),a.jsx(vv,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:d!=="idle",onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!P||!Ue(ie.management),loading:d!=="idle"})]})})]})},e[11]=s,e[12]=u,e[13]=d,e[14]=n,e[15]=C):C=e[15];let k;return e[16]!==_||e[17]!==w||e[18]!==C?(k=a.jsx(Wr,{initialValues:w,validationSchema:vnt,onSubmit:_,children:C}),e[16]=_,e[17]=w,e[18]=C,e[19]=k):k=e[19],k};function xnt(t){const{field:e}=t;return a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"body1",color:"text.secondary",children:e.name}),a.jsx(_e,{type:"body1",fontWeight:"600",children:e.value})]})}function Snt(t){const{field:e}=t;return a.jsxs(te,{spacing:0,sx:{pb:1},children:[a.jsx(_e,{type:"body1",color:"text.secondary",children:e.name}),a.jsx(_e,{type:"body1",fontWeight:"600",children:e.value})]})}const wnt="array",Cnt="bit",bX="bits",Ant="byte",xX="bytes",Yg="",knt="exponent",Mnt="function",SX="iec",Pnt="Invalid number",jnt="Invalid rounding method",LI="jedec",Tnt="object",wX=".",Ent="round",Rnt="s",Int="si",Dnt="kbit",$nt="kB",Ont=" ",Lnt="string",Nnt="0",NI={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function a7(t,{bits:e=!1,pad:r=!1,base:n=-1,round:s=2,locale:i=Yg,localeOptions:o={},separator:l=Yg,spacer:c=Ont,symbols:u={},standard:d=Yg,output:f=Lnt,fullform:p=!1,fullforms:m=[],exponent:h=-1,roundingMethod:_=Ent,precision:g=0}={}){let y=h,b=Number(t),x=[],w=0,C=Yg;d===Int?(n=10,d=LI):d===SX||d===LI?n=2:n===2?d=SX:(n=10,d=LI);const k=n===10?1e3:1024,A=p===!0,P=b<0,T=Math[_];if(typeof t!="bigint"&&isNaN(t))throw new TypeError(Pnt);if(typeof T!==Mnt)throw new TypeError(jnt);if(P&&(b=-b),(y===-1||isNaN(y))&&(y=Math.floor(Math.log(b)/Math.log(k)),y<0&&(y=0)),y>8&&(g>0&&(g+=8-y),y=8),f===knt)return y;if(b===0)x[0]=0,C=x[1]=NI.symbol[d][e?bX:xX][y];else{w=b/(n===2?Math.pow(2,y*10):Math.pow(1e3,y)),e&&(w=w*8,w>=k&&y<8&&(w=w/k,y++));const j=Math.pow(10,y>0?s:0);x[0]=T(w*j)/j,x[0]===k&&y<8&&h===-1&&(x[0]=1,y++),C=x[1]=n===10&&y===1?e?Dnt:$nt:NI.symbol[d][e?bX:xX][y]}if(P&&(x[0]=-x[0]),g>0&&(x[0]=x[0].toPrecision(g)),x[1]=u[x[1]]||x[1],i===!0?x[0]=x[0].toLocaleString():i.length>0?x[0]=x[0].toLocaleString(i,o):l.length>0&&(x[0]=x[0].toString().replace(wX,l)),r&&s>0){const j=x[0].toString(),R=l||(j.match(/(\D)/g)||[]).pop()||wX,D=j.toString().split(R),O=D[1]||Yg,N=O.length,F=s-N;x[0]=`${D[0]}${R}${O.padEnd(N+F,Nnt)}`}return A&&(x[1]=m[y]?m[y]:NI.fullform[d][y]+(e?Cnt:Ant)+(x[0]===1?Yg:Rnt)),f===wnt?x:f===Tnt?{value:x[0],symbol:x[1],exponent:y,unit:C}:x.join(c)}const Fnt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Q_(t,e,r){const n=Unt(t),{webkitRelativePath:s}=t,i=typeof e=="string"?e:typeof s=="string"&&s.length>0?s:`./${t.name}`;return typeof n.path!="string"&&CX(n,"path",i),CX(n,"relativePath",i),n}function Unt(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),s=Fnt.get(n);s&&Object.defineProperty(t,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return t}function CX(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const Bnt=[".DS_Store","Thumbs.db"];function znt(t){return Rh(this,void 0,void 0,function*(){return _3(t)&&qnt(t.dataTransfer)?Wnt(t.dataTransfer,t.type):Vnt(t)?Hnt(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?Gnt(t):[]})}function qnt(t){return _3(t)}function Vnt(t){return _3(t)&&_3(t.target)}function _3(t){return typeof t=="object"&&t!==null}function Hnt(t){return h$(t.target.files).map(e=>Q_(e))}function Gnt(t){return Rh(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Q_(r))})}function Wnt(t,e){return Rh(this,void 0,void 0,function*(){if(t.items){const r=h$(t.items).filter(s=>s.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(Ynt));return AX(lue(n))}return AX(h$(t.files).map(r=>Q_(r)))})}function AX(t){return t.filter(e=>Bnt.indexOf(e.name)===-1)}function h$(t){if(t===null)return[];const e=[];for(let r=0;r<t.length;r++){const n=t[r];e.push(n)}return e}function Ynt(t){if(typeof t.webkitGetAsEntry!="function")return kX(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?cue(e):kX(t,e)}function lue(t){return t.reduce((e,r)=>[...e,...Array.isArray(r)?lue(r):[r]],[])}function kX(t,e){return Rh(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const i=yield t.getAsFileSystemHandle();if(i===null)throw new Error(`${t} is not a File`);if(i!==void 0){const o=yield i.getFile();return o.handle=i,Q_(o)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Q_(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function Knt(t){return Rh(this,void 0,void 0,function*(){return t.isDirectory?cue(t):Qnt(t)})}function cue(t){const e=t.createReader();return new Promise((r,n)=>{const s=[];function i(){e.readEntries(o=>Rh(this,void 0,void 0,function*(){if(o.length){const l=Promise.all(o.map(Knt));s.push(l),i()}else try{const l=yield Promise.all(s);r(l)}catch(l){n(l)}}),o=>{n(o)})}i()})}function Qnt(t){return Rh(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const s=Q_(n,t.fullPath);e(s)},n=>{r(n)})})})}var gw={},MX;function Znt(){return MX||(MX=1,gw.__esModule=!0,gw.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",s=(t.type||"").toLowerCase(),i=s.replace(/\/.*$/,"");return r.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):s===l})}return!0}),gw}var Xnt=Znt();const FI=Pi(Xnt);function PX(t){return tst(t)||est(t)||due(t)||Jnt()}function Jnt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:328:In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gue(t,e){if(t){if(typeof t=="string")return _$(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _$(t,e)}}function _$(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tst(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],s=!0,i=!1,o,l;try{for(r=r.call(t);!(s=(o=r.next()).done)&&(n.push(o.value),!(e&&n.length===e));s=!0);}catch(c){i=!0,l=c}finally{try{!s&&r.return!=null&&r.return()}finally{if(i)throw l}}return n}}function Est(t){if(Array.isArray(t))return t}function DX(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function si(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DX(Object(r),!0).forEach(function(n){v$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DX(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function v$(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y3(t,e){if(t==null)return{};var r=Rst(t,e),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Rst(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}var l7=I.forwardRef(function(t,e){var r=t.children,n=y3(t,xst),s=vue(n),i=s.open,o=y3(s,Sst);return I.useImperativeHandle(e,function(){return{open:i}},[i]),Yn.createElement(I.Fragment,null,r(si(si({},o),{},{open:i})))});l7.displayName="Dropzone";var _ue={disabled:!1,getFilesFromEvent:znt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};l7.defaultProps=_ue;l7.propTypes={children:Je.func,accept:Je.objectOf(Je.arrayOf(Je.string)),multiple:Je.bool,preventDropOnDocument:Je.bool,noClick:Je.bool,noKeyboard:Je.bool,noDrag:Je.bool,noDragEventsBubbling:Je.bool,minSize:Je.number,maxSize:Je.number,maxFiles:Je.number,disabled:Je.bool,getFilesFromEvent:Je.func,onFileDialogCancel:Je.func,onFileDialogOpen:Je.func,useFsAccessApi:Je.bool,autoFocus:Je.bool,onDragEnter:Je.func,onDragLeave:Je.func,onDragOver:Je.func,onDrop:Je.func,onDropAccepted:Je.func,onDropRejected:Je.func,onError:Je.func,validator:Je.func};var y$={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vue(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=si(si({},_ue),t),r=e.accept,n=e.disabled,s=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,l=e.multiple,c=e.maxFiles,u=e.onDragEnter,d=e.onDragLeave,f=e.onDragOver,p=e.onDrop,m=e.onDropAccepted,h=e.onDropRejected,_=e.onFileDialogCancel,g=e.onFileDialogOpen,y=e.useFsAccessApi,b=e.autoFocus,x=e.preventDropOnDocument,w=e.noClick,C=e.noKeyboard,k=e.noDrag,A=e.noDragEventsBubbling,P=e.onError,T=e.validator,j=I.useMemo(function(){return vst(r)},[r]),R=I.useMemo(function(){return _st(r)},[r]),D=I.useMemo(function(){return typeof g=="function"?g:$X},[g]),O=I.useMemo(function(){return typeof _=="function"?_:$X},[_]),N=I.useRef(null),F=I.useRef(null),U=I.useReducer(Ist,y$),z=UI(U,2),H=z[0],W=z[1],K=H.isFocused,q=H.isFileDialogActive,X=I.useRef(typeof window<"u"&&window.isSecureContext&&y&&gst()),Q=function(){!X.current&&q&&setTimeout(function(){if(F.current){var we=F.current.files;we.length||(W({type:"closeDialog"}),O())}},300)};I.useEffect(function(){return window.addEventListener("focus",Q,!1),function(){window.removeEventListener("focus",Q,!1)}},[F,q,O,X]);var Y=I.useRef([]),Z=function(we){N.current&&N.current.contains(we.target)||(we.preventDefault(),Y.current=[])};I.useEffect(function(){return x&&(document.addEventListener("dragover",IX,!1),document.addEventListener("drop",Z,!1)),function(){x&&(document.removeEventListener("dragover",IX),document.removeEventListener("drop",Z))}},[N,x]),I.useEffect(function(){return!n&&b&&N.current&&N.current.focus(),function(){}},[N,b,n]);var re=I.useCallback(function(Re){P?P(Re):console.error(Re)},[P]),fe=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re),Y.current=[].concat(Ast(Y.current),[Re.target]),_w(Re)&&Promise.resolve(s(Re)).then(function(we){if(!(v3(Re)&&!A)){var Me=we.length,$e=Me>0&&fst({files:we,accept:j,minSize:o,maxSize:i,multiple:l,maxFiles:c,validator:T}),Ve=Me>0&&!$e;W({isDragAccept:$e,isDragReject:Ve,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Re)}}).catch(function(we){return re(we)})},[s,u,re,A,j,o,i,l,c,T]),de=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re);var we=_w(Re);if(we&&Re.dataTransfer)try{Re.dataTransfer.dropEffect="copy"}catch{}return we&&f&&f(Re),!1},[f,A]),se=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re);var we=Y.current.filter(function($e){return N.current&&N.current.contains($e)}),Me=we.indexOf(Re.target);Me!==-1&&we.splice(Me,1),Y.current=we,!(we.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_w(Re)&&d&&d(Re))},[N,d,A]),le=I.useCallback(function(Re,we){var Me=[],$e=[];Re.forEach(function(Ve){var Ne=fue(Ve,j),Oe=UI(Ne,2),ft=Oe[0],Ct=Oe[1],Et=pue(Ve,o,i),at=UI(Et,2),$t=at[0],Ee=at[1],Be=T?T(Ve):null;if(ft&&$t&&!Be)Me.push(Ve);else{var qt=[Ct,Ee];Be&&(qt=qt.concat(Be)),$e.push({file:Ve,errors:qt.filter(function(ar){return ar})})}}),(!l&&Me.length>1||l&&c>=1&&Me.length>c)&&(Me.forEach(function(Ve){$e.push({file:Ve,errors:[dst]})}),Me.splice(0)),W({acceptedFiles:Me,fileRejections:$e,isDragReject:$e.length>0,type:"setFiles"}),p&&p(Me,$e,we),$e.length>0&&h&&h($e,we),Me.length>0&&m&&m(Me,we)},[W,l,j,o,i,c,p,m,h,T]),ee=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re),Y.current=[],_w(Re)&&Promise.resolve(s(Re)).then(function(we){v3(Re)&&!A||le(we,Re)}).catch(function(we){return re(we)}),W({type:"reset"})},[s,le,re,A]),J=I.useCallback(function(){if(X.current){W({type:"openDialog"}),D();var Re={multiple:l,types:R};window.showOpenFilePicker(Re).then(function(we){return s(we)}).then(function(we){le(we,null),W({type:"closeDialog"})}).catch(function(we){yst(we)?(O(we),W({type:"closeDialog"})):bst(we)?(X.current=!1,F.current?(F.current.value=null,F.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):re(we)});return}F.current&&(W({type:"openDialog"}),D(),F.current.value=null,F.current.click())},[W,D,O,y,le,re,R,l]),me=I.useCallback(function(Re){!N.current||!N.current.isEqualNode(Re.target)||(Re.key===" "||Re.key==="Enter"||Re.keyCode===32||Re.keyCode===13)&&(Re.preventDefault(),J())},[N,J]),pe=I.useCallback(function(){W({type:"focus"})},[]),Se=I.useCallback(function(){W({type:"blur"})},[]),ve=I.useCallback(function(){w||(hst()?setTimeout(J,0):J())},[w,J]),xe=function(we){return n?null:we},qe=function(we){return C?null:xe(we)},Le=function(we){return k?null:xe(we)},Te=function(we){A&&we.stopPropagation()},je=I.useMemo(function(){return function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=Re.refKey,Me=we===void 0?"ref":we,$e=Re.role,Ve=Re.onKeyDown,Ne=Re.onFocus,Oe=Re.onBlur,ft=Re.onClick,Ct=Re.onDragEnter,Et=Re.onDragOver,at=Re.onDragLeave,$t=Re.onDrop,Ee=y3(Re,wst);return si(si(v$({onKeyDown:qe(gu(Ve,me)),onFocus:qe(gu(Ne,pe)),onBlur:qe(gu(Oe,Se)),onClick:xe(gu(ft,ve)),onDragEnter:Le(gu(Ct,fe)),onDragOver:Le(gu(Et,de)),onDragLeave:Le(gu(at,se)),onDrop:Le(gu($t,ee)),role:typeof $e=="string"&&$e!==""?$e:"presentation"},Me,N),!n&&!C?{tabIndex:0}:{}),Ee)}},[N,me,pe,Se,ve,fe,de,se,ee,C,k,n]),Ge=I.useCallback(function(Re){Re.stopPropagation()},[]),nt=I.useMemo(function(){return function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=Re.refKey,Me=we===void 0?"ref":we,$e=Re.onChange,Ve=Re.onClick,Ne=y3(Re,Cst),Oe=v$({accept:j,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe(gu($e,ee)),onClick:xe(gu(Ve,Ge)),tabIndex:-1},Me,F);return si(si({},Oe),Ne)}},[F,r,l,ee,n]);return si(si({},H),{},{isFocused:K&&!n,getRootProps:je,getInputProps:nt,rootRef:N,inputRef:F,open:xe(J)})}function Ist(t,e){switch(e.type){case"focus":return si(si({},t),{},{isFocused:!0});case"blur":return si(si({},t),{},{isFocused:!1});case"openDialog":return si(si({},y$),{},{isFileDialogActive:!0});case"closeDialog":return si(si({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return si(si({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return si(si({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return si({},y$);default:return t}}function $X(){}const Z_=t=>{const e=he.c(81),{name:r,label:n,onChange:s,accept:i,maxFiles:o,multiple:l,onDropAccepted:c,onDropRejected:u,minSize:d,maxSize:f,noDrag:p,disabled:m,onError:h,validator:_,value:g,size:y,sx:b,formError:x}=t,w=n===void 0?"Drag and drop or click to upload your file":n;let C;e[0]!==g?(C=g||[],e[0]=g,e[1]=C):C=e[1];const[k,A]=I.useState(C);let P,T;e[2]!==g?(P=()=>{g&&A(g)},T=[g],e[2]=g,e[3]=P,e[4]=T):(P=e[3],T=e[4]),I.useEffect(P,T);let j;e[5]!==l||e[6]!==s?(j=Re=>{A(we=>{const Me=l?[...we,...Re]:[...Re];return s&&s(Me),Me})},e[5]=l,e[6]=s,e[7]=j):j=e[7];const R=j;let D;e[8]!==i||e[9]!==m||e[10]!==R||e[11]!==o||e[12]!==f||e[13]!==d||e[14]!==l||e[15]!==p||e[16]!==c||e[17]!==u||e[18]!==h||e[19]!==_?(D={onDrop:R,accept:i,maxFiles:o,multiple:l,onDropAccepted:c,onDropRejected:u,minSize:d,maxSize:f,noDrag:p,disabled:m,onError:h,validator:_},e[8]=i,e[9]=m,e[10]=R,e[11]=o,e[12]=f,e[13]=d,e[14]=l,e[15]=p,e[16]=c,e[17]=u,e[18]=h,e[19]=_,e[20]=D):D=e[20];const{getRootProps:O,getInputProps:N,isDragActive:F,fileRejections:U}=vue(D);let z;e[21]!==s?(z=Re=>{A(we=>{const Me=we?.filter($e=>$e.name!==Re);return s&&s(Me),Me})},e[21]=s,e[22]=z):z=e[22];const H=z;let W;e[23]!==k?(W=k.map(Dst),e[23]=k,e[24]=W):W=e[24];const K=W;let q;e[25]!==U?(q=new Map,U.forEach(Re=>{const{errors:we}=Re,Me=we[0];q.set(Me.code,Me.message)}),e[25]=U,e[26]=q):q=e[26];let X;e[27]!==q?(X=Array.from(q),e[27]=q,e[28]=X):X=e[28];const Q=X;let Y;y==="small"?Y=K.length?"3px":"6px":Y=K.length?"11px":"14px";const Z=Y;let re;e[29]===Symbol.for("react.memo_cache_sentinel")?(re={position:"relative"},e[29]=re):re=e[29];const fe=`field-${r}`;let de;e[30]!==m?(de=!m&&{cursor:"pointer","&:hover":{borderColor:"text.primary"}},e[30]=m,e[31]=de):de=e[31];let se;e[32]!==F?(se=F&&{borderColor:"primary.main",backgroundColor:"primary.light"},e[32]=F,e[33]=se):se=e[33];let le;e[34]!==U.length||e[35]!==x?(le=(U.length||x)&&{borderColor:"error.main"},e[34]=U.length,e[35]=x,e[36]=le):le=e[36];let ee;e[37]!==Z||e[38]!==b||e[39]!==de||e[40]!==se||e[41]!==le?(ee={py:Z,px:1.75,borderWidth:"2px",borderRadius:"4px",borderColor:"divider",borderStyle:"dashed",outline:"none",...de,...se,...le,...b},e[37]=Z,e[38]=b,e[39]=de,e[40]=se,e[41]=le,e[42]=ee):ee=e[42];let J;e[43]!==O?(J=O(),e[43]=O,e[44]=J):J=e[44];let me;e[45]!==N?(me=N(),e[45]=N,e[46]=me):me=e[46];let pe;e[47]!==r?(pe=r&&{"data-testid":`field-${r}`},e[47]=r,e[48]=pe):pe=e[48];let Se;e[49]!==me||e[50]!==pe?(Se=a.jsx("input",{...me,...pe}),e[49]=me,e[50]=pe,e[51]=Se):Se=e[51];let ve;e[52]!==m||e[53]!==K||e[54]!==H||e[55]!==w||e[56]!==o||e[57]!==l?(ve=K.length?a.jsx(gt,{sx:{position:"relative",top:w?"2px":"1px"},children:a.jsx(ks,{onDelete:H,items:K,size:"small",disabled:m})}):a.jsxs(_e,{children:[w,l&&` (${o?`max ${o}`:"multiple"} files can be uploaded)`]}),e[52]=m,e[53]=K,e[54]=H,e[55]=w,e[56]=o,e[57]=l,e[58]=ve):ve=e[58];let xe;e[59]!==ee||e[60]!==J||e[61]!==Se||e[62]!==ve?(xe=a.jsxs(gt,{sx:ee,...J,children:[Se,ve]}),e[59]=ee,e[60]=J,e[61]=Se,e[62]=ve,e[63]=xe):xe=e[63];let qe;e[64]===Symbol.for("react.memo_cache_sentinel")?(qe={ml:1.75},e[64]=qe):qe=e[64];let Le;e[65]!==i||e[66]!==Q.length||e[67]!==x?(Le=i&&!Q.length&&!x&&a.jsxs(_e,{type:"caption",color:"text.secondary",children:["Only ",Object.keys(i).join(",")," files are accepted"]}),e[65]=i,e[66]=Q.length,e[67]=x,e[68]=Le):Le=e[68];let Te;e[69]!==Q?(Te=Q.map($st),e[69]=Q,e[70]=Te):Te=e[70];let je;e[71]!==x?(je=x&&a.jsx(_e,{color:"error.main",type:"caption",children:x}),e[71]=x,e[72]=je):je=e[72];let Ge;e[73]!==Le||e[74]!==Te||e[75]!==je?(Ge=a.jsxs(gt,{sx:qe,children:[Le,Te,je]}),e[73]=Le,e[74]=Te,e[75]=je,e[76]=Ge):Ge=e[76];let nt;return e[77]!==fe||e[78]!==xe||e[79]!==Ge?(nt=a.jsxs("section",{style:re,"data-testid":fe,children:[xe,Ge]}),e[77]=fe,e[78]=xe,e[79]=Ge,e[80]=nt):nt=e[80],nt};function Dst(t){return{id:t.name,label:t.name+" - "+a7(t.size)}}function $st(t,e){const[,r]=t;return a.jsx(_e,{color:"error.main",type:"caption",children:r},e)}function ti(t){const e=he.c(11),{color:r,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:f}=t,p=r===void 0?"primary":r;let m;return e[0]!==f||e[1]!==p||e[2]!==o||e[3]!==c||e[4]!==n||e[5]!==u||e[6]!==i||e[7]!==l||e[8]!==s||e[9]!==d?(m=a.jsx(W9e,{color:p,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:f}),e[0]=f,e[1]=p,e[2]=o,e[3]=c,e[4]=n,e[5]=u,e[6]=i,e[7]=l,e[8]=s,e[9]=d,e[10]=m):m=e[10],m}const Ost=()=>{const t=he.c(11),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{submit:s,data:i,state:o}=n;let l;t[0]!==s?(l=m=>{const{files:h,server:_,name:g,fileUpload:y,fileContent:b}=m;let x;y?x=h[0]:x=new File([b],g);const w=new FormData;w.set("server",_),w.set("file",x),s(w,{method:"POST",encType:"multipart/form-data",action:`${$.urls.dsmZones}/create`})},t[0]=s,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={files:[],server:"",fileUpload:!0,name:"",fileContent:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==o?(f=m=>{const{dirty:h}=m;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"server",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.server"}),size:"medium",error:!!y.error,helperText:y.error})}}),a.jsx(Ke,{name:"fileUpload",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,onChange:(x,w)=>{b(g.name,w)}}),a.jsx(_e,{children:e.formatMessage({id:"dsm_zones.upload.form.file.upload"})})]})}}),a.jsx(Ke,{name:"name",children:_=>{const{field:g,meta:y,form:b}=_,{values:x}=b;return x.fileUpload?null:a.jsx(dt,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.name"}),size:"medium",error:!!y.error,helperText:y.error})}}),a.jsx(Ke,{name:"fileContent",children:_=>{const{field:g,meta:y,form:b}=_,{values:x,setFieldValue:w}=b;return x.fileUpload?null:a.jsx(Fv,{value:g.value,label:e.formatMessage({id:"dsm_zones.upload.form.file.content"}),error:y.error,language:"plaintext",onChange:C=>{w(g.name,C)}})}}),a.jsx(Ke,{name:"files",children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x,values:w}=b;return w.fileUpload?a.jsxs(a.Fragment,{children:[a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"dsm_zones.upload.form.description"})}),a.jsx(Z_,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.file"}),size:"medium",maxFiles:1,multiple:!1,disabled:o!=="idle",onChange:C=>{setTimeout(()=>{if(!C.length){x(g.name,[]);return}x(g.name,C)},0)},formError:y.error})]}):null}}),a.jsx(Xr,{data:i})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:o!=="idle",onClick:()=>r()}),a.jsx(Ze,{text:e.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!h,loading:o!=="idle"})]})})]})},t[3]=i,t[4]=r,t[5]=e,t[6]=o,t[7]=f):f=t[7];let p;return t[8]!==c||t[9]!==f?(p=a.jsx(Wr,{initialValues:d,validationSchema:ynt,onSubmit:c,children:f}),t[8]=c,t[9]=f,t[10]=p):p=t[10],p},OX=Pr(),_l=t=>Ue(t)?{label:OX.formatMessage({id:"common.edit"}),icon:a.jsx(ge.Edit,{})}:{label:OX.formatMessage({id:"common.view"}),icon:a.jsx(ge.Info,{})},Lst=()=>{const t=he.c(57),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),i=gr();let o;t[0]!==r||t[1]!==e?(o=()=>{r({title:e.formatMessage({id:"dsm_zones.upload.form.title"}),fullScreen:!0,content:Nst})},t[0]=r,t[1]=e,t[2]=o):o=t[2];const l=o;let c;t[3]!==r||t[4]!==e?(c=q=>{r({title:e.formatMessage({id:"dsm_zones.upload.form.edit.title"}),fullScreen:!0,content:()=>a.jsx(bnt,{dsmZone:q})})},t[3]=r,t[4]=e,t[5]=c):c=t[5];const u=c;let d;t[6]!==i||t[7]!==e||t[8]!==n?(d=q=>{const{name:X,server:Q}=q;n({text:e.formatMessage({id:"dsm_zones.delete.dialog.confirm"}),onConfirm:()=>{i.submit({name:X,server:Q},{method:"DELETE",encType:"application/json",action:`${$.urls.dsmZones}/delete`})}})},t[6]=i,t[7]=e,t[8]=n,t[9]=d):d=t[9];const f=d;let p;t[10]!==i?(p=q=>{const{name:X,server:Q}=q;i.submit({name:X,server:Q},{method:"POST",encType:"application/json",action:`${$.urls.dsmZones}/download`})},t[10]=i,t[11]=p):p=t[11];const m=p;let h;t[12]!==e?(h=e.formatMessage({id:"dsm_zones.table.id"}),t[12]=e,t[13]=h):h=t[13];let _;t[14]!==h?(_={key:"server",label:h},t[14]=h,t[15]=_):_=t[15];let g;t[16]!==e?(g=e.formatMessage({id:"dsm_zones.table.name"}),t[16]=e,t[17]=g):g=t[17];let y;t[18]!==g?(y={key:"name",label:g},t[18]=g,t[19]=y):y=t[19];let b;t[20]!==_||t[21]!==y?(b=[_,y],t[20]=_,t[21]=y,t[22]=b):b=t[22];const x=b;let w;t[23]===Symbol.for("react.memo_cache_sentinel")?(w=_l(ie.management),t[23]=w):w=t[23];let C;t[24]!==u?(C={...w,onClick:q=>void u(q)},t[24]=u,t[25]=C):C=t[25];let k;t[26]!==e?(k=e.formatMessage({id:"dsm_zones.table.actions.download"}),t[26]=e,t[27]=k):k=t[27];let A;t[28]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(ge.Download,{}),t[28]=A):A=t[28];let P;t[29]!==m?(P=q=>void m(q),t[29]=m,t[30]=P):P=t[30];let T;t[31]!==k||t[32]!==P?(T={label:k,icon:A,onClick:P,wrapped:!0},t[31]=k,t[32]=P,t[33]=T):T=t[33];let j;t[34]!==e?(j=e.formatMessage({id:"dsm_zones.table.actions.delete"}),t[34]=e,t[35]=j):j=t[35];let R,D;t[36]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Trash,{}),D=Ue(ie.management),t[36]=R,t[37]=D):(R=t[36],D=t[37]);let O;t[38]!==f?(O=q=>void f(q),t[38]=f,t[39]=O):O=t[39];let N;t[40]!==j||t[41]!==O?(N={label:j,icon:R,disabled:!D,onClick:O,wrapped:!0},t[40]=j,t[41]=O,t[42]=N):N=t[42];let F;t[43]!==C||t[44]!==T||t[45]!==N?(F=[C,T,N],t[43]=C,t[44]=T,t[45]=N,t[46]=F):F=t[46];const U=F;let z;t[47]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[47]=z):z=t[47];let H;t[48]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Tr,{}),t[48]=H):H=t[48];let W;t[49]!==x||t[50]!==l||t[51]!==e||t[52]!==U?(W=q=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Add,{}),disabled:!Ue(ie.management),text:e.formatMessage({id:"dsm_zones.upload.buttons.new"}),onClick:l})}),a.jsx(Br,{autoScale:!0,data:q,orderBy:"server",columns:x,rowActions:U,stickyRowActions:!0,page:0,labelDisplayedRows:Fst,rowsCount:q.length,rowsPerPage:q.length,rowKey:"server"})]}),t[49]=x,t[50]=l,t[51]=e,t[52]=U,t[53]=W):W=t[53];let K;return t[54]!==s.zones||t[55]!==W?(K=a.jsx(I.Suspense,{fallback:z,children:a.jsx(Qt,{resolve:s.zones,errorElement:H,children:W})}),t[54]=s.zones,t[55]=W,t[56]=K):K=t[56],K};function Nst(){return a.jsx(Ost,{})}function Fst(){return""}function c7(t,e=""){const r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function yue(t,e,r="text/plain"){const n=window.URL.createObjectURL(new Blob([t],{type:r}));c7(n,e)}function Ust(){const t=$.apis.dsm.zones;return De({options:{url:t,method:"GET"}})}function Bst(t,e){const r=`${$.apis.dsm.zones}/${t}`,n=new FormData;return n.append("file",e),De({options:{url:r,method:"POST",data:n,headers:{"content-type":"multipart/form-data"}}})}function zst(t,e){const r=`${$.apis.dsm.zones}/${t}/${e}`;return De({options:{url:r,method:"DELETE"}})}async function bue(t,e){const r=`${$.apis.dsm.zones}/${t}/${e}`;return{content:await De({options:{url:r,method:"GET"}})}}const xue=Pr();async function qst({request:t}){const e=await t.formData(),r=e.get("server"),n=e.get("file"),s=await Bst(r,n);return xt(s)||Nt(),Ft(s)}async function Vst({request:t}){const{server:e,name:r}=await t.json(),n=await zst(e,r);return xt(n)?Ar(n.error.detail||xue.formatMessage({id:"dsm_zones.delete.result.message_ko"})):Nt(),Ft(n)}async function Hst({request:t}){const{server:e,name:r}=await t.json(),n=await bue(e,r);return xt(n)?Ar(n.error.detail||xue.formatMessage({id:"dsm_zones.download.result.message_ko"})):yue(n.content,r),Ft(n)}function Gst(t){return Wt({loaderArgs:t,deferred:!0,data:{zones:Ust()}})}function Wst(t){const{server:e,name:r}=t.params;return!e||!r?null:Wt({loaderArgs:t,deferred:!0,data:{zone:bue(e,r)}})}const Yst={path:"dsm",handle:vr({labelIntl:"route.dsm",icon:a.jsx(ge.DSM,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.DSM,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.DSM),{path:"zones",handle:vr({labelIntl:"route.dsm.zones",to:"/dms/zones"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Gst,element:a.jsx(Lst,{})},{path:":server/:name",loader:Wst,element:a.jsx(ur,{to:$.urls.dsmZones,replace:!0})},{path:"create",action:qst,loader:()=>rt("..")},{path:"delete",action:Vst,loader:()=>rt("..")},{path:"download",action:Hst,loader:()=>rt("..")}]}]}]},Kst=t=>{const e=he.c(17),{onCancel:r,onSubmit:n,validationSchema:s,renderComponentForm:i,initialValues:o,submitButtonText:l,cancelButtonText:c,validateOnChange:u,validateOnBlur:d,isReadonly:f,isLoading:p}=t,m=Ye();let h;e[0]!==n?(h=async y=>n(y),e[0]=n,e[1]=h):h=e[1];let _;e[2]!==c||e[3]!==m||e[4]!==p||e[5]!==f||e[6]!==i||e[7]!==l?(_=y=>{const{isSubmitting:b,dirty:x}=y;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:i()}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:c||m.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:b}),!f&&a.jsx(Ze,{text:l||m.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:b||!x||p,loading:b||p})]})})]})},e[2]=c,e[3]=m,e[4]=p,e[5]=f,e[6]=i,e[7]=l,e[8]=_):_=e[8];let g;return e[9]!==o||e[10]!==r||e[11]!==h||e[12]!==_||e[13]!==d||e[14]!==u||e[15]!==s?(g=a.jsx(Wr,{initialValues:o,validationSchema:s,onSubmit:h,onReset:r,validateOnChange:u,validateOnBlur:d,children:_}),e[9]=o,e[10]=r,e[11]=h,e[12]=_,e[13]=d,e[14]=u,e[15]=s,e[16]=g):g=e[16],g},Sue=t=>{const e=he.c(24),{description:r,exampleFileUrl:n,filesLabel:s,max:i,accept:o,acceptEncrypted:l,alert:c}=t,u=Ye();let d;e[0]!==r||e[1]!==n||e[2]!==u?(d=r||(n?u.formatMessage({id:"form_import_files.description"}):void 0),e[0]=r,e[1]=n,e[2]=u,e[3]=d):d=e[3];let f;e[4]!==n?(f=n&&a.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:"example"}),e[4]=n,e[5]=f):f=e[5];let p;e[6]!==d||e[7]!==f?(p=a.jsxs(_e,{children:[d,f]}),e[6]=d,e[7]=f,e[8]=p):p=e[8];let m;e[9]!==c?(m=c&&a.jsx(Lr,{...c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==o||e[12]!==s||e[13]!==u||e[14]!==i?(h=a.jsx(Ke,{name:"files",children:y=>{const{field:b,meta:x,form:w}=y,{setFieldValue:C,isSubmitting:k}=w;return a.jsx(Z_,{...b,label:s||u.formatMessage({id:"form_import_files.file"}),size:"medium",accept:o,maxFiles:i,multiple:i>1,disabled:k,onChange:A=>{setTimeout(()=>{if(!A.length){C(b.name,[]);return}C(b.name,A)},0)},formError:x.error})}}),e[11]=o,e[12]=s,e[13]=u,e[14]=i,e[15]=h):h=e[15];let _;e[16]!==l||e[17]!==u?(_=l&&a.jsx(Ke,{name:"encrypted",children:y=>{const{field:b,form:x}=y,{setFieldValue:w,isSubmitting:C}=x;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:b.value,onChange:(k,A)=>{w(b.name,A)},disabled:C}),a.jsx(_e,{children:u.formatMessage({id:"form_import_files.encrypted"})})]})}}),e[16]=l,e[17]=u,e[18]=_):_=e[18];let g;return e[19]!==p||e[20]!==m||e[21]!==h||e[22]!==_?(g=a.jsxs(te,{spacing:2,children:[p,m,h,_]}),e[19]=p,e[20]=m,e[21]=h,e[22]=_,e[23]=g):g=e[23],g},wue=t=>{const e=he.c(20),{onSubmit:r,onCancel:n,...s}=t,i=Ye(),o=Kst,l=()=>a.jsx(Sue,{...s});let c;e[0]!==i?(c=i.formatMessage({id:"form_import_files.save"}),e[0]=i,e[1]=c):c=e[1];let u;e[2]!==i?(u=i.formatMessage({id:"form_import_files.cancel"}),e[2]=i,e[3]=u):u=e[3];let d;e[4]!==r?(d=async g=>r(g),e[4]=r,e[5]=d):d=e[5];const f=dr().shape({files:yr().min(s.min,i.formatMessage({id:"form_import_files.min"},{num:s.min})).max(s.max,i.formatMessage({id:"form_import_files.max"},{num:s.max})).required(s.requiredMessage?s.requiredMessage:i.formatMessage({id:"form_import_files.required"})),...s.acceptEncrypted&&{encrypted:li()}});let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let m;e[7]!==s.acceptEncrypted?(m=s.acceptEncrypted&&{encrypted:!1},e[7]=s.acceptEncrypted,e[8]=m):m=e[8];let h;e[9]!==m?(h={files:p,...m},e[9]=m,e[10]=h):h=e[10];let _;return e[11]!==o||e[12]!==n||e[13]!==l||e[14]!==c||e[15]!==u||e[16]!==d||e[17]!==f||e[18]!==h?(_=a.jsx(o,{renderComponentForm:l,submitButtonText:c,cancelButtonText:u,onSubmit:d,onCancel:n,validationSchema:f,initialValues:h}),e[11]=o,e[12]=n,e[13]=l,e[14]=c,e[15]=u,e[16]=d,e[17]=f,e[18]=h,e[19]=_):_=e[19],_},x_=Pr();var Cue=(t=>(t.WHITELISTED="WHITELISTED",t.GREYLISTED="GREYLISTED",t.BLACKLISTED="BLACKLISTED",t))(Cue||{});const J0=Object.keys(Cue),Qst=dr().shape({supi:We().strict(!0).matches(new RegExp($.regex.supi)).required(x_.formatMessage({id:"eir_autorules.new_rule.form_errors.required"}))}),Zst=dr().shape({pei:We().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"})).strict(!0).matches(/^(imei-[0-9]{8}|imei-[0-9]{14,15}|mac((-[0-9a-fA-F]{2}){6})(-untrusted)?|eui((-[0-9a-fA-F]{2}){8}))$/),supi:We().strict(!0).matches(new RegExp($.regex.supi)),status:We().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"})),enabled:li().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"}))}),Xst=dr().shape({status:We().required(x_.formatMessage({id:"eir_rules.edit_rule.form_errors.required"})),enabled:li().required(x_.formatMessage({id:"eir_rules.edit_rule.form_errors.required"}))}),Jst=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=m=>{const{supi:h}=m;h&&o({supi:h},{action:`${$.urls.eirAutoRules}/create`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={supi:""},t[2]=u):u=t[2];let d;t[3]!==r?(d=()=>r(),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==e||t[7]!==i?(f=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"supi",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_autorules.new_rule.supi"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"new-autorule-button-cancel",text:e.formatMessage({id:"eir_autorules.new_rule.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{"data-testid":"new-autorule-button-save",text:e.formatMessage({id:"eir_autorules.new_rule.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=f):f=t[8];let p;return t[9]!==c||t[10]!==d||t[11]!==f?(p=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:Qst,onSubmit:c,onReset:d,children:f})}),t[9]=c,t[10]=d,t[11]=f,t[12]=p):p=t[12],p},eit=()=>{const t=he.c(31),e=Ye(),{dialogOpen:r,dialogClose:n}=Jt(),{upsertFetcher:s}=Ys(),{state:i,submit:o}=s;let l;t[0]!==o?(l=k=>{const A=new FormData;A.append("file",k),o(A,{action:$.urls.eirAutorulesCreateBulk_Action,method:"POST",encType:"multipart/form-data"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]!==r||t[3]!==e?(u=()=>{r({title:e.formatMessage({id:"eir_autorules.toolbar.new_autorule"}),content:tit,closeOnBackdropClick:!1})},t[2]=r,t[3]=e,t[4]=u):u=t[4];const d=u;let f;t[5]!==n||t[6]!==r||t[7]!==c||t[8]!==e?(f=()=>{r({title:e.formatMessage({id:"eir_autorules.toolbar.import_rules"}),content:()=>a.jsx(wue,{onSubmit:k=>c(k.files[0]),onCancel:()=>n(),min:1,max:1,filesLabel:e.formatMessage({id:"eir_autorules.import.file"}),accept:{"text/csv":[".csv"]},requiredMessage:e.formatMessage({id:"eir_autorules.import.form_errors.required"}),description:e.formatMessage({id:"eir_autorules.import.description"}),exampleFileUrl:"/files/eir_autorules_provisioning_example.csv"}),closeOnBackdropClick:!1})},t[5]=n,t[6]=r,t[7]=c,t[8]=e,t[9]=f):f=t[9];const p=f;let m;t[10]!==e?(m=e.formatMessage({id:"eir_autorules.toolbar.import_rules"}),t[10]=e,t[11]=m):m=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Upload,{}),t[12]=h):h=t[12];let _;t[13]!==i?(_=i!=="idle"||!Ue(ie.provisioning),t[13]=i,t[14]=_):_=t[14];let g;t[15]!==p||t[16]!==m||t[17]!==_?(g=a.jsx(Ze,{"data-testid":"toolbar-button-import-rules",variant:"outlined",text:m,startIcon:h,onClick:p,disabled:_}),t[15]=p,t[16]=m,t[17]=_,t[18]=g):g=t[18];let y;t[19]!==e?(y=e.formatMessage({id:"eir_autorules.toolbar.new_autorule"}),t[19]=e,t[20]=y):y=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(ge.Add,{}),t[21]=b):b=t[21];let x;t[22]!==i?(x=i!=="idle"||!Ue(ie.provisioning),t[22]=i,t[23]=x):x=t[23];let w;t[24]!==d||t[25]!==x||t[26]!==y?(w=a.jsx(Ze,{"data-testid":"toolbar-button-new-autorule",text:y,startIcon:b,onClick:d,disabled:x}),t[24]=d,t[25]=x,t[26]=y,t[27]=w):w=t[27];let C;return t[28]!==w||t[29]!==g?(C=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[g,w]}),t[28]=w,t[29]=g,t[30]=C):C=t[30],C};function tit(){return a.jsx(Jst,{})}const rit=()=>{const t=he.c(47),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==i||t[1]!==e||t[2]!==r?(m=async z=>{const{supi:H}=z;H&&r({text:e.formatMessage({id:"eir_autorules.actions.confirm_delete"}),onConfirm:()=>{i({supi:H},{action:$.urls.eirAutorulesDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"eir_autorules.table.header.supi"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"supi",label:_,cellRender:nit},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"eir_autorules.table.header.created_at"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"created_at",label:y,cellRender:sit},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"eir_autorules.table.header.modified_at"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"modified_at",label:x,cellRender:iit},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==g||t[17]!==b||t[18]!==w?(C=[g,b,w],t[16]=g,t[17]=b,t[18]=w,t[19]=C):C=t[19];const k=C;let A;t[20]!==e?(A=e.formatMessage({id:"eir_autorules.actions.delete"}),t[20]=e,t[21]=A):A=t[21];let P;t[22]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Trash,{}),t[22]=P):P=t[22];let T;t[23]!==h?(T=z=>void h(z),t[23]=h,t[24]=T):T=t[24];let j;t[25]!==o||t[26]!==s.state?(j=s.state!=="idle"||o!=="idle"||!Ue(ie.provisioning),t[25]=o,t[26]=s.state,t[27]=j):j=t[27];let R;t[28]!==T||t[29]!==j||t[30]!==A?(R=[{label:A,icon:P,onClick:T,disabled:j}],t[28]=T,t[29]=j,t[30]=A,t[31]=R):R=t[31];const D=R;let O;t[32]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(te,{sx:{height:"100%"},children:a.jsx(Dt,{variant:"rounded",height:"100%"})}),t[32]=O):O=t[32];let N;t[33]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(Tr,{}),t[33]=N):N=t[33];let F;t[34]!==d||t[35]!==u||t[36]!==k||t[37]!==o||t[38]!==p||t[39]!==f||t[40]!==l||t[41]!==c||t[42]!==D?(F=z=>{const{data:H,metadata:W}=z;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(eit,{})}),a.jsx(Br,{autoScale:!0,loading:o!=="idle",orderBy:"supi",columns:k,data:H,page:p(W),labelDisplayedRows:oit,rowsCount:f(W),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"supi",rowActions:D,stickyRowActions:!0,onPageChange:d(W)})]})},t[34]=d,t[35]=u,t[36]=k,t[37]=o,t[38]=p,t[39]=f,t[40]=l,t[41]=c,t[42]=D,t[43]=F):F=t[43];let U;return t[44]!==n.autorules||t[45]!==F?(U=a.jsx(I.Suspense,{fallback:O,children:a.jsx(Qt,{resolve:n.autorules,errorElement:N,children:F})}),t[44]=n.autorules,t[45]=F,t[46]=U):U=t[46],U};function nit(t){const{supi:e}=t;return e?a.jsx(_e,{fontSize:"body2",children:e}):a.jsx(_e,{fontSize:"body2",children:"*"})}function sit(t){const{created_at:e}=t;return a.jsx(_e,{fontSize:"body2",children:Mr(e)})}function iit(t){const{modified_at:e}=t;return a.jsx(_e,{fontSize:"body2",children:Mr(e)})}function oit(){return""}const ait=t=>{const e=he.c(30),{ruleId:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=`${$.urls.eirRules}/${r}`;let o;e[0]!==i?(o={editLoadTo:i},e[0]=i,e[1]=o):o=e[1];const{dataFetcher:l,upsertFetcher:c,isLoading:u}=Ys(o),{data:d,state:f}=l,{data:p,state:m,submit:h}=c;let _;e[2]!==r||e[3]!==h?(_=async C=>{const{status:k,enabled:A}=C;!C||!r||!k||!A||h({id:r,enabled:A,status:k},{action:`${$.urls.eirRules}/update`,method:"POST",encType:"application/json"})},e[2]=r,e[3]=h,e[4]=_):_=e[4];const g=_;let y;e:{if(!d){let O;e[5]===Symbol.for("react.memo_cache_sentinel")?(O={status:"GREYLISTED",enabled:!0,pei:"",autorule:!1,created_at:"",modified_at:"",supi:""},e[5]=O):O=e[5],y=O;break e}const C=d.eirRule?.status??"WHITELISTED",k=d.eirRule.enabled??!0,A=d.eirRule?.pei??"",P=d.eirRule?.autorule??!1,T=d.eirRule?.created_at??"",j=d.eirRule?.modified_at??"",R=d.eirRule?.supi??"";let D;e[6]!==P||e[7]!==T||e[8]!==j||e[9]!==R||e[10]!==C||e[11]!==k||e[12]!==A?(D={status:C,enabled:k,pei:A,autorule:P,created_at:T,modified_at:j,supi:R},e[6]=P,e[7]=T,e[8]=j,e[9]=R,e[10]=C,e[11]=k,e[12]=A,e[13]=D):D=e[13],y=D}const b=y;let x;e[14]!==p||e[15]!==s||e[16]!==m||e[17]!==b.autorule||e[18]!==b.created_at||e[19]!==b.modified_at||e[20]!==b.pei||e[21]!==b.supi||e[22]!==n||e[23]!==u||e[24]!==f?(x=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),children:[a.jsx(_s,{loading:u,children:a.jsxs(te,{spacing:2,children:[a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.created_at"}),size:"small",value:Mr(b.created_at),name:"created_at"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.modified_at"}),size:"small",value:Mr(b.modified_at),name:"modified_at"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.autorule"}),size:"small",value:b.autorule,name:"autorule"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.pei"}),size:"small",value:b.pei,name:"pei"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.supi"}),size:"small",value:b.supi,name:"supi"}),a.jsx(Ke,{name:"status",children:C=>{const{field:k,meta:A}=C;return a.jsx(qs,{...k,label:n.formatMessage({id:"eir_rules.edit_rule.status"}),size:"small",error:!!A.error,helperText:A.error,disabled:m!=="idle"||f!=="idle",children:J0.map(P=>a.jsx(En,{value:P,children:n.formatMessage({id:`eir_rules.edit_rule.status.${P}`})},P))})}}),a.jsx(Ke,{name:"enabled",children:C=>{const{field:k,meta:A}=C;return a.jsxs(qs,{...k,label:n.formatMessage({id:"eir_rules.edit_rule.enabled"}),size:"small",error:!!A.error,helperText:A.error,disabled:m!=="idle"||f!=="idle",children:[a.jsx(En,{value:"true",children:n.formatMessage({id:"eir_rules.edit_rule.enabled.true"})}),a.jsx(En,{value:"false",children:n.formatMessage({id:"eir_rules.edit_rule.enabled.false"})})]})}}),a.jsx(Xr,{data:p})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"edit-rule-button-cancel",text:n.formatMessage({id:"eir_rules.edit_rule.cancel"}),variant:"outlined",disabled:m!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"edit-rule-button-save",text:n.formatMessage({id:"eir_rules.edit_rule.save"}),type:"submit",disabled:m!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[14]=p,e[15]=s,e[16]=m,e[17]=b.autorule,e[18]=b.created_at,e[19]=b.modified_at,e[20]=b.pei,e[21]=b.supi,e[22]=n,e[23]=u,e[24]=f,e[25]=x):x=e[25];let w;return e[26]!==g||e[27]!==b||e[28]!==x?(w=a.jsx(Wr,{initialValues:b,validationSchema:Xst,enableReinitialize:!0,onSubmit:g,children:x}),e[26]=g,e[27]=b,e[28]=x,e[29]=w):w=e[29],w},u7=()=>{const t=he.c(2),[e]=hl();let r;return t[0]!==e?(r=Object.fromEntries(Object.entries(Object.fromEntries(e)).filter(lit)),t[0]=e,t[1]=r):r=t[1],r};function lit(t){const[,e]=t;return!!e}const cit=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=m=>{const{supi:h,..._}=m;o({..._,...h&&{supi:h}},{action:`${$.urls.eirRules}/create`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={pei:"",supi:"",status:"WHITELISTED",enabled:!0},t[2]=u):u=t[2];let d;t[3]!==r?(d=()=>r(),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==e||t[7]!==i?(f=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pei",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_rules.new_rule.pei"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"supi",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_rules.new_rule.supi"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"status",children:m=>{const{field:h,meta:_}=m;return a.jsx(qs,{...h,label:e.formatMessage({id:"eir_rules.new_rule.status"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle",children:J0.map(g=>a.jsx(En,{value:g,children:e.formatMessage({id:`eir_rules.new_rule.status.${g}`})},g))})}}),a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,meta:_}=m;return a.jsxs(qs,{...h,label:e.formatMessage({id:"eir_rules.new_rule.enabled"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle",children:[a.jsx(En,{value:"true",children:e.formatMessage({id:"eir_rules.new_rule.enabled.true"})}),a.jsx(En,{value:"false",children:e.formatMessage({id:"eir_rules.new_rule.enabled.false"})})]})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"new-rule-button-cancel",text:e.formatMessage({id:"eir_rules.new_rule.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{"data-testid":"new-rule-button-save",text:e.formatMessage({id:"eir_rules.new_rule.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=f):f=t[8];let p;return t[9]!==c||t[10]!==d||t[11]!==f?(p=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:Zst,onSubmit:c,onReset:d,children:f})}),t[9]=c,t[10]=d,t[11]=f,t[12]=p):p=t[12],p};function d7({filter:t,keysToExclude:e=[$.searchParams.pageSize,$.searchParams.paginationToken]}){const r=Object.keys(t??{}).filter(n=>!e?.includes(n));return Object.keys(r).length}const f7=t=>{const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={px:2,pb:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(te,{direction:"row",justify:"flex-end",spacing:2,nowrap:!0,sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s},uit=()=>{const t=he.c(33),e=Ye(),[r,n]=hl();let s;t[0]!==r?(s=r.get("supi"),t[0]=r,t[1]=s):s=t[1];const[i,o]=I.useState(s==="*"),{drawerClose:l}=Jt();let c;t[2]!==l||t[3]!==n||t[4]!==i?(c=w=>{n(C=>{const k=new URLSearchParams;k.set($.searchParams.pageSize,C.get($.searchParams.pageSize)||$.pageSize.toString()),w.pei&&k.set("pei",w.pei);const A=i?"*":w.supi;return A&&k.set("supi",A),w.status&&k.set("status",w.status),w.enabled&&k.set("enabled",w.enabled),w.autorule&&k.set("autorule",w.autorule),k},{replace:!0}),l()},t[2]=l,t[3]=n,t[4]=i,t[5]=c):c=t[5];const u=c;let d;t[6]!==l||t[7]!==n?(d=()=>{n(dit,{replace:!0}),l()},t[6]=l,t[7]=n,t[8]=d):d=t[8];const f=d;let p;t[9]!==r?(p=r.get("pei")??"",t[9]=r,t[10]=p):p=t[10];let m;t[11]!==r?(m=r.get("pei")??"",t[11]=r,t[12]=m):m=t[12];let h;t[13]!==r?(h=r.get("status")??"",t[13]=r,t[14]=h):h=t[14];let _;t[15]!==r?(_=r.get("enabled")??"",t[15]=r,t[16]=_):_=t[16];let g;t[17]!==r?(g=r.get("autorule")??"",t[17]=r,t[18]=g):g=t[18];let y;t[19]!==p||t[20]!==m||t[21]!==h||t[22]!==_||t[23]!==g?(y={pei:p,supi:m,status:h,enabled:_,autorule:g},t[19]=p,t[20]=m,t[21]=h,t[22]=_,t[23]=g,t[24]=y):y=t[24];let b;t[25]!==e||t[26]!==i?(b=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsx(te,{spacing:2,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pei",children:w=>{const{field:C}=w;return a.jsx(dt,{...C,value:C.value||"",label:e.formatMessage({id:"eir_rules.filters.pei"}),size:"small"})}}),a.jsx(Ke,{name:"supi",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k,P=()=>{i?A("supi",""):A("supi","*"),o(fit)};return a.jsxs(te,{direction:"row",justify:"stretch",nowrap:!0,align:"center",children:[a.jsx(dt,{...C,value:C.value||"",label:e.formatMessage({id:"eir_rules.filters.supi"}),size:"small",disabled:i,sx:{flexGrow:1}}),a.jsxs(te,{direction:"row",align:"center",sx:{marginLeft:"0px !important",mt:"4px"},nowrap:!0,children:[a.jsx(ti,{onChange:P,value:i,checked:i,size:"small"}),a.jsx(Mn,{title:e.formatMessage({id:"eir_rules.filters.supi.all_tooltip"}),arrow:!0,placement:"top",children:a.jsx(gt,{children:a.jsx(te,{align:"center",children:a.jsx(ge.QuestionMark,{fontSize:"16px"})})})})]})]})}}),a.jsx(Ke,{name:"status",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.status"}),multiple:!1,size:"small",freeSolo:!1,options:["",...J0],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}}),a.jsx(Ke,{name:"enabled",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.enabled"}),multiple:!1,size:"small",freeSolo:!1,options:["","true","false"],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}}),a.jsx(Ke,{name:"autorule",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.autorule"}),multiple:!1,size:"small",freeSolo:!1,options:["","true","false"],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}})]})})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-rule-button-reset",text:e.formatMessage({id:"eir_rules.filters.buttons.reset"}),variant:"outlined",disabled:!as(ie.provisioning),type:"reset"}),a.jsx(Ze,{"data-testid":"filter-rule-button-apply",text:e.formatMessage({id:"eir_rules.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[25]=e,t[26]=i,t[27]=b):b=t[27];let x;return t[28]!==f||t[29]!==u||t[30]!==y||t[31]!==b?(x=a.jsx(Wr,{initialValues:y,onSubmit:u,onReset:f,children:b}),t[28]=f,t[29]=u,t[30]=y,t[31]=b,t[32]=x):x=t[32],x};function dit(t){const e=new URLSearchParams;return e.set($.searchParams.pageSize,t.get($.searchParams.pageSize)||$.pageSize.toString()),e}function fit(t){return!t}const pit=t=>{const e=he.c(66),{configuration:r,isDisabled:n}=t,s=n===void 0?!1:n,i=Ye(),o=On(),{dialogOpen:l,dialogClose:c,drawerOpen:u}=Jt(),{upsertFetcher:d}=Ys(),{state:f,submit:p}=d,{upsertFetcher:m}=Ys(),{state:h,submit:_}=m,g=u7();let y;e[0]!==p?(y=se=>{const le=new FormData;le.append("file",se),p(le,{action:$.urls.eirRulesCreateBulk_Action,method:"POST",encType:"multipart/form-data"})},e[0]=p,e[1]=y):y=e[1];const b=y;let x;e[2]!==l||e[3]!==i?(x=()=>{l({title:i.formatMessage({id:"eir_rules.toolbar.new_rule"}),content:mit,closeOnBackdropClick:!1})},e[2]=l,e[3]=i,e[4]=x):x=e[4];const w=x;let C;e[5]!==c||e[6]!==l||e[7]!==b||e[8]!==i?(C=()=>{l({title:i.formatMessage({id:"eir_rules.toolbar.import_rules"}),content:()=>a.jsx(wue,{onSubmit:se=>b(se.files[0]),onCancel:()=>c(),min:1,max:1,filesLabel:i.formatMessage({id:"eir_rules.import.file"}),accept:{"text/csv":[".csv"]},requiredMessage:i.formatMessage({id:"eir_rules.import.form_errors.required"}),description:i.formatMessage({id:"eir_rules.import.description"}),exampleFileUrl:"/files/eir_rules_provisioning_example.csv"}),closeOnBackdropClick:!1})},e[5]=c,e[6]=l,e[7]=b,e[8]=i,e[9]=C):C=e[9];const k=C;let A;e[10]!==u||e[11]!==i?(A=()=>{u({title:i.formatMessage({id:"eir_rules.toolbar.filters"}),content:hit})},e[10]=u,e[11]=i,e[12]=A):A=e[12];const P=A;let T;e[13]!==r.single_rule_per_pei||e[14]!==_?(T=async()=>{_({single_rule_per_pei:!r.single_rule_per_pei},{action:$.urls.eirRulesEquipmentConfigurationSet,method:"POST",encType:"application/json"})},e[13]=r.single_rule_per_pei,e[14]=_,e[15]=T):T=e[15];const j=T;let R;e[16]!==r||e[17]!==j||e[18]!==i||e[19]!==s||e[20]!==o||e[21]!==f||e[22]!==h?(R=r?a.jsxs(te,{direction:"row",align:"center",sx:{mr:1},spacing:0,justify:"flex-start",children:[a.jsx(ti,{checked:r?.single_rule_per_pei,"data-testid":"toolbar-switch-single-rule-per-pei",onChange:()=>void j(),size:"small",disabled:s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning)}),a.jsx(_e,{type:"body2",children:i.formatMessage({id:"eir_rules.toolbar.configuration"})})]}):null,e[16]=r,e[17]=j,e[18]=i,e[19]=s,e[20]=o,e[21]=f,e[22]=h,e[23]=R):R=e[23];let D;e[24]!==g?(D=d7({filter:g}),e[24]=g,e[25]=D):D=e[25];const O=!D;let N;e[26]!==i?(N=i.formatMessage({id:"eir_rules.toolbar.filters"}),e[26]=i,e[27]=N):N=e[27];let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Filter,{}),e[28]=F):F=e[28];let U;e[29]===Symbol.for("react.memo_cache_sentinel")?(U={width:"100%"},e[29]=U):U=e[29];const z=s||o.state!=="idle"||f!=="idle"||h!=="idle";let H;e[30]!==P||e[31]!==N||e[32]!==z?(H=a.jsx(Ze,{"data-testid":"toolbar-button-filters",variant:"outlined",text:N,startIcon:F,onClick:P,sx:U,disabled:z}),e[30]=P,e[31]=N,e[32]=z,e[33]=H):H=e[33];let W;e[34]!==O||e[35]!==H?(W=a.jsx(Iv,{variant:"dot",invisible:O,children:H}),e[34]=O,e[35]=H,e[36]=W):W=e[36];let K;e[37]!==i?(K=i.formatMessage({id:"eir_rules.toolbar.import_rules"}),e[37]=i,e[38]=K):K=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=a.jsx(ge.Upload,{}),e[39]=q):q=e[39];let X;e[40]!==s||e[41]!==o||e[42]!==f||e[43]!==h?(X=s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning),e[40]=s,e[41]=o,e[42]=f,e[43]=h,e[44]=X):X=e[44];let Q;e[45]!==k||e[46]!==K||e[47]!==X?(Q=a.jsx(Ze,{"data-testid":"toolbar-button-import-rules",variant:"outlined",text:K,startIcon:q,onClick:k,disabled:X}),e[45]=k,e[46]=K,e[47]=X,e[48]=Q):Q=e[48];let Y;e[49]!==i?(Y=i.formatMessage({id:"eir_rules.toolbar.new_rule"}),e[49]=i,e[50]=Y):Y=e[50];let Z;e[51]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(ge.Add,{}),e[51]=Z):Z=e[51];let re;e[52]!==s||e[53]!==o||e[54]!==f||e[55]!==h?(re=s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning),e[52]=s,e[53]=o,e[54]=f,e[55]=h,e[56]=re):re=e[56];let fe;e[57]!==w||e[58]!==Y||e[59]!==re?(fe=a.jsx(Ze,{"data-testid":"toolbar-button-new-rule",text:Y,startIcon:Z,onClick:w,disabled:re}),e[57]=w,e[58]=Y,e[59]=re,e[60]=fe):fe=e[60];let de;return e[61]!==W||e[62]!==Q||e[63]!==fe||e[64]!==R?(de=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[R,W,Q,fe]}),e[61]=W,e[62]=Q,e[63]=fe,e[64]=R,e[65]=de):de=e[65],de};function mit(){return a.jsx(cit,{})}function hit(){return a.jsx(uit,{})}const git=()=>{const t=he.c(78),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{pageSize:o,pageSizeOptions:l,changePageSize:c,changePage:u,getRowsCount:d,getPage:f}=Na(),{dialogOpen:p}=Jt();let m;t[0]!==i||t[1]!==e||t[2]!==r?(m=async le=>{const{id:ee}=le;ee&&r({text:e.formatMessage({id:"eir_rules.actions.confirm_delete"}),onConfirm:()=>{i.submit({id:ee},{action:$.urls.eirRulesDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"eir_rules.table.header.pei"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"pei",label:_},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"eir_rules.table.header.supi"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"supi",label:y,cellRender:_it},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"eir_rules.table.header.status"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"status",label:x},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==e?(C=e.formatMessage({id:"eir_rules.table.header.enabled"}),t[16]=e,t[17]=C):C=t[17];let k;t[18]!==C?(k={key:"enabled",label:C},t[18]=C,t[19]=k):k=t[19];let A;t[20]!==e?(A=e.formatMessage({id:"eir_rules.table.header.created_at"}),t[20]=e,t[21]=A):A=t[21];let P;t[22]!==A?(P={key:"created_at",label:A},t[22]=A,t[23]=P):P=t[23];let T;t[24]!==e?(T=e.formatMessage({id:"eir_rules.table.header.modified_at"}),t[24]=e,t[25]=T):T=t[25];let j;t[26]!==T?(j={key:"modified_at",label:T},t[26]=T,t[27]=j):j=t[27];let R;t[28]!==e?(R=e.formatMessage({id:"eir_rules.table.header.autorule"}),t[28]=e,t[29]=R):R=t[29];let D;t[30]!==R?(D={key:"autorule",label:R,cellRender:vit,width:"80"},t[30]=R,t[31]=D):D=t[31];let O;t[32]!==P||t[33]!==j||t[34]!==D||t[35]!==g||t[36]!==b||t[37]!==w||t[38]!==k?(O=[g,b,w,k,P,j,D],t[32]=P,t[33]=j,t[34]=D,t[35]=g,t[36]=b,t[37]=w,t[38]=k,t[39]=O):O=t[39];const N=O;let F;t[40]===Symbol.for("react.memo_cache_sentinel")?(F=_l(ie.provisioning),t[40]=F):F=t[40];const U=s.state!=="idle"||i.state!=="idle";let z;t[41]!==p||t[42]!==e?(z=le=>{p({title:e.formatMessage({id:"eir_rules.edit_rule.title"}),content:()=>a.jsx(ait,{ruleId:le.id}),closeOnBackdropClick:!1})},t[41]=p,t[42]=e,t[43]=z):z=t[43];let H;t[44]!==U||t[45]!==z?(H={...F,disabled:U,onClick:z},t[44]=U,t[45]=z,t[46]=H):H=t[46];let W;t[47]!==e?(W=e.formatMessage({id:"eir_rules.actions.delete"}),t[47]=e,t[48]=W):W=t[48];let K;t[49]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(ge.Trash,{}),t[49]=K):K=t[49];let q;t[50]!==i.state||t[51]!==s.state?(q=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[50]=i.state,t[51]=s.state,t[52]=q):q=t[52];let X;t[53]!==h?(X=le=>void h(le),t[53]=h,t[54]=X):X=t[54];let Q;t[55]!==W||t[56]!==q||t[57]!==X?(Q={label:W,icon:K,disabled:q,onClick:X},t[55]=W,t[56]=q,t[57]=X,t[58]=Q):Q=t[58];let Y;t[59]!==H||t[60]!==Q?(Y=[H,Q],t[59]=H,t[60]=Q,t[61]=Y):Y=t[61];const Z=Y;let re;t[62]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(te,{sx:{height:"100%"},children:a.jsx(Dt,{variant:"rounded",height:"100%"})}),t[62]=re):re=t[62];let fe;t[63]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),t[63]=fe):fe=t[63];let de;t[64]!==u||t[65]!==c||t[66]!==N||t[67]!==n.equipmentConfiguration||t[68]!==i.state||t[69]!==f||t[70]!==d||t[71]!==o||t[72]!==l||t[73]!==Z?(de=le=>{const{data:ee,metadata:J}=le;return a.jsxs(a.Fragment,{children:[a.jsx(I.Suspense,{fallback:a.jsx(Dt,{variant:"rounded",height:"38px"}),children:a.jsx(Qt,{resolve:n.equipmentConfiguration,errorElement:a.jsx(Tr,{}),children:me=>a.jsx(hs,{children:a.jsx(pit,{configuration:me,isDisabled:i.state!=="idle"})})})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"pei",columns:N,data:ee,page:f(J),labelDisplayedRows:yit,rowsCount:d(J),rowsPerPage:o,onRowsPerPageChange:c,rowsPerPageOptions:l,rowKey:"id",rowActions:Z,stickyRowActions:!0,onPageChange:u(J)})]})},t[64]=u,t[65]=c,t[66]=N,t[67]=n.equipmentConfiguration,t[68]=i.state,t[69]=f,t[70]=d,t[71]=o,t[72]=l,t[73]=Z,t[74]=de):de=t[74];let se;return t[75]!==n.rules||t[76]!==de?(se=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:n.rules,errorElement:fe,children:de})}),t[75]=n.rules,t[76]=de,t[77]=se):se=t[77],se};function _it(t){const{supi:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{children:"*"})}function vit(t){const{autorule:e}=t;return e?a.jsx(_e,{align:"center",children:a.jsx(ge.Magic,{})}):a.jsx(a.Fragment,{})}function yit(){return""}const bit=async({status:t,enabled:e,autorule:r,supi:n,pei:s,pageSize:i,paginationToken:o})=>{const l=new URLSearchParams({...i&&{max_results:i},...s&&{pei_icont:s},...n&&n!=="*"&&{supi_icont:n},...t&&J0.includes(t)&&{status_eq:t},...e==="true"&&{enabled_true:"true"},...e==="false"&&{enabled_false:"false"},...r==="true"&&{autorule_true:"true"},...r==="false"&&{autorule_false:"false"},...o&&{pagination_token:o}}),c=`${$.apis.eir.rules}?${l}`;return De({options:{url:c,method:"GET",cache:!1}})};async function xit({id:t}){const e=`${$.apis.eir.rules}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"GET"}})}const Sit=async t=>{const e=$.apis.eir.rules;return De({options:{url:e,method:"POST",data:JSON.stringify(t),cache:!1}})},wit=async({id:t,...e})=>{const r=`${$.apis.eir.rules}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e),cache:!1}})},Cit=async t=>{const e=`${$.apis.eir.rules}/${t}`;return De({options:{url:e,method:"DELETE",cache:!1}})},Ait=async t=>{const e=$.apis.eir.rules;return De({options:{url:e,method:"PATCH",headers:{"content-type":"multipart/form-data"},data:t,cache:!1}})},kit=async()=>{const t=`${$.apis.eir.equipmentRuleConfiguration}`;return De({options:{url:t,method:"GET",cache:!1}})},Mit=async t=>{const e=`${$.apis.eir.equipmentRuleConfiguration}`;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})},Pit=async({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize})=>{let r=`${$.apis.eir.autorules}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})},jit=async t=>{const e=$.apis.eir.autorules;return De({options:{url:e,method:"POST",data:JSON.stringify(t),cache:!1}})},Tit=async t=>{const e=`${$.apis.eir.autorules}/${t}`;return De({options:{url:e,method:"DELETE",cache:!1}})},Eit=async t=>{const e=$.apis.eir.autorules;return De({options:{url:e,method:"PATCH",headers:{"content-type":"multipart/form-data"},data:t,cache:!1}})};async function Rit({request:t}){const e=await t.json(),r=await Sit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Iit({request:t}){const e=await t.json(),r=await wit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Dit({request:t}){const{id:e}=await t.json(),r=await Cit(e);return xt(r)?Ar():Nt(),Ft(r)}async function $it({request:t}){const e=await t.formData(),r=await Ait(e);return xt(r)?Ar():Nt(),Ft(r)}async function Oit({request:t}){const e=await t.json(),r=await Mit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Lit({request:t}){const e=await t.json(),r=await jit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Nit({request:t}){const{supi:e}=await t.json(),r=await Tit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Fit({request:t}){const e=await t.formData(),r=await Eit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Uit(t){const e=new URL(t.request.url),r=e.searchParams.get("pei"),n=e.searchParams.get("supi"),s=e.searchParams.get("status"),i=e.searchParams.get("enabled"),o=e.searchParams.get("autorule"),{pageSize:l,paginationToken:c}=Fa(t);return s&&!J0.includes(s)?(e.searchParams.delete("status"),rt(e.href)):i&&!["true","false"].includes(i)?(e.searchParams.delete("enabled"),rt(e.href)):o&&!["true","false"].includes(o)?(e.searchParams.delete("autorule"),rt(e.href)):Wt({loaderArgs:t,deferred:!0,data:{rules:bit({pageSize:l,paginationToken:c,pei:r,supi:n,status:s,enabled:i,autorule:o}),equipmentConfiguration:kit()}})}async function Bit(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{eirRule:xit({id:e})}}):null}async function zit(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{autorules:Pit({pageSize:e,paginationToken:r})}})}const qit=Pr(),Vit={path:"eir",handle:vr({labelIntl:"route.eir",icon:a.jsx(ge.EIR,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.EIR,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.eir.status",to:"/eir/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:qit.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.EIR})]},io(ue.EIR),{path:"rules",handle:vr({labelIntl:"route.eir.rules",to:"/eir/rules"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Uit,element:a.jsx(git,{})},{path:":id",loader:Bit,element:a.jsx(ur,{to:"/eir/rules",replace:!0})},{action:Rit,path:"create",loader:()=>rt("..")},{action:Iit,path:"update",loader:()=>rt("..")},{action:Dit,path:"delete",loader:()=>rt("..")},{action:$it,path:"create-bulk",loader:()=>rt("..")},{action:Oit,path:"equipment-configuration-set",loader:()=>rt("..")}]},{path:"auto-rules",handle:vr({labelIntl:"route.eir.auto-rules",to:"/eir/auto-rules"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:zit,element:a.jsx(rit,{})},{action:Lit,path:"create",loader:()=>rt("..")},{action:Nit,path:"delete",loader:()=>rt("..")},{action:Fit,path:"create-bulk",loader:()=>rt("..")}]}]}]};function Aue(t){const e=he.c(6),{value:r,language:n}=t,s=ci();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={p:1,flex:"1 1 auto",width:"100%",border:"1px solid",borderColor:"grey.400",borderRadius:1},e[0]=i):i=e[0];const o=s.palette.mode==="light"?"light":"vs-dark";let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={automaticLayout:!0,autoClosingBrackets:"always",autoClosingQuotes:"always",autoIndent:"full",formatOnPaste:!0,formatOnType:!0,detectIndentation:!0,readOnly:!0},e[1]=l):l=e[1];let c;return e[2]!==n||e[3]!==o||e[4]!==r?(c=a.jsx(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,spacing:.5,children:a.jsx(gt,{sx:i,children:a.jsx(SL,{value:r,language:n,theme:o,options:l})})}),e[2]=n,e[3]=o,e[4]=r,e[5]=c):c=e[5],c}function Hit(t){const e=he.c(22),{domain:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={to:"mme/status/dns/cache"},e[0]=i):i=e[0];const{data:o}=Dv(i);o?.cache;let l;e[1]!==o?.cache||e[2]!==r?(l=o?.cache.find(g=>g.query?.domain===r),e[1]=o?.cache,e[2]=r,e[3]=l):l=e[3];const c=l;let u;e[4]!==c?(u=c&&a.jsx(Aue,{value:JSON.stringify(c??null,null,2),language:"json"}),e[4]=c,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==n?(d=!c&&a.jsx(Lr,{severity:"warning",message:n.formatMessage({id:"mme.dns.status.cache.no_data"})}),e[6]=c,e[7]=n,e[8]=d):d=e[8];let f;e[9]!==u||e[10]!==d?(f=a.jsx(_s,{children:a.jsxs(te,{fullHeight:!0,align:"center",justify:"center",children:[u,d]})}),e[9]=u,e[10]=d,e[11]=f):f=e[11];let p;e[12]!==n?(p=n.formatMessage({id:"info_dialog.close"}),e[12]=n,e[13]=p):p=e[13];let m;e[14]!==s?(m=()=>{s()},e[14]=s,e[15]=m):m=e[15];let h;e[16]!==p||e[17]!==m?(h=a.jsx(Ti,{children:a.jsx(Ze,{text:p,onClick:m})}),e[16]=p,e[17]=m,e[18]=h):h=e[18];let _;return e[19]!==f||e[20]!==h?(_=a.jsxs(a.Fragment,{children:[f,h]}),e[19]=f,e[20]=h,e[21]=_):_=e[21],_}function Git(){const t=he.c(35),e=Ye(),{dialogOpen:r}=Jt(),n=Gr(),s=On(),i=gl();let o;t[0]!==i?(o=async()=>{i({},{method:"POST",encType:"application/json",action:"flush"})},t[0]=i,t[1]=o):o=t[1];const l=o;let c;t[2]!==e?(c=e.formatMessage({id:"mme.dns.status.cache.query.domain"}),t[2]=e,t[3]=c):c=t[3];let u;t[4]!==c?(u={key:"query.domain",label:c,cellRender:Kit},t[4]=c,t[5]=u):u=t[5];let d;t[6]!==e?(d=e.formatMessage({id:"mme.dns.status.cache.query.type"}),t[6]=e,t[7]=d):d=t[7];let f;t[8]!==d?(f={key:"query.type",label:d,cellRender:Yit},t[8]=d,t[9]=f):f=t[9];let p;t[10]!==e?(p=e.formatMessage({id:"mme.dns.status.cache.expiration"}),t[10]=e,t[11]=p):p=t[11];let m;t[12]!==e?(m=A=>{const{expired:P,expires_s:T}=A;return a.jsx(a.Fragment,{children:P?a.jsx(bi,{label:e.formatMessage({id:"mme.dns.status.cache.expired"}),status:nn.ERROR}):T&&a.jsx(_e,{type:"body2",children:Mr(T)})})},t[12]=e,t[13]=m):m=t[13];let h;t[14]!==p||t[15]!==m?(h={key:"expires",label:p,cellRender:m},t[14]=p,t[15]=m,t[16]=h):h=t[16];let _;t[17]!==u||t[18]!==f||t[19]!==h?(_=[u,f,h],t[17]=u,t[18]=f,t[19]=h,t[20]=_):_=t[20];const g=_;let y;t[21]!==r||t[22]!==e?(y=A=>[{label:e.formatMessage({id:"mme.dns.status.cache.details"}),icon:a.jsx(ge.Details,{}),disabled:Wit,onClick:P=>{const{query:T}=P,j=A.find(R=>R.query?.domain===T?.domain);r({fullScreen:!0,title:`${j?j.query?.domain:""}`,content:()=>a.jsx(Hit,{domain:T?.domain})})}}],t[21]=r,t[22]=e,t[23]=y):y=t[23];const b=y;let x;t[24]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[24]=x):x=t[24];let w;t[25]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(en,{}),t[25]=w):w=t[25];let C;t[26]!==g||t[27]!==l||t[28]!==e||t[29]!==s.state||t[30]!==b?(C=A=>a.jsx(a.Fragment,{children:a.jsx(Br,{autoScale:!0,data:A||[],orderBy:"query",page:0,loading:s.state!=="idle",rowsCount:A?.length,rowsPerPage:A?.length,rowKey:"query",columns:g,hidePagination:!0,rowActions:b(A),stickyRowActions:!0,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{startIcon:a.jsx(ge.Clear,{}),disabled:s.state==="loading"||!Ue(ie.monitoring),loading:s.state==="submitting",variant:"outlined",onClick:()=>void l(),text:e.formatMessage({id:"mme.dns.status.cache.actions.flush_cache"})})})})}),t[26]=g,t[27]=l,t[28]=e,t[29]=s.state,t[30]=b,t[31]=C):C=t[31];let k;return t[32]!==n.dnsCache||t[33]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:n.dnsCache,errorElement:w,children:C})}),t[32]=n.dnsCache,t[33]=C,t[34]=k):k=t[34],k}function Wit(){return!Ue(ie.monitoring)}function Yit(t){const{query:e}=t;return a.jsx(_e,{type:"body2",children:e?.type&&e.type.toUpperCase()})}function Kit(t){const{query:e}=t;return a.jsx(_e,{type:"body2",children:e?.domain})}const Qit=WIe("table",{shouldForwardProp:t=>t!=="showBorder"})(({theme:t})=>({borderSpacing:0,borderCollapse:"collapse","td, th":{borderBottom:`1px solid ${t.palette.divider}`},"tr:last-child td":{borderBottom:"none"}}));function Zit(t){const e=he.c(27),{columns:r,data:n,title:s}=t;let i;e[0]!==r.length?(i=_=>_===0?"left":_===r.length-1?"right":"center",e[0]=r.length,e[1]=i):i=e[1];const o=i;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={width:"max-content"},e[2]=l):l=e[2];let c;e[3]!==s?(c=s&&a.jsx(_e,{align:"center",fontSize:"small",fontWeight:"600",children:s}),e[3]=s,e[4]=c):c=e[4];let u;if(e[5]!==r||e[6]!==o){let _;e[8]!==o?(_=(g,y)=>{const{label:b}=g;return a.jsx("th",{children:a.jsx(_e,{align:o(y),fontSize:"small",fontWeight:600,children:b})},y)},e[8]=o,e[9]=_):_=e[9],u=r.map(_),e[5]=r,e[6]=o,e[7]=u}else u=e[7];let d;e[10]!==u?(d=a.jsx("thead",{children:a.jsx("tr",{children:u})}),e[10]=u,e[11]=d):d=e[11];let f;if(e[12]!==r||e[13]!==n||e[14]!==o){let _;e[16]!==r||e[17]!==o?(_=(g,y)=>a.jsx("tr",{children:r.map((b,x)=>{const{key:w}=b;return a.jsx("td",{children:a.jsx(_e,{align:o(x),fontSize:"small",children:`${g[w]}`})},x)})},y),e[16]=r,e[17]=o,e[18]=_):_=e[18],f=n.map(_),e[12]=r,e[13]=n,e[14]=o,e[15]=f}else f=e[15];let p;e[19]!==f?(p=a.jsx("tbody",{children:f}),e[19]=f,e[20]=p):p=e[20];let m;e[21]!==d||e[22]!==p?(m=a.jsxs(Qit,{children:[d,p]}),e[21]=d,e[22]=p,e[23]=m):m=e[23];let h;return e[24]!==c||e[25]!==m?(h=a.jsxs(te,{spacing:0,sx:l,children:[c,m]}),e[24]=c,e[25]=m,e[26]=h):h=e[26],h}function Xit(t){const e=he.c(17),{data:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl.id"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"mce_id",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n?(o=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl.plmn"}),e[4]=n,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"plmn",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==i||e[9]!==l?(c=[i,l],e[8]=i,e[9]=l,e[10]=c):c=e[10];const u=c;let d;e[11]!==n?(d=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl"}),e[11]=n,e[12]=d):d=e[12];let f;return e[13]!==u||e[14]!==r||e[15]!==d?(f=a.jsx(Zit,{columns:u,data:r,title:d}),e[13]=u,e[14]=r,e[15]=d,e[16]=f):f=e[16],f}function Jit(t){const e=he.c(40),{row:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r.id?(s=r.id&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.id"})}),a.jsx(_e,{fontSize:"small",children:r.id})]}),e[0]=n,e[1]=r.id,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r.mce_name?(i=r.mce_name&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.mce_name"})}),a.jsx(_e,{fontSize:"small",children:r.mce_name})]}),e[3]=n,e[4]=r.mce_name,e[5]=i):i=e[5];let o;e[6]!==n||e[7]!==r.service_areas?(o=r.service_areas&&r.service_areas.length&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.service_areas"})}),r.service_areas.map(tot)]}),e[6]=n,e[7]=r.service_areas,e[8]=o):o=e[8];let l;e[9]!==n||e[10]!==r.global_mce_id?(l=r.global_mce_id?.mce_id&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.global_mce_id.id"})}),a.jsx(_e,{fontSize:"small",children:r.global_mce_id.mce_id})]}),e[9]=n,e[10]=r.global_mce_id,e[11]=l):l=e[11];let c;e[12]!==n||e[13]!==r.global_mce_id?(c=r.global_mce_id?.plmn&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.global_mce_id.plmn"})}),a.jsx(_e,{fontSize:"small",children:r.global_mce_id.plmn})]}),e[12]=n,e[13]=r.global_mce_id,e[14]=c):c=e[14];let u;e[15]!==n||e[16]!==r.m3_sessions?(u=r.m3_sessions?.tmgi&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.tmgi"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions.tmgi})]}),e[15]=n,e[16]=r.m3_sessions,e[17]=u):u=e[17];let d;e[18]!==n||e[19]!==r.m3_sessions?(d=r.m3_sessions?.flow!==void 0&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.flow"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions.flow})]}),e[18]=n,e[19]=r.m3_sessions,e[20]=d):d=e[20];let f;e[21]!==n||e[22]!==r.m3_sessions?(f=r.m3_sessions?.sas&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.sas"})}),r.m3_sessions.sas.map(eot)]}),e[21]=n,e[22]=r.m3_sessions,e[23]=f):f=e[23];let p;e[24]!==r.m3_sessions?(p=r.m3_sessions?.cl&&a.jsx(Is,{size:{xs:6,sm:4,md:3,lg:2},children:a.jsx(Xit,{data:r.m3_sessions.cl})}),e[24]=r.m3_sessions,e[25]=p):p=e[25];let m;e[26]!==n||e[27]!==r.m3_sessions_count?(m=r.m3_sessions_count&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions_count"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions_count})]}),e[26]=n,e[27]=r.m3_sessions_count,e[28]=m):m=e[28];let h;return e[29]!==s||e[30]!==m||e[31]!==i||e[32]!==o||e[33]!==l||e[34]!==c||e[35]!==u||e[36]!==d||e[37]!==f||e[38]!==p?(h=a.jsxs(al,{children:[s,i,o,l,c,u,d,f,p,m]}),e[29]=s,e[30]=m,e[31]=i,e[32]=o,e[33]=l,e[34]=c,e[35]=u,e[36]=d,e[37]=f,e[38]=p,e[39]=h):h=e[39],h}function eot(t,e){return a.jsx(_e,{fontSize:"small",children:t},e)}function tot(t,e){return a.jsx(_e,{fontSize:"small",children:t},e)}function rot(){const t=he.c(42),e=Ye(),r=Gr();let n;t[0]!==e?(n=e.formatMessage({id:"mme.m3.status.connections.connection_id"}),t[0]=e,t[1]=n):n=t[1];let s;t[2]!==n?(s={key:"connection_id",label:n},t[2]=n,t[3]=s):s=t[3];let i;t[4]!==e?(i=e.formatMessage({id:"mme.m3.status.connections.local_addrs"}),t[4]=e,t[5]=i):i=t[5];let o;t[6]!==i?(o={key:"local_addrs",label:i,cellRender:oot},t[6]=i,t[7]=o):o=t[7];let l;t[8]!==e?(l=e.formatMessage({id:"mme.m3.status.connections.local_port"}),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==l?(c={key:"local_port",label:l},t[10]=l,t[11]=c):c=t[11];let u;t[12]!==e?(u=e.formatMessage({id:"mme.m3.status.connections.remote_addrs"}),t[12]=e,t[13]=u):u=t[13];let d;t[14]!==u?(d={key:"remote_addrs",label:u,cellRender:sot},t[14]=u,t[15]=d):d=t[15];let f;t[16]!==e?(f=e.formatMessage({id:"mme.m3.status.connections.remote_port"}),t[16]=e,t[17]=f):f=t[17];let p;t[18]!==f?(p={key:"remote_port",label:f},t[18]=f,t[19]=p):p=t[19];let m;t[20]!==e?(m=e.formatMessage({id:"mme.m3.status.connections.transport_name"}),t[20]=e,t[21]=m):m=t[21];let h;t[22]!==m?(h={key:"transport_name",label:m},t[22]=m,t[23]=h):h=t[23];let _;t[24]!==e?(_=e.formatMessage({id:"mme.m3.status.connections.connection_ts"}),t[24]=e,t[25]=_):_=t[25];let g;t[26]!==_?(g={key:"connection_ts",label:_},t[26]=_,t[27]=g):g=t[27];let y;t[28]!==s||t[29]!==h||t[30]!==g||t[31]!==o||t[32]!==c||t[33]!==d||t[34]!==p?(y=[s,o,c,d,p,h,g],t[28]=s,t[29]=h,t[30]=g,t[31]=o,t[32]=c,t[33]=d,t[34]=p,t[35]=y):y=t[35];const b=y;let x;t[36]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[36]=x):x=t[36];let w;t[37]!==b?(w=k=>a.jsx(Br,{autoScale:!0,data:k||[],orderBy:"connection_id",page:0,rowsCount:k?.length,rowsPerPage:k?.length,rowKey:"connection_id",columns:b,hidePagination:!0,rowDetail:{content:not}}),t[37]=b,t[38]=w):w=t[38];let C;return t[39]!==r.connections||t[40]!==w?(C=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:r.connections,children:w})}),t[39]=r.connections,t[40]=w,t[41]=C):C=t[41],C}function not(t){return a.jsx(Jit,{row:t})}function sot(t){const{remote_addrs:e}=t,r=e.map(iot);return a.jsx(ks,{size:"small",items:r})}function iot(t){return{label:`${t}`,id:`${t}`}}function oot(t){const{local_addrs:e}=t,r=e.map(aot);return a.jsx(ks,{size:"small",items:r})}function aot(t){return{label:`${t}`,id:`${t}`}}function lot(){const t=he.c(88),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async ee=>{n({enbId:ee},{method:"POST",encType:"application/json",action:"disconnect"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==n?(l=async ee=>{n({enbId:ee},{method:"POST",encType:"application/json",action:"reset"})},t[2]=n,t[3]=l):l=t[3];const c=l;let u;t[4]!==e?(u=e.formatMessage({id:"mme.s1ap.status.connections.local_addrs"}),t[4]=e,t[5]=u):u=t[5];let d;t[6]!==u?(d={key:"local_addrs",label:u,cellRender:_ot},t[6]=u,t[7]=d):d=t[7];let f;t[8]!==e?(f=e.formatMessage({id:"mme.s1ap.status.connections.local_port"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]!==f?(p={key:"local_port",label:f},t[10]=f,t[11]=p):p=t[11];let m;t[12]!==e?(m=e.formatMessage({id:"mme.s1ap.status.connections.remote_addrs"}),t[12]=e,t[13]=m):m=t[13];let h;t[14]!==m?(h={key:"remote_addrs",label:m,cellRender:hot},t[14]=m,t[15]=h):h=t[15];let _;t[16]!==e?(_=e.formatMessage({id:"mme.s1ap.status.connections.remote_port"}),t[16]=e,t[17]=_):_=t[17];let g;t[18]!==_?(g={key:"remote_port",label:_},t[18]=_,t[19]=g):g=t[19];let y;t[20]!==e?(y=e.formatMessage({id:"mme.s1ap.status.connections.enb_name"}),t[20]=e,t[21]=y):y=t[21];let b;t[22]!==y?(b={key:"enb_name",label:y},t[22]=y,t[23]=b):b=t[23];let x;t[24]!==e?(x=e.formatMessage({id:"mme.s1ap.status.connections.transport_name"}),t[24]=e,t[25]=x):x=t[25];let w;t[26]!==x?(w={key:"transport_name",label:x},t[26]=x,t[27]=w):w=t[27];let C;t[28]!==e?(C=e.formatMessage({id:"mme.s1ap.status.connections.srb_count"}),t[28]=e,t[29]=C):C=t[29];let k;t[30]!==C?(k={key:"srb_count",label:C},t[30]=C,t[31]=k):k=t[31];let A;t[32]!==e?(A=e.formatMessage({id:"mme.s1ap.status.connections.connection_ts"}),t[32]=e,t[33]=A):A=t[33];let P;t[34]!==A?(P={key:"connection_ts",label:A,cellRender:mot},t[34]=A,t[35]=P):P=t[35];let T;t[36]!==e?(T=e.formatMessage({id:"mme.s1ap.status.connections.connection_id"}),t[36]=e,t[37]=T):T=t[37];let j;t[38]!==T?(j={key:"connection_id",label:T},t[38]=T,t[39]=j):j=t[39];let R;t[40]!==e?(R=e.formatMessage({id:"mme.s1ap.status.connections.global_enb_id"}),t[40]=e,t[41]=R):R=t[41];let D;t[42]!==R?(D={key:"global_enb_id",label:R,cellRender:pot},t[42]=R,t[43]=D):D=t[43];let O;t[44]!==e?(O=e.formatMessage({id:"mme.s1ap.status.connections.tai"}),t[44]=e,t[45]=O):O=t[45];let N;t[46]!==O?(N={key:"tai",label:O,cellRender:dot},t[46]=O,t[47]=N):N=t[47];let F;t[48]!==b||t[49]!==w||t[50]!==k||t[51]!==P||t[52]!==j||t[53]!==D||t[54]!==N||t[55]!==d||t[56]!==p||t[57]!==h||t[58]!==g?(F=[d,p,h,g,b,w,k,P,j,D,N],t[48]=b,t[49]=w,t[50]=k,t[51]=P,t[52]=j,t[53]=D,t[54]=N,t[55]=d,t[56]=p,t[57]=h,t[58]=g,t[59]=F):F=t[59];const U=F;let z;t[60]!==e?(z=e.formatMessage({id:"mme.s1ap.status.connections.actions.disconnect"}),t[60]=e,t[61]=z):z=t[61];let H;t[62]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Disconnect,{}),t[62]=H):H=t[62];let W;t[63]!==o?(W=async ee=>{const{id:J}=ee;J&&o(J)},t[63]=o,t[64]=W):W=t[64];let K;t[65]!==z||t[66]!==W?(K={label:z,icon:H,disabled:uot,onClick:W},t[65]=z,t[66]=W,t[67]=K):K=t[67];let q;t[68]!==e?(q=e.formatMessage({id:"mme.s1ap.status.connections.actions.reset"}),t[68]=e,t[69]=q):q=t[69];let X;t[70]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.Refresh,{}),t[70]=X):X=t[70];let Q;t[71]!==c?(Q=async ee=>{const{id:J}=ee;J&&c(J)},t[71]=c,t[72]=Q):Q=t[72];let Y;t[73]!==q||t[74]!==Q?(Y={label:q,icon:X,disabled:cot,onClick:Q},t[73]=q,t[74]=Q,t[75]=Y):Y=t[75];let Z;t[76]!==K||t[77]!==Y?(Z=[K,Y],t[76]=K,t[77]=Y,t[78]=Z):Z=t[78];const re=Z;let fe;t[79]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[79]=fe):fe=t[79];let de;t[80]===Symbol.for("react.memo_cache_sentinel")?(de=a.jsx(en,{}),t[80]=de):de=t[80];let se;t[81]!==U||t[82]!==s.state||t[83]!==re?(se=ee=>a.jsx(Br,{autoScale:!0,data:ee||[],orderBy:"id",page:0,loading:s.state!=="idle",rowsCount:ee?.length,rowsPerPage:ee?.length,rowKey:"id",columns:U,hidePagination:!0,rowActions:re,stickyRowActions:!0}),t[81]=U,t[82]=s.state,t[83]=re,t[84]=se):se=t[84];let le;return t[85]!==r.connections||t[86]!==se?(le=a.jsx(I.Suspense,{fallback:fe,children:a.jsx(Qt,{resolve:r.connections,errorElement:de,children:se})}),t[85]=r.connections,t[86]=se,t[87]=le):le=t[87],le}function cot(){return!Ue(ie.monitoring)}function uot(){return!Ue(ie.monitoring)}function dot(t){const{tai:e}=t;return a.jsx(ks,{size:"small",items:e?.map(fot)||[]})}function fot(t){return{label:`${t.tac} | ${t.plmn} (${t.rat})`,id:`${t.tac}-${t.plmn}-${t.rat}`}}function pot(t){const{global_enb_id:e}=t;return e?a.jsx(_e,{type:"body2",children:`${e.id} | ${e.plmn} (${e.type})`}):a.jsx(a.Fragment,{})}function mot(t){const{connection_ts:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function hot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(got)||[]})}function got(t){return{label:`${t}`,id:`${t}`}}function _ot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(vot)||[]})}function vot(t){return{label:`${t}`,id:`${t}`}}function yot(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.s1ap.status.listeners.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.s1ap.status.listeners.local_addrs"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addrs",label:o,cellRender:bot},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.s1ap.status.listeners.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.s1ap.status.listeners.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.listeners||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.listeners,errorElement:_,children:g})}),t[26]=r.listeners,t[27]=g,t[28]=y):y=t[28],y}function bot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(xot)||[]})}function xot(t){return{label:`${t}`,id:`${t}`}}function Sot(){const t=he.c(44),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sbcap.status.connections.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:kot},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sbcap.status.connections.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sbcap.status.connections.remote_addrs"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addrs",label:c,cellRender:Cot},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sbcap.status.connections.remote_port"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_port",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"mme.sbcap.status.connections.transport_name"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"transport_name",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"mme.sbcap.status.connections.connection_ts"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"connection_ts",label:h,cellRender:wot},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"mme.sbcap.status.connections.connection_id"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"connection_id",label:g},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==i||t[29]!==_||t[30]!==y||t[31]!==l||t[32]!==u||t[33]!==f||t[34]!==m?(b=[i,l,u,f,m,_,y],t[28]=i,t[29]=_,t[30]=y,t[31]=l,t[32]=u,t[33]=f,t[34]=m,t[35]=b):b=t[35];const x=b;let w;t[36]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[36]=w):w=t[36];let C;t[37]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(en,{}),t[37]=C):C=t[37];let k;t[38]!==x||t[39]!==n.state?(k=P=>a.jsx(Br,{autoScale:!0,data:P||[],orderBy:"connection_id",page:0,loading:n.state!=="idle",rowsCount:P?.length,rowsPerPage:P?.length,rowKey:"connection_id",columns:x,hidePagination:!0,stickyRowActions:!0}),t[38]=x,t[39]=n.state,t[40]=k):k=t[40];let A;return t[41]!==r.connections||t[42]!==k?(A=a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:r.connections,errorElement:C,children:k})}),t[41]=r.connections,t[42]=k,t[43]=A):A=t[43],A}function wot(t){const{connection_ts:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Cot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Aot)||[]})}function Aot(t){return{label:`${t}`,id:`${t}`}}function kot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Mot)||[]})}function Mot(t){return{label:`${t}`,id:`${t}`}}function Pot(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sbcap.status.listeners.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sbcap.status.listeners.local_addrs"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addrs",label:o,cellRender:jot},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sbcap.status.listeners.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sbcap.status.listeners.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.listeners||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.listeners,errorElement:_,children:g})}),t[26]=r.listeners,t[27]=g,t[28]=y):y=t[28],y}function jot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Tot)||[]})}function Tot(t){return{label:`${t}`,id:`${t}`}}function Eot(){const t=he.c(34),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sgs.status.connections.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:Dot},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sgs.status.connections.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sgs.status.connections.remote_addrs"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addrs",label:c,cellRender:Rot},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sgs.status.connections.remote_port"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_port",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"mme.sgs.status.connections.connection_id"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"connection_id",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==i||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==m?(h=[i,l,u,f,m],t[20]=i,t[21]=l,t[22]=u,t[23]=f,t[24]=m,t[25]=h):h=t[25];const _=h;let g;t[26]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[26]=g):g=t[26];let y;t[27]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(en,{}),t[27]=y):y=t[27];let b;t[28]!==_||t[29]!==n.state?(b=w=>a.jsx(Br,{autoScale:!0,data:w||[],orderBy:"connection_id",page:0,loading:n.state!=="idle",rowsCount:w?.length,rowsPerPage:w?.length,rowKey:"connection_id",columns:_,hidePagination:!0,stickyRowActions:!0}),t[28]=_,t[29]=n.state,t[30]=b):b=t[30];let x;return t[31]!==r.connections||t[32]!==b?(x=a.jsx(I.Suspense,{fallback:g,children:a.jsx(Qt,{resolve:r.connections,errorElement:y,children:b})}),t[31]=r.connections,t[32]=b,t[33]=x):x=t[33],x}function Rot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Iot)||[]})}function Iot(t){return{label:`${t}`,id:`${t}`}}function Dot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map($ot)||[]})}function $ot(t){return{label:`${t}`,id:`${t}`}}async function Oot(){const t=$.apis.mme.s1ap.status.connections;return De({options:{url:t,method:"GET"}})}async function Lot({enbId:t}){const e=$.apis.mme.s1ap.status.disconnect(t);return De({options:{url:e,method:"POST"}})}async function Not({enbId:t}){const e=$.apis.mme.s1ap.status.reset(t);return De({options:{url:e,method:"POST"}})}async function Fot(){const t=$.apis.mme.s1ap.status.listeners;return De({options:{url:t,method:"GET"}})}async function Uot(){const t=$.apis.mme.sgs.status.connections;return De({options:{url:t,method:"GET"}})}async function Bot(){const t=$.apis.mme.sbcap.status.connections;return De({options:{url:t,method:"GET"}})}async function zot(){const t=$.apis.mme.sbcap.status.listeners;return De({options:{url:t,method:"GET"}})}async function qot(){const t=$.apis.mme.dns.status.cache;return De({options:{url:t,method:"GET"}})}async function Vot(){const t=$.apis.mme.dns.status.cacheFlush;return De({options:{url:t,method:"POST"}})}async function Hot(t){const e=$.apis.mme.imsi.status.ue(t);return De({options:{url:e,method:"GET"}})}async function Got(t){const e=$.apis.mme.imsi.status.disconnect(t);return De({options:{url:e,method:"POST"}})}async function Wot(t,e){const r=$.apis.mme.imsi.status.detach(t,e);return De({options:{url:r,method:"POST"}})}async function Yot(t,e){const r=$.apis.mme.imsi.status.purge(t,e);return De({options:{url:r,method:"POST"}})}async function Kot(){const t=$.apis.mme.m3.status.connections;return De({options:{url:t,method:"GET"}})}function Qot(){return async({request:t})=>{const e=await t.json(),{enbId:r}=e,n=await Lot({enbId:r});return xt(n)?Ar():Nt(),Ft(n)}}function Zot(){return async({request:t})=>{const e=await t.json(),{enbId:r}=e,n=await Not({enbId:r});return xt(n)?Ar():Nt(),Ft(n)}}async function Xot(){const t=await Vot();return xt(t)?Ar():Nt(),Ft(t)}async function Jot(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Oot()}})}async function eat(t){return Wt({loaderArgs:t,deferred:!0,data:{listeners:Fot()}})}async function tat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Uot()}})}async function rat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Bot()}})}async function nat(t){return Wt({loaderArgs:t,deferred:!0,data:{listeners:zot()}})}async function sat(t){return Wt({loaderArgs:t,deferred:!0,data:{dnsCache:qot()}})}async function iat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Kot()}})}const oat=dr().shape({x1_ca:yr().of(oa()).min(1),x1_key:yr().of(oa()).min(1),x1_cert:yr().of(oa()).min(1),x2_ca:yr().of(oa()).min(1),x2_key:yr().of(oa()).min(1),x2_cert:yr().of(oa()).min(1),x1_uids:yr().of(We()).min(1)});function b$(t){return{[`${t}_ca`]:yr().of(oa()).when([`${t}_key`,`${t}_cert`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n),[`${t}_key`]:yr().of(oa()).when([`${t}_ca`,`${t}_cert`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n),[`${t}_cert`]:yr().of(oa()).when([`${t}_ca`,`${t}_key`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n)}}function x$(t){return[[`${t}_ca`,`${t}_key`],[`${t}_ca`,`${t}_cert`],[`${t}_key`,`${t}_cert`]]}const aat=dr().shape({x1_ca:yr().of(oa()).min(1),x1_key:yr().of(oa()).min(1),x1_cert:yr().of(oa()).min(1),x2_ca:yr().of(oa()).min(1),x2_key:yr().of(oa()).min(1),x2_cert:yr().of(oa()).min(1),x1_uids:yr().of(We()).min(1),...b$("t3")},[...x$("t3")]),lat=dr().shape({...b$("x3"),...b$("t3")},[...x$("x3"),...x$("t3")]),kue=async t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>n.result?e(n.result):r(n.error),n.onerror=()=>r(n.error),n.readAsText(t)}),vw=t=>{const e=he.c(7),{name:r,disabled:n}=t,s=n===void 0?!1:n,i=Ye();let o;e[0]!==s||e[1]!==i||e[2]!==r?(o=c=>{const{field:u,meta:d,form:f}=c,{setFieldValue:p}=f;return a.jsxs(te,{direction:"column",children:[a.jsx(_e,{children:i.formatMessage({id:`lawful_interception.form.${r}`})}),a.jsx(Z_,{...u,label:i.formatMessage({id:"form_import_files.file"}),size:"medium",accept:{"application/x-pem-file":[".pem"]},maxFiles:1,multiple:!1,disabled:s,onChange:m=>{setTimeout(()=>{if(!m.length){p(u.name,[]);return}p(u.name,m)},0)},formError:d.error})]})},e[0]=s,e[1]=i,e[2]=r,e[3]=o):o=e[3];let l;return e[4]!==r||e[5]!==o?(l=a.jsx(Ke,{name:r,children:o}),e[4]=r,e[5]=o,e[6]=l):l=e[6],l};function cat(t){const e=he.c(31),{nf:r}=t,n=Ye(),{openConfirmDialog:s}=di(),i=zn(),o=gr();let l;e:{switch(r){case ue.MME:{let A;e[0]===Symbol.for("react.memo_cache_sentinel")?(A=["x1_ca","x1_key","x1_cert","x2_ca","x2_key","x2_cert"],e[0]=A):A=e[0],l=A;break e}case ue.SMF:{let A;e[1]===Symbol.for("react.memo_cache_sentinel")?(A=["x1_ca","x1_key","x1_cert","x2_ca","x2_key","x2_cert","t3_ca","t3_key","t3_cert"],e[1]=A):A=e[1],l=A;break e}case ue.UPF:{let A;e[2]===Symbol.for("react.memo_cache_sentinel")?(A=["x3_ca","x3_key","x3_cert","t3_ca","t3_key","t3_cert"],e[2]=A):A=e[2],l=A;break e}}l=void 0}const c=l;let u;e[3]!==c?(u=A=>c.reduce(async(P,T)=>{try{const j=await P,R=await kue(A[T][0]),D=btoa(R);return{...j,[T]:D}}catch{return{...await P}}},{}),e[3]=c,e[4]=u):u=e[4];const d=u;let f;e[5]!==o||e[6]!==d||e[7]!==r?(f=async A=>{const P=await d(A);let T;e:switch(r){case ue.MME:{T={x1:{ca:P.x1_ca,key:P.x1_key,cert:P.x1_cert},x2:{ca:P.x2_ca,key:P.x2_key,cert:P.x2_cert},...A.x1_uids.length>0&&{x1_uids:A.x1_uids}};break e}case ue.SMF:{T={x1:{ca:P.x1_ca,key:P.x1_key,cert:P.x1_cert},x2:{ca:P.x2_ca,key:P.x2_key,cert:P.x2_cert},...P.t3_ca&&P.t3_ca&&P.t3_cert&&{t3:{ca:P.t3_ca,key:P.t3_key,cert:P.t3_cert}},...A.x1_uids.length>0&&{x1_uids:A.x1_uids}};break e}case ue.UPF:T={...P.t3_ca&&P.t3_ca&&P.t3_cert&&{t3:{ca:P.t3_ca,key:P.t3_key,cert:P.t3_cert}},...P.x3_ca&&P.x3_key&&P.x3_cert&&{x3:{ca:P.x3_ca,key:P.x3_key,cert:P.x3_cert}}}}o.submit(T,{method:"POST",encType:"application/json",action:"create"})},e[5]=o,e[6]=d,e[7]=r,e[8]=f):f=e[8];const p=f;let m;e[9]!==o||e[10]!==n||e[11]!==s?(m=()=>{s({text:n.formatMessage({id:"lawful_interception.actions.confirm_delete"}),onConfirm:()=>{o.submit(null,{method:"DELETE",encType:"application/json",action:"delete"})}})},e[9]=o,e[10]=n,e[11]=s,e[12]=m):m=e[12];const h=m;let _;e:{switch(r){case ue.MME:{let A;e[13]===Symbol.for("react.memo_cache_sentinel")?(A={x1_ca:[],x1_key:[],x1_cert:[],x2_ca:[],x2_key:[],x2_cert:[],x1_uids:[]},e[13]=A):A=e[13],_=A;break e}case ue.SMF:{let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A={x1_ca:[],x1_key:[],x1_cert:[],x2_ca:[],x2_key:[],x2_cert:[],x1_uids:[],t3_ca:[],t3_key:[],t3_cert:[]},e[14]=A):A=e[14],_=A;break e}case ue.UPF:{let A;e[15]===Symbol.for("react.memo_cache_sentinel")?(A={x3_ca:[],x3_key:[],x3_cert:[],t3_ca:[],t3_key:[],t3_cert:[]},e[15]=A):A=e[15],_=A;break e}}_=void 0}const g=_;let y;e:{switch(r){case ue.MME:{y=oat;break e}case ue.SMF:{y=aat;break e}case ue.UPF:{y=lat;break e}}y=void 0}const b=y;let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"1226px"}),e[16]=x):x=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Tr,{}),e[17]=w):w=e[17];let C;e[18]!==o.data||e[19]!==o.state||e[20]!==c||e[21]!==h||e[22]!==p||e[23]!==g||e[24]!==n||e[25]!==r||e[26]!==b?(C=A=>a.jsx(Wr,{initialValues:g,validationSchema:b,enableReinitialize:!0,onSubmit:p,children:P=>{const{dirty:T}=P;return a.jsxs(dn,{canWrite:Ue(ie.lawful_interception),children:[a.jsx(hs,{children:a.jsx(te,{direction:"row",spacing:2,align:"center",children:!!A&&a.jsxs(a.Fragment,{children:[A.provisioned?a.jsx(bi,{status:nn.SUCCESS,asChip:!0,label:n.formatMessage({id:"lawful_interception.provisioned"})}):a.jsx(bi,{status:nn.ERROR,asChip:!0,label:n.formatMessage({id:"lawful_interception.not_provisioned"})}),a.jsx(Ze,{variant:"outlined",text:n.formatMessage({id:"lawful_interception.actions.delete"}),startIcon:a.jsx(ge.Trash,{}),disabled:!A?.provisioned||o.state!=="idle"||!Ue(ie.lawful_interception),onClick:h})]})})}),(r===ue.MME||r===ue.SMF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x1"}),children:a.jsxs(te,{spacing:2,fullWidth:!0,align:"stretch",children:[c.filter(pat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j)),a.jsx(_e,{children:n.formatMessage({id:"lawful_interception.form.title.x1_uids"})}),a.jsx(Ke,{name:"x1_uids",children:j=>{const{field:R,meta:D,form:O}=j,{setFieldValue:N}=O;return a.jsx(rn,{name:R.name,value:R.value,label:n.formatMessage({id:"lawful_interception.form.x1_uids"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(F,U)=>{N(R.name,U)},error:!!D.error,helperText:D.error,disabled:o.state!=="idle",fullWidth:!0})}})]})}),(r===ue.MME||r===ue.SMF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x2"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(fat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),(r===ue.SMF||r===ue.UPF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.t3"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(dat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),r===ue.UPF&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x3"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(uat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),a.jsxs(Kt,{children:[a.jsx(Xr,{data:o.data}),a.jsx(Ze,{type:"submit",text:n.formatMessage({id:"lawful_interception.buttons.save"}),disabled:!T||!Ue(ie.lawful_interception),loading:o.state!=="idle",sx:{alignSelf:"flex-start"}})]})]})}}),e[18]=o.data,e[19]=o.state,e[20]=c,e[21]=h,e[22]=p,e[23]=g,e[24]=n,e[25]=r,e[26]=b,e[27]=C):C=e[27];let k;return e[28]!==i.status||e[29]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:i.status,errorElement:w,children:C})}),e[28]=i.status,e[29]=C,e[30]=k):k=e[30],k}function uat(t){return t.includes("x3")}function dat(t){return t.includes("t3")}function fat(t){return t.includes("x2")}function pat(t){return t.includes("x1")}async function mat(t){const e=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:e,method:"GET",cache:!1}})}async function hat(t,e){const r=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:r,method:"POST",data:JSON.stringify(e)}})}async function gat(t){const e=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:e,method:"DELETE"}})}const _at=t=>async({request:e})=>{const r=await e.json(),n=await hat(t,r);return xt(n)||Nt(),Ft(n)},vat=t=>async()=>{const e=await gat(t);return xt(e)?Ar(e.error.detail||Pr().formatMessage({id:"lawful_interception.remove_ko"})):Nt(),Ft(e)},yat=t=>async e=>Wt({loaderArgs:e,deferred:!0,data:{status:mat(t)}});function p7(t){return{path:"lawful-interception",loader:yat(t),element:a.jsx(cat,{nf:t}),handle:vr({labelIntl:`route.${t}.lawful-interception`,to:"lawful-interception"}),children:[{path:"create",action:_at(t),loader:()=>rt("..")},{path:"delete",action:vat(t),loader:()=>rt("..")}]}}const bat=t=>{const e=he.c(5),{row:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r.counters?(s=r.counters?Object.entries(r.counters).map(l=>{const[c,u]=l;return a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:`gtpu.status.sockets.counters.${c}`})}),a.jsx(_e,{fontSize:"small",children:u})]},c)}):a.jsx(a.Fragment,{}),e[0]=n,e[1]=r.counters,e[2]=s):s=e[2];const i=s;let o;return e[3]!==i?(o=a.jsx(al,{children:i}),e[3]=i,e[4]=o):o=e[4],o};function xat(){const t=he.c(34),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpu.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpu.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpu.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpu.status.sockets.created"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"created",label:d,cellRender:Cat},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"gtpu.status.sockets.counters"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"counters",label:p,cellRender:wat},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==i||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==m?(h=[i,l,u,f,m],t[20]=i,t[21]=l,t[22]=u,t[23]=f,t[24]=m,t[25]=h):h=t[25];const _=h;let g;t[26]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[26]=g):g=t[26];let y;t[27]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(en,{}),t[27]=y):y=t[27];let b;t[28]!==_||t[29]!==n.state?(b=w=>a.jsx(Br,{autoScale:!0,data:w||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:w?.length,rowsPerPage:w?.length,rowKey:"transport_name",rowDetail:{content:Sat},columns:_,hidePagination:!0}),t[28]=_,t[29]=n.state,t[30]=b):b=t[30];let x;return t[31]!==r.sockets||t[32]!==b?(x=a.jsx(I.Suspense,{fallback:g,children:a.jsx(Qt,{resolve:r.sockets,errorElement:y,children:b})}),t[31]=r.sockets,t[32]=b,t[33]=x):x=t[33],x}function Sat(t){return a.jsx(bat,{row:t})}function wat(t){const{counters:e}=t;return e?a.jsx(_e,{type:"body2",children:Object.keys(e).length}):a.jsx(a.Fragment,{})}function Cat(t){const{created:e}=t;if(!e)return a.jsx(a.Fragment,{});const r=new Date(e*1e3);return a.jsx(_e,{type:"body2",children:Mr(r)})}async function Aat({nf:t}){const e=$.apis.gtpu.status.sockets(t);return De({options:{url:e,method:"GET"}})}function kat({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:Aat({nf:t})}})}function m7({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:r.formatMessage({id:"route.gtpu.sockets"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:kat({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(xat,{})}]}}const Xo=Pr(),Mat={path:"mme",handle:vr({labelIntl:"route.mme",icon:a.jsx(ge.MME,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"status",handle:vr({labelIntl:"route.mme.status",to:$.urls.mmeStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:Xo.formatMessage({id:"route.diameter"})},{url:"s1ap",label:Xo.formatMessage({id:"route.mme.status.s1ap"})},{url:"gtpc",label:Xo.formatMessage({id:"route.mme.status.gtpc"})},{url:"gtpu",label:Xo.formatMessage({id:"route.mme.status.gtpu"})},{url:"sgs",label:Xo.formatMessage({id:"route.mme.status.sgs"})},{url:"sbcap",label:Xo.formatMessage({id:"route.mme.status.sbcap"})},{url:"dns",label:Xo.formatMessage({id:"route.mme.status.dns"})},{url:"m3",label:Xo.formatMessage({id:"route.mme.status.m3"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.MME}),{path:"s1ap",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.s1ap.connections"})},{url:"listeners",label:Xo.formatMessage({id:"route.mme.status.s1ap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:Jot,errorElement:a.jsx(en,{}),element:a.jsx(lot,{}),children:[{action:Qot(),path:"disconnect",loader:()=>rt("..")},{action:Zot(),path:"reset",loader:()=>rt("..")}]},{path:"listeners",loader:eat,errorElement:a.jsx(en,{}),element:a.jsx(yot,{})}]},uk({path:"gtpc",nf:ue.MME,showBlockedPeers:!0}),m7({path:"gtpu",nf:ue.MME}),{path:"sgs",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.sgs.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:tat,errorElement:a.jsx(en,{}),element:a.jsx(Eot,{})}]},{path:"sbcap",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.sbcap.connections"})},{url:"listeners",label:Xo.formatMessage({id:"route.mme.status.sbcap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:rat,errorElement:a.jsx(en,{}),element:a.jsx(Sot,{})},{path:"listeners",loader:nat,errorElement:a.jsx(en,{}),element:a.jsx(Pot,{})}]},{path:"dns",element:a.jsx(la,{navs:[{url:"cache",label:Xo.formatMessage({id:"route.mme.status.dns.cache"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"cache",replace:!0})},{path:"cache",loader:sat,errorElement:a.jsx(en,{}),element:a.jsx(Git,{}),children:[{action:Xot,path:"flush",loader:()=>rt("..")}]}]},{path:"m3",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.m3.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:iat,errorElement:a.jsx(en,{}),element:a.jsx(rot,{})}]}]},io(ue.MME)]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.MME)]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.MME)]}]},LX=Pr(),S$=new RegExp($.regex.supi),Pat=t=>S$.test(t),jat=dr().shape({id:We().strict(!0).matches(S$,LX.formatMessage({id:"device_status.form.errors.format"},{value:`${S$.toString()}`})).required(LX.formatMessage({id:"device_status.form.errors.required"}))}),Tat=()=>{const t=he.c(39),e=ys(),r=Ye(),n=On(),{id:s}=ko(),{submit:i,state:o}=gr(),l=zn();let c;t[0]!==s||t[1]!==i?(c=()=>{s&&i({supi:s},{method:"POST",encType:"application/json",action:`${s}/udm-re-attach`})},t[0]=s,t[1]=i,t[2]=c):c=t[2];const u=c;let d;t[3]!==e?(d=j=>{e(j.id)},t[3]=e,t[4]=d):d=t[4];const f=d;let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"hidden"},t[5]=p):p=t[5];let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m={borderBottom:"1px solid",borderColor:"divider",px:2,py:1.5},t[6]=m):m=t[6];let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h={flex:"1 1 auto"},t[7]=h):h=t[7];const _=s||"";let g;t[8]!==_?(g={id:_},t[8]=_,t[9]=g):g=t[9];let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y=as(ie.monitoring),t[10]=y):y=t[10];let b;t[11]!==r||t[12]!==n.state?(b=a.jsx(dn,{canWrite:y,children:a.jsx(Ke,{name:"id",children:j=>{const{field:R,meta:D}=j;return a.jsxs(te,{direction:"row",spacing:0,fullWidth:!0,nowrap:!0,children:[a.jsx(dt,{...R,label:r.formatMessage({id:"device_status.form.id"}),size:"small",error:!!D.error,helperText:D.error,sx:{flex:"1 1 auto",fieldset:{borderRightColor:"rgba(51, 51, 51, 0.5)",borderTopRightRadius:"0px",borderBottomRightRadius:"0px"}}}),a.jsx(Ze,{type:"submit",text:"search",startIcon:a.jsx(ge.Search,{}),disabled:n.state!=="idle"||!as(ie.monitoring),sx:{mt:"4px",height:"40px",borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}})]})}})}),t[11]=r,t[12]=n.state,t[13]=b):b=t[13];let x;t[14]!==f||t[15]!==g||t[16]!==b?(x=a.jsx(gt,{sx:h,children:a.jsx(Wr,{initialValues:g,enableReinitialize:!0,validationSchema:jat,onSubmit:f,children:b})}),t[14]=f,t[15]=g,t[16]=b,t[17]=x):x=t[17];let w;t[18]!==u||t[19]!==s||t[20]!==r||t[21]!==o?(w=j=>a.jsx(a.Fragment,{children:s&&j.includes(ue.UDM)&&a.jsx(Ze,{text:r.formatMessage({id:"device_status.reAttach"}),variant:"outlined",onClick:u,loading:o!=="idle",sx:{mt:"4px",height:"40px"}})}),t[18]=u,t[19]=s,t[20]=r,t[21]=o,t[22]=w):w=t[22];let C;t[23]!==l.services||t[24]!==w?(C=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:l.services,children:w})}),t[23]=l.services,t[24]=w,t[25]=C):C=t[25];let k;t[26]!==C||t[27]!==x?(k=a.jsx(gt,{sx:m,children:a.jsxs(te,{spacing:2,align:"flex-start",justify:"space-between",fullWidth:!0,direction:"row",nowrap:!0,children:[x,C]})}),t[26]=C,t[27]=x,t[28]=k):k=t[28];let A;t[29]!==s||t[30]!==r||t[31]!==n.state?(A=!s&&n.state==="idle"&&a.jsx(gt,{sx:{p:2},children:a.jsx(Lr,{severity:"info",message:r.formatMessage({id:"device_status.noDataHint"})})}),t[29]=s,t[30]=r,t[31]=n.state,t[32]=A):A=t[32];let P;t[33]!==n.state?(P=n.state==="idle"?a.jsx(gt,{sx:{flex:"1 1 auto",overflow:"hidden"},children:a.jsx(Bd,{})}):a.jsx(Dt,{variant:"rectangular",width:"100%",sx:{flex:"1 1 auto"}}),t[33]=n.state,t[34]=P):P=t[34];let T;return t[35]!==k||t[36]!==A||t[37]!==P?(T=a.jsxs(te,{nowrap:!0,fullHeight:!0,sx:p,spacing:0,children:[k,A,P]}),t[35]=k,t[36]=A,t[37]=P,t[38]=T):T=t[38],T};var rb=(t=>(t.REQUESTED="REQUESTED",t.NOT_REQUESTED="NOT_REQUESTED",t))(rb||{});function zh(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Kt,{children:a.jsx(Lr,{severity:"error",message:Pr().formatMessage({id:"device_status.not_found"})})}),t[0]=e):e=t[0],e}function Qe(t){const e=he.c(7),{label:r,value:n}=t;if(n===void 0)return null;let s;e[0]!==r?(s=a.jsx(_e,{color:"text.secondary",type:"body2",fontWeight:600,children:r}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==n?(i=Array.isArray(n)&&n.length>0?n.map(Eat):a.jsx(_e,{type:"body2",children:`${n}`}),e[2]=n,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==i?(o=a.jsxs(te,{spacing:0,children:[s,i]}),e[4]=s,e[5]=i,e[6]=o):o=e[6],o}function Eat(t,e){return a.jsx(_e,{type:"body2",children:`${t}`},e)}function Rat(){const t=he.c(16),e=Gr(),r=gl(),n=gr(),s=Ye(),{menuOpen:i,menuClose:o}=Jt();let l;t[0]!==r?(l=(_,g)=>{r({id:_,reregister:g},{method:"POST",encType:"application/json",action:"amf-remove"})},t[0]=r,t[1]=l):l=t[1];const c=l;let u;t[2]!==c||t[3]!==s||t[4]!==o||t[5]!==i?(u=(_,g)=>{i({anchorEl:_?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:s.formatMessage({id:"device_status.amf.remove.reregister_requested"}),value:rb.REQUESTED,onClick:()=>{o(),c(g,rb.REQUESTED)}},{label:s.formatMessage({id:"device_status.amf.remove.reregister_not_requested"}),value:rb.NOT_REQUESTED,onClick:()=>{o(),c(g,rb.NOT_REQUESTED)}}]})},t[2]=c,t[3]=s,t[4]=o,t[5]=i,t[6]=u):u=t[6];const d=u;let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[7]=f):f=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(zh,{}),t[8]=p):p=t[8];let m;t[9]!==n||t[10]!==d||t[11]!==s?(m=_=>a.jsxs(a.Fragment,{children:[a.jsx(o7,{children:_.supi&&a.jsx(Ze,{text:s.formatMessage({id:"device_status.amf.remove"}),size:"small",onClick:g=>{_.supi&&d(g,_.supi)},loading:n.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})})}),a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.5gGuti"}),value:_["5gGuti"]}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.supi"}),value:_.supi}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.amfUeNgapID"}),value:_.amfUeNgapID}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ranUeNgapID"}),value:_.ranUeNgapID}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.cmState"}),value:_.cmState}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.mmState"}),value:_.mmState})]}),_.ueLocation&&a.jsxs(a.Fragment,{children:[a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:s.formatMessage({id:"device_status.amf.ueLocation.nrLocation.ncgi"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.ncgi.nrCellId"}),value:_.ueLocation.nrLocation?.ncgi?.nrCellId}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.ncgi.plmn"}),value:`${_.ueLocation.nrLocation?.ncgi?.plmnId.mcc}${_.ueLocation.nrLocation?.ncgi?.plmnId.mnc}`})]})}),a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:s.formatMessage({id:"device_status.amf.ueLocation.nrLocation.tai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.tai.plmn"}),value:`${_.ueLocation.nrLocation?.tai?.plmnId.mcc}${_.ueLocation.nrLocation?.tai?.plmnId.mnc}`}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.tai.tac"}),value:_.ueLocation.nrLocation?.tai?.tac})]})})]}),_.smContexts&&_.smContexts.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:s.formatMessage({id:"device_status.amf.smContexts"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:_.smContexts.map(g=>a.jsx(xr,{elevation:2,title:`${s.formatMessage({id:"device_status.amf.smContext"})} - ${g.pduSessionId}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.pduSessionId"}),value:g.pduSessionId}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.dnn"}),value:g.dnn}),g.sNssai&&a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.sNssai"}),value:g.sNssai.sd?`${g.sNssai.sst}-${g.sNssai.sd}`:g.sNssai.sst})]})},g.pduSessionId))})]})]})})]}),t[9]=n,t[10]=d,t[11]=s,t[12]=m):m=t[12];let h;return t[13]!==e.amfStatus||t[14]!==m?(h=a.jsx(I.Suspense,{fallback:f,children:a.jsx(Qt,{resolve:e.amfStatus,errorElement:p,children:m})}),t[13]=e.amfStatus,t[14]=m,t[15]=h):h=t[15],h}function Iat(){const t=he.c(8),e=Gr(),r=to(),n=ys(),{id:s}=ko();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Tr,{}),t[0]=i):i=t[0];let o;t[1]!==s||t[2]!==r.pathname||t[3]!==n?(o=c=>{const{activeTabs:u,startLocation:d}=c,f=r.pathname.split("/").at(-1);return s===f?(n(d,{replace:!0}),null):a.jsx(la,{navs:u})},t[1]=s,t[2]=r.pathname,t[3]=n,t[4]=o):o=t[4];let l;return t[5]!==e.tabs||t[6]!==o?(l=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:e.tabs,errorElement:i,children:o})}),t[5]=e.tabs,t[6]=o,t[7]=l):l=t[7],l}var nb=(t=>(t.REQUIRED="required",t.NOT_REQUIRED="not_required",t))(nb||{}),sb=(t=>(t.REQUIRED="required",t.NOT_REQUIRED="not_required",t))(sb||{});function Dat(t){const e=he.c(24),{decor:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.decor"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.decor.computed_usage_type"}),e[2]=n,e[3]=i):i=e[3];const o=r?.computed_usage_type;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.mme.decor.rerouted"}),e[7]=n,e[8]=c):c=e[8];const u=r?.rerouted;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==l||e[13]!==d?(f=a.jsxs(te,{children:[l,d]}),e[12]=l,e[13]=d,e[14]=f):f=e[14];let p;e[15]!==r||e[16]!==n?(p=r?.state&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.decor.state"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.static"}),value:r.state.static}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.hss"}),value:r.state.hss}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.ue"}),value:r.state.ue}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.mme"}),value:r.state.mme})]})}),e[15]=r,e[16]=n,e[17]=p):p=e[17];let m;e[18]!==f||e[19]!==p?(m=a.jsxs(te,{spacing:2,children:[f,p]}),e[18]=f,e[19]=p,e[20]=m):m=e[20];let h;return e[21]!==s||e[22]!==m?(h=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:m}),e[21]=s,e[22]=m,e[23]=h):h=e[23],h}function $at(t){const e=he.c(20),{esm:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.esm"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.esm.sgw_fqdn"}),e[2]=n,e[3]=i):i=e[3];const o=r?.sgw_fqdn;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==r||e[8]!==n?(c=r?.ue_ambr&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.esm.ue_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.ue_ambr.ul"}),value:r.ue_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.ue_ambr.dl"}),value:r.ue_ambr.dl})]})}),e[7]=r,e[8]=n,e[9]=c):c=e[9];let u;e[10]!==r||e[11]!==n?(u=r?.bearers&&r?.bearers.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.esm.bearers"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:r.bearers.map(p=>a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.mme.esm.bearer"})} - ${p.ebi}`,content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.ebi"}),value:p.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn"}),value:p.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.context_id"}),value:p.context_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.pdn_addr"}),value:p.pdn_addr})]}),p.apn_ambr&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr.ul"}),value:p.apn_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr.dl"}),value:p.apn_ambr.ul})]})}),p.rabs&&p.rabs.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.esm.bearer.rabs"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:p.rabs.map(m=>a.jsx(xr,{elevation:5,disableGutters:!0,expanded:!0,title:`${n.formatMessage({id:"device_status.mme.esm.bearer.rab"})} #${m.ebi}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.rab.ebi"}),value:m.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.rab.qos.qci"}),value:m.qos?.qci})]})}))})]})]})},p.ebi))})]}),e[10]=r,e[11]=n,e[12]=u):u=e[12];let d;e[13]!==l||e[14]!==c||e[15]!==u?(d=a.jsxs(te,{spacing:2,children:[l,c,u]}),e[13]=l,e[14]=c,e[15]=u,e[16]=d):d=e[16];let f;return e[17]!==s||e[18]!==d?(f=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:d}),e[17]=s,e[18]=d,e[19]=f):f=e[19],f}function Oat(t){const e=he.c(24),{profile:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.profile"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.profile.hss_host"}),e[2]=n,e[3]=i):i=e[3];const o=r?.hss_host;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.mme.profile.hss_realm"}),e[7]=n,e[8]=c):c=e[8];const u=r?.hss_realm;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==l||e[13]!==d?(f=a.jsxs(te,{children:[l,d]}),e[12]=l,e[13]=d,e[14]=f):f=e[14];let p;e[15]!==n||e[16]!==r?(p=r?.subscription&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription"}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.status"}),value:r.subscription.status}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.status"}),value:r.subscription.status}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.mode"}),value:r.subscription.mode}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.usage_type"}),value:r.subscription.usage_type})]}),r.subscription.ue_ambr&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr.dl"}),value:r.subscription.ue_ambr.dl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr.ul"}),value:r.subscription.ue_ambr.ul})]})}),r.subscription.config&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.default_context_id"}),value:r.subscription.config.default_context_id}),r.subscription.config.apns&&r.subscription.config.apns.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.profile.subscription.config.apns"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:r.subscription.config.apns.map(_=>a.jsx(xr,{elevation:5,title:`${_.apn} - ${_.pdn_type}`,content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn"}),value:_.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.context_id"}),value:_.context_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.pdn_type"}),value:_.pdn_type}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.data_mode"}),value:_.data_mode}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.non_ip"}),value:_.non_ip}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.non_ip_method"}),value:_.non_ip_method})]}),a.jsx(xr,{elevation:6,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.qci"}),value:_.qos?.qci}),_.qos?.arp&&a.jsx(xr,{elevation:7,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.priority_level"}),value:_.qos.arp.priority_level}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.preemption_capability"}),value:_.qos.arp.preemption_capability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.preemption_vulnerability"}),value:_.qos.arp.preemption_vulnerability})]})})]})}),_.apn_ambr&&a.jsx(xr,{elevation:6,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr.ul"}),value:_.apn_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr.dl"}),value:_.apn_ambr.ul})]})})]})},_.context_id))})]})]})})]})}),e[15]=n,e[16]=r,e[17]=p):p=e[17];let m;e[18]!==f||e[19]!==p?(m=a.jsxs(te,{spacing:2,children:[f,p]}),e[18]=f,e[19]=p,e[20]=m):m=e[20];let h;return e[21]!==s||e[22]!==m?(h=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:m}),e[21]=s,e[22]=m,e[23]=h):h=e[23],h}function Lat(){const t=he.c(29),e=Gr(),r=gl(),n=gr(),s=gr(),i=gr(),{menuOpen:o,menuClose:l}=Jt(),c=Ye();let u;t[0]!==r?(u=A=>()=>{r({imsi:A},{method:"POST",encType:"application/json",action:"mme-disconnect"})},t[0]=r,t[1]=u):u=t[1];const d=u;let f;t[2]!==r?(f=(A,P)=>{r({imsi:A,reattach:P},{method:"POST",encType:"application/json",action:"mme-detach"})},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==p||t[5]!==c||t[6]!==l||t[7]!==o?(m=(A,P)=>{o({anchorEl:A?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:c.formatMessage({id:"device_status.mme.detach.reattach_required"}),value:nb.REQUIRED,onClick:()=>{l(),p(P,nb.REQUIRED)}},{label:c.formatMessage({id:"device_status.mme.detach.reattach_not_required"}),value:nb.NOT_REQUIRED,onClick:()=>{l(),p(P,nb.NOT_REQUIRED)}}]})},t[4]=p,t[5]=c,t[6]=l,t[7]=o,t[8]=m):m=t[8];const h=m;let _;t[9]!==r?(_=(A,P)=>{r({imsi:A,reattach:P},{method:"POST",encType:"application/json",action:"mme-purge"})},t[9]=r,t[10]=_):_=t[10];const g=_;let y;t[11]!==g||t[12]!==c||t[13]!==l||t[14]!==o?(y=(A,P)=>{o({anchorEl:A?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:c.formatMessage({id:"device_status.mme.purge.reattach_required"}),value:sb.REQUIRED,onClick:()=>{l(),g(P,sb.REQUIRED)}},{label:c.formatMessage({id:"device_status.mme.purge.reattach_not_required"}),value:sb.NOT_REQUIRED,onClick:()=>{l(),g(P,sb.NOT_REQUIRED)}}]})},t[11]=g,t[12]=c,t[13]=l,t[14]=o,t[15]=y):y=t[15];const b=y;let x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=x):x=t[16];let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(zh,{}),t[17]=w):w=t[17];let C;t[18]!==s.state||t[19]!==n.state||t[20]!==i.state||t[21]!==h||t[22]!==d||t[23]!==b||t[24]!==c?(C=A=>a.jsxs(a.Fragment,{children:[a.jsx(o7,{children:a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.disconnect"}),size:"small",onClick:d(A.imsi),loading:n.state!=="idle",variant:"outlined"}),a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.detach"}),size:"small",onClick:P=>{h(P,A.imsi)},loading:s.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})}),a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.purge"}),size:"small",onClick:P=>{b(P,A.imsi)},loading:i.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})})]})}),a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.imsi"}),value:A.imsi}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.imeisv"}),value:A.imeisv}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.profile.subscription.msisdn"}),value:A.profile?.subscription?.msisdn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.profile.subscription.mode"}),value:A.profile?.subscription?.mode}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.age_of_location_info"}),value:A.age_of_location_info}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.ecm_state"}),value:A.ecm_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.emm_state"}),value:A.emm_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.last_radio_contact"}),value:A.last_radio_contact}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.pending_procedure"}),value:A.pending_procedure}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.sgs_state"}),value:A.sgs_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.drx"}),value:A.drx}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.guti"}),value:A.guti}),A.uli&&A.uli.tai&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.uli.tai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.tai.plmn"}),value:A.uli.tai.plmn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.tai.tac"}),value:A.uli.tai.tac})]})}),A.uli&&A.uli.ecgi&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.uli.ecgi"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.ecgi.plmn"}),value:A.uli.ecgi.plmn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.ecgi.eci"}),value:A.uli.ecgi.eci})]})}),A.profile&&a.jsx(Oat,{profile:A.profile}),A.decor&&a.jsx(Dat,{decor:A.decor}),A.esm&&a.jsx($at,{esm:A.esm}),A.psm&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.psm"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.psm"}),value:A.psm.psm}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.idle_since_ms"}),value:A.psm.idle_since_ms}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.t3324"}),value:A.psm.t3324})]})}),A.edrx&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.edrx"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.mode"}),value:A.edrx.mode}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.window"}),value:A.edrx.window}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.window_s"}),value:A.edrx.window_s}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.cycle"}),value:A.edrx.cycle}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.cycle_s"}),value:A.edrx.cycle_s})]})})]})})]}),t[18]=s.state,t[19]=n.state,t[20]=i.state,t[21]=h,t[22]=d,t[23]=b,t[24]=c,t[25]=C):C=t[25];let k;return t[26]!==e.mmeStatus||t[27]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:e.mmeStatus,errorElement:w,children:C})}),t[26]=e.mmeStatus,t[27]=C,t[28]=k):k=t[28],k}function Nat(t){const e=he.c(14),{activeAppSessions:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.pcf.active_app_sessions"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;if(e[4]!==r||e[5]!==n){let u;e[7]!==n?(u=d=>a.jsx(xr,{title:n.formatMessage({id:"device_status.pcf.active_app_session"},{id:d.id}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.interface_type"}),value:d.interface_type}),a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules"})}),d.rules&&d.rules.length>0&&a.jsx(Jn,{exclusive:!0,children:d.rules.map(f=>a.jsx(xr,{expanded:!0,disableGutters:!0,title:n.formatMessage({id:"device_status.pcf.active_app_sessions.rule"},{id:f.rule_id}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.rule_id"}),value:f.rule_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_id"}),value:f.qos_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_5qi"}),value:f.qos_5qi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_gbrDl"}),value:f.qos_gbrDl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_gbrUl"}),value:f.qos_gbrUl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_maxbrDl"}),value:f.qos_maxbrDl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_maxbrUl"}),value:f.qos_maxbrUl}),f.flow_infos&&f.flow_infos.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos"})}),a.jsx(Jn,{exclusive:!0,children:f.flow_infos.map((p,m)=>a.jsx(xr,{title:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_info"},{id:m}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos.description"}),value:p.description}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos.direction"}),value:p.direction})]})},m))})]})]})},f.rule_id))})]})]})},d.id),e[7]=n,e[8]=u):u=e[8],o=r.map(u),e[4]=r,e[5]=n,e[6]=o}else o=e[6];let l;e[9]!==o?(l=a.jsx(Jn,{exclusive:!0,spacing:1,children:o}),e[9]=o,e[10]=l):l=e[10];let c;return e[11]!==i||e[12]!==l?(c=a.jsxs(te,{children:[i,l]}),e[11]=i,e[12]=l,e[13]=c):c=e[13],c}function Fat(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:e.formatMessage({id:"device_status.pcf.pdu_session"},{id:c.pdu_session_id}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pdu_session_id"}),value:c.pdu_session_id}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pdu_session_type"}),value:c.pdu_session_type}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.supi"}),value:c.supi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.dnn"}),value:c.dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.ipv4_addr"}),value:c.ipv4_addr}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.ipv6_addr"}),value:c.ipv6_addr}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.is_emergency"}),value:c.is_emergency}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pei"}),value:c.pei}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.plmn"}),value:`${c.plmn?.mcc}${c.plmn?.mnc}`}),c.snssai&&a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.snssai"}),value:c.snssai.sd?`${c.snssai.sst}-${c.snssai.sd}`:c.snssai.sst})]}),c.active_app_sessions&&c.active_app_sessions.length>0&&a.jsx(Nat,{activeAppSessions:c.active_app_sessions})]})},c.pdu_session_id))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.pcfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.pcfStatus,errorElement:s,children:i})}),t[4]=r.pcfStatus,t[5]=i,t[6]=o):o=t[6],o}function Uat(t){const e=he.c(10),{dedicatedBearers:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.sgwc.session.dedicated_bearers"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==n?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer"})} - ${c.ebi}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ebi"}),value:c.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.lebi"}),value:c.lebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.rat"}),value:c.rat}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.apn"}),value:c.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ambr.uplink"}),value:c?.ambr?.uplink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ambr.downlink"}),value:c?.ambr?.downlink}),a.jsx(xr,{elevation:3,disableGutters:!0,title:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.ambr.uplink"}),value:c?.qos?.ambr?.uplink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.ambr.downlink"}),value:c?.qos?.ambr?.downlink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.preemption_capability"}),value:c?.qos?.arp?.preemption_capability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.preemption_vulnerability"}),value:c?.qos?.arp?.preemption_vulnerability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.priority"}),value:c?.qos?.arp?.priority}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.qci"}),value:c?.qos?.qci})]})})]})},c.ebi))}),e[4]=r,e[5]=n,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function Bat(t){const e=he.c(85),{defaultBearer:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.sgwc.session.default_bearer"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ebi"}),e[2]=n,e[3]=i):i=e[3];const o=r?.ebi;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.sgwc.session.default_bearer.lebi"}),e[7]=n,e[8]=c):c=e[8];const u=r?.lebi;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.sgwc.session.default_bearer.rat"}),e[12]=n,e[13]=f):f=e[13];const p=r?.rat;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.sgwc.session.default_bearer.apn"}),e[17]=n,e[18]=h):h=e[18];const _=r?.apn;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ambr.uplink"}),e[22]=n,e[23]=y):y=e[23];const b=r?.ambr?.uplink;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ambr.downlink"}),e[27]=n,e[28]=w):w=e[28];const C=r?.ambr?.downlink;let k;e[29]!==w||e[30]!==C?(k=a.jsx(Qe,{label:w,value:C}),e[29]=w,e[30]=C,e[31]=k):k=e[31];let A;e[32]!==n?(A=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos"}),e[32]=n,e[33]=A):A=e[33];let P;e[34]!==n?(P=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.ambr.uplink"}),e[34]=n,e[35]=P):P=e[35];const T=r?.qos?.ambr?.uplink;let j;e[36]!==P||e[37]!==T?(j=a.jsx(Qe,{label:P,value:T}),e[36]=P,e[37]=T,e[38]=j):j=e[38];let R;e[39]!==n?(R=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.ambr.downlink"}),e[39]=n,e[40]=R):R=e[40];const D=r?.qos?.ambr?.downlink;let O;e[41]!==R||e[42]!==D?(O=a.jsx(Qe,{label:R,value:D}),e[41]=R,e[42]=D,e[43]=O):O=e[43];let N;e[44]!==n?(N=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.preemption_capability"}),e[44]=n,e[45]=N):N=e[45];const F=r?.qos?.arp?.preemption_capability;let U;e[46]!==N||e[47]!==F?(U=a.jsx(Qe,{label:N,value:F}),e[46]=N,e[47]=F,e[48]=U):U=e[48];let z;e[49]!==n?(z=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.preemption_vulnerability"}),e[49]=n,e[50]=z):z=e[50];const H=r?.qos?.arp?.preemption_vulnerability;let W;e[51]!==z||e[52]!==H?(W=a.jsx(Qe,{label:z,value:H}),e[51]=z,e[52]=H,e[53]=W):W=e[53];let K;e[54]!==n?(K=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.priority"}),e[54]=n,e[55]=K):K=e[55];const q=r?.qos?.arp?.priority;let X;e[56]!==K||e[57]!==q?(X=a.jsx(Qe,{label:K,value:q}),e[56]=K,e[57]=q,e[58]=X):X=e[58];let Q;e[59]!==n?(Q=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.qci"}),e[59]=n,e[60]=Q):Q=e[60];const Y=r?.qos?.qci;let Z;e[61]!==Q||e[62]!==Y?(Z=a.jsx(Qe,{label:Q,value:Y}),e[61]=Q,e[62]=Y,e[63]=Z):Z=e[63];let re;e[64]!==j||e[65]!==O||e[66]!==U||e[67]!==W||e[68]!==X||e[69]!==Z?(re=a.jsxs(te,{children:[j,O,U,W,X,Z]}),e[64]=j,e[65]=O,e[66]=U,e[67]=W,e[68]=X,e[69]=Z,e[70]=re):re=e[70];let fe;e[71]!==A||e[72]!==re?(fe=a.jsx(xr,{elevation:3,disableGutters:!0,title:A,content:re}),e[71]=A,e[72]=re,e[73]=fe):fe=e[73];let de;e[74]!==m||e[75]!==g||e[76]!==x||e[77]!==k||e[78]!==l||e[79]!==fe||e[80]!==d?(de=a.jsxs(te,{children:[l,d,m,g,x,k,fe]}),e[74]=m,e[75]=g,e[76]=x,e[77]=k,e[78]=l,e[79]=fe,e[80]=d,e[81]=de):de=e[81];let se;return e[82]!==s||e[83]!==de?(se=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:de}),e[82]=s,e[83]=de,e[84]=se):se=e[84],se}function zat(){const t=he.c(7),e=Gr(),r=Ye();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==r?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:`${r.formatMessage({id:"device_status.sgwc.session"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.id"}),value:c.id}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.id_type"}),value:c.id_type}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.upf_ip"}),value:c.upf_ip}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.mme_ip"}),value:c.mme_ip}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.pgw_ip"}),value:c.pgw_ip})]}),c.default_bearer&&a.jsx(Bat,{defaultBearer:c.default_bearer}),c.dedicated_bearers&&c.dedicated_bearers.length>0&&a.jsx(Uat,{dedicatedBearers:c.dedicated_bearers})]})},c.id))})}),t[2]=r,t[3]=i):i=t[3];let o;return t[4]!==e.sgwcStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:e.sgwcStatus,errorElement:s,children:i})}),t[4]=e.sgwcStatus,t[5]=i,t[6]=o):o=t[6],o}function qat(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:`${e.formatMessage({id:"device_status.smf.pduSession"})} - ${c.pduSessionId}`,content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.pduSessionId"}),value:c.pduSessionId}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.pduSessionType"}),value:c.pduSessionType}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.supi"}),value:c.supi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.dnn"}),value:c.dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.ue_ipv6_prefix"}),value:c.ue_ipv6_prefix}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.ue_ipv4_address"}),value:c.ue_ipv4_address}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.detectedMacAddresses"}),value:c.detected_mac_addresses}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.sNssai"}),value:c.sNssai.sd?`${c.sNssai.sst}-${c.sNssai.sd}`:c.sNssai.sst})]}),c.n4c&&c.n4c.local_fseid&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.n4c.localFseid"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.ipv4"}),value:c.n4c.local_fseid.ipv4}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.ipv6"}),value:c.n4c.local_fseid.ipv6}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.seid"}),value:c.n4c.local_fseid.seid})]})}),c.n4c&&c.n4c.remote_fseid&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.n4c.remoteFseid"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.ipv4"}),value:c.n4c.remote_fseid.ipv4}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.ipv6"}),value:c.n4c.remote_fseid.ipv6}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.seid"}),value:c.n4c.remote_fseid.seid})]})}),c.charging&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.charging"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.chargingChar"}),value:c.charging.charging_char}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.chargingDataRef"}),value:c.charging.charging_data_ref}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.sequenceNum"}),value:c.charging.sequence_num})]})})]})},c.pduSessionId))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.smfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.smfStatus,errorElement:s,children:i})}),t[4]=r.smfStatus,t[5]=i,t[6]=o):o=t[6],o}function Vat(t){const e=he.c(44),{aaa:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.aaa"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.aaa.dataSubscriptionNotificationFailure"}),e[2]=n,e[3]=i):i=e[3];const o=r?.data_subscription_notification_failure;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.aaa.host"}),e[7]=n,e[8]=c):c=e[8];const u=r?.host;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.aaa.plmn"}),e[12]=n,e[13]=f):f=e[13];const p=`${r?.plmn.mcc}${r?.plmn.mnc}`;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.aaa.ratType"}),e[17]=n,e[18]=h):h=e[18];const _=r?.rat_type;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.aaa.realm"}),e[22]=n,e[23]=y):y=e[23];const b=r?.realm;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.udrSupiStatus.aaa.registeredAt"}),e[27]=n,e[28]=w):w=e[28];const C=r?.registered_at;let k;e[29]!==C?(k=Mr(C),e[29]=C,e[30]=k):k=e[30];let A;e[31]!==w||e[32]!==k?(A=a.jsx(Qe,{label:w,value:k}),e[31]=w,e[32]=k,e[33]=A):A=e[33];let P;e[34]!==m||e[35]!==g||e[36]!==x||e[37]!==A||e[38]!==l||e[39]!==d?(P=a.jsxs(te,{children:[l,d,m,g,x,A]}),e[34]=m,e[35]=g,e[36]=x,e[37]=A,e[38]=l,e[39]=d,e[40]=P):P=e[40];let T;return e[41]!==s||e[42]!==P?(T=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:P}),e[41]=s,e[42]=P,e[43]=T):T=e[43],T}function Hat(t){const e=he.c(44),{amf:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.amf"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.amf.amfInstanceID"}),e[2]=n,e[3]=i):i=e[3];const o=r?.amf_instance_id;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.amf.pei"}),e[7]=n,e[8]=c):c=e[8];const u=r?.pei;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.amf.dataSubscriptionNotificationFailure"}),e[12]=n,e[13]=f):f=e[13];const p=r?.data_subscription_notification_failure;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.amf.ratType"}),e[17]=n,e[18]=h):h=e[18];const _=r?.rat_type;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.amf.registeredAt"}),e[22]=n,e[23]=y):y=e[23];const b=r?.registered_at;let x;e[24]!==b?(x=Mr(b),e[24]=b,e[25]=x):x=e[25];let w;e[26]!==y||e[27]!==x?(w=a.jsx(Qe,{label:y,value:x}),e[26]=y,e[27]=x,e[28]=w):w=e[28];let C;e[29]!==m||e[30]!==g||e[31]!==w||e[32]!==l||e[33]!==d?(C=a.jsxs(te,{children:[l,d,m,g,w]}),e[29]=m,e[30]=g,e[31]=w,e[32]=l,e[33]=d,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==n?(k=r?.guami&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.amfID"}),value:r.guami.amf_id}),a.jsx(xr,{elevation:4,expanded:!0,disableGutters:!0,title:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.mcc"}),value:r.guami.plmn.mcc}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.mnc"}),value:r.guami.plmn.mnc}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.nid"}),value:r.guami.plmn.nid})]})})]})}),e[35]=r,e[36]=n,e[37]=k):k=e[37];let A;e[38]!==C||e[39]!==k?(A=a.jsxs(te,{spacing:2,children:[C,k]}),e[38]=C,e[39]=k,e[40]=A):A=e[40];let P;return e[41]!==s||e[42]!==A?(P=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:A}),e[41]=s,e[42]=A,e[43]=P):P=e[43],P}function Gat(t){const e=he.c(56),{mme:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.mme"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.mme.host"}),e[2]=n,e[3]=i):i=e[3];const o=r?.host;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.mme.realm"}),e[7]=n,e[8]=c):c=e[8];const u=r?.realm;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.mme.pei"}),e[12]=n,e[13]=f):f=e[13];const p=r?.pei;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.mme.registeredForSms"}),e[17]=n,e[18]=h):h=e[18];const _=r?.registered_for_sms;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.mme.dataSubscriptionNotificationFailure"}),e[22]=n,e[23]=y):y=e[23];const b=r?.data_subscription_notification_failure;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.udrSupiStatus.mme.ratType"}),e[27]=n,e[28]=w):w=e[28];const C=r?.rat_type;let k;e[29]!==w||e[30]!==C?(k=a.jsx(Qe,{label:w,value:C}),e[29]=w,e[30]=C,e[31]=k):k=e[31];let A;e[32]!==n?(A=n.formatMessage({id:"device_status.udrSupiStatus.mme.plmn"}),e[32]=n,e[33]=A):A=e[33];const P=`${r?.plmn.mcc}${r?.plmn.mnc}`;let T;e[34]!==A||e[35]!==P?(T=a.jsx(Qe,{label:A,value:P}),e[34]=A,e[35]=P,e[36]=T):T=e[36];let j;e[37]!==n?(j=n.formatMessage({id:"device_status.udrSupiStatus.mme.registeredAt"}),e[37]=n,e[38]=j):j=e[38];const R=r?.registered_at;let D;e[39]!==R?(D=Mr(R),e[39]=R,e[40]=D):D=e[40];let O;e[41]!==j||e[42]!==D?(O=a.jsx(Qe,{label:j,value:D}),e[41]=j,e[42]=D,e[43]=O):O=e[43];let N;e[44]!==m||e[45]!==g||e[46]!==x||e[47]!==k||e[48]!==T||e[49]!==O||e[50]!==l||e[51]!==d?(N=a.jsxs(te,{children:[l,d,m,g,x,k,T,O]}),e[44]=m,e[45]=g,e[46]=x,e[47]=k,e[48]=T,e[49]=O,e[50]=l,e[51]=d,e[52]=N):N=e[52];let F;return e[53]!==s||e[54]!==N?(F=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:N}),e[53]=s,e[54]=N,e[55]=F):F=e[55],F}function Wat(t){const e=he.c(13),{mwdStatus:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={borderRadius:1},e[0]=s):s=e[0];let i;e[1]!==n?(i=n.formatMessage({id:"device_status.udrInfo.mwdStatus"}),e[1]=n,e[2]=i):i=e[2];let o;e[3]!==n?(o=n.formatMessage({id:"device_status.udrInfo.mwdStatus.host"}),e[3]=n,e[4]=o):o=e[4];let l;e[5]!==r?(l=r.map(Yat),e[5]=r,e[6]=l):l=e[6];let c;e[7]!==o||e[8]!==l?(c=a.jsx(Qe,{label:o,value:l}),e[7]=o,e[8]=l,e[9]=c):c=e[9];let u;return e[10]!==i||e[11]!==c?(u=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,sx:s,title:i,content:c}),e[10]=i,e[11]=c,e[12]=u):u=e[12],u}function Yat(t){return t.host}function Kat(t){const e=he.c(53),{sgsn:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={borderRadius:1},e[0]=s):s=e[0];let i;e[1]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.sgsn"}),e[1]=n,e[2]=i):i=e[2];let o;e[3]!==n?(o=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.dataSubscriptionNotificationFailure"}),e[3]=n,e[4]=o):o=e[4];const l=`${r?.data_subscription_notification_failure}`;let c;e[5]!==o||e[6]!==l?(c=a.jsx(Qe,{label:o,value:l}),e[5]=o,e[6]=l,e[7]=c):c=e[7];let u;e[8]!==n?(u=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.plmn"}),e[8]=n,e[9]=u):u=e[9];const d=`${r?.plmn.mcc}${r?.plmn.mnc}`;let f;e[10]!==u||e[11]!==d?(f=a.jsx(Qe,{label:u,value:d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let p;e[13]!==n?(p=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.ratType"}),e[13]=n,e[14]=p):p=e[14];const m=r?.rat_type;let h;e[15]!==m||e[16]!==p?(h=a.jsx(Qe,{label:p,value:m}),e[15]=m,e[16]=p,e[17]=h):h=e[17];let _;e[18]!==n?(_=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.registeredAt"}),e[18]=n,e[19]=_):_=e[19];const g=r?.registered_at;let y;e[20]!==g?(y=Mr(g),e[20]=g,e[21]=y):y=e[21];let b;e[22]!==_||e[23]!==y?(b=a.jsx(Qe,{label:_,value:y}),e[22]=_,e[23]=y,e[24]=b):b=e[24];let x;e[25]!==n||e[26]!==r?(x=r&&"host"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.host"}),value:r.host}),e[25]=n,e[26]=r,e[27]=x):x=e[27];let w;e[28]!==n||e[29]!==r?(w=r&&"pei"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.pei"}),value:r.pei}),e[28]=n,e[29]=r,e[30]=w):w=e[30];let C;e[31]!==n||e[32]!==r?(C=r&&"realm"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.realm"}),value:r.realm}),e[31]=n,e[32]=r,e[33]=C):C=e[33];let k;e[34]!==n||e[35]!==r?(k=r&&"address"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.address"}),value:r.address}),e[34]=n,e[35]=r,e[36]=k):k=e[36];let A;e[37]!==n||e[38]!==r?(A=r&&"number"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.number"}),value:r.number}),e[37]=n,e[38]=r,e[39]=A):A=e[39];let P;e[40]!==h||e[41]!==b||e[42]!==x||e[43]!==w||e[44]!==C||e[45]!==k||e[46]!==A||e[47]!==c||e[48]!==f?(P=a.jsxs(te,{children:[c,f,h,b,x,w,C,k,A]}),e[40]=h,e[41]=b,e[42]=x,e[43]=w,e[44]=C,e[45]=k,e[46]=A,e[47]=c,e[48]=f,e[49]=P):P=e[49];let T;return e[50]!==i||e[51]!==P?(T=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,sx:s,title:i,content:P}),e[50]=i,e[51]=P,e[52]=T):T=e[52],T}function Qat(t){const e=he.c(5),{smf:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r?(s=r&&r.length>0&&a.jsx(Jn,{spacing:1,children:r.map(o=>{const{smf_instance_id:l,pdu_sessions:c}=o;return a.jsx(xr,{elevation:2,title:n.formatMessage({id:"device_status.udrSupiStatus.smf"},{id:l}),content:a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_sessions"})}),a.jsx(Jn,{spacing:1,children:c.map(u=>{const{pdu_session_id:d,dnn:f,emergency_services:p,registered_at:m,single_nssai:h}=u;return a.jsx(xr,{elevation:3,title:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session"},{id:d}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.dnn"}),value:f}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.emergency_services"}),value:p}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.registered_at"}),value:Mr(m)}),a.jsx(xr,{expanded:!0,elevation:4,title:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai.sd"}),value:h.sd}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai.sst"}),value:h.sst})]})})]})},d)})})]})},l)})}),e[0]=n,e[1]=r,e[2]=s):s=e[2];let i;return e[3]!==s?(i=a.jsx(a.Fragment,{children:s}),e[3]=s,e[4]=i):i=e[4],i}function Zat(t){const e=he.c(38),{vlr:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.vlr"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.vlr.data_subscription_notification_failure"}),e[2]=n,e[3]=i):i=e[3];const o=r?.data_subscription_notification_failure;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.vlr.msc_number"}),e[7]=n,e[8]=c):c=e[8];const u=r?.msc_number;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.vlr.number"}),e[12]=n,e[13]=f):f=e[13];const p=r?.number;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.vlr.plmn"}),e[17]=n,e[18]=h):h=e[18];const _=`${r?.plmn.mcc}${r?.plmn.mnc}`;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.vlr.registered_at"}),e[22]=n,e[23]=y):y=e[23];const b=r?.registered_at;let x;e[24]!==b?(x=Mr(b),e[24]=b,e[25]=x):x=e[25];let w;e[26]!==y||e[27]!==x?(w=a.jsx(Qe,{label:y,value:x}),e[26]=y,e[27]=x,e[28]=w):w=e[28];let C;e[29]!==m||e[30]!==g||e[31]!==w||e[32]!==l||e[33]!==d?(C=a.jsx(te,{spacing:2,children:a.jsxs(te,{children:[l,d,m,g,w]})}),e[29]=m,e[30]=g,e[31]=w,e[32]=l,e[33]=d,e[34]=C):C=e[34];let k;return e[35]!==s||e[36]!==C?(k=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:C}),e[35]=s,e[36]=C,e[37]=k):k=e[37],k}function Xat(){const t=he.c(4),e=Gr();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(zh,{}),t[1]=n):n=t[1];let s;return t[2]!==e.udrStatus?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.udrStatus,errorElement:n,children:Jat})}),t[2]=e.udrStatus,t[3]=s):s=t[3],s}function Jat(t){const{udrSupiStatus:e,mwdStatus:r}=t;return a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[e.location.aaa&&a.jsx(Vat,{aaa:e.location.aaa}),e.location.amf&&a.jsx(Hat,{amf:e.location.amf}),e.location.mme&&a.jsx(Gat,{mme:e.location.mme}),e.location.vlr&&a.jsx(Zat,{vlr:e.location.vlr}),e.location.sgsn&&a.jsx(Kat,{sgsn:e.location.sgsn}),r.length>0&&a.jsx(Wat,{mwdStatus:r}),e.sessions.smf&&e.sessions.smf.length>0&&a.jsx(Qat,{smf:e.sessions.smf})]})})}function elt(t){const e=he.c(10),{farList:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.upfSession.far"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==n?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.upfSession.far.item_id"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.id"}),value:c.id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.apply_actions"}),value:c.apply_actions}),c.forwarding_params&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.upfSession.far.forwarding_params"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.network_instance"}),value:c.forwarding_params.network_instance}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.destination_iface"}),value:c.forwarding_params.destination_iface}),c.forwarding_params.ohc&&a.jsx(xr,{disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.hdr"}),value:c.forwarding_params.ohc.hdr}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.teid"}),value:c.forwarding_params.ohc.teid}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.ipv4"}),value:c.forwarding_params.ohc.ipv4})]})})]})})]})},c.id))}),e[4]=r,e[5]=n,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function tlt(t){const e=he.c(10),{pdrList:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.upfSession.pdr"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n||e[5]!==r?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.upfSession.pdr.item_id"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.id"}),value:c.id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.far_id"}),value:c.far_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ohr"}),value:c.ohr}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.source_iface"}),value:c.source_iface}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.network_instance"}),value:c.network_instance}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.qfi"}),value:c.qfi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.vrf_index"}),value:c.vrf_index}),c.pdi&&a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.upfSession.pdr.pdi"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.pdi_type"}),value:c.pdi.pdi_type}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.ip"}),value:c.pdi.ip})," ",a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.teid"}),value:c.pdi.teid})," ",a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.vrf"}),value:c.pdi.vrf})]})}),c.ue_ip_addr&&a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.ipv4"}),value:c.ue_ip_addr.ipv4}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.ipv6"}),value:c.ue_ip_addr.ipv6}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.sd"}),value:c.ue_ip_addr.sd})]})})]})},c.id))}),e[4]=n,e[5]=r,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{spacing:1,children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function rlt(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!1,children:l.map(c=>a.jsx(xr,{title:`${e.formatMessage({id:"device_status.upfSession.seid"})} - ${c.seid}`,sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.seid"}),value:c.seid}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.apn_dnn"}),value:c.apn_dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.pdn_type"}),value:c.pdn_type}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.framed_routes"}),value:c.framed_routes}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.managed_routes"}),value:c.managed_routes}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.mac_addrs"}),value:c.mac_addrs})]}),a.jsx(xr,{elevation:2,title:`${e.formatMessage({id:"device_status.upfSessioon.user_id"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.imsi"}),value:c.user_id?.imsi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.imei"}),value:c.user_id?.imei}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.msisdn"}),value:c.user_id?.msisdn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.nai"}),value:c.user_id?.nai})]})}),c.pdr&&c.pdr.length>0&&a.jsx(tlt,{pdrList:c.pdr}),c.far&&c.far.length>0&&a.jsx(elt,{farList:c.far})]})},c.seid))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.upfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.upfStatus,errorElement:s,children:i})}),t[4]=r.upfStatus,t[5]=i,t[6]=o):o=t[6],o}var BI,NX;function nlt(){if(NX)return BI;NX=1;var t=J$(),e=lv(),r="[object RegExp]";function n(s){return e(s)&&t(s)==r}return BI=n,BI}var zI,FX;function slt(){if(FX)return zI;FX=1;var t=nlt(),e=jh(),r=rO(),n=r&&r.isRegExp,s=n?e(n):t;return zI=s,zI}var qI,UX;function ilt(){if(UX)return qI;UX=1;var t=dge(),e=t("length");return qI=e,qI}var VI,BX;function olt(){if(BX)return VI;BX=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=e+r+n,i="\\ufe0e\\ufe0f",o="["+t+"]",l="["+s+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",h=u+"?",_="["+i+"]?",g="(?:"+m+"(?:"+[d,f,p].join("|")+")"+_+h+")*",y=_+h+g,b="(?:"+[d+l+"?",l,f,p,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+b+y,"g");function w(C){for(var k=x.lastIndex=0;x.test(C);)++k;return k}return VI=w,VI}var HI,zX;function alt(){if(zX)return HI;zX=1;var t=ilt(),e=yte(),r=olt();function n(s){return e(s)?r(s):t(s)}return HI=n,HI}var GI,qX;function llt(){if(qX)return GI;qX=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return GI=e,GI}var WI,VX;function clt(){if(VX)return WI;VX=1;var t=llt(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return WI=r,WI}var YI,HX;function ult(){if(HX)return YI;HX=1;var t=clt(),e=Qd(),r=hte(),n=NaN,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var f=i.test(u);return f||o.test(u)?l(u.slice(2),f?2:8):s.test(u)?n:+u}return YI=c,YI}var KI,GX;function dlt(){if(GX)return KI;GX=1;var t=ult(),e=1/0,r=17976931348623157e292;function n(s){if(!s)return s===0?s:0;if(s=t(s),s===e||s===-e){var i=s<0?-1:1;return i*r}return s===s?s:0}return KI=n,KI}var QI,WX;function flt(){if(WX)return QI;WX=1;var t=dlt();function e(r){var n=t(r),s=n%1;return n===n?s?n-s:n:0}return QI=e,QI}var ZI,YX;function plt(){if(YX)return ZI;YX=1;var t=fge(),e=pge(),r=yte(),n=Qd(),s=slt(),i=alt(),o=mge(),l=flt(),c=hge(),u=30,d="...",f=/\w*$/;function p(m,h){var _=u,g=d;if(n(h)){var y="separator"in h?h.separator:y;_="length"in h?l(h.length):_,g="omission"in h?t(h.omission):g}m=c(m);var b=m.length;if(r(m)){var x=o(m);b=x.length}if(_>=b)return m;var w=_-i(g);if(w<1)return g;var C=x?e(x,0,w).join(""):m.slice(0,w);if(y===void 0)return C+g;if(x&&(w+=C.length-w),s(y)){if(m.slice(w).search(y)){var k,A=C;for(y.global||(y=RegExp(y.source,c(f.exec(y))+"g")),y.lastIndex=0;k=y.exec(A);)var P=k.index;C=C.slice(0,P===void 0?w:P)}}else if(m.indexOf(t(y),w)!=w){var T=C.lastIndexOf(y);T>-1&&(C=C.slice(0,T))}return C+g}return ZI=p,ZI}var mlt=plt();const hlt=Pi(mlt),glt=()=>{const t=he.c(46),e=Ye(),r=Gr(),n=_lt;let s;t[0]!==e?(s=e.formatMessage({id:"landing.alerts.title.severity"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==e?(i=R=>a.jsx(Lr,{severity:n(R.labels.severity),message:e.formatMessage({id:`landing.alerts.severity.${R.labels.severity}`}),sx:{maxWidth:"160px",".MuiAlert-message":{wordBreak:"keep-all"}}}),t[2]=e,t[3]=i):i=t[3];let o;t[4]!==s||t[5]!==i?(o={key:"labels.severity",label:s,cellRender:i,wordBreak:"keep-all"},t[4]=s,t[5]=i,t[6]=o):o=t[6];let l;t[7]!==e?(l=e.formatMessage({id:"landing.alerts.title.name"}),t[7]=e,t[8]=l):l=t[8];let c;t[9]!==l?(c={key:"labels.alertname",label:l,cellRender:vlt},t[9]=l,t[10]=c):c=t[10];let u;t[11]!==e?(u=e.formatMessage({id:"landing.alerts.title.summary"}),t[11]=e,t[12]=u):u=t[12];let d;t[13]!==u?(d={key:"annotations.summary",label:u,cellRender:ylt},t[13]=u,t[14]=d):d=t[14];let f;t[15]!==e?(f=e.formatMessage({id:"landing.alerts.title.state"}),t[15]=e,t[16]=f):f=t[16];let p;t[17]!==f?(p={key:"status.state",label:f},t[17]=f,t[18]=p):p=t[18];let m;t[19]!==e?(m=e.formatMessage({id:"landing.alerts.title.firedAt"}),t[19]=e,t[20]=m):m=t[20];let h;t[21]!==m?(h={key:"startsAt",label:m,cellRender:blt},t[21]=m,t[22]=h):h=t[22];let _;t[23]!==e?(_=e.formatMessage({id:"landing.alerts.title.stillActiveAt"}),t[23]=e,t[24]=_):_=t[24];let g;t[25]!==_?(g={key:"updatedAt",label:_,cellRender:xlt},t[25]=_,t[26]=g):g=t[26];let y;t[27]!==h||t[28]!==g||t[29]!==o||t[30]!==c||t[31]!==d||t[32]!==p?(y=[o,c,d,p,h,g],t[27]=h,t[28]=g,t[29]=o,t[30]=c,t[31]=d,t[32]=p,t[33]=y):y=t[33];const b=y;let x;t[34]===Symbol.for("react.memo_cache_sentinel")?(x={flex:"1 1 auto"},t[34]=x):x=t[34];let w;t[35]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[35]=w):w=t[35];let C;t[36]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[36]=C):C=t[36];let k;t[37]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[37]=k):k=t[37];let A;t[38]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsxs(te,{sx:x,spacing:2,children:[w,C,k,a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}})]}),t[38]=A):A=t[38];let P;t[39]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Tr,{}),t[39]=P):P=t[39];let T;t[40]!==b||t[41]!==e?(T=R=>a.jsxs(a.Fragment,{children:[R.length===0&&a.jsx(Lr,{severity:"info",title:e.formatMessage({id:"landing.alerts.no_alerts"})}),R.length>0&&a.jsx(Jn,{exclusive:!1,spacing:2,children:Object.entries(Kze(R)).map(D=>{const[O,N]=D,{items:F,counts:U}=N,{total:z,...H}=U;return a.jsx(xr,{title:a.jsxs(te,{direction:"row",align:"center",spacing:1.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:.5,children:[a.jsx(_e,{type:"subtitle1",fontWeight:"600",children:O}),a.jsx(ms,{label:z,size:"small"})]}),a.jsx(te,{direction:"row",spacing:1,children:Object.keys(Z6).map(W=>H[W]>0?a.jsx(Lr,{severity:n(W),message:`${e.formatMessage({id:`landing.alerts.severity.${W}`})} ${H[W]!==z?H[W]:""}`,sx:{padding:"2px 8px !important",".MuiAlert-icon":{mr:"4px"},".MuiAlert-message":{wordBreak:"keep-all"},".MuiAlert-message .MuiTypography-root":{fontSize:14}}},W):null)})]}),content:a.jsx(Br,{autoScale:!0,columns:b,data:F,noDataText:e.formatMessage({id:"landing.alerts.no_alerts"}),orderBy:"labels.alertname",hidePagination:!0,rowsCount:F?.length||0,rowsPerPage:F?.length||0,rowKey:"labels.alertname",page:0})},O)})})]}),t[40]=b,t[41]=e,t[42]=T):T=t[42];let j;return t[43]!==r.alerts||t[44]!==T?(j=a.jsx(I.Suspense,{fallback:A,children:a.jsx(Qt,{resolve:r.alerts,errorElement:P,children:T})}),t[43]=r.alerts,t[44]=T,t[45]=j):j=t[45],j};function _lt(t){return["emergency","alert","critical","error"].includes(t)?"error":["warning","notice"].includes(t)?"warning":["info","informational"].includes(t)?"info":"success"}function vlt(t){return a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(_e,{type:"body2",children:t.labels.alertname}),t.annotations.description&&a.jsx(Mn,{arrow:!0,title:t.annotations.description,children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}function ylt(t){return a.jsx(Mn,{arrow:!0,title:t.annotations.summary,children:a.jsx("div",{children:hlt(t.annotations.summary,{length:50})})})}function blt(t){return a.jsx(_e,{type:"body2",children:Mr(t.startsAt)})}function xlt(t){return a.jsx(_e,{type:"body2",children:Mr(t.updatedAt)})}const Mue=async t=>{const e=`${$.apis.amf.supis}/${t}`;return De({options:{url:e,method:"GET"}})},Slt=async(t,e)=>{const r=`${$.apis.amf.supis}/${t}/remove?reregister=${e}`;return De({options:{url:r,method:"POST"}})};async function wlt(t){const e=$.apis.udm.supiReAttach(t);return De({options:{url:e,method:"POST"}})}async function Clt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udm.homeNetworkKeys}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Alt(t){const e=`${$.apis.udm.homeNetworkKeys}`;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function klt(t){const e=`${$.apis.udm.homeNetworkKeys}/upload`,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Mlt(t){const e=`${$.apis.udm.homeNetworkKeys}/${t}`;return De({options:{url:e,method:"DELETE"}})}function Plt(t){const e=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:e,method:"GET"}})}function jlt({paginationToken:t,pageSize:e}={}){const r=new URLSearchParams({...t&&{pagination_token:t},...e&&{max_results:`${e}`}}),n=`${$.apis.udm.plmnPrefixes}?${r.size?r.toString():""}`;return De({options:{url:n,method:"GET"}})}function Tlt(t){const e=$.apis.udm.plmnPrefixes;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}function Elt(t,e){const r=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}function Rlt(t){const e=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Ilt({request:t}){const{id:e,reregister:r}=await t.json(),n=await Slt(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Dlt({request:t}){const{supi:e}=await t.json(),r=await wlt(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}async function $lt({request:t}){const{imsi:e}=await t.json(),r=await Got(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}async function Olt({request:t}){const{imsi:e,reattach:r}=await t.json(),n=await Wot(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Llt({request:t}){const{imsi:e,reattach:r}=await t.json(),n=await Yot(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Nlt(t){const e=$.apis.pcf.monitoring.supiInfo(t);return De({options:{url:e,method:"GET"}})}async function Flt(t){const e=$.apis.sgwc.status(t);return De({options:{url:e,method:"GET"}})}const Pue=async t=>{const e=`${$.apis.smf.status}/${t}`;return De({options:{url:e,method:"GET"}})};async function Ult({applicationServer:t,dataReferenceEq:e}={}){const r=new URLSearchParams;return t&&r.set("application_server_icont",t),e&&r.set("data_reference_eq",e),De({options:{url:`${$.apis.udr.imsApplicationServerAcl}${r.size?"?"+r.toString():""}`,method:"GET",cache:!1}})}async function Blt({id:t}){const e=`${$.apis.udr.imsApplicationServerAcl}/${t}`;return De({options:{url:e,method:"GET"}})}async function zlt(t){const e=$.apis.udr.imsApplicationServerAcl;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function qlt(t){const{id:e,...r}=t,n=`${$.apis.udr.imsApplicationServerAcl}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Vlt(t){const e=`${$.apis.udr.imsApplicationServerAcl}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Hlt({public_identity:t,...e}){const r=`${$.apis.udr.imsApplicationServerProfiles(t)}`;return De({options:{url:r,method:"POST",data:JSON.stringify(e)}})}async function Glt({public_identity:t,service_indication:e,service_data:r}){const n=`${$.apis.udr.imsApplicationServerProfiles(t)}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify({service_data:r})}})}async function Wlt({public_identity:t,service_indication:e}){const r=`${$.apis.udr.imsApplicationServerProfiles(t)}/${e}`;return De({options:{url:r,method:"DELETE"}})}async function Ylt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsInitialFilters}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Klt({id:t}){const e=`${$.apis.udr.imsInitialFilters}/${t}`;return De({options:{url:e,method:"GET"}})}async function Qlt(t){const e=$.apis.udr.imsInitialFilters;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Zlt(t){const{id:e,...r}=t,n=`${$.apis.udr.imsInitialFilters}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Xlt(t){const e=`${$.apis.udr.imsInitialFilters}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Jlt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsPrivateIdentities}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function jue({name:t}){const e=`${$.apis.udr.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function ect(t){const e=$.apis.udr.imsPrivateIdentities;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function tct(t){const e=$.apis.udr.imsBasicPrivateIdentities;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function rct(t){const{name:e,isOverridingKeys:r,...n}=t,s=`${$.apis.udr.imsPrivateIdentities}/${e}/?preserve_keys=${!r}`;return De({options:{url:s,method:"PUT",data:JSON.stringify(n)}})}async function nct(t){const e=`${$.apis.udr.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function sct(t){const e=`${$.apis.udr.status.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function ict(t){const e=`${$.apis.udr.status.imsPublicIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function oct({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsServiceProfiles}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function act({id:t}){const e=`${$.apis.udr.imsServiceProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function lct(t){const e=$.apis.udr.imsServiceProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function cct(t){const{id:e,...r}=t,n=`${$.apis.udr.imsServiceProfiles}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function uct(t){const e=`${$.apis.udr.imsServiceProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function dct(t){const e=$.apis.udr.mwdStatus;return De({options:{url:e,method:"POST",data:JSON.stringify({supi:t})}})}async function fct({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.plmns}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function pct(t,e){const r=$.apis.udr.plmns;return De({options:{url:r,method:"POST",data:JSON.stringify({mcc:t,mnc:e})}})}async function mct(t,e){const r=`${$.apis.udr.plmns}/${t}-${e}`;return De({options:{url:r,method:"DELETE"}})}async function hct(t){const e=`${$.apis.udr.policyDataProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function h7({paginationToken:t,pageSize:e}={}){const r=new URLSearchParams;return e&&r.set("max_results",e.toString()),t&&r.set("pagination_token",t),De({options:{url:`${$.apis.udr.policyDataProfiles}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function gct(t){const e=$.apis.udr.policyDataProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function _ct(t){const{uuid:e,...r}=t,n=`${$.apis.udr.policyDataProfiles}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function vct(t){const e=`${$.apis.udr.policyDataProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function g7({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.provisionedDataProfiles}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function yct(t){const e=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function bct(t){const e=$.apis.udr.provisionedDataProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function xct(t,e){const r=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function Sct(t){const e=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function wct(t){const e=`${$.apis.udr.supiStatus}/${t}`;return De({options:{url:e,method:"GET"}})}async function Cct(t){const e=`${$.apis.udr.supis}/${t}`;return De({options:{url:e,method:"GET"}})}async function Act({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}={}){const u=new URLSearchParams;return t&&u.set("max_results",t.toString()),e&&u.set("pagination_token",e),r&&u.set("supi_icont",r),n&&u.set("supi_noticont",n),s&&u.set("supi_iend",s),i&&u.set("gpsi_icont",i),o&&u.set("gpsi_noticont",o),l&&u.set("gpsi_iend",l),c&&u.set("status_eq",c),De({options:{url:`${$.apis.udr.supis}${u.size?"?"+u.toString():""}`,method:"GET"}})}async function kct(t){const e=$.apis.udr.supis;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Mct(t,e){const r=`${$.apis.udr.supis}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e)}})}async function Pct(t){const e=`${$.apis.udr.supis}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function jct(t){const e=$.apis.udr.supisBulkImport,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Tct(t){const e=$.apis.bulkImportSupisCheck(t);return De({options:{url:e,method:"GET"}})}async function Ect({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}){const[u,d,f]=await Promise.all([Act({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}),h7({pageSize:1e4}),g7({pageSize:1e4})]);return{supiList:u,policyDataProfileList:d,provisionedDataProfileList:f}}async function KX(t){const[e,r,n]=await Promise.all([t?Cct(t):void 0,h7({pageSize:1e4}),g7({pageSize:1e4})]);return{supi:e,policyDataProfileList:r,provisionedDataProfileList:n}}async function Rct({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.transportKeys}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Ict({id:t}){const e=`${$.apis.udr.transportKeys}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"GET"}})}async function Dct(t){const e=$.apis.udr.transportKeys;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function $ct(t){const{id:e,...r}=t,n=`${$.apis.udr.transportKeys}/${encodeURIComponent(e)}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Oct(t){const e=`${$.apis.udr.transportKeys}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"DELETE"}})}async function Lct(){const t=$.apis.udr.milenageConstants;return De({options:{url:t,method:"GET"}})}async function Nct(t){const e=$.apis.udr.milenageConstants;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Fct(){const t=$.apis.udr.milenageConstants;return De({options:{url:t,method:"DELETE"}})}function Uct({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.operatorKeys}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function Bct(t){const e=$.apis.udr.operatorKeys;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function zct({id:t,...e}){const r=`${$.apis.udr.operatorKeys}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function qct(t){const e=`${$.apis.udr.operatorKeys}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Vct(t){const e=`${$.apis.upf.sessions}/supi/${t}`;return De({options:{url:e,method:"GET"}})}const Hct=[ue.AMF,ue.SMF,ue.UDR,ue.UDM,ue.UPF,ue.MME,ue.SGWC,ue.PCF];async function Tue(){const t=await ma(),e=[];return Hct.forEach(r=>{Ds({services:t,name:r})&&e.push(r)}),e}async function Tm(t,e){try{return await t(e),nn.SUCCESS}catch{return nn.ERROR}}async function Gct(t){const e=t.split("-")[1],[r,n,s,i,o,l,c]=await Promise.all([Tm(Mue,t),Tm(Pue,t),Tm(Eue,t),Tm(Rue,t),Tm(Iue,e),Tm(Due,e),Tm($ue,t)]);return{[ue.AMF]:r,[ue.SMF]:n,[ue.UDR]:i,[ue.UPF]:s,[ue.MME]:o,[ue.SGWC]:l,[ue.PCF]:c}}async function Wct(t){const e=await Tue(),r=await Gct(t),n=[];return e.filter(s=>s!==ue.UDM).forEach(s=>{n.push({url:s,label:Pr().formatMessage({id:`device_status.tabs.${s}`}),status:r[s]})}),{activeTabs:n,startLocation:n[0]?.url}}async function Eue(t){const e=await Vct(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Rue(t){const[e,r]=await Promise.all([wct(t),dct(t)]);if(Ni.isEmpty(e.location))throw Li({type:mn.REMOTE_NOT_FOUND});return{udrSupiStatus:e,mwdStatus:r}}async function Iue(t){const e=await Hot(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Due(t){const e=await Flt(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function $ue(t){const e=await Nlt(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Yct(t){return Wt({loaderArgs:t,deferred:!0,data:{services:Tue()}})}async function Kct(t){const{id:e}=t.params;return e?Pat(e)?Wt({loaderArgs:t,deferred:!0,data:{tabs:Wct(e)}}):rt(".."):null}async function Qct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.AMF})?Wt({loaderArgs:t,deferred:!0,data:{amfStatus:Mue(e)}}):rt("..")}async function Zct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.SMF})?Wt({loaderArgs:t,deferred:!0,data:{smfStatus:Pue(e)}}):rt("..")}async function Xct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.UPF})?Wt({loaderArgs:t,deferred:!0,data:{upfStatus:Eue(e)}}):rt("..")}async function Jct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.UDR})?Wt({loaderArgs:t,deferred:!0,data:{udrStatus:Rue(e)}}):rt("..")}async function eut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();if(!Ds({services:r,name:ue.MME}))return rt("..");const n=e.split("-")[1];return Wt({loaderArgs:t,deferred:!0,data:{mmeStatus:Iue(n)}})}async function tut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();if(!Ds({services:r,name:ue.SGWC}))return rt("..");const n=e.split("-")[1];return Wt({loaderArgs:t,deferred:!0,data:{sgwcStatus:Due(n)}})}async function rut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.PCF})?Wt({loaderArgs:t,deferred:!0,data:{pcfStatus:$ue(e)}}):rt("..")}async function _7(){const t=`${$.apis.ncm.status.vrfs}`;return De({options:{url:t,method:"GET"}})}async function nut({filter:t}={}){const e=`${$.apis.ncm.status.interfaces}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function sut({filter:t}={}){const e=`${$.apis.ncm.status.neighbors}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function iut({filter:t}={}){const e=`${$.apis.ncm.status.routes}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function out({filter:t}={}){const e=`${$.apis.ncm.status.rules}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function aut({filter:t}={}){const e=`${$.apis.ncm.status.sockets}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function lut(){const t=`${$.apis.ncm.status.ntp}`;return De({options:{url:t,method:"GET"}})}async function cut(){const t=`${$.apis.ncm.status.bird}`;return De({options:{url:t,method:"GET"}})}async function uut({filter:t}={}){const[e,r]=await Promise.all([nut({filter:t}),_7()]);return{interfaces:e,vrfs:r}}async function dut({filter:t}={}){const[e,r]=await Promise.all([sut({filter:t}),_7()]);return{neighbors:e,vrfs:r}}async function fut({filter:t}={}){const[e,r]=await Promise.all([iut({filter:t}),_7()]);return{routes:e,vrfs:r}}async function put(){const t=$.apis.ncm.network.neighborsFlush;return await De({options:{url:t,method:"POST"}})}async function mut(t){const e=$.monitoring.clusters.reduce((r,n)=>({...r,[n]:Eze({nf:n})}),{});return Wt({loaderArgs:t,deferred:!0,data:{monitoring:nqe(),services:ma(),activeClusters:Rze(),ncmStatusNtp:lut(),...e}})}async function hut(t){return Wt({loaderArgs:t,deferred:!0,data:{alerts:Gae()}})}const gut={path:"monitoring",handle:vr({labelIntl:"route.monitoring",icon:a.jsx(ge.Monitoring,{})}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"alerts",replace:!0})},{path:"ue-status",handle:vr({labelIntl:"route.monitoring.ue-status",to:$.urls.monitoringUeStatus}),loader:Yct,element:a.jsx(Tat,{}),children:[{path:":id",loader:Kct,element:a.jsx(Iat,{}),children:[{path:"udm-re-attach",action:Dlt,loader:()=>rt("..")},{path:"amf",loader:Qct,element:a.jsx(Rat,{}),children:[{path:"amf-remove",action:Ilt,loader:()=>rt("..")}]},{path:"smf",loader:Zct,element:a.jsx(qat,{})},{path:"upf",loader:Xct,element:a.jsx(rlt,{})},{path:"udr",loader:Jct,element:a.jsx(Xat,{})},{path:"mme",loader:eut,element:a.jsx(Lat,{}),children:[{path:"mme-disconnect",action:$lt,loader:()=>rt("..")},{path:"mme-detach",action:Olt,loader:()=>rt("..")},{path:"mme-purge",action:Llt,loader:()=>rt("..")}]},{path:"sgwc",loader:tut,element:a.jsx(zat,{})},{path:"pcf",loader:rut,element:a.jsx(Fat,{})}]}]}]},{element:a.jsx(Or,{transparent:!0}),children:[{path:"alerts",handle:vr({labelIntl:"route.monitoring.alerts",to:$.urls.monitoringAlerts}),loader:hut,element:a.jsx(glt,{})}]}]},_ut=t=>{const e=he.c(39),{sessions:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.ip_address"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"ip_address",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n?(o=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.interface"}),e[4]=n,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"interface",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==n?(c=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.state"}),e[8]=n,e[9]=c):c=e[9];let u;e[10]!==c?(u={key:"state",label:c},e[10]=c,e[11]=u):u=e[11];let d;e[12]!==n?(d=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.since"}),e[12]=n,e[13]=d):d=e[13];let f;e[14]!==d?(f={key:"since",label:d},e[14]=d,e[15]=f):f=e[15];let p;e[16]!==n?(p=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.interval"}),e[16]=n,e[17]=p):p=e[17];let m;e[18]!==p?(m={key:"interval",label:p},e[18]=p,e[19]=m):m=e[19];let h;e[20]!==n?(h=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.timeout"}),e[20]=n,e[21]=h):h=e[21];let _;e[22]!==h?(_={key:"timeout",label:h},e[22]=h,e[23]=_):_=e[23];let g;e[24]!==m||e[25]!==_||e[26]!==i||e[27]!==l||e[28]!==u||e[29]!==f?(g=[i,l,u,f,m,_],e[24]=m,e[25]=_,e[26]=i,e[27]=l,e[28]=u,e[29]=f,e[30]=g):g=e[30];const y=g;let b;e[31]!==n?(b=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions"}),e[31]=n,e[32]=b):b=e[32];let x;e[33]!==y||e[34]!==r?(x=a.jsx(Br,{data:r,orderBy:"ip_address",page:0,rowsCount:r.length,rowsPerPage:r.length,rowKey:"ip_address",columns:y,hidePagination:!0,hideRowsCount:!0}),e[33]=y,e[34]=r,e[35]=x):x=e[35];let w;return e[36]!==b||e[37]!==x?(w=a.jsx(pr,{title:b,folder:!0,dense:!0,elevation:2,children:x}),e[36]=b,e[37]=x,e[38]=w):w=e[38],w},Oue=()=>{const t=he.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={p:2},t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(te,{fullHeight:!0,sx:e,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})}),t[1]=r):r=t[1],r},vut=I.memo(function(){const e=he.c(11),r=Ye(),n=Gr();let s;e[0]!==r?(s=r.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.name"}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==s?(i=[{key:"name",label:s}],e[2]=s,e[3]=i):i=e[3];const o=i;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Oue,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(en,{}),e[5]=c):c=e[5];let u;e[6]!==o?(u=f=>{const{bfd_sessions:p}=f;return a.jsx(Br,{autoScale:!0,data:p||[],orderBy:"name",page:0,rowsCount:p?.length,rowsPerPage:p?.length,rowKey:"name",columns:o,hidePagination:!0,rowDetail:{content:yut}})},e[6]=o,e[7]=u):u=e[7];let d;return e[8]!==n.bird||e[9]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:n.bird,errorElement:c,children:u})}),e[8]=n.bird,e[9]=u,e[10]=d):d=e[10],d});function yut(t){const{sessions:e}=t;return a.jsx(_ut,{sessions:e})}const but=I.memo(function(){const e=he.c(38),r=Ye(),n=Gr();let s;e[0]!==r?(s=r.formatMessage({id:"ncm_status.tabs.bird.protocols.name"}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"name",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r?(o=r.formatMessage({id:"ncm_status.tabs.bird.protocols.proto"}),e[4]=r,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"proto",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==r?(c=r.formatMessage({id:"ncm_status.tabs.bird.protocols.table"}),e[8]=r,e[9]=c):c=e[9];let u;e[10]!==c?(u={key:"table",label:c},e[10]=c,e[11]=u):u=e[11];let d;e[12]!==r?(d=r.formatMessage({id:"ncm_status.tabs.bird.protocols.state"}),e[12]=r,e[13]=d):d=e[13];let f;e[14]!==d?(f={key:"state",label:d},e[14]=d,e[15]=f):f=e[15];let p;e[16]!==r?(p=r.formatMessage({id:"ncm_status.tabs.bird.protocols.since"}),e[16]=r,e[17]=p):p=e[17];let m;e[18]!==p?(m={key:"since",label:p},e[18]=p,e[19]=m):m=e[19];let h;e[20]!==r?(h=r.formatMessage({id:"ncm_status.tabs.bird.protocols.info"}),e[20]=r,e[21]=h):h=e[21];let _;e[22]!==h?(_={key:"info",label:h},e[22]=h,e[23]=_):_=e[23];let g;e[24]!==i||e[25]!==_||e[26]!==l||e[27]!==u||e[28]!==f||e[29]!==m?(g=[i,l,u,f,m,_],e[24]=i,e[25]=_,e[26]=l,e[27]=u,e[28]=f,e[29]=m,e[30]=g):g=e[30];const y=g;let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Oue,{}),e[31]=b):b=e[31];let x;e[32]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(en,{}),e[32]=x):x=e[32];let w;e[33]!==y?(w=k=>{const{protocols:A}=k;return a.jsx(Br,{autoScale:!0,data:A||[],orderBy:"name",page:0,rowsCount:A?.length,rowsPerPage:A?.length,rowKey:"name",columns:y,hidePagination:!0})},e[33]=y,e[34]=w):w=e[34];let C;return e[35]!==n.bird||e[36]!==w?(C=a.jsx(I.Suspense,{fallback:b,children:a.jsx(Qt,{resolve:n.bird,errorElement:x,children:w})}),e[35]=n.bird,e[36]=w,e[37]=C):C=e[37],C}),ex=t=>{const e=he.c(14),{initialSortingState:r,getColumnValue:n,getColumnType:s}=t,[i,o]=I.useState(r);let l;e[0]!==n?(l=(g,y,b,x)=>x*n(g,b).localeCompare(n(y,b)),e[0]=n,e[1]=l):l=e[1];const c=l;let u;e[2]!==n?(u=(g,y,b,x)=>x*(n(g,b)>n(y,b)?1:-1),e[2]=n,e[3]=u):u=e[3];const d=u;let f;e[4]!==s||e[5]!==d||e[6]!==c?(f=(g,y)=>{const{column:b,direction:x}=y,w=s(b),C=x===Gl.ASC?1:-1;return[...g].sort((k,A)=>w==="string"?c(k,A,b,C):d(k,A,b,C))},e[4]=s,e[5]=d,e[6]=c,e[7]=f):f=e[7];const p=f;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{const{column:y,direction:b}=g;o(x=>({column:y,direction:x.column!==y?Gl.ASC:b}))},e[8]=m):m=e[8];const h=m;let _;return e[9]!==d||e[10]!==p||e[11]!==i||e[12]!==c?(_={stringSort:c,numberSort:d,sort:p,updateSorting:h,sorting:i,setSorting:o},e[9]=d,e[10]=p,e[11]=i,e[12]=c,e[13]=_):_=e[13],_};function Uv({urlOrSearchParams:t}){let e;try{e=new URL(t).searchParams}catch{e=new URLSearchParams(t)}return Object.fromEntries(e)}function Lue(t){return t==="true"}const tp="all",tx=t=>{const e=he.c(34),{vrfs:r,filterKeys:n}=t,s=Ye(),{search:i}=to();let o;e[0]!==i?(o=Uv({urlOrSearchParams:i}),e[0]=i,e[1]=o):o=e[1];const l=o,c=ys();let u;e[2]!==l.table||e[3]!==n?(u=!!n&&n.includes("table")&&l.table!==void 0,e[2]=l.table,e[3]=n,e[4]=u):u=e[4];const[d,f]=I.useState(u),[p,m]=I.useState(l.table);let h;e[5]!==l||e[6]!==c?(h=R=>{const D=Object.fromEntries(Object.entries({...l,...R}).filter(xut)),O=new URLSearchParams(D),N=`${D?`?${O}`:""}`;c(N)},e[5]=l,e[6]=c,e[7]=h):h=e[7];const _=h;let g;e[8]!==_?(g=R=>{_({vrf:R!==tp?R:void 0})},e[8]=_,e[9]=g):g=e[9];const y=g;let b;e[10]!==_?(b=R=>{f(R==="table"),R!=="table"&&m(void 0),_(R==="table"?{vrf:void 0}:{vrf:void 0,table:void 0})},e[10]=_,e[11]=b):b=e[11];const x=b;let w;e[12]!==_?(w=R=>{m(R),_({table:R})},e[12]=_,e[13]=w):w=e[13];const C=w,k=n&&n.includes("vrf")?"space-between":"flex-end";let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A={flex:"0 0 auto"},e[14]=A):A=e[14];let P;e[15]!==l.vrf||e[16]!==n||e[17]!==x||e[18]!==C||e[19]!==y||e[20]!==s||e[21]!==d||e[22]!==p||e[23]!==r?(P=(!n||n&&n.includes("vrf"))&&a.jsxs(te,{direction:"row",nowrap:!0,children:[n&&n.includes("table")&&a.jsxs(a.Fragment,{children:[a.jsx(gt,{sx:{width:"150px"},children:a.jsxs(qs,{label:s.formatMessage({id:"ncm_status.filter.type"}),size:"small",value:d?"table":"vrf",onChange:R=>x(R.target.value),children:[a.jsx(En,{value:"vrf",children:s.formatMessage({id:"ncm_status.filter.vrf"})},"vrf"),a.jsx(En,{value:"table",children:s.formatMessage({id:"ncm_status.filter.table"})},"table")]})}),d&&a.jsx(gt,{sx:{width:"150px"},children:a.jsx(dt,{size:"small",placeholder:s.formatMessage({id:"ncm_status.filter.table"}),value:p,onChange:R=>C(R.target.value)})})]}),!d&&r&&a.jsx(gt,{sx:{width:"150px"},children:a.jsxs(qs,{label:s.formatMessage({id:"ncm_status.filter.vrf"}),size:"small",value:l.vrf||tp,onChange:R=>y(R.target.value),children:[a.jsx(En,{value:tp,children:tp},tp),r.map(Sut)]})})]}),e[15]=l.vrf,e[16]=n,e[17]=x,e[18]=C,e[19]=y,e[20]=s,e[21]=d,e[22]=p,e[23]=r,e[24]=P):P=e[24];let T;e[25]!==l.family||e[26]!==n||e[27]!==_||e[28]!==s?(T=(!n||n?.includes("family"))&&a.jsxs(lk,{value:l.family,onChange:R=>_({family:R}),exclusive:!0,color:"primary",children:[a.jsx(kh,{value:"inet",children:s.formatMessage({id:"ncm_status.filter.family.inet"})}),a.jsx(kh,{value:"inet6",children:s.formatMessage({id:"ncm_status.filter.family.inet6"})})]}),e[25]=l.family,e[26]=n,e[27]=_,e[28]=s,e[29]=T):T=e[29];let j;return e[30]!==T||e[31]!==k||e[32]!==P?(j=a.jsxs(te,{direction:"row",justify:k,sx:A,children:[P,T]}),e[30]=T,e[31]=k,e[32]=P,e[33]=j):j=e[33],j};function xut(t){const[,e]=t;return!!e}function Sut(t){return a.jsx(En,{value:t.name??tp,children:`${t.name??tp}${t.table?" ("+t.table+")":""}`},t.name??tp)}const rx=()=>{const t=he.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},t[0]=e):e=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(gt,{sx:e,children:a.jsx(Dt,{variant:"rounded",sx:{height:"44px"}})}),t[1]=r):r=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n={flex:"1 1 auto",p:2},t[2]=n):n=t[2];let s;return t[3]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(te,{nowrap:!0,fullHeight:!0,children:[r,a.jsx(gt,{sx:n,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})})]}),t[3]=s):s=t[3],s},wut=t=>{const e=he.c(14),{linkInfo:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={maxHeight:"400px",overflow:"auto",p:1},e[0]=s):s=e[0];let i;e[1]!==n||e[2]!==r.info_data?(i=!!r.info_data&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_data"})}),Object.entries(r.info_data).filter(Cut).map(Aut)]}),e[1]=n,e[2]=r.info_data,e[3]=i):i=e[3];let o;e[4]!==n||e[5]!==r.info_slave_kind?(o=!!r.info_slave_kind&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_slave_kind"})}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r.info_slave_kind})]}),e[4]=n,e[5]=r.info_slave_kind,e[6]=o):o=e[6];let l;e[7]!==n||e[8]!==r.info_slave_data?(l=!!r.info_slave_data&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_slave_data"})}),Object.entries(r.info_slave_data).filter(kut).map(Mut)]}),e[7]=n,e[8]=r.info_slave_data,e[9]=l):l=e[9];let c;return e[10]!==i||e[11]!==o||e[12]!==l?(c=a.jsxs(te,{justify:"stretch",align:"normal",nowrap:!0,sx:s,spacing:3,children:[i,o,l]}),e[10]=i,e[11]=o,e[12]=l,e[13]=c):c=e[13],c};function Cut(t){return t!==void 0}function Aut(t){const[e,r]=t;return a.jsxs(te,{align:"normal",nowrap:!0,spacing:1,direction:"row",children:[a.jsxs(_e,{fontWeight:"500",fontSize:"medium",children:[e,":"]}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r})]},e)}function kut(t){return t!==void 0}function Mut(t){const[e,r]=t;return a.jsxs(te,{align:"normal",nowrap:!0,spacing:1,direction:"row",children:[a.jsxs(_e,{fontWeight:"500",fontSize:"medium",children:[e,":"]}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r})]},e)}const Put=t=>{const e=he.c(7),{linkInfo:r}=t;let n;e[0]!==r.info_kind?(n=a.jsx(_e,{type:"body2",children:r.info_kind}),e[0]=r.info_kind,e[1]=n):n=e[1];let s;e[2]!==r?(s=r.info_data||r.info_slave_data||r.info_slave_kind?a.jsx(Mn,{title:a.jsx(wut,{linkInfo:r}),opaque:!0,children:a.jsx(Zr,{sx:{cursor:"default"},children:a.jsx(ge.Info,{size:18})})}):null,e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==n||e[5]!==s?(i=a.jsxs(te,{direction:"row",spacing:.5,align:"center",nowrap:!0,children:[n,s]}),e[4]=n,e[5]=s,e[6]=i):i=e[6],i},jut=I.memo(function(){const e=he.c(55),r=Ye(),n=Gr(),s=On(),i=Eut,o=Rut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"ifindex"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(W,K)=>{u({column:K,direction:W})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.network_interfaces.id"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"ifindex",sortable:!0},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.network_interfaces.interface"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"ifname",sortable:!0},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.network_interfaces.interface_type"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"linkinfo.info_kind",sortable:!0,cellRender:Iut},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==r?(x=r.formatMessage({id:"ncm_status.tabs.network_interfaces.mtu"}),e[15]=r,e[16]=x):x=e[16];let w;e[17]!==x?(w={label:x,key:"mtu",sortable:!0},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==r?(C=r.formatMessage({id:"ncm_status.tabs.network_interfaces.status"}),e[19]=r,e[20]=C):C=e[20];let k;e[21]!==C?(k={label:C,key:"flags",sortable:!0,cellRender:Dut},e[21]=C,e[22]=k):k=e[22];let A;e[23]!==r?(A=r.formatMessage({id:"ncm_status.tabs.network_interfaces.address"}),e[23]=r,e[24]=A):A=e[24];let P;e[25]!==A?(P={label:A,key:"address",sortable:!0},e[25]=A,e[26]=P):P=e[26];let T;e[27]!==r?(T=r.formatMessage({id:"ncm_status.tabs.network_interfaces.ip_address"}),e[27]=r,e[28]=T):T=e[28];let j;e[29]!==T?(j={label:T,key:"addr_info",sortable:!0,cellRender:Out},e[29]=T,e[30]=j):j=e[30];let R;e[31]!==r?(R=r.formatMessage({id:"ncm_status.tabs.network_interfaces.master"}),e[31]=r,e[32]=R):R=e[32];let D;e[33]!==R?(D={label:R,key:"master",sortable:!0},e[33]=R,e[34]=D):D=e[34];let O;e[35]!==k||e[36]!==P||e[37]!==j||e[38]!==D||e[39]!==h||e[40]!==g||e[41]!==b||e[42]!==w?(O=[h,g,b,w,k,P,j,D],e[35]=k,e[36]=P,e[37]=j,e[38]=D,e[39]=h,e[40]=g,e[41]=b,e[42]=w,e[43]=O):O=e[43];const N=O;let F;e[44]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(rx,{}),e[44]=F):F=e[44];let U;e[45]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(en,{}),e[45]=U):U=e[45];let z;e[46]!==N||e[47]!==p||e[48]!==s.state||e[49]!==c||e[50]!==d?(z=W=>{const{interfaces:K,vrfs:q}=W;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,sx:{overflow:"auto",width:"100%"},children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:q,filterKeys:["vrf","family"]})}),a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:N,rowKey:"ifindex",page:0,hidePagination:!0,data:c(K,d),rowsCount:K?.length||0,rowsPerPage:K?.length||0,orderBy:d.column,onSort:p,order:d.direction})]})},e[46]=N,e[47]=p,e[48]=s.state,e[49]=c,e[50]=d,e[51]=z):z=e[51];let H;return e[52]!==n.interfacesStatus||e[53]!==z?(H=a.jsx(I.Suspense,{fallback:F,children:a.jsx(Qt,{resolve:n.interfacesStatus,errorElement:U,children:z})}),e[52]=n.interfacesStatus,e[53]=z,e[54]=H):H=e[54],H});function Tut(t){return`${t.local}/${t.prefixlen}`}function Eut(t,e){switch(e){case"linkinfo":return t.linkinfo?.info_kind??"";case"addr_info":return t.addr_info?.map(Tut).sort().at(0)??"";case"flags":return t.flags?.join(", ")??"";case"address":case"master":return t[e]??"";default:return t[e]}}function Rut(t){switch(t){case"ifname":case"linkinfo":case"flags":case"address":case"addr_info":case"master":return"string";default:return"number"}}function Iut(t){return a.jsx(Put,{linkInfo:t.linkinfo})}function Dut(t){const{flags:e}=t;return a.jsx(_e,{type:"body2",children:e?.join(", ")})}function $ut(t){return a.jsx(_e,{type:"body2",children:`${t.local}/${t.prefixlen}`},`${t.local}/${t.prefixlen}`)}function Out(t){const{addr_info:e}=t;return a.jsx(a.Fragment,{children:e?.map($ut)})}const Lut=I.memo(function(){const e=he.c(39),r=Ye(),n=Gr(),s=On(),{submit:i}=gr();let o;e[0]!==i?(o=()=>{i({},{method:"POST",encType:"application/json",action:"flush"})},e[0]=i,e[1]=o):o=e[1];const l=o,c=Nut,u=Fut;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={initialSortingState:{direction:Gl.ASC,column:"dst"},getColumnValue:c,getColumnType:u},e[2]=d):d=e[2];const{sort:f,updateSorting:p,sorting:m}=ex(d);let h;e[3]!==p?(h=(N,F)=>{p({column:F,direction:N})},e[3]=p,e[4]=h):h=e[4];const _=h;let g;e[5]!==r?(g=r.formatMessage({id:"ncm_status.tabs.neighbors.dst"}),e[5]=r,e[6]=g):g=e[6];let y;e[7]!==g?(y={label:g,key:"dst",sortable:!0},e[7]=g,e[8]=y):y=e[8];let b;e[9]!==r?(b=r.formatMessage({id:"ncm_status.tabs.neighbors.lladdr"}),e[9]=r,e[10]=b):b=e[10];let x;e[11]!==b?(x={label:b,key:"lladdr",sortable:!0},e[11]=b,e[12]=x):x=e[12];let w;e[13]!==r?(w=r.formatMessage({id:"ncm_status.tabs.neighbors.dev"}),e[13]=r,e[14]=w):w=e[14];let C;e[15]!==w?(C={label:w,key:"dev",sortable:!0},e[15]=w,e[16]=C):C=e[16];let k;e[17]!==r?(k=r.formatMessage({id:"ncm_status.tabs.neighbors.state"}),e[17]=r,e[18]=k):k=e[18];let A;e[19]!==k?(A={label:k,key:"state",sortable:!0},e[19]=k,e[20]=A):A=e[20];let P;e[21]!==A||e[22]!==y||e[23]!==x||e[24]!==C?(P=[y,x,C,A],e[21]=A,e[22]=y,e[23]=x,e[24]=C,e[25]=P):P=e[25];const T=P;let j;e[26]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(rx,{}),e[26]=j):j=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(en,{}),e[27]=R):R=e[27];let D;e[28]!==T||e[29]!==l||e[30]!==_||e[31]!==r||e[32]!==s.state||e[33]!==f||e[34]!==m?(D=N=>{const{neighbors:F,vrfs:U}=N;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:U,filterKeys:["vrf","family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:T,rowKey:"lladdr",page:0,hidePagination:!0,data:f(F,m),rowsCount:F?.length||0,rowsPerPage:F?.length||0,orderBy:m.column,onSort:_,order:m.direction,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{startIcon:a.jsx(ge.Clear,{}),disabled:s.state==="loading"||!Ue(ie.monitoring),loading:s.state==="submitting",variant:"outlined",onClick:()=>l(),text:r.formatMessage({id:"ncm_status.tabs.neighbors.actions.flush"})})})})})]})},e[28]=T,e[29]=l,e[30]=_,e[31]=r,e[32]=s.state,e[33]=f,e[34]=m,e[35]=D):D=e[35];let O;return e[36]!==n.neighborsStatus||e[37]!==D?(O=a.jsx(I.Suspense,{fallback:j,children:a.jsx(Qt,{resolve:n.neighborsStatus,errorElement:R,children:D})}),e[36]=n.neighborsStatus,e[37]=D,e[38]=O):O=e[38],O});function Nut(t,e){switch(e){case"state":return t[e]?.sort()?.join(", ");default:return t[e]??""}}function Fut(){return"string"}const Uut=I.memo(function(){const e=he.c(39),r=Ye(),n=Gr(),s=On();let i;e[0]!==r?(i=r.formatMessage({id:"ncm_status.tabs.routes.dst"}),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o={label:i,key:"dst"},e[2]=i,e[3]=o):o=e[3];let l;e[4]!==r?(l=r.formatMessage({id:"ncm_status.tabs.routes.gateway"}),e[4]=r,e[5]=l):l=e[5];let c;e[6]!==l?(c={label:l,key:"gateway"},e[6]=l,e[7]=c):c=e[7];let u;e[8]!==r?(u=r.formatMessage({id:"ncm_status.tabs.routes.dev"}),e[8]=r,e[9]=u):u=e[9];let d;e[10]!==u?(d={label:u,key:"dev"},e[10]=u,e[11]=d):d=e[11];let f;e[12]!==r?(f=r.formatMessage({id:"ncm_status.tabs.routes.prefsrc"}),e[12]=r,e[13]=f):f=e[13];let p;e[14]!==f?(p={label:f,key:"prefsrc"},e[14]=f,e[15]=p):p=e[15];let m;e[16]!==r?(m=r.formatMessage({id:"ncm_status.tabs.routes.metric"}),e[16]=r,e[17]=m):m=e[17];let h;e[18]!==m?(h={label:m,key:"metric"},e[18]=m,e[19]=h):h=e[19];let _;e[20]!==r?(_=r.formatMessage({id:"ncm_status.tabs.routes.protocol"}),e[20]=r,e[21]=_):_=e[21];let g;e[22]!==_?(g={label:_,key:"protocol"},e[22]=_,e[23]=g):g=e[23];let y;e[24]!==o||e[25]!==g||e[26]!==c||e[27]!==d||e[28]!==p||e[29]!==h?(y=[o,c,d,p,h,g],e[24]=o,e[25]=g,e[26]=c,e[27]=d,e[28]=p,e[29]=h,e[30]=y):y=e[30];const b=y;let x;e[31]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(rx,{}),e[31]=x):x=e[31];let w;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(en,{}),e[32]=w):w=e[32];let C;e[33]!==b||e[34]!==s.state?(C=A=>{const{routes:P,vrfs:T}=A;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:T,filterKeys:["vrf","family","table"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:b,rowKey:"dst",page:0,hidePagination:!0,data:P,rowsCount:P?.length||0,rowsPerPage:P?.length||0,orderBy:"dst"})})]})},e[33]=b,e[34]=s.state,e[35]=C):C=e[35];let k;return e[36]!==n.routesStatus||e[37]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:n.routesStatus,errorElement:w,children:C})}),e[36]=n.routesStatus,e[37]=C,e[38]=k):k=e[38],k}),But=I.memo(function(){const e=he.c(30),r=Ye(),n=Gr(),s=On(),i=zut,o=qut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"priority"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(T,j)=>{u({column:j,direction:T})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.rules.priority"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"priority",sortable:!0},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.rules.rule"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"action",cellRender:Vut},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.rules.family"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"family",sortable:!0},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==h||e[16]!==g||e[17]!==b?(x=[h,g,b],e[15]=h,e[16]=g,e[17]=b,e[18]=x):x=e[18];const w=x;let C;e[19]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(rx,{}),e[19]=C):C=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(en,{}),e[20]=k):k=e[20];let A;e[21]!==w||e[22]!==p||e[23]!==s.state||e[24]!==c||e[25]!==d?(A=T=>a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{filterKeys:["family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:w,rowKey:"priority",page:0,hidePagination:!0,data:c(T,d),rowsCount:T?.length||0,rowsPerPage:T?.length||0,orderBy:d.column,onSort:p,order:d.direction})})]}),e[21]=w,e[22]=p,e[23]=s.state,e[24]=c,e[25]=d,e[26]=A):A=e[26];let P;return e[27]!==n.rules||e[28]!==A?(P=a.jsx(I.Suspense,{fallback:C,children:a.jsx(Qt,{resolve:n.rules,errorElement:k,children:A})}),e[27]=n.rules,e[28]=A,e[29]=P):P=e[29],P});function zut(t,e){return t[e]?.toString()??""}function qut(t){switch(t){case"priority":return"number";default:return"string"}}function Vut(t){const e=[];if(t.src){let r=`from ${t.src}`;t.srclen&&(r=r+`/${t.srclen}`),e.push(r)}if(t.dst){let r=`to ${t.dst}`;t.dstlen&&(r=r+`/${t.dstlen}`),e.push(r)}return t.iif&&e.push(`iif ${t.iif}`),t.oif&&e.push(`oif ${t.oif}`),t.l3mdev===null?e.push("lookup [l3mdev-table]"):e.push(`lookup ${t.table}`),t.action&&e.push(`${t.action}`),t.protocol&&e.push(`proto ${t.protocol}`),a.jsx(_e,{type:"body2",children:e.join(" ")})}const Hut=I.memo(function(){const e=he.c(40),r=Ye(),n=Gr(),s=On(),i=Gut,o=Wut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"protocol"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(O,N)=>{u({column:N,direction:O})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.sockets.local_address"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"local_address",sortable:!0,cellRender:Yut},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.sockets.peer_address"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"peer_address",sortable:!0,cellRender:Kut},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.sockets.protocol"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"protocol",sortable:!0},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==r?(x=r.formatMessage({id:"ncm_status.tabs.sockets.state"}),e[15]=r,e[16]=x):x=e[16];let w;e[17]!==x?(w={label:x,key:"state",sortable:!0},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==r?(C=r.formatMessage({id:"ncm_status.tabs.sockets.process"}),e[19]=r,e[20]=C):C=e[20];let k;e[21]!==C?(k={label:C,key:"process",sortable:!0,cellRender:Qut},e[21]=C,e[22]=k):k=e[22];let A;e[23]!==k||e[24]!==h||e[25]!==g||e[26]!==b||e[27]!==w?(A=[h,g,b,w,k],e[23]=k,e[24]=h,e[25]=g,e[26]=b,e[27]=w,e[28]=A):A=e[28];const P=A;let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(rx,{}),e[29]=T):T=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(en,{}),e[30]=j):j=e[30];let R;e[31]!==P||e[32]!==p||e[33]!==s.state||e[34]!==c||e[35]!==d?(R=O=>a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{filterKeys:["family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:P,rowKey:"local_address",page:0,hidePagination:!0,data:c(O,d),rowsCount:O?.length||0,rowsPerPage:O?.length||0,orderBy:d.column,onSort:p,order:d.direction})})]}),e[31]=P,e[32]=p,e[33]=s.state,e[34]=c,e[35]=d,e[36]=R):R=e[36];let D;return e[37]!==n.sockets||e[38]!==R?(D=a.jsx(I.Suspense,{fallback:T,children:a.jsx(Qt,{resolve:n.sockets,errorElement:j,children:R})}),e[37]=n.sockets,e[38]=R,e[39]=D):D=e[39],D});function Gut(t,e){switch(e){case"process":return t[e]?.join(", ")??"";default:return t[e]??""}}function Wut(){return"string"}function Yut(t){const{local_address:e,local_port:r,interface:n}=t;return a.jsxs(_e,{type:"body2",children:[e,":",r,n?`%${n}`:""]})}function Kut(t){const{peer_address:e,peer_port:r}=t;return a.jsxs(_e,{type:"body2",children:[e,":",r]})}function Qut(t){const{process:e}=t;return e?.[0]&&a.jsxs(_e,{type:"body2",children:[e?.[0]?.name," (",e?.[0]?.pid,")"]})}async function Zut(){const t=await put();return xt(t)?Ar():Nt(),Ft(t)}async function Xut(t){const{kind:e,vrf:r,master:n,parent:s,family:i}=Uv({urlOrSearchParams:t.request.url}),o={...e&&{kind:e},...r&&{vrf:r},...n&&{master:n},...s&&{parent:s},...i&&{family:i}};return Wt({loaderArgs:t,deferred:!0,data:{interfacesStatus:uut({filter:o})}})}async function Jut(t){const{vrf:e,family:r}=Uv({urlOrSearchParams:t.request.url}),n={...e&&{vrf:e},...r&&{family:r}};return Wt({loaderArgs:t,deferred:!0,data:{neighborsStatus:dut({filter:n})}})}async function edt(t){const{vrf:e,family:r,table:n}=Uv({urlOrSearchParams:t.request.url}),s={...r&&{family:r},...n&&{table:n},...e&&!n&&{vrf:e}};return Wt({loaderArgs:t,deferred:!0,data:{routesStatus:fut({filter:s})}})}async function tdt(t){const{family:e}=Uv({urlOrSearchParams:t.request.url}),r={...e&&{family:e}};return Wt({loaderArgs:t,deferred:!0,data:{rules:out({filter:r})}})}async function rdt(t){const{family:e,proto:r}=Uv({urlOrSearchParams:t.request.url}),n={...e&&{family:e},...r&&{proto:r}};return Wt({loaderArgs:t,deferred:!0,data:{sockets:aut({filter:n})}})}async function QX(t){return Wt({loaderArgs:t,deferred:!0,data:{bird:cut()}})}const Gf=Pr(),ndt={path:"network",handle:vr({labelIntl:"route.ncm",icon:a.jsx(ge.NCM,{})}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.NCM),{path:"status",handle:vr({to:"status",labelIntl:"route.ncm.status"}),errorElement:a.jsx(Tr,{}),element:a.jsx(Ao,{keepQueryParams:!0,tabs:[{url:"interfaces",label:Gf.formatMessage({id:"route.ncm.status.interfaces"})},{url:"neighbors",label:Gf.formatMessage({id:"route.ncm.status.neighbors"})},{url:"routes",label:Gf.formatMessage({id:"route.ncm.status.routes"})},{url:"rules",label:Gf.formatMessage({id:"route.ncm.status.rules"})},{url:"sockets",label:Gf.formatMessage({id:"route.ncm.status.sockets"})},{url:"bird",label:Gf.formatMessage({id:"route.ncm.status.bird"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"interfaces",replace:!0})},{path:"interfaces",errorElement:a.jsx(Tr,{}),element:a.jsx(jut,{}),loader:Xut},{path:"neighbors",errorElement:a.jsx(Tr,{}),element:a.jsx(Lut,{}),loader:Jut,children:[{action:Zut,path:"flush",loader:()=>rt("..")}]},{path:"routes",errorElement:a.jsx(Tr,{}),element:a.jsx(Uut,{}),loader:edt},{path:"rules",errorElement:a.jsx(Tr,{}),element:a.jsx(But,{}),loader:tdt},{path:"sockets",errorElement:a.jsx(Tr,{}),element:a.jsx(Hut,{}),loader:rdt},{path:"bird",errorElement:a.jsx(Tr,{}),element:a.jsx(la,{navs:[{url:"protocols",label:Gf.formatMessage({id:"route.ncm.status.bird.protocols"})},{url:"bfd-sessions",label:Gf.formatMessage({id:"route.ncm.status.bird.bfd_sessions"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"protocols",replace:!0})},{path:"protocols",element:a.jsx(but,{}),loader:QX},{path:"bfd-sessions",element:a.jsx(vut,{}),loader:QX}]}]}]}]},Si=Pr();var Nue=(t=>(t.IPV4="IPV4",t.IPV6="IPV6",t.IPV4V6="IPV4V6",t.UNSTRUCTURED="UNSTRUCTURED",t.ETHERNET="ETHERNET",t))(Nue||{});const sdt=Object.keys(Nue);var v7=(t=>(t["5G_EIR"]="5G_EIR",t.AF="AF",t.AMF="AMF",t.AUSF="AUSF",t.BSF="BSF",t.CBCF="CBCF",t.CHF="CHF",t.DRA="DRA",t.GMLC="GMLC",t.HSS="HSS",t.ICSCF="ICSCF",t.IMS_AS="IMS_AS",t.LMF="LMF",t.MME="MME",t.N3IWF="N3IWF",t.NEF="NEF",t.NRF="NRF",t.NSSAAF="NSSAAF",t.NSSF="NSSF",t.NWDAF="NWDAF",t.PCF="PCF",t.PCSCF="PCSCF",t.SCSAS="SCSAS",t.SCSCF="SCSCF",t.SEPP="SEPP",t.SMF="SMF",t.SMSF="SMSF",t.SOR_AF="SOR_AF",t.SPAF="SPAF",t.SCEF="SCEF",t.SCP="SCP",t.UCMF="UCMF",t.UDM="UDM",t.UDR="UDR",t.UDSF="UDSF",t.UPF="UPF",t))(v7||{});const idt=Object.keys(v7);var Eb=(t=>(t.REGISTERED="REGISTERED",t.SUSPENDED="SUSPENDED",t.UNDISCOVERABLE="UNDISCOVERABLE",t))(Eb||{});const odt=Object.keys(Eb);var b3=(t=>(t.N3="N3",t.N6="N6",t.N9="N9",t.DATA_FORWARDING="DATA_FORWARDING",t))(b3||{});function adt({sst:t,sd:e,sdRanges:r}){if(!t&&!e&&!r?.length)return;let n="";return t&&(n+=t),e&&(n+=`-${e}`),r?.length&&(n+=`-(${r.map(s=>{let i="";return s.start&&(i+=`${s.start}`),s.end&&(i+=`-${s.end}`),i}).join(", ")})`),n}function ldt({sst:t,sd:e}){if(!t&&!e)return;let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}function ZX({start:t,end:e}){return{_uuid:gn(),start:t??"",end:e??""}}function XX({start:t,end:e}){return{...t&&{start:t},...e&&{end:e}}}function cdt({nid:t,tac:e,plmnId:r}){return{_uuid:gn(),nid:t,tac:e,plmnId:{mcc:r.mcc??"",mnc:r.mnc??""}}}function udt({nid:t,tac:e,plmnId:r}){return{...t&&{nid:t},tac:e,plmnId:r}}function ddt({dnnUpfInfoList:t,redundantTransport:e,sNssai:r}){return{_uuid:gn(),sNssai:{sst:r.sst,...r.sd&&{sd:r.sd}},dnnUpfInfoList:t?.map(n=>({_uuid:gn(),dnn:n.dnn,pduSessionTypes:n.pduSessionTypes||[],ipv4AddressRanges:n.ipv4AddressRanges?.map(ZX)||[],ipv6PrefixRanges:n.ipv6PrefixRanges?.map(ZX)||[]})),redundantTransport:e||!1}}function fdt({sNssai:t,dnnUpfInfoList:e,redundantTransport:r}){return{sNssai:{sst:t.sst,...t.sd&&{sd:t.sd}},...r&&{redundantTransport:r},dnnUpfInfoList:e?.map(({dnn:n,pduSessionTypes:s,ipv6PrefixRanges:i,ipv4AddressRanges:o})=>{const l=o?.filter(u=>!!u.start||!!u.end)||[],c=i?.filter(u=>!!u.start||!!u.end)||[];return{dnn:n,...!!s?.length&&{pduSessionTypes:s}||[],...!!l?.length&&{ipv4AddressRanges:l?.map(XX)}||[],...!!c?.length&&{ipv6PrefixRanges:c?.map(XX)}||[]}})}}function pdt({interfaceType:t,networkInstance:e}){return{_uuid:gn(),interfaceType:t,networkInstance:e}}function mdt({interfaceType:t,networkInstance:e}){return{...t&&{interfaceType:t},networkInstance:e}}function hdt(t){return{nfType:t?.nfType||"",fqdn:t?.fqdn||"",ipv4Addresses:t?.ipv4Addresses||[],ipv6Addresses:t?.ipv6Addresses||[],nfInstanceId:t?.nfInstanceId||"",nfInstanceName:t?.nfInstanceName||"",nfStatus:t?.nfStatus||"",priority:t?.priority||"",capacity:t?.capacity||"",locality:t?.locality||"",sNssais:t?.sNssais?.map(e=>({sst:e.sst,sd:e.sd||"",sdRanges:e.sdRanges?.map(r=>({_uuid:gn(),start:r.start||"",end:r.end||""}))||[],isRangesActive:!!e.sdRanges?.length,_uuid:gn()}))||[],plmnList:t?.plmnList?.map(e=>({_uuid:gn(),mnc:e.mnc||"",mcc:e.mcc||""})),...t?.upfInfoList&&{upfInfoList:Object.entries(t?.upfInfoList)?.map(([e,r])=>({_uuid:e,taiList:r.taiList?.map(cdt)||[],sNssaiUpfInfoList:r.sNssaiUpfInfoList.map(ddt),ueIpAddrInd:r.ueIpAddrInd,interfaceUpfInfoList:r.interfaceUpfInfoList?.map(pdt)||[]}))}}}function JX(t){return{nfType:t.nfType,nfStatus:t.nfStatus,...t.nfInstanceId&&{nfInstanceId:t.nfInstanceId},...t.nfInstanceName&&{nfInstanceName:t.nfInstanceName},...t.fqdn&&{fqdn:t.fqdn},...t.ipv4Addresses&&!!t.ipv4Addresses.length&&{ipv4Addresses:t.ipv4Addresses},...t.ipv6Addresses&&!!t.ipv6Addresses.length&&{ipv6Addresses:t.ipv6Addresses},...t.priority&&{priority:t.priority},...t.capacity&&{capacity:t.capacity},...t.locality&&{locality:t.locality},...t.sNssais&&!!t.sNssais?.length&&{sNssais:t.sNssais?.map(r=>({sst:r.sst,...r.sd&&!r.isRangesActive&&{sd:r.sd},...!!r.sdRanges?.length&&r.isRangesActive&&{sdRanges:r.sdRanges.map(({start:n,end:s})=>({start:n,end:s}))}}))},...t.plmnList&&!!t.plmnList?.length&&{plmnList:t.plmnList?.map(r=>({mnc:r.mnc,mcc:r.mcc}))},...t.upfInfoList&&!!t.upfInfoList?.length&&{upfInfoList:t.upfInfoList.reduce((r,{_uuid:n,taiList:s,sNssaiUpfInfoList:i,ueIpAddrInd:o,interfaceUpfInfoList:l})=>({...r,[n]:{...!!s?.length&&{taiList:s.map(udt)},ueIpAddrInd:o??!1,...i&&{sNssaiUpfInfoList:i.map(fdt)},...!!l?.length&&{interfaceUpfInfoList:l.map(mdt)}}}),{})}}}const gdt=dr().shape({nfInstanceId:We().matches(new RegExp($.regex.uuid)),nfType:We().required(Si.formatMessage({id:"validation.required"})),nfStatus:We().required(Si.formatMessage({id:"validation.required"})),fqdn:We().test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),ipv4Addresses:yr().of(We().matches(new RegExp($.regex.ipv4Addr))).test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),ipv6Addresses:yr().of(We().matches(new RegExp($.regex.ipv6Addr))).test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),nfInstanceName:We(),priority:kn().min(0).max(65535),capacity:kn().min(0).max(65535),locality:We(),sNssais:yr().of(dr().shape({sst:kn().required(Si.formatMessage({id:"validation.required"})).min(0).max(255),isRangesActive:li(),sd:We().matches(new RegExp($.regex.sd)),sdRanges:yr().of(dr().shape({start:We().matches(new RegExp($.regex.sd)).required(Si.formatMessage({id:"validation.required"})),end:We().matches(new RegExp($.regex.sd)).required(Si.formatMessage({id:"validation.required"}))}))})),plmnList:yr().of(dr().shape({mcc:We().matches(new RegExp($.regex.mcc)).required(Si.formatMessage({id:"validation.required"})),mnc:We().matches(new RegExp($.regex.mnc)).required(Si.formatMessage({id:"validation.required"}))})),upfInfoList:yr().of(dr().shape({ueIpAddrInd:li(),interfaceUpfInfoList:yr().of(dr().shape({networkInstance:We(),interfaceType:We().required(Si.formatMessage({id:"validation.required"}))})),taiList:yr().of(dr().shape({plmnId:dr().shape({mcc:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.mcc)),mnc:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.mnc))}),tac:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.tac))})),sNssaiUpfInfoList:yr().of(dr().shape({sNssai:dr().shape({sd:We().matches(new RegExp($.regex.sd)),sst:kn().required(Si.formatMessage({id:"validation.required"})).min(0).max(255)}),dnnUpfInfoList:yr().of(dr().shape({dnn:We().required(Si.formatMessage({id:"validation.required"})),pduSessionTypes:yr().of(We()),ipv4AddressRanges:yr().of(dr().shape({start:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv4Addr)),end:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv4Addr))})),ipv6PrefixRanges:yr().of(dr().shape({start:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv6Prefix)),end:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv6Prefix))}))})).min(1),redundantTransport:li()})).required().min(1)})).when("$nfType",(t,e)=>t==="UPF"?e.required(Si.formatMessage({id:"validation.required"})):e)}),_dt=t=>{const e=he.c(13),{i:r}=t,n=Ye(),s=`plmnList[${r}].mcc`;let i;e[0]!==n?(i=f=>{const{field:p,meta:m,form:h}=f,{isSubmitting:_}=h;return a.jsx(dt,{...p,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.plmnList.mcc"}),size:"small",error:!!m.error,helperText:m.error,disabled:_,sx:{width:"50%"}})},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==s||e[3]!==i?(o=a.jsx(Ke,{name:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4];const l=`plmnList[${r}].mnc`;let c;e[5]!==n?(c=f=>{const{field:p,meta:m,form:h}=f,{isSubmitting:_}=h;return a.jsx(dt,{...p,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.plmnList.mnc"}),size:"small",error:!!m.error,helperText:m.error,disabled:_,sx:{width:"50%"}})},e[5]=n,e[6]=c):c=e[6];let u;e[7]!==l||e[8]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[7]=l,e[8]=c,e[9]=u):u=e[9];let d;return e[10]!==o||e[11]!==u?(d=a.jsxs(te,{direction:"row",nowrap:!0,fullWidth:!0,children:[o,u]}),e[10]=o,e[11]=u,e[12]=d):d=e[12],d},vdt=t=>{const e=he.c(28),{i:r}=t,n=Ye(),{values:s,isSubmitting:i}=_0(),o=ydt,l=bdt,c=`sNssais[${r}].sst`;let u;e[0]!==n||e[1]!==i?(u=y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sst"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})},e[0]=n,e[1]=i,e[2]=u):u=e[2];let d;e[3]!==c||e[4]!==u?(d=a.jsx(Ke,{name:c,children:u}),e[3]=c,e[4]=u,e[5]=d):d=e[5];const f=`sNssais[${r}].isRangesActive`;let p;e[6]!==r||e[7]!==n||e[8]!==i?(p=y=>{const{field:b,form:x}=y,{setFieldValue:w}=x;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.sNssais.isRangesActiveFalse"})}),a.jsx(ti,{checked:!!b.value,onChange:(C,k)=>{w(b.name,k),k?(w(`sNssais[${r}].sd`,""),w(`sNssais[${r}].sdRanges`,[{_uuid:gn(),start:"",end:""}])):(w(`sNssais[${r}].sdRanges`,[]),w(`sNssais[${r}].sd`,""))},disabled:i||!Ue(ie.provisioning)}),a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.sNssais.isRangesActiveTrue"})})]})},e[6]=r,e[7]=n,e[8]=i,e[9]=p):p=e[9];let m;e[10]!==f||e[11]!==p?(m=a.jsx(Ke,{name:f,children:p}),e[10]=f,e[11]=p,e[12]=m):m=e[12];let h;e[13]!==r||e[14]!==n||e[15]!==i||e[16]!==s.sNssais?(h=!s.sNssais?.[r].isRangesActive&&a.jsx(Ke,{name:`sNssais[${r}].sd`,children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sd"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}}),e[13]=r,e[14]=n,e[15]=i,e[16]=s.sNssais,e[17]=h):h=e[17];let _;e[18]!==r||e[19]!==n||e[20]!==i||e[21]!==s.sNssais?(_=!!s.sNssais?.[r].isRangesActive&&a.jsx(oi,{name:`sNssais[${r}].sdRanges`,children:y=>{const{remove:b,push:x,form:w}=y,{getFieldMeta:C,errors:k}=w,A=P=>!C(P)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.range_add"}),type:"button",variant:"outlined",onClick:()=>o(x),disabled:i}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!A(`sNssais[${r}].sdRanges`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.sNssais.form_errors.has_errors"})}),typeof k[`sNssais[${r}].sdRanges`]=="string"&&a.jsx(_e,{color:"error",paragraph:!1,children:a.jsx("ul",{children:a.jsx("li",{children:k[`sNssais[${r}].sdRanges`]})})})]})}),!!s.sNssais?.length&&s.sNssais[r].sdRanges?.map((P,T)=>a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,children:[a.jsx(Ke,{name:`sNssais[${r}].sdRanges[${T}].start`,children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sdRanges.start"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||!Ue(ie.provisioning),sx:{width:"50%"}})}}),a.jsx(Ke,{name:`sNssais[${r}].sdRanges[${T}].end`,children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{required:!0,...R,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sdRanges.end"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||!Ue(ie.provisioning),sx:{width:"50%"}})}}),a.jsx(Zr,{onClick:()=>l(b,T),disabled:i,children:a.jsx(ge.Trash,{})})]},P._uuid)),!s.sNssais?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.no_ranges"})})]})})})})}}),e[18]=r,e[19]=n,e[20]=i,e[21]=s.sNssais,e[22]=_):_=e[22];let g;return e[23]!==d||e[24]!==m||e[25]!==h||e[26]!==_?(g=a.jsxs(te,{children:[d,m,h,_]}),e[23]=d,e[24]=m,e[25]=h,e[26]=_,e[27]=g):g=e[27],g};function ydt(t){const e={_uuid:gn(),start:"",end:""};t(e)}function bdt(t,e){t(e)}function xdt(t){const e=he.c(17),{children:r,index:n,parentFieldName:s,interfaceTypeOptions:i}=t,o=Ye(),l=`${s}[${n}].interfaceType`;let c;e[0]!==i||e[1]!==o?(c=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(qs,{...g,label:o.formatMessage({id:"nrf_static_profile.form.upfInfoList.interfaceUpfInfoList.interface_type"}),size:"small",error:!!y.error,helperText:y.error,disabled:x||!Ue(ie.provisioning),required:!0,children:i.map(Sdt)})},e[0]=i,e[1]=o,e[2]=c):c=e[2];let u;e[3]!==l||e[4]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5];const d=`${s}[${n}].networkInstance`;let f;e[6]!==o?(f=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:o.formatMessage({id:"nrf_static_profile.form.upfInfoList.interfaceUpfInfoList.network_instance"}),size:"small",error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[6]=o,e[7]=f):f=e[7];let p;e[8]!==d||e[9]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[8]=d,e[9]=f,e[10]=p):p=e[10];let m;e[11]!==u||e[12]!==p?(m=a.jsxs(te,{fullWidth:!0,children:[u,p]}),e[11]=u,e[12]=p,e[13]=m):m=e[13];let h;return e[14]!==r||e[15]!==m?(h=a.jsxs(te,{direction:"row",align:"flex-start",divided:!0,nowrap:!0,fullWidth:!0,children:[m,r]}),e[14]=r,e[15]=m,e[16]=h):h=e[16],h}function Sdt(t){return a.jsx(En,{value:t,children:t},t)}function wdt(t){const e=he.c(12),{upfIndex:r}=t,n=Ye();let s;e[0]!==r?(s=(f,p)=>{const m=Object.values(b3).filter(h=>!f?.upfInfoList?.[r].interfaceUpfInfoList.find(_=>_.interfaceType===h));return p?.interfaceType&&m.push(p.interfaceType),Array.from(new Set(m)).sort(Adt).filter(Cdt)},e[0]=r,e[1]=s):s=e[1];const i=s;let o;e[2]!==i?(o=(f,p)=>{const m={_uuid:gn(),interfaceType:i(p)[0],networkInstance:""};f(m)},e[2]=i,e[3]=o):o=e[3];const l=o,c=`upfInfoList[${r}].interfaceUpfInfoList`;let u;e[4]!==i||e[5]!==l||e[6]!==n||e[7]!==r?(u=f=>{const{remove:p,push:m,form:h}=f,{getFieldMeta:_,isSubmitting:g,errors:y,values:b}=h,x=b,w=C=>!_(C)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.interface_add"}),type:"button",variant:"outlined",onClick:()=>l(m,x),disabled:g||!i(x).length||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!w(`upfInfoList[${r}].interfaceUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].interfaceUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].interfaceUpfInfoList`]})})})]})}),a.jsx(te,{divided:!0,spacing:3,children:!!x?.upfInfoList?.[r].interfaceUpfInfoList?.length&&x.upfInfoList[r].interfaceUpfInfoList?.map((C,k)=>a.jsx(xdt,{parentFieldName:`upfInfoList[${r}].interfaceUpfInfoList`,index:k,interfaceTypeOptions:i(x,C),children:a.jsx(Zr,{onClick:()=>p(k),disabled:g||!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})},C._uuid))}),!x?.upfInfoList?.[r].interfaceUpfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.no_interfaces"})})]})})})})},e[4]=i,e[5]=l,e[6]=n,e[7]=r,e[8]=u):u=e[8];let d;return e[9]!==c||e[10]!==u?(d=a.jsx(oi,{name:c,children:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11],d}function Cdt(t){return!!t}function Adt(t,e){return t===b3.DATA_FORWARDING?1:e===b3.DATA_FORWARDING?-1:t>e?1:-1}const kdt=t=>{const e=he.c(16),{parentFieldName:r,startLabel:n,endLabel:s,index:i,children:o}=t,l=`${r}[${i}].start`;let c;e[0]!==n?(c=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,required:!0,label:n,size:"small",error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[0]=n,e[1]=c):c=e[1];let u;e[2]!==l||e[3]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[2]=l,e[3]=c,e[4]=u):u=e[4];const d=`${r}[${i}].end`;let f;e[5]!==s?(f=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,required:!0,size:"small",label:s,error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[5]=s,e[6]=f):f=e[6];let p;e[7]!==d||e[8]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[7]=d,e[8]=f,e[9]=p):p=e[9];let m;e[10]!==u||e[11]!==p?(m=a.jsxs(te,{fullWidth:!0,children:[u,p]}),e[10]=u,e[11]=p,e[12]=m):m=e[12];let h;return e[13]!==o||e[14]!==m?(h=a.jsxs(te,{direction:"row",align:"flex-start",divided:!0,nowrap:!0,fullWidth:!0,children:[m,o]}),e[13]=o,e[14]=m,e[15]=h):h=e[15],h},eJ=t=>{const e=he.c(15),{fieldName:r,startLabel:n,endLabel:s,addLabel:i,noItemsLabel:o,titleLabel:l,listValue:c}=t,{getFieldMeta:u}=_0(),d=Mdt,f=Pdt;let p;e[0]!==r||e[1]!==u?(p=()=>!u(r)?.error,e[0]=r,e[1]=u,e[2]=p):p=e[2];const m=p;let h;e[3]!==i||e[4]!==s||e[5]!==r||e[6]!==m||e[7]!==c||e[8]!==o||e[9]!==n||e[10]!==l?(h=g=>{const{remove:y,push:b,form:x}=g,{isSubmitting:w}=x;return a.jsx(pr,{title:l,headerActionsComponent:a.jsx(Ze,{text:i,type:"button",variant:"outlined",onClick:()=>d(b),disabled:w||!Ue(ie.provisioning)}),error:!m(),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{divided:!0,spacing:3,children:!!c.length&&c?.map((C,k)=>a.jsx(kdt,{parentFieldName:r,startLabel:n,endLabel:s,index:k,children:a.jsx(Zr,{onClick:()=>f(y,k),disabled:w||!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})},C._uuid))}),!c?.length&&a.jsx(_e,{children:o})]})})})})},e[3]=i,e[4]=s,e[5]=r,e[6]=m,e[7]=c,e[8]=o,e[9]=n,e[10]=l,e[11]=h):h=e[11];let _;return e[12]!==r||e[13]!==h?(_=a.jsx(oi,{name:r,children:h}),e[12]=r,e[13]=h,e[14]=_):_=e[14],_};function Mdt(t){const e={_uuid:gn(),start:"",end:""};t(e)}function Pdt(t,e){t(e)}const jdt=t=>{const e=he.c(61),{upfIndex:r,sliceIndex:n,dnnIndex:s}=t,i=Ye(),{values:o}=_0(),l=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].dnn`;let c;e[0]!==i?(c=N=>{const{field:F,meta:U,form:z}=N,{isSubmitting:H}=z;return a.jsx(dt,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.dnn"}),size:"small",error:!!U.error,helperText:U.error,disabled:H||!Ue(ie.provisioning)})},e[0]=i,e[1]=c):c=e[1];let u;e[2]!==l||e[3]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[2]=l,e[3]=c,e[4]=u):u=e[4];const d=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].pduSessionTypes`;let f;e[5]!==i?(f=N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H,isSubmitting:W}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.pduSessionTypes"}),multiple:!0,size:"small",options:sdt,onChange:(K,q)=>{H(F.name,[...new Set(q.map(Tdt))])},error:!!U.error,helperText:U.error,disabled:W||!Ue(ie.provisioning),fullWidth:!0})},e[5]=i,e[6]=f):f=e[6];let p;e[7]!==d||e[8]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[7]=d,e[8]=f,e[9]=p):p=e[9];const m=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].ipv4AddressRanges`;let h;e[10]!==i?(h=i.formatMessage({id:"nrf_static_profile.section.upf.ipv4Ranges.range_add"}),e[10]=i,e[11]=h):h=e[11];let _;e[12]!==i?(_=i.formatMessage({id:"nrf_static_profile.section.upf.ipv4Ranges.no_ranges"}),e[12]=i,e[13]=_):_=e[13];let g;e[14]!==i?(g=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges.start"}),e[14]=i,e[15]=g):g=e[15];let y;e[16]!==i?(y=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges.end"}),e[16]=i,e[17]=y):y=e[17];let b;e[18]!==i?(b=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges"}),e[18]=i,e[19]=b):b=e[19];let x;e[20]!==s||e[21]!==n||e[22]!==r||e[23]!==o.upfInfoList?(x=o.upfInfoList?.[r]?.sNssaiUpfInfoList?.[n]?.dnnUpfInfoList?.[s]?.ipv4AddressRanges||[],e[20]=s,e[21]=n,e[22]=r,e[23]=o.upfInfoList,e[24]=x):x=e[24];let w;e[25]!==g||e[26]!==y||e[27]!==b||e[28]!==x||e[29]!==m||e[30]!==h||e[31]!==_?(w=a.jsx(eJ,{fieldName:m,addLabel:h,noItemsLabel:_,startLabel:g,endLabel:y,titleLabel:b,listValue:x}),e[25]=g,e[26]=y,e[27]=b,e[28]=x,e[29]=m,e[30]=h,e[31]=_,e[32]=w):w=e[32];const C=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].ipv6PrefixRanges`;let k;e[33]!==i?(k=i.formatMessage({id:"nrf_static_profile.section.upf.ipv6Ranges.range_add"}),e[33]=i,e[34]=k):k=e[34];let A;e[35]!==i?(A=i.formatMessage({id:"nrf_static_profile.section.upf.ipv6Ranges.no_ranges"}),e[35]=i,e[36]=A):A=e[36];let P;e[37]!==i?(P=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges.start"}),e[37]=i,e[38]=P):P=e[38];let T;e[39]!==i?(T=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges.end"}),e[39]=i,e[40]=T):T=e[40];let j;e[41]!==i?(j=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges"}),e[41]=i,e[42]=j):j=e[42];let R;e[43]!==s||e[44]!==n||e[45]!==r||e[46]!==o.upfInfoList?(R=o.upfInfoList?.[r]?.sNssaiUpfInfoList?.[n]?.dnnUpfInfoList?.[s]?.ipv6PrefixRanges||[],e[43]=s,e[44]=n,e[45]=r,e[46]=o.upfInfoList,e[47]=R):R=e[47];let D;e[48]!==C||e[49]!==k||e[50]!==A||e[51]!==P||e[52]!==T||e[53]!==j||e[54]!==R?(D=a.jsx(eJ,{fieldName:C,addLabel:k,noItemsLabel:A,startLabel:P,endLabel:T,titleLabel:j,listValue:R}),e[48]=C,e[49]=k,e[50]=A,e[51]=P,e[52]=T,e[53]=j,e[54]=R,e[55]=D):D=e[55];let O;return e[56]!==w||e[57]!==D||e[58]!==u||e[59]!==p?(O=a.jsxs(te,{spacing:2,children:[u,p,w,D]}),e[56]=w,e[57]=D,e[58]=u,e[59]=p,e[60]=O):O=e[60],O};function Tdt(t){return t.trim()}const Edt=t=>{const e=he.c(7),{upfIndex:r,sliceIndex:n}=t,s=Ye(),i=Rdt,o=Idt,l=Ddt,c=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList`;let u;e[0]!==s||e[1]!==n||e[2]!==r?(u=f=>{const{remove:p,push:m,form:h}=f,{getFieldMeta:_,isSubmitting:g,values:y,errors:b}=h,x=w=>!_(w)?.error;return a.jsx(pr,{title:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.title"}),headerActionsComponent:a.jsx(Ze,{text:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.dnn_add"}),type:"button",variant:"outlined",onClick:()=>o(m),disabled:g||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!x(`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof b[`upfInfoList[${r}].sNssaiUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:b[`upfInfoList[${r}].sNssaiUpfInfoList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:y.upfInfoList[r]?.sNssaiUpfInfoList[n]?.dnnUpfInfoList?.map((w,C)=>a.jsx(xr,{title:`${i({dnn:w.dnn,i:C})}`,error:!x(`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${C}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>l(p,C),label:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.dnn_delete"}),disabled:g||!Ue(ie.provisioning)}],content:a.jsx(jdt,{upfIndex:r,sliceIndex:n,dnnIndex:C})},`${w._uuid}`))||null}),!y.upfInfoList[r]?.sNssaiUpfInfoList[n]?.dnnUpfInfoList?.length&&a.jsx(_e,{children:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.no_dnns"})})]})})})})},e[0]=s,e[1]=n,e[2]=r,e[3]=u):u=e[3];let d;return e[4]!==c||e[5]!==u?(d=a.jsx(oi,{name:c,children:u}),e[4]=c,e[5]=u,e[6]=d):d=e[6],d};function Rdt(t){const{dnn:e,i:r}=t;return e||`DNN #${r+1}`}function Idt(t){const e={_uuid:gn(),dnn:"",pduSessionTypes:[],ipv4AddressRanges:[],ipv6PrefixRanges:[]};t(e)}function Ddt(t,e){t(e)}const $dt=t=>{const e=he.c(17),{upfIndex:r,sliceIndex:n}=t,s=Ye(),i=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].sNssai.sst`;let o;e[0]!==s?(o=m=>{const{field:h,meta:_,form:g}=m,{isSubmitting:y}=g;return a.jsx(dt,{...h,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.sNssai.sst"}),size:"small",error:!!_.error,helperText:_.error,disabled:y||!Ue(ie.provisioning)})},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==i||e[3]!==o?(l=a.jsx(Ke,{name:i,children:o}),e[2]=i,e[3]=o,e[4]=l):l=e[4];const c=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].sNssai.sd`;let u;e[5]!==s?(u=m=>{const{field:h,meta:_,form:g}=m,{isSubmitting:y}=g;return a.jsx(dt,{...h,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.sNssai.sd"}),size:"small",error:!!_.error,helperText:_.error,disabled:y||!Ue(ie.provisioning)})},e[5]=s,e[6]=u):u=e[6];let d;e[7]!==c||e[8]!==u?(d=a.jsx(Ke,{name:c,children:u}),e[7]=c,e[8]=u,e[9]=d):d=e[9];let f;e[10]!==n||e[11]!==r?(f=a.jsx(Edt,{upfIndex:r,sliceIndex:n}),e[10]=n,e[11]=r,e[12]=f):f=e[12];let p;return e[13]!==l||e[14]!==d||e[15]!==f?(p=a.jsxs(te,{spacing:2,children:[l,d,f]}),e[13]=l,e[14]=d,e[15]=f,e[16]=p):p=e[16],p},Odt=t=>{const e=he.c(6),{upfIndex:r}=t,n=Ye(),s=Ldt,i=Ndt,o=Fdt,l=`upfInfoList[${r}].sNssaiUpfInfoList`;let c;e[0]!==n||e[1]!==r?(c=d=>{const{remove:f,push:p,form:m}=d,{getFieldMeta:h,isSubmitting:_,values:g,errors:y}=m,b=x=>!h(x)?.error;return a.jsx(pr,{title:`${n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.title"})}*`,headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.slice_add"}),type:"button",variant:"outlined",onClick:()=>i(p),disabled:_||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!b(`upfInfoList[${r}].sNssaiUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].sNssaiUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].sNssaiUpfInfoList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:g.upfInfoList[r]?.sNssaiUpfInfoList?.map((x,w)=>a.jsx(xr,{title:`${s({sst:x.sNssai.sst,sd:x.sNssai.sd,i:w})}`,error:!b(`upfInfoList[${r}].sNssaiUpfInfoList[${w}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(f,w),label:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.slice_delete"}),disabled:_||!Ue(ie.provisioning)}],content:a.jsx($dt,{upfIndex:r,sliceIndex:w})},`${x._uuid}`))||null}),!g.upfInfoList[r]?.sNssaiUpfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.no_slices"})})]})})})})},e[0]=n,e[1]=r,e[2]=c):c=e[2];let u;return e[3]!==l||e[4]!==c?(u=a.jsx(oi,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5],u};function Ldt(t){const{sst:e,sd:r,i:n}=t,s=ldt({sst:e,sd:r});return s||`Slice #${n+1}`}function Ndt(t){const e={_uuid:gn(),dnnUpfInfoList:[],sNssai:{sd:"",sst:""},redundantTransport:!1};t(e)}function Fdt(t,e){t(e)}function Udt(t){const e=he.c(18),{children:r,label:n,helperText:s,spacing:i,required:o,direction:l,sx:c}=t,u=i===void 0?2:i,d=o===void 0?!1:o,f=l===void 0?"row":l,p=As(),m=Nd(p.breakpoints.up("sm"))?f:"column";let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={py:0,px:0,mr:.75,transform:"translateX(-2px)"},e[0]=h):h=e[0];let _;e[1]!==u||e[2]!==c?(_={".MuiCheckbox-root":h,mb:u,...c},e[1]=u,e[2]=c,e[3]=_):_=e[3];let g;e[4]!==n||e[5]!==d?(g=n&&a.jsx(mv,{color:"primary",required:d,sx:{mb:.75},children:n}),e[4]=n,e[5]=d,e[6]=g):g=e[6];let y;e[7]!==r||e[8]!==m||e[9]!==u?(y=a.jsx(te,{direction:m,fullWidth:!0,spacing:u,children:r}),e[7]=r,e[8]=m,e[9]=u,e[10]=y):y=e[10];let b;e[11]!==s?(b=s&&a.jsx(gv,{sx:{mx:0},children:s}),e[11]=s,e[12]=b):b=e[12];let x;return e[13]!==_||e[14]!==g||e[15]!==y||e[16]!==b?(x=a.jsxs(hv,{component:"fieldset",fullWidth:!0,sx:_,children:[g,y,b]}),e[13]=_,e[14]=g,e[15]=y,e[16]=b,e[17]=x):x=e[17],x}const Bdt=t=>{const e=he.c(24),{upfIndex:r,taiIndex:n}=t,s=Ye(),i=`upfInfoList[${r}].taiList[${n}].tac`;let o;e[0]!==s?(o=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.tac"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==i||e[3]!==o?(l=a.jsx(Ke,{name:i,children:o}),e[2]=i,e[3]=o,e[4]=l):l=e[4];let c;e[5]!==s?(c=s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId"}),e[5]=s,e[6]=c):c=e[6];const u=`upfInfoList[${r}].taiList[${n}].plmnId.mcc`;let d;e[7]!==s?(d=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId.mcc"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[7]=s,e[8]=d):d=e[8];let f;e[9]!==u||e[10]!==d?(f=a.jsx(Ke,{name:u,children:d}),e[9]=u,e[10]=d,e[11]=f):f=e[11];const p=`upfInfoList[${r}].taiList[${n}].plmnId.mnc`;let m;e[12]!==s?(m=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId.mnc"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[12]=s,e[13]=m):m=e[13];let h;e[14]!==p||e[15]!==m?(h=a.jsx(Ke,{name:p,children:m}),e[14]=p,e[15]=m,e[16]=h):h=e[16];let _;e[17]!==h||e[18]!==c||e[19]!==f?(_=a.jsxs(Udt,{label:c,children:[f,h]}),e[17]=h,e[18]=c,e[19]=f,e[20]=_):_=e[20];let g;return e[21]!==_||e[22]!==l?(g=a.jsxs(te,{spacing:2,children:[l,_]}),e[21]=_,e[22]=l,e[23]=g):g=e[23],g},zdt=t=>{const e=he.c(6),{upfIndex:r}=t,n=Ye(),s=qdt,i=Vdt,o=Hdt,l=`upfInfoList[${r}].taiList`;let c;e[0]!==n||e[1]!==r?(c=d=>{const{remove:f,push:p,form:m}=d,{getFieldMeta:h,isSubmitting:_,values:g,errors:y}=m,b=x=>!h(x)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.tai_add"}),type:"button",variant:"outlined",onClick:()=>i(p),disabled:_||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!b(`upfInfoList[${r}].taiList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].taiList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].taiList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:g.upfInfoList[r]?.taiList?.map((x,w)=>a.jsx(xr,{title:`${s({...x,i:w})}`,error:!b(`upfInfoList[${r}].taiList[${w}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(f,w),label:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.tai_delete"}),disabled:_||!Ue(ie.provisioning)}],content:a.jsx(Bdt,{upfIndex:r,taiIndex:w})},`${x._uuid}`))||null}),!g.upfInfoList[r]?.taiList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.no_tais"})})]})})})})},e[0]=n,e[1]=r,e[2]=c):c=e[2];let u;return e[3]!==l||e[4]!==c?(u=a.jsx(oi,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5],u};function qdt(t){const{tac:e,plmnId:r,i:n}=t,{mcc:s,mnc:i}=r;let o="";return e&&(o=`${e}`),(s||i)&&(o=o+" (",s&&(o=o+s),i&&(o=o+`-${i}`),o=o+")"),o||`TAI #${n+1}`}function Vdt(t){const e={_uuid:gn(),plmnId:{mnc:"",mcc:""},tac:"",nid:""};t(e)}function Hdt(t,e){t(e)}const Gdt=t=>{const e=he.c(14),{upfIndex:r}=t,n=Ye(),s=`upfInfoList[${r}].ueIpAddrInd`;let i;e[0]!==n?(i=f=>{const{field:p,form:m}=f,{setFieldValue:h,isSubmitting:_}=m;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!p.value,onChange:(g,y)=>{h(p.name,y)},disabled:_||!Ue(ie.provisioning)}),a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.ueIpAddrInd"})})]})},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==s||e[3]!==i?(o=a.jsx(Ke,{name:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4];let l,c,u;e[5]!==r?(l=a.jsx(wdt,{upfIndex:r}),c=a.jsx(zdt,{upfIndex:r}),u=a.jsx(Odt,{upfIndex:r}),e[5]=r,e[6]=l,e[7]=c,e[8]=u):(l=e[6],c=e[7],u=e[8]);let d;return e[9]!==o||e[10]!==l||e[11]!==c||e[12]!==u?(d=a.jsxs(te,{spacing:2,children:[o,l,c,u]}),e[9]=o,e[10]=l,e[11]=c,e[12]=u,e[13]=d):d=e[13],d},Wdt=t=>{const e=he.c(3),{isLoading:r}=t,n=Ye(),s=Ydt,i=Kdt,o=Qdt;let l;return e[0]!==n||e[1]!==r?(l=a.jsx(oi,{name:"upfInfoList",children:c=>{const{remove:u,push:d,form:f}=c,{getFieldMeta:p,values:m,errors:h}=f,_=g=>!p(g)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.upf_instance_add"}),type:"button",variant:"outlined",onClick:()=>{i(d)},disabled:r||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!_("upfInfoList")&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof h.upfInfoList=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:h.upfInfoList})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:m.upfInfoList?.map((g,y)=>a.jsx(xr,{title:`${s(y)}`,subtitle:g._uuid,error:!_(`upfInfoList[${y}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(u,y),label:n.formatMessage({id:"nrf_static_profile.section.upf.upf_instance_delete"}),disabled:r||!Ue(ie.provisioning)}],content:a.jsx(Gdt,{upfIndex:y})},`${g._uuid}`))||null}),!m.upfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.no_upf_instances"})})]})})})})}}),e[0]=n,e[1]=r,e[2]=l):l=e[2],l};function Ydt(t){return`UPF Instance #${t+1}`}function Kdt(t){const e={_uuid:gn(),sNssaiUpfInfoList:[],taiList:[],ueIpAddrInd:!1,interfaceUpfInfoList:[]};t(e)}function Qdt(t,e){t(e)}const Zdt=t=>{const e=he.c(66),{isEditing:r,isLoading:n,errorData:s}=t,i=Ye(),{values:o}=_0(),l=Xdt,c=Jdt,u=eft,d=tft,f=rft;let p;e[0]!==i?(p=i.formatMessage({id:"nrf_static_profile.section.general.title"}),e[0]=i,e[1]=p):p=e[1];let m;e[2]!==p?(m=a.jsx(_e,{type:"h6",fontWeight:600,children:p}),e[2]=p,e[3]=m):m=e[3];let h;e[4]!==i||e[5]!==r||e[6]!==n?(h=a.jsx(Ke,{name:"nfInstanceId",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.nfInstanceId"}),size:"small",error:!!U.error,helperText:U.error,disabled:r||n})}}),e[4]=i,e[5]=r,e[6]=n,e[7]=h):h=e[7];let _;e[8]!==i||e[9]!==n?(_=a.jsx(Ke,{name:"nfType",children:N=>{const{field:F,meta:U}=N;return a.jsx(qs,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.nfType"}),size:"small",error:!!U.error,helperText:U.error,disabled:n,children:idt.map(nft)})}}),e[8]=i,e[9]=n,e[10]=_):_=e[10];let g;e[11]!==i||e[12]!==n?(g=a.jsx(Ke,{name:"nfStatus",children:N=>{const{field:F,meta:U}=N;return a.jsx(qs,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.nfStatus"}),size:"small",error:!!U.error,helperText:U.error,disabled:n,children:odt.map(sft)})}}),e[11]=i,e[12]=n,e[13]=g):g=e[13];let y;e[14]!==i||e[15]!==n?(y=a.jsx(Ke,{name:"fqdn",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.fqdn"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[14]=i,e[15]=n,e[16]=y):y=e[16];let b;e[17]!==i||e[18]!==n?(b=a.jsx(Ke,{name:"ipv4Addresses",children:N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.ipv4Addresses"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(W,K)=>{H(F.name,[...new Set(K.map(ift))])},error:!!U.error,helperText:U.error,disabled:n})}}),e[17]=i,e[18]=n,e[19]=b):b=e[19];let x;e[20]!==i||e[21]!==n?(x=a.jsx(Ke,{name:"ipv6Addresses",children:N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.ipv6Addresses"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(W,K)=>{H(F.name,[...new Set(K.map(oft))])},error:!!U.error,helperText:U.error,disabled:n})}}),e[20]=i,e[21]=n,e[22]=x):x=e[22];let w;e[23]!==i||e[24]!==n?(w=a.jsx(Ke,{name:"nfInstanceName",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.nfInstanceName"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[23]=i,e[24]=n,e[25]=w):w=e[25];let C;e[26]!==i||e[27]!==n?(C=a.jsx(Ke,{name:"priority",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.priority"}),size:"small",type:"number",error:!!U.error,helperText:U.error,disabled:n})}}),e[26]=i,e[27]=n,e[28]=C):C=e[28];let k;e[29]!==i||e[30]!==n?(k=a.jsx(Ke,{name:"capacity",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.capacity"}),size:"small",type:"number",error:!!U.error,helperText:U.error,disabled:n})}}),e[29]=i,e[30]=n,e[31]=k):k=e[31];let A;e[32]!==i||e[33]!==n?(A=a.jsx(Ke,{name:"locality",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.locality"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[32]=i,e[33]=n,e[34]=A):A=e[34];let P;e[35]!==i||e[36]!==n||e[37]!==o.sNssais?(P=a.jsx(oi,{name:"sNssais",children:N=>{const{remove:F,push:U,form:z}=N,{getFieldMeta:H,errors:W}=z,K=q=>!H(q)?.error;return a.jsx(pr,{title:i.formatMessage({id:"nrf_static_profile.section.slices.title"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"nrf_static_profile.section.slices.slice_add"}),type:"button",variant:"outlined",onClick:()=>c(U),disabled:n||!Ue(ie.provisioning)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!K("sNssais")&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:i.formatMessage({id:"nrf_static_profile.form.sNssais.form_errors.has_errors"})}),typeof W.sNssais=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:W.sNssais})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:o.sNssais?.map((q,X)=>{const Q=q;return a.jsx(xr,{title:`${l(Q,X)}`,error:!K(`sNssais[${X}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>u(F,X),label:i.formatMessage({id:"nrf_static_profile.section.slices.slice_delete"}),disabled:n||!Ue(ie.provisioning)}],content:a.jsx(vdt,{i:X}),elevation:3},`${Q._uuid}`)})||[]}),!o.sNssais?.length&&a.jsx(_e,{children:i.formatMessage({id:"nrf_static_profile.section.slices.no_slices"})})]})})})})}}),e[35]=i,e[36]=n,e[37]=o.sNssais,e[38]=P):P=e[38];let T;e[39]!==i||e[40]!==n||e[41]!==o.plmnList?(T=a.jsx(oi,{name:"plmnList",children:N=>{const{remove:F,push:U}=N;return a.jsx(pr,{title:i.formatMessage({id:"nrf_static_profile.section.plmnList.title"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"nrf_static_profile.section.plmnList.plmn_add"}),type:"button",variant:"outlined",onClick:()=>d(U),disabled:n||!Ue(ie.provisioning)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[!!o.plmnList?.length&&o.plmnList.map((z,H)=>{const W=z;return a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,children:[a.jsx(_dt,{i:H}),a.jsx(Zr,{onClick:()=>f(F,H),disabled:n||!Ue(ie.provisioning),sx:{mt:"4px"},children:a.jsx(ge.Trash,{size:"24px"})})]},W._uuid)}),!o.plmnList?.length&&a.jsx(_e,{children:i.formatMessage({id:"nrf_static_profile.section.plmnList.no_plmns"})})]})})})})}}),e[39]=i,e[40]=n,e[41]=o.plmnList,e[42]=T):T=e[42];let j;e[43]!==s?(j=a.jsx(Xr,{data:s}),e[43]=s,e[44]=j):j=e[44];let R;e[45]!==C||e[46]!==k||e[47]!==A||e[48]!==P||e[49]!==T||e[50]!==j||e[51]!==h||e[52]!==_||e[53]!==g||e[54]!==y||e[55]!==b||e[56]!==x||e[57]!==w?(R=a.jsxs(te,{spacing:2,children:[h,_,g,y,b,x,w,C,k,A,P,T,j]}),e[45]=C,e[46]=k,e[47]=A,e[48]=P,e[49]=T,e[50]=j,e[51]=h,e[52]=_,e[53]=g,e[54]=y,e[55]=b,e[56]=x,e[57]=w,e[58]=R):R=e[58];let D;e[59]!==n||e[60]!==o.nfType?(D=o?.nfType===v7.UPF&&a.jsx(Wdt,{isLoading:n}),e[59]=n,e[60]=o.nfType,e[61]=D):D=e[61];let O;return e[62]!==R||e[63]!==D||e[64]!==m?(O=a.jsxs(te,{spacing:2,children:[m,R,D]}),e[62]=R,e[63]=D,e[64]=m,e[65]=O):O=e[65],O};function Xdt(t,e){const{sst:r,sd:n,sdRanges:s}=t,i=adt({sst:r,sd:n,sdRanges:s});return i||`Slice #${e+1}`}function Jdt(t){const e={_uuid:gn(),sst:"",sd:"",isRangesActive:!1,sdRanges:[]};t(e)}function eft(t,e){t(e)}function tft(t){const e={_uuid:gn(),mcc:"",mnc:""};t(e)}function rft(t,e){t(e)}function nft(t){return a.jsx(En,{value:t,children:t},t)}function sft(t){return a.jsx(En,{value:t,children:t},t)}function ift(t){return t.trim()}function oft(t){return t.trim()}const aft=t=>{const e=he.c(24),{staticProfile:r}=t,n=Ye(),{confirmationSimpleDialogOpen:s}=Jt(),{id:i}=ko(),{data:o,state:l,submit:c}=gr(),u=i!=="new";let d;e[0]!==r?(d=hdt(r),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==u||e[3]!==c?(p=b=>{u?c(JX(b),{method:"PUT",encType:"application/json",action:"update"}):c(JX(b),{method:"POST",encType:"application/json",action:"create"})},e[2]=u,e[3]=c,e[4]=p):p=e[4];const m=p;let h;e[5]!==s||e[6]!==l||e[7]!==i||e[8]!==n||e[9]!==u||e[10]!==c?(h=u&&a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:l!=="idle"||!Ue(ie.provisioning),text:n.formatMessage({id:"nrf_static_profiles.actions.delete"}),onClick:()=>{i&&s({title:n.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.title"}),description:n.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.description"},{nfInstanceId:i}),onConfirm:()=>{c({id:i},{method:"DELETE",encType:"application/json",action:"delete"})},cancelText:n.formatMessage({id:"confirm_dialog.cancel"}),confirmText:n.formatMessage({id:"confirm_dialog.ok"})})}})}),e[5]=s,e[6]=l,e[7]=i,e[8]=n,e[9]=u,e[10]=c,e[11]=h):h=e[11];let _;e[12]!==o||e[13]!==l||e[14]!==n||e[15]!==u?(_=b=>{const{dirty:x}=b;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsx(Zdt,{isEditing:u,isLoading:l!=="idle",errorData:o}),Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:n.formatMessage({id:"udr_supi.form.buttons.submit"}),disabled:!x,loading:l!=="idle",sx:{alignSelf:"flex-start"}})]})})},e[12]=o,e[13]=l,e[14]=n,e[15]=u,e[16]=_):_=e[16];let g;e[17]!==m||e[18]!==f||e[19]!==_?(g=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:f,enableReinitialize:!0,validationSchema:gdt,onSubmit:m,children:_})}),e[17]=m,e[18]=f,e[19]=_,e[20]=g):g=e[20];let y;return e[21]!==h||e[22]!==g?(y=a.jsxs(a.Fragment,{children:[h,g]}),e[21]=h,e[22]=g,e[23]=y):y=e[23],y},lft=()=>{const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",height:"600px"}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.staticProfile?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.staticProfile,errorElement:n,children:cft})}),t[2]=e.staticProfile,t[3]=s):s=t[3],s};function cft(t){return a.jsx(aft,{staticProfile:t})}const Ap=t=>{const e=he.c(25),{text:r,max:n,fontWeight:s}=t,i=n===void 0?10:n,o=s===void 0?"400":s,{snackbarOpen:l}=Jt(),c=Ye();let u;e[0]!==c||e[1]!==l||e[2]!==r?(u=()=>{navigator.clipboard.writeText(r),l({message:c.formatMessage({id:"long_string_displayer.message.copy_ok"}),severity:"success"})},e[0]=c,e[1]=l,e[2]=r,e[3]=u):u=e[3];const d=u;if(!r)return null;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={wordBreak:"break-all"},e[4]=f):f=e[4];let p;e[5]!==i||e[6]!==r?(p=r.length>i?`${r.substring(0,i)}...`:r,e[5]=i,e[6]=r,e[7]=p):p=e[7];let m;e[8]!==o||e[9]!==p?(m=a.jsx("span",{children:a.jsx(te,{direction:"row",spacing:0,align:"center",children:a.jsx(_e,{type:"body2",fontWeight:o,sx:f,noWrap:!0,children:p})})}),e[8]=o,e[9]=p,e[10]=m):m=e[10];let h;e[11]!==m||e[12]!==r?(h=a.jsx(Mn,{title:r,children:m}),e[11]=m,e[12]=r,e[13]=h):h=e[13];let _;e[14]!==c?(_=c.formatMessage({id:"long_string_displayer.message.copy"}),e[14]=c,e[15]=_):_=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ge.Copy,{}),e[16]=g):g=e[16];let y;e[17]!==d?(y=a.jsx("span",{children:a.jsx(Zr,{onClick:d,size:"small",children:g})}),e[17]=d,e[18]=y):y=e[18];let b;e[19]!==y||e[20]!==_?(b=a.jsx(Mn,{title:_,children:y}),e[19]=y,e[20]=_,e[21]=b):b=e[21];let x;return e[22]!==b||e[23]!==h?(x=a.jsxs(te,{direction:"row",spacing:.5,align:"center",nowrap:!0,children:[h,b]}),e[22]=b,e[23]=h,e[24]=x):x=e[24],x},uft=()=>{const t=he.c(83),e=Ye(),{confirmationSimpleDialogOpen:r}=Jt(),n=ys(),s=zn(),{submit:i}=gr();let o;t[0]!==e?(o=e.formatMessage({id:"nrf_static_profiles.table.nfType"}),t[0]=e,t[1]=o):o=t[1];let l;t[2]!==o?(l={key:"nfType",label:o,cellRender:dft},t[2]=o,t[3]=l):l=t[3];let c;t[4]!==e?(c=e.formatMessage({id:"nrf_static_profiles.table.nfStatus"}),t[4]=e,t[5]=c):c=t[5];let u;t[6]!==c?(u={key:"nfStatus",label:c,cellRender:fft},t[6]=c,t[7]=u):u=t[7];let d;t[8]!==e?(d=e.formatMessage({id:"nrf_static_profiles.table.fqdn"}),t[8]=e,t[9]=d):d=t[9];let f;t[10]!==d?(f={key:"fqdn",label:d},t[10]=d,t[11]=f):f=t[11];let p;t[12]!==e?(p=e.formatMessage({id:"nrf_static_profiles.table.ipv4Addresses"}),t[12]=e,t[13]=p):p=t[13];let m;t[14]!==p?(m={key:"ipv4Addresses",label:p,cellRender:mft},t[14]=p,t[15]=m):m=t[15];let h;t[16]!==e?(h=e.formatMessage({id:"nrf_static_profiles.table.ipv6Addresses"}),t[16]=e,t[17]=h):h=t[17];let _;t[18]!==h?(_={key:"ipv6Addresses",label:h,cellRender:gft},t[18]=h,t[19]=_):_=t[19];let g;t[20]!==e?(g=e.formatMessage({id:"nrf_static_profiles.table.priority"}),t[20]=e,t[21]=g):g=t[21];let y;t[22]!==g?(y={key:"priority",label:g},t[22]=g,t[23]=y):y=t[23];let b;t[24]!==e?(b=e.formatMessage({id:"nrf_static_profiles.table.locality"}),t[24]=e,t[25]=b):b=t[25];let x;t[26]!==b?(x={key:"locality",label:b},t[26]=b,t[27]=x):x=t[27];let w;t[28]!==e?(w=e.formatMessage({id:"nrf_static_profiles.table.capacity"}),t[28]=e,t[29]=w):w=t[29];let C;t[30]!==w?(C={key:"capacity",label:w},t[30]=w,t[31]=C):C=t[31];let k;t[32]!==e?(k=e.formatMessage({id:"nrf_static_profiles.table.sNssais"}),t[32]=e,t[33]=k):k=t[33];let A;t[34]!==k?(A={key:"sNssais",label:k,cellRender:_ft},t[34]=k,t[35]=A):A=t[35];let P;t[36]!==e?(P=e.formatMessage({id:"nrf_static_profiles.table.plmnList"}),t[36]=e,t[37]=P):P=t[37];let T;t[38]!==P?(T={key:"plmnList",label:P,cellRender:vft},t[38]=P,t[39]=T):T=t[39];let j;t[40]!==e?(j=e.formatMessage({id:"nrf_static_profiles.table.nfInstanceId"}),t[40]=e,t[41]=j):j=t[41];let R;t[42]!==j?(R={key:"nfInstanceId",label:j,cellRender:yft},t[42]=j,t[43]=R):R=t[43];let D;t[44]!==l||t[45]!==y||t[46]!==x||t[47]!==C||t[48]!==A||t[49]!==T||t[50]!==R||t[51]!==u||t[52]!==f||t[53]!==m||t[54]!==_?(D=[l,u,f,m,_,y,x,C,A,T,R],t[44]=l,t[45]=y,t[46]=x,t[47]=C,t[48]=A,t[49]=T,t[50]=R,t[51]=u,t[52]=f,t[53]=m,t[54]=_,t[55]=D):D=t[55];const O=D;let N;t[56]===Symbol.for("react.memo_cache_sentinel")?(N=_l(ie.configuration),t[56]=N):N=t[56];let F;t[57]!==n?(F={...N,onClick:fe=>{const{nfInstanceId:de}=fe;return n(`${$.urls.nrfStaticProfiles}/${de}`)}},t[57]=n,t[58]=F):F=t[58];let U;t[59]!==e?(U=e.formatMessage({id:"nrf_static_profiles.actions.delete"}),t[59]=e,t[60]=U):U=t[60];let z;t[61]===Symbol.for("react.memo_cache_sentinel")?(z=Ue(ie.configuration),t[61]=z):z=t[61];let H;t[62]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Trash,{}),t[62]=H):H=t[62];let W;t[63]!==r||t[64]!==e||t[65]!==i?(W=fe=>{const{nfInstanceId:de}=fe;de&&r({title:e.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.title"}),description:e.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.description"},{nfInstanceId:de}),onConfirm:()=>{i({id:de},{method:"DELETE",encType:"application/json",action:`${de}/delete`})},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[63]=r,t[64]=e,t[65]=i,t[66]=W):W=t[66];let K;t[67]!==U||t[68]!==W?(K={label:U,disabled:!z,icon:H,onClick:W},t[67]=U,t[68]=W,t[69]=K):K=t[69];let q;t[70]!==F||t[71]!==K?(q=[F,K],t[70]=F,t[71]=K,t[72]=q):q=t[72];const X=q;let Q;t[73]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[73]=Q):Q=t[73];let Y;t[74]===Symbol.for("react.memo_cache_sentinel")?(Y=a.jsx(Tr,{}),t[74]=Y):Y=t[74];let Z;t[75]!==O||t[76]!==e||t[77]!==n||t[78]!==X?(Z=fe=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"nfr-profile-btn-add",text:e.formatMessage({id:"nrf_static_profiles.toolbar.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>n(`${$.urls.nrfStaticProfiles}/new`),disabled:!Ue(ie.configuration)})}),a.jsx(Br,{autoScale:!0,orderBy:"nfInstanceId",columns:O,data:fe,page:1,rowsCount:fe.length,rowsPerPage:fe.length,rowsPerPageOptions:$.pageSizeOptions,hidePagination:!0,rowKey:"nfInstanceId",rowActions:X,stickyRowActions:!0})]}),t[75]=O,t[76]=e,t[77]=n,t[78]=X,t[79]=Z):Z=t[79];let re;return t[80]!==s.staticProfiles||t[81]!==Z?(re=a.jsx(I.Suspense,{fallback:Q,children:a.jsx(Qt,{resolve:s.staticProfiles,errorElement:Y,children:Z})}),t[80]=s.staticProfiles,t[81]=Z,t[82]=re):re=t[82],re};function dft(t){return a.jsx(ms,{size:"small",id:t.nfType,label:t.nfType})}function fft(t){const{nfStatus:e}=t;return a.jsx(ms,{size:"small",label:e,color:e===Eb.REGISTERED?"success":e===Eb.SUSPENDED?"error":e===Eb.UNDISCOVERABLE?"warning":"info"})}function pft(t){return{label:t,id:t}}function mft(t){const{ipv4Addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(pft)||[]})}function hft(t){return{label:t,id:t}}function gft(t){const{ipv6Addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(hft)||[]})}function _ft(t){const{sNssais:e}=t;return a.jsx(_e,{type:"body2",children:e?.length?e.length:""})}function vft(t){const{plmnList:e}=t;return a.jsx(_e,{type:"body2",children:e?.length?e.length:""})}function yft(t){const{nfInstanceId:e}=t;return a.jsx(Ap,{text:e||""})}function bft(t){const e=he.c(25),{nfInstanceId:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={to:"nrf/status"},e[0]=i):i=e[0];const{data:o}=Dv(i);o?.profiles;let l;e[1]!==o?.profiles||e[2]!==r?(l=o?.profiles.find(b=>b.nf_profile.nfInstanceId===r),e[1]=o?.profiles,e[2]=r,e[3]=l):l=e[3];const c=l,u=!o;let d;e[4]!==c?(d=c&&a.jsx(Aue,{value:JSON.stringify(c??null,null,2),language:"json"}),e[4]=c,e[5]=d):d=e[5];let f;e[6]!==n||e[7]!==c?(f=!c&&a.jsx(Lr,{severity:"warning",message:n.formatMessage({id:"nrf.status.details.no_profile"})}),e[6]=n,e[7]=c,e[8]=f):f=e[8];let p;e[9]!==d||e[10]!==f?(p=a.jsxs(te,{fullHeight:!0,align:"center",justify:"center",children:[d,f]}),e[9]=d,e[10]=f,e[11]=p):p=e[11];let m;e[12]!==u||e[13]!==p?(m=a.jsx(_s,{loading:u,children:p}),e[12]=u,e[13]=p,e[14]=m):m=e[14];let h;e[15]!==n?(h=n.formatMessage({id:"info_dialog.close"}),e[15]=n,e[16]=h):h=e[16];let _;e[17]!==s?(_=()=>s(),e[17]=s,e[18]=_):_=e[18];let g;e[19]!==h||e[20]!==_?(g=a.jsx(Ti,{children:a.jsx(Ze,{text:h,onClick:_})}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;return e[22]!==g||e[23]!==m?(y=a.jsxs(a.Fragment,{children:[m,g]}),e[22]=g,e[23]=m,e[24]=y):y=e[24],y}function xft(){const t=he.c(57),e=Ye(),{dialogOpen:r}=Jt(),n=Gr(),s=ys(),i=On();let o;t[0]!==e?(o=(q,X)=>{switch(X){case"nf_profile.nfType":return q.nf_profile.nfType;case"md.static":return q.md.static?e.formatMessage({id:"nrf.status.profile_type.static"}):e.formatMessage({id:"nrf.status.profile_type.dynamic"});case"nf_profile.nfStatus":return q.nf_profile.nfStatus;case"nf_profile.nfInstanceId":return q.nf_profile.nfInstanceId;case"md.registration_ts_epoch_s":return q.md.registration_ts_epoch_s;case"md.expiration_ts_epoch_s":return q.md.expiration_ts_epoch_s??0;default:return""}},t[0]=e,t[1]=o):o=t[1];const l=o,c=Pft;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={direction:Gl.ASC,column:"nf_profile.nfType"},t[2]=u):u=t[2];let d;t[3]!==l?(d={initialSortingState:u,getColumnValue:l,getColumnType:c},t[3]=l,t[4]=d):d=t[4];const{sort:f,updateSorting:p,sorting:m}=ex(d);let h;t[5]!==p?(h=(q,X)=>{p({column:X,direction:q})},t[5]=p,t[6]=h):h=t[6];const _=h;let g;t[7]!==e?(g=e.formatMessage({id:"nrf.status.nf_type"}),t[7]=e,t[8]=g):g=t[8];let y;t[9]!==g?(y={key:"nf_profile.nfType",label:g,sortable:!0,cellRender:Mft},t[9]=g,t[10]=y):y=t[10];let b;t[11]!==e?(b=e.formatMessage({id:"nrf.status.profile_type"}),t[11]=e,t[12]=b):b=t[12];let x;t[13]!==e?(x=q=>a.jsx(ms,{color:q.md.static?"info":"default",size:"small",id:q.nf_profile.nfInstanceId,label:q.md.static?e.formatMessage({id:"nrf.status.profile_type.static"}):e.formatMessage({id:"nrf.status.profile_type.dynamic"})}),t[13]=e,t[14]=x):x=t[14];let w;t[15]!==b||t[16]!==x?(w={key:"md.static",label:b,sortable:!0,cellRender:x},t[15]=b,t[16]=x,t[17]=w):w=t[17];let C;t[18]!==e?(C=e.formatMessage({id:"nrf.status.nf_status"}),t[18]=e,t[19]=C):C=t[19];let k;t[20]!==C?(k={key:"nf_profile.nfStatus",label:C,sortable:!0,cellRender:kft},t[20]=C,t[21]=k):k=t[21];let A;t[22]!==e?(A=e.formatMessage({id:"nrf.status.registration"}),t[22]=e,t[23]=A):A=t[23];let P;t[24]!==A?(P={key:"md.registration_ts_epoch_s",label:A,sortable:!0,cellRender:Aft},t[24]=A,t[25]=P):P=t[25];let T;t[26]!==e?(T=e.formatMessage({id:"nrf.status.expiration"}),t[26]=e,t[27]=T):T=t[27];let j;t[28]!==T?(j={key:"md.expiration_ts_epoch_s",label:T,sortable:!0,cellRender:Cft},t[28]=T,t[29]=j):j=t[29];let R;t[30]!==e?(R=e.formatMessage({id:"nrf.status.nf_instance_id"}),t[30]=e,t[31]=R):R=t[31];let D;t[32]!==R?(D={key:"nf_profile.nfInstanceId",label:R,sortable:!0,cellRender:wft},t[32]=R,t[33]=D):D=t[33];let O;t[34]!==k||t[35]!==P||t[36]!==j||t[37]!==D||t[38]!==y||t[39]!==w?(O=[y,w,k,P,j,D],t[34]=k,t[35]=P,t[36]=j,t[37]=D,t[38]=y,t[39]=w,t[40]=O):O=t[40];const N=O;let F;t[41]!==r||t[42]!==e||t[43]!==s?(F=q=>[{label:e.formatMessage({id:"nrf.status.actions.edit"}),icon:a.jsx(ge.Edit,{}),disabled:Sft,onClick:X=>{s($.urls.nrfStaticProfilesDetails.replace(":id",X.nf_profile.nfInstanceId))}},{label:e.formatMessage({id:"nrf.status.actions.details"}),icon:a.jsx(ge.Details,{}),onClick:X=>{const Q=q.find(Y=>Y.nf_profile.nfInstanceId===X.nf_profile.nfInstanceId);r({fullScreen:!0,title:`${Q?Q?.nf_profile?.nfType+" - ":""}${e.formatMessage({id:"nrf.status.profile_details"})}`,content:()=>a.jsx(bft,{nfInstanceId:X.nf_profile.nfInstanceId})})}}],t[41]=r,t[42]=e,t[43]=s,t[44]=F):F=t[44];const U=F;let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Dt,{variant:"rectangular",height:"100%"}),t[45]=z):z=t[45];let H;t[46]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Tr,{}),t[46]=H):H=t[46];let W;t[47]!==N||t[48]!==_||t[49]!==i.state||t[50]!==U||t[51]!==f||t[52]!==m?(W=q=>a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",columns:N,rowKey:"nf_profile.nfInstanceId",page:0,hidePagination:!0,data:f(q,m),rowsCount:q?.length,rowsPerPage:q?.length,orderBy:m.column,onSort:_,order:m.direction,rowActions:U(q)}),t[47]=N,t[48]=_,t[49]=i.state,t[50]=U,t[51]=f,t[52]=m,t[53]=W):W=t[53];let K;return t[54]!==n.profiles||t[55]!==W?(K=a.jsx(I.Suspense,{fallback:z,children:a.jsx(Qt,{resolve:n.profiles,errorElement:H,children:W})}),t[54]=n.profiles,t[55]=W,t[56]=K):K=t[56],K}function Sft(t){return!t.md.static||!Ue(ie.management)}function wft(t){return a.jsx(Ap,{text:t.nf_profile.nfInstanceId})}function Cft(t){return t.md.static?a.jsx(a.Fragment,{}):a.jsx(_e,{type:"body2",children:ai.unix(t.md.expiration_ts_epoch_s).fromNow()})}function Aft(t){return a.jsx(_e,{type:"body2",children:ai.unix(t.md.registration_ts_epoch_s).fromNow()})}function kft(t){let e;e:switch(t.nf_profile.nfStatus){case b_.REGISTERED:{e="success";break e}case b_.SUSPENDED:{e="error";break e}default:e="warning"}return a.jsx(ms,{color:e,size:"small",id:t.nf_profile.nfStatus,label:t.nf_profile.nfStatus})}function Mft(t){return a.jsx(ms,{size:"small",id:t.nf_profile.nfType,label:t.nf_profile.nfType})}function Pft(t){switch(t){case"nf_profile.nfType":case"md.static":case"nf_profile.nfStatus":case"nf_profile.nfInstanceId":return"string";case"md.registration_ts_epoch_s":case"md.expiration_ts_epoch_s":return"number";default:return"string"}}async function jft({request:t}){const e=await t.json(),r=await Zze(e);return xt(r)?Ft(r):(Nt(),rt($.urls.nrfStaticProfiles))}async function Tft({request:t}){const e=await t.json(),r=await Xze(e);return xt(r)?Ft(r):(Nt(),rt($.urls.nrfStaticProfiles))}async function Eft({request:t}){const{id:e}=await t.json(),r=await Jze(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.nrfStaticProfiles)return rt($.urls.nrfStaticProfiles);return Ft(r)}async function Rft(t){return Wt({loaderArgs:t,deferred:!0,data:{profiles:Vae()}})}async function Ift(t){return Wt({loaderArgs:t,deferred:!0,data:{staticProfiles:Hae()}})}async function Dft(t){if(t==="new")return null;const r=(await Hae()).find(n=>n.nfInstanceId===t);if(!r)throw Li({type:mn.NOT_FOUND});return r}async function $ft(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{staticProfile:Dft(e)}})}const Oft={path:"nrf",handle:vr({labelIntl:"route.nrf",icon:a.jsx(ge.NRF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"status",loader:Rft,handle:vr({labelIntl:"route.nrf.status",to:$.urls.nrfStatus}),element:a.jsx(xft,{})},io(ue.NRF)]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.NRF,{dbCluster:!0})]},{path:"static-profiles",handle:vr({labelIntl:"route.nrf.static-profiles",to:$.urls.nrfStaticProfiles}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:Ift,element:a.jsx(uft,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",loader:$ft,handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.nrf.static-profiles.new":"route.nrf.static-profiles.id",...e!=="new"&&{captionIntl:"route.nrf.static-profiles.id.caption",captionIntlParams:{id:e}},to:`${$.urls.nrfStaticProfiles}/${e}`})},element:a.jsx(lft,{}),children:[{path:"create",action:jft,loader:()=>rt("..")},{path:"update",action:Tft,loader:()=>rt("..")},{path:"delete",action:Eft,loader:()=>rt("..")}]}]}]}]},Lft=Pr(),Nft={path:"pcf",handle:vr({labelIntl:"route.pcf",icon:a.jsx(ge.PCF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.PCF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.pcf.status",to:"/pcf/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:Lft.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.PCF})]},io(ue.PCF)]}]};function Fft(){const t=he.c(7),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"1200px"}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Tr,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>{const{authConfiguration:c}=l;return a.jsx(Ao,{tabs:[{url:"strategies",label:e.formatMessage({id:"route.auth.strategies"})},...c?[{url:"auth-config",label:e.formatMessage({id:"route.auth.auth_config"})}]:[],{url:"terms",label:e.formatMessage({id:"route.auth.terms"})}]})},t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.config||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.config,errorElement:s,children:i})}),t[4]=r.config,t[5]=i,t[6]=o):o=t[6],o}const ln=Pr();function Uft(t){return{access_token_ttl_s:t.access_token_ttl_s,refresh_token_ttl_s:t.refresh_token_ttl_s,login_throttle_period_s:t.login_throttle_period_s,audit_retention_s:t.audit_retention_s,ui_inactivity_s:t.isUiInactivityTimerInSeconds?t.ui_inactivity_s:null,login_max_attempts:t.isLoginMaxAttempts?t.login_max_attempts:null,password_rule_max_account_name_characters:t.password_rule_max_account_name_characters?t.password_rule_max_account_name_characters:null,password_rule_min_length:t.password_rule_min_length,password_rule_min_lowercase_characters:t.password_rule_min_lowercase_characters?t.password_rule_min_lowercase_characters:null,password_rule_min_number_characters:t.password_rule_min_number_characters?t.password_rule_min_number_characters:null,password_rule_min_special_characters:t.password_rule_min_special_characters?t.password_rule_min_special_characters:null,password_rule_min_uppercase_characters:t.password_rule_min_uppercase_characters?t.password_rule_min_uppercase_characters:null,password_rule_special_characters:t.password_rule_min_special_characters&&t.password_rule_special_characters?t.password_rule_special_characters:null}}function Bft(t){return{...t,isUiInactivityTimerInSeconds:t.ui_inactivity_s!==null,isLoginMaxAttempts:t.login_max_attempts!==null}}const zft=dr().shape({access_token_ttl_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.type"})).min(60,ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.required"})),refresh_token_ttl_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.type"})).min(120,ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.required"})),ui_inactivity_s:kn().when("isUiInactivityTimerInSeconds",(t,e)=>t?e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.type"})).min(60,ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.min"})):e.nullable()),audit_retention_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.required"})),login_max_attempts:kn().when("isLoginMaxAttempts",(t,e)=>t?e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.min"})):e.nullable()),login_throttle_period_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.required"})),password_rule_max_account_name_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.min"})).nullable(),password_rule_min_length:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.integer"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.type"})).min(12,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.min"})),password_rule_min_lowercase_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.min"})).nullable(),password_rule_min_number_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.min"})).nullable(),password_rule_min_special_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.min"})).nullable(),password_rule_min_uppercase_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.min"})).nullable(),password_rule_special_characters:We().matches(new RegExp($.regex.specialCharacters)).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters.validation.min"})).nullable().when("password_rule_min_special_characters",(t,e)=>{if(t)return e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.required"}))})}),qft=dr().shape({address:We().matches(new RegExp($.regex.ipv4v6Addr)).required(ln.formatMessage({id:"authentication_strategies.local.address.required"})),dev:We(),port:kn().required(ln.formatMessage({id:"authentication_strategies.local.port.required"})).min(0,ln.formatMessage({id:"authentication_strategies.local.port.min"})).max(65535,ln.formatMessage({id:"authentication_strategies.local.port.max"}))});function Vft(t){return{address:t.address,...t.dev&&{dev:t.dev},port:Number(t.port)}}function Hft(){const t=he.c(12),e=Ye(),{authConfiguration:r}=Np(),{submit:n,data:s,state:i}=gr();let o;t[0]!==n?(o=f=>{n(Uft(f),{method:"POST",encType:"application/json",action:$.urls.platformAuthenticationAuthConfigUpdate_Action})},t[0]=n,t[1]=o):o=t[1];const l=o;let c;t[2]!==r?(c=Bft(r),t[2]=r,t[3]=c):c=t[3];let u;t[4]!==s||t[5]!==e||t[6]!==i?(u=f=>{const{dirty:p,isValid:m,values:h}=f;return a.jsx(dn,{canWrite:Ue([[ie.management,ie.configuration]]),children:a.jsxs(te,{spacing:2,children:[a.jsx(pr,{title:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rules"}),elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"password_rule_min_length",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_lowercase_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_uppercase_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_number_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_special_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_special_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters"}),size:"small",helperText:y.error,disabled:!h.password_rule_min_special_characters||i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_max_account_name_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"authentication_strategies.auth_config.form.session_timers"}),elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"access_token_ttl_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:60})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.access_token_ttl_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"refresh_token_ttl_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:120})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.refresh_token_ttl_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"audit_retention_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.audit_retention_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsx(Ke,{name:"isUiInactivityTimerInSeconds",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,size:"medium",onChange:()=>{b(g.name,!g.value),g.value||b("ui_inactivity_s","")}}),a.jsx(_e,{color:g.value?"primary":"",children:e.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.seconds"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.ui_inactivity_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}}),!!h.isUiInactivityTimerInSeconds&&a.jsx(Ke,{name:"ui_inactivity_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:60})}}),a.jsx(Ke,{name:"isLoginMaxAttempts",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,size:"small",onChange:()=>{b(g.name,!g.value),g.value||b("login_max_attempts","")}}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.login_max_attempts"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}}),!!h.isLoginMaxAttempts&&a.jsx(Ke,{name:"login_max_attempts",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),!!h.isLoginMaxAttempts&&a.jsx(Ke,{name:"login_throttle_period_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),a.jsx(Xr,{data:s})]})})}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"authentication_strategies.form.buttons.save"}),disabled:i!=="idle"||!Ue([[ie.management,ie.configuration]])||!p||!m,loading:i!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[4]=s,t[5]=e,t[6]=i,t[7]=u):u=t[7];let d;return t[8]!==l||t[9]!==c||t[10]!==u?(d=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Wr,{initialValues:c,enableReinitialize:!0,validationSchema:zft,onSubmit:l,children:u})})}),t[8]=l,t[9]=c,t[10]=u,t[11]=d):d=t[11],d}const Gft=Pr(),Wft=dr().shape({backends:yr().test("backends",Gft.formatMessage({id:"authentication_strategies.form.errors.backends"}),t=>t?t?.includes(_i.local):!1)}),nx=t=>{const e=he.c(11),{fieldName:r,fieldLabel:n,dense:s,basePermissions:i,disabled:o,modalElevation:l}=t,c=s===void 0?!0:s,u=As(),d=Ye();let f;e[0]!==i||e[1]!==c||e[2]!==o||e[3]!==n||e[4]!==d||e[5]!==l||e[6]!==u?(f=m=>{const{field:h,form:_}=m,{setFieldValue:g}=_,y=(b,x)=>{g(h.name,{...h.value,[b]:x})};return a.jsx(pr,{title:n??d.formatMessage({id:"user_permissions.title"}),elevation:2,dense:c,modalElevation:l,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:3,children:[!!i&&a.jsx(Lr,{message:d.formatMessage({id:"user_permissions.permissions_may_be_overridden"}),severity:"info"}),a.jsx(te,{direction:"column",spacing:2,children:E4e.map(b=>a.jsxs(te,{direction:"row",justify:"space-between",align:"center",children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[a.jsxs(lk,{color:"primary",onChange:x=>y(b,x),exclusive:!0,value:h.value?.[b],children:[a.jsx(kh,{value:op.ro,disabled:o,sx:{...i?.[b]==="ro"&&{backgroundColor:u.palette.action.selected}},children:op.ro}),a.jsx(kh,{value:op.rw,disabled:o,sx:{...i?.[b]==="rw"&&{backgroundColor:u.palette.action.selected}},children:op.rw})]}),a.jsx(_e,{children:b})]}),!!i&&a.jsxs(a.Fragment,{children:[!!h.value?.[b]&&a.jsx(ms,{label:d.formatMessage({id:"user_permissions.overridden"}),color:"primary",variant:"outlined"}),!!i[b]&&!h.value?.[b]&&a.jsx(ms,{label:d.formatMessage({id:"user_permissions.from_roles"}),variant:"outlined"})]})]},b))})]})})})},e[0]=i,e[1]=c,e[2]=o,e[3]=n,e[4]=d,e[5]=l,e[6]=u,e[7]=f):f=e[7];let p;return e[8]!==r||e[9]!==f?(p=a.jsx(Ke,{name:r,children:f}),e[8]=r,e[9]=f,e[10]=p):p=e[10],p},Fue=t=>{const e=he.c(7),{rolesList:r,rolesMappings:n,disabled:s}=t,i=Ye(),o=Yft,l=Kft;let c;e[0]!==r?(c=r.map(Qft),e[0]=r,e[1]=c):c=e[1];const u=c;let d;return e[2]!==s||e[3]!==i||e[4]!==u||e[5]!==n?(d=a.jsx(oi,{name:"roles_mappings",children:f=>{const{remove:p,push:m,form:h}=f,{errors:_}=h;return a.jsx(pr,{title:i.formatMessage({id:"authentication_strategies.roles_mappings"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"common.add"}),type:"button",startIcon:a.jsx(ge.Add,{}),size:"small",onClick:()=>o(m),disabled:s||!Ue(ie.management)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsxs(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,children:[n&&!!n.length&&n.map((g,y)=>{const{application_role:b,external_role:x}=g;return a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,justify:"space-between",children:[a.jsxs(te,{direction:"row",nowrap:!0,fullWidth:!0,children:[a.jsx(Ke,{name:`roles_mappings.${y}.external_role`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,value:C.value||x,required:!0,label:i.formatMessage({id:"authentication_strategies.roles_mappings.external_role"}),size:"small",error:!!k.error,helperText:k.error,fullWidth:!0,disabled:s||!Ue(ie.management)})}}),a.jsx(Ke,{name:`roles_mappings.${y}.application_role`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{name:C.name,label:i.formatMessage({id:"authentication_strategies.roles_mappings.application_role"}),multiple:!1,size:"small",value:C.value||b,freeSolo:!1,options:u,onChange:(T,j)=>{P(C.name,j||"")},fullWidth:!0,error:!!k.error,helperText:k.error,required:!0,disabled:s||!Ue(ie.management)})}})]}),a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{onClick:()=>l(p,y),size:"small",disabled:s||!Ue(ie.management),sx:{mt:"10px"},children:a.jsx(ge.Trash,{})})})]},y)}),!!_.roles_mappings&&typeof _.roles_mappings=="string"&&a.jsx(Lr,{severity:"error",message:_.roles_mappings,sx:{mt:1}}),!n?.length&&a.jsx(Lr,{severity:"info",message:i.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}})]})})})}}),e[2]=s,e[3]=i,e[4]=u,e[5]=n,e[6]=d):d=e[6],d};function Yft(t){t({application_role:"",external_role:""})}function Kft(t,e){t(e)}function Qft(t){return t.id}const Sc=Pr(),XI={base_dn:"",bind_dn:"",bind_password:"",username_attribute:"",transport_remote_addresses:[],transport_remote_port:"",transport_ssl:!1,transport_ssl_verify:!1,transport_timeout_s:"",roles_mappings:[],permission_template:{backup:null,configuration:null,management:null,monitoring:null,provisioning:null,transport_keys:null,operator_codes:null,lawful_interception:null,milenage_constants:null},isPermissionTemplateActive:!1};function Zft(t){return{...!!t.base_dn&&{base_dn:t.base_dn},...!!t.bind_dn&&{bind_dn:t.bind_dn},...!!t.bind_password&&{bind_password:t.bind_password},...!!t.username_attribute&&{username_attribute:t.username_attribute},...!!t.permission_template&&t.isPermissionTemplateActive&&{permission_template:t.permission_template},...!!t.roles_mappings&&!t.isPermissionTemplateActive&&{roles_mappings:t.roles_mappings.reduce((e,r)=>({...e,[r.external_role]:r.application_role}),{})},transport:{remote_addresses:t.transport_remote_addresses,remote_port:t.transport_remote_port,ssl:t.transport_ssl,ssl_verify:t.transport_ssl_verify,timeout_s:t.transport_timeout_s}}}function Xft(t){return!t||Kae(t)?XI:{...XI,base_dn:t.base_dn??"",bind_dn:t.bind_dn??"",bind_password:t.bind_password??"",username_attribute:t.username_attribute??"",...!!t.transport&&{transport_remote_addresses:t.transport.remote_addresses,transport_remote_port:t.transport.remote_port,transport_ssl:t.transport.ssl,transport_ssl_verify:t.transport.ssl_verify??!1,transport_timeout_s:t.transport.timeout_s},...!!t.roles_mappings&&{roles_mappings:Object.entries(t.roles_mappings).map(([e,r])=>({external_role:e,application_role:r}))},...!t.roles_mappings&&{isPermissionTemplateActive:!0},...!!t.permission_template&&{permission_template:{...XI.permission_template,...t.permission_template}}}}const Jft=dr().shape({base_dn:We(),bind_dn:We().when("bind_password",(t,e)=>t?e.required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.bind_dn_required_if_bind_password"})):e),bind_password:We().when("bind_dn",(t,e)=>t?e.required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.bind_password_required_if_bind_dn"})):e),username_attribute:We(),permission_template:dr().shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()}),isPermissionTemplateActive:li(),roles_mappings:yr().when("isPermissionTemplateActive",(t,e)=>t?e:yr().of(dr().shape({external_role:We().required(Sc.formatMessage({id:"authentication_strategies.external_role.required"})),application_role:We().required(Sc.formatMessage({id:"authentication_strategies.application_role.required"}))})).test({name:"unique-external-role",message:Sc.formatMessage({id:"authentication_strategies.unique_external_role"}),test:r=>r?.length===0||r&&r.length===[...new Set(r.map(n=>`${n.external_role}`))].length})),transport_remote_addresses:yr().of(We().matches(new RegExp($.regex.ipv4v6Addr))).min(1,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_addresses"})).required(),transport_remote_port:kn().min(0,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port.min"})).max(65535,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port.max"})).required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port"})),transport_timeout_s:kn().min(1,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.timeout_s.min"})).required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.timeout_s"})),transport_ssl_verify:li(),transport_ssl:li().required()},[["bind_dn","bind_password"]]);function Uue(t){const e=he.c(22),{backend:r,config:n}=t,{submit:s,state:i,data:o}=gr(),{submit:l,state:c,data:u}=gr(),d=Ye(),f=n?.address??"",p=n?.port??"",m=n?.dev??"";let h;e[0]!==f||e[1]!==p||e[2]!==m?(h={address:f,port:p,dev:m},e[0]=f,e[1]=p,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e[4]!==r||e[5]!==s?(g=k=>{s(Vft(k),{method:"POST",encType:"application/json",action:`${r}-local-config-update`})},e[4]=r,e[5]=s,e[6]=g):g=e[6];const y=g;let b;e[7]!==r||e[8]!==l?(b=()=>{l(null,{method:"DELETE",encType:"application/json",action:`${r}-local-config-reset`})},e[7]=r,e[8]=l,e[9]=b):b=e[9];const x=b;let w;e[10]!==r||e[11]!==u||e[12]!==o||e[13]!==x||e[14]!==d||e[15]!==c||e[16]!==i?(w=()=>a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:d.formatMessage({id:"authentication_strategies.local.title"},r===_i.radius?{backend:"Radius"}:{backend:"Ldap"}),elevation:3,sx:{m:2},children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Ke,{name:"address",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.address"}),size:"small",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle",required:!0})}}),a.jsx(Ke,{name:"dev",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.dev"}),size:"small",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle"})}}),a.jsx(Ke,{name:"port",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.port"}),size:"small",type:"number",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle",required:!0})}})]}),a.jsx(Xr,{data:o}),a.jsx(Xr,{data:u}),a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{type:"submit",text:d.formatMessage({id:"authentication_strategies.local.save"}),disabled:i!=="idle"||c!=="idle"}),a.jsx(Ze,{text:d.formatMessage({id:"authentication_strategies.local.reset"}),disabled:i!=="idle"||c!=="idle",variant:"outlined",onClick:x})]})]})})})}),e[10]=r,e[11]=u,e[12]=o,e[13]=x,e[14]=d,e[15]=c,e[16]=i,e[17]=w):w=e[17];let C;return e[18]!==y||e[19]!==_||e[20]!==w?(C=a.jsx(Wr,{initialValues:_,onSubmit:y,enableReinitialize:!0,validationSchema:qft,children:w}),e[18]=y,e[19]=_,e[20]=w,e[21]=C):C=e[21],C}const ept=()=>{const t=he.c(16),e=Ye();let r;t[0]!==e?(r=a.jsx(Ke,{name:"transport_ssl",children:c=>{const{field:u,form:d}=c,{isSubmitting:f,setFieldValue:p}=d;return a.jsx(da,{onChange:(m,h)=>{p(u.name,h)},checked:u.value,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.ssl"}),disabled:f})}}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=a.jsx(Ke,{name:"transport_ssl_verify",children:c=>{const{field:u,form:d}=c,{isSubmitting:f,setFieldValue:p}=d;return a.jsx(da,{onChange:(m,h)=>{p(u.name,h)},checked:!!u.value,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.ssl_verify"}),disabled:f})}}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=a.jsx(Ke,{name:"transport_remote_addresses",children:c=>{const{field:u,meta:d,form:f}=c,{setFieldValue:p}=f;return a.jsx(rn,{name:u.name,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.remote_addresses"}),value:u.value,multiple:!0,size:"small",freeSolo:!0,options:[""],onChange:(m,h)=>{p(u.name,h||"")},error:!!d.error,helperText:d.error,fullWidth:!0})}}),t[4]=e,t[5]=s):s=t[5];let i;t[6]!==e?(i=a.jsx(Ke,{name:"transport_remote_port",children:c=>{const{field:u,meta:d,form:f}=c,{isSubmitting:p}=f;return a.jsx(dt,{...u,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.remote_port"}),size:"small",helperText:d.error,error:!!d.error,disabled:p,type:"number",required:!0})}}),t[6]=e,t[7]=i):i=t[7];let o;t[8]!==e?(o=a.jsx(Ke,{name:"transport_timeout_s",children:c=>{const{field:u,meta:d,form:f}=c,{isSubmitting:p}=f;return a.jsx(dt,{...u,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.timeout_s"}),size:"small",helperText:d.error,error:!!d.error,disabled:p,type:"number",required:!0})}}),t[8]=e,t[9]=o):o=t[9];let l;return t[10]!==r||t[11]!==n||t[12]!==s||t[13]!==i||t[14]!==o?(l=a.jsxs(te,{spacing:2,children:[r,n,s,i,o]}),t[10]=r,t[11]=n,t[12]=s,t[13]=i,t[14]=o,t[15]=l):l=t[15],l},tpt=t=>{const e=he.c(26),{backendList:r,ldapConfig:n,rolesList:s,ldapLocalConfig:i}=t,o=Ye(),{data:l,state:c,submit:u}=gr();let d;e[0]!==r?(d=r.includes(_i.ldap),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=Xft(n),e[2]=n,e[3]=p):p=e[3];const m=p;let h;e[4]!==u?(h=async k=>{u(Zft(k),{method:"POST",encType:"application/json",action:"ldap-config-update"})},e[4]=u,e[5]=h):h=e[5];const _=h;let g;e[6]!==o||e[7]!==f?(g=!f&&a.jsx(Lr,{severity:"warning",message:o.formatMessage({id:"authentication_strategies.ldap.not_active"})}),e[6]=o,e[7]=f,e[8]=g):g=e[8];let y;e[9]!==l||e[10]!==o||e[11]!==s||e[12]!==c?(y=k=>{const{values:A}=k;return a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.ldap.card.title"}),elevation:2,children:a.jsx(Kt,{children:a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"base_dn",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.base_dn"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"bind_dn",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.bind_dn"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"bind_password",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.bind_password"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"username_attribute",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.username_attribute"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"isPermissionTemplateActive",children:P=>{const{field:T,form:j}=P,{setFieldValue:R}=j;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{color:T.value?"":"primary",children:o.formatMessage({id:"authentication_strategies.roles_mappings"})}),a.jsx(ti,{checked:T.value,onChange:()=>{R(T.name,!T.value)}}),a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.permission_template"})})]})}}),A.isPermissionTemplateActive?a.jsx(nx,{fieldName:"permission_template",fieldLabel:o.formatMessage({id:"authentication_strategies.ldap.form.permission_template"}),disabled:c!=="idle"}):a.jsx(Fue,{rolesList:s,rolesMappings:A.roles_mappings,disabled:c!=="idle"}),a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.ldap.transport.title"}),elevation:3,children:a.jsx(Kt,{children:a.jsx(ept,{})})}),a.jsx(Xr,{data:l}),a.jsx(Ze,{type:"submit",text:o.formatMessage({id:"authentication_strategies.ldap.form.buttons.save"}),disabled:c!=="idle"||!Ue(ie.management),loading:c!=="idle",sx:{alignSelf:"flex-start"}})]})})})})},e[9]=l,e[10]=o,e[11]=s,e[12]=c,e[13]=y):y=e[13];let b;e[14]!==_||e[15]!==m||e[16]!==y?(b=a.jsx(Wr,{initialValues:m,onSubmit:_,enableReinitialize:!0,validationSchema:Jft,children:y}),e[14]=_,e[15]=m,e[16]=y,e[17]=b):b=e[17];let x;e[18]!==g||e[19]!==b?(x=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[g,b]})}),e[18]=g,e[19]=b,e[20]=x):x=e[20];let w;e[21]!==i?(w=a.jsx(Uue,{backend:_i.ldap,config:i}),e[21]=i,e[22]=w):w=e[22];let C;return e[23]!==x||e[24]!==w?(C=a.jsxs(te,{children:[x,w]}),e[23]=x,e[24]=w,e[25]=C):C=e[25],C},yw=Pr();function rpt(t){const{allow_unsafe_http:e,configuration_overrides:r,permission_template:n,roles_mappings:s,username_attribute:i,is_permission_template_active:o,client_id:l,client_secret:c,issuer:u}=t;return{client_id:l,client_secret:c,issuer:u,...e&&{allow_unsafe_http:e},...i&&{username_attribute:i},...!Ni.isEmpty(r)&&{username_attribute:i},...o&&!Ni.isEmpty(n)&&{permission_template:n},...!o&&s&&s.length&&{roles_mappings:s.reduce((d,{application_role:f,external_role:p})=>({...d,[p]:f}),{})},...r&&{configuration_overrides:JSON.parse(r)}}}function npt({permission_template:t,roles_mappings:e,configuration_overrides:r,...n}){return{...n,client_secret:"",is_permission_template_active:!Ni.isEmpty(t)&&!0,...t&&{permission_template:t},...e&&{roles_mappings:Object.entries(e).map(([s,i])=>({external_role:s,application_role:i}))},...r&&{configuration_overrides:JSON.stringify(r,null,2)}}}const spt=dr().shape({allow_unsafe_http:li(),client_id:We().required(),client_secret:We().required(),issuer:We().matches(new RegExp($.regex.url)),username_attribute:We(),provider_label:We(),is_permission_template_active:li(),permission_template:dr().when("is_permission_template_active",{is:!0,then:t=>t.shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()})}),roles_mappings:yr().when("is_permission_template_active",{is:!1,then:t=>t.of(dr().shape({external_role:We().required(yw.formatMessage({id:"authentication_strategies.external_role.required"})),application_role:We().required(yw.formatMessage({id:"authentication_strategies.application_role.required"}))}))}).test({name:"unique-external-role",message:yw.formatMessage({id:"authentication_strategies.unique_external_role"}),test:t=>t?t.length===0||t.length===[...new Set(t.map(e=>`${e.external_role}`))].length:!0}),configuration_overrides:We().test("valid-json-configuration-overrides",yw.formatMessage({id:"authentication_strategies.invalid_configuration_overrides"}),t=>{if(!t)return!0;try{return JSON.parse(t),!0}catch{return!1}})}),ipt=t=>{const e=he.c(21),{backendList:r,openIdConfig:n,rolesList:s}=t,i=Ye(),{data:o,state:l,submit:c}=gr();let u;e[0]!==r?(u=r.includes(_i.openid),e[0]=r,e[1]=u):u=e[1];const d=u;let f;e[2]!==n?(f=npt(n),e[2]=n,e[3]=f):f=e[3];const p=f;let m;e[4]!==c?(m=x=>{c(rpt(x),{method:"POST",encType:"application/json",action:"openid-config-update"})},e[4]=c,e[5]=m):m=e[5];const h=m;let _;e[6]!==i||e[7]!==d?(_=!d&&a.jsx(Lr,{severity:"warning",message:i.formatMessage({id:"authentication_strategies.openid.not_active"})}),e[6]=i,e[7]=d,e[8]=_):_=e[8];let g;e[9]!==o||e[10]!==i||e[11]!==s||e[12]!==l?(g=x=>{const{values:w}=x;return a.jsx(Kd,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"allow_unsafe_http",children:C=>{const{field:k,form:A}=C,{setFieldValue:P}=A;return a.jsx(da,{onChange:(T,j)=>{P(k.name,j)},checked:k.value,label:i.formatMessage({id:"authentication_strategies.openid.allow_unsafe_http"}),disabled:l!=="idle"||!Ue(ie.management)})}}),a.jsx(Ke,{name:"client_id",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.client_id"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0})}}),a.jsx(Ke,{name:"client_secret",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.client_secret"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0,showPasswordVisibility:!0,type:"password",autoComplete:"new-password"})}}),a.jsx(Ke,{name:"issuer",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.issuer"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0})}}),a.jsx(Ke,{name:"username_attribute",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.username_attribute"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,autoComplete:"new-text"})}}),a.jsx(xr,{elevation:2,title:i.formatMessage({id:"authentication_strategies.openid.configuration_overrides"}),content:a.jsx(Ke,{name:"configuration_overrides",children:opt})}),a.jsx(Ke,{name:"is_permission_template_active",children:C=>{const{field:k,form:A}=C,{setFieldValue:P}=A;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{color:k.value?"":"primary",children:i.formatMessage({id:"authentication_strategies.roles_mappings"})}),a.jsx(ti,{checked:k.value,onChange:()=>{P(k.name,!k.value)}}),a.jsx(_e,{children:i.formatMessage({id:"authentication_strategies.permission_template"})})]})}}),w.is_permission_template_active?a.jsx(nx,{fieldName:"permission_template",fieldLabel:i.formatMessage({id:"authentication_strategies.permission_template"}),disabled:l!=="idle"}):a.jsx(Fue,{rolesList:s,rolesMappings:w.roles_mappings,disabled:l!=="idle"}),a.jsx(Xr,{data:o}),a.jsx(Ze,{type:"submit",text:i.formatMessage({id:"common.save"}),disabled:l!=="idle"||!Ue(ie.management),loading:l!=="idle",sx:{alignSelf:"flex-start"}})]})})},e[9]=o,e[10]=i,e[11]=s,e[12]=l,e[13]=g):g=e[13];let y;e[14]!==h||e[15]!==p||e[16]!==g?(y=a.jsx(Wr,{initialValues:p,onSubmit:h,validationSchema:spt,children:g}),e[14]=h,e[15]=p,e[16]=g,e[17]=y):y=e[17];let b;return e[18]!==_||e[19]!==y?(b=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[_,y]})}),e[18]=_,e[19]=y,e[20]=b):b=e[20],b};function opt(t){const{field:e,meta:r,form:n}=t,{setFieldValue:s}=n;return a.jsx(Fv,{...e,onChange:i=>{s(e.name,i)},value:e.value?e.value:"",language:"json",error:r.error,sx:{height:"300px"}})}const _u=Pr(),JI={secret:"",transport_remote_addresses:[],transport_remote_port:"",transport_timeout_s:"",isPermissionTemplateActive:!1,roles:[],permission_template:{backup:null,configuration:null,management:null,monitoring:null,provisioning:null,transport_keys:null,operator_codes:null,lawful_interception:null,milenage_constants:null}};function apt(t){return{secret:t.secret,...t.roles&&!t.isPermissionTemplateActive&&{roles:t.roles},...t.permission_template&&t.isPermissionTemplateActive&&{permission_template:Yae(t.permission_template)},transport:{remote_addresses:t.transport_remote_addresses,remote_port:t.transport_remote_port,timeout_s:t.transport_timeout_s}}}function lpt(t){return!t||Kae(t)?JI:{...JI,secret:t.secret,...!!t.transport&&{transport_remote_addresses:t.transport.remote_addresses,transport_remote_port:t.transport.remote_port,transport_timeout_s:t.transport.timeout_s},...!!t.roles&&{roles:t.roles},...!t.roles?.length&&{isPermissionTemplateActive:!0},...!!t.permission_template&&{permission_template:{...JI.permission_template,...t.permission_template}}}}const cpt=dr().shape({secret:We().required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.secret"})),permission_template:dr().shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()}).required(),isPermissionTemplateActive:li(),roles:yr().when("isPermissionTemplateActive",(t,e)=>t?e:yr().of(We().required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.roles_required"}))).min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.roles_min"})).test({name:"unique-role",message:_u.formatMessage({id:"authentication_strategies.radius.form_errors.unique_role"}),test:r=>r?.length===0||r&&r.length===[...new Set(r.map(n=>`${n}`))].length})),transport_remote_addresses:yr().of(We().matches(new RegExp($.regex.ipv4v6Addr))).min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_addresses"})).required(),transport_remote_port:kn().min(0,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port.min"})).max(65535,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port.max"})).required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port"})),transport_timeout_s:kn().min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.timeout_s.min"})).required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.timeout_s"}))}),upt=()=>{const t=he.c(10),e=Ye();let r;t[0]!==e?(r=a.jsx(Ke,{name:"transport_remote_addresses",children:o=>{const{field:l,meta:c,form:u}=o,{setFieldValue:d}=u;return a.jsx(rn,{name:l.name,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.remote_addresses"}),value:l.value,multiple:!0,size:"small",freeSolo:!0,options:[""],onChange:(f,p)=>{d(l.name,p||"")},error:!!c.error,helperText:c.error,fullWidth:!0})}}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=a.jsx(Ke,{name:"transport_remote_port",children:o=>{const{field:l,meta:c,form:u}=o,{isSubmitting:d}=u;return a.jsx(dt,{...l,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.remote_port"}),size:"small",helperText:c.error,error:!!c.error,disabled:d,type:"number",required:!0})}}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=a.jsx(Ke,{name:"transport_timeout_s",children:o=>{const{field:l,meta:c,form:u}=o,{isSubmitting:d}=u;return a.jsx(dt,{...l,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.timeout_s"}),size:"small",helperText:c.error,error:!!c.error,disabled:d,type:"number",required:!0})}}),t[4]=e,t[5]=s):s=t[5];let i;return t[6]!==r||t[7]!==n||t[8]!==s?(i=a.jsxs(te,{spacing:2,children:[r,n,s]}),t[6]=r,t[7]=n,t[8]=s,t[9]=i):i=t[9],i},dpt=t=>{const e=he.c(26),{backendList:r,radiusConfig:n,rolesList:s,radiusLocalConfig:i}=t,o=Ye(),{data:l,state:c,submit:u}=gr();let d;e[0]!==r?(d=r.includes(_i.radius),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=lpt(n),e[2]=n,e[3]=p):p=e[3];const m=p;let h;e[4]!==u?(h=async k=>{u(apt(k),{method:"POST",encType:"application/json",action:"radius-config-update"})},e[4]=u,e[5]=h):h=e[5];const _=h;let g;e[6]!==o||e[7]!==f?(g=!f&&a.jsx(Lr,{severity:"warning",message:o.formatMessage({id:"authentication_strategies.radius.not_active"})}),e[6]=o,e[7]=f,e[8]=g):g=e[8];let y;e[9]!==l||e[10]!==o||e[11]!==s||e[12]!==c?(y=k=>{const{values:A}=k;return a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.radius.panel.title"}),elevation:3,children:a.jsx(Kt,{children:a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"secret",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.radius.form.secret"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error,required:!0})}}),a.jsx(Ke,{name:"isPermissionTemplateActive",children:P=>{const{field:T,form:j}=P,{setFieldValue:R}=j;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.radius.transport.form.roles"})}),a.jsx(ti,{checked:T.value,onChange:()=>{R(T.name,!T.value)}}),a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.radius.form.permission_template"})})]})}}),A.isPermissionTemplateActive?a.jsx(nx,{fieldName:"permission_template",fieldLabel:o.formatMessage({id:"authentication_strategies.radius.form.permission_template"})}):a.jsx(Ke,{name:"roles",children:P=>{const{field:T,meta:j,form:R}=P,{setFieldValue:D}=R;return a.jsx(rn,{name:T.name,label:o.formatMessage({id:"authentication_strategies.radius.form.roles"}),value:T.value,multiple:!0,size:"small",freeSolo:!1,options:s.map(fpt),onChange:(O,N)=>{D(T.name,[...new Set(N.map(ppt))])},fullWidth:!0,error:!!j.error,helperText:j.error})}}),a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.radius.transport.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsx(upt,{})})}),a.jsx(Xr,{data:l}),a.jsx(Ze,{type:"submit",text:o.formatMessage({id:"authentication_strategies.radius.form.buttons.save"}),disabled:c!=="idle"||!Ue(ie.management),loading:c!=="idle",sx:{alignSelf:"flex-start"}})]})})})})},e[9]=l,e[10]=o,e[11]=s,e[12]=c,e[13]=y):y=e[13];let b;e[14]!==_||e[15]!==m||e[16]!==y?(b=a.jsx(Wr,{initialValues:m,onSubmit:_,enableReinitialize:!0,validationSchema:cpt,children:y}),e[14]=_,e[15]=m,e[16]=y,e[17]=b):b=e[17];let x;e[18]!==g||e[19]!==b?(x=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[g,b]})}),e[18]=g,e[19]=b,e[20]=x):x=e[20];let w;e[21]!==i?(w=a.jsx(Uue,{backend:_i.radius,config:i}),e[21]=i,e[22]=w):w=e[22];let C;return e[23]!==x||e[24]!==w?(C=a.jsxs(te,{children:[x,w]}),e[23]=x,e[24]=w,e[25]=C):C=e[25],C};function fpt(t){return t.id}function ppt(t){return t.trim()}function mpt(){const t=he.c(53),e=Ye(),{backendList:r,ldapConfig:n,ldapLocalConfig:s,radiusLocalConfig:i,radiusConfig:o,rolesList:l,openIdConfig:c}=Np(),{data:u,state:d,submit:f}=gr();let p;t[0]!==f?(p=N=>{const{backends:F}=N;f(F,{method:"POST",encType:"application/json",action:"backends-update"})},t[0]=f,t[1]=p):p=t[1];const m=p;let h;t[2]!==e?(h=e.formatMessage({id:"authentication_strategies.title"}),t[2]=e,t[3]=h):h=t[3];let _;t[4]!==r?(_={backends:r},t[4]=r,t[5]=_):_=t[5];let g;t[6]!==u||t[7]!==e||t[8]!==d?(g=N=>{const{dirty:F,isValid:U}=N;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"authentication_strategies.form.backends.info"})}),a.jsx(Ke,{name:"backends",children:z=>{const{field:H,meta:W,form:K}=z,{setFieldValue:q}=K;return a.jsx(rn,{value:H.value,name:H.name,label:e.formatMessage({id:"authentication_strategies.form.backends"}),multiple:!0,size:"small",freeSolo:!1,options:WTe,onChange:(X,Q)=>{q(H.name,[...new Set(Q.map(hpt))])},error:!!W.error,helperText:W.error,disabled:d!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:u}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"authentication_strategies.form.buttons.save"}),disabled:d!=="idle"||!Ue(ie.management)||!F||!U,loading:d!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[6]=u,t[7]=e,t[8]=d,t[9]=g):g=t[9];let y;t[10]!==m||t[11]!==_||t[12]!==g?(y=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:_,enableReinitialize:!0,validationSchema:Wft,onSubmit:m,children:g})}),t[10]=m,t[11]=_,t[12]=g,t[13]=y):y=t[13];let b;t[14]!==h||t[15]!==y?(b=a.jsx(pr,{elevation:2,title:h,children:y}),t[14]=h,t[15]=y,t[16]=b):b=t[16];let x;t[17]!==e?(x=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.radius}`}),t[17]=e,t[18]=x):x=t[18];let w;t[19]!==r||t[20]!==o||t[21]!==i||t[22]!==l?(w=a.jsx(dpt,{backendList:r,radiusConfig:o,rolesList:l,radiusLocalConfig:i}),t[19]=r,t[20]=o,t[21]=i,t[22]=l,t[23]=w):w=t[23];let C;t[24]!==x||t[25]!==w?(C={label:x,value:_i.radius,content:w},t[24]=x,t[25]=w,t[26]=C):C=t[26];let k;t[27]!==e?(k=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.ldap}`}),t[27]=e,t[28]=k):k=t[28];let A;t[29]!==r||t[30]!==n||t[31]!==s||t[32]!==l?(A=a.jsx(tpt,{backendList:r,ldapConfig:n,rolesList:l,ldapLocalConfig:s}),t[29]=r,t[30]=n,t[31]=s,t[32]=l,t[33]=A):A=t[33];let P;t[34]!==A||t[35]!==k?(P={label:k,value:_i.ldap,content:A},t[34]=A,t[35]=k,t[36]=P):P=t[36];let T;t[37]!==e?(T=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.openid}`}),t[37]=e,t[38]=T):T=t[38];let j;t[39]!==r||t[40]!==c||t[41]!==l?(j=a.jsx(ipt,{backendList:r,openIdConfig:c,rolesList:l}),t[39]=r,t[40]=c,t[41]=l,t[42]=j):j=t[42];let R;t[43]!==T||t[44]!==j?(R={label:T,value:_i.openid,content:j},t[43]=T,t[44]=j,t[45]=R):R=t[45];let D;t[46]!==P||t[47]!==R||t[48]!==C?(D=a.jsx(pr,{elevation:2,children:a.jsx(VA,{value:_i.radius,tabs:[C,P,R]})}),t[46]=P,t[47]=R,t[48]=C,t[49]=D):D=t[49];let O;return t[50]!==D||t[51]!==b?(O=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[b,D]})})}),t[50]=D,t[51]=b,t[52]=O):O=t[52],O}function hpt(t){return t.trim()}const gpt=Pr();function _pt(t){const{enabled:e,terms:r,forbidden_notice:n}=t;return{enabled:e,terms:r,...n&&{forbidden_notice:n}}}function vpt({enabled:t,terms:e,forbidden_notice:r}){return{enabled:t,terms:e,forbidden_notice:r||""}}const ypt=dr().shape({enabled:li().required(),terms:We().required(gpt.formatMessage({id:"system_usage_terms.form.errors.required"})),forbidden_notice:We()});function bpt(){const t=he.c(11),e=Ye(),{systemUsageTerms:r}=Np(),{submit:n,state:s}=gr();let i;t[0]!==n?(i=d=>{n(_pt(d),{method:"PUT",action:"system-usage-terms-update",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==r?(l=vpt(r),t[2]=r,t[3]=l):l=t[3];let c;t[4]!==e||t[5]!==s?(c=d=>{const{dirty:f,values:p}=d;return a.jsx(dn,{canWrite:Ue([[ie.management]]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:"row",children:[a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsx(Rv,{control:a.jsx(ti,{onChange:(y,b)=>{g(h.name,b)},checked:h.value}),label:e.formatMessage({id:"common.enabled"}),sx:{m:0}})}}),a.jsx(Mn,{placement:"right",arrow:!0,title:e.formatMessage({id:"system_usage_terms.form.checkbox.hint"}),children:a.jsx(gt,{display:"flex",justifyContent:"center",alignItems:"center",children:a.jsx(ge.QuestionMark,{size:18})})})]}),a.jsx(Ke,{name:"terms",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,fullWidth:!0,required:!0,multiline:10,label:e.formatMessage({id:"system_usage_terms.form.terms"}),error:!!_.error,helperText:_.error,disabled:!p.enabled})}}),a.jsx(Ke,{name:"forbidden_notice",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,fullWidth:!0,multiline:3,label:e.formatMessage({id:"system_usage_terms.form.forbidden_notice"}),error:!!_.error,helperText:_.error,disabled:!p.enabled})}}),a.jsx(Lr,{message:e.formatMessage({id:"system_usage_terms.form.forbidden_notice.alert"})}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.save"}),disabled:!Ue([ie.management])||!f,loading:s!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[4]=e,t[5]=s,t[6]=c):c=t[6];let u;return t[7]!==o||t[8]!==l||t[9]!==c?(u=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Wr,{validationSchema:ypt,initialValues:l,onSubmit:o,enableReinitialize:!0,children:c})})}),t[7]=o,t[8]=l,t[9]=c,t[10]=u):u=t[10],u}const dk=t=>{const e=he.c(2),{permissions:r}=t;let n;return e[0]!==r?(n=a.jsx(a.Fragment,{children:Object.entries(r??{}).map(xpt)}),e[0]=r,e[1]=n):n=e[1],n};function xpt(t){const[e,r]=t;return a.jsxs(te,{justify:"stretch",direction:"row",align:"center",nowrap:!0,children:[a.jsxs(te,{direction:"row",divided:!0,align:"center",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"600",type:"body2",color:r===op.ro?"primary":"grey.500",sx:{textTransform:"uppercase"},children:op.ro}),a.jsx(_e,{fontWeight:"600",type:"body2",color:r===op.rw?"primary":"grey.500",sx:{textTransform:"uppercase"},children:op.rw})]}),a.jsx(_e,{type:"body2",sx:{textTransform:"lowercase"},children:e})]},e)}const Spt=Pr(),wpt=dr().shape({id:We().required(Spt.formatMessage({id:"roles.new_role.form_errors.required"})),permissions:dr()});function Bue(t){const e=he.c(24),{id:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i,isLoading:o}=Ys(),{submit:l,state:c,data:u}=s,{load:d,data:f}=i,p=!!r,{dialogClose:m}=Jt();let h,_;e[0]!==r||e[1]!==p||e[2]!==d?(h=()=>{p&&d($.urls.platformRolesDetails.replace(":id",r))},_=[r,p,d],e[0]=r,e[1]=p,e[2]=d,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_),f?.role;const g=f?.role,y=g?.id??"";let b;e[5]!==g?.permissions?(b=g?.permissions?{...g?.permissions}:{},e[5]=g?.permissions,e[6]=b):b=e[6];let x;e[7]!==y||e[8]!==b?(x={id:y,permissions:b},e[7]=y,e[8]=b,e[9]=x):x=e[9];const w=x;let C;e[10]!==f?.role||e[11]!==l?(C=T=>{const{id:j,permissions:R}=T,D=f?.role;l({id:j,...R&&{permissions:R},permissions:Yae(R)},{method:D?"PATCH":"POST",encType:"application/json",action:D?$.urls.platformRolesUpdate_Action:$.urls.platformRolesCreate_Action})},e[10]=f?.role,e[11]=l,e[12]=C):C=e[12],f?.role;const k=C;let A;e[13]!==m||e[14]!==u||e[15]!==c||e[16]!==n||e[17]!==p||e[18]!==o?(A=T=>{const{dirty:j}=T;return a.jsxs(dn,{canWrite:Ue(ie.management),children:[a.jsx(_s,{loading:o,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"id",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"roles.new_role.form.id"}),size:"medium",error:!!O.error,helperText:O.error,disabled:p||c!=="idle"})}}),a.jsx(nx,{fieldName:"permissions",modalElevation:!0}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:c!=="idle",onClick:()=>m()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!j||!Ue(ie.management),loading:c!=="idle"})]})})]})},e[13]=m,e[14]=u,e[15]=c,e[16]=n,e[17]=p,e[18]=o,e[19]=A):A=e[19];let P;return e[20]!==k||e[21]!==w||e[22]!==A?(P=a.jsx(Wr,{enableReinitialize:!0,initialValues:w,validationSchema:wpt,onSubmit:k,children:A}),e[20]=k,e[21]=w,e[22]=A,e[23]=P):P=e[23],P}const Cpt=()=>{const t=he.c(60),e=Ye(),r=zn(),{dialogOpen:n,confirmationSimpleDialogOpen:s}=Jt(),i=gr();let o;t[0]!==n||t[1]!==e?(o=()=>{n({title:e.formatMessage({id:"roles.new_role.form.title"}),content:Apt})},t[0]=n,t[1]=e,t[2]=o):o=t[2];const l=o;let c;t[3]!==e?(c=e.formatMessage({id:"roles.table.id"}),t[3]=e,t[4]=c):c=t[4];let u;t[5]!==c?(u={key:"id",label:c},t[5]=c,t[6]=u):u=t[6];let d;t[7]!==e?(d=e.formatMessage({id:"roles.table.permissions"}),t[7]=e,t[8]=d):d=t[8];let f;t[9]!==d?(f={key:"permissions",label:d,cellRender:kpt},t[9]=d,t[10]=f):f=t[10];let p;t[11]!==e?(p=e.formatMessage({id:"roles.table.created_at"}),t[11]=e,t[12]=p):p=t[12];let m;t[13]!==p?(m={key:"created_at",label:p,cellRender:Mpt},t[13]=p,t[14]=m):m=t[14];let h;t[15]!==e?(h=e.formatMessage({id:"roles.table.modified_at"}),t[15]=e,t[16]=h):h=t[16];let _;t[17]!==h?(_={key:"modified_at",label:h,cellRender:Ppt},t[17]=h,t[18]=_):_=t[18];let g;t[19]!==u||t[20]!==f||t[21]!==m||t[22]!==_?(g=[u,f,m,_],t[19]=u,t[20]=f,t[21]=m,t[22]=_,t[23]=g):g=t[23];const y=g;let b;t[24]!==i?(b=K=>{i.submit({id:K},{method:"DELETE",encType:"application/json",action:$.urls.platformRolesDelete_Action})},t[24]=i,t[25]=b):b=t[25];const x=b;let w;t[26]!==e?(w=e.formatMessage({id:"roles.table.actions.update"}),t[26]=e,t[27]=w):w=t[27];let C,k;t[28]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(ge.Edit,{}),k=Ue(ie.management),t[28]=C,t[29]=k):(C=t[28],k=t[29]);let A;t[30]!==n||t[31]!==e?(A=K=>{const{id:q}=K;n({title:e.formatMessage({id:"roles.edit_role.form.title"}),content:()=>a.jsx(Bue,{id:q})})},t[30]=n,t[31]=e,t[32]=A):A=t[32];let P;t[33]!==w||t[34]!==A?(P={label:w,icon:C,disabled:!k,onClick:A},t[33]=w,t[34]=A,t[35]=P):P=t[35];let T;t[36]!==e?(T=e.formatMessage({id:"roles.table.actions.delete"}),t[36]=e,t[37]=T):T=t[37];let j,R;t[38]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Trash,{}),R=Ue(ie.management),t[38]=j,t[39]=R):(j=t[38],R=t[39]);let D;t[40]!==s||t[41]!==x||t[42]!==e?(D=K=>{const{id:q}=K;s({title:e.formatMessage({id:"roles.dialog.confirm_delete.title"}),description:e.formatMessage({id:"roles.dialog.confirm_delete.description"},{role:q}),onConfirm:()=>{x(q)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[40]=s,t[41]=x,t[42]=e,t[43]=D):D=t[43];let O;t[44]!==T||t[45]!==D?(O={label:T,icon:j,disabled:!R,onClick:D},t[44]=T,t[45]=D,t[46]=O):O=t[46];let N;t[47]!==P||t[48]!==O?(N=[P,O],t[47]=P,t[48]=O,t[49]=N):N=t[49];const F=N;let U;t[50]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[50]=U):U=t[50];let z;t[51]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[51]=z):z=t[51];let H;t[52]!==y||t[53]!==l||t[54]!==e||t[55]!==F?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"toolbar-button-new-role",text:e.formatMessage({id:"roles.toolbar.new_role"}),startIcon:a.jsx(ge.Add,{}),onClick:l})}),a.jsx(Br,{autoScale:!0,orderBy:"id",columns:y,data:K,page:0,labelDisplayedRows:jpt,rowsCount:K.length,rowsPerPage:K.length,rowsPerPageOptions:void 0,rowKey:"id",rowActions:F,stickyRowActions:!0})]}),t[52]=y,t[53]=l,t[54]=e,t[55]=F,t[56]=H):H=t[56];let W;return t[57]!==r.roles||t[58]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:r.roles,errorElement:z,children:H})}),t[57]=r.roles,t[58]=H,t[59]=W):W=t[59],W};function Apt(){return a.jsx(Bue,{})}function kpt(t){const{permissions:e}=t;return e?a.jsx(dk,{permissions:e}):a.jsx(a.Fragment,{})}function Mpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Ppt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function jpt(){return""}function tJ(t){const e=he.c(24),{type:r}=t,n=Ye(),s=gl(),i=`fetcher-${r}-certificate`;let o;e[0]!==i?(o={key:i},e[0]=i,e[1]=o):o=e[1];const l=gr(o);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[2]=c):c=e[2];let u;e[3]!==r?(u=r===ip.SERVER&&{key_file:[]},e[3]=r,e[4]=u):u=e[4];let d;e[5]!==u?(d={cert_file:c,...u},e[5]=u,e[6]=d):d=e[6];const f=d;let p;e:{switch(r){case ip.CLIENT:{let b;e[7]!==n?(b=dr().shape({cert_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"}))}),e[7]=n,e[8]=b):b=e[8],p=b;break e}case ip.SERVER:{let b;e[9]!==n?(b=dr().shape({cert_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})),key_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"}))}),e[9]=n,e[10]=b):b=e[10],p=b;break e}}p=void 0}const m=p;let h;e[11]!==s||e[12]!==r?(h=b=>{const x=new FormData;for(const w in b){const C=b[w];if(!C)return;x.append(w,C[0])}s(x,{method:"POST",encType:"multipart/form-data",action:`${r}-certificate-update`,navigate:!1,fetcherKey:`fetcher-${r}-certificate`})},e[11]=s,e[12]=r,e[13]=h):h=e[13];const _=h;let g;e[14]!==l.data||e[15]!==l.state||e[16]!==n||e[17]!==r?(g=b=>{const{dirty:x,isValid:w}=b;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:n.formatMessage({id:`pls.tls.certificates.${r}.title`}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"cert_file",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsxs(te,{children:[a.jsx(_e,{children:n.formatMessage({id:"pls.tls.certificates.form.cert_file"})}),a.jsx(Z_,{...k,label:n.formatMessage({id:"pls.tls.certificates.form.file"}),disabled:l.state!=="idle",maxFiles:1,multiple:!1,onChange:j=>{setTimeout(()=>{T(k.name,j)},0)},formError:A.error})]})}}),r===ip.SERVER&&a.jsx(Ke,{name:"key_file",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsxs(te,{children:[a.jsx(_e,{children:n.formatMessage({id:"pls.tls.certificates.form.key_file"})}),a.jsx(Z_,{...k,label:n.formatMessage({id:"pls.tls.certificates.form.file"}),disabled:l.state!=="idle",maxFiles:1,multiple:!1,onChange:j=>{setTimeout(()=>{T(k.name,j)},0)},formError:A.error})]})}}),a.jsx(Xr,{data:l.data}),a.jsx(Ze,{type:"submit",disabled:l.state!=="idle"||!x||!w||!Ue(ie.management),loading:l.state!=="idle",text:n.formatMessage({id:`pls.tls.certificates.${r}.form.update`}),sx:{alignSelf:"flex-start"}})]})})})})},e[14]=l.data,e[15]=l.state,e[16]=n,e[17]=r,e[18]=g):g=e[18];let y;return e[19]!==_||e[20]!==f||e[21]!==g||e[22]!==m?(y=a.jsx(Wr,{initialValues:f,enableReinitialize:!0,onSubmit:_,validationSchema:m,children:g}),e[19]=_,e[20]=f,e[21]=g,e[22]=m,e[23]=y):y=e[23],y}function Tpt(t){const e=he.c(11),{configuration:r}=t,n=Ye(),s=gl();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={key:"fetcher-configuration-update"},e[0]=i):i=e[0];const o=gr(i);let l;e[1]!==s?(l=f=>{s(f,{method:"PUT",encType:"application/json",action:"configuration-update",navigate:!1,fetcherKey:"fetcher-configuration-update"})},e[1]=s,e[2]=l):l=e[2];const c=l;let u;e[3]!==o.data||e[4]!==o.state||e[5]!==n?(u=f=>{const{dirty:p}=f;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:n.formatMessage({id:"pls.tls.configuration.title"}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs("div",{children:[a.jsx(Ke,{name:"client_auth",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:h.value,onChange:(y,b)=>{g(h.name,b)},disabled:o.state!=="idle"}),a.jsx(_e,{children:n.formatMessage({id:"pls.tls.configuration.form.client_auth"})})]})}}),a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:h.value,onChange:(y,b)=>{g(h.name,b)},disabled:o.state!=="idle"}),a.jsx(_e,{children:n.formatMessage({id:"pls.tls.configuration.form.enabled"})})]})}})]}),a.jsx(Xr,{data:o.data,sx:{mt:1}}),a.jsx(Ze,{type:"submit",disabled:o.state!=="idle"||!p||!Ue(ie.management),loading:o.state!=="idle",text:n.formatMessage({id:"pls.tls.configuration.form.apply"}),sx:{alignSelf:"flex-start"}})]})})})})},e[3]=o.data,e[4]=o.state,e[5]=n,e[6]=u):u=e[6];let d;return e[7]!==r||e[8]!==c||e[9]!==u?(d=a.jsx(Wr,{initialValues:r,enableReinitialize:!0,onSubmit:c,children:u}),e[7]=r,e[8]=c,e[9]=u,e[10]=d):d=e[10],d}function Ept(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(te,{spacing:2,children:[a.jsx(Dt,{variant:"rounded",height:"232px"}),a.jsx(Dt,{variant:"rounded",height:"251px"}),a.jsx(Dt,{variant:"rounded",height:"362px"})]}),t[0]=e):e=t[0],e}function Rpt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Ept,{}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.configuration?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.configuration,errorElement:n,children:Ipt})}),t[2]=e.configuration,t[3]=s):s=t[3],s}function Ipt(t){return a.jsxs(te,{spacing:1.5,children:[a.jsx(Tpt,{configuration:t}),a.jsx(tJ,{type:ip.CLIENT}),a.jsx(tJ,{type:ip.SERVER})]})}function zue(t){const e=he.c(32),{username:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i,isLoading:o}=Ys(),{submit:l,state:c,data:u}=s,{load:d,data:f}=i,{load:p,data:m,state:h}=gr(),_=!!r,{dialogClose:g}=Jt();let y,b;e[0]!==_||e[1]!==d||e[2]!==p||e[3]!==r?(y=()=>{p($.urls.platformRolesEntries),_&&d($.urls.platformUsersDetails.replace(":username",r))},b=[_,d,p,r],e[0]=_,e[1]=d,e[2]=p,e[3]=r,e[4]=y,e[5]=b):(y=e[4],b=e[5]),I.useEffect(y,b),m?.roles;const x=m?.roles;let w;e[6]!==f?.user?(w=()=>{const N=f?.user;return{username:N?.username??"",password:"",fullname:N?.fullname??"",permissions:N?.permissions?{...Uz,...N?.permissions}:Uz,roles:N?.roles||[]}},e[6]=f?.user,e[7]=w):w=e[7],f?.user;let C;e[8]!==w?(C=w(),e[8]=w,e[9]=C):C=e[9];const k=C;f?.user;const A=f?.user;let P;e[10]!==n||e[11]!==A?(P=dr().shape({username:We().required(n.formatMessage({id:"users.new_user.form_errors.required"})),password:A?We():We().required(n.formatMessage({id:"users.new_user.form_errors.required"})),fullname:We(),permissions:dr(),roles:yr().of(We())}),e[10]=n,e[11]=A,e[12]=P):P=e[12];const T=P;let j;e[13]!==f?.user||e[14]!==l?(j=N=>{const{username:F,fullname:U,password:z,permissions:H,roles:W}=N;l(F==="admin"?{username:F,...U&&{fullname:U},...z&&{password:z}}:{username:F,...U&&{fullname:U},...z&&{password:z},...H&&{permissions:H},roles:W},{method:f?.user?"PATCH":"POST",encType:"application/json",action:f?.user?$.urls.platformUsersUpdate_Action:$.urls.platformUsersCreate_Action})},e[13]=f?.user,e[14]=l,e[15]=j):j=e[15],f?.user;const R=j;let D;e[16]!==g||e[17]!==u||e[18]!==c||e[19]!==n||e[20]!==_||e[21]!==o||e[22]!==m?.roles||e[23]!==x||e[24]!==h||e[25]!==r?(D=N=>{const{dirty:F,values:U}=N,z=m?.roles?I4e(m?.roles.filter(H=>U?.roles?.includes(H.id))?.map(Dpt)):void 0;return a.jsxs(dn,{canWrite:Ue(ie.management),fullHeight:!0,children:[a.jsx(_s,{loading:o,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"username",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,label:n.formatMessage({id:"users.new_user.form.username"}),size:"medium",error:!!K.error,helperText:K.error,disabled:_||c!=="idle"})}}),!_&&a.jsx(Ke,{name:"password",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,type:"password",showPasswordVisibility:!0,label:n.formatMessage({id:"users.new_user.form.password"}),size:"medium",error:!!K.error,helperText:K.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"fullname",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,label:n.formatMessage({id:"users.new_user.form.fullname"}),size:"medium",error:!!K.error,helperText:K.error,disabled:c!=="idle"})}}),a.jsx(pr,{title:n.formatMessage({id:"users.new_user.roles.title"}),dense:!0,modalElevation:!0,children:a.jsxs(Kt,{children:[h==="loading"&&a.jsx(gt,{sx:{display:"flex",justifyContent:"center",p:5},children:a.jsx(Nc,{type:"circular",color:"primary"})}),h!=="loading"&&x&&a.jsxs(a.Fragment,{children:[!x.length&&a.jsx(Lr,{message:n.formatMessage({id:"users.new_user.no_roles"}),severity:"warning"}),!!x.length&&a.jsx(te,{spacing:2,children:a.jsx(Ke,{name:"roles",children:H=>{const{field:W,form:K}=H,{setFieldValue:q}=K;return a.jsx(te,{direction:"row",spacing:1,children:x.map(X=>a.jsx(Mn,{opaque:!0,title:a.jsx(gt,{sx:{py:1,px:1.5},children:a.jsx(dk,{permissions:X.permissions})}),children:a.jsx("div",{children:a.jsx(Ze,{text:X.id,endIcon:a.jsx(ge.Info,{size:15}),variant:W.value?.includes(X.id)?"contained":"outlined",disabled:r==="admin",sx:{textTransform:"none"},onClick:()=>{if(!W.value){q(W.name,[X.id]);return}if(W.value.includes(X.id)){const Q=W.value.filter(Y=>Y!==X.id);q(W.name,Q);return}q(W.name,[...W.value,X.id])}})})},X.id))})}})})]})]})}),a.jsx(nx,{fieldName:"permissions",fieldLabel:n.formatMessage({id:"users.new_user.permissions_override.title"}),basePermissions:z,disabled:r==="admin",modalElevation:!0}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:c!=="idle",onClick:()=>g()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!F||!Ue(ie.management),loading:c!=="idle"})]})})]})},e[16]=g,e[17]=u,e[18]=c,e[19]=n,e[20]=_,e[21]=o,e[22]=m?.roles,e[23]=x,e[24]=h,e[25]=r,e[26]=D):D=e[26];let O;return e[27]!==R||e[28]!==k||e[29]!==D||e[30]!==T?(O=a.jsx(Wr,{enableReinitialize:!0,initialValues:k,validationSchema:T,onSubmit:R,children:D}),e[27]=R,e[28]=k,e[29]=D,e[30]=T,e[31]=O):O=e[31],O}function Dpt(t){return t.permissions}function que(t){const e=he.c(18),{isCurrentUser:r,username:n}=t,s=Ye(),{dialogClose:i}=Jt(),{upsertFetcher:o}=Ys(),{submit:l,state:c,data:u}=o;let d;e[0]!==r||e[1]!==l||e[2]!==n?(d=b=>{const{password:x,current_password:w}=b;r?l({password:x,current_password:w},{method:"POST",encType:"application/json",action:$.urls.platformUsersCurrentUserPasswordChange_Action}):l({username:n,password:x},{method:"POST",encType:"application/json",action:$.urls.platformUsersPasswordChange_Action})},e[0]=r,e[1]=l,e[2]=n,e[3]=d):d=e[3];const f=d;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p={current_password:"",password:"",passwordConfirmation:""},e[4]=p):p=e[4];const m=p;let h;e[5]!==s||e[6]!==r?(h=dr().shape({current_password:r?We().required(s.formatMessage({id:"users.change_password.form_errors.required"})):We(),password:We().required(s.formatMessage({id:"users.change_password.form_errors.required"})),passwordConfirmation:We().oneOf([gge("password"),null],s.formatMessage({id:"users.change_password.form_errors.password_must_match"})).required(s.formatMessage({id:"users.change_password.form_errors.required"}))}),e[5]=s,e[6]=r,e[7]=h):h=e[7];const _=h;let g;e[8]!==u||e[9]!==i||e[10]!==s||e[11]!==r||e[12]!==c?(g=b=>{const{dirty:x}=b;return a.jsxs(Kd,{children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[r&&a.jsx(Ke,{name:"current_password",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.current_password"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"password",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.password"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"passwordConfirmation",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.passwordConfirmation"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:s.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:c!=="idle",onClick:()=>i()}),a.jsx(Ze,{text:s.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!x,loading:c!=="idle"})]})})]})},e[8]=u,e[9]=i,e[10]=s,e[11]=r,e[12]=c,e[13]=g):g=e[13];let y;return e[14]!==f||e[15]!==g||e[16]!==_?(y=a.jsx(Wr,{initialValues:m,validationSchema:_,onSubmit:f,children:g}),e[14]=f,e[15]=g,e[16]=_,e[17]=y):y=e[17],y}const $pt=()=>{const t=he.c(114),e=Ye(),r=zn(),{dialogOpen:n,confirmationSimpleDialogOpen:s}=Jt(),i=gr(),o=ys();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ih(),t[0]=l):l=t[0];const c=l;let u;t[1]!==n||t[2]!==e?(u=()=>{n({title:e.formatMessage({id:"users.new_user.form.title"}),content:Opt})},t[1]=n,t[2]=e,t[3]=u):u=t[3];const d=u;let f;t[4]!==i?(f=$e=>{i.submit({username:$e},{method:"DELETE",encType:"application/json",action:$.urls.platformUsersDelete_Action})},t[4]=i,t[5]=f):f=t[5];const p=f;let m;t[6]!==i?(m=$e=>{const Ve=localStorage.getItem(U_);Ve&&i.submit({username:$e,refreshToken:Ve},{method:"POST",encType:"application/json",action:$.urls.platformUsersRevokeTokens_Action})},t[6]=i,t[7]=m):m=t[7];const h=m;let _;t[8]!==e?(_=e.formatMessage({id:"users.table.username"}),t[8]=e,t[9]=_):_=t[9];let g;t[10]!==e?(g=$e=>{const{username:Ve}=$e;return a.jsxs(te,{nowrap:!0,direction:"row",children:[a.jsx(_e,{type:"body2",children:Ve}),c?.sub===Ve&&a.jsx(ms,{label:e.formatMessage({id:"users.table.current_user"}),size:"small"})]})},t[10]=e,t[11]=g):g=t[11];let y;t[12]!==_||t[13]!==g?(y={key:"username",label:_,cellRender:g},t[12]=_,t[13]=g,t[14]=y):y=t[14];let b;t[15]!==e?(b=e.formatMessage({id:"users.table.fullname"}),t[15]=e,t[16]=b):b=t[16];let x;t[17]!==b?(x={key:"fullname",label:b},t[17]=b,t[18]=x):x=t[18];let w;t[19]!==e?(w=e.formatMessage({id:"users.table.backend"}),t[19]=e,t[20]=w):w=t[20];let C;t[21]!==w?(C={key:"backend",label:w,cellRender:Lpt},t[21]=w,t[22]=C):C=t[22];let k;t[23]!==e?(k=e.formatMessage({id:"users.table.roles"}),t[23]=e,t[24]=k):k=t[24];let A;t[25]!==k?(A={key:"roles",label:k,cellRender:Fpt},t[25]=k,t[26]=A):A=t[26];let P;t[27]!==e?(P=e.formatMessage({id:"users.table.permissions_override"}),t[27]=e,t[28]=P):P=t[28];let T;t[29]!==P?(T={key:"permissions",label:P,cellRender:Upt},t[29]=P,t[30]=T):T=t[30];let j;t[31]!==e?(j=e.formatMessage({id:"users.table.created_at"}),t[31]=e,t[32]=j):j=t[32];let R;t[33]!==j?(R={key:"created_at",label:j,cellRender:Bpt},t[33]=j,t[34]=R):R=t[34];let D;t[35]!==e?(D=e.formatMessage({id:"users.table.modified_at"}),t[35]=e,t[36]=D):D=t[36];let O;t[37]!==D?(O={key:"modified_at",label:D,cellRender:zpt},t[37]=D,t[38]=O):O=t[38];let N;t[39]!==C||t[40]!==A||t[41]!==T||t[42]!==R||t[43]!==O||t[44]!==y||t[45]!==x?(N=[y,x,C,A,T,R,O],t[39]=C,t[40]=A,t[41]=T,t[42]=R,t[43]=O,t[44]=y,t[45]=x,t[46]=N):N=t[46];const F=N;let U;t[47]!==e?(U=e.formatMessage({id:"users.table.actions.update"}),t[47]=e,t[48]=U):U=t[48];let z,H;t[49]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(ge.Edit,{}),H=$e=>c?.sub===$e.username||!Ue(ie.management),t[49]=z,t[50]=H):(z=t[49],H=t[50]);let W;t[51]!==n||t[52]!==e?(W=$e=>{const{username:Ve}=$e;n({title:e.formatMessage({id:"users.edit_user.form.title"}),content:()=>a.jsx(zue,{username:Ve})})},t[51]=n,t[52]=e,t[53]=W):W=t[53];let K;t[54]!==U||t[55]!==W?(K={label:U,icon:z,disabled:H,onClick:W},t[54]=U,t[55]=W,t[56]=K):K=t[56];let q;t[57]!==e?(q=e.formatMessage({id:"users.table.actions.delete"}),t[57]=e,t[58]=q):q=t[58];let X,Q;t[59]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.Trash,{}),Q=$e=>$e.username===GTe||c?.sub===$e.username||!Ue(ie.management),t[59]=X,t[60]=Q):(X=t[59],Q=t[60]);let Y;t[61]!==s||t[62]!==p||t[63]!==e?(Y=$e=>{const{username:Ve}=$e;s({title:e.formatMessage({id:"users.dialog.confirm_delete.title"}),description:e.formatMessage({id:"users.dialog.confirm_delete.description"},{username:Ve}),onConfirm:()=>{p(Ve)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[61]=s,t[62]=p,t[63]=e,t[64]=Y):Y=t[64];let Z;t[65]!==q||t[66]!==Y?(Z={label:q,icon:X,disabled:Q,onClick:Y},t[65]=q,t[66]=Y,t[67]=Z):Z=t[67];let re;t[68]!==e?(re=e.formatMessage({id:"users.table.actions.change_password"}),t[68]=e,t[69]=re):re=t[69];let fe,de;t[70]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(ge.Password,{}),de=$e=>$e.backend!==_i.local||c?.sub!==$e.username&&!Ue(ie.management),t[70]=fe,t[71]=de):(fe=t[70],de=t[71]);let se;t[72]!==n||t[73]!==e?(se=$e=>{const{username:Ve}=$e;n({title:e.formatMessage({id:"user_profile.actions.change_password"}),content:()=>a.jsx(que,{username:Ve,isCurrentUser:Ve===c?.sub})})},t[72]=n,t[73]=e,t[74]=se):se=t[74];let le;t[75]!==re||t[76]!==se?(le={label:re,icon:fe,disabled:de,onClick:se,wrapped:!0},t[75]=re,t[76]=se,t[77]=le):le=t[77];let ee;t[78]!==e?(ee=e.formatMessage({id:"users.table.actions.audit"}),t[78]=e,t[79]=ee):ee=t[79];let J,me;t[80]===Symbol.for("react.memo_cache_sentinel")?(J=a.jsx(ge.Sort,{}),me=as(ie.management),t[80]=J,t[81]=me):(J=t[80],me=t[81]);let pe;t[82]!==o?(pe=$e=>{const{username:Ve}=$e;o(`/platform/users/audits/${Ve}`)},t[82]=o,t[83]=pe):pe=t[83];let Se;t[84]!==ee||t[85]!==pe?(Se={label:ee,icon:J,disabled:!me,onClick:pe,wrapped:!0},t[84]=ee,t[85]=pe,t[86]=Se):Se=t[86];let ve;t[87]!==e?(ve=e.formatMessage({id:"users.table.actions.revoke_tokens"}),t[87]=e,t[88]=ve):ve=t[88];let xe,qe;t[89]===Symbol.for("react.memo_cache_sentinel")?(xe=a.jsx(ge.Reset,{}),qe=as(ie.management),t[89]=xe,t[90]=qe):(xe=t[89],qe=t[90]);let Le;t[91]!==s||t[92]!==h||t[93]!==e?(Le=$e=>{const{username:Ve}=$e;s({title:e.formatMessage({id:"users.dialog.confirm_revoke_tokens.title"}),description:e.formatMessage({id:"users.dialog.confirm_revoke_tokens.description"},{username:Ve}),onConfirm:()=>{h(Ve)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[91]=s,t[92]=h,t[93]=e,t[94]=Le):Le=t[94];let Te;t[95]!==ve||t[96]!==Le?(Te={label:ve,icon:xe,disabled:!qe,onClick:Le,wrapped:!0},t[95]=ve,t[96]=Le,t[97]=Te):Te=t[97];let je;t[98]!==K||t[99]!==Z||t[100]!==le||t[101]!==Se||t[102]!==Te?(je=[K,Z,le,Se,Te],t[98]=K,t[99]=Z,t[100]=le,t[101]=Se,t[102]=Te,t[103]=je):je=t[103];const Ge=je;let nt;t[104]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[104]=nt):nt=t[104];let Re;t[105]===Symbol.for("react.memo_cache_sentinel")?(Re=a.jsx(Tr,{}),t[105]=Re):Re=t[105];let we;t[106]!==F||t[107]!==d||t[108]!==e||t[109]!==Ge?(we=$e=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"toolbar-button-new-rule",text:e.formatMessage({id:"users.toolbar.new_user"}),startIcon:a.jsx(ge.Add,{}),onClick:d})}),a.jsx(Br,{autoScale:!0,orderBy:"username",columns:F,data:$e,page:0,labelDisplayedRows:qpt,rowsCount:$e.length,rowsPerPage:$e.length,rowsPerPageOptions:void 0,rowKey:"username",rowActions:Ge,stickyRowActions:!0})]}),t[106]=F,t[107]=d,t[108]=e,t[109]=Ge,t[110]=we):we=t[110];let Me;return t[111]!==r.users||t[112]!==we?(Me=a.jsx(I.Suspense,{fallback:nt,children:a.jsx(Qt,{resolve:r.users,errorElement:Re,children:we})}),t[111]=r.users,t[112]=we,t[113]=Me):Me=t[113],Me};function Opt(){return a.jsx(zue,{})}function Lpt(t){const{backend:e}=t;return a.jsx(ms,{label:e||"",size:"small",color:e!==_i.local?"primary":"default"})}function Npt(t){return{id:t,label:t}}function Fpt(t){const{roles:e}=t;return a.jsx(ks,{items:e?.map(Npt)??[],size:"small"})}function Upt(t){const{permissions:e}=t;return e?a.jsx(dk,{permissions:e}):a.jsx(a.Fragment,{})}function Bpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function zpt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function qpt(){return""}function Vpt(){const t=he.c(37),e=Ye(),r=zn(),{pageSize:n,pageSizeOptions:s,changePageSize:i,changePage:o,getRowsCount:l,getPage:c}=Na();let u;t[0]!==e?(u=e.formatMessage({id:"audits.created_at"}),t[0]=e,t[1]=u):u=t[1];let d;t[2]!==u?(d={key:"created_at",label:u,cellRender:Gpt},t[2]=u,t[3]=d):d=t[3];let f;t[4]!==e?(f=e.formatMessage({id:"audits.action"}),t[4]=e,t[5]=f):f=t[5];let p;t[6]!==f?(p={key:"action",label:f},t[6]=f,t[7]=p):p=t[7];let m;t[8]!==e?(m=e.formatMessage({id:"audits.auth"}),t[8]=e,t[9]=m):m=t[9];let h;t[10]!==e?(h=P=>{const{auth:T}=P;return T==="allowed"?a.jsx(ms,{variant:"outlined",size:"small",color:"success",label:e.formatMessage({id:"audits.auth.allowed"})}):a.jsx(ms,{variant:"outlined",size:"small",color:"error",label:e.formatMessage({id:"audits.auth.denied"})})},t[10]=e,t[11]=h):h=t[11];let _;t[12]!==m||t[13]!==h?(_={key:"auth",label:m,cellRender:h},t[12]=m,t[13]=h,t[14]=_):_=t[14];let g;t[15]!==e?(g=e.formatMessage({id:"audits.source_ip"}),t[15]=e,t[16]=g):g=t[16];let y;t[17]!==g?(y={key:"source_ip",label:g},t[17]=g,t[18]=y):y=t[18];let b;t[19]!==d||t[20]!==p||t[21]!==_||t[22]!==y?(b=[d,p,_,y],t[19]=d,t[20]=p,t[21]=_,t[22]=y,t[23]=b):b=t[23];const x=b;let w;t[24]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[24]=w):w=t[24];let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Tr,{}),t[25]=C):C=t[25];let k;t[26]!==o||t[27]!==i||t[28]!==x||t[29]!==c||t[30]!==l||t[31]!==n||t[32]!==s?(k=P=>{const{data:T,metadata:j}=P;return a.jsx(Br,{autoScale:!0,rowKey:"created_at",orderBy:"created_at",columns:x,data:T,page:c(j),labelDisplayedRows:Hpt,rowsCount:l(j),rowsPerPage:n,onRowsPerPageChange:i,rowsPerPageOptions:s,onPageChange:o(j)})},t[26]=o,t[27]=i,t[28]=x,t[29]=c,t[30]=l,t[31]=n,t[32]=s,t[33]=k):k=t[33];let A;return t[34]!==r.audits||t[35]!==k?(A=a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:r.audits,errorElement:C,children:k})}),t[34]=r.audits,t[35]=k,t[36]=A):A=t[36],A}function Hpt(){return""}function Gpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}async function Wpt(){const t=$.apis.pls.tls.config;return De({options:{url:t,method:"GET"}})}async function Ypt(t){const e=$.apis.pls.tls.certificates.client,r=new FormData;return r.append("cert_file",t.cert_file[0]),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Kpt(t){const e=$.apis.pls.tls.certificates.server,r=new FormData;return r.append("cert_file",t.cert_file[0]),r.append("key_file",t.key_file[0]),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Qpt(t){const e=$.apis.pls.tls.config;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Zpt(){const t=$.apis.authenticationStrategies.backendList;return De({options:{url:t,method:"GET"}})}async function Xpt(){const t=$.apis.authenticationStrategies.ldap;return De({options:{url:t,method:"GET"}})}async function Jpt(){const t=$.apis.authenticationStrategies.radius;return De({options:{url:t,method:"GET"}})}async function emt(){const t=$.apis.authenticationStrategies.openId;return De({options:{url:t,method:"GET"}})}async function tmt(){const t=as([ie.configuration]),[e,r,n,s,i,o,l,c,u]=await Promise.all([Zpt(),Xpt(),Jpt(),emt(),Pie(),t?n4e():null,P4e(),smt(),amt()]);return{backendList:e,ldapConfig:r,radiusConfig:n,openIdConfig:s,authConfiguration:o,rolesList:i,systemUsageTerms:l,radiusLocalConfig:c,ldapLocalConfig:u}}async function rmt(){const t=$.apis.pls.bootPartitions;return De({options:{url:t,method:"GET"}})}async function nmt(t){const e=$.apis.pls.bootPartitions;return De({options:{url:e,method:"PUT",data:{default:t}}})}async function smt(){const t=$.apis.authenticationStrategies.localRadius;return De({options:{url:t,method:"GET"}})}async function imt(t){const e=$.apis.authenticationStrategies.localRadius;return De({options:{url:e,method:"PUT",data:t}})}async function omt(){const t=$.apis.authenticationStrategies.localRadius;return De({options:{url:t,method:"DELETE"}})}async function amt(){const t=$.apis.authenticationStrategies.localLdap;return De({options:{url:t,method:"GET"}})}async function lmt(t){const e=$.apis.authenticationStrategies.localLdap;return De({options:{url:e,method:"PUT",data:t}})}async function cmt(){const t=$.apis.authenticationStrategies.localLdap;return De({options:{url:t,method:"DELETE"}})}async function umt({request:t}){const e=await t.json(),r=await Qpt(e);return xt(r)||Nt(),Ft(r)}async function dmt({request:t}){const n={cert_file:[(await t.formData()).get("cert_file")]},s=await Ypt(n);return xt(s)||Nt(),Ft(s)}async function fmt({request:t}){const e=await t.formData(),r=e.get("cert_file"),n=e.get("key_file"),i=await Kpt({cert_file:[r],key_file:[n]});return xt(i)||Nt(),Ft(i)}async function pmt({request:t}){const e=await t.json(),r=await w4e(e);return xt(r)||Nt(),Ft(r)}async function mmt({request:t}){const e=await t.json(),r=await C4e(e);return xt(r)||Nt(),Ft(r)}async function hmt({request:t}){const e=await t.json(),r=await imt(e);return xt(r)||Nt(),r}async function gmt(){const t=await omt();return xt(t)||Nt(),t}async function _mt({request:t}){const e=await t.json(),r=await A4e(e);return xt(r)||Nt(),Ft(r)}async function vmt({request:t}){const e=await t.json(),r=await lmt(e);return xt(r)||Nt(),r}async function ymt(){const t=await cmt();return xt(t)||Nt(),t}async function bmt({request:t}){const e=await t.json(),r=await k4e(e);return xt(r)||Nt(),Ft(r)}async function xmt({request:t}){const e=await t.json(),r=await S4e(e);return xt(r)||Nt(),Ft(r)}async function Smt({request:t}){const e=await t.json(),r=await j4e(e);return xt(r)||Nt(),Ft(r)}async function wmt({request:t}){const{defaultPartition:e}=await t.json(),r=await nmt(e);return Ft(r)}async function Cmt(t){const e=`${$.apis.pls.roles}/${t}`;return De({options:{url:e,method:"GET"}})}async function Amt(t){const e=$.apis.pls.roles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function kmt({id:t,...e}){const r=`${$.apis.pls.roles}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e.permissions)}})}async function Mmt(t){const e=`${$.apis.pls.roles}/${t}`;return De({options:{url:e,method:"DELETE"}})}const Pmt=Pr();async function jmt({request:t}){const e=await t.json(),r=await Amt(e);return xt(r)||Nt(),Ft(r)}async function Tmt({request:t}){const e=await t.json(),r=await kmt(e);return xt(r)||Nt(),Ft(r)}async function Emt({request:t}){const{id:e}=await t.json(),r=await Mmt(e);return xt(r)?Ar(r.error.detail||Pmt.formatMessage({id:"roles.delete.message_ko"})):Nt(),Ft(r)}async function Rmt({request:t}){const e=await t.json(),r=await t4e({values:e});if(!xt(r))throw Gb();return Ft(r)}async function Imt(){const t=$.apis.pls.users;return De({options:{url:t,method:"GET"}})}async function Dmt(t){const e=`${$.apis.pls.users}/${t}`;return De({options:{url:e,method:"GET"}})}async function $mt(t){const e=$.apis.pls.users;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Vue({username:t,...e}){const r=`${$.apis.pls.users}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e)}})}async function Omt(t){const e=`${$.apis.pls.users}/${t}`;return De({options:{url:e,method:"DELETE"}})}const Lmt=Pr();async function Nmt({request:t}){const e=await t.json(),r=await $mt(R4e(e));return xt(r)||Nt(),Ft(r)}async function Fmt({request:t}){const e=await t.json(),r=await Vue(e);return xt(r)||Nt(),Ft(r)}async function Umt({request:t}){const e=await t.json(),r=await Vue(e);return xt(r)||Nt(),Ft(r)}async function Bmt({request:t}){const{username:e}=await t.json(),r=await Omt(e);return xt(r)?Ar(r.error.detail||Lmt.formatMessage({id:"users.delete.message_ko"})):Nt(),Ft(r)}async function zmt(t){return Wt({loaderArgs:t,deferred:!0,data:{configuration:Wpt()}})}async function qmt(t){return Wt({loaderArgs:t,deferred:!0,data:{config:tmt()}})}async function Vmt(t){return Wt({loaderArgs:t,deferred:!0,data:{bootPartitions:rmt()}})}async function Hmt(t){return Wt({loaderArgs:t,deferred:!0,data:{roles:Pie()}})}async function Gmt(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{role:Cmt(e)}})}async function Wmt(t){return Wt({loaderArgs:t,deferred:!0,data:{users:Imt()}})}async function Ymt(t){const{username:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{user:Dmt(e)}})}function Kmt(t){const e=he.c(31),{path:r}=t,n=zn(),{data:s,submit:i,state:o}=gr(),{data:l,submit:c,state:u}=gr(),d=ys();let f;e[0]!==i?(f=async R=>{R&&i(R,{method:"POST",encType:"application/json",action:"apply"})},e[0]=i,e[1]=f):f=e[1];const p=f;let m;e[2]!==c||e[3]!==d||e[4]!==r?(m=async()=>{c(null,{method:"POST",encType:"application/json",action:"factory-reset"}),d(`${$.urls.platform}/${r}`)},e[2]=c,e[3]=d,e[4]=r,e[5]=m):m=e[5];const h=m;let _;e:{if(xt(s)||xt(l)){let R;e[6]===Symbol.for("react.memo_cache_sentinel")?(R={maxWidth:"1000px"},e[6]=R):R=e[6];let D;e[7]!==s?(D=a.jsx(Xr,{data:s}),e[7]=s,e[8]=D):D=e[8];let O;e[9]!==l?(O=a.jsx(Xr,{data:l}),e[9]=l,e[10]=O):O=e[10];let N;e[11]!==D||e[12]!==O?(N=a.jsxs(te,{nowrap:!0,sx:R,children:[D,O]}),e[11]=D,e[12]=O,e[13]=N):N=e[13],_=N;break e}_=null}const g=_,y=u!=="idle";let b;e[14]!==h||e[15]!==y?(b={name:"Factory Reset",onClick:h,variant:"outlined",loading:y},e[14]=h,e[15]=y,e[16]=b):b=e[16];const x=o!=="idle";let w;e[17]!==p||e[18]!==x?(w={name:"Apply and Persist",onClick:p,loading:x,disabledOnErrors:!0},e[17]=p,e[18]=x,e[19]=w):w=e[19];let C;e[20]!==b||e[21]!==w?(C=[b,w],e[20]=b,e[21]=w,e[22]=C):C=e[22];const k=C;let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),e[23]=A):A=e[23];let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Tr,{}),e[24]=P):P=e[24];let T;e[25]!==g||e[26]!==k?(T=R=>{const[D,O,N]=R;return a.jsx(nue,{$ref:N,data:O,schema:D,toolbarActions:k,uiSchema:null,actionError:g},N)},e[25]=g,e[26]=k,e[27]=T):T=e[27];let j;return e[28]!==n.configuration||e[29]!==T?(j=a.jsx(I.Suspense,{fallback:A,children:a.jsx(Qt,{resolve:n.configuration,errorElement:P,children:T})}),e[28]=n.configuration,e[29]=T,e[30]=j):j=e[30],j}async function Qmt({service:t}){const e=$.apis.shippingConfig(t);return De({options:{url:e,method:"GET"}})}async function Zmt({service:t,values:e}){const r=$.apis.shippingConfig(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function Xmt({service:t}){const e=$.apis.shippingFactoryReset.replace("{service}",t);return De({options:{url:e,method:"POST"}})}function Jmt({service:t}){return async({request:e})=>{const r=await e.json(),n=await Zmt({service:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function eht({service:t}){return async()=>{const e=await Xmt({service:t});return xt(e)?Ar():Nt(),Ft(e)}}function tht({service:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{configuration:Promise.all([x4e(),Qmt({service:t}),M4e[t]])}})}function eD({service:t,path:e}){return{path:e,loader:tht({service:t}),element:a.jsx(Kmt,{path:e},e),shouldRevalidate:({actionResult:r})=>!xt(r),handle:vr({labelIntl:`route.platform.${e}`,to:`${$.urls.platform}/${e}`}),children:[{path:"apply",action:Jmt({service:t}),loader:()=>rt("..")},{path:"factory-reset",action:eht({service:t}),loader:()=>rt("..")}]}}const rht={path:"platform",handle:vr({labelIntl:"route.platform",icon:a.jsx(ge.Platform,{})}),children:[{element:a.jsx(Or,{center:!0}),children:[{path:"auth",handle:vr({labelIntl:"route.platform.auth",to:$.urls.platformAuthentication}),element:a.jsx(Fft,{}),loader:qmt,children:[{index:!0,element:a.jsx(ur,{to:"strategies",replace:!0})},{path:"strategies",element:a.jsx(mpt,{}),children:[{path:"backends-update",action:pmt,loader:()=>rt("..")},{path:"radius-config-update",action:mmt,loader:()=>rt("..")},{path:"radius-local-config-update",action:hmt,loader:()=>rt("..")},{path:"radius-local-config-reset",action:gmt,loader:()=>rt("..")},{path:"ldap-config-update",action:_mt,loader:()=>rt("..")},{path:"ldap-local-config-update",action:vmt,loader:()=>rt("..")},{path:"ldap-local-config-reset",action:ymt,loader:()=>rt("..")},{path:"openid-config-update",action:bmt,loader:()=>rt("..")}]},{path:"auth-config",element:a.jsx(Hft,{}),children:[{path:"auth-config-update",action:xmt,loader:()=>rt("..")}]},{path:"terms",element:a.jsx(bpt,{}),children:[{path:"system-usage-terms-update",action:Smt,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{transparent:!0,center:!0}),children:[{path:"tls",handle:vr({labelIntl:"route.platform.tls",to:$.urls.platformTls}),loader:zmt,element:a.jsx(Rpt,{}),children:[{path:"configuration-update",action:umt,loader:()=>rt("..")},{path:"client-certificate-update",action:dmt,loader:()=>rt("..")},{path:"server-certificate-update",action:fmt,loader:()=>rt("..")}]},so(ue.PLS,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"users",handle:vr({labelIntl:"route.platform.users",to:$.urls.platformUsers}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Wmt,element:a.jsx($pt,{})},{path:":username",loader:Ymt,element:a.jsx(ur,{to:$.urls.platformUsers,replace:!0})},{path:"audits/:username",loader:uqe,element:a.jsx(Vpt,{}),handle:t=>{const e=t.params.username;return vr({labelIntl:"route.platform.audit",to:$.urls.platformUsersAudits,captionIntl:"route.platform.audit.caption",captionIntlParams:{username:e}})}},{path:"create",action:Nmt,loader:()=>rt("..")},{path:"update",action:Fmt,loader:()=>rt("..")},{path:"password-change",action:Umt,loader:()=>rt("..")},{path:"current-user-password-change",action:Rmt,loader:()=>rt("..")},{path:"delete",action:Bmt,loader:()=>rt("..")},{path:"revoke-tokens",action:xrt,loader:()=>rt("..")}]},{path:"roles",handle:vr({labelIntl:"route.platform.roles",to:$.urls.platformRoles}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Hmt,element:a.jsx(Cpt,{})},{path:":id",loader:Gmt,element:a.jsx(ur,{to:$.urls.platformRoles,replace:!0})},{path:"create",action:jmt,loader:()=>rt("..")},{path:"update",action:Tmt,loader:()=>rt("..")},{path:"delete",action:Emt,loader:()=>rt("..")}]},eD({service:ue.FLUENTBIT,path:"log-shipping"}),eD({service:ue.PROMETHEUS,path:"kpi-shipping"}),eD({service:ue.ALERTMANAGER,path:"alert-shipping"})]}]},nht=()=>{const t=he.c(43),e=Ye(),{menuOpen:r,menuClose:n,dialogOpen:s}=Jt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Ih(),t[0]=i):i=t[0];const o=i;let l;t[1]!==s||t[2]!==e||t[3]!==n||t[4]!==r?(l=R=>{r({anchorEl:R.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:e.formatMessage({id:"user_profile.actions.change_password"}),value:"change-password",icon:a.jsx(ge.Password,{}),disabled:o?.backend!==_i.local,onClick:()=>{n(),o?.sub&&s({title:e.formatMessage({id:"user_profile.actions.change_password"}),content:()=>a.jsx(que,{username:o.sub,isCurrentUser:!0})})}}]})},t[1]=s,t[2]=e,t[3]=n,t[4]=r,t[5]=l):l=t[5];const c=l;let u;t[6]!==e?(u=e.formatMessage({id:"user_profile.title"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ge.More,{}),t[8]=d):d=t[8];let f;t[9]!==c?(f=a.jsx(Zr,{onClick:c,"data-testid":"dropdown-user-actions",children:d}),t[9]=c,t[10]=f):f=t[10];let p;t[11]!==e?(p=e.formatMessage({id:"user_profile.username"}),t[11]=e,t[12]=p):p=t[12];let m;t[13]!==p?(m=a.jsx(_e,{fontWeight:"600",children:p}),t[13]=p,t[14]=m):m=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(_e,{children:o?.sub}),t[15]=h):h=t[15];let _;t[16]!==m?(_=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[m,h]}),t[16]=m,t[17]=_):_=t[17];let g;t[18]!==e?(g=e.formatMessage({id:"user_profile.fullname"}),t[18]=e,t[19]=g):g=t[19];let y;t[20]!==g?(y=a.jsx(_e,{fontWeight:"600",children:g}),t[20]=g,t[21]=y):y=t[21];let b;t[22]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(_e,{children:o?.fullname}),t[22]=b):b=t[22];let x;t[23]!==y?(x=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[y,b]}),t[23]=y,t[24]=x):x=t[24];let w;t[25]!==e?(w=e.formatMessage({id:"user_profile.backend"}),t[25]=e,t[26]=w):w=t[26];let C;t[27]!==w?(C=a.jsx(_e,{fontWeight:"600",children:w}),t[27]=w,t[28]=C):C=t[28];let k;t[29]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(bi,{status:o?.backend===_i.radius?nn.WARNING:nn.DEFAULT,asChip:!0,label:o?.backend||""}),t[29]=k):k=t[29];let A;t[30]!==C?(A=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[C,k]}),t[30]=C,t[31]=A):A=t[31];let P;t[32]!==e?(P=o?.permissions&&a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:e.formatMessage({id:"user_profile.permissions"})}),a.jsx(dk,{permissions:o.permissions})]}),t[32]=e,t[33]=P):P=t[33];let T;t[34]!==x||t[35]!==A||t[36]!==P||t[37]!==_?(T=a.jsx(Kt,{children:a.jsxs(te,{direction:"column",spacing:2,children:[_,x,A,P]})}),t[34]=x,t[35]=A,t[36]=P,t[37]=_,t[38]=T):T=t[38];let j;return t[39]!==T||t[40]!==u||t[41]!==f?(j=a.jsx(a.Fragment,{children:a.jsx(pr,{title:u,headerActionsComponent:f,children:T})}),t[39]=T,t[40]=u,t[41]=f,t[42]=j):j=t[42],j},sht={element:a.jsx(Or,{center:!0}),children:[{path:"profile",element:a.jsx(nht,{}),handle:vr({labelIntl:"route.profile",icon:a.jsx(ge.Profile,{})})}]};function iht(){const t=he.c(11),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Nc,{variant:"indeterminate",type:"circular"}),t[0]=n):n=t[0];let s;t[1]!==e?(s=e.formatMessage({id:"restart.progress.title"}),t[1]=e,t[2]=s):s=t[2];let i;t[3]!==s?(i=a.jsx(G0,{fullWidth:!0,fullHeight:!0,children:a.jsxs(te,{direction:"row",justify:"center",align:"center",spacing:2,fullHeight:!0,children:[n,a.jsx(_e,{fontSize:"1.2em",children:s})]})}),t[3]=s,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ur,{to:$.urls.home,replace:!0}),t[5]=o):o=t[5];let l;t[6]!==r.restarted?(l=a.jsx(Qt,{resolve:r.restarted,children:o}),t[6]=r.restarted,t[7]=l):l=t[7];let c;return t[8]!==i||t[9]!==l?(c=a.jsx(I.Suspense,{fallback:i,children:l}),t[8]=i,t[9]=l,t[10]=c):c=t[10],c}async function oht(t){const e=$.apis.swUpdate.upload,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"Content-Type":"multipart/form-data"},data:r}})}function aht(){const t=$.apis.pls.reboot;return De({options:{url:t,method:"POST"}})}async function lht(){const t=$.ws.swUpdate;return De({type:Od.WS,options:{url:t}})}async function cht(){const t=await aht();if(xt(t))Ar();else return Ji.setRestartStatus(),rt($.urls.restart);return Ft(t)}const uht=1e3*5;async function dht(){return new Promise(t=>{async function e(){try{return await Wae(),Ji.deleteRestartStatus(),t(!0)}catch{r()}}function r(){setTimeout(()=>{e()},uht)}r()})}async function fht(t){return Ji.getRestartStatus()?Wt({loaderArgs:t,deferred:!0,data:{restarted:dht()}}):rt($.urls.home)}const pht={path:"restart",element:a.jsx(iht,{}),loader:fht,action:cht},Bv="DEFAULT_X_AXIS_KEY",y7="DEFAULT_Y_AXIS_KEY",mht={top:20,bottom:20,left:20,right:20},hht=45,ght=25,Hue=20;class _ht{constructor(e){this.value=e,this.listeners=new Set}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.value;update=e=>{const r=e(this.value);r!==this.value&&(this.value=r,this.listeners.forEach(n=>n(r)))}}const fk=({params:t,store:e})=>{I.useEffect(()=>{e.update(n=>ce({},n,{animation:ce({},n.animation,{skip:t.skipAnimation})}))},[e,t.skipAnimation]);const r=I.useCallback(()=>{let n=!1;return e.update(s=>ce({},s,{animation:ce({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests+1})})),()=>{n||(n=!0,e.update(s=>ce({},s,{animation:ce({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests-1})})))}},[e]);return ei(()=>{if(typeof window>"u"||!window?.matchMedia)return;let s;const i=l=>{l.matches?s=r():s?.()},o=window.matchMedia("(prefers-reduced-motion)");return i(o),o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[r,e]),{instance:{disableAnimation:r}}};fk.params={skipAnimation:!0};fk.getDefaultizedParams=({params:t})=>ce({},t,{skipAnimation:t.skipAnimation??!1});fk.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var x3=Symbol("NOT_FOUND");function vht(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function yht(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function bht(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(r=>typeof r=="function")){const r=t.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${e}[${r}]`)}}var rJ=t=>Array.isArray(t)?t:[t];function xht(t){const e=Array.isArray(t[0])?t[0]:t;return bht(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function Sht(t,e){const r=[],{length:n}=t;for(let s=0;s<n;s++)r.push(t[s].apply(null,e));return r}function wht(t){let e;return{get(r){return e&&t(e.key,r)?e.value:x3},put(r,n){e={key:r,value:n}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function Cht(t,e){let r=[];function n(l){const c=r.findIndex(u=>e(l,u.key));if(c>-1){const u=r[c];return c>0&&(r.splice(c,1),r.unshift(u)),u.value}return x3}function s(l,c){n(l)===x3&&(r.unshift({key:l,value:c}),r.length>t&&r.pop())}function i(){return r}function o(){r=[]}return{get:n,put:s,getEntries:i,clear:o}}var Aht=(t,e)=>t===e;function kht(t){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;const{length:s}=r;for(let i=0;i<s;i++)if(!t(r[i],n[i]))return!1;return!0}}function Mht(t,e){const r=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:n=Aht,maxSize:s=1,resultEqualityCheck:i}=r,o=kht(n);let l=0;const c=s<=1?wht(o):Cht(s,o);function u(){let d=c.get(arguments);if(d===x3){if(d=t.apply(null,arguments),l++,i){const p=c.getEntries().find(m=>i(m.value,d));p&&(d=p.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var Pht=class{constructor(t){this.value=t}deref(){return this.value}},jht=typeof WeakRef<"u"?WeakRef:Pht,Tht=0,nJ=1;function bw(){return{s:Tht,v:void 0,o:null,p:null}}function Gue(t,e={}){let r=bw();const{resultEqualityCheck:n}=e;let s,i=0;function o(){let l=r;const{length:c}=arguments;for(let f=0,p=c;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let h=l.o;h===null&&(l.o=h=new WeakMap);const _=h.get(m);_===void 0?(l=bw(),h.set(m,l)):l=_}else{let h=l.p;h===null&&(l.p=h=new Map);const _=h.get(m);_===void 0?(l=bw(),h.set(m,l)):l=_}}const u=l;let d;if(l.s===nJ)d=l.v;else if(d=t.apply(null,arguments),i++,n){const f=s?.deref?.()??s;f!=null&&n(f,d)&&(d=f,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new jht(d):d}return u.s=nJ,u.v=d,d}return o.clearCache=()=>{r=bw(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function Wue(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...s)=>{let i=0,o=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),vht(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...r,...c},{memoize:f,memoizeOptions:p=[],argsMemoize:m=Gue,argsMemoizeOptions:h=[]}=d,_=rJ(p),g=rJ(h),y=xht(s),b=f(function(){return i++,u.apply(null,arguments)},..._),x=m(function(){o++;const C=Sht(y,arguments);return l=b.apply(null,C),l},...g);return Object.assign(x,{resultFunc:u,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:m})};return Object.assign(n,{withTypes:()=>n}),n}var Eht=Wue(Gue),Rht=Object.assign((t,e=Eht)=>{yht(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const r=Object.keys(t),n=r.map(i=>t[i]);return e(n,(...i)=>i.reduce((o,l,c)=>(o[r[c]]=l,o),{}))},{withTypes:()=>Rht});const Iht=Wue({memoize:Mht,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),sJ=new WeakMap,Vt=(...t)=>(r,...n)=>{const s=r.cacheKey;let i=sJ.get(s);i||(i=new Map,sJ.set(s,i));const o=i.get(t);if(o)return o(r,...n);const l=Iht(...t);return i.set(t,l),l(r,...n)},Dht=t=>t.animation,$ht=Vt([Dht],t=>t.skip||t.skipAnimationRequests>0);function Oht(t){return h_(t).defaultView||window}var tD={exports:{}},rD={},nD={exports:{}},sD={};var iJ;function Lht(){if(iJ)return sD;iJ=1;var t=Ph();function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,s=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function l(f,p){var m=p(),h=n({inst:{value:m,getSnapshot:p}}),_=h[0].inst,g=h[1];return i(function(){_.value=m,_.getSnapshot=p,c(_)&&g({inst:_})},[f,m,p]),s(function(){return c(_)&&g({inst:_}),f(function(){c(_)&&g({inst:_})})},[f]),o(m),m}function c(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!r(f,m)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return sD.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,sD}var oJ;function Nht(){return oJ||(oJ=1,nD.exports=Lht()),nD.exports}var aJ;function Fht(){if(aJ)return rD;aJ=1;var t=Ph(),e=Nht();function r(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,i=t.useRef,o=t.useEffect,l=t.useMemo,c=t.useDebugValue;return rD.useSyncExternalStoreWithSelector=function(u,d,f,p,m){var h=i(null);if(h.current===null){var _={hasValue:!1,value:null};h.current=_}else _=h.current;h=l(function(){function y(k){if(!b){if(b=!0,x=k,k=p(k),m!==void 0&&_.hasValue){var A=_.value;if(m(A,k))return w=A}return w=k}if(A=w,n(x,k))return A;var P=p(k);return m!==void 0&&m(A,P)?(x=k,A):(x=k,w=P)}var b=!1,x,w,C=f===void 0?null:f;return[function(){return y(d())},C===null?void 0:function(){return y(C())}]},[d,f,p,m]);var g=s(u,h[0],h[1]);return o(function(){_.hasValue=!0,_.value=g},[g]),c(g),g},rD}var lJ;function Uht(){return lJ||(lJ=1,tD.exports=Fht()),tD.exports}var Bht=Uht();const zht=Object.is,qr=(t,e,r=[],n=zht)=>{const s=i=>e(i,...r);return Bht.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,s,n)},oc=t=>t.cartesianAxis?.x,Hc=t=>t.cartesianAxis?.y,qht=Vt([Hc],t=>(t??[]).reduce((e,r)=>r.position==="left"?e+(r.width||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Vht=Vt([Hc],t=>(t??[]).reduce((e,r)=>r.position==="right"?e+(r.width||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Hht=Vt([oc],t=>(t??[]).reduce((e,r)=>r.position==="top"?e+(r.height||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Ght=Vt([oc],t=>(t??[]).reduce((e,r)=>r.position==="bottom"?e+(r.height||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Wht=t=>t.dimensions,Yue=t=>t.dimensions.width,Kue=t=>t.dimensions.height,Yht=t=>t.dimensions.margin.top,Kht=t=>t.dimensions.margin.right,Qht=t=>t.dimensions.margin.bottom,Zht=t=>t.dimensions.margin.left,vl=Vt([Yue,Kue,Yht,Kht,Qht,Zht,Hht,Vht,Ght,qht],(t,e,r,n,s,i,o,l,c,u)=>({width:t-i-n-u-l,left:i+u,right:n+l,height:e-r-s-o-c,top:r+o,bottom:s+c})),Que=Vt([Wht],t=>({width:t.propsWidth,height:t.propsHeight})),Xht=Vt([Yue,Kue],(t,e)=>({width:t,height:e}));function Zue(t,e){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:e?ce({},e,t):t}const Jht=10,pk=({params:t,store:e,svgRef:r})=>{const n=t.width!==void 0&&t.height!==void 0,s=I.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[i,o]=I.useState(0),[l,c]=I.useState(0),u=I.useCallback(()=>{const h=r?.current;if(!h)return{};const g=Oht(h).getComputedStyle(h),y=Math.floor(parseFloat(g.height))||0,b=Math.floor(parseFloat(g.width))||0;return e.update(x=>x.dimensions.width===b&&x.dimensions.height===y?x:ce({},x,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??b,height:t.height??y,propsWidth:t.width,propsHeight:t.height}})),{height:y,width:b}},[e,r,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);I.useEffect(()=>{e.update(h=>{const _=t.width??h.dimensions.width,g=t.height??h.dimensions.height;return ce({},h,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:_,height:g,propsHeight:t.height,propsWidth:t.width}})})},[e,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),I.useEffect(()=>{s.current.displayError=!0},[]),ei(()=>{if(n||!s.current.initialCompute||s.current.computeRun>Jht)return;const h=u();h.width!==i||h.height!==l?(s.current.computeRun+=1,h.width!==void 0&&o(h.width),h.height!==void 0&&c(h.height)):s.current.initialCompute&&(s.current.initialCompute=!1)},[l,i,u,n]),ei(()=>{if(n)return()=>{};u();const h=r.current;if(typeof ResizeObserver>"u")return()=>{};let _;const g=new ResizeObserver(()=>{_=requestAnimationFrame(()=>{u()})});return h&&g.observe(h),()=>{_&&cancelAnimationFrame(_),h&&g.unobserve(h)}},[u,n,r]);const d=qr(e,vl),f=I.useCallback(h=>h>=d.left-1&&h<=d.left+d.width,[d.left,d.width]),p=I.useCallback(h=>h>=d.top-1&&h<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:I.useCallback((h,_,g)=>g&&"closest"in g&&g.closest("[data-drawing-container]")?!0:f(h)&&p(_),[f,p]),isXInside:f,isYInside:p}}};pk.params={width:!0,height:!0,margin:!0};pk.getDefaultizedParams=({params:t})=>ce({},t,{margin:Zue(t.margin,mht)});pk.getInitialState=({width:t,height:e,margin:r})=>({dimensions:{margin:r,width:t??0,height:e??0,propsWidth:t,propsHeight:e}});const b7=({params:t,store:e})=>(ei(()=>{e.update(r=>ce({},r,{experimentalFeatures:t.experimentalFeatures}))},[e,t.experimentalFeatures]),{});b7.params={experimentalFeatures:!0};b7.getInitialState=({experimentalFeatures:t})=>({experimentalFeatures:t});const egt=t=>t.experimentalFeatures,mk=Vt([egt],t=>!!t?.preferStrictDomainInLineCharts);let cJ=0;const tgt=()=>(cJ+=1,`mui-chart-${cJ}`),x7=({params:t,store:e})=>(I.useEffect(()=>{e.update(r=>t.id===void 0||t.id===r.id.providedChartId&&r.id.chartId!==void 0?r:ce({},r,{id:ce({},r.id,{chartId:t.id??tgt()})}))},[e,t.id]),{});x7.params={id:!0};x7.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const rgt=t=>t.id,ngt=Vt([rgt],t=>t.chartId),sgt=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],igt=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],Xue=t=>t==="dark"?igt:sgt,Jue=({series:t,colors:e,seriesConfig:r,dataset:n})=>{const s={};t.forEach((o,l)=>{const c=r[o.type].getSeriesWithDefaultValues(o,l,e),u=c.id;if(s[o.type]===void 0&&(s[o.type]={series:{},seriesOrder:[]}),s[o.type]?.series[u]!==void 0)throw new Error(`MUI X Charts: series' id "${u}" is not unique.`);s[o.type].series[u]=c,s[o.type].seriesOrder.push(u)});const i={};return Object.keys(r).forEach(o=>{const l=s[o];l!==void 0&&(i[o]=r[o]?.seriesProcessor?.(l,n)??s[o])}),i},hk=({params:t,store:e,seriesConfig:r})=>{const{series:n,dataset:s,theme:i,colors:o}=t,l=I.useRef(!0);return I.useEffect(()=>{if(l.current){l.current=!1;return}e.update(c=>ce({},c,{series:ce({},c.series,{processedSeries:Jue({series:n,colors:typeof o=="function"?o(i):o,seriesConfig:r,dataset:s})})}))},[o,s,n,i,r,e]),{}};hk.params={dataset:!0,series:!0,colors:!0,theme:!0};const ogt=[];hk.getDefaultizedParams=({params:t})=>ce({},t,{series:t.series?.length?t.series:ogt,colors:t.colors??Xue,theme:t.theme??"light"});hk.getInitialState=({series:t=[],colors:e,theme:r,dataset:n},s,i)=>({series:{seriesConfig:i,processedSeries:Jue({series:t,colors:typeof e=="function"?e(r):e,seriesConfig:i,dataset:n})}});const ede=t=>t.series,Mo=Vt([ede],t=>t.processedSeries),Gc=Vt([ede],t=>t.seriesConfig),agt={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0};class tde{customData={};constructor(e){if(!e||!e.name)throw new Error("Gesture must be initialized with a valid name.");if(e.name in agt)throw new Error(`Gesture can't be created with a native event name. Tried to use "${e.name}". Please use a custom name instead.`);this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,r,n,s){this.element=e,this.pointerManager=r,this.gesturesRegistry=n,this.keyboardManager=s;const i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange);const o=`${this.name}ChangeState`;this.element.addEventListener(o,this.handleStateChange)}handleOptionsChange=e=>{e&&e.detail&&this.updateOptions(e.detail)};updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(e,r){if(e!=="mouse"&&e!=="touch"&&e!=="pen")return r;const n=this.pointerOptions[e];return n?ce({},r,n):r}handleStateChange=e=>{e&&e.detail&&this.updateState(e.detail)};updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||"contains"in this.element&&this.element.contains(e.target)||"getRootNode"in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,r){const n=this.getEffectiveConfig(r,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(this.preventIf.length===0)return!1;const s=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(i=>s[i])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0?!0:this.pointerMode.includes(e)}destroy(){const e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange);const r=`${this.name}ChangeState`;this.element.removeEventListener(r,this.handleStateChange)}}class lgt{activeGestures=new Map;registerActiveGesture(e,r){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);const n=this.activeGestures.get(e),s={gesture:r,element:e};n.add(s)}unregisterActiveGesture(e,r){const n=this.activeGestures.get(e);n&&(n.forEach(s=>{s.gesture===r&&n.delete(s)}),n.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){const r=this.activeGestures.get(e);return r?Array.from(r).reduce((n,s)=>(n[s.gesture.name]=!0,n),{}):{}}isGestureActive(e,r){const n=this.activeGestures.get(e);return n?Array.from(n).some(s=>s.gesture===r):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}}class cgt{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>"u"||(window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("blur",this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||e.length===0?!0:e.every(r=>r==="ControlOrMeta"?navigator.platform.includes("Mac")?this.pressedKeys.has("Meta"):this.pressedKeys.has("Control"):this.pressedKeys.has(r))}destroy(){typeof window<"u"&&(window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("blur",this.clearKeys)),this.clearKeys()}}class ugt{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||"auto",this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return new Map(this.pointers)}setupEventListeners(){this.touchAction!=="auto"&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener("pointerdown",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointermove",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointerup",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointercancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("forceCancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("blur",this.handleInterruptEvents),this.root.addEventListener("contextmenu",this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&"pointerType"in e&&e.pointerType==="touch"){e.preventDefault();return}const r=new PointerEvent("forceCancel",{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(r,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(const[s,i]of this.pointers.entries()){const o=ce({},i,{type:"forceCancel"});this.pointers.set(s,o)}}this.notifyHandlers(r),this.pointers.clear()};handlePointerEvent=e=>{const{type:r,pointerId:n}=e;if(r==="pointerdown"||r==="pointermove")this.pointers.set(n,this.createPointerData(e));else if(r==="pointerup"||r==="pointercancel"||r==="forceCancel"){this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(n);return}this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(r=>r(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener("pointerdown",this.handlePointerEvent),this.root.removeEventListener("pointermove",this.handlePointerEvent),this.root.removeEventListener("pointerup",this.handlePointerEvent),this.root.removeEventListener("pointercancel",this.handlePointerEvent),this.root.removeEventListener("forceCancel",this.handlePointerEvent),this.root.removeEventListener("blur",this.handleInterruptEvents),this.root.removeEventListener("contextmenu",this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}}class dgt{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new lgt;keyboardManager=new cgt;constructor(e){this.pointerManager=new ugt({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(r=>{this.addGestureTemplate(r)})}addGestureTemplate(e){this.gestureTemplates.has(e.name)&&console.warn(`Gesture template with name "${e.name}" already exists. It will be overwritten.`),this.gestureTemplates.set(e.name,e)}setGestureOptions(e,r,n){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(i)}setGestureState(e,r,n){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(i)}registerElement(e,r,n){return Array.isArray(e)||(e=[e]),e.forEach(s=>{const i=n?.[s];this.registerSingleGesture(s,r,i)}),r}registerSingleGesture(e,r,n){const s=this.gestureTemplates.get(e);if(!s)return console.error(`Gesture template "${e}" not found.`),!1;this.elementGestureMap.has(r)||this.elementGestureMap.set(r,new Map);const i=this.elementGestureMap.get(r);i.has(e)&&(console.warn(`Element already has gesture "${e}" registered. It will be replaced.`),this.unregisterElement(e,r));const o=s.clone(n);return o.init(r,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,o),!0}unregisterElement(e,r){const n=this.elementGestureMap.get(r);return!n||!n.has(e)?!1:(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(r),n.size===0&&this.elementGestureMap.delete(r),!0)}unregisterAllGestures(e){const r=this.elementGestureMap.get(e);if(r){for(const[,n]of r)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(const[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}}class qh extends tde{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,r,n,s){super.init(e,r,n,s),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(e,r){const n=this.getEffectiveConfig(r,this.getBaseConfig());return e.length>=n.minPointers&&e.length<=n.maxPointers}getRelevantPointers(e,r){return e.filter(n=>this.isPointerTypeAllowed(n.pointerType)&&(r===n.target||n.target===this.originalTarget||r===this.originalTarget||"contains"in r&&r.contains(n.target))||"getRootNode"in r&&r.getRootNode()instanceof ShadowRoot&&n.srcEvent.composedPath().includes(r))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function fgt(t,e){const r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}function iD(t){if(t.length<2)return 0;let e=0,r=0;for(let n=0;n<t.length;n+=1)for(let s=n+1;s<t.length;s+=1)e+=fgt({x:t[n].clientX,y:t[n].clientY},{x:t[s].clientX,y:t[s].clientY}),r+=1;return r>0?e/r:0}function Vd(t){if(t.length===0)return{x:0,y:0};const e=t.reduce((r,n)=>(r.x+=n.clientX,r.y+=n.clientY,r),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}}function Xl(t,e){return`${t}${e==="ongoing"?"":e.charAt(0).toUpperCase()+e.slice(1)}`}const xw=1e-5,Wf=1e-5,uJ=.15;function pgt(t,e){const r=e.x-t.x,n=e.y-t.y,s={vertical:null,horizontal:null,mainAxis:null},i=mgt(e,t),o=Math.abs(r)>Math.abs(n)?"horizontal":"vertical",l=i||o==="horizontal"?xw:uJ,c=i?xw:o==="horizontal"?uJ:xw;return Math.abs(r)>l&&(s.horizontal=r>0?"right":"left"),Math.abs(n)>c&&(s.vertical=n>0?"down":"up"),s.mainAxis=i?"diagonal":o,s}function mgt(t,e){const r=e.x-t.x,n=e.y-t.y,s=Math.atan2(n,r)*180/Math.PI;return s>=-45+Wf&&s<=-22.5+Wf||s>=22.5+Wf&&s<=45+Wf||s>=135+Wf&&s<=157.5+Wf||s>=-157.5+Wf&&s<=-135+Wf}function hgt(t,e){if(!t.vertical&&!t.horizontal)return!1;if(e.length===0)return!0;const r=t.vertical===null||e.includes(t.vertical),n=t.horizontal===null||e.includes(t.horizontal);return r&&n}const dJ=0,ggt=t=>t>dJ?1:t<-dJ?-1:0,Zf=t=>{t.cancelable&&t.preventDefault()};class S7 extends qh{state={lastPosition:null};constructor(e){super(e),this.threshold=e.threshold||0}clone(e){return new S7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.element.addEventListener("pointerenter",this.handleElementEnter),this.element.addEventListener("pointerleave",this.handleElementLeave)}destroy(){this.element.removeEventListener("pointerenter",this.handleElementEnter),this.element.removeEventListener("pointerleave",this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=e=>{if(e.pointerType!=="mouse"&&e.pointerType!=="pen")return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());if(this.isWithinPointerCount(n,e.pointerType)){this.isActive=!0;const s={x:e.clientX,y:e.clientY};this.state.lastPosition=s,this.emitMoveEvent(this.element,"start",n,e),this.emitMoveEvent(this.element,"ongoing",n,e)}};handleElementLeave=e=>{if(e.pointerType!=="mouse"&&e.pointerType!=="pen"||!this.isActive)return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());this.emitMoveEvent(this.element,"end",n,e),this.resetState()};handlePointerEvent=(e,r)=>{if(r.type!=="pointermove"||r.pointerType!=="mouse"&&r.pointerType!=="pen")return;this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s||!this.isWithinPointerCount(n,r.pointerType))return;if(this.shouldPreventGesture(s,r.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(s,"end",n,r);return}const i={x:r.clientX,y:r.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(s,"start",n,r)),this.emitMoveEvent(s,"ongoing",n,r)};emitMoveEvent(e,r,n,s){const i=this.state.lastPosition||Vd(n),o=this.gesturesRegistry.getActiveGestures(e),l={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,activeGestures:o,customData:this.customData},c=Xl(this.name,r),u=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:l});e.dispatchEvent(u)}}class ch extends qh{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(e){super(e),this.direction=e.direction||["up","down","left","right"],this.threshold=e.threshold||0}clone(e){return new ch(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction,this.threshold=e.threshold??this.threshold}resetState(){this.isActive=!1,this.state=ce({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(e,r)=>{const n=Array.from(e.values());if(r.type==="forceCancel"){this.cancel(r.target,n,r);return}const s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.cancel(s,n,r);return}const i=this.getRelevantPointers(n,s);if(!this.isWithinPointerCount(i,r.pointerType)){this.cancel(s,i,r);return}switch(r.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(i.forEach(o=>{this.state.startPointers.set(o.pointerId,o)}),this.originalTarget=s,this.state.startCentroid=Vd(i),this.state.lastCentroid=ce({},this.state.startCentroid));break;case"pointermove":if(this.state.startCentroid&&this.isWithinPointerCount(n,r.pointerType)){const o=Vd(i),l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y,u=Math.sqrt(l*l+c*c),d=pgt(this.state.lastCentroid??this.state.startCentroid,o),f=this.state.lastCentroid?o.x-this.state.lastCentroid.x:0,p=this.state.lastCentroid?o.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&u>=this.threshold&&hgt(d,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(s,"start",i,r,o),this.emitPanEvent(s,"ongoing",i,r,o)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(s,"ongoing",i,r,o)),this.state.lastCentroid=o,this.state.lastDirection=d}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){const o=i.filter(l=>l.type!=="pointerup"&&l.type!=="pointercancel");if(!this.isWithinPointerCount(o,r.pointerType)){const l=this.state.lastCentroid||this.state.startCentroid;r.type==="pointercancel"&&this.emitPanEvent(s,"cancel",i,r,l),this.emitPanEvent(s,"end",i,r,l),this.resetState()}}else this.resetState();break}};emitPanEvent(e,r,n,s,i){if(!this.state.startCentroid)return;const o=this.state.lastDeltas?.x??0,l=this.state.lastDeltas?.y??0,c=this.state.startPointers.values().next().value,u=c?(s.timeStamp-c.timeStamp)/1e3:0,d=u>0?o/u:0,f=u>0?l/u:0,p=Math.sqrt(d*d+f*f),m=this.gesturesRegistry.getActiveGestures(e),h={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,deltaX:o,deltaY:l,direction:this.state.lastDirection,velocityX:d,velocityY:f,velocity:p,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:m,customData:this.customData},_=Xl(this.name,r),g=new CustomEvent(_,{bubbles:!0,cancelable:!0,composed:!0,detail:h});e.dispatchEvent(g),this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation()}cancel(e,r,n){if(this.isActive){const s=e??this.element;this.emitPanEvent(s,"cancel",r,n,this.state.lastCentroid),this.emitPanEvent(s,"end",r,n,this.state.lastCentroid)}this.resetState()}}class w7 extends qh{state={startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0};constructor(e){super(ce({},e,{minPointers:e.minPointers??2})),this.threshold=e.threshold??0}clone(e){return new w7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state=ce({},this.state,{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,deltaScale:0})}handlePointerEvent=(e,r)=>{const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.isActive&&(this.emitPinchEvent(s,"cancel",n,r),this.resetState());return}const i=this.getRelevantPointers(n,s);switch(r.type){case"pointerdown":if(i.length>=2&&!this.isActive){const o=iD(i);this.state.startDistance=o,this.state.lastDistance=o,this.state.lastTime=r.timeStamp,this.originalTarget=s}break;case"pointermove":if(this.state.startDistance&&this.isWithinPointerCount(i,r.pointerType)){const o=iD(i),l=Math.abs(o-this.state.lastDistance);if(l!==0&&l>=this.threshold){const c=this.state.startDistance?o/this.state.startDistance:1,u=c/this.state.lastScale;this.state.totalScale*=u;const d=(r.timeStamp-this.state.lastTime)/1e3;if(this.state.lastDistance){const p=(o-this.state.lastDistance)/d;this.state.velocity=Number.isNaN(p)?0:p}this.state.lastDistance=o,this.state.deltaScale=c-this.state.lastScale,this.state.lastScale=c,this.state.lastTime=r.timeStamp,this.isActive?this.emitPinchEvent(s,"ongoing",i,r):(this.isActive=!0,this.emitPinchEvent(s,"start",i,r),this.emitPinchEvent(s,"ongoing",i,r))}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const o=i.filter(l=>l.type!=="pointerup"&&l.type!=="pointercancel");if(!this.isWithinPointerCount(o,r.pointerType))r.type==="pointercancel"&&this.emitPinchEvent(s,"cancel",i,r),this.emitPinchEvent(s,"end",i,r),this.resetState();else if(o.length>=2){const l=iD(o);this.state.startDistance=l/this.state.lastScale}}break}};emitPinchEvent(e,r,n,s){const i=Vd(n),o=this.state.lastDistance,l=this.state.lastScale,c=this.gesturesRegistry.getActiveGestures(e),u={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,scale:l,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:o,velocity:this.state.velocity,activeGestures:c,direction:ggt(this.state.velocity),customData:this.customData};this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation();const d=Xl(this.name,r),f=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:u});e.dispatchEvent(f)}}class gk extends qh{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(e){return new gk(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=ce({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(e,r)=>{const n=Array.from(e.values());if(r.type==="forceCancel"){this.cancelPress(r.target,n,r);return}const s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.isActive&&this.cancelPress(s,n,r);return}const i=this.getRelevantPointers(n,s);if(!this.isWithinPointerCount(i,r.pointerType)){this.isActive&&this.cancelPress(s,i,r);return}switch(r.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Vd(i),this.state.lastPosition=ce({},this.state.startCentroid),this.state.startTime=r.timeStamp,this.isActive=!0,this.originalTarget=s,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;const o=this.state.lastPosition;this.emitPressEvent(s,"start",i,r,o),this.emitPressEvent(s,"ongoing",i,r,o)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const o=Vd(i);this.state.lastPosition=o;const l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y;Math.sqrt(l*l+c*c)>this.maxDistance&&this.cancelPress(s,i,r)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const o=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(s,"end",i,r,o)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(s,i,r);break}};emitPressEvent(e,r,n,s,i){const o=this.gesturesRegistry.getActiveGestures(e),l=s.timeStamp-this.state.startTime,c={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,x:i.x,y:i.y,duration:l,activeGestures:o,customData:this.customData},u=Xl(this.name,r),d=new CustomEvent(u,{bubbles:!0,cancelable:!0,composed:!0,detail:c});e.dispatchEvent(d),this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation()}cancelPress(e,r,n){if(this.isActive&&this.state.pressThresholdReached){const s=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,"cancel",r,n,s),this.emitPressEvent(e??this.element,"end",r,n,s)}this.resetState()}}class C7 extends qh{state={phase:"waitingForPress",dragTimeoutId:null};constructor(e){super(e),this.pressDuration=e.pressDuration??500,this.pressMaxDistance=e.pressMaxDistance??10,this.dragTimeout=e.dragTimeout??1e3,this.dragThreshold=e.dragThreshold??0,this.dragDirection=e.dragDirection||["up","down","left","right"],this.pressGesture=new gk({name:`${this.name}-press`,duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new ch({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(e){return new C7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,pressDuration:this.pressDuration,pressMaxDistance:this.pressMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.pressGesture.init(e,r,n,s),this.panGesture.init(e,r,n,s),this.element.addEventListener(this.pressGesture.name,this.pressHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.pressGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.pressGesture.name,this.pressHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(e){super.updateOptions(e),this.pressDuration=e.pressDuration??this.pressDuration,this.pressMaxDistance=e.pressMaxDistance??this.pressMaxDistance,this.dragTimeout=e.dragTimeout??this.dragTimeout,this.dragThreshold=e.dragThreshold??this.dragThreshold,this.dragDirection=e.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.pressGesture.name}ChangeOptions`,{detail:{duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForPress",dragTimeoutId:null}}handlePointerEvent(){}pressHandler=()=>{this.state.phase==="waitingForPress"&&(this.state.phase="pressDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=e=>{this.state.phase==="pressDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};dragMoveHandler=e=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e))};dragEndHandler=e=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};setTouchAction(){this.element.addEventListener("touchstart",Zf,{passive:!1}),this.element.addEventListener("touchmove",Zf,{passive:!1}),this.element.addEventListener("touchend",Zf,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Zf),this.element.removeEventListener("touchmove",Zf),this.element.removeEventListener("touchend",Zf)}}class _k extends qh{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(e){return new _k(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null}}handlePointerEvent=(e,r)=>{const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s)return;const i=this.getRelevantPointers(n,s);if(this.shouldPreventGesture(s,r.pointerType)||!this.isWithinPointerCount(i,r.pointerType)){this.isActive&&this.cancelTap(s,i,r);return}switch(r.type){case"pointerdown":this.isActive||(this.state.startCentroid=Vd(i),this.state.lastPosition=ce({},this.state.startCentroid),this.isActive=!0,this.originalTarget=s);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const o=Vd(i);this.state.lastPosition=o;const l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y;Math.sqrt(l*l+c*c)>this.maxDistance&&this.cancelTap(s,i,r)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const o=this.state.lastPosition||this.state.startCentroid;if(!o){this.cancelTap(s,i,r);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(s,i,r,o),this.resetState()):(this.state.lastTapTime=r.timeStamp,this.isActive=!1,this.state.startCentroid=null,setTimeout(()=>{this.state&&this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case"pointercancel":case"forceCancel":this.cancelTap(s,i,r);break}};fireTapEvent(e,r,n,s){const i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:s,target:n.target,srcEvent:n,phase:"end",pointers:r,timeStamp:n.timeStamp,x:s.x,y:s.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},l=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(l),this.preventDefault&&n.preventDefault(),this.stopPropagation&&n.stopPropagation()}cancelTap(e,r,n){if(this.state.startCentroid||this.state.lastPosition){const s=this.state.lastPosition||this.state.startCentroid,i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:s,target:n.target,srcEvent:n,phase:"cancel",pointers:r,timeStamp:n.timeStamp,x:s.x,y:s.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},l=Xl(this.name,"cancel"),c=new CustomEvent(l,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(c)}this.resetState()}}class A7 extends qh{state={phase:"waitingForTap",dragTimeoutId:null};constructor(e){super(e),this.tapMaxDistance=e.tapMaxDistance??10,this.dragTimeout=e.dragTimeout??1e3,this.dragThreshold=e.dragThreshold??0,this.dragDirection=e.dragDirection||["up","down","left","right"],this.tapGesture=new _k({name:`${this.name}-tap`,maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new ch({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(e){return new A7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,tapMaxDistance:this.tapMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.tapGesture.init(e,r,n,s),this.panGesture.init(e,r,n,s),this.element.addEventListener(this.tapGesture.name,this.tapHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.tapGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.tapGesture.name,this.tapHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(e){super.updateOptions(e),this.tapMaxDistance=e.tapMaxDistance??this.tapMaxDistance,this.dragTimeout=e.dragTimeout??this.dragTimeout,this.dragThreshold=e.dragThreshold??this.dragThreshold,this.dragDirection=e.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.tapGesture.name}ChangeOptions`,{detail:{maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForTap",dragTimeoutId:null}}handlePointerEvent(){}tapHandler=()=>{this.state.phase==="waitingForTap"&&(this.state.phase="tapDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=e=>{this.state.phase==="tapDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};dragMoveHandler=e=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e))};dragEndHandler=e=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};setTouchAction(){this.element.addEventListener("touchstart",Zf,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Zf)}}class k7 extends tde{state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0};constructor(e){super(e),this.sensitivity=e.sensitivity??1,this.max=e.max??Number.MAX_SAFE_INTEGER,this.min=e.min??Number.MIN_SAFE_INTEGER,this.initialDelta=e.initialDelta??0,this.invert=e.invert??!1,this.state.totalDeltaX=this.initialDelta,this.state.totalDeltaY=this.initialDelta,this.state.totalDeltaZ=this.initialDelta}clone(e){return new k7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,sensitivity:this.sensitivity,max:this.max,min:this.min,initialDelta:this.initialDelta,invert:this.invert,requiredKeys:[...this.requiredKeys],preventIf:[...this.preventIf]},e))}init(e,r,n,s){super.init(e,r,n,s),this.element.addEventListener("wheel",this.handleWheelEvent)}destroy(){this.element.removeEventListener("wheel",this.handleWheelEvent),this.resetState(),super.destroy()}resetState(){this.isActive=!1,this.state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0}}updateOptions(e){super.updateOptions(e),this.sensitivity=e.sensitivity??this.sensitivity,this.max=e.max??this.max,this.min=e.min??this.min,this.initialDelta=e.initialDelta??this.initialDelta,this.invert=e.invert??this.invert}handleWheelEvent=e=>{if(this.shouldPreventGesture(this.element,"mouse"))return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());this.state.totalDeltaX+=e.deltaX*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaY+=e.deltaY*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaZ+=e.deltaZ*this.sensitivity*(this.invert?-1:1),["totalDeltaX","totalDeltaY","totalDeltaZ"].forEach(s=>{this.state[s]<this.min&&(this.state[s]=this.min),this.state[s]>this.max&&(this.state[s]=this.max)}),this.emitWheelEvent(n,e)};emitWheelEvent(e,r){const n=e.length>0?Vd(e):{x:r.clientX,y:r.clientY},s=this.gesturesRegistry.getActiveGestures(this.element),i={gestureName:this.name,centroid:n,target:r.target,srcEvent:r,phase:"ongoing",pointers:e,timeStamp:r.timeStamp,deltaX:r.deltaX*this.sensitivity*(this.invert?-1:1),deltaY:r.deltaY*this.sensitivity*(this.invert?-1:1),deltaZ:r.deltaZ*this.sensitivity*(this.invert?-1:1),deltaMode:r.deltaMode,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,totalDeltaZ:this.state.totalDeltaZ,activeGestures:s,customData:this.customData};this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const o=Xl(this.name,"ongoing"),l=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:i});this.element.dispatchEvent(l)}}const Kg=t=>t.preventDefault(),M7=({svgRef:t})=>{const e=I.useRef(null);I.useEffect(()=>{const s=t.current;e.current||(e.current=new dgt({gestures:[new ch({name:"pan",threshold:0,maxPointers:1}),new S7({name:"move",preventIf:["pan","zoomPinch","zoomPan"]}),new _k({name:"tap",preventIf:["pan","zoomPinch","zoomPan"]}),new gk({name:"quickPress",duration:50}),new ch({name:"brush",threshold:0,maxPointers:1}),new ch({name:"zoomPan",threshold:0,maxPointers:1,preventIf:["zoomTapAndDrag","zoomPressAndDrag"]}),new w7({name:"zoomPinch",threshold:5,preventIf:["pan","zoomPan"]}),new k7({name:"zoomTurnWheel",sensitivity:.01,initialDelta:1}),new A7({name:"zoomTapAndDrag",dragThreshold:10}),new C7({name:"zoomPressAndDrag",dragThreshold:10,preventIf:["zoomPinch"]})]}));const i=e.current;if(!(!s||!i))return i.registerElement(["pan","move","zoomPinch","zoomPan","zoomTurnWheel","tap","quickPress","zoomTapAndDrag","zoomPressAndDrag","brush"],s),()=>{i.unregisterAllGestures(s)}},[t,e]);const r=I.useCallback((s,i,o)=>{const l=t.current;return l?.addEventListener(s,i,o),{cleanup:()=>l?.removeEventListener(s,i)}},[t]),n=I.useCallback((s,i)=>{const o=t.current,l=e.current;!l||!o||l.setGestureOptions(s,o,i??{})},[t,e]);return I.useEffect(()=>{const s=t.current;return s?.addEventListener("gesturestart",Kg),s?.addEventListener("gesturechange",Kg),s?.addEventListener("gestureend",Kg),()=>{s?.removeEventListener("gesturestart",Kg),s?.removeEventListener("gesturechange",Kg),s?.removeEventListener("gestureend",Kg)}},[t]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:n}}};M7.params={};M7.getInitialState=()=>({});const _gt=[x7,b7,pk,hk,M7,fk],vgt=["apiRef"],ygt=t=>{let{plugins:e}=t,r=Ht(t.props,vgt);const n={};e.forEach(o=>{Object.assign(n,o.params)});const s={};return Object.keys(r).forEach(o=>{const l=r[o];n[o]&&(s[o]=l)}),e.reduce((o,l)=>l.getDefaultizedParams?l.getDefaultizedParams({params:o}):o,s)};let fJ=0;function bgt(t,e,r){const n=dv(),s=I.useMemo(()=>[..._gt,...t],[t]),i=ygt({plugins:s,props:e});i.id=i.id??n;const l=I.useRef({}).current,c=Sgt(e.apiRef),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null);if(f.current==null){fJ+=1;const h={cacheKey:{id:fJ}};s.forEach(_=>{_.getInitialState&&Object.assign(h,_.getInitialState(i,h,r))}),f.current=new _ht(h)}const p=h=>{const _=h({instance:l,params:i,plugins:s,store:f.current,svgRef:d,chartRootRef:u,seriesConfig:r});_.publicAPI&&Object.assign(c.current,_.publicAPI),_.instance&&Object.assign(l,_.instance)};return s.forEach(p),{contextValue:I.useMemo(()=>({store:f.current,publicAPI:c.current,instance:l,svgRef:d,chartRootRef:u}),[l,c])}}function xgt(t){return t.current==null&&(t.current={}),t}function Sgt(t){const e=I.useRef({});return t?xgt(t):e}const rde=I.createContext(null),nde=()=>{},sde=4,ide=20+2*sde,wgt=40+2*sde,Cgt="hover",Sw={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",reverse:!1,slider:{enabled:!1,preview:!1,size:ide,showTooltip:Cgt}},P7=(t,e,r,n)=>{if(t)return t===!0?ce({axisId:e,axisDirection:r},Sw,{reverse:n??!1}):ce({axisId:e,axisDirection:r},Sw,{reverse:n??!1},t,{slider:ce({},Sw.slider,{size:t.slider?.preview??Sw.slider.preview?wgt:ide},t.slider)})};function ode(t,e){const r={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:Bv,scaleType:"linear"}]).map((i,o)=>{const l=i.dataKey,c=o===0?"bottom":"none",u=i.position??c,d=ght+(i.label?Hue:0),f=i.id??`defaultized-x-axis-${o}`,p=ce({offset:r[u]},i,{id:f,position:u,height:i.height??d,zoom:P7(i.zoom,f,"x",i.reverse)});if(u!=="none"&&(r[u]+=p.height,p.zoom?.slider.enabled&&(r[u]+=p.zoom.slider.size)),l===void 0||i.data!==void 0)return p;if(e===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return ce({},p,{data:e.map(m=>m[l])})})}function ade(t,e){const r={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:y7,scaleType:"linear"}]).map((i,o)=>{const l=i.dataKey,c=o===0?"left":"none",u=i.position??c,d=hht+(i.label?Hue:0),f=i.id??`defaultized-y-axis-${o}`,p=ce({offset:r[u]},i,{id:f,position:u,width:i.width??d,zoom:P7(i.zoom,f,"y",i.reverse)});if(u!=="none"&&(r[u]+=p.width,p.zoom?.slider.enabled&&(r[u]+=p.zoom.slider.size)),l===void 0||i.data!==void 0)return p;if(e===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return ce({},p,{data:e.map(m=>m[l])})})}function vp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)){const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i+=1)if(!vp(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let i=0;i<s.length;i+=1)if(!e.has(s[i][0]))return!1;for(let i=0;i<s.length;i+=1){const o=s[i];if(!vp(o[1],e.get(o[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let i=0;i<s.length;i+=1)if(!e.has(s[i][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i+=1)if(t[i]!==e[i])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const r=Object.keys(t),n=r.length;if(n!==Object.keys(e).length)return!1;for(let s=0;s<n;s+=1)if(!Object.prototype.hasOwnProperty.call(e,r[s]))return!1;for(let s=0;s<n;s+=1){const i=r[s];if(!vp(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Agt(t,e){return function(n,s){if(s.location==="tick"){const i=s.scale.domain();return i[0]===i[1]?s.scale.tickFormat(1)(n):s.scale.tickFormat(t)(n)}return s.location==="zoom-slider-tooltip"?e.tickFormat(2)(n):`${n}`}}function Hd(t){return t.scaleType==="band"}function Vp(t){return t.scaleType==="point"}function kgt(t){return t.scaleType!=="point"&&t.scaleType!=="band"}function Mgt(t){return t.scaleType==="symlog"}function tC(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pgt(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function j7(t){let e,r,n;t.length!==2?(e=tC,r=(l,c)=>tC(t(l),c),n=(l,c)=>t(l)-c):(e=t===tC||t===Pgt?t:jgt,r=t,n=t);function s(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<0?u=f+1:d=f}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,c,u=0,d=l.length){const f=s(l,c,u,d-1);return f>u&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:s,center:o,right:i}}function jgt(){return 0}function Tgt(t){return t===null?NaN:+t}const Egt=j7(tC),lde=Egt.right;j7(Tgt).center;class pJ extends Map{constructor(e,r=Dgt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,s]of e)this.set(n,s)}get(e){return super.get(mJ(this,e))}has(e){return super.has(mJ(this,e))}set(e,r){return super.set(Rgt(this,e),r)}delete(e){return super.delete(Igt(this,e))}}function mJ({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Rgt({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Igt({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function Dgt(t){return t!==null&&typeof t=="object"?t.valueOf():t}const $gt=Math.sqrt(50),Ogt=Math.sqrt(10),Lgt=Math.sqrt(2);function S3(t,e,r){const n=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(n)),i=n/Math.pow(10,s),o=i>=$gt?10:i>=Ogt?5:i>=Lgt?2:1;let l,c,u;return s<0?(u=Math.pow(10,-s)/o,l=Math.round(t*u),c=Math.round(e*u),l/u<t&&++l,c/u>e&&--c,u=-u):(u=Math.pow(10,s)*o,l=Math.round(t/u),c=Math.round(e/u),l*u<t&&++l,c*u>e&&--c),c<l&&.5<=r&&r<2?S3(t,e,r*2):[l,c,u]}function w$(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[s,i,o]=n?S3(e,t,r):S3(t,e,r);if(!(i>=s))return[];const l=i-s+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(s+u)/-o;else for(let u=0;u<l;++u)c[u]=(s+u)*o;return c}function C$(t,e,r){return e=+e,t=+t,r=+r,S3(t,e,r)[2]}function A$(t,e,r){e=+e,t=+t,r=+r;const n=e<t,s=n?C$(e,t,r):C$(t,e,r);return(n?-1:1)*(s<0?1/-s:s)}function Ngt(t,e,r){t=+t,e=+e,r=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+r;for(var n=-1,s=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(s);++n<s;)i[n]=t+n*r;return i}function rf(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Fgt(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hJ=Symbol("implicit");function w3(){var t=new pJ,e=[],r=[],n=hJ;function s(i){let o=t.get(i);if(o===void 0){if(n!==hJ)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return s.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new pJ;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return s},s.range=function(i){return arguments.length?(r=Array.from(i),s):r.slice()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return w3(e,r).unknown(n)},rf.apply(s,arguments),s}function vk(){var t=w3().unknown(void 0),e=t.domain,r=t.range,n=0,s=1,i,o,l=!1,c=0,u=0,d=.5;delete t.unknown;function f(){var p=e().length,m=s<n,h=m?s:n,_=m?n:s;i=(_-h)/Math.max(1,p-c+u*2),l&&(i=Math.floor(i)),h+=(_-h-i*(p-c))*d,o=i*(1-c),l&&(h=Math.round(h),o=Math.round(o));var g=Ngt(p).map(function(y){return h+i*y});return r(m?g.reverse():g)}return t.domain=function(p){return arguments.length?(e(p),f()):e()},t.range=function(p){return arguments.length?([n,s]=p,n=+n,s=+s,f()):[n,s]},t.rangeRound=function(p){return[n,s]=p,n=+n,s=+s,l=!0,f()},t.bandwidth=function(){return o},t.step=function(){return i},t.round=function(p){return arguments.length?(l=!!p,f()):l},t.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),f()):c},t.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),f()):c},t.paddingOuter=function(p){return arguments.length?(u=+p,f()):u},t.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),f()):d},t.copy=function(){return vk(e(),[n,s]).round(l).paddingInner(c).paddingOuter(u).align(d)},rf.apply(f(),arguments)}function cde(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cde(e())},t}function ude(){return cde(vk.apply(null,arguments).paddingInner(1))}function T7(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function dde(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function sx(){}var c0=.7,C3=1/c0,S_="\\s*([+-]?\\d+)\\s*",u0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ugt=/^#([0-9a-f]{3,8})$/,Bgt=new RegExp(`^rgb\\(${S_},${S_},${S_}\\)$`),zgt=new RegExp(`^rgb\\(${Lu},${Lu},${Lu}\\)$`),qgt=new RegExp(`^rgba\\(${S_},${S_},${S_},${u0}\\)$`),Vgt=new RegExp(`^rgba\\(${Lu},${Lu},${Lu},${u0}\\)$`),Hgt=new RegExp(`^hsl\\(${u0},${Lu},${Lu}\\)$`),Ggt=new RegExp(`^hsla\\(${u0},${Lu},${Lu},${u0}\\)$`),gJ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};T7(sx,d0,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_J,formatHex:_J,formatHex8:Wgt,formatHsl:Ygt,formatRgb:vJ,toString:vJ});function _J(){return this.rgb().formatHex()}function Wgt(){return this.rgb().formatHex8()}function Ygt(){return fde(this).formatHsl()}function vJ(){return this.rgb().formatRgb()}function d0(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ugt.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?yJ(e):r===3?new ja(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ww(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ww(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Bgt.exec(t))?new ja(e[1],e[2],e[3],1):(e=zgt.exec(t))?new ja(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=qgt.exec(t))?ww(e[1],e[2],e[3],e[4]):(e=Vgt.exec(t))?ww(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Hgt.exec(t))?SJ(e[1],e[2]/100,e[3]/100,1):(e=Ggt.exec(t))?SJ(e[1],e[2]/100,e[3]/100,e[4]):gJ.hasOwnProperty(t)?yJ(gJ[t]):t==="transparent"?new ja(NaN,NaN,NaN,0):null}function yJ(t){return new ja(t>>16&255,t>>8&255,t&255,1)}function ww(t,e,r,n){return n<=0&&(t=e=r=NaN),new ja(t,e,r,n)}function Kgt(t){return t instanceof sx||(t=d0(t)),t?(t=t.rgb(),new ja(t.r,t.g,t.b,t.opacity)):new ja}function k$(t,e,r,n){return arguments.length===1?Kgt(t):new ja(t,e,r,n??1)}function ja(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}T7(ja,k$,dde(sx,{brighter(t){return t=t==null?C3:Math.pow(C3,t),new ja(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?c0:Math.pow(c0,t),new ja(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ja(uh(this.r),uh(this.g),uh(this.b),A3(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bJ,formatHex:bJ,formatHex8:Qgt,formatRgb:xJ,toString:xJ}));function bJ(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}`}function Qgt(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}${Jm((isNaN(this.opacity)?1:this.opacity)*255)}`}function xJ(){const t=A3(this.opacity);return`${t===1?"rgb(":"rgba("}${uh(this.r)}, ${uh(this.g)}, ${uh(this.b)}${t===1?")":`, ${t})`}`}function A3(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function uh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jm(t){return t=uh(t),(t<16?"0":"")+t.toString(16)}function SJ(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Pc(t,e,r,n)}function fde(t){if(t instanceof Pc)return new Pc(t.h,t.s,t.l,t.opacity);if(t instanceof sx||(t=d0(t)),!t)return new Pc;if(t instanceof Pc)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,s=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,l=i-s,c=(i+s)/2;return l?(e===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-e)/l+2:o=(e-r)/l+4,l/=c<.5?i+s:2-i-s,o*=60):l=c>0&&c<1?0:o,new Pc(o,l,c,t.opacity)}function Zgt(t,e,r,n){return arguments.length===1?fde(t):new Pc(t,e,r,n??1)}function Pc(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}T7(Pc,Zgt,dde(sx,{brighter(t){return t=t==null?C3:Math.pow(C3,t),new Pc(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?c0:Math.pow(c0,t),new Pc(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,s=2*r-n;return new ja(oD(t>=240?t-240:t+120,s,n),oD(t,s,n),oD(t<120?t+240:t-120,s,n),this.opacity)},clamp(){return new Pc(wJ(this.h),Cw(this.s),Cw(this.l),A3(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=A3(this.opacity);return`${t===1?"hsl(":"hsla("}${wJ(this.h)}, ${Cw(this.s)*100}%, ${Cw(this.l)*100}%${t===1?")":`, ${t})`}`}}));function wJ(t){return t=(t||0)%360,t<0?t+360:t}function Cw(t){return Math.max(0,Math.min(1,t||0))}function oD(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const E7=t=>()=>t;function Xgt(t,e){return function(r){return t+r*e}}function Jgt(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function e_t(t){return(t=+t)==1?pde:function(e,r){return r-e?Jgt(e,r,t):E7(isNaN(e)?r:e)}}function pde(t,e){var r=e-t;return r?Xgt(t,r):E7(isNaN(t)?e:t)}const CJ=(function t(e){var r=e_t(e);function n(s,i){var o=r((s=k$(s)).r,(i=k$(i)).r),l=r(s.g,i.g),c=r(s.b,i.b),u=pde(s.opacity,i.opacity);return function(d){return s.r=o(d),s.g=l(d),s.b=c(d),s.opacity=u(d),s+""}}return n.gamma=t,n})(1);function t_t(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),s;return function(i){for(s=0;s<r;++s)n[s]=t[s]*(1-i)+e[s]*i;return n}}function r_t(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function n_t(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,s=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)s[o]=yk(t[o],e[o]);for(;o<r;++o)i[o]=e[o];return function(l){for(o=0;o<n;++o)i[o]=s[o](l);return i}}function R7(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Js(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function s_t(t,e){var r={},n={},s;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(s in e)s in t?r[s]=yk(t[s],e[s]):n[s]=e[s];return function(i){for(s in r)n[s]=r[s](i);return n}}var M$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aD=new RegExp(M$.source,"g");function i_t(t){return function(){return t}}function o_t(t){return function(e){return t(e)+""}}function I7(t,e){var r=M$.lastIndex=aD.lastIndex=0,n,s,i,o=-1,l=[],c=[];for(t=t+"",e=e+"";(n=M$.exec(t))&&(s=aD.exec(e));)(i=s.index)>r&&(i=e.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(s=s[0])?l[o]?l[o]+=s:l[++o]=s:(l[++o]=null,c.push({i:o,x:Js(n,s)})),r=aD.lastIndex;return r<e.length&&(i=e.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?o_t(c[0].x):i_t(e):(e=c.length,function(u){for(var d=0,f;d<e;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}function yk(t,e){var r=typeof e,n;return e==null||r==="boolean"?E7(e):(r==="number"?Js:r==="string"?(n=d0(e))?(e=n,CJ):I7:e instanceof d0?CJ:e instanceof Date?R7:r_t(e)?t_t:Array.isArray(e)?n_t:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?s_t:Js)(t,e)}function mde(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function a_t(t){return function(){return t}}function l_t(t){return+t}var AJ=[0,1];function Wl(t){return t}function P$(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:a_t(isNaN(e)?NaN:.5)}function c_t(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function u_t(t,e,r){var n=t[0],s=t[1],i=e[0],o=e[1];return s<n?(n=P$(s,n),i=r(o,i)):(n=P$(n,s),i=r(i,o)),function(l){return i(n(l))}}function d_t(t,e,r){var n=Math.min(t.length,e.length)-1,s=new Array(n),i=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)s[o]=P$(t[o],t[o+1]),i[o]=r(e[o],e[o+1]);return function(l){var c=lde(t,l,1,n)-1;return i[c](s[c](l))}}function ix(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function bk(){var t=AJ,e=AJ,r=yk,n,s,i,o=Wl,l,c,u;function d(){var p=Math.min(t.length,e.length);return o!==Wl&&(o=c_t(t[0],t[p-1])),l=p>2?d_t:u_t,c=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(c||(c=l(t.map(n),e,r)))(n(o(p)))}return f.invert=function(p){return o(s((u||(u=l(e,t.map(n),Js)))(p)))},f.domain=function(p){return arguments.length?(t=Array.from(p,l_t),d()):t.slice()},f.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},f.rangeRound=function(p){return e=Array.from(p),r=mde,d()},f.clamp=function(p){return arguments.length?(o=p?!0:Wl,d()):o!==Wl},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,m){return n=p,s=m,d()}}function hde(){return bk()(Wl,Wl)}function f_t(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function k3(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function X_(t){return t=k3(Math.abs(t)),t?t[1]:NaN}function p_t(t,e){return function(r,n){for(var s=r.length,i=[],o=0,l=t[0],c=0;s>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(r.substring(s-=l,s+l)),!((c+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(e)}}function m_t(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var h_t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f0(t){if(!(e=h_t.exec(t)))throw new Error("invalid format: "+t);var e;return new D7({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}f0.prototype=D7.prototype;function D7(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}D7.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function g_t(t){e:for(var e=t.length,r=1,n=-1,s;r<e;++r)switch(t[r]){case".":n=s=r;break;case"0":n===0&&(n=r),s=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(s+1):t}var gde;function __t(t,e){var r=k3(t,e);if(!r)return t+"";var n=r[0],s=r[1],i=s-(gde=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+k3(t,Math.max(0,e+i-1))[0]}function kJ(t,e){var r=k3(t,e);if(!r)return t+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const MJ={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:f_t,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>kJ(t*100,e),r:kJ,s:__t,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function PJ(t){return t}var jJ=Array.prototype.map,TJ=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function v_t(t){var e=t.grouping===void 0||t.thousands===void 0?PJ:p_t(jJ.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",s=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?PJ:m_t(jJ.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f){f=f0(f);var p=f.fill,m=f.align,h=f.sign,_=f.symbol,g=f.zero,y=f.width,b=f.comma,x=f.precision,w=f.trim,C=f.type;C==="n"?(b=!0,C="g"):MJ[C]||(x===void 0&&(x=12),w=!0,C="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var k=_==="$"?r:_==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",A=_==="$"?n:/[%p]/.test(C)?o:"",P=MJ[C],T=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function j(R){var D=k,O=A,N,F,U;if(C==="c")O=P(R)+O,R="";else{R=+R;var z=R<0||1/R<0;if(R=isNaN(R)?c:P(Math.abs(R),x),w&&(R=g_t(R)),z&&+R==0&&h!=="+"&&(z=!1),D=(z?h==="("?h:l:h==="-"||h==="("?"":h)+D,O=(C==="s"?TJ[8+gde/3]:"")+O+(z&&h==="("?")":""),T){for(N=-1,F=R.length;++N<F;)if(U=R.charCodeAt(N),48>U||U>57){O=(U===46?s+R.slice(N+1):R.slice(N))+O,R=R.slice(0,N);break}}}b&&!g&&(R=e(R,1/0));var H=D.length+R.length+O.length,W=H<y?new Array(y-H+1).join(p):"";switch(b&&g&&(R=e(W+R,W.length?y-O.length:1/0),W=""),m){case"<":R=D+R+O+W;break;case"=":R=D+W+R+O;break;case"^":R=W.slice(0,H=W.length>>1)+D+R+O+W.slice(H);break;default:R=W+D+R+O;break}return i(R)}return j.toString=function(){return f+""},j}function d(f,p){var m=u((f=f0(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(X_(p)/3)))*3,_=Math.pow(10,-h),g=TJ[8+h/3];return function(y){return m(_*y)+g}}return{format:u,formatPrefix:d}}var Aw,$7,_de;y_t({thousands:",",grouping:[3],currency:["$",""]});function y_t(t){return Aw=v_t(t),$7=Aw.format,_de=Aw.formatPrefix,Aw}function b_t(t){return Math.max(0,-X_(Math.abs(t)))}function x_t(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(X_(e)/3)))*3-X_(Math.abs(t)))}function S_t(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,X_(e)-X_(t))+1}function w_t(t,e,r,n){var s=A$(t,e,r),i;switch(n=f0(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=x_t(s,o))&&(n.precision=i),_de(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=S_t(s,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=b_t(s))&&(n.precision=i-(n.type==="%")*2);break}}return $7(n)}function xk(t){var e=t.domain;return t.ticks=function(r){var n=e();return w$(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var s=e();return w_t(s[0],s[s.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),s=0,i=n.length-1,o=n[s],l=n[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=s,s=i,i=u);d-- >0;){if(u=C$(o,l,r),u===c)return n[s]=o,n[i]=l,e(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function O7(){var t=hde();return t.copy=function(){return ix(t,O7())},rf.apply(t,arguments),xk(t)}function vde(t,e){t=t.slice();var r=0,n=t.length-1,s=t[r],i=t[n],o;return i<s&&(o=r,r=n,n=o,o=s,s=i,i=o),t[r]=e.floor(s),t[n]=e.ceil(i),t}function EJ(t){return Math.log(t)}function RJ(t){return Math.exp(t)}function C_t(t){return-Math.log(-t)}function A_t(t){return-Math.exp(-t)}function k_t(t){return isFinite(t)?+("1e"+t):t<0?0:t}function M_t(t){return t===10?k_t:t===Math.E?Math.exp:e=>Math.pow(t,e)}function P_t(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function IJ(t){return(e,r)=>-t(-e,r)}function j_t(t){const e=t(EJ,RJ),r=e.domain;let n=10,s,i;function o(){return s=P_t(n),i=M_t(n),r()[0]<0?(s=IJ(s),i=IJ(i),t(C_t,A_t)):t(EJ,RJ),e}return e.base=function(l){return arguments.length?(n=+l,o()):n},e.domain=function(l){return arguments.length?(r(l),o()):r()},e.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const f=d<u;f&&([u,d]=[d,u]);let p=s(u),m=s(d),h,_;const g=l==null?10:+l;let y=[];if(!(n%1)&&m-p<g){if(p=Math.floor(p),m=Math.ceil(m),u>0){for(;p<=m;++p)for(h=1;h<n;++h)if(_=p<0?h/i(-p):h*i(p),!(_<u)){if(_>d)break;y.push(_)}}else for(;p<=m;++p)for(h=n-1;h>=1;--h)if(_=p>0?h/i(-p):h*i(p),!(_<u)){if(_>d)break;y.push(_)}y.length*2<g&&(y=w$(u,d,g))}else y=w$(p,m,Math.min(m-p,g)).map(i);return f?y.reverse():y},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=f0(c)).precision==null&&(c.trim=!0),c=$7(c)),l===1/0)return c;const u=Math.max(1,n*l/e.ticks().length);return d=>{let f=d/i(Math.round(s(d)));return f*n<n-.5&&(f*=n),f<=u?c(d):""}},e.nice=()=>r(vde(r(),{floor:l=>i(Math.floor(s(l))),ceil:l=>i(Math.ceil(s(l)))})),e}function M3(){const t=j_t(bk()).domain([1,10]);return t.copy=()=>ix(t,M3()).base(t.base()),rf.apply(t,arguments),t}function DJ(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function $J(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function T_t(t){var e=1,r=t(DJ(e),$J(e));return r.constant=function(n){return arguments.length?t(DJ(e=+n),$J(e)):e},xk(r)}function yde(){var t=T_t(bk());return t.copy=function(){return ix(t,yde()).constant(t.constant())},rf.apply(t,arguments)}function OJ(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function E_t(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function R_t(t){return t<0?-t*t:t*t}function I_t(t){var e=t(Wl,Wl),r=1;function n(){return r===1?t(Wl,Wl):r===.5?t(E_t,R_t):t(OJ(r),OJ(1/r))}return e.exponent=function(s){return arguments.length?(r=+s,n()):r},xk(e)}function L7(){var t=I_t(bk());return t.copy=function(){return ix(t,L7()).exponent(t.exponent())},rf.apply(t,arguments),t}function D_t(){return L7.apply(null,arguments).exponent(.5)}function bde(){var t=[.5],e=[0,1],r,n=1;function s(i){return i!=null&&i<=i?e[lde(t,i,0,n)]:r}return s.domain=function(i){return arguments.length?(t=Array.from(i),n=Math.min(t.length,e.length-1),s):t.slice()},s.range=function(i){return arguments.length?(e=Array.from(i),n=Math.min(t.length,e.length-1),s):e.slice()},s.invertExtent=function(i){var o=e.indexOf(i);return[t[o-1],t[o]]},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return bde().domain(t).range(e).unknown(r)},rf.apply(s,arguments)}const lD=new Date,cD=new Date;function Yi(t,e,r,n){function s(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return s.floor=i=>(t(i=new Date(+i)),i),s.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),s.round=i=>{const o=s(i),l=s.ceil(i);return i-o<l-i?o:l},s.offset=(i,o)=>(e(i=new Date(+i),o==null?1:Math.floor(o)),i),s.range=(i,o,l)=>{const c=[];if(i=s.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),e(i,l),t(i);while(u<i&&i<o);return c},s.filter=i=>Yi(o=>{if(o>=o)for(;t(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!i(o););else for(;--l>=0;)for(;e(o,1),!i(o););}),r&&(s.count=(i,o)=>(lD.setTime(+i),cD.setTime(+o),t(lD),t(cD),Math.floor(r(lD,cD))),s.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?s.filter(n?o=>n(o)%i===0:o=>s.count(0,o)%i===0):s)),s}const P3=Yi(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);P3.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Yi(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):P3);P3.range;const Id=1e3,Yl=Id*60,Dd=Yl*60,Gd=Dd*24,N7=Gd*7,LJ=Gd*30,uD=Gd*365,eh=Yi(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Id)},(t,e)=>(e-t)/Id,t=>t.getUTCSeconds());eh.range;const F7=Yi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Id)},(t,e)=>{t.setTime(+t+e*Yl)},(t,e)=>(e-t)/Yl,t=>t.getMinutes());F7.range;const U7=Yi(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Yl)},(t,e)=>(e-t)/Yl,t=>t.getUTCMinutes());U7.range;const B7=Yi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Id-t.getMinutes()*Yl)},(t,e)=>{t.setTime(+t+e*Dd)},(t,e)=>(e-t)/Dd,t=>t.getHours());B7.range;const z7=Yi(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Dd)},(t,e)=>(e-t)/Dd,t=>t.getUTCHours());z7.range;const ox=Yi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yl)/Gd,t=>t.getDate()-1);ox.range;const Sk=Yi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gd,t=>t.getUTCDate()-1);Sk.range;const xde=Yi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gd,t=>Math.floor(t/Gd));xde.range;function Vh(t){return Yi(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Yl)/N7)}const wk=Vh(0),j3=Vh(1),$_t=Vh(2),O_t=Vh(3),J_=Vh(4),L_t=Vh(5),N_t=Vh(6);wk.range;j3.range;$_t.range;O_t.range;J_.range;L_t.range;N_t.range;function Hh(t){return Yi(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/N7)}const Ck=Hh(0),T3=Hh(1),F_t=Hh(2),U_t=Hh(3),ev=Hh(4),B_t=Hh(5),z_t=Hh(6);Ck.range;T3.range;F_t.range;U_t.range;ev.range;B_t.range;z_t.range;const q7=Yi(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());q7.range;const V7=Yi(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());V7.range;const Wd=Yi(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Wd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Yi(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Wd.range;const Yd=Yi(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Yd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Yi(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Yd.range;function Sde(t,e,r,n,s,i){const o=[[eh,1,Id],[eh,5,5*Id],[eh,15,15*Id],[eh,30,30*Id],[i,1,Yl],[i,5,5*Yl],[i,15,15*Yl],[i,30,30*Yl],[s,1,Dd],[s,3,3*Dd],[s,6,6*Dd],[s,12,12*Dd],[n,1,Gd],[n,2,2*Gd],[r,1,N7],[e,1,LJ],[e,3,3*LJ],[t,1,uD]];function l(u,d,f){const p=d<u;p&&([u,d]=[d,u]);const m=f&&typeof f.range=="function"?f:c(u,d,f),h=m?m.range(u,+d+1):[];return p?h.reverse():h}function c(u,d,f){const p=Math.abs(d-u)/f,m=j7(([,,g])=>g).right(o,p);if(m===o.length)return t.every(A$(u/uD,d/uD,f));if(m===0)return P3.every(Math.max(A$(u,d,f),1));const[h,_]=o[p/o[m-1][2]<o[m][2]/p?m-1:m];return h.every(_)}return[l,c]}const[q_t,V_t]=Sde(Yd,V7,Ck,xde,z7,U7),[H_t,G_t]=Sde(Wd,q7,wk,ox,B7,F7);function dD(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function fD(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $y(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function W_t(t){var e=t.dateTime,r=t.date,n=t.time,s=t.periods,i=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=Oy(s),d=Ly(s),f=Oy(i),p=Ly(i),m=Oy(o),h=Ly(o),_=Oy(l),g=Ly(l),y=Oy(c),b=Ly(c),x={a:z,A:H,b:W,B:K,c:null,d:qJ,e:qJ,f:gvt,g:kvt,G:Pvt,H:pvt,I:mvt,j:hvt,L:wde,m:_vt,M:vvt,p:q,q:X,Q:GJ,s:WJ,S:yvt,u:bvt,U:xvt,V:Svt,w:wvt,W:Cvt,x:null,X:null,y:Avt,Y:Mvt,Z:jvt,"%":HJ},w={a:Q,A:Y,b:Z,B:re,c:null,d:VJ,e:VJ,f:Ivt,g:qvt,G:Hvt,H:Tvt,I:Evt,j:Rvt,L:Ade,m:Dvt,M:$vt,p:fe,q:de,Q:GJ,s:WJ,S:Ovt,u:Lvt,U:Nvt,V:Fvt,w:Uvt,W:Bvt,x:null,X:null,y:zvt,Y:Vvt,Z:Gvt,"%":HJ},C={a:j,A:R,b:D,B:O,c:N,d:BJ,e:BJ,f:cvt,g:UJ,G:FJ,H:zJ,I:zJ,j:ivt,L:lvt,m:svt,M:ovt,p:T,q:nvt,Q:dvt,s:fvt,S:avt,u:X_t,U:J_t,V:evt,w:Z_t,W:tvt,x:F,X:U,y:UJ,Y:FJ,Z:rvt,"%":uvt};x.x=k(r,x),x.X=k(n,x),x.c=k(e,x),w.x=k(r,w),w.X=k(n,w),w.c=k(e,w);function k(se,le){return function(ee){var J=[],me=-1,pe=0,Se=se.length,ve,xe,qe;for(ee instanceof Date||(ee=new Date(+ee));++me<Se;)se.charCodeAt(me)===37&&(J.push(se.slice(pe,me)),(xe=NJ[ve=se.charAt(++me)])!=null?ve=se.charAt(++me):xe=ve==="e"?" ":"0",(qe=le[ve])&&(ve=qe(ee,xe)),J.push(ve),pe=me+1);return J.push(se.slice(pe,me)),J.join("")}}function A(se,le){return function(ee){var J=$y(1900,void 0,1),me=P(J,se,ee+="",0),pe,Se;if(me!=ee.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(le&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(pe=fD($y(J.y,0,1)),Se=pe.getUTCDay(),pe=Se>4||Se===0?T3.ceil(pe):T3(pe),pe=Sk.offset(pe,(J.V-1)*7),J.y=pe.getUTCFullYear(),J.m=pe.getUTCMonth(),J.d=pe.getUTCDate()+(J.w+6)%7):(pe=dD($y(J.y,0,1)),Se=pe.getDay(),pe=Se>4||Se===0?j3.ceil(pe):j3(pe),pe=ox.offset(pe,(J.V-1)*7),J.y=pe.getFullYear(),J.m=pe.getMonth(),J.d=pe.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Se="Z"in J?fD($y(J.y,0,1)).getUTCDay():dD($y(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Se+5)%7:J.w+J.U*7-(Se+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,fD(J)):dD(J)}}function P(se,le,ee,J){for(var me=0,pe=le.length,Se=ee.length,ve,xe;me<pe;){if(J>=Se)return-1;if(ve=le.charCodeAt(me++),ve===37){if(ve=le.charAt(me++),xe=C[ve in NJ?le.charAt(me++):ve],!xe||(J=xe(se,ee,J))<0)return-1}else if(ve!=ee.charCodeAt(J++))return-1}return J}function T(se,le,ee){var J=u.exec(le.slice(ee));return J?(se.p=d.get(J[0].toLowerCase()),ee+J[0].length):-1}function j(se,le,ee){var J=m.exec(le.slice(ee));return J?(se.w=h.get(J[0].toLowerCase()),ee+J[0].length):-1}function R(se,le,ee){var J=f.exec(le.slice(ee));return J?(se.w=p.get(J[0].toLowerCase()),ee+J[0].length):-1}function D(se,le,ee){var J=y.exec(le.slice(ee));return J?(se.m=b.get(J[0].toLowerCase()),ee+J[0].length):-1}function O(se,le,ee){var J=_.exec(le.slice(ee));return J?(se.m=g.get(J[0].toLowerCase()),ee+J[0].length):-1}function N(se,le,ee){return P(se,e,le,ee)}function F(se,le,ee){return P(se,r,le,ee)}function U(se,le,ee){return P(se,n,le,ee)}function z(se){return o[se.getDay()]}function H(se){return i[se.getDay()]}function W(se){return c[se.getMonth()]}function K(se){return l[se.getMonth()]}function q(se){return s[+(se.getHours()>=12)]}function X(se){return 1+~~(se.getMonth()/3)}function Q(se){return o[se.getUTCDay()]}function Y(se){return i[se.getUTCDay()]}function Z(se){return c[se.getUTCMonth()]}function re(se){return l[se.getUTCMonth()]}function fe(se){return s[+(se.getUTCHours()>=12)]}function de(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var le=k(se+="",x);return le.toString=function(){return se},le},parse:function(se){var le=A(se+="",!1);return le.toString=function(){return se},le},utcFormat:function(se){var le=k(se+="",w);return le.toString=function(){return se},le},utcParse:function(se){var le=A(se+="",!0);return le.toString=function(){return se},le}}}var NJ={"-":"",_:" ",0:"0"},oo=/^\s*\d+/,Y_t=/^%/,K_t=/[\\^$*+?|[\]().{}]/g;function cs(t,e,r){var n=t<0?"-":"",s=(n?-t:t)+"",i=s.length;return n+(i<r?new Array(r-i+1).join(e)+s:s)}function Q_t(t){return t.replace(K_t,"\\$&")}function Oy(t){return new RegExp("^(?:"+t.map(Q_t).join("|")+")","i")}function Ly(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Z_t(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function X_t(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function J_t(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function evt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function tvt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function FJ(t,e,r){var n=oo.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function UJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rvt(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nvt(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function svt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function BJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ivt(t,e,r){var n=oo.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function zJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ovt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function avt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function lvt(t,e,r){var n=oo.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function cvt(t,e,r){var n=oo.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function uvt(t,e,r){var n=Y_t.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function dvt(t,e,r){var n=oo.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function fvt(t,e,r){var n=oo.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function qJ(t,e){return cs(t.getDate(),e,2)}function pvt(t,e){return cs(t.getHours(),e,2)}function mvt(t,e){return cs(t.getHours()%12||12,e,2)}function hvt(t,e){return cs(1+ox.count(Wd(t),t),e,3)}function wde(t,e){return cs(t.getMilliseconds(),e,3)}function gvt(t,e){return wde(t,e)+"000"}function _vt(t,e){return cs(t.getMonth()+1,e,2)}function vvt(t,e){return cs(t.getMinutes(),e,2)}function yvt(t,e){return cs(t.getSeconds(),e,2)}function bvt(t){var e=t.getDay();return e===0?7:e}function xvt(t,e){return cs(wk.count(Wd(t)-1,t),e,2)}function Cde(t){var e=t.getDay();return e>=4||e===0?J_(t):J_.ceil(t)}function Svt(t,e){return t=Cde(t),cs(J_.count(Wd(t),t)+(Wd(t).getDay()===4),e,2)}function wvt(t){return t.getDay()}function Cvt(t,e){return cs(j3.count(Wd(t)-1,t),e,2)}function Avt(t,e){return cs(t.getFullYear()%100,e,2)}function kvt(t,e){return t=Cde(t),cs(t.getFullYear()%100,e,2)}function Mvt(t,e){return cs(t.getFullYear()%1e4,e,4)}function Pvt(t,e){var r=t.getDay();return t=r>=4||r===0?J_(t):J_.ceil(t),cs(t.getFullYear()%1e4,e,4)}function jvt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+cs(e/60|0,"0",2)+cs(e%60,"0",2)}function VJ(t,e){return cs(t.getUTCDate(),e,2)}function Tvt(t,e){return cs(t.getUTCHours(),e,2)}function Evt(t,e){return cs(t.getUTCHours()%12||12,e,2)}function Rvt(t,e){return cs(1+Sk.count(Yd(t),t),e,3)}function Ade(t,e){return cs(t.getUTCMilliseconds(),e,3)}function Ivt(t,e){return Ade(t,e)+"000"}function Dvt(t,e){return cs(t.getUTCMonth()+1,e,2)}function $vt(t,e){return cs(t.getUTCMinutes(),e,2)}function Ovt(t,e){return cs(t.getUTCSeconds(),e,2)}function Lvt(t){var e=t.getUTCDay();return e===0?7:e}function Nvt(t,e){return cs(Ck.count(Yd(t)-1,t),e,2)}function kde(t){var e=t.getUTCDay();return e>=4||e===0?ev(t):ev.ceil(t)}function Fvt(t,e){return t=kde(t),cs(ev.count(Yd(t),t)+(Yd(t).getUTCDay()===4),e,2)}function Uvt(t){return t.getUTCDay()}function Bvt(t,e){return cs(T3.count(Yd(t)-1,t),e,2)}function zvt(t,e){return cs(t.getUTCFullYear()%100,e,2)}function qvt(t,e){return t=kde(t),cs(t.getUTCFullYear()%100,e,2)}function Vvt(t,e){return cs(t.getUTCFullYear()%1e4,e,4)}function Hvt(t,e){var r=t.getUTCDay();return t=r>=4||r===0?ev(t):ev.ceil(t),cs(t.getUTCFullYear()%1e4,e,4)}function Gvt(){return"+0000"}function HJ(){return"%"}function GJ(t){return+t}function WJ(t){return Math.floor(+t/1e3)}var Qg,Mde,Pde;Wvt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Wvt(t){return Qg=W_t(t),Mde=Qg.format,Qg.parse,Pde=Qg.utcFormat,Qg.utcParse,Qg}function Yvt(t){return new Date(t)}function Kvt(t){return t instanceof Date?+t:+new Date(+t)}function H7(t,e,r,n,s,i,o,l,c,u){var d=hde(),f=d.invert,p=d.domain,m=u(".%L"),h=u(":%S"),_=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function C(k){return(c(k)<k?m:l(k)<k?h:o(k)<k?_:i(k)<k?g:n(k)<k?s(k)<k?y:b:r(k)<k?x:w)(k)}return d.invert=function(k){return new Date(f(k))},d.domain=function(k){return arguments.length?p(Array.from(k,Kvt)):p().map(Yvt)},d.ticks=function(k){var A=p();return t(A[0],A[A.length-1],k??10)},d.tickFormat=function(k,A){return A==null?C:u(A)},d.nice=function(k){var A=p();return(!k||typeof k.range!="function")&&(k=e(A[0],A[A.length-1],k??10)),k?p(vde(A,k)):d},d.copy=function(){return ix(d,H7(t,e,r,n,s,i,o,l,c,u))},d}function jde(){return rf.apply(H7(H_t,G_t,Wd,q7,wk,ox,B7,F7,eh,Mde).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Qvt(){return rf.apply(H7(q_t,V_t,Yd,V7,Ck,Sk,z7,U7,eh,Pde).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zvt(){var t=0,e=1,r,n,s,i,o=Wl,l=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(s===0?.5:(f=(i(f)-r)*s,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([t,e]=f,r=i(t=+t),n=i(e=+e),s=r===n?0:1/(n-r),u):[t,e]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(p){var m,h;return arguments.length?([m,h]=p,o=f(m,h),u):[o(0),o(1)]}}return u.range=d(yk),u.rangeRound=d(mde),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return i=f,r=f(t),n=f(e),s=r===n?0:1/(n-r),u}}function Xvt(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Tde(){var t=xk(Zvt()(Wl));return t.copy=function(){return Xvt(t,Tde())},Fgt.apply(t,arguments)}function Ede(t){return t.type==="piecewise"?bde(t.thresholds,t.colors):Tde([t.min??0,t.max??100],t.color)}function tv(t){return t.values?w3(t.values,t.colors).unknown(t.unknownColor??null):w3(t.colors.map((e,r)=>r),t.colors).unknown(t.unknownColor??null)}function w_(t){return t.type==="ordinal"?tv(t):Ede(t)}function Rde(t,e,r){const{tickMaxStep:n,tickMinStep:s,tickNumber:i}=t,o=s===void 0?999:Math.floor(Math.abs(e[1]-e[0])/s),l=n===void 0?2:Math.ceil(Math.abs(e[1]-e[0])/n);return Math.min(o,Math.max(l,i??r))}function Ide(t,e){return e[1]-e[0]===0?1:t/((e[1]-e[0])/100)}function G7(t){return Math.floor(Math.abs(t)/50)}function Dde(t,e){const r=yde(t,e),n=r.ticks,{negativeScale:s,linearScale:i,positiveScale:o}=Jvt(r);return r.ticks=l=>{const c=n(l),u=r.constant();let d=0,f=0,p=0;c.forEach(h=>{h>-u&&h<u&&(f+=1),h<=-u&&(d+=1),h>=u&&(p+=1)});const m=[];if(d>0&&m.push(...s.ticks(d)),f>0){const h=i.ticks(f);m.at(-1)===h[0]?m.push(...h.slice(1)):m.push(...h)}if(p>0){const h=o.ticks(p);m.at(-1)===h[0]?m.push(...h.slice(1)):m.push(...h)}return m},r.tickFormat=(l=10,c)=>{const u=r.constant(),[d,f]=r.domain(),p=f-d,m=s.domain(),h=m[1]-m[0],g=(p===0?0:h/p)*l,y=i.domain(),b=y[1]-y[0],w=(p===0?0:b/p)*l,C=o.domain(),k=C[1]-C[0],P=(p===0?0:k/p)*l,T=s.tickFormat(g,c),j=i.tickFormat(w,c),R=o.tickFormat(P,c);return D=>(D.valueOf()<=-u?T:D.valueOf()>=u?R:j)(D)},r.copy=()=>Dde(r.domain(),r.range()).constant(r.constant()),r}function Jvt(t){const e=t.constant(),r=t.domain(),n=[r[0],Math.min(r[1],-e)],s=M3(n,t.range()),i=[Math.max(r[0],-e),Math.min(r[1],e)],o=O7(i,t.range()),l=[Math.max(r[0],e),r[1]],c=M3(l,t.range());return{negativeScale:s,linearScale:o,positiveScale:c}}function Ak(t,e,r){switch(t){case"log":return M3(e,r);case"pow":return L7(e,r);case"sqrt":return D_t(e,r);case"time":return jde(e,r);case"utc":return Qvt(e,r);case"symlog":return Dde(e,r);default:return O7(e,r)}}const j$=t=>t?.[0]instanceof Date;function T$(t,e,r){const n=jde(t,e);return(s,{location:i})=>i==="tick"?n.tickFormat(r)(s):`${s.toLocaleString()}`}let YJ,KJ;class e1t{types=new Set;constructor(){if(YJ)throw new Error("You can only create one instance!");YJ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}class t1t{types=new Set;constructor(){if(KJ)throw new Error("You can only create one instance!");KJ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}const kk=new e1t;kk.addType("bar");kk.addType("line");kk.addType("scatter");const $de=new t1t;$de.addType("radar");function W7(t){return kk.getTypes().has(t)}const r1t=(t,e,r,n)=>{const s=new Set;return Object.keys(e).filter(W7).forEach(o=>{const l=r[o]?.series??{},c=e[o].axisTooltipGetter?.(l);c!==void 0&&c.forEach(({axisId:u,direction:d})=>{d===t&&s.add(u??n)})}),s};function ao(t){return t.bandwidth!==void 0}function n1t(t){return ao(t)&&t.paddingOuter!==void 0}function s1t(t,e,r){const n=e==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return r?[n[1],n[0]]:n}const i1t=.2,o1t=.1;function Ode({scales:t,drawingArea:e,formattedSeries:r,axis:n,seriesConfig:s,axisDirection:i,zoomMap:o,domains:l}){if(n===void 0)return{axis:{},axisIds:[]};const c=r1t(i,s,r,n[0].id),u={};return n.forEach(d=>{const f=d,p=t[f.id],m=o?.get(f.id),h=m?[m.start,m.end]:[0,100],_=s1t(e,i,f.reverse??!1),g=!f.ignoreTooltip&&c.has(f.id),y=f.data??[];if(ao(p)){const k=i==="y"?[_[1],_[0]]:_;if(n1t(p)&&Hd(f)){const A=f.categoryGapRatio??i1t,P=f.barGapRatio??o1t;u[f.id]=ce({offset:0,height:0,categoryGapRatio:A,barGapRatio:P,triggerTooltip:g},f,{data:y,scale:p,tickNumber:f.data.length,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?tv(ce({values:f.data},f.colorMap)):w_(f.colorMap))})}if(Vp(f)&&(u[f.id]=ce({offset:0,height:0,triggerTooltip:g},f,{data:y,scale:p,tickNumber:f.data.length,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?tv(ce({values:f.data},f.colorMap)):w_(f.colorMap))})),j$(f.data)){const A=T$(f.data,k,f.tickNumber);u[f.id].valueFormatter=f.valueFormatter??A}return}if(f.scaleType==="band"||f.scaleType==="point")return;const b=l[f.id].tickNumber,x=f,w=x.scaleType??"linear",C=Ide(b,h);u[f.id]=ce({offset:0,height:0,triggerTooltip:g},x,{data:y,scaleType:w,scale:p,tickNumber:C,colorScale:x.colorMap&&Ede(x.colorMap),valueFormatter:f.valueFormatter??Agt(C,Ak(w,_.map(k=>p.invert(k)),_))})}),{axis:u,axisIds:n.map(({id:d})=>d)}}function a1t(t){return t!=null}function l1t(t,e,r,n){const s=t?.length??0,i=Math.floor(e*s/100),o=Math.ceil(r*s/100);return function(c,u){return(c[n]??t?.[u])==null?!0:u>=i&&u<o}}function c1t(t,e,r,n,s){const i=t[0].valueOf(),o=t[1].valueOf(),l=i+e*(o-i)/100,c=i+r*(o-i)/100;return function(d,f){const p=d[n]??s?.[f];return p==null?!0:p>=l&&p<=c}}const u1t=t=>({currentAxisId:e,seriesXAxisId:r,seriesYAxisId:n,isDefaultAxis:s})=>(i,o)=>!(e===r?n:r)||s?Object.values(t??{})[0]?.(i,o)??!0:[n,r].filter(u=>u!==e).map(u=>t[u??""]).filter(a1t).every(u=>u(i,o)),QJ=t=>(e=[])=>e.reduce((r,n)=>{const{zoom:s,id:i,reverse:o}=n,l=P7(s,i,t,o);return l&&(r[i]=l),r},{}),d1t=.2;function Lde(t,e,r){const n=e==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return r.reverse?[n[1],n[0]]:n}function Nde(t,e){const r=[0,1];if(Hd(t)){const i=t.categoryGapRatio??d1t;return vk(e,r).paddingInner(i).paddingOuter(i/2)}if(Vp(t))return ude(e,r);const n=t.scaleType??"linear",s=Ak(n,e,r);return Mgt(t)&&t.constant!=null&&s.constant(t.constant),s}const Fde=(t,e)=>{const r=t[1]-t[0],n=e[1]-e[0],s=t[0]-e[0]*r/n,i=t[1]+(100-e[1])*r/n;return[s,i]},f1t=(t,e,r,n,s,i,o)=>{const l=r==="x"?n[t].xExtremumGetter:n[t].yExtremumGetter,c=i[t]?.series??{};return l?.({series:c,axis:e,axisIndex:s,isDefaultAxis:s===0,getFilters:o})??[1/0,-1/0]};function Mk(t,e,r,n,s,i){const o=Object.keys(r).filter(W7);let l=[1/0,-1/0];for(const c of o){const[u,d]=f1t(c,t,e,r,n,s,i);l=[Math.min(l[0],u),Math.max(l[1],d)]}return Number.isNaN(l[0])||Number.isNaN(l[1])?[1/0,-1/0]:l}const p1t=(t,e,r,n)=>{if(t.domainLimit!==void 0)return t.domainLimit;if(e==="x")for(const s of n.line?.seriesOrder??[]){const i=n.line.series[s];if(i.xAxisId===t.id||i.xAxisId===void 0&&r===0)return"strict"}return"nice"};function Ude(t,e,r){return Ak(t??"linear",e,[0,1]).nice(r).domain()}function Bde(t,e,r,n,[s,i],o,l){const c=qde(t,e,r,n,l);let u=Vde(t,s,i);if(typeof c=="function"){const{min:f,max:p}=c(s.valueOf(),i.valueOf());u[0]=f,u[1]=p}const d=Rde(t,u,o);return c==="nice"&&(u=Ude(t.scaleType,u,d)),u=["min"in t?t.min??u[0]:u[0],"max"in t?t.max??u[1]:u[1]],{domain:u,tickNumber:d}}function zde(t,e,r,n,[s,i],o,l){const c=qde(t,e,r,n,l);let u=Vde(t,s,i);if(typeof c=="function"){const{min:d,max:f}=c(s.valueOf(),i.valueOf());u[0]=d,u[1]=f}return c==="nice"&&(u=Ude(t.scaleType,u,o)),[t.min??u[0],t.max??u[1]]}function qde(t,e,r,n,s){return s?p1t(t,e,r,n):t.domainLimit??"nice"}function Vde(t,e,r){let n=e,s=r;return"max"in t&&t.max!=null&&t.max<e&&(n=t.max),"min"in t&&t.min!=null&&t.min>e&&(s=t.min),!("min"in t)&&!("max"in t)?[n,s]:[t.min??n,t.max??s]}class m1t{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,r){let n=this.length++;for(;n>0;){const s=n-1>>1,i=this.values[s];if(r>=i)break;this.ids[n]=this.ids[s],this.values[n]=i,n=s}this.ids[n]=e,this.values[n]=r}pop(){if(this.length===0)return;const e=this.ids,r=this.values,n=e[0],s=--this.length;if(s>0){const i=e[s],o=r[s];let l=0;const c=s>>1;for(;l<c;){const u=(l<<1)+1,d=u+1,f=u+(+(d<s)&+(r[d]<r[u]));if(r[f]>=o)break;e[l]=e[f],r[l]=r[f],l=f}e[l]=i,r[l]=o}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const ZJ=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],pD=3;class Y7{static from(e,r=0){if(r%8!==0)throw new Error("byteOffset must be 8-byte aligned.");if(!e||e.byteLength===void 0||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[n,s]=new Uint8Array(e,r+0,2);if(n!==251)throw new Error("Data does not appear to be in a Flatbush format.");const i=s>>4;if(i!==pD)throw new Error(`Got v${i} data when expected v${pD}.`);const o=ZJ[s&15];if(!o)throw new Error("Unrecognized array type.");const[l]=new Uint16Array(e,r+2,1),[c]=new Uint32Array(e,r+4,1);return new Y7(c,l,o,void 0,e,r)}constructor(e,r=16,n=Float64Array,s=ArrayBuffer,i,o=0){if(e===void 0)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.byteOffset=o;let l=e,c=l;this._levelBounds=[l*4];do l=Math.ceil(l/this.nodeSize),c+=l,this._levelBounds.push(c*4);while(l!==1);this.ArrayType=n,this.IndexArrayType=c<16384?Uint16Array:Uint32Array;const u=ZJ.indexOf(n),d=c*4*n.BYTES_PER_ELEMENT;if(u<0)throw new Error(`Unexpected typed array class: ${n}.`);if(i)this.data=i,this._boxes=new n(i,o+8,c*4),this._indices=new this.IndexArrayType(i,o+8+d,c),this._pos=c*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{const f=this.data=new s(8+d+c*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(f,8,c*4),this._indices=new this.IndexArrayType(f,8+d,c),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(f,0,2).set([251,(pD<<4)+u]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=e}this._queue=new m1t}add(e,r,n=e,s=r){const i=this._pos>>2,o=this._boxes;return this._indices[i]=i,o[this._pos++]=e,o[this._pos++]=r,o[this._pos++]=n,o[this._pos++]=s,e<this.minX&&(this.minX=e),r<this.minY&&(this.minY=r),n>this.maxX&&(this.maxX=n),s>this.maxY&&(this.maxY=s),i}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize){e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,e[this._pos++]=this.maxY;return}const r=this.maxX-this.minX||1,n=this.maxY-this.minY||1,s=new Uint32Array(this.numItems),i=65535;for(let o=0,l=0;o<this.numItems;o++){const c=e[l++],u=e[l++],d=e[l++],f=e[l++],p=Math.floor(i*((c+d)/2-this.minX)/r),m=Math.floor(i*((u+f)/2-this.minY)/n);s[o]=_1t(p,m)}E$(s,e,this._indices,0,this.numItems-1,this.nodeSize);for(let o=0,l=0;o<this._levelBounds.length-1;o++){const c=this._levelBounds[o];for(;l<c;){const u=l;let d=e[l++],f=e[l++],p=e[l++],m=e[l++];for(let h=1;h<this.nodeSize&&l<c;h++)d=Math.min(d,e[l++]),f=Math.min(f,e[l++]),p=Math.max(p,e[l++]),m=Math.max(m,e[l++]);this._indices[this._pos>>2]=u,e[this._pos++]=d,e[this._pos++]=f,e[this._pos++]=p,e[this._pos++]=m}}}search(e,r,n,s,i){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let o=this._boxes.length-4;const l=[],c=[];for(;o!==void 0;){const u=Math.min(o+this.nodeSize*4,XJ(o,this._levelBounds));for(let d=o;d<u;d+=4){if(n<this._boxes[d]||s<this._boxes[d+1]||e>this._boxes[d+2]||r>this._boxes[d+3])continue;const f=this._indices[d>>2]|0;o>=this.numItems*4?l.push(f):(i===void 0||i(f))&&(c.push(f),c.push(this._boxes[d]),c.push(this._boxes[d+1]))}o=l.pop()}return c}neighbors(e,r,n=1/0,s=1/0,i,o=h1t){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let l=this._boxes.length-4;const c=this._queue,u=[];e:for(;l!==void 0;){const d=Math.min(l+this.nodeSize*4,XJ(l,this._levelBounds));for(let f=l;f<d;f+=4){const p=this._indices[f>>2]|0,m=this._boxes[f],h=this._boxes[f+1],_=this._boxes[f+2],g=this._boxes[f+3],y=e<m?m-e:e>_?e-_:0,b=r<h?h-r:r>g?r-g:0,x=o(y,b);x>s||(l>=this.numItems*4?c.push(p<<1,x):(i===void 0||i(p))&&c.push((p<<1)+1,x))}for(;c.length&&c.peek()&1;)if(c.peekValue()>s||(u.push(c.pop()>>1),u.length===n))break e;l=c.length?c.pop()>>1:void 0}return c.clear(),u}}function h1t(t,e){return t*t+e*e}function XJ(t,e){let r=0,n=e.length-1;for(;r<n;){const s=r+n>>1;e[s]>t?n=s:r=s+1}return e[r]}function E$(t,e,r,n,s,i){if(Math.floor(n/i)>=Math.floor(s/i))return;const o=t[n],l=t[n+s>>1],c=t[s];let u=c;const d=Math.max(o,l);c>d?u=d:d===o?u=Math.max(l,c):d===l&&(u=Math.max(o,c));let f=n-1,p=s+1;for(;;){do f++;while(t[f]<u);do p--;while(t[p]>u);if(f>=p)break;g1t(t,e,r,f,p)}E$(t,e,r,n,p,i),E$(t,e,r,p+1,s,i)}function g1t(t,e,r,n,s){const i=t[n];t[n]=t[s],t[s]=i;const o=4*n,l=4*s,c=e[o],u=e[o+1],d=e[o+2],f=e[o+3];e[o]=e[l],e[o+1]=e[l+1],e[o+2]=e[l+2],e[o+3]=e[l+3],e[l]=c,e[l+1]=u,e[l+2]=d,e[l+3]=f;const p=r[n];r[n]=r[s],r[s]=p}function _1t(t,e){let r=t^e,n=65535^r,s=65535^(t|e),i=t&(e^65535),o=r|n>>1,l=r>>1^r,c=s>>1^n&i>>1^s,u=r&s>>1^i>>1^i;r=o,n=l,s=c,i=u,o=r&r>>2^n&n>>2,l=r&n>>2^n&(r^n)>>2,c^=r&s>>2^n&i>>2,u^=n&s>>2^(r^n)&i>>2,r=o,n=l,s=c,i=u,o=r&r>>4^n&n>>4,l=r&n>>4^n&(r^n)>>4,c^=r&s>>4^n&i>>4,u^=n&s>>4^(r^n)&i>>4,r=o,n=l,s=c,i=u,c^=r&s>>8^n&i>>8,u^=n&s>>8^(r^n)&i>>8,r=c^c>>1,n=u^u>>1;let d=t^e,f=n|65535^(d|r);return d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,(f<<1|d)>>>0}const v1t=t=>{const e=new Map;return t.forEach(r=>{e.set(r.axisId,r)}),e},Hde=t=>t.zoom,Gde=Vt([Hde],t=>t?.isInteracting),Hp=Vt([Hde],t=>t?.zoomData&&v1t(t?.zoomData)),JJ=Vt([Hp,(t,e)=>e],(t,e)=>t?.get(e)),ax=Vt([oc,Hc],(t,e)=>ce({},QJ("x")(t),QJ("y")(e)));Vt([ax,(t,e)=>e],(t,e)=>t[e]);const y1t=Vt([vl],function(e){return G7(e.width)}),b1t=Vt([vl],function(e){return G7(e.height)}),K7=Vt([oc,Mo,Gc,mk,y1t],function(e,r,n,s,i){const l={};return e?.forEach((c,u)=>{const d=c;if(Hd(d)||Vp(d)){l[d.id]={domain:d.data};return}const f=Mk(d,"x",n,u,r);l[d.id]=Bde(d,"x",u,r,f,i,s)}),l}),Q7=Vt([Hc,Mo,Gc,mk,b1t],function(e,r,n,s,i){const l={};return e?.forEach((c,u)=>{const d=c;if(Hd(d)||Vp(d)){l[d.id]={domain:d.data};return}const f=Mk(d,"y",n,u,r);l[d.id]=Bde(d,"y",u,r,f,i,s)}),l}),Wde=Vt([Hp,ax,oc,Hc,K7,Q7],(t,e,r,n,s,i)=>{if(!t||!e)return;let o=!1;const l={},c=[...r??[],...n??[]];for(let u=0;u<c.length;u+=1){const d=c[u];if(!e[d.id]||e[d.id].filterMode!=="discard")continue;const f=t.get(d.id);if(f===void 0||f.start<=0&&f.end>=100)continue;const p=u<(r?.length??0)?"x":"y";if(d.scaleType==="band"||d.scaleType==="point")l[d.id]=l1t(d.data,f.start,f.end,p);else{const{domain:m}=p==="x"?s[d.id]:i[d.id];l[d.id]=c1t(m,f.start,f.end,p,d.data)}o=!0}if(o)return u1t(l)}),x1t=Vt([oc,Mo,Gc,Hp,ax,Wde,mk,K7],(t,e,r,n,s,i,o,l)=>{const c={};return t?.forEach((u,d)=>{const f=l[u.id].domain;if(Hd(u)||Vp(u)){c[u.id]=f;return}const p=n?.get(u.id),m=s?.[u.id],h=p===void 0&&!m?i:void 0;if(!h){c[u.id]=f;return}const _=l[u.id].tickNumber,g=Mk(u,"x",r,d,e,h);c[u.id]=zde(u,"x",d,e,g,_,o)}),c},{memoizeOptions:{resultEqualityCheck:(t,e)=>vp(t,e)}}),S1t=Vt([Hc,Mo,Gc,Hp,ax,Wde,mk,Q7],(t,e,r,n,s,i,o,l)=>{const c={};return t?.forEach((u,d)=>{const f=l[u.id].domain;if(Hd(u)||Vp(u)){c[u.id]=f;return}const p=n?.get(u.id),m=s?.[u.id],h=p===void 0&&!m?i:void 0;if(!h){c[u.id]=f;return}const _=l[u.id].tickNumber,g=Mk(u,"y",r,d,e,h);c[u.id]=zde(u,"y",d,e,g,_,o)}),c},{memoizeOptions:{resultEqualityCheck:(t,e)=>vp(t,e)}}),Yde=Vt([oc,x1t],function(e,r){const n={};return e?.forEach(s=>{const i=s,o=r[i.id];n[i.id]=Nde(i,o)}),n}),Kde=Vt([Hc,S1t],function(e,r){const n={};return e?.forEach(s=>{const i=s,o=r[i.id];n[i.id]=Nde(i,o)}),n}),w1t=Vt([oc,Yde,vl,Hp],function(e,r,n,s){const i={};return e?.forEach(o=>{const l=o,c=s?.get(l.id),u=c?[c.start,c.end]:[0,100],d=Lde(n,"x",l),f=r[l.id].copy(),p=Fde(d,u);f.range(p),i[l.id]=f}),i}),C1t=Vt([Hc,Kde,vl,Hp],function(e,r,n,s){const i={};return e?.forEach(o=>{const l=o,c=s?.get(l.id),u=c?[c.start,c.end]:[0,100],d=Lde(n,"y",l),f=r[l.id].copy(),p=ao(f)?d.reverse():d,m=Fde(p,u);f.range(m),i[l.id]=f}),i}),Ba=Vt([oc,vl,Mo,Gc,Hp,K7,w1t],(t,e,r,n,s,i,o)=>Ode({scales:o,drawingArea:e,formattedSeries:r,axis:t,seriesConfig:n,axisDirection:"x",zoomMap:s,domains:i})),za=Vt([Hc,vl,Mo,Gc,Hp,Q7,C1t],(t,e,r,n,s,i,o)=>Ode({scales:o,drawingArea:e,formattedSeries:r,axis:t,seriesConfig:n,axisDirection:"y",zoomMap:s,domains:i}));Vt([Ba,za,(t,e)=>e],(t,e,r)=>t?.axis[r]??e?.axis[r]);Vt([oc,Hc,(t,e)=>e],(t,e,r)=>{const n=t?.find(s=>s.id===r)??e?.find(s=>s.id===r)??null;if(n)return n});const A1t=Vt([oc],t=>t[0].id),k1t=Vt([Hc],t=>t[0].id),M1t=new Map,P1t=()=>M1t,j1t=Vt([Mo,Yde,Kde,A1t,k1t],function(e,r,n,s,i){const o=e.scatter,l=new Map;return o&&o.seriesOrder.forEach(c=>{const{data:u,xAxisId:d=s,yAxisId:f=i}=o.series[c],p=new Y7(u.length),m=r[d],h=n[f];for(const _ of u)p.add(m(_.x),h(_.y));p.finish(),l.set(c,p)}),l});function Zg(t){return t instanceof Date?t.getTime():t}function rv(t,e){const{scale:r,data:n,reverse:s}=t;if(!ao(r)){const o=r.invert(e);if(n===void 0)return-1;const l=Zg(o);return n?.findIndex((u,d)=>{const f=Zg(u);return f>l&&(d===0||Math.abs(l-f)<=Math.abs(l-Zg(n[d-1])))||f<=l&&(d===n.length-1||Math.abs(Zg(o)-f)<Math.abs(Zg(o)-Zg(n[d+1])))})}const i=r.bandwidth()===0?Math.floor((e-Math.min(...r.range())+r.step()/2)/r.step()):Math.floor((e-Math.min(...r.range()))/r.step());return i<0||i>=n.length?-1:s?n.length-1-i:i}function eee(t,e,r,n){if(!ao(t)){if(n===null){const s=t.invert(r);return Number.isNaN(s)?null:s}return e[n]}return n===null||n<0||n>=e.length?null:e[n]}function p0(t,e){const r=t.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r.matrixTransform(t.getScreenCTM().inverse())}const T1t=Object.is;function Qde(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let r=0,n=0;for(const s in t)if(r+=1,!T1t(t[s],e[s])||!(s in e))return!1;for(const s in e)n+=1;return r===n}const lx=({store:t})=>{const e=lr(function(){t.update(o=>ce({},o,{interaction:ce({},o.interaction,{pointer:null,item:null})}))}),r=lr(function(o){t.update(l=>{const c=l.interaction.item;return o?c===null||Object.keys(o).some(u=>o[u]!==c[u])?l:ce({},l,{interaction:ce({},l.interaction,{item:null})}):c===null?l:ce({},l,{interaction:ce({},l.interaction,{item:null})})})}),n=lr(function(o){t.update(l=>Qde(l.interaction.item,o)?l:ce({},l,{interaction:ce({},l.interaction,{item:o})}))}),s=lr(function(o){t.update(l=>ce({},l,{interaction:ce({},l.interaction,{pointer:o,lastUpdate:o!==null?"pointer":l.interaction.lastUpdate})}))});return{instance:{cleanInteraction:e,setItemInteraction:n,removeItemInteraction:r,setPointerCoordinate:s}}};lx.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:"pointer"}});lx.params={};const Pk=t=>t.interaction,E1t=Vt([Pk],t=>t!==void 0),Zde=Vt([Pk],t=>t?.item??null),Xde=Vt([Pk],t=>t?.pointer??null),cx=Vt([Xde],t=>t&&t.x),ux=Vt([Xde],t=>t&&t.y),R1t=Vt([Zde],t=>t!==null),Jde=Vt([Pk],t=>t?.lastUpdate),jk=(t,e)=>e;function R$(t,e,r=e.axisIds[0]){return Array.isArray(r)?r.map(n=>rv(e.axis[n],t)):rv(e.axis[r],t)}const efe=(t,e,r)=>{if(t===null)return null;const n=R$(t,e,r);return n===-1?null:n},Z7=Vt([cx,Ba,jk],efe),X7=Vt([ux,za,jk],efe),I1t=Vt([cx,ux,Ba,za],(t,e,r,n)=>[...t===null?[]:r.axisIds.map(s=>({axisId:s,dataIndex:R$(t,r,s)})),...e===null?[]:n.axisIds.map(s=>({axisId:s,dataIndex:R$(e,n,s)}))].filter(s=>s.dataIndex!==null&&s.dataIndex>=0));function tfe(t,e,r,n=e.axisIds[0]){return Array.isArray(n)?n.map((s,i)=>{const o=e.axis[s];return eee(o.scale,o.data,t,r[i])}):eee(e.axis[n].scale,e.axis[n].data,t,r)}const D1t=Vt([cx,Ba,Z7,jk],(t,e,r,n)=>t===null||e.axisIds.length===0?null:tfe(t,e,r,n)),$1t=Vt([ux,za,X7,jk],(t,e,r,n)=>t===null||e.axisIds.length===0?null:tfe(t,e,r,n)),rfe=Vt([cx,Ba],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:rv(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:vp}}),nfe=Vt([ux,za],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:rv(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:vp}}),O1t=Vt([rfe,nfe],(t,e)=>t.length>0||e.length>0),L1t=()=>{};function N1t(t,e,r,n){const s=NO(F1t,{store:t,selector:e,skip:n}).current;s.effect=r,I.useEffect(s.onMount(n),[n])}function F1t(t){const{store:e,selector:r,skip:n}=t;let s=!1,i;const o=()=>{l.dispose??=e.subscribe(c=>{const u=r(c);l.effect(i,u),i=u})},l={effect:L1t,dispose:null,onMount:c=>()=>{if(!c)return s||(s=!0,i=r(e.value)),o(),()=>{l.dispose?.(),l.dispose=null}}};return n||(s=!0,i=r(e.value),o()),l}function U1t(t){return t.setPointerCoordinate!==void 0}const zv=({params:t,store:e,seriesConfig:r,svgRef:n,instance:s})=>{const{xAxis:i,yAxis:o,dataset:l,onHighlightedAxisChange:c}=t,u=qr(e,vl),d=qr(e,Mo),f=qr(e,E1t),{axis:p,axisIds:m}=qr(e,Ba),{axis:h,axisIds:_}=qr(e,za);nde({controlled:t.highlightedAxis}),ei(()=>{t.highlightedAxis!==void 0&&e.update(w=>w.controlledCartesianAxisHighlight===t.highlightedAxis?w:ce({},w,{controlledCartesianAxisHighlight:t.highlightedAxis}))},[e,t.highlightedAxis]);const g=I.useRef(!0);I.useEffect(()=>{if(g.current){g.current=!1;return}e.update(w=>ce({},w,{cartesianAxis:ce({},w.cartesianAxis,{x:ode(i,l),y:ade(o,l)})}))},[r,u,i,o,l,e]);const y=m[0],b=_[0];N1t(e,I1t,(w,C)=>{if(!Object.is(w,C)){if(w.length!==C.length){c(C);return}w?.some(({axisId:k,dataIndex:A},P)=>C[P].axisId!==k||C[P].dataIndex!==A)&&c(C)}},!c);const x=U1t(s);return I.useEffect(()=>{const w=n.current;if(!f||!x||!w||t.disableAxisListener)return()=>{};const C=s.addInteractionListener("moveEnd",D=>{D.detail.activeGestures.pan||s.cleanInteraction()}),k=s.addInteractionListener("panEnd",D=>{D.detail.activeGestures.move||s.cleanInteraction()}),A=s.addInteractionListener("quickPressEnd",D=>{!D.detail.activeGestures.move&&!D.detail.activeGestures.pan&&s.cleanInteraction()}),P=D=>{const O=D.detail.srcEvent,N=D.detail.target,F=p0(w,O);if(D.detail.srcEvent.buttons>=1&&N?.hasPointerCapture(D.detail.srcEvent.pointerId)&&!N?.closest("[data-charts-zoom-slider]")&&N?.releasePointerCapture(D.detail.srcEvent.pointerId),!s.isPointInside(F.x,F.y,N)){s.cleanInteraction?.();return}s.setPointerCoordinate(F)},T=s.addInteractionListener("move",P),j=s.addInteractionListener("pan",P),R=s.addInteractionListener("quickPress",P);return()=>{T.cleanup(),C.cleanup(),j.cleanup(),k.cleanup(),R.cleanup(),A.cleanup()}},[n,e,p,y,h,b,s,t.disableAxisListener,f,x]),I.useEffect(()=>{const w=n.current,C=t.onAxisClick;if(w===null||!C)return()=>{};const k=s.addInteractionListener("tap",A=>{let P=null,T=!1;const j=p0(w,A.detail.srcEvent),R=rv(p[y],j.x);T=R!==-1,P=T?R:rv(h[b],j.y);const D=T?m[0]:_[0];if(P==null||P===-1)return;const O=(T?p:h)[D].data[P],N={};Object.keys(d).filter(F=>["bar","line"].includes(F)).forEach(F=>{d[F]?.seriesOrder.forEach(U=>{const z=d[F].series[U],H=z.xAxisId,W=z.yAxisId,K=T?H:W;(K===void 0||K===D)&&(N[U]=z.data[P])})}),C(A.detail.srcEvent,{dataIndex:P,axisValue:O,seriesValues:N})});return()=>{k.cleanup()}},[t.onAxisClick,d,n,p,m,h,_,y,b,s]),{}};zv.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0};zv.getDefaultizedParams=({params:t})=>ce({},t,{colors:t.colors??Xue,theme:t.theme??"light",defaultizedXAxis:ode(t.xAxis,t.dataset),defaultizedYAxis:ade(t.yAxis,t.dataset)});zv.getInitialState=t=>ce({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}},t.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:t.highlightedAxis});const dx=t=>t.keyboardNavigation,B1t=Vt([dx],t=>t?.item!=null),Tk=Vt([dx],t=>t?.item?.type),Ek=Vt([dx],t=>t?.item?.seriesId),Rk=Vt([dx],t=>t?.item?.dataIndex),z1t=Vt([dx],t=>!!t?.enableKeyboardNavigation),sfe=t=>(e,r,n,s,i)=>{if(e===void 0||r===void 0||n===void 0)return;const o=i[e]?.series[r];if(!o)return;let l=t==="x"?"xAxisId"in o&&o.xAxisId:"yAxisId"in o&&o.yAxisId;return(l===void 0||l===!1)&&(l=s.axisIds[0]),{axisId:l,dataIndex:n}},q1t=Vt([Tk,Ek,Rk,Ba,Mo],sfe("x")),V1t=Vt([Tk,Ek,Rk,za,Mo],sfe("y")),H1t=Vt([Tk,Ek,Rk],function(e,r,n){return r===void 0?null:{seriesId:r,dataIndex:e==="line"?void 0:n}}),fx=({store:t,svgRef:e,instance:r,params:n})=>{ei(()=>{t.update(o=>ce({},o,{brush:ce({},o.brush,{enabled:n.brushConfig.enabled,preventTooltip:n.brushConfig.preventTooltip,preventHighlight:n.brushConfig.preventHighlight})}))},[t,n.brushConfig.enabled,n.brushConfig.preventTooltip,n.brushConfig.preventHighlight]);const s=lr(function(l){t.update(c=>ce({},c,{brush:ce({},c.brush,{start:c.brush.start??l,current:l})}))}),i=lr(function(){t.update(l=>ce({},l,{brush:ce({},l.brush,{start:null,current:null})}))});return I.useEffect(()=>{const o=e.current;if(o===null||!t.getSnapshot().brush.enabled)return()=>{};const l=m=>{if(m.detail.target?.closest("[data-charts-zoom-slider]"))return;const h=p0(o,{clientX:m.detail.initialCentroid.x,clientY:m.detail.initialCentroid.y});s(h)},c=m=>{const h=p0(o,{clientX:m.detail.centroid.x,clientY:m.detail.centroid.y});s(h)},u=r.addInteractionListener("brushStart",l),d=r.addInteractionListener("brush",c),f=r.addInteractionListener("brushCancel",i),p=r.addInteractionListener("brushEnd",i);return()=>{u.cleanup(),d.cleanup(),p.cleanup(),f.cleanup()}},[e,r,t,i,s]),{instance:{setBrushCoordinates:s,clearBrush:i}}};fx.params={brushConfig:!0};fx.getDefaultizedParams=({params:t})=>ce({},t,{brushConfig:{enabled:t?.brushConfig?.enabled??!1,preventTooltip:t?.brushConfig?.preventTooltip??!0,preventHighlight:t?.brushConfig?.preventHighlight??!0}});fx.getInitialState=t=>({brush:{enabled:t.brushConfig.enabled,preventTooltip:t.brushConfig.preventTooltip,preventHighlight:t.brushConfig.preventHighlight,start:null,current:null}});const Gu=t=>t.brush;Vt([Gu],t=>t?.start);Vt([Gu],t=>t?.current);const G1t=Vt([Gu],t=>t?.start?.x??null),W1t=Vt([Gu],t=>t?.start?.y??null),Y1t=Vt([Gu],t=>t?.current?.x??null),K1t=Vt([Gu],t=>t?.current?.y??null);Vt([G1t,W1t,Y1t,K1t],(t,e,r,n)=>t===null||e===null||r===null||n===null?null:{start:{x:t,y:e},current:{x:r,y:n}});const Q1t=Vt([Mo],t=>{let e=!1,r=!1;return t&&Object.entries(t).forEach(([n,s])=>{Object.values(s.series).some(i=>i.layout==="horizontal")&&(e=!0),n==="scatter"&&s.seriesOrder.length>0&&(r=!0)}),r?"xy":e?"y":"x"}),Z1t=Vt([ax],t=>{let e=!1,r=!1;return Object.values(t).forEach(n=>{n.axisDirection==="y"&&(r=!0),n.axisDirection==="x"&&(e=!0)}),e&&r?"xy":r?"y":e?"x":null});Vt([Q1t,Z1t],(t,e)=>e??t);Vt([Gu],t=>t?.enabled);const ife=Vt([Gu],t=>t?.enabled&&t?.start!==null&&t?.current!==null),Ik=Vt([Gu,ife],(t,e)=>e&&t?.preventHighlight),X1t=Vt([Gu,ife],(t,e)=>e&&t?.preventTooltip),qv=t=>t.controlledCartesianAxisHighlight,ofe=(t,e,r,n)=>n?[]:r!==void 0?r.filter(s=>e.axis[s.axisId]!==void 0).map(s=>s):t===null?[]:[{axisId:e.axisIds[0],dataIndex:t}],afe=Vt([Z7,Ba,qv,Ik],ofe);Vt([X7,za,qv,Ik],ofe);const lfe=(t,e,r,n,s,i,o)=>{if(o)return[];if(n!==void 0)return n.map(d=>ce({},d,{value:r.axis[d.axisId]?.data?.[d.dataIndex]})).filter(({value:d})=>d!==void 0);const l=e!==null&&{axisId:r.axisIds[0],dataIndex:t,value:e},c=s&&r.axis[s.axisId]?.data?.[s.dataIndex],u=s&&c!=null&&ce({},s,{value:c});if(i==="pointer"){if(l)return[l];if(u)return[u]}if(i==="keyboard"){if(u)return[u];if(l)return[l]}return[]},J1t=Vt([Z7,D1t,Ba,qv,q1t,Jde,Ik],lfe),eyt=Vt([X7,$1t,za,qv,V1t,Jde,Ik],lfe),cfe=(t,e)=>t===void 0?[e.axis[e.axisIds[0]]]:t.map(n=>e.axis[n.axisId]??null).filter(n=>n!==null);Vt([qv,Ba],cfe);Vt([qv,za],cfe);function tee(t,e){return t.id!==void 0?t:ce({id:e},t)}function ree(t){return t.colorMap?ce({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?tv(ce({values:t.data},t.colorMap)):w_(t.colorMap.type==="continuous"?ce({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function ufe(t,e){if(!t||t.length===0)return{axis:{},axisIds:[]};const r={},n=[];return t.forEach((s,i)=>{const o=s.dataKey,l=s.id??`defaultized-z-axis-${i}`;if(o===void 0||s.data!==void 0){r[l]=ree(tee(s,l)),n.push(l);return}if(e===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");r[l]=ree(tee(ce({},s,{data:e.map(c=>c[o])}),l)),n.push(l)}),{axis:r,axisIds:n}}const px=({params:t,store:e})=>{const{zAxis:r,dataset:n}=t,s=I.useRef(!0);return I.useEffect(()=>{if(s.current){s.current=!1;return}e.update(i=>ce({},i,{zAxis:ufe(r,n)}))},[r,n,e]),{}};px.params={zAxis:!0,dataset:!0};px.getInitialState=t=>({zAxis:ufe(t.zAxis,t.dataset)});const tyt=t=>t,ryt=Vt([tyt],t=>t.zAxis),Vv=({store:t,params:e})=>{nde({controlled:e.highlightedItem}),ei(()=>{t.update(s=>s.highlight.item===e.highlightedItem?s:ce({},s,{highlight:ce({},s.highlight,{item:e.highlightedItem})}))},[t,e.highlightedItem]);const r=lr(()=>{e.onHighlightChange?.(null),t.getSnapshot().highlight.item!==null&&t.update(i=>ce({},i,{highlight:{item:null,lastUpdate:"pointer"}}))}),n=lr(s=>{const i=t.getSnapshot().highlight.item;Qde(i,s)||(e.onHighlightChange?.(s),t.update(o=>ce({},o,{highlight:{item:s,lastUpdate:"pointer"}})))});return{instance:{clearHighlight:r,setHighlight:n}}};Vv.getDefaultizedParams=({params:t})=>ce({},t,{highlightedItem:t.highlightedItem??null});Vv.getInitialState=t=>({highlight:{item:t.highlightedItem,lastUpdate:"pointer"}});Vv.params={highlightedItem:!0,onHighlightChange:!0};function dfe(t){let e=1/0,r=-1/0;for(const n of t??[])n<e&&(e=n),n>r&&(r=n);return[e,r]}const nee=(t,e)=>e==="x"?{x:t,y:null}:{x:null,y:t},ffe=t=>{const{axis:e,getFilters:r,isDefaultAxis:n}=t,s=r?.({currentAxisId:e.id,isDefaultAxis:n}),i=s?e.data?.filter((o,l)=>s({x:null,y:null},l)):e.data;return dfe(i??[])},pfe=t=>e=>{const{series:r,axis:n,getFilters:s,isDefaultAxis:i}=e;return Object.keys(r).filter(o=>{const l=t==="x"?r[o].xAxisId:r[o].yAxisId;return l===n.id||i&&l===void 0}).reduce((o,l)=>{const{stackedData:c}=r[l],u=s?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:r[l].xAxisId,seriesYAxisId:r[l].yAxisId}),[d,f]=c?.reduce((p,m,h)=>u&&(!u(nee(m[0],t),h)||!u(nee(m[1],t),h))?p:[Math.min(...m,p[0]),Math.max(...m,p[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(d,o[0]),Math.max(f,o[1])]},[1/0,-1/0])},nyt=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?pfe("x")(t):ffe(t),syt=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?ffe(t):pfe("y")(t);function bn(t){return function(){return t}}const see=Math.abs,Do=Math.atan2,jd=Math.cos,iyt=Math.max,mD=Math.min,Pa=Math.sin,So=Math.sqrt,Lo=1e-12,kp=Math.PI,E3=kp/2,yp=2*kp;function oyt(t){return t>1?0:t<-1?kp:Math.acos(t)}function iee(t){return t>=1?E3:t<=-1?-E3:Math.asin(t)}const I$=Math.PI,D$=2*I$,Nm=1e-6,ayt=D$-Nm;function mfe(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function lyt(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return mfe;const r=10**e;return function(n){this._+=n[0];for(let s=1,i=n.length;s<i;++s)this._+=Math.round(arguments[s]*r)/r+n[s]}}class cyt{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?mfe:lyt(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,s){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+s}`}bezierCurveTo(e,r,n,s,i,o){this._append`C${+e},${+r},${+n},${+s},${this._x1=+i},${this._y1=+o}`}arcTo(e,r,n,s,i){if(e=+e,r=+r,n=+n,s=+s,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-e,u=s-r,d=o-e,f=l-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>Nm)if(!(Math.abs(f*c-u*d)>Nm)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let m=n-o,h=s-l,_=c*c+u*u,g=m*m+h*h,y=Math.sqrt(_),b=Math.sqrt(p),x=i*Math.tan((I$-Math.acos((_+p-g)/(2*y*b)))/2),w=x/b,C=x/y;Math.abs(w-1)>Nm&&this._append`L${e+w*d},${r+w*f}`,this._append`A${i},${i},0,0,${+(f*m>d*h)},${this._x1=e+C*c},${this._y1=r+C*u}`}}arc(e,r,n,s,i,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(s),c=n*Math.sin(s),u=e+l,d=r+c,f=1^o,p=o?s-i:i-s;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Nm||Math.abs(this._y1-d)>Nm)&&this._append`L${u},${d}`,n&&(p<0&&(p=p%D$+D$),p>ayt?this._append`A${n},${n},0,1,${f},${e-l},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:p>Nm&&this._append`A${n},${n},0,${+(p>=I$)},${f},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function Dk(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new cyt(e)}function uyt(t){return t.innerRadius}function dyt(t){return t.outerRadius}function fyt(t){return t.startAngle}function pyt(t){return t.endAngle}function myt(t){return t&&t.padAngle}function hyt(t,e,r,n,s,i,o,l){var c=r-t,u=n-e,d=o-s,f=l-i,p=f*c-d*u;if(!(p*p<Lo))return p=(d*(e-i)-f*(t-s))/p,[t+p*c,e+p*u]}function kw(t,e,r,n,s,i,o){var l=t-r,c=e-n,u=(o?i:-i)/So(l*l+c*c),d=u*c,f=-u*l,p=t+d,m=e+f,h=r+d,_=n+f,g=(p+h)/2,y=(m+_)/2,b=h-p,x=_-m,w=b*b+x*x,C=s-i,k=p*_-h*m,A=(x<0?-1:1)*So(iyt(0,C*C*w-k*k)),P=(k*x-b*A)/w,T=(-k*b-x*A)/w,j=(k*x+b*A)/w,R=(-k*b+x*A)/w,D=P-g,O=T-y,N=j-g,F=R-y;return D*D+O*O>N*N+F*F&&(P=j,T=R),{cx:P,cy:T,x01:-d,y01:-f,x11:P*(s/C-1),y11:T*(s/C-1)}}function hfe(){var t=uyt,e=dyt,r=bn(0),n=null,s=fyt,i=pyt,o=myt,l=null,c=Dk(u);function u(){var d,f,p=+t.apply(this,arguments),m=+e.apply(this,arguments),h=s.apply(this,arguments)-E3,_=i.apply(this,arguments)-E3,g=see(_-h),y=_>h;if(l||(l=d=c()),m<p&&(f=m,m=p,p=f),!(m>Lo))l.moveTo(0,0);else if(g>yp-Lo)l.moveTo(m*jd(h),m*Pa(h)),l.arc(0,0,m,h,_,!y),p>Lo&&(l.moveTo(p*jd(_),p*Pa(_)),l.arc(0,0,p,_,h,y));else{var b=h,x=_,w=h,C=_,k=g,A=g,P=o.apply(this,arguments)/2,T=P>Lo&&(n?+n.apply(this,arguments):So(p*p+m*m)),j=mD(see(m-p)/2,+r.apply(this,arguments)),R=j,D=j,O,N;if(T>Lo){var F=iee(T/p*Pa(P)),U=iee(T/m*Pa(P));(k-=F*2)>Lo?(F*=y?1:-1,w+=F,C-=F):(k=0,w=C=(h+_)/2),(A-=U*2)>Lo?(U*=y?1:-1,b+=U,x-=U):(A=0,b=x=(h+_)/2)}var z=m*jd(b),H=m*Pa(b),W=p*jd(C),K=p*Pa(C);if(j>Lo){var q=m*jd(x),X=m*Pa(x),Q=p*jd(w),Y=p*Pa(w),Z;if(g<kp)if(Z=hyt(z,H,Q,Y,q,X,W,K)){var re=z-Z[0],fe=H-Z[1],de=q-Z[0],se=X-Z[1],le=1/Pa(oyt((re*de+fe*se)/(So(re*re+fe*fe)*So(de*de+se*se)))/2),ee=So(Z[0]*Z[0]+Z[1]*Z[1]);R=mD(j,(p-ee)/(le-1)),D=mD(j,(m-ee)/(le+1))}else R=D=0}A>Lo?D>Lo?(O=kw(Q,Y,z,H,m,D,y),N=kw(q,X,W,K,m,D,y),l.moveTo(O.cx+O.x01,O.cy+O.y01),D<j?l.arc(O.cx,O.cy,D,Do(O.y01,O.x01),Do(N.y01,N.x01),!y):(l.arc(O.cx,O.cy,D,Do(O.y01,O.x01),Do(O.y11,O.x11),!y),l.arc(0,0,m,Do(O.cy+O.y11,O.cx+O.x11),Do(N.cy+N.y11,N.cx+N.x11),!y),l.arc(N.cx,N.cy,D,Do(N.y11,N.x11),Do(N.y01,N.x01),!y))):(l.moveTo(z,H),l.arc(0,0,m,b,x,!y)):l.moveTo(z,H),!(p>Lo)||!(k>Lo)?l.lineTo(W,K):R>Lo?(O=kw(W,K,q,X,p,-R,y),N=kw(z,H,Q,Y,p,-R,y),l.lineTo(O.cx+O.x01,O.cy+O.y01),R<j?l.arc(O.cx,O.cy,R,Do(O.y01,O.x01),Do(N.y01,N.x01),!y):(l.arc(O.cx,O.cy,R,Do(O.y01,O.x01),Do(O.y11,O.x11),!y),l.arc(0,0,p,Do(O.cy+O.y11,O.cx+O.x11),Do(N.cy+N.y11,N.cx+N.x11),y),l.arc(N.cx,N.cy,R,Do(N.y11,N.x11),Do(N.y01,N.x01),!y))):l.arc(0,0,p,C,w,y)}if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+s.apply(this,arguments)+ +i.apply(this,arguments))/2-kp/2;return[jd(f)*d,Pa(f)*d]},u.innerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:bn(+d),u):t},u.outerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:bn(+d),u):e},u.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:bn(+d),u):r},u.padRadius=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:bn(+d),u):n},u.startAngle=function(d){return arguments.length?(s=typeof d=="function"?d:bn(+d),u):s},u.endAngle=function(d){return arguments.length?(i=typeof d=="function"?d:bn(+d),u):i},u.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:bn(+d),u):o},u.context=function(d){return arguments.length?(l=d??null,u):l},u}function $k(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gfe(t){this._context=t}gfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function J7(t){return new gfe(t)}function _fe(t){return t[0]}function vfe(t){return t[1]}function yfe(t,e){var r=bn(!0),n=null,s=J7,i=null,o=Dk(l);t=typeof t=="function"?t:t===void 0?_fe:bn(t),e=typeof e=="function"?e:e===void 0?vfe:bn(e);function l(c){var u,d=(c=$k(c)).length,f,p=!1,m;for(n==null&&(i=s(m=o())),u=0;u<=d;++u)!(u<d&&r(f=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(f,u,c),+e(f,u,c));if(m)return i=null,m+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:bn(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:bn(+c),l):e},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:bn(!!c),l):r},l.curve=function(c){return arguments.length?(s=c,n!=null&&(i=s(n)),l):s},l.context=function(c){return arguments.length?(c==null?n=i=null:i=s(n=c),l):n},l}function gyt(t,e,r){var n=null,s=bn(!0),i=null,o=J7,l=null,c=Dk(u);t=typeof t=="function"?t:t===void 0?_fe:bn(+t),e=typeof e=="function"?e:bn(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?vfe:bn(+r);function u(f){var p,m,h,_=(f=$k(f)).length,g,y=!1,b,x=new Array(_),w=new Array(_);for(i==null&&(l=o(b=c())),p=0;p<=_;++p){if(!(p<_&&s(g=f[p],p,f))===y)if(y=!y)m=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=p-1;h>=m;--h)l.point(x[h],w[h]);l.lineEnd(),l.areaEnd()}y&&(x[p]=+t(g,p,f),w[p]=+e(g,p,f),l.point(n?+n(g,p,f):x[p],r?+r(g,p,f):w[p]))}if(b)return l=null,b+""||null}function d(){return yfe().defined(s).curve(o).context(i)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:bn(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:bn(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:bn(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:bn(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:bn(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:bn(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(t).y(e)},u.lineY1=function(){return d().x(t).y(r)},u.lineX1=function(){return d().x(n).y(e)},u.defined=function(f){return arguments.length?(s=typeof f=="function"?f:bn(!!f),u):s},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function _yt(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vyt(t){return t}function yyt(){var t=vyt,e=_yt,r=null,n=bn(0),s=bn(yp),i=bn(0);function o(l){var c,u=(l=$k(l)).length,d,f,p=0,m=new Array(u),h=new Array(u),_=+n.apply(this,arguments),g=Math.min(yp,Math.max(-yp,s.apply(this,arguments)-_)),y,b=Math.min(Math.abs(g)/u,i.apply(this,arguments)),x=b*(g<0?-1:1),w;for(c=0;c<u;++c)(w=h[m[c]=c]=+t(l[c],c,l))>0&&(p+=w);for(e!=null?m.sort(function(C,k){return e(h[C],h[k])}):r!=null&&m.sort(function(C,k){return r(l[C],l[k])}),c=0,f=p?(g-u*x)/p:0;c<u;++c,_=y)d=m[c],w=h[d],y=_+(w>0?w*f:0)+x,h[d]={data:l[d],index:c,value:w,startAngle:_,endAngle:y,padAngle:b};return h}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:bn(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,r=null,o):e},o.sort=function(l){return arguments.length?(r=l,e=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:bn(+l),o):n},o.endAngle=function(l){return arguments.length?(s=typeof l=="function"?l:bn(+l),o):s},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:bn(+l),o):i},o}class bfe{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function byt(t){return new bfe(t,!0)}function xyt(t){return new bfe(t,!1)}const xfe={draw(t,e){const r=So(e/kp);t.moveTo(r,0),t.arc(0,0,r,0,yp)}},Syt={draw(t,e){const r=So(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Sfe=So(1/3),wyt=Sfe*2,Cyt={draw(t,e){const r=So(e/wyt),n=r*Sfe;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Ayt={draw(t,e){const r=So(e),n=-r/2;t.rect(n,n,r,r)}},kyt=.8908130915292852,wfe=Pa(kp/10)/Pa(7*kp/10),Myt=Pa(yp/10)*wfe,Pyt=-jd(yp/10)*wfe,jyt={draw(t,e){const r=So(e*kyt),n=Myt*r,s=Pyt*r;t.moveTo(0,-r),t.lineTo(n,s);for(let i=1;i<5;++i){const o=yp*i/5,l=jd(o),c=Pa(o);t.lineTo(c*r,-l*r),t.lineTo(l*n-c*s,c*n+l*s)}t.closePath()}},hD=So(3),Tyt={draw(t,e){const r=-So(e/(hD*3));t.moveTo(0,r*2),t.lineTo(-hD*r,-r),t.lineTo(hD*r,-r),t.closePath()}},$l=-.5,Ol=So(3)/2,$$=1/So(12),Eyt=($$/2+1)*3,Ryt={draw(t,e){const r=So(e/Eyt),n=r/2,s=r*$$,i=n,o=r*$$+r,l=-i,c=o;t.moveTo(n,s),t.lineTo(i,o),t.lineTo(l,c),t.lineTo($l*n-Ol*s,Ol*n+$l*s),t.lineTo($l*i-Ol*o,Ol*i+$l*o),t.lineTo($l*l-Ol*c,Ol*l+$l*c),t.lineTo($l*n+Ol*s,$l*s-Ol*n),t.lineTo($l*i+Ol*o,$l*o-Ol*i),t.lineTo($l*l+Ol*c,$l*c-Ol*l),t.closePath()}},Cfe=[xfe,Syt,Cyt,Ayt,jyt,Tyt,Ryt];function Afe(t,e){let r=null,n=Dk(s);t=typeof t=="function"?t:bn(t||xfe),e=typeof e=="function"?e:bn(e===void 0?64:+e);function s(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return s.type=function(i){return arguments.length?(t=typeof i=="function"?i:bn(i),s):t},s.size=function(i){return arguments.length?(e=typeof i=="function"?i:bn(+i),s):e},s.context=function(i){return arguments.length?(r=i??null,s):r},s}function oee(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function e8(t,e){this._context=t,this._k=(1-e)/6}e8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:oee(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oee(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(n){return new e8(n,e)}return r.tension=function(n){return t(+n)},r})(0);function Iyt(t,e,r){var n=t._x1,s=t._y1,i=t._x2,o=t._y2;if(t._l01_a>Lo){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,s=(s*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Lo){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*u+t._x1*t._l23_2a-e*t._l12_2a)/d,o=(o*u+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,s,i,o,t._x2,t._y2)}function kfe(t,e){this._context=t,this._alpha=e}kfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Iyt(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Dyt=(function t(e){function r(n){return e?new kfe(n,e):new e8(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function aee(t){return t<0?-1:1}function lee(t,e,r){var n=t._x1-t._x0,s=e-t._x1,i=(t._y1-t._y0)/(n||s<0&&-0),o=(r-t._y1)/(s||n<0&&-0),l=(i*s+o*n)/(n+s);return(aee(i)+aee(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function cee(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function gD(t,e,r){var n=t._x0,s=t._y0,i=t._x1,o=t._y1,l=(i-n)/3;t._context.bezierCurveTo(n+l,s+l*e,i-l,o-l*r,i,o)}function R3(t){this._context=t}R3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gD(this,this._t0,cee(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gD(this,cee(this,r=lee(this,t,e)),r);break;default:gD(this,this._t0,r=lee(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Mfe(t){this._context=new Pfe(t)}(Mfe.prototype=Object.create(R3.prototype)).point=function(t,e){R3.prototype.point.call(this,e,t)};function Pfe(t){this._context=t}Pfe.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,s,i){this._context.bezierCurveTo(e,t,n,r,i,s)}};function uee(t){return new R3(t)}function $yt(t){return new Mfe(t)}function jfe(t){this._context=t}jfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=dee(t),s=dee(e),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],s[0][i],n[1][i],s[1][i],t[o],e[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function dee(t){var e,r=t.length-1,n,s=new Array(r),i=new Array(r),o=new Array(r);for(s[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)s[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(s[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=s[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(s[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)s[e]=(o[e]-s[e+1])/i[e];for(i[r-1]=(t[r]+s[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-s[e+1];return[s,i]}function Oyt(t){return new jfe(t)}function Ok(t,e){this._context=t,this._t=e}Ok.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function Lyt(t){return new Ok(t,.5)}function Nyt(t){return new Ok(t,0)}function Fyt(t){return new Ok(t,1)}function nv(t,e){if((o=t.length)>1)for(var r=1,n,s,i=t[e[0]],o,l=i.length;r<o;++r)for(s=i,i=t[e[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(s[n][1])?s[n][0]:s[n][1]}function sv(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Uyt(t,e){return t[e]}function Byt(t){const e=[];return e.key=t,e}function Tfe(){var t=bn([]),e=sv,r=nv,n=Uyt;function s(i){var o=Array.from(t.apply(this,arguments),Byt),l,c=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(f,o[l].key,u,i)]).data=f;for(l=0,d=$k(e(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return s.keys=function(i){return arguments.length?(t=typeof i=="function"?i:bn(Array.from(i)),s):t},s.value=function(i){return arguments.length?(n=typeof i=="function"?i:bn(+i),s):n},s.order=function(i){return arguments.length?(e=i==null?sv:typeof i=="function"?i:bn(Array.from(i)),s):e},s.offset=function(i){return arguments.length?(r=i??nv,s):r},s}function zyt(t,e){if((n=t.length)>0){for(var r,n,s=0,i=t[0].length,o;s<i;++s){for(o=r=0;r<n;++r)o+=t[r][s][1]||0;if(o)for(r=0;r<n;++r)t[r][s][1]/=o}nv(t,e)}}function qyt(t,e){if((c=t.length)>0)for(var r,n=0,s,i,o,l,c,u=t[e[0]].length;n<u;++n)for(o=l=0,r=0;r<c;++r)(i=(s=t[e[r]][n])[1]-s[0])>0?(s[0]=o,s[1]=o+=i):i<0?(s[1]=l,s[0]=l+=i):(s[0]=0,s[1]=i)}function Vyt(t,e){if((s=t.length)>0){for(var r=0,n=t[e[0]],s,i=n.length;r<i;++r){for(var o=0,l=0;o<s;++o)l+=t[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}nv(t,e)}}function Hyt(t,e){if(!(!((o=t.length)>0)||!((i=(s=t[e[0]]).length)>0))){for(var r=0,n=1,s,i,o;n<i;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=t[e[l]],f=d[n][1]||0,p=d[n-1][1]||0,m=(f-p)/2,h=0;h<l;++h){var _=t[e[h]],g=_[n][1]||0,y=_[n-1][1]||0;m+=g-y}c+=f,u+=m*f}s[n-1][1]+=s[n-1][0]=r,c&&(r-=u/c)}s[n-1][1]+=s[n-1][0]=r,nv(t,e)}}function Efe(t){var e=t.map(Gyt);return sv(t).sort(function(r,n){return e[r]-e[n]})}function Gyt(t){for(var e=-1,r=0,n=t.length,s,i=-1/0;++e<n;)(s=+t[e][1])>i&&(i=s,r=e);return r}function Rfe(t){var e=t.map(Ife);return sv(t).sort(function(r,n){return e[r]-e[n]})}function Ife(t){for(var e=0,r=-1,n=t.length,s;++r<n;)(s=+t[r][1])&&(e+=s);return e}function Wyt(t){return Rfe(t).reverse()}function Yyt(t){var e=t.length,r,n,s=t.map(Ife),i=Efe(t),o=0,l=0,c=[],u=[];for(r=0;r<e;++r)n=i[r],o<l?(o+=s[n],c.push(n)):(l+=s[n],u.push(n));return u.reverse().concat(c)}function Kyt(t){return sv(t).reverse()}const _D={appearance:Efe,ascending:Rfe,descending:Wyt,insideOut:Yyt,none:sv,reverse:Kyt},vD={expand:zyt,diverging:qyt,none:nv,silhouette:Vyt,wiggle:Hyt},Dfe=t=>{const{series:e,seriesOrder:r,defaultStrategy:n}=t,s=[],i={};return r.forEach(o=>{const{stack:l,stackOrder:c,stackOffset:u}=e[o];l===void 0?s.push({ids:[o],stackingOrder:_D.none,stackingOffset:vD.none}):i[l]===void 0?(i[l]=s.length,s.push({ids:[o],stackingOrder:_D[c??n?.stackOrder??"none"],stackingOffset:vD[u??n?.stackOffset??"diverging"]})):(s[i[l]].ids.push(o),c!==void 0&&(s[i[l]].stackingOrder=_D[c]),u!==void 0&&(s[i[l]].stackingOffset=vD[u]))}),s},Qyt=t=>t==null?"":t.toLocaleString(),Zyt=(t,e)=>{const{seriesOrder:r,series:n}=t,s=Dfe(t),i=e??[];r.forEach(l=>{const c=n[l].data;if(c!==void 0)c.forEach((u,d)=>{i.length<=d?i.push({[l]:u}):i[d][l]=u});else if(e===void 0)throw new Error([`MUI X Charts: bar series with id='${l}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:341:        ${s}`},[`& .${kee.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"center",justifyItems:S2t(t.legendPosition),alignItems:w2t(t.legendPosition)}});function P2t(t){const{children:e,sx:r,extendVertically:n}=t,s=R0t(),i=Ms(),{width:o,height:l}=qr(i,Que);return a.jsx(M2t,{ref:s,ownerState:t,sx:r,extendVertically:n??l===void 0,width:o,children:e})}function $pe(t){return t.replace(" ","_")}const Ope=Sn("MuiAppearingMask",["animate"]),j2t=Ce("rect")({animationName:"animate-width",animationTimingFunction:a8,animationDuration:"0s",[`&.${Ope.animate}`]:{animationDuration:`${Bk}ms`},"@keyframes animate-width":{from:{width:0}}});function Lpe(t){const e=qa(),r=mx(),n=$pe(`${r}-${t.id}`);return a.jsxs(I.Fragment,{children:[a.jsx("clipPath",{id:n,children:a.jsx(j2t,{className:t.skipAnimation?"":Ope.animate,x:0,y:0,width:e.left+e.width+e.right,height:e.top+e.height+e.bottom})}),a.jsx("g",{clipPath:`url(#${n})`,children:t.children})]})}const T2t=["skipAnimation","ownerState"];function E2t(t){const{skipAnimation:e,ownerState:r}=t,n=Ht(t,T2t),s=k0t(t);return a.jsx(Lpe,{skipAnimation:e,id:`${r.id}-area-clip`,children:a.jsx("path",ce({fill:r.gradientId?`url(#${r.gradientId})`:r.color,filter:r.isHighlighted?"brightness(140%)":r.gradientId?void 0:"brightness(120%)",opacity:r.isFaded?.3:1,stroke:"none","data-series":r.id,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},n,s))})}const R2t=["id","classes","color","gradientId","slots","slotProps","onClick"];function I2t(t){return Pn("MuiAreaElement",t)}const D2t=Sn("MuiAreaElement",["root","highlighted","faded","series"]),$2t=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s}=t,i={root:["root",`series-${r}`,s&&"highlighted",n&&"faded"]};return un(i,I2t,e)};function O2t(t){const{id:e,classes:r,color:n,gradientId:s,slots:i,slotProps:o,onClick:l}=t,c=Ht(t,R2t),u=vx({type:"line",seriesId:e}),{isFaded:d,isHighlighted:f}=Uk({seriesId:e}),p={id:e,classes:r,color:n,gradientId:s,isFaded:d,isHighlighted:f},m=$2t(p),h=i?.area??E2t,_=xn({elementType:h,externalSlotProps:o?.area,additionalProps:ce({},u,{onClick:l,cursor:l?"pointer":"unset"}),className:m.root,ownerState:p});return a.jsx(h,ce({},c,_))}function Npe(t){switch(t){case"catmullRom":return Dyt.alpha(.5);case"linear":return J7;case"monotoneX":return uee;case"monotoneY":return $yt;case"natural":return Oyt;case"step":return Lyt;case"stepBefore":return Nyt;case"stepAfter":return Fyt;case"bumpY":return xyt;case"bumpX":return byt;default:return uee}}function L2t(t,e){const r=hx(),n=Uo().xAxisIds[0],s=Bo().yAxisIds[0],i=o8();return I.useMemo(()=>{if(r===void 0)return[];const{series:l,stackingGroups:c}=r,u=[];for(const d of c){const f=d.ids;for(let p=f.length-1;p>=0;p-=1){const m=f[p],{xAxisId:h=n,yAxisId:_=s,stackedData:g,data:y,connectNulls:b,baseline:x,curve:w,strictStepCurve:C,area:k}=l[m];if(!k||!(h in t)||!(_ in e))continue;const A=t[h].scale,P=Hv(A),T=e[_].scale,j=t[h].data,R=e[_].colorScale&&i(_)||t[h].colorScale&&i(h)||void 0,D=w?.includes("step")&&!C&&ao(A),O=j?.flatMap((z,H)=>{const W=y[H]==null;if(D){const K=[{x:z,y:g[H],nullData:W,isExtension:!1}];return!W&&(H===0||y[H-1]==null)&&K.unshift({x:(A(z)??0)-(A.step()-A.bandwidth())/2,y:g[H],nullData:W,isExtension:!0}),!W&&(H===y.length-1||y[H+1]==null)&&K.push({x:(A(z)??0)+(A.step()+A.bandwidth())/2,y:g[H],nullData:W,isExtension:!0}),K}return{x:z,y:g[H],nullData:W}})??[],N=b?O.filter(z=>!z.nullData):O,U=gyt().x(z=>z.isExtension?z.x:P(z.x)).defined(z=>b||!z.nullData||!!z.isExtension).y0(z=>{if(typeof x=="number")return T(x);if(x==="max")return T.range()[1];if(x==="min")return T.range()[0];const H=z.y&&T(z.y[0]);return Number.isNaN(H)?T.range()[0]:H}).y1(z=>z.y&&T(z.y[1])).curve(Npe(w))(N)||"";u.push({area:l[m].area,color:l[m].color,gradientId:R,d:U,seriesId:m})}}return u},[r,n,s,t,e,i])}const N2t=["slots","slotProps","onItemClick","skipAnimation"],F2t=Ce("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${D2t.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}}),U2t=()=>{const{xAxis:t}=Uo(),{yAxis:e}=Bo();return L2t(t,e)};function Fpe(t){const{slots:e,slotProps:r,onItemClick:n,skipAnimation:s}=t,i=Ht(t,N2t),o=Wk(),l=yx(o||s),c=U2t();return a.jsx(F2t,ce({},i,{children:c.map(({d:u,seriesId:d,color:f,area:p,gradientId:m})=>!!p&&a.jsx(O2t,{id:d,d:u,color:f,gradientId:m,slots:e,slotProps:r,onClick:n&&(h=>n(h,{type:"line",seriesId:d})),skipAnimation:l},d))}))}const B2t=["skipAnimation","ownerState"],z2t=I.forwardRef(function(e,r){const{skipAnimation:n,ownerState:s}=e,i=Ht(e,B2t),o=E0t(ce({},e,{ref:r}));return a.jsx(Lpe,{skipAnimation:n,id:`${s.id}-line-clip`,children:a.jsx("path",ce({stroke:s.gradientId?`url(#${s.gradientId})`:s.color,strokeWidth:2,strokeLinejoin:"round",fill:"none",filter:s.isHighlighted?"brightness(120%)":void 0,opacity:s.isFaded?.3:1,"data-series":s.id,"data-highlighted":s.isHighlighted||void 0,"data-faded":s.isFaded||void 0},i,o))})}),q2t=["id","classes","color","gradientId","slots","slotProps","onClick"];function V2t(t){return Pn("MuiLineElement",t)}const H2t=Sn("MuiLineElement",["root","highlighted","faded","series"]),G2t=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s}=t,i={root:["root",`series-${r}`,s&&"highlighted",n&&"faded"]};return un(i,V2t,e)};function W2t(t){const{id:e,classes:r,color:n,gradientId:s,slots:i,slotProps:o,onClick:l}=t,c=Ht(t,q2t),u=vx({type:"line",seriesId:e}),{isFaded:d,isHighlighted:f}=Uk({seriesId:e}),p={id:e,classes:r,color:n,gradientId:s,isFaded:d,isHighlighted:f},m=G2t(p),h=i?.line??z2t,_=xn({elementType:h,externalSlotProps:o?.line,additionalProps:ce({},u,{onClick:l,cursor:l?"pointer":"unset"}),className:m.root,ownerState:p});return a.jsx(h,ce({},c,_))}function Y2t(t,e){const r=hx(),n=Uo().xAxisIds[0],s=Bo().yAxisIds[0],i=o8();return I.useMemo(()=>{if(r===void 0)return[];const{series:l,stackingGroups:c}=r,u=[];for(const d of c){const f=d.ids;for(const p of f){const{xAxisId:m=n,yAxisId:h=s,stackedData:_,data:g,connectNulls:y,curve:b,strictStepCurve:x}=l[p];if(!(m in t)||!(h in e))continue;const w=t[m].scale,C=Hv(w),k=e[h].scale,A=t[m].data,P=e[h].colorScale&&i(h)||t[m].colorScale&&i(m)||void 0,T=b?.includes("step")&&!x&&ao(w),j=A?.flatMap((N,F)=>{const U=g[F]==null;if(T){const z=[{x:N,y:_[F],nullData:U,isExtension:!1}];return!U&&(F===0||g[F-1]==null)&&z.unshift({x:(w(N)??0)-(w.step()-w.bandwidth())/2,y:_[F],nullData:U,isExtension:!0}),!U&&(F===g.length-1||g[F+1]==null)&&z.push({x:(w(N)??0)+(w.step()+w.bandwidth())/2,y:_[F],nullData:U,isExtension:!0}),z}return{x:N,y:_[F],nullData:U}})??[],R=y?j.filter(N=>!N.nullData):j,O=yfe().x(N=>N.isExtension?N.x:C(N.x)).defined(N=>y||!N.nullData||!!N.isExtension).y(N=>k(N.y[1])).curve(Npe(b))(R)||"";u.push({color:l[p].color,gradientId:P,d:O,seriesId:p})}}return u},[r,n,s,t,e,i])}const K2t=["slots","slotProps","skipAnimation","onItemClick"],Q2t=Ce("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${H2t.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}}),Z2t=()=>{const{xAxis:t}=Uo(),{yAxis:e}=Bo();return Y2t(t,e)};function Upe(t){const{slots:e,slotProps:r,skipAnimation:n,onItemClick:s}=t,i=Ht(t,K2t),o=Wk(),l=yx(o||n),c=Z2t();return a.jsx(Q2t,ce({},i,{children:c.map(({d:u,seriesId:d,color:f,gradientId:p})=>a.jsx(W2t,{id:d,d:u,color:f,gradientId:p,skipAnimation:l,slots:e,slotProps:r,onClick:s&&(m=>s(m,{type:"line",seriesId:d}))},d))}))}function X2t(t){return Pn("MuiMarkElement",t)}const Bpe=Sn("MuiMarkElement",["root","highlighted","faded","animate","series"]),zpe=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s,skipAnimation:i}=t,o={root:["root",`series-${r}`,s&&"highlighted",n&&"faded",i?void 0:"animate"]};return un(o,X2t,e)},J2t=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],ewt=Ce("circle")({[`&.${Bpe.animate}`]:{transitionDuration:`${Bk}ms`,transitionProperty:"cx, cy",transitionTimingFunction:a8}});function twt(t){const{x:e,y:r,id:n,classes:s,color:i,dataIndex:o,onClick:l,skipAnimation:c,isFaded:u=!1,isHighlighted:d=!1}=t,f=Ht(t,J2t),p=As(),m=vx({type:"line",seriesId:n,dataIndex:o}),_=zpe({id:n,classes:s,isHighlighted:d,isFaded:u,skipAnimation:c});return a.jsx(ewt,ce({},f,{cx:e,cy:r,r:5,fill:(p.vars||p).palette.background.paper,stroke:i,strokeWidth:2,className:_.root,onClick:l,cursor:l?"pointer":"unset"},m,{"data-highlighted":d||void 0,"data-faded":u||void 0}))}function qpe(t){switch(t){case"circle":return 0;case"cross":return 1;case"diamond":return 2;case"square":return 3;case"star":return 4;case"triangle":return 5;case"wye":return 6;default:return 0}}const rwt=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],nwt=Ce("path",{name:"MuiMarkElement",slot:"Root"})(({ownerState:t,theme:e})=>({fill:(e.vars||e).palette.background.paper,stroke:t.color,strokeWidth:2,[`&.${Bpe.animate}`]:{transitionDuration:`${Bk}ms`,transitionProperty:"transform, transform-origin",transitionTimingFunction:a8}}));function swt(t){const{x:e,y:r,id:n,classes:s,color:i,shape:o,dataIndex:l,onClick:c,skipAnimation:u,isFaded:d=!1,isHighlighted:f=!1}=t,p=Ht(t,rwt),m=vx({type:"line",seriesId:n,dataIndex:l}),h={id:n,classes:s,isHighlighted:f,isFaded:d,color:i,skipAnimation:u},_=zpe(h);return a.jsx(nwt,ce({},p,{style:{transform:`translate(${e}px, ${r}px)`,transformOrigin:`${e}px ${r}px`},ownerState:h,className:_.root,d:Afe(Cfe[qpe(o)])(),onClick:c,cursor:c?"pointer":"unset"},m,{"data-highlighted":f||void 0,"data-faded":d||void 0}))}const iwt=["slots","slotProps","skipAnimation","onItemClick"];function owt(t){const{slots:e,slotProps:r,skipAnimation:n,onItemClick:s}=t,i=Ht(t,iwt),o=Wk(),l=yx(o||n),c=hx(),{xAxis:u,xAxisIds:d}=Uo(),{yAxis:f,yAxisIds:p}=Bo(),m=mx(),{instance:h,store:_}=Wc(),{isFaded:g,isHighlighted:y}=u0t(),b=qr(_,afe),x=I.useMemo(()=>{const P={};for(const{dataIndex:T,axisId:j}of b)P[j]===void 0?P[j]=new Set([T]):P[j].add(T);return P},[b]);if(c===void 0)return null;const{series:w,stackingGroups:C}=c,k=d[0],A=p[0];return a.jsx("g",ce({},i,{children:C.flatMap(({ids:P})=>P.map(T=>{const{xAxisId:j=k,yAxisId:R=A,stackedData:D,data:O,showMark:N=!0,shape:F="circle"}=w[T];if(N===!1)return null;const U=Hv(u[j].scale),z=f[R].scale,H=u[j].data;if(H===void 0)throw new Error(`MUI X Charts: ${j===Bv?"The first `xAxis`":`The x-axis with id "${j}"`} should have data property to be able to display a line plot.`);const W=$pe(`${m}-${T}-line-clip`),K=t8(w[T],u[j],f[R]),q=e?.mark??(F==="circle"?twt:swt),X=y({seriesId:T}),Q=!X&&g({seriesId:T});return a.jsx("g",{clipPath:`url(#${W})`,"data-series":T,children:H?.map((Y,Z)=>{const re=O[Z]==null?null:D[Z][1];return{x:U(Y),y:re===null?null:z(re),position:Y,value:re,index:Z}}).filter(({x:Y,y:Z,index:re,position:fe,value:de})=>de===null||Z===null||!h.isPointInside(Y,Z)?!1:N===!0?!0:N({x:Y,y:Z,index:re,position:fe,value:de})).map(({x:Y,y:Z,index:re})=>a.jsx(q,ce({id:T,dataIndex:re,shape:F,color:K(re),x:Y,y:Z,skipAnimation:l,onClick:s&&(fe=>s(fe,{type:"line",seriesId:T,dataIndex:re})),isHighlighted:x[j]?.has(re)||X,isFaded:Q},r?.mark),`${T}-${re}`))},T)}))}))}const awt=parseInt(I.version,10),lwt=["x","y","id","classes","color","shape"];function cwt(t){return Pn("MuiHighlightElement",t)}Sn("MuiHighlightElement",["root"]);const uwt=t=>{const{classes:e,id:r}=t,n={root:["root",`series-${r}`]};return un(n,cwt,e)};function dwt(t){const{x:e,y:r,color:n,shape:s}=t,i=Ht(t,lwt),o=uwt(t),l=s==="circle"?"circle":"path",c=s==="circle"?{cx:0,cy:0,r:i.r===void 0?5:i.r}:{d:Afe(Cfe[qpe(s)])()},u=awt>18?{transformOrigin:`${e} ${r}`}:{"transform-origin":`${e} ${r}`};return a.jsx(l,ce({pointerEvents:"none",className:o.root,transform:`translate(${e} ${r})`,fill:n},u,c,i))}const fwt=["slots","slotProps"];function Vpe(t){const{slots:e,slotProps:r}=t,n=Ht(t,fwt),s=hx(),{xAxis:i,xAxisIds:o}=Uo(),{yAxis:l,yAxisIds:c}=Bo(),{instance:u}=Wc(),d=Ms(),f=qr(d,afe);if(f.length===0||s===void 0)return null;const{series:p,stackingGroups:m}=s,h=o[0],_=c[0],g=e?.lineHighlight??dwt;return a.jsx("g",ce({},n,{children:f.flatMap(({dataIndex:y,axisId:b})=>m.flatMap(({ids:x})=>x.flatMap(w=>{const{xAxisId:C=h,yAxisId:k=_,stackedData:A,data:P,disableHighlight:T,shape:j="circle"}=p[w];if(T||P[y]==null||b!==C)return null;const R=Hv(i[C].scale),D=l[k].scale,O=i[C].data;if(O===void 0)throw new Error(`MUI X Charts: ${C===Bv?"The first `xAxis`":`The x-axis with id "${C}"`} should have data property to be able to display a line plot.`);const N=R(O[y]),F=D(A[y][1]);if(!u.isPointInside(N,F))return null;const U=t8(p[w],i[C],l[k]);return a.jsx(g,ce({id:w,color:U(y),x:N,y:F,shape:j},r?.lineHighlight),`${w}`)})))}))}const pwt=[px,fx,zv,lx,Vv,Fk],mwt=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","hideLegend","grid","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","showToolbar","brushConfig"],hwt=t=>{const{xAxis:e,yAxis:r,series:n,width:s,height:i,margin:o,colors:l,dataset:c,sx:u,onAreaClick:d,onLineClick:f,onMarkClick:p,axisHighlight:m,disableLineItemHighlight:h,grid:_,children:g,slots:y,slotProps:b,skipAnimation:x,loading:w,highlightedItem:C,onHighlightChange:k,className:A,brushConfig:P}=t,T=Ht(t,mwt),R=`${dv()}-clip-path`,D=I.useMemo(()=>n.map(re=>ce({disableHighlight:!!h,type:"line"},re)),[h,n]),O=ce({},T,{series:D,width:s,height:i,margin:o,colors:l,dataset:c,xAxis:e??[{id:Bv,scaleType:"point",data:Array.from({length:Math.max(...n.map(re=>(re.data??c??[]).length))},(re,fe)=>fe)}],yAxis:r,highlightedItem:C,onHighlightChange:k,disableAxisListener:b?.tooltip?.trigger!=="axis"&&m?.x==="none"&&m?.y==="none",className:A,skipAnimation:x,brushConfig:P,plugins:pwt}),N={vertical:_?.vertical,horizontal:_?.horizontal},F={clipPath:`url(#${R})`},U={id:R},z={slots:y,slotProps:b,onItemClick:d},H={slots:y,slotProps:b,onItemClick:f},W={slots:y,slotProps:b,onItemClick:p,skipAnimation:x},K={slots:y,slotProps:b,loading:w},q={slots:y,slotProps:b},X=ce({x:"line"},m),Q={slots:y,slotProps:b},Y={slots:y,slotProps:b};return{chartsWrapperProps:{sx:u,legendPosition:t.slotProps?.legend?.position,legendDirection:t.slotProps?.legend?.direction,hideLegend:t.hideLegend??!1},chartContainerProps:O,gridProps:N,clipPathProps:U,clipPathGroupProps:F,areaPlotProps:z,linePlotProps:H,markPlotProps:W,overlayProps:K,chartsAxisProps:q,axisHighlightProps:X,lineHighlightPlotProps:Q,legendProps:Y,children:g}},Pw=6;function Hpe(){const t=As(),e=Epe(),r=hx(),{xAxis:n,xAxisIds:s}=Uo(),{yAxis:i,yAxisIds:o}=Bo();if(e===null||e.seriesType!=="line"||!r)return null;const l=r?.series[e.seriesId],c=l.xAxisId??s[0],u=l.yAxisId??o[0];return a.jsx("rect",{fill:"none",stroke:(t.vars??t).palette.text.primary,strokeWidth:2,x:n[c].scale(n[c].data[e.dataIndex])-Pw,y:i[u].scale(l.stackedData[e.dataIndex][1])-Pw,width:2*Pw,height:2*Pw,rx:3,ry:3})}const Mee=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiLineChart"}),{chartsWrapperProps:s,chartContainerProps:i,gridProps:o,clipPathProps:l,clipPathGroupProps:c,areaPlotProps:u,linePlotProps:d,markPlotProps:f,overlayProps:p,chartsAxisProps:m,axisHighlightProps:h,lineHighlightPlotProps:_,legendProps:g,children:y}=hwt(n),{chartDataProviderProps:b,chartsSurfaceProps:x}=x2t(i,r),w=n.slots?.tooltip??jpe,C=n.slots?.toolbar;return a.jsx(Dpe,ce({},b,{children:a.jsxs(P2t,ce({},s,{children:[n.showToolbar&&C?a.jsx(C,ce({},n.slotProps?.toolbar)):null,!n.hideLegend&&a.jsx(gSt,ce({},g)),a.jsxs(p8,ce({},x,{children:[a.jsx(Dxt,ce({},o)),a.jsxs("g",ce({},c,{children:[a.jsx(Fpe,ce({},u)),a.jsx(Upe,ce({},d)),a.jsx(o2t,ce({},p)),a.jsx(Tpe,ce({},h))]})),a.jsx(Hpe,{}),a.jsx(Mxt,ce({},m)),a.jsx("g",{"data-drawing-container":!0,children:a.jsx(owt,ce({},f))}),a.jsx(Vpe,ce({},_)),a.jsx(epe,ce({},l)),y]})),!n.loading&&a.jsx(w,ce({},n.slotProps?.tooltip))]}))}))});function Uy(t,e){if(typeof t=="number")return t;if(t==="100%")return e;if(t.endsWith("%")){const r=Number.parseFloat(t.slice(0,t.length-1));if(!Number.isNaN(r))return r*e/100}if(t.endsWith("px")){const r=Number.parseFloat(t.slice(0,t.length-2));if(!Number.isNaN(r))return r}throw new Error(`MUI X Charts: Received an unknown value "${t}". It should be a number, or a string with a percentage value.`)}const gwt=["xAxis","yAxis","width","height","margin","color","baseline","sx","showTooltip","showHighlight","axisHighlight","children","slots","slotProps","data","plotType","valueFormatter","area","curve","className","disableClipping","clipAreaOffset","onHighlightChange","onHighlightedAxisChange","highlightedAxis","highlightedItem"],_wt=5,kD=I.forwardRef(function(e,r){const{xAxis:n,yAxis:s,width:i,height:o,margin:l=_wt,color:c,baseline:u,sx:d,showTooltip:f,showHighlight:p,axisHighlight:m,children:h,slots:_,slotProps:g,data:y,plotType:b="line",valueFormatter:x=Y=>Y===null?"":Y.toString(),area:w,curve:C="linear",className:k,disableClipping:A,clipAreaOffset:P,onHighlightChange:T,onHighlightedAxisChange:j,highlightedAxis:R,highlightedItem:D}=e,O=Ht(e,gwt),F=`${dv()}-clip-path`,U=I.useMemo(()=>({top:P?.top??1,right:P?.right??1,bottom:P?.bottom??1,left:P?.left??1}),[P?.bottom,P?.left,P?.right,P?.top]),z=I.useMemo(()=>p&&b==="bar"?{x:"band"}:{x:"none"},[b,p]),H=I.useMemo(()=>ce({},z,m),[z,m]),W=e.slots?.tooltip??jpe,K=I.useMemo(()=>{if(c!=null)return typeof c=="function"?Y=>[c(Y)]:[c]},[c]),q=I.useMemo(()=>[ce({type:b,data:y,valueFormatter:x},b==="bar"?{}:{area:w,curve:C,baseline:u,disableHighlight:!p})],[w,u,C,y,b,p,x]),X=I.useMemo(()=>[ce({id:Bv,scaleType:b==="bar"?"band":"point",hideTooltip:n===void 0},n,{data:n?.data??Array.from({length:y.length},(Y,Z)=>Z),position:"none"})],[y.length,b,n]),Q=I.useMemo(()=>[ce({id:y7},s,{position:"none"})],[s]);return a.jsxs(Dpe,{series:q,width:i,height:o,margin:l,xAxis:X,yAxis:Q,colors:K,disableAxisListener:j===void 0&&(!f||g?.tooltip?.trigger!=="axis")&&H?.x==="none"&&H?.y==="none",onHighlightChange:T,onHighlightedAxisChange:j,highlightedAxis:R,highlightedItem:D,children:[a.jsxs(p8,ce({className:k,ref:r,sx:d},O,{children:[a.jsxs("g",{clipPath:`url(#${F})`,children:[b==="bar"&&a.jsx(XSt,{skipAnimation:!0,slots:_,slotProps:g}),b==="line"&&a.jsxs(I.Fragment,{children:[a.jsx(Fpe,{skipAnimation:!0,slots:_,slotProps:g}),a.jsx(Upe,{skipAnimation:!0,slots:_,slotProps:g})]})]}),b==="line"&&a.jsxs(I.Fragment,{children:[a.jsx(Vpe,{slots:_,slotProps:g}),a.jsx(Hpe,{})]}),A?null:a.jsx(epe,{id:F,offset:U}),a.jsx(Tpe,ce({},H)),h]})),f&&a.jsx(W,ce({},e.slotProps?.tooltip))]})});function MD(t){const e=up(t);return[Math.sin(e),-Math.cos(e)]}function vwt(t,e){const r=[[0,0],MD(t),MD(e)],n=Math.min(t,e),s=Math.max(t,e),i=Math.floor(n/90)*90;for(let d=1;d<=4;d+=1){const f=i+d*90;f<s&&r.push(MD(f))}const o=Math.min(...r.map(([d])=>d)),l=Math.max(...r.map(([d])=>d)),c=Math.min(...r.map(([,d])=>d)),u=Math.max(...r.map(([,d])=>d));return{cx:-o/(l-o),cy:-c/(u-c),minX:o,maxX:l,minY:c,maxY:u}}function ywt(t,e,r,n,{minX:s,maxX:i,minY:o,maxY:l}){return Math.min(...[{ratio:Math.abs(s),space:t},{ratio:Math.abs(i),space:r-t},{ratio:Math.abs(o),space:e},{ratio:Math.abs(l),space:n-e}].map(({ratio:c,space:u})=>c<1e-5?1/0:u/c))}const Gpe=I.createContext({value:null,valueMin:0,valueMax:0,startAngle:0,endAngle:0,innerRadius:0,outerRadius:0,cornerRadius:0,cx:0,cy:0,maxRadius:0,valueAngle:null});function bwt(t){const{value:e=null,valueMin:r=0,valueMax:n=100,startAngle:s=0,endAngle:i=360,outerRadius:o,innerRadius:l,cornerRadius:c,cx:u,cy:d,children:f}=t,{left:p,top:m,width:h,height:_}=qa(),g=vwt(s,i),y=u?Uy(u,h):g.cx*h,b=d?Uy(d,_):g.cy*_;let x=p+y,w=m+b;const C=ywt(y,b,h,_,g);if(u===void 0){const j=C*(g.maxX-g.minX);x=p+(h-j)/2+g.cx*j}if(d===void 0){const j=C*(g.maxY-g.minY);w=m+(_-j)/2+g.cy*j}const k=Uy(o??C,C),A=Uy(l??"80%",C),P=Uy(c??0,k-A),T=I.useMemo(()=>{const j=up(s),R=up(i);return{value:e,valueMin:r,valueMax:n,startAngle:j,endAngle:R,outerRadius:k,innerRadius:A,cornerRadius:P,cx:x,cy:w,maxRadius:C,valueAngle:e===null?null:j+(R-j)*(e-r)/(n-r)}},[e,r,n,s,i,k,A,P,x,w,C]);return a.jsx(Gpe.Provider,{value:T,children:f})}function m8(){return I.useContext(Gpe)}const xwt=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],Swt=Ce("g")(({theme:t})=>({"& text":{fill:(t.vars||t).palette.text.primary}})),wwt=I.forwardRef(function(e,r){const{width:n,height:s,margin:i,title:o,desc:l,value:c,valueMin:u=0,valueMax:d=100,startAngle:f,endAngle:p,outerRadius:m,innerRadius:h,cornerRadius:_,cx:g,cy:y,children:b}=e,x=Ht(e,xwt);return a.jsx(Ofe,{pluginParams:{width:n,height:s,margin:Zue(i,{left:10,right:10,top:10,bottom:10})},plugins:[],children:a.jsx(bwt,{value:c,valueMin:u,valueMax:d,startAngle:f,endAngle:p,outerRadius:m,innerRadius:h,cornerRadius:_,cx:g,cy:y,children:a.jsx(p8,ce({title:o,desc:l,role:"meter","aria-valuenow":c===null?void 0:c,"aria-valuemin":u,"aria-valuemax":d},x,{ref:r,children:a.jsx(Swt,{"aria-hidden":"true",children:b})}))})})});function Cwt(t,e){const r=Js(t.startAngle,e.startAngle),n=Js(t.endAngle,e.endAngle),s=Js(t.innerRadius,e.innerRadius),i=Js(t.outerRadius,e.outerRadius),o=Js(t.cornerRadius,e.cornerRadius);return l=>({startAngle:r(l),endAngle:n(l),innerRadius:s(l),outerRadius:i(l),cornerRadius:o(l)})}function Awt(t){return Gv({startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius},{createInterpolator:Cwt,transformProps:e=>({d:hfe().cornerRadius(e.cornerRadius)({innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle})}),applyProps(e,r){e.setAttribute("d",r.d)},initialProps:{startAngle:t.startAngle,endAngle:t.startAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius},skip:t.skipAnimation,ref:t.ref})}function kwt(t){return Pn("MuiGauge",t)}const th=Sn("MuiGauge",["root","valueArc","referenceArc","valueText"]),Mwt=["className"],Pwt=["cx","cy","startAngle","endAngle","cornerRadius","innerRadius","outerRadius","skipAnimation"],jwt=Ce("path",{name:"MuiGauge",slot:"ValueArc"})(({theme:t})=>({fill:(t.vars||t).palette.primary.main}));function Twt(t){let{className:e}=t,r=Ht(t,Mwt);const{value:n,valueMin:s,valueMax:i,startAngle:o,endAngle:l,outerRadius:c,innerRadius:u,cornerRadius:d,cx:f,cy:p}=m8();if(n===null)return null;const m=o+(n-s)/(i-s)*(l-o);return a.jsx(Ewt,ce({},r,{className:lt(th.valueArc,e),cx:f,cy:p,startAngle:o,endAngle:m,cornerRadius:d,innerRadius:u,outerRadius:c}))}function Ewt(t){let{cx:e,cy:r,startAngle:n,endAngle:s,cornerRadius:i,innerRadius:o,outerRadius:l,skipAnimation:c}=t,u=Ht(t,Pwt);const d=yx(c),f=Awt({startAngle:n,endAngle:s,cornerRadius:i,innerRadius:o,outerRadius:l,skipAnimation:d});return a.jsx(jwt,ce({},f,{transform:`translate(${e}, ${r})`},u))}const Rwt=["className"],Iwt=Ce("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:t})=>({fill:(t.vars||t).palette.divider}));function Dwt(t){let{className:e}=t,r=Ht(t,Rwt);const{startAngle:n,endAngle:s,outerRadius:i,innerRadius:o,cornerRadius:l,cx:c,cy:u}=m8();return a.jsx(Iwt,ce({className:lt(th.referenceArc,e),transform:`translate(${c}, ${u})`,d:hfe().cornerRadius(l)({startAngle:n,endAngle:s,innerRadius:o,outerRadius:i})},r))}const $wt=["text","className"];function Owt({value:t}){return t===null?null:t.toLocaleString()}function Lwt(t){const{text:e=Owt,className:r}=t,n=Ht(t,$wt),{value:s,valueMin:i,valueMax:o,cx:l,cy:c}=m8(),u=typeof e=="function"?e({value:s,valueMin:i,valueMax:o}):e;return u===null?null:a.jsx("g",{className:lt(th.valueText,r),children:a.jsx(_x,ce({x:l,y:c,text:u,style:{textAnchor:"middle",dominantBaseline:"central"}},n))})}const Nwt=["text","children","classes","className","skipAnimation"],Fwt=t=>{const{classes:e}=t;return un({root:["root"]},kwt,e)},Pee=I.forwardRef(function(e,r){const{text:n,children:s,className:i,skipAnimation:o}=e,l=Ht(e,Nwt),c=Fwt(e);return a.jsxs(wwt,ce({},l,{className:lt(c.root,i),ref:r,children:[a.jsx(Dwt,{}),a.jsx(Twt,{skipAnimation:o}),a.jsx(Lwt,{text:n}),s]}))}),mi=t=>{const e=he.c(4),{show:r,size:n,children:s}=t,i=r===void 0?!1:r,o=n===void 0?"default":n;let l;return e[0]!==s||e[1]!==i||e[2]!==o?(l=i?a.jsx(Is,{size:o==="small"?{xs:6,lg:2,xl:2}:{xs:12,sm:6,lg:4,xl:3},zeroMinWidth:!0,children:a.jsx(pr,{fullHeight:!0,children:a.jsx(Kt,{children:a.jsx(te,{spacing:2,children:s})})})}):null,e[0]=s,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},jw=t=>{const e=he.c(2),{isFirst:r}=t,s=(r===void 0?!1:r)?0:2;let i;return e[0]!==s?(i=a.jsx(Dt,{sx:{height:"32px",mb:2,mt:s},variant:"rectangular"}),e[0]=s,e[1]=i):i=e[1],i},Wpe=t=>{const e=he.c(5),{size:r}=t,n=r===void 0?"default":r,s=n==="small"?"74px":"250px";let i;e[0]!==s?(i=a.jsx(Dt,{variant:"rounded",sx:{height:s}}),e[0]=s,e[1]=i):i=e[1];let o;return e[2]!==n||e[3]!==i?(o=a.jsx(mi,{show:!0,size:n,children:i}),e[2]=n,e[3]=i,e[4]=o):o=e[4],o},Tw=t=>{const e=he.c(5),{size:r}=t,n=r===void 0?"default":r;let s;e[0]!==n?(s=Array.from({length:n==="small"?4:8}),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==n||e[3]!==s?(i=a.jsx(al,{children:s.map((o,l)=>a.jsx(Wpe,{size:n},l))}),e[2]=n,e[3]=s,e[4]=i):i=e[4],i};function Rs(t){const e=he.c(73);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g;e[0]!==t?({mainValue:n,mainValueUnit:i,totalValue:h,totalValueUnit:_,totalValueFontSizeRatio:u,valueDivider:g,title:p,subtitle:l,variant:d,titleColor:m,mainValueColor:s,subtitleColor:c,leftAlign:r,uppercaseTitle:f,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15]);const y=u===void 0?1:u,b=d===void 0?"medium":d,x=f===void 0?!0:f;let w;e:{switch(b){case"large":{let se;e[16]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:40,unit:24},titleFontSize:16,subtitleFontSize:14},e[16]=se):se=e[16],w=se;break e}case"medium":{let se;e[17]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:32,unit:20},titleFontSize:16,subtitleFontSize:14},e[17]=se):se=e[17],w=se;break e}case"small":{let se;e[18]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:24,unit:14},titleFontSize:16,subtitleFontSize:14},e[18]=se):se=e[18],w=se;break e}case"xsmall":{let se;e[19]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:18,unit:14},titleFontSize:16,subtitleFontSize:14},e[19]=se):se=e[19],w=se;break e}}w=void 0}const C=w,k=Uwt,{valueFontSize:A,titleFontSize:P,subtitleFontSize:T}=C,j=r?"left":"right";let R;e[20]!==j?(R={lineHeight:1,textAlign:j},e[20]=j,e[21]=R):R=e[21];const D=R;let O;e[22]!==D?(O={...D,wordBreak:"break-word"},e[22]=D,e[23]=O):O=e[23];let N;e[24]!==O||e[25]!==A.value?(N={component:"span",color:"text.primary",fontSize:A.value,fontWeight:"600",sx:O},e[24]=O,e[25]=A.value,e[26]=N):N=e[26];const F=N;let U;e[27]!==D?(U={...D,display:"inline-block"},e[27]=D,e[28]=U):U=e[28];let z;e[29]!==U||e[30]!==A.unit?(z={component:"span",color:"text.primary",fontSize:A.unit,sx:U},e[29]=U,e[30]=A.unit,e[31]=z):z=e[31];const H=z,W=r?"left":"right";let K;e[32]!==W?(K={textAlign:W,whiteSpace:""},e[32]=W,e[33]=K):K=e[33];const q=s?`${s}.main`:F.color;let X;e[34]!==n||e[35]!==q||e[36]!==F?(X=a.jsx(cn,{...F,color:q,children:n}),e[34]=n,e[35]=q,e[36]=F,e[37]=X):X=e[37];let Q;e[38]!==n||e[39]!==i||e[40]!==H?(Q=i&&!k(n)&&a.jsx(cn,{...H,children:i}),e[38]=n,e[39]=i,e[40]=H,e[41]=Q):Q=e[41];let Y;e[42]!==h||e[43]!==y||e[44]!==_||e[45]!==H||e[46]!==F||e[47]!==g||e[48]!==A.unit||e[49]!==A.value?(Y=!k(h)&&a.jsxs(a.Fragment,{children:[a.jsx(cn,{...F,fontSize:A?.value?A.value*y:void 0,paddingX:g?0:1,children:g}),a.jsx(cn,{...F,fontSize:A?.value?A.value*y:void 0,children:h}),_&&a.jsx(cn,{...H,fontSize:A?.unit?A.unit*y:void 0,children:_})]}),e[42]=h,e[43]=y,e[44]=_,e[45]=H,e[46]=F,e[47]=g,e[48]=A.unit,e[49]=A.value,e[50]=Y):Y=e[50];let Z;e[51]!==K||e[52]!==X||e[53]!==Q||e[54]!==Y?(Z=a.jsxs(cn,{component:"p",sx:K,children:[X,Q,Y]}),e[51]=K,e[52]=X,e[53]=Q,e[54]=Y,e[55]=Z):Z=e[55];let re;e[56]!==p||e[57]!==m||e[58]!==P||e[59]!==D||e[60]!==x?(re=p&&a.jsx(cn,{component:"p",fontSize:P,sx:D,className:"SquaredChildTile-title",color:m?`${m}.main`:"text.primary",children:x?p.toUpperCase():p}),e[56]=p,e[57]=m,e[58]=P,e[59]=D,e[60]=x,e[61]=re):re=e[61];let fe;e[62]!==l||e[63]!==c||e[64]!==T||e[65]!==D||e[66]!==x?(fe=l&&a.jsx(a.Fragment,{children:typeof l=="string"?a.jsx(cn,{component:"p",fontSize:T,color:c?`${c}.main`:"text.secondary",sx:D,children:x?l.toUpperCase():l}):a.jsx(te,{direction:"row",justify:"flex-end",spacing:2,sx:{flexWrap:"nowrap",mb:1,marginTop:"10px"},children:l.map((se,le)=>a.jsxs(te,{children:[a.jsx(cn,{component:"span",fontSize:T,sx:D,children:se.label?.toUpperCase()}),a.jsx(cn,{component:"span",fontWeight:"600",fontSize:T,sx:D,children:se.value?.toString().toUpperCase()})]},le))})}),e[62]=l,e[63]=c,e[64]=T,e[65]=D,e[66]=x,e[67]=fe):fe=e[67];let de;return e[68]!==o||e[69]!==Z||e[70]!==re||e[71]!==fe?(de=a.jsxs(gt,{...o,children:[Z,re,fe]}),e[68]=o,e[69]=Z,e[70]=re,e[71]=fe,e[72]=de):de=e[72],de}function Uwt(t){return t==null||t===""}function wi(t){const e=he.c(36);let r,n,s,i,o,l,c,u,d;e[0]!==t?({onClick:c,epigraph:n,epigraphColor:s,icon:o,iconLabel:l,children:r,horizontal:i,divided:d,...u}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9]);const f=d===void 0?!0:d;let p;e[10]!==c?(p=c&&{"&:hover":{cursor:"pointer","& .SquaredTile-title":{textDecoration:"underline"}}},e[10]=c,e[11]=p):p=e[11];let m;e[12]!==p?(m={...p},e[12]=p,e[13]=m):m=e[13];let h;e[14]!==n||e[15]!==s?(h=n&&a.jsx(cn,{color:s?`${s}.main`:"text.primary",fontSize:"14px",fontWeight:"600",sx:{lineHeight:1},children:n}),e[14]=n,e[15]=s,e[16]=h):h=e[16];const _=o||l?"space-between":"flex-end";let g;e[17]===Symbol.for("react.memo_cache_sentinel")?(g={gap:"10px"},e[17]=g):g=e[17];let y;e[18]!==n||e[19]!==o||e[20]!==l?(y=(o||l)&&a.jsxs(te,{direction:"column",align:"center",children:[o&&a.jsx(gt,{sx:{fontSize:"42px",marginTop:n?"10px":"0",color:"text.secondary"},children:o}),l&&a.jsx(cn,{color:"text.secondary",fontWeight:"400",component:"div",sx:{textAlign:"center",lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:l})]}),e[18]=n,e[19]=o,e[20]=l,e[21]=y):y=e[21];let b;e[22]!==r||e[23]!==f||e[24]!==i?(b=r&&a.jsx(te,{fullWidth:!0,divided:f,spacing:2,dividerSize:"50px",align:"flex-end",dividerAlign:"flex-end",...i&&{direction:"row",nowrap:!0,sx:{div:{flexGrow:1}}},children:r}),e[22]=r,e[23]=f,e[24]=i,e[25]=b):b=e[25];let x;e[26]!==_||e[27]!==y||e[28]!==b?(x=a.jsxs(te,{direction:"row",justify:_,align:"flex-start",spacing:0,sx:g,nowrap:!0,children:[y,b]}),e[26]=_,e[27]=y,e[28]=b,e[29]=x):x=e[29];let w;return e[30]!==c||e[31]!==u||e[32]!==m||e[33]!==h||e[34]!==x?(w=a.jsxs(gt,{sx:m,onClick:c,...u,children:[h,x]}),e[30]=c,e[31]=u,e[32]=m,e[33]=h,e[34]=x,e[35]=w):w=e[35],w}const Ew=I.forwardRef((t,e)=>{const r=he.c(10),{sx:n,text:s,align:i}=t,o=i===void 0?"left":i;let l;r[0]===Symbol.for("react.memo_cache_sentinel")?(l={mt:1},r[0]=l):l=r[0];let c;r[1]!==n?(c={mt:6,mb:2,"&:first-of-type":l,...n},r[1]=n,r[2]=c):c=r[2];let u;r[3]!==o||r[4]!==e||r[5]!==s?(u=a.jsx(_e,{type:"body1",align:o,ref:e,title:s,fontWeight:"500",children:s}),r[3]=o,r[4]=e,r[5]=s,r[6]=u):u=r[6];let d;return r[7]!==c||r[8]!==u?(d=a.jsx(gt,{sx:c,children:u}),r[7]=c,r[8]=u,r[9]=d):d=r[9],d});var Ype=(t=>(t.Bytes="Bytes",t.kB="kB",t.MB="MB",t.GB="GB",t.TB="TB",t.PB="PB",t.EB="EB",t.ZB="ZB",t.YB="YB",t))(Ype||{});const Bwt=Object.keys(Ype);var Kpe=(t=>(t.bps="bps",t.kbps="kbps",t.Mbps="Mbps",t.Gbps="Gbps",t.Tbps="Tbps",t.Pbps="Pbps",t.Ebps="Ebps",t.Zbps="Zbps",t.Ybps="Ybps",t))(Kpe||{});const zwt=Object.keys(Kpe);function Rw(t){return t==null?0:(typeof t=="string"&&(t=+t),t)}function Qpe({value:t,decimals:e=2,defaultSize:r,sizes:n,k:s=1e3}){if(t===0)return{value:"0",unit:r};e=e<0?0:e;const i=Math.floor(Math.log(t)/Math.log(s));return{value:parseFloat((t/Math.pow(s,i)).toFixed(e))?.toString(),unit:n[i]}}function qwt(t,e=2){return Qpe({value:t,decimals:e,defaultSize:"Bytes",sizes:Bwt})}function Vwt(t,e=2){return Qpe({value:t,decimals:e,defaultSize:"bps",sizes:zwt})}function jee(t){const e=ai.duration(t,"seconds");return Math.floor(e.asHours())+ai.utc(e.asMilliseconds()).format(":mm:ss")}const Jg={rate:function(t){return Vwt(Rw(t))},filesize:function(t){return qwt(Rw(t))},time:function(t){return jee(Rw(t))},hours:function(t){return jee(Rw(t))?.split(":")[0]}},Em=t=>{const e=he.c(3),{data:r,children:n}=t;let s;e:{if(Array.isArray(r)){s=r.length>0;break e}if(typeof r=="number"){s=!0;break e}if(r===$.errorKey){s=!1;break e}s=!!r}const i=s;let o;return e[0]!==n||e[1]!==i?(o=i?a.jsx(a.Fragment,{children:n}):null,e[0]=n,e[1]=i,e[2]=o):o=e[2],o},By=.75,Hwt="err",e_="-",Gwt=()=>{const t=Ye(),e=ys(),r=Gr(),n=I.useCallback(c=>c.some(u=>u===$.errorKey)?"error":void 0,[]),s=I.useCallback((c,u="string")=>c==null?"-":c===$.errorKey?Hwt:u==="rate"?Jg.rate(c)?.value??e_:u==="filesize"?Jg.filesize(c)?.value??e_:u==="time"?Jg.time(c)??e_:u==="hours"?Jg.hours(c)??e_:u==="count"?(typeof c=="string"&&(c=+c),c.toFixed(0)):u==="percentage"||u==="float"?(typeof c=="string"&&(c=+c),c.toFixed(2)):c.toString(),[]),i=I.useCallback((c,u)=>{if(c===$.errorKey)return"";switch(u){case"filesize":return Jg.filesize(c)?.unit??e_;case"rate":return Jg.rate(c)?.unit??e_}return"-"},[]),o=()=>{e($.urls.monitoringAlerts)},l=({nf:c})=>{e(`/${c}/cluster`)};return a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{isFirst:!0}),a.jsx(Tw,{size:"small"}),a.jsx(jw,{}),a.jsx(Tw,{size:"default"})]}),children:a.jsx(Qt,{resolve:r.services,errorElement:a.jsx(Tr,{}),children:c=>a.jsxs(gt,{children:[a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{isFirst:!0}),a.jsx(Tw,{size:"small"})]}),children:a.jsx(Qt,{resolve:r.activeClusters,errorElement:a.jsx(Tr,{}),children:u=>a.jsx(a.Fragment,{children:u.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.cluster.title"})}),a.jsx(al,{children:u.map(d=>{const f=ge[d.toUpperCase()];return a.jsx(I.Suspense,{fallback:a.jsx(Wpe,{size:"small"}),children:a.jsx(Qt,{resolve:r[d],errorElement:a.jsx(mi,{show:!0,size:"small",children:a.jsx(Mn,{title:t.formatMessage({id:"monitoring.cluster.error"}),children:a.jsx(wi,{icon:a.jsx(f,{}),iconLabel:t.formatMessage({id:`route.${d}`}),onClick:()=>l({nf:d}),children:a.jsx(gt,{sx:{color:"error.main"},children:a.jsx(ge.StatusError,{size:50})})})})}),children:p=>p?a.jsx(mi,{show:!0,size:"small",children:a.jsx(wi,{icon:a.jsx(f,{}),iconLabel:t.formatMessage({id:`route.${d}`}),onClick:()=>l({nf:d==="pls"?"platform":d}),children:a.jsx(Mn,{title:t.formatMessage({id:`monitoring.cluster.fully_established.${p.fully_established}`}),children:a.jsx(gt,{sx:{fontSize:"32px"},children:p.fully_established?a.jsx(gt,{sx:{color:"success.main"},children:a.jsx(ge.StatusSuccess,{size:50})}):a.jsx(gt,{sx:{color:"warning.main"},children:a.jsx(ge.StatusWarning,{size:50})})})})})}):null})},d)})})]})})})}),a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{}),a.jsx(Tw,{size:"default"})]}),children:a.jsx(Qt,{resolve:r.monitoring,errorElement:a.jsx(Tr,{}),children:u=>a.jsxs(a.Fragment,{children:[u?.platform&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.platform.title"})}),a.jsxs(al,{children:[a.jsx(mi,{show:!!u.platform?.alerts,children:a.jsx(wi,{icon:a.jsx(ge.Alerts,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.alerts"}),onClick:o,children:a.jsx(Rs,{mainValue:s(u.platform?.alerts?.alerts_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.platform.alerts"}),titleColor:n([u.platform?.alerts?.alerts_count])})})}),a.jsxs(mi,{show:!!u.platform?.cpu,children:[a.jsxs(wi,{icon:a.jsx(ge.Cpu,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.cpu"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.cpu?.cpu_count,"count"),variant:"small",title:t.formatMessage({id:"monitoring.platform.cpu.cpu_count"}),titleColor:n([u.platform?.cpu?.cpu_count])}),a.jsx(Rs,{mainValue:s(u.platform?.cpu?.cpu_busy_perc,"percentage"),mainValueUnit:u.platform?.cpu?.cpu_busy_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.cpu.cpu_busy_perc"}),titleColor:n([u.platform?.cpu?.cpu_busy_perc])})]}),a.jsx(Em,{data:u.platform?.cpu?.ts_cpu_busy_perc,children:a.jsx(kD,{data:u.platform?.cpu?.ts_cpu_busy_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsxs(mi,{show:!!u.platform?.disk,children:[a.jsxs(wi,{icon:a.jsx(ge.Drive,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.disk"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.disk?.disk_available_bytes,"filesize"),mainValueUnit:i(u.platform?.disk?.disk_available_bytes,"filesize"),totalValue:s(u.platform?.disk?.disk_total_bytes,"filesize"),totalValueUnit:i(u.platform?.disk?.disk_total_bytes,"filesize"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"small",title:t.formatMessage({id:"monitoring.platform.disk.availability"}),titleColor:n([u.platform?.disk?.disk_available_bytes,u.platform?.disk?.disk_total_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.disk?.disk_used_perc,"percentage"),mainValueUnit:u.platform?.disk?.disk_used_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.disk.occupation"}),titleColor:n([u.platform?.disk?.disk_used_perc])})]}),a.jsx(Em,{data:u.platform?.disk?.ts_disk_used_perc,children:a.jsx(kD,{data:u.platform?.disk?.ts_disk_used_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsxs(mi,{show:!!u.platform?.memory,children:[a.jsxs(wi,{icon:a.jsx(ge.Ram,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.ram"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.memory?.memory_available_bytes,"filesize"),mainValueUnit:i(u.platform?.memory?.memory_available_bytes,"filesize"),totalValue:s(u.platform?.memory?.memory_total_bytes,"filesize"),totalValueUnit:i(u.platform?.memory?.memory_total_bytes,"filesize"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"small",title:t.formatMessage({id:"monitoring.platform.memory.availability"}),titleColor:n([u.platform?.memory?.memory_available_bytes,u.platform?.memory?.memory_total_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.memory?.memory_used_perc,"percentage"),mainValueUnit:u.platform?.memory?.memory_used_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.memory.occupation"}),titleColor:n([u.platform?.memory?.memory_used_perc])})]}),a.jsx(Em,{data:u.platform?.memory?.ts_memory_used_perc,children:a.jsx(kD,{data:u.platform?.memory?.ts_memory_used_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsx(mi,{show:!!u.platform?.uptime,children:a.jsx(wi,{icon:a.jsx(ge.Clock,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.uptime"}),children:a.jsx(Rs,{mainValue:s(u.platform?.uptime?.uptime_seconds,"hours"),variant:"large",title:t.formatMessage({id:"monitoring.platform.uptime.title"}),subtitle:t.formatMessage({id:"monitoring.platform.uptime.subtitle"}),titleColor:n([u.platform?.uptime?.uptime_seconds])})})}),a.jsx(mi,{show:!!u.platform?.network_interfaces,children:a.jsxs(wi,{icon:a.jsx(ge.Cloud,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.network"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.network_interfaces?.interfaces_active_count,"count"),totalValue:s(u.platform?.network_interfaces?.interfaces_total_count,"count"),variant:"large",valueDivider:"/",totalValueFontSizeRatio:By,title:t.formatMessage({id:"monitoring.platform.network_interfaces.title"}),subtitle:t.formatMessage({id:"monitoring.platform.network_interfaces.subtitle"}),titleColor:n([u.platform?.network_interfaces?.interfaces_active_count,u.platform?.network_interfaces?.interfaces_total_count])}),a.jsx(I.Suspense,{fallback:a.jsx(bi,{status:nn.DEFAULT,label:t.formatMessage({id:"monitoring.platform.network_ntp.loading"})}),children:a.jsx(Qt,{resolve:r.ncmStatusNtp,children:({ntp_synced:d})=>a.jsx(bi,{status:d?nn.SUCCESS:nn.ERROR,label:d?t.formatMessage({id:"monitoring.platform.network_ntp.synced"}):t.formatMessage({id:"monitoring.platform.network_ntp.not_synced"})})})})]})}),a.jsxs(mi,{show:!!u.platform?.network,children:[a.jsxs(wi,{icon:a.jsx(ge.Cloud,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.network"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.network?.total_transmit_bytes,"filesize"),mainValueUnit:i(u.platform?.network?.total_transmit_bytes,"filesize"),totalValue:s(u.platform?.network?.total_receive_bytes,"filesize"),totalValueUnit:i(u.platform?.network?.total_receive_bytes,"filesize"),variant:"small",title:t.formatMessage({id:"monitoring.platform.network.load.title"}),titleColor:n([u.platform?.network?.total_transmit_bytes,u.platform?.network?.total_receive_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.network?.transmit_rate_bps,"rate"),mainValueUnit:i(u.platform?.network?.transmit_rate_bps,"rate"),totalValue:s(u.platform?.network?.receive_rate_bps,"rate"),totalValueUnit:i(u.platform?.network?.receive_rate_bps,"rate"),variant:"small",title:t.formatMessage({id:"monitoring.platform.network.rate.title"}),titleColor:n([u.platform?.network?.transmit_rate_bps,u.platform?.network?.receive_rate_bps])})]}),a.jsx(Em,{data:u.platform?.network?.ts_transmit_rate_bps,children:a.jsx(Mee,{axisHighlight:{x:"none",y:"none"},series:[{data:u.platform?.network?.ts_transmit_rate_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1},{data:u.platform?.network?.ts_receive_rate_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1}],xAxis:[{scaleType:"point",data:u.platform?.network?.ts_transmit_rate_bps?.map((d,f)=>f)??[],position:"none"}],yAxis:[{position:"none"}],height:80,disableAxisListener:!0,disableLineItemHighlight:!0,margin:{bottom:5,left:5,right:5,top:5},colors:O6})})]})]})]}),u?.control_plane&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.control_plane.title"})}),a.jsxs(al,{children:[Ds({services:c,name:ue.UDR})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u.control_plane?.udr_sims?.provisioned_sims_count,children:a.jsx(wi,{icon:a.jsx(ge.UDR,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.udr"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.udr_sims?.provisioned_sims_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.provisioned_sims.title"}),titleColor:n([u.control_plane?.udr_sims?.provisioned_sims_count])})})})}),Ds({services:c,name:ue.AMF})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.control_plane?.amf_ue,children:[a.jsx(wi,{icon:a.jsx(ge.AMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.amf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.amf_ue?.active_ue_count,"count"),totalValue:s(u.control_plane?.amf_ue?.registered_ue_count,"count"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"medium",title:t.formatMessage({id:"monitoring.control_plane.amf_ue.title"}),subtitle:t.formatMessage({id:"monitoring.control_plane.amf_ue.subtitle"}),titleColor:n([u.control_plane?.amf_ue?.active_ue_count,u.control_plane?.amf_ue?.registered_ue_count])})}),a.jsx(Em,{data:u.control_plane?.amf_ue?.active_ue_count,children:a.jsx(Pee,{height:100,value:+(u.control_plane?.amf_ue?.active_ue_count??0),valueMin:0,valueMax:+(u.control_plane?.amf_ue?.registered_ue_count??0),startAngle:-90,endAngle:90,sx:{[`& .${th.valueText}`]:{fontSize:30,transform:"translate(0px, -10px)"},[`& .${th.valueArc}`]:{fill:d=>by(d.palette.mode)}}})})]}),a.jsx(mi,{show:!!u.control_plane?.amf_active_radios,children:a.jsx(wi,{icon:a.jsx(ge.AMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.amf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.amf_active_radios?.active_radios_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.amf_active_radios.title"}),titleColor:n([u.control_plane?.amf_active_radios?.active_radios_count])})})})]}),Ds({services:c,name:ue.MME})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.control_plane?.mme_ue,children:[a.jsx(wi,{icon:a.jsx(ge.MME,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.mme"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.mme_ue?.active_ue_count,"count"),totalValue:s(u.control_plane?.mme_ue?.registered_ue_count,"count"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"medium",title:t.formatMessage({id:"monitoring.control_plane.mme_ue.title"}),subtitle:t.formatMessage({id:"monitoring.control_plane.mme_ue.subtitle"}),titleColor:n([u.control_plane?.mme_ue?.active_ue_count,u.control_plane?.mme_ue?.registered_ue_count])})}),a.jsx(Em,{data:u.control_plane?.mme_ue?.active_ue_count,children:a.jsx(Pee,{height:100,value:+(u.control_plane?.mme_ue?.active_ue_count??0),valueMin:0,valueMax:+(u.control_plane?.mme_ue?.registered_ue_count??0),startAngle:-90,endAngle:90,sx:{[`& .${th.valueText}`]:{fontSize:30,transform:"translate(0px, -10px)"},[`& .${th.valueArc}`]:{fill:d=>by(d.palette.mode)}}})})]}),a.jsx(mi,{show:!!u.control_plane?.mme_active_radios,children:a.jsx(wi,{icon:a.jsx(ge.MME,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.mme"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.mme_active_radios?.active_radios_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.mme_active_radios.title"}),titleColor:n([u.control_plane?.mme_active_radios?.active_radios_count])})})})]}),Ds({services:c,name:ue.SMF})&&a.jsxs(a.Fragment,{children:[a.jsx(mi,{show:!!u.control_plane?.smf_users,children:a.jsxs(wi,{icon:a.jsx(ge.SMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.smf"}),children:[a.jsx(Rs,{mainValue:s(u.control_plane?.smf_users?.users_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_users.users_count.title"}),titleColor:n([u.control_plane?.smf_users?.users_count]),variant:"medium"}),a.jsx(Rs,{mainValue:s(u.control_plane?.smf_users?.sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_users.sessions_count.title"}),titleColor:n([u.control_plane?.smf_users?.sessions_count]),variant:"medium"})]})}),a.jsx(mi,{show:!!u.control_plane?.smf_connected_peers,children:a.jsx(wi,{icon:a.jsx(ge.SMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.smf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.smf_connected_peers?.connected_peers_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_connected_peers.title"}),titleColor:n([u.control_plane?.smf_connected_peers?.connected_peers_count]),variant:"large"})})})]}),Ds({services:c,name:ue.EIR})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.eir_rules,children:a.jsx(wi,{icon:a.jsx(ge.EIR,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.eir"}),children:a.jsx(Rs,{mainValue:s(u?.control_plane?.eir_rules?.eir_rules_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.eir_rules.title"}),titleColor:n([u?.control_plane?.eir_rules?.eir_rules_count]),variant:"large"})})})}),Ds({services:c,name:ue.PCF})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.pcf_sessions,children:a.jsxs(wi,{iconLabel:t.formatMessage({id:"monitoring.icon_label.pcf"}),icon:a.jsx(ge.PCF,{}),children:[a.jsx(Rs,{mainValue:s(u?.control_plane?.pcf_sessions?.n5_sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.pcf_sessions.n5_sessions_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.pcf_sessions?.n5_sessions_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.pcf_sessions?.n7_sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.pcf_sessions.n7_sessions_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.pcf_sessions?.n7_sessions_count])})]})})}),Ds({services:c,name:ue.NRF})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.nrf_profiles,children:a.jsxs(wi,{icon:a.jsx(ge.NRF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.nrf"}),children:[a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.registered_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.registered_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.registered_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.suspended_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.suspended_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.suspended_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.undiscoverable_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.undiscoverable_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.undiscoverable_count])})]})})})]})]}),u?.user_plane&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.user_plane.title"})}),a.jsx(al,{children:Ds({services:c,name:ue.UPF})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.user_plane?.upf_throughput,children:[a.jsx(wi,{icon:a.jsx(ge.UPF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.upf"}),children:a.jsx(Rs,{mainValue:s(u.user_plane?.upf_throughput?.total_load_uplink_bytes,"filesize"),mainValueUnit:i(u.user_plane?.upf_throughput?.total_load_uplink_bytes,"filesize"),totalValue:s(u.user_plane?.upf_throughput?.total_load_downlink_bytes,"filesize"),totalValueUnit:i(u.user_plane?.upf_throughput?.total_load_downlink_bytes,"filesize"),variant:"small",title:t.formatMessage({id:"monitoring.user_plane.upf_throughput.total.title"}),titleColor:n([u.user_plane?.upf_throughput?.total_load_uplink_bytes,u.user_plane?.upf_throughput?.total_load_downlink_bytes])})}),a.jsx(Rs,{mainValue:s(u.user_plane?.upf_throughput?.throughput_uplink_bps,"rate"),mainValueUnit:i(u.user_plane?.upf_throughput?.throughput_uplink_bps,"rate"),totalValue:s(u.user_plane?.upf_throughput?.throughput_downlink_bps,"rate"),totalValueUnit:i(u.user_plane?.upf_throughput?.throughput_downlink_bps,"rate"),variant:"small",title:t.formatMessage({id:"monitoring.user_plane.upf_throughput.throughput.title"}),titleColor:n([u.user_plane?.upf_throughput?.throughput_uplink_bps,u.user_plane?.upf_throughput?.throughput_downlink_bps])}),a.jsx(Em,{data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps,children:a.jsx(Mee,{axisHighlight:{x:"none",y:"none"},series:[{data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1},{data:u.user_plane?.upf_throughput?.ts_throughput_downlink_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1}],xAxis:[{scaleType:"point",data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps?.map((d,f)=>f)??[],position:"none"}],yAxis:[{position:"none"}],height:80,disableAxisListener:!0,disableLineItemHighlight:!0,margin:{bottom:5,left:5,right:5,top:5},colors:O6})})]}),a.jsx(mi,{show:!!u.user_plane?.upf_sessions,children:a.jsx(wi,{icon:a.jsx(ge.UPF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.upf"}),children:a.jsx(Rs,{mainValue:s(u.user_plane?.upf_sessions?.active_sessions,"count"),variant:"large",title:t.formatMessage({id:"monitoring.user_plane.upf_sessions.title"}),titleColor:n([u.user_plane?.upf_sessions?.active_sessions])})})})]})})]})]})})})]})})})},Wwt={element:a.jsx(Or,{transparent:!0}),children:[{path:"home",loader:mut,element:a.jsx(Gwt,{}),handle:vr({labelIntl:"route.home",icon:a.jsx(ge.Home,{})})}]};function Ywt(){const t=he.c(54),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"pfcp.status.peers.remote_node_id"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"remote_node_id",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"pfcp.status.peers.transport_name"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"transport_name",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"pfcp.status.peers.local_addr"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"pfcp.status.peers.remote_addr"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_addr",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"pfcp.status.peers.version"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"version",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"pfcp.status.peers.uptime"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"uptime_sec",label:h,cellRender:Zwt},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"pfcp.status.peers.last_reset_at"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"last_reset_at",label:g,cellRender:Qwt},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"pfcp.status.peers.connected_at"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"connected_at",label:b,cellRender:Kwt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"pfcp.status.peers.num_tuns"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"num_tuns",label:w},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==i||t[37]!==_||t[38]!==y||t[39]!==x||t[40]!==C||t[41]!==l||t[42]!==u||t[43]!==f||t[44]!==m?(k=[i,l,u,f,m,_,y,x,C],t[36]=i,t[37]=_,t[38]=y,t[39]=x,t[40]=C,t[41]=l,t[42]=u,t[43]=f,t[44]=m,t[45]=k):k=t[45];const A=k;let P;t[46]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[46]=P):P=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[47]=T):T=t[47];let j;t[48]!==A||t[49]!==n.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"remote_node_id",page:0,loading:n.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"remote_node_id",columns:A,hidePagination:!0}),t[48]=A,t[49]=n.state,t[50]=j):j=t[50];let R;return t[51]!==r.peers||t[52]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:r.peers,errorElement:T,children:j})}),t[51]=r.peers,t[52]=j,t[53]=R):R=t[53],R}function Kwt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Qwt(t){const{last_reset_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Zwt(t){const{uptime_sec:e}=t;return a.jsx(_e,{type:"body2",children:ai.utc(e*1e3).format("HH:mm:ss")})}function Xwt(){const t=he.c(24),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"pfcp.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"pfcp.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"pfcp.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==i||t[13]!==l||t[14]!==u?(d=[i,l,u],t[12]=i,t[13]=l,t[14]=u,t[15]=d):d=t[15];const f=d;let p;t[16]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=p):p=t[16];let m;t[17]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(en,{}),t[17]=m):m=t[17];let h;t[18]!==f||t[19]!==n.state?(h=g=>a.jsx(Br,{autoScale:!0,data:g||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:g?.length,rowsPerPage:g?.length,rowKey:"transport_name",columns:f,hidePagination:!0}),t[18]=f,t[19]=n.state,t[20]=h):h=t[20];let _;return t[21]!==r.sockets||t[22]!==h?(_=a.jsx(I.Suspense,{fallback:p,children:a.jsx(Qt,{resolve:r.sockets,errorElement:m,children:h})}),t[21]=r.sockets,t[22]=h,t[23]=_):_=t[23],_}async function Jwt({nf:t}){const e=$.apis.pfcp.status.sockets(t);return De({options:{url:e,method:"GET"}})}async function eCt({nf:t}){const e=$.apis.pfcp.status.peers(t);return De({options:{url:e,method:"GET"}})}function tCt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:Jwt({nf:t})}})}function rCt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{peers:eCt({nf:t})}})}function h8({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:r.formatMessage({id:"route.pfcp.sockets"})},{url:"peers",label:r.formatMessage({id:"route.pfcp.peers"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:tCt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Xwt,{})},{path:"peers",loader:rCt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Ywt,{})}]}}const Tee=Pr(),nCt={path:"sgwc",handle:vr({labelIntl:"route.sgwc",icon:a.jsx(ge.SGWC,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SGWC)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.SGWC),{path:"status",handle:vr({labelIntl:"route.sgwc.status",to:$.urls.sgwcStatus}),element:a.jsx(Ao,{tabs:[{url:"gtpc",label:Tee.formatMessage({id:"route.sgwc.status.gtpc"})},{url:"pfcp",label:Tee.formatMessage({id:"route.sgwc.status.pfcp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"gtpc",replace:!0})},uk({path:"gtpc",nf:ue.SGWC,showBlockedPeers:!1}),h8({path:"pfcp",nf:ue.SGWC})]}]}]},PD=Pr(),sCt={path:"smf",handle:vr({labelIntl:"route.smf",icon:a.jsx(ge.SMF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SMF)]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.SMF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.SMF),{path:"status",handle:vr({labelIntl:"route.smf.status",to:$.urls.smfStatus}),element:a.jsx(Ao,{tabs:[{url:"gtpc",label:PD.formatMessage({id:"route.smf.status.gtpc"})},{url:"gtpu",label:PD.formatMessage({id:"route.smf.status.gtpu"})},{url:"pfcp",label:PD.formatMessage({id:"route.smf.status.pfcp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"gtpc",replace:!0})},uk({path:"gtpc",nf:ue.SMF,showBlockedPeers:!1}),m7({path:"gtpu",nf:ue.SMF}),h8({path:"pfcp",nf:ue.SMF})]}]}]};function iCt(){const t=he.c(48),e=ci(),r=Ye(),n=Gr(),s=On(),i=aCt;let o;t[0]!==r?(o=r.formatMessage({id:"smsf.smpp.connections.name"}),t[0]=r,t[1]=o):o=t[1];let l;t[2]!==o?(l={key:"name",label:o},t[2]=o,t[3]=l):l=t[3];let c;t[4]!==r?(c=r.formatMessage({id:"smsf.smpp.connections.connection_type"}),t[4]=r,t[5]=c):c=t[5];let u;t[6]!==r||t[7]!==e?(u=D=>{const{connection_type:O}=D;return a.jsx(_e,{sx:{backgroundColor:O==="smpp_mc_peer"?e.palette.boy.light:e.palette.girl.light,color:O==="smpp_mc_peer"?e.palette.boy.contrastText:e.palette.girl.contrastText,fontWeight:"600",fontSize:"13px",borderRadius:5,px:1,display:"inline-block"},children:r.formatMessage({id:`smsf.smpp.connections.connection_type.${O}`})})},t[6]=r,t[7]=e,t[8]=u):u=t[8];let d;t[9]!==c||t[10]!==u?(d={key:"connection_type",label:c,cellRender:u},t[9]=c,t[10]=u,t[11]=d):d=t[11];let f;t[12]!==r?(f=r.formatMessage({id:"smsf.smpp.connections.bind_type"}),t[12]=r,t[13]=f):f=t[13];let p;t[14]!==r?(p=D=>{const{bind_type:O}=D;return a.jsxs(te,{direction:"row",spacing:1,justify:"flex-start",nowrap:!0,children:[O==="tx"?a.jsx(ge.UpArrow,{}):O==="rx"?a.jsx(ge.DownArrow,{}):a.jsxs(gt,{sx:{position:"relative"},children:[a.jsx(gt,{sx:{position:"relative",top:"-3px"},children:a.jsx(ge.UpArrow,{})}),a.jsx(gt,{sx:{position:"absolute",left:0,top:"3px"},children:a.jsx(ge.DownArrow,{})})]}),a.jsx(_e,{fontSize:"small",children:r.formatMessage({id:`smsf.smpp.connections.bind_type.${O}`})})]})},t[14]=r,t[15]=p):p=t[15];let m;t[16]!==f||t[17]!==p?(m={key:"bind_type",label:f,cellRender:p},t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;t[19]!==r?(h=r.formatMessage({id:"smsf.smpp.connections.local_addr"}),t[19]=r,t[20]=h):h=t[20];let _;t[21]===Symbol.for("react.memo_cache_sentinel")?(_=D=>{const{local_addr:O,local_port:N}=D;return a.jsx(_e,{type:"body2",children:i({addr:O,port:N})})},t[21]=_):_=t[21];let g;t[22]!==h?(g={key:"local_addr",label:h,cellRender:_},t[22]=h,t[23]=g):g=t[23];let y;t[24]!==r?(y=r.formatMessage({id:"smsf.smpp.connections.remote_addr"}),t[24]=r,t[25]=y):y=t[25];let b;t[26]===Symbol.for("react.memo_cache_sentinel")?(b=D=>{const{remote_addr:O,remote_port:N}=D;return a.jsx(_e,{type:"body2",children:i({addr:O,port:N})})},t[26]=b):b=t[26];let x;t[27]!==y?(x={key:"remote_addr",label:y,cellRender:b},t[27]=y,t[28]=x):x=t[28];let w;t[29]!==r?(w=r.formatMessage({id:"smsf.smpp.connections.created_at"}),t[29]=r,t[30]=w):w=t[30];let C;t[31]!==w?(C={key:"created_at",label:w,cellRender:oCt},t[31]=w,t[32]=C):C=t[32];let k;t[33]!==l||t[34]!==g||t[35]!==x||t[36]!==C||t[37]!==d||t[38]!==m?(k=[l,d,m,g,x,C],t[33]=l,t[34]=g,t[35]=x,t[36]=C,t[37]=d,t[38]=m,t[39]=k):k=t[39];const A=k;let P;t[40]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[40]=P):P=t[40];let T;t[41]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[41]=T):T=t[41];let j;t[42]!==A||t[43]!==s.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"name",page:0,loading:s.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"name",columns:A,hidePagination:!0}),t[42]=A,t[43]=s.state,t[44]=j):j=t[44];let R;return t[45]!==n.connections||t[46]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:n.connections,errorElement:T,children:j})}),t[45]=n.connections,t[46]=j,t[47]=R):R=t[47],R}function oCt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function aCt(t){const{addr:e,port:r}=t;return a.jsxs(a.Fragment,{children:[e||"-",r?":"+r:""]})}const jD=Pr(),lCt=dr().shape({msisdn:We().matches(new RegExp(`${$.regex.msisdnForSmsBox}`)).required(jD.formatMessage({id:"validation.required"})),to:We().matches(new RegExp(`${$.regex.msisdnForSmsBox}`)).required(jD.formatMessage({id:"validation.required"})),body:We().required(jD.formatMessage({id:"validation.required"})),validity_time_s:kn().min(0)}),cCt=t=>{const e=he.c(22),{msisdnList:r,onCancel:n}=t,s=Ye(),{data:i,state:o,submit:l}=gr(),[c,u]=I.useState(!1),{msisdn:d}=ko(),f=ys(),p=to();let m,h;e[0]!==p||e[1]!==f||e[2]!==n||e[3]!==i||e[4]!==o?(m=()=>{if(i&&o==="idle"){const{from:k}=i,A=`${$.urls.smsfSmsBox}/${k}/outbound`;xt(i)||(f(A,{replace:p.pathname===A}),n())}},h=[f,n,i,o,p],e[0]=p,e[1]=f,e[2]=n,e[3]=i,e[4]=o,e[5]=m,e[6]=h):(m=e[5],h=e[6]),I.useEffect(m,h);let _;e[7]!==l?(_=async k=>{const{body:A,to:P,validity_time_s:T,msisdn:j}=k,R={msisdn:j,to:P,body:A,...!!T&&{validity_time_s:+T}};l(R,{method:"POST",encType:"application/json",action:"smsf/sms-box/send"})},e[7]=l,e[8]=_):_=e[8];const g=_,y=d??"";let b;e[9]!==y?(b={msisdn:y,to:"",body:"",validity_time_s:""},e[9]=y,e[10]=b):b=e[10];const x=b;let w;e[11]!==s||e[12]!==c||e[13]!==r||e[14]!==n||e[15]!==i||e[16]!==o?(w=k=>{const{setFieldValue:A}=k,P=(T,j)=>{A(T,j??"")};return a.jsx(dn,{canWrite:Ue(ie.management),sx:{maxWidth:"100%"},children:a.jsx(_s,{children:a.jsxs(te,{spacing:4,sx:{pt:2},children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"msisdn",children:T=>{const{field:j,meta:R}=T;return a.jsx(rn,{value:j.value,name:j.name,label:s.formatMessage({id:"smsf.sms_box.new_message.msisdn"}),options:r,freeSolo:!0,error:!!R.error,helperText:R.error,onChange:(D,O)=>P("msisdn",O),onInputChange:(D,O)=>P("msisdn",O),disabled:o!=="idle"})}}),a.jsx(Ke,{name:"to",children:T=>{const{field:j,meta:R}=T;return a.jsx(rn,{value:j.value,name:j.name,label:s.formatMessage({id:"smsf.sms_box.new_message.to"}),options:r,freeSolo:!0,error:!!R.error,helperText:R.error,onChange:(D,O)=>P("to",O),onInputChange:(D,O)=>P("to",O),disabled:o!=="idle"})}}),a.jsx(Ke,{name:"body",children:T=>{const{field:j,meta:R}=T;return a.jsx(dt,{...j,label:s.formatMessage({id:"smsf.sms_box.new_message.body"}),size:"small",multiline:5,error:!!R.error,helperText:R.error,disabled:o!=="idle"})}}),a.jsx(Ke,{name:"validity_time_s",children:T=>{const{field:j,meta:R}=T;return a.jsxs(te,{children:[a.jsxs(te,{direction:"row",justify:"stretch",align:"stretch",nowrap:!0,children:[c&&a.jsx(dt,{...j,label:s.formatMessage({id:"smsf.sms_box.new_message.validity_time_s"}),type:"number",error:!!R.error,helperText:R.error,disabled:o!=="idle",fullWidth:!0,sx:{width:"100%"},InputProps:{endAdornment:a.jsx(Zr,{onClick:()=>P("validity_time_s",""),children:a.jsx(ge.StatusError,{})})}}),!c&&a.jsx(uL,{label:s.formatMessage({id:"smsf.sms_box.new_message.validity_time_s"}),value:j.value?ai.unix(j.value):null,minDate:ai(),slotProps:{field:{clearable:!0}},onChange:D=>{D&&P("validity_time_s",D.unix())},sx:{width:"100%"}})]}),a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:c,onChange:(D,O)=>{u(O)}}),a.jsx(_e,{children:s.formatMessage({id:"smsf.sms_box.new_message.is_seconds_visible"})})]})]})}}),a.jsx(Xr,{data:i})]}),a.jsxs(te,{direction:"row",justify:"space-between",children:[a.jsx(Ze,{text:s.formatMessage({id:"smsf.sms_box.new_message.buttons.cancel"}),type:"button",disabled:o!=="idle"||!Ue(ie.management),onClick:n,variant:"outlined"}),a.jsx(Ze,{text:s.formatMessage({id:"smsf.sms_box.new_message.buttons.send"}),type:"submit",disabled:!Ue(ie.management),loading:o!=="idle"})]})]})})})},e[11]=s,e[12]=c,e[13]=r,e[14]=n,e[15]=i,e[16]=o,e[17]=w):w=e[17];let C;return e[18]!==g||e[19]!==x||e[20]!==w?(C=a.jsx(Wr,{initialValues:x,validationSchema:lCt,enableReinitialize:!0,onSubmit:g,children:w}),e[18]=g,e[19]=x,e[20]=w,e[21]=C):C=e[21],C};function uCt(){const t=he.c(19),{dialogOpen:e,dialogClose:r}=Jt(),n=Ye(),s=Gr(),i=On(),o=ys(),{msisdn:l,direction:c}=ko();let u;t[0]!==r||t[1]!==e||t[2]!==n?(u=b=>()=>{e({title:n.formatMessage({id:"smsf.sms_box.new_message.dialog.title"}),content:()=>a.jsx(cCt,{msisdnList:b,onCancel:()=>r()})})},t[0]=r,t[1]=e,t[2]=n,t[3]=u):u=t[3];const d=u;let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f={p:2,flex:"0 0 auto",borderColor:"divider"},t[4]=f):f=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(gt,{sx:f,children:a.jsx(Dt,{variant:"rounded",sx:{height:"40px",width:"100%",margin:"0 auto"}})}),t[5]=p):p=t[5];let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m={px:2,pb:2,flex:"1 1 auto"},t[6]=m):m=t[6];let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(te,{fullHeight:!0,children:[p,a.jsx(gt,{sx:m,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})})]}),t[7]=h):h=t[7];let _;t[8]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[8]=_):_=t[8];let g;t[9]!==c||t[10]!==d||t[11]!==n||t[12]!==l||t[13]!==o||t[14]!==i.state?(g=b=>a.jsx(a.Fragment,{children:a.jsxs(te,{spacing:0,nowrap:!0,fullHeight:!0,children:[a.jsx(gt,{sx:{borderBottom:"1px solid",flex:"0 0 auto",borderColor:"divider"},children:a.jsxs(te,{justify:"space-between",align:"center",direction:"row",sx:{p:2},children:[a.jsx(rn,{placeholder:n.formatMessage({id:"smsf.sms_box.search"}),options:b,sx:{minWidth:"250px"},size:"small",value:l??"",disabled:i.state==="loading",onChange:(x,w)=>o(w?`${$.urls.smsfSmsBox}/${w}/${c??"inbound"}`:$.urls.smsfSmsBox)}),a.jsx(Ze,{startIcon:a.jsx(ge.Send,{}),text:n.formatMessage({id:"smsf.sms_box.buttons.new_sms"}),onClick:d(b),disabled:i.state==="loading"})]})}),a.jsx(te,{sx:{flex:"1 1 auto"},fullHeight:!0,nowrap:!0,children:a.jsx(Bd,{})})]})}),t[9]=c,t[10]=d,t[11]=n,t[12]=l,t[13]=o,t[14]=i.state,t[15]=g):g=t[15];let y;return t[16]!==s.msisdnList||t[17]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:s.msisdnList,errorElement:_,children:g})}),t[16]=s.msisdnList,t[17]=g,t[18]=y):y=t[18],y}function dCt(){const t=he.c(9),e=Ye(),r=Gr(),n=ys();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={p:2,flex:"1 1 auto"},t[0]=s):s=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(gt,{sx:s,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})}),t[1]=i):i=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Tr,{}),t[2]=o):o=t[2];let l;t[3]!==e||t[4]!==n?(l=u=>a.jsxs(a.Fragment,{children:[u.length>0&&a.jsx(s7,{divided:!0,sx:{overflow:"auto",height:"100%",maxHeight:"100%",p:0},children:u.map(d=>a.jsx(i7,{primaryText:d,selected:!1,onClick:()=>n(`${$.urls.smsfSmsBox}/${d}`),endIcon:a.jsx(ge.RightArrow,{})},d))}),u.length===0&&a.jsx(Kt,{children:a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"smsf.sms_box.no_msisdns"})})})]}),t[3]=e,t[4]=n,t[5]=l):l=t[5];let c;return t[6]!==r.msisdnList||t[7]!==l?(c=a.jsx(I.Suspense,{fallback:i,children:a.jsx(Qt,{resolve:r.msisdnList,errorElement:o,children:l})}),t[6]=r.msisdnList,t[7]=l,t[8]=c):c=t[8],c}function fCt(t){const e=he.c(65),{message:r}=t,{id:n,from:s,to:i,created_at:o,modified_at:l,validity_time_s:c,body:u}=r,d=Ye(),f=gl(),{openConfirmDialog:p}=di(),{direction:m,msisdn:h}=ko();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={key:"fetcher-smsf-sms-box-delete"},e[0]=_):_=e[0];const g=gr(_);let y;e[1]!==m||e[2]!==n||e[3]!==h||e[4]!==f?(y=async()=>{n&&h&&(m==="inbound"||m==="outbound")&&f({msisdn:h,message_id:n,direction:m},{method:"POST",encType:"application/json",navigate:!1,action:"delete",fetcherKey:"fetcher-smsf-sms-box-delete"})},e[1]=m,e[2]=n,e[3]=h,e[4]=f,e[5]=y):y=e[5];const b=y;let x;e[6]!==b||e[7]!==n||e[8]!==d||e[9]!==p?(x=()=>{p({id:"smsf-sms-box-delete-confir",onConfirm:()=>void b(),title:d.formatMessage({id:"smsf.sms_box.delete_message.dialog.confirm.title"}),text:d.formatMessage({id:"smsf.sms_box.delete_message.dialog.confirm.text"},{id:n}),closeOnBackdropClick:!0})},e[6]=b,e[7]=n,e[8]=d,e[9]=p,e[10]=x):x=e[10];const w=x;let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C={"&:hover":{".deleteIcon":{visibility:"visible"}},borderRadius:3,padding:2,position:"relative"},e[11]=C):C=e[11];let k;e[12]!==m||e[13]!==d?(k=d.formatMessage({id:`smsf.sms_box.message.message_${m==="outbound"?"to":"from"}`}),e[12]=m,e[13]=d,e[14]=k):k=e[14];let A;e[15]!==k?(A=a.jsx(_e,{children:k}),e[15]=k,e[16]=A):A=e[16];const P=m==="outbound"?i:s;let T;e[17]!==P?(T=a.jsx(_e,{fontSize:"large",fontWeight:"600",children:P}),e[17]=P,e[18]=T):T=e[18];let j;e[19]!==A||e[20]!==T?(j=a.jsxs(te,{direction:"row",align:"center",children:[A,T]}),e[19]=A,e[20]=T,e[21]=j):j=e[21];let R;e[22]!==d?(R=d.formatMessage({id:"smsf.sms_box.message.message_at"}),e[22]=d,e[23]=R):R=e[23];let D;e[24]!==R?(D=a.jsx(_e,{children:R}),e[24]=R,e[25]=D):D=e[25];let O;e[26]!==o?(O=Mr(o),e[26]=o,e[27]=O):O=e[27];let N;e[28]!==O?(N=a.jsx(_e,{fontWeight:"600",children:O}),e[28]=O,e[29]=N):N=e[29];let F;e[30]!==D||e[31]!==N?(F=a.jsxs(te,{direction:"row",align:"center",children:[D,N]}),e[30]=D,e[31]=N,e[32]=F):F=e[32];let U;e[33]!==j||e[34]!==F?(U=a.jsxs(te,{spacing:0,children:[j,F]}),e[33]=j,e[34]=F,e[35]=U):U=e[35];let z;e[36]===Symbol.for("react.memo_cache_sentinel")?(z={margin:"0",border:"1px solid",borderColor:"divider",borderRadius:"4px",paddingBlock:4,paddingInline:8,whiteSpace:"pre-wrap",wordBreak:"break-word"},e[36]=z):z=e[36];let H;e[37]!==u?(H=a.jsx("pre",{style:z,children:u}),e[37]=u,e[38]=H):H=e[38];let W;e[39]!==U||e[40]!==H?(W=a.jsxs(te,{spacing:1,children:[U,H]}),e[39]=U,e[40]=H,e[41]=W):W=e[41];let K;e[42]===Symbol.for("react.memo_cache_sentinel")?(K={color:"text.secondary"},e[42]=K):K=e[42];let q;e[43]!==n||e[44]!==d?(q=!!n&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.id"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:n})]}),e[43]=n,e[44]=d,e[45]=q):q=e[45];let X;e[46]!==d||e[47]!==c?(X=!!c&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.validity_time_s"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:qtt(c)})]}),e[46]=d,e[47]=c,e[48]=X):X=e[48];let Q;e[49]!==d||e[50]!==l?(Q=!!l&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.modified_at"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:Mr(l)})]}),e[49]=d,e[50]=l,e[51]=Q):Q=e[51];let Y;e[52]!==q||e[53]!==X||e[54]!==Q?(Y=a.jsxs(gt,{sx:K,children:[q,X,Q]}),e[52]=q,e[53]=X,e[54]=Q,e[55]=Y):Y=e[55];let Z;e[56]===Symbol.for("react.memo_cache_sentinel")?(Z={visibility:"hidden",position:"absolute",top:"10px",right:"10px"},e[56]=Z):Z=e[56];const re=g.state!=="idle";let fe;e[57]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(ge.Trash,{}),e[57]=fe):fe=e[57];let de;e[58]!==w||e[59]!==re?(de=a.jsx(gt,{className:"deleteIcon",sx:Z,children:a.jsx(Zr,{onClick:w,disabled:re,children:fe})}),e[58]=w,e[59]=re,e[60]=de):de=e[60];let se;return e[61]!==W||e[62]!==Y||e[63]!==de?(se=a.jsx(pr,{variant:"outlined",children:a.jsxs(te,{spacing:2,sx:C,children:[W,Y,de]})}),e[61]=W,e[62]=Y,e[63]=de,e[64]=se):se=e[64],se}function pCt(){const t=he.c(11),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={p:2,flex:"1 1 auto"},t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[3]=o):o=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsxs(te,{sx:n,spacing:2,children:[s,i,o,a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}})]}),t[4]=l):l=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Tr,{}),t[5]=c):c=t[5];let u;t[6]!==e?(u=f=>a.jsxs(a.Fragment,{children:[!!f.length&&a.jsx(te,{spacing:2,sx:{overflow:"auto",p:2},nowrap:!0,fullWidth:!0,children:f.map(mCt)}),!f.length&&a.jsx(Kt,{children:a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"smsf.sms_box.messages.no_messages"})})})]}),t[6]=e,t[7]=u):u=t[7];let d;return t[8]!==r.messages||t[9]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:r.messages,errorElement:c,children:u})}),t[8]=r.messages,t[9]=u,t[10]=d):d=t[10],d}function mCt(t){return a.jsx(fCt,{message:t},t.id)}async function hCt(){const t=$.apis.smsf.smpp.status.connections;return De({options:{url:t,method:"GET"}})}async function Zpe(){const t=$.apis.smsf.smsBox.msisdnList;return De({options:{url:t,method:"GET"}})}async function gCt({msisdn:t,direction:e}){const r=$.apis.smsf.smsBox.msisdnMessages({msisdn:t,direction:e});return De({options:{url:r,method:"GET",cache:!1}})}async function _Ct({msisdn:t,validity_time_s:e,to:r,body:n}){const s=$.apis.smsf.smsBox.messagesCreate({msisdn:t});return De({options:{url:s,method:"POST",data:{to:r,body:n,...e&&{validity_time_s:e}}}})}async function vCt({msisdn:t,direction:e,message_id:r}){const n=$.apis.smsf.smsBox.messagesDelete({msisdn:t,direction:e,message_id:r});return De({options:{url:n,method:"DELETE"}})}const q$=Pr();async function yCt({request:t}){const e=await t.json(),r=await _Ct(e);return xt(r)||Nt(q$.formatMessage({id:"smsf.sms_box.new_message.dialog.send_ok"})),Ft(r)}async function bCt({request:t}){const e=await t.json(),r=await vCt(e);return xt(r)?Ar(r.error?.detail||q$.formatMessage({id:"smsf.sms_box.delete_message.dialog.send_ko"})):Nt(q$.formatMessage({id:"smsf.sms_box.delete_message.dialog.send_ok"})),Ft(r)}async function xCt(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:hCt()}})}async function Eee(t){return Wt({loaderArgs:t,deferred:!0,data:{msisdnList:Zpe()}})}async function SCt(t){const{msisdn:e,direction:r}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{messages:gCt({msisdn:e,direction:r&&["inbound","outbound"].includes(r)?r:"inbound"}),msisdnList:Zpe(),msisdn:e}}):null}const zy=Pr(),wCt={path:"smsf",handle:vr({labelIntl:"route.smsf",icon:a.jsx(ge.SMSF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SMSF,{dbCluster:!0})]},{element:a.jsx(Or,{center:!0,fullHeight:!0}),children:[{path:"sms-box",handle:vr({labelIntl:"route.smsf.sms-box",to:"/smsf/sms-box"}),element:a.jsx(uCt,{}),loader:Eee,children:[{index:!0,element:a.jsx(ur,{to:"list",replace:!0})},{path:"send",action:yCt,loader:()=>rt("..")},{path:"list",loader:Eee,element:a.jsx(dCt,{})},{path:":msisdn",element:a.jsx(Ao,{tabs:[{url:"inbound",label:zy.formatMessage({id:"smsf.sms_box.tabs.inbound"})},{url:"outbound",label:zy.formatMessage({id:"smsf.sms_box.tabs.outbound"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"inbound",replace:!0})},{path:":direction",element:a.jsx(pCt,{}),loader:SCt,children:[{path:"delete",action:bCt,loader:()=>rt("..")}]}]}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.smsf.status",to:"/smsf/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:zy.formatMessage({id:"route.diameter"})},{url:"smpp",label:zy.formatMessage({id:"route.smsf.smpp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.SMSF}),{path:"smpp",element:a.jsx(la,{navs:[{url:"connections",label:zy.formatMessage({id:"route.smsf.smpp.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:xCt,errorElement:a.jsx(en,{}),element:a.jsx(iCt,{})}]}]},io(ue.SMSF)]}]};function TD(t){return xt(t)?!0:Array.isArray(t)?t.some(e=>xt(e)):!1}function CCt(t){const e=he.c(6),{errorData:r}=t;if(Array.isArray(r)){let s;e[0]!==r?(s=r.map(ACt),e[0]=r,e[1]=s):s=e[1];let i;return e[2]!==s?(i=a.jsx(te,{children:s}),e[2]=s,e[3]=i):i=e[3],i}let n;return e[4]!==r.error.detail?(n=a.jsx(Lr,{severity:"error",message:r.error.detail}),e[4]=r.error.detail,e[5]=n):n=e[5],n}function ACt(t,e){return a.jsx(Lr,{severity:"error",message:t.error.detail},e)}const bx=t=>{const e=he.c(47);let r,n,s,i,o,l,c,u,d,f;e[0]!==t?({action:n,requiredMessage:f,onDialogSuccess:u,min:c,max:l,acceptEncrypted:r,extraData:o,customError:s,extraContent:i,...d}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10]);const p=Ye(),{data:m,state:h,submit:_}=gr(),{dialogClose:g}=Jt();let y,b;e[11]!==m||e[12]!==g||e[13]!==u||e[14]!==h?(y=()=>{m&&!TD(m)&&h==="idle"&&(g(),u&&u(m))},b=[m,g,u,h],e[11]=m,e[12]=g,e[13]=u,e[14]=h,e[15]=y,e[16]=b):(y=e[15],b=e[16]),I.useEffect(y,b);let x;e[17]!==n||e[18]!==o||e[19]!==_?(x=async O=>{const N=new FormData;for(const F in O){const U=O[F];if(Array.isArray(U))for(let z=0;z<U.length;z++)N.append(F,U[z]);else N.append(F,U)}for(const F in o)N.append(F,o[F]);_(N,{method:"POST",encType:"multipart/form-data",action:n})},e[17]=n,e[18]=o,e[19]=_,e[20]=x):x=e[20];const w=x;let C;e[21]!==r||e[22]!==p||e[23]!==l||e[24]!==c||e[25]!==f?(C=dr().shape({files:yr().min(c,p.formatMessage({id:"form_import_files.min"},{num:c})).max(l,p.formatMessage({id:"form_import_files.max"},{num:l})).required(f||p.formatMessage({id:"form_import_files.required"})),...r&&{encrypted:li()}}),e[21]=r,e[22]=p,e[23]=l,e[24]=c,e[25]=f,e[26]=C):C=e[26];const k=C;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=[],e[27]=A):A=e[27];let P;e[28]!==r?(P=r&&{encrypted:!1},e[28]=r,e[29]=P):P=e[29];let T;e[30]!==P?(T={files:A,...P},e[30]=P,e[31]=T):T=e[31];const j=T;let R;e[32]!==s||e[33]!==m||e[34]!==g||e[35]!==i||e[36]!==p||e[37]!==l||e[38]!==c||e[39]!==d||e[40]!==h?(R=O=>{const{dirty:N}=O;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[i,a.jsx(Sue,{min:c,max:l,...d}),TD(m)&&!s&&a.jsx(CCt,{errorData:m}),TD(m)&&!!s&&s(m)]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:p.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:h!=="idle",onClick:()=>g()}),a.jsx(Ze,{text:p.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!N,loading:h!=="idle"})]})})]})},e[32]=s,e[33]=m,e[34]=g,e[35]=i,e[36]=p,e[37]=l,e[38]=c,e[39]=d,e[40]=h,e[41]=R):R=e[41];let D;return e[42]!==w||e[43]!==j||e[44]!==R||e[45]!==k?(D=a.jsx(Wr,{initialValues:j,validationSchema:k,onSubmit:w,children:R}),e[42]=w,e[43]=j,e[44]=R,e[45]=k,e[46]=D):D=e[46],D},kCt=Pr();function MCt(t){switch(t.status){case"CREATED":return nn.DEFAULT;case"RUNNING":return nn.INFO;case"TERMINATED":return t.info?.errors.length?nn.ERROR:t.info?.warnings.length?nn.WARNING:nn.SUCCESS}}const PCt=dr().shape({password:We().matches(/^[a-fA-F0-9]{32}$/)}),jCt=dr().shape({files:yr().min(1,kCt.formatMessage({id:"backup.detail.form.validation.error"}))});function TCt(){const t=he.c(16),e=Ye(),{dialogClose:r}=Jt(),{nf:n}=ko(),{upsertFetcher:s}=Ys(),{submit:i,data:o,state:l}=s;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={password:""},t[0]=c):c=t[0];const u=c;let d;t[1]!==n||t[2]!==i?(d=()=>{n&&i({nf:n,configuration:{password:null}},{action:"system/backup/update-configuration",method:"PUT",encType:"application/json"})},t[1]=n,t[2]=i,t[3]=d):d=t[3];const f=d;let p;t[4]!==n||t[5]!==i?(p=g=>{n&&i({nf:n,configuration:g},{action:"system/backup/update-configuration",method:"PUT",encType:"application/json"})},t[4]=n,t[5]=i,t[6]=p):p=t[6];const m=p;let h;t[7]!==o||t[8]!==r||t[9]!==f||t[10]!==e||t[11]!==l?(h=g=>{const{dirty:y,isSubmitting:b}=g;return a.jsxs(dn,{canWrite:Ue([[ie.provisioning,ie.backup]]),children:[a.jsx(yv,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"password",children:x=>{const{field:w,meta:C}=x;return a.jsx(dt,{...w,showPasswordVisibility:!0,fullWidth:!0,type:"password",label:e.formatMessage({id:"backup.encryption_password"}),helperText:C.error,error:!!C.error})}}),a.jsx(Xr,{data:o})]})}),a.jsx(vv,{children:a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"common.form.cancel"}),disabled:l!=="idle",onClick:()=>r()}),a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"backup.encryption_password.reset_default"}),disabled:l!=="idle"||!Ue([[ie.provisioning,ie.backup]]),loading:l!=="idle"&&!b,onClick:f}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.update"}),loading:l!=="idle"&&b,disabled:!y||l!=="idle"||!Ue([[ie.provisioning,ie.backup]])})]})})]})},t[7]=o,t[8]=r,t[9]=f,t[10]=e,t[11]=l,t[12]=h):h=t[12];let _;return t[13]!==m||t[14]!==h?(_=a.jsx(Wr,{initialValues:u,validationSchema:PCt,onSubmit:m,children:h}),t[13]=m,t[14]=h,t[15]=_):_=t[15],_}const h0=I.createContext({});function ECt(t){return tr("MuiTimeline",t)}rr("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Wp(t){return t==="alternate-reverse"?"positionAlternateReverse":`position${tt(t)}`}const RCt=t=>{const{position:e,classes:r}=t,n={root:["root",e&&Wp(e)]};return nr(n,ECt,r)},ICt=Ce("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.position&&e[Wp(r.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),DCt=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimeline"}),{position:s="right",className:i,...o}=n,l={...n,position:s},c=RCt(l),u=I.useMemo(()=>({position:s}),[s]);return a.jsx(h0.Provider,{value:u,children:a.jsx(ICt,{className:lt(c.root,i),ownerState:l,ref:r,...o})})});function $Ct(t){return tr("MuiTimelineConnector",t)}rr("MuiTimelineConnector",["root"]);const OCt=t=>{const{classes:e}=t;return nr({root:["root"]},$Ct,e)},LCt=Ce("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({width:2,backgroundColor:(t.vars||t).palette.grey[400],flexGrow:1})),Ree=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineConnector"}),{className:s,...i}=n,o=n,l=OCt(o);return a.jsx(LCt,{className:lt(l.root,s),ownerState:o,ref:r,...i})});function NCt(t){return tr("MuiTimelineContent",t)}const FCt=rr("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),UCt=t=>{const{position:e,classes:r}=t,n={root:["root",Wp(e)]};return nr(n,NCt,r)},BCt=Ce(cn,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({flex:1,padding:"6px 16px",textAlign:"left",...t.position==="left"&&{textAlign:"right"}})),ED=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineContent"}),{className:s,...i}=n,{position:o}=I.useContext(h0),l={...n,position:o||"right"},c=UCt(l);return a.jsx(BCt,{component:"div",className:lt(c.root,s),ownerState:l,ref:r,...i})});function zCt(t){return tr("MuiTimelineDot",t)}rr("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const qCt=t=>{const{color:e,variant:r,classes:n}=t,s={root:["root",r,e!=="inherit"&&`${r}${tt(e)}`]};return nr(s,zCt,n)},VCt=Ce("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.color!=="inherit"&&`${r.variant}${tt(r.color)}`],e[r.variant]]}})(({ownerState:t,theme:e})=>({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(e.vars||e).shadows[1],margin:"11.5px 0",...t.variant==="filled"&&{borderColor:"transparent",...t.color!=="inherit"&&{...t.color==="grey"?{color:(e.vars||e).palette.grey[50],backgroundColor:(e.vars||e).palette.grey[400]}:{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main}}},...t.variant==="outlined"&&{boxShadow:"none",backgroundColor:"transparent",...t.color!=="inherit"&&{...t.color==="grey"?{borderColor:(e.vars||e).palette.grey[400]}:{borderColor:(e.vars||e).palette[t.color].main}}}})),RD=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineDot"}),{className:s,color:i="grey",variant:o="filled",...l}=n,c={...n,color:i,variant:o},u=qCt(c);return a.jsx(VCt,{className:lt(u.root,s),ownerState:c,ref:r,...l})});function HCt(t){return tr("MuiTimelineOppositeContent",t)}const GCt=rr("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),WCt=t=>{const{position:e,classes:r}=t,n={root:["root",Wp(e)]};return nr(n,HCt,r)},YCt=Ce(cn,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1,...t.position==="left"&&{textAlign:"left"}})),rC=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineOppositeContent"}),{className:s,...i}=n,{position:o}=I.useContext(h0),l={...n,position:o||"left"},c=WCt(l);return a.jsx(YCt,{component:"div",className:lt(c.root,s),ownerState:l,ref:r,...i})});rC.muiName="TimelineOppositeContent";function KCt(t){return tr("MuiTimelineItem",t)}rr("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const QCt=t=>{const{position:e,classes:r,hasOppositeContent:n}=t,s={root:["root",Wp(e),!n&&"missingOppositeContent"]};return nr(s,KCt,r)},ZCt=Ce("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...t.position==="left"&&{flexDirection:"row-reverse"},...(t.position==="alternate"||t.position==="alternate-reverse")&&{[`&:nth-of-type(${t.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${FCt.root}`]:{textAlign:"right"},[`& .${GCt.root}`]:{textAlign:"left"}}},...!t.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),ID=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineItem"}),{position:s,className:i,...o}=n,{position:l}=I.useContext(h0);let c=!1;I.Children.forEach(n.children,p=>{cb(p,["TimelineOppositeContent"])&&(c=!0)});const u={...n,position:s||l||"right",hasOppositeContent:c},d=QCt(u),f=I.useMemo(()=>({position:u.position}),[u.position]);return a.jsx(h0.Provider,{value:f,children:a.jsx(ZCt,{className:lt(d.root,i),ownerState:u,ref:r,...o})})});function XCt(t){return tr("MuiTimelineSeparator",t)}rr("MuiTimelineSeparator",["root"]);const JCt=t=>{const{classes:e}=t;return nr({root:["root"]},XCt,e)},e3t=Ce("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),DD=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineSeparator"}),{className:s,...i}=n,o=n,l=JCt(o);return a.jsx(e3t,{className:lt(l.root,s),ownerState:o,ref:r,...i})});function t3t(t){const e=he.c(38),{scheduleStatus:r}=t,{created_at:n,info:s}=r;s?.warnings.length,s?.errors.length;let i;e:{if(s?.errors.length){i="error";break e}if(s?.warnings.length){i="warning";break e}i="success"}const o=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={p:0},e[0]=l):l=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={whiteSpace:"nowrap"},e[1]=c):c=e[1];const u=s?.terminated_at;let d;e[2]!==u?(d=Mr(u),e[2]=u,e[3]=d):d=e[3];let f;e[4]!==d?(f=a.jsx(rC,{color:"text.secondary",sx:c,children:d}),e[4]=d,e[5]=f):f=e[5];let p;e[6]!==o?(p=a.jsx(RD,{color:o}),e[6]=o,e[7]=p):p=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Ree,{}),e[8]=m):m=e[8];let h;e[9]!==p?(h=a.jsxs(DD,{children:[p,m]}),e[9]=p,e[10]=h):h=e[10];let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(ED,{sx:{textAlign:"right"},children:"Terminated at"}),e[11]=_):_=e[11];let g;e[12]!==f||e[13]!==h?(g=a.jsxs(ID,{children:[f,h,_]}),e[12]=f,e[13]=h,e[14]=g):g=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y={whiteSpace:"nowrap"},e[15]=y):y=e[15];const b=s?.started_at;let x;e[16]!==b?(x=Mr(b),e[16]=b,e[17]=x):x=e[17];let w;e[18]!==x?(w=a.jsx(rC,{color:"text.secondary",sx:y,children:x}),e[18]=x,e[19]=w):w=e[19];let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsxs(DD,{children:[a.jsx(RD,{color:"info"}),a.jsx(Ree,{})]}),e[20]=C):C=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(ED,{sx:{textAlign:"right"},children:"Started at"}),e[21]=k):k=e[21];let A;e[22]!==w?(A=a.jsxs(ID,{children:[w,C,k]}),e[22]=w,e[23]=A):A=e[23];let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P={minHeight:"auto"},e[24]=P):P=e[24];let T;e[25]===Symbol.for("react.memo_cache_sentinel")?(T={whiteSpace:"nowrap"},e[25]=T):T=e[25];let j;e[26]!==n?(j=Mr(n),e[26]=n,e[27]=j):j=e[27];let R;e[28]!==j?(R=a.jsx(rC,{color:"text.secondary",sx:T,children:j}),e[28]=j,e[29]=R):R=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(DD,{children:a.jsx(RD,{color:"grey"})}),e[30]=D):D=e[30];let O;e[31]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(ED,{sx:{textAlign:"right"},children:"Created at"}),e[31]=O):O=e[31];let N;e[32]!==R?(N=a.jsxs(ID,{sx:P,children:[R,D,O]}),e[32]=R,e[33]=N):N=e[33];let F;return e[34]!==g||e[35]!==A||e[36]!==N?(F=a.jsxs(DCt,{position:"left",sx:l,children:[g,A,N]}),e[34]=g,e[35]=A,e[36]=N,e[37]=F):F=e[37],F}var V$=(t=>(t.ERRORS="errors",t.WARNINGS="warnings",t))(V$||{});function Iee(t){const e=he.c(40),{scheduleStatus:r,type:n,nf:s}=t,i=Ye(),{dialogClose:o}=Jt(),{info:l,uuid:c}=r;let u;e:{if(!l){let D;e[0]===Symbol.for("react.memo_cache_sentinel")?(D=[],e[0]=D):D=e[0],u=D;break e}u=l[n]}const d=u;let f;e[1]!==d||e[2]!==l?.terminated_at||e[3]!==s||e[4]!==n||e[5]!==c?(f=()=>{const D=d.reduce(s3t,`param,reason
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js:343:`}function i3t(t){const e=he.c(95),{scheduleStatus:r}=t,n=Ye(),{nf:s}=ko(),{popoverOpen:i}=Jt(),{dialogOpen:o}=Jt(),{status:l,uuid:c,created_at:u,info:d}=r;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=location.pathname.includes("backup-schedules"),e[0]=f):f=e[0];const p=f;let m;e[1]!==s||e[2]!==c?(m=()=>{s&&c7($.apis.backup.download(s,c))},e[1]=s,e[2]=c,e[3]=m):m=e[3];const h=m;let _;e[4]!==i||e[5]!==r?(_=q=>{i({anchorEl:q.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsx(t3t,{scheduleStatus:r})})},e[4]=i,e[5]=r,e[6]=_):_=e[6];const g=_;let y;e[7]!==o||e[8]!==n||e[9]!==s||e[10]!==r?(y=()=>{o({title:n.formatMessage({id:"backup.restore.warnings_dialog.title"}),closeOnBackdropClick:!0,fullScreen:!0,content:()=>a.jsx(Iee,{scheduleStatus:r,type:V$.WARNINGS,nf:s})})},e[7]=o,e[8]=n,e[9]=s,e[10]=r,e[11]=y):y=e[11];const b=y;let x;e[12]!==o||e[13]!==n||e[14]!==s||e[15]!==r?(x=()=>{o({title:n.formatMessage({id:"backup.restore.errors_dialog.title"}),closeOnBackdropClick:!0,fullScreen:!0,content:()=>a.jsx(Iee,{scheduleStatus:r,type:V$.ERRORS,nf:s})})},e[12]=o,e[13]=n,e[14]=s,e[15]=r,e[16]=x):x=e[16];const w=x;d?.started_at,d?.terminated_at;let C;e:{switch(l){case"CREATED":{let q;e[17]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[17]=q):q=e[17];let X;e[18]!==n?(X=n.formatMessage({id:"backup.card.created_at"}),e[18]=n,e[19]=X):X=e[19];let Q;e[20]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[20]=X,e[21]=Q):Q=e[21];let Y;e[22]!==u?(Y=Mr(u),e[22]=u,e[23]=Y):Y=e[23];let Z;e[24]!==Y?(Z=a.jsx(_e,{type:"body2",children:Y}),e[24]=Y,e[25]=Z):Z=e[25];let re;e[26]!==Z||e[27]!==Q?(re=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,Z]}),e[26]=Z,e[27]=Q,e[28]=re):re=e[28],C=re;break e}case"RUNNING":{let q;e[29]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[29]=q):q=e[29];let X;e[30]!==n?(X=n.formatMessage({id:"backup.card.started_at"}),e[30]=n,e[31]=X):X=e[31];let Q;e[32]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[32]=X,e[33]=Q):Q=e[33];const Y=d?.started_at;let Z;e[34]!==Y?(Z=Mr(Y),e[34]=Y,e[35]=Z):Z=e[35];let re;e[36]!==Z?(re=a.jsx(_e,{type:"body2",children:Z}),e[36]=Z,e[37]=re):re=e[37];let fe;e[38]!==re||e[39]!==Q?(fe=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,re]}),e[38]=re,e[39]=Q,e[40]=fe):fe=e[40],C=fe;break e}case"TERMINATED":{let q;e[41]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[41]=q):q=e[41];let X;e[42]!==n?(X=n.formatMessage({id:"backup.card.terminated_at"}),e[42]=n,e[43]=X):X=e[43];let Q;e[44]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[44]=X,e[45]=Q):Q=e[45];const Y=d?.terminated_at;let Z;e[46]!==Y?(Z=Mr(Y),e[46]=Y,e[47]=Z):Z=e[47];let re;e[48]!==Z?(re=a.jsx(_e,{type:"body2",children:Z}),e[48]=Z,e[49]=re):re=e[49];let fe;e[50]!==re||e[51]!==Q?(fe=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,re]}),e[50]=re,e[51]=Q,e[52]=fe):fe=e[52],C=fe;break e}}C=void 0}const k=C;let A;e[53]!==r?(A=MCt(r),e[53]=r,e[54]=A):A=e[54];let P;e[55]!==l||e[56]!==A?(P=a.jsx(bi,{label:l,status:A}),e[55]=l,e[56]=A,e[57]=P):P=e[57];let T,j;e[58]===Symbol.for("react.memo_cache_sentinel")?(j={ml:"20px"},T=a.jsx(_e,{type:"body2",color:"text.secondary",children:"ID:"}),e[58]=T,e[59]=j):(T=e[58],j=e[59]);let R;e[60]!==c?(R=a.jsxs(te,{direction:"row",nowrap:!0,sx:j,children:[T,a.jsx(_e,{type:"body2",fontWeight:600,children:c})]}),e[60]=c,e[61]=R):R=e[61];let D;e[62]!==k||e[63]!==R||e[64]!==P?(D=a.jsxs(te,{children:[P,R,k]}),e[62]=k,e[63]=R,e[64]=P,e[65]=D):D=e[65];let O;e[66]!==g||e[67]!==n||e[68]!==l?(O=l==="TERMINATED"&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.timeline"}),children:a.jsx(Zr,{onClick:g,children:a.jsx(ge.Clock,{})})}),e[66]=g,e[67]=n,e[68]=l,e[69]=O):O=e[69];let N;e[70]!==b||e[71]!==d||e[72]!==n?(N=d?.warnings&&d.warnings.length>0&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.warnings"}),children:a.jsx(Zr,{color:"warning",onClick:b,children:a.jsx(ge.StatusWarning,{})})}),e[70]=b,e[71]=d,e[72]=n,e[73]=N):N=e[73];let F;e[74]!==w||e[75]!==d?.errors||e[76]!==n?(F=d?.errors&&d?.errors.length>0&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.errors"}),children:a.jsx(Zr,{color:"error",onClick:w,children:a.jsx(ge.StatusError,{})})}),e[74]=w,e[75]=d?.errors,e[76]=n,e[77]=F):F=e[77];let U;e[78]!==O||e[79]!==N||e[80]!==F?(U=a.jsxs(te,{direction:"row",spacing:0,children:[O,N,F]}),e[78]=O,e[79]=N,e[80]=F,e[81]=U):U=e[81];let z;e[82]!==D||e[83]!==U?(z=a.jsxs(te,{direction:"row",justify:"space-between",align:"flex-start",children:[D,U]}),e[82]=D,e[83]=U,e[84]=z):z=e[84];let H;e[85]!==h||e[86]!==d?.errors||e[87]!==n||e[88]!==l?(H=p&&l==="TERMINATED"&&!d?.errors.length&&a.jsx(Ze,{text:n.formatMessage({id:"common.download"}),size:"small",variant:"outlined",startIcon:a.jsx(ge.Download,{}),onClick:h,sx:{mt:1}}),e[85]=h,e[86]=d?.errors,e[87]=n,e[88]=l,e[89]=H):H=e[89];let W;e[90]!==H?(W=a.jsx(gt,{alignSelf:"flex-end",children:H}),e[90]=H,e[91]=W):W=e[91];let K;return e[92]!==z||e[93]!==W?(K=a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{children:[z,W]})})}),e[92]=z,e[93]=W,e[94]=K):K=e[94],K}function Dee(t){const e=he.c(37),{isBackup:r}=t,n=Ye(),{nf:s}=ko(),{backupSchedules:i,restoreSchedules:o}=Np(),{submit:l}=gr(),{dialogOpen:c}=Jt();let u;e:{if(r&&s){u=i[s];break e}if(!r&&s){u=o[s];break e}u=void 0}const d=u;let f;e[0]!==c?(f=()=>{c({title:"Update encryption password",content:l3t})},e[0]=c,e[1]=f):f=e[1];const p=f;let m;e[2]!==s||e[3]!==l?(m=()=>{s&&l({nf:s},{action:$.urls.systemBackupScheduleBackup_Action,encType:"application/json",method:"POST"})},e[2]=s,e[3]=l,e[4]=m):m=e[4];const h=m;let _;e[5]!==c||e[6]!==n||e[7]!==s?(_=()=>{s&&c({title:n.formatMessage({id:"backup.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:n.formatMessage({id:"backup.form.placeholder"}),description:n.formatMessage({id:"backup.form.description"}),requiredMessage:n.formatMessage({id:"backup.detail.form.validation.error"}),accept:{".bck":[".bck"],".enc":[".enc"]},action:$.urls.systemBackupScheduleRestore_Action,onDialogSuccess:a3t,extraData:{nf:s}})})},e[5]=c,e[6]=n,e[7]=s,e[8]=_):_=e[8];const g=_;let y;e[9]!==h||e[10]!==g||e[11]!==p||e[12]!==n||e[13]!==r?(y=a.jsx(o7,{children:a.jsx(te,{direction:"row",children:r?a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:n.formatMessage({id:"backup.encryption_password"}),size:"small",variant:"outlined",onClick:p,disabled:!as([[ie.provisioning,ie.backup]])}),a.jsx(Ze,{text:n.formatMessage({id:"backup.button.schedule.backup"}),size:"small",disabled:!as([[ie.provisioning,ie.backup]]),onClick:h})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:n.formatMessage({id:"backup.encryption_password"}),size:"small",variant:"outlined",onClick:p,disabled:!Ue([[ie.provisioning,ie.backup]])}),a.jsx(Ze,{text:n.formatMessage({id:"backup.button.schedule.restore"}),size:"small",disabled:!Ue([[ie.provisioning,ie.backup]]),onClick:g})]})})}),e[9]=h,e[10]=g,e[11]=p,e[12]=n,e[13]=r,e[14]=y):y=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b={overflow:"auto",maxHeight:"100%",height:"100%"},e[15]=b):b=e[15];let x;e[16]!==n||e[17]!==s?(x=n.formatMessage({id:`backup.detail.${s}.alert`}),e[16]=n,e[17]=s,e[18]=x):x=e[18];let w;e[19]!==x?(w=a.jsx(Lr,{severity:"info",title:x}),e[19]=x,e[20]=w):w=e[20];let C;e[21]!==d?(C=a.jsx(Xr,{data:d}),e[21]=d,e[22]=C):C=e[22];let k;e[23]!==d||e[24]!==n?(k=d&&d.length>0?d.map(o3t):a.jsx(Lr,{message:n.formatMessage({id:"backup.noData"})}),e[23]=d,e[24]=n,e[25]=k):k=e[25];let A;e[26]!==k?(A=a.jsx(a.Fragment,{children:k}),e[26]=k,e[27]=A):A=e[27];let P;e[28]!==A||e[29]!==C?(P=a.jsxs(te,{spacing:1,direction:"column-reverse",children:[C,A]}),e[28]=A,e[29]=C,e[30]=P):P=e[30];let T;e[31]!==P||e[32]!==w?(T=a.jsx(Kt,{sx:b,children:a.jsxs(te,{spacing:2,children:[w,P]})}),e[31]=P,e[32]=w,e[33]=T):T=e[33];let j;return e[34]!==T||e[35]!==y?(j=a.jsxs(a.Fragment,{children:[y,T]}),e[34]=T,e[35]=y,e[36]=j):j=e[36],j}function o3t(t){return a.jsx(i3t,{scheduleStatus:t},t.uuid)}function a3t(){Nt()}function l3t(){return a.jsx(TCt,{})}function $ee(t){const e=he.c(21),{isBackup:r}=t,n=Ye(),{activeTabs:s,backupSchedules:i,restoreSchedules:o}=Np();let l;e:{if(r){l=i;break e}l=o}const c=l;let u;if(e[0]!==s||e[1]!==c||e[2]!==n||e[3]!==r){let p;e[5]!==c||e[6]!==n||e[7]!==r?(p=C=>{const{label:k,url:A}=C;return c[A]?.find(c3t)?{title:`${k}${` ${n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase()}`}`,label:k,url:A,status:nn.INFO}:{title:`${k}${` ${n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase()}`}`,label:k,url:A,status:nn.DEFAULT}},e[5]=c,e[6]=n,e[7]=r,e[8]=p):p=e[8];const m=s.map(p);let h;e[9]!==n?(h=n.formatMessage({id:"route.system.backup.configuration"}),e[9]=n,e[10]=h):h=e[10];let _;e[11]!==n||e[12]!==r?(_=n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase(),e[11]=n,e[12]=r,e[13]=_):_=e[13];const g=`${h}${` ${_}`}`;let y;e[14]!==n?(y=n.formatMessage({id:"route.system.backup.configuration"}),e[14]=n,e[15]=y):y=e[15];const b=`${y}`;let x;e[16]!==g||e[17]!==b?(x={title:g,label:b,url:"configuration",status:nn.DEFAULT},e[16]=g,e[17]=b,e[18]=x):x=e[18];const w=x;u=as([[ie.backup,ie.configuration]])?[w,...m]:m,e[0]=s,e[1]=c,e[2]=n,e[3]=r,e[4]=u}else u=e[4];const d=u;let f;return e[19]!==d?(f=a.jsx(la,{navs:d}),e[19]=d,e[20]=f):f=e[20],f}function c3t(t){const{status:e}=t;return e==="RUNNING"}function u3t(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Tr,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>{const{backupSchedules:c,restoreSchedules:u}=l;let d=!1,f=!1;for(const p in c)if(c[p].find(f3t)){d=!0;break}for(const p in u)if(u[p].find(d3t)){f=!0;break}return a.jsx(a.Fragment,{children:a.jsx(Ao,{tabs:[{url:"backup-schedules",label:e.formatMessage({id:"backup.tab.backup"}),...as([[ie.backup,ie.provisioning]])&&{status:d?nn.INFO:nn.DEFAULT}},{url:"restore-schedules",label:e.formatMessage({id:"backup.tab.restore"}),...as([[ie.backup,ie.provisioning]])&&{status:f?nn.INFO:nn.DEFAULT}}]})})},t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.schedule||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.schedule,errorElement:s,children:i})}),t[4]=r.schedule,t[5]=i,t[6]=o):o=t[6],o}function d3t(t){const{status:e}=t;return e==="RUNNING"}function f3t(t){const{status:e}=t;return e==="RUNNING"}function p3t(){const t=he.c(17),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],t[0]=n):n=t[0];const[s,i]=I.useState(n),{submit:o}=gr();let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=b=>(x,w)=>{i(C=>w?[...C,b]:C.filter(k=>k!==b))},t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=b=>()=>{i(b)},t[2]=u):u=t[2];const d=u;let f;t[3]!==s||t[4]!==o?(f=()=>{o({services:s},{method:"POST",encType:"application/json",action:"configuration-backup"})},t[3]=s,t[4]=o,t[5]=f):f=t[5];const p=f;let m;t[6]!==s?(m=b=>!!s.find(w=>w===b),t[6]=s,t[7]=m):m=t[7];const h=m;let _;t[8]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[8]=_):_=t[8];let g;t[9]!==p||t[10]!==e||t[11]!==h||t[12]!==s.length?(g=b=>{const x=b.filter(h3t).map(m3t);return a.jsx(Kt,{sx:{overflow:"auto",maxHeight:"100%",height:"100%"},children:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"info",title:e.formatMessage({id:"backup.detail.configuration.backup.alert"})}),a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(_e,{type:"body2",children:e.formatMessage({id:"backup.detail.configuration.backup.hint"})}),a.jsx(al,{spacing:0,children:x.map(w=>a.jsx(Is,{size:{xs:12,md:6,lg:3},children:a.jsx(da,{onChange:c(w),checked:h(w),label:w===ue.PLS?e.formatMessage({id:"route.system"}):w.toUpperCase()})},w))}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{size:"small",text:e.formatMessage({id:"common.select_all"}),variant:"outlined",disabled:!as([[ie.backup,ie.configuration]]),onClick:d(x)}),a.jsx(Ze,{size:"small",text:e.formatMessage({id:"common.download"}),startIcon:a.jsx(ge.Download,{}),disabled:!s.length||!as([[ie.backup,ie.configuration]]),onClick:p})]})]})})})]})})},t[9]=p,t[10]=e,t[11]=h,t[12]=s.length,t[13]=g):g=t[13];let y;return t[14]!==r.services||t[15]!==g?(y=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.services,errorElement:_,children:g})}),t[14]=r.services,t[15]=g,t[16]=y):y=t[16],y}function m3t(t){const{name:e}=t;return e}function h3t(t){const{backup:e}=t;return e}function g3t(){const t=he.c(14),e=Ye(),{submit:r,state:n,data:s}=gr(),i=I.useRef(null);let o;t[0]!==r?(o=h=>{const{files:_}=h,g=new FormData;g.set("file",_[0]),r(g,{method:"POST",encType:"multipart/form-data",action:"configuration-restore"})},t[0]=r,t[1]=o):o=t[1];const l=o;let c,u;t[2]!==s||t[3]!==n?(c=()=>{s&&n==="idle"&&i.current&&i.current.resetForm()},u=[s,n],t[2]=s,t[3]=n,t[4]=c,t[5]=u):(c=t[4],u=t[5]),I.useEffect(c,u);let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={overflow:"auto",maxHeight:"100%",height:"100%"},t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f={files:[]},t[7]=f):f=t[7];let p;t[8]!==e||t[9]!==n?(p=h=>{const{dirty:_}=h;return a.jsx(dn,{canWrite:Ue([[ie.backup,ie.configuration]]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(_e,{type:"body2",children:e.formatMessage({id:"backup.detail.configuration.restore.hint"})}),a.jsx(Ke,{name:"files",children:g=>{const{field:y,meta:b,form:x}=g,{setFieldValue:w}=x;return a.jsx(Z_,{...y,label:e.formatMessage({id:"form_import_files.file"}),size:"medium",accept:{"application/gzip":[".gz"]},maxFiles:1,onChange:C=>{setTimeout(()=>{C.length?w(y.name,C):w(y.name,[])},0)},disabled:n!=="idle",formError:b.error})}})]}),a.jsx(te,{direction:"row",justify:"flex-end",children:a.jsx(Ze,{type:"submit",size:"small",startIcon:a.jsx(ge.Upload,{}),disabled:!_||!Ue([[ie.backup,ie.configuration]]),loading:n!=="idle",text:e.formatMessage({id:"common.upload"})})})]})})},t[8]=e,t[9]=n,t[10]=p):p=t[10];let m;return t[11]!==l||t[12]!==p?(m=a.jsx(Kt,{sx:d,children:a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsx(Wr,{validationSchema:jCt,initialValues:f,onSubmit:l,innerRef:i,children:p})})})}),t[11]=l,t[12]=p,t[13]=m):m=t[13],m}const Iw=Pr(),_3t={invalid_license:Iw.formatMessage({id:"licensing.upload.form.error.invalid_license"}),unspecified:Iw.formatMessage({id:"licensing.upload.form.error.unspecified"}),wrong_site_id:Iw.formatMessage({id:"licensing.upload.form.error.wrong_site_id"}),"Not Found":Iw.formatMessage({id:"licensing.upload.form.error.not_found"})},g8=t=>{const e=he.c(5),{action:r,actionError:n}=t,s=ci();let i;return e[0]!==r||e[1]!==n||e[2]!==s.palette.error||e[3]!==s.palette.success?(i=r?a.jsx(ge.StatusSuccessSmall,{color:s.palette.success.main}):a.jsx(Mn,{title:_3t[n]??n,children:a.jsx("span",{style:{cursor:"help"},children:a.jsx(ge.StatusError,{color:s.palette.error.main})})}),e[0]=r,e[1]=n,e[2]=s.palette.error,e[3]=s.palette.success,e[4]=i):i=e[4],i},v3t=()=>{const t=he.c(90),e=ci(),r=Ye(),{dialogOpen:n,popoverOpen:s}=Jt(),{openConfirmDialog:i}=di(),o=zn(),l=gr();let c;t[0]!==r?(c=r.formatMessage({id:"licensing.table.nf_type"}),t[0]=r,t[1]=c):c=t[1];let u;t[2]!==c?(u={key:"license_nf_type",label:c,cellRender:y3t},t[2]=c,t[3]=u):u=t[3];let d;t[4]!==r?(d=r.formatMessage({id:"licensing.table.id"}),t[4]=r,t[5]=d):d=t[5];let f;t[6]!==d?(f={key:"license_id",label:d,cellRender:b3t},t[6]=d,t[7]=f):f=t[7];let p;t[8]!==r?(p=r.formatMessage({id:"licensing.install"}),t[8]=r,t[9]=p):p=t[9];let m;t[10]!==p?(m={key:"install",label:p,maxWidth:"65",width:"65",cellRender:x3t},t[10]=p,t[11]=m):m=t[11];let h;t[12]!==r?(h=r.formatMessage({id:"licensing.set"}),t[12]=r,t[13]=h):h=t[13];let _;t[14]!==h?(_={key:"set",label:h,maxWidth:"65",width:"65",cellRender:S3t},t[14]=h,t[15]=_):_=t[15];let g;t[16]!==r?(g=r.formatMessage({id:"licensing.persist"}),t[16]=r,t[17]=g):g=t[17];let y;t[18]!==g?(y={key:"persist",label:g,maxWidth:"65",width:"65",cellRender:w3t},t[18]=g,t[19]=y):y=t[19];let b;t[20]!==u||t[21]!==f||t[22]!==m||t[23]!==_||t[24]!==y?(b=[u,f,m,_,y],t[20]=u,t[21]=f,t[22]=m,t[23]=_,t[24]=y,t[25]=b):b=t[25];const x=b;let w;t[26]!==x||t[27]!==n||t[28]!==r||t[29]!==e.palette.error.main||t[30]!==e.palette.success.main?(w=()=>{n({title:r.formatMessage({id:"licensing.upload.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:r.formatMessage({id:"licensing.upload.form.file"}),accept:{"application/json":[".json"]},requiredMessage:r.formatMessage({id:"licensing.upload.form.file.required"}),description:r.formatMessage({id:"licensing.upload.form.description"}),action:"system/licensing/install",customError:pe=>{const Se=pe.error.errorList;Se.sort(C3t);const ve=Se.some(A3t);return a.jsxs(te,{spacing:2,children:[ve&&a.jsx(Lr,{sx:{width:"100%"},severity:"error",message:r.formatMessage({id:"licensing.upload.form.error"})}),a.jsx(pr,{elevation:1,sx:{borderColor:ve?e.palette.error.main:e.palette.success.main,borderWidth:"1px",borderStyle:"solid"},children:a.jsx(Kt,{children:a.jsx(Br,{data:Se,orderBy:"license_nf_type",columns:x,page:0,rowsCount:Se.length,rowsPerPage:Se.length,rowKey:"license_nf_type",dense:!0,hidePagination:!0,hideRowsCount:!0})})})]})}})})},t[26]=x,t[27]=n,t[28]=r,t[29]=e.palette.error.main,t[30]=e.palette.success.main,t[31]=w):w=t[31];const C=w;let k;t[32]!==l||t[33]!==r||t[34]!==i?(k=pe=>{const{license_id:Se,precedence:ve}=pe;i({text:r.formatMessage({id:"licensing.delete.dialog.confirm"}),onConfirm:()=>{l.submit({license_id:Se,precedence:ve},{method:"DELETE",encType:"application/json",action:"delete"})}})},t[32]=l,t[33]=r,t[34]=i,t[35]=k):k=t[35];const A=k;let P;t[36]!==r?(P=r.formatMessage({id:"licensing.table.id"}),t[36]=r,t[37]=P):P=t[37];let T;t[38]!==P?(T={key:"license_id",label:P},t[38]=P,t[39]=T):T=t[39];let j;t[40]!==r?(j=r.formatMessage({id:"licensing.table.nf_type"}),t[40]=r,t[41]=j):j=t[41];let R;t[42]!==j?(R={key:"license_id",label:j,cellRender:k3t},t[42]=j,t[43]=R):R=t[43];let D;t[44]!==r?(D=r.formatMessage({id:"licensing.table.start_date"}),t[44]=r,t[45]=D):D=t[45];let O;t[46]!==D?(O={key:"license",label:D,cellRender:M3t},t[46]=D,t[47]=O):O=t[47];let N;t[48]!==r?(N=r.formatMessage({id:"licensing.table.expire_date"}),t[48]=r,t[49]=N):N=t[49];let F;t[50]!==N?(F={key:"license",label:N,cellRender:P3t},t[50]=N,t[51]=F):F=t[51];let U;t[52]!==r?(U=r.formatMessage({id:"licensing.table.precedence"}),t[52]=r,t[53]=U):U=t[53];let z;t[54]!==U?(z={key:"precedence",label:U},t[54]=U,t[55]=z):z=t[55];let H;t[56]!==r?(H=r.formatMessage({id:"licensing.table.state"}),t[56]=r,t[57]=H):H=t[57];let W;t[58]!==H?(W={key:"state",label:H,cellRender:j3t},t[58]=H,t[59]=W):W=t[59];let K;t[60]!==T||t[61]!==R||t[62]!==O||t[63]!==F||t[64]!==z||t[65]!==W?(K=[T,R,O,F,z,W],t[60]=T,t[61]=R,t[62]=O,t[63]=F,t[64]=z,t[65]=W,t[66]=K):K=t[66];const q=K;let X;t[67]!==r?(X=r.formatMessage({id:"licensing.table.actions.delete"}),t[67]=r,t[68]=X):X=t[68];let Q,Y;t[69]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Trash,{}),Y=Ue(ie.management),t[69]=Q,t[70]=Y):(Q=t[69],Y=t[70]);let Z;t[71]!==A?(Z=pe=>void A(pe),t[71]=A,t[72]=Z):Z=t[72];let re;t[73]!==X||t[74]!==Z?(re=[{label:X,icon:Q,disabled:!Y,onClick:Z}],t[73]=X,t[74]=Z,t[75]=re):re=t[75];const fe=re;let de;t[76]!==r||t[77]!==s?(de=(pe,Se)=>s({anchorEl:pe.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsxs(te,{spacing:1,divided:!0,children:[Se.hostname&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"licensing.host.hostname"})}),a.jsx(Ap,{text:Se.hostname})]}),Se.siteid?.value&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"licensing.host.siteid"})}),a.jsx(Ap,{text:Se.siteid?.value,max:50})]})]})}),t[76]=r,t[77]=s,t[78]=de):de=t[78];const se=de;let le;t[79]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[79]=le):le=t[79];let ee;t[80]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(Tr,{}),t[80]=ee):ee=t[80];let J;t[81]!==q||t[82]!==C||t[83]!==se||t[84]!==r||t[85]!==fe?(J=pe=>{const{licenses:Se,hostInfo:ve}=pe;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[a.jsx(Ze,{startIcon:a.jsx(ge.Info,{}),onClick:xe=>{se(xe,ve)},variant:"outlined",text:r.formatMessage({id:"licensing.info"})}),a.jsx(Ze,{startIcon:a.jsx(ge.Upload,{}),disabled:!Ue(ie.management),text:r.formatMessage({id:"licensing.upload.buttons.upload"}),onClick:C})]})}),a.jsx(Br,{autoScale:!0,data:Se,orderBy:"license_id",columns:q,rowActions:fe,stickyRowActions:!0,page:0,labelDisplayedRows:T3t,rowsCount:Se.length,rowsPerPage:Se.length,rowKey:"license_id",rowDetail:{content:xe=>{const{license:qe}=xe;return a.jsx(al,{children:!!qe?.app_content&&Object.entries(qe.app_content)?.filter(E3t)?.map(Le=>{const[Te,je]=Le;return a.jsxs(Is,{size:{xs:3},children:[a.jsx(_e,{fontWeight:"600",children:r.formatMessage({id:`licensing.table.details.${Te}`})}),a.jsx(_e,{children:je})]},Te)})})}}})]})},t[81]=q,t[82]=C,t[83]=se,t[84]=r,t[85]=fe,t[86]=J):J=t[86];let me;return t[87]!==o.licensing||t[88]!==J?(me=a.jsx(I.Suspense,{fallback:le,children:a.jsx(Qt,{resolve:o.licensing,errorElement:ee,children:J})}),t[87]=o.licensing,t[88]=J,t[89]=me):me=t[89],me};function y3t(t){const{license_nf_type:e}=t;return a.jsx(te,{direction:"row",align:"center",spacing:2,children:a.jsx(_e,{children:e})})}function b3t(t){const{license_id:e}=t;return a.jsx(Ap,{text:e||"",max:4})}function x3t(t){const{install:e,installError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function S3t(t){const{set:e,setError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function w3t(t){const{persist:e,persistError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function C3t(t,e){return t.license_nf_type.localeCompare(e.license_nf_type)}function A3t(t){return!t.install||!t.persist||!t.set}function k3t(t){const{license:e}=t;return a.jsx(_e,{type:"body2",children:e?.app_content?.app_type||"-"})}function M3t(t){const{license:e}=t;return e?.license_params?.start_date?a.jsx(_e,{type:"body2",children:Mr(e.license_params.start_date*1e3)}):a.jsx(a.Fragment,{})}function P3t(t){const{license:e}=t;return e?.license_params?.expire_date?a.jsx(_e,{type:"body2",children:Mr(e.license_params.expire_date*1e3)}):a.jsx(a.Fragment,{})}function j3t(t){const{state:e}=t;return a.jsx(_e,{type:"body2",children:e?.str})}function T3t(){return""}function E3t(t){const[,e]=t;return!!e}function R3t(t){const e=he.c(16),{children:r,href:n,underline:s,targetBlank:i,color:o,onClick:l,sx:c,"data-testid":u}=t,d=o===void 0?"primary":o,f=i?"_blank":"",p=i?"noreferrer":"",m=`${d}.main`;let h;e[0]!==d||e[1]!==i?(h=i&&{"&::after":{content:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==)",margin:"0 3px 0 5px"},"&::visited":{color:`${d}.main`}},e[0]=d,e[1]=i,e[2]=h):h=e[2];let _;e[3]!==c||e[4]!==h?(_={cursor:"pointer",...h,...c},e[3]=c,e[4]=h,e[5]=_):_=e[5];let g;return e[6]!==r||e[7]!==u||e[8]!==n||e[9]!==l||e[10]!==p||e[11]!==m||e[12]!==_||e[13]!==f||e[14]!==s?(g=a.jsx(N8e,{href:n,underline:s,target:f,rel:p,color:m,onClick:l,sx:_,"data-testid":u,children:r}),e[6]=r,e[7]=u,e[8]=n,e[9]=l,e[10]=p,e[11]=m,e[12]=_,e[13]=f,e[14]=s,e[15]=g):g=e[15],g}function C_(t){const e=he.c(11),{field:r,value:n,href:s,fontWeight:i}=t;let o;e[0]!==r?(o=a.jsx(_e,{type:"caption",color:"text.secondary",children:r}),e[0]=r,e[1]=o):o=e[1];let l;e[2]!==r||e[3]!==i||e[4]!==s||e[5]!==n?(l=s?a.jsx(R3t,{href:s,targetBlank:!0,sx:{fontFamily:"'Source Code Pro', monospace",wordBreak:"break-all",fontSize:14,fontWeight:i},children:n}):a.jsx(_e,{sx:{wordBreak:"break-all",fontFamily:"'Source Code Pro', monospace",fontWeight:i},fontSize:14,children:r==="PRIORITY"?q_(n):n}),e[2]=r,e[3]=i,e[4]=s,e[5]=n,e[6]=l):l=e[6];let c;return e[7]!==r||e[8]!==o||e[9]!==l?(c=a.jsxs(te,{spacing:.1,children:[o,l]},r),e[7]=r,e[8]=o,e[9]=l,e[10]=c):c=e[10],c}function Xpe(t){const e=he.c(58),{entry:r,cursorAsTitle:n}=t,s=ci();let i;e[0]!==r?(i=R=>Object.entries(r).filter(D=>{const[O]=D;if(["MESSAGE","SYSLOG_IDENTIFIER","__CURSOR"].includes(O))return!1;switch(R){case Um.TRUSTED:return Aie(O);case Um.ADDRESS:return bL(O);default:return _4e(O)}}).sort(),e[0]=r,e[1]=i):i=e[1];const o=i;let l;e:switch(q_(r.PRIORITY)){case ii.EMERGENCY:case ii.ALERT:case ii.CRITICAL:case ii.ERROR:{let R;e[2]!==s.palette.error.main?(R=Ic(s.palette.error.main,.1),e[2]=s.palette.error.main,e[3]=R):R=e[3];let D;e[4]!==R?(D={backgroundColor:R,borderColor:"error.main"},e[4]=R,e[5]=D):D=e[5],l=D;break e}case ii.WARNING:{let R;e[6]!==s.palette.warning.main?(R=Ic(s.palette.warning.main,.1),e[6]=s.palette.warning.main,e[7]=R):R=e[7];let D;e[8]!==R?(D={backgroundColor:R,borderColor:"warning.main"},e[8]=R,e[9]=D):D=e[9],l=D;break e}case ii.DEBUG:{let R;e[10]!==s.palette.info.main?(R=Ic(s.palette.info.main,.1),e[10]=s.palette.info.main,e[11]=R):R=e[11];let D;e[12]!==R?(D={backgroundColor:R,borderColor:"info.main"},e[12]=R,e[13]=D):D=e[13],l=D;break e}default:{let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R={backgroundColor:"divider",borderColor:"divider"},e[14]=R):R=e[14],l=R}}const c=l;let u;e[15]!==r.__REALTIME_TIMESTAMP?(u=mp(r.__REALTIME_TIMESTAMP),e[15]=r.__REALTIME_TIMESTAMP,e[16]=u):u=e[16];let d;e[17]!==u?(d=a.jsx(C_,{field:"TIMESTAMP",value:u,fontWeight:"600"}),e[17]=u,e[18]=d):d=e[18];let f;e[19]!==r.SYSLOG_IDENTIFIER?(f=a.jsx(C_,{field:"SYSLOG_IDENTIFIER",value:r.SYSLOG_IDENTIFIER}),e[19]=r.SYSLOG_IDENTIFIER,e[20]=f):f=e[20];let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(_e,{type:"caption",color:"text.secondary",children:"MESSAGE"}),e[21]=p):p=e[21];let m;e[22]!==c?(m={border:"1px solid",p:1,borderRadius:1,...c},e[22]=c,e[23]=m):m=e[23];let h;e[24]===Symbol.for("react.memo_cache_sentinel")?(h={fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},e[24]=h):h=e[24];let _;e[25]!==r.MESSAGE?(_=a.jsx(_e,{fontWeight:"inherit",fontSize:14,sx:h,children:r.MESSAGE}),e[25]=r.MESSAGE,e[26]=_):_=e[26];let g;e[27]!==m||e[28]!==_?(g=a.jsxs(te,{spacing:.1,children:[p,a.jsx(Vte,{sx:m,children:_})]}),e[27]=m,e[28]=_,e[29]=g):g=e[29];let y;e[30]!==n||e[31]!==r.__CURSOR?(y=n?null:$.urls.systemLogsCursorItem.replace(":cursor",r.__CURSOR),e[30]=n,e[31]=r.__CURSOR,e[32]=y):y=e[32];let b;e[33]!==r.__CURSOR||e[34]!==y?(b=a.jsx(C_,{field:"__CURSOR",value:r.__CURSOR,href:y}),e[33]=r.__CURSOR,e[34]=y,e[35]=b):b=e[35];let x;e[36]!==g||e[37]!==b||e[38]!==d||e[39]!==f?(x=a.jsxs(te,{nowrap:!0,children:[d,f,g,b]}),e[36]=g,e[37]=b,e[38]=d,e[39]=f,e[40]=x):x=e[40];let w;e[41]!==o?(w=o(Um.USER).map($3t),e[41]=o,e[42]=w):w=e[42];let C;e[43]!==w?(C=a.jsx(te,{nowrap:!0,children:w}),e[43]=w,e[44]=C):C=e[44];let k;e[45]!==o?(k=o(Um.TRUSTED).map(D3t),e[45]=o,e[46]=k):k=e[46];let A;e[47]!==k?(A=a.jsx(te,{nowrap:!0,children:k}),e[47]=k,e[48]=A):A=e[48];let P;e[49]!==o?(P=o(Um.ADDRESS).map(I3t),e[49]=o,e[50]=P):P=e[50];let T;e[51]!==P?(T=a.jsx(te,{nowrap:!0,children:P}),e[51]=P,e[52]=T):T=e[52];let j;return e[53]!==x||e[54]!==C||e[55]!==A||e[56]!==T?(j=a.jsxs(te,{spacing:1.5,nowrap:!0,divided:!0,children:[x,C,A,T]}),e[53]=x,e[54]=C,e[55]=A,e[56]=T,e[57]=j):j=e[57],j}function I3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function D3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function $3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function O3t(t){const e=he.c(6),{cursor:r}=t,{load:n,data:s}=gr();let i,o;e[0]!==r||e[1]!==n?(i=()=>{n($.urls.systemLogsCursorItem.replace(":cursor",r))},o=[n,r],e[0]=r,e[1]=n,e[2]=i,e[3]=o):(i=e[2],o=e[3]),I.useEffect(i,o);let l;return e[4]!==s?(l=a.jsx(zp,{children:s?a.jsx(Xpe,{entry:s.entries[0]}):a.jsx(te,{align:"center",justify:"center",fullHeight:!0,fullWidth:!0,children:a.jsx(Nc,{type:"circular",size:36})})}),e[4]=s,e[5]=l):l=e[5],l}function Jpe({data:t}){const e=ci(),r=Ye(),[n,s]=hl(),i=On(),o=n.getAll("field"),l=n.get("entries"),c=n.get("grep")||"",u=parseInt(l),[d,f]=I.useState(null),{drawerOpen:p}=Jt(),{pathname:m}=to(),h=m===$.urls.systemLogsFollow,[_,g]=I.useState(null),y=n.get("since"),b=n.get("until"),x=parseInt(n.get("skip")),w=I.useMemo(()=>Cie([...o,"PRIORITY","SYSLOG_IDENTIFIER"]),[o]),C=I.useCallback(R=>{s(D=>(D.set("entries",R.toString()),D))},[s]),k=I.useCallback(()=>{const R=mp(t[0].__REALTIME_TIMESTAMP),D=mp(t[t.length-1].__REALTIME_TIMESTAMP);Rie(JSON.stringify(t,null,2),`logs_${R}_${D}.txt`)},[t]),A=I.useCallback(R=>{const D=t[0],O=t[t.length-1];s(N=>{const F=parseInt(N.get("entries"));if(y||b){if(R===0&&N.set("skip","0"),R===1&&x>0){const U=Math.max(0,x-F);N.set("skip",`${U}`)}if(R===3)if(t.length===F){const U=x+F;N.set("skip",`${U}`)}else N.set("skip",`${x}`);R===4&&N.set("skip",`-${F}`)}else R===0&&(N.delete("cursor"),N.set("skip","0")),R===1&&(N.set("cursor",D.__CURSOR),N.set("skip",`-${F}`)),R===3&&(N.set("cursor",O.__CURSOR),N.set("skip","0")),R===4&&(N.delete("cursor"),N.set("skip",`-${F}`));return N})},[t,s,y,x,b]),P=I.useCallback(R=>{f(R.__CURSOR),p({width:600,title:r.formatMessage({id:"logs.log_details"}),content:()=>a.jsx(O3t,{cursor:R.__CURSOR}),onClose:()=>{f(null)}})},[p,r]),T=I.useMemo(()=>[{key:"__REALTIME_TIMESTAMP",label:"TIMESTAMP",cellRender:R=>{const D=mp(R.__REALTIME_TIMESTAMP);return a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace"},children:D})},width:"230",whiteSpace:"nowrap"},...w.map(R=>({key:R,label:R,cellRender:D=>a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace"},children:R==="PRIORITY"?q_(D[R]):D[R]})})),{key:"MESSAGE",label:"MESSAGE",minWidth:"600",cellRender:R=>a.jsx(te,{spacing:.5,className:"logs-cell-message",children:a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:R.MESSAGE})})}],[w]),j=I.useRef(null);return I.useEffect(()=>{(j.current===null||j.current>=98)&&h&&t&&!d&&_&&_.scrollTo({left:0,top:_.scrollHeight,behavior:"instant"})},[t,h,d,_]),I.useEffect(()=>{if(_)if(h)_.onscroll=()=>{Ji.setScrollRestore(_.scrollTop);const R=_.scrollTop/(_.scrollHeight-_.clientHeight)*100;j.current=isNaN(R)?null:R};else{const R=Ji.getScrollRestore();R&&(_.scrollTop=R)}},[h,_]),I.useEffect(()=>{t.length&&qce.highlightSearchTerm({search:c,selector:".logs-cell-message"})},[c,t]),a.jsx(Br,{containerRef:R=>{R&&g(R)},loading:i.state==="loading",autoScale:!0,data:t,dense:!0,columns:T,orderBy:"__REALTIME_TIMESTAMP",rowKey:"__CURSOR",rowsCount:h?t.length:u*5,page:2,rowsPerPage:u,showFirstLastButton:!0,rowsPerPageOptions:$.pageSizeOptions,onRowsPerPageChange:C,labelDisplayedRows:()=>`${t.length} Logs`,hidePagination:h,onRowClick:P,customFooterComponent:a.jsxs(te,{sx:{px:1,pb:.5},direction:"row",align:"center",children:[a.jsx(Ze,{startIcon:a.jsx(ge.Download,{}),text:r.formatMessage({id:"logs.download_logs"},{logs:t.length}),sx:{},onClick:k,variant:"text",size:"small"}),h&&a.jsx(_e,{type:"caption",fontWeight:"600",children:r.formatMessage({id:"logs.stream.buffer"},{buffer:u})})]}),customRowSx:R=>{const D=R.__CURSOR===d;let O="inherit";switch(q_(R.PRIORITY)){case ii.EMERGENCY:case ii.ALERT:case ii.CRITICAL:case ii.ERROR:O=Ic(e.palette.error.main,.1);break;case ii.WARNING:O=Ic(e.palette.warning.main,.1);break;case ii.DEBUG:O=Ic(e.palette.info.main,.1);break}return{backgroundColor:O,...D&&{backgroundColor:"divider"}}},onPageChange:A})}const Oee=Pr(),L3t=dr().shape({level:We().required(),exceptions:yr().of(dr().shape({enabled:li().required(),level:We().required(),rules:yr().of(dr().shape({field:We().required(Oee.formatMessage({id:"logs.config.form.exception.rules.field.error"})),values:yr().of(We()).min(1,Oee.formatMessage({id:"logs.config.form.exception.rules.values.error"}))})).min(1)}))});function N3t(t){const e=he.c(16),{service:r,config:n,fields:s}=t,i=Ye(),{submit:o,state:l,data:c}=gr(),[u,d]=I.useState(!1);let f;e[0]!==o?(f=g=>y=>{o({nf:g,logsConfig:y},{action:"system/logs/config/update",method:"POST",encType:"application/json"})},e[0]=o,e[1]=f):f=e[1];const p=f;let m;e[2]!==p||e[3]!==r?(m=p(r),e[2]=p,e[3]=r,e[4]=m):m=e[4];let h;e[5]!==c||e[6]!==u||e[7]!==s||e[8]!==i||e[9]!==r||e[10]!==l?(h=g=>{const{values:y,errors:b,getFieldMeta:x,setFieldValue:w}=g,C=y.exceptions?.length||0;return a.jsx(dn,{canWrite:as(ie.monitoring),children:a.jsx(xr,{elevation:2,title:C?a.jsxs(te,{direction:"row",align:"center",spacing:4,children:[a.jsx(_e,{type:"subtitle1",color:"text.secondary",children:r.toUpperCase()}),a.jsx(Iv,{variant:"standard",color:"error",badgeContent:a.jsx(_e,{type:"body2",noWrap:!0,children:`${C} exc.`})})]}):r.toUpperCase(),error:!!x(r).error,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"level",children:k=>{const{field:A,meta:P}=k;return a.jsx(qs,{...A,label:i.formatMessage({id:"logs.config.form.level"}),size:"small",error:!!P.error,helperText:P.error,children:SC.map(U3t)})}}),a.jsx(oi,{name:"exceptions",children:k=>{const{push:A,remove:P}=k,T=y.exceptions,j=()=>{d(!0),A({enabled:!0,level:ii.INFO,rules:[]})},R=N=>()=>{P(N)},D=()=>{w("exceptions",[])},O=N=>()=>{T&&N===T.length-1&&u&&d(!1)};return a.jsx(pr,{elevation:3,title:a.jsx(_e,{children:i.formatMessage({id:"logs.config.form.exceptions"})}),headerActionsComponent:a.jsxs(te,{direction:"row",children:[T&&T.length>0&&a.jsx(Ze,{variant:"outlined",size:"small",text:i.formatMessage({id:"logs.config.form.exceptions.clear"}),startIcon:a.jsx(ge.Clear,{}),disabled:l!=="idle",onClick:D}),a.jsx(Ze,{variant:"outlined",size:"small",text:i.formatMessage({id:"logs.config.form.exceptions.add"}),startIcon:a.jsx(ge.Add,{}),disabled:l!=="idle",onClick:j})]}),error:!!x("exceptions").error,children:a.jsx(Kt,{children:T&&T.length?a.jsx(Jn,{exclusive:!1,spacing:1,children:T.map((N,F)=>a.jsx(xr,{expanded:F===T.length-1&&u,onChange:O(F),elevation:4,title:i.formatMessage({id:"logs.config.form.exceptions.exception"},{index:F}),actionsComponent:a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{size:"small",disabled:l!=="idle",onClick:R(F),children:a.jsx(ge.Trash,{})})}),error:!!x(`exceptions.${F}`).error,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:`exceptions.${F}.enabled`,children:U=>{const{field:z}=U;return a.jsx(da,{label:i.formatMessage({id:"logs.config.form.exception.enabled"}),checked:z.value,onChange:(H,W)=>{w(z.name,W)}})}}),a.jsx(Ke,{name:`exceptions.${F}.level`,children:U=>{const{field:z,meta:H}=U;return a.jsx(qs,{...z,label:i.formatMessage({id:"logs.config.form.level"}),size:"small",error:!!H.error,helperText:H.error,children:SC.map(F3t)})}}),a.jsx(oi,{name:`exceptions.${F}.rules`,children:U=>{const{push:z,remove:H}=U,W=()=>{z({field:"",values:[]})},K=q=>()=>{H(q)};return a.jsxs(te,{children:[a.jsx(pr,{elevation:5,title:a.jsx(_e,{children:i.formatMessage({id:"logs.config.form.exception.rules"})}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"logs.config.form.exception.rules.add"}),variant:"outlined",size:"small",startIcon:a.jsx(ge.Add,{}),disabled:l!=="idle",onClick:W}),error:!!x(`exceptions.${F}.rules`).error,children:a.jsx(Kt,{children:a.jsx(te,{children:N.rules.length?N.rules.map((q,X)=>a.jsxs(te,{direction:"row",align:"flex-start",fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:`exceptions.${F}.rules.${X}.field`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(rn,{name:Y.name,value:Y.value,error:!!Z.error,helperText:Z.error,label:i.formatMessage({id:"logs.config.form.exception.rules.field"}),size:"small",freeSolo:!0,multiple:!1,options:s,onChange:(re,fe)=>{w(Y.name,fe||"")},sx:{flex:1}})}}),a.jsx(Ke,{name:`exceptions.${F}.rules.${X}.values`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(rn,{name:Y.name,value:Y.value||[],error:!!Z.error,helperText:Z.error,label:i.formatMessage({id:"logs.config.form.exception.rules.values"}),size:"small",freeSolo:!0,multiple:!0,options:[],onChange:(re,fe)=>{w(Y.name,fe)},sx:{flex:1}})}}),a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{size:"small",onClick:K(X),disabled:l!=="idle",sx:{mt:"10px"},children:a.jsx(ge.Trash,{})})})]},X)):a.jsx(Lr,{message:i.formatMessage({id:"logs.config.form.exception.rules.no_data"}),sx:{backgroundColor:"divider"}})})})}),!!x(`exceptions.${F}.rules`).error&&a.jsx(_e,{type:"body2",color:"error.main",children:i.formatMessage({id:"logs.config.form.exception.rules.error"})})]})}})]})},F))}):a.jsx(Lr,{message:i.formatMessage({id:"logs.config.form.exceptions.no_data"}),sx:{backgroundColor:"divider"}})})})}}),a.jsx(Xr,{data:c}),a.jsx(te,{direction:"row",fullWidth:!0,children:a.jsx(Ze,{type:"submit",text:i.formatMessage({id:"common.save"}),loading:l!=="idle",disabled:!!b.exceptions||!as(ie.monitoring)})})]})},r)})},e[5]=c,e[6]=u,e[7]=s,e[8]=i,e[9]=r,e[10]=l,e[11]=h):h=e[11];let _;return e[12]!==n||e[13]!==m||e[14]!==h?(_=a.jsx(Wr,{validationSchema:L3t,initialValues:n,onSubmit:m,children:h}),e[12]=n,e[13]=m,e[14]=h,e[15]=_):_=e[15],_}function F3t(t){return a.jsx(En,{value:t,children:t},t)}function U3t(t){return a.jsx(En,{value:t,children:t},t)}function B3t(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(zp,{children:a.jsx(te,{spacing:2,children:[...Array(5)].map(z3t)})}),t[0]=e):e=t[0],e}function z3t(t,e){return a.jsx(Dt,{variant:"rounded",height:"56px"},e)}function q3t(){const t=he.c(6),e=Ye();let r,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={fontSize:"40px",color:"text.secondary"},n=a.jsx(ge.Config,{}),t[0]=r,t[1]=n):(r=t[0],n=t[1]);let s;t[2]!==e?(s=e.formatMessage({id:"logs.config.no_data"}),t[2]=e,t[3]=s):s=t[3];let i;return t[4]!==s?(i=a.jsxs(te,{fullHeight:!0,justify:"center",align:"center",spacing:1,sx:r,children:[n,a.jsx(_e,{type:"body1",children:s})]}),t[4]=s,t[5]=i):i=t[5],i}function V3t(){const t=he.c(7),{state:e,load:r,data:n}=gr();let s,i;t[0]!==n||t[1]!==r||t[2]!==e?(s=()=>{e==="idle"&&!n&&r("system/logs/config")},i=[r,n,e],t[0]=n,t[1]=r,t[2]=e,t[3]=s,t[4]=i):(s=t[3],i=t[4]),I.useEffect(s,i);let o;return t[5]!==n?(o=a.jsx(a.Fragment,{children:n?n.logsConfig.length?a.jsx(zp,{children:a.jsx(Jn,{exclusive:!0,spacing:2,children:n.logsConfig.map(H3t)})}):a.jsx(q3t,{}):a.jsx(B3t,{})}),t[5]=n,t[6]=o):o=t[6],o}function H3t(t){const{service:e,config:r,metadata:n}=t;return a.jsx(N3t,{service:e,config:r,fields:n},e)}function G3t(){const t=he.c(11),e=zn(),r=Ye(),{popoverOpen:n}=Jt();let s;t[0]!==r||t[1]!==n?(s=(d,f)=>n({anchorEl:d.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsxs(te,{spacing:.5,divided:!0,children:[a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.virtualization"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.virtualization})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.journal_begins"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:mp(f.cutoff_from_realtime)})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.journal_ends"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:mp(f.cutoff_to_realtime)})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.disk_usage"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:a7(parseInt(f.usage))})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.machine_id"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.machine_id})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.boot_id"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.boot_id})]})]})}),t[0]=r,t[1]=n,t[2]=s):s=t[2];const i=s;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Dt,{variant:"rectangular",width:"95px",height:"36px",sx:{borderRadius:"18px"}}),t[3]=o):o=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Tr,{}),t[4]=l):l=t[4];let c;t[5]!==i||t[6]!==r?(c=d=>a.jsx(Ze,{startIcon:a.jsx(ge.Host,{}),onClick:f=>{i(f,d)},variant:"outlined",text:r.formatMessage({id:"logs.machine.info"})}),t[5]=i,t[6]=r,t[7]=c):c=t[7];let u;return t[8]!==e.machine||t[9]!==c?(u=a.jsx(I.Suspense,{fallback:o,children:a.jsx(Qt,{resolve:e.machine,errorElement:l,children:c})}),t[8]=e.machine,t[9]=c,t[10]=u):u=t[10],u}function W3t(){const t=he.c(17),[,e]=hl(),{popoverClose:r}=Jt(),n=Ye(),{load:s,data:i,state:o}=gr();let l;t[0]!==r||t[1]!==e?(l=g=>{const{field:y}=g;r(),e(b=>(!!b.getAll("field").find(C=>{const[k]=C.split("=");return k===y})||b.append("field",y),b),{replace:!0})},t[0]=r,t[1]=e,t[2]=l):l=t[2];const c=l;let u;t[3]!==i?(u=[],i&&i.fields&&(i.fields.metadataFields.forEach((g,y)=>{u.push({label:g,value:g,divider:y===i.fields.metadataFields.length-1})}),i.fields.journalFields.forEach(g=>{u.push({label:g,value:g})})),t[3]=i,t[4]=u):u=t[4];const d=u;let f,p;t[5]!==s?(f=()=>{s($.urls.systemLogsFields)},p=[s],t[5]=s,t[6]=f,t[7]=p):(f=t[6],p=t[7]),I.useEffect(f,p);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m={field:""},t[8]=m):m=t[8];let h;t[9]!==o||t[10]!==n||t[11]!==d||t[12]!==r?(h=g=>{const{dirty:y,values:b}=g;return a.jsx(dn,{canWrite:as(ie.monitoring),children:a.jsxs(te,{spacing:2,sx:{minWidth:"240px"},children:[a.jsx(Ke,{name:"field",children:x=>{const{field:w,form:C}=x,{setFieldValue:k}=C;return a.jsx(rn,{...w,value:d.find(A=>{const{value:P}=A;return P===w.value}),size:"small",label:n.formatMessage({id:"logs.filter.field_name"}),options:d,loading:o!=="idle",multiple:!1,freeSolo:!0,onChange:(A,P)=>{P&&(typeof P=="string"?k(w.name,P):k(w.name,P.value))},onInputChange:(A,P)=>{k(w.name,P)}})}}),a.jsxs(te,{direction:"row",justify:"space-between",children:[a.jsx(Ze,{type:"button",size:"small",variant:"outlined",text:n.formatMessage({id:"logs.filter.cancel"}),onClick:r,disabled:!y||!b.field||!as(ie.monitoring)}),a.jsx(Ze,{type:"submit",disabled:!y||!b.field||!as(ie.monitoring),size:"small",text:n.formatMessage({id:"logs.filter.confirm"})})]})]})})},t[9]=o,t[10]=n,t[11]=d,t[12]=r,t[13]=h):h=t[13];let _;return t[14]!==c||t[15]!==h?(_=a.jsx(Wr,{initialValues:m,onSubmit:c,children:h}),t[14]=c,t[15]=h,t[16]=_):_=t[16],_}function Y3t(t,e,r=1){return Array.from({length:(e-t)/r+1},(n,s)=>t+s*r)}function H$(t){const e=he.c(66),{name:r,removable:n}=t,s=n===void 0?!0:n,i=`fetcher-fields-${r}`;let o;e[0]!==i?(o={key:i},e[0]=i,e[1]=o):o=e[1];const{load:l,data:c,state:u}=gr(o),[d,f]=hl();let p;e[2]!==d?(p=d.getAll("field"),e[2]=d,e[3]=p):p=e[3];const m=p,h=X3t;let _;e[4]!==f?(_=(J,me)=>{J==="PRIORITY"&&me&&(me=Y3t(0,+me).map(String)),f(pe=>(h(J,pe),me.length?(me=Array.isArray(me)?me:[me],me.forEach(Se=>{pe.append("field",`${J}=${Se}`)})):pe.append("field",J),pe))},e[4]=f,e[5]=_):_=e[5];const g=_;let y;e[6]!==r||e[7]!==f?(y=()=>{f(J=>(h(r,J),J))},e[6]=r,e[7]=f,e[8]=y):y=e[8];const b=y;let x;if(e[9]!==m||e[10]!==r){e:{let J;e[12]!==r?(J=Se=>{const[ve,xe]=z_(Se);return ve===r&&xe!==""},e[12]=r,e[13]=J):J=e[13];let me;e[14]!==r?(me=Se=>{const[,ve]=z_(Se);return{value:ve,label:r==="PRIORITY"?q_(ve):ve}},e[14]=r,e[15]=me):me=e[15];const pe=m.filter(J).map(me);if(r==="PRIORITY"){if(!pe?.length){x=null;break e}const Se=pe.map(Z3t),ve=Math.max(...Se);let xe;e[16]!==ve?(xe=ve.toString(),e[16]=ve,e[17]=xe):xe=e[17];let qe;e[18]!==ve?(qe=q_(ve.toString()),e[18]=ve,e[19]=qe):qe=e[19];let Le;e[20]!==xe||e[21]!==qe?(Le={value:xe,label:qe},e[20]=xe,e[21]=qe,e[22]=Le):Le=e[22],x=Le;break e}x=pe}e[9]=m,e[10]=r,e[11]=x}else x=e[11];const w=x;let C;e[23]===Symbol.for("react.memo_cache_sentinel")?(C=[],e[23]=C):C=e[23];const k=C;let A,P;e[24]!==l||e[25]!==r?(P=()=>{l($.urls.systemLogsFieldsName.replace(":field_name",r))},A=[l,r],e[24]=l,e[25]=r,e[26]=A,e[27]=P):(A=e[26],P=e[27]),I.useEffect(P,A);const[T,j]=I.useState(0);let R,D;e[28]!==r?(R=()=>{const J=document.querySelector(`.label-${r}-container`),me=document.querySelector(`.label-${r}-text`);me&&J&&(j(me.clientWidth),J.removeChild(me))},D=[r],e[28]=r,e[29]=R,e[30]=D):(R=e[29],D=e[30]),I.useEffect(R,D);const O=r==="PRIORITY"?170:`${T+47+(s?28:0)}px`;let N;e[31]!==O?(N={minWidth:O},e[31]=O,e[32]=N):N=e[32];const F=`label-${r}-container`;let U;e[33]===Symbol.for("react.memo_cache_sentinel")?(U={p:"0 4px 0 8px",opacity:0},e[33]=U):U=e[33];const z=`label-${r}-text`;let H;e[34]!==r||e[35]!==z?(H=a.jsx(_e,{sx:U,className:z,paragraph:!1,children:r}),e[34]=r,e[35]=z,e[36]=H):H=e[36];let W;e[37]!==F||e[38]!==H?(W=a.jsx("span",{className:F,children:H}),e[37]=F,e[38]=H,e[39]=W):W=e[39];const K=r!=="PRIORITY";let q;e[40]!==c?.fields||e[41]!==r?(q=r==="PRIORITY"?v4e:c?.fields.map(Q3t)||k,e[40]=c?.fields,e[41]=r,e[42]=q):q=e[42];const X=r==="PRIORITY"?"PRIORITY LEVEL":r,Q=u==="loading";let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y={color:"primary"},e[43]=Y):Y=e[43];let Z;e[44]!==r?(Z=wie.includes(r),e[44]=r,e[45]=Z):Z=e[45];const re=!Z;let fe;e[46]!==g||e[47]!==r?(fe=(J,me)=>{g(r,Array.isArray(me)?me.map(K3t):typeof me=="string"?me:me?.value??"")},e[46]=g,e[47]=r,e[48]=fe):fe=e[48];let de;e[49]===Symbol.for("react.memo_cache_sentinel")?(de={flex:"1 1 auto"},e[49]=de):de=e[49];let se;e[50]!==b||e[51]!==s?(se=s&&a.jsx(Zr,{onClick:J=>{J.stopPropagation(),b()},children:a.jsx(ge.Trash,{size:16})}),e[50]=b,e[51]=s,e[52]=se):se=e[52];let le;e[53]!==w||e[54]!==K||e[55]!==q||e[56]!==X||e[57]!==Q||e[58]!==re||e[59]!==fe||e[60]!==se?(le=a.jsx(rn,{multiple:K,options:q,label:X,size:"small",loading:Q,ChipProps:Y,freeSolo:re,value:w,onChange:fe,sx:de,endAdornment:se}),e[53]=w,e[54]=K,e[55]=q,e[56]=X,e[57]=Q,e[58]=re,e[59]=fe,e[60]=se,e[61]=le):le=e[61];let ee;return e[62]!==N||e[63]!==W||e[64]!==le?(ee=a.jsxs(te,{direction:"row",sx:N,nowrap:!0,spacing:0,align:"flex-start",children:[W,le]}),e[62]=N,e[63]=W,e[64]=le,e[65]=ee):ee=e[65],ee}function K3t(t){return typeof t=="string"?t:t.value}function Q3t(t){return{label:t,value:t}}function Z3t(t){const{value:e}=t;return+e}function X3t(t,e){e.set("skip","0"),e.delete("cursor");const r=e.getAll("field").filter(n=>{const[s]=n.split("=");return s!==t});e.delete("field"),r.forEach(n=>{e.append("field",n)})}function J3t(){const t=he.c(20),e=Ye(),[r]=hl(),{popoverOpen:n}=Jt();let s;t[0]!==r?(s=r.getAll("field"),t[0]=r,t[1]=s):s=t[1];const i=s;let o;t[2]!==i?(o=Cie([...i,"PRIORITY","SYSLOG_IDENTIFIER"]),t[2]=i,t[3]=o):o=t[3];const l=o;let c;t[4]!==n?(c=b=>{n({anchorEl:b.currentTarget,content:rAt})},t[4]=n,t[5]=c):c=t[5];const u=c;let d,f;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(H$,{name:"PRIORITY",removable:!1},"PRIORITY"),f=a.jsx(H$,{name:"SYSLOG_IDENTIFIER",removable:!1},"SYSLOG_IDENTIFIER"),t[6]=d,t[7]=f):(d=t[6],f=t[7]);let p;t[8]!==l?(p=l.filter(tAt).map(eAt),t[8]=l,t[9]=p):p=t[9];let m;t[10]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(ge.Add,{}),t[10]=m):m=t[10];let h;t[11]!==e?(h=e.formatMessage({id:"logs.filter.add"}),t[11]=e,t[12]=h):h=t[12];let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_={mt:"4px"},t[13]=_):_=t[13];let g;t[14]!==u||t[15]!==h?(g=a.jsx(Ze,{startIcon:m,variant:"outlined",text:h,onClick:u,sx:_}),t[14]=u,t[15]=h,t[16]=g):g=t[16];let y;return t[17]!==p||t[18]!==g?(y=a.jsxs(a.Fragment,{children:[d,f,p,g]}),t[17]=p,t[18]=g,t[19]=y):y=t[19],y}function eAt(t){return a.jsx(H$,{name:t},t)}function tAt(t){return!["SYSLOG_IDENTIFIER","PRIORITY"].includes(t)}function rAt(){return a.jsx(W3t,{})}function nAt(){const t=he.c(20),[e,r]=hl();let n;t[0]!==e?(n=e.get("grep")||"",t[0]=e,t[1]=n):n=t[1];const[s,i]=I.useState(n),o=I.useRef(null),l=Ye();let c;t[2]!==r?(c=b=>{const x=b.target.value;i(x),o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{r(w=>x?(w.set("grep",x),w.delete("cursor"),w.set("skip","0"),w):(w.delete("grep"),w),{replace:!0})},400)},t[2]=r,t[3]=c):c=t[3];const u=c;let d;t[4]!==r?(d=()=>{i(""),r(sAt,{replace:!0})},t[4]=r,t[5]=d):d=t[5];const f=d;let p;t[6]!==l?(p=l.formatMessage({id:"logs.grep.search"}),t[6]=l,t[7]=p):p=t[7];let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m={pr:1},t[8]=m):m=t[8];let h;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(te,{sx:m,align:"center",justify:"center",children:a.jsx(ge.Search,{})}),t[9]=h):h=t[9];let _;t[10]!==s||t[11]!==f?(_=s&&a.jsx(Zr,{size:"small",onClick:f,children:a.jsx(ge.Close,{size:16})}),t[10]=s,t[11]=f,t[12]=_):_=t[12];let g;t[13]!==_?(g={startAdornment:h,endAdornment:_},t[13]=_,t[14]=g):g=t[14];let y;return t[15]!==s||t[16]!==u||t[17]!==p||t[18]!==g?(y=a.jsx(dt,{value:s,size:"small",onChange:u,placeholder:p,InputProps:g}),t[15]=s,t[16]=u,t[17]=p,t[18]=g,t[19]=y):y=t[19],y}function sAt(t){return t.delete("grep"),t}function iAt(){const t=he.c(11),[e,r]=hl(),n=Ye(),{pathname:s}=to(),i=s===$.urls.systemLogsFollow,o=zn();let l;t[0]!==r?(l=(m,h)=>{r(_=>m?(_.set(h,m.toISOString()),_.delete("cursor"),_.set("skip","0"),_):(_.delete(h),_))},t[0]=r,t[1]=l):l=t[1];const c=l;if(i)return null;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(Dt,{variant:"rectangular",width:"95px",height:"36px",sx:{borderRadius:"18px"}}),t[2]=u):u=t[2];let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Tr,{}),t[3]=d):d=t[3];let f;t[4]!==c||t[5]!==n||t[6]!==e?(f=m=>a.jsx(te,{direction:"row",spacing:.5,children:["since","until"].map(h=>{let _=ai.utc(e.get(h));const g=h==="until"&&e.get("since")?ai(e.get("since")):ai.utc(mp(m.cutoff_from_realtime)),y=h==="since"&&e.get("until")?ai.utc(e.get("until")):ai.utc(mp(m.cutoff_to_realtime));return _.isValid()||(_=null),a.jsx(uL,{ampm:!1,label:n.formatMessage({id:`logs.realtime.${h}`}),value:_,minDateTime:g,maxDateTime:y,format:"YYYY-MM-DD HH:mm:ss",views:["year","month","day","hours","minutes","seconds"],timezone:"UTC",slotProps:{field:{clearable:!0},textField:{size:"small"},clearButton:{size:"small"},openPickerButton:{size:"small"}},onChange:b=>{c(b,h)}},h)})}),t[4]=c,t[5]=n,t[6]=e,t[7]=f):f=t[7];let p;return t[8]!==o.machine||t[9]!==f?(p=a.jsx(I.Suspense,{fallback:u,children:a.jsx(Qt,{resolve:o.machine,errorElement:d,children:f})}),t[8]=o.machine,t[9]=f,t[10]=p):p=t[10],p}function oAt(){const t=he.c(49),[e,r]=hl(),{drawerOpen:n}=Jt();let s;t[0]!==e?(s=Lue(e.get("boot")),t[0]=e,t[1]=s):s=t[1];const i=s,o=Ye(),l=ys(),{pathname:c}=to(),u=zn(),d=c===$.urls.systemLogsFollow;let f;t[2]!==r?(f=K=>{r(q=>(q.set("boot",String(K)),q.delete("cursor"),q.set("skip","0"),q))},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==n||t[5]!==o?(m=()=>{n({title:o.formatMessage({id:"logs.config"}),width:700,content:aAt})},t[4]=n,t[5]=o,t[6]=m):m=t[6];const h=m;let _;t[7]!==d||t[8]!==l?(_=()=>{const K=d?$.urls.systemLogsEntries:$.urls.systemLogsFollow,q=new URLSearchParams(window.location.search);l(`${K}?${q.toString()}`,{replace:!0})},t[7]=d,t[8]=l,t[9]=_):_=t[9];const g=_;let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y={mr:1},t[10]=y):y=t[10];let b;t[11]!==p?(b=(K,q)=>{p(q)},t[11]=p,t[12]=b):b=t[12];let x;t[13]!==i||t[14]!==b?(x=a.jsx(ti,{size:"small",checked:i,onChange:b}),t[13]=i,t[14]=b,t[15]=x):x=t[15];let w;t[16]!==o?(w=o.formatMessage({id:"logs.current_boot"}),t[16]=o,t[17]=w):w=t[17];let C;t[18]!==w?(C=a.jsx(_e,{type:"body2",children:w}),t[18]=w,t[19]=C):C=t[19];let k;t[20]!==x||t[21]!==C?(k=a.jsxs(te,{direction:"row",align:"center",spacing:.5,sx:y,children:[x,C]}),t[20]=x,t[21]=C,t[22]=k):k=t[22];let A;t[23]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(G3t,{}),t[23]=A):A=t[23];let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{width:"111px",height:"36px",variant:"rectangular",sx:{borderRadius:"18px"}}),t[24]=P):P=t[24];let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Tr,{}),t[25]=T):T=t[25];let j;t[26]!==h||t[27]!==o?(j=K=>a.jsx(Iv,{badgeContent:K&&a.jsx(_e,{type:"body2",children:`${K} exc.`}),color:"error",children:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Config,{}),text:o.formatMessage({id:"logs.config"}),onClick:h})}),t[26]=h,t[27]=o,t[28]=j):j=t[28];let R;t[29]!==u.exceptionsCount||t[30]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:u.exceptionsCount,errorElement:T,children:j})}),t[29]=u.exceptionsCount,t[30]=j,t[31]=R):R=t[31];let D;t[32]!==d?(D=d?a.jsx(ge.Stop,{}):a.jsx(ge.Play,{}),t[32]=d,t[33]=D):D=t[33];let O;t[34]!==o?(O=o.formatMessage({id:"logs.stream.follow"}),t[34]=o,t[35]=O):O=t[35];let N;t[36]!==g||t[37]!==D||t[38]!==O?(N=a.jsx(Ze,{startIcon:D,text:O,onClick:g}),t[36]=g,t[37]=D,t[38]=O,t[39]=N):N=t[39];let F;t[40]!==R||t[41]!==N||t[42]!==k?(F=a.jsx(hs,{children:a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[k,A,R,N]})}),t[40]=R,t[41]=N,t[42]=k,t[43]=F):F=t[43];let U;t[44]===Symbol.for("react.memo_cache_sentinel")?(U={borderBottom:"1px solid",flex:"0 0 auto",borderColor:"divider"},t[44]=U):U=t[44];let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z={px:2,py:1},t[45]=z):z=t[45];let H;t[46]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(gt,{sx:U,children:a.jsxs(te,{direction:"row",align:"center",fullWidth:!0,sx:z,spacing:.5,children:[a.jsx(nAt,{}),a.jsx(iAt,{}),a.jsx(J3t,{})]})}),t[46]=H):H=t[46];let W;return t[47]!==F?(W=a.jsxs(a.Fragment,{children:[F,H]}),t[47]=F,t[48]=W):W=t[48],W}function aAt(){return a.jsx(V3t,{})}function lAt(t){const e=he.c(8),{entries:r}=t,[n]=hl();let s;e[0]!==n?(s=n.get("entries"),e[0]=n,e[1]=s):s=e[1];const o=parseInt(s),[l]=vie(r,o);let c;e[2]!==l[0]?(c=()=>{if(!l[0])return;const f=new URL(window.location.href);f.searchParams.set("cursor",l[0].__CURSOR),window.history.replaceState(null,"",f.href)},e[2]=l[0],e[3]=c):c=e[3];let u;e[4]!==l?(u=[l],e[4]=l,e[5]=u):u=e[5],I.useEffect(c,u);let d;return e[6]!==l?(d=a.jsx(Jpe,{data:l}),e[6]=l,e[7]=d):d=e[7],d}function cAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:uAt})}),t[2]=e.entries,t[3]=s):s=t[3],s}function uAt(t){return a.jsx(lAt,{entries:t})}function dAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:fAt})}),t[2]=e.entries,t[3]=s):s=t[3],s}function fAt(t){return a.jsx(Jpe,{data:t})}function pAt(){const t=he.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0],I.useEffect(mAt,e);let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(a.Fragment,{children:[a.jsx(oAt,{}),a.jsx(Bd,{})]}),t[1]=r):r=t[1],r}function mAt(){return hAt}function hAt(){Ji.deleteScrollRestore()}function gAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"400px"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:_At})}),t[2]=e.entries,t[3]=s):s=t[3],s}function _At(t){const e=t[0];return a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Xpe,{entry:e,cursorAsTitle:!0})})})}const vAt=()=>{const t=he.c(64),e=Ye(),r=Gr(),{submit:n,state:s,json:i}=gr(),{submit:o,state:l,json:c}=gr(),{submit:u,state:d,json:f}=gr(),{submit:p,state:m,json:h}=gr(),{submit:_,state:g,json:y}=gr(),{confirmationDialogOpen:b}=Jt();let x;t[0]!==n?(x=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};n(le?{...ee,action:Bl.DISABLE}:{...ee,action:Bl.ENABLE},J)},t[0]=n,t[1]=x):x=t[1];const w=x;let C;t[2]!==o?(C=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};o(le?{...ee,action:Bl.DISABLE_AUTOSTART}:{...ee,action:Bl.ENABLE_AUTOSTART},J)},t[2]=o,t[3]=C):C=t[3];const k=C;let A;t[4]!==b||t[5]!==e||t[6]!==u?(A=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};le===Tu.STOPPED?u({...ee,action:Bl.START},J):b({severity:"warning",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.stop"},{name:se.toUpperCase()}),onConfirm:()=>u({...ee,action:Bl.STOP},J)})},t[4]=b,t[5]=e,t[6]=u,t[7]=A):A=t[7];const P=A;let T;t[8]!==b||t[9]!==e||t[10]!==p?(T=se=>()=>{b({severity:"warning",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.restart"},{name:se.toUpperCase()}),onConfirm:()=>p({name:se,action:Bl.RESTART},{action:"management",method:"POST",encType:"application/json"})})},t[8]=b,t[9]=e,t[10]=p,t[11]=T):T=t[11];const j=T;let R;t[12]!==b||t[13]!==e||t[14]!==_?(R=se=>()=>{b({severity:"danger",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.reset"},{name:se.toUpperCase()}),onConfirm:()=>_({name:se,action:Bl.RESET},{action:"management",method:"POST",encType:"application/json"})})},t[12]=b,t[13]=e,t[14]=_,t[15]=R):R=t[15];const D=R;let O;t[16]!==e?(O=se=>[...se].sort((le,ee)=>e.formatMessage({id:`service.name.${le.name}`}).localeCompare(e.formatMessage({id:`service.name.${ee.name}`}))).sort(yAt),t[16]=e,t[17]=O):O=t[17];const N=O;let F;t[18]!==e?(F=e.formatMessage({id:"service.title.name"}),t[18]=e,t[19]=F):F=t[19];let U;t[20]!==e?(U=se=>{const{state:le,name:ee,readonly:J,backup:me,type:pe}=se;return a.jsxs(te,{direction:"row",sx:{alignItems:"center"},children:[a.jsx(Mn,{title:le===Tu.STARTED?e.formatMessage({id:"service.started"}):e.formatMessage({id:"service.stopped"}),children:a.jsx("div",{children:a.jsx(bi,{label:e.formatMessage({id:`service.name.${ee}`}),status:le===Tu.STARTED?nn.SUCCESS:nn.ERROR})})}),a.jsx(ms,{size:"small",label:e.formatMessage({id:`service.type.${pe}`}),sx:{fontWeight:"500"}}),J&&a.jsx(ms,{size:"small",label:e.formatMessage({id:"service.readonly"})}),me&&a.jsx(ms,{size:"small",label:e.formatMessage({id:"service.backup"})})]})},t[20]=e,t[21]=U):U=t[21];let z;t[22]!==F||t[23]!==U?(z={key:"name",label:F,cellRender:U},t[22]=F,t[23]=U,t[24]=z):z=t[24];let H;t[25]!==e?(H=e.formatMessage({id:"service.title.version"}),t[25]=e,t[26]=H):H=t[26];let W;t[27]!==H?(W={key:"version",label:H},t[27]=H,t[28]=W):W=t[28];let K;t[29]!==i||t[30]!==s||t[31]!==w||t[32]!==e?(K={key:"enabled",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J}=se;return a.jsx(a.Fragment,{children:!ee&&a.jsxs(te,{direction:"row",fullWidth:!0,align:"center",justify:"center",children:[_y(i)&&i.name===le&&s!=="idle"?a.jsx(te,{sx:{width:40},direction:"row",align:"center",justify:"center",children:a.jsx(Nc,{type:"circular",size:20})}):a.jsx(ti,{size:"small",checked:J,disabled:!Ue(ie.management)||ee,onChange:w(le,J)}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"service.status.enabled"})})]})})}},t[29]=i,t[30]=s,t[31]=w,t[32]=e,t[33]=K):K=t[33];let q;t[34]!==c||t[35]!==l||t[36]!==k||t[37]!==e?(q={key:"autostart",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J,autostart:me}=se;return a.jsx(a.Fragment,{children:!ee&&a.jsxs(te,{direction:"row",fullWidth:!0,align:"center",justify:"center",children:[_y(c)&&c.name===le&&l!=="idle"?a.jsx(te,{sx:{width:40},direction:"row",align:"center",justify:"center",children:a.jsx(Nc,{type:"circular",size:20})}):a.jsx(ti,{size:"small",checked:me,disabled:!Ue(ie.management)||ee||!J,onChange:k(le,me)}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"service.status.autostart"})})]})})}},t[34]=c,t[35]=l,t[36]=k,t[37]=e,t[38]=q):q=t[38];let X;t[39]!==D||t[40]!==j||t[41]!==P||t[42]!==e||t[43]!==y||t[44]!==g||t[45]!==h||t[46]!==m||t[47]!==f||t[48]!==d?(X={key:"actions",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J,state:me,mgmt:pe}=se;return a.jsx(a.Fragment,{children:Ue(ie.management)&&!ee&&J&&a.jsxs(te,{direction:"row",align:"center",justify:"flex-end",nowrap:!0,spacing:1,children:[a.jsx(Mn,{title:me===Tu.STOPPED?e.formatMessage({id:"service.hint.start"}):e.formatMessage({id:"service.hint.stop"}),children:a.jsx(Ze,{variant:"text",loading:_y(f)&&f.name===le&&d!=="idle",startIcon:me===Tu.STOPPED?a.jsx(ge.Play,{}):a.jsx(ge.Stop,{}),onClick:P(le,me)})}),a.jsx(Mn,{title:e.formatMessage({id:"service.hint.restart"}),children:a.jsx(Ze,{variant:"text",startIcon:a.jsx(ge.Refresh,{}),onClick:j(le),loading:_y(h)&&h.name===le&&m!=="idle"})}),a.jsx(Mn,{title:e.formatMessage({id:"service.hint.reset"}),children:a.jsx(Ze,{variant:"text",startIcon:a.jsx(ge.Reset,{}),onClick:D(le),loading:_y(y)&&y.name===le&&g!=="idle",sx:{visibility:pe?"visible":"hidden"}})})]})})}},t[39]=D,t[40]=j,t[41]=P,t[42]=e,t[43]=y,t[44]=g,t[45]=h,t[46]=m,t[47]=f,t[48]=d,t[49]=X):X=t[49];let Q;t[50]!==W||t[51]!==K||t[52]!==q||t[53]!==X||t[54]!==z?(Q=[z,W,K,q,X],t[50]=W,t[51]=K,t[52]=q,t[53]=X,t[54]=z,t[55]=Q):Q=t[55];const Y=Q;let Z;t[56]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[56]=Z):Z=t[56];let re;t[57]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Tr,{}),t[57]=re):re=t[57];let fe;t[58]!==Y||t[59]!==N?(fe=se=>a.jsx(Br,{autoScale:!0,orderBy:"name",columns:Y,data:N(se),page:0,labelDisplayedRows:bAt,rowKey:"name",rowsCount:se.length,rowsPerPage:se.length,hidePagination:!0}),t[58]=Y,t[59]=N,t[60]=fe):fe=t[60];let de;return t[61]!==r.services||t[62]!==fe?(de=a.jsx(I.Suspense,{fallback:Z,children:a.jsx(Qt,{resolve:r.services,errorElement:re,children:fe})}),t[61]=r.services,t[62]=fe,t[63]=de):de=t[63],de};function yAt(t,e){return t.type===xC.NF&&e.type===xC.PS?-1:t.type===e.type?0:1}function bAt(){return""}var rp=(t=>(t.Status="status",t.Source="source",t.Info="info",t.Message="message",t.Step="step",t))(rp||{});function _8(t,e){return!!t.find(r=>r.type==="status"&&r.status===e)}function v8(t){return _8(t,"DONE")}function xAt(t){return v8(t)&&_8(t,"SUCCESS")}function SAt(t){return v8(t)&&_8(t,"FAILURE")}function wAt(t){const e=he.c(4),{status:r}=t;let n;e:switch(r){case"SUCCESS":{n="success";break e}case"FAILURE":{n="warning";break e}default:n="default"}const s=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={my:"4px",mx:2,fontSize:"13px"},e[0]=i):i=e[0];let o;return e[1]!==s||e[2]!==r?(o=a.jsx(ms,{size:"small",label:r,color:s,sx:i}),e[1]=s,e[2]=r,e[3]=o):o=e[3],o}function CAt(t){const e=he.c(3),{status:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px",px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(_e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function AAt(t){const e=he.c(3),{source:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px",px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(_e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function kAt(t){const e=he.c(7),{text:r,level:n}=t;let s;e:switch(+n){case 3:{s=PAt;break e}case 6:{s=MAt;break e}default:s="inherit"}const i=s;let o;e[0]!==i?(o=i&&{backgroundColor:i},e[0]=i,e[1]=o):o=e[1];let l;e[2]!==o?(l={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",...o,py:"2px",px:2},e[2]=o,e[3]=l):l=e[3];let c;return e[4]!==l||e[5]!==r?(c=a.jsx(_e,{sx:l,children:r}),e[4]=l,e[5]=r,e[6]=c):c=e[6],c}function MAt(t){return Ic(t.palette.info.main,.1)}function PAt(t){return Ic(t.palette.error.main,.1)}function jAt(t){const e=he.c(19),{name:r,step:n,percent:s,number:i}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={px:2},e[0]=o):o=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px"},e[1]=l):l=e[1];let c;e[2]!==r||e[3]!==i||e[4]!==n?(c=a.jsxs(_e,{sx:l,children:["Step ",n," of ",i," - ",r]}),e[2]=r,e[3]=i,e[4]=n,e[5]=c):c=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u={width:"80px"},e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d={width:"100%",color:"text.secondary"},e[7]=d):d=e[7];const f=+s;let p;e[8]!==f?(p=a.jsx(gt,{sx:d,children:a.jsx(Nc,{type:"linear",variant:"determinate",color:"inherit",thickness:2,value:f})}),e[8]=f,e[9]=p):p=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m={fontSize:"13px"},e[10]=m):m=e[10];const h=`${+s}%`;let _;e[11]!==h?(_=a.jsx(_e,{sx:m,children:h}),e[11]=h,e[12]=_):_=e[12];let g;e[13]!==_||e[14]!==p?(g=a.jsxs(te,{direction:"row",nowrap:!0,align:"center",spacing:1,sx:u,children:[p,_]}),e[13]=_,e[14]=p,e[15]=g):g=e[15];let y;return e[16]!==g||e[17]!==c?(y=a.jsxs(te,{direction:"row",justify:"space-between",align:"center",sx:o,children:[c,g]}),e[16]=g,e[17]=c,e[18]=y):y=e[18],y}function TAt({logs:t,sx:e}){const r=Ye(),n=I.useRef(null);return I.useEffect(()=>{n.current&&n.current.scrollTo({behavior:"instant",top:n.current.scrollHeight})},[n.current?.scrollHeight,t]),a.jsx(pr,{title:r.formatMessage({id:"software_update.panel.logs.title"}),sx:e,children:a.jsx(te,{spacing:0,ref:n,divided:!0,nowrap:!0,sx:{height:"100%",overflow:"auto",backgroundColor:s=>s.palette.background.paper},children:t.map((s,i)=>{switch(s.type){case rp.Status:return a.jsx(wAt,{status:s.status},i);case rp.Source:return a.jsx(CAt,{status:s.status},i);case rp.Info:return a.jsx(AAt,{source:s.source},i);case rp.Message:return a.jsx(kAt,{text:s.text,level:s.level},i);case rp.Step:default:return a.jsx(jAt,{name:s.name,number:s.number,percent:s.percent,step:s.step},i)}})})})}function EAt(t){const e=he.c(6),{status:r}=t;switch(r){case"SUCCESS":{let n;return e[0]!==r?(n=a.jsx(ms,{label:r,color:"success"}),e[0]=r,e[1]=n):n=e[1],n}case"FAILURE":{let n;return e[2]!==r?(n=a.jsx(ms,{label:r,color:"error"}),e[2]=r,e[3]=n):n=e[3],n}default:{let n;return e[4]!==r?(n=a.jsx(ms,{label:r}),e[4]=r,e[5]=n):n=e[5],n}}}function RAt(t){const e=he.c(33),{logs:r,sx:n}=t,s=Ye(),[i,o]=I.useState(0),[l,c]=I.useState(0),[u,d]=I.useState(0),[f,p]=I.useState("");let m,h;e[0]!==r?(m=()=>{const O=r.filter(DAt);if(O.length){const N={};O.forEach(z=>{const{percent:H,step:W}=z;N[+W]?+H>N[+W]&&(N[+W]=+H):N[+W]=+H});const F=O[O.length-1];let U=0;for(const z in N)U=U+N[z]/+F.number;d(Math.round(U)),p(F.name),o(+F.step),c(+F.number)}},h=[r],e[0]=r,e[1]=m,e[2]=h):(m=e[1],h=e[2]),I.useEffect(m,h);let _;e:{let O;e[3]!==r?(O=r.filter(IAt),e[3]=r,e[4]=O):O=e[4];const N=O,F=N[N.length-1];if(F){_=F.status;break e}_=void 0}const g=_;let y;e[5]!==s?(y=s.formatMessage({id:"software_update.panel.status.title"}),e[5]=s,e[6]=y):y=e[6];let b;e[7]!==g?(b=g&&a.jsx(EAt,{status:g}),e[7]=g,e[8]=b):b=e[8];let x;e[9]!==b?(x=a.jsx(a.Fragment,{children:b}),e[9]=b,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={flex:1},e[11]=w):w=e[11];let C;e[12]!==u?(C=a.jsx(gt,{sx:w,children:a.jsx(Nc,{type:"linear",variant:"determinate",thickness:6,value:u})}),e[12]=u,e[13]=C):C=e[13];const k=`${u}%`;let A;e[14]!==k?(A=a.jsx(_e,{fontSize:"1.2rem",children:k}),e[14]=k,e[15]=A):A=e[15];let P;e[16]!==A||e[17]!==C?(P=a.jsx(te,{spacing:2,children:a.jsxs(te,{direction:"row",align:"center",children:[C,A]})}),e[16]=A,e[17]=C,e[18]=P):P=e[18];let T;e[19]!==f?(T=a.jsx(gt,{component:"span",fontWeight:"600",children:f}),e[19]=f,e[20]=T):T=e[20];let j;e[21]!==i||e[22]!==T||e[23]!==l?(j=a.jsxs(_e,{children:["Step ",i," of ",l," -"," ",T]}),e[21]=i,e[22]=T,e[23]=l,e[24]=j):j=e[24];let R;e[25]!==P||e[26]!==j?(R=a.jsx(Kt,{children:a.jsxs(te,{children:[P,j]})}),e[25]=P,e[26]=j,e[27]=R):R=e[27];let D;return e[28]!==n||e[29]!==R||e[30]!==y||e[31]!==x?(D=a.jsx(pr,{title:y,headerActionsComponent:x,sx:n,children:R}),e[28]=n,e[29]=R,e[30]=y,e[31]=x,e[32]=D):D=e[32],D}function IAt(t){return t.type===rp.Status&&t.status!=="DONE"}function DAt(t){return t.type===rp.Step}function eme(t){const e=he.c(29),{status:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=ys();let o;e[0]!==s?(o=()=>{s()},e[0]=s,e[1]=o):o=e[1];const l=o;let c;e[2]!==s||e[3]!==i?(c=()=>{i($.urls.home),s()},e[2]=s,e[3]=i,e[4]=c):c=e[4];const u=c;let d;e:{switch(r){case"SUCCESS":{let b;e[5]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.success"}),e[5]=n,e[6]=b):b=e[6],d=b;break e}case"FAILED":{let b;e[7]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.failed"}),e[7]=n,e[8]=b):b=e[8],d=b;break e}case"UNKNOWN":{let b;e[9]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.unknown"}),e[9]=n,e[10]=b):b=e[10],d=b;break e}}d=void 0}const f=d;let p;e[11]!==f?(p=a.jsx(yv,{children:a.jsx(_e,{children:f})}),e[11]=f,e[12]=p):p=e[12];let m;e[13]!==n||e[14]!==r?(m=r==="FAILED"?n.formatMessage({id:"common.form.cancel"}):n.formatMessage({id:"common.form.close"}),e[13]=n,e[14]=r,e[15]=m):m=e[15];let h;e[16]!==l||e[17]!==m?(h=a.jsx(Ze,{text:m,variant:"outlined",onClick:l}),e[16]=l,e[17]=m,e[18]=h):h=e[18];let _;e[19]!==u||e[20]!==n||e[21]!==r?(_=r!=="FAILED"&&a.jsx(Ze,{text:n.formatMessage({id:"software_update.dialog.action.home"}),variant:"contained",onClick:u}),e[19]=u,e[20]=n,e[21]=r,e[22]=_):_=e[22];let g;e[23]!==h||e[24]!==_?(g=a.jsxs(vv,{children:[h,_]}),e[23]=h,e[24]=_,e[25]=g):g=e[25];let y;return e[26]!==p||e[27]!==g?(y=a.jsxs(a.Fragment,{children:[p,g]}),e[26]=p,e[27]=g,e[28]=y):y=e[28],y}function $At(t){const e=he.c(26),{sx:r}=t,n=Ye(),{dialogOpen:s,dialogClose:i}=Jt(),o=ys();let l;e[0]!==i||e[1]!==s||e[2]!==n||e[3]!==o?(l=()=>{s({title:n.formatMessage({id:"software_update.form.title"}),content:()=>a.jsx(bx,{action:$.urls.systemUpgradeUpload_Action,min:1,max:1,filesLabel:n.formatMessage({id:"software_update.form.file"}),accept:{"application/octet-stream":[".swu",".SWU"]},requiredMessage:n.formatMessage({id:"software_update.form.file.required"}),description:n.formatMessage({id:"software_update.form.description"}),extraContent:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"warning",title:n.formatMessage({id:"software_update.alert.title"}),message:n.formatMessage({id:"software_update.alert.description"}),action:a.jsx(Ze,{size:"small",variant:"outlined",text:n.formatMessage({id:"software_update.alert.action"}),onClick:()=>{i(),o($.urls.systemBackup)}})}),a.jsx(Lr,{severity:"info",title:n.formatMessage({id:"software_update.alert.warning"})})]})})})},e[0]=i,e[1]=s,e[2]=n,e[3]=o,e[4]=l):l=e[4];const c=l;let u;e[5]!==n?(u=n.formatMessage({id:"software_update.panel.upload.title"}),e[5]=n,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d={height:"100%"},e[7]=d):d=e[7];let f;e[8]!==n?(f=n.formatMessage({id:"software_update.panel.upload.description"}),e[8]=n,e[9]=f):f=e[9];let p;e[10]!==f?(p=a.jsx(_e,{children:f}),e[10]=f,e[11]=p):p=e[11];let m;e[12]!==n?(m=n.formatMessage({id:"software_update.button.upload"}),e[12]=n,e[13]=m):m=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Upload,{}),e[14]=h):h=e[14];let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_={alignSelf:"flex-start"},e[15]=_):_=e[15];let g;e[16]!==c||e[17]!==m?(g=a.jsx(Ze,{text:m,startIcon:h,onClick:c,sx:_}),e[16]=c,e[17]=m,e[18]=g):g=e[18];let y;e[19]!==p||e[20]!==g?(y=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,justify:"space-between",sx:d,children:[p,g]})}),e[19]=p,e[20]=g,e[21]=y):y=e[21];let b;return e[22]!==r||e[23]!==y||e[24]!==u?(b=a.jsx(pr,{title:u,sx:r,children:y}),e[22]=r,e[23]=y,e[24]=u,e[25]=b):b=e[25],b}function OAt(t){const e=he.c(11),{streamResponse:r}=t,n=Ye(),{dialogOpen:s,confirmationSimpleDialogOpen:i}=Jt(),[o,l]=vie(r),{submit:c}=gr();let u,d;e[0]!==i||e[1]!==s||e[2]!==n||e[3]!==o||e[4]!==l||e[5]!==c?(u=()=>{const m=v8(o),h=xAt(o),_=SAt(o);h?i({onConfirm:()=>{c(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},confirmText:n.formatMessage({id:"software_update.dialog.completed.content.success.action"}),title:n.formatMessage({id:"software_update.dialog.completed.title.success"}),description:n.formatMessage({id:"software_update.dialog.completed.content.success"})}):_?s({title:n.formatMessage({id:"software_update.dialog.completed.title.failed"}),content:NAt}):m&&s({content:LAt}),(h||_||m)&&l()},d=[i,s,n,o,l,c],e[0]=i,e[1]=s,e[2]=n,e[3]=o,e[4]=l,e[5]=c,e[6]=u,e[7]=d):(u=e[6],d=e[7]),I.useEffect(u,d);let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={height:"100%",overflow:"hidden"},e[8]=f):f=e[8];let p;return e[9]!==o?(p=a.jsx(te,{spacing:2,sx:f,children:o.length>0?a.jsxs(a.Fragment,{children:[a.jsx(RAt,{logs:o,sx:{flex:0}}),a.jsx(TAt,{logs:o,sx:{height:"100%",overflow:"hidden",flex:1}})]}):a.jsx($At,{sx:{flex:0}})}),e[9]=o,e[10]=p):p=e[10],p}function LAt(){return a.jsx(eme,{status:"UNKNOWN"})}function NAt(){return a.jsx(eme,{status:"FAILED"})}const FAt=()=>{const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",width:"100%",height:"183px"}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.logsStream?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.logsStream,errorElement:n,children:UAt})}),t[2]=e.logsStream,t[3]=s):s=t[3],s};function UAt(t){return a.jsx(OAt,{streamResponse:t})}function BAt(){const t=he.c(6),e=Ye();let r,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={fontSize:"40px",color:"text.secondary"},n=a.jsx(ge.DocumentMissing,{}),t[0]=r,t[1]=n):(r=t[0],n=t[1]);let s;t[2]!==e?(s=e.formatMessage({id:"terminal.drawer.files.message.noData"}),t[2]=e,t[3]=s):s=t[3];let i;return t[4]!==s?(i=a.jsxs(te,{fullHeight:!0,justify:"center",align:"center",spacing:1,sx:r,children:[n,a.jsx(_e,{type:"body1",children:s})]}),t[4]=s,t[5]=i):i=t[5],i}function zAt(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(te,{spacing:2,children:[...Array(5)].map(qAt)}),t[0]=e):e=t[0],e}function qAt(t,e){return a.jsxs(te,{direction:"row",justify:"space-between",align:"center",spacing:2,children:[a.jsx(Dt,{variant:"rounded",sx:{flex:1}}),a.jsx(Dt,{variant:"circular",width:"40px",height:"40px"})]},e)}function VAt(){const t=he.c(4),e=Ye();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={to:"system/terminal/list"},t[0]=r):r=t[0];const{data:n}=Dv(r),s=HAt;let i;return t[1]!==n||t[2]!==e?(i=a.jsx(zp,{children:n?a.jsxs(a.Fragment,{children:[a.jsx(te,{divided:!0,children:n.files.map(o=>a.jsxs(te,{direction:"row",justify:"space-between",align:"center",nowrap:!0,children:[a.jsxs(te,{direction:"row",nowrap:!0,align:"center",spacing:2,children:[a.jsx(ge.Document,{}),a.jsx(_e,{children:o})]}),a.jsx(Mn,{title:e.formatMessage({id:"terminal.drawer.files.download.tooltip"}),placement:"left",children:a.jsx("div",{children:a.jsx(Zr,{onClick:s(o),size:"small",children:a.jsx(ge.Download,{})})})})]},o))}),!n.files.length&&a.jsx(BAt,{})]}):a.jsx(zAt,{})}),t[1]=n,t[2]=e,t[3]=i):i=t[3],i}function HAt(t){return()=>{c7(`${$.apis.pls.terminal.files}/${t}`,t)}}const GAt=()=>{const t=he.c(17),e=Ye(),{drawerOpen:r}=Jt(),[n,s]=I.useState();let i,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const g=()=>{s(Ji.getSiteNode())};return addEventListener("node-change",g),()=>{removeEventListener("node-change",g)}},o=[],t[0]=i,t[1]=o):(i=t[0],o=t[1]),I.useEffect(i,o);let l;t[2]!==r||t[3]!==e?(l=()=>{r({title:e.formatMessage({id:"terminal.drawer.files.title"}),content:WAt,width:600})},t[2]=r,t[3]=e,t[4]=l):l=t[4];const c=l;let u;t[5]!==e?(u=e.formatMessage({id:"terminal.toolbar.files"}),t[5]=e,t[6]=u):u=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ge.Folder,{}),t[7]=d):d=t[7];let f;t[8]!==c||t[9]!==u?(f=a.jsx(hs,{children:a.jsx(Ze,{variant:"outlined",text:u,startIcon:d,onClick:c})}),t[8]=c,t[9]=u,t[10]=f):f=t[10];const p=`/webconsole${n?`?x-ath-node=${n}`:""}`;let m;t[11]===Symbol.for("react.memo_cache_sentinel")?(m={flex:1,border:"none",backgroundColor:"transparent"},t[11]=m):m=t[11];let h;t[12]!==p?(h=a.jsx("iframe",{title:"terminal",src:p,style:m}),t[12]=p,t[13]=h):h=t[13];let _;return t[14]!==f||t[15]!==h?(_=a.jsxs(a.Fragment,{children:[f,h]}),t[14]=f,t[15]=h,t[16]=_):_=t[16],_};function WAt(){return a.jsx(VAt,{})}const qy=Pr(),YAt={start_at:"",end_at:"",include_logs:!0,include_metrics:!0},KAt=dr().shape({start_at:eU().required(qy.formatMessage({id:"validation.required"})),end_at:eU().when("start_at",(t,e)=>t&&e.min(t,qy.formatMessage({id:"troubleshoot_dump.form.end_at.validation"}))).required(qy.formatMessage({id:"validation.required"})),include_logs:li().required(qy.formatMessage({id:"validation.required"})),include_metrics:li().required(qy.formatMessage({id:"validation.required"}))});function Lee(t){const e=he.c(17),{label:r,value:n,disabled:s,error:i,onChange:o}=t;let l;e[0]!==n?(l=n?ai(n):null,e[0]=n,e[1]=l):l=e[1];let c,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["year","month","day","hours","minutes"],u={clearable:!0},e[2]=c,e[3]=u):(c=e[2],u=e[3]);const d=!!i;let f;e[4]!==i||e[5]!==d?(f={size:"small",error:d,helperText:i},e[4]=i,e[5]=d,e[6]=f):f=e[6];let p,m;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={size:"small"},m={size:"small"},e[7]=p,e[8]=m):(p=e[7],m=e[8]);let h;e[9]!==f?(h={field:u,textField:f,clearButton:p,openPickerButton:m},e[9]=f,e[10]=h):h=e[10];let _;return e[11]!==s||e[12]!==r||e[13]!==o||e[14]!==l||e[15]!==h?(_=a.jsx(uL,{ampm:!1,label:r,value:l,format:"YYYY-MM-DD HH:mm",views:c,slotProps:h,onChange:o,disabled:s}),e[11]=s,e[12]=r,e[13]=o,e[14]=l,e[15]=h,e[16]=_):_=e[16],_}function QAt(){const t=he.c(49),{upsertFetcher:e}=Ys(),{submit:r,data:n,state:s}=e,i=Ye(),{dialogClose:o}=Jt();let l;t[0]!==r?(l=D=>{r(D,{action:$.urls.systemTroubleshootDumpCreate_Action,method:"POST",encType:"application/json"})},t[0]=r,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=Ue([ie.management]),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==s?(d=a.jsx(Ke,{name:"start_at",children:D=>{const{field:O,meta:N,form:F}=D,{setFieldValue:U}=F;return a.jsx(Lee,{label:i.formatMessage({id:"troubleshoot_dump.form.start_at"}),value:O.value,onChange:z=>{U(O.name,z?.toISOString())},error:N.error,disabled:s!=="idle"})}}),t[3]=i,t[4]=s,t[5]=d):d=t[5];let f;t[6]!==i||t[7]!==s?(f=a.jsx(Ke,{name:"end_at",children:D=>{const{field:O,meta:N,form:F}=D,{setFieldValue:U}=F;return a.jsx(Lee,{label:i.formatMessage({id:"troubleshoot_dump.form.end_at"}),value:O.value,onChange:z=>{U(O.name,z?.toISOString())},error:N.error,disabled:s!=="idle"})}}),t[6]=i,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==d||t[10]!==f?(p=a.jsxs(te,{spacing:2,children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]!==i||t[13]!==s?(m=a.jsx(Ke,{name:"include_logs",children:D=>{const{field:O,form:N}=D,{setFieldValue:F}=N;return a.jsx(da,{label:i.formatMessage({id:"troubleshoot_dump.form.include_logs"}),checked:O.value,onChange:(U,z)=>{F(O.name,z)},disabled:s!=="idle"})}}),t[12]=i,t[13]=s,t[14]=m):m=t[14];let h;t[15]!==i||t[16]!==s?(h=a.jsx(Ke,{name:"include_metrics",children:D=>{const{field:O,form:N}=D,{setFieldValue:F}=N;return a.jsx(da,{label:i.formatMessage({id:"troubleshoot_dump.form.include_metrics"}),checked:O.value,onChange:(U,z)=>{F(O.name,z)},disabled:s!=="idle"})}}),t[15]=i,t[16]=s,t[17]=h):h=t[17];let _;t[18]!==m||t[19]!==h?(_=a.jsxs(te,{spacing:0,children:[m,h]}),t[18]=m,t[19]=h,t[20]=_):_=t[20];let g;t[21]!==n?(g=a.jsx(Xr,{data:n}),t[21]=n,t[22]=g):g=t[22];let y;t[23]!==p||t[24]!==_||t[25]!==g?(y=a.jsx(_s,{children:a.jsxs(te,{spacing:1,align:"start",children:[p,_,g]})}),t[23]=p,t[24]=_,t[25]=g,t[26]=y):y=t[26];let b;t[27]!==i?(b=i.formatMessage({id:"common.form.cancel"}),t[27]=i,t[28]=b):b=t[28];let x;t[29]!==o?(x=()=>o(),t[29]=o,t[30]=x):x=t[30];const w=s!=="idle";let C;t[31]!==b||t[32]!==x||t[33]!==w?(C=a.jsx(Ze,{text:b,variant:"outlined",onClick:x,disabled:w}),t[31]=b,t[32]=x,t[33]=w,t[34]=C):C=t[34];let k;t[35]!==i?(k=i.formatMessage({id:"troubleshoot_dump.form.submit"}),t[35]=i,t[36]=k):k=t[36];const A=s!=="idle";let P;t[37]!==k||t[38]!==A?(P=a.jsx(Ze,{text:k,type:"submit",disabled:A}),t[37]=k,t[38]=A,t[39]=P):P=t[39];let T;t[40]!==C||t[41]!==P?(T=a.jsxs(Ti,{children:[C,P]}),t[40]=C,t[41]=P,t[42]=T):T=t[42];let j;t[43]!==y||t[44]!==T?(j=a.jsxs(dn,{canWrite:u,children:[y,T]}),t[43]=y,t[44]=T,t[45]=j):j=t[45];let R;return t[46]!==c||t[47]!==j?(R=a.jsx(Wr,{initialValues:YAt,validationSchema:KAt,onSubmit:c,children:j}),t[46]=c,t[47]=j,t[48]=R):R=t[48],R}function ZAt(){const t=he.c(62),e=Gr(),{submit:r,state:n}=gr(),{dialogOpen:s,confirmationSimpleDialogOpen:i}=Jt(),o=Ye();let l;t[0]!==s||t[1]!==o?(l=()=>{s({title:o.formatMessage({id:"troubleshoot_dump.form.title"}),content:okt})},t[0]=s,t[1]=o,t[2]=l):l=t[2];const c=l;let u;t[3]!==o?(u=o.formatMessage({id:"troubleshoot_dump.table.action_id"}),t[3]=o,t[4]=u):u=t[4];let d;t[5]!==u?(d={key:"action_id",label:u},t[5]=u,t[6]=d):d=t[6];let f;t[7]!==o?(f=o.formatMessage({id:"troubleshoot_dump.table.status"}),t[7]=o,t[8]=f):f=t[8];let p;t[9]!==f?(p={key:"status",label:f,cellRender:ikt},t[9]=f,t[10]=p):p=t[10];let m;t[11]!==o?(m=o.formatMessage({id:"troubleshoot_dump.table.start_at"}),t[11]=o,t[12]=m):m=t[12];let h;t[13]!==m?(h={key:"start_at",label:m,cellRender:skt},t[13]=m,t[14]=h):h=t[14];let _;t[15]!==o?(_=o.formatMessage({id:"troubleshoot_dump.table.end_at"}),t[15]=o,t[16]=_):_=t[16];let g;t[17]!==_?(g={key:"end_at",label:_,cellRender:nkt},t[17]=_,t[18]=g):g=t[18];let y;t[19]!==o?(y=o.formatMessage({id:"troubleshoot_dump.table.created_at"}),t[19]=o,t[20]=y):y=t[20];let b;t[21]!==y?(b={key:"created_at",label:y,cellRender:rkt},t[21]=y,t[22]=b):b=t[22];let x;t[23]!==o?(x=o.formatMessage({id:"troubleshoot_dump.table.size"}),t[23]=o,t[24]=x):x=t[24];let w;t[25]!==x?(w={key:"size",label:x,cellRender:tkt},t[25]=x,t[26]=w):w=t[26];let C;t[27]!==b||t[28]!==w||t[29]!==d||t[30]!==p||t[31]!==h||t[32]!==g?(C=[d,p,h,g,b,w],t[27]=b,t[28]=w,t[29]=d,t[30]=p,t[31]=h,t[32]=g,t[33]=C):C=t[33];const k=C;let A;t[34]!==o?(A=o.formatMessage({id:"troubleshoot_dump.table.actions.download"}),t[34]=o,t[35]=A):A=t[35];let P;t[36]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Download,{}),t[36]=P):P=t[36];let T;t[37]!==A?(T={label:A,icon:P,onClick:ekt},t[37]=A,t[38]=T):T=t[38];let j;t[39]!==o?(j=o.formatMessage({id:"troubleshoot_dump.table.actions.delete"}),t[39]=o,t[40]=j):j=t[40];let R;t[41]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Trash,{}),t[41]=R):R=t[41];let D;t[42]!==i||t[43]!==o||t[44]!==r?(D=W=>{const{action_id:K}=W;i({title:o.formatMessage({id:"troubleshoot_dump.dialog.delete.title"}),description:o.formatMessage({id:"troubleshoot_dump.dialog.delete.description"},{id:K}),onConfirm:()=>{r({id:K},{action:$.urls.systemTroubleshootDumpDelete_Action,method:"POST",encType:"application/json"})}})},t[42]=i,t[43]=o,t[44]=r,t[45]=D):D=t[45];let O;t[46]!==j||t[47]!==D?(O={label:j,icon:R,onClick:D},t[46]=j,t[47]=D,t[48]=O):O=t[48];let N;t[49]!==T||t[50]!==O?(N=[T,O],t[49]=T,t[50]=O,t[51]=N):N=t[51];const F=N;let U;t[52]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",width:"100%",height:"400px"}),t[52]=U):U=t[52];let z;t[53]!==k||t[54]!==c||t[55]!==o||t[56]!==F||t[57]!==n?(z=W=>{if(W.length>0){const K=W.some(JAt);return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{variant:"contained",text:o.formatMessage({id:"troubleshoot_dump.toolbar.dump"}),startIcon:a.jsx(ge.Add,{}),onClick:c,disabled:K})}),a.jsx(Br,{autoScale:!0,orderBy:"created_at",columns:k,data:W,page:0,labelDisplayedRows:XAt,rowsCount:W.length,rowsPerPage:W.length,rowsPerPageOptions:void 0,rowKey:"action_id",rowActions:F,stickyRowActions:!0,loading:n!=="idle"})]})}return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{variant:"contained",text:o.formatMessage({id:"troubleshoot_dump.toolbar.dump"}),startIcon:a.jsx(ge.Add,{}),onClick:c})}),a.jsx(gt,{p:2,children:a.jsx(Lr,{message:o.formatMessage({id:"troubleshoot_dump.no_data"})})})]})},t[53]=k,t[54]=c,t[55]=o,t[56]=F,t[57]=n,t[58]=z):z=t[58];let H;return t[59]!==e.schedules||t[60]!==z?(H=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:e.schedules,children:z})}),t[59]=e.schedules,t[60]=z,t[61]=H):H=t[61],H}function XAt(){return""}function JAt(t){return t.status==="running"}function ekt(t){const{action_id:e}=t;return Eie($.apis.pls.troubleshootDump.download(e))}function tkt(t){const{size:e}=t;return e?a.jsx(_e,{type:"body2",children:a7(e)}):a.jsx(_e,{children:"--"})}function rkt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:e?Mr(e):"--"})}function nkt(t){const{end_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function skt(t){const{start_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ikt(t){const{status:e}=t;let r;e:switch(e){case"running":{r=nn.INFO;break e}case"completed":{r=nn.SUCCESS;break e}case"staled":r=nn.ERROR}return a.jsx(bi,{label:e,status:r})}function okt(){return a.jsx(QAt,{})}const Nee=Pr();function akt(t){const e=$.apis.backup.create(t);return De({options:{url:e,method:"POST"}})}function lkt(t,e){const r=$.apis.backup.restore(t),n=new FormData;return n.append("file",e),De({options:{url:r,method:"POST",headers:{"content-type":"multipart/form-data"},data:n}})}function ckt(t){const e=$.apis.backup.backupSchedules(t);return De({options:{url:e,method:"GET",cache:!1}})}function ukt(t){const e=$.apis.backup.restoreSchedules(t);return De({options:{url:e,method:"GET",cache:!1}})}function dkt(t,e){const r=$.apis.backup.update(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function fkt(){const t=await ma(),e=[];return Ds({services:t,name:ue.PLS})&&e.push(ue.PLS),Ds({services:t,name:ue.UDR})&&e.push(ue.UDR),Ds({services:t,name:ue.EIR})&&e.push(ue.EIR),Ds({services:t,name:ue.DSM})&&e.push(ue.DSM),Ds({services:t,name:ue.UDM})&&e.push(ue.UDM),Ds({services:t,name:ue.NRF})&&e.push(ue.NRF),e}function pkt(t){return t.map(e=>{const r=e===ue.PLS?Nee.formatMessage({id:"route.platform"}):Nee.formatMessage({id:`route.system.backup.${e}`});return{url:e,label:r}})}async function mkt(){const t=as([[ie.backup,ie.provisioning]]),e=await fkt();let r=[],n={},s={};if(t){r=pkt(e);const i=await Promise.all(e.map(async o=>{const l=[ckt(o),ukt(o)],[c,u=[]]=await Promise.all(l);return{backup:c,restore:u}}));e.forEach((o,l)=>{n={...n,[o]:i[l].backup},s={...s,[o]:i[l].restore}})}return{activeTabs:r,backupSchedules:n,restoreSchedules:s}}function hkt(t){const e=$.apis.pls.configuration.backup;return De({options:{url:e,method:"POST",data:JSON.stringify(t),responseType:"blob"}})}function gkt(t){const e=$.apis.pls.configuration.restore,r=new FormData;return r.append("backup_file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function _kt({request:t}){const{nf:e}=await t.json(),r=await akt(e);return xt(r)?Ar():Nt(),Ft(r)}async function vkt({request:t}){const e=await t.formData(),r=e.get("nf"),n=e.getAll("files")[0],s=await lkt(r,n);return xt(s)?Ar():Nt(),Ft(s)}async function ykt({request:t}){const e=await t.json(),r=await hkt(e);return xt(r)?Ar():yue(r,`backup_configuration_${Date.now()}.tar.gz`,"application/gzip"),Ft(r)}async function bkt({request:t}){const r=(await t.formData()).get("file"),n=await gkt(r);return xt(n)?Ar():Nt(),Ft(n)}async function xkt({request:t}){const{nf:e,configuration:r}=await t.json(),n=await dkt(e,r);return xt(n)||Nt(),Ft(n)}async function Skt({request:t}){const{nf:e,logsConfig:r}=await t.json(),n=await p4e({nf:e,logsConfig:r});return xt(n)?Ar():Nt(),Ft(n)}async function wkt(){const t=$.apis.licensing.licenses;return De({options:{url:t,method:"GET"}})}async function Ckt(){const t=$.apis.licensing.host;return De({options:{url:t,method:"GET"}})}async function Akt(t){const e=$.apis.licensing.licenses;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function kkt(t,e){const r=$.apis.licensing.setLicense(t);return De({options:{url:r,method:"PUT",data:JSON.stringify({license_id:e})}})}async function Mkt(t){const e=$.apis.licensing.persistLicense(t);return De({options:{url:e,method:"POST"}})}async function Pkt(t,e){const r=new URLSearchParams;return e!==void 0&&r.set("precedence",e.toString()),De({options:{url:`${$.apis.licensing.licenses}/${t}${r.size?"?"+r.toString():""}`,method:"DELETE"}})}async function jkt(){const[t,e]=await Promise.all([wkt(),Ckt()]);return{licenses:t,hostInfo:e}}async function Tkt({request:t}){const r=(await t.formData()).getAll("files"),n=await kue(r[0]),i=JSON.parse(n).licenses,o=await Promise.all(i.map(async l=>{const{license_id:c,license_content:u,license_nf_type:d}=l,f={license_id:c,precedence:10,signature_type:"ssl",signed_license:{license:u,signature_type:"ssl"}};let p={license_id:c,license_nf_type:d,install:!1,set:!1,persist:!1,errorCount:0};const m=await Akt(f);xt(m)?p={...p,errorCount:p.errorCount+1,installError:m.error.title}:p={...p,install:!0};const h=await kkt(d,c);xt(h)?p={...p,errorCount:p.errorCount+1,setError:h.error.title}:p={...p,set:!0};const _=await Mkt(d);return xt(_)?p={...p,errorCount:p.errorCount+1,persistError:_.error.title}:p={...p,persist:!0},p}));return o.every(l=>l.errorCount===0)&&Nt(),Ft({error:{title:"Something went wrong",detail:"Not all actions worked",status:444,errorList:o}})}async function Ekt({request:t}){const{license_id:e,precedence:r}=await t.json(),n=await Pkt(e,r);return xt(n)?Ar():Nt(),Ft(n)}async function Rkt({request:t}){const e=await t.json(),r=await d4e(e);return xt(r)?Ar():Nt(),Ft(r)}async function Ikt({request:t}){const r=(await t.formData()).getAll("files")[0],n=await oht(r);return xt(n)&&Ar(),Ft(n)}async function Dkt(){return De({options:{url:$.apis.pls.troubleshootDump.all,method:"GET"}})}async function $kt(t){return De({options:{url:$.apis.pls.troubleshootDump.create,method:"POST",data:t}})}async function Okt(t){return De({options:{url:$.apis.pls.troubleshootDump.get(t),method:"DELETE"}})}async function Lkt({request:t}){const e=await t.json(),r=await $kt(e);return xt(r)||(Nt(),rt($.urls.systemTroubleshootDump)),r}async function Nkt({request:t}){const{id:e}=await t.json(),r=await Okt(e);return xt(r)?Ar():(Nt(),rt($.urls.systemTroubleshootDump)),r}async function Fkt(t){return Wt({loaderArgs:t,deferred:!0,data:{schedule:mkt()}})}async function Fee(t){return Wt({loaderArgs:t,deferred:!0,data:{services:ma()}})}function Uee({stream:t}){return async e=>{const r=await Mie(),{request:n}=e,s=new URL(n.url),i=s.searchParams.get("entries"),o=s.searchParams.get("skip"),l=s.searchParams.get("boot"),c=s.searchParams.get("cursor")||"",u=s.searchParams.getAll("field"),d=s.searchParams.get("grep"),f=s.searchParams.get("since")||"",p=s.searchParams.get("until")||"";if(l===null)return s.searchParams.set("boot","true"),rt(s.href);let m=80;if(i!==null){const C=parseInt(i);if($.pageSizeOptions.includes(C))m=C;else return s.searchParams.set("entries",m.toString()),rt(s.href)}else return s.searchParams.set("entries",m.toString()),rt(s.href);let h=0;if(o!==null)if(f||p){const C=parseInt(o);if(C%m!==0)return s.searchParams.set("skip",h.toString()),rt(s.href);h=C}else{const C=parseInt(o);if($.pageSizeOptions.includes(Math.abs(C))||C===0)h=C;else return s.searchParams.set("skip",h.toString()),rt(s.href)}else return s.searchParams.set("skip",h.toString()),rt(s.href);const _=200,g=0;if(t){if(h!==g||m!==_)return s.searchParams.set("entries",_.toString()),s.searchParams.set("skip",g.toString()),rt(s.href);if(c)return s.searchParams.delete("cursor"),rt(s.href);if(f)return s.searchParams.delete("since"),rt(s.href);if(p)return s.searchParams.delete("until"),rt(s.href)}if((f||p)&&c)return s.searchParams.delete("cursor"),rt(s.href);if(u.some(C=>!C))return s.searchParams.delete("field"),u.filter(C=>!!C).forEach(C=>{s.searchParams.append("field",C)}),rt(s.href);if(u.some(C=>{const[k]=z_(C);return k!==k.toUpperCase()}))return s.searchParams.delete("field"),u.filter(C=>!!C).forEach(C=>{const[k,A]=z_(C);s.searchParams.append("field",`${k.toUpperCase()}=${A}`)}),rt(s.href);let x="",w="";return f&&!ai.utc(f).isValid()?(s.searchParams.delete("since"),rt(s.href)):p&&!ai.utc(p).isValid()?(s.searchParams.delete("until"),rt(s.href)):(f&&(x=ai.utc(f).unix().toString()),p&&(w=ai.utc(p).unix().toString()),Wt({loaderArgs:e,deferred:!0,data:{entries:kie({numEntries:m,numSkip:h,cursor:c,boot:Lue(l),fields:u,stream:t,grep:d,since:x,until:w}),machine:r}}))}}function Ukt(t){return Wt({loaderArgs:t,deferred:!0,data:{machine:Mie(),exceptionsCount:g4e()}})}async function Bkt(t){return Wt({loaderArgs:t,deferred:!0,data:{fields:y4e()}})}async function zkt(t){const{params:e}=t,{field_name:r}=e;if(!r)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{fields:b4e({fieldName:r})}})}async function qkt(t){const{params:e}=t,{cursor:r}=e;if(!r)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{entries:kie({cursor:r,numEntries:1,numSkip:0,stream:!1})}})}function Vkt(t){return Wt({loaderArgs:t,deferred:!0,data:{logsConfig:h4e()}})}async function Hkt(t){return Wt({loaderArgs:t,deferred:!0,data:{licensing:jkt()}})}async function Gkt(t){return Wt({loaderArgs:t,deferred:!0,data:{services:vL()}})}async function Wkt({name:t}){try{const e=await f4e({name:t});if(!e)throw Li({type:mn.SERVICE_UNAVAILABLE,data:t});return e}catch{throw Li({type:mn.SERVICE_UNAVAILABLE,data:t})}}async function Ykt(t){return Wt({loaderArgs:t,deferred:!0,data:{logsStream:lht()}})}const Kkt=async()=>(await Wkt({name:ue.TERMINAL}),null);async function Qkt(t){return Wt({loaderArgs:t,deferred:!0,data:{files:T4e()}})}async function Zkt(t){return Wt({loaderArgs:t,deferred:!0,data:{schedules:Dkt().then(e=>e.sort((r,n)=>Date.parse(n.created_at)-Date.parse(r.created_at)))}})}const Xkt={path:"system",handle:vr({labelIntl:"route.system",icon:a.jsx(ge.System,{})}),children:[{element:a.jsx(Or,{fullHeight:!0,transparent:!0,center:!0}),children:[{path:"upgrade",handle:vr({labelIntl:"route.system.upgrade",to:$.urls.systemUpgrade}),loader:Ykt,element:a.jsx(FAt,{}),shouldRevalidate:()=>!1,children:[{path:"upload",action:Ikt,loader:()=>rt("..")}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"licensing",handle:vr({labelIntl:"route.system.licensing",to:$.urls.systemLicensing}),loader:Hkt,element:a.jsx(v3t,{}),children:[{path:"install",action:Tkt,loader:()=>rt("..")},{path:"delete",action:Ekt,loader:()=>rt("..")}]},{path:"services",handle:vr({labelIntl:"route.system.services",to:$.urls.systemServices}),loader:Gkt,element:a.jsx(vAt,{}),children:[{path:"management",action:Rkt,loader:()=>rt("..")}]},{path:"terminal",loader:Kkt,handle:vr({labelIntl:"route.system.terminal",to:$.urls.systemTerminal}),element:a.jsx(GAt,{}),children:[{path:"list",loader:Qkt,element:a.jsx(ur,{to:$.urls.systemTerminal,replace:!0})}]},{path:"backup",loader:Fkt,handle:vr({labelIntl:"route.system.backup",to:$.urls.systemBackup}),element:a.jsx(u3t,{}),children:[{index:!0,element:a.jsx(ur,{to:"backup-schedules",replace:!0})},{path:"backup-schedules",element:a.jsx($ee,{isBackup:!0}),children:[{index:!0,element:as([ie.backup,ie.configuration])?a.jsx(ur,{to:"configuration",replace:!0}):a.jsx(ur,{to:"pls",replace:!0})},{path:"configuration",element:a.jsx(p3t,{}),errorElement:a.jsx(en,{}),loader:Fee,children:[{path:"configuration-backup",action:ykt,loader:()=>rt("..")}]},{path:":nf",element:a.jsx(Dee,{isBackup:!0})}]},{path:"restore-schedules",element:a.jsx($ee,{isBackup:!1}),children:[{index:!0,element:as([ie.backup,ie.configuration])?a.jsx(ur,{to:"configuration",replace:!0}):a.jsx(ur,{to:"pls",replace:!0})},{path:"configuration",element:a.jsx(g3t,{}),errorElement:a.jsx(en,{}),loader:Fee,children:[{path:"configuration-restore",action:bkt,loader:()=>rt("..")}]},{path:":nf",element:a.jsx(Dee,{isBackup:!1})}]},{path:"schedule-backup",action:_kt,loader:()=>rt("..")},{path:"schedule-restore",action:vkt,loader:()=>rt("..")},{path:"update-configuration",action:xkt,loader:()=>rt("..")}]},{path:"troubleshoot-dump",element:a.jsx(ZAt,{}),handle:vr({labelIntl:"route.system.troubleshoot_dump",to:$.urls.systemTroubleshootDump}),loader:Zkt,children:[{path:"create",action:Lkt},{path:"delete",action:Nkt}]}]},{path:"logs",handle:vr({icon:a.jsx(ge.Logs,{}),labelIntl:"route.system.logs",to:$.urls.systemLogs}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{element:a.jsx(pAt,{}),loader:Ukt,children:[{path:"entries",loader:Uee({stream:!1}),element:a.jsx(dAt,{})},{path:"fields",loader:Bkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0}),children:[{path:":field_name",loader:zkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0})}]},{path:"follow",loader:Uee({stream:!0}),element:a.jsx(cAt,{})},{path:"config",loader:Vkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0}),children:[{path:"update",action:Skt,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{center:!0}),children:[{path:"cursor",children:[{index:!0,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0})},{path:":cursor",loader:qkt,handle:t=>{const e=t.params.cursor;return vr({labelIntl:"route.system.logs.cursor",captionIntl:"route.system.logs.cursor.caption",captionIntlParams:{cursor:e},to:$.urls.systemLogsCursor})},element:a.jsx(gAt,{})}]}]}]},{path:"boot-partitions",element:a.jsx(ur,{to:"/",replace:!0}),loader:Vmt},{path:"boot-partitions-update",loader:()=>rt("/"),action:wmt}]},Vy=Pr(),Jkt=dr().shape({description:We().matches(new RegExp($.regex.descriptionRm),Vy.formatMessage({id:"udm_home_network_keys.form.errors.format"},{value:"^[ -~]{1,128}"})),home_network_identifier:We().matches(new RegExp($.regex.plmnStr)).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),key_id:kn().min(1).max(255).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),private_key:We().when("profile",(t,e)=>t==="A"?e.matches(new RegExp($.regex.ecX25519PrivateKey)):e.matches(new RegExp($.regex.secp256r1PrivateKey))).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),profile:We().matches(new RegExp("^(A|B)$")).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"}))}),eMt=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=h=>{o({key_id:+h.key_id,home_network_identifier:h.home_network_identifier,private_key:h.private_key,profile:h.profile,...h.description&&{description:h.description}},{action:$.urls.udmHomeNetworkKeysCreate_Action,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={key_id:"",home_network_identifier:"",private_key:"",public_key:"",profile:"A",description:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==r?(f=()=>r(),t[3]=r,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==e||t[7]!==i?(p=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"key_id",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.key_id"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"description",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.description"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"home_network_identifier",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.home_network_identifier"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"profile",children:h=>{const{field:_,meta:g}=h;return a.jsxs(qs,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.profile"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle",children:[a.jsx(En,{value:"A",children:"A"},"A"),a.jsx(En,{value:"B",children:"B"},"B")]})}}),a.jsx(Ke,{name:"private_key",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.private_key"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udm_home_network_keys.form.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"udm_home_network_keys.form.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==c||t[10]!==f||t[11]!==p?(m=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:d,validationSchema:Jkt,onSubmit:c,onReset:f,children:p})}),t[9]=c,t[10]=f,t[11]=p,t[12]=m):m=t[12],m},tMt=()=>{const t=he.c(23),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udm_home_network_keys.form.title_create"}),content:rMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==r||t[4]!==e?(i=()=>{r({title:e.formatMessage({id:"udm_home_network_keys.upload.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:e.formatMessage({id:"udm_home_network_keys.upload.form.file"}),accept:{".enc":[".enc"]},requiredMessage:e.formatMessage({id:"udm_home_network_keys.upload.form.file.required"}),description:e.formatMessage({id:"udm_home_network_keys.upload.form.description"}),action:"udm/home-network-keys/upload"})})},t[3]=r,t[4]=e,t[5]=i):i=t[5];const o=i;let l;t[6]!==e?(l=e.formatMessage({id:"udm_home_network_keys.toolbar.upload"}),t[6]=e,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ge.Upload,{}),t[8]=c):c=t[8];let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=Ue(ie.provisioning),t[9]=u):u=t[9];let d;t[10]!==o||t[11]!==l?(d=a.jsx(Ze,{variant:"outlined","data-testid":"udm-home-network-keys-btn-upload",text:l,startIcon:c,onClick:o,disabled:!u}),t[10]=o,t[11]=l,t[12]=d):d=t[12];let f;t[13]!==e?(f=e.formatMessage({id:"udm_home_network_keys.toolbar.new"}),t[13]=e,t[14]=f):f=t[14];let p;t[15]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ge.Add,{}),t[15]=p):p=t[15];let m;t[16]===Symbol.for("react.memo_cache_sentinel")?(m=Ue(ie.provisioning),t[16]=m):m=t[16];let h;t[17]!==s||t[18]!==f?(h=a.jsx(Ze,{text:f,startIcon:p,onClick:s,disabled:!m}),t[17]=s,t[18]=f,t[19]=h):h=t[19];let _;return t[20]!==d||t[21]!==h?(_=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[d,h]}),t[20]=d,t[21]=h,t[22]=_):_=t[22],_};function rMt(){return a.jsx(eMt,{})}const nMt=()=>{const t=he.c(65),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{pageSize:o,pageSizeOptions:l,changePageSize:c,changePage:u,getRowsCount:d,getPage:f}=Na();let p;t[0]!==i||t[1]!==e||t[2]!==r?(p=Q=>{const{id:Y,key_id:Z}=Q;Y&&r({text:e.formatMessage({id:"udm_home_network_keys.actions.confirm_delete"},{value:Z}),onConfirm:()=>{i.submit({id:Y},{action:$.urls.udmHomeNetworkKeysDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=p):p=t[3];const m=p;let h;t[4]!==e?(h=e.formatMessage({id:"udm_home_network_keys.table.key_id"}),t[4]=e,t[5]=h):h=t[5];let _;t[6]!==h?(_={key:"key_id",label:h},t[6]=h,t[7]=_):_=t[7];let g;t[8]!==e?(g=e.formatMessage({id:"udm_home_network_keys.table.description"}),t[8]=e,t[9]=g):g=t[9];let y;t[10]!==g?(y={key:"description",label:g},t[10]=g,t[11]=y):y=t[11];let b;t[12]!==e?(b=e.formatMessage({id:"udm_home_network_keys.table.home_network_identifier"}),t[12]=e,t[13]=b):b=t[13];let x;t[14]!==b?(x={key:"home_network_identifier",label:b},t[14]=b,t[15]=x):x=t[15];let w;t[16]!==e?(w=e.formatMessage({id:"udm_home_network_keys.table.profile"}),t[16]=e,t[17]=w):w=t[17];let C;t[18]!==w?(C={key:"profile",label:w},t[18]=w,t[19]=C):C=t[19];let k;t[20]!==e?(k=e.formatMessage({id:"udm_home_network_keys.table.public_key"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==k?(A={key:"public_key",label:k,cellRender:sMt},t[22]=k,t[23]=A):A=t[23];let P;t[24]!==e?(P=e.formatMessage({id:"udm_home_network_keys.table.created_at"}),t[24]=e,t[25]=P):P=t[25];let T;t[26]!==P?(T={key:"created_at",label:P,cellRender:iMt},t[26]=P,t[27]=T):T=t[27];let j;t[28]!==e?(j=e.formatMessage({id:"udm_home_network_keys.table.modified_at"}),t[28]=e,t[29]=j):j=t[29];let R;t[30]!==j?(R={key:"modified_at",label:j,cellRender:oMt},t[30]=j,t[31]=R):R=t[31];let D;t[32]!==A||t[33]!==T||t[34]!==R||t[35]!==_||t[36]!==y||t[37]!==x||t[38]!==C?(D=[_,y,x,C,A,T,R],t[32]=A,t[33]=T,t[34]=R,t[35]=_,t[36]=y,t[37]=x,t[38]=C,t[39]=D):D=t[39];const O=D;let N;t[40]!==e?(N=e.formatMessage({id:"udm_home_network_keys.actions.delete"}),t[40]=e,t[41]=N):N=t[41];let F;t[42]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),t[42]=F):F=t[42];let U;t[43]!==i.state||t[44]!==s.state?(U=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[43]=i.state,t[44]=s.state,t[45]=U):U=t[45];let z;t[46]!==m||t[47]!==N||t[48]!==U?(z=[{label:N,icon:F,onClick:m,disabled:U}],t[46]=m,t[47]=N,t[48]=U,t[49]=z):z=t[49];const H=z;let W;t[50]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[50]=W):W=t[50];let K;t[51]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(Tr,{}),t[51]=K):K=t[51];let q;t[52]!==u||t[53]!==c||t[54]!==O||t[55]!==i.state||t[56]!==f||t[57]!==d||t[58]!==o||t[59]!==l||t[60]!==H?(q=Q=>{const{data:Y,metadata:Z}=Q;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(tMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"key_id",columns:O,data:Y,page:f(Z),labelDisplayedRows:aMt,rowsCount:d(Z),rowsPerPage:o,onRowsPerPageChange:c,rowsPerPageOptions:l,rowKey:"key_id",rowActions:H,stickyRowActions:!0,onPageChange:u(Z)})]})},t[52]=u,t[53]=c,t[54]=O,t[55]=i.state,t[56]=f,t[57]=d,t[58]=o,t[59]=l,t[60]=H,t[61]=q):q=t[61];let X;return t[62]!==n.autorules||t[63]!==q?(X=a.jsx(I.Suspense,{fallback:W,children:a.jsx(Qt,{resolve:n.autorules,errorElement:K,children:q})}),t[62]=n.autorules,t[63]=q,t[64]=X):X=t[64],X};function sMt(t){const{public_key:e}=t;return a.jsx(Ap,{text:e,max:8})}function iMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function oMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function aMt(){return""}const $D=Pr(),lMt=dr().shape({prefix:We().required($D.formatMessage({id:"udm_plmn_prefixes.prefix.form_errors.required"})).matches(new RegExp($.regex.plmnPrefix)),mcc:We().required($D.formatMessage({id:"udm_plmn_prefixes.mcc.form_errors.required"})).matches(new RegExp($.regex.mcc)),mnc:We().required($D.formatMessage({id:"udm_plmn_prefixes.mnc.form_errors.required"})).matches(new RegExp($.regex.mnc))}),tme=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i}=Ys(),{submit:o,data:l,state:c}=s,{load:u,data:d,state:f}=i,{dialogClose:p}=Jt(),m=!!r;let h,_;e[0]!==r||e[1]!==m||e[2]!==u?(h=()=>{m&&u(`udm/plmn-prefixes/${r}`)},_=[r,m,u],e[0]=r,e[1]=m,e[2]=u,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_);let g;e[5]!==m||e[6]!==o?(g=R=>{o(R,{method:"POST",encType:"application/json",action:m?"udm/plmn-prefixes/update":"udm/plmn-prefixes/create"})},e[5]=m,e[6]=o,e[7]=g):g=e[7];const y=g,b=d?.udmPlmnPrefix.prefix||"",x=d?.udmPlmnPrefix.mcc||"",w=d?.udmPlmnPrefix.mnc||"";let C;e[8]!==b||e[9]!==x||e[10]!==w?(C={prefix:b,mcc:x,mnc:w},e[8]=b,e[9]=x,e[10]=w,e[11]=C):C=e[11];const k=C,A=f!=="idle";let P;e[12]!==p||e[13]!==n||e[14]!==m||e[15]!==l||e[16]!==c?(P=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"prefix",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.prefix"}),size:"small",error:!!O.error,helperText:O.error,disabled:m||c!=="idle"})}}),a.jsx(Ke,{name:"mcc",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.mcc"}),size:"small",error:!!O.error,helperText:O.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"mnc",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.mnc"}),size:"small",error:!!O.error,helperText:O.error,disabled:c!=="idle"})}}),a.jsx(Xr,{data:l})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"common.form.cancel"}),variant:"outlined",disabled:c!=="idle"||!Ue(ie.provisioning),onClick:()=>p()}),a.jsx(Ze,{text:n.formatMessage({id:"common.form.submit"}),type:"submit",loading:c!=="idle",disabled:!Ue(ie.provisioning)})]})]})}),e[12]=p,e[13]=n,e[14]=m,e[15]=l,e[16]=c,e[17]=P):P=e[17];let T;e[18]!==y||e[19]!==k||e[20]!==P?(T=a.jsx(Wr,{initialValues:k,validationSchema:lMt,onSubmit:y,children:P}),e[18]=y,e[19]=k,e[20]=P,e[21]=T):T=e[21];let j;return e[22]!==A||e[23]!==T?(j=a.jsx(_s,{loading:A,children:T}),e[22]=A,e[23]=T,e[24]=j):j=e[24],j};function cMt(){const t=he.c(73),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),{pageSize:s,pageSizeOptions:i,changePageSize:o,changePage:l,getRowsCount:c,getPage:u}=Na(),d=zn(),{submit:f,state:p}=gr();let m;t[0]!==r||t[1]!==e?(m=()=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:pMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==r||t[4]!==e?(_=le=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:()=>a.jsx(tme,{id:le}),closeOnBackdropClick:!1})},t[3]=r,t[4]=e,t[5]=_):_=t[5];const g=_;let y;t[6]!==e||t[7]!==n||t[8]!==f?(y=le=>{n({text:e.formatMessage({id:"udm_plmns_prefixes.actions.delete.confirm"},{prefix:le}),onConfirm:()=>{f({prefix:le},{method:"POST",encType:"application/json",action:"delete"})}})},t[6]=e,t[7]=n,t[8]=f,t[9]=y):y=t[9];const b=y;let x;t[10]!==e?(x=e.formatMessage({id:"udm_plmns_prefixes.prefix"}),t[10]=e,t[11]=x):x=t[11];let w;t[12]!==x?(w={key:"prefix",label:x},t[12]=x,t[13]=w):w=t[13];let C;t[14]!==e?(C=e.formatMessage({id:"udm_plmns_prefixes.mcc"}),t[14]=e,t[15]=C):C=t[15];let k;t[16]!==C?(k={key:"mcc",label:C},t[16]=C,t[17]=k):k=t[17];let A;t[18]!==e?(A=e.formatMessage({id:"udm_plmns_prefixes.mnc"}),t[18]=e,t[19]=A):A=t[19];let P;t[20]!==A?(P={key:"mnc",label:A},t[20]=A,t[21]=P):P=t[21];let T;t[22]!==e?(T=e.formatMessage({id:"udm_plmns_prefixes.created_at"}),t[22]=e,t[23]=T):T=t[23];let j;t[24]!==T?(j={key:"created_at",label:T,cellRender:fMt},t[24]=T,t[25]=j):j=t[25];let R;t[26]!==e?(R=e.formatMessage({id:"udm_plmns_prefixes.modified_at"}),t[26]=e,t[27]=R):R=t[27];let D;t[28]!==R?(D={key:"modified_at",label:R,cellRender:dMt},t[28]=R,t[29]=D):D=t[29];let O;t[30]!==j||t[31]!==D||t[32]!==w||t[33]!==k||t[34]!==P?(O=[w,k,P,j,D],t[30]=j,t[31]=D,t[32]=w,t[33]=k,t[34]=P,t[35]=O):O=t[35];const N=O;let F;t[36]===Symbol.for("react.memo_cache_sentinel")?(F=_l(ie.provisioning),t[36]=F):F=t[36];let U;t[37]!==g?(U=le=>{const{prefix:ee}=le;return g(ee)},t[37]=g,t[38]=U):U=t[38];const z=p!=="idle";let H;t[39]!==U||t[40]!==z?(H={...F,onClick:U,disabled:z},t[39]=U,t[40]=z,t[41]=H):H=t[41];let W;t[42]!==e?(W=e.formatMessage({id:"common.delete"}),t[42]=e,t[43]=W):W=t[43];let K;t[44]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(ge.Trash,{}),t[44]=K):K=t[44];let q;t[45]!==b?(q=le=>{const{prefix:ee}=le;return b(ee)},t[45]=b,t[46]=q):q=t[46];let X;t[47]!==p?(X=p!=="idle"||!Ue(ie.provisioning),t[47]=p,t[48]=X):X=t[48];let Q;t[49]!==W||t[50]!==q||t[51]!==X?(Q={label:W,icon:K,onClick:q,disabled:X},t[49]=W,t[50]=q,t[51]=X,t[52]=Q):Q=t[52];let Y;t[53]!==H||t[54]!==Q?(Y=[H,Q],t[53]=H,t[54]=Q,t[55]=Y):Y=t[55];const Z=Y;let re;t[56]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[56]=re):re=t[56];let fe;t[57]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),t[57]=fe):fe=t[57];let de;t[58]!==l||t[59]!==o||t[60]!==N||t[61]!==u||t[62]!==c||t[63]!==h||t[64]!==e||t[65]!==s||t[66]!==i||t[67]!==Z||t[68]!==p?(de=le=>{const{data:ee,metadata:J}=le;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:h,disabled:p!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"prefix",columns:N,data:ee,page:u(J),labelDisplayedRows:uMt,rowsCount:c(J),rowsPerPage:s,onRowsPerPageChange:o,rowsPerPageOptions:i,rowKey:"mcc",stickyRowActions:!0,onPageChange:l(J),rowActions:Z})]})},t[58]=l,t[59]=o,t[60]=N,t[61]=u,t[62]=c,t[63]=h,t[64]=e,t[65]=s,t[66]=i,t[67]=Z,t[68]=p,t[69]=de):de=t[69];let se;return t[70]!==d.udrPlmnPrefixList||t[71]!==de?(se=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:d.udrPlmnPrefixList,errorElement:fe,children:de})}),t[70]=d.udrPlmnPrefixList,t[71]=de,t[72]=se):se=t[72],se}function uMt(){return""}function dMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function fMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function pMt(){return a.jsx(tme,{})}async function mMt({request:t}){const e=await t.json(),r=await Alt(e);return xt(r)?Ar():Nt(),Ft(r)}async function hMt({request:t}){const r=(await t.formData()).getAll("files"),n=await klt(r[0]);return xt(n)||Nt(),Ft(n)}async function gMt({request:t}){const{id:e}=await t.json(),r=await Mlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function _Mt({request:t}){const{mcc:e,mnc:r,prefix:n}=await t.json(),s=await Tlt({mcc:e,mnc:r,prefix:n});return xt(s)?Ar():Nt(),Ft(s)}async function vMt({request:t}){const{mcc:e,mnc:r,prefix:n}=await t.json(),s=await Elt(n,{mcc:e,mnc:r});return xt(s)?Ar():Nt(),Ft(s)}async function yMt({request:t}){const{prefix:e}=await t.json(),r=await Rlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function bMt(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{autorules:Clt({pageSize:+e,paginationToken:r})}})}const xMt=async t=>{const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udmPlmnPrefix:Plt(e)}}):null},SMt=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPlmnPrefixList:jlt({pageSize:+e,...r&&{paginationToken:r}})}})},wMt=Pr(),CMt={path:"udm",handle:vr({labelIntl:"route.udm",icon:a.jsx(ge.UDM,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UDM,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.udm.status",to:$.urls.udmStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:wMt.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.UDM})]},io(ue.UDM),{path:"home-network-keys",handle:vr({labelIntl:"route.udm.home-network-keys",to:$.urls.udmHomeNetworkKeys}),loader:bMt,element:a.jsx(nMt,{}),children:[{action:mMt,path:"create",loader:()=>rt("..")},{action:gMt,path:"delete",loader:()=>rt("..")},{action:hMt,path:"upload",loader:()=>rt("..")}]},{path:"plmn-prefixes",handle:vr({labelIntl:"route.udm.plmn-prefixes",to:"/udm/plmn-prefixes"}),loader:SMt,element:a.jsx(cMt,{}),children:[{path:":id",loader:xMt,element:a.jsx(ur,{to:"/udm/plmn-prefixes",replace:!0})},{path:"create",action:_Mt,loader:()=>rt("..")},{path:"update",action:vMt,loader:()=>rt("..")},{path:"delete",action:yMt,loader:()=>rt("..")}]}]}]};var rh=(t=>(t.REPOSITORY_DATA="REPOSITORY_DATA",t.IMSI="IMSI",t.IMS_PUBLIC_IDENTITY="IMS_PUBLIC_IDENTITY",t.SMS_REGISTRATION_INFO="SMS_REGISTRATION_INFO",t))(rh||{}),Cu=(t=>(t.READ="READ",t.WRITE="WRITE",t.SUBSCRIBE="SUBSCRIBE",t))(Cu||{});const rme=["REPOSITORY_DATA","IMSI","IMS_PUBLIC_IDENTITY","SMS_REGISTRATION_INFO"],nme=t=>{const e=he.c(31),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i,dataFetcher:o}=Ys(),{data:l,state:c,submit:u}=i,{data:d,state:f,load:p}=o,m=r!==void 0;let h;e[0]!==u||e[1]!==r||e[2]!==m?(h=T=>{const{application_server:j,data_reference:R,permissions:D}=T;if(m){u({id:r,permissions:D},{action:`${$.urls.udrImsApplicationServerAcls}/update`,method:"POST",encType:"application/json"});return}u({application_server:j,data_reference:R,permissions:D},{action:`${$.urls.udrImsApplicationServerAcls}/create`,method:"POST",encType:"application/json"})},e[0]=u,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!d){let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N={application_server:"",data_reference:rh.REPOSITORY_DATA,permissions:[Cu.READ]},e[4]=N):N=e[4],g=N;break e}const T=d?.udrImsApplicationServerAcl,j=T?.application_server||"",R=T.data_reference||rh.REPOSITORY_DATA;let D;e[5]!==T.permissions?(D=T.permissions||[Cu.READ],e[5]=T.permissions,e[6]=D):D=e[6];let O;e[7]!==j||e[8]!==R||e[9]!==D?(O={application_server:j,data_reference:R,permissions:D},e[7]=j,e[8]=R,e[9]=D,e[10]=O):O=e[10],g=O}const y=g,b=AMt;let x;e[11]!==n?(x=dr().shape({application_server:We().required(n.formatMessage({id:"udr_ims_application_server_acls.form.error.required"})),data_reference:We().required(n.formatMessage({id:"udr_ims_application_server_acls.form.error.required"})),permissions:yr().when("data_reference",T=>yr().of(We()).required().min(1).test({name:"wrong-array-values",message:n.formatMessage({id:"udr_ims_application_server_acls.form.error.permissions"},{permissions:b(T)?.join(", ")}),test:j=>!j||j?.length===0?!1:j.every(R=>new RegExp(b(T)?.join("|")).test(R))}))}),e[11]=n,e[12]=x):x=e[12];const w=x;let C,k;e[13]!==r||e[14]!==m||e[15]!==p?(C=()=>{m&&p(`${$.urls.udrImsApplicationServerAcls}/${r}`)},k=[r,m,p],e[13]=r,e[14]=m,e[15]=p,e[16]=C,e[17]=k):(C=e[16],k=e[17]),I.useEffect(C,k);let A;e[18]!==s||e[19]!==l||e[20]!==c||e[21]!==d||e[22]!==n||e[23]!==m||e[24]!==f?(A=T=>{const{values:j}=T;return a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!d,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"application_server",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.application_server"}),size:"small",error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle"||m})}}),a.jsx(Ke,{name:"data_reference",children:R=>{const{field:D,meta:O,form:N}=R,{setFieldValue:F}=N;return a.jsx(rn,{value:D.value,name:D.name,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.data_reference"}),multiple:!1,size:"small",options:[...rme],onChange:(U,z)=>{F(D.name,z||"")},error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle"||m,fullWidth:!0})}}),a.jsx(Ke,{name:"permissions",children:R=>{const{field:D,meta:O,form:N}=R,{setFieldValue:F}=N;return a.jsx(rn,{name:D.name,value:D.value,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.permissions"}),multiple:!0,size:"small",options:b(j.data_reference),onChange:(U,z)=>{F(D.name,[...new Set(z.map(kMt))])},error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:l})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.cancel"}),onClick:()=>s(),variant:"outlined",disabled:f!=="idle"||c!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{text:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.save"}),type:"submit",disabled:f!=="idle"||c!=="idle"||!Ue(ie.provisioning)})]})})]})},e[18]=s,e[19]=l,e[20]=c,e[21]=d,e[22]=n,e[23]=m,e[24]=f,e[25]=A):A=e[25];let P;return e[26]!==_||e[27]!==y||e[28]!==A||e[29]!==w?(P=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:w,onSubmit:_,children:A}),e[26]=_,e[27]=y,e[28]=A,e[29]=w,e[30]=P):P=e[30],P};function AMt(t){switch(t){case rh.SMS_REGISTRATION_INFO:return[Cu.READ,Cu.WRITE];case rh.REPOSITORY_DATA:return[Cu.READ,Cu.WRITE,Cu.SUBSCRIBE];case rh.IMS_PUBLIC_IDENTITY:return[Cu.READ];case rh.IMSI:return[Cu.READ]}}function kMt(t){return t.trim()}const MMt=()=>{const t=he.c(20),e=Ye(),[r,n]=hl(),{drawerClose:s}=Jt();let i;t[0]!==s||t[1]!==n?(i=h=>{n(()=>{const _=new URLSearchParams;return h.application_server_icont&&_.set("applicationServer",h.application_server_icont),h.data_reference_eq&&_.set("dataReferenceEq",h.data_reference_eq),_},{replace:!0}),s()},t[0]=s,t[1]=n,t[2]=i):i=t[2];const o=i;let l;t[3]!==s||t[4]!==n?(l=()=>{n(PMt,{replace:!0}),s()},t[3]=s,t[4]=n,t[5]=l):l=t[5];const c=l;let u;t[6]!==r?(u=r.get("applicationServer")??"",t[6]=r,t[7]=u):u=t[7];let d;t[8]!==r?(d=r.get("dataReferenceEq")??"",t[8]=r,t[9]=d):d=t[9];let f;t[10]!==u||t[11]!==d?(f={application_server_icont:u,data_reference_eq:d},t[10]=u,t[11]=d,t[12]=f):f=t[12];let p;t[13]!==e?(p=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsx(te,{spacing:2,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"application_server_icont",children:h=>{const{field:_}=h;return a.jsx(dt,{..._,value:_.value||"",label:e.formatMessage({id:"udr_ims_application_server_acls.filters.application_server_icont"}),size:"small"})}}),a.jsx(Ke,{name:"data_reference_eq",children:h=>{const{field:_,form:g}=h,{setFieldValue:y}=g;return a.jsx(rn,{value:_.value,name:_.name,label:e.formatMessage({id:"udr_ims_application_server_acls.filters.data_reference_eq"}),multiple:!1,size:"small",freeSolo:!1,options:["",...rme],onChange:(b,x)=>{y(_.name,x||"")},fullWidth:!0})}})]})})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-application-server-button-reset",text:e.formatMessage({id:"udr_ims_application_server_acls.filters.buttons.reset"}),disabled:!as(ie.provisioning),variant:"outlined",type:"reset"}),a.jsx(Ze,{"data-testid":"filter-application-server-button-apply",text:e.formatMessage({id:"udr_ims_application_server_acls.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[13]=e,t[14]=p):p=t[14];let m;return t[15]!==c||t[16]!==o||t[17]!==f||t[18]!==p?(m=a.jsx(Wr,{initialValues:f,onSubmit:o,onReset:c,children:p}),t[15]=c,t[16]=o,t[17]=f,t[18]=p,t[19]=m):m=t[19],m};function PMt(){return new URLSearchParams}const jMt=()=>{const t=he.c(28),e=Ye(),{dialogOpen:r,drawerOpen:n}=Jt(),s=u7();let i;t[0]!==r||t[1]!==e?(i=()=>{r({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.new_ims_application_server_acl"}),content:TMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=i):i=t[2];const o=i;let l;t[3]!==n||t[4]!==e?(l=()=>{n({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.filters"}),content:EMt})},t[3]=n,t[4]=e,t[5]=l):l=t[5];const c=l;let u;t[6]!==s?(u=d7({filter:s}),t[6]=s,t[7]=u):u=t[7];const d=!u;let f;t[8]!==e?(f=e.formatMessage({id:"udr_ims_application_server_acls.toolbar.filters"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ge.Filter,{}),t[10]=p):p=t[10];let m;t[11]===Symbol.for("react.memo_cache_sentinel")?(m={width:"100%"},t[11]=m):m=t[11];let h;t[12]!==c||t[13]!==f?(h=a.jsx(Ze,{"data-testid":"toolbar-button-filters",variant:"outlined",text:f,startIcon:p,onClick:c,sx:m}),t[12]=c,t[13]=f,t[14]=h):h=t[14];let _;t[15]!==d||t[16]!==h?(_=a.jsx(Iv,{variant:"dot",invisible:d,children:h}),t[15]=d,t[16]=h,t[17]=_):_=t[17];let g;t[18]!==e?(g=e.formatMessage({id:"common.new"}),t[18]=e,t[19]=g):g=t[19];let y;t[20]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ge.Add,{}),t[20]=y):y=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=Ue(ie.provisioning),t[21]=b):b=t[21];let x;t[22]!==o||t[23]!==g?(x=a.jsx(Ze,{text:g,startIcon:y,onClick:o,disabled:!b}),t[22]=o,t[23]=g,t[24]=x):x=t[24];let w;return t[25]!==x||t[26]!==_?(w=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[_,x]}),t[25]=x,t[26]=_,t[27]=w):w=t[27],w};function TMt(){return a.jsx(nme,{})}function EMt(){return a.jsx(MMt,{})}const RMt=()=>{const t=he.c(63),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{dialogOpen:o}=Jt();let l;t[0]!==o||t[1]!==e?(l=X=>{X&&o({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.new_ims_application_server_acl"}),content:()=>a.jsx(nme,{id:X}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=l):l=t[2];const c=l;let u;t[3]!==i||t[4]!==e||t[5]!==r?(u=async X=>{const{id:Q}=X;Q&&r({text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:Q},{action:`${$.urls.udrImsApplicationServerAcls}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=r,t[6]=u):u=t[6];const d=u;let f;t[7]!==e?(f=e.formatMessage({id:"udr_ims_application_server_acls.table.header.application_server"}),t[7]=e,t[8]=f):f=t[8];let p;t[9]!==f?(p={key:"application_server",label:f},t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e?(m=e.formatMessage({id:"udr_ims_application_server_acls.table.header.data_reference"}),t[11]=e,t[12]=m):m=t[12];let h;t[13]!==m?(h={key:"data_reference",label:m},t[13]=m,t[14]=h):h=t[14];let _;t[15]!==e?(_=e.formatMessage({id:"udr_ims_application_server_acls.table.header.permissions"}),t[15]=e,t[16]=_):_=t[16];let g;t[17]!==_?(g={key:"permissions",label:_,cellRender:DMt},t[17]=_,t[18]=g):g=t[18];let y;t[19]!==e?(y=e.formatMessage({id:"udr_ims_application_server_acls.table.header.created_at"}),t[19]=e,t[20]=y):y=t[20];let b;t[21]!==y?(b={key:"created_at",label:y,cellRender:$Mt},t[21]=y,t[22]=b):b=t[22];let x;t[23]!==e?(x=e.formatMessage({id:"udr_ims_application_server_acls.table.header.modified_at"}),t[23]=e,t[24]=x):x=t[24];let w;t[25]!==x?(w={key:"modified_at",label:x,cellRender:OMt},t[25]=x,t[26]=w):w=t[26];let C;t[27]!==w||t[28]!==p||t[29]!==h||t[30]!==g||t[31]!==b?(C=[p,h,g,b,w],t[27]=w,t[28]=p,t[29]=h,t[30]=g,t[31]=b,t[32]=C):C=t[32];const k=C;let A;t[33]===Symbol.for("react.memo_cache_sentinel")?(A=_l(ie.provisioning),t[33]=A):A=t[33];const P=s.state!=="idle"||i.state!=="idle";let T;t[34]!==c?(T=X=>{const{id:Q}=X;return c(Q)},t[34]=c,t[35]=T):T=t[35];let j;t[36]!==P||t[37]!==T?(j={...A,disabled:P,onClick:T},t[36]=P,t[37]=T,t[38]=j):j=t[38];let R;t[39]!==e?(R=e.formatMessage({id:"udr_ims_application_server_acls.actions.delete"}),t[39]=e,t[40]=R):R=t[40];let D;t[41]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(ge.Trash,{}),t[41]=D):D=t[41];let O;t[42]!==i.state||t[43]!==s.state?(O=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[42]=i.state,t[43]=s.state,t[44]=O):O=t[44];let N;t[45]!==d?(N=X=>void d(X),t[45]=d,t[46]=N):N=t[46];let F;t[47]!==R||t[48]!==O||t[49]!==N?(F={label:R,icon:D,disabled:O,onClick:N},t[47]=R,t[48]=O,t[49]=N,t[50]=F):F=t[50];let U;t[51]!==j||t[52]!==F?(U=[j,F],t[51]=j,t[52]=F,t[53]=U):U=t[53];const z=U;let H;t[54]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[54]=H):H=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Tr,{}),t[55]=W):W=t[55];let K;t[56]!==k||t[57]!==i.state||t[58]!==z?(K=X=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(jMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:k,data:X,hidePagination:!0,labelDisplayedRows:LMt,rowsPerPageOptions:$.pageSizeOptions,rowKey:"id",rowActions:z,stickyRowActions:!0,page:0,rowsCount:X?.length,rowsPerPage:X?.length})]}),t[56]=k,t[57]=i.state,t[58]=z,t[59]=K):K=t[59];let q;return t[60]!==n.udrImsApplicationServerAclList||t[61]!==K?(q=a.jsx(I.Suspense,{fallback:H,children:a.jsx(Qt,{resolve:n.udrImsApplicationServerAclList,errorElement:W,children:K})}),t[60]=n.udrImsApplicationServerAclList,t[61]=K,t[62]=q):q=t[62],q};function IMt(t){return{id:t,label:t}}function DMt(t){const{permissions:e}=t;return a.jsx(ks,{items:e.map(IMt),size:"small"})}function $Mt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function OMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function LMt(){return""}const NMt=Pr();async function FMt({request:t}){const e=await t.json(),r=await Qlt(e);return xt(r)||(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}async function UMt({request:t}){const e=await t.json(),r=await Zlt(e);return xt(r)||(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}async function BMt({request:t}){const{id:e}=await t.json(),r=await Xlt(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}const zMt=dr().shape({data:We().required(NMt.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form_errors.required"})),description:We().strict(!0).matches(new RegExp($.regex.descriptionRm))}),sme=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,state:c,load:u}=i,{data:d,state:f,submit:p}=o,m=r!==void 0;let h;e[0]!==p||e[1]!==r||e[2]!==m?(h=k=>{const{data:A,description:P}=k;if(m){p({id:r,data:A,...!!P&&{description:P}},{action:`${$.urls.udrImsInitialFilters}/update`,method:"POST",encType:"application/json"});return}p({data:A,...!!P&&{description:P}},{action:`${$.urls.udrImsInitialFilters}/create`,method:"POST",encType:"application/json"})},e[0]=p,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!l){let j;e[4]===Symbol.for("react.memo_cache_sentinel")?(j={description:"",data:""},e[4]=j):j=e[4],g=j;break e}const k=l.udrImsInitialFilter,A=k?.description??"",P=k?.data??"";let T;e[5]!==A||e[6]!==P?(T={description:A,data:P},e[5]=A,e[6]=P,e[7]=T):T=e[7],g=T}const y=g;let b,x;e[8]!==r||e[9]!==m||e[10]!==u?(b=()=>{m&&u(`${$.urls.udrImsInitialFilters}/${r}`)},x=[r,m,u],e[8]=r,e[9]=m,e[10]=u,e[11]=b,e[12]=x):(b=e[11],x=e[12]),I.useEffect(b,x);let w;e[13]!==s||e[14]!==d||e[15]!==f||e[16]!==l||e[17]!==n||e[18]!==m||e[19]!==c?(w=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!l,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form.description"}),size:"small",error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle"})}}),a.jsx(Ke,{name:"data",children:k=>{const{field:A,meta:P,form:T}=k,{setFieldValue:j}=T;return a.jsx(Fv,{value:A.value,label:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form.data"}),error:P.error,language:"xml",onChange:R=>{j(A.name,R)}})}}),a.jsx(Xr,{data:d})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-initial-filter-button-cancel",text:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.cancel"}),variant:"outlined",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[13]=s,e[14]=d,e[15]=f,e[16]=l,e[17]=n,e[18]=m,e[19]=c,e[20]=w):w=e[20];let C;return e[21]!==_||e[22]!==y||e[23]!==w?(C=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:zMt,onSubmit:_,children:w}),e[21]=_,e[22]=y,e[23]=w,e[24]=C):C=e[24],C},qMt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udr_ims_initial_filters.toolbar.new_ims_initial_filter"}),fullScreen:!0,content:VMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.provisioning),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function VMt(){return a.jsx(sme,{})}const HMt=()=>{const t=he.c(62),e=Ye(),r=Gr(),{openConfirmDialog:n}=di(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=Z=>{Z&&o({title:e.formatMessage({id:"udr_ims_initial_filters.toolbar.new_ims_initial_filter"}),fullScreen:!0,content:()=>a.jsx(sme,{id:Z}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==n?(_=Z=>{const{id:re}=Z;re&&n({text:e.formatMessage({id:"udr_ims_initial_filters.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:re},{action:`${$.urls.udrImsInitialFilters}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=n,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_ims_initial_filters.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:GMt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_ims_initial_filters.table.header.description"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"description",label:x,cellRender:WMt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_ims_initial_filters.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:YMt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_ims_initial_filters.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:KMt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l(ie.provisioning),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=Z=>{const{id:re}=Z;return h(re)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_ims_initial_filters.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==i.state||t[38]!==s.state?(z=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[37]=i.state,t[38]=s.state,t[39]=z):z=t[39];let H;t[40]!==g||t[41]!==F||t[42]!==z?(H={label:F,icon:U,disabled:z,onClick:g},t[40]=g,t[41]=F,t[42]=z,t[43]=H):H=t[43];let W;t[44]!==N||t[45]!==H?(W=[N,H],t[44]=N,t[45]=H,t[46]=W):W=t[46];const K=W;let q;t[47]===Symbol.for("react.memo_cache_sentinel")?(q=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[47]=q):q=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Tr,{}),t[48]=X):X=t[48];let Q;t[49]!==d||t[50]!==u||t[51]!==j||t[52]!==i.state||t[53]!==p||t[54]!==f||t[55]!==l||t[56]!==c||t[57]!==K?(Q=Z=>{const{data:re,metadata:fe}=Z;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(qMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:re,page:p(fe),labelDisplayedRows:QMt,rowsCount:f(fe),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:K,stickyRowActions:!0,onPageChange:d(fe)})]})},t[49]=d,t[50]=u,t[51]=j,t[52]=i.state,t[53]=p,t[54]=f,t[55]=l,t[56]=c,t[57]=K,t[58]=Q):Q=t[58];let Y;return t[59]!==r.udrImsInitialFilterList||t[60]!==Q?(Y=a.jsx(I.Suspense,{fallback:q,children:a.jsx(Qt,{resolve:r.udrImsInitialFilterList,errorElement:X,children:Q})}),t[59]=r.udrImsInitialFilterList,t[60]=Q,t[61]=Y):Y=t[61],Y};function GMt(t){const{id:e}=t;return a.jsx(Ap,{text:e||""})}function WMt(t){const{description:e}=t;return a.jsx(_e,{type:"body2",children:e})}function YMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function KMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function QMt(){return""}const Rm=t=>{const e=he.c(10),{translationKey:r,value:n}=t,s=Ye();let i;e[0]!==s||e[1]!==r?(i=s.formatMessage({id:r}),e[0]=s,e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=a.jsx(_e,{fontWeight:"600",children:i}),e[3]=i,e[4]=o):o=e[4];const l=n??"-";let c;e[5]!==l?(c=a.jsx(_e,{children:l}),e[5]=l,e[6]=c):c=e[6];let u;return e[7]!==o||e[8]!==c?(u=a.jsxs(te,{spacing:0,children:[o,c]}),e[7]=o,e[8]=c,e[9]=u):u=e[9],u},ZMt=t=>{const e=he.c(16),{name:r}=t,n=Ye(),{data:s,state:i,load:o}=gr();let l;e:{if(s&&"udrImsPrivateIdentityPrivateStatus"in s){l=s.udrImsPrivateIdentityPrivateStatus;break e}l=null}const c=l;let u,d;e[0]!==o||e[1]!==r?(u=()=>{o(`${$.urls.udrImsPrivateIdentities}/private-status/${r}`)},d=[r,o],e[0]=o,e[1]=r,e[2]=u,e[3]=d):(u=e[2],d=e[3]),I.useEffect(u,d);const f=i==="loading";let p;e[4]!==n||e[5]!==c?(p=!c&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),e[4]=n,e[5]=c,e[6]=p):p=e[6];let m;e[7]!==n||e[8]!==c?(m=!!c&&a.jsxs(te,{spacing:2,children:[!c.location?.ip_sm_gw&&!c.location?.scscf&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),!!c.location?.ip_sm_gw&&a.jsx(pr,{title:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Rm,{value:c.location.ip_sm_gw.host,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.host"}),a.jsx(Rm,{value:c.location.ip_sm_gw.realm,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.realm"}),a.jsx(Rm,{value:Mr(c.location.ip_sm_gw.registered_at),translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.registered_at"})]})})}),!!c.location?.scscf&&a.jsx(pr,{title:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Rm,{value:c.location.scscf.host,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.host"}),a.jsx(Rm,{value:c.location.scscf.realm,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.realm"}),a.jsx(Rm,{value:c.location.scscf.name,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.name"}),a.jsx(Rm,{value:Mr(c.location.scscf.modified_at),translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.modified_at"})]})})})]}),e[7]=n,e[8]=c,e[9]=m):m=e[9];let h;e[10]!==p||e[11]!==m?(h=a.jsxs(a.Fragment,{children:[p,m]}),e[10]=p,e[11]=m,e[12]=h):h=e[12];let _;return e[13]!==f||e[14]!==h?(_=a.jsx(_s,{loading:f,children:h}),e[13]=f,e[14]=h,e[15]=_):_=e[15],_},XMt=t=>{const e=he.c(16),{name:r}=t,n=Ye(),{data:s,state:i,load:o}=gr();let l;e:{if(s&&"udrImsPrivateIdentityPublicStatus"in s){l=s.udrImsPrivateIdentityPublicStatus;break e}l=null}const c=l;let u,d;e[0]!==o||e[1]!==r?(u=()=>{o(`${$.urls.udrImsPrivateIdentities}/public-status/${r}`)},d=[r,o],e[0]=o,e[1]=r,e[2]=u,e[3]=d):(u=e[2],d=e[3]),I.useEffect(u,d);const f=i==="loading";let p;e[4]!==n||e[5]!==c?(p=!c&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),e[4]=n,e[5]=c,e[6]=p):p=e[6];let m;e[7]!==n||e[8]!==c?(m=!!c&&a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.status"})}),a.jsxs(_e,{children:[c.status," ",c.pending?`(${n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.pending"})})`:""]})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.modified_at"})}),a.jsx(_e,{children:Mr(c.modified_at)})]})]}),e[7]=n,e[8]=c,e[9]=m):m=e[9];let h;e[10]!==p||e[11]!==m?(h=a.jsxs(a.Fragment,{children:[p,m]}),e[10]=p,e[11]=m,e[12]=h):h=e[12];let _;return e[13]!==f||e[14]!==h?(_=a.jsx(_s,{loading:f,children:h}),e[13]=f,e[14]=h,e[15]=_):_=e[15],_},JMt=t=>{const e=he.c(29),{row:r,onShowPublicStatusClick:n,isLoading:s}=t,i=s===void 0?!1:s,o=Ye(),l=i?"0.5":"1";let c;e[0]!==l?(c={opacity:l},e[0]=l,e[1]=c):c=e[1];let u;e[2]!==o||e[3]!==r.server_name?(u=r.server_name&&a.jsxs(a.Fragment,{children:[a.jsx(Is,{size:{xs:12,sm:2},children:a.jsx(_e,{fontWeight:"600",children:o.formatMessage({id:"udr_ims_private_identities.table.value.server_name"})})}),a.jsx(Is,{size:{xs:12,sm:10},children:r.server_name})]}),e[2]=o,e[3]=r.server_name,e[4]=u):u=e[4];let d;e[5]!==o||e[6]!==r.sip_digest_provisioned?(d=r.sip_digest_provisioned!==void 0&&a.jsxs(a.Fragment,{children:[a.jsx(Is,{size:{xs:12,sm:2},children:a.jsx(_e,{fontWeight:"600",children:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned"})})}),a.jsx(Is,{size:{xs:12,sm:10},children:r.sip_digest_provisioned?a.jsx(bi,{label:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned_true"}),status:nn.SUCCESS}):a.jsx(bi,{label:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned_false"}),status:nn.ERROR})})]}),e[5]=o,e[6]=r.sip_digest_provisioned,e[7]=d):d=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={xs:12,sm:2},e[8]=f):f=e[8];let p;e[9]!==o?(p=o.formatMessage({id:"udr_ims_private_identities.table.value.registration_sets"}),e[9]=o,e[10]=p):p=e[10];let m;e[11]!==p?(m=a.jsx(Is,{size:f,children:a.jsx(_e,{fontWeight:"600",children:p})}),e[11]=p,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h={xs:12,sm:10},e[13]=h):h=e[13];let _;if(e[14]!==o||e[15]!==n||e[16]!==r.registration_sets){let b;e[18]!==o||e[19]!==n?(b=x=>a.jsx(pr,{folder:!0,dense:!0,title:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identities"}),elevation:2,children:a.jsxs(Kt,{children:[x.description&&a.jsx(_e,{type:"body2",color:"text.secondary",children:x.description}),a.jsx(al,{children:x.public_identities.map(w=>a.jsx(Is,{size:{xs:12,md:6,xl:4},sx:{position:"relative"},children:a.jsx(pr,{folder:!0,elevation:4,sx:{flex:"1 1 auto"},children:a.jsxs(Kt,{sx:{position:"relative"},children:[a.jsx("div",{title:o.formatMessage({id:"udr_ims_private_identities.table.status"}),style:{position:"absolute",top:3,right:3},children:a.jsx(Zr,{onClick:()=>n(w.name),children:a.jsx(ge.Info,{})})}),a.jsxs(te,{spacing:1,children:[w.barred?a.jsx(bi,{status:nn.ERROR,label:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_barred"})}):a.jsx(bi,{status:nn.SUCCESS,label:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_authorized"})}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_name"})}),a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:w.name})]}),w.service_profile&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.service_profile"})}),a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:w.service_profile})]}),!!w.application_servers_profiles?.length&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.application_servers_profiles"})}),a.jsx(ks,{items:w.application_servers_profiles.map(ePt)})]})]})]})})},w.name))})]})},x.description),e[18]=o,e[19]=n,e[20]=b):b=e[20],_=r.registration_sets.map(b),e[14]=o,e[15]=n,e[16]=r.registration_sets,e[17]=_}else _=e[17];let g;e[21]!==_?(g=a.jsx(Is,{size:h,children:_}),e[21]=_,e[22]=g):g=e[22];let y;return e[23]!==g||e[24]!==c||e[25]!==u||e[26]!==d||e[27]!==m?(y=a.jsxs(al,{sx:c,children:[u,d,m,g]}),e[23]=g,e[24]=c,e[25]=u,e[26]=d,e[27]=m,e[28]=y):y=e[28],y};function ePt(t){return{label:t.service_indication,id:t.service_indication}}const ea=Pr();var Gm=(t=>(t.DISTINCT_PUI="DISTINCT_PUI",t.PSI="PSI",t))(Gm||{}),Td=(t=>(t.VOLTE="VOLTE",t.PSI="PSI",t))(Td||{});const tPt=Object.keys(Td),rPt=Object.keys(Gm),nC={registration_sets:[],server_name:"",status:"ACTIVE",supi:"",type:"PSI"},Bee=(t,e)=>t.map(({public_identities:r,description:n})=>({_uuid:gn(),description:n??"",public_identities:r.map(({barred:s,name:i,service_profile:o,application_servers_profiles:l})=>({_uuid:gn(),barred:s,name:i,...e&&o&&{service_profile:o},...l&&{application_servers_profiles:l}}))})),zee=(t,e)=>t.map(({public_identities:r,description:n})=>({description:n&&n.length>0?n:null,public_identities:r.map(({barred:s,name:i,service_profile:o,application_servers_profiles:l})=>({barred:s,name:i,...l&&{application_servers_profiles:l},...e&&o&&{service_profile:o}}))})),nPt=t=>{if(!t)return nC;switch(t.type){case"PSI":{const{registration_sets:e,status:r,type:n,supi:s,server_name:i}=t;return{...nC,server_name:i,status:r,registration_sets:Bee(e,!1),supi:s,type:n}}case"DISTINCT_PUI":{const{registration_sets:e,status:r,supi:n,type:s,sip_digest_provisioned:i}=t;return{...nC,registration_sets:Bee(e,!0),status:r,supi:n,type:s,isOverridingKeys:!1,sip_digest_provisioned:i}}}},qee=({values:t,isEditing:e})=>{switch(t.type){case"PSI":{const{registration_sets:r,status:n,type:s,supi:i,server_name:o}=t;return{...!e&&{supi:i},...!e&&{type:s},status:n,registration_sets:zee(r,!1),server_name:o}}case"DISTINCT_PUI":{const{isOverridingKeys:r,registration_sets:n,status:s,supi:i,type:o,sip_digest_password:l,sip_digest_realm:c}=t;return{...!e&&{supi:i},...!e&&{type:o},status:s,isOverridingKeys:r,registration_sets:zee(n,!0),...l&&c&&r&&{sip_digest:{password:l,realm:c}}}}}},sPt=dr().shape({supi:We().strict(!0).required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"})).when("type",(t,e)=>{switch(t){case"PSI":return e.strict(!0).matches(new RegExp($.regex.nai));case"VOLTE":return e.strict(!0).matches(new RegExp($.regex.imsi))}}),type:We().required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"})),service_profile:We().strict(!0).when("type",(t,e)=>{switch(t){case"PSI":return e;case"VOLTE":return e.strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))}}),public_identity:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"}));case"VOLTE":return e}}),server_name:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"}));case"VOLTE":return e}})}),iPt=dr().shape({supi:We().strict(!0).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"})).when("type",(t,e)=>{switch(t){case"PSI":return e.strict(!0).matches(new RegExp($.regex.nai));case"DISTINCT_PUI":return e.strict(!0).matches(new RegExp(`${$.regex.imsi}|${$.regex.nai}`))}}),type:We().required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"})),status:We(),registration_sets:yr().when("type",t=>{switch(t){case"PSI":return yr(dr({description:We(),public_identities:yr().of(dr().shape({barred:li(),name:We().required()})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}));case"DISTINCT_PUI":return yr(dr({description:We(),public_identities:yr().of(dr().shape({barred:li(),name:We().required(),service_profile:We().matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}}),sip_digest_password:We().when("isOverridingKeys",(t,e)=>{if(t)return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}),sip_digest_realm:We().when("isOverridingKeys",(t,e)=>{if(t)return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}),server_name:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}));case"DISTINCT_PUI":return e}})}).test("sip_digest",`${ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.sip_digest"})}`,function({sip_digest_password:t,sip_digest_realm:e,type:r}){return r!=="DISTINCT_PUI"?!0:!!t&&t.length>0&&!e||!!e&&e.length>0&&!t?this.createError({path:"sip_digest",message:`${ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.sip_digest"})}`}):!0}),oPt=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=h=>{let _;e:switch(h.type){case Td.PSI:{const{type:g,public_identity:y,supi:b,server_name:x}=h;_={type:g,public_identity:y,supi:b,server_name:x};break e}case Td.VOLTE:{const{type:g,supi:y,service_profile:b}=h;_={type:g,supi:y,...b&&{service_profile:b}}}}o(_,{action:`${$.urls.udrImsPrivateIdentities}/create-basic`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={public_identity:"",server_name:"",supi:"",type:Td.PSI,service_profile:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==r?(f=()=>r(),t[3]=r,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==i||t[7]!==e?(p=h=>{const{values:_}=h;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"type",children:g=>{const{field:y,meta:b,form:x}=g,{setFieldValue:w}=x,C=k=>{w(y.name,k),k===Td.PSI&&w("service_profile",""),k===Td.VOLTE&&(w("server_name",""),w("public_identity",""))};return a.jsx(qs,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.type"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting",onChange:k=>C(k.target.value),children:tPt.map(aPt)})}}),a.jsx(Ke,{name:"supi",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.supi"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}}),_.type===Td.PSI&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:"server_name",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.server_name"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}}),a.jsx(Ke,{name:"public_identity",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.public_identity"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}})]}),_.type===Td.VOLTE&&a.jsx(a.Fragment,{children:a.jsx(Ke,{name:"service_profile",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.service_profile"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}})}),a.jsx(Xr,{data:s})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.cancel"}),type:"reset",variant:"outlined",disabled:i==="loading"||i==="submitting"}),a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.save"}),type:"submit",disabled:i==="loading"||i==="submitting"})]})})]})},t[5]=s,t[6]=i,t[7]=e,t[8]=p):p=t[8];let m;return t[9]!==c||t[10]!==f||t[11]!==p?(m=a.jsx(Wr,{initialValues:d,validationSchema:sPt,onSubmit:c,onReset:f,children:p}),t[9]=c,t[10]=f,t[11]=p,t[12]=m):m=t[12],m};function aPt(t){return a.jsx(En,{value:t,children:t},t)}const lPt=()=>{const t=he.c(104),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=ys(),o=gr(),{dialogOpen:l}=Jt(),{pageSize:c,pageSizeOptions:u,changePageSize:d,changePage:f,getRowsCount:p,getPage:m}=Na();let h;t[0]!==i?(h=()=>{i(`${$.urls.udrImsPrivateIdentities}/new`)},t[0]=i,t[1]=h):h=t[1];const _=h;let g;t[2]!==l||t[3]!==e?(g=()=>{l({title:e.formatMessage({id:"udr_ims_private_identities.toolbar.new_ims_private_identity_basic"}),content:cPt})},t[2]=l,t[3]=e,t[4]=g):g=t[4];const y=g;let b;t[5]!==o||t[6]!==e||t[7]!==r?(b=we=>{const{name:Me}=we;Me&&r({text:e.formatMessage({id:"udr_ims_service_profiles.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{o.submit({name:Me},{action:`${$.urls.udrImsPrivateIdentities}/delete`,method:"POST",encType:"application/json"})}})},t[5]=o,t[6]=e,t[7]=r,t[8]=b):b=t[8];const x=b;let w;t[9]!==l||t[10]!==e?(w=we=>{l({title:e.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.title"}),content:()=>a.jsx(ZMt,{name:we}),closeIcon:!0,closeOnBackdropClick:!0})},t[9]=l,t[10]=e,t[11]=w):w=t[11];const C=w;let k;t[12]!==l||t[13]!==e?(k=we=>{l({title:e.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.title"}),content:()=>a.jsx(XMt,{name:we}),closeIcon:!0,closeOnBackdropClick:!0})},t[12]=l,t[13]=e,t[14]=k):k=t[14];const A=k;let P;t[15]!==e?(P=e.formatMessage({id:"udr_ims_private_identities.table.header.name"}),t[15]=e,t[16]=P):P=t[16];let T;t[17]!==P?(T={key:"name",label:P,cellRender:uPt},t[17]=P,t[18]=T):T=t[18];let j;t[19]!==e?(j=e.formatMessage({id:"udr_ims_private_identities.table.header.supi"}),t[19]=e,t[20]=j):j=t[20];let R;t[21]!==j?(R={key:"supi",label:j,cellRender:dPt},t[21]=j,t[22]=R):R=t[22];let D;t[23]!==e?(D=e.formatMessage({id:"udr_ims_private_identities.table.header.type"}),t[23]=e,t[24]=D):D=t[24];let O;t[25]!==D?(O={key:"type",label:D,cellRender:fPt},t[25]=D,t[26]=O):O=t[26];let N;t[27]!==e?(N=e.formatMessage({id:"udr_ims_private_identities.table.header.status"}),t[27]=e,t[28]=N):N=t[28];let F;t[29]!==N?(F={key:"status",label:N,cellRender:pPt},t[29]=N,t[30]=F):F=t[30];let U;t[31]!==e?(U=e.formatMessage({id:"udr_ims_private_identities.table.header.created_at"}),t[31]=e,t[32]=U):U=t[32];let z;t[33]!==U?(z={key:"created_at",label:U,cellRender:mPt},t[33]=U,t[34]=z):z=t[34];let H;t[35]!==e?(H=e.formatMessage({id:"udr_ims_private_identities.table.header.modified_at"}),t[35]=e,t[36]=H):H=t[36];let W;t[37]!==H?(W={key:"modified_at",label:H,cellRender:hPt},t[37]=H,t[38]=W):W=t[38];let K;t[39]!==O||t[40]!==F||t[41]!==z||t[42]!==W||t[43]!==T||t[44]!==R?(K=[T,R,O,F,z,W],t[39]=O,t[40]=F,t[41]=z,t[42]=W,t[43]=T,t[44]=R,t[45]=K):K=t[45];const q=K;let X;t[46]!==e?(X=e.formatMessage({id:"udr_ims_private_identities.actions.status"}),t[46]=e,t[47]=X):X=t[47];let Q;t[48]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Info,{}),t[48]=Q):Q=t[48];let Y;t[49]!==C?(Y=we=>{const{name:Me}=we;return C(Me)},t[49]=C,t[50]=Y):Y=t[50];let Z;t[51]!==X||t[52]!==Y?(Z={label:X,icon:Q,onClick:Y},t[51]=X,t[52]=Y,t[53]=Z):Z=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=_l(ie.provisioning),t[54]=re):re=t[54];const fe=s.state!=="idle"||o.state!=="idle";let de;t[55]!==i?(de=we=>{const{name:Me}=we;i(`${$.urls.udrImsPrivateIdentities}/${Me}`)},t[55]=i,t[56]=de):de=t[56];let se;t[57]!==fe||t[58]!==de?(se={...re,disabled:fe,onClick:de},t[57]=fe,t[58]=de,t[59]=se):se=t[59];let le;t[60]!==e?(le=e.formatMessage({id:"udr_ims_private_identities.actions.edit_application_servers_profiles"}),t[60]=e,t[61]=le):le=t[61];let ee;t[62]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(ge.Sync,{}),t[62]=ee):ee=t[62];const J=s.state!=="idle"||o.state!=="idle";let me;t[63]!==i?(me=we=>{const{name:Me}=we;i(`${$.urls.udrImsPrivateIdentities}/${Me}/application-servers-profiles`)},t[63]=i,t[64]=me):me=t[64];let pe;t[65]!==le||t[66]!==J||t[67]!==me?(pe={label:le,icon:ee,disabled:J,onClick:me},t[65]=le,t[66]=J,t[67]=me,t[68]=pe):pe=t[68];let Se;t[69]!==e?(Se=e.formatMessage({id:"udr_ims_private_identities.actions.delete"}),t[69]=e,t[70]=Se):Se=t[70];let ve;t[71]===Symbol.for("react.memo_cache_sentinel")?(ve=a.jsx(ge.Trash,{}),t[71]=ve):ve=t[71];let xe;t[72]!==o.state||t[73]!==s.state?(xe=s.state!=="idle"||o.state!=="idle"||!Ue(ie.provisioning),t[72]=o.state,t[73]=s.state,t[74]=xe):xe=t[74];let qe;t[75]!==x||t[76]!==Se||t[77]!==xe?(qe={label:Se,icon:ve,onClick:x,disabled:xe},t[75]=x,t[76]=Se,t[77]=xe,t[78]=qe):qe=t[78];let Le;t[79]!==Z||t[80]!==se||t[81]!==pe||t[82]!==qe?(Le=[Z,se,pe,qe],t[79]=Z,t[80]=se,t[81]=pe,t[82]=qe,t[83]=Le):Le=t[83];const Te=Le;let je;t[84]===Symbol.for("react.memo_cache_sentinel")?(je=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[84]=je):je=t[84];let Ge;t[85]===Symbol.for("react.memo_cache_sentinel")?(Ge=a.jsx(Tr,{}),t[85]=Ge):Ge=t[85];let nt;t[86]!==f||t[87]!==d||t[88]!==q||t[89]!==o.state||t[90]!==m||t[91]!==p||t[92]!==y||t[93]!==_||t[94]!==e||t[95]!==s.state||t[96]!==c||t[97]!==u||t[98]!==Te||t[99]!==A?(nt=we=>{const{data:Me,metadata:$e}=we;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"udr_ims_private_identities.toolbar.new_ims_private_identity_basic"}),startIcon:a.jsx(ge.Add,{}),onClick:y,disabled:!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:_,disabled:!Ue(ie.provisioning)})]})}),a.jsx(Br,{autoScale:!0,loading:o.state!=="idle",orderBy:"name",columns:q,data:Me,page:m($e),labelDisplayedRows:gPt,rowsCount:p($e),rowsPerPage:c,onRowsPerPageChange:d,rowsPerPageOptions:u,rowKey:"name",rowActions:Te,stickyRowActions:!0,onPageChange:f($e),rowDetail:{content:Ve=>a.jsx(JMt,{row:Ve,onShowPublicStatusClick:Ne=>A(Ne),isLoading:s.state!=="idle"||o.state!=="idle"})}})]})},t[86]=f,t[87]=d,t[88]=q,t[89]=o.state,t[90]=m,t[91]=p,t[92]=y,t[93]=_,t[94]=e,t[95]=s.state,t[96]=c,t[97]=u,t[98]=Te,t[99]=A,t[100]=nt):nt=t[100];let Re;return t[101]!==n.udrImsPrivateIdentityList||t[102]!==nt?(Re=a.jsx(I.Suspense,{fallback:je,children:a.jsx(Qt,{resolve:n.udrImsPrivateIdentityList,errorElement:Ge,children:nt})}),t[101]=n.udrImsPrivateIdentityList,t[102]=nt,t[103]=Re):Re=t[103],Re};function cPt(){return a.jsx(oPt,{})}function uPt(t){const{name:e}=t;return a.jsx(_e,{type:"body2",children:e})}function dPt(t){const{supi:e}=t;return a.jsx(_e,{type:"body2",children:e})}function fPt(t){const{type:e}=t;return a.jsx(_e,{type:"body2",children:e})}function pPt(t){const{status:e}=t;return a.jsx(bi,{status:e==="ACTIVE"?nn.SUCCESS:nn.ERROR,asChip:!0,label:e})}function mPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function hPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function gPt(){return""}const Vee=Pr(),_Pt=dr().shape({service_indication:We().required(Vee.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.errors.required"})),service_data:We().required(Vee.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.errors.required"}))}),Hee=t=>{const e=he.c(20),{applicationServerProfile:r,publicIdentity:n,dialogId:s}=t,i=Ye(),{dialogClose:o}=Jt(),{upsertFetcher:l}=Ys(),{data:c,state:u,submit:d}=l,{name:f}=ko(),p=!!r;let m;e[0]!==d||e[1]!==p||e[2]!==f||e[3]!==n?(m=C=>{if(p){d({...C,public_identity:n},{action:`${$.urls.udrImsPrivateIdentities}/${f}/application-servers-profiles/update`,method:"POST",encType:"application/json"});return}d({...C,public_identity:n},{action:`${$.urls.udrImsPrivateIdentities}/${f}/application-servers-profiles/create`,method:"POST",encType:"application/json"})},e[0]=d,e[1]=p,e[2]=f,e[3]=n,e[4]=m):m=e[4];const h=m;r?.service_data,r?.service_indication;const _=r?.service_indication||"",g=r?.service_data||"";let y;e[5]!==n||e[6]!==_||e[7]!==g?(y={service_indication:_,service_data:g,public_identity:n},e[5]=n,e[6]=_,e[7]=g,e[8]=y):y=e[8];const b=y;let x;e[9]!==o||e[10]!==s||e[11]!==c||e[12]!==u||e[13]!==i||e[14]!==p?(x=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{children:a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"service_indication",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.service_indication"}),error:!!A.error,size:"small",helperText:A.error,disabled:u==="submitting"||p})}}),a.jsx(Ke,{name:"service_data",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsx(Fv,{value:k.value,language:"xml",label:i.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.service_data"}),error:A.error,onChange:j=>{T(k.name,j)}})}}),a.jsx(Xr,{data:c})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-initial-filter-button-cancel",text:i.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.cancel"}),variant:"outlined",disabled:!Ue(ie.provisioning)||u!=="idle",onClick:()=>o(s)}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:i.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:!Ue(ie.provisioning)||u!=="idle"})]})})]}),e[9]=o,e[10]=s,e[11]=c,e[12]=u,e[13]=i,e[14]=p,e[15]=x):x=e[15];let w;return e[16]!==h||e[17]!==b||e[18]!==x?(w=a.jsx(Wr,{initialValues:b,enableReinitialize:!0,validationSchema:_Pt,onSubmit:h,children:x}),e[16]=h,e[17]=b,e[18]=x,e[19]=w):w=e[19],w},vPt=()=>{const t=he.c(23),e=Ye(),{openConfirmDialog:r}=di(),{dialogOpen:n}=Jt(),{submit:s}=gr(),i=zn(),{name:o}=ko();let l;t[0]!==o||t[1]!==s?(l=x=>{const{public_identity:w,service_indication:C}=x;s({public_identity:w,service_indication:C},{action:`${$.urls.udrImsPrivateIdentities}/${o}/application-servers-profiles/delete`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=s,t[2]=l):l=t[2];const c=l;let u;t[3]!==n||t[4]!==e?(u=x=>{const{public_identity:w}=x;n({id:"application_servers_profiles_create",fullScreen:!0,title:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.create.title"}),content:()=>a.jsx(Hee,{publicIdentity:w,dialogId:"application_servers_profiles_create"}),closeOnBackdropClick:!1})},t[3]=n,t[4]=e,t[5]=u):u=t[5];const d=u;let f;t[6]!==n||t[7]!==e?(f=x=>{const{service_indication:w,service_data:C,public_identity:k}=x,A=`application_servers_profiles_edit-${w}-${C}`;n({id:A,fullScreen:!0,title:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.edit.title"}),content:()=>a.jsx(Hee,{publicIdentity:k,applicationServerProfile:{service_indication:w,service_data:C},dialogId:A}),closeOnBackdropClick:!1})},t[6]=n,t[7]=e,t[8]=f):f=t[8];const p=f;let m;t[9]!==c||t[10]!==e||t[11]!==r?(m=x=>{const{service_indication:w,public_identity:C}=x,k=`application_servers_profiles_delete-${w}`;r({id:k,text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"},{service_indication:w}),onConfirm:()=>void c({service_indication:w,public_identity:C})})},t[9]=c,t[10]=e,t[11]=r,t[12]=m):m=t[12];const h=m;let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Dt,{variant:"rounded",height:"600px",width:"100%"}),t[13]=_):_=t[13];let g;t[14]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Tr,{}),t[14]=g):g=t[14];let y;t[15]!==d||t[16]!==h||t[17]!==p||t[18]!==e?(y=x=>a.jsxs(te,{spacing:2,sx:{m:2},children:[!x&&a.jsx(Lr,{severity:"error",message:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.no_private_identity"})}),!!x&&x.registration_sets.length&&a.jsx(Jn,{children:x.registration_sets.map((w,C)=>{const k=w.description||`Registration Set ${C+1}`;return a.jsx(xr,{expanded:!0,title:k,elevation:2,content:a.jsx(te,{children:w.public_identities.map(A=>{const P=[{label:e.formatMessage({id:Ue(ie.provisioning)?"udr_ims_private_identities.application_servers_profiles.form.actions.edit":"udr_ims_private_identities.application_servers_profiles.form.actions.show"}),icon:a.jsx(ge.Edit,{}),onClick:T=>{T.item&&p({...T.item,public_identity:A.name})}},{label:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.actions.delete"}),icon:a.jsx(ge.Trash,{}),onClick:T=>{T.item&&h({...T.item,public_identity:A.name})}}];return a.jsx(pr,{title:A.name,elevation:3,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.actions.create"}),variant:"outlined",size:"small",onClick:()=>d({public_identity:A.name}),disabled:!Ue(ie.provisioning),startIcon:a.jsx(ge.Add,{})}),children:a.jsx(s7,{divided:!0,listItemActions:P,sx:{p:0},children:A.application_servers_profiles?.map(yPt)??a.jsx(a.Fragment,{})})},A.name)})})},k)})})]}),t[15]=d,t[16]=h,t[17]=p,t[18]=e,t[19]=y):y=t[19];let b;return t[20]!==i.udrImsPrivateIdentity||t[21]!==y?(b=a.jsx(I.Suspense,{fallback:_,children:a.jsx(Qt,{resolve:i.udrImsPrivateIdentity,errorElement:g,children:y})}),t[20]=i.udrImsPrivateIdentity,t[21]=y,t[22]=b):b=t[22],b};function yPt(t,e){return a.jsx(i7,{primaryText:t.service_indication,item:t,index:e,selected:!1},t.service_indication)}const bPt=()=>{const t=he.c(33),e=Ye(),{name:r}=ko(),{submit:n,state:s,data:i}=gr(),{submit:o}=gr(),l=zn(),{confirmationSimpleDialogOpen:c}=Jt(),u=ys(),d=r!=="new";let f;t[0]!==r||t[1]!==u?(f=()=>{u(`${$.urls.udrImsPrivateIdentities}/${r}/application-servers-profiles`)},t[0]=r,t[1]=u,t[2]=f):f=t[2];const p=f;let m;t[3]!==c||t[4]!==o||t[5]!==e||t[6]!==r?(m=()=>{r&&c({title:e.formatMessage({id:"udr_ims_service_profiles.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{o({name:r},{action:`${$.urls.udrImsPrivateIdentities}/delete`,method:"POST",encType:"application/json"})}})},t[3]=c,t[4]=o,t[5]=e,t[6]=r,t[7]=m):m=t[7];const h=m;let _;t[8]!==n||t[9]!==d||t[10]!==r?(_=T=>{r&&(d?n({name:r,...qee({values:T,isEditing:d})},{action:`${$.urls.udrImsPrivateIdentities}/update`,method:"POST",encType:"application/json"}):n({...qee({values:T,isEditing:d})},{action:`${$.urls.udrImsPrivateIdentities}/create`,method:"POST",encType:"application/json"}))},t[8]=n,t[9]=d,t[10]=r,t[11]=_):_=t[11];const g=_;let y;t[12]!==p||t[13]!==h||t[14]!==e||t[15]!==d?(y=d&&a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.actions.edit_application_servers_profiles"}),startIcon:a.jsx(ge.Sync,{}),variant:"outlined",onClick:p,disabled:!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:h})]}),t[12]=p,t[13]=h,t[14]=e,t[15]=d,t[16]=y):y=t[16];let b;t[17]!==y?(b=a.jsx(hs,{children:y}),t[17]=y,t[18]=b):b=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"926px",width:"100%"}),t[19]=x):x=t[19];const w=l?.udrImsPrivateIdentity;let C;t[20]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Tr,{}),t[20]=C):C=t[20];let k;t[21]!==i||t[22]!==s||t[23]!==g||t[24]!==e||t[25]!==d?(k=T=>{const j=T?nPt(T):nC;return a.jsx(Wr,{initialValues:j,validationSchema:iPt,onSubmit:g,children:R=>{const{values:D,errors:O,dirty:N}=R;return a.jsx(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"type",children:F=>{const{field:U,meta:z,form:H}=F,{setFieldValue:W}=H,K=q=>{W(U.name,q),q===Gm.PSI&&(W("sip_digest_password",""),W("sip_digest_realm","")),q===Gm.DISTINCT_PUI&&W("server_name","")};return a.jsx(qs,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.type"}),size:"small",error:!!z.error,helperText:z.error,disabled:d||s!=="idle",onChange:q=>K(q.target.value),children:rPt.map(xPt)})}}),!d&&a.jsx(Ke,{name:"supi",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.supi"}),size:"small",error:!!z.error,helperText:z.error,disabled:s!=="idle"||s!=="idle"})}}),D.type===Gm.PSI&&a.jsx(a.Fragment,{children:a.jsx(Ke,{name:"server_name",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.server_name"}),size:"small",error:!!z.error,helperText:z.error,disabled:s!=="idle"})}})}),d&&a.jsxs(te,{spacing:2,direction:"row",align:"center",children:[a.jsx(Ur,{name:"isOverridingKeys",children:F=>{const{field:U,form:z}=F,{setFieldValue:H}=z;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{size:"small",checked:!!U.value,onChange:(W,K)=>{H(U.name,K)}}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.isOverridingKeys"})})]})}}),a.jsx(ms,{label:D.sip_digest_provisioned?e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.keys_provisioned"}):e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.keys_not_provisioned"}),color:D.sip_digest_provisioned?"primary":"default",size:"small"})]}),D.type===Gm.DISTINCT_PUI&&(D.isOverridingKeys&&d||!d)&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:"sip_digest_password",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.sip_digest.password"}),size:"small",error:!!z.error||!!O.sip_digest,helperText:z.error||O.sip_digest,disabled:s!=="idle"})}}),a.jsx(Ke,{name:"sip_digest_realm",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.sip_digest.realm"}),size:"small",error:!!z.error||!!O.sip_digest,helperText:z.error||O.sip_digest,disabled:s!=="idle"})}})]}),a.jsx(oi,{name:"registration_sets",children:F=>{const{remove:U,push:z,form:H}=F,{getFieldMeta:W}=H,K=()=>{z({_uuid:gn(),description:"",public_identities:[]})},q=Q=>{U(Q)},X=Q=>!W(Q)?.error;return a.jsxs(a.Fragment,{children:[a.jsxs(te,{align:"center",direction:"row",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_set_add"}),type:"button",onClick:K,disabled:s!=="idle"||!Ue(ie.provisioning)}),!X("registration_sets")&&a.jsx(_e,{color:"error",children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.has_errors"})})]}),a.jsx(Jn,{exclusive:!1,children:D.registration_sets?.map((Q,Y)=>a.jsx(xr,{title:`${Y+1}. ${Q.description||"-"}`,elevation:2,error:!X(`registration_sets[${Y}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>q(Y),label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_set_delete"}),disabled:s!=="idle"||!Ue(ie.provisioning)}],content:a.jsxs(te,{children:[a.jsx(Ke,{name:`registration_sets[${Y}].description`,children:Z=>{const{field:re,meta:fe}=Z;return a.jsx(dt,{...re,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.description"}),size:"small",error:!!fe.error,helperText:fe.error,disabled:s!=="idle"})}}),a.jsx(oi,{name:`registration_sets[${Y}].public_identities`,children:Z=>{const{remove:re,push:fe}=Z,de=le=>{re(le)},se=()=>{fe({_uuid:gn(),barred:!1,name:""})};return a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identity_add"}),type:"button",onClick:se,disabled:s!=="idle"||!Ue(ie.provisioning),sx:{alignSelf:"flex-start",my:1}}),Q?.public_identities?.length>0&&a.jsx(Jn,{exclusive:!1,children:Q.public_identities.map((le,ee)=>a.jsx(xr,{title:`${ee+1}. ${le.name||"-"}`,elevation:3,error:!X(`registration_sets[${Y}].public_identities[${ee}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>de(ee),label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identity_delete"}),disabled:s!=="idle"||!Ue(ie.provisioning)}],content:a.jsxs(te,{children:[a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].name`,children:J=>{const{field:me,meta:pe}=J;return a.jsx(dt,{...me,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.name"}),size:"small",error:!!pe.error,helperText:pe.error,disabled:s!=="idle"})}}),a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].barred`,children:J=>{const{field:me,form:pe}=J,{setFieldValue:Se}=pe;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:me.value,onChange:(ve,xe)=>{Se(me.name,xe)},disabled:s!=="idle"}),a.jsx(_e,{children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.barred"})})]})}}),D.type===Gm.DISTINCT_PUI&&a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].service_profile`,children:J=>{const{field:me,meta:pe}=J;return a.jsx(dt,{...me,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.service_profile"}),size:"small",error:!!pe.error,helperText:pe.error,disabled:s!=="idle"})}}),!!le.application_servers_profiles?.length&&a.jsxs(te,{children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"udr_ims_private_identities.table.value.application_servers_profiles"})}),a.jsx(ks,{items:le.application_servers_profiles.map(SPt)})]})]})},`${le._uuid}`))})]})}})]})},`${Q._uuid}`))})]})}}),a.jsx(Xr,{data:i}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:e.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:!N||s!=="idle"||!Ue(ie.provisioning),sx:{alignSelf:"flex-start"}})]})})})}})},t[21]=i,t[22]=s,t[23]=g,t[24]=e,t[25]=d,t[26]=k):k=t[26];let A;t[27]!==w||t[28]!==k?(A=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:w,errorElement:C,children:k})}),t[27]=w,t[28]=k,t[29]=A):A=t[29];let P;return t[30]!==b||t[31]!==A?(P=a.jsxs(a.Fragment,{children:[b,A]}),t[30]=b,t[31]=A,t[32]=P):P=t[32],P};function xPt(t){return a.jsx(En,{value:t,children:t},t)}function SPt(t){return{id:t.service_indication,label:t.service_indication}}const wPt=Pr(),CPt=dr().shape({description:We(),initial_filter_criteria:yr().of(We().strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))).required(wPt.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form_errors.required"})).min(1)}),ime=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,state:c,load:u}=i,{data:d,state:f,submit:p}=o,m=r!==void 0;let h;e[0]!==p||e[1]!==r||e[2]!==m?(h=k=>{const{initial_filter_criteria:A,description:P}=k;if(m){p({id:r,initial_filter_criteria:A,...!!P&&{description:P}},{action:`${$.urls.udrImsServiceProfiles}/update`,method:"POST",encType:"application/json"});return}p({initial_filter_criteria:A,...!!P&&{description:P}},{action:`${$.urls.udrImsServiceProfiles}/create`,method:"POST",encType:"application/json"})},e[0]=p,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!l){let j;e[4]===Symbol.for("react.memo_cache_sentinel")?(j={description:"",initial_filter_criteria:[]},e[4]=j):j=e[4],g=j;break e}const k=l.udrImsServiceProfile,A=k?.description??"",P=k.initial_filter_criteria??"";let T;e[5]!==A||e[6]!==P?(T={description:A,initial_filter_criteria:P},e[5]=A,e[6]=P,e[7]=T):T=e[7],g=T}const y=g;let b,x;e[8]!==r||e[9]!==m||e[10]!==u?(b=()=>{m&&u(`${$.urls.udrImsServiceProfiles}/${r}`)},x=[r,m,u],e[8]=r,e[9]=m,e[10]=u,e[11]=b,e[12]=x):(b=e[11],x=e[12]),I.useEffect(b,x);let w;e[13]!==s||e[14]!==d||e[15]!==f||e[16]!==l||e[17]!==n||e[18]!==m||e[19]!==c?(w=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!l,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form.description"}),size:"small",error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle"})}}),a.jsx(Ke,{name:"initial_filter_criteria",children:k=>{const{field:A,meta:P,form:T}=k,{setFieldValue:j}=T;return a.jsx(rn,{value:A.value,name:A.name,label:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form.initial_filter_criteria"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(R,D)=>{j(A.name,[...new Set(D.map(APt))])},error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:d})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-service-profile-button-cancel",text:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.cancel"}),variant:"outlined",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"ims-service-profile-button-save",text:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.save"}),type:"submit",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[13]=s,e[14]=d,e[15]=f,e[16]=l,e[17]=n,e[18]=m,e[19]=c,e[20]=w):w=e[20];let C;return e[21]!==_||e[22]!==y||e[23]!==w?(C=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:CPt,onSubmit:_,children:w}),e[21]=_,e[22]=y,e[23]=w,e[24]=C):C=e[24],C};function APt(t){return t.trim()}const kPt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udr_ims_service_profiles.toolbar.new_ims_service_profile"}),content:MPt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.provisioning),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function MPt(){return a.jsx(ime,{})}const PPt=()=>{const t=he.c(64),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=re=>{re&&o({title:e.formatMessage({id:"udr_ims_service_profiles.toolbar.new_ims_service_profile"}),content:()=>a.jsx(ime,{id:re}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==r?(_=re=>{const{id:fe}=re;fe&&r({text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:fe},{action:`${$.urls.udrImsServiceProfiles}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=r,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_ims_service_profiles.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:jPt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_ims_service_profiles.table.header.description"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"description",label:x,cellRender:TPt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_ims_service_profiles.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:EPt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_ims_service_profiles.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:RPt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l(ie.provisioning),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=re=>{const{id:fe}=re;return h(fe)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_ims_service_profiles.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==g?(z=re=>void g(re),t[37]=g,t[38]=z):z=t[38];let H;t[39]!==i.state||t[40]!==s.state?(H=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[39]=i.state,t[40]=s.state,t[41]=H):H=t[41];let W;t[42]!==F||t[43]!==z||t[44]!==H?(W={label:F,icon:U,onClick:z,disabled:H},t[42]=F,t[43]=z,t[44]=H,t[45]=W):W=t[45];let K;t[46]!==N||t[47]!==W?(K=[N,W],t[46]=N,t[47]=W,t[48]=K):K=t[48];const q=K;let X;t[49]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[49]=X):X=t[49];let Q;t[50]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Tr,{}),t[50]=Q):Q=t[50];let Y;t[51]!==d||t[52]!==u||t[53]!==j||t[54]!==i.state||t[55]!==p||t[56]!==f||t[57]!==l||t[58]!==c||t[59]!==q?(Y=re=>{const{data:fe,metadata:de}=re;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(kPt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:fe,page:p(de),labelDisplayedRows:IPt,rowsCount:f(de),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:q,stickyRowActions:!0,onPageChange:d(de)})]})},t[51]=d,t[52]=u,t[53]=j,t[54]=i.state,t[55]=p,t[56]=f,t[57]=l,t[58]=c,t[59]=q,t[60]=Y):Y=t[60];let Z;return t[61]!==n.udrImsServiceProfileList||t[62]!==Y?(Z=a.jsx(I.Suspense,{fallback:X,children:a.jsx(Qt,{resolve:n.udrImsServiceProfileList,errorElement:Q,children:Y})}),t[61]=n.udrImsServiceProfileList,t[62]=Y,t[63]=Z):Z=t[63],Z};function jPt(t){const{id:e}=t;return a.jsx(Ap,{text:e||"*"})}function TPt(t){const{description:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function EPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function RPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function IPt(){return""}function DPt(t){return{...t,r1:parseInt(t.r1),r2:parseInt(t.r2),r3:parseInt(t.r3),r4:parseInt(t.r4),r5:parseInt(t.r5)}}const $Pt=dr().shape({c1:We().required().matches(new RegExp($.regex.milenageConstantC)),c2:We().required().matches(new RegExp($.regex.milenageConstantC)),c3:We().required().matches(new RegExp($.regex.milenageConstantC)),c4:We().required().matches(new RegExp($.regex.milenageConstantC)),c5:We().required().matches(new RegExp($.regex.milenageConstantC)),r1:kn().required().min(1).max(127),r2:kn().required().min(1).max(127),r3:kn().required().min(1).max(127),r4:kn().required().min(1).max(127),r5:kn().required().min(1).max(127)}),OPt=()=>{const t=he.c(19),e=Ye(),{openConfirmDialog:r}=di(),n=zn(),{submit:s,state:i,data:o}=gr(),{submit:l,state:c}=gr();let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={c1:"",c2:"",c3:"",c4:"",c5:"",r1:"",r2:"",r3:"",r4:"",r5:""},t[0]=u):u=t[0];const d=u;let f;t[1]!==s?(f=x=>{s(DPt(x),{method:"PUT",action:"update",encType:"application/json"})},t[1]=s,t[2]=f):f=t[2];const p=f;let m;t[3]!==e||t[4]!==r||t[5]!==l?(m=()=>{r({text:e.formatMessage({id:"udr_milenage_constants.actions.confirm_delete"}),onConfirm:()=>{l(null,{method:"DELETE",action:$.urls.udrCustomMilenageConstantsDelete_Action,encType:"application/json"})}})},t[3]=e,t[4]=r,t[5]=l,t[6]=m):m=t[6];const h=m;let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Dt,{variant:"rounded",height:"755px"}),t[7]=_):_=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Tr,{}),t[8]=g):g=t[8];let y;t[9]!==h||t[10]!==p||t[11]!==e||t[12]!==c||t[13]!==o||t[14]!==i?(y=x=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",spacing:2,align:"center",children:[x.provisioned?a.jsx(bi,{status:nn.SUCCESS,asChip:!0,label:e.formatMessage({id:"udr_milenage_constants.provisioned"})}):a.jsx(bi,{status:nn.ERROR,asChip:!0,label:e.formatMessage({id:"udr_milenage_constants.not_provisioned"})}),a.jsx(Ze,{text:e.formatMessage({id:"udr_milenage_constants.actions.delete"}),variant:"outlined",startIcon:a.jsx(ge.Trash,{}),disabled:!x.provisioned||c!=="idle"||i!=="idle",onClick:h})]})}),a.jsx(Kt,{title:e.formatMessage({id:"udr_milenage_constants.panel.title"}),children:a.jsx(Wr,{initialValues:d,validationSchema:$Pt,onSubmit:p,children:w=>{const{dirty:C}=w;return a.jsx(dn,{canWrite:Ue(ie.milenage_constants),children:a.jsxs(te,{spacing:2,fullWidth:!0,nowrap:!0,children:[["c1","c2","c3","c4","c5","r1","r2","r3","r4","r5"].map(k=>a.jsx(Ke,{name:k,children:A=>{const{field:P,meta:T}=A;return a.jsx(dt,{...P,label:e.formatMessage({id:`udr_milenage_constants.form.${k}`}),size:"small",error:!!T.error,helperText:T.error})}},k)),a.jsx(Xr,{data:o}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"udr_milenage_constants.buttons.save"}),disabled:!C||c!=="idle"||!Ue(ie.milenage_constants),loading:i!=="idle",sx:{alignSelf:"flex-start"}})]})})}})})]}),t[9]=h,t[10]=p,t[11]=e,t[12]=c,t[13]=o,t[14]=i,t[15]=y):y=t[15];let b;return t[16]!==n.milenageCostants||t[17]!==y?(b=a.jsx(I.Suspense,{fallback:_,children:a.jsx(Qt,{resolve:n.milenageCostants,errorElement:g,children:y})}),t[16]=n.milenageCostants,t[17]=y,t[18]=b):b=t[18],b},LPt=Pr(),NPt=dr().shape({transport_key_id:We(),transport_key_tag:We().matches(new RegExp($.regex.supiTag)),op:We().strict(!0).matches(new RegExp($.regex.operatorKey)).required(LPt.formatMessage({id:"udr_operator_keys.new_operator_key.form_errors.required"}))}),ome=t=>{const e=he.c(14),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i}=Ys(),{submit:o,state:l,data:c}=i,u=!!r;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={op:""},e[0]=d):d=e[0];const f=d;let p;e[1]!==r||e[2]!==u||e[3]!==o?(p=g=>{if(u){const{op:y}=g;o({id:r,op:y},{action:"udr/operator-codes/update",method:"PUT",encType:"application/json"})}else o({id:g.id,op:g.op},{action:"udr/operator-codes/create",method:"POST",encType:"application/json"})},e[1]=r,e[2]=u,e[3]=o,e[4]=p):p=e[4];const m=p;let h;e[5]!==c||e[6]!==s||e[7]!==n||e[8]!==u||e[9]!==l?(h=()=>a.jsx(dn,{canWrite:Ue([ie.operator_codes,ie.provisioning]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[!u&&a.jsx(Ke,{name:"id",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:n.formatMessage({id:"udr_operator_keys.new_operator_key.id"}),size:"small",error:!!b.error,helperText:b.error,disabled:l!=="idle"})}}),a.jsx(Ke,{name:"op",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:n.formatMessage({id:"udr_operator_keys.new_operator_key.op"}),size:"small",error:!!b.error,helperText:b.error,disabled:l!=="idle"})}}),a.jsx(Xr,{data:c})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"udr_operator_keys.new_operator_key.cancel"}),variant:"outlined",disabled:l!=="idle"||!Ue([ie.operator_codes,ie.provisioning]),onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"udr_operator_keys.new_operator_key.save"}),type:"submit",loading:l!=="idle",disabled:!Ue([ie.operator_codes,ie.provisioning])})]})]})}),e[5]=c,e[6]=s,e[7]=n,e[8]=u,e[9]=l,e[10]=h):h=e[10];let _;return e[11]!==m||e[12]!==h?(_=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:f,validationSchema:NPt,onSubmit:m,children:h})}),e[11]=m,e[12]=h,e[13]=_):_=e[13],_},FPt=()=>{const t=he.c(56),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==e?(m=e.formatMessage({id:"udr_operator_keys.table.header.id"}),t[0]=e,t[1]=m):m=t[1];let h;t[2]!==m?(h={key:"id",label:m,cellRender:UPt},t[2]=m,t[3]=h):h=t[3];let _;t[4]!==e?(_=e.formatMessage({id:"udr_operator_keys.table.header.created_at"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"created_at",label:_,cellRender:BPt},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"udr_operator_keys.table.header.modified_at"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"modified_at",label:y,cellRender:zPt},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==g||t[14]!==b?(x=[h,g,b],t[12]=h,t[13]=g,t[14]=b,t[15]=x):x=t[15];const w=x;let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=_l([ie.operator_codes,ie.provisioning]),t[16]=C):C=t[16];const k=o!=="idle";let A;t[17]!==r||t[18]!==e?(A=K=>{const{id:q}=K;r({title:e.formatMessage({id:"udr_operator_keys.edit_operator_key.title"}),content:()=>a.jsx(ome,{id:q})})},t[17]=r,t[18]=e,t[19]=A):A=t[19];let P;t[20]!==k||t[21]!==A?(P={...C,disabled:k,onClick:A},t[20]=k,t[21]=A,t[22]=P):P=t[22];let T;t[23]!==e?(T=e.formatMessage({id:"udr_operator_keys.actions.delete"}),t[23]=e,t[24]=T):T=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Trash,{}),t[25]=j):j=t[25];let R;t[26]!==e||t[27]!==n||t[28]!==i?(R=K=>{const{id:q}=K;n({text:e.formatMessage({id:"udr_operator_keys.actions.delete.confirm"},{key:q}),onConfirm:()=>{i({id:q},{action:$.urls.udrOperatorCodesDelete_Action,method:"DELETE",encType:"application/json"})}})},t[26]=e,t[27]=n,t[28]=i,t[29]=R):R=t[29];let D;t[30]!==o?(D=o!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.operator_codes),t[30]=o,t[31]=D):D=t[31];let O;t[32]!==T||t[33]!==R||t[34]!==D?(O={label:T,icon:j,onClick:R,disabled:D},t[32]=T,t[33]=R,t[34]=D,t[35]=O):O=t[35];let N;t[36]!==P||t[37]!==O?(N=[P,O],t[36]=P,t[37]=O,t[38]=N):N=t[38];const F=N;let U;t[39]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[39]=U):U=t[39];let z;t[40]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[40]=z):z=t[40];let H;t[41]!==d||t[42]!==u||t[43]!==w||t[44]!==r||t[45]!==p||t[46]!==f||t[47]!==e||t[48]!==l||t[49]!==c||t[50]!==F||t[51]!==o?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>{r({title:e.formatMessage({id:"udr_operator_keys.new_operator_key.title"}),content:qPt})},disabled:o!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.operator_codes)})}),a.jsx(Br,{autoScale:!0,orderBy:"id",columns:w,data:K.data,page:p(K.metadata),labelDisplayedRows:VPt,rowsCount:f(K.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:F,stickyRowActions:!0,onPageChange:d(K.metadata),loading:o!=="idle"})]}),t[41]=d,t[42]=u,t[43]=w,t[44]=r,t[45]=p,t[46]=f,t[47]=e,t[48]=l,t[49]=c,t[50]=F,t[51]=o,t[52]=H):H=t[52];let W;return t[53]!==s.operatorKeys||t[54]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:s.operatorKeys,errorElement:z,children:H})}),t[53]=s.operatorKeys,t[54]=H,t[55]=W):W=t[55],W};function UPt(t){const{id:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function BPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function zPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function qPt(){return a.jsx(ome,{})}function VPt(){return""}const Gee=Pr(),HPt=dr().shape({mcc:We().required(Gee.formatMessage({id:"udr_plmns.new_plmn.form_errors.required"})).strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.mcc})`)),mnc:We().required(Gee.formatMessage({id:"udr_plmns.new_plmn.form_errors.required"})).strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.mnc})`))}),GPt=()=>{const t=he.c(11),e=Ye(),{upsertFetcher:r}=Ys(),{submit:n,data:s,state:i}=r,{dialogClose:o}=Jt();let l;t[0]!==n?(l=p=>{const{mcc:m,mnc:h}=p;n({mcc:m,mnc:h},{method:"POST",encType:"application/json",action:"udr/plmns/create"})},t[0]=n,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={mcc:"",mnc:""},t[2]=u):u=t[2];let d;t[3]!==s||t[4]!==o||t[5]!==e||t[6]!==i?(d=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"mcc",children:p=>{const{field:m,meta:h}=p;return a.jsx(dt,{...m,label:e.formatMessage({id:"udr_plmns.new_plmn.form.mcc"}),size:"small",error:!!h.error,helperText:h.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"mnc",children:p=>{const{field:m,meta:h}=p;return a.jsx(dt,{...m,label:e.formatMessage({id:"udr_plmns.new_plmn.form.mnc"}),size:"small",error:!!h.error,helperText:h.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_plmns.new_plmn.cancel"}),variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning),onClick:()=>o()}),a.jsx(Ze,{text:e.formatMessage({id:"udr_plmns.new_plmn.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning),loading:i!=="idle"})]})]})}),t[3]=s,t[4]=o,t[5]=e,t[6]=i,t[7]=d):d=t[7];let f;return t[8]!==c||t[9]!==d?(f=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:HPt,onSubmit:c,children:d})}),t[8]=c,t[9]=d,t[10]=f):f=t[10],f},WPt=()=>{const t=he.c(54),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==r||t[1]!==e?(m=()=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:YPt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==e||t[4]!==n||t[5]!==i?(_=K=>{const{mcc:q,mnc:X}=K;n({text:e.formatMessage({id:"udr_plmns.actions.delete.confirm"},{plmn:`${q}${X}`}),onConfirm:()=>{i({mcc:q,mnc:X},{method:"DELETE",encType:"application/json",action:"delete"})}})},t[3]=e,t[4]=n,t[5]=i,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_plmns.table.header.mcc"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"mcc",label:y},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_plmns.table.header.mnc"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"mnc",label:x},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_plmns.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:KPt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_plmns.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:QPt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]!==e?(R=e.formatMessage({id:"udr_plmns.actions.delete"}),t[28]=e,t[29]=R):R=t[29];let D;t[30]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(ge.Trash,{}),t[30]=D):D=t[30];let O;t[31]!==o?(O=o!=="idle"||!Ue(ie.provisioning),t[31]=o,t[32]=O):O=t[32];let N;t[33]!==g||t[34]!==R||t[35]!==O?(N=[{label:R,icon:D,onClick:g,disabled:O}],t[33]=g,t[34]=R,t[35]=O,t[36]=N):N=t[36];const F=N;let U;t[37]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[37]=U):U=t[37];let z;t[38]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[38]=z):z=t[38];let H;t[39]!==d||t[40]!==u||t[41]!==j||t[42]!==p||t[43]!==f||t[44]!==h||t[45]!==e||t[46]!==l||t[47]!==c||t[48]!==F||t[49]!==o?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:h,disabled:o!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"mcc",columns:j,data:K.data,page:p(K.metadata),labelDisplayedRows:ZPt,rowsCount:f(K.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"mcc",rowActions:F,stickyRowActions:!0,onPageChange:d(K.metadata),loading:o!=="idle"})]}),t[39]=d,t[40]=u,t[41]=j,t[42]=p,t[43]=f,t[44]=h,t[45]=e,t[46]=l,t[47]=c,t[48]=F,t[49]=o,t[50]=H):H=t[50];let W;return t[51]!==s.udrPlmnList||t[52]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:s.udrPlmnList,errorElement:z,children:H})}),t[51]=s.udrPlmnList,t[52]=H,t[53]=W):W=t[53],W};function YPt(){return a.jsx(GPt,{})}function KPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function QPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ZPt(){return""}const XPt=()=>{const t=he.c(71),e=Ye(),{submit:r,state:n}=gr(),s=ys(),{udrPolicyDataProfileList:i}=zn(),{openConfirmDialog:o}=di(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==s?(m=()=>{s("new")},t[0]=s,t[1]=m):m=t[1];const h=m;let _;t[2]!==s?(_=le=>{const{uuid:ee}=le;ee&&s(ee)},t[2]=s,t[3]=_):_=t[3];const g=_;let y;t[4]!==e||t[5]!==o||t[6]!==r?(y=le=>{const{uuid:ee}=le;ee&&o({text:e.formatMessage({id:"udr_policy_data_profiles.toolbar.delete"}),onConfirm:()=>r({id:ee},{method:"DELETE",encType:"application/json",action:`${ee}/delete`})})},t[4]=e,t[5]=o,t[6]=r,t[7]=y):y=t[7];const b=y;let x;t[8]!==e?(x=e.formatMessage({id:"udr_policy_data_profiles.table.id"}),t[8]=e,t[9]=x):x=t[9];let w;t[10]!==x?(w={key:"uuid",label:x},t[10]=x,t[11]=w):w=t[11];let C;t[12]!==e?(C=e.formatMessage({id:"udr_policy_data_profiles.table.description"}),t[12]=e,t[13]=C):C=t[13];let k;t[14]!==C?(k={key:"description",label:C},t[14]=C,t[15]=k):k=t[15];let A;t[16]!==e?(A=e.formatMessage({id:"udr_policy_data_profiles.table.created_at"}),t[16]=e,t[17]=A):A=t[17];let P;t[18]!==A?(P={key:"created_at",label:A,cellRender:JPt},t[18]=A,t[19]=P):P=t[19];let T;t[20]!==e?(T=e.formatMessage({id:"udr_policy_data_profiles.table.modified_at"}),t[20]=e,t[21]=T):T=t[21];let j;t[22]!==T?(j={key:"modified_at",label:T,cellRender:ejt},t[22]=T,t[23]=j):j=t[23];let R;t[24]!==j||t[25]!==w||t[26]!==k||t[27]!==P?(R=[w,k,P,j],t[24]=j,t[25]=w,t[26]=k,t[27]=P,t[28]=R):R=t[28];const D=R;let O;t[29]===Symbol.for("react.memo_cache_sentinel")?(O=_l(ie.provisioning),t[29]=O):O=t[29];const N=n!=="idle";let F;t[30]!==g||t[31]!==N?(F={...O,disabled:N,onClick:g},t[30]=g,t[31]=N,t[32]=F):F=t[32];let U;t[33]!==e?(U=e.formatMessage({id:"udr_policy_data_profiles.actions.delete"}),t[33]=e,t[34]=U):U=t[34];let z;t[35]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(ge.Trash,{}),t[35]=z):z=t[35];let H;t[36]!==n?(H=n!=="idle"||!Ue(ie.provisioning),t[36]=n,t[37]=H):H=t[37];let W;t[38]!==b||t[39]!==U||t[40]!==H?(W={label:U,icon:z,disabled:H,onClick:b},t[38]=b,t[39]=U,t[40]=H,t[41]=W):W=t[41];let K;t[42]!==F||t[43]!==W?(K=[F,W],t[42]=F,t[43]=W,t[44]=K):K=t[44];const q=K;let X;t[45]!==e?(X=e.formatMessage({id:"common.new"}),t[45]=e,t[46]=X):X=t[46];let Q;t[47]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Add,{}),t[47]=Q):Q=t[47];let Y;t[48]!==n?(Y=n!=="idle"||!Ue(ie.provisioning),t[48]=n,t[49]=Y):Y=t[49];let Z;t[50]!==h||t[51]!==X||t[52]!==Y?(Z=a.jsx(hs,{children:a.jsx(Ze,{text:X,startIcon:Q,onClick:h,disabled:Y})}),t[50]=h,t[51]=X,t[52]=Y,t[53]=Z):Z=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[54]=re):re=t[54];let fe;t[55]!==d||t[56]!==u||t[57]!==D||t[58]!==p||t[59]!==f||t[60]!==l||t[61]!==c||t[62]!==q||t[63]!==n?(fe=le=>a.jsx(Br,{autoScale:!0,orderBy:"uuid",columns:D,data:le.data,page:p(le.metadata),labelDisplayedRows:tjt,rowsCount:f(le.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"uuid",rowActions:q,stickyRowActions:!0,onPageChange:d(le.metadata),loading:n!=="idle"}),t[55]=d,t[56]=u,t[57]=D,t[58]=p,t[59]=f,t[60]=l,t[61]=c,t[62]=q,t[63]=n,t[64]=fe):fe=t[64];let de;t[65]!==fe||t[66]!==i?(de=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:i,children:fe})}),t[65]=fe,t[66]=i,t[67]=de):de=t[67];let se;return t[68]!==Z||t[69]!==de?(se=a.jsxs(a.Fragment,{children:[Z,de]}),t[68]=Z,t[69]=de,t[70]=se):se=t[70],se};function JPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ejt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function tjt(){return""}const vu=Pr(),rjt=t=>!t||bie.isEmpty(t)?{snssaiList:[]}:{snssaiList:Object.values(t.smPolicySnssaiData).map(e=>({_uuid:gn(),sst:e.snssai?.sst,sd:e.snssai?.sd??"",dnnList:Object.values(e.smPolicyDnnData)?.map(r=>({_uuid:gn(),dnn:r.dnn,allowedServices:r.allowedServices}))}))},njt=t=>!t||bie.isEmpty(t)?{subscCats:""}:{subscCats:t.subscCats[0]??""};function sjt(t){const{uuid:e,description:r,sm_data:n,am_data:s}=t,i=rjt(n),o=njt(s);return{uuid:e,description:r??"",...i,...o}}function ijt(t){if(t.length!==0)return{sm_data:{smPolicySnssaiData:t.reduce((e,{sd:r,sst:n,dnnList:s})=>({...e,[`${n}${r?"-"+r:""}`]:{snssai:{sst:n,...r&&{sd:r}},smPolicyDnnData:s.reduce((i,{dnn:o,allowedServices:l})=>({...i,[`${o}`]:{dnn:o,allowedServices:l}}),{})}}),{})}}}function ojt(t){if(t)return{am_data:{subscCats:[t]}}}function ajt({uuid:t,description:e,snssaiList:r,subscCats:n}){const s=ijt(r),i=ojt(n);return{uuid:t,...e&&{description:e},...s,...i}}const ljt=(t,e,r)=>t?e?`${t}-${e}`:`${t}`:`S-NSSAI #${r+1}`,cjt=(t,e)=>t||`DNN #${e+1}`,ujt=dr().shape({uuid:We().required(vu.formatMessage({id:"validation.required"})).matches(new RegExp(`${$.regex.idString}|${$.regex.uuid}`),vu.formatMessage({id:"udr_provisioned_data_profiles.form.errors.uuid_format"},{value:`${$.regex.idString}|${$.regex.uuid}`})),description:We().strict(!0).matches(new RegExp($.regex.descriptionRm),vu.formatMessage({id:"udr_policy_data_profiles.form.errors.format"},{value:"^[ -~]{1,128}"})),snssaiList:yr().of(dr().shape({sst:kn().typeError("must be a number").min(0,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.min"},{value:0})).max(255,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.max"},{value:255})).required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"})),sd:We().typeError("must be a string").strict(!0).matches(/^[A-Fa-f0-9]{6}$/,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.format"},{value:"^[A-Fa-f0-9]{6}$"})),dnnList:yr().of(dr().shape({dnn:We().required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"})),allowedServices:yr().of(We()).min(1,({min:t})=>vu.formatMessage({id:"udr_policy_data_profiles.form.errors.least"},{value:t}))})).min(1)})).when("subscCats",{is:t=>t&&t.length>0,then:t=>t.min(0),otherwise:t=>t.min(1)}),subscCats:We().when("snssaiList",{is:t=>!t||t.length>0,then:t=>t.notRequired(),otherwise:t=>t.required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"}))})},[["subscCats","snssaiList"]]),djt=t=>{const e=he.c(16),{initialValues:r,onSubmit:n,loading:s,error:i}=t,[o,l]=I.useState("sm"),c=Ye(),u=ko().id!=="new";let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=b=>{l(b)},e[0]=d):d=e[0];const f=d;let p;e:{if(r){let x;e[1]!==r?(x=sjt(r),e[1]=r,e[2]=x):x=e[2],p=x;break e}let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b={uuid:"",description:"",snssaiList:[],subscCats:""},e[3]=b):b=e[3],p=b}const m=p;let h;e[4]!==n?(h=b=>{const x=ajt(b);x&&n(x)},e[4]=n,e[5]=h):h=e[5];const _=h;let g;e[6]!==i||e[7]!==c||e[8]!==u||e[9]!==s||e[10]!==o?(g=b=>{const{values:x,errors:w,dirty:C}=b;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"uuid",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.uuid"}),size:"small",required:!0,disabled:u,error:!!P.error,helperText:P.error})}}),a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.description"}),size:"small",error:!!P.error,helperText:P.error})}}),a.jsx(VA,{tabs:[{value:"sm",label:c.formatMessage({id:"udr_policy_data_profiles.form.tabs.sm"}),status:w.snssaiList?nn.ERROR:void 0},{value:"am",label:c.formatMessage({id:"udr_policy_data_profiles.form.tabs.am"}),status:w.subscCats?nn.ERROR:void 0}],value:o,onChange:f}),o==="sm"&&a.jsx(oi,{name:"snssaiList",children:k=>{const{remove:A,push:P,form:T}=k,{getFieldMeta:j}=T,R=()=>{P({_uuid:gn(),sst:"",sd:"",dnnList:[]})},D=N=>{A(N)},O=N=>!j(N)?.error;return a.jsx(pr,{error:!O("snssaiList"),title:"S-NSSAIs",headerActionsComponent:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Add,{}),text:c.formatMessage({id:"udr_policy_data_profiles.form.snssai_add"}),type:"button",onClick:R,disabled:!Ue(ie.provisioning)}),elevation:2,children:a.jsxs(Kt,{children:[x.snssaiList.length===0&&a.jsx(Lr,{severity:"info",message:c.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}}),a.jsx(Jn,{exclusive:!1,spacing:2,children:x.snssaiList.map((N,F)=>a.jsx(xr,{title:ljt(N.sst,N.sd||"",F),error:!O(`snssaiList[${F}]`),elevation:3,actionsComponent:a.jsx(Mn,{title:c.formatMessage({id:"udr_policy_data_profiles.form.dnn_remove"}),children:a.jsx("div",{children:a.jsx(Zr,{component:"span",role:"button",size:"small",onClick:()=>D(F),disabled:!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})})}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:{xs:"column",md:"row"},children:[a.jsx(Ke,{name:`snssaiList[${F}].sst`,children:U=>{const{field:z,meta:H}=U;return a.jsx(dt,{...z,label:c.formatMessage({id:"udr_policy_data_profiles.form.sst"}),size:"small",error:!!H.error,helperText:H.error,sx:{flex:1}})}}),a.jsx(Ke,{name:`snssaiList[${F}].sd`,children:U=>{const{field:z,meta:H}=U;return a.jsx(dt,{...z,label:c.formatMessage({id:"udr_policy_data_profiles.form.sd"}),size:"small",error:!!H.error,helperText:H.error,sx:{flex:1}})}})]}),a.jsx(oi,{name:`snssaiList[${F}].dnnList`,children:U=>{const{remove:z,push:H}=U,W=q=>{z(q)},K=()=>{H({_uuid:gn(),dnn:"",allowedServices:[]})};return a.jsx(pr,{error:!O(`snssaiList[${F}].dnnList`),title:"DNNs",headerActionsComponent:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Add,{}),text:c.formatMessage({id:"udr_policy_data_profiles.form.dnn_add"}),type:"button",onClick:K,disabled:!Ue(ie.provisioning)}),elevation:4,children:a.jsxs(Kt,{children:[N.dnnList.length===0&&a.jsx(Lr,{severity:"info",message:c.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}}),N.dnnList.length>0&&a.jsx(Jn,{exclusive:!1,spacing:2,children:N.dnnList.map((q,X)=>a.jsx(xr,{elevation:5,title:cjt(q.dnn,X),error:!O(`snssaiList[${F}].dnnList[${X}]`),actionsComponent:a.jsx(Mn,{title:c.formatMessage({id:"udr_policy_data_profiles.form.snssai_remove"}),children:a.jsx("div",{children:a.jsx(Zr,{component:"span",role:"button",size:"small",onClick:()=>W(X),disabled:!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})})}),content:a.jsxs(te,{direction:{xs:"column",md:"row"},children:[a.jsx(Ke,{name:`snssaiList[${F}].dnnList[${X}].dnn`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(dt,{...Y,label:c.formatMessage({id:"udr_policy_data_profiles.form.dnn"}),size:"small",error:!!Z.error,helperText:Z.error,sx:{flex:1}})}}),a.jsx(Ke,{name:`snssaiList[${F}].dnnList[${X}].allowedServices`,children:Q=>{const{field:Y,meta:Z,form:re}=Q,{setFieldValue:fe}=re;return a.jsx(rn,{value:Y.value,name:Y.name,label:c.formatMessage({id:"udr_policy_data_profiles.form.allowedServices"}),multiple:!0,size:"small",freeSolo:!0,options:["ims","mcptt"],onChange:(de,se)=>{fe(Y.name,se)},error:!!Z.error,helperText:Z.error,sx:{flex:1}})}})]})},`${q?._uuid}`))})]})})}})]})},`${N._uuid}`))})]})})}}),o==="am"&&a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsx(Ke,{name:"subscCats",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.subscCats"}),size:"small",error:!!P.error,helperText:P.error,fullWidth:!0})}})})}),a.jsx(Xr,{data:i})]}),a.jsx(Ze,{type:"submit",text:c.formatMessage({id:"udr_policy_data_profiles.form.submit"}),disabled:!C,loading:s,sx:{alignSelf:"flex-start"}})]})})},e[6]=i,e[7]=c,e[8]=u,e[9]=s,e[10]=o,e[11]=g):g=e[11];let y;return e[12]!==_||e[13]!==m||e[14]!==g?(y=a.jsx(Wr,{initialValues:m,validationSchema:ujt,onSubmit:_,children:g}),e[12]=_,e[13]=m,e[14]=g,e[15]=y):y=e[15],y},fjt=()=>{const t=he.c(31),e=Ye(),{submit:r,data:n,state:s}=gr(),{id:i}=ko(),{udrPolicyDataProfile:o}=zn(),{openConfirmDialog:l}=di(),c=i&&i!=="new";let u;t[0]!==r?(u=async P=>{r(P,{method:"POST",encType:"application/json",action:"create"})},t[0]=r,t[1]=u):u=t[1];const d=u;let f;t[2]!==r?(f=async P=>{r(P,{method:"PUT",encType:"application/json",action:"update"})},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==r?(m=async P=>{r({id:P},{method:"DELETE",encType:"application/json",action:"delete"})},t[4]=r,t[5]=m):m=t[5];const h=m;let _;t[6]!==d||t[7]!==c||t[8]!==p?(_=async P=>{c?await p(P):await d(P)},t[6]=d,t[7]=c,t[8]=p,t[9]=_):_=t[9];const g=_;let y;t[10]!==i||t[11]!==e||t[12]!==c||t[13]!==l||t[14]!==h?(y=()=>{l({text:e.formatMessage({id:"udr_policy_data_profiles.toolbar.delete"}),onConfirm:()=>{i&&c&&h(i)}})},t[10]=i,t[11]=e,t[12]=c,t[13]=l,t[14]=h,t[15]=y):y=t[15];const b=y;let x;t[16]!==b||t[17]!==e||t[18]!==c?(x=c&&a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),text:e.formatMessage({id:"nrf_static_profiles.actions.delete"}),onClick:()=>void b()})}),t[16]=b,t[17]=e,t[18]=c,t[19]=x):x=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"500px"}}),t[20]=w):w=t[20];let C;t[21]!==n||t[22]!==g||t[23]!==s?(C=P=>a.jsx(djt,{initialValues:P,onSubmit:g,loading:s!=="idle",error:n}),t[21]=n,t[22]=g,t[23]=s,t[24]=C):C=t[24];let k;t[25]!==C||t[26]!==o?(k=a.jsx(Kt,{children:a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:o,children:C})})}),t[25]=C,t[26]=o,t[27]=k):k=t[27];let A;return t[28]!==x||t[29]!==k?(A=a.jsxs(a.Fragment,{children:[x,k]}),t[28]=x,t[29]=k,t[30]=A):A=t[30],A},tn=Pr();var ame=(t=>(t.NR="NR",t.EUTRA="EUTRA",t.WLAN="WLAN",t.VIRTUAL="VIRTUAL",t.NBIOT="NBIOT",t.WIRELINE="WIRELINE",t.WIRELINE_CABLE="WIRELINE_CABLE",t.WIRELINE_BBF="WIRELINE_BBF",t.LTE="LTE-M",t.NR_U="NR_U",t.EUTRA_U="EUTRA_U",t.TRUSTED_N3GA="TRUSTED_N3GA",t.TRUSTED_WLAN="TRUSTED_WLAN",t.UTRA="UTRA",t.GERA="GERA",t))(ame||{});const pjt=Object.keys(ame);var fp=(t=>(t.DATA="DATA",t.REJECT="REJECT",t.SOR_LIGHT="SOR_LIGHT",t.SOR_AGGRESSIVE="SOR_AGGRESSIVE",t))(fp||{});const mjt=Object.keys(fp);var lme=(t=>(t.DATA_OVER_USER_PLANE_PREFERRED="DATA_OVER_USER_PLANE_PREFERRED",t.DATA_OVER_CONTROL_PLANE_PREFERRED="DATA_OVER_CONTROL_PLANE_PREFERRED",t))(lme||{});const hjt=Object.keys(lme);var cme=(t=>(t.REQUIRED="REQUIRED",t.PREFERRED="PREFERRED",t.NOT_NEEDED="NOT_NEEDED",t))(cme||{});const Wee=Object.keys(cme);var ume=(t=>(t.ALLOWED_AREAS="ALLOWED_AREAS",t.NOT_ALLOWED_AREAS="NOT_ALLOWED_AREAS",t))(ume||{});const gjt=Object.keys(ume);var G$=(t=>(t.UNABLE_TO_COMPLY="UNABLE_TO_COMPLY",t.ROAMING_NOT_ALLOWED_ODB_ALL_APN="ROAMING_NOT_ALLOWED_ODB_ALL_APN",t))(G$||{}),W$=(t=>(t.UNEXPECTED_DATA_VALUE="UNEXPECTED_DATA_VALUE",t.SYSTEM_FAILURE="SYSTEM_FAILURE",t))(W$||{});const _jt={uuid:"",description:"",plmnRules:[]},N3=["bps","Kbps","Mbps","Gbps","Tbps"],Yee=["IPV4","IPV4V6","IPV6","UNSTRUCTURED","ETHERNET"],vjt=["ONLY_PACKET","PACKET_AND_CIRCUIT","ONLY_CIRCUIT","PACKET_WITH_CIRCUIT_ONLY_FOR_SMS"],yjt=["NOT_PREEMPT","MAY_PREEMPT"],bjt=["NOT_PREEMPTABLE","PREEMPTABLE"];function dh({sst:t,sd:e}){if(!t&&!e)return;let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}function xjt({dnnConfigurations:t,defaultDnn:e}){return Object.entries(t).map(([r,n])=>({_uuid:e&&e.dnnName===r?e._uuid:gn(),dnnName:r,"5qi":n["5gQosProfile"]?.["5qi"]||"","3gppChargingCharacteristics":n["3gppChargingCharacteristics"]||"",preferredDataMode:n["x-ath-preferredDataMode"]||[],upSecurityUpConfid:n.upSecurity?.upConfid||"",upSecurityUpIntegr:n.upSecurity?.upIntegr||"",uplink:n.sessionAmbr?.uplink||"",downlink:n.sessionAmbr?.downlink||"",preemptCap:n["5gQosProfile"]?.arp?.preemptCap,preemptVuln:n["5gQosProfile"]?.arp?.preemptVuln,arpPriorityLevel:n["5gQosProfile"]?.arp?.priorityLevel||"",defaultSessionType:n.pduSessionTypes?.defaultSessionType||"",allowedSessionTypes:n.pduSessionTypes?.allowedSessionTypes||[],allowedSscModes:n.sscModes?.allowedSscModes||[],defaultSscMode:"SSC_MODE_1",APNOIReplacement:n["x-ath-APNOIReplacement"]||""}))}function Sjt({data:t,default4gSlice:e,defaultSlices:r}){const n=t?.smfSelData?.subscribedSnssaiInfos?Object.entries(t.smfSelData.subscribedSnssaiInfos)?.map(([o])=>{const[l,c]=o.split("-");return{sd:c,sst:+l}}):[],s=t?.smfSelData?.subscribedSnssaiInfos?Object.entries(t.smfSelData.subscribedSnssaiInfos)?.map(([o,l])=>{const[c,u]=o.split("-");return{sd:u,sst:c,dnnList:l.dnnInfos?.map(f=>({dnnName:f.dnn,isDefault:f.defaultDnnIndicator,_uuid:gn()}))}}).filter(o=>!!o):[];return t?.smData?.map(o=>{if(o.singleNssai.sd||o.singleNssai.sst){const{sd:l,sst:c}=o.singleNssai,u=({sst:p,sd:m})=>{const h=!!e&&p===e.sst&&m===e.sd,_=r.find(g=>p===g.sst&&m===g.sd);return h?e?._uuid:_?_._uuid:gn()},d=s?.reduce((p,m)=>{if(p)return p;if((!m.sd||m.sd&&m.sd===l)&&+m.sst===c&&m?.dnnList?.find(h=>h.isDefault)){const h=m?.dnnList?.find(_=>_.isDefault);return h&&{_uuid:h._uuid,dnnName:h.dnnName}}},void 0);return{_uuid:u({sst:c,sd:l}),sd:l,sst:c,"3gppChargingCharacteristics":o["3gppChargingCharacteristics"]||"",defaultDnnId:d?._uuid||"",isDefault:!!r.find(p=>p.sd===l&&p.sst===c),isEnabled:!!n.find(p=>p.sd===l&&p.sst===c),dnnList:o.dnnConfigurations&&xjt({dnnConfigurations:o.dnnConfigurations,defaultDnn:d})}}else return}).filter(o=>!!o)??[]}function wjt(t){return t?Object.keys(t?.plmn_rules_map):[]}function Y$(t,e){return t?t?.plmn_rules_map?.[e]?.data?.smData?.reduce((r,n)=>{const s=n.dnnConfigurations&&Object.keys(n.dnnConfigurations)?.map(i=>({sliceId:dh({sd:n.singleNssai.sd,sst:n.singleNssai.sst}),dnnName:i})).filter(i=>!!i);return s?[...r,...s]:r},[])||[]:[]}function Cjt({_uuid:t,data:e,pattern:r,action:n,data_from:s,...i}){if(!e&&s)return{_uuid:t,action:n,pattern:r||"",defaultSliceIds:[],default4gSliceId:"",isServiceAreaRestrictionActive:!1,slices:[],smsSubscribed:!1,smsMtSubscribed:!1,smsMoSubscribed:!1,data_from:s,isDataFrom:!!s,...i};if(!e)return{_uuid:t,action:n,pattern:r||"",defaultUplink:"",defaultDownlink:"",defaultSliceIds:[],default4gSliceId:"",networkAccessMode:"",coreNetworkTypeRestrictions:[],rfspIndex:"",regionalSubscriptionZoneCodes:[],isServiceAreaRestrictionActive:!1,serviceAreaRestrictionType:"ALLOWED_AREAS",serviceAreaRestrictionAreas:[],forbiddenAreas:[],closedSubscriberGroup:[],ratRestrictions:[],APNOIReplacement:"",ueUsageType:"",subsRegTimer:"",slices:[],smsSubscribed:!1,smsMtSubscribed:!1,smsMoSubscribed:!1,diameter_error:"",map_error:"",max_attempts:"",tolerance_period_sec:"",data_from:"",isDataFrom:!1};const o=e.smData?.map(m=>{const{singleNssai:{sd:h,sst:_}}=m;if(_)return{sd:h,sst:_}}).filter(m=>!!m),c=(e.amData?.nssai?.defaultSingleNssais?.map(m=>{const{sd:h,sst:_}=m;if(_)return{sd:h,sst:_}}).filter(m=>!!m&&!!o?.find(h=>h.sd===m.sd&&h.sst===m.sst))??[])?.map(m=>({_uuid:gn(),sd:m.sd,sst:m.sst})),u=e.amData?.nssai?.["x-ath-nssai"],d=u&&c?.length?c.find(m=>m.sd===u.sd&&m.sst===u.sst):void 0,f=u?{_uuid:d?d._uuid:gn(),sd:u.sd,sst:u.sst}:void 0;return{_uuid:gn(),action:n,pattern:r,defaultUplink:e?.amData?.subscribedUeAmbr?.uplink||"",defaultDownlink:e?.amData?.subscribedUeAmbr?.downlink||"",defaultSliceIds:c?.map(m=>m._uuid),default4gSliceId:f?._uuid||"",networkAccessMode:e?.amData?.["x-ath-networkAccessMode"]||"",coreNetworkTypeRestrictions:e?.amData?.coreNetworkTypeRestrictions||[],rfspIndex:e?.amData?.rfspIndex||"",regionalSubscriptionZoneCodes:e?.amData?.["x-ath-regionalSubscriptionZoneCodes"]||[],isServiceAreaRestrictionActive:!!e?.amData?.serviceAreaRestriction?.restrictionType,serviceAreaRestrictionType:e?.amData?.serviceAreaRestriction?.restrictionType||"ALLOWED_AREAS",serviceAreaRestrictionAreas:e?.amData?.serviceAreaRestriction?.areas?.map(({["x-ath-name"]:m,tacs:h})=>({_uuid:gn(),name:m,tacs:h}))??[],forbiddenAreas:e?.amData?.forbiddenAreas?.map(({["x-ath-name"]:m,tacs:h})=>({_uuid:gn(),name:m,tacs:h}))??[],closedSubscriberGroup:e?.amData?.["x-ath-closedSubscriberGroup"]?.map(m=>({_uuid:gn(),csg_id:m.csg_id||"",visited_plmn:m.visited_plmn||""}))??[],ratRestrictions:e?.amData?.ratRestrictions||[],APNOIReplacement:e?.amData?.["x-ath-APNOIReplacement"]||"",ueUsageType:e?.amData?.ueUsageType??"",subsRegTimer:e?.amData?.subsRegTimer??"",slices:Sjt({data:e,default4gSlice:f,defaultSlices:c}),smsSubscribed:e?.smsSubsData?.smsSubscribed??!1,smsMtSubscribed:e?.smsMngData?.mtSmsSubscribed??!1,smsMoSubscribed:e?.smsMngData?.moSmsSubscribed??!1,isDataFrom:!!s,...i}}function Ajt(t){if(!t||!Object.keys(t).length)return[];const e=Object.entries(t).map(([n,{action:s,data:i,data_from:o,...l}])=>Cjt({_uuid:gn(),pattern:n,action:s,data:i,data_from:o,...l}));return e.map(n=>n.data_from?{...n,data_from:e.find(s=>s.pattern===n.data_from)?._uuid}:n)}function kjt(t){if(!t)return _jt;const e=Ajt(t.plmn_rules_map),r={uuid:t.uuid,description:t.description||"",plmnRules:e};return Ni.cloneDeep(r)}const Mjt=t=>{const e=t.filter(r=>r.isEnabled).reduce((r,n)=>{const s=dh({sd:n.sd,sst:n.sst}),i=n.dnnList?.map(o=>({defaultDnnIndicator:n.defaultDnnId===o._uuid,dnn:o.dnnName}))||[];return!s||!i.length?r:{...r,[s]:{dnnInfos:i}}},{});return Object.entries(e).length?{subscribedSnssaiInfos:e}:void 0},Pjt=t=>t.map(e=>{const{sd:r,sst:n}=e,s=e.dnnList?.reduce((i,o)=>{const{dnnName:l,...c}=o,u=!!c["5qi"]||!!c.preemptCap||!!c.preemptVuln||!!c.arpPriorityLevel,d=!!c.allowedSessionTypes?.length,f=!!c.allowedSscModes?.length,p=!!c.uplink&&c.downlink,m=!!c.upSecurityUpIntegr&&!!c.upSecurityUpConfid;return{...i,[l]:{pduSessionTypes:{defaultSessionType:c.defaultSessionType,...d&&{allowedSessionTypes:c.allowedSessionTypes}},sscModes:{defaultSscMode:c.defaultSscMode||"SSC_MODE_1",...f&&{allowedSscModes:c.allowedSscModes}},...c.APNOIReplacement&&{"x-ath-APNOIReplacement":c.APNOIReplacement},...p&&{sessionAmbr:{downlink:c.downlink,uplink:c.uplink}},...u&&{"5gQosProfile":{arp:{preemptCap:c.preemptCap,preemptVuln:c.preemptVuln,priorityLevel:c.arpPriorityLevel},"5qi":c["5qi"]}},...c["3gppChargingCharacteristics"]&&{"3gppChargingCharacteristics":c["3gppChargingCharacteristics"]},...c.preferredDataMode&&{"x-ath-preferredDataMode":c.preferredDataMode},...m&&{upSecurity:{upConfid:c.upSecurityUpConfid,upIntegr:c.upSecurityUpIntegr}}}}},{})||{};return{singleNssai:{...r&&{sd:r},sst:+n},...e["3gppChargingCharacteristics"]&&{"3gppChargingCharacteristics":e["3gppChargingCharacteristics"]},...!!Object.entries(s)?.length&&{dnnConfigurations:s}}});function jjt(t){const e=t.slices.filter(d=>t.defaultSliceIds.includes(d._uuid)).map(d=>({...d.sd&&{sd:d.sd},sst:+d.sst})).filter(d=>!!d),r=t.slices.map(d=>t.default4gSliceId===d._uuid?{...d.sd&&{sd:d.sd},sst:+d.sst}:void 0).find(d=>!!d),n=t.slices.map(d=>({...d.sd&&{sd:d.sd},sst:+d.sst})).filter(d=>!!d),s=({singleNssais:d,defaultSingleNssais:f,default4gSingleNssai:p,defaultUplink:m,defaultDownlink:h,networkAccessMode:_,coreNetworkTypeRestrictions:g,rfspIndex:y,forbiddenAreas:b,isServiceAreaRestrictionActive:x,serviceAreaRestrictionType:w,serviceAreaRestrictionAreas:C,regionalSubscriptionZoneCodes:k,closedSubscriberGroup:A,ratRestrictions:P,APNOIReplacement:T,ueUsageType:j,subsRegTimer:R,canAddNetworkAccessMode:D,canAddAPNOIReplacement:O})=>{const N=!!f?.length,F=!!d?.length,U=!!p,z=!!h&&!!m,H=N||F||U,W=!!g?.length,K=!!P?.length,q=!!k?.length,X=!!A?.length,Q=!!b?.length;return!H&&!z&&!_&&!T&&typeof j!="number"&&typeof R!="number"&&!W&&!K&&!q&&!X&&!y&&!x&&!Q?void 0:{...H&&{nssai:{...N&&{defaultSingleNssais:f},...F&&{singleNssais:d},...U&&{"x-ath-nssai":p}}},...z&&{subscribedUeAmbr:{downlink:h,uplink:m}},..._&&D&&{"x-ath-networkAccessMode":_},...T&&O&&{"x-ath-APNOIReplacement":T},...typeof j=="number"&&j>=0&&{ueUsageType:j},...typeof R=="number"&&R>=0&&{subsRegTimer:R},...W&&{coreNetworkTypeRestrictions:g},...K&&{ratRestrictions:P},...q&&{"x-ath-regionalSubscriptionZoneCodes":k},...X&&{"x-ath-closedSubscriberGroup":A.map(({csg_id:Z,visited_plmn:re})=>({csg_id:+Z,...re&&{visited_plmn:re}}))},...!!y&&{rfspIndex:y},...x&&{serviceAreaRestriction:{restrictionType:w,areas:C.map(({name:Z,tacs:re})=>({name:Z,tacs:re}))}},...Q&&{forbiddenAreas:b.map(({name:Z,tacs:re})=>({name:Z,tacs:re}))}}},i=({smsSubscribed:d,smsMoSubscribed:f,smsMtSubscribed:p})=>({smsSubsData:{smsSubscribed:d},smsMngData:{moSmsSubscribed:f,mtSmsSubscribed:p}}),o=s({default4gSingleNssai:r,singleNssais:n,defaultSingleNssais:e,defaultUplink:t.defaultUplink,defaultDownlink:t.defaultDownlink,networkAccessMode:t.networkAccessMode,coreNetworkTypeRestrictions:t.coreNetworkTypeRestrictions,closedSubscriberGroup:t.closedSubscriberGroup,rfspIndex:t.rfspIndex,regionalSubscriptionZoneCodes:t.regionalSubscriptionZoneCodes,ratRestrictions:t.ratRestrictions,forbiddenAreas:t.forbiddenAreas,isServiceAreaRestrictionActive:t.isServiceAreaRestrictionActive,serviceAreaRestrictionType:t.serviceAreaRestrictionType,serviceAreaRestrictionAreas:t.serviceAreaRestrictionAreas,APNOIReplacement:t.APNOIReplacement,ueUsageType:t.ueUsageType,subsRegTimer:t.subsRegTimer,canAddNetworkAccessMode:!!t.default4gSliceId,canAddAPNOIReplacement:!0}),l=Pjt(t.slices),c=Mjt(t.slices),u=i(t);return{...!!o&&{amData:o},...!!l?.length&&{smData:l},...!!c&&{smfSelData:c},...u}}function Tjt(t){return t.reduce((e,{pattern:r,action:n,diameter_error:s,map_error:i,max_attempts:o,tolerance_period_sec:l,data_from:c,...u})=>({...e,[r]:{action:n,...u.isDataFrom?{data_from:t.find(d=>d._uuid===c)?.pattern}:{data:jjt(u)},...n==="SOR_LIGHT"&&!!s&&{diameter_error:s},...n==="SOR_LIGHT"&&!!i&&{map_error:i},...n==="SOR_LIGHT"&&!!o&&{max_attempts:o},...(n==="SOR_LIGHT"||n==="SOR_AGGRESSIVE")&&!!l&&{tolerance_period_sec:l}}}),{})}function Ejt({uuid:t,description:e,plmnRules:r}){return{uuid:t,...e&&{description:e},plmn_rules_map:Tjt(r)}}function dme({sst:t,sd:e},r){const n=dh({sst:t,sd:e});return n||`Slice #${r+1}`}const Rjt=dr().shape({uuid:We().required(tn.formatMessage({id:"validation.required"})).matches(new RegExp(`${$.regex.idString}|${$.regex.uuid}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.uuid_format"},{value:`${$.regex.idString}|${$.regex.uuid}`})),description:We().matches(new RegExp($.regex.descriptionRm),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^[ -~]{1,128}"})),plmnRules:yr().of(dr().shape({action:We().matches(new RegExp(`^${Object.values(fp).join("|")}$`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:`^${Object.values(fp).join("|")}$`})),max_attempts:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max_attempts"})),tolerance_period_sec:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.tolerance_period_sec"})),pattern:We().matches(new RegExp($.regex.plmnRuleStr)).required(tn.formatMessage({id:"validation.required"})),data_from:We().when("isDataFrom",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_rule"})):e),defaultDownlink:We().when("default4gSliceId",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_default4g"})):e).when("defaultUplink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_downlink"})):e),defaultUplink:We().when("default4gSliceId",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_default4g"})):e).when("defaultDownlink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_uplink"})):e),networkAccessMode:We().nullable(),coreNetworkTypeRestrictions:yr().of(We()),regionalSubscriptionZoneCodes:yr().of(We().matches(new RegExp(`${$.regex.regionalSubscriptionZoneCodes}`))).max(10),closedSubscriberGroup:yr().of(dr().shape({csg_id:kn().required(tn.formatMessage({id:"validation.required"})).min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})).max(134217727),visited_plmn:We().matches(new RegExp($.regex.plmnVisited))})),ratRestrictions:yr().of(We()),forbiddenAreas:yr().of(dr().shape({name:We(),tacs:yr().of(We().matches(new RegExp($.regex.tac))).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionAreas"}))})),isServiceAreaRestrictionActive:li(),serviceAreaRestrictionType:We().when("isServiceAreaRestrictionActive",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionType"})):e),serviceAreaRestrictionAreas:yr().of(dr().shape({name:We(),tacs:yr().of(We().matches(new RegExp($.regex.tac))).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})).required(tn.formatMessage({id:"validation.required"}))})).when("isServiceAreaRestrictionActive",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionType"})).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionAreas"})):e),rfspIndex:kn().min(1).max(256),APNOIReplacement:We().nullable().matches(new RegExp(`${$.regex.apnOi}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^([a-zA-Z0-9]\\.|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]\\.)*mnc[0-9]{3}\\.mcc[0-9]{3}\\.gprs$"})),ueUsageType:kn().min(0),subsRegTimer:kn().min(0),default4gSliceId:We(),defaultSliceIds:yr().of(We()).when("slices",(t,e)=>t?.length>0?e.min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})):e),slices:yr().of(dr().shape({sst:kn().min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:0})).max(255,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"},{value:255})).required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),sd:We().matches(new RegExp(`${$.regex.sd}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^[a-f0-9]{6}$"})),isEnabled:li(),"3gppChargingCharacteristics":We().matches(new RegExp($.regex["3gppChargingCharacteristics"])),defaultDnnId:We(),dnnList:yr().of(dr().shape({dnnName:We().required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),downlink:We().when("uplink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_downlink"})):e),uplink:We().when("downlink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_uplink"})):e),"3gppChargingCharacteristics":We().matches(new RegExp($.regex["3gppChargingCharacteristics"])),preferredDataMode:yr().of(We()),upSecurityUpConfid:We().when("upSecurityUpIntegr",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_upSecurityUpConfid"})):e),upSecurityUpIntegr:We().when("upSecurityUpConfid",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_upSecurityUpIntegr"})):e),"5qi":kn().max(255,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"})).min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"})).when(["preemptCap","preemptVuln","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),preemptCap:We().when(["5qi","preemptVuln","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),preemptVuln:We().when(["preemptCap","5qi","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),arpPriorityLevel:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"})).max(15,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"})).when(["preemptCap","preemptVuln","5qi"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),allowedSessionTypes:yr().of(We()),defaultSessionType:We().required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),APNOIReplacement:We().nullable().matches(new RegExp(`${$.regex.apnOi}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^([a-zA-Z0-9]\\.|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]\\.)*mnc[0-9]{3}\\.mcc[0-9]{3}\\.gprs$"}))},[["uplink","downlink"],["upSecurityUpConfid","upSecurityUpIntegr"],["5qi","preemptCap"],["5qi","preemptVuln"],["5qi","arpPriorityLevel"],["preemptCap","5qi"],["preemptCap","preemptVuln"],["preemptCap","arpPriorityLevel"],["preemptVuln","5qi"],["preemptVuln","preemptCap"],["preemptVuln","arpPriorityLevel"],["arpPriorityLevel","5qi"],["arpPriorityLevel","preemptCap"],["arpPriorityLevel","preemptVuln"]]))})).test({name:"unique-slices-id",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.unique_slices_id"}),test:t=>t?.length===0||t&&t.length===[...new Set(t.map(e=>`${e.sst}-${e.sd}`))].length})},[["defaultUplink","defaultDownlink"]]).test({name:"default4g-slice-with-pdn-enabled",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_pdn_enabled"}),test:(t,e)=>t.default4gSliceId?t.slices?.find(s=>s._uuid===t.default4gSliceId&&s.isEnabled)?t.slices?.find(s=>s._uuid===t.default4gSliceId&&!!s.dnnList?.find(i=>!!i["5qi"]))?!0:e.createError({path:`${e.path}.default4gSliceId`,message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_5gQosProfile"})}):e.createError({path:`${e.path}.default4gSliceId`,message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_pdn_enabled"})}):!0})).test({name:"unique-plmn-rule-pattern",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.unique_plmn_rule_id"}),test:t=>t?.length===0||t&&t.length===[...new Set(t.map(e=>`${e.pattern}`))].length})},[["defaultUplink","defaultDownlink"]]),F3=t=>{const e=he.c(32),{fieldName:r,fieldValue:n,fieldLabel:s,setFieldValue:i,selectOptions:o,selectInitialValue:l,disabled:c,canWrite:u,meta:d}=t,[f,p]=I.useState(l);let m;e[0]!==r||e[1]!==i||e[2]!==f?(m=D=>{const O=D.target.value;O?.split(" ")[0]?i(r,`${O?.split(" ")[0]} ${f}`):i(r,"")},e[0]=r,e[1]=i,e[2]=f,e[3]=m):m=e[3];const h=m;let _;e[4]!==r||e[5]!==n||e[6]!==i?(_=D=>{p(D.target.value),n?.split(" ")[0]&&i(r,`${n?.split(" ")[0]} ${D.target.value}`)},e[4]=r,e[5]=n,e[6]=i,e[7]=_):_=e[7];const g=_;let y,b;e[8]!==l?(y=()=>{p(l)},b=[p,l],e[8]=l,e[9]=y,e[10]=b):(y=e[9],b=e[10]),I.useEffect(y,b);let x;e[11]!==n?(x=n?.split(" ")[0]||"",e[11]=n,e[12]=x):x=e[12];const w=!!d.error,C=c||!u;let k;e[13]!==s||e[14]!==r||e[15]!==d.error||e[16]!==h||e[17]!==x||e[18]!==w||e[19]!==C?(k=a.jsx(dt,{name:r,value:x,label:s,size:"small",type:"number",fullWidth:!0,error:w,helperText:d.error,disabled:C,onChange:h}),e[13]=s,e[14]=r,e[15]=d.error,e[16]=h,e[17]=x,e[18]=w,e[19]=C,e[20]=k):k=e[20];let A;e[21]===Symbol.for("react.memo_cache_sentinel")?(A={width:"100px"},e[21]=A):A=e[21];const P=c||!u;let T;e[22]!==o?(T=o.map(Ijt),e[22]=o,e[23]=T):T=e[23];let j;e[24]!==g||e[25]!==P||e[26]!==T||e[27]!==f?(j=a.jsx(gt,{sx:A,children:a.jsx(qs,{label:"Unit",value:f,onChange:g,disabled:P,size:"small",children:T})}),e[24]=g,e[25]=P,e[26]=T,e[27]=f,e[28]=j):j=e[28];let R;return e[29]!==j||e[30]!==k?(R=a.jsxs(te,{direction:"row",spacing:.2,nowrap:!0,justify:"flex-start",children:[k,j]}),e[29]=j,e[30]=k,e[31]=R):R=e[31],R};function Ijt(t){return a.jsx(En,{value:t,children:t},t)}const Djt=t=>{const e=he.c(120),{i:r,j:n,plmnIndex:s}=t,i=Ye(),o=`plmnRules[${s}].slices[${r}].dnnList[${n}].dnnName`;let l;e[0]!==i?(l=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct,handleBlur:Et}=ft;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.name"}),onBlur:at=>{const $t=at.target.value||"";Ct(Ne.name,$t.trim()),Et(at)},size:"small",error:!!Oe.error,helperText:Oe.error})},e[0]=i,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=a.jsx(Ur,{name:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];const u=`plmnRules[${s}].slices[${r}].dnnList[${n}].APNOIReplacement`;let d;e[5]!==i?(d=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.APNOIReplacement"}),size:"small",error:!!Oe.error,helperText:Oe.error})},e[5]=i,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=a.jsx(Ur,{name:u,children:d}),e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=`plmnRules[${s}].slices[${r}].dnnList[${n}].3gppChargingCharacteristics`;let m;e[10]!==i?(m=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.3gppChargingCharacteristics"}),size:"small",error:!!Oe.error,helperText:Oe.error})},e[10]=i,e[11]=m):m=e[11];let h;e[12]!==p||e[13]!==m?(h=a.jsx(Ur,{name:p,children:m}),e[12]=p,e[13]=m,e[14]=h):h=e[14];const _=`plmnRules[${s}].slices[${r}].dnnList[${n}].preferredDataMode`;let g;e[15]!==i?(g=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.preferredDataMode"}),multiple:!0,size:"small",value:Ne.value,options:[...hjt],onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,Ne.value)},error:!!Oe.error,helperText:Oe.error})},e[15]=i,e[16]=g):g=e[16];let y;e[17]!==_||e[18]!==g?(y=a.jsx(Ur,{name:_,children:g}),e[17]=_,e[18]=g,e[19]=y):y=e[19];let b;e[20]!==i?(b=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.aggregated_maximum_bitrate.title"}),e[20]=i,e[21]=b):b=e[21];const x=`plmnRules[${s}].slices[${r}].dnnList[${n}].downlink`;let w;e[22]!==i?(w=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(F3,{fieldValue:Ne.value,fieldName:Ne.name,fieldLabel:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.downlink"}),setFieldValue:Ct,selectInitialValue:Ne.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:Oe})},e[22]=i,e[23]=w):w=e[23];let C;e[24]!==x||e[25]!==w?(C=a.jsx(Ur,{name:x,children:w}),e[24]=x,e[25]=w,e[26]=C):C=e[26];const k=`plmnRules[${s}].slices[${r}].dnnList[${n}].uplink`;let A;e[27]!==i?(A=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(F3,{fieldValue:Ne.value,fieldName:Ne.name,fieldLabel:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.uplink"}),setFieldValue:Ct,selectInitialValue:Ne.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:Oe})},e[27]=i,e[28]=A):A=e[28];let P;e[29]!==k||e[30]!==A?(P=a.jsx(Ur,{name:k,children:A}),e[29]=k,e[30]=A,e[31]=P):P=e[31];let T;e[32]!==C||e[33]!==P?(T=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[C,P]})}),e[32]=C,e[33]=P,e[34]=T):T=e[34];let j;e[35]!==b||e[36]!==T?(j=a.jsx(pr,{title:b,elevation:7,children:T}),e[35]=b,e[36]=T,e[37]=j):j=e[37];let R;e[38]!==i?(R=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.qos.title"}),e[38]=i,e[39]=R):R=e[39];const D=`plmnRules[${s}].slices[${r}].dnnList[${n}].5qi`;let O;e[40]!==i?(O=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.5qi"}),size:"small",type:"number",error:!!Oe.error,helperText:Oe.error})},e[40]=i,e[41]=O):O=e[41];let N;e[42]!==D||e[43]!==O?(N=a.jsx(Ur,{name:D,children:O}),e[42]=D,e[43]=O,e[44]=N):N=e[44];let F;e[45]!==i?(F=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.qos.arp.title"}),e[45]=i,e[46]=F):F=e[46];const U=`plmnRules[${s}].slices[${r}].dnnList[${n}].preemptCap`;let z;e[47]!==i?(z=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.preemptCap"}),size:"small",value:Ne.value||null,options:yjt,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[47]=i,e[48]=z):z=e[48];let H;e[49]!==U||e[50]!==z?(H=a.jsx(Ur,{name:U,children:z}),e[49]=U,e[50]=z,e[51]=H):H=e[51];const W=`plmnRules[${s}].slices[${r}].dnnList[${n}].preemptVuln`;let K;e[52]!==i?(K=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.preemptVuln"}),size:"small",value:Ne.value||null,options:bjt,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[52]=i,e[53]=K):K=e[53];let q;e[54]!==W||e[55]!==K?(q=a.jsx(Ur,{name:W,children:K}),e[54]=W,e[55]=K,e[56]=q):q=e[56];const X=`plmnRules[${s}].slices[${r}].dnnList[${n}].arpPriorityLevel`;let Q;e[57]!==i?(Q=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.priorityLevel"}),size:"small",type:"number",error:!!Oe.error,helperText:Oe.error})},e[57]=i,e[58]=Q):Q=e[58];let Y;e[59]!==X||e[60]!==Q?(Y=a.jsx(Ur,{name:X,children:Q}),e[59]=X,e[60]=Q,e[61]=Y):Y=e[61];let Z;e[62]!==H||e[63]!==q||e[64]!==Y?(Z=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[H,q,Y]})}),e[62]=H,e[63]=q,e[64]=Y,e[65]=Z):Z=e[65];let re;e[66]!==F||e[67]!==Z?(re=a.jsx(pr,{title:F,elevation:8,children:Z}),e[66]=F,e[67]=Z,e[68]=re):re=e[68];let fe;e[69]!==N||e[70]!==re?(fe=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[N,re]})}),e[69]=N,e[70]=re,e[71]=fe):fe=e[71];let de;e[72]!==R||e[73]!==fe?(de=a.jsx(pr,{title:R,elevation:7,children:fe}),e[72]=R,e[73]=fe,e[74]=de):de=e[74];let se;e[75]!==i?(se=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.session_types.title"}),e[75]=i,e[76]=se):se=e[76];const le=`plmnRules[${s}].slices[${r}].dnnList[${n}].defaultSessionType`;let ee;e[77]!==i?(ee=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(qs,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.pduSessionTypes.defaultSessionType"}),size:"small",error:!!Oe.error,helperText:Oe.error,children:Yee.map($jt)})},e[77]=i,e[78]=ee):ee=e[78];let J;e[79]!==le||e[80]!==ee?(J=a.jsx(Ur,{name:le,children:ee}),e[79]=le,e[80]=ee,e[81]=J):J=e[81];const me=`plmnRules[${s}].slices[${r}].dnnList[${n}].allowedSessionTypes`;let pe;e[82]!==i?(pe=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{name:Ne.name,value:Ne.value||[],label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.pduSessionTypes.additionalSessionTypes"}),multiple:!0,size:"small",options:[...Yee],onChange:(Et,at)=>{Ct(Ne.name,[...new Set(at.map(Ojt))])},error:!!Oe.error,helperText:Oe.error,fullWidth:!0})},e[82]=i,e[83]=pe):pe=e[83];let Se;e[84]!==me||e[85]!==pe?(Se=a.jsx(Ur,{name:me,children:pe}),e[84]=me,e[85]=pe,e[86]=Se):Se=e[86];let ve;e[87]!==J||e[88]!==Se?(ve=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[J,Se]})}),e[87]=J,e[88]=Se,e[89]=ve):ve=e[89];let xe;e[90]!==se||e[91]!==ve?(xe=a.jsx(pr,{title:se,elevation:7,children:ve}),e[90]=se,e[91]=ve,e[92]=xe):xe=e[92];let qe;e[93]!==i?(qe=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.up_security.title"}),e[93]=i,e[94]=qe):qe=e[94];const Le=`plmnRules[${s}].slices[${r}].dnnList[${n}].upSecurityUpConfid`;let Te;e[95]!==i?(Te=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.upSecurityUpConfid"}),size:"small",value:Ne.value||"",options:[...Wee],freeSolo:!0,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[95]=i,e[96]=Te):Te=e[96];let je;e[97]!==Le||e[98]!==Te?(je=a.jsx(Ur,{name:Le,children:Te}),e[97]=Le,e[98]=Te,e[99]=je):je=e[99];const Ge=`plmnRules[${s}].slices[${r}].dnnList[${n}].upSecurityUpIntegr`;let nt;e[100]!==i?(nt=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.upSecurityUpIntegr"}),size:"small",value:Ne.value||"",options:[...Wee],freeSolo:!0,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[100]=i,e[101]=nt):nt=e[101];let Re;e[102]!==Ge||e[103]!==nt?(Re=a.jsx(Ur,{name:Ge,children:nt}),e[102]=Ge,e[103]=nt,e[104]=Re):Re=e[104];let we;e[105]!==je||e[106]!==Re?(we=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[je,Re]})}),e[105]=je,e[106]=Re,e[107]=we):we=e[107];let Me;e[108]!==qe||e[109]!==we?(Me=a.jsx(pr,{title:qe,elevation:7,children:we}),e[108]=qe,e[109]=we,e[110]=Me):Me=e[110];let $e;return e[111]!==y||e[112]!==j||e[113]!==c||e[114]!==de||e[115]!==xe||e[116]!==Me||e[117]!==f||e[118]!==h?($e=a.jsxs(te,{spacing:2,children:[c,f,h,y,j,de,xe,Me]}),e[111]=y,e[112]=j,e[113]=c,e[114]=de,e[115]=xe,e[116]=Me,e[117]=f,e[118]=h,e[119]=$e):$e=e[119],$e};function $jt(t){return a.jsx(En,{value:t,children:t},t)}function Ojt(t){return t.trim()}function Ljt(t){const e=he.c(36),{slice:r,i:n,plmnIndex:s}=t,i=Ye(),o=`plmnRules[${s}].slices[${n}].sst`;let l;e[0]!==i?(l=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.sst"}),size:"small",error:!!k.error,helperText:k.error})},e[0]=i,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=a.jsx(Ur,{name:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];const u=`plmnRules[${s}].slices[${n}].sd`;let d;e[5]!==i?(d=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.sd"}),size:"small",error:!!k.error,helperText:k.error})},e[5]=i,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=a.jsx(Ur,{name:u,children:d}),e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=`plmnRules[${s}].slices[${n}].3gppChargingCharacteristics`;let m;e[10]!==i?(m=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.3gppChargingCharacteristics"}),size:"small",error:!!k.error,helperText:k.error})},e[10]=i,e[11]=m):m=e[11];let h;e[12]!==p||e[13]!==m?(h=a.jsx(Ur,{name:p,children:m}),e[12]=p,e[13]=m,e[14]=h):h=e[14];let _;e[15]!==n||e[16]!==i||e[17]!==s||e[18]!==r.dnnList||e[19]!==r.isEnabled?(_=!!r?.dnnList?.length&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:`plmnRules[${s}].slices[${n}].isEnabled`,children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!C.value,onChange:(P,T)=>{A(C.name,T)}}),a.jsx(_e,{children:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.isEnabled"})}),a.jsx(Mn,{title:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.isEnabled_required_for_4g"}),children:a.jsx("span",{children:a.jsx(ge.Info,{})})})]})}}),r.isEnabled&&a.jsx(Ke,{name:`plmnRules[${s}].slices[${n}].defaultDnnId`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(Ur,{name:`plmnRules[${s}].slices[${n}]`,children:()=>{if(!r.dnnList)return;const T=r.dnnList.map(Fjt),j=T.find(R=>R.value===C.value)||null;return a.jsx(rn,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.defaultDnnId"}),size:"small",value:j,options:T,onChange:(R,D)=>{D&&!Array.isArray(D)&&typeof D=="object"&&typeof D.value=="string"?P(C.name,D.value):P(C.name,"")},error:!!k.error,helperText:k.error})}})}})]}),e[15]=n,e[16]=i,e[17]=s,e[18]=r.dnnList,e[19]=r.isEnabled,e[20]=_):_=e[20];const g=`plmnRules[${s}].slices[${n}].dnnList`;let y;e[21]!==n||e[22]!==i||e[23]!==s||e[24]!==r.defaultDnnId||e[25]!==r.dnnList?(y=w=>{const{remove:C,push:k,form:A}=w,{getFieldMeta:P}=A;return a.jsx(Ur,{name:`plmnRules[${s}].slices[${n}].dnnList`,children:()=>{const T=Njt,j=O=>{C(O)},R=()=>{const O={_uuid:gn(),dnnName:"",uplink:"",downlink:"","5qi":"",preemptCap:"",preemptVuln:"",arpPriorityLevel:"",defaultSessionType:"",allowedSessionTypes:[],defaultSscMode:"",allowedSscModes:[],preferredDataMode:[]};k(O)},D=O=>!P(O)?.error;return a.jsx(pr,{title:i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.title"}),elevation:5,headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn_add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:R}),children:a.jsxs(Kt,{children:[!!r.dnnList?.length&&a.jsx(Jn,{exclusive:!0,spacing:2,children:r.dnnList.map((O,N)=>a.jsx(xr,{unmountOnExit:!0,title:`${T(O.dnnName,N)}${r.defaultDnnId===O._uuid?" ("+i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.isDefault"})+")":""}`,error:!D(`plmnRules[${s}].slices[${n}].dnnList[${N}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>j(N),label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn_delete"}),disabled:!Ue(ie.provisioning)}],elevation:6,content:a.jsx(Djt,{plmnIndex:s,i:n,j:N})},`${O?._uuid}`))}),!r.dnnList?.length&&a.jsx(_e,{children:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.no_dnns"})})]})})}})},e[21]=n,e[22]=i,e[23]=s,e[24]=r.defaultDnnId,e[25]=r.dnnList,e[26]=y):y=e[26];let b;e[27]!==g||e[28]!==y?(b=a.jsx(oi,{name:g,children:y}),e[27]=g,e[28]=y,e[29]=b):b=e[29];let x;return e[30]!==_||e[31]!==b||e[32]!==c||e[33]!==f||e[34]!==h?(x=a.jsxs(te,{spacing:2,children:[c,f,h,_,b]}),e[30]=_,e[31]=b,e[32]=c,e[33]=f,e[34]=h,e[35]=x):x=e[35],x}function Njt(t,e){return t||`DNN #${e+1}`}function Fjt(t,e){const{_uuid:r,dnnName:n}=t;return{label:n||`DNN #${e+1}`,value:r}}const Im=(t,e)=>!e(t)?.error,yu=(t,e)=>{const r=e(t);if(!(!r?.error||typeof r?.error!="string"))return r?.error};function Ujt(){const t=he.c(11),e=Ye(),r=ko().id!=="new";let n;t[0]!==e||t[1]!==r?(n=a.jsx(Ur,{name:"uuid",children:l=>{const{field:c,meta:u}=l;return a.jsx(dt,{...c,label:e.formatMessage({id:"udr_provisioned_data_profile.form.uuid"}),size:"small",required:!0,disabled:r,error:!!u.error,helperText:u.error})}}),t[0]=e,t[1]=r,t[2]=n):n=t[2];let s;t[3]!==e?(s=a.jsx(Ur,{name:"description",children:l=>{const{field:c,meta:u}=l;return a.jsx(dt,{...c,label:e.formatMessage({id:"udr_provisioned_data_profile.form.description"}),size:"small",error:!!u.error,helperText:u.error})}}),t[3]=e,t[4]=s):s=t[4];let i;t[5]!==e?(i=a.jsx(oi,{name:"plmnRules",children:l=>{const{remove:c,push:u,form:d}=l,{values:f,getFieldMeta:p}=d;return a.jsx(Ur,{name:"plmnRules",children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.plmn_rules.title"}),error:!Im("plmnRules",p),headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_add"}),type:"button",variant:"outlined",startIcon:a.jsx(ge.Add,{}),disabled:!Ue(ie.provisioning),onClick:()=>{const m={_uuid:gn(),action:fp.DATA,pattern:"",default4gSliceId:"",defaultSliceIds:[],slices:[],smsSubscribed:!1,smsMoSubscribed:!1,smsMtSubscribed:!1,coreNetworkTypeRestrictions:[],forbiddenAreas:[],isServiceAreaRestrictionActive:!1,serviceAreaRestrictionType:"",serviceAreaRestrictionAreas:[],ratRestrictions:[],rfspIndex:"",subsRegTimer:"",ueUsageType:"",diameter_error:"",map_error:"",max_attempts:"",tolerance_period_sec:"",data_from:"",isDataFrom:!1};u(m)}}),elevation:2,children:a.jsxs(Kt,{children:[yu("plmnRules",p)&&a.jsx(Lr,{severity:"error",title:yu("plmnRules",p),sx:{mb:2}}),a.jsx(Jn,{exclusive:!0,spacing:2,children:f.plmnRules.map((m,h)=>a.jsx(xr,{title:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(ms,{label:m.action}),a.jsx(_e,{color:"text.secondary",type:"subtitle1",children:m.pattern||`PLMN Rule ${h+1}`}),m.isDataFrom&&a.jsxs(a.Fragment,{children:[a.jsx(ms,{label:"DATA_FROM"}),a.jsx(_e,{color:"text.secondary",type:"subtitle1",children:f.plmnRules.find(_=>_._uuid===f.plmnRules[h].data_from)?.pattern})]})]}),elevation:3,error:!Im(`plmnRules[${h}]`,p),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>{if(f.plmnRules.some(_=>_.data_from===f.plmnRules[h]._uuid)){zL({message:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_delete.data_from.error"}),severity:"error"});return}c(h)},label:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_delete"})}],unmountOnExit:!0,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].pattern`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.pattern"}),size:"small",error:!!y.error,helperText:y.error,required:!0})}}),a.jsx(Ur,{name:`plmnRules[${h}].action`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(qs,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.action"}),size:"small",value:g.value,onChange:w=>{x(g.name,w.target.value)},required:!0,error:!!y.error,helperText:y.error,children:mjt.map(Vjt)})}}),(f.plmnRules[h].action===fp.SOR_LIGHT||f.plmnRules[h].action===fp.SOR_AGGRESSIVE)&&a.jsx(pr,{title:e.formatMessage({id:`udr_provisioned_data_profile.form.specific_fields.${f.plmnRules[h].action}`}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[f.plmnRules[h].action===fp.SOR_LIGHT&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:`plmnRules[${h}].diameter_error`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(rn,{value:g.value,name:g.name,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.diameter_error"}),multiple:!1,size:"small",freeSolo:!1,options:[G$.UNABLE_TO_COMPLY,G$.ROAMING_NOT_ALLOWED_ODB_ALL_APN],onChange:(x,w)=>{b(g.name,w||"")},fullWidth:!0})}}),a.jsx(Ke,{name:`plmnRules[${h}].map_error`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(rn,{value:g.value,name:g.name,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.map_error"}),multiple:!1,size:"small",freeSolo:!1,options:[W$.UNEXPECTED_DATA_VALUE,W$.SYSTEM_FAILURE],onChange:(x,w)=>{b(g.name,w||"")},fullWidth:!0})}}),a.jsx(Ke,{name:`plmnRules[${h}].max_attempts`,children:_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.max_attempts"}),size:"small",helperText:y.error,error:!!y.error,disabled:x,type:"number"})}})]}),a.jsx(Ke,{name:`plmnRules[${h}].tolerance_period_sec`,children:_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.tolerance_period_sec"}),size:"small",helperText:y.error,error:!!y.error,disabled:x,type:"number"})}})]})})}),a.jsx(Ke,{name:`plmnRules[${h}].isDataFrom`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b,isSubmitting:x}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,onChange:(w,C)=>{b(g.name,C),C||b(`plmnRules[${h}].data_from`,"")},disabled:x}),a.jsx(_e,{children:e.formatMessage({id:"udr_provisioned_data_profile.form.isDataFrom"})})]})}}),f.plmnRules[h].isDataFrom&&a.jsx(Ke,{name:`plmnRules[${h}].data_from`,children:_=>{const{field:g,meta:y}=_;return a.jsx(qs,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.data_from"}),size:"small",error:!!y.error,helperText:y.error,children:f.plmnRules.map((b,x)=>x!==h&&!b.data_from&&b.action!=="REJECT"?a.jsx(En,{value:b._uuid,children:b.pattern||`PLMN Rule ${x+1}`},b._uuid):null)})}}),!f.plmnRules[h].isDataFrom&&a.jsxs(a.Fragment,{children:[a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.access_and_mobility.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].subsRegTimer`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.subsRegTimer"}),type:"number",size:"small",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].ueUsageType`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.ueUsageType"}),type:"number",size:"small",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].APNOIReplacement`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.APNOIReplacement"}),size:"small",error:!!y.error,helperText:y.error})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.aggregated_maximum_bitrate.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].defaultDownlink`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(F3,{fieldValue:g.value,fieldName:g.name,fieldLabel:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultDownlink"}),setFieldValue:x,selectInitialValue:g.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:y})}}),a.jsx(Ur,{name:`plmnRules[${h}].defaultUplink`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(F3,{fieldValue:g.value,fieldName:g.name,fieldLabel:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultUplink"}),setFieldValue:x,selectInitialValue:g.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:y})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:`plmnRules[${h}].networkAccessMode`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.networkAccessMode"}),size:"small",value:g.value||null,options:vjt,onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error,disabled:!f.plmnRules[h].default4gSliceId})}}),a.jsx(Ur,{name:`plmnRules[${h}].ratRestrictions`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.ratRestrictions"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:pjt,onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].rfspIndex`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.rfspIndex"}),size:"small",type:"number",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].coreNetworkTypeRestrictions`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.coreNetworkTypeRestrictions"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:["5GC","EPC"],onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.4g-5g-nsa.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].regionalSubscriptionZoneCodes`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.regionalSubscriptionZoneCodes"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:[],onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(oi,{name:`plmnRules[${h}].closedSubscriberGroup`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.closed_subscriber_group.title"}),error:!Im(`plmnRules[${h}].closedSubscriberGroup`,p),dense:!0,elevation:6,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),csg_id:"",visited_plmn:""};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].closedSubscriberGroup`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].closedSubscriberGroup`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].closedSubscriberGroup?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,children:[a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup[${x}].csg_id`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.csg_id"}),size:"small",fullWidth:!0,required:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup[${x}].visited_plmn`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.visited_plmn"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].closedSubscriberGroup?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.5g.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(oi,{name:`plmnRules[${h}].forbiddenAreas`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.forbidden_areas.title"}),dense:!0,error:!Im(`plmnRules[${h}].forbiddenAreas`,p),elevation:6,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),name:"",tacs:[]};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].forbiddenAreas`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].forbiddenAreas`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].forbiddenAreas?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,children:[a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas[${x}].name`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.name"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas[${x}].tacs`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.tacs"}),size:"small",value:C.value,freeSolo:!0,multiple:!0,fullWidth:!0,options:[],onChange:(T,j)=>{j?P(C.name,j):P(C.name,"")},error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].forbiddenAreas?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}}),a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Ke,{name:`plmnRules[${h}].isServiceAreaRestrictionActive`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(a.Fragment,{children:a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!g.value,onChange:(x,w)=>{b(g.name,w)}}),a.jsx(_e,{children:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction.title"})})]})})}}),f.plmnRules[h].isServiceAreaRestrictionActive&&a.jsx(pr,{elevation:6,title:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction.title"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{nowrap:!0,spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionType`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(qs,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.serviceAreaRestrictionType"}),size:"small",value:g.value,onChange:w=>{x(g.name,w.target.value)},required:!0,error:!!y.error,helperText:y.error,children:gjt.map(qjt)})}}),a.jsx(oi,{name:`plmnRules[${h}].serviceAreaRestrictionAreas`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction_areas.title"}),dense:!0,error:!Im(`plmnRules[${h}].serviceAreaRestrictionAreas`,p),elevation:7,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),name:"",tacs:[]};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].serviceAreaRestrictionAreas`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].serviceAreaRestrictionAreas`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].serviceAreaRestrictionAreas?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas[${x}].name`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.name"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas[${x}].tacs`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.tacs"}),size:"small",fullWidth:!0,value:C.value,freeSolo:!0,multiple:!0,options:[],onChange:(T,j)=>{j?P(C.name,j):P(C.name,"")},error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].serviceAreaRestrictionAreas?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}})]})})})]})]})})})]})})}),a.jsx(oi,{name:`plmnRules[${h}].slices`,children:_=>{const{remove:g,push:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.slices.title"}),error:!Im(`plmnRules[${h}].slices`,p),elevation:4,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const w={_uuid:gn(),sst:"",sd:"","3gppChargingCharacteristics":"",dnnList:[],isEnabled:!0,defaultDnnId:""};y(w)}}),children:a.jsx(Kt,{children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].slices`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].slices`,p)}),a.jsx(Jn,{exclusive:!0,spacing:2,children:f.plmnRules[h].slices?.map((w,C)=>a.jsx(xr,{unmountOnExit:!0,elevation:5,group:!0,title:`${dme(w,C)} ${f.plmnRules[h].defaultSliceIds.includes(w._uuid)?"("+e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_default"})+")":""}`,error:!Im(`plmnRules[${h}].slices[${C}]`,p),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>{w._uuid===f.plmnRules[h].default4gSliceId&&x(`plmnRules[${h}].default4gSliceId`,""),x(`plmnRules[${h}].defaultSliceIds`,f.plmnRules[h].defaultSliceIds.filter(k=>k!==w._uuid)),g(C)},label:e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_delete"})}],content:a.jsx(a.Fragment,{children:a.jsx(Ljt,{slice:w,i:C,plmnIndex:h})}),subtitle:a.jsx(te,{direction:"row",nowrap:!0,children:a.jsx(_e,{sx:{wordBreak:"break-all"},children:w.dnnList?.map(zjt).join(", ")})})},`${w._uuid}`))||null}),!f.plmnRules[h].slices?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.slice.no_slices"}),sx:{backgroundColor:"divider"}})]})})})})}}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.default_slices.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,children:[{fieldName:`plmnRules[${h}].default4gSliceId`,label:e.formatMessage({id:"udr_provisioned_data_profile.form.default4gSliceId"}),isMultiple:!1},{fieldName:`plmnRules[${h}].defaultSliceIds`,label:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultSliceIds"}),isMultiple:!0}].map(_=>{const{fieldName:g,label:y,isMultiple:b}=_;return a.jsx(Ke,{name:g,children:x=>{const{field:w,meta:C,form:k}=x,{setFieldValue:A}=k,P=f.plmnRules[h].slices.map(Bjt),T=b?P.filter(j=>{const{value:R}=j;return w.value.includes(R)}):P.find(j=>{const{value:R}=j;return w.value===R})||null;return a.jsx(rn,{...w,multiple:b,label:y,size:"small",value:T,options:P,onChange:(j,R)=>{if(Array.isArray(R)){const D=[];R.forEach(O=>{typeof O=="object"&&typeof O.value=="string"&&D.push(O.value)}),A(w.name,D)}else R&&typeof R=="object"&&typeof R.value=="string"?A(w.name,R.value):A(w.name,"")},error:!!C.error,helperText:C.error,disabled:!f.plmnRules[h].slices?.length})}},g)})})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.sms.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].smsSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.subscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}}),a.jsx(Ur,{name:`plmnRules[${h}].smsMoSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.moSubscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}}),a.jsx(Ur,{name:`plmnRules[${h}].smsMtSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.mtSubscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}})]})})})]})]})},m._uuid||h))}),!f.plmnRules?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.no_data"}),sx:{backgroundColor:"divider"}})]})})})}}),t[5]=e,t[6]=i):i=t[6];let o;return t[7]!==n||t[8]!==s||t[9]!==i?(o=a.jsxs(te,{spacing:2,children:[n,s,i]}),t[7]=n,t[8]=s,t[9]=i,t[10]=o):o=t[10],o}function Bjt(t,e){const{_uuid:r,sst:n,sd:s}=t;return{label:dme({sst:n,sd:s},e),value:r}}function zjt(t){return t.dnnName}function qjt(t){return a.jsx(En,{value:t,children:t},t)}function Vjt(t){return a.jsx(En,{value:t,children:t},t)}function Hjt(){const t=he.c(27),e=Ye(),{id:r}=ko(),n=zn(),{submit:s,data:i,state:o}=gr(),{openConfirmDialog:l}=di(),c=r!=="new";let u;t[0]!==r||t[1]!==c||t[2]!==s?(u=async x=>{const w=Ejt(x);r&&c?s({id:r,profile:w},{action:"update",method:"PUT",encType:"application/json"}):s(w,{action:"create",method:"POST",encType:"application/json"})},t[0]=r,t[1]=c,t[2]=s,t[3]=u):u=t[3];const d=u;let f;t[4]!==r||t[5]!==e||t[6]!==c||t[7]!==l||t[8]!==s?(f=()=>{r&&c&&l({text:e.formatMessage({id:"udr_provisioned_data_profiles.actions.confirm_delete"}),onConfirm:()=>s({id:r},{method:"DELETE",encType:"application/json",action:"delete"})})},t[4]=r,t[5]=e,t[6]=c,t[7]=l,t[8]=s,t[9]=f):f=t[9];const p=f;let m;t[10]!==p||t[11]!==e||t[12]!==c?(m=c&&a.jsx(hs,{children:a.jsx(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:p})})}),t[10]=p,t[11]=e,t[12]=c,t[13]=m):m=t[13];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",height:"1000px"}),t[14]=h):h=t[14];let _;t[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[15]=_):_=t[15];let g;t[16]!==i||t[17]!==o||t[18]!==d||t[19]!==e?(g=x=>a.jsx(Wr,{initialValues:kjt(x),validationSchema:Rjt,onSubmit:d,children:w=>{const{dirty:C}=w;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ujt,{}),a.jsx(Xr,{data:i,sx:{mb:2}}),Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"udr_provisioned_data_profile.form.buttons.submit"}),disabled:!C,loading:o!=="idle",sx:{alignSelf:"flex-start"}})]})})})}}),t[16]=i,t[17]=o,t[18]=d,t[19]=e,t[20]=g):g=t[20];let y;t[21]!==n.profile||t[22]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:n.profile,errorElement:_,children:g})}),t[21]=n.profile,t[22]=g,t[23]=y):y=t[23];let b;return t[24]!==m||t[25]!==y?(b=a.jsxs(a.Fragment,{children:[m,y]}),t[24]=m,t[25]=y,t[26]=b):b=t[26],b}const Gjt=()=>{const t=he.c(60),e=Ye(),r=ys(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==e||t[1]!==n||t[2]!==i?(m=Q=>{n({text:e.formatMessage({id:"udr_provisioned_data_profiles.actions.confirm_delete"},{profile:Q.description}),onConfirm:()=>{i({id:Q.uuid},{method:"DELETE",encType:"application/json",action:`${Q.uuid}/delete`})}})},t[0]=e,t[1]=n,t[2]=i,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"udr_provisioned_data_profiles.table.id"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"uuid",label:_},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"udr_provisioned_data_profiles.table.description"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"description",label:y},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"udr_provisioned_data_profiles.table.created_at"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"created_at",label:x,cellRender:Wjt},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==e?(C=e.formatMessage({id:"udr_provisioned_data_profiles.table.modified_at"}),t[16]=e,t[17]=C):C=t[17];let k;t[18]!==C?(k={key:"modified_at",label:C,cellRender:Yjt},t[18]=C,t[19]=k):k=t[19];let A;t[20]!==g||t[21]!==b||t[22]!==w||t[23]!==k?(A=[g,b,w,k],t[20]=g,t[21]=b,t[22]=w,t[23]=k,t[24]=A):A=t[24];const P=A;let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=_l(ie.provisioning),t[25]=T):T=t[25];const j=o!=="idle";let R;t[26]!==r?(R=Q=>r(`${$.urls.udrProvisionedDataProfile}/${Q.uuid}`),t[26]=r,t[27]=R):R=t[27];let D;t[28]!==j||t[29]!==R?(D={...T,disabled:j,onClick:R},t[28]=j,t[29]=R,t[30]=D):D=t[30];let O;t[31]!==e?(O=e.formatMessage({id:"udr_provisioned_data_profiles.actions.delete"}),t[31]=e,t[32]=O):O=t[32];let N;t[33]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(ge.Trash,{}),t[33]=N):N=t[33];let F;t[34]!==o?(F=o!=="idle"||!Ue(ie.provisioning),t[34]=o,t[35]=F):F=t[35];let U;t[36]!==h||t[37]!==O||t[38]!==F?(U={label:O,icon:N,disabled:F,onClick:h},t[36]=h,t[37]=O,t[38]=F,t[39]=U):U=t[39];let z;t[40]!==D||t[41]!==U?(z=[D,U],t[40]=D,t[41]=U,t[42]=z):z=t[42];const H=z;let W;t[43]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[43]=W):W=t[43];let K;t[44]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(Tr,{}),t[44]=K):K=t[44];let q;t[45]!==d||t[46]!==u||t[47]!==P||t[48]!==p||t[49]!==f||t[50]!==e||t[51]!==r||t[52]!==l||t[53]!==c||t[54]!==H||t[55]!==o?(q=Q=>{const{data:Y,metadata:Z}=Q;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>r(`${$.urls.udrProvisionedDataProfile}/new`),disabled:o!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"uuid",columns:P,data:Y,page:p(Z),labelDisplayedRows:Kjt,rowsCount:f(Z),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"uuid",rowActions:H,stickyRowActions:!0,onPageChange:d(Z),loading:o!=="idle"})]})},t[45]=d,t[46]=u,t[47]=P,t[48]=p,t[49]=f,t[50]=e,t[51]=r,t[52]=l,t[53]=c,t[54]=H,t[55]=o,t[56]=q):q=t[56];let X;return t[57]!==s.profiles||t[58]!==q?(X=a.jsx(I.Suspense,{fallback:W,children:a.jsx(Qt,{resolve:s.profiles,errorElement:K,children:q})}),t[57]=s.profiles,t[58]=q,t[59]=X):X=t[59],X};function Wjt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Yjt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Kjt(){return""}const Md=Pr();var g0=(t=>(t.op="OP",t.opc="OPC",t.operator_key_id="OPID",t.opc_enc="OPC_ENC",t))(g0||{});const Qjt=Object.keys(g0);var fme=(t=>(t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t))(fme||{});function Kee({sst:t,sd:e,dnn:r,pattern:n}){return`${n}-${dh({sst:+t,sd:e})}-${r}`}var pme=(t=>(t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t))(pme||{});const Zjt=Object.keys(pme);function Xjt({type:t,value:e}){switch(t){case"OPID":return{operator_key_id:e};case"OPC":return{opc:e};case"OP":return{op:e};case"OPC_ENC":return{opc_enc:e}}}function Jjt(t){return t.map(({pattern:e,sst:r,sd:n,dnn:s,static_ipv4:i,ipv4_frame_route_list:o,ipv6_frame_route_list:l,static_ipv6:c})=>{const u={...o?.length&&{ipv4FrameRouteList:o.map(h=>({ipv4Mask:h}))},...l?.length&&{ipv6FrameRouteList:l.map(h=>({ipv6Prefix:h}))}},d=[i?{ipv4Addr:i}:void 0,c?{ipv6Prefix:c}:void 0].filter(h=>!!h);let f=null;(i||c)&&(f={defaultSessionType:i&&c?"IPV4V6":i?"IPV4":"IPV6"});const p={...u,...d.length>0&&{staticIpAddress:d},...f&&{pduSessionTypes:f}},m={sst:+r,...n&&{sd:n}};return Object.entries(p).map(([h,_])=>({op:h==="pduSessionTypes"?"replace":"add",path:`/${e}/data/smData/[singleNssai=${JSON.stringify(m)}]/dnnConfigurations/${s}/${h}`,value:_}))}).flat()}const OD=(t,e)=>{let r;switch(t){case"ipv4FrameRouteList":r={ipv4_frame_route_list:e.map(({ipv4Mask:n})=>n)};break;case"ipv6FrameRouteList":r={ipv6_frame_route_list:e.map(({ipv6Prefix:n})=>n)};break;case"staticIpAddress":r=r=e.reduce((n,s)=>{const i="ipv4Addr"in s?{static_ipv4:s.ipv4Addr}:"ipv6Prefix"in s?{static_ipv6:s.ipv6Prefix}:{};return{...n,...i}},{});break;default:r={}}return r};function eTt(t){if(!t?.length)return[];const e=new RegExp($.regex.patches),r=t.reduce((n,s)=>{const i=s.value,{json:o,pattern:l,dnn:c,field:u}=e.exec(s.path)?.groups||{};let d="",f="";try{const m=JSON.parse(o);d=m.sst,f=m.sd}catch{}const p={id:Kee({sst:d,sd:f,dnn:c,pattern:l}),dnn:c,sst:d,sd:f,pattern:l,...OD(u,i)};return p.id in n?{...n,[p.id]:{...n[p.id],...p,...OD(u,i)}}:{...n,[p.id]:{id:Kee({sst:d,sd:f,dnn:c,pattern:l}),dnn:c??"",pattern:l??"",sst:d,sd:f,static_ipv4:"",static_ipv6:"",ipv6_frame_route_list:[],ipv4_frame_route_list:[],...OD(u,i)}}},{});return Object.entries(r).map(([,n])=>n)}function tTt(t){return{supi:t?.supi||"",description:t?.description||"",gpsi:t?.gpsi||"",status:t?.status||"ACTIVE",isOverridingKeys:!t?.supi,operator_key_type:"OP",operator_key_value:"",k:t?.authentication_subscription?.k||"",k_provisioned:t?.authentication_subscription?.k_provisioned||!1,auth_method:t?.authentication_subscription?.auth_method||"",transport_key_id:t?.authentication_subscription?.transport_key_id||"",k_tag:t?.authentication_subscription?.k_tag||"",opc_tag:t?.authentication_subscription?.opc_tag||"",policy_data_profile_uuid:t?.policy_data_profile?.uuid||"",provisioned_data_profile_uuid:t?.provisioned_data_profile?.uuid||"",provisioned_data_profile_patches:eTt(t?.provisioned_data_profile?.patches)}}function rTt(t,e){return{...e&&t.supi&&{supi:t.supi},...e?t.gpsi?{gpsi:t.gpsi}:!1:{gpsi:t.gpsi||null},description:t.description||null,status:t.status||"ACTIVE",...t.policy_data_profile_uuid?{policy_data_profile:{uuid:t.policy_data_profile_uuid}}:e?{}:{policy_data_profile:{uuid:null}},...t.provisioned_data_profile_uuid?{provisioned_data_profile:{uuid:t.provisioned_data_profile_uuid,...t.provisioned_data_profile_patches&&{patches:Jjt(t.provisioned_data_profile_patches)}}}:e?{}:{provisioned_data_profile:{uuid:null}},...t.isOverridingKeys&&{authentication_subscription:{k:t.k,...t.auth_method&&{auth_method:t.auth_method},...t.operator_key_type&&Xjt({value:t.operator_key_value,type:t.operator_key_type}),...t.transport_key_id&&{transport_key_id:t.transport_key_id},...t.k_tag&&{k_tag:t.k_tag},...t.opc_tag&&{opc_tag:t.opc_tag}}}}}const nTt=dr().shape({supi:We().matches(new RegExp($.regex.supi)).required(Md.formatMessage({id:"validation.required"})),status:We(),description:We().max(128),gpsi:We().matches(new RegExp(`${$.regex.gpsi}`)),provisioned_data_profile_uuid:We(),policy_data_profile_uuid:We(),isOverridingKeys:li(),k:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e).matches(new RegExp($.regex.operatorKey)),operator_key_type:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e),operator_key_value:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e).when("operator_key_type",(t,e)=>["OP","OPC","OPC_ENC"].includes(t)?e.matches(new RegExp($.regex.operatorKey)):e),transport_key_id:We().when("operator_key_type",(t,e)=>{if(t==="OPC_ENC")return e.required(Md.formatMessage({id:"validation.required"}))}),k_tag:We().matches(new RegExp($.regex.supiTag)),opc_tag:We().matches(new RegExp($.regex.supiTag)),provisioned_data_profile_patches:yr(dr().shape({id:We(),sst:We(),sd:We(),dnn:We(),static_ipv4:We().matches(new RegExp($.regex.ipv4Addr)).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),static_ipv6:We().matches(new RegExp($.regex.ipv6Prefix)).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),ipv4_frame_route_list:yr().of(We().matches(new RegExp($.regex.ipv4Mask))).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),ipv6_frame_route_list:yr().of(We().matches(new RegExp($.regex.ipv6Prefix))).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length)}))}),sTt=dr().shape({pattern:We().required(),sliceId:We().required(),dnnName:We().required()}),iTt=t=>{const e=he.c(10),{onSubmit:r,provisionedDataProfile:n}=t,s=Ye(),{dialogClose:i}=Jt();let o;e[0]!==r?(o=f=>{const{sliceId:p,dnnName:m,pattern:h}=f;r({sliceId:p,dnnName:m,pattern:h})},e[0]=r,e[1]=o):o=e[1];const l=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c={pattern:"",sliceId:"",dnnName:""},e[2]=c):c=e[2];let u;e[3]!==i||e[4]!==s||e[5]!==n?(u=f=>{const{isSubmitting:p,values:m}=f;return a.jsxs(dn,{canWrite:Ue(ie.provisioning),children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pattern",children:h=>{const{field:_,meta:g,form:y}=h,{setFieldValue:b}=y;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.pattern"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),onChange:x=>{const w=x.target.value;b("pattern",w),b("sliceId",""),b("dnnName","")},children:[...new Set(wjt(n))].map(oTt)})}}),m.pattern&&a.jsx(Ke,{name:"sliceId",children:h=>{const{field:_,meta:g,form:y}=h,{setFieldValue:b}=y;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.sliceId"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),onChange:x=>{b("sliceId",x.target.value),b("dnnName","")},children:[...new Set(Y$(n,m.pattern).map(aTt))].map(lTt)})}}),m.sliceId&&a.jsx(Ke,{name:"dnnName",children:h=>{const{field:_,meta:g}=h;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.dnnName"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),children:Y$(n,m.pattern).filter(y=>y.sliceId===m.sliceId).map(cTt)})}})]})}),a.jsxs(Ti,{children:[a.jsx(Ze,{text:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.buttons.cancel"}),type:"reset",onClick:()=>i(),variant:"outlined",disabled:p||!Ue(ie.provisioning)}),a.jsx(Ze,{text:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.buttons.submit"}),type:"submit",disabled:p||!Ue(ie.provisioning),loading:p})]})]})},e[3]=i,e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;return e[7]!==l||e[8]!==u?(d=a.jsx(Wr,{initialValues:c,enableReinitialize:!0,onSubmit:l,validationSchema:sTt,children:u}),e[7]=l,e[8]=u,e[9]=d):d=e[9],d};function oTt(t){return a.jsx(En,{value:t,children:t},t)}function aTt(t){return t.sliceId}function lTt(t){return a.jsx(En,{value:t,children:t},t)}function cTt(t){const{dnnName:e}=t;return a.jsx(En,{value:e,children:e},e)}const uTt=I.memo(function(e){const r=he.c(25),{i:n}=e,s=Ye(),i=`provisioned_data_profile_patches[${n}].static_ipv4`;let o;r[0]!==s?(o=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k}=C;return a.jsx(dt,{...x,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.static_ipv4"}),size:"small",error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning)})},r[0]=s,r[1]=o):o=r[1];let l;r[2]!==i||r[3]!==o?(l=a.jsx(Ur,{name:i,children:o}),r[2]=i,r[3]=o,r[4]=l):l=r[4];const c=`provisioned_data_profile_patches[${n}].static_ipv6`;let u;r[5]!==s?(u=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k}=C;return a.jsx(dt,{...x,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.static_ipv6"}),size:"small",error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning)})},r[5]=s,r[6]=u):u=r[6];let d;r[7]!==c||r[8]!==u?(d=a.jsx(Ur,{name:c,children:u}),r[7]=c,r[8]=u,r[9]=d):d=r[9];const f=`provisioned_data_profile_patches[${n}].ipv4_frame_route_list`;let p;r[10]!==s?(p=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k,setFieldValue:A}=C;return a.jsx(rn,{name:x.name,value:x.value,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.ipv4_frame_route_list"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(P,T)=>{A(x.name,[...new Set(T.map(dTt))])},error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning),fullWidth:!0})},r[10]=s,r[11]=p):p=r[11];let m;r[12]!==f||r[13]!==p?(m=a.jsx(Ur,{name:f,children:p}),r[12]=f,r[13]=p,r[14]=m):m=r[14];const h=`provisioned_data_profile_patches[${n}].ipv6_frame_route_list`;let _;r[15]!==s?(_=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k,setFieldValue:A}=C;return a.jsx(rn,{name:x.name,value:x.value,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.ipv6_frame_route_list"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(P,T)=>{A(x.name,[...new Set(T.map(fTt))])},error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning),fullWidth:!0})},r[15]=s,r[16]=_):_=r[16];let g;r[17]!==h||r[18]!==_?(g=a.jsx(Ur,{name:h,children:_}),r[17]=h,r[18]=_,r[19]=g):g=r[19];let y;return r[20]!==g||r[21]!==l||r[22]!==d||r[23]!==m?(y=a.jsxs(te,{spacing:2,children:[l,d,m,g]}),r[20]=g,r[21]=l,r[22]=d,r[23]=m,r[24]=y):y=r[24],y});function dTt(t){return t.trim()}function fTt(t){return t.trim()}function pTt(t){const e=he.c(72),{isEditing:r,policyDataProfileList:n,provisionedDataProfileList:s,dirty:i,loading:o,error:l}=t,c=Ye(),{dialogOpen:u,dialogClose:d,snackbarOpen:f}=Jt(),{values:p}=_0();let m;if(e[0]!==s||e[1]!==p.provisioned_data_profile_uuid){let q;e[3]!==p.provisioned_data_profile_uuid?(q=X=>X.uuid===p.provisioned_data_profile_uuid,e[3]=p.provisioned_data_profile_uuid,e[4]=q):q=e[4],m=s.find(q),e[0]=s,e[1]=p.provisioned_data_profile_uuid,e[2]=m}else m=e[2];const h=m;let _;e[5]!==h?(_=q=>{const{sst:X,sd:Q,dnn:Y,pattern:Z}=q;return!!Y$(h,Z).find(fe=>fe.sliceId===dh({sst:X,sd:Q})&&fe.dnnName===Y)},e[5]=h,e[6]=_):_=e[6];const g=_;let y;e[7]!==c?(y=c.formatMessage({id:"udr_supi.section.general.title"}),e[7]=c,e[8]=y):y=e[8];let b;e[9]!==c||e[10]!==r?(b=a.jsx(Ur,{name:"supi",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.supi"}),size:"small",error:!!Q.error,helperText:Q.error,disabled:r||!Ue(ie.provisioning)})}}),e[9]=c,e[10]=r,e[11]=b):b=e[11];let x;e[12]!==c?(x=a.jsx(Ur,{name:"description",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.description"}),size:"small",error:!!Q.error,helperText:Q.error})}}),e[12]=c,e[13]=x):x=e[13];let w;e[14]!==c?(w=a.jsx(Ur,{name:"gpsi",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.gpsi"}),size:"small",error:!!Q.error,helperText:Q.error})}}),e[14]=c,e[15]=w):w=e[15];let C;e[16]!==c?(C=a.jsx(Ur,{name:"status",children:q=>{const{field:X,meta:Q}=q;return a.jsxs(qs,{...X,label:c.formatMessage({id:"udr_supi.form.status"}),size:"small",error:!!Q.error,helperText:Q.error,children:[a.jsx(En,{value:"ACTIVE",children:"ACTIVE"}),a.jsx(En,{value:"INACTIVE",children:"INACTIVE"})]})}}),e[16]=c,e[17]=C):C=e[17];let k;e[18]!==c||e[19]!==r||e[20]!==p.k_provisioned?(k=r&&a.jsxs(te,{spacing:2,direction:"row",align:"center",children:[a.jsx(Ur,{name:"isOverridingKeys",children:q=>{const{field:X,form:Q}=q,{setFieldValue:Y}=Q;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!X.value,onChange:(Z,re)=>{Y(X.name,re)}}),a.jsx(_e,{children:c.formatMessage({id:"udr_supi.form.is_overriding_keys"})})]})}}),a.jsx(ms,{size:"small",label:p.k_provisioned?c.formatMessage({id:"udr_supi.form.keys_provisioned"}):c.formatMessage({id:"udr_supi.form.keys_not_provisioned"}),color:p.k_provisioned?"primary":"default"})]}),e[18]=c,e[19]=r,e[20]=p.k_provisioned,e[21]=k):k=e[21];let A;e[22]!==c||e[23]!==p.isOverridingKeys||e[24]!==p.operator_key_type?(A=p.isOverridingKeys&&a.jsxs(a.Fragment,{children:[a.jsx(Ur,{name:"k",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.k"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ke,{name:"operator_key_type",children:q=>{const{field:X,meta:Q}=q;return a.jsx(qs,{...X,label:c.formatMessage({id:"udr_supi.form.operator_key_type"}),size:"small",error:!!Q.error,helperText:Q.error,children:Qjt.map(gTt)})}}),a.jsx(Ke,{name:"operator_key_value",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.operator_key_value"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ur,{name:"transport_key_id",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.transport_key_id"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ur,{name:"k_tag",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.k_tag"}),size:"small",error:!!Q.error,helperText:Q.error})}}),p.operator_key_type===g0.opc_enc&&a.jsx(Ke,{name:"opc_tag",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.opc_tag"}),size:"small",error:!!Q.error,helperText:Q.error})}})]}),e[22]=c,e[23]=p.isOverridingKeys,e[24]=p.operator_key_type,e[25]=A):A=e[25];let P;e[26]!==b||e[27]!==x||e[28]!==w||e[29]!==C||e[30]!==k||e[31]!==A?(P=a.jsxs(te,{spacing:2,children:[b,x,w,C,k,A]}),e[26]=b,e[27]=x,e[28]=w,e[29]=C,e[30]=k,e[31]=A,e[32]=P):P=e[32];let T;e[33]!==P||e[34]!==y?(T=a.jsx(Kt,{title:y,children:P}),e[33]=P,e[34]=y,e[35]=T):T=e[35];let j;e[36]===Symbol.for("react.memo_cache_sentinel")?(j={width:"100%",position:"relative"},e[36]=j):j=e[36];let R;e[37]!==c?(R=c.formatMessage({id:"udr_supi.section.profiles.title"}),e[37]=c,e[38]=R):R=e[38];let D;e[39]===Symbol.for("react.memo_cache_sentinel")?(D={width:"100%"},e[39]=D):D=e[39];let O;e[40]!==c||e[41]!==n?(O=a.jsx(Ke,{name:"policy_data_profile_uuid",children:q=>{const{field:X,meta:Q,form:Y}=q,{setFieldValue:Z}=Y,re=n.map(hTt),fe=re.find(de=>{const{value:se}=de;return se===X?.value})??null;return a.jsx(rn,{...X,label:c.formatMessage({id:"udr_supi.form.policy_data_profile_uuid"}),size:"small",value:fe,options:re,onChange:(de,se)=>{if(!se){Z(X.name,"");return}se&&!Array.isArray(se)&&typeof se=="object"&&typeof se.value=="string"&&Z(X.name,se.value)},error:!!Q.error,helperText:Q.error})}}),e[40]=c,e[41]=n,e[42]=O):O=e[42];let N;e[43]!==c||e[44]!==s?(N=a.jsx(Ke,{name:"provisioned_data_profile_uuid",children:q=>{const{field:X,meta:Q,form:Y}=q,{setFieldValue:Z}=Y,re=s.map(mTt),fe=re.find(de=>{const{value:se}=de;return se===X?.value})??null;return a.jsx(rn,{...X,label:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_uuid"}),size:"small",value:fe,options:re,onChange:(de,se)=>{if(!se){Z(X.name,"");return}se&&!Array.isArray(se)&&typeof se=="object"&&typeof se.value=="string"&&Z(X.name,se.value)},error:!!Q.error,helperText:Q.error})}}),e[43]=c,e[44]=s,e[45]=N):N=e[45];let F;e[46]!==d||e[47]!==u||e[48]!==c||e[49]!==g||e[50]!==h||e[51]!==f||e[52]!==p?(F=(!!p.provisioned_data_profile_uuid||p.provisioned_data_profile_patches&&p.provisioned_data_profile_patches.length>0)&&a.jsx(oi,{name:"provisioned_data_profile_patches",children:q=>{const{remove:X,push:Q,form:Y}=q,{getFieldMeta:Z}=Y,re=le=>{const{sliceId:ee,dnnName:J,pattern:me}=le,[pe,Se]=ee.split("-"),ve=p.provisioned_data_profile_patches?.find(xe=>{const{sd:qe,sst:Le,dnn:Te}=xe;return ee===dh({sst:+Le,sd:qe})&&Te===J});d(),ve?f({message:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.error.already_present"}),severity:"info"}):Q({id:`${me}-${ee}-${J}`,sst:pe||"",sd:Se||"",dnn:J,pattern:me,ipv4_frame_route_list:[],static_ipv4:"",ipv6_frame_route_list:[],static_ipv6:""})},fe=()=>{h&&u({title:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.add_dialog.title"}),content:()=>a.jsx(iTt,{provisionedDataProfile:h,onSubmit:le=>re(le)}),closeOnBackdropClick:!1})},de=le=>{X(le)},se=le=>!Z(le)?.error;return a.jsx(pr,{title:c.formatMessage({id:"udr_supi.section.provisioned_data_profile_patches.title"}),dense:!0,error:!se("provisioned_data_profile_patches"),headerActionsComponent:a.jsx(Ze,{text:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.add"}),type:"button",variant:"outlined",onClick:fe,disabled:!Ue(ie.provisioning)}),elevation:2,children:a.jsxs(Kt,{children:[!!p.provisioned_data_profile_patches?.length&&a.jsx(Jn,{exclusive:!0,spacing:2,children:p.provisioned_data_profile_patches.map((le,ee)=>a.jsx(xr,{elevation:4,title:`${le.pattern} ${g({sst:+le.sst,sd:le.sd,dnn:le.dnn,pattern:le.pattern})?"":"(invalid)"}`,subtitle:`${dh({sst:+le.sst,sd:le.sd})} - ${le.dnn}`,error:!se(`provisioned_data_profile_patches[${ee}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>de(ee),label:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.delete"})}],content:a.jsx(uTt,{i:ee})},le?.id))}),!p.provisioned_data_profile_patches?.length&&a.jsx(_e,{children:c.formatMessage({id:"udr_supi.section.provisioned_data_profile_patches.no_patch"})})]})})}}),e[46]=d,e[47]=u,e[48]=c,e[49]=g,e[50]=h,e[51]=f,e[52]=p,e[53]=F):F=e[53];let U;e[54]!==l?(U=a.jsx(Xr,{data:l}),e[54]=l,e[55]=U):U=e[55];let z;e[56]!==i||e[57]!==c||e[58]!==o?(z=Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:c.formatMessage({id:"udr_supi.form.buttons.submit"}),disabled:!i,loading:o,sx:{alignSelf:"flex-start"}}),e[56]=i,e[57]=c,e[58]=o,e[59]=z):z=e[59];let H;e[60]!==O||e[61]!==N||e[62]!==F||e[63]!==U||e[64]!==z?(H=a.jsxs(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:D,children:[O,N,F,U,z]}),e[60]=O,e[61]=N,e[62]=F,e[63]=U,e[64]=z,e[65]=H):H=e[65];let W;e[66]!==R||e[67]!==H?(W=a.jsx(Kt,{sx:j,title:R,children:H}),e[66]=R,e[67]=H,e[68]=W):W=e[68];let K;return e[69]!==T||e[70]!==W?(K=a.jsxs(te,{spacing:2,children:[T,W]}),e[69]=T,e[70]=W,e[71]=K):K=e[71],K}function mTt(t){const{description:e,uuid:r}=t;return{label:`${r} ${e?`- ${e}`:""}`,value:r}}function hTt(t){const{description:e,uuid:r}=t;return{label:`${r} ${e?`- ${e}`:""}`,value:r}}function gTt(t){return a.jsx(En,{value:g0[t],children:g0[t]},t)}const _Tt=()=>{const t=he.c(27),e=Ye(),{id:r}=ko(),n=zn(),{data:s,state:i,submit:o}=gr(),{openConfirmDialog:l}=di(),c=r!=="new";let u;t[0]!==r||t[1]!==c||t[2]!==o?(u=x=>{const w=rTt(x,!c);c&&r?o({supi:r,formData:w},{method:"PATCH",encType:"application/json",action:"update"}):o(w,{method:"POST",encType:"application/json",action:"create"})},t[0]=r,t[1]=c,t[2]=o,t[3]=u):u=t[3];const d=u;let f;t[4]!==r||t[5]!==e||t[6]!==c||t[7]!==l||t[8]!==o?(f=()=>{r&&c&&l({text:e.formatMessage({id:"udr_supis.actions.confirm_delete"}),onConfirm:()=>o({supi:r},{method:"DELETE",encType:"application/json",action:"delete"})})},t[4]=r,t[5]=e,t[6]=c,t[7]=l,t[8]=o,t[9]=f):f=t[9];const p=f;let m;t[10]!==p||t[11]!==e||t[12]!==c?(m=c&&a.jsx(hs,{children:a.jsx(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:p})})}),t[10]=p,t[11]=e,t[12]=c,t[13]=m):m=t[13];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"800px"}}),t[14]=h):h=t[14];let _;t[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[15]=_):_=t[15];let g;t[16]!==s||t[17]!==i||t[18]!==d||t[19]!==c?(g=x=>{const{supi:w,policyDataProfileList:C,provisionedDataProfileList:k}=x;return a.jsx(Wr,{initialValues:tTt(w),validationSchema:nTt,onSubmit:d,children:A=>{const{dirty:P}=A;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsx(te,{spacing:2,children:a.jsx(pTt,{isEditing:c,policyDataProfileList:C.data,provisionedDataProfileList:k.data,dirty:P,loading:i!=="idle",error:s})})})}})},t[16]=s,t[17]=i,t[18]=d,t[19]=c,t[20]=g):g=t[20];let y;t[21]!==n.createOrEditData||t[22]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:n.createOrEditData,errorElement:_,children:g})}),t[21]=n.createOrEditData,t[22]=g,t[23]=y):y=t[23];let b;return t[24]!==m||t[25]!==y?(b=a.jsxs(a.Fragment,{children:[m,y]}),t[24]=m,t[25]=y,t[26]=b):b=t[26],b};function vTt(t){const e=he.c(12),{errors:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]!==s?(i=()=>{s()},e[0]=s,e[1]=i):i=e[1];const o=i;let l;e[2]!==r?(l=a.jsx(_s,{children:a.jsx(Lr,{noIcon:!0,severity:"error",message:r})}),e[2]=r,e[3]=l):l=e[3];let c;e[4]!==n?(c=n.formatMessage({id:"common.form.close"}),e[4]=n,e[5]=c):c=e[5];let u;e[6]!==o||e[7]!==c?(u=a.jsx(Ti,{children:a.jsx(Ze,{text:c,onClick:o})}),e[6]=o,e[7]=c,e[8]=u):u=e[8];let d;return e[9]!==l||e[10]!==u?(d=a.jsxs(a.Fragment,{children:[l,u]}),e[9]=l,e[10]=u,e[11]=d):d=e[11],d}function yTt(t){const e=he.c(22),{loader:r,close:n,successMessage:s,errorMessage:i,revalidate:o}=t;let l;e[0]!==r?(l={to:r},e[0]=r,e[1]=l):l=e[1];const{data:c}=Dv(l),{dialogClose:u,dialogOpen:d}=Jt(),f=Ye(),p=j6e();let m;e[2]!==n||e[3]!==c||e[4]!==u||e[5]!==d||e[6]!==i||e[7]!==o||e[8]!==p||e[9]!==s?(m=()=>{const g=n(c);g&&(g.status==="ok"&&(u(),Nt(s),o&&p.revalidate()),g.status==="error"&&(u(),g.errors&&d({title:i,content:()=>a.jsx(vTt,{errors:g.errors})})))},e[2]=n,e[3]=c,e[4]=u,e[5]=d,e[6]=i,e[7]=o,e[8]=p,e[9]=s,e[10]=m):m=e[10];let h;e[11]!==n||e[12]!==c||e[13]!==u||e[14]!==d||e[15]!==i||e[16]!==f||e[17]!==o||e[18]!==p||e[19]!==s?(h=[n,c,u,d,i,f,o,p,s],e[11]=n,e[12]=c,e[13]=u,e[14]=d,e[15]=i,e[16]=f,e[17]=o,e[18]=p,e[19]=s,e[20]=h):h=e[20],I.useEffect(m,h);let _;return e[21]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(_s,{children:a.jsx(gt,{sx:{my:2},children:a.jsx(Nc,{variant:"indeterminate"})})}),e[21]=_):_=e[21],_}var mme=(t=>(t.CREATED="CREATED",t.RUNNING="RUNNING",t.TERMINATED="TERMINATED",t))(mme||{});const bTt=()=>{const t=he.c(35),e=Ye(),[r,n]=hl(),{drawerClose:s}=Jt();let i;t[0]!==s||t[1]!==n?(i=x=>{n(w=>{const C=new URLSearchParams;return C.set($.searchParams.pageSize,w.get($.searchParams.pageSize)||$.pageSize.toString()),x.supi_icont&&C.set("supi_icont",x.supi_icont),x.supi_noticont&&C.set("supi_noticont",x.supi_noticont),x.supi_iend&&C.set("supi_iend",x.supi_iend),x.gpsi_icont&&C.set("gpsi_icont",x.gpsi_icont),x.gpsi_noticont&&C.set("gpsi_noticont",x.gpsi_noticont),x.gpsi_iend&&C.set("gpsi_iend",x.gpsi_iend),x.status_eq&&C.set("status_eq",x.status_eq),C},{replace:!0}),s()},t[0]=s,t[1]=n,t[2]=i):i=t[2];const o=i;let l;t[3]!==s||t[4]!==n?(l=()=>{n(xTt,{replace:!0}),s()},t[3]=s,t[4]=n,t[5]=l):l=t[5];const c=l;let u;t[6]!==r?(u=r.get("supi_icont")??"",t[6]=r,t[7]=u):u=t[7];let d;t[8]!==r?(d=r.get("supi_noticont")??"",t[8]=r,t[9]=d):d=t[9];let f;t[10]!==r?(f=r.get("supi_iend")??"",t[10]=r,t[11]=f):f=t[11];let p;t[12]!==r?(p=r.get("gpsi_icont")??"",t[12]=r,t[13]=p):p=t[13];let m;t[14]!==r?(m=r.get("gpsi_noticont")??"",t[14]=r,t[15]=m):m=t[15];let h;t[16]!==r?(h=r.get("gpsi_iend")??"",t[16]=r,t[17]=h):h=t[17];let _;t[18]!==r?(_=r.get("status_eq")??"",t[18]=r,t[19]=_):_=t[19];let g;t[20]!==u||t[21]!==d||t[22]!==f||t[23]!==p||t[24]!==m||t[25]!==h||t[26]!==_?(g={supi_icont:u,supi_noticont:d,supi_iend:f,gpsi_icont:p,gpsi_noticont:m,gpsi_iend:h,status_eq:_},t[20]=u,t[21]=d,t[22]=f,t[23]=p,t[24]=m,t[25]=h,t[26]=_,t[27]=g):g=t[27];let y;t[28]!==e?(y=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsxs(te,{spacing:3,children:[a.jsx(Ke,{name:"status_eq",children:x=>{const{field:w,form:C}=x,{setFieldValue:k}=C;return a.jsx(rn,{value:w.value,name:w.name,label:e.formatMessage({id:"udr_supi.filters.status_eq_active_inactive"}),multiple:!1,size:"small",freeSolo:!1,options:["",...Zjt],onChange:(A,P)=>{k(w.name,P||"")},fullWidth:!0})}}),a.jsxs(te,{spacing:.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,fullWidth:!0,nowrap:!0,children:[a.jsxs(_e,{fontWeight:"600",lineHeight:"1",color:"text.secondary",children:[e.formatMessage({id:"udr_supi.filters.supi"})," "]}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"udr_supi.filters.case_insensitive.info"}),children:a.jsx("span",{children:a.jsx(te,{direction:"column",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]}),a.jsx(Ke,{name:"supi_icont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_icont"}),size:"small"})}}),a.jsx(Ke,{name:"supi_noticont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_noticont"}),size:"small"})}}),a.jsx(Ke,{name:"supi_iend",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_iend"}),size:"small"})}})]}),a.jsxs(te,{spacing:.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,fullWidth:!0,nowrap:!0,children:[a.jsx(_e,{fontWeight:"600",lineHeight:"1",color:"text.secondary",children:e.formatMessage({id:"udr_supi.filters.gpsi"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"udr_supi.filters.case_insensitive.info"}),children:a.jsx("span",{children:a.jsx(te,{direction:"column",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]}),a.jsx(Ke,{name:"gpsi_icont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_icont"}),size:"small"})}}),a.jsx(Ke,{name:"gpsi_noticont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_noticont"}),size:"small"})}}),a.jsx(Ke,{name:"gpsi_iend",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_iend"}),size:"small"})}})]})]})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-udr-supi-button-reset",text:e.formatMessage({id:"udr_supi.filters.buttons.reset"}),variant:"outlined",disabled:!as(ie.provisioning),type:"reset"}),a.jsx(Ze,{"data-testid":"filter-udr-supi-button-apply",text:e.formatMessage({id:"udr_supi.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[28]=e,t[29]=y):y=t[29];let b;return t[30]!==c||t[31]!==o||t[32]!==y||t[33]!==g?(b=a.jsx(Wr,{initialValues:g,onSubmit:o,onReset:c,children:y}),t[30]=c,t[31]=o,t[32]=y,t[33]=g,t[34]=b):b=t[34],b};function xTt(t){const e=new URLSearchParams;return e.set($.searchParams.pageSize,t.get($.searchParams.pageSize)||$.pageSize.toString()),e}const STt=()=>{const t=he.c(90),e=Ye(),r=ys(),{openConfirmDialog:n}=di(),{dialogOpen:s,dialogClose:i,drawerOpen:o}=Jt(),l=zn(),{submit:c,state:u}=gr(),{pageSize:d,pageSizeOptions:f,changePageSize:p,changePage:m,getRowsCount:h,getPage:_}=Na(),g=u7();let y;t[0]!==i||t[1]!==s||t[2]!==e?(y=()=>{s({title:e.formatMessage({id:"udr_supis.import.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:e.formatMessage({id:"udr_supis.import.form.file"}),accept:{"text/csv":[".csv"]},requiredMessage:e.formatMessage({id:"udr_supis.import.form.file.required"}),description:e.formatMessage({id:"udr_supis.import.form.description"}),exampleFileUrl:"/files/udr_supi_provisioning_example.csv",action:"udr/supis/upload",onDialogSuccess:nt=>{const Re=nt;s({title:e.formatMessage({id:"udr_supis.import.form.result.message_started"}),content:()=>a.jsx(yTt,{revalidate:!0,successMessage:e.formatMessage({id:"udr_supis.import.form.result.message_ok"}),errorMessage:e.formatMessage({id:"udr_supis.import.form.result.message_ko"}),loader:`udr/supis/upload/async/${Re.action_id}`,close:we=>we&&we.status===mme.TERMINATED?(i(),we.info.errors?.length?{status:"error",errors:we.info.errors.map(wTt)}:{status:"ok"}):null})})}})})},t[0]=i,t[1]=s,t[2]=e,t[3]=y):y=t[3];const b=y;let x;t[4]!==e||t[5]!==n||t[6]!==c?(x=nt=>{n({text:e.formatMessage({id:"udr_supis.actions.confirm_delete"}),onConfirm:()=>c({supi:nt.supi},{method:"DELETE",encType:"application/json",action:`${nt.supi}/delete`})})},t[4]=e,t[5]=n,t[6]=c,t[7]=x):x=t[7];const w=x;let C;t[8]!==e?(C=(nt,Re)=>[{key:"supi",label:e.formatMessage({id:"udr_supis.table.id"})},{key:"description",label:e.formatMessage({id:"udr_supis.table.description"})},{key:"gpsi",label:e.formatMessage({id:"udr_supis.table.gpsi"})},{key:"provisioned_data_profile",label:e.formatMessage({id:"udr_supis.table.provisioned_data_profile"}),cellRender:we=>{const{provisioned_data_profile:Me}=we,$e=Re.find(Ve=>Ve.uuid===Me?.uuid);return $e?.description?a.jsx(_e,{type:"body2",children:$e?.description}):a.jsx(_e,{type:"body2",children:$e?.uuid})}},{key:"policy_data_profile",label:e.formatMessage({id:"udr_supis.table.policy_data_profile"}),cellRender:we=>{const{policy_data_profile:Me}=we,$e=nt.find(Ve=>Ve.uuid===Me?.uuid);return $e?.description?a.jsx(_e,{type:"body2",children:$e?.description}):a.jsx(_e,{type:"body2",children:$e?.uuid})}},{key:"status",label:e.formatMessage({id:"udr_supis.table.status"}),cellRender:CTt},{key:"created_at",label:e.formatMessage({id:"udr_supis.table.created_at"}),cellRender:ATt},{key:"modified_at",label:e.formatMessage({id:"udr_supis.table.modified_at"}),cellRender:kTt}],t[8]=e,t[9]=C):C=t[9];const k=C;let A;t[10]===Symbol.for("react.memo_cache_sentinel")?(A=_l(ie.provisioning),t[10]=A):A=t[10];let P;t[11]!==r?(P={...A,onClick:nt=>r(`${$.urls.udrSupis}/${nt.supi}`)},t[11]=r,t[12]=P):P=t[12];let T;t[13]!==e?(T=e.formatMessage({id:"udr_supis.actions.info"}),t[13]=e,t[14]=T):T=t[14];let j,R;t[15]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.UEstatus,{}),R=as(ie.monitoring),t[15]=j,t[16]=R):(j=t[15],R=t[16]);let D;t[17]!==r?(D=nt=>r(`${$.urls.monitoringUeStatus}/${nt.supi}`),t[17]=r,t[18]=D):D=t[18];let O;t[19]!==T||t[20]!==D?(O={label:T,icon:j,disabled:!R,onClick:D},t[19]=T,t[20]=D,t[21]=O):O=t[21];let N;t[22]!==e?(N=e.formatMessage({id:"udr_supis.actions.delete"}),t[22]=e,t[23]=N):N=t[23];let F,U;t[24]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),U=Ue(ie.provisioning),t[24]=F,t[25]=U):(F=t[24],U=t[25]);let z;t[26]!==w?(z=nt=>void w(nt),t[26]=w,t[27]=z):z=t[27];let H;t[28]!==N||t[29]!==z?(H={label:N,icon:F,disabled:!U,onClick:z},t[28]=N,t[29]=z,t[30]=H):H=t[30];let W;t[31]!==H||t[32]!==P||t[33]!==O?(W=[P,O,H],t[31]=H,t[32]=P,t[33]=O,t[34]=W):W=t[34];const K=W;let q;t[35]!==o||t[36]!==e?(q=()=>{o({title:e.formatMessage({id:"udr_supi.toolbar.filters"}),content:MTt})},t[35]=o,t[36]=e,t[37]=q):q=t[37];const X=q;let Q;t[38]!==g?(Q=d7({filter:g}),t[38]=g,t[39]=Q):Q=t[39];const Y=!Q;let Z;t[40]!==e?(Z=e.formatMessage({id:"udr_supi.toolbar.filters"}),t[40]=e,t[41]=Z):Z=t[41];let re;t[42]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(ge.Filter,{}),t[42]=re):re=t[42];let fe;t[43]!==X||t[44]!==Z?(fe=a.jsx(Ze,{"data-testid":"supi-btn-filters",variant:"outlined",text:Z,startIcon:re,onClick:X}),t[43]=X,t[44]=Z,t[45]=fe):fe=t[45];let de;t[46]!==Y||t[47]!==fe?(de=a.jsx(Iv,{variant:"dot",invisible:Y,children:fe}),t[46]=Y,t[47]=fe,t[48]=de):de=t[48];let se;t[49]!==e?(se=e.formatMessage({id:"udr_supis.toolbar.import"}),t[49]=e,t[50]=se):se=t[50];let le;t[51]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(ge.Upload,{}),t[51]=le):le=t[51];let ee;t[52]!==u?(ee=u!=="idle"||!Ue(ie.provisioning),t[52]=u,t[53]=ee):ee=t[53];let J;t[54]!==b||t[55]!==se||t[56]!==ee?(J=a.jsx(Ze,{variant:"outlined","data-testid":"supi-btn-import",text:se,startIcon:le,onClick:b,disabled:ee}),t[54]=b,t[55]=se,t[56]=ee,t[57]=J):J=t[57];let me;t[58]!==e?(me=e.formatMessage({id:"common.new"}),t[58]=e,t[59]=me):me=t[59];let pe;t[60]===Symbol.for("react.memo_cache_sentinel")?(pe=a.jsx(ge.Add,{}),t[60]=pe):pe=t[60];let Se;t[61]!==r?(Se=()=>r(`${$.urls.udrSupis}/new`),t[61]=r,t[62]=Se):Se=t[62];let ve;t[63]!==u?(ve=u!=="idle"||!Ue(ie.provisioning),t[63]=u,t[64]=ve):ve=t[64];let xe;t[65]!==me||t[66]!==Se||t[67]!==ve?(xe=a.jsx(Ze,{"data-testid":"supi-btn-add",text:me,startIcon:pe,onClick:Se,disabled:ve}),t[65]=me,t[66]=Se,t[67]=ve,t[68]=xe):xe=t[68];let qe;t[69]!==de||t[70]!==J||t[71]!==xe?(qe=a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[de,J,xe]})}),t[69]=de,t[70]=J,t[71]=xe,t[72]=qe):qe=t[72];let Le;t[73]===Symbol.for("react.memo_cache_sentinel")?(Le=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[73]=Le):Le=t[73];let Te;t[74]!==m||t[75]!==p||t[76]!==k||t[77]!==_||t[78]!==h||t[79]!==d||t[80]!==f||t[81]!==K||t[82]!==u?(Te=nt=>{const{supiList:Re,policyDataProfileList:we,provisionedDataProfileList:Me}=nt;return a.jsx(Br,{autoScale:!0,orderBy:"supi",columns:k(we.data,Me.data),data:Re.data,page:_(Re.metadata),labelDisplayedRows:PTt,rowsCount:h(Re.metadata),rowsPerPage:d,onRowsPerPageChange:p,rowsPerPageOptions:f,rowKey:"supi",rowActions:K,stickyRowActions:!0,onPageChange:m(Re.metadata),loading:u!=="idle"})},t[74]=m,t[75]=p,t[76]=k,t[77]=_,t[78]=h,t[79]=d,t[80]=f,t[81]=K,t[82]=u,t[83]=Te):Te=t[83];let je;t[84]!==l.supisData||t[85]!==Te?(je=a.jsx(I.Suspense,{fallback:Le,children:a.jsx(Qt,{resolve:l.supisData,children:Te})}),t[84]=l.supisData,t[85]=Te,t[86]=je):je=t[86];let Ge;return t[87]!==qe||t[88]!==je?(Ge=a.jsxs(a.Fragment,{children:[qe,je]}),t[87]=qe,t[88]=je,t[89]=Ge):Ge=t[89],Ge};function wTt(t){return`${t.entity} - ${t.reason}`}function CTt(t){const{status:e}=t;return a.jsx(ms,{size:"small",id:e,label:e,color:e===fme.ACTIVE?"success":"default"})}function ATt(t){const{created_at:e}=t;return a.jsx("span",{children:Mr(e)})}function kTt(t){const{modified_at:e}=t;return a.jsx("span",{children:Mr(e)})}function MTt(){return a.jsx(bTt,{})}function PTt(){return""}const nh={AES_128_ECB:{name:"AES_128_ECB",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!1,isAdRequired:!1},AES_192_ECB:{name:"AES_192_ECB",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!1,isAdRequired:!1},AES_256_ECB:{name:"AES_256_ECB",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!1,isAdRequired:!1},DES_64_ECB:{name:"DES_64_ECB",validation:/^[a-fA-F0-9]{16}$/,isIvRequired:!1,isAdRequired:!1},TDES_128_ECB:{name:"TDES_128_ECB",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!1,isAdRequired:!1},TDES_192_ECB:{name:"TDES_192_ECB",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!1,isAdRequired:!1},AES_128_CBC:{name:"AES_128_CBC",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},AES_192_CBC:{name:"AES_192_CBC",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},AES_256_CBC:{name:"AES_256_CBC",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},DES_64_CBC:{name:"DES_64_CBC",validation:/^[a-fA-F0-9]{16}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},TDES_128_CBC:{name:"TDES_128_CBC",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},TDES_192_CBC:{name:"TDES_192_CBC",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},AES_128_GCM:{name:"AES_128_GCM",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/},AES_192_GCM:{name:"AES_192_GCM",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/},AES_256_GCM:{name:"AES_256_GCM",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/}},jTt=Object.values(nh),TTt=new RegExp(`^(${Object.keys(nh).join("|")})$`),hme=t=>{const e=he.c(33),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=r!==void 0;let o;e[0]!==r||e[1]!==i?(o=i&&{editLoadTo:`${$.urls.udrTransportKeys}/${r}`},e[0]=r,e[1]=i,e[2]=o):o=e[2];let l;e[3]!==o?(l={...o},e[3]=o,e[4]=l):l=e[4];const{upsertFetcher:c,dataFetcher:u,isLoading:d}=Ys(l),{data:f,state:p,submit:m}=c,{data:h,state:_}=u;let g;e[5]!==m||e[6]!==r||e[7]!==i?(g=P=>{const{id:T,key:j,iv:R,cipher:D,ad:O}=P;if(i){m({id:r,key:j,cipher:D,...R&&{iv:R},...O&&{ad:O}},{action:`${$.urls.udrTransportKeys}/update`,method:"POST",encType:"application/json"});return}m({id:T,key:j,cipher:D,...R&&{iv:R},...O&&{ad:O}},{action:`${$.urls.udrTransportKeys}/create`,method:"POST",encType:"application/json"})},e[5]=m,e[6]=r,e[7]=i,e[8]=g):g=e[8];const y=g;let b;e:{if(!i||!h){let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D={id:"",cipher:"AES_128_ECB",key:"",ad:"",iv:""},e[9]=D):D=e[9],b=D;break e}const P=h.udrTransportKey,T=P?.id??"",j=P?.cipher??"AES_128_ECB";let R;e[10]!==T||e[11]!==j?(R={id:T,cipher:j,key:"",ad:"",iv:""},e[10]=T,e[11]=j,e[12]=R):R=e[12],b=R}const x=b;let w;if(e[13]!==n||e[14]!==i){let P;e[16]!==n?(P=(j,R)=>{const D=nh[j];return!D||!D.isIvRequired?R:D.ivValidation?R.required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).matches(new RegExp(D.ivValidation)):R},e[16]=n,e[17]=P):P=e[17];let T;e[18]!==n?(T=(j,R)=>{const D=nh[j];return!D||!D.isAdRequired?R:D.adValidation?R.required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).matches(new RegExp(D.adValidation)):R},e[18]=n,e[19]=T):T=e[19],w=dr().shape({...!i&&{id:We().required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"}))},cipher:We().strict(!0).matches(TTt).required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})),key:We().required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).when("cipher",ETt),iv:We().when("cipher",P),ad:We().when("cipher",T)}),e[13]=n,e[14]=i,e[15]=w}else w=e[15];const C=w;let k;e[20]!==s||e[21]!==f||e[22]!==p||e[23]!==n||e[24]!==i||e[25]!==d||e[26]!==_?(k=P=>{const{values:T}=P;return a.jsxs(dn,{canWrite:Ue(ie.transport_keys),fullHeight:!0,children:[a.jsx(_s,{loading:d,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"id",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.id"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||_!=="idle"||p!=="idle"})}}),a.jsx(Ke,{name:"cipher",children:j=>{const{field:R,meta:D,form:O}=j,{setFieldValue:N}=O,F=U=>{N(R.name,U)};return a.jsx(qs,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.cipher"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle",onChange:U=>F(U.target.value),children:jTt.map(RTt)})}}),a.jsx(Ke,{name:"key",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.key"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),nh[T.cipher].isIvRequired&&a.jsx(Ke,{name:"iv",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.iv"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),nh[T.cipher].isAdRequired&&a.jsx(Ke,{name:"ad",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.ad"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),a.jsx(Xr,{data:f})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"udr-transport-keys-button-cancel",text:n.formatMessage({id:"udr_transport_keys.import.cancel"}),variant:"outlined",disabled:_!=="idle"||p!=="idle"||!Ue(ie.transport_keys),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"udr-transport-keys-button-save",text:n.formatMessage({id:"udr_transport_keys.import.save"}),type:"submit",disabled:_!=="idle"||p!=="idle"||!Ue(ie.transport_keys)})]})})]})},e[20]=s,e[21]=f,e[22]=p,e[23]=n,e[24]=i,e[25]=d,e[26]=_,e[27]=k):k=e[27];let A;return e[28]!==y||e[29]!==x||e[30]!==k||e[31]!==C?(A=a.jsx(Wr,{initialValues:x,enableReinitialize:!0,validationSchema:C,onSubmit:y,children:k}),e[28]=y,e[29]=x,e[30]=k,e[31]=C,e[32]=A):A=e[32],A};function ETt(t,e){const r=nh[t];return r?e.strict(!0).matches(new RegExp(r.validation)):e}function RTt(t){return a.jsx(En,{value:t.name,children:t.name},t.name)}const ITt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=async()=>{r({title:e.formatMessage({id:"udr_transport_keys.toolbar.new_transport_key"}),content:DTt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.transport_keys),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{"data-testid":"toolbar-button-new-transport-key",text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function DTt(){return a.jsx(hme,{})}const $Tt=()=>{const t=he.c(64),e=Ye(),r=Gr(),{openConfirmDialog:n}=di(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=re=>{re&&o({title:e.formatMessage({id:"udr_transport_keys.edit_transport_key.title"}),content:()=>a.jsx(hme,{id:re}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==n?(_=re=>{re&&n({text:e.formatMessage({id:"udr_transport_keys.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:re},{action:`${$.urls.udrTransportKeys}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=n,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_transport_keys.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:OTt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_transport_keys.table.header.cipher"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"cipher",label:x,cellRender:LTt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_transport_keys.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:NTt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_transport_keys.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:FTt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l([ie.transport_keys,ie.provisioning]),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=re=>{const{id:fe}=re;return h(fe)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_transport_keys.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==g?(z=re=>{const{id:fe}=re;return void g(fe)},t[37]=g,t[38]=z):z=t[38];let H;t[39]!==i.state||t[40]!==s.state?(H=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.transport_keys),t[39]=i.state,t[40]=s.state,t[41]=H):H=t[41];let W;t[42]!==F||t[43]!==z||t[44]!==H?(W={label:F,icon:U,onClick:z,disabled:H},t[42]=F,t[43]=z,t[44]=H,t[45]=W):W=t[45];let K;t[46]!==N||t[47]!==W?(K=[N,W],t[46]=N,t[47]=W,t[48]=K):K=t[48];const q=K;let X;t[49]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[49]=X):X=t[49];let Q;t[50]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Tr,{}),t[50]=Q):Q=t[50];let Y;t[51]!==d||t[52]!==u||t[53]!==j||t[54]!==i.state||t[55]!==p||t[56]!==f||t[57]!==l||t[58]!==c||t[59]!==q?(Y=re=>{const{data:fe,metadata:de}=re;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(ITt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:fe,page:p(de),labelDisplayedRows:UTt,rowsCount:f(de),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:q,stickyRowActions:!0,onPageChange:d(de)})]})},t[51]=d,t[52]=u,t[53]=j,t[54]=i.state,t[55]=p,t[56]=f,t[57]=l,t[58]=c,t[59]=q,t[60]=Y):Y=t[60];let Z;return t[61]!==r.udrTransportKeyList||t[62]!==Y?(Z=a.jsx(I.Suspense,{fallback:X,children:a.jsx(Qt,{resolve:r.udrTransportKeyList,errorElement:Q,children:Y})}),t[61]=r.udrTransportKeyList,t[62]=Y,t[63]=Z):Z=t[63],Z};function OTt(t){const{id:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function LTt(t){const{cipher:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function NTt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function FTt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function UTt(){return""}async function BTt({request:t}){const e=await t.json(),r=await zlt(e);return xt(r)||(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function zTt({request:t}){const e=await t.json(),r=await qlt(e);return xt(r)||(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function qTt({request:t}){const{id:e}=await t.json(),r=await Vlt(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function VTt({request:t}){const e=await t.json(),r=await Hlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function HTt({request:t}){const e=await t.json(),r=await Glt(e);return xt(r)?Ar():Nt(),Ft(r)}async function GTt({request:t}){const{service_indication:e,public_identity:r}=await t.json(),n=await Wlt({service_indication:e,public_identity:r});return xt(n)?Ar():Nt(),Ft(n)}async function WTt({request:t}){const e=await t.json(),r=await ect(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrImsPrivateIdentities))}async function YTt({request:t}){const e=await t.json(),r=await tct(e);return xt(r)||Nt(),Ft(r)}async function KTt({request:t}){const e=await t.json(),r=await rct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrImsPrivateIdentities))}async function QTt({request:t}){const{name:e}=await t.json(),r=await nct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrImsPrivateIdentities)return rt($.urls.udrImsPrivateIdentities);return Ft(r)}async function ZTt({request:t}){const e=await t.json(),r=await lct(e);return xt(r)||(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function XTt({request:t}){const e=await t.json(),r=await cct(e);return xt(r)||(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function JTt({request:t}){const{id:e}=await t.json(),r=await uct(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function e4t({request:t}){const{mcc:e,mnc:r}=await t.json(),n=await pct(e,r);return xt(n)||Nt(),Ft(n)}async function t4t({request:t}){const{mcc:e,mnc:r}=await t.json(),n=await mct(e,r);return xt(n)?Ar():Nt(),Ft(n)}async function r4t({request:t}){const e=await t.json(),r=await gct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrPolicyDataProfile))}async function n4t({request:t}){const e=await t.json(),r=await _ct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrPolicyDataProfile))}async function s4t({request:t}){const{id:e}=await t.json(),r=await vct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrPolicyDataProfile)return rt($.urls.udrPolicyDataProfile);return Ft(r)}async function i4t({request:t}){const e=await t.json(),r=await bct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrProvisionedDataProfile))}async function o4t({request:t}){const{profile:e}=await t.json(),{uuid:r,...n}=e,s=await xct(r,n);return xt(s)?Ft(s):(Nt(),rt($.urls.udrProvisionedDataProfile))}async function a4t({request:t}){const{id:e}=await t.json(),r=await Sct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrProvisionedDataProfile)return rt($.urls.udrProvisionedDataProfile);return Ft(r)}async function l4t({request:t}){const e=await t.json(),r=await kct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrSupis))}async function c4t({request:t}){const{supi:e,formData:r}=await t.json(),n=await Mct(e,r);return xt(n)?Ft(n):(Nt(),rt($.urls.udrSupis))}async function u4t({request:t}){const{supi:e}=await t.json(),r=await Pct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrSupis)return rt($.urls.udrSupis);return Ft(r)}async function d4t({request:t}){const r=(await t.formData()).getAll("files"),n=await jct(r[0]);return Ft(n)}async function f4t({request:t}){const e=await t.json(),r=await Dct(e);return xt(r)||(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function p4t({request:t}){const e=await t.json(),r=await $ct(e);return xt(r)||(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function m4t({request:t}){const{id:e}=await t.json(),r=await Oct(e);return xt(r)?Ar():(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function h4t({request:t}){const e=await t.json(),r=await Nct(e);return xt(r)||Nt(),Ft(r)}async function g4t(){const t=await Fct();return xt(t)?Nt(t.error.detail):Nt(),Ft(t)}async function _4t({request:t}){const e=await t.json(),r=await Bct(e);return xt(r)||Nt(),Ft(r)}async function v4t({request:t}){const e=await t.json(),r=await zct(e);return xt(r)||Nt(),Ft(r)}async function y4t({request:t}){const{id:e}=await t.json(),r=await qct(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}const b4t=async t=>{const e=new URL(t.request.url),r=e.searchParams.get("applicationServer"),n=e.searchParams.get("dataReferenceEq");return Wt({loaderArgs:t,deferred:!0,data:{udrImsApplicationServerAclList:Ult({applicationServer:r,dataReferenceEq:n})}})};async function x4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsApplicationServerAcl:Blt({id:e})}}):null}const S4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsInitialFilterList:Ylt({pageSize:e,paginationToken:r})}})};async function w4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsInitialFilter:Klt({id:e})}}):null}const C4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityList:Jlt({pageSize:e,paginationToken:r})}})};async function A4t(t){const{name:e}=t.params;return e&&e!=="new"?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentity:jue({name:e})}}):null}async function k4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentity:jue({name:e})}}):null}async function M4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityPrivateStatus:sct(e)}}):null}async function P4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityPublicStatus:ict(e)}}):null}const j4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsServiceProfileList:oct({pageSize:e,paginationToken:r})}})};async function T4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsServiceProfile:act({id:e})}}):null}const E4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPlmnList:fct({pageSize:+e,...r&&{paginationToken:r}})}})},R4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPolicyDataProfileList:h7({pageSize:+e,...r&&{paginationToken:r}})}})},I4t=async t=>{const{id:e}=t.params;if(e&&e!=="new"){const r=hct(e);return Wt({loaderArgs:t,deferred:!0,data:{udrPolicyDataProfile:r}})}return Wt({loaderArgs:t,deferred:!1,data:{}})};function D4t(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{profiles:g7({pageSize:+e,...r&&{paginationToken:r}})}})}async function $4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt(e==="new"?{loaderArgs:t,deferred:!1,data:{}}:{loaderArgs:t,deferred:!0,data:{profile:yct(e)}})}async function O4t(t){const e=new URL(t.request.url),r=e.searchParams.get("supi_icont"),n=e.searchParams.get("supi_noticont"),s=e.searchParams.get("supi_iend"),i=e.searchParams.get("gpsi_icont"),o=e.searchParams.get("gpsi_noticont"),l=e.searchParams.get("gpsi_iend"),c=e.searchParams.get("status_eq"),{pageSize:u,paginationToken:d}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{supisData:Ect({pageSize:+u,paginationToken:d,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c})}})}async function L4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt(e==="new"?{loaderArgs:t,deferred:!1,data:{createOrEditData:KX()}}:{loaderArgs:t,deferred:!0,data:{createOrEditData:KX(e)}})}async function N4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});const r=await Tct(e);return Ft(r)}const F4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrTransportKeyList:Rct({pageSize:e,paginationToken:r})}})};async function Qee(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrTransportKey:Ict({id:e})}}):null}const U4t=async t=>Wt({loaderArgs:t,deferred:!0,data:{milenageCostants:Lct()}});function B4t(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{operatorKeys:Uct({pageSize:+e,...r&&{paginationToken:r}})}})}const z4t={path:"udr",handle:vr({labelIntl:"route.udr",icon:a.jsx(ge.UDR,{})}),children:[{element:a.jsx(Or,{center:!0}),children:[{path:"custom-milenage-constants",handle:vr({labelIntl:"route.udr.custom-milenage-constants",to:$.urls.udrCustomMilenageConstants}),loader:U4t,element:a.jsx(OPt,{}),children:[{path:"update",action:h4t,loader:()=>rt("..")},{path:"delete",action:g4t,loader:()=>rt("..")}]}]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UDR,{dbCluster:!0})]},{path:"supis",handle:vr({labelIntl:"route.udr.supis",to:$.urls.udrSupis}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:O4t,element:a.jsx(STt,{})}]},{path:"upload",action:d4t,loader:()=>rt("..")},{path:"upload/async/:id",loader:N4t,element:a.jsx(ur,{to:$.urls.udrSupis,replace:!0})},{element:a.jsx(Or,{center:!0}),children:[{path:":id",loader:L4t,handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.supis.new":"route.udr.supis.id",...e!=="new"&&{captionIntl:"route.udr.supis.id.caption",captionIntlParams:{id:e}},to:`${$.urls.udrSupis}/${e}`})},element:a.jsx(_Tt,{}),children:[{path:"create",action:l4t,loader:()=>rt("..")},{path:"update",action:c4t,loader:()=>rt("..")},{path:"delete",action:u4t,loader:()=>rt("..")}]}]}]},{path:"ims-private-identities",handle:vr({labelIntl:"route.udr.ims-private-identities",to:$.urls.udrImsPrivateIdentities}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:C4t,element:a.jsx(lPt,{})},{path:"private-status/:name",loader:M4t,element:a.jsx(ur,{to:$.urls.udrImsPrivateIdentities,replace:!0})},{path:"public-status/:name",loader:P4t,element:a.jsx(ur,{to:$.urls.udrImsPrivateIdentities,replace:!0})},{action:WTt,path:"create",loader:()=>rt("..")},{action:YTt,path:"create-basic",loader:()=>rt("..")},{action:KTt,path:"update",loader:()=>rt("..")},{action:QTt,path:"delete",loader:()=>rt("..")}]},{path:":name",handle:t=>{const e=t.params.name;return vr({labelIntl:e==="new"?"route.udr.ims-private-identities.new":"route.udr.ims-private-identities.id",...e!=="new"&&{captionIntl:"route.udr.ims-private-identities.id.caption",captionIntlParams:{id:e}},to:$.urls.udrImsPrivateIdentitiesDetails.replace(":name",e)})},children:[{element:a.jsx(Or,{center:!0}),children:[{index:!0,loader:A4t,element:a.jsx(bPt,{})},{path:"application-servers-profiles",handle:t=>{const e=t.params.name;return vr({labelIntl:"route.udr.ims-private-identities.id.application-servers-profiles",to:`${$.urls.udrImsPrivateIdentitiesDetails.replace(":name",e)}/application-servers-profiles`,...e!=="new"&&{captionIntl:"route.udr.ims-private-identities.id.caption",captionIntlParams:{id:e}}})},loader:k4t,element:a.jsx(vPt,{}),children:[{action:VTt,path:"create",loader:()=>rt("..")},{action:HTt,path:"update",loader:()=>rt("..")},{action:GTt,path:"delete",loader:()=>rt("..")}]}]}]}]},{path:"provisioned-data-profile",handle:vr({labelIntl:"route.udr.provisioned-data-profile",to:$.urls.udrProvisionedDataProfile}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:D4t,element:a.jsx(Gjt,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.provisioned-data-profile.new":"route.udr.provisioned-data-profile.id",...e!=="new"&&{captionIntl:"route.udr.provisioned-data-profile.id.caption",captionIntlParams:{id:e}},to:$.urls.udrProvisionedDataProfileDetails.replace(":id",e)})},loader:$4t,element:a.jsx(Hjt,{}),children:[{path:"create",action:i4t,loader:()=>rt("..")},{path:"update",action:o4t,loader:()=>rt("..")},{path:"delete",action:a4t,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.UDR),{path:"plmns",handle:vr({labelIntl:"route.udr.plmns",to:$.urls.udrPlmns}),loader:E4t,element:a.jsx(WPt,{}),children:[{path:"create",action:e4t,loader:()=>rt("..")},{path:"delete",action:t4t,loader:()=>rt("..")}]},{path:"ims-application-server-acls",handle:vr({labelIntl:"route.udr.ims-application-server-acls",to:$.urls.udrImsApplicationServerAcls}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:b4t,element:a.jsx(RMt,{})},{path:":id",loader:x4t,element:a.jsx(ur,{to:$.urls.udrImsApplicationServerAcls,replace:!0})},{action:BTt,path:"create",loader:()=>rt("..")},{action:zTt,path:"update",loader:()=>rt("..")},{action:qTt,path:"delete",loader:()=>rt("..")}]},{path:"ims-service-profiles",handle:vr({labelIntl:"route.udr.ims-service-profiles",to:$.urls.udrImsServiceProfiles}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:j4t,element:a.jsx(PPt,{})},{path:":id",loader:T4t,element:a.jsx(ur,{to:$.urls.udrImsServiceProfiles,replace:!0})},{action:ZTt,path:"create",loader:()=>rt("..")},{action:XTt,path:"update",loader:()=>rt("..")},{action:JTt,path:"delete",loader:()=>rt("..")}]},{path:"ims-initial-filters",handle:vr({labelIntl:"route.udr.ims-initial-filters",to:$.urls.udrImsInitialFilters}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:S4t,element:a.jsx(HMt,{})},{path:":id",loader:w4t,element:a.jsx(ur,{to:$.urls.udrImsInitialFilters,replace:!0})},{action:FMt,path:"create",loader:()=>rt("..")},{action:UMt,path:"update",loader:()=>rt("..")},{action:BMt,path:"delete",loader:()=>rt("..")}]},{path:"transport-keys",handle:vr({labelIntl:"route.udr.transport-keys",to:$.urls.udrTransportKeys}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:F4t,element:a.jsx($Tt,{})},{path:":id",loader:Qee,element:a.jsx(ur,{to:$.urls.udrTransportKeys,replace:!0})},{action:f4t,path:"create",loader:()=>rt("..")},{action:p4t,path:"update",loader:()=>rt("..")},{action:m4t,path:"delete",loader:()=>rt("..")}]},{path:"operator-codes",handle:vr({labelIntl:"route.udr.operator-codes",to:$.urls.udrOperatorCodes}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:B4t,element:a.jsx(FPt,{})},{path:":id",loader:Qee,element:a.jsx(ur,{to:$.urls.udrOperatorCodes,replace:!0})},{path:"create",action:_4t,loader:()=>rt("..")},{path:"update",action:v4t,loader:()=>rt("..")},{path:"delete",action:y4t,loader:()=>rt("..")}]}]},{path:"policy-data-profile",handle:vr({labelIntl:"route.udr.policy-data-profile",to:$.urls.udrPolicyDataProfile}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:R4t,element:a.jsx(XPt,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.policy-data-profile.new":"route.udr.policy-data-profile.id",...e!=="new"&&{captionIntl:"route.udr.policy-data-profile.id.caption",captionIntlParams:{id:e}},to:$.urls.udrPolicyDataProfileDetails.replace(":id",e)})},loader:I4t,element:a.jsx(fjt,{}),children:[{path:"create",action:r4t,loader:()=>rt("..")},{path:"update",action:n4t,loader:()=>rt("..")},{path:"delete",action:s4t,loader:()=>rt("..")}]}]}]}]};function q4t(){const t=he.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},t[0]=e):e=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={maxWidth:"500px"},t[1]=r):r=t[1];let n;return t[2]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(gt,{sx:e,children:a.jsx(pr,{title:"Unauthorized",sx:r,children:a.jsx(Kt,{children:a.jsx(Lr,{severity:"warning",message:"You are not authorized to view any content. Check your account permissions."})})})}),t[2]=n):n=t[2],n}function V4t(){return Aae()?rt(".."):null}const H4t={path:"unauthorized",loader:V4t,element:a.jsx(q4t,{})},Zee=Pr(),G4t={path:"upf",handle:vr({labelIntl:"route.upf",icon:a.jsx(ge.UPF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UPF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.UPF),{path:"status",element:a.jsx(Ao,{tabs:[{url:"pfcp",label:Zee.formatMessage({id:"route.upf.status.pfcp"})},{url:"gtpu",label:Zee.formatMessage({id:"route.upf.status.gtpu"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"pfcp",replace:!0})},h8({path:"pfcp",nf:ue.UPF}),m7({path:"gtpu",nf:ue.UPF})]}]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.UPF)]}]},W4t={errorElement:a.jsx(rN,{}),children:[Zae({element:a.jsx(Pze,{}),loader:dqe,path:"/",action:Dze,children:[{errorElement:a.jsx(gUe,{}),children:[{path:"site-loader",element:a.jsx(ur,{to:"/home",replace:!0}),loader:pqe},{element:a.jsx(ur,{to:"/home",replace:!0}),index:!0},Wwt,sht,Ttt,frt,prt,lnt,mnt,Yst,gnt,Vit,Mat,gut,ndt,Oft,Nft,nCt,sCt,wCt,Xkt,CMt,z4t,G4t,{path:"marvis",element:a.jsx(Or,{fullHeight:!0}),handle:vr({labelIntl:"P5G Marvis",icon:a.jsx(ge.Magic,{})}),children:[{index:!0,element:a.jsx(ur,{to:"overview",replace:!0})},{path:"overview",element:a.jsx("iframe",{src:"/core/marvis/overview",style:{display:"block",width:"100%",height:"100%",border:"none"},title:"P5G Marvis Insights"})},{path:"actions",element:a.jsx("iframe",{src:"/core/marvis/actions",style:{display:"block",width:"100%",height:"100%",border:"none"},title:"P5G Marvis Actions"})},{path:"minis",element:a.jsx("iframe",{src:"/core/marvis/minis",style:{display:"block",width:"100%",height:"100%",border:"none"},title:"P5G Marvis Minis"})},{path:"ai",element:a.jsx("iframe",{src:"/core/marvis/",style:{display:"block",width:"100%",height:"100%",border:"none"},title:"P5G Marvis AI"})}]},{path:"radio",element:a.jsx(Or,{fullHeight:!0}),handle:vr({labelIntl:"P5G Radio",icon:a.jsx(ge.Magic,{})}),children:[{index:!0,element:a.jsx("iframe",{src:"/core/radio/",style:{display:"block",width:"100%",height:"100%",border:"none"},title:"P5G Radio"})}]},rht]}]}),{element:a.jsx(zW,{}),loader:vY,children:[Srt]},{element:a.jsx(zW,{profileCard:!0}),loader:vY,children:[H4t]},mqe,wrt,Crt,pht]},Y4t=J6e([W4t]),K4t=()=>{const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(a$e,{router:Y4t}),t[0]=e):e=t[0],e},gme=Ioe(),Q4t=Doe(gme);function Z4t(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(LPe,{locale:gme,messages:Q4t,children:a.jsx(xre,{dateAdapter:dMe,children:a.jsx(JIe,{children:a.jsxs(a.Fragment,{children:[a.jsx(yDe,{}),a.jsx(K4t,{})]})})})}),t[0]=e):e=t[0],e}const X4t=document.getElementById("root"),J4t=Age.createRoot(X4t);J4t.render(a.jsx(I.StrictMode,{children:a.jsx(Z4t,{})}));
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:294:    ${t.palette.mode==="light"?Fu(br(t.palette.divider,1),.88):Nu(br(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${sFe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),na=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableCell"}),{align:s="inherit",className:i,component:o,padding:l,scope:c,size:u,sortDirection:d,variant:f,...p}=n,m=I.useContext(gae),h=I.useContext(BA),_=h&&h.variant==="head";let g;o?g=o:g=_?"th":"td";let y=c;g==="td"?y=void 0:!y&&_&&(y="col");const b=f||h&&h.variant,x={...n,align:s,component:g,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:b==="head"&&m&&m.stickyHeader,variant:b},w=iFe(x);let C=null;return d&&(C=d==="asc"?"ascending":"descending"),a.jsx(oFe,{as:g,ref:r,className:lt(w.root,i),"aria-sort":C,scope:y,ownerState:x,...p})});function aFe(t){return tr("MuiTableContainer",t)}rr("MuiTableContainer",["root"]);const lFe=t=>{const{classes:e}=t;return nr({root:["root"]},aFe,e)},cFe=Ce("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),uFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableContainer"}),{className:s,component:i="div",...o}=n,l={...n,component:i},c=lFe(l);return a.jsx(cFe,{ref:r,as:i,className:lt(c.root,s),ownerState:l,...o})});function dFe(t){return tr("MuiTableHead",t)}rr("MuiTableHead",["root"]);const fFe=t=>{const{classes:e}=t;return nr({root:["root"]},dFe,e)},pFe=Ce("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),mFe={variant:"head"},$W="thead",OW=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableHead"}),{className:s,component:i=$W,...o}=n,l={...n,component:i},c=fFe(l);return a.jsx(BA.Provider,{value:mFe,children:a.jsx(pFe,{as:i,className:lt(c.root,s),ref:r,role:i===$W?null:"rowgroup",ownerState:l,...o})})});function hFe(t){return tr("MuiToolbar",t)}rr("MuiToolbar",["root","gutters","regular","dense"]);const gFe=t=>{const{classes:e,disableGutters:r,variant:n}=t;return nr({root:["root",!r&&"gutters",n]},hFe,e)},_Fe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xt(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),tN=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiToolbar"}),{className:s,component:i="div",disableGutters:o=!1,variant:l="regular",...c}=n,u={...n,component:i,disableGutters:o,variant:l},d=gFe(u);return a.jsx(_Fe,{as:i,className:lt(d.root,s),ref:r,ownerState:u,...c})}),vFe=I.forwardRef(function(e,r){const{backIconButtonProps:n,count:s,disabled:i=!1,getItemAriaLabel:o,nextIconButtonProps:l,onPageChange:c,page:u,rowsPerPage:d,showFirstButton:f,showLastButton:p,slots:m={},slotProps:h={},..._}=e,g=ui(),y=q=>{c(q,0)},b=q=>{c(q,u-1)},x=q=>{c(q,u+1)},w=q=>{c(q,Math.max(0,Math.ceil(s/d)-1))},C=m.firstButton??Zr,k=m.lastButton??Zr,A=m.nextButton??Zr,P=m.previousButton??Zr,T=m.firstButtonIcon??U8e,j=m.lastButtonIcon??B8e,R=m.nextButtonIcon??nse,D=m.previousButtonIcon??rse,O=g?k:C,N=g?A:P,F=g?P:A,U=g?C:k,z=g?h.lastButton:h.firstButton,H=g?h.nextButton:h.previousButton,W=g?h.previousButton:h.nextButton,K=g?h.firstButton:h.lastButton;return a.jsxs("div",{ref:r,..._,children:[f&&a.jsx(O,{onClick:y,disabled:i||u===0,"aria-label":o("first",u),title:o("first",u),...z,children:g?a.jsx(j,{...h.lastButtonIcon}):a.jsx(T,{...h.firstButtonIcon})}),a.jsx(N,{onClick:b,disabled:i||u===0,color:"inherit","aria-label":o("previous",u),title:o("previous",u),...H??n,children:g?a.jsx(R,{...h.nextButtonIcon}):a.jsx(D,{...h.previousButtonIcon})}),a.jsx(F,{onClick:x,disabled:i||(s!==-1?u>=Math.ceil(s/d)-1:!1),color:"inherit","aria-label":o("next",u),title:o("next",u),...W??l,children:g?a.jsx(D,{...h.previousButtonIcon}):a.jsx(R,{...h.nextButtonIcon})}),p&&a.jsx(U,{onClick:w,disabled:i||u>=Math.ceil(s/d)-1,"aria-label":o("last",u),title:o("last",u),...K,children:g?a.jsx(T,{...h.firstButtonIcon}):a.jsx(j,{...h.lastButtonIcon})})]})});function yFe(t){return tr("MuiTablePagination",t)}const yb=rr("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var LW;const bFe=Ce(na,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(Xt(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),xFe=Ce(tN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${yb.actions}`]:e.actions,...e.toolbar})})(Xt(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yb.actions}`]:{flexShrink:0,marginLeft:20}}))),SFe=Ce("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),wFe=Ce("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(Xt(({theme:t})=>({...t.typography.body2,flexShrink:0}))),CFe=Ce(yA,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${yb.selectIcon}`]:e.selectIcon,[`& .${yb.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yb.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),AFe=Ce(E_,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),kFe=Ce("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(Xt(({theme:t})=>({...t.typography.body2,flexShrink:0})));function MFe({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function PFe(t){return`Go to ${t} page`}const jFe=t=>{const{classes:e}=t;return nr({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},yFe,e)},TFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTablePagination"}),{ActionsComponent:s=vFe,backIconButtonProps:i,colSpan:o,component:l=na,count:c,disabled:u=!1,getItemAriaLabel:d=PFe,labelDisplayedRows:f=MFe,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:m,onPageChange:h,onRowsPerPageChange:_,page:g,rowsPerPage:y,rowsPerPageOptions:b=[10,25,50,100],SelectProps:x={},showFirstButton:w=!1,showLastButton:C=!1,slotProps:k={},slots:A={},...P}=n,T=n,j=jFe(T),R=k?.select??x,D=R.native?"option":AFe;let O;(l===na||l==="td")&&(O=o||1e3);const N=$c(R.id),F=$c(R.labelId),U=()=>c===-1?(g+1)*y:y===-1?c:Math.min(c,(g+1)*y),z={slots:A,slotProps:k},[H,W]=mr("root",{ref:r,className:j.root,elementType:bFe,externalForwardedProps:{...z,component:l,...P},ownerState:T,additionalProps:{colSpan:O}}),[K,q]=mr("toolbar",{className:j.toolbar,elementType:xFe,externalForwardedProps:z,ownerState:T}),[X,Q]=mr("spacer",{className:j.spacer,elementType:SFe,externalForwardedProps:z,ownerState:T}),[Y,Z]=mr("selectLabel",{className:j.selectLabel,elementType:wFe,externalForwardedProps:z,ownerState:T,additionalProps:{id:F}}),[re,fe]=mr("select",{className:j.select,elementType:CFe,externalForwardedProps:z,ownerState:T}),[de,se]=mr("menuItem",{className:j.menuItem,elementType:D,externalForwardedProps:z,ownerState:T}),[le,ee]=mr("displayedRows",{className:j.displayedRows,elementType:kFe,externalForwardedProps:z,ownerState:T});return a.jsx(H,{...W,children:a.jsxs(K,{...q,children:[a.jsx(X,{...Q}),b.length>1&&a.jsx(Y,{...Z,children:p}),b.length>1&&a.jsx(re,{variant:"standard",...!R.variant&&{input:LW||(LW=a.jsx(vA,{}))},value:y,onChange:_,id:N,labelId:F,...R,classes:{...R.classes,root:lt(j.input,j.selectRoot,(R.classes||{}).root),select:lt(j.select,(R.classes||{}).select),icon:lt(j.selectIcon,(R.classes||{}).icon)},disabled:u,...fe,children:b.map(J=>I.createElement(de,{...se,key:J.label?J.label:J,value:J.value?J.value:J},J.label?J.label:J))}),a.jsx(le,{...ee,children:f({from:c===0?0:g*y+1,to:U(),count:c===-1?-1:c,page:g})}),a.jsx(s,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:h,page:g,rowsPerPage:y,showFirstButton:w,showLastButton:C,slotProps:k.actions,slots:A.actions,getItemAriaLabel:d,disabled:u})]})})});function EFe(t){return tr("MuiTableRow",t)}const NW=rr("MuiTableRow",["root","selected","hover","head","footer"]),RFe=t=>{const{classes:e,selected:r,hover:n,head:s,footer:i}=t;return nr({root:["root",r&&"selected",n&&"hover",s&&"head",i&&"footer"]},EFe,e)},IFe=Ce("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Xt(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NW.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${NW.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),FW="tr",d_=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableRow"}),{className:s,component:i=FW,hover:o=!1,selected:l=!1,...c}=n,u=I.useContext(BA),d={...n,component:i,hover:o,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},f=RFe(d);return a.jsx(IFe,{as:i,ref:r,className:lt(f.root,s),role:i===FW?null:"row",ownerState:d,...c})}),DFe=rs(a.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $Fe(t){return tr("MuiTableSortLabel",t)}const XE=rr("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),OFe=t=>{const{classes:e,direction:r,active:n}=t,s={root:["root",n&&"active",`direction${tt(r)}`],icon:["icon",`iconDirection${tt(r)}`]};return nr(s,$Fe,e)},LFe=Ce(La,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.active&&e.active]}})(Xt(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${XE.icon}`]:{opacity:.5}},[`&.${XE.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${XE.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}))),NFe=Ce("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,e[`iconDirection${tt(r.direction)}`]]}})(Xt(({theme:t})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),FFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiTableSortLabel"}),{active:s=!1,children:i,className:o,direction:l="asc",hideSortIcon:c=!1,IconComponent:u=DFe,slots:d={},slotProps:f={},...p}=n,m={...n,active:s,direction:l,hideSortIcon:c,IconComponent:u},h=OFe(m),_={slots:d,slotProps:f},[g,y]=mr("root",{elementType:LFe,externalForwardedProps:_,ownerState:m,className:lt(h.root,o),ref:r}),[b,x]=mr("icon",{elementType:NFe,externalForwardedProps:_,ownerState:m,className:h.icon});return a.jsxs(g,{disableRipple:!0,component:"span",...y,...p,children:[i,c&&!s?null:a.jsx(b,{as:u,...x})]})});function UFe(t){return tr("MuiToggleButton",t)}const Zm=rr("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),_ae=I.createContext({}),vae=I.createContext(void 0);function BFe(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const zFe=t=>{const{classes:e,fullWidth:r,selected:n,disabled:s,size:i,color:o}=t,l={root:["root",n&&"selected",s&&"disabled",r&&"fullWidth",`size${tt(i)}`,o]};return nr(l,UFe,e)},qFe=Ce(La,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${tt(r.size)}`]]}})(Xt(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Zm.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:br(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Zm.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.text.primary,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette.text.primary,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette.text.primary,t.palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Kn()).map(([e])=>({props:{color:e},style:{[`&.${Zm.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette[e].main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:br(t.palette[e].main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:br(t.palette[e].main,t.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),VFe=I.forwardRef(function(e,r){const{value:n,...s}=I.useContext(_ae),i=I.useContext(vae),o=k_({...s,selected:BFe(e.value,n)},e),l=fr({props:o,name:"MuiToggleButton"}),{children:c,className:u,color:d="standard",disabled:f=!1,disableFocusRipple:p=!1,fullWidth:m=!1,onChange:h,onClick:_,selected:g,size:y="medium",value:b,...x}=l,w={...l,color:d,disabled:f,disableFocusRipple:p,fullWidth:m,size:y},C=zFe(w),k=P=>{_&&(_(P,b),P.defaultPrevented)||h&&h(P,b)},A=i||"";return a.jsx(qFe,{className:lt(s.className,C.root,u,A),disabled:f,focusRipple:!p,ref:r,onClick:k,onChange:h,value:b,ownerState:w,"aria-pressed":g,...x,children:c})});function HFe(t){return tr("MuiToggleButtonGroup",t)}const Gs=rr("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),GFe=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:s}=t,i={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${tt(r)}`,s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return nr(i,HFe,e)},WFe=Ce("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Gs.grouped}`]:e.grouped},{[`& .${Gs.grouped}`]:e[`grouped${tt(r.orientation)}`]},{[`& .${Gs.firstButton}`]:e.firstButton},{[`& .${Gs.lastButton}`]:e.lastButton},{[`& .${Gs.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Xt(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Gs.grouped}`]:{[`&.${Gs.selected} + .${Gs.grouped}.${Gs.selected}`]:{borderTop:0,marginTop:0}},[`& .${Gs.firstButton},& .${Gs.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Gs.lastButton},& .${Gs.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Gs.lastButton}.${Zm.disabled},& .${Gs.middleButton}.${Zm.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Gs.grouped}`]:{[`&.${Gs.selected} + .${Gs.grouped}.${Gs.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Gs.firstButton},& .${Gs.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Gs.lastButton},& .${Gs.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Gs.lastButton}.${Zm.disabled},& .${Gs.middleButton}.${Zm.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),YFe=I.forwardRef(function(e,r){const n=fr({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:i,color:o="standard",disabled:l=!1,exclusive:c=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:m,...h}=n,_={...n,disabled:l,fullWidth:u,orientation:f,size:p},g=GFe(_),y=I.useCallback((A,P)=>{if(!d)return;const T=m&&m.indexOf(P);let j;m&&T>=0?(j=m.slice(),j.splice(T,1)):j=m?m.concat(P):[P],d(A,j)},[d,m]),b=I.useCallback((A,P)=>{d&&d(A,m===P?null:P)},[d,m]),x=I.useMemo(()=>({className:g.grouped,onChange:c?b:y,value:m,size:p,fullWidth:u,color:o,disabled:l}),[g.grouped,c,b,y,m,p,u,o,l]),w=nre(s),C=w.length,k=A=>{const P=A===0,T=A===C-1;return P&&T?"":P?g.firstButton:T?g.lastButton:g.middleButton};return a.jsx(WFe,{role:"group",className:lt(g.root,i),ref:r,ownerState:_,...h,children:a.jsx(_ae.Provider,{value:x,children:w.map((A,P)=>a.jsx(vae.Provider,{value:k(P),children:A},P))})})});function yae(t){const e=he.c(18),{children:r,maxItems:n,small:s,expandable:i,itemsAfterCollapse:o,sx:l}=t,c=i===void 0?!1:i,u=o===void 0?1:o;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={display:"flex",flexWrap:"nowrap",alignItems:"baseline"},e[0]=d):d=e[0];let f;e[1]!==c?(f=!c&&{pointerEvents:"none",display:{xs:"none",sm:"flex"}},e[1]=c,e[2]=f):f=e[2];let p;e[3]!==f?(p={".MuiButtonBase-root":{...f}},e[3]=f,e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==p?(m={...l,ol:d,li:p},e[5]=l,e[6]=p,e[7]=m):m=e[7];let h;if(e[8]!==r||e[9]!==s){let g;e[11]!==s?(g=(y,b)=>a.jsx(gt,{sx:{fontSize:s?"13px":"20px"},children:y},`breadcrumb-${b}`),e[11]=s,e[12]=g):g=e[12],h=I.Children.map(r,g),e[8]=r,e[9]=s,e[10]=h}else h=e[10];let _;return e[13]!==u||e[14]!==n||e[15]!==m||e[16]!==h?(_=a.jsx(c7e,{maxItems:n,itemsAfterCollapse:u,separator:"/",sx:m,children:h}),e[13]=u,e[14]=n,e[15]=m,e[16]=h,e[17]=_):_=e[17],_}function bae(){const t=he.c(7),e=Nr(KFe);let r;t[0]!==e?(r=()=>{e(!0)},t[0]=e,t[1]=r):r=t[1];const n=r;let s;t[2]!==e?(s=()=>{e(!1)},t[2]=e,t[3]=s):s=t[3];const i=s;let o;return t[4]!==i||t[5]!==n?(o={navigationOpen:n,navigationClose:i},t[4]=i,t[5]=n,t[6]=o):o=t[6],o}function KFe(t){return t.setNavigation}function QFe(){const t=he.c(10),e=Nr(ZFe),{navigationOpen:r,navigationClose:n}=bae();let s;t[0]!==e||t[1]!==n||t[2]!==r?(s=()=>{e?n():r()},t[0]=e,t[1]=n,t[2]=r,t[3]=s):s=t[3];const i=s;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o={fontSize:"24px"},t[4]=o):o=t[4];let l;t[5]!==e?(l=e?a.jsx(ge.NavigationBurgerClose,{}):a.jsx(ge.NavigationBurgerOpen,{}),t[5]=e,t[6]=l):l=t[6];let c;return t[7]!==i||t[8]!==l?(c=a.jsx(Zr,{onClick:i,sx:o,children:l}),t[7]=i,t[8]=l,t[9]=c):c=t[9],c}function ZFe(t){return t.navigation}function UW(t){const e=he.c(39),{icon:r,value:n,label:s,onClick:i,subItems:o,isSubItem:l,subListOpen:c,onSubListOpen:u,isActive:d,hasSubItems:f}=t;let p;e[0]!==u||e[1]!==n?(p=()=>{u&&u(n)},e[0]=u,e[1]=n,e[2]=p):p=e[2];const m=p;let h;e[3]!==i||e[4]!==n?(h=()=>{i&&i(n)},e[3]=i,e[4]=n,e[5]=h):h=e[5];const g=o?m:h,y=d&&!l&&!f?"16px":"20px",b=l?.5:1;let x;e[6]!==d||e[7]!==l?(x=l&&{pl:d?"48px":"53px",position:"relative"},e[6]=d,e[7]=l,e[8]=x):x=e[8];let w;e[9]!==f||e[10]!==d?(w=d&&{fontWeight:600,...f&&{},...!f&&{borderLeft:"4px solid",borderColor:"primary.main",backgroundColor:"action.hover"}},e[9]=f,e[10]=d,e[11]=w):w=e[11];let C;e[12]!==y||e[13]!==b||e[14]!==x||e[15]!==w?(C={position:"relative",pr:"14px",pl:y,py:b,my:0,...x,...w},e[12]=y,e[13]=b,e[14]=x,e[15]=w,e[16]=C):C=e[16];let k;e[17]!==r||e[18]!==l?(k=!l&&a.jsx(LO,{sx:{minWidth:"auto",mr:"12px",fontSize:"20px"},children:r}),e[17]=r,e[18]=l,e[19]=k):k=e[19];const A=l?"body2":"body1",P=d?"600":"400";let T;e[20]!==A||e[21]!==P?(T={variant:A,fontWeight:P},e[20]=A,e[21]=P,e[22]=T):T=e[22];let j;e[23]!==s||e[24]!==T||e[25]!==n?(j=a.jsx(dA,{inset:!1,primary:s,primaryTypographyProps:T},n),e[23]=s,e[24]=T,e[25]=n,e[26]=j):j=e[26];let R;e[27]!==o?.length||e[28]!==c?(R=o?.length&&a.jsx(gt,{sx:{transformOrigin:"center",transition:"transform .35s",opacity:"0.5",height:"20px",...c&&{transform:"rotate(.5turn)"}},children:a.jsx(ge.DownArrow,{fontSize:20})}),e[27]=o?.length,e[28]=c,e[29]=R):R=e[29];let D;e[30]!==j||e[31]!==R||e[32]!==C||e[33]!==k?(D=a.jsxs(Vne,{sx:C,disableGutters:!0,children:[k,j,R]}),e[30]=j,e[31]=R,e[32]=C,e[33]=k,e[34]=D):D=e[34];let O;return e[35]!==D||e[36]!==g||e[37]!==n?(O=a.jsx(wA,{onClick:g,disableGutters:!0,disablePadding:!0,children:D},n),e[35]=D,e[36]=g,e[37]=n,e[38]=O):O=e[38],O}const xae=270;function XFe(t){const e=he.c(59),{open:r,headerComponent:n,footerComponent:s,items:i,activeValue:o}=t,l=As(),c=Nd(l.breakpoints.up("md"))?"persistent":"temporary",u=Nr(tUe),{navigationOpen:d,navigationClose:f}=bae(),p=Nr(eUe),m=Nr(JFe);let h;e[0]!==m?(h=Z=>{m(Z)},e[0]=m,e[1]=h):h=e[1];const _=h;let g;e[2]!==f||e[3]!==c?(g=()=>{c==="temporary"&&f()},e[2]=f,e[3]=c,e[4]=g):g=e[4];const y=g;let b;e[5]!==p?(b=Z=>{const{value:re}=Z;return p.includes(re)},e[5]=p,e[6]=b):b=e[6];const x=b;let w;e[7]!==d||e[8]!==r?(w=()=>{r&&d()},e[7]=d,e[8]=r,e[9]=w):w=e[9];let C;e[10]!==i||e[11]!==d||e[12]!==r?(C=[i,r,d],e[10]=i,e[11]=d,e[12]=r,e[13]=C):C=e[13],I.useEffect(w,C);let k,A;e[14]!==f||e[15]!==c?(k=()=>{const Z=setTimeout(()=>{c==="temporary"&&f()},0);return()=>{clearTimeout(Z)}},A=[f,c],e[14]=f,e[15]=c,e[16]=k,e[17]=A):(k=e[16],A=e[17]),I.useEffect(k,A);const P=I.useRef(!1);let T,j;e[18]!==o||e[19]!==i||e[20]!==m||e[21]!==p?(T=()=>{if(P.current)return;const Z=i.find(re=>re.subItems?.find(fe=>{const{value:de}=fe;return de===o}));Z&&!p.includes(Z.value)&&m(Z.value),P.current=!0},j=[o,i,m,p],e[18]=o,e[19]=i,e[20]=m,e[21]=p,e[22]=T,e[23]=j):(T=e[22],j=e[23]),I.useEffect(T,j);const R=Nd(l.breakpoints.down($.appBarMobileBreakpoint))?"125px":"60px",D=l.zIndex.appBar-1;let O;e[24]!==R||e[25]!==D?(O={sx:{mt:R,zIndex:D}},e[24]=R,e[25]=D,e[26]=O):O=e[26];const N=l.zIndex.appBar-1;let F;e[27]!==N?(F={zIndex:N},e[27]=N,e[28]=F):F=e[28];const U=`calc(100vh - ${R})`;let z;e[29]!==U?(z={height:U,width:xae,position:"relative"},e[29]=U,e[30]=z):z=e[30];let H;e[31]!==n?(H=n&&a.jsx(gt,{sx:{px:3,pb:2},children:n}),e[31]=n,e[32]=H):H=e[32];let W;e[33]===Symbol.for("react.memo_cache_sentinel")?(W={flexGrow:1,overflowY:"auto",mt:"0 !important"},e[33]=W):W=e[33];let K;if(e[34]!==y||e[35]!==_||e[36]!==x||e[37]!==i){let Z;e[39]!==y||e[40]!==_||e[41]!==x?(Z=(re,fe)=>{const de=x(re);return a.jsxs(gt,{sx:{position:"relative",zIndex:1e3,color:"text.primary",borderBottom:"1px solid",borderColor:"divider"},children:[a.jsx(z6,{to:re.value,onClick:se=>{re.subItems?se.preventDefault():y()},style:{textDecoration:"none",color:"inherit"},target:re.external?"_blank":"_self",children:se=>{const{isActive:le}=se;return a.jsx(UW,{...re,onSubListOpen:_,subListOpen:de,isActive:le,hasSubItems:!!re.subItems?.length})}}),re.subItems?.length&&a.jsx(Qb,{in:de,timeout:"auto",unmountOnExit:!0,children:a.jsx(_h,{component:"div",sx:{pt:0,pb:0},children:re.subItems.map(se=>a.jsx(z6,{to:se.value,style:{textDecoration:"none",color:"inherit"},target:se.external?"_blank":"_self",children:le=>{const{isActive:ee}=le;return a.jsx(UW,{...se,onClick:y,isSubItem:!0,isActive:ee})}},`${se.value}-${fe}`))})})]},`${re.value}-${fe}`)},e[39]=y,e[40]=_,e[41]=x,e[42]=Z):Z=e[42],K=i.map(Z),e[34]=y,e[35]=_,e[36]=x,e[37]=i,e[38]=K}else K=e[38];let q;e[43]!==K?(q=a.jsx(_h,{sx:W,component:"nav","aria-labelledby":"nested-list-subheader",disablePadding:!0,children:K}),e[43]=K,e[44]=q):q=e[44];let X;e[45]!==s?(X=s&&a.jsx(gt,{sx:{px:3,pt:1},children:s}),e[45]=s,e[46]=X):X=e[46];let Q;e[47]!==z||e[48]!==H||e[49]!==q||e[50]!==X?(Q=a.jsxs(te,{sx:z,nowrap:!0,children:[H,q,X]}),e[47]=z,e[48]=H,e[49]=q,e[50]=X,e[51]=Q):Q=e[51];let Y;return e[52]!==y||e[53]!==u||e[54]!==O||e[55]!==F||e[56]!==Q||e[57]!==c?(Y=a.jsx(aae,{variant:c,onClose:y,open:u,PaperProps:O,sx:F,children:Q}),e[52]=y,e[53]=u,e[54]=O,e[55]=F,e[56]=Q,e[57]=c,e[58]=Y):Y=e[58],Y}function JFe(t){return t.setNavigationSubListOpen}function eUe(t){return t.navigationSubListOpen}function tUe(t){return t.navigation}function G0(t){const e=he.c(19),{children:r,appBar:n,fullHeight:s,navigation:i,fullWidth:o}=t,l=ci(),c=Nr(rUe),u=aC(l.breakpoints.up("md"))?"persistent":"temporary";let d;e[0]!==o?(d=o&&{"&.MuiContainer-maxWidthXl":{maxWidth:"100%"}},e[0]=o,e[1]=d):d=e[1];let f;e[2]!==d?(f={...d},e[2]=d,e[3]=f):f=e[3];const p=n?10:2,m=s&&"100vh",h=s&&"100vh",_=i&&c&&u==="persistent"?`${xae}px`:0;let g;e[4]!==p||e[5]!==m||e[6]!==h||e[7]!==_?(g={pt:p,pb:3,height:m,maxHeight:h,overflow:"visible",pl:_,width:"100%"},e[4]=p,e[5]=m,e[6]=h,e[7]=_,e[8]=g):g=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={overflow:"visible"},e[9]=y):y=e[9];let b;e[10]!==r||e[11]!==s?(b=a.jsx(te,{fullHeight:s,spacing:2.5,nowrap:!0,sx:y,children:r}),e[10]=r,e[11]=s,e[12]=b):b=e[12];let x;e[13]!==g||e[14]!==b?(x=a.jsx(gt,{sx:g,children:b}),e[13]=g,e[14]=b,e[15]=x):x=e[15];let w;return e[16]!==x||e[17]!==f?(w=a.jsx(H7e,{maxWidth:"xl",sx:f,children:x}),e[16]=x,e[17]=f,e[18]=w):w=e[18],w}function rUe(t){return t.navigation}function nUe(t){const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={flex:"0 0 auto",pb:1,pt:.5,px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(S7e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function Kt(t){const e=he.c(10),{children:r,title:n,titleColor:s,dense:i,sx:o}=t,l=s===void 0?"text.primary":s;let c;e[0]!==o?(c={p:2,flex:"1 1 auto",minWidth:0,...o},e[0]=o,e[1]=c):c=e[1];let u;e[2]!==i||e[3]!==n||e[4]!==l?(u=n&&a.jsx(gt,{sx:{mb:2,"&:last-child":{mb:0}},children:a.jsx(_e,{type:i?"body1":"h6",color:l,fontWeight:600,children:n})}),e[2]=i,e[3]=n,e[4]=l,e[5]=u):u=e[5];let d;return e[6]!==r||e[7]!==c||e[8]!==u?(d=a.jsxs(gt,{sx:c,children:[u,r]}),e[6]=r,e[7]=c,e[8]=u,e[9]=d):d=e[9],d}const sUe=Ce(({className:t,opaque:e,...r})=>a.jsx(hae,{...r,classes:{popper:t}}))(({theme:t,...e})=>()=>typeof e.title=="string"||!e.opaque?{}:{[`& .${Xs.tooltip}`]:{padding:"0 !important",backgroundColor:t.palette.background.paper,color:t.palette.text.primary,opacity:0,boxShadow:t.shadows[5],border:"1px solid",borderColor:t.palette.divider},"& .tooltip-items":{maxHeight:"60vh",overflowY:"auto"},[`& .${Xs.arrow}`]:{color:t.palette.background.paper,"&::before":{backgroundColor:t.palette.background.paper,border:"1px solid",borderColor:t.palette.divider,borderBottom:0}}});function Mn(t){const e=he.c(8);let r,n,s;e[0]!==t?({arrow:n,placement:s,...r}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s):(r=e[1],n=e[2],s=e[3]);const i=n===void 0?!0:n,o=s===void 0?"bottom":s;let l;return e[4]!==i||e[5]!==o||e[6]!==r?(l=a.jsx(sUe,{arrow:i,placement:o,...r}),e[4]=i,e[5]=o,e[6]=r,e[7]=l):l=e[7],l}function iUe(t){const e=he.c(5),{children:r,tooltip:n}=t;let s;e[0]!==n?(s=n&&a.jsx(Mn,{title:n,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})}),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==r||e[3]!==s?(i=a.jsxs(QL,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:2.25,children:[r,s]}),e[2]=r,e[3]=s,e[4]=i):i=e[4],i}function oUe(t){const e=he.c(24),{title:r,children:n,tooltip:s,dense:i,folder:o}=t,l=i===void 0?!1:i,c=o===void 0?!1:o,u=ci(),d=l?"h6":"h5";let f;e[0]!==d?(f={variant:d,fontWeight:"600",lineHeight:1},e[0]=d,e[1]=f):f=e[1];const p=l||c?0:"inherit",m=c?1:2,h=l||c?1:2,_=l||c?"10px":"40px";let g;e[2]!==_?(g={minHeight:_,display:"flex",alignItems:"center"},e[2]=_,e[3]=g):g=e[3];let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y={alignSelf:"center"},e[4]=y):y=e[4];let b;e[5]!==p||e[6]!==m||e[7]!==h||e[8]!==g||e[9]!==u.palette.text.secondary?(b={color:u.palette.text.secondary,display:"flex",flex:"0 0 auto",lineHeight:p,pt:m,pb:h,".MuiCardHeader-content":g,".MuiCardHeader-action":y},e[5]=p,e[6]=m,e[7]=h,e[8]=g,e[9]=u.palette.text.secondary,e[10]=b):b=e[10];let x;e[11]!==n||e[12]!==s?(x=a.jsx(iUe,{tooltip:s,children:n}),e[11]=n,e[12]=s,e[13]=x):x=e[13];let w;e[14]!==b||e[15]!==x||e[16]!==f||e[17]!==r?(w=a.jsx(j7e,{title:r,titleTypographyProps:f,sx:b,action:x}),e[14]=b,e[15]=x,e[16]=f,e[17]=r,e[18]=w):w=e[18];let C;e[19]!==c?(C=c&&a.jsx(Oc,{}),e[19]=c,e[20]=C):C=e[20];let k;return e[21]!==w||e[22]!==C?(k=a.jsxs(a.Fragment,{children:[w,C]}),e[21]=w,e[22]=C,e[23]=k):k=e[23],k}function pr(t){const e=he.c(58);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g;e[0]!==t?({children:r,title:h,headerActionsComponent:i,footerActionsComponent:s,tooltip:_,highlightedColor:o,fullHeight:d,dense:f,folder:p,elevation:m,modalElevation:l,variant:g,sx:u,error:n,...c}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15]);const y=d===void 0?!1:d,b=f===void 0?!1:f,x=p===void 0?!1:p,w=m===void 0?1:m,C=y?"hidden":"visible",k=y?"100%":"auto";let A;e[16]!==o?(A=o&&{borderBottom:"5px solid",borderBottomColor:`${o}.main`},e[16]=o,e[17]=A):A=e[17];let P;e[18]!==g?(P=g==="outlined"&&{backgroundColor:"transparent"},e[18]=g,e[19]=P):P=e[19];let T;e[20]!==n?(T=n&&{border:"2px solid !important",borderColor:aUe},e[20]=n,e[21]=T):T=e[21];let j;e[22]!==w||e[23]!==l?(j=l&&{backgroundImage:H=>H.palette.mode==="dark"?`linear-gradient(${Ic("#fff",+hh(24+w*24))}, ${Ic("#fff",+hh(24+w*24))})`:"none"},e[22]=w,e[23]=l,e[24]=j):j=e[24];let R;e[25]!==u||e[26]!==j||e[27]!==C||e[28]!==k||e[29]!==A||e[30]!==P||e[31]!==T?(R={flex:"1 1 auto",display:"flex",overflow:C,height:k,...A,...P,...T,...j,...u},e[25]=u,e[26]=j,e[27]=C,e[28]=k,e[29]=A,e[30]=P,e[31]=T,e[32]=R):R=e[32];let D;e[33]===Symbol.for("react.memo_cache_sentinel")?(D={flex:"1 1 auto",minWidth:0},e[33]=D):D=e[33];let O;e[34]!==b||e[35]!==x||e[36]!==i||e[37]!==h||e[38]!==_?(O=!h&&!_&&!i?null:a.jsx(oUe,{title:h,tooltip:_,dense:b,folder:x,children:i}),e[34]=b,e[35]=x,e[36]=i,e[37]=h,e[38]=_,e[39]=O):O=e[39];let N;if(e[40]!==r||e[41]!==b){let H;e[43]!==b?(H=W=>W.type===Kt?I.cloneElement(W,{dense:b}):W,e[43]=b,e[44]=H):H=e[44],N=I.Children.map(r,H),e[40]=r,e[41]=b,e[42]=N}else N=e[42];let F;e[45]!==s?(F=s&&a.jsx(nUe,{children:s}),e[45]=s,e[46]=F):F=e[46];let U;e[47]!==y||e[48]!==O||e[49]!==N||e[50]!==F?(U=a.jsxs(te,{spacing:0,sx:D,fullHeight:y,nowrap:!0,children:[O,N,F]}),e[47]=y,e[48]=O,e[49]=N,e[50]=F,e[51]=U):U=e[51];let z;return e[52]!==w||e[53]!==c||e[54]!==R||e[55]!==U||e[56]!==g?(z=a.jsx(v7e,{elevation:w,variant:g,sx:R,...c,children:U}),e[52]=w,e[53]=c,e[54]=R,e[55]=U,e[56]=g,e[57]=z):z=e[57],z}function aUe(t){return`${t.palette.error.main} !important`}function zA(t){const e=he.c(20),{children:r,fullHeight:n,transparent:s}=t;let i;e[0]!==n?(i=n&&{height:"100%",maxHeight:"100%",overflow:"hidden"},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==i?(o={width:"100%",maxWidth:"1000px",margin:"0 auto",...i},e[2]=i,e[3]=o):o=e[3];let l;e[4]!==s?(l=s&&{backgroundColor:"transparent"},e[4]=s,e[5]=l):l=e[5];let c;e[6]!==l?(c={...l},e[6]=l,e[7]=c):c=e[7];let u;e[8]!==s?(u=s&&{elevation:0},e[8]=s,e[9]=u):u=e[9];let d;e[10]!==r?(d=a.jsx(a.Fragment,{children:r}),e[10]=r,e[11]=d):d=e[11];let f;e[12]!==n||e[13]!==c||e[14]!==u||e[15]!==d?(f=a.jsx(pr,{fullHeight:n,sx:c,...u,children:d}),e[12]=n,e[13]=c,e[14]=u,e[15]=d,e[16]=f):f=e[16];let p;return e[17]!==o||e[18]!==f?(p=a.jsx(gt,{sx:o,children:f}),e[17]=o,e[18]=f,e[19]=p):p=e[19],p}function lUe(t){const e=he.c(10),{center:r,fullHeight:n,appBar:s,navigation:i,transparent:o}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(uUe,{}),e[0]=l):l=e[0];let c;e[1]!==r||e[2]!==n||e[3]!==o?(c=r?a.jsx(zA,{fullHeight:n,transparent:o,children:a.jsx(Bd,{})}):a.jsx(pr,{fullHeight:n,sx:{...o&&{backgroundColor:"transparent"}},...o&&{elevation:0},children:a.jsx(Bd,{})}),e[1]=r,e[2]=n,e[3]=o,e[4]=c):c=e[4];let u;return e[5]!==s||e[6]!==n||e[7]!==i||e[8]!==c?(u=a.jsxs(G0,{appBar:s,navigation:i,fullWidth:!0,fullHeight:n,children:[l,c]}),e[5]=s,e[6]=n,e[7]=i,e[8]=c,e[9]=u):u=e[9],u}const Sae="app-page-header-actions";function hs(t){const e=he.c(2),{children:r}=t;let n;return e[0]!==r?(n=a.jsx(YO,{container:cUe,children:r}),e[0]=r,e[1]=n):n=e[1],n}function cUe(){return document.querySelector(`#${Sae}`)}function uUe(){const t=he.c(59),e=WL();let r;t[0]!==e?(r=e.map(hUe).filter(mUe),t[0]=e,t[1]=r):r=t[1];const n=r;let s;e:{if(!n){let z;t[2]===Symbol.for("react.memo_cache_sentinel")?(z=[],t[2]=z):z=t[2],s=z;break e}let U;t[3]!==n?(U=n.map(pUe).filter(fUe),t[3]=n,t[4]=U):U=t[4],s=U}const i=s;let o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P;if(t[5]!==i){const U=i.slice(0,-1);d=i[i.length-1],u=te,f=.5,p=!0,m="row",h="space-between",_="flex-start",t[25]===Symbol.for("react.memo_cache_sentinel")?(g={ml:-1},t[25]=g):g=t[25],c=te,C="row",k=1,A="center",t[26]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(QFe,{}),t[26]=P):P=t[26],l=te,w=0,o=yae,y=10,b=!1,x=U.map(dUe),t[5]=i,t[6]=o,t[7]=l,t[8]=c,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=_,t[16]=g,t[17]=y,t[18]=b,t[19]=x,t[20]=w,t[21]=C,t[22]=k,t[23]=A,t[24]=P}else o=t[6],l=t[7],c=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],_=t[15],g=t[16],y=t[17],b=t[18],x=t[19],w=t[20],C=t[21],k=t[22],A=t[23],P=t[24];let T;t[27]!==d?(T=d&&a.jsx(_e,{type:"h6",color:"text.primary",fontWeight:600,children:d.label}),t[27]=d,t[28]=T):T=t[28];let j;t[29]!==o||t[30]!==T||t[31]!==y||t[32]!==b||t[33]!==x?(j=a.jsxs(o,{maxItems:y,expandable:b,children:[x,T]}),t[29]=o,t[30]=T,t[31]=y,t[32]=b,t[33]=x,t[34]=j):j=t[34];let R;t[35]!==d.caption?(R=d.caption&&a.jsx(_e,{type:"body2",color:"text.secondary",sx:{wordBreak:"break-all"},children:d.caption}),t[35]=d.caption,t[36]=R):R=t[36];let D;t[37]!==l||t[38]!==j||t[39]!==R||t[40]!==w?(D=a.jsxs(l,{spacing:w,children:[j,R]}),t[37]=l,t[38]=j,t[39]=R,t[40]=w,t[41]=D):D=t[41];let O;t[42]!==c||t[43]!==D||t[44]!==C||t[45]!==k||t[46]!==A||t[47]!==P?(O=a.jsxs(c,{direction:C,spacing:k,align:A,children:[P,D]}),t[42]=c,t[43]=D,t[44]=C,t[45]=k,t[46]=A,t[47]=P,t[48]=O):O=t[48];let N;t[49]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(gt,{id:Sae,sx:{mt:"2px"}}),t[49]=N):N=t[49];let F;return t[50]!==u||t[51]!==f||t[52]!==p||t[53]!==m||t[54]!==h||t[55]!==_||t[56]!==g||t[57]!==O?(F=a.jsxs(u,{spacing:f,fullWidth:p,direction:m,justify:h,align:_,sx:g,children:[O,N]}),t[50]=u,t[51]=f,t[52]=p,t[53]=m,t[54]=h,t[55]=_,t[56]=g,t[57]=O,t[58]=F):F=t[58],F}function dUe(t){const{to:e,label:r}=t;return e?a.jsx(gt,{component:"span",sx:{color:"primary.main","&:hover":{color:"primary.dark"}},children:a.jsx(z6,{to:e,style:{color:"inherit"},children:()=>a.jsx(te,{direction:"row",align:"center",spacing:1,children:a.jsx(_e,{children:r})})},e)},e):a.jsx(te,{direction:"row",align:"center",spacing:1,children:a.jsx(_e,{children:r})},r)}function fUe(t){return!!t}function pUe(t){return typeof t=="object"&&"breadcrumb"in t?t.breadcrumb:null}function mUe(t){return!!t}function hUe(t){if(t.handle){if(typeof t.handle=="object")return t.handle;if(typeof t.handle=="function")return t.handle(t)}return null}function gUe(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(G0,{appBar:!0,navigation:!0,fullWidth:!0,children:a.jsx(zA,{children:a.jsx(Tr,{})})}),t[0]=e):e=t[0],e}function _Ue(){const t=Nr(xUe),e=Nr(bUe),r=Nr(yUe),n=Nr(vUe);return!!(t||e.length||r||n)}function vUe(t){return t.drawerOpen}function yUe(t){return t.confirmationSimpleDialogOpen}function bUe(t){return t.dialogsOpen}function xUe(t){return t.confirmationDialogOpen}function rN(){const t=he.c(2);if(_Ue()){let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{asSnackbar:!0}),t[0]=n):n=t[0],n}let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(G0,{fullWidth:!0,fullHeight:!0,children:a.jsx(zA,{transparent:!0,children:a.jsx(Tr,{})})}),t[1]=r):r=t[1],r}function SUe(t){const e=he.c(15),{alt:r,size:n,src:s,variant:i,color:o,children:l,initials:c}=t,u=s===void 0?"":s;let d=null;if(c&&r){let g;e[0]!==r?(g=r.split(" ").map(wUe).slice(0,2).join(""),e[0]=r,e[1]=g):g=e[1],d=g}else l&&(d=l);const f=d;let p;e[2]!==o?(p=o&&{backgroundColor:o},e[2]=o,e[3]=p):p=e[3];let m;e[4]!==n?(m=n&&{height:n,width:n},e[4]=n,e[5]=m):m=e[5];let h;e[6]!==p||e[7]!==m?(h={...p,...m},e[6]=p,e[7]=m,e[8]=h):h=e[8];let _;return e[9]!==r||e[10]!==f||e[11]!==u||e[12]!==h||e[13]!==i?(_=a.jsx(HNe,{alt:r,src:u,variant:i,sx:h,"data-testid":"avatar",children:f}),e[9]=r,e[10]=f,e[11]=u,e[12]=h,e[13]=i,e[14]=_):_=e[14],_}function wUe(t){return t[0]}function CUe(t){const e=he.c(21),{onClick:r,fullname:n,description:s,image:i,menuItems:o,hideFullName:l}=t,c=ci();let u;e[0]!==c.breakpoints?(u=c.breakpoints.up("md"),e[0]=c.breakpoints,e[1]=u):u=e[1];const d=Nd(u),{menuOpen:f}=Jt(),p=Nd(c.breakpoints.down($.appBarMobileBreakpoint))?{display:"inline-block",cursor:"pointer",marginLeft:"auto",position:"relative",top:"-44px"}:{display:"inline-block",cursor:"pointer",marginLeft:"auto"};let m;e[2]!==o||e[3]!==f||e[4]!==r?(m=x=>{x.preventDefault(),r&&r(x),o&&o.length&&f({anchorEl:x.currentTarget,items:o,anchorOrigin:{vertical:"bottom",horizontal:"right"}})},e[2]=o,e[3]=f,e[4]=r,e[5]=m):m=e[5];const h=m;let _;e[6]!==s||e[7]!==n||e[8]!==l||e[9]!==d?(_=d&&a.jsxs(gt,{children:[!l&&a.jsx(gt,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(_e,{type:"body1",align:"right",lineHeight:1,fontWeight:600,children:n})}),s&&s.length&&a.jsx(te,{direction:"row",align:"baseline",justify:"flex-end",spacing:.5,divided:s.length>1,children:s.map(AUe)})]}),e[6]=s,e[7]=n,e[8]=l,e[9]=d,e[10]=_):_=e[10];let g;e[11]!==n||e[12]!==i?(g=a.jsx(SUe,{alt:n,src:i,size:40,initials:!0}),e[11]=n,e[12]=i,e[13]=g):g=e[13];let y;e[14]!==_||e[15]!==g?(y=a.jsxs(te,{direction:"row",align:"center",justify:"flex-end",children:[_,g]}),e[14]=_,e[15]=g,e[16]=y):y=e[16];let b;return e[17]!==h||e[18]!==y||e[19]!==p?(b=a.jsx(gt,{sx:p,onClick:h,"data-testid":"profile-card",children:y}),e[17]=h,e[18]=y,e[19]=p,e[20]=b):b=e[20],b}function AUe(t,e){return a.jsx(_e,{lineHeight:1,type:"caption",children:t},e)}const kUe=t=>I.createElement("svg",{width:66,height:18,viewBox:"0 0 66 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 18V0H66V18H0ZM4 14H61.9862H62V4H4V14Z",fill:"#01A982"}));function MUe({productName:t}){const e=ci();return a.jsxs(te,{direction:"row",align:"center",spacing:3,nowrap:!0,children:[a.jsx(gt,{sx:{width:"66px",height:"18px"},children:a.jsx(kUe,{})}),a.jsxs(_e,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",[e.breakpoints.up(445)]:{width:"100%"},[e.breakpoints.down(445)]:{width:"70%"},[e.breakpoints.down(434)]:{width:"65%"},[e.breakpoints.down(410)]:{width:"60%"},[e.breakpoints.down(390)]:{width:"55%"},[e.breakpoints.down(367)]:{width:"45%"}},children:[t.includes("HPE")&&a.jsx(gt,{component:"span",sx:{fontWeight:500},children:"HPE"}),a.jsxs(gt,{component:"span",children:[" ",t.replace("HPE","")]})]})]})}function PUe(t){const e=he.c(18),{children:r,info:n,siteSelector:s}=t,{hostname:i,product_name:o}=n;let l,c;e[0]!==i||e[1]!==o?(l=()=>{document.title=i===window.location.hostname?`${i} - ${o}`:`${i} - ${window.location.hostname} - ${o}`},c=[i,o],e[0]=i,e[1]=o,e[2]=l,e[3]=c):(l=e[2],c=e[3]),I.useEffect(l,c);const u=ci(),d=aC(u.breakpoints.down($.appBarMobileBreakpoint))?{my:4,mx:.5}:"";let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={borderBottom:"1px solid",borderColor:"divider"},e[4]=f):f=e[4];let p;e[5]!==d?(p={height:"60px !important",minHeight:"60px !important",gap:"10px",...d},e[5]=d,e[6]=p):p=e[6];let m;e[7]!==o?(m=a.jsx(MUe,{productName:o}),e[7]=o,e[8]=m):m=e[8];let h;e[9]!==s||e[10]!==m?(h=a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[m,s]}),e[9]=s,e[10]=m,e[11]=h):h=e[11];let _;e[12]!==r||e[13]!==h?(_=a.jsxs(te,{justify:"space-between",direction:"row",fullWidth:!0,children:[h,r]}),e[12]=r,e[13]=h,e[14]=_):_=e[14];let g;return e[15]!==p||e[16]!==_?(g=a.jsx(hNe,{elevation:0,color:"inherit",sx:f,children:a.jsx(tN,{sx:p,children:_})}),e[15]=p,e[16]=_,e[17]=g):g=e[17],g}function En(t){const e=he.c(21);let r,n,s,i,o,l,c;e[0]!==t?({onClick:o,disabled:n,value:c,children:r,divider:s,icon:i,...l}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7]);const u=`menu-item-${c}`;let d;e[8]!==i?(d=i&&a.jsx(LO,{sx:{fontSize:"18px"},children:i}),e[8]=i,e[9]=d):d=e[9];let f;e[10]!==r?(f=a.jsx(dA,{children:r}),e[10]=r,e[11]=f):f=e[11];let p;return e[12]!==n||e[13]!==s||e[14]!==o||e[15]!==l||e[16]!==u||e[17]!==d||e[18]!==f||e[19]!==c?(p=a.jsxs(E_,{divider:s,onClick:o,disabled:n,value:c,"data-testid":u,...l,children:[d,f]}),e[12]=n,e[13]=s,e[14]=o,e[15]=l,e[16]=u,e[17]=d,e[18]=f,e[19]=c,e[20]=p):p=e[20],p}function jUe(t){const e=he.c(40),{darkText:r,lightText:n,systemText:s,title:i}=t,o=Nr(EUe),l=Nr(TUe);let c;e[0]!==l?(c=N=>()=>{l(N)},e[0]=l,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={px:2,pb:1,pt:.5},e[2]=d):d=e[2];let f;e[3]!==i?(f=a.jsx(_e,{color:"text.secondary",sx:d,children:i}),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==u?(p=u("dark"),e[5]=u,e[6]=p):p=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(ge.Darkmode,{}),e[7]=m):m=e[7];const h=o==="dark"?"divider":"none";let _;e[8]!==h?(_={backgroundColor:h},e[8]=h,e[9]=_):_=e[9];let g;e[10]!==r||e[11]!==p||e[12]!==_?(g=a.jsx(En,{onClick:p,icon:m,sx:_,children:r}),e[10]=r,e[11]=p,e[12]=_,e[13]=g):g=e[13];let y;e[14]!==u?(y=u("light"),e[14]=u,e[15]=y):y=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(ge.Lightmode,{}),e[16]=b):b=e[16];const x=o==="light"?"divider":"none";let w;e[17]!==x?(w={backgroundColor:x},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==n||e[20]!==w||e[21]!==y?(C=a.jsx(En,{onClick:y,icon:b,sx:w,children:n}),e[19]=n,e[20]=w,e[21]=y,e[22]=C):C=e[22];let k;e[23]!==u?(k=u("system"),e[23]=u,e[24]=k):k=e[24];let A;e[25]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(ge.Monitor,{}),e[25]=A):A=e[25];const P=o==="system"?"divider":"none";let T;e[26]!==P?(T={backgroundColor:P},e[26]=P,e[27]=T):T=e[27];let j;e[28]!==s||e[29]!==k||e[30]!==T?(j=a.jsx(En,{onClick:k,icon:A,sx:T,children:s}),e[28]=s,e[29]=k,e[30]=T,e[31]=j):j=e[31];let R;e[32]!==C||e[33]!==j||e[34]!==f||e[35]!==g?(R=a.jsxs(pv,{children:[f,g,C,j]}),e[32]=C,e[33]=j,e[34]=f,e[35]=g,e[36]=R):R=e[36];let D;e[37]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx("div",{children:a.jsx(Zr,{size:"small",sx:{fontSize:"22px",mt:"2px"},children:a.jsx(ge.DarkModeToggle,{})})}),e[37]=D):D=e[37];let O;return e[38]!==R?(O=a.jsx(Mn,{opaque:!0,disableFocusListener:!0,enterTouchDelay:0,title:R,children:D}),e[38]=R,e[39]=O):O=e[39],O}function TUe(t){return t.setThemeMode}function EUe(t){return t.themeMode}function wae(){const t=he.c(13),e=Ye();let r;t[0]!==e?(r=e.formatMessage({id:"darkmode.title"}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=e.formatMessage({id:"darkmode.dark"}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=e.formatMessage({id:"darkmode.light"}),t[4]=e,t[5]=s):s=t[5];let i;t[6]!==e?(i=e.formatMessage({id:"darkmode.system"}),t[6]=e,t[7]=i):i=t[7];let o;return t[8]!==r||t[9]!==n||t[10]!==s||t[11]!==i?(o=a.jsx(jUe,{title:r,darkText:n,lightText:s,systemText:i}),t[8]=r,t[9]=n,t[10]=s,t[11]=i,t[12]=o):o=t[12],o}const Tt=()=>!0,Cae=t=>!["","/","/site-loader"].includes(t);function ro({nf:t,rootUrl:e,applyActionUrl:r,persistActionUrl:n,reloadActionUrl:s,factoryResetActionUrl:i}){return{[e]:o=>et({permissions:ie.configuration,activeServicesNames:[t],services:o}),[r]:Tt,[n]:Tt,[s]:Tt,[i]:Tt}}function RUe({nf:t,rootUrl:e,connectionsUrl:r,connectionsDeleteActionUrl:n,connectionsResetActionUrl:s,listenersUrl:i}){return{[e]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[r]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[i]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[n]:Tt,[s]:Tt}}function no({nf:t,rootUrl:e,joinClusterActionUrl:r,leaveClusterActionUrl:n,leaveCpWithoutConsensusActionUrl:s,removeApDeadNodesActionUrl:i,applyBootConfigUrl:o}){return{[e]:l=>et({permissions:ie.configuration,activeServicesNames:[t],services:l}),[o]:Tt,...r&&{[r]:Tt},...n&&{[n]:Tt},...s&&{[s]:Tt},...i&&{[i]:Tt}}}const IUe={[$.urls.amf]:t=>et({permissions:[ie.configuration,ie.monitoring],activeServicesNames:[ue.AMF],services:t}),[$.urls.amfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF],services:t}),...RUe({nf:ue.AMF,rootUrl:$.urls.amfStatusNgap,connectionsUrl:$.urls.amfStatusNgapConnections,connectionsDeleteActionUrl:$.urls.amfStatusNgapConnectionsDelete_Action,connectionsResetActionUrl:$.urls.amfStatusNgapConnectionsReset_Action,listenersUrl:$.urls.amfStatusNgapListeners}),...no({nf:ue.AMF,rootUrl:$.urls.amfCluster,applyBootConfigUrl:$.urls.amfClusterApplyBootConfig_Action}),...ro({nf:ue.AMF,rootUrl:$.urls.amfConfiguration,applyActionUrl:$.urls.amfConfigurationApply_Action,persistActionUrl:$.urls.amfConfigurationPersist_Action,reloadActionUrl:$.urls.amfConfigurationReload_Action,factoryResetActionUrl:$.urls.amfConfigurationFactoryReset_Action})},DUe={[$.urls.ausf]:t=>et({permissions:[ie.configuration],activeServicesNames:[ue.AUSF],services:t}),...no({nf:ue.AUSF,rootUrl:$.urls.ausfCluster,applyBootConfigUrl:$.urls.ausfClusterApplyBootConfig_Action}),...ro({nf:ue.AUSF,rootUrl:$.urls.ausfConfiguration,applyActionUrl:$.urls.ausfConfigurationApply_Action,persistActionUrl:$.urls.ausfConfigurationPersist_Action,reloadActionUrl:$.urls.ausfConfigurationReload_Action,factoryResetActionUrl:$.urls.ausfConfigurationFactoryReset_Action})};function Fp({nf:t,rootUrl:e,connectionsUrl:r,peersUrl:n}){return{[e]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s}),[r]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s}),[n]:s=>et({permissions:ie.monitoring,activeServicesNames:[t],services:s})}}function qA({nf:t,rootUrl:e,socketsUrl:r,peersUrl:n,blockedPeersUrl:s,blockedPeersFlushActionUrl:i}){return{[e]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[r]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),[n]:o=>et({permissions:ie.monitoring,activeServicesNames:[t],services:o}),...s&&i&&{[s]:o=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:o}),[i]:Tt}}}const $Ue={[$.urls.bmsc]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.BMSC],services:t}),[$.urls.bmscStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.BMSC],services:t}),...Fp({nf:ue.BMSC,rootUrl:$.urls.bmscStatusDiameter,connectionsUrl:$.urls.bmscStatusDiameterConnections,peersUrl:$.urls.bmscStatusDiameterPeers}),...qA({nf:ue.BMSC,rootUrl:$.urls.bmscStatusGtpc,socketsUrl:$.urls.bmscStatusGtpcSockets,peersUrl:$.urls.bmscStatusGtpcPeers}),...no({nf:ue.BMSC,rootUrl:$.urls.bmscCluster,applyBootConfigUrl:$.urls.bmscClusterApplyBootConfig_Action}),...ro({nf:ue.BMSC,rootUrl:$.urls.bmscConfiguration,applyActionUrl:$.urls.bmscConfigurationApply_Action,persistActionUrl:$.urls.bmscConfigurationPersist_Action,reloadActionUrl:$.urls.bmscConfigurationReload_Action,factoryResetActionUrl:$.urls.bmscConfigurationFactoryReset_Action})};function OUe({nf:t,rootUrl:e}){return{[e]:r=>et({permissions:ie.monitoring,activeServicesNames:[t],services:r})}}const LUe={[$.urls.chf]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.CHF],services:t}),...no({nf:ue.CHF,rootUrl:$.urls.chfCluster,applyBootConfigUrl:$.urls.chfClusterApplyBootConfig_Action}),[$.urls.chfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.CHF],services:t}),...Fp({nf:ue.CHF,rootUrl:$.urls.chfStatusDiameter,connectionsUrl:$.urls.chfStatusDiameterConnections,peersUrl:$.urls.chfStatusDiameterPeers}),...ro({nf:ue.CHF,rootUrl:$.urls.chfConfiguration,applyActionUrl:$.urls.chfConfigurationApply_Action,persistActionUrl:$.urls.chfConfigurationPersist_Action,reloadActionUrl:$.urls.chfConfigurationReload_Action,factoryResetActionUrl:$.urls.chfConfigurationFactoryReset_Action}),[$.urls.chfStatusGtpPrime]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.CHF],services:t}),...OUe({nf:ue.CHF,rootUrl:$.urls.chfStatusGtpPrimeConnections})},NUe={[$.urls.dra]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.DRA],services:t}),[$.urls.draStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.DRA],services:t}),...Fp({nf:ue.DRA,rootUrl:$.urls.draStatusDiameter,connectionsUrl:$.urls.draStatusDiameterConnections,peersUrl:$.urls.draStatusDiameterPeers}),...no({nf:ue.DRA,rootUrl:$.urls.draCluster,applyBootConfigUrl:$.urls.draClusterApplyBootConfig_Action}),...ro({nf:ue.DRA,rootUrl:$.urls.draConfiguration,applyActionUrl:$.urls.draConfigurationApply_Action,persistActionUrl:$.urls.draConfigurationPersist_Action,factoryResetActionUrl:$.urls.draConfigurationFactoryReset_Action,reloadActionUrl:$.urls.draConfigurationReload_Action})},FUe={[$.urls.dsm]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),...ro({nf:ue.DSM,rootUrl:$.urls.dsmConfiguration,applyActionUrl:$.urls.dsmConfigurationApply_Action,persistActionUrl:$.urls.dsmConfigurationPersist_Action,reloadActionUrl:$.urls.dsmConfigurationReload_Action,factoryResetActionUrl:$.urls.dsmConfigurationFactoryReset_Action}),[$.urls.dsmZones]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesEntries]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesDetail]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),[$.urls.dsmZonesCreate_Action]:Tt,[$.urls.dsmZonesDelete_Action]:Tt,[$.urls.dsmZonesDownload]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.DSM],services:t}),...no({nf:ue.DSM,rootUrl:$.urls.dsmCluster,applyBootConfigUrl:$.urls.dsmClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.dsmClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.dsmClusterLeaveCluster_Action})},UUe={[$.urls.eir]:t=>et({permissions:[ie.provisioning,ie.monitoring,ie.configuration,ie.management],activeServicesNames:[ue.EIR],services:t}),[$.urls.eirStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.EIR],services:t}),...Fp({nf:ue.EIR,rootUrl:$.urls.eirStatusDiameter,connectionsUrl:$.urls.eirStatusDiameterConnections,peersUrl:$.urls.eirStatusDiameterPeers}),...ro({nf:ue.EIR,rootUrl:$.urls.eirConfiguration,applyActionUrl:$.urls.eirConfigurationApply_Action,persistActionUrl:$.urls.eirConfigurationPersist_Action,reloadActionUrl:$.urls.eirConfigurationReload_Action,factoryResetActionUrl:$.urls.eirConfigurationFactoryReset_Action}),[$.urls.eirRules]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirRulesEntries]:()=>et({permissions:ie.provisioning}),[$.urls.eirRulesDetails]:()=>et({permissions:ie.provisioning}),[$.urls.eirRulesCreateBulk_Action]:Tt,[$.urls.eirRulesCreate_Action]:Tt,[$.urls.eirRulesUpdate_Action]:Tt,[$.urls.eirRulesDelete_Action]:Tt,[$.urls.eirRulesEquipmentConfigurationSet]:()=>et({permissions:ie.provisioning}),[$.urls.eirAutoRules]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirAutorulesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.EIR],services:t}),[$.urls.eirAutorulesCreateBulk_Action]:Tt,[$.urls.eirAutorulesCreate_Action]:Tt,[$.urls.eirAutorulesUpdate_Action]:Tt,[$.urls.eirAutorulesDelete_Action]:Tt,...no({nf:ue.EIR,rootUrl:$.urls.eirCluster,applyBootConfigUrl:$.urls.eirClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.eirClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.eirClusterLeaveCluster_Action})};function nN({nf:t,rootUrl:e,socketsUrl:r}){return{[e]:n=>et({permissions:ie.monitoring,activeServicesNames:[t],services:n}),[r]:n=>et({permissions:ie.monitoring,activeServicesNames:[t],services:n})}}function sN({nf:t,rootUrl:e,createUrl:r,deleteUrl:n}){return{[e]:s=>et({permissions:ie.lawful_interception,activeServicesNames:[t],services:s}),[r]:Tt,[n]:Tt}}const BUe={[$.urls.mme]:t=>et({permissions:[ie.monitoring,ie.configuration,ie.lawful_interception],activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...Fp({nf:ue.MME,rootUrl:$.urls.mmeStatusDiameter,connectionsUrl:$.urls.mmeStatusDiameterConnections,peersUrl:$.urls.mmeStatusDiameterPeers}),[$.urls.mmeStatusS1ap]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnectionsDisconnect]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apConnectionsReset]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusS1apListeners]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...qA({nf:ue.MME,rootUrl:$.urls.mmeStatusGtpc,socketsUrl:$.urls.mmeStatusGtpcSockets,peersUrl:$.urls.mmeStatusGtpcPeers,blockedPeersUrl:$.urls.mmeStatusGtpcBlockedPeers,blockedPeersFlushActionUrl:$.urls.mmeStatusGtpcBlockedPeersFlush_Action}),...nN({nf:ue.MME,rootUrl:$.urls.mmeStatusGtpu,socketsUrl:$.urls.mmeStatusGtpuSockets}),[$.urls.mmeStatusSgs]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSgsConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcap]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcapConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusSbcapListeners]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDns]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDnsCache]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusDnsCacheFlush]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusM3]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.mmeStatusM3Connections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),...no({nf:ue.MME,rootUrl:$.urls.mmeCluster,applyBootConfigUrl:$.urls.mmeClusterApplyBootConfig_Action}),...ro({nf:ue.MME,rootUrl:$.urls.mmeConfiguration,applyActionUrl:$.urls.mmeConfigurationApply_Action,persistActionUrl:$.urls.mmeConfigurationPersist_Action,reloadActionUrl:$.urls.mmeConfigurationReload_Action,factoryResetActionUrl:$.urls.mmeConfigurationFactoryReset_Action}),...sN({nf:ue.MME,rootUrl:$.urls.mmeLawfulInterception,createUrl:$.urls.mmeLawfulInterceptionCreate_Action,deleteUrl:$.urls.mmeLawfulInterceptionDelete_Action})},zUe={[$.urls.monitoring]:()=>et({permissions:ie.monitoring}),[$.urls.monitoringUeStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF,ue.SMF,ue.UDR,ue.MME,ue.UPF,ue.PCF,ue.SGWC],partialActiveServices:!0,services:t}),[$.urls.monitoringUeStatusDetails]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF,ue.SMF,ue.UDR,ue.MME,ue.UPF,ue.PCF,ue.SGWC],partialActiveServices:!0,services:t}),[$.urls.monitoringUeStatusDetailsUdmReattach_Action]:Tt,[$.urls.monitoringUeStatusDetailsAmf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AMF],services:t}),[$.urls.monitoringUeStatusDetailsAmfRemove_Action]:Tt,[$.urls.monitoringUeStatusDetailsSmf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.monitoringUeStatusDetailsUpf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.monitoringUeStatusDetailsUdr]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UDR],services:t}),[$.urls.monitoringUeStatusDetailsMme]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.MME],services:t}),[$.urls.monitoringUeStatusDetailsMmeDisconnect_Action]:Tt,[$.urls.monitoringUeStatusDetailsMmeDetach_Action]:Tt,[$.urls.monitoringUeStatusDetailsMmePurge_Action]:Tt,[$.urls.monitoringUeStatusDetailsSgwc]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.monitoringUeStatusDetailsPcf]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.PCF],services:t}),[$.urls.monitoringCoreStatistics]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GRAFANA],services:t}),[$.urls.monitoringSystem]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GRAFANA],services:t}),[$.urls.monitoringAlerts]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.ALERTMANAGER],services:t})},qUe={[$.urls.network]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusInterfaces]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusNeighbors]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusNeighborsFlush_Action]:Tt,[$.urls.networkStatusRoutes]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusRules]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBird]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBirdProtocols]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),[$.urls.networkStatusBirdBfdSessions]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NCM],services:t}),...ro({nf:ue.NCM,rootUrl:$.urls.networkConfiguration,applyActionUrl:$.urls.networkConfigurationApply_Action,persistActionUrl:$.urls.networkConfigurationPersist_Action,reloadActionUrl:$.urls.networkConfigurationReload_Action,factoryResetActionUrl:$.urls.networkConfigurationFactoryReset_Action})},VUe={[$.urls.nrf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.NRF],services:t}),...ro({nf:ue.NRF,rootUrl:$.urls.nrfConfiguration,applyActionUrl:$.urls.nrfConfigurationApply_Action,persistActionUrl:$.urls.nrfConfigurationPersist_Action,reloadActionUrl:$.urls.nrfConfigurationReload_Action,factoryResetActionUrl:$.urls.nrfConfigurationFactoryReset_Action}),[$.urls.nrfStaticProfiles]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStaticProfilesDetails]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.NRF],services:t}),[$.urls.nrfStaticProfilesCreate_Action]:Tt,[$.urls.nrfStaticProfilesUpdate_Action]:Tt,[$.urls.nrfStaticProfilesDelete_Action]:Tt,...no({nf:ue.NRF,rootUrl:$.urls.nrfCluster,applyBootConfigUrl:$.urls.nrfClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.nrfClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.nrfClusterLeaveCluster_Action})},HUe={[$.urls.pcf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.PCF],services:t}),[$.urls.pcfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.PCF],services:t}),...Fp({nf:ue.PCF,rootUrl:$.urls.pcfStatusDiameter,connectionsUrl:$.urls.pcfStatusDiameterConnections,peersUrl:$.urls.pcfStatusDiameterPeers}),...no({nf:ue.PCF,rootUrl:$.urls.pcfCluster,applyBootConfigUrl:$.urls.pcfClusterApplyBootConfig_Action}),...ro({nf:ue.PCF,rootUrl:$.urls.pcfConfiguration,applyActionUrl:$.urls.pcfConfigurationApply_Action,persistActionUrl:$.urls.pcfConfigurationPersist_Action,reloadActionUrl:$.urls.pcfConfigurationReload_Action,factoryResetActionUrl:$.urls.pcfConfigurationFactoryReset_Action})},GUe={[$.urls.platform]:()=>et({permissions:ie.management}),[$.urls.platformAuthentication]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationStrategies]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationAuthConfig]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationTerms]:()=>et({permissions:ie.management}),[$.urls.platformAuthenticationBackendsUpdate_Action]:Tt,[$.urls.platformAuthenticationOpenIdConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationRadiusConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationLdapConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationAuthConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationOpenIdConfigUpdate_Action]:Tt,[$.urls.platformAuthenticationTermsUpdate_Action]:Tt,[$.urls.platformUsers]:()=>et({permissions:ie.management}),[$.urls.platformUsersEntries]:()=>et({permissions:ie.management}),[$.urls.platformUsersDetails]:()=>et({permissions:ie.management}),[$.urls.platformUsersAudits]:()=>et({permissions:ie.management}),[$.urls.platformUsersCreate_Action]:Tt,[$.urls.platformUsersUpdate_Action]:Tt,[$.urls.platformUsersDelete_Action]:Tt,[$.urls.platformUsersPasswordChange_Action]:Tt,[$.urls.platformUsersRevokeTokens_Action]:Tt,[$.urls.platformUsersCurrentUserPasswordChange_Action]:Tt,[$.urls.platformRoles]:()=>et({permissions:ie.management}),[$.urls.platformRolesEntries]:()=>et({permissions:ie.management}),[$.urls.platformRolesCreate_Action]:Tt,[$.urls.platformRolesUpdate_Action]:Tt,[$.urls.platformRolesDelete_Action]:Tt,[$.urls.platformRolesDetails]:()=>et({permissions:ie.management}),[$.urls.platformTls]:()=>et({permissions:ie.management}),[$.urls.platformTlsConfigurationUpdate_Action]:Tt,[$.urls.platformTlsClientCertificateUpdate_Action]:Tt,[$.urls.platformTlsServerCertificateUpdate_Action]:Tt,[$.urls.platformLogShipping]:()=>et({permissions:ie.management}),[$.urls.platformLogShippingApply_Action]:Tt,[$.urls.platformLogShippingFactoryReset_Action]:Tt,[$.urls.platformKpiShipping]:()=>et({permissions:ie.management}),[$.urls.platformKpiShippingApply_Action]:Tt,[$.urls.platformKpiShippingFactoryReset_Action]:Tt,[$.urls.platformAlertShipping]:()=>et({permissions:ie.management}),[$.urls.platformAlertShippingApply_Action]:Tt,[$.urls.platformAlertShippingFactoryReset_Action]:Tt,...no({nf:ue.PLS,rootUrl:$.urls.platformCluster,applyBootConfigUrl:$.urls.platformClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.platformClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.platformClusterLeaveCluster_Action})},WUe={[$.urls.sgwc]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),...qA({nf:ue.SGWC,rootUrl:$.urls.sgwcStatusGtpc,socketsUrl:$.urls.sgwcStatusGtpcSockets,peersUrl:$.urls.sgwcStatusGtpcPeers}),[$.urls.sgwcStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),[$.urls.sgwcStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SGWC],services:t}),...no({nf:ue.SGWC,rootUrl:$.urls.sgwcCluster,applyBootConfigUrl:$.urls.sgwcClusterApplyBootConfig_Action}),...ro({nf:ue.SGWC,rootUrl:$.urls.sgwcConfiguration,applyActionUrl:$.urls.sgwcConfigurationApply_Action,persistActionUrl:$.urls.sgwcConfigurationPersist_Action,reloadActionUrl:$.urls.sgwcConfigurationReload_Action,factoryResetActionUrl:$.urls.sgwcConfigurationFactoryReset_Action})},YUe={[$.urls.smf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),...qA({nf:ue.SMF,rootUrl:$.urls.smfStatusGtpc,socketsUrl:$.urls.smfStatusGtpcSockets,peersUrl:$.urls.smfStatusGtpcPeers}),...nN({nf:ue.SMF,rootUrl:$.urls.smfStatusGtpu,socketsUrl:$.urls.smfStatusGtpuSockets}),...no({nf:ue.SMF,rootUrl:$.urls.smfCluster,applyBootConfigUrl:$.urls.smfClusterApplyBootConfig_Action}),[$.urls.smfStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),[$.urls.smfStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMF],services:t}),...ro({nf:ue.SMF,rootUrl:$.urls.smfConfiguration,applyActionUrl:$.urls.smfConfigurationApply_Action,persistActionUrl:$.urls.smfConfigurationPersist_Action,reloadActionUrl:$.urls.smfConfigurationReload_Action,factoryResetActionUrl:$.urls.smfConfigurationFactoryReset_Action}),...sN({nf:ue.SMF,rootUrl:$.urls.smfLawfulInterception,createUrl:$.urls.smfLawfulInterceptionCreate_Action,deleteUrl:$.urls.smfLawfulInterceptionDelete_Action})},KUe={[$.urls.smsf]:t=>et({permissions:[ie.monitoring,ie.configuration,ie.management],activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),...Fp({nf:ue.SMSF,rootUrl:$.urls.smsfStatusDiameter,connectionsUrl:$.urls.smsfStatusDiameterConnections,peersUrl:$.urls.smsfStatusDiameterPeers}),[$.urls.smsfStatusSmpp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfStatusSmppConnections]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.SMSF],services:t}),...ro({nf:ue.SMSF,rootUrl:$.urls.smsfConfiguration,applyActionUrl:$.urls.smsfConfigurationApply_Action,persistActionUrl:$.urls.smsfConfigurationPersist_Action,reloadActionUrl:$.urls.smsfConfigurationReload_Action,factoryResetActionUrl:$.urls.smsfConfigurationFactoryReset_Action}),[$.urls.smsfSmsBox]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxList]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxSend_Action]:Tt,[$.urls.smsfSmsBoxMsisdn]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxMsisdnDirection]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBoxMsisdnDirectionDelete]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),[$.urls.smsfSmsBox]:t=>et({permissions:ie.management,activeServicesNames:[ue.SMSF],services:t}),...no({nf:ue.SMSF,rootUrl:$.urls.smsfCluster,applyBootConfigUrl:$.urls.smsfClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.smsfClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.smsfClusterLeaveCluster_Action})},QUe={[$.urls.system]:()=>et({permissions:[[ie.management],[ie.monitoring],[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemLicensing]:t=>et({permissions:ie.management,activeServicesNames:[ue.LICENSED],services:t}),[$.urls.systemLicensingInstall_Action]:Tt,[$.urls.systemLicensingDelete_Action]:Tt,[$.urls.systemBackup]:()=>et({permissions:[[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemBackupSchedules]:()=>et({permissions:[[ie.backup,ie.configuration],[ie.backup,ie.provisioning]]}),[$.urls.systemBackupSchedulesConfiguration]:()=>et({permissions:[[ie.backup,ie.configuration]]}),[$.urls.systemBackupSchedulesConfigurationBackup_Action]:Tt,[$.urls.systemBackupSchedulesNf]:()=>et({permissions:[[ie.backup,ie.provisioning]]}),[$.urls.systemBackupRestoreSchedules]:()=>et({permissions:[[ie.backup,ie.provisioning],[ie.backup,ie.configuration]]}),[$.urls.systemBackupRestoreSchedulesConfiguration]:()=>et({permissions:[[ie.backup,ie.configuration]]}),[$.urls.systemBackupRestoreSchedulesConfigurationBackup_Action]:Tt,[$.urls.systemBackupRestoreSchedulesConfigurationRestore_Action]:Tt,[$.urls.systemBackupRestoreSchedulesNf]:()=>et({permissions:[[ie.backup,ie.provisioning]]}),[$.urls.systemBackupScheduleBackup_Action]:Tt,[$.urls.systemBackupScheduleRestore_Action]:Tt,[$.urls.systemBackupUpdateConfiguration_Action]:Tt,[$.urls.systemServices]:()=>et({permissions:ie.management}),[$.urls.systemServicesManagement_Action]:Tt,[$.urls.systemUpgrade]:()=>et({permissions:ie.management}),[$.urls.systemUpgradeUpload_Action]:Tt,[$.urls.systemLogs]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFollow]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsEntries]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFields]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsFieldsName]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsConfig]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsConfigUpdate_Action]:Tt,[$.urls.systemLogsCursor]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemLogsCursorItem]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.GATEWAYD],services:t}),[$.urls.systemTerminal]:t=>et({canFn:Ue,permissions:ie.management,activeServicesNames:[ue.TERMINAL],services:t}),[$.urls.systemTerminalList]:t=>et({canFn:Ue,permissions:ie.management,activeServicesNames:[ue.TERMINAL],services:t}),[$.urls.restart]:()=>et({permissions:ie.management}),[$.urls.systemBootPartitions]:()=>et({permissions:ie.management}),[$.urls.systemBootPartitionsUpdate_Action]:Tt,[$.urls.systemTroubleshootDump]:()=>et({permissions:ie.management}),[$.urls.systemTroubleshootDumpCreate_Action]:Tt,[$.urls.systemTroubleshootDumpDelete_Action]:Tt},ZUe={[$.urls.udm]:t=>et({permissions:[ie.provisioning,ie.configuration,ie.monitoring],activeServicesNames:[ue.UDM],services:t}),[$.urls.udmStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UDM],services:t}),...Fp({nf:ue.UDM,rootUrl:$.urls.udmStatusDiameter,connectionsUrl:$.urls.udmStatusDiameterConnections,peersUrl:$.urls.udmStatusDiameterPeers}),...ro({nf:ue.UDM,rootUrl:$.urls.udmConfiguration,applyActionUrl:$.urls.udmConfigurationApply_Action,persistActionUrl:$.urls.udmConfigurationPersist_Action,reloadActionUrl:$.urls.udmConfigurationReload_Action,factoryResetActionUrl:$.urls.udmConfigurationFactoryReset_Action}),[$.urls.udmHomeNetworkKeys]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmHomeNetworkKeysCreate_Action]:Tt,[$.urls.udmHomeNetworkKeysDelete_Action]:Tt,[$.urls.udmHomeNetworkKeysUpload_Action]:Tt,...no({nf:ue.UDM,rootUrl:$.urls.udmCluster,applyBootConfigUrl:$.urls.udmClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.udmClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.udmClusterLeaveCluster_Action}),[$.urls.udmPlmnPrefixes]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmPlmnPrefix]:t=>et({permissions:ie.configuration,activeServicesNames:[ue.UDM],services:t}),[$.urls.udmPlmnPrefixesCreate_Action]:Tt,[$.urls.udmPlmnPrefixesUpdate_Action]:Tt,[$.urls.udmPlmnPrefixesDelete_Action]:Tt},XUe={[$.urls.udr]:t=>et({permissions:[ie.provisioning,ie.configuration,ie.transport_keys,ie.operator_codes,ie.milenage_constants],activeServicesNames:[ue.UDR],services:t}),...ro({nf:ue.UDR,rootUrl:$.urls.udrConfiguration,applyActionUrl:$.urls.udrConfigurationApply_Action,persistActionUrl:$.urls.udrConfigurationPersist_Action,reloadActionUrl:$.urls.udrConfigurationReload_Action,factoryResetActionUrl:$.urls.udrConfigurationFactoryReset_Action}),[$.urls.udrPlmns]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPlmnsCreate_Action]:Tt,[$.urls.udrPlmnsDelete_Action]:Tt,[$.urls.udrSupis]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrSupisUpload_Action]:Tt,[$.urls.udrSupisUploadAsync_Action]:Tt,[$.urls.udrSupisDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrSupisCreate_Action]:Tt,[$.urls.udrSupisUpdate_Action]:Tt,[$.urls.udrSupisDelete_Action]:Tt,[$.urls.udrProvisionedDataProfile]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrProvisionedDataProfileDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrProvisionedDataProfileCreate_Action]:Tt,[$.urls.udrProvisionedDataProfileUpdate_Action]:Tt,[$.urls.udrProvisionedDataProfileDelete_Action]:Tt,[$.urls.udrPolicyDataProfile]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPolicyDataProfileDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrPolicyDataProfileCreate_Action]:Tt,[$.urls.udrPolicyDataProfileUpdate_Action]:Tt,[$.urls.udrPolicyDataProfileDelete_Action]:Tt,[$.urls.udrImsApplicationServerAcls]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsApplicationServerAclsCreate_Action]:Tt,[$.urls.udrImsApplicationServerAclsUpdate_Action]:Tt,[$.urls.udrImsApplicationServerAclsDelete_Action]:Tt,[$.urls.udrImsPrivateIdentities]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesApplicationServersProfiles]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesCreate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesUpdate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesApplicationServersProfilesDelete_Action]:Tt,[$.urls.udrImsPrivateIdentitiesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesPrivateStatus]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesPublicStatus]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsPrivateIdentitiesCreate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesCreateBasic_Action]:Tt,[$.urls.udrImsPrivateIdentitiesUpdate_Action]:Tt,[$.urls.udrImsPrivateIdentitiesDelete_Action]:Tt,[$.urls.udrImsServiceProfiles]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsServiceProfilesCreate_Action]:Tt,[$.urls.udrImsServiceProfilesUpdate_Action]:Tt,[$.urls.udrImsServiceProfilesDelete_Action]:Tt,[$.urls.udrImsInitialFilters]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersEntries]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersDetails]:t=>et({permissions:ie.provisioning,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrImsInitialFiltersCreate_Action]:Tt,[$.urls.udrImsInitialFiltersUpdate_Action]:Tt,[$.urls.udrImsInitialFiltersDelete_Action]:Tt,[$.urls.udrTransportKeys]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysEntries]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysDetails]:t=>et({permissions:ie.transport_keys,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrTransportKeysCreate_Action]:Tt,[$.urls.udrTransportKeysUpdate_Action]:Tt,[$.urls.udrTransportKeysDelete_Action]:Tt,[$.urls.udrOperatorCodes]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesEntries]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesDetails]:t=>et({permissions:ie.operator_codes,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrOperatorCodesCreate_Action]:Tt,[$.urls.udrOperatorCodesUpdate_Action]:Tt,[$.urls.udrOperatorCodesDelete_Action]:Tt,[$.urls.udrCustomMilenageConstants]:t=>et({permissions:ie.milenage_constants,activeServicesNames:[ue.UDR],services:t}),[$.urls.udrCustomMilenageConstantsUpdate_Action]:Tt,[$.urls.udrCustomMilenageConstantsDelete_Action]:Tt,...no({nf:ue.UDR,rootUrl:$.urls.udrCluster,applyBootConfigUrl:$.urls.udrClusterApplyBootConfig_Action,joinClusterActionUrl:$.urls.udrClusterJoinCluster_Action,leaveClusterActionUrl:$.urls.udrClusterLeaveCluster_Action})},JUe={[$.urls.upf]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcp]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcpSockets]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),[$.urls.upfStatusPfcpPeers]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.UPF],services:t}),...nN({nf:ue.UPF,rootUrl:$.urls.upfStatusGtpu,socketsUrl:$.urls.upfStatusGtpuSockets}),...no({nf:ue.UPF,rootUrl:$.urls.upfCluster,applyBootConfigUrl:$.urls.upfClusterApplyBootConfig_Action}),...ro({nf:ue.UPF,rootUrl:$.urls.upfConfiguration,applyActionUrl:$.urls.upfConfigurationApply_Action,persistActionUrl:$.urls.upfConfigurationPersist_Action,reloadActionUrl:$.urls.upfConfigurationReload_Action,factoryResetActionUrl:$.urls.upfConfigurationFactoryReset_Action}),...sN({nf:ue.UPF,rootUrl:$.urls.upfLawfulInterception,createUrl:$.urls.upfLawfulInterceptionCreate_Action,deleteUrl:$.urls.upfLawfulInterceptionDelete_Action})},eBe={[$.urls.aaa]:t=>et({permissions:[ie.monitoring,ie.configuration],activeServicesNames:[ue.AAA],services:t}),...no({nf:ue.AAA,rootUrl:$.urls.aaaCluster,applyBootConfigUrl:$.urls.aaaClusterApplyBootConfig_Action}),[$.urls.aaaStatus]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AAA],services:t}),[$.urls.aaaStatusRadius]:t=>et({permissions:ie.monitoring,activeServicesNames:[ue.AAA],services:t}),...ro({nf:ue.AAA,rootUrl:$.urls.aaaConfiguration,applyActionUrl:$.urls.aaaConfigurationApply_Action,persistActionUrl:$.urls.aaaConfigurationPersist_Action,reloadActionUrl:$.urls.aaaConfigurationReload_Action,factoryResetActionUrl:$.urls.aaaConfigurationFactoryReset_Action})},BW={[$.urls.siteLoader]:Tt,[$.urls.profile]:Tt,[$.urls.home]:()=>et({permissions:ie.monitoring}),...qUe,...eBe,...IUe,...DUe,...$Ue,...LUe,...FUe,...NUe,...UUe,...BUe,...VUe,...HUe,...WUe,...YUe,...KUe,...ZUe,...XUe,...JUe,...zUe,...GUe,...QUe},tBe=Pr(),Lt=(t,e)=>{try{return K6(t,e),!0}catch{return!1}},K6=(t,e)=>{if(!Cae(t))return;if(!BW[t])throw new Error(tBe.formatMessage({id:"route.errors.route_not_managed"},{path:t}));if(!e.length)return;const r=BW[t](e);if(r!==!0)throw r.areServicesActive?Li({type:mn.FORBIDDEN,data:Array.isArray(r.permissions)?r.permissions.join(", "):r.permissions}):Li({type:mn.SERVICE_UNAVAILABLE,data:r.services?.join(", ")})};function et({permissions:t,services:e,activeServicesNames:r,canFn:n=as,partialActiveServices:s=!1}){const i=t?n(t):!0,o=e&&r?u4e({services:e,activeServices:r,partial:s}):!0;return!i||!o?{permissions:t,services:r,hasPermissions:i,areServicesActive:o}:!0}function Aae(){const t=pie();return!Ni.isEmpty(t)}const vt=Pr();function kae(t){return t.filter(e=>!e.disabled).map(e=>e.subItems?{...e,subItems:e.subItems.filter(r=>!r.disabled)}:e).map(e=>!e.subItems||e.subItems&&e.subItems?.length>0?e:void 0).filter(e=>!!e)}function _o(t,e){return!!e.find(r=>r.name===t)?.db_cluster}function rBe({services:t}){return[{value:$.urls.home,icon:a.jsx(ge.Home,{}),label:vt.formatMessage({id:"route.home"}),disabled:!Lt($.urls.home,t)},{value:$.urls.network,icon:a.jsx(ge.NCM,{}),label:vt.formatMessage({id:"route.ncm"}),disabled:!Lt($.urls.network,t),subItems:[{value:$.urls.networkStatus,label:vt.formatMessage({id:"route.ncm.status"}),disabled:!Lt($.urls.networkStatus,t)},{value:$.urls.networkConfiguration,label:vt.formatMessage({id:"route.ncm.configuration"}),disabled:!Lt($.urls.networkConfiguration,t)}]},{value:$.urls.aaa,icon:a.jsx(ge.AAA,{}),label:vt.formatMessage({id:"route.aaa"}),disabled:!Lt($.urls.aaa,t),subItems:[{value:$.urls.aaaStatus,label:vt.formatMessage({id:"route.aaa.status"}),disabled:!Lt($.urls.aaaStatus,t)},{value:$.urls.aaaConfiguration,label:vt.formatMessage({id:"route.aaa.configuration"}),disabled:!Lt($.urls.aaaConfiguration,t)},{value:$.urls.aaaCluster,label:vt.formatMessage({id:"route.aaa.cluster"}),disabled:!Lt($.urls.aaaCluster,t)||!_o(ue.AAA,t)}]},{value:$.urls.amf,icon:a.jsx(ge.AMF,{}),label:vt.formatMessage({id:"route.amf"}),disabled:!Lt($.urls.amf,t),subItems:[{value:$.urls.amfStatus,label:vt.formatMessage({id:"route.amf.status"}),disabled:!Lt($.urls.amfStatus,t)},{value:$.urls.amfConfiguration,label:vt.formatMessage({id:"route.amf.configuration"}),disabled:!Lt($.urls.amfConfiguration,t)},{value:$.urls.amfCluster,label:vt.formatMessage({id:"route.amf.cluster"}),disabled:!Lt($.urls.amfCluster,t)||!_o(ue.AMF,t)}]},{value:$.urls.ausf,icon:a.jsx(ge.AUSF,{}),label:vt.formatMessage({id:"route.ausf"}),disabled:!Lt($.urls.ausf,t),subItems:[{value:$.urls.ausfConfiguration,label:vt.formatMessage({id:"route.ausf.configuration"}),disabled:!Lt($.urls.ausfConfiguration,t)},{value:$.urls.ausfCluster,label:vt.formatMessage({id:"route.ausf.cluster"}),disabled:!Lt($.urls.ausfCluster,t)||!_o(ue.AUSF,t)}]},{value:$.urls.bmsc,icon:a.jsx(ge.BMSC,{}),label:vt.formatMessage({id:"route.bmsc"}),disabled:!Lt($.urls.bmsc,t),subItems:[{value:$.urls.bmscStatus,label:vt.formatMessage({id:"route.bmsc.status"}),disabled:!Lt($.urls.bmscStatus,t)},{value:$.urls.bmscConfiguration,label:vt.formatMessage({id:"route.bmsc.configuration"}),disabled:!Lt($.urls.bmscConfiguration,t)},{value:$.urls.bmscCluster,label:vt.formatMessage({id:"route.bmsc.cluster"}),disabled:!Lt($.urls.bmscCluster,t)||!_o(ue.BMSC,t)}]},{value:$.urls.chf,icon:a.jsx(ge.CHF,{}),label:vt.formatMessage({id:"route.chf"}),disabled:!Lt($.urls.chf,t),subItems:[{value:$.urls.chfStatus,label:vt.formatMessage({id:"route.chf.status"}),disabled:!Lt($.urls.chfStatus,t)},{value:$.urls.chfConfiguration,label:vt.formatMessage({id:"route.chf.configuration"}),disabled:!Lt($.urls.chfConfiguration,t)},{value:$.urls.chfCluster,label:vt.formatMessage({id:"route.chf.cluster"}),disabled:!Lt($.urls.chfCluster,t)||!_o(ue.CHF,t)}]},{value:$.urls.dsm,icon:a.jsx(ge.DSM,{}),label:vt.formatMessage({id:"route.dsm"}),disabled:!Lt($.urls.dsm,t),subItems:[{value:$.urls.dsmConfiguration,label:vt.formatMessage({id:"route.dsm.configuration"}),disabled:!Lt($.urls.dsmConfiguration,t)},{value:$.urls.dsmZones,label:vt.formatMessage({id:"route.dsm.zones"}),disabled:!Lt($.urls.dsmZones,t)},{value:$.urls.dsmCluster,label:vt.formatMessage({id:"route.dsm.cluster"}),disabled:!Lt($.urls.dsmCluster,t)||!_o(ue.DSM,t)}]},{value:$.urls.dra,icon:a.jsx(ge.DRA,{}),label:vt.formatMessage({id:"route.dra"}),disabled:!Lt($.urls.dra,t),subItems:[{value:$.urls.draStatus,label:vt.formatMessage({id:"route.dra.status"}),disabled:!Lt($.urls.draStatus,t)},{value:$.urls.draConfiguration,label:vt.formatMessage({id:"route.dra.configuration"}),disabled:!Lt($.urls.draConfiguration,t)},{value:$.urls.draCluster,label:vt.formatMessage({id:"route.dra.cluster"}),disabled:!Lt($.urls.draCluster,t)||!_o(ue.DRA,t)}]},{value:$.urls.eir,icon:a.jsx(ge.EIR,{}),label:vt.formatMessage({id:"route.eir"}),disabled:!Lt($.urls.eir,t),subItems:[{value:$.urls.eirStatus,label:vt.formatMessage({id:"route.eir.status"}),disabled:!Lt($.urls.eirStatus,t)},{value:$.urls.eirConfiguration,label:vt.formatMessage({id:"route.eir.configuration"}),disabled:!Lt($.urls.eirConfiguration,t)},{value:$.urls.eirRules,label:vt.formatMessage({id:"route.eir.rules"}),disabled:!Lt($.urls.eirRules,t)},{value:$.urls.eirAutoRules,label:vt.formatMessage({id:"route.eir.auto-rules"}),disabled:!Lt($.urls.eirAutoRules,t)},{value:$.urls.eirCluster,label:vt.formatMessage({id:"route.eir.cluster"}),disabled:!Lt($.urls.eirCluster,t)||!_o(ue.EIR,t)}]},{value:$.urls.mme,icon:a.jsx(ge.MME,{}),label:vt.formatMessage({id:"route.mme"}),disabled:!Lt($.urls.mme,t),subItems:[{value:$.urls.mmeStatus,label:vt.formatMessage({id:"route.mme.status"}),disabled:!Lt($.urls.mmeStatus,t)},{value:$.urls.mmeConfiguration,label:vt.formatMessage({id:"route.mme.configuration"}),disabled:!Lt($.urls.mmeConfiguration,t)},{value:$.urls.mmeLawfulInterception,label:vt.formatMessage({id:"route.mme.lawful-interception"}),disabled:!Lt($.urls.mmeLawfulInterception,t)},{value:$.urls.mmeCluster,label:vt.formatMessage({id:"route.mme.cluster"}),disabled:!Lt($.urls.mmeCluster,t)||!_o(ue.MME,t)}]},{value:$.urls.nrf,icon:a.jsx(ge.NRF,{}),label:vt.formatMessage({id:"route.nrf"}),disabled:!Lt($.urls.nrf,t),subItems:[{value:$.urls.nrfStatus,label:vt.formatMessage({id:"route.nrf.status"}),disabled:!Lt($.urls.nrfStatus,t)},{value:$.urls.nrfConfiguration,label:vt.formatMessage({id:"route.nrf.configuration"}),disabled:!Lt($.urls.nrfConfiguration,t)},{value:$.urls.nrfStaticProfiles,label:vt.formatMessage({id:"route.nrf.static-profiles"}),disabled:!Lt($.urls.nrfStaticProfiles,t)},{value:$.urls.nrfCluster,label:vt.formatMessage({id:"route.nrf.cluster"}),disabled:!Lt($.urls.nrfCluster,t)||!_o(ue.NRF,t)}]},{value:$.urls.pcf,icon:a.jsx(ge.PCF,{}),label:vt.formatMessage({id:"route.pcf"}),disabled:!Lt($.urls.pcf,t),subItems:[{value:$.urls.pcfStatus,label:vt.formatMessage({id:"route.pcf.status"}),disabled:!Lt($.urls.pcfStatus,t)},{value:$.urls.pcfConfiguration,label:vt.formatMessage({id:"route.pcf.configuration"}),disabled:!Lt($.urls.pcfConfiguration,t)},{value:$.urls.pcfCluster,label:vt.formatMessage({id:"route.pcf.cluster"}),disabled:!Lt($.urls.pcfCluster,t)||!_o(ue.PCF,t)}]},{value:$.urls.sgwc,icon:a.jsx(ge.SGWC,{}),label:vt.formatMessage({id:"route.sgwc"}),disabled:!Lt($.urls.sgwc,t),subItems:[{value:$.urls.sgwcStatus,label:vt.formatMessage({id:"route.sgwc.status"}),disabled:!Lt($.urls.sgwcStatus,t)},{value:$.urls.sgwcConfiguration,label:vt.formatMessage({id:"route.sgwc.configuration"}),disabled:!Lt($.urls.sgwcConfiguration,t)},{value:$.urls.sgwcCluster,label:vt.formatMessage({id:"route.sgwc.cluster"}),disabled:!Lt($.urls.sgwcCluster,t)||!_o(ue.SGWC,t)}]},{value:$.urls.smf,icon:a.jsx(ge.SMF,{}),label:vt.formatMessage({id:"route.smf"}),disabled:!Lt($.urls.smf,t),subItems:[{value:$.urls.smfStatus,label:vt.formatMessage({id:"route.smf.status"}),disabled:!Lt($.urls.smfStatus,t)},{value:$.urls.smfConfiguration,label:vt.formatMessage({id:"route.smf.configuration"}),disabled:!Lt($.urls.smfConfiguration,t)},{value:$.urls.smfLawfulInterception,label:vt.formatMessage({id:"route.smf.lawful-interception"}),disabled:!Lt($.urls.smfLawfulInterception,t)},{value:$.urls.smfCluster,label:vt.formatMessage({id:"route.smf.cluster"}),disabled:!Lt($.urls.smfCluster,t)||!_o(ue.SMF,t)}]},{value:$.urls.smsf,icon:a.jsx(ge.SMSF,{}),label:vt.formatMessage({id:"route.smsf"}),disabled:!Lt($.urls.smsf,t),subItems:[{value:$.urls.smsfStatus,label:vt.formatMessage({id:"route.smsf.status"}),disabled:!Lt($.urls.smsfStatus,t)},{value:$.urls.smsfConfiguration,label:vt.formatMessage({id:"route.smsf.configuration"}),disabled:!Lt($.urls.smsfConfiguration,t)},{value:$.urls.smsfSmsBox,label:vt.formatMessage({id:"route.smsf.sms-box"}),disabled:!Lt($.urls.smsfSmsBox,t)},{value:$.urls.smsfCluster,label:vt.formatMessage({id:"route.smsf.cluster"}),disabled:!Lt($.urls.smsfCluster,t)||!_o(ue.SMSF,t)}]},{value:$.urls.udm,icon:a.jsx(ge.UDM,{}),label:vt.formatMessage({id:"route.udm"}),disabled:!Lt($.urls.udm,t),subItems:[{value:$.urls.udmStatus,label:vt.formatMessage({id:"route.udm.status"}),disabled:!Lt($.urls.udmStatus,t)},{value:$.urls.udmConfiguration,label:vt.formatMessage({id:"route.udm.configuration"}),disabled:!Lt($.urls.udmConfiguration,t)},{value:$.urls.udmPlmnPrefixes,label:vt.formatMessage({id:"route.udm.plmn-prefixes"}),disabled:!Lt($.urls.udmConfiguration,t)},{value:$.urls.udmHomeNetworkKeys,label:vt.formatMessage({id:"route.udm.home-network-keys"}),disabled:!Lt($.urls.udmHomeNetworkKeys,t)},{value:$.urls.udmCluster,label:vt.formatMessage({id:"route.udm.cluster"}),disabled:!Lt($.urls.udmCluster,t)||!_o(ue.UDM,t)}]},{value:$.urls.udr,icon:a.jsx(ge.UDR,{}),label:vt.formatMessage({id:"route.udr"}),disabled:!Lt($.urls.udr,t),subItems:[{value:$.urls.udrConfiguration,label:vt.formatMessage({id:"route.udr.configuration"}),disabled:!Lt($.urls.udrConfiguration,t)},{value:$.urls.udrPlmns,label:vt.formatMessage({id:"route.udr.plmns"}),disabled:!Lt($.urls.udrPlmns,t)},{value:$.urls.udrSupis,label:vt.formatMessage({id:"route.udr.supis"}),disabled:!Lt($.urls.udrSupis,t)},{value:$.urls.udrProvisionedDataProfile,label:vt.formatMessage({id:"route.udr.provisioned-data-profile"}),disabled:!Lt($.urls.udrProvisionedDataProfile,t)},{value:$.urls.udrPolicyDataProfile,label:vt.formatMessage({id:"route.udr.policy-data-profile"}),disabled:!Lt($.urls.udrPolicyDataProfile,t)},{value:$.urls.udrImsApplicationServerAcls,label:vt.formatMessage({id:"route.udr.ims-application-server-acls"}),disabled:!Lt($.urls.udrImsApplicationServerAcls,t)},{value:$.urls.udrImsPrivateIdentities,label:vt.formatMessage({id:"route.udr.ims-private-identities"}),disabled:!Lt($.urls.udrImsPrivateIdentities,t)},{value:$.urls.udrImsServiceProfiles,label:vt.formatMessage({id:"route.udr.ims-service-profiles"}),disabled:!Lt($.urls.udrImsServiceProfiles,t)},{value:$.urls.udrImsInitialFilters,label:vt.formatMessage({id:"route.udr.ims-initial-filters"}),disabled:!Lt($.urls.udrImsInitialFilters,t)},{value:$.urls.udrTransportKeys,label:vt.formatMessage({id:"route.udr.transport-keys"}),disabled:!Lt($.urls.udrTransportKeys,t)},{value:$.urls.udrOperatorCodes,label:vt.formatMessage({id:"route.udr.operator-codes"}),disabled:!Lt($.urls.udrOperatorCodes,t)},{value:$.urls.udrCustomMilenageConstants,label:vt.formatMessage({id:"route.udr.custom-milenage-constants"}),disabled:!Lt($.urls.udrCustomMilenageConstants,t)},{value:$.urls.udrCluster,label:vt.formatMessage({id:"route.udr.cluster"}),disabled:!Lt($.urls.udrCluster,t)||!_o(ue.UDR,t)}]},{value:$.urls.upf,icon:a.jsx(ge.UPF,{}),label:vt.formatMessage({id:"route.upf"}),disabled:!Lt($.urls.upf,t),subItems:[{value:$.urls.upfStatus,label:vt.formatMessage({id:"route.upf.status"}),disabled:!Lt($.urls.upfStatus,t)},{value:$.urls.upfConfiguration,label:vt.formatMessage({id:"route.upf.configuration"}),disabled:!Lt($.urls.upfConfiguration,t)},{value:$.urls.upfLawfulInterception,label:vt.formatMessage({id:"route.upf.lawful-interception"}),disabled:!Lt($.urls.upfLawfulInterception,t)},{value:$.urls.upfCluster,label:vt.formatMessage({id:"route.upf.cluster"}),disabled:!Lt($.urls.upfCluster,t)||!_o(ue.UPF,t)}]}]}function nBe({services:t}){return[{value:$.urls.monitoring,icon:a.jsx(ge.Monitoring,{}),label:vt.formatMessage({id:"route.monitoring"}),disabled:!Lt($.urls.monitoring,t),subItems:[{value:$.urls.monitoringUeStatus,label:vt.formatMessage({id:"route.monitoring.ue-status"}),icon:a.jsx(ge.UEstatus,{}),disabled:!Lt($.urls.monitoringUeStatus,t)},{value:$.urls.monitoringCoreStatistics,label:vt.formatMessage({id:"route.monitoring.core-statistics"}),icon:a.jsx(ge.Grafana,{}),external:!0,disabled:!Lt($.urls.monitoringCoreStatistics,t)},{value:$.urls.monitoringSystem,icon:a.jsx(ge.Grafana,{}),label:vt.formatMessage({id:"route.monitoring.system"}),external:!0,disabled:!Lt($.urls.monitoringSystem,t)}]},{value:$.urls.platform,icon:a.jsx(ge.Platform,{}),label:vt.formatMessage({id:"route.platform"}),disabled:!Lt($.urls.platform,t),subItems:[{value:$.urls.platformAuthentication,icon:a.jsx(ge.AuthenticationStrategies,{}),label:vt.formatMessage({id:"route.platform.auth"}),disabled:!Lt($.urls.platformAuthentication,t)},{value:$.urls.platformUsers,icon:a.jsx(ge.Users,{}),label:vt.formatMessage({id:"route.platform.users"}),disabled:!Lt($.urls.platformUsers,t)},{value:$.urls.platformRoles,icon:a.jsx(ge.Roles,{}),label:vt.formatMessage({id:"route.platform.roles"}),disabled:!Lt($.urls.platformRoles,t)},{value:$.urls.platformTls,icon:a.jsx(ge.TLS,{}),label:vt.formatMessage({id:"route.platform.tls"}),disabled:!Lt($.urls.platformTls,t)},{value:$.urls.platformLogShipping,label:vt.formatMessage({id:"route.platform.log-shipping"}),icon:a.jsx(ge.Fluentbit,{}),disabled:!Lt($.urls.platformLogShipping,t)},{value:$.urls.platformKpiShipping,label:vt.formatMessage({id:"route.platform.kpi-shipping"}),icon:a.jsx(ge.Prometheus,{}),disabled:!Lt($.urls.platformKpiShipping,t)},{value:$.urls.platformAlertShipping,label:vt.formatMessage({id:"route.platform.alert-shipping"}),icon:a.jsx(ge.Prometheus,{}),disabled:!Lt($.urls.platformAlertShipping,t)},{value:$.urls.platformCluster,label:vt.formatMessage({id:"route.platform.cluster"}),icon:a.jsx(ge.Cluster,{}),disabled:!Lt($.urls.platformCluster,t)}]},{value:$.urls.system,icon:a.jsx(ge.System,{}),label:vt.formatMessage({id:"route.system"}),disabled:!Lt($.urls.system,t),subItems:[{value:$.urls.systemLicensing,label:vt.formatMessage({id:"route.system.licensing"}),disabled:!Lt($.urls.systemLicensing,t),icon:a.jsx(ge.Licensing,{})},{value:$.urls.systemBackup,label:vt.formatMessage({id:"route.system.backup"}),disabled:!Lt($.urls.systemBackup,t),icon:a.jsx(ge.Backup,{})},{value:$.urls.systemServices,label:vt.formatMessage({id:"route.system.services"}),disabled:!Lt($.urls.systemServices,t),icon:a.jsx(ge.Service,{})},{value:$.urls.systemUpgrade,label:vt.formatMessage({id:"route.system.upgrade"}),disabled:!Lt($.urls.systemUpgrade,t),icon:a.jsx(ge.Upgrade,{})},{value:$.urls.systemLogs,icon:a.jsx(ge.Logs,{}),label:vt.formatMessage({id:"route.system.logs"}),disabled:!Lt($.urls.systemLogs,t)},{value:$.urls.systemTerminal,icon:a.jsx(ge.Terminal,{}),label:vt.formatMessage({id:"route.system.terminal"}),disabled:!Lt($.urls.systemTerminal,t)},{value:$.urls.systemTroubleshootDump,icon:a.jsx(ge.Download,{}),label:vt.formatMessage({id:"route.system.troubleshoot_dump"}),disabled:!Lt($.urls.systemTroubleshootDump,t)},{id:"restart",value:$.urls.restart,icon:a.jsx(ge.Refresh,{}),external:!0,_target:"_self",label:vt.formatMessage({id:"route.restart"}),disabled:!Lt($.urls.restart,t)},{id:"boot-partition",value:$.urls.systemBootPartitions,icon:a.jsx(ge.Servers,{}),label:vt.formatMessage({id:"route.boot_partitions"}),disabled:!Lt($.urls.systemBootPartitions,t)}]},{value:$.urls.monitoringAlerts,label:vt.formatMessage({id:"route.monitoring.alerts"}),icon:a.jsx(ge.Alerts,{}),disabled:!Lt($.urls.monitoringAlerts,t)},{value:$.urls.docs,icon:a.jsx(ge.Manual,{}),label:vt.formatMessage({id:"route.docs"}),subItems:[{value:$.urls.docsDatasheet,label:vt.formatMessage({id:"route.docs.datasheet"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsFeatureDescription,label:vt.formatMessage({id:"route.docs.feature-description"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsInstallationGuide,label:vt.formatMessage({id:"route.docs.installation-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsMonitoringGuide,label:vt.formatMessage({id:"route.docs.monitoring-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsProductDescription,label:vt.formatMessage({id:"route.docs.product-description"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsReleaseNotes,label:vt.formatMessage({id:"route.docs.release-notes"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsSecurityGuide,label:vt.formatMessage({id:"route.docs.security-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsTroubleshootingGuide,label:vt.formatMessage({id:"route.docs.troubleshooting-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0},{value:$.urls.docsUserGuide,label:vt.formatMessage({id:"route.docs.user-guide"}),icon:a.jsx(ge.CatalogOption,{}),external:!0}]},{value:$.urls.docsOas,icon:a.jsx(ge.OAS,{}),label:vt.formatMessage({id:"route.docs.oas"}),subItems:[{value:$.urls.docsOasAaa,icon:a.jsx(ge.AAA,{}),label:vt.formatMessage({id:"route.docs.oas.aaa"}),external:!0},{value:$.urls.docsOasAmf,icon:a.jsx(ge.AMF,{}),label:vt.formatMessage({id:"route.docs.oas.amf"}),external:!0},{value:$.urls.docsOasAusf,icon:a.jsx(ge.AUSF,{}),label:vt.formatMessage({id:"route.docs.oas.ausf"}),external:!0},{value:$.urls.docsOasBmsc,icon:a.jsx(ge.BMSC,{}),label:vt.formatMessage({id:"route.docs.oas.bmsc"}),external:!0},{value:$.urls.docsOasChf,icon:a.jsx(ge.CHF,{}),label:vt.formatMessage({id:"route.docs.oas.chf"}),external:!0},{value:$.urls.docsOasDra,icon:a.jsx(ge.DRA,{}),label:vt.formatMessage({id:"route.docs.oas.dra"}),external:!0},{value:$.urls.docsOasDsm,icon:a.jsx(ge.DSM,{}),label:vt.formatMessage({id:"route.docs.oas.dsm"}),external:!0},{value:$.urls.docsOasEir,icon:a.jsx(ge.EIR,{}),label:vt.formatMessage({id:"route.docs.oas.eir"}),external:!0},{value:$.urls.docsOasLicensed,icon:a.jsx(ge.Licensing,{}),label:vt.formatMessage({id:"route.docs.oas.licensed"}),external:!0},{value:$.urls.docsOasMme,icon:a.jsx(ge.MME,{}),label:vt.formatMessage({id:"route.docs.oas.mme"}),external:!0},{value:$.urls.docsOasNcm,icon:a.jsx(ge.NCM,{}),label:vt.formatMessage({id:"route.docs.oas.ncm"}),external:!0},{value:$.urls.docsOasNrf,icon:a.jsx(ge.NRF,{}),label:vt.formatMessage({id:"route.docs.oas.nrf"}),external:!0},{value:$.urls.docsOasPcf,icon:a.jsx(ge.PCF,{}),label:vt.formatMessage({id:"route.docs.oas.pcf"}),external:!0},{value:$.urls.docsOasPls,icon:a.jsx(ge.Platform,{}),label:vt.formatMessage({id:"route.docs.oas.pls"}),external:!0},{value:$.urls.docsOasSgwc,icon:a.jsx(ge.SGWC,{}),label:vt.formatMessage({id:"route.docs.oas.sgwc"}),external:!0},{value:$.urls.docsOasSmf,icon:a.jsx(ge.SMF,{}),label:vt.formatMessage({id:"route.docs.oas.smf"}),external:!0},{value:$.urls.docsOasSmsf,icon:a.jsx(ge.SMSF,{}),label:vt.formatMessage({id:"route.docs.oas.smsf"}),external:!0},{value:$.urls.docsOasUdm,icon:a.jsx(ge.UDM,{}),label:vt.formatMessage({id:"route.docs.oas.udm"}),external:!0},{value:$.urls.docsOasUdr,icon:a.jsx(ge.UDR,{}),label:vt.formatMessage({id:"route.docs.oas.udr"}),external:!0},{value:$.urls.docsOasUpf,icon:a.jsx(ge.UPF,{}),label:vt.formatMessage({id:"route.docs.oas.upf"}),external:!0},{value:$.urls.docsOasSwUpdate,icon:a.jsx(ge.Upgrade,{}),label:vt.formatMessage({id:"route.docs.oas.swUpdate"}),external:!0}]}]}const sBe=999;function Iv(t){const e=he.c(7),{badgeContent:r,color:n,children:s,variant:i,max:o,invisible:l}=t,c=n===void 0?"secondary":n,u=o===void 0?sBe:o;let d;return e[0]!==r||e[1]!==s||e[2]!==c||e[3]!==l||e[4]!==u||e[5]!==i?(d=a.jsx(ZNe,{badgeContent:r,color:c,variant:i,max:u,invisible:l,children:s}),e[0]=r,e[1]=s,e[2]=c,e[3]=l,e[4]=u,e[5]=i,e[6]=d):d=e[6],d}const Mae=I.createContext({readOnly:!1}),dn=t=>{const e=he.c(13),{canWrite:r,fullHeight:n,children:s,sx:i}=t,o=!r;let l;e[0]!==o?(l={readOnly:o},e[0]=o,e[1]=l):l=e[1];const[c]=I.useState(l);let u;e[2]!==n?(u=n&&{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},e[2]=n,e[3]=u):u=e[3];let d;e[4]!==i||e[5]!==u?(d={...u,...i},e[4]=i,e[5]=u,e[6]=d):d=e[6];let f;e[7]!==s||e[8]!==d?(f=a.jsx(Kd,{style:d,children:s}),e[7]=s,e[8]=d,e[9]=f):f=e[9];let p;return e[10]!==c||e[11]!==f?(p=a.jsx(Mae.Provider,{value:c,children:f}),e[10]=c,e[11]=f,e[12]=p):p=e[12],p},iN=()=>I.useContext(Mae);function Xr(t){const e=he.c(8),{data:r,sx:n}=t;if(!xt(r))return null;let s=r.error.detail,i,o;e[0]!==r.error.errors?(o=r.error.errors??{},e[0]=r.error.errors,e[1]=o):o=e[1];const l=o;if(!Ni.isEmpty(l)&&typeof l=="object"&&"password"in l)s=l.password,i=r.error.detail;else if(!Ni.isEmpty(l)&&typeof l=="object"){let u;e[2]!==l?(u=JSON.stringify(l,null,2),e[2]=l,e[3]=u):u=e[3],s=u,i=r.error.detail}else r.error.title&&(i=r.error.title);let c;return e[4]!==s||e[5]!==n||e[6]!==i?(c=a.jsx(Lr,{severity:"error",title:i,message:s,sx:n,"data-testid":"query-error-alert"}),e[4]=s,e[5]=n,e[6]=i,e[7]=c):c=e[7],c}function Ys(t){const e=he.c(16);let r;e[0]!==t?(r=t===void 0?{}:t,e[0]=t,e[1]=r):r=e[1];const{editLoadTo:n}=r,{dialogClose:s}=Jt(),i=gr(),o=gr(),{load:l,data:c}=i,{data:u,state:d}=o,f=!!n;let p,m;e[2]!==s||e[3]!==u||e[4]!==d?(p=()=>{u&&!xt(u)&&d==="idle"&&s()},m=[s,u,d],e[2]=s,e[3]=u,e[4]=d,e[5]=p,e[6]=m):(p=e[5],m=e[6]),I.useEffect(p,m);let h,_;e[7]!==n||e[8]!==f||e[9]!==l?(h=()=>{f&&l(n)},_=[l,n,f],e[7]=n,e[8]=f,e[9]=l,e[10]=h,e[11]=_):(h=e[10],_=e[11]),I.useEffect(h,_);const g=f&&!c;let y;return e[12]!==i||e[13]!==g||e[14]!==o?(y={dataFetcher:i,upsertFetcher:o,isLoading:g},e[12]=i,e[13]=g,e[14]=o,e[15]=y):y=e[15],y}const iBe=dr().shape({defaultPartition:We().required()});function Dt(t){const e=he.c(6),{animation:r,height:n,width:s,variant:i,sx:o}=t,l=r===void 0?"pulse":r,c=i===void 0?"text":i,u=c==="circular"&&!n?50:n,d=c==="circular"&&!s?50:s;let f;return e[0]!==l||e[1]!==o||e[2]!==u||e[3]!==d||e[4]!==c?(f=a.jsx(mb,{animation:l,height:u,width:d,variant:c,sx:o}),e[0]=l,e[1]=o,e[2]=u,e[3]=d,e[4]=c,e[5]=f):f=e[5],f}function oBe(t){const e=he.c(15),{color:r,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checkedIcon:f,checked:p,label:m}=t;let h;e[0]!==p||e[1]!==f||e[2]!==r||e[3]!==o||e[4]!==c||e[5]!==u||e[6]!==i||e[7]!==l||e[8]!==s||e[9]!==d?(h=a.jsx(fae,{color:r,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:p,checkedIcon:f}),e[0]=p,e[1]=f,e[2]=r,e[3]=o,e[4]=c,e[5]=u,e[6]=i,e[7]=l,e[8]=s,e[9]=d,e[10]=h):h=e[10];let _;return e[11]!==n||e[12]!==m||e[13]!==h?(_=a.jsx(Rv,{disabled:n,control:h,label:m}),e[11]=n,e[12]=m,e[13]=h,e[14]=_):_=e[14],_}function aBe(t){const e=he.c(15),{label:r,radioItems:n,row:s,defaultValue:i,value:o,onChange:l}=t;let c;e[0]!==n?(c=n===void 0?[]:n,e[0]=n,e[1]=c):c=e[1];const u=c,d=s===void 0?!0:s;if(!u||!u.length)return null;let f;e[2]!==r?(f=r&&a.jsx(mv,{component:"legend",children:r}),e[2]=r,e[3]=f):f=e[3];let p;e[4]!==u?(p=u.map(lBe),e[4]=u,e[5]=p):p=e[5];let m;e[6]!==i||e[7]!==l||e[8]!==d||e[9]!==p||e[10]!==o?(m=a.jsx(pae,{value:o,defaultValue:i,row:d,onChange:l,children:p}),e[6]=i,e[7]=l,e[8]=d,e[9]=p,e[10]=o,e[11]=m):m=e[11];let h;return e[12]!==f||e[13]!==m?(h=a.jsxs(hv,{component:"fieldset",children:[f,m]}),e[12]=f,e[13]=m,e[14]=h):h=e[14],h}function lBe(t,e){return a.jsx(oBe,{label:t.label,value:t.value,disabled:t.disabled},e)}function Nc(t){const e=he.c(10),{value:r,color:n,type:s,thickness:i,label:o,variant:l,size:c,customColor:u,labelVariant:d}=t,f=s===void 0?"linear":s,p=i===void 0?3.6:i,m=d===void 0?"caption":d;let h;return e[0]!==n||e[1]!==u||e[2]!==o||e[3]!==m||e[4]!==c||e[5]!==p||e[6]!==f||e[7]!==r||e[8]!==l?(h=f==="circular"?a.jsxs(gt,{sx:{position:"relative",display:"inline-flex"},children:[a.jsxs(gt,{sx:{position:"relative",display:"flex"},children:[a.jsx(mC,{sx:{color:cBe},variant:"determinate",thickness:p,value:100,size:c}),a.jsx(mC,{color:n,variant:l,thickness:p,value:r,size:c,sx:{position:"absolute",left:0,top:0,...u&&{color:u}}})]}),a.jsx(gt,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(cn,{variant:m,component:"div",color:"text.secondary",children:o})})]}):a.jsx(R8e,{variant:l,sx:{height:`${p}px`,...u&&{color:u}},color:n,value:r}),e[0]=n,e[1]=u,e[2]=o,e[3]=m,e[4]=c,e[5]=p,e[6]=f,e[7]=r,e[8]=l,e[9]=h):h=e[9],h}function cBe(t){return t.palette.grey[300]}const _s=t=>{const e=he.c(5),{children:r,loading:n}=t;let s;e[0]!==r||e[1]!==n?(s=n?a.jsx(gt,{sx:{display:"flex",justifyContent:"center",p:10},children:a.jsx(Nc,{type:"circular",color:"primary"})}):r,e[0]=r,e[1]=n,e[2]=s):s=e[2];let i;return e[3]!==s?(i=a.jsx(yv,{children:s}),e[3]=s,e[4]=i):i=e[4],i};function uBe(){const t=he.c(30),e=Ye(),{dialogClose:r,confirmationSimpleDialogOpen:n}=Jt();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={editLoadTo:`${$.urls.system}/boot-partitions`},t[0]=s):s=t[0];const{dataFetcher:i,upsertFetcher:o}=Ys(s),{data:l}=i,{data:c,state:u,submit:d}=o,{submit:f}=gr();let p,m;t[1]!==f||t[2]!==c?(p=()=>()=>{c&&!xt(c)&&f(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},m=[f,c],t[1]=f,t[2]=c,t[3]=p,t[4]=m):(p=t[3],m=t[4]),I.useEffect(p,m);let h;t[5]!==n||t[6]!==e||t[7]!==d?(h=C=>{n({title:e.formatMessage({id:"route.system.dialog.confirm_reboot.title"}),description:e.formatMessage({id:"route.system.dialog.confirm_reboot.description"}),onConfirm:()=>{d(C,{action:"/system/boot-partitions-update",method:"PUT",encType:"application/json"})},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[5]=n,t[6]=e,t[7]=d,t[8]=h):h=t[8];const _=h;let g;t[9]!==r?(g=()=>{r()},t[9]=r,t[10]=g):g=t[10];const y=g;if(!l){let C,k;t[11]===Symbol.for("react.memo_cache_sentinel")?(C={mt:1},k=a.jsx(Dt,{variant:"rounded"}),t[11]=C,t[12]=k):(C=t[11],k=t[12]);let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsxs(te,{direction:"row",children:[a.jsx(Dt,{variant:"circular",width:22,height:22}),a.jsx(Dt,{variant:"rounded",width:200})]}),t[13]=A):A=t[13];let P;t[14]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsxs(te,{spacing:3,children:[A,a.jsxs(te,{direction:"row",children:[a.jsx(Dt,{variant:"circular",width:22,height:22}),a.jsx(Dt,{variant:"rounded",width:200})]})]}),t[14]=P):P=t[14];let T;return t[15]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(_s,{children:a.jsxs(te,{spacing:4,sx:C,children:[k,P,a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Dt,{variant:"rounded",width:90,height:36}),a.jsx(Dt,{variant:"rounded",width:90,height:36})]})]})}),t[15]=T):T=t[15],T}let b;t[16]!==l.bootPartitions.default?(b={defaultPartition:l.bootPartitions.default},t[16]=l.bootPartitions.default,t[17]=b):b=t[17];let x;t[18]!==y||t[19]!==e||t[20]!==l.bootPartitions.default||t[21]!==l.bootPartitions.primary||t[22]!==l.bootPartitions.secondary||t[23]!==c||t[24]!==u?(x=C=>{const{dirty:k}=C;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(_e,{children:e.formatMessage({id:"route.system.dialog.boot_partitions.subtitle"})}),a.jsx(gt,{children:a.jsx(Ke,{name:"defaultPartition",children:A=>{const{field:P,form:T}=A,{setFieldValue:j}=T;return a.jsx(aBe,{row:!1,radioItems:[{value:"primary",label:`${l.bootPartitions.primary} ${l.bootPartitions.default==="primary"?`(${e.formatMessage({id:"common.current"})})`:""}`},{value:"secondary",label:l.bootPartitions.secondary?`${l.bootPartitions.secondary} ${l.bootPartitions.default==="secondary"?`(${e.formatMessage({id:"common.current"})})`:""}`:e.formatMessage({id:"common.empty"}),disabled:!l.bootPartitions.secondary}],value:P.value,onChange:(R,D)=>{j(P.name,D)}})}})}),a.jsx(Xr,{data:c}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"common.form.cancel"}),disabled:u!=="idle",onClick:y}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.form.submit"}),disabled:!k,loading:u!=="idle"})]})]})})},t[18]=y,t[19]=e,t[20]=l.bootPartitions.default,t[21]=l.bootPartitions.primary,t[22]=l.bootPartitions.secondary,t[23]=c,t[24]=u,t[25]=x):x=t[25];let w;return t[26]!==_||t[27]!==b||t[28]!==x?(w=a.jsx(_s,{children:a.jsx(Wr,{validationSchema:iBe,initialValues:b,onSubmit:_,children:x})}),t[26]=_,t[27]=b,t[28]=x,t[29]=w):w=t[29],w}function dBe(){const t=he.c(35),e=ys(),r=Ye(),{confirmationDialogOpen:n,dialogOpen:s}=Jt(),i=Np(),{submit:o}=gr();i?.services;let l;t[0]!==i?.services?(l=i?.services??[],t[0]=i?.services,t[1]=l):l=t[1];const c=l;let u;t[2]!==i?.alerts?(u=()=>i?.alerts??[],t[2]=i?.alerts,t[3]=u):u=t[3],i?.alerts;let d;t[4]!==u?(d=u(),t[4]=u,t[5]=d):d=t[5];const f=d;let p;t[6]!==c?(p=nBe({services:c}),t[6]=c,t[7]=p):p=t[7];const m=p;let h;t[8]!==m?(h=kae(m),t[8]=m,t[9]=h):h=t[9];const _=h,g=f?.length;let y;t[10]!==e?(y=D=>{D.external?window.open(D.value,D._target||"_blank"):e(D.value)},t[10]=e,t[11]=y):y=t[11];const b=y;let x;t[12]!==n||t[13]!==r||t[14]!==o?(x=()=>{n({title:r.formatMessage({id:"route.system.dialog.restart.title"}),alertMessage:r.formatMessage({id:"route.system.dialog.restart.text"}),onConfirm:()=>{o(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},severity:"warning"})},t[12]=n,t[13]=r,t[14]=o,t[15]=x):x=t[15];const w=x;let C;t[16]!==s||t[17]!==r?(C=()=>{s({title:r.formatMessage({id:"route.system.dialog.boot_partitions.title"}),content:pBe})},t[16]=s,t[17]=r,t[18]=C):C=t[18];const k=C;let A;t[19]!==k||t[20]!==b||t[21]!==w?(A=D=>{e:switch(D.id){case"restart":{w();break e}case"boot-partition":{k();break e}default:b(D)}},t[19]=k,t[20]=b,t[21]=w,t[22]=A):A=t[22];const P=A;let T;if(t[23]!==_||t[24]!==g||t[25]!==P||t[26]!==b){let D;t[28]!==g||t[29]!==P||t[30]!==b?(D=O=>a.jsx(Mn,{opaque:!0,disableFocusListener:!0,enterTouchDelay:0,title:O.subItems?a.jsxs(pv,{children:[a.jsx(_e,{color:"text.secondary",sx:{px:2,pb:1,pt:.5},children:O.label}),a.jsx(gt,{className:"tooltip-items",children:O.subItems.map((N,F)=>{const{label:U,value:z,disabled:H,icon:W}=N;return a.jsx(En,{disabled:H,onClick:()=>P(N),divider:O.subItems&&F===O.subItems.findIndex(fBe)-1,icon:W,children:U},`${z}-${F}`)})})]}):O.label,children:a.jsx(gt,{children:a.jsx(Iv,{badgeContent:O.value===$.urls.monitoringAlerts?g:void 0,color:"error",children:a.jsx(Zr,{size:"small",sx:{fontSize:"20px"},onClick:()=>{O.subItems||b(O)},children:O.icon})})})},O.value),t[28]=g,t[29]=P,t[30]=b,t[31]=D):D=t[31],T=_.map(D),t[23]=_,t[24]=g,t[25]=P,t[26]=b,t[27]=T}else T=t[27];let j;t[32]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(wae,{}),t[32]=j):j=t[32];let R;return t[33]!==T?(R=a.jsxs(te,{direction:"row",spacing:1,nowrap:!0,align:"center",children:[T,j]}),t[33]=T,t[34]=R):R=t[34],R}function fBe(t){return t.id==="restart"}function pBe(){return a.jsx(uBe,{})}function oN(t){const e=Ji.getSiteNode();return!!t.unreachable_peers.find(n=>{if(typeof n=="string"){const s=n.split("@")[1]??n;return e===s}else return e===n.api_address})}function Dv(t){const e=he.c(24),{to:r,initialData:n,search:s}=t,i=gr();let o,l,c;e[0]!==i?({load:l,data:o,...c}=i,e[0]=i,e[1]=o,e[2]=l,e[3]=c):(o=e[1],l=e[2],c=e[3]);const[u,d]=I.useState(n),f=I.useRef(null);let p;e[4]!==l||e[5]!==s||e[6]!==r?(p=()=>{const A=new URLSearchParams(s);A.append("polling","true"),l(`${r}?${A}`)},e[4]=l,e[5]=s,e[6]=r,e[7]=p):p=e[7];const m=p;let h;e[8]!==m?(h=()=>{f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>{m()},$.polling.default)},e[8]=m,e[9]=h):h=e[9];const _=h;let g,y;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=()=>()=>{f.current&&window.clearTimeout(f.current)},y=[],e[10]=g,e[11]=y):(g=e[10],y=e[11]),I.useEffect(g,y);let b,x;e[12]!==o||e[13]!==_?(b=()=>{if(o&&typeof o=="object"&&"__polling_error"in o)return _();o&&d(o),_()},x=[o,_],e[12]=o,e[13]=_,e[14]=b,e[15]=x):(b=e[14],x=e[15]),I.useEffect(b,x);let w,C;e[16]!==m||e[17]!==n?(w=()=>{n||m(),d(n)},C=[m,n],e[16]=m,e[17]=n,e[18]=w,e[19]=C):(w=e[18],C=e[19]),I.useEffect(w,C);let k;return e[20]!==u||e[21]!==l||e[22]!==c?(k={load:l,data:u,...c},e[20]=u,e[21]=l,e[22]=c,e[23]=k):k=e[23],k}function Gr(t){const e=he.c(9);let r;e[0]!==t?(r=t===void 0?{useSearchParams:!0}:t,e[0]=t,e[1]=r):r=e[1];const{useSearchParams:n}=r,s=n===void 0?!0:n,i=zn(),o=Lp("."),{search:l}=to();let c;e[2]!==l||e[3]!==s?(c=s&&{search:l},e[2]=l,e[3]=s,e[4]=c):c=e[4];let u;e[5]!==i||e[6]!==o.pathname||e[7]!==c?(u={to:o.pathname,initialData:i,...c},e[5]=i,e[6]=o.pathname,e[7]=c,e[8]=u):u=e[8];const{data:d}=Dv(u);return d}function ms(t){const e=he.c(13),{id:r,label:n,color:s,variant:i,onDelete:o,size:l,disabled:c,sx:u}=t;let d;e[0]!==u?(d={flexShrink:0,width:"fit-content",...u},e[0]=u,e[1]=d):d=e[1];let f;e[2]!==r||e[3]!==o?(f=o&&r?()=>o(r):void 0,e[2]=r,e[3]=o,e[4]=f):f=e[4];let p;return e[5]!==s||e[6]!==c||e[7]!==n||e[8]!==l||e[9]!==d||e[10]!==f||e[11]!==i?(p=a.jsx(cL,{color:s,sx:d,label:n,variant:i,onDelete:f,size:l,disabled:c}),e[5]=s,e[6]=c,e[7]=n,e[8]=l,e[9]=d,e[10]=f,e[11]=i,e[12]=p):p=e[12],p}function mBe(){const t=he.c(39);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={to:$.urls.siteLoader},t[0]=e):e=t[0];const{data:r}=Dv(e),{popoverOpen:n,popoverClose:s}=Jt(),i=Ye(),{submit:o,state:l}=gr();let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=Ji.getSiteNode(),t[1]=c):c=t[1];const[u,d]=I.useState(c);let f;t[2]!==s||t[3]!==o?(f=F=>{if(!F.api_address)return;const{api_address:U}=F;d(U),o({siteNodeAddress:U},{method:"POST",encType:"application/json",action:"/"}),s()},t[2]=s,t[3]=o,t[4]=f):f=t[4];const p=f;let m;e:{if(!r){let U;t[5]===Symbol.for("react.memo_cache_sentinel")?(U=[],t[5]=U):U=t[5],m=U;break e}let F;t[6]!==r.current_node||t[7]!==r.peers||t[8]!==r.unreachable_peers?(F=[...Ni.sortBy([r.current_node,...r.peers],vBe).map(_Be),...r.unreachable_peers.map(gBe)],t[6]=r.current_node,t[7]=r.peers,t[8]=r.unreachable_peers,t[9]=F):F=t[9],m=F}const h=m;let _;t[10]!==u||t[11]!==h?(_=h.find(F=>F.api_address===u),t[10]=u,t[11]=h,t[12]=_):_=t[12];const g=_;let y,b;t[13]!==r?(y=()=>{d(F=>!F&&r?r.current_node.api_address:F)},b=[r],t[13]=r,t[14]=y,t[15]=b):(y=t[14],b=t[15]),I.useEffect(y,b);let x;t[16]!==p||t[17]!==i||t[18]!==n||t[19]!==u||t[20]!==h?(x=F=>{n({anchorEl:F.currentTarget,anchorOrigin:{horizontal:"left",vertical:"bottom"},disableGutters:!0,content:()=>a.jsx(pv,{children:h.map(U=>{const z=u===U.api_address;return a.jsx(En,{onClick:()=>{p(U)},disabled:z||U.unreachable,selected:z,sx:{opacity:U.unreachable?"0.8 !important":"1 !important"},children:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",justify:"space-between",fullWidth:!0,children:[a.jsxs(te,{direction:"row",align:"center",children:[U.unreachable?a.jsx(te,{align:"center",justify:"center",sx:{color:"error.main"},children:a.jsx(ge.StatusErrorSmall,{size:14})}):a.jsx(te,{align:"center",justify:"center",sx:{color:"success.main"},children:a.jsx(ge.StatusSuccessSmall,{size:14})}),a.jsx(te,{align:"center",children:a.jsx(_e,{children:U.name})})]}),a.jsx(te,{direction:"row",align:"center",spacing:.5,sx:{ml:4},children:U.unreachable&&a.jsx(ms,{label:i.formatMessage({id:"cluster.status.unreachable_node"}),size:"small"})})]})},`${U.name}-${U.api_address}`)})})})},t[16]=p,t[17]=i,t[18]=n,t[19]=u,t[20]=h,t[21]=x):x=t[21];const w=x;let C;t[22]!==h?(C=h.filter(hBe),t[22]=h,t[23]=C):C=t[23];const k=C.length;if(h.length<2||!r)return null;const A=g?.name;let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P={textTransform:"none"},t[24]=P):P=t[24];let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(ge.DownArrow,{size:14}),t[25]=T):T=t[25];let j;t[26]!==i||t[27]!==k?(j=k>0&&a.jsx(Mn,{title:i.formatMessage({id:k>1?"cluster.status.unreachable_nodes_count":"cluster.status.unreachable_node_count"},{count:k}),children:a.jsx(gt,{sx:{color:"warning.main",mt:1},children:a.jsx(ge.StatusWarning,{size:"20"})})}),t[26]=i,t[27]=k,t[28]=j):j=t[28];let R;t[29]!==j?(R=a.jsxs(te,{direction:"row",align:"center",spacing:1.5,children:[T,j]}),t[29]=j,t[30]=R):R=t[30];let D;t[31]!==r?(D=a.jsx(a.Fragment,{children:oN(r)?a.jsx(gt,{sx:{color:"error.main"},children:a.jsx(ge.StatusErrorSmall,{size:14})}):a.jsx(gt,{sx:{color:"success.main"},children:a.jsx(ge.StatusSuccessSmall,{size:14})})}),t[31]=r,t[32]=D):D=t[32];const O=l!=="idle";let N;return t[33]!==w||t[34]!==R||t[35]!==D||t[36]!==O||t[37]!==A?(N=a.jsx(Ze,{size:"medium",text:A,variant:"text",sx:P,endIcon:R,startIcon:D,onClick:w,disabled:O}),t[33]=w,t[34]=R,t[35]=D,t[36]=O,t[37]=A,t[38]=N):N=t[38],N}function hBe(t){return t.unreachable}function gBe(t){return typeof t=="string"?{name:"",api_address:t.split("@")[1]??t,unreachable:!0}:{name:t.name,api_address:t.api_address,unreachable:!0}}function _Be(t){return{name:t.name,api_address:t.api_address,unreachable:!1}}function vBe(t){return t.api_address}function Pae(t){const e=he.c(35),{info:r,variant:n,profileCard:s}=t,i=Ye(),o=As(),l=aC(o.breakpoints.down($.appBarMobileBreakpoint))?"5px 0 0 0":"",c=aC(o.breakpoints.down($.appBarMobileBreakpoint))?"100%":"auto",{menuClose:u}=Jt(),d=ys();let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=Ih(),e[0]=f):f=e[0];const p=f;let m;e[1]!==i?(m=i.formatMessage({id:"user.menu.profile"}),e[1]=i,e[2]=m):m=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Profile,{}),e[3]=h):h=e[3];let _;e[4]!==u||e[5]!==d?(_=()=>{u(),d($.urls.profile)},e[4]=u,e[5]=d,e[6]=_):_=e[6];let g;e[7]!==m||e[8]!==_?(g={label:m,value:"profile",icon:h,onClick:_},e[7]=m,e[8]=_,e[9]=g):g=e[9];let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ge.Logout,{}),e[10]=y):y=e[10];let b;e[11]!==u||e[12]!==d?(b={label:"Logout",value:"logout",icon:y,onClick:()=>{u(),d($.urls.logout,{replace:!0})}},e[11]=u,e[12]=d,e[13]=b):b=e[13];let x;e[14]!==g||e[15]!==b?(x=[g,b],e[14]=g,e[15]=b,e[16]=x):x=e[16];const w=x;let C;e[17]!==n?(C=n!=="simpleLayout"?a.jsx(mBe,{}):void 0,e[17]=n,e[18]=C):C=e[18];let k;e[19]!==l||e[20]!==c?(k={margin:l,width:c},e[19]=l,e[20]=c,e[21]=k):k=e[21];let A;e[22]!==n?(A=n==="simpleLayout"?a.jsx(wae,{}):a.jsx(dBe,{}),e[22]=n,e[23]=A):A=e[23];let P;e[24]!==s||e[25]!==w?(P=s&&a.jsx(CUe,{fullname:p?.fullname||"",menuItems:w,description:p?.sub?[p?.sub]:[""]}),e[24]=s,e[25]=w,e[26]=P):P=e[26];let T;e[27]!==k||e[28]!==A||e[29]!==P?(T=a.jsxs(te,{direction:"row",align:"center",spacing:1,sx:k,justify:"between",children:[A,P]}),e[27]=k,e[28]=A,e[29]=P,e[30]=T):T=e[30];let j;return e[31]!==r||e[32]!==T||e[33]!==C?(j=a.jsx(PUe,{info:r,siteSelector:C,children:T}),e[31]=r,e[32]=T,e[33]=C,e[34]=j):j=e[34],j}const Ti=t=>{const e=he.c(2),{children:r}=t;let n;return e[0]!==r?(n=a.jsx(vv,{children:r}),e[0]=r,e[1]=n):n=e[1],n};function aN(t){const e=he.c(20),{title:r,children:n,closeOnBackdropClick:s,closeOnEsc:i,onClose:o,fullScreen:l,maxWidth:c,open:u,"data-testid":d,disableAutoFocus:f}=t,p=i===void 0?!0:i;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={xs:"250px",sm:"500px"},e[0]=m):m=e[0];let h;e[1]!==l?(h=l&&{height:"calc(100vh - 32px)",width:"calc(100% - 32px)",maxWidth:"1400px"},e[1]=l,e[2]=h):h=e[2];let _;e[3]!==h?(_={".MuiDialog-paper":{m:2,minWidth:m,maxHeight:"calc(100vh - 32px)",boxShadow:"none",...h},my:0},e[3]=h,e[4]=_):_=e[4];const g=_;let y;e[5]!==s||e[6]!==p||e[7]!==o?(y=(C,k)=>{k==="backdropClick"&&!s||k==="escapeKeyDown"&&!p||o&&o(C,k)},e[5]=s,e[6]=p,e[7]=o,e[8]=y):y=e[8];const b=y;let x;e[9]!==r?(x=r&&a.jsx(JL,{children:r}),e[9]=r,e[10]=x):x=e[10];let w;return e[11]!==n||e[12]!==d||e[13]!==f||e[14]!==b||e[15]!==c||e[16]!==u||e[17]!==x||e[18]!==g?(w=a.jsxs(Xne,{open:u,onClose:b,sx:g,maxWidth:c,"data-testid":d,disableAutoFocus:f,children:[x,n]}),e[11]=n,e[12]=d,e[13]=f,e[14]=b,e[15]=c,e[16]=u,e[17]=x,e[18]=g,e[19]=w):w=e[19],w}function yBe(t){const e=he.c(44),{severity:r,onConfirm:n,onCancel:s,title:i,description:o,alertMessage:l,content:c,dataTestid:u,cancelButtonText:d,continueButtonText:f}=t,p=d===void 0?"Cancel":d,m=f===void 0?"Continue":f,{confirmationDialogClose:h}=Jt(),_=Nr(SBe),g=Nr(xBe),y=Nr(bBe),[b,x]=I.useState(!1),w=I.useRef(null);let C,k;e[0]!==_||e[1]!==y||e[2]!==g?(C=()=>{_&&y&&(x(!0),w.current&&(window.clearTimeout(w.current),w.current=null)),_&&!y&&(x(!1),w.current=window.setTimeout(()=>{g(null)},1e3))},k=[_,y,g],e[0]=_,e[1]=y,e[2]=g,e[3]=C,e[4]=k):(C=e[3],k=e[4]),I.useEffect(C,k);let A;e[5]!==h||e[6]!==n?(A=()=>{n(),h()},e[5]=h,e[6]=n,e[7]=A):A=e[7];const P=A;let T;e[8]!==h||e[9]!==s?(T=()=>{s&&s(),h()},e[8]=h,e[9]=s,e[10]=T):T=e[10];const j=T;let R;e[11]!==r?(R=r==="danger"&&{color:"error.main"},e[11]=r,e[12]=R):R=e[12];let D;e[13]!==R?(D={...R,fontWeight:"600"},e[13]=R,e[14]=D):D=e[14];let O;e[15]!==i?(O=i.toLocaleUpperCase(),e[15]=i,e[16]=O):O=e[16];let N;e[17]!==D||e[18]!==O?(N=a.jsx(JL,{sx:D,children:O}),e[17]=D,e[18]=O,e[19]=N):N=e[19];let F;e[20]!==o?(F=a.jsx(_e,{type:"body1",lineHeight:3,children:o}),e[20]=o,e[21]=F):F=e[21];const U=r==="danger"?"error":r||"info";let z;e[22]!==l||e[23]!==U?(z=a.jsx(Lr,{severity:U,message:l}),e[22]=l,e[23]=U,e[24]=z):z=e[24];let H;e[25]!==c||e[26]!==F||e[27]!==z?(H=a.jsxs(_s,{children:[F,z,c]}),e[25]=c,e[26]=F,e[27]=z,e[28]=H):H=e[28];let W;e[29]!==p||e[30]!==j?(W=a.jsx(Ze,{variant:"outlined",text:p,onClick:j}),e[29]=p,e[30]=j,e[31]=W):W=e[31];let K;e[32]!==m||e[33]!==P?(K=a.jsx(Ze,{text:m,onClick:P}),e[32]=m,e[33]=P,e[34]=K):K=e[34];let q;e[35]!==W||e[36]!==K?(q=a.jsxs(Ti,{children:[W,K]}),e[35]=W,e[36]=K,e[37]=q):q=e[37];let X;return e[38]!==u||e[39]!==b||e[40]!==N||e[41]!==H||e[42]!==q?(X=a.jsxs(aN,{open:b,"data-testid":u,children:[N,H,q]}),e[38]=u,e[39]=b,e[40]=N,e[41]=H,e[42]=q,e[43]=X):X=e[43],X}function bBe(t){return t.confirmationDialogOpen}function xBe(t){return t.setConfirmationDialog}function SBe(t){return t.confirmationDialogState}function wBe(t){const e=he.c(29),{title:r,cancelText:n,confirmText:s,description:i,onConfirm:o,onCancel:l}=t,c=r===void 0?"Do you confirm?":r,u=n===void 0?"Cancel":n,d=s===void 0?"Confirm":s,{confirmationSimpleDialogClose:f}=Jt(),p=Nr(kBe),m=Nr(ABe),h=Nr(CBe),[_,g]=I.useState(!1),y=I.useRef(null);let b,x;e[0]!==p||e[1]!==h||e[2]!==m?(b=()=>{p&&h&&(g(!0),y.current&&(window.clearTimeout(y.current),y.current=null)),p&&!h&&(g(!1),y.current=window.setTimeout(()=>{m(null)},1e3))},x=[p,h,m],e[0]=p,e[1]=h,e[2]=m,e[3]=b,e[4]=x):(b=e[3],x=e[4]),I.useEffect(b,x);let w;e[5]!==f||e[6]!==o?(w=()=>{o(),f()},e[5]=f,e[6]=o,e[7]=w):w=e[7];const C=w;let k;e[8]!==f||e[9]!==l?(k=()=>{l&&l(),f()},e[8]=f,e[9]=l,e[10]=k):k=e[10];const A=k;let P;e[11]!==c?(P=a.jsx(JL,{children:c}),e[11]=c,e[12]=P):P=e[12];let T;e[13]!==i?(T=i&&a.jsx(_s,{children:a.jsx(_e,{children:i})}),e[13]=i,e[14]=T):T=e[14];let j;e[15]!==u||e[16]!==A?(j=a.jsx(Ze,{variant:"outlined",text:u,onClick:A}),e[15]=u,e[16]=A,e[17]=j):j=e[17];let R;e[18]!==d||e[19]!==C?(R=a.jsx(Ze,{text:d,onClick:C}),e[18]=d,e[19]=C,e[20]=R):R=e[20];let D;e[21]!==j||e[22]!==R?(D=a.jsxs(Ti,{children:[j,R]}),e[21]=j,e[22]=R,e[23]=D):D=e[23];let O;return e[24]!==_||e[25]!==D||e[26]!==P||e[27]!==T?(O=a.jsxs(aN,{open:_,"data-testid":"confirmation-simple-dialog",children:[P,T,D]}),e[24]=_,e[25]=D,e[26]=P,e[27]=T,e[28]=O):O=e[28],O}function CBe(t){return t.confirmationSimpleDialogOpen}function ABe(t){return t.setConfirmationSimpleDialog}function kBe(t){return t.confirmationSimpleDialogState}function jae(t){const e=he.c(39);let r,n,s,i,o,l;e[0]!==t?({id:l,children:r,open:s,preventClose:i,closeIcon:n,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);const c=l===void 0?$6:l,u=Nr(jBe),d=Nr(PBe),f=Nr(MBe),[p,m]=I.useState(!1),h=I.useRef(null),{dialogClose:_}=Jt();let g;e[7]!==u||e[8]!==c?(g=u.includes(c),e[7]=u,e[8]=c,e[9]=g):g=e[9];const y=g;let b;if(e[10]!==d||e[11]!==c){let O;e[13]!==c?(O=N=>N.id===c,e[13]=c,e[14]=O):O=e[14],b=d.find(O),e[10]=d,e[11]=c,e[12]=b}else b=e[12];const x=b;let w,C;e[15]!==x||e[16]!==c||e[17]!==y||e[18]!==s||e[19]!==f?(w=()=>{typeof s<"u"||(x&&y&&(m(!0),h.current&&(window.clearTimeout(h.current),h.current=null)),x&&!y&&(m(!1),h.current=window.setTimeout(()=>{f(c)},1e3)))},C=[x,c,y,s,f],e[15]=x,e[16]=c,e[17]=y,e[18]=s,e[19]=f,e[20]=w,e[21]=C):(w=e[20],C=e[21]),I.useEffect(w,C);let k;e[22]!==_||e[23]!==c||e[24]!==i?(k=(O,N)=>{i&&i(O,N)||_(c)},e[22]=_,e[23]=c,e[24]=i,e[25]=k):k=e[25];const A=k;let P;e[26]!==_||e[27]!==c||e[28]!==i?(P=O=>{i&&i(O)||_(c)},e[26]=_,e[27]=c,e[28]=i,e[29]=P):P=e[29];const T=P,j=!!(p||s);let R;e[30]!==n||e[31]!==T?(R=n&&a.jsx(Zr,{onClick:T,sx:{position:"absolute",right:"16px",top:"8px",zIndex:1e3},children:a.jsx(ge.Close,{})}),e[30]=n,e[31]=T,e[32]=R):R=e[32];let D;return e[33]!==r||e[34]!==A||e[35]!==o||e[36]!==j||e[37]!==R?(D=a.jsxs(aN,{...o,open:j,onClose:A,children:[R,r]}),e[33]=r,e[34]=A,e[35]=o,e[36]=j,e[37]=R,e[38]=D):D=e[38],D}function MBe(t){return t.setDialogsClose}function PBe(t){return t.dialogs}function jBe(t){return t.dialogsOpen}function TBe(t){const e=he.c(21),{onClose:r,children:n,title:s,variant:i,width:o,open:l}=t,c=i===void 0?"temporary":i,u=o===void 0?300:o,d=Nr(IBe),f=Nr(RBe),p=Nr(EBe),[m,h]=I.useState(!1),_=I.useRef(null);let g;e[0]!==r?(g=()=>{r&&r({},"backdropClick")},e[0]=r,e[1]=g):g=e[1];const y=g;let b,x;e[2]!==d||e[3]!==p||e[4]!==f?(b=()=>{d&&p&&(h(!0),_.current&&(window.clearTimeout(_.current),_.current=null)),d&&!p&&(h(!1),_.current=window.setTimeout(()=>{f(null)},1e3))},x=[d,p,f],e[2]=d,e[3]=p,e[4]=f,e[5]=b,e[6]=x):(b=e[5],x=e[6]),I.useEffect(b,x);const w=!!(m||l);let C;e[7]!==u?(C={height:"100vh",position:"relative",width:u},e[7]=u,e[8]=C):C=e[8];let k;e[9]!==y||e[10]!==s?(k=s&&a.jsxs(te,{sx:{mb:2,py:2,px:2,pb:0},spacing:2,children:[a.jsxs(te,{direction:"row",align:"center",spacing:2,nowrap:!0,children:[a.jsx(_e,{type:"h6",sx:{flex:1},children:s}),a.jsx(Zr,{size:"small",onClick:y,children:a.jsx(ge.Close,{})})]}),a.jsx(Oc,{})]}),e[9]=y,e[10]=s,e[11]=k):k=e[11];let A;e[12]!==n||e[13]!==C||e[14]!==k?(A=a.jsxs(te,{sx:C,nowrap:!0,children:[k,n]}),e[12]=n,e[13]=C,e[14]=k,e[15]=A):A=e[15];let P;return e[16]!==r||e[17]!==w||e[18]!==A||e[19]!==c?(P=a.jsx(aae,{variant:c,anchor:"right",onClose:r,open:w,children:A}),e[16]=r,e[17]=w,e[18]=A,e[19]=c,e[20]=P):P=e[20],P}function EBe(t){return t.drawerOpen}function RBe(t){return t.setDrawerState}function IBe(t){return t.drawerState}function DBe(t){const e=he.c(26);let r,n,s,i,o,l;e[0]!==t?({anchorEl:r,onClose:s,children:n,anchorOrigin:l,open:i,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);let c;e[7]!==l?(c=l===void 0?{vertical:"bottom",horizontal:"left"}:l,e[7]=l,e[8]=c):c=e[8];const u=c,d=Nr(LBe),f=Nr(OBe),p=Nr($Be),[m,h]=I.useState(!1),_=I.useRef(null);let g,y;e[9]!==p||e[10]!==d||e[11]!==i||e[12]!==f?(g=()=>{typeof i<"u"||(d&&p&&(h(!0),_.current&&(window.clearTimeout(_.current),_.current=null)),d&&!p&&(h(!1),_.current=window.setTimeout(()=>{f(null)},1e3)))},y=[p,d,i,f],e[9]=p,e[10]=d,e[11]=i,e[12]=f,e[13]=g,e[14]=y):(g=e[13],y=e[14]),I.useEffect(g,y);const b=!!(m||i);let x;e[15]!==u.horizontal||e[16]!==o.transformOrigin?(x={vertical:"top",horizontal:u.horizontal,...o.transformOrigin},e[15]=u.horizontal,e[16]=o.transformOrigin,e[17]=x):x=e[17];let w;return e[18]!==r||e[19]!==u||e[20]!==n||e[21]!==s||e[22]!==o||e[23]!==b||e[24]!==x?(w=a.jsx(one,{anchorEl:r,open:b,onClose:s,anchorOrigin:u,transformOrigin:x,...o,children:n}),e[18]=r,e[19]=u,e[20]=n,e[21]=s,e[22]=o,e[23]=b,e[24]=x,e[25]=w):w=e[25],w}function $Be(t){return t.menuOpen}function OBe(t){return t.setMenuState}function LBe(t){return t.menuState}function NBe(t){const e=he.c(23),{anchorOrigin:r,transformOrigin:n,children:s,onClose:i,anchorEl:o,disableGutters:l,overflowVisible:c,open:u}=t;let d;e[0]!==r?(d=r===void 0?{vertical:"bottom",horizontal:"left"}:r,e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=n===void 0?{vertical:"top",horizontal:"left"}:n,e[2]=n,e[3]=p):p=e[3];const m=p,h=Nr(BBe),_=Nr(UBe),g=Nr(FBe),[y,b]=I.useState(!1),x=I.useRef(null);let w,C;e[4]!==g||e[5]!==u||e[6]!==h||e[7]!==_?(w=()=>{typeof u<"u"||(h&&g&&(b(!0),x.current&&(window.clearTimeout(x.current),x.current=null)),h&&!g&&(b(!1),x.current=window.setTimeout(()=>{_(null)},1e3)))},C=[g,u,h,_],e[4]=g,e[5]=u,e[6]=h,e[7]=_,e[8]=w,e[9]=C):(w=e[8],C=e[9]),I.useEffect(w,C);const k=!!(y||u),A=l?0:2,P=c?"visible":"auto";let T;e[10]!==A||e[11]!==P?(T={p:A,overflow:P},e[10]=A,e[11]=P,e[12]=T):T=e[12];let j;e[13]!==s||e[14]!==T?(j=a.jsx(gt,{sx:T,children:s}),e[13]=s,e[14]=T,e[15]=j):j=e[15];let R;return e[16]!==o||e[17]!==f||e[18]!==i||e[19]!==j||e[20]!==k||e[21]!==m?(R=a.jsx(ine,{open:k,anchorEl:o,anchorOrigin:f,transformOrigin:m,onClose:i,children:j}),e[16]=o,e[17]=f,e[18]=i,e[19]=j,e[20]=k,e[21]=m,e[22]=R):R=e[22],R}function FBe(t){return t.popoverOpen}function UBe(t){return t.setPopoverState}function BBe(t){return t.popoverState}function zBe(t){const e=he.c(22),{onClick:r,message:n,severity:s,title:i,onClose:o,noIcon:l,action:c,anchorOrigin:u}=t;let d;e[0]!==u?(d=u===void 0?{vertical:"top",horizontal:"right"}:u,e[0]=u,e[1]=d):d=e[1];const f=d,p=Nr(HBe),m=Nr(VBe),h=Nr(qBe),[_,g]=I.useState(!1),y=I.useRef(null);let b,x;e[2]!==h||e[3]!==m||e[4]!==p?(b=()=>{p&&h&&(g(!0),y.current&&(window.clearTimeout(y.current),y.current=null)),p&&!h&&(g(!1),y.current=window.setTimeout(()=>{m(null)},1e3))},x=[h,p,m],e[2]=h,e[3]=m,e[4]=p,e[5]=b,e[6]=x):(b=e[5],x=e[6]),I.useEffect(b,x);let w;e[7]!==o?(w=A=>{o&&o(A,"clickaway")},e[7]=o,e[8]=w):w=e[8];let C;e[9]!==c||e[10]!==n||e[11]!==l||e[12]!==s||e[13]!==w||e[14]!==i?(C=a.jsx(Vte,{children:a.jsx(Lr,{message:n,onClose:w,severity:s,title:i,action:c,noIcon:l})}),e[9]=c,e[10]=n,e[11]=l,e[12]=s,e[13]=w,e[14]=i,e[15]=C):C=e[15];let k;return e[16]!==f||e[17]!==_||e[18]!==r||e[19]!==o||e[20]!==C?(k=a.jsx(D9e,{autoHideDuration:5e3,open:_,onClick:r,anchorOrigin:f,onClose:o,children:C}),e[16]=f,e[17]=_,e[18]=r,e[19]=o,e[20]=C,e[21]=k):k=e[21],k}function qBe(t){return t.snackbarOpen}function VBe(t){return t.setSnackbarState}function HBe(t){return t.snackbarState}function Tae(){const t=he.c(31),e=Nr(sze),r=Nr(nze),n=Nr(rze),s=Nr(tze),i=Nr(eze),o=Nr(JBe),l=Nr(XBe),c=Nr(ZBe),u=Nr(QBe),d=Nr(KBe),f=Nr(YBe),p=Nr(WBe),m=r?.content,h=i?.content;let _;if(t[0]!==e||t[1]!==p){let A;t[3]!==p?(A=(P,T)=>{if(!P)return null;const j=P.content,R=P.id||"";return a.jsx(jae,{id:R,...P,children:j&&a.jsx(j,{dialogClose:()=>{p(R)}})},`${R}-${T}`)},t[3]=p,t[4]=A):A=t[4],_=e.map(A),t[0]=e,t[1]=p,t[2]=_}else _=t[2];let g;t[5]!==d||t[6]!==s?(g=s&&a.jsx(zBe,{...s,onClose:(A,P)=>{s.onClose&&s.onClose(A,P),d()}}),t[5]=d,t[6]=s,t[7]=g):g=t[7];let y;t[8]!==m||t[9]!==r||t[10]!==c?(y=r&&a.jsx(TBe,{onClose:()=>{c(),r.onClose&&r.onClose()},title:r?.title,width:r?.width,variant:r?.variant,children:r?.content&&a.jsx(m,{})}),t[8]=m,t[9]=r,t[10]=c,t[11]=y):y=t[11];let b;t[12]!==n||t[13]!==u?(b=n&&a.jsx(DBe,{anchorEl:n?.anchorEl,anchorOrigin:n?.anchorOrigin,onClose:u,children:n?.items.map(GBe)}),t[12]=n,t[13]=u,t[14]=b):b=t[14];let x;t[15]!==h||t[16]!==i||t[17]!==f?(x=i&&a.jsx(NBe,{anchorEl:i?.anchorEl,onClose:f,anchorOrigin:i?.anchorOrigin,disableGutters:i?.disableGutters,children:i?.content&&a.jsx(h,{})}),t[15]=h,t[16]=i,t[17]=f,t[18]=x):x=t[18];let w;t[19]!==o?(w=o&&a.jsx(yBe,{...o}),t[19]=o,t[20]=w):w=t[20];let C;t[21]!==l?(C=l&&a.jsx(wBe,{title:l.title,description:l.description,confirmText:l.confirmText,cancelText:l.cancelText,onCancel:l.onCancel,onConfirm:l.onConfirm}),t[21]=l,t[22]=C):C=t[22];let k;return t[23]!==_||t[24]!==g||t[25]!==y||t[26]!==b||t[27]!==x||t[28]!==w||t[29]!==C?(k=a.jsxs(a.Fragment,{children:[_,g,y,b,x,w,C]}),t[23]=_,t[24]=g,t[25]=y,t[26]=b,t[27]=x,t[28]=w,t[29]=C,t[30]=k):k=t[30],k}function GBe(t,e){return a.jsx(En,{...t,children:t.label},`${t.value}-${e}`)}function WBe(t){return t.setDialogsClose}function YBe(t){return t.setPopoverClose}function KBe(t){return t.setSnackbarClose}function QBe(t){return t.setMenuClose}function ZBe(t){return t.setDrawerClose}function XBe(t){return t.confirmationSimpleDialogState}function JBe(t){return t.confirmationDialogState}function eze(t){return t.popoverState}function tze(t){return t.snackbarState}function rze(t){return t.menuState}function nze(t){return t.drawerState}function sze(t){return t.dialogs}const ize=()=>{const t=he.c(30),e=Ye(),r=to(),n=Np();n?.services;let s;t[0]!==n?.services?(s=n?.services??[],t[0]=n?.services,t[1]=s):s=t[1];const i=s;let o;t[2]!==n?.info?.version?(o=()=>n?.info?.version??"-",t[2]=n?.info?.version,t[3]=o):o=t[3],n?.info?.version;let l;t[4]!==o?(l=o(),t[4]=o,t[5]=l):l=t[5];const c=l;n?.info?.hostname;const u=n?.info?.hostname??"-";let d;t[6]!==i?(d=rBe({services:i}),t[6]=i,t[7]=d):d=t[7];const f=d;let p;t[8]!==f?(p=kae(f),t[8]=f,t[9]=p):p=t[9];const m=p;let h;if(t[10]!==r.pathname){e:{const A=r.pathname.split("/");if(A.length>2){h=A.slice(0,3).join("/");break e}h=r.pathname}t[10]=r.pathname,t[11]=h}else h=t[11];const _=h;let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g={pb:1},t[12]=g):g=t[12];let y;t[13]!==e?(y=e.formatMessage({id:"menu.info.version"}),t[13]=e,t[14]=y):y=t[14];let b;t[15]!==c?(b=a.jsx("strong",{children:c}),t[15]=c,t[16]=b):b=t[16];let x;t[17]!==y||t[18]!==b?(x=a.jsxs(_e,{type:"caption",children:[y,": ",b]}),t[17]=y,t[18]=b,t[19]=x):x=t[19];let w;t[20]!==u||t[21]!==e?(w=u&&a.jsxs(_e,{type:"caption",children:[e.formatMessage({id:"menu.info.hostname"}),": ",a.jsx("strong",{children:u})]}),t[20]=u,t[21]=e,t[22]=w):w=t[22];let C;t[23]!==w||t[24]!==x?(C=a.jsx(te,{sx:g,direction:"row",justify:"space-between",align:"center",children:a.jsxs(te,{direction:"column",spacing:0,children:[x,w]})}),t[23]=w,t[24]=x,t[25]=C):C=t[25];let k;return t[26]!==m||t[27]!==_||t[28]!==C?(k=a.jsx(XFe,{items:m,activeValue:_,footerComponent:C}),t[26]=m,t[27]=_,t[28]=C,t[29]=k):k=t[29],k};var oze=Object.create,Eae=Object.defineProperty,aze=Object.getOwnPropertyDescriptor,lze=Object.getOwnPropertyNames,cze=Object.getPrototypeOf,uze=Object.prototype.hasOwnProperty,dze=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lze(e))!uze.call(t,s)&&s!==r&&Eae(t,s,{get:()=>e[s],enumerable:!(n=aze(e,s))||n.enumerable});return t},pze=(t,e,r)=>(r=t!=null?oze(cze(t)):{},fze(!t||!t.__esModule?Eae(r,"default",{value:t,enumerable:!0}):r,t)),mze=dze((t,e)=>{(function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))})(t,function(r){var n=function(m){return function(h){var _=m(h);return h.add(_),_}},s=function(m){return function(h,_){return m.set(h,_),_}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,l=o*2,c=function(m,h){return function(_){var g=h.get(_),y=g===void 0?_.size:g<l?g+1:0;if(!_.has(y))return m(_,y);if(_.size<o){for(;_.has(y);)y=Math.floor(Math.random()*l);return m(_,y)}if(_.size>i)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;_.has(y);)y=Math.floor(Math.random()*i);return m(_,y)}},u=new WeakMap,d=s(u),f=c(d,u),p=n(f);r.addUniqueNumber=p,r.generateUniqueNumber=f})});pze(mze());var Ed=(typeof window>"u"?"undefined":typeof window)=="object",jc={setTimeout:Ed?setTimeout.bind(window):setTimeout,clearTimeout:Ed?clearTimeout.bind(window):clearTimeout,setInterval:Ed?setInterval.bind(window):setInterval,clearInterval:Ed?clearInterval.bind(window):clearInterval};function hze(t){jc.setTimeout=t.setTimeout,jc.clearTimeout=t.clearTimeout,jc.setInterval=t.setInterval,jc.clearInterval=t.clearInterval}var zg={},gze=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,zg[e]=zg[e]||[],zg[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||e.newValue===null)return;let r=JSON.parse(e.newValue);this.mc.port2.postMessage(r)}postMessage(e){if(this.closed)throw new Error("InvalidStateError");let r=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,r),jc.setTimeout(()=>{window.localStorage.removeItem(n)},500),zg[this.name].forEach(s=>{s!==this&&s.mc.port2.postMessage(JSON.parse(r))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=zg[this.name].indexOf(this);zg[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,r){return this.mc.port1.addEventListener(e,r)}removeEventListener(e,r){return this.mc.port1.removeEventListener(e,r)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_ze=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:gze;function vze(t=0){return new Promise(e=>jc.setTimeout(e,t))}function Rae(){return Math.random().toString(36).substring(2)}var yze=class{options;channel;token=Rae();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,r){this.channel=e,this.options=r,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,r=n=>{let{token:s,action:i}=n.data;s!==this.token&&(i===0&&s>this.token&&(e=!0),i===1&&(e=!0))};this.channel.addEventListener("message",r);try{return this.sendAction(0),await vze(this.options.responseTime),this.channel.removeEventListener("message",r),this.isApplying=!1,e?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,r=null;return new Promise(n=>{let s=()=>{if(e)return;e=!0;try{jc.clearInterval(r)}catch{}let o=this.intervals.indexOf(r);o>=0&&this.intervals.splice(o,1),this.channel.removeEventListener("message",i),n()};r=jc.setInterval(()=>{this.apply().then(()=>{this.isLeader&&s()})},this.options.fallbackInterval),this.intervals.push(r);let i=o=>{let{action:l}=o.data;l===2&&this.apply().then(()=>{this.isLeader&&s()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=r=>{let{action:n}=r.data;n===0&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>jc.clearInterval(e))}catch{}}}},bze=class{channel;options;elector;token=Rae();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:r}=e;if(this.options=e,this.channel=new _ze(r),this.registry.set(this.token,1),e.leaderElection){let n={fallbackInterval:2e3,responseTime:100};this.elector=new yze(this.channel,n),this.elector.waitForLeadership()}this.channel.addEventListener("message",n=>{let{action:s,token:i,data:o}=n.data;switch(s){case 3:this.registry.set(i,2);break;case 4:this.registry.delete(i);break;case 5:this.idle(i);break;case 6:this.active(i);break;case 7:this.prompt(i);break;case 8:this.start(i);break;case 9:this.reset(i);break;case 10:this.activate(i);break;case 11:this.pause(i);break;case 12:this.resume(i);break;case 13:this.options.onMessage(o);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let r=[...this.registry.values()].every(n=>n===0);e===this.token&&this.send(7),r&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let r=[...this.registry.values()].every(n=>n===2);e===this.token&&this.send(5),!this.allIdle&&r&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let r=[...this.registry.values()].some(n=>n===1);e===this.token&&this.send(6),r&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},xze=Ed?document:null,Sze=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function wze(t,e){let r;function n(...s){r&&clearTimeout(r),r=setTimeout(()=>{t(...s),r=null},e)}return n.cancel=function(){clearTimeout(r)},n}function JE(t,e){let r=0;return function(...n){let s=new Date().getTime();if(!(s-r<e))return r=s,t(...n)}}var Di=()=>Date.now(),qg=2147483647;function Cze({timeout:t=1e3*60*20,promptTimeout:e=0,promptBeforeIdle:r=0,element:n=xze,events:s=Sze,timers:i=void 0,immediateEvents:o=[],onPresenceChange:l=()=>{},onPrompt:c=()=>{},onIdle:u=()=>{},onActive:d=()=>{},onAction:f=()=>{},onMessage:p=()=>{},debounce:m=0,throttle:h=0,eventsThrottle:_=200,startOnMount:g=!0,startManually:y=!1,stopOnIdle:b=!1,crossTab:x=!1,name:w="idle-timer",syncTimers:C=0,leaderElection:k=!1,disabled:A=!1}={}){let P=I.useRef(Di()),T=I.useRef(Di()),j=I.useRef(null),R=I.useRef(null),D=I.useRef(0),O=I.useRef(0),N=I.useRef(0),F=I.useRef(0),U=I.useRef(!1),z=I.useRef(!1),H=I.useRef(!1),W=I.useRef(!0),K=I.useRef(!1),q=I.useRef(null),X=I.useRef(null),Q=I.useRef(t),Y=I.useRef(0);I.useEffect(()=>{if(e&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&e)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=qg)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${qg}.`);if(e>=qg)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${qg}.`);if(r>=qg)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${qg}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(Q.current=t-r,Y.current=r):(Q.current=t,Y.current=e),!W.current){if(y||A)return;U.current&&(me.current(null,_r),X.current&&X.current.active()),Ve()}},[t,e,r,y,A]);let Z=I.useRef(b);I.useEffect(()=>{Z.current=b},[b]);let re=I.useRef(o),fe=I.useRef(n),de=I.useRef([...new Set([...s,...o]).values()]),se=I.useRef(A);I.useEffect(()=>{se.current=A,!W.current&&(A?ft():y||Ve())},[A]);let le=I.useRef(l);I.useEffect(()=>{le.current=l},[l]);let ee=I.useRef(c);I.useEffect(()=>{ee.current=c},[c]);let J=I.useRef(u);I.useEffect(()=>{J.current=u},[u]);let me=I.useRef(d);I.useEffect(()=>{me.current=d},[d]);let pe=I.useRef(f);I.useEffect(()=>{pe.current=f},[f]);let Se=I.useRef(p);I.useEffect(()=>{Se.current=p},[p]);let ve=I.useMemo(()=>{let st=(wt,Pe)=>pe.current(wt,Pe);return m>0?wze(st,m):h>0?JE(st,h):st},[h,m]),xe=I.useRef();I.useEffect(()=>{x&&C&&(xe.current=JE(()=>{X.current.active()},C))},[x,C]);let qe=()=>{q.current!==null&&(jc.clearTimeout(q.current),q.current=null)},Le=(st,wt=!0)=>{qe(),q.current=jc.setTimeout(nt,st||Q.current),wt&&(R.current=Di())},Te=st=>{!z.current&&!U.current&&(ee.current(st,_r),le.current({type:"active",prompted:!0},_r)),F.current=0,N.current=Di(),z.current=!0,Le(Y.current,!1)},je=()=>{qe(),U.current||(J.current(null,_r),le.current({type:"idle"},_r)),U.current=!0,j.current=Di(),Z.current?$e():z.current&&(N.current=0,z.current=!1)},Ge=st=>{qe(),(U.current||z.current)&&(me.current(st,_r),le.current({type:"active",prompted:!1},_r)),z.current=!1,N.current=0,U.current=!1,D.current+=Di()-j.current,O.current+=Di()-j.current,Me(),Le()},nt=st=>{if(!U.current){ve.cancel&&ve.cancel();let wt=Di()-R.current;if(!(Q.current+Y.current<wt)&&Y.current>0&&!z.current){X.current?X.current.prompt():Te(st);return}X.current?X.current.idle():je();return}X.current?X.current.active():Ge(st)},Re=st=>{if(!g&&!R.current&&(R.current=Di(),me.current(null,_r)),ve(st,_r),z.current)return;if(qe(),!U.current&&re.current.includes(st.type)){nt(st);return}let wt=Di()-R.current;if(U.current&&!b||!U.current&&wt>=Q.current){nt(st);return}H.current=!1,F.current=0,N.current=0,Le(),x&&C&&xe.current()},we=I.useRef(Re);I.useEffect(()=>{let st=K.current;st&&$e(),_>0?we.current=JE(Re,_):we.current=Re,st&&Me()},[_,h,m,pe,x,C]);let Me=()=>{Ed&&fe.current&&(K.current||(de.current.forEach(st=>{fe.current.addEventListener(st,we.current,{capture:!0,passive:!0})}),K.current=!0))},$e=(st=!1)=>{Ed&&fe.current&&(K.current||st)&&(de.current.forEach(wt=>{fe.current.removeEventListener(wt,we.current,{capture:!0})}),K.current=!1)},Ve=I.useCallback(st=>se.current?!1:(qe(),Me(),U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,X.current&&!st&&X.current.start(),Le(),!0),[q,U,se,Q,X]),Ne=I.useCallback(st=>se.current?!1:(qe(),Me(),T.current=Di(),D.current+=Di()-j.current,O.current+=Di()-j.current,D.current=0,U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,X.current&&!st&&X.current.reset(),y||Le(),!0),[q,U,Q,y,se,X]),Oe=I.useCallback(st=>se.current?!1:(qe(),Me(),(U.current||z.current)&&Ge(),U.current=!1,z.current=!1,H.current=!1,F.current=0,N.current=0,T.current=Di(),X.current&&!st&&X.current.activate(),Le(),!0),[q,U,z,se,Q,X]),ft=I.useCallback((st=!1)=>se.current||H.current?!1:(F.current=ar(),H.current=!0,$e(),qe(),X.current&&!st&&X.current.pause(),!0),[q,se,X]),Ct=I.useCallback((st=!1)=>se.current||!H.current?!1:(H.current=!1,z.current||Me(),U.current||Le(F.current),N.current&&(N.current=Di()),X.current&&!st&&X.current.resume(),!0),[q,Q,se,F,X]),Et=I.useCallback((st,wt)=>(X.current?(wt&&Se.current(st,_r),X.current.message(st)):wt&&Se.current(st,_r),!0),[p]),at=I.useCallback(()=>U.current,[U]),$t=I.useCallback(()=>z.current,[z]),Ee=I.useCallback(()=>X.current?X.current.isLeader:null,[X]),Be=I.useCallback(()=>X.current?X.current.isLastActive:null,[X]),qt=I.useCallback(()=>X.current?X.current.token:null,[X]),ar=I.useCallback(()=>{if(H.current)return F.current;let st=F.current?F.current:Y.current+Q.current,wt=R.current?Di()-R.current:0,Pe=Math.floor(st-wt);return Pe<0?0:Math.abs(Pe)},[Q,Y,z,F,R]),hr=I.useCallback(()=>Math.round(Di()-T.current),[T]),ir=I.useCallback(()=>Math.round(Di()-P.current),[P]),cr=I.useCallback(()=>j.current?new Date(j.current):null,[j]),kr=I.useCallback(()=>R.current?new Date(R.current):null,[R]),Rr=I.useCallback(()=>U.current?Math.round(Di()-j.current+D.current):Math.round(D.current),[j,D]),Ut=I.useCallback(()=>U.current?Math.round(Di()-j.current+O.current):Math.round(O.current),[j,O]),fn=I.useCallback(()=>{let st=Math.round(hr()-Rr());return st>=0?st:0},[j,D]),Zt=I.useCallback(()=>{let st=Math.round(ir()-Ut());return st>=0?st:0},[j,D]);I.useEffect(()=>{if(m>0&&h>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");i&&hze(i);let st=()=>{X.current&&X.current.close(),ve.cancel&&ve.cancel(),qe(),$e(!0)};return Ed&&window.addEventListener("beforeunload",st),()=>{Ed&&window.removeEventListener("beforeunload",st),X.current&&X.current.close(),ve.cancel&&ve.cancel(),qe(),$e(!0)}},[]),I.useEffect(()=>{X.current&&X.current.close(),x?X.current=new bze({channelName:w,leaderElection:k,onPrompt:()=>{Te()},onIdle:()=>{je()},onActive:()=>{Ge()},onMessage:st=>{Se.current(st,_r)},start:Ve,reset:Ne,activate:Oe,pause:ft,resume:Ct}):X.current=null},[x,w,k,ee,J,me,Se,Ve,Ne,ft,Ct]),I.useEffect(()=>{W.current||(qe(),$e(!0)),!(y||A)&&(g?Ve():Me())},[y,g,A,W]),I.useEffect(()=>{if(!W.current){let st=[...new Set([...s,...o]).values()];if($e(),de.current=st,fe.current=n,re.current=o,y||A)return;g?Ve():Me()}},[n,JSON.stringify(s),JSON.stringify(o),W,A,y,g]),I.useEffect(()=>{W.current&&(W.current=!1)},[W]);let _r={message:Et,start:Ve,reset:Ne,activate:Oe,pause:ft,resume:Ct,isIdle:at,isPrompted:$t,isLeader:Ee,isLastActiveTab:Be,getTabId:qt,getRemainingTime:ar,getElapsedTime:hr,getTotalElapsedTime:ir,getLastIdleTime:cr,getLastActiveTime:kr,getIdleTime:Rr,getTotalIdleTime:Ut,getActiveTime:fn,getTotalActiveTime:Zt,setOnPresenceChange:st=>{l=st,le.current=st},setOnPrompt:st=>{c=st,ee.current=st},setOnIdle:st=>{u=st,J.current=st},setOnActive:st=>{d=st,me.current=st},setOnAction:st=>{f=st,pe.current=st},setOnMessage:st=>{p=st,Se.current=st}};return _r}var Aze=I.createContext(null);Aze.Consumer;const kze=()=>{const t=window.location.pathname;let e=$.urls.logout;return[$.urls.logout,$.urls.login].includes(t)||(e=`${e}?returnUrl=${t}`),e};function Mze(t){const e=he.c(29),{timeout:r}=t,n=Ye(),s=r*1e3;let i;e:{if(s&&s<$.idleTime.promptTimeout_s){i=s-3e4;break e}i=$.idleTime.promptTimeout_s*1e3}const o=i,[l,c]=I.useState(s),[u,d]=I.useState(!1),f=ys(),{submit:p}=gr();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=(N,F)=>{F&&c(F.getRemainingTime()),d(!0)},e[0]=m):m=e[0];const h=m;let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{d(!1)},e[1]=_):_=e[1];const g=_;let y;e[2]!==f?(y=()=>{const N=kze();f(N,{replace:!0})},e[2]=f,e[3]=y):y=e[3];const b=y;let x;e[4]!==b||e[5]!==o||e[6]!==s?(x={timeout:s,crossTab:!0,leaderElection:!0,syncTimers:200,promptBeforeIdle:o,onPrompt:h,onActive:g,onIdle:b},e[4]=b,e[5]=o,e[6]=s,e[7]=x):x=e[7];const w=Cze(x);let C;e[8]!==w?(C=()=>{w.activate()},e[8]=w,e[9]=C):C=e[9];const k=C;let A;e[10]!==p?(A=()=>{p(null,{method:"POST",encType:"multipart/form-data",action:"refresh-token"})},e[10]=p,e[11]=A):A=e[11];const P=A;let T,j;e[12]!==o||e[13]!==w?(T=()=>{const N=setInterval(()=>{const F=w.getRemainingTime();c(F),d(U=>U&&F>o?!1:U)},300);return()=>{clearInterval(N)}},j=[o,w],e[12]=o,e[13]=w,e[14]=T,e[15]=j):(T=e[14],j=e[15]),I.useEffect(T,j);let R;e[16]!==n?(R=n.formatMessage({id:"idle-state.modal.title"}),e[16]=n,e[17]=R):R=e[17];let D;e[18]!==k||e[19]!==P||e[20]!==o||e[21]!==n||e[22]!==u||e[23]!==l?(D=u&&a.jsx(_s,{children:a.jsxs(te,{align:"center",spacing:2,children:[a.jsx(_e,{fontWeight:"600",fontSize:"medium",sx:{alignSelf:"flex-start"},children:n.formatMessage({id:"idle-state.modal.message"})}),a.jsx(Nc,{type:"circular",variant:"determinate",value:Math.ceil(l/o*100),label:`${Math.ceil(l/1e3)}s`,labelVariant:"h5",thickness:4,size:140}),a.jsx(Ze,{text:n.formatMessage({id:"idle-state.modal.continue"}),onClick:()=>{k(),P()}})]})}),e[18]=k,e[19]=P,e[20]=o,e[21]=n,e[22]=u,e[23]=l,e[24]=D):D=e[24];let O;return e[25]!==u||e[26]!==R||e[27]!==D?(O=a.jsx(jae,{id:"idleTimerDialog",open:u,disableAutoFocus:!0,title:R,children:D}),e[25]=u,e[26]=R,e[27]=D,e[28]=O):O=e[28],O}const Pze=()=>{const t=he.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={useSearchParams:!1},t[0]=e):e=t[0];const r=Gr(e),n=As(),s=Nd(n.breakpoints.down($.appBarMobileBreakpoint))?65:0;let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(rN,{}),t[1]=i):i=t[1];let o;t[2]!==s?(o=c=>a.jsxs("div",{style:{minWidth:"345px",marginTop:s},children:[a.jsx(Pae,{info:c?.info||{hostname:"-",product_name:"-",version:"-"},variant:"appShellLayout",profileCard:!0}),a.jsx(ize,{}),a.jsx(Tae,{}),a.jsx(Bd,{}),!!c?.frontendConfig.ui_inactivity_s&&a.jsx(Mze,{timeout:c.frontendConfig.ui_inactivity_s})]}),t[2]=s,t[3]=o):o=t[3];let l;return t[4]!==r.bootstrap||t[5]!==o?(l=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.bootstrap,errorElement:i,children:o})}),t[4]=r.bootstrap,t[5]=o,t[6]=l):l=t[6],l},zW=t=>{const e=he.c(6),{profileCard:r}=t,n=zn();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(rN,{}),e[0]=s):s=e[0];let i;e[1]!==r?(i=l=>a.jsxs(a.Fragment,{children:[a.jsx(Tae,{}),a.jsx(Pae,{info:l,variant:"simpleLayout",profileCard:r}),a.jsx(G0,{appBar:!0,fullWidth:!0,fullHeight:!0,children:a.jsx(zA,{transparent:!0,fullHeight:!0,children:a.jsx(Bd,{})})})]}),e[1]=r,e[2]=i):i=e[2];let o;return e[3]!==n.info||e[4]!==i?(o=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:n.info,errorElement:s,children:i})}),e[3]=n.info,e[4]=i,e[5]=o):o=e[5],o};async function lN(){return De({options:{url:"/frontend/config",method:"GET"}})}async function ma(){const{services:t}=await lN();return t}async function Iae({nf:t}){const e=`${$.apis.cluster.status(t)}`;return De({options:{url:e,method:"GET"}})}async function jze({node:t,nf:e}){const r=`${$.apis.cluster.join(e)}`;return De({options:{url:r,method:"POST",data:JSON.stringify({node:t})}})}async function Tze({nf:t,force:e}){const r=`${$.apis.cluster.leave(t)}?force=${e}`;return De({options:{url:r,method:"POST"}})}async function Eze({nf:t}){const e=await ma();return Ds({services:e,name:t})?Iae({nf:t}):null}async function Rze(){const t=await ma(),e=yie(t).map(r=>r.name);return $.monitoring.clusters.filter(r=>e.includes(r))}const Q6=Pr();function Ize(){return window.location.pathname.endsWith("/configuration")?rt(window.location.pathname):rt(`${window.location.pathname}${window.location.search}`)}async function Dze({request:t}){const{siteNodeAddress:e}=await t.json();return Ji.setSiteNode(e),Ize()}function $ze(t){return async({request:e})=>{const r=await e.json(),n=await jze({nf:t,node:r.node});if(xt(n))Ar(n.error?.detail||Q6.formatMessage({id:"cluster.dialog.join_ko"}));else{if(t===ue.PLS)throw Ji.deleteSiteNode(),Gb();Nt(Q6.formatMessage({id:"cluster.dialog.join_ok"}))}return Ft(n)}}function Oze(t){return async({request:e})=>{const r=await e.json(),n=await Tze({nf:t,force:r.force});return xt(n)||(t===ue.PLS&&Ji.deleteSiteNode(),Nt(Q6.formatMessage({id:"cluster.dialog.leave_ok"}))),Ft(n)}}const Lze=[{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_total_count",query:"count(license_status) or vector(0)"},{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_valid_count",query:"count_values('license_status', license_status==1) or vector(0)"},{source:ue.LICENSED,group:"platform",sub_group:"licenses",field_name:"licenses_expiring_count",query:"count(rr:licensed_license_remaining_days>0 and rr:licensed_license_remaining_days<7) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"total_transmit_bytes",query:"sum(node_network_transmit_bytes_total{device=~'eth[0-9]+'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"total_receive_bytes",query:"sum(node_network_receive_bytes_total{device=~'eth[0-9]+'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"transmit_rate_bps",query:"sum(irate(node_network_transmit_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"receive_rate_bps",query:"sum(irate(node_network_receive_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"ts_transmit_rate_bps",query_range:"sum(irate(node_network_transmit_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network",field_name:"ts_receive_rate_bps",query_range:"sum(irate(node_network_receive_bytes_total{device=~'eth[0-9]+'}[5m])*8)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network_interfaces",field_name:"interfaces_active_count",query:"count(node_network_up{device=~'eth[0-9]+'} == 1) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"network_interfaces",field_name:"interfaces_total_count",query:"count(node_network_up{device=~'eth[0-9]+'}) or vector(0)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"cpu_count",query:"count(count(node_cpu_seconds_total) by (cpu))"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"cpu_busy_perc",query:"(((count(count(node_cpu_seconds_total) by (cpu))) - avg(sum by (mode)(irate(node_cpu_seconds_total{mode='idle'}[5m])))) * 100) / count(count(node_cpu_seconds_total) by (cpu)) > 0"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"cpu",field_name:"ts_cpu_busy_perc",query_range:"(((count(count(node_cpu_seconds_total) by (cpu))) - avg(sum by (mode)(irate(node_cpu_seconds_total{mode='idle'}[5m])))) * 100) / count(count(node_cpu_seconds_total) by (cpu)) > 0"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_total_bytes",query:"node_memory_MemTotal_bytes"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_available_bytes",query:"node_memory_MemAvailable_bytes"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"memory_used_perc",query:"100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"memory",field_name:"ts_memory_used_perc",query_range:"100 - ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes)"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_total_bytes",query:"node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'}"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_available_bytes",query:"node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'}"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"disk_used_perc",query:"100 - ((node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'} * 100) / node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"disk",field_name:"ts_disk_used_perc",query_range:"100 - ((node_filesystem_avail_bytes{mountpoint='/',fstype!='rootfs'} * 100) / node_filesystem_size_bytes{mountpoint='/',fstype!='rootfs'})"},{source:ue.NODE_EXPORTER,group:"platform",sub_group:"uptime",field_name:"uptime_seconds",query:"node_time_seconds - node_boot_time_seconds"},{source:ue.PROMETHEUS,group:"platform",sub_group:"alerts",field_name:"alerts_count",query:"sum(ALERTS)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_rules",field_name:"eir_rules_count",query:"sum(eir_rules_status) or vector(0)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_cluster_nodes",field_name:"active_nodes_count",query:"sum(nf_data_layer_cluster_nodes_status{target_type='eir'}) or vector(0)"},{source:ue.EIR,group:"control_plane",sub_group:"eir_cluster_nodes",field_name:"total_nodes_count",query:"count(nf_data_layer_cluster_nodes_status{target_type='eir'}) or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_sims",field_name:"provisioned_sims_count",query:"nf_data_layer_table_row_count{table='supi'} or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_cluster_nodes",field_name:"active_nodes_count",query:"sum(nf_data_layer_cluster_nodes_status{target_type='udr'}) or vector(0)"},{source:ue.UDR,group:"control_plane",sub_group:"udr_cluster_nodes",field_name:"total_nodes_count",query:"count(nf_data_layer_cluster_nodes_status{target_type='udr'}) or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_ue",field_name:"active_ue_count",query:"sum(amf_ran_node_ue) or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_ue",field_name:"registered_ue_count",query:"amf_ue_registered or vector(0)"},{source:ue.AMF,group:"control_plane",sub_group:"amf_active_radios",field_name:"active_radios_count",query:"sum(amf_ran_node_status) or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_ue",field_name:"active_ue_count",query:"mme_s1_enb_active_ue or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_ue",field_name:"registered_ue_count",query:"mme_ue_registered or vector(0)"},{source:ue.MME,group:"control_plane",sub_group:"mme_active_radios",field_name:"active_radios_count",query:"mme_s1_enb or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_users",field_name:"users_count",query:"smf_supi or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_users",field_name:"sessions_count",query:"sum(smf_sessions) or vector(0)"},{source:ue.SMF,group:"control_plane",sub_group:"smf_connected_peers",field_name:"connected_peers_count",query:"sum(pfcp_node_status{target_type='smf'}) or vector(0)"},{source:ue.PCF,group:"control_plane",sub_group:"pcf_sessions",field_name:"n7_sessions_count",query:"pcf_n7_sessions or vector(0)"},{source:ue.PCF,group:"control_plane",sub_group:"pcf_sessions",field_name:"n5_sessions_count",query:"pcf_n5_sessions or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"total_load_uplink_bytes",query:"upf_forw_bytes{out_tag='core',in_tag='access'} or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"total_load_downlink_bytes",query:"upf_forw_bytes{out_tag='access',in_tag='core'} or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"throughput_uplink_bps",query:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='core',in_tag='access'}[1m]))*8 or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"throughput_downlink_bps",query:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='access',in_tag='core'}[1m]))*8 or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"ts_throughput_uplink_bps",query_range:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='core',in_tag='access',apn_dnn=~'.+'}[1m]))*8"},{source:ue.UPF,group:"user_plane",sub_group:"upf_throughput",field_name:"ts_throughput_downlink_bps",query_range:"sum by (out_tag)(rate(upf_forw_bytes{out_tag='access',in_tag='core',apn_dnn=~'.+'}[1m]))*8"},{source:ue.UPF,group:"user_plane",sub_group:"upf_sessions",field_name:"active_sessions",query:"upf_sessions or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_ip",field_name:"ip_total_count",query:"upf_pool_address_total_count or vector(0)"},{source:ue.UPF,group:"user_plane",sub_group:"upf_ip",field_name:"ip_allocated_count",query:"upf_pool_address_total_allocated or vector(0)"}];var eR,qW;function Dae(){if(qW)return eR;qW=1;var t=Z$(),e=z3();function r(n,s,i){(i!==void 0&&!e(n[s],i)||i===void 0&&!(s in n))&&t(n,s,i)}return eR=r,eR}var eb={exports:{}};eb.exports;var VW;function $ae(){return VW||(VW=1,(function(t,e){var r=Ghe(),n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,p=l?l(f):new u.constructor(f);return u.copy(p),p}t.exports=c})(eb,eb.exports)),eb.exports}var tR,HW;function cN(){if(HW)return tR;HW=1;var t=Whe();function e(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}return tR=e,tR}var rR,GW;function Oae(){if(GW)return rR;GW=1;var t=cN();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.length)}return rR=e,rR}var nR,WW;function uN(){if(WW)return nR;WW=1;function t(e,r){var n=-1,s=e.length;for(r||(r=Array(s));++n<s;)r[n]=e[n];return r}return nR=t,nR}var sR,YW;function Nze(){if(YW)return sR;YW=1;var t=Qd(),e=Object.create,r=(function(){function n(){}return function(s){if(!t(s))return{};if(e)return e(s);n.prototype=s;var i=new n;return n.prototype=void 0,i}})();return sR=r,sR}var iR,KW;function dN(){if(KW)return iR;KW=1;var t=Yhe(),e=t(Object.getPrototypeOf,Object);return iR=e,iR}var oR,QW;function Lae(){if(QW)return oR;QW=1;var t=Nze(),e=dN(),r=X$();function n(s){return typeof s.constructor=="function"&&!r(s)?t(e(s)):{}}return oR=n,oR}var aR,ZW;function fN(){if(ZW)return aR;ZW=1;var t=av(),e=lv();function r(n){return e(n)&&t(n)}return aR=r,aR}var lR,XW;function W0(){if(XW)return lR;XW=1;var t=J$(),e=dN(),r=lv(),n="[object Object]",s=Function.prototype,i=Object.prototype,o=s.toString,l=i.hasOwnProperty,c=o.call(Object);function u(d){if(!r(d)||t(d)!=n)return!1;var f=e(d);if(f===null)return!0;var p=l.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==c}return lR=u,lR}var cR,JW;function Nae(){if(JW)return cR;JW=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return cR=t,cR}var uR,eY;function Fae(){if(eY)return uR;eY=1;var t=Z$(),e=z3(),r=Object.prototype,n=r.hasOwnProperty;function s(i,o,l){var c=i[o];(!(n.call(i,o)&&e(c,l))||l===void 0&&!(o in i))&&t(i,o,l)}return uR=s,uR}var dR,tY;function $v(){if(tY)return dR;tY=1;var t=Fae(),e=Z$();function r(n,s,i,o){var l=!i;i||(i={});for(var c=-1,u=s.length;++c<u;){var d=s[c],f=o?o(i[d],n[d],d,i,n):void 0;f===void 0&&(f=n[d]),l?e(i,d,f):t(i,d,f)}return i}return dR=r,dR}var fR,rY;function Fze(){if(rY)return fR;rY=1;function t(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}return fR=t,fR}var pR,nY;function Uze(){if(nY)return pR;nY=1;var t=Qd(),e=X$(),r=Fze(),n=Object.prototype,s=n.hasOwnProperty;function i(o){if(!t(o))return r(o);var l=e(o),c=[];for(var u in o)u=="constructor"&&(l||!s.call(o,u))||c.push(u);return c}return pR=i,pR}var mR,sY;function Ov(){if(sY)return mR;sY=1;var t=Khe(),e=Uze(),r=av();function n(s){return r(s)?t(s,!0):e(s)}return mR=n,mR}var hR,iY;function Bze(){if(iY)return hR;iY=1;var t=$v(),e=Ov();function r(n){return t(n,e(n))}return hR=r,hR}var gR,oY;function zze(){if(oY)return gR;oY=1;var t=Dae(),e=$ae(),r=Oae(),n=uN(),s=Lae(),i=eO(),o=cv(),l=fN(),c=tO(),u=Qhe(),d=Qd(),f=W0(),p=cte(),m=Nae(),h=Bze();function _(g,y,b,x,w,C,k){var A=m(g,b),P=m(y,b),T=k.get(P);if(T){t(g,b,T);return}var j=C?C(A,P,b+"",g,y,k):void 0,R=j===void 0;if(R){var D=o(P),O=!D&&c(P),N=!D&&!O&&p(P);j=P,D||O||N?o(A)?j=A:l(A)?j=n(A):O?(R=!1,j=e(P,!0)):N?(R=!1,j=r(P,!0)):j=[]:f(P)||i(P)?(j=A,i(A)?j=h(A):(!d(A)||u(A))&&(j=s(P))):R=!1}R&&(k.set(P,j),w(j,P,x,C,k),k.delete(P)),t(g,b,j)}return gR=_,gR}var _R,aY;function pN(){if(aY)return _R;aY=1;var t=ute(),e=Dae(),r=Zhe(),n=zze(),s=Qd(),i=Ov(),o=Nae();function l(c,u,d,f,p){c!==u&&r(u,function(m,h){if(p||(p=new t),s(m))n(c,u,h,d,l,f,p);else{var _=f?f(o(c,h),m,h+"",c,u,p):void 0;_===void 0&&(_=m),e(c,h,_)}},i)}return _R=l,_R}var vR,lY;function Uae(){if(lY)return vR;lY=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return vR=t,vR}var yR,cY;function Bae(){if(cY)return yR;cY=1;var t=Uae(),e=Math.max;function r(n,s,i){return s=e(s===void 0?n.length-1:s,0),function(){for(var o=arguments,l=-1,c=e(o.length-s,0),u=Array(c);++l<c;)u[l]=o[s+l];l=-1;for(var d=Array(s+1);++l<s;)d[l]=o[l];return d[s]=i(u),t(n,this,d)}}return yR=r,yR}var bR,uY;function qze(){if(uY)return bR;uY=1;function t(e){return function(){return e}}return bR=t,bR}var xR,dY;function Vze(){if(dY)return xR;dY=1;var t=qze(),e=Xhe(),r=q3(),n=e?function(s,i){return e(s,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:r;return xR=n,xR}var SR,fY;function Hze(){if(fY)return SR;fY=1;var t=800,e=16,r=Date.now;function n(s){var i=0,o=0;return function(){var l=r(),c=e-(l-o);if(o=l,c>0){if(++i>=t)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}return SR=n,SR}var wR,pY;function zae(){if(pY)return wR;pY=1;var t=Vze(),e=Hze(),r=e(t);return wR=r,wR}var CR,mY;function Fh(){if(mY)return CR;mY=1;var t=q3(),e=Bae(),r=zae();function n(s,i){return r(e(s,i,t),s+"")}return CR=n,CR}var AR,hY;function mN(){if(hY)return AR;hY=1;var t=z3(),e=av(),r=Jhe(),n=Qd();function s(i,o,l){if(!n(l))return!1;var c=typeof o;return(c=="number"?e(l)&&r(o,l.length):c=="string"&&o in l)?t(l[o],i):!1}return AR=s,AR}var kR,gY;function qae(){if(gY)return kR;gY=1;var t=Fh(),e=mN();function r(n){return t(function(s,i){var o=-1,l=i.length,c=l>1?i[l-1]:void 0,u=l>2?i[2]:void 0;for(c=n.length>3&&typeof c=="function"?(l--,c):void 0,u&&e(i[0],i[1],u)&&(c=l<3?void 0:c,l=1),s=Object(s);++o<l;){var d=i[o];d&&n(s,d,o,c)}return s})}return kR=r,kR}var MR,_Y;function Gze(){if(_Y)return MR;_Y=1;var t=pN(),e=qae(),r=e(function(n,s,i){t(n,s,i)});return MR=r,MR}var Wze=Gze();const Yze=Pi(Wze),Z6={emergency:0,alert:1,critical:2,error:3,warning:4,notice:5,info:6,informational:6,debug:7};function Kze(t){return t.reduce((e,r)=>({...e,[r.labels.alertname]:e[r.labels.alertname]?{...e[r.labels.alertname],items:[...e[r.labels.alertname].items,r],counts:{...e[r.labels.alertname].counts,total:e[r.labels.alertname].counts.total+1,[r.labels.severity]:e[r.labels.alertname].counts[r.labels.severity]+1}}:{items:[r],counts:{total:1,emergency:0,alert:0,critical:0,error:0,warning:0,notice:0,informational:0,info:0,debug:0,[r.labels.severity]:1}}}),{})}var b_=(t=>(t.REGISTERED="REGISTERED",t.SUSPENDED="SUSPENDED",t.UNDISCOVERABLE="UNDISCOVERABLE",t))(b_||{});function Qze(t,e=0){try{switch(t.resultType){case"vector":return t.result[e]?.value[1];case"scalar":return t.result[e];case"string":return t.result[e];case"matrix":return t.result[e]?.values.map(([r,n])=>({timestamp:r,value:n}))}}catch(r){console.error("Cannot extract data from prometheus data",r,t.result);return}}async function Vae(){const t=$.apis.nrf.profiles.status;return De({options:{url:t,method:"GET"}})}async function Hae(){const t=$.apis.nrf.staticProfiles;return De({options:{url:t,method:"GET"}})}async function Zze(t){const e=$.apis.nrf.staticProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Xze(t){const e=`${$.apis.nrf.staticProfiles}/${t.nfInstanceId}`;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Jze(t){const e=`${$.apis.nrf.staticProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}function X6({group:t,sub_group:e,field_name:r,data:n}){return!t||!e||!n?null:r?{[t]:{[e]:{[r]:n}}}:{[t]:{[e]:n}}}function eqe(t){return Lze.filter(e=>t.includes(e.source)).map(e=>{const r="query_range"in e?`${$.apis.prometheus.query_range({query:e.query_range})}`:`${$.apis.prometheus.query(e.query)}`;return{...e,url:r}})}async function tqe(t){const e=await De({options:{url:t.url,method:"GET"}}),r=Qze(e.data);return X6({...t,data:r})}async function rqe(t){if(!t.includes(ue.NRF))return null;try{const e=await Vae();let r=0,n=0,s=0;return e.forEach(i=>{switch(i.nf_profile.nfStatus){case b_.REGISTERED:r++;break;case b_.SUSPENDED:n++;break;case b_.UNDISCOVERABLE:s++;break}}),X6({group:"control_plane",sub_group:"nrf_profiles",data:{registered_count:r,suspended_count:n,undiscoverable_count:s}})}catch(e){if(e.message!=="canceled")return X6({group:"control_plane",sub_group:"nrf_profiles",data:{registered_count:$.errorKey,suspended_count:$.errorKey,undiscoverable_count:$.errorKey}});throw e}}async function nqe(){const t=await ma(),e=yie(t).map(n=>n.name);return(await Promise.all([...eqe(e).map(async n=>tqe(n)),rqe(e)])).filter(n=>!!n).reduce((n,s)=>Yze(n,s),{})}async function Gae(){const t=$.apis.prometheusAlerts;return(await De({options:{url:t,method:"GET"}})).sort((r,n)=>Z6[r.labels.severity]<Z6[n.labels.severity]?-1:0)}async function Wae(){const[t,e]=await Promise.all([jie(),lN()]),{services:r}=e,n=Ds({services:r,name:ue.ALERTMANAGER});let s=null;if(n&&as(ie.monitoring))try{s=await Gae()}catch(i){console.error(i)}return{info:t,services:r,alerts:s,frontendConfig:e}}const Yae=t=>Object.entries(t).filter(([,e])=>e!=null).reduce((e,[r,n])=>(e[r]=n,e),{}),Kae=t=>!t||t&&Object.keys(t).length===0;async function sqe(t){const e=Object.entries(t);return Promise.all(e.map(([,r])=>r)).then(r=>e.reduce((n,[s],i)=>({...n,[s]:r[i]}),{}))}function hN(t){return!!new URL(t.url).searchParams.has("polling")}async function Wt({loaderArgs:t,deferred:e,data:r}){const{request:n}=t;if(hN(n)||!e)try{const i=await sqe(r);return i===null?{__polling_error:!1}:i}catch{return{__polling_error:!0}}if(e)return Foe(r)}function Na(){const t=he.c(13),[e,r]=hl();let n;e:{let h;t[0]!==e?(h=e.get($.searchParams.pageSize),t[0]=e,t[1]=h):h=t[1];const _=h;if(_&&parseInt(_)){n=parseInt(_);break e}n=$.pageSize}const s=n,i=$.pageSizeOptions,o=iqe;let l;t[2]!==s?(l=h=>{switch(o(h)){case 0:return h.next_token?s*2:s;case 1:return h.next_token?s*3:s*2;case 2:return s*3}},t[2]=s,t[3]=l):l=t[3];const c=l;let u;t[4]!==r?(u=h=>{r(_=>(_.delete($.searchParams.paginationToken),$.pageSizeOptions.includes(h)?_.set($.searchParams.pageSize,h.toString()):_.set($.searchParams.pageSize,$.pageSize.toString()),_),{replace:!0})},t[4]=r,t[5]=u):u=t[5];const d=u;let f;t[6]!==r?(f=h=>_=>{const g=o(h);e:switch(_){case 0:{r(y=>(h.prev_token&&y.set($.searchParams.paginationToken,h.prev_token),y),{replace:!0});break e}case 1:{g===0?r(y=>(h.next_token&&y.set($.searchParams.paginationToken,h.next_token),y),{replace:!0}):r(y=>(h.prev_token&&y.set($.searchParams.paginationToken,h.prev_token),y),{replace:!0});break e}case 2:r(y=>(h.next_token&&y.set($.searchParams.paginationToken,h.next_token),y),{replace:!0})}},t[6]=r,t[7]=f):f=t[7];const p=f;let m;return t[8]!==p||t[9]!==d||t[10]!==c||t[11]!==s?(m={pageSize:s,pageSizeOptions:i,changePageSize:d,changePage:p,getRowsCount:c,getPage:o},t[8]=p,t[9]=d,t[10]=c,t[11]=s,t[12]=m):m=t[12],m}function iqe(t){return t.next_token&&t.prev_token?1:t.next_token?0:t.prev_token?2:0}function Fa(t){const e=new URL(t.request.url),r=e.searchParams.get($.searchParams.pageSize),n=e.searchParams.get($.searchParams.paginationToken);if(!r||r&&!$.pageSizeOptions.includes(+r))throw e.searchParams.set($.searchParams.pageSize,$.pageSize.toString()),rt(e.toString());return{pageSize:r,paginationToken:n}}function Qae(){if(!!Ih())throw rt("/");return!0}function oqe(){if(!!!Ih())throw Gb();return!0}async function aqe({request:t}){const r=new URL(t.url).searchParams.get("returnUrl");await ZTe();let n=$.urls.login;return r&&![$.urls.logout,"/",$.urls.login].includes(r)&&(n=`${n}?returnUrl=${r}`),window.location.href=n,null}function lqe(t){return Qae(),Wt({loaderArgs:t,deferred:!0,data:{frontendConfig:lN(),openIdAuthorization:JTe()}})}async function cqe({request:t}){Qae();const e=new URL(t.url),r=e.searchParams.get("code"),n=e.searchParams.get("iss"),s=e.searchParams.get("session_state")||e.searchParams.get("state");if(!r)throw rt($.urls.login);const i=await e4e({code:r,...n&&{iss:n},...s&&{state:s}});return xt(i)?(Ar(i.error?.detail),rt($.urls.login)):(fie(i),rt($.urls.home))}async function uqe(t){const{pageSize:e,paginationToken:r}=Fa(t),{username:n}=t.params;if(!n)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{audits:r4e(n,r||void 0,+e)}})}async function dqe(t){if(Ji.getRestartStatus())throw rt($.urls.restart);oqe();const{request:e}=t;if(!hN(e)){const n=await die();if(oN(n))return Ji.deleteSiteNode(),window.location.href=window.location.pathname,null}return Wt({loaderArgs:t,deferred:!0,data:{bootstrap:Wae()}})}function vY(t){return Wt({loaderArgs:t,deferred:!0,data:{info:jie()}})}const fqe=Pr();async function pqe(t){const{request:e}=t,r=hN(e);try{const n=await die();if(oN(n)&&r){const s=Ji.getSiteNode();Ar(fqe.formatMessage({id:"cluster.site_picker.node_down"},{ip_address:s}))}return n}catch(n){if(r)return{__polling_error:!0};throw n}}const mqe={path:"logout",loader:aqe},Zae=(t,e="")=>{const r=t.path==="/"?t.path:`${e!=="/"?e:""}${t.path&&t.path!=="/"?"/"+t.path:""}`;try{K6(r,[])}catch(n){console.error("FIX ME! ${fullPath}",n)}return{fullPath:r,...t,loader:async n=>{if(Ih()&&!n.request.url.includes($.urls.profile)&&!Aae())throw rt($.urls.unauthorized);if(!Cae(r))return t.loader&&t.loader!==!0?t.loader(n):null;const s=await ma();return K6(r,s),t.loader&&t.loader!==!0?t.loader(n):null},...t.children&&{children:t.children.map(n=>Zae(n,r))}}},en=()=>{const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(gt,{sx:{p:2},children:a.jsx(Tr,{})}),t[0]=e):e=t[0],e};function Or(t){const e=he.c(4),{center:r,fullHeight:n,transparent:s}=t;let i;return e[0]!==r||e[1]!==n||e[2]!==s?(i=a.jsx(lUe,{appBar:!0,navigation:!0,center:r,fullHeight:n,transparent:s}),e[0]=r,e[1]=n,e[2]=s,e[3]=i):i=e[3],i}const Xae=I.createContext(null);function hqe(){const[t,e]=I.useState(null);return I.useEffect(()=>{e(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function gqe(t){const{children:e,value:r}=t,n=hqe(),s=I.useMemo(()=>({idPrefix:n,value:r}),[n,r]);return a.jsx(Xae.Provider,{value:s,children:e})}function Jae(){return I.useContext(Xae)}function ele(t,e){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-P-${e}`}function tle(t,e){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-T-${e}`}const _qe=I.forwardRef(function(e,r){const{children:n,...s}=e,i=Jae();if(i===null)throw new TypeError("No TabContext provided");const o=I.Children.map(n,l=>I.isValidElement(l)?I.cloneElement(l,{"aria-controls":ele(i,l.props.value),id:tle(i,l.props.value)}):null);return a.jsx(sse,{...s,ref:r,value:i.value,children:o})});function vqe(t){return tr("MuiTabPanel",t)}rr("MuiTabPanel",["root","hidden"]);const yqe=t=>{const{classes:e,hidden:r}=t;return nr({root:["root",r&&"hidden"]},vqe,e)},bqe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({padding:t.spacing(3)})),xqe=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTabPanel"}),{children:s,className:i,value:o,keepMounted:l=!1,...c}=n,u={...n},d=yqe(u),f=Jae();if(f===null)throw new TypeError("No TabContext provided");const p=ele(f,o),m=tle(f,o);return a.jsx(bqe,{"aria-labelledby":m,className:lt(d.root,i),hidden:o!==f.value,id:p,ref:r,role:"tabpanel",ownerState:u,...c,children:(l||o===f.value)&&s})});var nn=(t=>(t.DEFAULT="DEFAULT",t.INFO="INFO",t.SUCCESS="SUCCESS",t.WARNING="WARNING",t.ERROR="ERROR",t))(nn||{});function bi(t){const e=he.c(15),{label:r,status:n,asChip:s}=t;let i;e:switch(n){case"SUCCESS":{i="success.main";break e}case"INFO":{i="info.main";break e}case"WARNING":{i="warning.main";break e}case"ERROR":{i="error.main";break e}default:i="divider"}const o=i;if(!r){let f;return e[0]!==o?(f=a.jsx(gt,{sx:{backgroundColor:o,borderRadius:"100px",width:"12px",height:"12px",flex:"0 0 auto"}}),e[0]=o,e[1]=f):f=e[1],f}if(s){let f;e[2]!==o?(f={textTransform:"capitalize",color:"text.primary",fontWeight:"500",backgroundColor:o,px:1,fontSize:"14px"},e[2]=o,e[3]=f):f=e[3];let p;return e[4]!==r||e[5]!==f?(p=a.jsx(ms,{id:r,label:r,size:"small",sx:f}),e[4]=r,e[5]=f,e[6]=p):p=e[6],p}let l;e[7]!==o?(l=a.jsx(gt,{sx:{backgroundColor:o,borderRadius:"100px",width:"12px",height:"12px",flex:"0 0 auto"}}),e[7]=o,e[8]=l):l=e[8];let c;e[9]===Symbol.for("react.memo_cache_sentinel")?(c={textTransform:"capitalize"},e[9]=c):c=e[9];let u;e[10]!==r?(u=a.jsx(_e,{fontWeight:500,lineHeight:"24px",sx:c,type:"body2",children:r}),e[10]=r,e[11]=u):u=e[11];let d;return e[12]!==l||e[13]!==u?(d=a.jsxs(te,{direction:"row",align:"center",nowrap:!0,children:[l,u]}),e[12]=l,e[13]=u,e[14]=d):d=e[14],d}function VA(t){const e=he.c(33),{value:r,tabs:n,centered:s,color:i,onChange:o,fullHeight:l}=t;let c;e[0]!==n?(c=n===void 0?[]:n,e[0]=n,e[1]=c):c=e[1];const u=c,d=s===void 0?!1:s,f=l===void 0?!1:l,[p,m]=I.useState(r||u[0].value);let h,_;e[2]!==r?(h=()=>{r&&m(r)},_=[r],e[2]=r,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_);let g;e[5]!==o?(g=(D,O)=>{m(O),o&&o(O)},e[5]=o,e[6]=g):g=e[6];const y=g;if(!p)return null;let b;e[7]!==f?(b=f&&{height:"100%",maxHeight:"100%",overflow:"auto",display:"flex",flexDirection:"column"},e[7]=f,e[8]=b):b=e[8];let x;e[9]!==b?(x={width:"100%",...b},e[9]=b,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:0,right:0,height:"1px",backgroundColor:"divider"}},e[11]=w):w=e[11];let C;e[12]===Symbol.for("react.memo_cache_sentinel")?(C={".MuiTabScrollButton-root.Mui-disabled":{opacity:.2}},e[12]=C):C=e[12];let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k={sx:{height:"4px"}},e[13]=k):k=e[13];let A;e[14]!==u?(A=u.map(Sqe),e[14]=u,e[15]=A):A=e[15];let P;e[16]!==d||e[17]!==i||e[18]!==y||e[19]!==A?(P=a.jsx(gt,{sx:w,children:a.jsx(_qe,{sx:C,variant:"scrollable",allowScrollButtonsMobile:!0,onChange:y,centered:d,indicatorColor:i,TabIndicatorProps:k,children:A})}),e[16]=d,e[17]=i,e[18]=y,e[19]=A,e[20]=P):P=e[20];let T;if(e[21]!==f||e[22]!==u){let D;e[24]!==f?(D=(O,N)=>O.content?a.jsx(xqe,{value:O.value,sx:{p:0,...f&&{flexGrow:"1",maxHeight:"100%",overflow:"auto"}},children:O.content},N):null,e[24]=f,e[25]=D):D=e[25],T=u.map(D),e[21]=f,e[22]=u,e[23]=T}else T=e[23];let j;e[26]!==p||e[27]!==P||e[28]!==T?(j=a.jsxs(gqe,{value:p,children:[P,T]}),e[26]=p,e[27]=P,e[28]=T,e[29]=j):j=e[29];let R;return e[30]!==j||e[31]!==x?(R=a.jsx(gt,{sx:x,children:j}),e[30]=j,e[31]=x,e[32]=R):R=e[32],R}function Sqe(t,e){return a.jsx(p6,{label:a.jsxs(T1e,{direction:"row",alignItems:"center",spacing:1,children:[t.status&&a.jsx(bi,{status:t.status}),t.error&&a.jsx(gt,{color:"error.main",sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(ge.StatusErrorSmall,{})}),a.jsx("div",{children:t.label})]}),sx:{textTransform:"capitalize",fontSize:"1rem",fontWeight:400,"&.Mui-selected":{fontWeight:600,color:"primary.main"}},disabled:!!t.disabled,value:t.value},e)}const Ao=t=>{const e=he.c(25),{tabs:r,keepQueryParams:n}=t,s=n===void 0?!1:n,i=Lp("."),o=ys(),l=WL(),c=to();let u;e[0]!==s||e[1]!==c.search||e[2]!==o?(u=k=>{s?o(`${k}${c.search}`,{replace:!0}):o(k,{replace:!0})},e[0]=s,e[1]=c.search,e[2]=o,e[3]=u):u=e[3];const d=u;let f;if(e[4]!==i||e[5]!==r){let k;e[7]!==i?(k=A=>({...A,url:`${i.pathname}/${A.url}`}),e[7]=i,e[8]=k):k=e[8],f=r.map(k),e[4]=i,e[5]=r,e[6]=f}else f=e[6];const p=f;let m;if(e[9]!==l||e[10]!==p){let k;e[12]!==l?(k=A=>l.map(Cqe).includes(A),e[12]=l,e[13]=k):k=e[13],m=p.map(wqe).find(k),e[9]=l,e[10]=p,e[11]=m}else m=e[11];const _=m??p[0].url;let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"hidden"},e[14]=g):g=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y={flex:"0 0 auto"},e[15]=y):y=e[15];let b;e[16]!==d||e[17]!==p||e[18]!==_?(b=p?.length>0&&a.jsx(VA,{value:_,tabs:p.map(Aqe),onChange:d}),e[16]=d,e[17]=p,e[18]=_,e[19]=b):b=e[19];let x;e[20]!==b?(x=a.jsx(te,{sx:y,children:b}),e[20]=b,e[21]=x):x=e[21];let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(te,{fullHeight:!0,sx:{flex:"1 1 auto"},children:a.jsx(Bd,{})}),e[22]=w):w=e[22];let C;return e[23]!==x?(C=a.jsxs(te,{fullHeight:!0,nowrap:!0,sx:g,spacing:0,children:[x,w]}),e[23]=x,e[24]=C):C=e[24],C};function wqe(t){return t.url}function Cqe(t){return t.pathname}function Aqe(t){const{url:e,label:r,status:n}=t;return{value:e,label:r,status:n}}const kqe=t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},PR=new Set(["__proto__","prototype","constructor"]),Mqe=new Set("0123456789");function Pqe(t){const e=[];let r="",n="start",s=!1;for(const i of t)switch(i){case"\\":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");s&&(r+=i),n="property",s=!s;break}case".":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="property";break}if(s){s=!1,r+=i;break}if(PR.has(r))return[];e.push(r),r="",n="property";break}case"[":{if(n==="index")throw new Error("Invalid character in an index");if(n==="indexEnd"){n="index";break}if(s){s=!1,r+=i;break}if(n==="property"){if(PR.has(r))return[];e.push(r),r=""}n="index";break}case"]":{if(n==="index"){e.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if(n==="indexEnd")throw new Error("Invalid character after an index")}default:{if(n==="index"&&!Mqe.has(i))throw new Error("Invalid character in an index");if(n==="indexEnd")throw new Error("Invalid character after an index");n==="start"&&(n="property"),s&&(s=!1,r+="\\"),r+=i}}switch(s&&(r+="\\"),n){case"property":{if(PR.has(r))return[];e.push(r);break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}function jqe(t,e){if(typeof e!="number"&&Array.isArray(t)){const r=Number.parseInt(e,10);return Number.isInteger(r)&&t[r]===t[e]}return!1}function Tqe(t,e,r){if(!kqe(t)||typeof e!="string")return t;const n=Pqe(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(jqe(t,i)?t=s===n.length-1?void 0:null:t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}function da(t){const e=he.c(29),{disabled:r,color:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checkedIcon:f,checked:p,icon:m,indeterminate:h,indeterminateIcon:_,name:g,customColor:y,sx:b,label:x}=t,w=x===void 0?"":x,C=w?"inherit":0;let k;e[0]!==C?(k={mx:C},e[0]=C,e[1]=k):k=e[1];let A;e[2]!==y?(A=y&&{"&.Mui-checked svg":{color:y}},e[2]=y,e[3]=A):A=e[3];let P;e[4]!==b||e[5]!==A?(P={...b,...A},e[4]=b,e[5]=A,e[6]=P):P=e[6];let T;e[7]!==p||e[8]!==f||e[9]!==n||e[10]!==o||e[11]!==c||e[12]!==u||e[13]!==m||e[14]!==h||e[15]!==_||e[16]!==g||e[17]!==i||e[18]!==l||e[19]!==s||e[20]!==P||e[21]!==d?(T=a.jsx(XL,{color:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:p,checkedIcon:f,icon:m,indeterminate:h,name:g,indeterminateIcon:_,sx:P}),e[7]=p,e[8]=f,e[9]=n,e[10]=o,e[11]=c,e[12]=u,e[13]=m,e[14]=h,e[15]=_,e[16]=g,e[17]=i,e[18]=l,e[19]=s,e[20]=P,e[21]=d,e[22]=T):T=e[22];let j;return e[23]!==p||e[24]!==r||e[25]!==w||e[26]!==k||e[27]!==T?(j=a.jsx(Rv,{disabled:r,sx:k,checked:p,control:T,label:w}),e[23]=p,e[24]=r,e[25]=w,e[26]=k,e[27]=T,e[28]=j):j=e[28],j}const Eqe=I.forwardRef((t,e)=>{const r=he.c(8),{autoScale:n,children:s}=t;let i;r[0]!==n?(i=n&&{height:"calc(100% - 52px)",overflow:"auto",width:"100%",maxHeight:"calc(100% - 52px)",position:"relative"},r[0]=n,r[1]=i):i=r[1];let o;r[2]!==i?(o={...i},r[2]=i,r[3]=o):o=r[3];let l;return r[4]!==s||r[5]!==e||r[6]!==o?(l=a.jsx(uFe,{sx:o,ref:e,children:s}),r[4]=s,r[5]=e,r[6]=o,r[7]=l):l=r[7],l});function Rqe(t){const e=he.c(27),{selectable:r,selectedRows:n,selectedAllRows:s,rowsCount:i,rowsPerPage:o,showFirstLastButton:l,page:c,hidePagination:u,onPageChange:d,rowsPerPageOptions:f,onRowsPerPageChange:p,labelDisplayedRows:m,loading:h,customFooterComponent:_,hideRowsCount:g}=t,y=g===void 0?!1:g,b=h?"0.5":1;let x;e[0]!==b?(x={opacity:b},e[0]=b,e[1]=x):x=e[1];let w;e[2]!==_?(w=_&&a.jsx(gt,{sx:{ml:2,flexGrow:1,justifySelf:"flex-start"},children:_}),e[2]=_,e[3]=w):w=e[3];let C;e[4]!==r||e[5]!==s||e[6]!==n?(C=r&&a.jsxs(gt,{sx:{flexShrink:0,ml:2},children:[n?.length?a.jsxs(_e,{type:"body2",children:[n.length," ",`row${n.length>1?"s":""}`," selected"]}):null,s&&a.jsx(_e,{type:"body2",children:"All rows selected"})]}),e[4]=r,e[5]=s,e[6]=n,e[7]=C):C=e[7];let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k={flexShrink:0},e[8]=k):k=e[8];let A;e[9]!==u||e[10]!==y||e[11]!==m||e[12]!==d||e[13]!==p||e[14]!==c||e[15]!==i||e[16]!==o||e[17]!==f||e[18]!==l?(A=u?y?null:a.jsx(tN,{variant:"dense",children:a.jsxs(gt,{sx:{marginTop:2,marginBottom:2},children:[a.jsxs(_e,{type:"body2",children:[i," Rows"]})," "]})}):a.jsx(TFe,{rowsPerPageOptions:f||[-1],component:"div",count:i,rowsPerPage:o,page:c,onPageChange:d,onRowsPerPageChange:p,showFirstButton:l,showLastButton:l,labelDisplayedRows:m,sx:{"& .MuiTablePagination-actions":{display:"flex",ml:1},"& .MuiSelect-select":{pt:"5px"}}}),e[9]=u,e[10]=y,e[11]=m,e[12]=d,e[13]=p,e[14]=c,e[15]=i,e[16]=o,e[17]=f,e[18]=l,e[19]=A):A=e[19];let P;e[20]!==A?(P=a.jsx(gt,{sx:k,children:A}),e[20]=A,e[21]=P):P=e[21];let T;return e[22]!==x||e[23]!==w||e[24]!==C||e[25]!==P?(T=a.jsxs(QL,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:1,sx:x,children:[w,C,P]}),e[22]=x,e[23]=w,e[24]=C,e[25]=P,e[26]=T):T=e[26],T}const w2=Ce(na,{shouldForwardProp:t=>t!=="loading"})(({theme:t,loading:e})=>({borderBottom:e?"0":`1px solid ${t.palette.divider}`})),Iqe=Ce(FFe)(({theme:t})=>({"&.Mui-active, &":{"& .MuiTableSortLabel-icon":{color:t.palette.primary.main}}}));function Dqe(t){const e=he.c(56),{rowsCount:r,columns:n,order:s,orderBy:i,onSort:o,rowActions:l,loading:c,selectable:u,selectedRows:d,selectedAllRows:f,onSelectedAllRows:p,fullColSpan:m,rowDetail:h,disableSelectAll:_,stickyRowActions:g,dense:y}=t,b=ci();let x;e[0]!==o||e[1]!==s||e[2]!==i?(x=H=>{const K=i===H.key&&s===Gl.ASC?Gl.DESC:Gl.ASC,q=H.key;o&&o(K,q)},e[0]=o,e[1]=s,e[2]=i,e[3]=x):x=e[3];const w=x,C=!!(d&&d.length&&d.length<r&&r>0),k=!!(d&&d.length&&d.length===r&&r>0||f);let A;e[4]!==b.palette.background.paper?(A=br(b.palette.background.paper,.5),e[4]=b.palette.background.paper,e[5]=A):A=e[5];let P;e[6]!==l?.length?(P=l?.length&&{"&:last-child":{backdropFilter:"none"}},e[6]=l?.length,e[7]=P):P=e[7];let T;e[8]!==A||e[9]!==P?(T={"& th":{background:"transparent",backdropFilter:"blur(12px)",backgroundColor:A,...P}},e[8]=A,e[9]=P,e[10]=T):T=e[10];let j;e[11]!==y||e[12]!==c||e[13]!==h?(j=h&&a.jsx(w2,{loading:c,variant:"head",padding:"checkbox",sx:{fontSize:"16px",width:"48px",minWidth:"48px",...y&&{p:1}},children:a.jsx(te,{align:"center",justify:"center",children:a.jsx(ge.Info,{})})}),e[11]=y,e[12]=c,e[13]=h,e[14]=j):j=e[14];let R;e[15]!==y||e[16]!==_||e[17]!==k||e[18]!==C||e[19]!==c||e[20]!==p||e[21]!==u?(R=u&&a.jsx(w2,{loading:c,variant:"head",padding:"checkbox",children:!_&&a.jsx(da,{color:"primary",indeterminate:C,checked:k,onChange:p,disabled:c,size:y?"small":"medium"})}),e[15]=y,e[16]=_,e[17]=k,e[18]=C,e[19]=c,e[20]=p,e[21]=u,e[22]=R):R=e[22];let D;if(e[23]!==n||e[24]!==y||e[25]!==w||e[26]!==c||e[27]!==s||e[28]!==i){let H;e[30]!==y||e[31]!==w||e[32]!==c||e[33]!==s||e[34]!==i?(H=(W,K)=>a.jsx(w2,{align:W.numeric?"right":"left",sortDirection:i===W.key?s:!1,variant:"head",loading:c,sx:{fontWeight:"600",maxWidth:W.maxWidth?`${W.maxWidth}px`:"inherit",minWidth:W.minWidth?`${W.minWidth}px`:"inherit",width:W.width?`${W.width}px`:"inherit",...y&&{p:.5,pr:2}},children:a.jsx(Iqe,{active:W.sortable?i===W.key:!1,direction:i===W.key?s:Gl.ASC,onClick:()=>{W.sortable&&w(W)},sx:W.sortable?void 0:{cursor:"auto","&:hover":{color:"text.primary"},"& .MuiTableSortLabel-icon":{display:"none"}},children:W.label})},`${String(W.key)}-${K}`),e[30]=y,e[31]=w,e[32]=c,e[33]=s,e[34]=i,e[35]=H):H=e[35],D=n.map(H),e[23]=n,e[24]=y,e[25]=w,e[26]=c,e[27]=s,e[28]=i,e[29]=D}else D=e[29];let O;e[36]!==c||e[37]!==l?.length||e[38]!==g||e[39]!==b.palette.background.paper?(O=l?.length?a.jsx(w2,{padding:"checkbox",loading:c,sx:{...g&&{position:"sticky",right:0,backdropFilter:"blur(12px) !important",backgroundColor:`${br(b.palette.background.paper,.5)}`}}}):null,e[36]=c,e[37]=l?.length,e[38]=g,e[39]=b.palette.background.paper,e[40]=O):O=e[40];let N;e[41]!==j||e[42]!==R||e[43]!==D||e[44]!==O?(N=a.jsxs(d_,{children:[j,R,D,O]}),e[41]=j,e[42]=R,e[43]=D,e[44]=O,e[45]=N):N=e[45];let F;e[46]!==T||e[47]!==N?(F=a.jsx(OW,{sx:T,children:N}),e[46]=T,e[47]=N,e[48]=F):F=e[48];let U;e[49]!==y||e[50]!==m||e[51]!==c?(U=c?a.jsx(OW,{sx:{position:"sticky",top:y?"33px":"58px",left:0,right:0,zIndex:3},children:a.jsx(d_,{children:a.jsx(na,{colSpan:m,sx:{p:0,border:0},children:a.jsx(Nc,{color:"primary",thickness:1})})})}):null,e[49]=y,e[50]=m,e[51]=c,e[52]=U):U=e[52];let z;return e[53]!==F||e[54]!==U?(z=a.jsxs(a.Fragment,{children:[F,U]}),e[53]=F,e[54]=U,e[55]=z):z=e[55],z}var Gl=(t=>(t.ASC="asc",t.DESC="desc",t))(Gl||{});const $qe=Array.from({length:4});function Br(t){const e=he.c(153),{order:r,orderBy:n,columns:s,data:i,rowsCount:o,page:l,rowsPerPage:c,rowKey:u,onSort:d,rowActions:f,rowDetail:p,onPageChange:m,showFirstLastButton:h,loading:_,noDataText:g,autoScale:y,selectable:b,selectedRows:x,selectedAllRows:w,onSelectedRow:C,hidePagination:k,hideRowsCount:A,onRowsPerPageChange:P,rowsPerPageOptions:T,labelDisplayedRows:j,disableSelectAll:R,stickyRowActions:D,customRowSx:O,customFooterComponent:N,dense:F,onRowClick:U,containerRef:z}=t,H=r===void 0?"asc":r,W=g===void 0?"No data to display":g,K=As();let q;e[0]!==x?(q=x||[],e[0]=x,e[1]=q):q=e[1];const[X,Q]=I.useState(q),[Y,Z]=I.useState(!!w);let re;e[2]===Symbol.for("react.memo_cache_sentinel")?(re=[],e[2]=re):re=e[2];const[fe,de]=I.useState(re),{menuOpen:se,menuClose:le}=Jt();let ee;e[3]!==f?(ee=f?.filter(Nqe),e[3]=f,e[4]=ee):ee=e[4];const J=ee;let me;e[5]!==f?(me=f?.filter(Lqe),e[5]=f,e[6]=me):me=e[6];const pe=me,Se=Oqe;let ve;e[7]!==m?(ve=(Ae,ze)=>{m&&m(ze)},e[7]=m,e[8]=ve):ve=e[8];const xe=ve;let qe;e[9]!==P?(qe=Ae=>{const ze=Ae.target.value;P&&P(parseInt(ze))},e[9]=P,e[10]=qe):qe=e[10];const Le=qe;let Te;e[11]!==le||e[12]!==se||e[13]!==pe?(Te=(Ae,ze,_t)=>{pe&&(Ae.stopPropagation(),se({anchorEl:Ae.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:pe.filter(jt=>{const{hidden:Gt}=jt;return Gt?!Gt(ze,_t):!0}).map(jt=>{const{label:Gt,onClick:Yt,disabled:Rt,icon:At}=jt;return{label:Gt,value:Gt,disabled:typeof Rt=="function"?Rt(ze,_t):Rt,icon:At,onClick:()=>{le(),Yt(ze,_t)}}})}))},e[11]=le,e[12]=se,e[13]=pe,e[14]=Te):Te=e[14];const je=Te;let Ge;e[15]!==fe?(Ge=Ae=>fe.includes(Ae),e[15]=fe,e[16]=Ge):Ge=e[16];const nt=Ge;let Re;e[17]!==p?(Re=Ae=>p?typeof p.disabled=="function"?p.disabled(Ae):p.disabled:!0,e[17]=p,e[18]=Re):Re=e[18];const we=Re;let Me;e[19]!==nt||e[20]!==fe?(Me=Ae=>{const ze=nt(Ae);let _t;ze?_t=fe.filter(jt=>jt!==Ae):_t=[...fe,Ae],de(_t)},e[19]=nt,e[20]=fe,e[21]=Me):Me=e[21];const $e=Me;let Ve;e[22]!==Y||e[23]!==X?(Ve=Ae=>X.includes(Ae)||Y,e[22]=Y,e[23]=X,e[24]=Ve):Ve=e[24];const Ne=Ve;let Oe;e[25]!==Ne||e[26]!==C||e[27]!==b||e[28]!==X?(Oe=(Ae,ze)=>{if(!b)return;const _t=Ne(Ae);let jt;_t?jt=X.filter(Gt=>Gt!==Ae):jt=[...X,Ae],Q(jt),C&&C(jt,!1,ze,_t?1:0)},e[25]=Ne,e[26]=C,e[27]=b,e[28]=X,e[29]=Oe):Oe=e[29];const ft=Oe;let Ct;e[30]!==C||e[31]!==Y?(Ct=()=>{const Ae=[],ze=!Y;Z(ze),Q(Ae),C&&C(Ae,ze,null,ze?2:3)},e[30]=C,e[31]=Y,e[32]=Ct):Ct=e[32];const Et=Ct,at=s.length+(f?.length?1:0)+(p?1:0)+(b?1:0);let $t,Ee;e[33]!==w?($t=()=>{Z(!!w)},Ee=[w],e[33]=w,e[34]=$t,e[35]=Ee):($t=e[34],Ee=e[35]),I.useEffect($t,Ee);let Be,qt;e[36]!==x?(Be=()=>{x&&Q(x)},qt=[x],e[36]=x,e[37]=Be,e[38]=qt):(Be=e[37],qt=e[38]),I.useEffect(Be,qt);let ar;e[39]!==y?(ar=y&&{overflow:"hidden",maxHeight:"100%"},e[39]=y,e[40]=ar):ar=e[40];const hr=_?"none":"inherit";let ir;e[41]!==ar||e[42]!==hr?(ir={width:"100%",height:"100%",flex:"1 1 auto",...ar,pointerEvents:hr},e[41]=ar,e[42]=hr,e[43]=ir):ir=e[43];const cr=!!p;let kr;e[44]!==s||e[45]!==F||e[46]!==R||e[47]!==at||e[48]!==Et||e[49]!==_||e[50]!==d||e[51]!==H||e[52]!==n||e[53]!==f||e[54]!==o||e[55]!==b||e[56]!==Y||e[57]!==X||e[58]!==D||e[59]!==cr?(kr=a.jsx(Dqe,{rowsCount:o,order:H,orderBy:n,columns:s,onSort:d,rowActions:f,loading:_,selectable:b,disableSelectAll:R,selectedRows:X,selectedAllRows:Y,onSelectedAllRows:Et,fullColSpan:at,rowDetail:cr,stickyRowActions:D,dense:F}),e[44]=s,e[45]=F,e[46]=R,e[47]=at,e[48]=Et,e[49]=_,e[50]=d,e[51]=H,e[52]=n,e[53]=f,e[54]=o,e[55]=b,e[56]=Y,e[57]=X,e[58]=D,e[59]=cr,e[60]=kr):kr=e[60];let Rr;if(e[61]!==s||e[62]!==O||e[63]!==i||e[64]!==F||e[65]!==at||e[66]!==je||e[67]!==$e||e[68]!==ft||e[69]!==k||e[70]!==A||e[71]!==we||e[72]!==nt||e[73]!==Ne||e[74]!==_||e[75]!==U||e[76]!==p||e[77]!==u||e[78]!==b||e[79]!==Y||e[80]!==D||e[81]!==K||e[82]!==J||e[83]!==pe){let Ae;e[85]!==s||e[86]!==O||e[87]!==F||e[88]!==at||e[89]!==je||e[90]!==$e||e[91]!==ft||e[92]!==k||e[93]!==A||e[94]!==we||e[95]!==nt||e[96]!==Ne||e[97]!==_||e[98]!==U||e[99]!==p||e[100]!==u||e[101]!==b||e[102]!==Y||e[103]!==D||e[104]!==K||e[105]!==J||e[106]!==pe?(Ae=(ze,_t)=>{const jt=we(ze),Gt=O?O(ze):{};return a.jsxs(I.Fragment,{children:[a.jsxs(d_,{tabIndex:-1,"data-testid":`row-key-${ze[u]}`,selected:Ne(ze[u]),sx:{opacity:_?.5:1,transition:"opacity 300ms",...U&&{cursor:"pointer","&:hover":{backgroundColor:"divider"}},...k&&A&&{"&:last-child td":{borderBottomColor:"transparent"}},...Gt},onClick:()=>{U&&U(ze)},children:[p&&a.jsx(na,{padding:"checkbox",sx:{p:0,pl:.1,width:"48px",minWidth:"48px",position:"relative"},children:a.jsx(Zr,{size:F?"small":"medium",onClick:()=>{$e(ze[u])},disabled:jt,sx:{p:0,pl:.1,position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",borderRadius:0,...jt&&{opacity:.4}},children:nt(ze[u])?a.jsx(ge.Minus,{}):a.jsx(ge.Plus,{})})}),b&&a.jsx(na,{padding:"checkbox",children:a.jsx(da,{color:"primary",size:F?"small":"medium",checked:Ne(ze[u]),onChange:()=>ft(ze[u],ze),disabled:Y})}),s.map((Yt,Rt)=>a.jsx(na,{align:Yt.numeric?"right":"left",sx:{maxWidth:Yt.maxWidth?`${Yt.maxWidth}px`:"inherit",minWidth:Yt.minWidth?`${Yt.minWidth}px`:"inherit",width:Yt.width?`${Yt.width}px`:"inherit",wordBreak:Yt.wordBreak?Yt.wordBreak:"inherit",whiteSpace:Yt.whiteSpace?Yt.whiteSpace:"inherit",...F&&{py:0,pl:.5,pr:2}},children:Se(Yt,ze,_t)},`${String(Yt.key)}-${Rt}-${_t}`)),J||pe?a.jsx(na,{align:"right",sx:{...D&&{position:"sticky",backdropFilter:"blur(12px) !important",backgroundColor:`${br(K.palette.background.paper,.5)}`,borderLeft:"1px solid",borderLeftColor:"divider",right:0,px:1.5,py:0}},children:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",justify:"flex-end",children:[J?.map((Yt,Rt)=>a.jsx(hae,{title:Yt.label,children:a.jsx("div",{children:a.jsx(Zr,{size:"small",onClick:()=>Yt.onClick(ze,_t),disabled:typeof Yt.disabled=="function"?Yt.disabled(ze,_t):Yt.disabled,children:Yt.icon})})},Rt)),!!pe?.length&&a.jsx(Zr,{size:"small",onClick:Yt=>je(Yt,ze,_t),children:a.jsx(ge.More,{size:24})})]})}):null]}),p&&!we(ze)&&a.jsx(d_,{children:a.jsx(na,{colSpan:at,sx:{p:0,borderBottom:0},children:a.jsx(Qb,{in:nt(ze[u]),children:a.jsx(gt,{sx:{p:F?1:2,pl:F?6:8,borderBottom:"1px solid",borderColor:"divider"},children:p.content(ze)})})})})]},`${ze[u]}-${_t}}`)},e[85]=s,e[86]=O,e[87]=F,e[88]=at,e[89]=je,e[90]=$e,e[91]=ft,e[92]=k,e[93]=A,e[94]=we,e[95]=nt,e[96]=Ne,e[97]=_,e[98]=U,e[99]=p,e[100]=u,e[101]=b,e[102]=Y,e[103]=D,e[104]=K,e[105]=J,e[106]=pe,e[107]=Ae):Ae=e[107],Rr=i.map(Ae),e[61]=s,e[62]=O,e[63]=i,e[64]=F,e[65]=at,e[66]=je,e[67]=$e,e[68]=ft,e[69]=k,e[70]=A,e[71]=we,e[72]=nt,e[73]=Ne,e[74]=_,e[75]=U,e[76]=p,e[77]=u,e[78]=b,e[79]=Y,e[80]=D,e[81]=K,e[82]=J,e[83]=pe,e[84]=Rr}else Rr=e[84];let Ut;e[108]!==s||e[109]!==i.length||e[110]!==_||e[111]!==f?.length||e[112]!==p||e[113]!==b?(Ut=!i.length&&_?$qe.map((Ae,ze)=>a.jsxs(d_,{children:[p&&a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}),b&&a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}),s.map((_t,jt)=>a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})},`${String(_t.key)}-${jt}-${ze}`)),f?.length?a.jsx(na,{children:a.jsx(Dt,{variant:"rectangular"})}):null]},`skeleton-${ze}`)):null,e[108]=s,e[109]=i.length,e[110]=_,e[111]=f?.length,e[112]=p,e[113]=b,e[114]=Ut):Ut=e[114];let fn;e[115]!==i.length||e[116]!==at||e[117]!==_||e[118]!==W?(fn=!i.length&&!_?a.jsx(d_,{children:a.jsx(na,{colSpan:at,sx:{p:2,border:0},children:a.jsx(Lr,{severity:"info",message:W,sx:{backgroundColor:"divider"}})})}):null,e[115]=i.length,e[116]=at,e[117]=_,e[118]=W,e[119]=fn):fn=e[119];let Zt;e[120]!==Rr||e[121]!==Ut||e[122]!==fn?(Zt=a.jsxs(rFe,{children:[Rr,Ut,fn]}),e[120]=Rr,e[121]=Ut,e[122]=fn,e[123]=Zt):Zt=e[123];let _r;e[124]!==y||e[125]!==kr||e[126]!==Zt?(_r=a.jsxs(Z9e,{stickyHeader:y,children:[kr,Zt]}),e[124]=y,e[125]=kr,e[126]=Zt,e[127]=_r):_r=e[127];let st;e[128]!==y||e[129]!==z||e[130]!==_r?(st=a.jsx(Eqe,{autoScale:y,ref:z,children:_r}),e[128]=y,e[129]=z,e[130]=_r,e[131]=st):st=e[131];let wt;e[132]!==N||e[133]!==i.length||e[134]!==xe||e[135]!==Le||e[136]!==k||e[137]!==A||e[138]!==j||e[139]!==_||e[140]!==l||e[141]!==o||e[142]!==c||e[143]!==T||e[144]!==b||e[145]!==Y||e[146]!==X||e[147]!==h?(wt=i.length>0&&a.jsx(Rqe,{customFooterComponent:N,selectable:b,selectedRows:X,selectedAllRows:Y,rowsCount:o,rowsPerPage:c,page:l,showFirstLastButton:h,hidePagination:k,hideRowsCount:A,onPageChange:xe,onRowsPerPageChange:Le,rowsPerPageOptions:T,labelDisplayedRows:j,loading:_}),e[132]=N,e[133]=i.length,e[134]=xe,e[135]=Le,e[136]=k,e[137]=A,e[138]=j,e[139]=_,e[140]=l,e[141]=o,e[142]=c,e[143]=T,e[144]=b,e[145]=Y,e[146]=X,e[147]=h,e[148]=wt):wt=e[148];let Pe;return e[149]!==ir||e[150]!==st||e[151]!==wt?(Pe=a.jsxs(gt,{sx:ir,children:[st,wt]}),e[149]=ir,e[150]=st,e[151]=wt,e[152]=Pe):Pe=e[152],Pe}function Oqe(t,e,r){const n=Tqe(e,t.key.toString()),s=typeof n>"u"||n===null;return t.cellRender?t.cellRender(e,r):s?"":a.jsx(_e,{type:"body2",children:`${n}`})}function Lqe(t){return t.wrapped}function Nqe(t){return!t.wrapped}function Fqe(){const t=he.c(19),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"aaa.status.radius.local_addr"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addr",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"aaa.status.radius.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==i||t[9]!==l?(c=[i,l],t[8]=i,t[9]=l,t[10]=c):c=t[10];const u=c;let d;t[11]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(mb,{variant:"rounded",height:"100%",sx:{m:2}}),t[11]=d):d=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(en,{}),t[12]=f):f=t[12];let p;t[13]!==u||t[14]!==n.state?(p=h=>a.jsx(Br,{autoScale:!0,data:h||[],orderBy:"local_addr",page:0,loading:n.state!=="idle",rowsCount:h?.length,rowsPerPage:h?.length,rowKey:"local_addr",columns:u,hidePagination:!0}),t[13]=u,t[14]=n.state,t[15]=p):p=t[15];let m;return t[16]!==r.radiusStatus||t[17]!==p?(m=a.jsx(I.Suspense,{fallback:d,children:a.jsx(Qt,{resolve:r.radiusStatus,errorElement:f,children:p})}),t[16]=r.radiusStatus,t[17]=p,t[18]=m):m=t[18],m}const Uqe=async()=>{const t=`${$.apis.aaa.radius.status}`;return De({options:{url:t,method:"GET"}})};async function Bqe(t){return Wt({loaderArgs:t,deferred:!0,data:{radiusStatus:Uqe()}})}const yY=Pr();function zqe(t){const{dev:e,port:r,host:n,tos:s,name:i}=t;return{erlang:{distribution:{host:n,name:i,port:+r,...e!==""&&{dev:e},...s!==""&&{tos:+s}}}}}function qqe(t){const{dev:e,port:r,host:n,tos:s,name:i}=t.erlang.distribution;return{dev:e??"",port:+r,host:n,tos:s??"",name:i}}const Vqe=dr().shape({dev:We(),host:We().required(yY.formatMessage({id:"network_configuration.form.errors.required"})),name:We().required(yY.formatMessage({id:"network_configuration.form.errors.required"})),port:kn().required().min(1025).max(65535),tos:kn().min(0).max(255)}),Hqe=Pr(),Gqe=dr().shape({node:We().required(Hqe.formatMessage({id:"cluster.form.errors.required"})).strict(!0)}),Wqe=dr().shape({force:li()});function Yqe(t){const e=he.c(6);let r,n;e[0]!==t?({children:r,...n}=t,e[0]=t,e[1]=r,e[2]=n):(r=e[1],n=e[2]);let s;return e[3]!==r||e[4]!==n?(s=a.jsx(dne,{...n,children:r}),e[3]=r,e[4]=n,e[5]=s):s=e[5],s}function dt(t){const e=he.c(86);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P,T,j;e[0]!==t?({color:n,disabled:s,size:k,variant:j,label:u,error:i,fullWidth:o,helperText:l,multiline:f,name:p,value:T,placeholder:y,required:x,onChange:h,onKeyDown:_,onBlur:m,InputProps:r,tooltip:A,type:P,min:d,pattern:g,sx:C,inputProps:c,showPasswordVisibility:w,...b}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g,e[16]=y,e[17]=b,e[18]=x,e[19]=w,e[20]=C,e[21]=k,e[22]=A,e[23]=P,e[24]=T,e[25]=j):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15],y=e[16],b=e[17],x=e[18],w=e[19],C=e[20],k=e[21],A=e[22],P=e[23],T=e[24],j=e[25]);const R=k===void 0?"small":k,[D,O]=I.useState(!1);let N;e[26]!==D?(N=()=>{O(!D)},e[26]=D,e[27]=N):N=e[27];const F=N,U=iN(),z=!!f;let H;e[28]!==p?(H=p&&{"data-testid":`field-${p}`},e[28]=p,e[29]=H):H=e[29];let W;e[30]!==p?(W=p&&{"data-testid":`field-input-${p}`},e[30]=p,e[31]=W):W=e[31];let K;e[32]!==d||e[33]!==P?(K=P==="number"&&{step:"any",min:d},e[32]=d,e[33]=P,e[34]=K):K=e[34];let q;e[35]!==P?(q=P==="time"&&{step:"1"},e[35]=P,e[36]=q):q=e[36];let X;e[37]!==c||e[38]!==g||e[39]!==W||e[40]!==K||e[41]!==q?(X={...W,pattern:g,...K,...q,...c},e[37]=c,e[38]=g,e[39]=W,e[40]=K,e[41]=q,e[42]=X):X=e[42];const Q=U&&U,Y=D?void 0:P;let Z;e[43]!==r?.endAdornment||e[44]!==A?(Z=A&&{endAdornment:a.jsxs(gt,{sx:{display:"flex",alignItems:"center"},children:[r?.endAdornment,a.jsx(Mn,{title:A,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})})]})},e[43]=r?.endAdornment,e[44]=A,e[45]=Z):Z=e[45];let re;e[46]!==F||e[47]!==p||e[48]!==D||e[49]!==w?(re=w&&{endAdornment:a.jsx(Yqe,{position:"end",children:a.jsx(Zr,{"data-testid":`field-${p}-button-showPassword`,"aria-label":"toggle password visibility",onClick:F,children:D?a.jsx(ge.PasswordHide,{}):a.jsx(ge.PasswordView,{})})})},e[46]=F,e[47]=p,e[48]=D,e[49]=w,e[50]=re):re=e[50];let fe;e[51]!==r||e[52]!==Y||e[53]!==Z||e[54]!==re||e[55]!==Q?(fe={...Q,type:Y,...Z,...re,...r},e[51]=r,e[52]=Y,e[53]=Z,e[54]=re,e[55]=Q,e[56]=fe):fe=e[56];let de;e[57]===Symbol.for("react.memo_cache_sentinel")?(de={opacity:.7},e[57]=de):de=e[57];let se;e[58]!==A?(se=A&&{".MuiAutocomplete-endAdornment":{position:"relative"},input:{width:"calc(100% - 40px)"}},e[58]=A,e[59]=se):se=e[59];let le;e[60]!==C||e[61]!==se?(le={...C,position:"relative",".Mui-disabled":de,...se},e[60]=C,e[61]=se,e[62]=le):le=e[62];let ee;return e[63]!==n||e[64]!==s||e[65]!==i||e[66]!==o||e[67]!==l||e[68]!==u||e[69]!==f||e[70]!==p||e[71]!==m||e[72]!==h||e[73]!==_||e[74]!==y||e[75]!==b||e[76]!==x||e[77]!==R||e[78]!==fe||e[79]!==le||e[80]!==z||e[81]!==H||e[82]!==X||e[83]!==T||e[84]!==j?(ee=a.jsx(k0,{...b,name:p,value:T,color:n,disabled:s,size:R,variant:j,label:u,error:i,fullWidth:o,helperText:l,multiline:z,maxRows:f,minRows:f,placeholder:y,required:x,onChange:h,onKeyDown:_,onBlur:m,...H,inputProps:X,InputProps:fe,sx:le}),e[63]=n,e[64]=s,e[65]=i,e[66]=o,e[67]=l,e[68]=u,e[69]=f,e[70]=p,e[71]=m,e[72]=h,e[73]=_,e[74]=y,e[75]=b,e[76]=x,e[77]=R,e[78]=fe,e[79]=le,e[80]=z,e[81]=H,e[82]=X,e[83]=T,e[84]=j,e[85]=ee):ee=e[85],ee}function xr(t){const e=he.c(68),{sx:r,expanded:n,disableGutters:s,square:i,title:o,content:l,onChange:c,spacing:u,reversedArrow:d,subtitle:f,actions:p,actionsComponent:m,elevation:h,error:_,unmountOnExit:g,modalElevation:y}=t,b=n===void 0?!1:n,x=s===void 0?!1:s,w=g===void 0?!1:g,[C,k]=I.useState(b),{menuOpen:A,menuClose:P}=Jt();let T;e[0]!==c?(T=(xe,qe)=>{c&&c(xe,qe),k(qe)},e[0]=c,e[1]=T):T=e[1];const j=T;let R;e[2]!==p||e[3]!==P||e[4]!==A?(R=xe=>{p&&(xe.stopPropagation(),A({anchorEl:xe.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:p.map(qe=>{const{label:Le,onClick:Te,disabled:je,icon:Ge}=qe;return{label:Le,value:Le,disabled:typeof je=="function"?je():je,icon:Ge,onClick:()=>{P(),Te()}}})}))},e[2]=p,e[3]=P,e[4]=A,e[5]=R):R=e[5];const D=R;let O,N;e[6]!==b?(O=()=>{k(b)},N=[b],e[6]=b,e[7]=O,e[8]=N):(O=e[7],N=e[8]),I.useEffect(O,N);let F,U;e[9]===Symbol.for("react.memo_cache_sentinel")?(F={display:"none !important"},U={width:"100%"},e[9]=F,e[10]=U):(F=e[9],U=e[10]);let z;e[11]!==_?(z=_&&{border:"2px solid",borderColor:"error.main"},e[11]=_,e[12]=z):z=e[12];let H;e[13]!==h||e[14]!==y?(H=h&&y&&{backgroundImage:xe=>xe.palette.mode==="dark"?`linear-gradient(${br("#fff",+hh(24+h*24))}, ${br("#fff",+hh(24+h*24))})`:"none"},e[13]=h,e[14]=y,e[15]=H):H=e[15];let W;e[16]!==r||e[17]!==z||e[18]!==H?(W={"&:before":F,"& .MuiAccordion-region":U,...z,...H,...r},e[16]=r,e[17]=z,e[18]=H,e[19]=W):W=e[19];let K;e[20]!==w?(K={transition:{unmountOnExit:w}},e[20]=w,e[21]=K):K=e[21];let q;e[22]!==d?(q=d&&{flexDirection:"row-reverse"},e[22]=d,e[23]=q):q=e[23];let X;e[24]!==q?(X={...q},e[24]=q,e[25]=X):X=e[25];let Q;e[26]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.DownArrow,{}),e[26]=Q):Q=e[26];let Y;e[27]!==d?(Y=d&&{ml:2},e[27]=d,e[28]=Y):Y=e[28];let Z;e[29]!==Y?(Z={...Y},e[29]=Y,e[30]=Z):Z=e[30];let re;e[31]!==o?(re=typeof o=="string"?a.jsx(_e,{type:"subtitle1",color:"text.secondary",children:o}):o,e[31]=o,e[32]=re):re=e[32];let fe;e[33]!==f||e[34]!==Z||e[35]!==re?(fe=a.jsxs(te,{sx:Z,spacing:0,children:[re,f]}),e[33]=f,e[34]=Z,e[35]=re,e[36]=fe):fe=e[36];let de;e[37]!==p||e[38]!==m?(de=m&&a.jsx(gt,{sx:{flex:"0 0 auto",...!p&&{pr:2}},children:m}),e[37]=p,e[38]=m,e[39]=de):de=e[39];let se;e[40]!==p?.length||e[41]!==D||e[42]!==d?(se=!!p?.length&&a.jsx(gt,{sx:{flex:"0 0 auto",...!d&&{pr:2}},children:a.jsx(Zr,{component:"span",role:"button",onClick:D,children:a.jsx(ge.More,{})})}),e[40]=p?.length,e[41]=D,e[42]=d,e[43]=se):se=e[43];let le;e[44]!==de||e[45]!==se?(le=a.jsxs(te,{direction:"row",align:"center",children:[de,se]}),e[44]=de,e[45]=se,e[46]=le):le=e[46];let ee;e[47]!==fe||e[48]!==le?(ee=a.jsxs(te,{justify:"space-between",align:"center",fullWidth:!0,direction:"row",children:[fe,le]}),e[47]=fe,e[48]=le,e[49]=ee):ee=e[49];let J;e[50]!==X||e[51]!==ee?(J=a.jsx(dNe,{sx:X,expandIcon:Q,children:ee}),e[50]=X,e[51]=ee,e[52]=J):J=e[52];let me;e[53]!==l?(me=a.jsx(iNe,{children:l}),e[53]=l,e[54]=me):me=e[54];let pe;e[55]!==x||e[56]!==h||e[57]!==C||e[58]!==j||e[59]!==i||e[60]!==W||e[61]!==K||e[62]!==J||e[63]!==me?(pe=a.jsxs(tNe,{sx:W,disableGutters:x,expanded:C,onChange:j,square:i,elevation:h,slotProps:K,children:[J,me]}),e[55]=x,e[56]=h,e[57]=C,e[58]=j,e[59]=i,e[60]=W,e[61]=K,e[62]=J,e[63]=me,e[64]=pe):pe=e[64];const Se=pe;let ve;return e[65]!==Se||e[66]!==u?(ve=u?a.jsx("div",{children:Se}):Se,e[65]=Se,e[66]=u,e[67]=ve):ve=e[67],ve}function Jn(t){const e=he.c(17),{sx:r,spacing:n,children:s,exclusive:i}=t,o=n===void 0?0:n,l=i===void 0?!0:i,[c,u]=I.useState(null);let d,f;e[0]!==s||e[1]!==l?(d=()=>{l&&I.Children.forEach(s,(h,_)=>{h.props.expanded&&u(_)})},f=[s,l],e[0]=s,e[1]=l,e[2]=d,e[3]=f):(d=e[2],f=e[3]),I.useEffect(d,f);let p;if(e[4]!==s||e[5]!==l||e[6]!==c||e[7]!==o){let h;e[9]!==l||e[10]!==c||e[11]!==o?(h=(_,g)=>{let y={disableGutters:o?!0:!_.props.disableGutters,group:!0,spacing:o};return l&&(y={...y,expanded:c===g,onChange:(b,x)=>{_.props.onChange&&_.props.onChange(b,x),u(g)}}),I.cloneElement(_,y)},e[9]=l,e[10]=c,e[11]=o,e[12]=h):h=e[12],p=I.Children.map(s,h),e[4]=s,e[5]=l,e[6]=c,e[7]=o,e[8]=p}else p=e[8];let m;return e[13]!==o||e[14]!==r||e[15]!==p?(m=a.jsx(te,{sx:r,spacing:o,children:p}),e[13]=o,e[14]=r,e[15]=p,e[16]=m):m=e[16],m}function Kqe(t){const e=he.c(12),{nf:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i}=Ys(),{submit:o,data:l,state:c}=i;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={force:!1},e[0]=u):u=e[0];let d;e[1]!==r||e[2]!==o?(d=m=>{const{force:h}=m;o({force:h},{method:"POST",encType:"application/json",action:`${r===ue.PLS?"platform":r}/cluster/leave-cluster`})},e[1]=r,e[2]=o,e[3]=d):d=e[3];let f;e[4]!==l||e[5]!==s||e[6]!==n||e[7]!==c?(f=()=>a.jsxs(_s,{children:[a.jsx(_e,{sx:{mb:1},children:n.formatMessage({id:"cluster.dialog.leave.description"})}),a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"force",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsx(da,{size:"small",label:n.formatMessage({id:"cluster.dialog.leave.force"}),checked:h.value,onChange:(y,b)=>{g(h.name,b)}})}}),a.jsx(Xr,{data:l}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"cluster.dialog.leave.cancel"}),variant:"outlined",onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"cluster.dialog.leave.confirm"}),type:"submit",loading:c!=="idle"})]})]})})]}),e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=f):f=e[8];let p;return e[9]!==d||e[10]!==f?(p=a.jsx(Wr,{validationSchema:Wqe,initialValues:u,onSubmit:d,children:f}),e[9]=d,e[10]=f,e[11]=p):p=e[11],p}const Qqe=t=>{const e=he.c(50),{data:r,onClusterJoin:n,clusterJoinLoading:s,disabled:i,nf:o}=t,l=ci(),c=Ye(),{confirmationDialogOpen:u,confirmationDialogClose:d,popoverOpen:f,popoverClose:p,dialogOpen:m}=Jt();let h;e[0]!==d||e[1]!==u||e[2]!==c||e[3]!==p?(h=async(W,K)=>{const q=await W();Object.keys(q).length===0&&u({title:c.formatMessage({id:"cluster.dialog.join.title"}),alertMessage:c.formatMessage({id:"cluster.dialog.join.description"}),onCancel:d,onConfirm:()=>{p(),K()},severity:"danger",cancelButtonText:c.formatMessage({id:"cluster.dialog.join.cancel"}),continueButtonText:c.formatMessage({id:"cluster.dialog.join.confirm"})})},e[0]=d,e[1]=u,e[2]=c,e[3]=p,e[4]=h):h=e[4];const _=h;let g;e[5]!==m||e[6]!==c||e[7]!==o?(g=()=>{m({title:c.formatMessage({id:"cluster.dialog.leave.title"}),content:()=>a.jsx(Kqe,{nf:o})})},e[5]=m,e[6]=c,e[7]=o,e[8]=g):g=e[8];const y=g;let b;e[9]!==s||e[10]!==i||e[11]!==_||e[12]!==c||e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==f?(b=W=>{const K=function(X){const{node:Q}=X;n&&n({node:`${o}@${Q}`})};f({anchorEl:W.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},content:()=>a.jsx(Wr,{onSubmit:K,initialValues:{node:""},validationSchema:Gqe,children:q=>{const{submitForm:X,validateForm:Q}=q;return a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{sx:{minWidth:"430px"},children:[a.jsx(Ke,{name:"node",children:Y=>{const{field:Z,meta:re}=Y;return a.jsx(a.Fragment,{children:a.jsx(dt,{...Z,label:c.formatMessage({id:"cluster.form.node"}),size:"small",error:!!re.error,helperText:re.error,disabled:i,placeholder:c.formatMessage({id:"cluster.form.node_placeholder"})})})}}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{variant:"outlined",type:"reset",size:"medium",disabled:!Ue(ie.configuration)||i,onClick:p,text:c.formatMessage({id:"cluster.buttons.cancel"})}),a.jsx(Ze,{type:"button",size:"medium",text:c.formatMessage({id:"cluster.buttons.join"}),onClick:()=>void _(Q,X),disabled:!Ue(ie.configuration)||i,loading:s})]})]})})}})})},e[9]=s,e[10]=i,e[11]=_,e[12]=c,e[13]=o,e[14]=n,e[15]=p,e[16]=f,e[17]=b):b=e[17];const x=b,w=Zqe,C=Xqe;let k;e[18]!==c?(k=c.formatMessage({id:"cluster.buttons.leave_cluster"}),e[18]=c,e[19]=k):k=e[19];const A=i||r.nodes.length===1;let P;e[20]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Shift,{}),e[20]=P):P=e[20];let T;e[21]!==y||e[22]!==k||e[23]!==A?(T=a.jsx(Ze,{variant:"outlined",text:k,onClick:y,disabled:A,startIcon:P}),e[21]=y,e[22]=k,e[23]=A,e[24]=T):T=e[24];let j;e[25]!==c?(j=c.formatMessage({id:"cluster.buttons.join_cluster"}),e[25]=c,e[26]=j):j=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Cluster,{}),e[27]=R):R=e[27];let D;e[28]!==s||e[29]!==i||e[30]!==x||e[31]!==j?(D=a.jsx(Ze,{text:j,startIcon:R,onClick:x,disabled:i,loading:s}),e[28]=s,e[29]=i,e[30]=x,e[31]=j,e[32]=D):D=e[32];let O;e[33]!==D||e[34]!==T?(O=a.jsx(hs,{children:a.jsxs(te,{direction:"row",spacing:1,justify:"flex-end",children:[T,D]})}),e[33]=D,e[34]=T,e[35]=O):O=e[35];let N;e[36]!==c?(N=c.formatMessage({id:"cluster.title"}),e[36]=c,e[37]=N):N=e[37];let F;e[38]!==r||e[39]!==c||e[40]!==l?(F=C(r).map(W=>{const K=W.repositories?.every(Jqe),q=W.repositories.reduce(eVe,0),X=W.repositories.reduce(tVe,0);return a.jsx(xr,{elevation:2,title:W.name,sx:{...!K&&{border:`1px solid ${l.palette.warning.main} !important`}},subtitle:a.jsxs(te,{direction:"row",align:"center",justify:"space-between",nowrap:!0,spacing:2,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[a.jsx(_e,{children:c.formatMessage({id:"cluster.status.repositories"})}),!!q&&a.jsx(bi,{label:`${q}`,status:nn.SUCCESS}),!!X&&a.jsx(bi,{label:`${X}`,status:nn.ERROR})]}),a.jsxs(te,{direction:"row",align:"center",children:[W.name===r.current_node&&a.jsx(ms,{label:c.formatMessage({id:"cluster.status.current_node"}),size:"small"}),!K&&a.jsx(Mn,{title:c.formatMessage({id:"cluster.status.repo_with_errors"}),children:a.jsx(gt,{sx:{color:"warning"},children:a.jsx(ge.StatusWarning,{})})})]})]}),content:a.jsxs(a.Fragment,{children:[!!W.repositories&&!!W.repositories.length&&a.jsx(te,{spacing:2,divided:!0,children:W.repositories.map(Q=>a.jsxs(te,{nowrap:!0,justify:"space-between",direction:"row",align:"center",children:[a.jsxs(te,{direction:"row",nowrap:!0,spacing:1,children:[a.jsx(bi,{label:Q.name,status:w(Q.status)}),Q.status==="ERROR"&&a.jsx(Mn,{title:"Repo has error!",children:a.jsx(gt,{sx:{color:"error"},children:a.jsx(ge.StatusError,{})})})]}),a.jsx(_e,{sx:{backgroundColor:Q.type==="CP"?l.palette.boy.light:l.palette.girl.light,color:Q.type==="CP"?l.palette.boy.contrastText:l.palette.girl.contrastText,fontWeight:"bold",fontSize:"12px",borderRadius:5,px:1},children:Q.type})]},Q.name))}),!W.repositories?.length&&a.jsx(Lr,{severity:"warning",title:c.formatMessage({id:"cluster.message.no_repo"})})]})},W.name)}),e[38]=r,e[39]=c,e[40]=l,e[41]=F):F=e[41];let U;e[42]!==F?(U=a.jsx(Kt,{children:a.jsx(Jn,{spacing:2,exclusive:!1,children:F})}),e[42]=F,e[43]=U):U=e[43];let z;e[44]!==N||e[45]!==U?(z=a.jsx(pr,{title:N,children:U}),e[44]=N,e[45]=U,e[46]=z):z=e[46];let H;return e[47]!==O||e[48]!==z?(H=a.jsxs(a.Fragment,{children:[O,z]}),e[47]=O,e[48]=z,e[49]=H):H=e[49],H};function Zqe(t){switch(t){case"UP":return nn.SUCCESS;case"DOWN":return nn.ERROR;case"ERROR":return nn.ERROR;default:return nn.DEFAULT}}function Xqe(t){const e=t.nodes.find(n=>n.name===t.current_node),r=t.nodes.filter(n=>n.name!==t.current_node);return e?[e,...r]:r}function Jqe(t){return t.status==="UP"}function eVe(t,e){return e.status==="UP"?t+1:t}function tVe(t,e){return e.status!=="UP"?t+1:t}function al(t){const e=he.c(4),{children:r,spacing:n,sx:s}=t,i=n===void 0?2:n;let o;return e[0]!==r||e[1]!==i||e[2]!==s?(o=a.jsx(ca,{container:!0,spacing:i,sx:s,children:r}),e[0]=r,e[1]=i,e[2]=s,e[3]=o):o=e[3],o}function Is(t){const e=he.c(5),{children:r,size:n,zeroMinWidth:s,sx:i}=t;let o;return e[0]!==r||e[1]!==n||e[2]!==i||e[3]!==s?(o=a.jsx(ca,{item:!0,...n,zeroMinWidth:s,sx:i,children:r}),e[0]=r,e[1]=n,e[2]=i,e[3]=s,e[4]=o):o=e[4],o}function rVe(t){const e=he.c(18),{data:r,onSubmit:n,error:s,disabled:i,loading:o}=t,l=Ye();let c;e[0]!==n?(c=_=>{n&&n(_)},e[0]=n,e[1]=c):c=e[1];const u=c;let d;e[2]!==l?(d=l.formatMessage({id:"network_configuration.fieldset"}),e[2]=l,e[3]=d):d=e[3];let f;e[4]!==r?(f=qqe(r),e[4]=r,e[5]=f):f=e[5];let p;e[6]!==i||e[7]!==s||e[8]!==l||e[9]!==o?(p=_=>{const{dirty:g}=_;return a.jsx(dn,{canWrite:Ue(ie.configuration),children:a.jsxs(te,{direction:"column",spacing:2,align:"flex-start",children:[a.jsxs(al,{children:[a.jsx(Is,{size:{xs:12},children:a.jsx(Ke,{name:"name",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.name"}),size:"small",error:!!x.error,helperText:x.error,sx:{display:"none"}})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"host",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.host"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"port",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.port"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"dev",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.dev"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})}),a.jsx(Is,{size:{xs:12,sm:6},children:a.jsx(Ke,{name:"tos",children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,fullWidth:!0,label:l.formatMessage({id:"network_configuration.form.tos"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}})})]}),a.jsx(Xr,{data:s,sx:{width:"100%"}}),a.jsx(Ze,{type:"submit",text:l.formatMessage({id:"network_configuration.buttons.persist_and_reboot"}),disabled:!Ue(ie.configuration)||i||!g,loading:o})]})})},e[6]=i,e[7]=s,e[8]=l,e[9]=o,e[10]=p):p=e[10];let m;e[11]!==u||e[12]!==f||e[13]!==p?(m=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:f,validationSchema:Vqe,onSubmit:u,enableReinitialize:!0,children:p})}),e[11]=u,e[12]=f,e[13]=p,e[14]=m):m=e[14];let h;return e[15]!==d||e[16]!==m?(h=a.jsx(pr,{title:d,children:m}),e[15]=d,e[16]=m,e[17]=h):h=e[17],h}function nVe(){const t=he.c(18),e=Gr(),{submit:r,data:n,state:s}=gr(),{submit:i,state:o}=gr(),l=s!=="idle"||o!=="idle";let c;t[0]!==r?(c=y=>{r(zqe(y),{method:"PUT",encType:"application/json",action:"apply-boot-config"})},t[0]=r,t[1]=c):c=t[1];const u=c;let d;t[2]!==i?(d=y=>{const{node:b}=y;i({node:b},{method:"POST",encType:"application/json",action:"join-cluster"})},t[2]=i,t[3]=d):d=t[3];const f=d;let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(mb,{variant:"rounded",sx:{height:"267px"}}),t[4]=p):p=t[4];let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsxs(te,{spacing:2,children:[p,a.jsx(mb,{variant:"rounded",sx:{height:"187px"}})]}),t[5]=m):m=t[5];let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Tr,{}),t[6]=h):h=t[6];let _;t[7]!==n||t[8]!==s||t[9]!==o||t[10]!==l||t[11]!==u||t[12]!==f||t[13]!==e.clusterStatus?(_=y=>a.jsxs(te,{spacing:2,children:[a.jsx(rVe,{data:y,onSubmit:u,disabled:l,loading:s!=="idle",error:n}),a.jsx(I.Suspense,{fallback:a.jsx(mb,{variant:"rounded",sx:{height:"187px"}}),children:a.jsx(Qt,{resolve:e.clusterStatus,errorElement:a.jsx(Tr,{}),children:b=>a.jsx(a.Fragment,{children:b&&a.jsx(Qqe,{nf:y.erlang.distribution.name,data:b,onClusterJoin:f,clusterJoinLoading:o!=="idle",disabled:l})})})})]}),t[7]=n,t[8]=s,t[9]=o,t[10]=l,t[11]=u,t[12]=f,t[13]=e.clusterStatus,t[14]=_):_=t[14];let g;return t[15]!==e.bootConfig||t[16]!==_?(g=a.jsx(I.Suspense,{fallback:m,children:a.jsx(Qt,{resolve:e.bootConfig,errorElement:h,children:_})}),t[15]=e.bootConfig,t[16]=_,t[17]=g):g=t[17],g}async function sVe(t){const e=$.apis.boot_config(t);return De({options:{url:e,method:"GET"}})}async function iVe({nf:t,values:e}){const r=$.apis.boot_config(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}function oVe(t){return async({request:e})=>{const r=await e.json(),n=await iVe({nf:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function aVe(t,e={clusterStatus:!1}){return function(r){return Wt({deferred:!0,loaderArgs:r,data:{bootConfig:sVe(t),clusterStatus:e.clusterStatus?Iae({nf:t}):null}})}}const bY=Pr();function vr({to:t,labelIntl:e,labelIntlParams:r,icon:n,captionIntl:s,captionIntlParams:i}){return{breadcrumb:{to:t,label:bY.formatMessage({id:e},r),icon:n,...s&&{caption:bY.formatMessage({id:s},i)}}}}function so(t,e={dbCluster:!1}){const r=t===ue.PLS?"platform":t;return{path:"cluster",loader:aVe(t,{clusterStatus:e.dbCluster}),errorElement:a.jsx(Tr,{}),element:a.jsx(nVe,{},t),shouldRevalidate:({actionResult:n})=>!xt(n),handle:vr({labelIntl:`route.${r}.cluster`,to:`/${r}/path`}),children:[{path:"apply-boot-config",action:oVe(t),loader:()=>rt("..")},...e.dbCluster?[{path:"join-cluster",action:$ze(t),loader:()=>rt("..")},{path:"leave-cluster",action:Oze(t),loader:()=>rt("..")}]:[]]}}function bb(){return bb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bb.apply(null,arguments)}var lp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"||typeof self<"u"?self:{};function Y0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xY,SY={exports:{}};var jR,wY,CY,lVe=(xY||(xY=1,jR=SY,(function(){var t={}.hasOwnProperty;function e(){for(var r=[],n=0;n<arguments.length;n++){var s=arguments[n];if(s){var i=typeof s;if(i==="string"||i==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var o=e.apply(null,s);o&&r.push(o)}}else if(i==="object")if(s.toString===Object.prototype.toString)for(var l in s)t.call(s,l)&&s[l]&&r.push(l);else r.push(s.toString())}}return r.join(" ")}jR.exports?(e.default=e,jR.exports=e):window.classNames=e})()),SY.exports),J6=Y0(lVe),AY,wc=Y0((function(){if(CY)return wY;CY=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,i=Object.prototype.toString;function o(c){var u=typeof c;return!!c&&(u=="object"||u=="function")}function l(c){if(typeof c=="number")return c;if((function(f){return typeof f=="symbol"||(function(p){return!!p&&typeof p=="object"})(f)&&i.call(f)=="[object Symbol]"})(c))return NaN;if(o(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=o(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=c.replace(t,"");var d=r.test(c);return d||n.test(c)?s(c.slice(2),d?2:8):e.test(c)?NaN:+c}return wY=function(c,u,d){return d===void 0&&(d=u,u=void 0),d!==void 0&&(d=(d=l(d))==d?d:0),u!==void 0&&(u=(u=l(u))==u?u:0),(function(f,p,m){return f==f&&(m!==void 0&&(f=f<=m?f:m),p!==void 0&&(f=f>=p?f:p)),f})(l(c),u,d)}})()),TR={exports:{}},cVe=(AY||(AY=1,(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",i="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",h="[object RegExp]",_="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",C=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[i]=A[x]=A[o]=A[w]=A[l]=A[c]=A[u]=A[d]=A[f]=A[p]=A[h]=A[_]=A[g]=A[b]=!1;var P=typeof lp=="object"&&lp&&lp.Object===Object&&lp,T=typeof self=="object"&&self&&self.Object===Object&&self,j=P||T||Function("return this")(),R=e&&!e.nodeType&&e,D=R&&t&&!t.nodeType&&t,O=D&&D.exports===R,N=O&&P.process,F=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),U=F&&F.isTypedArray;function z(ke,He){for(var ut=-1,It=ke==null?0:ke.length;++ut<It;)if(He(ke[ut],ut,ke))return!0;return!1}function H(ke){var He=-1,ut=Array(ke.size);return ke.forEach(function(It,wr){ut[++He]=[wr,It]}),ut}function W(ke){var He=-1,ut=Array(ke.size);return ke.forEach(function(It){ut[++He]=It}),ut}var K,q,X,Q=Array.prototype,Y=Function.prototype,Z=Object.prototype,re=j["__core-js_shared__"],fe=Y.toString,de=Z.hasOwnProperty,se=(K=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",le=Z.toString,ee=RegExp("^"+fe.call(de).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=O?j.Buffer:void 0,me=j.Symbol,pe=j.Uint8Array,Se=Z.propertyIsEnumerable,ve=Q.splice,xe=me?me.toStringTag:void 0,qe=Object.getOwnPropertySymbols,Le=J?J.isBuffer:void 0,Te=(q=Object.keys,X=Object,function(ke){return q(X(ke))}),je=st(j,"DataView"),Ge=st(j,"Map"),nt=st(j,"Promise"),Re=st(j,"Set"),we=st(j,"WeakMap"),Me=st(Object,"create"),$e=ze(je),Ve=ze(Ge),Ne=ze(nt),Oe=ze(Re),ft=ze(we),Ct=me?me.prototype:void 0,Et=Ct?Ct.valueOf:void 0;function at(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function $t(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function Ee(ke){var He=-1,ut=ke==null?0:ke.length;for(this.clear();++He<ut;){var It=ke[He];this.set(It[0],It[1])}}function Be(ke){var He=-1,ut=ke==null?0:ke.length;for(this.__data__=new Ee;++He<ut;)this.add(ke[He])}function qt(ke){var He=this.__data__=new $t(ke);this.size=He.size}function ar(ke,He){var ut=Gt(ke),It=!ut&&jt(ke),wr=!ut&&!It&&Yt(ke),Cr=!ut&&!It&&!wr&&ot(ke),sn=ut||It||wr||Cr,pn=sn?(function(Vr,Fr){for(var Qn=-1,Er=Array(Vr);++Qn<Vr;)Er[Qn]=Fr(Qn);return Er})(ke.length,String):[],jn=pn.length;for(var es in ke)!de.call(ke,es)||sn&&(es=="length"||wr&&(es=="offset"||es=="parent")||Cr&&(es=="buffer"||es=="byteLength"||es=="byteOffset")||Ae(es,jn))||pn.push(es);return pn}function hr(ke,He){for(var ut=ke.length;ut--;)if(_t(ke[ut][0],He))return ut;return-1}function ir(ke){return ke==null?ke===void 0?"[object Undefined]":"[object Null]":xe&&xe in Object(ke)?(function(He){var ut=de.call(He,xe),It=He[xe];try{He[xe]=void 0;var wr=!0}catch{}var Cr=le.call(He);return wr&&(ut?He[xe]=It:delete He[xe]),Cr})(ke):(function(He){return le.call(He)})(ke)}function cr(ke){return or(ke)&&ir(ke)==s}function kr(ke,He,ut,It,wr){return ke===He||(ke==null||He==null||!or(ke)&&!or(He)?ke!=ke&&He!=He:(function(Cr,sn,pn,jn,es,Vr){var Fr=Gt(Cr),Qn=Gt(sn),Er=Fr?i:Pe(Cr),on=Qn?i:Pe(sn),Ei=(Er=Er==s?p:Er)==p,ha=(on=on==s?p:on)==p,Zn=Er==on;if(Zn&&Yt(Cr)){if(!Yt(sn))return!1;Fr=!0,Ei=!1}if(Zn&&!Ei)return Vr||(Vr=new qt),Fr||ot(Cr)?fn(Cr,sn,pn,jn,es,Vr):(function(ns,Gn,Wu,zo,sf,$s,Ui){switch(Wu){case w:if(ns.byteLength!=Gn.byteLength||ns.byteOffset!=Gn.byteOffset)return!1;ns=ns.buffer,Gn=Gn.buffer;case x:return!(ns.byteLength!=Gn.byteLength||!$s(new pe(ns),new pe(Gn)));case o:case l:case f:return _t(+ns,+Gn);case c:return ns.name==Gn.name&&ns.message==Gn.message;case h:case g:return ns==Gn+"";case d:var Po=H;case _:var yl=1&zo;if(Po||(Po=W),ns.size!=Gn.size&&!yl)return!1;var co=Ui.get(ns);if(co)return co==Gn;zo|=2,Ui.set(ns,Gn);var jo=fn(Po(ns),Po(Gn),zo,sf,$s,Ui);return Ui.delete(ns),jo;case y:if(Et)return Et.call(ns)==Et.call(Gn)}return!1})(Cr,sn,Er,pn,jn,es,Vr);if(!(1&pn)){var Fi=Ei&&de.call(Cr,"__wrapped__"),lo=ha&&de.call(sn,"__wrapped__");if(Fi||lo){var Ki=Fi?Cr.value():Cr,Yp=lo?sn.value():sn;return Vr||(Vr=new qt),es(Ki,Yp,pn,jn,Vr)}}return!!Zn&&(Vr||(Vr=new qt),(function(ns,Gn,Wu,zo,sf,$s){var Ui=1&Wu,Po=Zt(ns),yl=Po.length,co=Zt(Gn),jo=co.length;if(yl!=jo&&!Ui)return!1;for(var Yu=yl;Yu--;){var To=Po[Yu];if(!(Ui?To in Gn:de.call(Gn,To)))return!1}var Wh=$s.get(ns);if(Wh&&$s.get(Gn))return Wh==Gn;var Ku=!0;$s.set(ns,Gn),$s.set(Gn,ns);for(var of=Ui;++Yu<yl;){var Yc=ns[To=Po[Yu]],af=Gn[To];if(zo)var Yh=Ui?zo(af,Yc,To,Gn,ns,$s):zo(Yc,af,To,ns,Gn,$s);if(!(Yh===void 0?Yc===af||sf(Yc,af,Wu,zo,$s):Yh)){Ku=!1;break}of||(of=To=="constructor")}if(Ku&&!of){var Va=ns.constructor,Eo=Gn.constructor;Va==Eo||!("constructor"in ns)||!("constructor"in Gn)||typeof Va=="function"&&Va instanceof Va&&typeof Eo=="function"&&Eo instanceof Eo||(Ku=!1)}return $s.delete(ns),$s.delete(Gn),Ku})(Cr,sn,pn,jn,es,Vr))})(ke,He,ut,It,kr,wr))}function Rr(ke){return!(!zt(ke)||(function(He){return!!se&&se in He})(ke))&&(Rt(ke)?ee:C).test(ze(ke))}function Ut(ke){if(ut=(He=ke)&&He.constructor,It=typeof ut=="function"&&ut.prototype||Z,He!==It)return Te(ke);var He,ut,It,wr=[];for(var Cr in Object(ke))de.call(ke,Cr)&&Cr!="constructor"&&wr.push(Cr);return wr}function fn(ke,He,ut,It,wr,Cr){var sn=1&ut,pn=ke.length,jn=He.length;if(pn!=jn&&!(sn&&jn>pn))return!1;var es=Cr.get(ke);if(es&&Cr.get(He))return es==He;var Vr=-1,Fr=!0,Qn=2&ut?new Be:void 0;for(Cr.set(ke,He),Cr.set(He,ke);++Vr<pn;){var Er=ke[Vr],on=He[Vr];if(It)var Ei=sn?It(on,Er,Vr,He,ke,Cr):It(Er,on,Vr,ke,He,Cr);if(Ei!==void 0){if(Ei)continue;Fr=!1;break}if(Qn){if(!z(He,function(ha,Zn){if(Fi=Zn,!Qn.has(Fi)&&(Er===ha||wr(Er,ha,ut,It,Cr)))return Qn.push(Zn);var Fi})){Fr=!1;break}}else if(Er!==on&&!wr(Er,on,ut,It,Cr)){Fr=!1;break}}return Cr.delete(ke),Cr.delete(He),Fr}function Zt(ke){return(function(He,ut,It){var wr=ut(He);return Gt(He)?wr:(function(Cr,sn){for(var pn=-1,jn=sn.length,es=Cr.length;++pn<jn;)Cr[es+pn]=sn[pn];return Cr})(wr,It(He))})(ke,ct,wt)}function _r(ke,He){var ut,It,wr=ke.__data__;return((It=typeof(ut=He))=="string"||It=="number"||It=="symbol"||It=="boolean"?ut!=="__proto__":ut===null)?wr[typeof He=="string"?"string":"hash"]:wr.map}function st(ke,He){var ut=(function(It,wr){return It?.[wr]})(ke,He);return Rr(ut)?ut:void 0}at.prototype.clear=function(){this.__data__=Me?Me(null):{},this.size=0},at.prototype.delete=function(ke){var He=this.has(ke)&&delete this.__data__[ke];return this.size-=He?1:0,He},at.prototype.get=function(ke){var He=this.__data__;if(Me){var ut=He[ke];return ut===r?void 0:ut}return de.call(He,ke)?He[ke]:void 0},at.prototype.has=function(ke){var He=this.__data__;return Me?He[ke]!==void 0:de.call(He,ke)},at.prototype.set=function(ke,He){var ut=this.__data__;return this.size+=this.has(ke)?0:1,ut[ke]=Me&&He===void 0?r:He,this},$t.prototype.clear=function(){this.__data__=[],this.size=0},$t.prototype.delete=function(ke){var He=this.__data__,ut=hr(He,ke);return!(ut<0||(ut==He.length-1?He.pop():ve.call(He,ut,1),--this.size,0))},$t.prototype.get=function(ke){var He=this.__data__,ut=hr(He,ke);return ut<0?void 0:He[ut][1]},$t.prototype.has=function(ke){return hr(this.__data__,ke)>-1},$t.prototype.set=function(ke,He){var ut=this.__data__,It=hr(ut,ke);return It<0?(++this.size,ut.push([ke,He])):ut[It][1]=He,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new at,map:new(Ge||$t),string:new at}},Ee.prototype.delete=function(ke){var He=_r(this,ke).delete(ke);return this.size-=He?1:0,He},Ee.prototype.get=function(ke){return _r(this,ke).get(ke)},Ee.prototype.has=function(ke){return _r(this,ke).has(ke)},Ee.prototype.set=function(ke,He){var ut=_r(this,ke),It=ut.size;return ut.set(ke,He),this.size+=ut.size==It?0:1,this},Be.prototype.add=Be.prototype.push=function(ke){return this.__data__.set(ke,r),this},Be.prototype.has=function(ke){return this.__data__.has(ke)},qt.prototype.clear=function(){this.__data__=new $t,this.size=0},qt.prototype.delete=function(ke){var He=this.__data__,ut=He.delete(ke);return this.size=He.size,ut},qt.prototype.get=function(ke){return this.__data__.get(ke)},qt.prototype.has=function(ke){return this.__data__.has(ke)},qt.prototype.set=function(ke,He){var ut=this.__data__;if(ut instanceof $t){var It=ut.__data__;if(!Ge||It.length<199)return It.push([ke,He]),this.size=++ut.size,this;ut=this.__data__=new Ee(It)}return ut.set(ke,He),this.size=ut.size,this};var wt=qe?function(ke){return ke==null?[]:(ke=Object(ke),(function(He,ut){for(var It=-1,wr=He==null?0:He.length,Cr=0,sn=[];++It<wr;){var pn=He[It];ut(pn,It,He)&&(sn[Cr++]=pn)}return sn})(qe(ke),function(He){return Se.call(ke,He)}))}:function(){return[]},Pe=ir;function Ae(ke,He){return!!(He=He??n)&&(typeof ke=="number"||k.test(ke))&&ke>-1&&ke%1==0&&ke<He}function ze(ke){if(ke!=null){try{return fe.call(ke)}catch{}try{return ke+""}catch{}}return""}function _t(ke,He){return ke===He||ke!=ke&&He!=He}(je&&Pe(new je(new ArrayBuffer(1)))!=w||Ge&&Pe(new Ge)!=d||nt&&Pe(nt.resolve())!=m||Re&&Pe(new Re)!=_||we&&Pe(new we)!=b)&&(Pe=function(ke){var He=ir(ke),ut=He==p?ke.constructor:void 0,It=ut?ze(ut):"";if(It)switch(It){case $e:return w;case Ve:return d;case Ne:return m;case Oe:return _;case ft:return b}return He});var jt=cr((function(){return arguments})())?cr:function(ke){return or(ke)&&de.call(ke,"callee")&&!Se.call(ke,"callee")},Gt=Array.isArray,Yt=Le||function(){return!1};function Rt(ke){if(!zt(ke))return!1;var He=ir(ke);return He==u||He=="[object GeneratorFunction]"||He=="[object AsyncFunction]"||He=="[object Proxy]"}function At(ke){return typeof ke=="number"&&ke>-1&&ke%1==0&&ke<=n}function zt(ke){var He=typeof ke;return ke!=null&&(He=="object"||He=="function")}function or(ke){return ke!=null&&typeof ke=="object"}var ot=U?(function(ke){return function(He){return ke(He)}})(U):function(ke){return or(ke)&&At(ke.length)&&!!A[ir(ke)]};function ct(ke){return(He=ke)!=null&&At(He.length)&&!Rt(He)?ar(ke):Ut(ke);var He}t.exports=function(ke,He){return kr(ke,He)}})(TR,TR.exports)),TR.exports),uVe=Y0(cVe);function kY(t,e,r){return t[e]?t[e][0]?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function dVe(t){t===void 0&&(t={});var e=t.onResize,r=I.useRef(void 0);r.current=e;var n=t.round||Math.round,s=I.useRef(),i=I.useState({width:void 0,height:void 0}),o=i[0],l=i[1],c=I.useRef(!1);I.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var u=I.useRef({width:void 0,height:void 0}),d=(function(f,p){var m=I.useRef(null),h=I.useRef(null);h.current=p;var _=I.useRef(null);I.useEffect(function(){g()});var g=I.useCallback(function(){var y=_.current,b=h.current,x=y||(b?b instanceof Element?b:b.current:null);m.current&&m.current.element===x&&m.current.subscriber===f||(m.current&&m.current.cleanup&&m.current.cleanup(),m.current={element:x,subscriber:f,cleanup:x?f(x):void 0})},[f]);return I.useEffect(function(){return function(){m.current&&m.current.cleanup&&(m.current.cleanup(),m.current=null)}},[]),I.useCallback(function(y){_.current=y,g()},[g])})(I.useCallback(function(f){return s.current&&s.current.box===t.box&&s.current.round===n||(s.current={box:t.box,round:n,instance:new ResizeObserver(function(p){var m=p[0],h=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",_=kY(m,h,"inlineSize"),g=kY(m,h,"blockSize"),y=_?n(_):void 0,b=g?n(g):void 0;if(u.current.width!==y||u.current.height!==b){var x={width:y,height:b};u.current.width=y,u.current.height=b,r.current?r.current(x):c.current||l(x)}})}),s.current.instance.observe(f,{box:t.box}),function(){s.current&&s.current.instance.unobserve(f)}},[t.box,n]),t.ref);return I.useMemo(function(){return{ref:d,width:o.width,height:o.height}},[d,o.width,o.height])}var fVe="allotment-module_splitView__L-yRc",pVe="allotment-module_sashContainer__fzwJF",mVe="allotment-module_splitViewContainer__rQnVa",rle="allotment-module_splitViewView__MGZ6O",hVe="allotment-module_vertical__WSwwa",gVe="allotment-module_horizontal__7doS8",_Ve="allotment-module_separatorBorder__x-rDS";let ky,nle=!1,sle=!1;typeof navigator=="object"&&(ky=navigator.userAgent,sle=ky.indexOf("Macintosh")>=0,nle=(ky.indexOf("Macintosh")>=0||ky.indexOf("iPad")>=0||ky.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const ile=nle,vVe=sle,MY=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;let yVe=class{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}};function C2(t,e){const r=t.length,n=r-e.length;return n>=0&&t.slice(n,r)===e}var PY,jY={exports:{}},TY,EY,bVe=(PY||(PY=1,(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function s(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new s(d,f||c,p),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],m]:c._events[h].push(m):(c._events[h]=m,c._eventsCount++),c}function o(c,u){--c._eventsCount==0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),l.prototype.eventNames=function(){var c,u,d=[];if(this._eventsCount===0)return d;for(u in c=this._events)e.call(c,u)&&d.push(r?u.slice(1):u);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(c)):d},l.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,m=new Array(p);f<p;f++)m[f]=d[f].fn;return m},l.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},l.prototype.emit=function(c,u,d,f,p,m){var h=r?r+c:c;if(!this._events[h])return!1;var _,g,y=this._events[h],b=arguments.length;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),b){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,d),!0;case 4:return y.fn.call(y.context,u,d,f),!0;case 5:return y.fn.call(y.context,u,d,f,p),!0;case 6:return y.fn.call(y.context,u,d,f,p,m),!0}for(g=1,_=new Array(b-1);g<b;g++)_[g-1]=arguments[g];y.fn.apply(y.context,_)}else{var x,w=y.length;for(g=0;g<w;g++)switch(y[g].once&&this.removeListener(c,y[g].fn,void 0,!0),b){case 1:y[g].fn.call(y[g].context);break;case 2:y[g].fn.call(y[g].context,u);break;case 3:y[g].fn.call(y[g].context,u,d);break;case 4:y[g].fn.call(y[g].context,u,d,f);break;default:if(!_)for(x=1,_=new Array(b-1);x<b;x++)_[x-1]=arguments[x];y[g].fn.apply(y[g].context,_)}}return!0},l.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},l.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},l.prototype.removeListener=function(c,u,d,f){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn!==u||f&&!m.once||d&&m.context!==d||o(this,p);else{for(var h=0,_=[],g=m.length;h<g;h++)(m[h].fn!==u||f&&!m[h].once||d&&m[h].context!==d)&&_.push(m[h]);_.length?this._events[p]=_.length===1?_[0]:_:o(this,p)}return this},l.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(jY)),jY.exports),gN=Y0(bVe);function RY(t,e){const r=t.indexOf(e);r>-1&&(t.splice(r,1),t.unshift(e))}function ER(t,e){const r=t.indexOf(e);r>-1&&(t.splice(r,1),t.push(e))}function Il(t,e,r=1){const n=Math.max(0,Math.ceil((e-t)/r)),s=new Array(n);let i=-1;for(;++i<n;)s[i]=t+i*r;return s}var xVe=Y0((function(){if(EY)return TY;EY=1;var t=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,i=typeof lp=="object"&&lp&&lp.Object===Object&&lp,o=typeof self=="object"&&self&&self.Object===Object&&self,l=i||o||Function("return this")(),c=Object.prototype.toString,u=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(h){var _=typeof h;return!!h&&(_=="object"||_=="function")}function m(h){if(typeof h=="number")return h;if((function(y){return typeof y=="symbol"||(function(b){return!!b&&typeof b=="object"})(y)&&c.call(y)=="[object Symbol]"})(h))return NaN;if(p(h)){var _=typeof h.valueOf=="function"?h.valueOf():h;h=p(_)?_+"":_}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var g=r.test(h);return g||n.test(h)?s(h.slice(2),g?2:8):e.test(h)?NaN:+h}return TY=function(h,_,g){var y,b,x,w,C,k,A=0,P=!1,T=!1,j=!0;if(typeof h!="function")throw new TypeError("Expected a function");function R(U){var z=y,H=b;return y=b=void 0,A=U,w=h.apply(H,z)}function D(U){var z=U-k;return k===void 0||z>=_||z<0||T&&U-A>=x}function O(){var U=f();if(D(U))return N(U);C=setTimeout(O,(function(z){var H=_-(z-k);return T?d(H,x-(z-A)):H})(U))}function N(U){return C=void 0,j&&y?R(U):(y=b=void 0,w)}function F(){var U=f(),z=D(U);if(y=arguments,b=this,k=U,z){if(C===void 0)return(function(H){return A=H,C=setTimeout(O,_),P?R(H):w})(k);if(T)return C=setTimeout(O,_),R(k)}return C===void 0&&(C=setTimeout(O,_)),w}return _=m(_)||0,p(g)&&(P=!!g.leading,x=(T="maxWait"in g)?u(m(g.maxWait)||0,_):x,j="trailing"in g?!!g.trailing:j),F.cancel=function(){C!==void 0&&clearTimeout(C),A=0,y=k=b=C=void 0},F.flush=function(){return C===void 0?w:N(f())},F}})()),SVe="sash-module_sash__K-9lB",wVe="sash-module_disabled__Hm-wx",CVe="sash-module_mac__Jf6OJ",IY="sash-module_vertical__pB-rs",AVe="sash-module_minimum__-UKxp",kVe="sash-module_maximum__TCWxD",DY="sash-module_horizontal__kFbiw",RR="sash-module_hover__80W6I",IR="sash-module_active__bJspD";let Vl=(function(t){return t.Vertical="VERTICAL",t.Horizontal="HORIZONTAL",t})({}),rl=(function(t){return t.Disabled="DISABLED",t.Minimum="MINIMUM",t.Maximum="MAXIMUM",t.Enabled="ENABLED",t})({}),ole=ile?20:8;const ale=new gN;let $Y=class extends gN{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(wVe,e===rl.Disabled),this.el.classList.toggle("sash-disabled",e===rl.Disabled),this.el.classList.toggle(AVe,e===rl.Minimum),this.el.classList.toggle("sash-minimum",e===rl.Minimum),this.el.classList.toggle(kVe,e===rl.Maximum),this.el.classList.toggle("sash-maximum",e===rl.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,r,n){var s;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=xVe(i=>i.classList.add("sash-hover",RR),this.hoverDelay),this._state=rl.Enabled,this.onPointerStart=i=>{const o=i.pageX,l=i.pageY,c={startX:o,currentX:o,startY:l,currentY:l};this.el.classList.add("sash-active",IR),this.emit("start",c),this.el.setPointerCapture(i.pointerId);const u=f=>{f.preventDefault();const p={startX:o,currentX:f.pageX,startY:l,currentY:f.pageY};this.emit("change",p)},d=f=>{f.preventDefault(),this.el.classList.remove("sash-active",IR),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(f.pointerId),window.removeEventListener("pointermove",u),window.removeEventListener("pointerup",d)};window.addEventListener("pointermove",u),window.addEventListener("pointerup",d)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(IR)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",RR)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",RR)},this.el=document.createElement("div"),this.el.classList.add("sash",SVe),this.el.dataset.testid="sash",e.append(this.el),vVe&&this.el.classList.add("sash-mac",CVe),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof n.size=="number"?(this.size=n.size,n.orientation===Vl.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=ole,ale.on("onDidChangeGlobalSize",i=>{this.size=i,this.layout()})),this.layoutProvider=r,this.orientation=(s=n.orientation)!=null?s:Vl.Vertical,this.orientation===Vl.Horizontal?(this.el.classList.add("sash-horizontal",DY),this.el.classList.remove("sash-vertical",IY)):(this.el.classList.remove("sash-horizontal",DY),this.el.classList.add("sash-vertical",IY)),this.layout()}layout(){if(this.orientation===Vl.Vertical){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}},$C;var DR;(DR=$C||($C={})).Distribute={type:"distribute"},DR.Split=function(t){return{type:"split",index:t}},DR.Invisible=function(t){return{type:"invisible",cachedVisibleSize:t}};let Ul=(function(t){return t.Normal="NORMAL",t.Low="LOW",t.High="HIGH",t})({}),lle=class{constructor(e,r,n){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=r,this.container.classList.add("split-view-view",rle),this.container.dataset.testid="split-view-view",typeof n=="number"?(this._size=n,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(e,r){e!==this.visible&&(e?(this.size=wc(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof r=="number"?r:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}},MVe=class extends lle{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}},PVe=class extends lle{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}},jVe=class extends gN{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,r={},n,s,i){var o,l;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=c=>{this.emit("sashchange",c),this.saveProportions();for(const u of this.viewItems)u.enabled=!0},this.orientation=(o=r.orientation)!=null?o:Vl.Vertical,this.proportionalLayout=(l=r.proportionalLayout)!=null?l:!0,this.getSashOrthogonalSize=r.getSashOrthogonalSize,n&&(this.onDidChange=n),s&&(this.onDidDragStart=s),i&&(this.onDidDragEnd=i),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",pVe),e.prepend(this.sashContainer),r.descriptor){this.size=r.descriptor.size;for(const[c,u]of r.descriptor.views.entries()){const d=u.size,f=u.container,p=u.view;this.addView(f,p,d,c,!0)}this.contentSize=this.viewItems.reduce((c,u)=>c+u.size,0),this.saveProportions()}}addView(e,r,n,s=this.viewItems.length,i){let o;o=typeof n=="number"?n:n.type==="split"?this.getViewSize(n.index)/2:n.type==="invisible"?{cachedVisibleSize:n.cachedVisibleSize}:r.minimumSize;const l=this.orientation===Vl.Vertical?new PVe(e,r,o):new MVe(e,r,o);if(this.viewItems.splice(s,0,l),this.viewItems.length>1){const c=this.orientation===Vl.Vertical?new $Y(this.sashContainer,{getHorizontalSashTop:f=>this.getSashPosition(f),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:Vl.Horizontal}):new $Y(this.sashContainer,{getVerticalSashLeft:f=>this.getSashPosition(f),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:Vl.Vertical}),u=this.orientation===Vl.Vertical?f=>({sash:c,start:f.startY,current:f.currentY}):f=>({sash:c,start:f.startX,current:f.currentX});c.on("start",f=>{var p;this.emit("sashDragStart"),this.onSashStart(u(f));const m=this.viewItems.map(h=>h.size);(p=this.onDidDragStart)==null||p.call(this,m)}),c.on("change",f=>this.onSashChange(u(f))),c.on("end",()=>{var f;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(m=>m.sash===c));const p=this.viewItems.map(m=>m.size);(f=this.onDidDragEnd)==null||f.call(this,p)}),c.on("reset",()=>{const f=this.sashItems.findIndex(g=>g.sash===c),p=Il(f,-1,-1),m=Il(f+1,this.viewItems.length),h=this.findFirstSnapIndex(p),_=this.findFirstSnapIndex(m);(typeof h!="number"||this.viewItems[h].visible)&&(typeof _!="number"||this.viewItems[_].visible)&&this.emit("sashreset",f)});const d={sash:c};this.sashItems.splice(s-1,0,d)}i||this.relayout(),i||typeof n=="number"||n.type!=="distribute"||this.distributeViewSizes()}removeView(e,r){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");const n=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){const s=Math.max(e-1,0);this.sashItems.splice(s,1)[0].sash.dispose()}return this.relayout(),r&&r.type==="distribute"&&this.distributeViewSizes(),n}moveView(e,r,n){const s=this.getViewCachedVisibleSize(r),i=s===void 0?this.getViewSize(r):$C.Invisible(s),o=this.removeView(r);this.addView(e,o,i,n)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e=this.size){const r=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(let n=0;n<this.viewItems.length;n++){const s=this.viewItems[n];s.size=wc(Math.round(this.proportions[n]*e),s.minimumSize,s.maximumSize)}else{const n=Il(0,this.viewItems.length),s=n.filter(o=>this.viewItems[o].priority===Ul.Low),i=n.filter(o=>this.viewItems[o].priority===Ul.High);this.resize(this.viewItems.length-1,e-r,void 0,s,i)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,r){if(e<0||e>=this.viewItems.length)return;const n=Il(0,this.viewItems.length).filter(l=>l!==e),s=[...n.filter(l=>this.viewItems[l].priority===Ul.Low),e],i=n.filter(l=>this.viewItems[l].priority===Ul.High),o=this.viewItems[e];r=Math.round(r),r=wc(r,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=r,this.relayout(s,i)}resizeViews(e){for(let r=0;r<e.length;r++){const n=this.viewItems[r];let s=e[r];s=Math.round(s),s=wc(s,n.minimumSize,Math.min(n.maximumSize,this.size)),n.size=s}this.contentSize=this.viewItems.reduce((r,n)=>r+n.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,r){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(r),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const e=[];let r=0;for(const l of this.viewItems)l.maximumSize-l.minimumSize>0&&(e.push(l),r+=l.size);const n=Math.floor(r/e.length);for(const l of e)l.size=wc(n,l.minimumSize,l.maximumSize);const s=Il(0,this.viewItems.length),i=s.filter(l=>this.viewItems[l].priority===Ul.Low),o=s.filter(l=>this.viewItems[l].priority===Ul.High);this.relayout(i,o)}dispose(){this.sashItems.forEach(e=>e.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(e,r){const n=this.viewItems.reduce((s,i)=>s+i.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,r),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:e,start:r}){const n=this.sashItems.findIndex(s=>s.sash===e);(s=>{const i=this.viewItems.map(b=>b.size);let o,l,c=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;const d=Il(n,-1,-1),f=Il(n+1,this.viewItems.length),p=d.reduce((b,x)=>b+(this.viewItems[x].minimumSize-i[x]),0),m=d.reduce((b,x)=>b+(this.viewItems[x].viewMaximumSize-i[x]),0),h=f.length===0?Number.POSITIVE_INFINITY:f.reduce((b,x)=>b+(i[x]-this.viewItems[x].minimumSize),0),_=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((b,x)=>b+(i[x]-this.viewItems[x].viewMaximumSize),0);c=Math.max(p,_),u=Math.min(h,m);const g=this.findFirstSnapIndex(d),y=this.findFirstSnapIndex(f);if(typeof g=="number"){const b=this.viewItems[g],x=Math.floor(b.viewMinimumSize/2);o={index:g,limitDelta:b.visible?c-x:c+x,size:b.size}}if(typeof y=="number"){const b=this.viewItems[y],x=Math.floor(b.viewMinimumSize/2);l={index:y,limitDelta:b.visible?u+x:u-x,size:b.size}}this.sashDragState={start:s,current:s,index:n,sizes:i,minDelta:c,maxDelta:u,snapBefore:o,snapAfter:l}})(r)}onSashChange({current:e}){const{index:r,start:n,sizes:s,minDelta:i,maxDelta:o,snapBefore:l,snapAfter:c}=this.sashDragState;this.sashDragState.current=e;const u=e-n;this.resize(r,u,s,void 0,void 0,i,o,l,c),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){let r=0;for(let n=0;n<this.sashItems.length;n++)if(r+=this.viewItems[n].size,this.sashItems[n].sash===e)return r;return 0}resize(e,r,n=this.viewItems.map(d=>d.size),s,i,o=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,c,u){if(e<0||e>=this.viewItems.length)return 0;const d=Il(e,-1,-1),f=Il(e+1,this.viewItems.length);if(i)for(const A of i)RY(d,A),RY(f,A);if(s)for(const A of s)ER(d,A),ER(f,A);const p=d.map(A=>this.viewItems[A]),m=d.map(A=>n[A]),h=f.map(A=>this.viewItems[A]),_=f.map(A=>n[A]),g=d.reduce((A,P)=>A+(this.viewItems[P].minimumSize-n[P]),0),y=d.reduce((A,P)=>A+(this.viewItems[P].maximumSize-n[P]),0),b=f.length===0?Number.POSITIVE_INFINITY:f.reduce((A,P)=>A+(n[P]-this.viewItems[P].minimumSize),0),x=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((A,P)=>A+(n[P]-this.viewItems[P].maximumSize),0),w=Math.max(g,x,o),C=Math.min(b,y,l);let k=!1;if(c){const A=this.viewItems[c.index],P=r>=c.limitDelta;k=P!==A.visible,A.setVisible(P,c.size)}if(!k&&u){const A=this.viewItems[u.index],P=r<u.limitDelta;k=P!==A.visible,A.setVisible(P,u.size)}if(k)return this.resize(e,r,n,s,i,o,l);for(let A=0,P=r=wc(r,w,C);A<p.length;A++){const T=p[A],j=wc(m[A]+P,T.minimumSize,T.maximumSize);P-=j-m[A],T.size=j}for(let A=0,P=r;A<h.length;A++){const T=h[A],j=wc(_[A]-P,T.minimumSize,T.maximumSize);P+=j-_[A],T.size=j}return r}distributeEmptySpace(e){const r=this.viewItems.reduce((u,d)=>u+d.size,0);let n=this.size-r;const s=Il(0,this.viewItems.length),i=[],o=s.filter(u=>this.viewItems[u].priority===Ul.Low),l=s.filter(u=>this.viewItems[u].priority===Ul.Normal),c=s.filter(u=>this.viewItems[u].priority===Ul.High);i.push(...c,...l,...o),typeof e=="number"&&ER(i,e);for(let u=0;n!==0&&u<i.length;u++){const d=this.viewItems[i[u]],f=wc(d.size+n,d.minimumSize,d.maximumSize);n-=f-d.size,d.size=f}}layoutViews(){var e;this.contentSize=this.viewItems.reduce((n,s)=>n+s.size,0);let r=0;for(const n of this.viewItems)n.layout(r),r+=n.size;(e=this.onDidChange)!=null&&e.call(this,this.viewItems.map(n=>n.size)),this.sashItems.forEach(n=>n.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}updateSashEnablement(){let e=!1;const r=this.viewItems.map(c=>e=c.size-c.minimumSize>0||e);e=!1;const n=this.viewItems.map(c=>e=c.maximumSize-c.size>0||e),s=[...this.viewItems].reverse();e=!1;const i=s.map(c=>e=c.size-c.minimumSize>0||e).reverse();e=!1;const o=s.map(c=>e=c.maximumSize-c.size>0||e).reverse();let l=0;for(let c=0;c<this.sashItems.length;c++){const{sash:u}=this.sashItems[c];l+=this.viewItems[c].size;const d=!(r[c]&&o[c+1]),f=!(n[c]&&i[c+1]);if(d&&f){const p=Il(c,-1,-1),m=Il(c+1,this.viewItems.length),h=this.findFirstSnapIndex(p),_=this.findFirstSnapIndex(m),g=typeof h=="number"&&!this.viewItems[h].visible,y=typeof _=="number"&&!this.viewItems[_].visible;g&&i[c]&&(l>0||this.startSnappingEnabled)?u.state=rl.Minimum:y&&r[c]&&(l<this.contentSize||this.endSnappingEnabled)?u.state=rl.Maximum:u.state=rl.Disabled}else u.state=d&&!f?rl.Minimum:!d&&f?rl.Maximum:rl.Enabled}}findFirstSnapIndex(e){for(const r of e){const n=this.viewItems[r];if(n.visible&&n.snap)return r}for(const r of e){const n=this.viewItems[r];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return r}}},Vg=class{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}},OY=class{constructor(e,r){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=r}getPreferredSize(){return this.proportion*this.layoutService.getSize()}},A2=class{getPreferredSize(){}},LY=class{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if(typeof e=="number")this.layoutStrategy=new Vg(e);else if(typeof e=="string"){const r=e.trim();if(C2(r,"%")){const n=Number(r.slice(0,-1))/100;this.layoutStrategy=new OY(n,this.layoutService)}else if(C2(r,"px")){const n=Number(r.slice(0,-2))/100;this.layoutStrategy=new Vg(n)}else if(typeof Number.parseFloat(r)=="number"){const n=Number.parseFloat(r);this.layoutStrategy=new Vg(n)}else this.layoutStrategy=new A2}else this.layoutStrategy=new A2}constructor(e,r){var n;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=r.element,this.minimumSize=typeof r.minimumSize=="number"?r.minimumSize:30,this.maximumSize=typeof r.maximumSize=="number"?r.maximumSize:Number.POSITIVE_INFINITY,typeof r.preferredSize=="number")this.layoutStrategy=new Vg(r.preferredSize);else if(typeof r.preferredSize=="string"){const s=r.preferredSize.trim();if(C2(s,"%")){const i=Number(s.slice(0,-1))/100;this.layoutStrategy=new OY(i,this.layoutService)}else if(C2(s,"px")){const i=Number(s.slice(0,-2));this.layoutStrategy=new Vg(i)}else if(typeof Number.parseFloat(s)=="number"){const i=Number.parseFloat(s);this.layoutStrategy=new Vg(i)}else this.layoutStrategy=new A2}else this.layoutStrategy=new A2;this.priority=(n=r.priority)!=null?n:Ul.Normal,this.snap=typeof r.snap=="boolean"&&r.snap}layout(e){}};function NY(t){return t.minSize!==void 0||t.maxSize!==void 0||t.preferredSize!==void 0||t.priority!==void 0||t.visible!==void 0}const _N=I.forwardRef(({className:t,children:e},r)=>Yn.createElement("div",{ref:r,className:J6("split-view-view",rle,t)},e));_N.displayName="Allotment.Pane";const cle=I.forwardRef(({children:t,className:e,id:r,maxSize:n=1/0,minSize:s=30,proportionalLayout:i=!0,separator:o=!0,sizes:l,defaultSizes:c=l,snap:u=!1,vertical:d=!1,onChange:f,onReset:p,onVisibleChange:m,onDragStart:h,onDragEnd:_},g)=>{const y=I.useRef(null),b=I.useRef([]),x=I.useRef(new Map),w=I.useRef(null),C=I.useRef(new Map),k=I.useRef(new yVe),A=I.useRef([]),[P,T]=I.useState(!1),j=I.useMemo(()=>Yn.Children.toArray(t).filter(Yn.isValidElement),[t]),R=I.useCallback(D=>{var O,N;const F=(O=A.current)==null?void 0:O[D];return typeof F?.preferredSize=="number"&&((N=w.current)!=null&&N.resizeView(D,Math.round(F.preferredSize)),!0)},[]);return I.useImperativeHandle(g,()=>({reset:()=>{if(p)p();else{var D;(D=w.current)==null||D.distributeViewSizes();for(let O=0;O<A.current.length;O++)R(O)}},resize:D=>{var O;(O=w.current)==null||O.resizeViews(D)}})),MY(()=>{let D=!0;c&&C.current.size!==c.length&&(D=!1,console.warn(`Expected ${c.length} children based on defaultSizes but found ${C.current.size}`)),D&&c&&(b.current=j.map(F=>F.key));const O=bb({orientation:d?Vl.Vertical:Vl.Horizontal,proportionalLayout:i},D&&c&&{descriptor:{size:c.reduce((F,U)=>F+U,0),views:c.map((F,U)=>{var z,H,W,K;const q=x.current.get(b.current[U]),X=new LY(k.current,bb({element:document.createElement("div"),minimumSize:(z=q?.minSize)!=null?z:s,maximumSize:(H=q?.maxSize)!=null?H:n,priority:(W=q?.priority)!=null?W:Ul.Normal},q?.preferredSize&&{preferredSize:q?.preferredSize},{snap:(K=q?.snap)!=null?K:u}));return A.current.push(X),{container:[...C.current.values()][U],size:F,view:X}})}});w.current=new jVe(y.current,O,f,h,_),w.current.on("sashDragStart",()=>{var F;(F=y.current)==null||F.classList.add("split-view-sash-dragging")}),w.current.on("sashDragEnd",()=>{var F;(F=y.current)==null||F.classList.remove("split-view-sash-dragging")}),w.current.on("sashchange",F=>{if(m&&w.current){const U=j.map(z=>z.key);for(let z=0;z<U.length;z++){const H=x.current.get(U[z]);H?.visible!==void 0&&H.visible!==w.current.isViewVisible(z)&&m(z,w.current.isViewVisible(z))}}}),w.current.on("sashreset",F=>{if(p)p();else{var U;if(R(F)||R(F+1))return;(U=w.current)==null||U.distributeViewSizes()}});const N=w.current;return()=>{N.dispose()}},[]),MY(()=>{if(P){const Q=j.map(de=>de.key),Y=[...b.current],Z=Q.filter(de=>!b.current.includes(de)),re=Q.filter(de=>b.current.includes(de)),fe=b.current.map(de=>!Q.includes(de));for(let de=fe.length-1;de>=0;de--){var D;fe[de]&&((D=w.current)!=null&&D.removeView(de),Y.splice(de,1),A.current.splice(de,1))}for(const de of Z){var O,N,F,U,z;const se=x.current.get(de),le=new LY(k.current,bb({element:document.createElement("div"),minimumSize:(O=se?.minSize)!=null?O:s,maximumSize:(N=se?.maxSize)!=null?N:n,priority:(F=se?.priority)!=null?F:Ul.Normal},se?.preferredSize&&{preferredSize:se?.preferredSize},{snap:(U=se?.snap)!=null?U:u}));(z=w.current)!=null&&z.addView(C.current.get(de),le,$C.Distribute,Q.findIndex(ee=>ee===de)),Y.splice(Q.findIndex(ee=>ee===de),0,de),A.current.splice(Q.findIndex(ee=>ee===de),0,le)}for(;!uVe(Q,Y);)for(const[de,se]of Q.entries()){const le=Y.findIndex(ee=>ee===se);if(le!==de){var H;(H=w.current)==null||H.moveView(C.current.get(se),le,de);const ee=Y[le];Y.splice(le,1),Y.splice(de,0,ee);break}}for(const de of Z){var W;const se=Q.findIndex(ee=>ee===de),le=A.current[se].preferredSize;le!==void 0&&((W=w.current)==null||W.resizeView(se,le))}for(const de of[...Z,...re]){var K,q;const se=x.current.get(de),le=Q.findIndex(ee=>ee===de);se&&NY(se)&&se.visible!==void 0&&((K=w.current)==null?void 0:K.isViewVisible(le))!==se.visible&&((q=w.current)==null||q.setViewVisible(le,se.visible))}for(const de of re){const se=x.current.get(de),le=Q.findIndex(ee=>ee===de);if(se&&NY(se)){var X;se.preferredSize!==void 0&&A.current[le].preferredSize!==se.preferredSize&&(A.current[le].preferredSize=se.preferredSize);let ee=!1;se.minSize!==void 0&&A.current[le].minimumSize!==se.minSize&&(A.current[le].minimumSize=se.minSize,ee=!0),se.maxSize!==void 0&&A.current[le].maximumSize!==se.maxSize&&(A.current[le].maximumSize=se.maxSize,ee=!0),ee&&((X=w.current)==null||X.layout())}}(Z.length>0||fe.length>0)&&(b.current=Q)}},[j,P,n,s,u]),I.useEffect(()=>{w.current&&(w.current.onDidChange=f)},[f]),I.useEffect(()=>{w.current&&(w.current.onDidDragStart=h)},[h]),I.useEffect(()=>{w.current&&(w.current.onDidDragEnd=_)},[_]),dVe({ref:y,onResize:({width:D,height:O})=>{var N;D&&O&&((N=w.current)!=null&&N.layout(d?O:D),k.current.setSize(d?O:D),T(!0))}}),I.useEffect(()=>{ile&&TVe(20)},[]),Yn.createElement("div",{ref:y,className:J6("split-view",d?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":o},fVe,d?hVe:gVe,{[_Ve]:o},e),id:r},Yn.createElement("div",{className:J6("split-view-container",mVe)},Yn.Children.toArray(t).map(D=>{if(!Yn.isValidElement(D))return null;const O=D.key;return D.type.displayName==="Allotment.Pane"?(x.current.set(O,D.props),Yn.cloneElement(D,{key:O,ref:N=>{const F=D.ref;F&&(F.current=N),N?C.current.set(O,N):C.current.delete(O)}})):Yn.createElement(_N,{key:O,ref:N=>{N?C.current.set(O,N):C.current.delete(O)}},D)})))});function TVe(t){const e=wc(t,4,20),r=wc(t,1,8);document.documentElement.style.setProperty("--sash-size",e+"px"),document.documentElement.style.setProperty("--sash-hover-size",r+"px"),(function(n){ole=n,ale.emit("onDidChangeGlobalSize",n)})(e)}cle.displayName="Allotment";var $R=Object.assign(cle,{Pane:_N});function ts(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function EVe(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),ts(t.additionalItems)}function FY(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const Uh="__additional_property",e$="additionalProperties",Lv="allOf",Tc="anyOf",zd="const",RVe="default",HA="dependencies",IVe="enum",aa="__errors",cp="$id",DVe="if",gp="items",$Ve="_$junk_option_schema_id$_",Yw="$name",ll="oneOf",vi="properties",OVe="required",OC="submitButtonOptions",Hi="$ref",vN="__rjsf_additionalProperties",ule="__rjsf_rootSchema",LVe="ui:field",yN="ui:widget",xb="ui:options",NVe="ui:globalOptions";function Dn(t={},e={}){return Object.keys(t).filter(r=>r.indexOf("ui:")===0).reduce((r,n)=>{const s=t[n];return n===yN&&ts(s)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):n===xb&&ts(s)?{...r,...s}:{...r,[n.substring(3)]:s}},{...e})}function bN(t,e={},r){if(!t.additionalProperties)return!1;const{expandable:n=!0}=Dn(e);return n===!1?n:t.maxProperties!==void 0&&r?Object.keys(r).length<t.maxProperties:!0}function LC(t){const e={[aa]:[],addError(r){this[aa].push(r)}};if(Array.isArray(t))return t.reduce((r,n,s)=>({...r,[s]:LC(n)}),e);if(ph(t)){const r=t;return Object.keys(r).reduce((n,s)=>({...n,[s]:LC(r[s])}),e)}return e}var FVe="__lodash_hash_undefined__";function UVe(t){return this.__data__.set(t,FVe),this}function BVe(t){return this.__data__.has(t)}function G_(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new khe;++e<r;)this.add(t[e])}G_.prototype.add=G_.prototype.push=UVe;G_.prototype.has=BVe;function zVe(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xN(t,e){return t.has(e)}var qVe=1,VVe=2;function dle(t,e,r,n,s,i){var o=r&qVe,l=t.length,c=e.length;if(l!=c&&!(o&&c>l))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var f=-1,p=!0,m=r&VVe?new G_:void 0;for(i.set(t,e),i.set(e,t);++f<l;){var h=t[f],_=e[f];if(n)var g=o?n(_,h,f,e,t,i):n(h,_,f,t,e,i);if(g!==void 0){if(g)continue;p=!1;break}if(m){if(!zVe(e,function(y,b){if(!xN(m,b)&&(h===y||s(h,y,r,n,i)))return m.push(b)})){p=!1;break}}else if(!(h===_||s(h,_,r,n,i))){p=!1;break}}return i.delete(t),i.delete(e),p}function HVe(t){var e=-1,r=Array(t.size);return t.forEach(function(n,s){r[++e]=[s,n]}),r}function SN(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var GVe=1,WVe=2,YVe="[object Boolean]",KVe="[object Date]",QVe="[object Error]",ZVe="[object Map]",XVe="[object Number]",JVe="[object RegExp]",eHe="[object Set]",tHe="[object String]",rHe="[object Symbol]",nHe="[object ArrayBuffer]",sHe="[object DataView]",UY=sC?sC.prototype:void 0,OR=UY?UY.valueOf:void 0;function iHe(t,e,r,n,s,i,o){switch(r){case sHe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nHe:return!(t.byteLength!=e.byteLength||!i(new ZF(t),new ZF(e)));case YVe:case KVe:case XVe:return K$(+t,+e);case QVe:return t.name==e.name&&t.message==e.message;case JVe:case tHe:return t==e+"";case ZVe:var l=HVe;case eHe:var c=n&GVe;if(l||(l=SN),t.size!=e.size&&!c)return!1;var u=o.get(t);if(u)return u==e;n|=WVe,o.set(t,e);var d=dle(l(t),l(e),n,s,i,o);return o.delete(t),d;case rHe:if(OR)return OR.call(t)==OR.call(e)}return!1}var oHe=1,aHe=Object.prototype,lHe=aHe.hasOwnProperty;function cHe(t,e,r,n,s,i){var o=r&oHe,l=XF(t),c=l.length,u=XF(e),d=u.length;if(c!=d&&!o)return!1;for(var f=c;f--;){var p=l[f];if(!(o?p in e:lHe.call(e,p)))return!1}var m=i.get(t),h=i.get(e);if(m&&h)return m==e&&h==t;var _=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<c;){p=l[f];var y=t[p],b=e[p];if(n)var x=o?n(b,y,p,e,t,i):n(y,b,p,t,e,i);if(!(x===void 0?y===b||s(y,b,r,n,i):x)){_=!1;break}g||(g=p=="constructor")}if(_&&!g){var w=t.constructor,C=e.constructor;w!=C&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(_=!1)}return i.delete(t),i.delete(e),_}var uHe=1,BY="[object Arguments]",zY="[object Array]",k2="[object Object]",dHe=Object.prototype,qY=dHe.hasOwnProperty;function fHe(t,e,r,n,s,i){var o=Da(t),l=Da(e),c=o?zY:LD(t),u=l?zY:LD(e);c=c==BY?k2:c,u=u==BY?k2:u;var d=c==k2,f=u==k2,p=c==u;if(p&&Rb(t)){if(!Rb(e))return!1;o=!0,d=!1}if(p&&!d)return i||(i=new ab),o||U3(t)?dle(t,e,r,n,s,i):iHe(t,e,c,r,n,s,i);if(!(r&uHe)){var m=d&&qY.call(t,"__wrapped__"),h=f&&qY.call(e,"__wrapped__");if(m||h){var _=m?t.value():t,g=h?e.value():e;return i||(i=new ab),s(_,g,r,n,i)}}return p?(i||(i=new ab),cHe(t,e,r,n,s,i)):!1}function GA(t,e,r,n,s){return t===e?!0:t==null||e==null||!Ib(t)&&!Ib(e)?t!==t&&e!==e:fHe(t,e,r,n,GA,s)}function pHe(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?GA(t,e,void 0,r):!!n}function Bs(t,e){return pHe(t,e,(r,n)=>{if(typeof r=="function"&&typeof n=="function")return!0})}var mHe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hHe=/^\w*$/;function wN(t,e){if(Da(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Xee(t)?!0:hHe.test(t)||!mHe.test(t)||e!=null&&t in Object(e)}function Nv(t,e){return Da(t)?t:wN(t,e)?[t]:Mhe(Jee(t))}function WA(t,e){e=Nv(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[ov(e[r++])];return r&&r==n?t:void 0}function $r(t,e,r){var n=t==null?void 0:WA(t,e);return n===void 0?r:n}var gHe="[object Map]",_He="[object Set]",vHe=Object.prototype,yHe=vHe.hasOwnProperty;function W_(t){if(t==null)return!0;if(B3(t)&&(Da(t)||typeof t=="string"||typeof t.splice=="function"||Rb(t)||U3(t)||Db(t)))return!t.length;var e=LD(t);if(e==gHe||e==_He)return!t.size;if(Phe(t))return!jhe(t).length;for(var r in t)if(yHe.call(t,r))return!1;return!0}var My={},VY;function bHe(){if(VY)return My;VY=1;var t=/~/,e=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function n(u){return t.test(u)?u.replace(e,r):u}function s(u,d,f){for(var p,m,h=1,_=d.length;h<_;){if(d[h]==="constructor"||d[h]==="prototype"||d[h]==="__proto__")return u;if(p=n(d[h++]),m=_>h,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),m&&(d[h]!==""&&d[h]<1/0||d[h]==="-"?u[p]=[]:u[p]={})),!m)break;u=u[p]}var g=u[p];return f===void 0?delete u[p]:u[p]=f,g}function i(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const d of u)if(typeof d!="string"&&typeof d!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,d){if(typeof u!="object")throw new Error("Invalid input object.");d=i(d);var f=d.length;if(f===1)return u;for(var p=1;p<f;){if(u=u[n(d[p++])],f===p)return u;if(typeof u!="object"||u===null)return}}function l(u,d,f){if(typeof u!="object")throw new Error("Invalid input object.");if(d=i(d),d.length===0)throw new Error("Invalid JSON pointer for set.");return s(u,d,f)}function c(u){var d=i(u);return{get:function(f){return o(f,d)},set:function(f,p){return l(f,d,p)}}}return My.get=o,My.set=l,My.compile=c,My}var xHe=bHe();const SHe=Pi(xHe);function wHe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function CHe(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(s);++n<s;)i[n]=t[n+e];return i}function AHe(t,e){return e.length<2?t:WA(t,CHe(e,0,-1))}function fle(t,e){return e=Nv(e,t),t=AHe(t,e),t==null||delete t[ov(wHe(e))]}function kHe(t){return ph(t)?void 0:t}var HY=sC?sC.isConcatSpreadable:void 0;function MHe(t){return Da(t)||Db(t)||!!(HY&&t&&t[HY])}function K0(t,e,r,n,s){var i=-1,o=t.length;for(r||(r=MHe),s||(s=[]);++i<o;){var l=t[i];e>0&&r(l)?e>1?K0(l,e-1,r,n,s):The(s,l):n||(s[s.length]=l)}return s}function PHe(t){var e=t==null?0:t.length;return e?K0(t,1):[]}function jHe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var GY=Math.max;function ple(t,e,r){return e=GY(e===void 0?t.length-1:e,0),function(){for(var n=arguments,s=-1,i=GY(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=n[s];return l[e]=r(o),jHe(t,this,l)}}function THe(t){return function(){return t}}function YA(t){return t}var EHe=JF?function(t,e){return JF(t,"toString",{configurable:!0,enumerable:!1,value:THe(e),writable:!0})}:YA,RHe=800,IHe=16,DHe=Date.now;function $He(t){var e=0,r=0;return function(){var n=DHe(),s=IHe-(n-r);if(r=n,s>0){if(++e>=RHe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var mle=$He(EHe);function hle(t){return mle(ple(t,void 0,PHe),t+"")}var OHe=1,LHe=2,NHe=4,NC=hle(function(t,e){var r={};if(t==null)return r;var n=!1;e=ete(e,function(i){return i=Nv(i,t),n||(n=i.length>1),i}),tte(t,rte(t),r),n&&(r=Ehe(r,OHe|LHe|NHe,kHe));for(var s=e.length;s--;)fle(r,e[s]);return r});function CN(t,e){const r=e[t];return[NC(e,[t]),r]}function gle(t,e={},r=[]){const n=t||"";let s;if(n.startsWith("#"))s=decodeURIComponent(n.substring(1));else throw new Error(`Could not find a definition for ${t}.`);const i=SHe.get(e,s);if(i===void 0)throw new Error(`Could not find a definition for ${t}.`);const o=i[Hi];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...f]=r,p=[...f,n,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${p}`)}const[l,c]=CN(Hi,i),u=gle(c,e,[...r,n]);return Object.keys(l).length>0?{...l,...u}:u}return i}function _le(t,e={}){return gle(t,e,[])}var FHe=Object.prototype,UHe=FHe.hasOwnProperty;function BHe(t,e){return t!=null&&UHe.call(t,e)}function vle(t,e,r){e=Nv(e,t);for(var n=-1,s=e.length,i=!1;++n<s;){var o=ov(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=s?i:(s=t==null?0:t.length,!!s&&Rhe(s)&&Q$(o,s)&&(Da(t)||Db(t)))}function ia(t,e){return t!=null&&vle(t,e,BHe)}var zHe="[object Number]";function yle(t){return typeof t=="number"||Ib(t)&&nte(t)==zHe}var qHe="[object String]";function KA(t){return typeof t=="string"||!Da(t)&&Ib(t)&&nte(t)==qHe}function VHe(t,e,r,n){var s=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++s]);++s<i;)r=e(r,t[s],s,t);return r}function HHe(t){return function(e,r,n){for(var s=-1,i=Object(e),o=n(e),l=o.length;l--;){var c=o[++s];if(r(i[c],c,i)===!1)break}return e}}var ble=HHe();function xle(t,e){return t&&ble(t,e,Fm)}function GHe(t,e){return function(r,n){if(r==null)return r;if(!B3(r))return t(r,n);for(var s=r.length,i=-1,o=Object(r);++i<s&&n(o[i],i,o)!==!1;);return r}}var Sle=GHe(xle),WHe=1,YHe=2;function KHe(t,e,r,n){var s=r.length,i=s;if(t==null)return!i;for(t=Object(t);s--;){var o=r[s];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++s<i;){o=r[s];var l=o[0],c=t[l],u=o[1];if(o[2]){if(c===void 0&&!(l in t))return!1}else{var d=new ab,f;if(!(f===void 0?GA(u,c,WHe|YHe,n,d):f))return!1}}return!0}function wle(t){return t===t&&!Ci(t)}function QHe(t){for(var e=Fm(t),r=e.length;r--;){var n=e[r],s=t[n];e[r]=[n,s,wle(s)]}return e}function Cle(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function ZHe(t){var e=QHe(t);return e.length==1&&e[0][2]?Cle(e[0][0],e[0][1]):function(r){return r===t||KHe(r,t,e)}}function XHe(t,e){return t!=null&&e in Object(t)}function Ale(t,e){return t!=null&&vle(t,e,XHe)}var JHe=1,eGe=2;function tGe(t,e){return wN(t)&&wle(e)?Cle(ov(t),e):function(r){var n=$r(r,t);return n===void 0&&n===e?Ale(r,t):GA(e,n,JHe|eGe)}}function rGe(t){return function(e){return e?.[t]}}function nGe(t){return function(e){return WA(e,t)}}function sGe(t){return wN(t)?rGe(ov(t)):nGe(t)}function AN(t){return typeof t=="function"?t:t==null?YA:typeof t=="object"?Da(t)?tGe(t[0],t[1]):ZHe(t):sGe(t)}function iGe(t,e,r,n,s){return s(t,function(i,o,l){r=n?(n=!1,i):e(r,i,o,l)}),r}function oGe(t,e,r){var n=Da(t)?VHe:iGe,s=arguments.length<3;return n(t,AN(e),r,s,Sle)}function kle(t){return typeof t=="function"?t:YA}var aGe=/\s/;function lGe(t){for(var e=t.length;e--&&aGe.test(t.charAt(e)););return e}var cGe=/^\s+/;function uGe(t){return t&&t.slice(0,lGe(t)+1).replace(cGe,"")}var WY=NaN,dGe=/^[-+]0x[0-9a-f]+$/i,fGe=/^0b[01]+$/i,pGe=/^0o[0-7]+$/i,mGe=parseInt;function hGe(t){if(typeof t=="number")return t;if(Xee(t))return WY;if(Ci(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ci(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=uGe(t);var r=fGe.test(t);return r||pGe.test(t)?mGe(t.slice(2),r?2:8):dGe.test(t)?WY:+t}var YY=1/0,gGe=17976931348623157e292;function _Ge(t){if(!t)return t===0?t:0;if(t=hGe(t),t===YY||t===-YY){var e=t<0?-1:1;return e*gGe}return t===t?t:0}function vGe(t){var e=_Ge(t),r=e%1;return e===e?r?e-r:e:0}var yGe=9007199254740991,LR=4294967295,bGe=Math.min;function Mle(t,e){if(t=vGe(t),t<1||t>yGe)return[];var r=LR,n=bGe(t,LR);e=kle(e),t-=LR;for(var s=Ihe(n,e);++r<t;)e(r);return s}function Ple(t,e,r){var n;if(t&&r){const s=$r(t,r);if(s===void 0)return;for(let i=0;i<e.length;i++){const o=e[i],l=$r(o,[vi,r],{});if(!(l.type==="object"||l.type==="array")&&(l.const===s||!((n=l.enum)===null||n===void 0)&&n.includes(s)))return i}}}function jle(t,e,r,n,s){if(e===void 0)return 0;const i=Ple(e,r,s);if(yle(i))return i;for(let o=0;o<r.length;o++){const l=r[o];if(s&&ia(l,[vi,s])){const c=$r(e,s),u=$r(l,[vi,s],{});if(t.isValid(u,c,n))return o}else if(l[vi]){const c={anyOf:Object.keys(l[vi]).map(d=>({required:[d]}))};let u;if(l.anyOf){const{...d}=l;d.allOf?d.allOf=d.allOf.slice():d.allOf=[],d.allOf.push(c),u=d}else u=Object.assign({},l,c);if(delete u.required,t.isValid(u,e,n))return o}else if(t.isValid(l,e,n))return o}return 0}function kN(t,e,r,n,s){return jle(t,e,r,n,s)}function MN(t,e,r,n){if(!Ci(t))return t;e=Nv(e,t);for(var s=-1,i=e.length,o=i-1,l=t;l!=null&&++s<i;){var c=ov(e[s]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(s!=o){var d=l[c];u=n?n(d,c,l):void 0,u===void 0&&(u=Ci(d)?d:Q$(e[s+1])?[]:{})}Dhe(l,c,u),l=l[c]}return t}function yo(t,e,r){return t==null?t:MN(t,e,r)}function xGe(t,e,r){var n=Da(t),s=n||Rb(t)||U3(t);if(e=AN(e),r==null){var i=t&&t.constructor;s?r=n?new i:[]:Ci(t)?r=ste(i)?$he(Ohe(t)):{}:r={}}return(s?ite:xle)(t,function(o,l,c){return e(r,o,l,c)}),r}function t$(t,e,r){(r!==void 0&&!K$(t[e],r)||r===void 0&&!(e in t))&&Lhe(t,e,r)}function FC(t){return Ib(t)&&B3(t)}function r$(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function SGe(t){return tte(t,ote(t))}function wGe(t,e,r,n,s,i,o){var l=r$(t,r),c=r$(e,r),u=o.get(c);if(u){t$(t,r,u);return}var d=i?i(l,c,r+"",t,e,o):void 0,f=d===void 0;if(f){var p=Da(c),m=!p&&Rb(c),h=!p&&!m&&U3(c);d=c,p||m||h?Da(l)?d=l:FC(l)?d=Nhe(l):m?(f=!1,d=Fhe(c,!0)):h?(f=!1,d=Uhe(c,!0)):d=[]:ph(c)||Db(c)?(d=l,Db(l)?d=SGe(l):(!Ci(l)||ste(l))&&(d=Bhe(c))):f=!1}f&&(o.set(c,d),s(d,c,n,i,o),o.delete(c)),t$(t,r,d)}function Tle(t,e,r,n,s){t!==e&&ble(e,function(i,o){if(s||(s=new ab),Ci(i))wGe(t,e,o,r,Tle,n,s);else{var l=n?n(r$(t,o),i,o+"",t,e,s):void 0;l===void 0&&(l=i),t$(t,o,l)}},ote)}function PN(t,e){return mle(ple(t,e,YA),t+"")}function CGe(t,e,r){if(!Ci(r))return!1;var n=typeof e;return(n=="number"?B3(r)&&Q$(e,r.length):n=="string"&&e in r)?K$(r[e],t):!1}function AGe(t){return PN(function(e,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(s--,i):void 0,o&&CGe(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var l=r[n];l&&t(e,l,n,i)}return e})}var kGe=AGe(function(t,e,r){Tle(t,e,r)}),MGe=1/0;function PGe(t){var e=t==null?0:t.length;return e?K0(t,MGe):[]}function jGe(t,e,r,n){for(var s=t.length,i=r+-1;++i<s;)if(e(t[i],i,t))return i;return-1}function TGe(t){return t!==t}function EGe(t,e,r){for(var n=r-1,s=t.length;++n<s;)if(t[n]===e)return n;return-1}function RGe(t,e,r){return e===e?EGe(t,e,r):jGe(t,TGe,r)}function Ele(t,e){var r=t==null?0:t.length;return!!r&&RGe(t,e,0)>-1}function IGe(){}var DGe=1/0,$Ge=IP&&1/SN(new IP([,-0]))[1]==DGe?function(t){return new IP(t)}:IGe,OGe=200;function Rle(t,e,r){var n=-1,s=Ele,i=t.length,o=!0,l=[],c=l;if(i>=OGe){var u=$Ge(t);if(u)return SN(u);o=!1,s=xN,c=new G_}else c=l;e:for(;++n<i;){var d=t[n],f=d;if(d=d!==0?d:0,o&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;l.push(d)}else s(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}function LGe(t){return t&&t.length?Rle(t):[]}var NR,KY;function Ile(){if(KY)return NR;KY=1;function t(e,r){for(var n=-1,s=e==null?0:e.length;++n<s&&r(e[n],n,e)!==!1;);return e}return NR=t,NR}var FR,QY;function NGe(){if(QY)return FR;QY=1;var t=$v(),e=dte();function r(n,s){return n&&t(s,e(s),n)}return FR=r,FR}var UR,ZY;function FGe(){if(ZY)return UR;ZY=1;var t=$v(),e=Ov();function r(n,s){return n&&t(s,e(s),n)}return UR=r,UR}var BR,XY;function UGe(){if(XY)return BR;XY=1;var t=$v(),e=fte();function r(n,s){return t(n,e(n),s)}return BR=r,BR}var zR,JY;function Dle(){if(JY)return zR;JY=1;var t=pte(),e=dN(),r=fte(),n=ege(),s=Object.getOwnPropertySymbols,i=s?function(o){for(var l=[];o;)t(l,r(o)),o=e(o);return l}:n;return zR=i,zR}var qR,eK;function BGe(){if(eK)return qR;eK=1;var t=$v(),e=Dle();function r(n,s){return t(n,e(n),s)}return qR=r,qR}var VR,tK;function $le(){if(tK)return VR;tK=1;var t=tge(),e=Dle(),r=Ov();function n(s){return t(s,r,e)}return VR=n,VR}var HR,rK;function zGe(){if(rK)return HR;rK=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n){var s=n.length,i=new n.constructor(s);return s&&typeof n[0]=="string"&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return HR=r,HR}var GR,nK;function qGe(){if(nK)return GR;nK=1;var t=cN();function e(r,n){var s=n?t(r.buffer):r.buffer;return new r.constructor(s,r.byteOffset,r.byteLength)}return GR=e,GR}var WR,sK;function VGe(){if(sK)return WR;sK=1;var t=/\w*$/;function e(r){var n=new r.constructor(r.source,t.exec(r));return n.lastIndex=r.lastIndex,n}return WR=e,WR}var YR,iK;function HGe(){if(iK)return YR;iK=1;var t=mte(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function n(s){return r?Object(r.call(s)):{}}return YR=n,YR}var KR,oK;function GGe(){if(oK)return KR;oK=1;var t=cN(),e=qGe(),r=VGe(),n=HGe(),s=Oae(),i="[object Boolean]",o="[object Date]",l="[object Map]",c="[object Number]",u="[object RegExp]",d="[object Set]",f="[object String]",p="[object Symbol]",m="[object ArrayBuffer]",h="[object DataView]",_="[object Float32Array]",g="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",x="[object Int32Array]",w="[object Uint8Array]",C="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]";function P(T,j,R){var D=T.constructor;switch(j){case m:return t(T);case i:case o:return new D(+T);case h:return e(T,R);case _:case g:case y:case b:case x:case w:case C:case k:case A:return s(T,R);case l:return new D;case c:case f:return new D(T);case u:return r(T);case d:return new D;case p:return n(T)}}return KR=P,KR}var QR,aK;function WGe(){if(aK)return QR;aK=1;var t=V3(),e=lv(),r="[object Map]";function n(s){return e(s)&&t(s)==r}return QR=n,QR}var ZR,lK;function YGe(){if(lK)return ZR;lK=1;var t=WGe(),e=jh(),r=rO(),n=r&&r.isMap,s=n?e(n):t;return ZR=s,ZR}var XR,cK;function KGe(){if(cK)return XR;cK=1;var t=V3(),e=lv(),r="[object Set]";function n(s){return e(s)&&t(s)==r}return XR=n,XR}var JR,uK;function QGe(){if(uK)return JR;uK=1;var t=KGe(),e=jh(),r=rO(),n=r&&r.isSet,s=n?e(n):t;return JR=s,JR}var e5,dK;function Ole(){if(dK)return e5;dK=1;var t=ute(),e=Ile(),r=Fae(),n=NGe(),s=FGe(),i=$ae(),o=uN(),l=UGe(),c=BGe(),u=rge(),d=$le(),f=V3(),p=zGe(),m=GGe(),h=Lae(),_=cv(),g=tO(),y=YGe(),b=Qd(),x=QGe(),w=dte(),C=Ov(),k=1,A=2,P=4,T="[object Arguments]",j="[object Array]",R="[object Boolean]",D="[object Date]",O="[object Error]",N="[object Function]",F="[object GeneratorFunction]",U="[object Map]",z="[object Number]",H="[object Object]",W="[object RegExp]",K="[object Set]",q="[object String]",X="[object Symbol]",Q="[object WeakMap]",Y="[object ArrayBuffer]",Z="[object DataView]",re="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",se="[object Int16Array]",le="[object Int32Array]",ee="[object Uint8Array]",J="[object Uint8ClampedArray]",me="[object Uint16Array]",pe="[object Uint32Array]",Se={};Se[T]=Se[j]=Se[Y]=Se[Z]=Se[R]=Se[D]=Se[re]=Se[fe]=Se[de]=Se[se]=Se[le]=Se[U]=Se[z]=Se[H]=Se[W]=Se[K]=Se[q]=Se[X]=Se[ee]=Se[J]=Se[me]=Se[pe]=!0,Se[O]=Se[N]=Se[Q]=!1;function ve(xe,qe,Le,Te,je,Ge){var nt,Re=qe&k,we=qe&A,Me=qe&P;if(Le&&(nt=je?Le(xe,Te,je,Ge):Le(xe)),nt!==void 0)return nt;if(!b(xe))return xe;var $e=_(xe);if($e){if(nt=p(xe),!Re)return o(xe,nt)}else{var Ve=f(xe),Ne=Ve==N||Ve==F;if(g(xe))return i(xe,Re);if(Ve==H||Ve==T||Ne&&!je){if(nt=we||Ne?{}:h(xe),!Re)return we?c(xe,s(nt,xe)):l(xe,n(nt,xe))}else{if(!Se[Ve])return je?xe:{};nt=m(xe,Ve,Re)}}Ge||(Ge=new t);var Oe=Ge.get(xe);if(Oe)return Oe;Ge.set(xe,nt),x(xe)?xe.forEach(function(Et){nt.add(ve(Et,qe,Le,Et,xe,Ge))}):y(xe)&&xe.forEach(function(Et,at){nt.set(at,ve(Et,qe,Le,at,xe,Ge))});var ft=Me?we?d:u:we?C:w,Ct=$e?void 0:ft(xe);return e(Ct||xe,function(Et,at){Ct&&(at=Et,Et=xe[at]),r(nt,at,ve(Et,qe,Le,at,xe,Ge))}),nt}return e5=ve,e5}var t5,fK;function ZGe(){if(fK)return t5;fK=1;var t=Ole(),e=1,r=4;function n(s){return t(s,e|r)}return t5=n,t5}var r5,pK;function Lle(){if(pK)return r5;pK=1;var t=nge();function e(r,n){return t(r,n)}return r5=e,r5}var n5,mK;function XGe(){if(mK)return n5;mK=1;var t=mte(),e=eO(),r=cv(),n=t?t.isConcatSpreadable:void 0;function s(i){return r(i)||e(i)||!!(n&&i&&i[n])}return n5=s,n5}var s5,hK;function jN(){if(hK)return s5;hK=1;var t=pte(),e=XGe();function r(n,s,i,o,l){var c=-1,u=n.length;for(i||(i=e),l||(l=[]);++c<u;){var d=n[c];s>0&&i(d)?s>1?r(d,s-1,i,o,l):t(l,d):o||(l[l.length]=d)}return l}return s5=r,s5}var i5,gK;function JGe(){if(gK)return i5;gK=1;var t=av();function e(r,n){return function(s,i){if(s==null)return s;if(!t(s))return r(s,i);for(var o=s.length,l=n?o:-1,c=Object(s);(n?l--:++l<o)&&i(c[l],l,c)!==!1;);return s}}return i5=e,i5}var o5,_K;function Nle(){if(_K)return o5;_K=1;var t=sge(),e=JGe(),r=e(t);return o5=r,o5}var a5,vK;function eWe(){if(vK)return a5;vK=1;var t=Nle(),e=av();function r(n,s){var i=-1,o=e(n)?Array(n.length):[];return t(n,function(l,c,u){o[++i]=s(l,c,u)}),o}return a5=r,a5}var l5,yK;function tWe(){if(yK)return l5;yK=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return l5=t,l5}var c5,bK;function rWe(){if(bK)return c5;bK=1;var t=hte();function e(r,n){if(r!==n){var s=r!==void 0,i=r===null,o=r===r,l=t(r),c=n!==void 0,u=n===null,d=n===n,f=t(n);if(!u&&!f&&!l&&r>n||l&&c&&d&&!u&&!f||i&&c&&d||!s&&d||!o)return 1;if(!i&&!l&&!f&&r<n||f&&s&&o&&!i&&!l||u&&s&&o||!c&&o||!d)return-1}return 0}return c5=e,c5}var u5,xK;function nWe(){if(xK)return u5;xK=1;var t=rWe();function e(r,n,s){for(var i=-1,o=r.criteria,l=n.criteria,c=o.length,u=s.length;++i<c;){var d=t(o[i],l[i]);if(d){if(i>=u)return d;var f=s[i];return d*(f=="desc"?-1:1)}}return r.index-n.index}return u5=e,u5}var d5,SK;function sWe(){if(SK)return d5;SK=1;var t=Th(),e=gte(),r=ige(),n=eWe(),s=tWe(),i=jh(),o=nWe(),l=q3(),c=cv();function u(d,f,p){f.length?f=t(f,function(_){return c(_)?function(g){return e(g,_.length===1?_[0]:_)}:_}):f=[l];var m=-1;f=t(f,i(r));var h=n(d,function(_,g,y){var b=t(f,function(x){return x(_)});return{criteria:b,index:++m,value:_}});return s(h,function(_,g){return o(_,g,p)})}return d5=u,d5}var f5,wK;function Fle(){if(wK)return f5;wK=1;var t=jN(),e=sWe(),r=Fh(),n=mN(),s=r(function(i,o){if(i==null)return[];var l=o.length;return l>1&&n(i,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(i,t(o,1),[])});return f5=s,f5}var p5,CK;function iWe(){if(CK)return p5;CK=1;function t(e,r,n,s){for(var i=e.length,o=n+(s?1:-1);s?o--:++o<i;)if(r(e[o],o,e))return o;return-1}return p5=t,p5}var m5,AK;function oWe(){if(AK)return m5;AK=1;function t(e){return e!==e}return m5=t,m5}var h5,kK;function aWe(){if(kK)return h5;kK=1;function t(e,r,n){for(var s=n-1,i=e.length;++s<i;)if(e[s]===r)return s;return-1}return h5=t,h5}var g5,MK;function Ule(){if(MK)return g5;MK=1;var t=iWe(),e=oWe(),r=aWe();function n(s,i,o){return i===i?r(s,i,o):t(s,e,o)}return g5=n,g5}var _5,PK;function TN(){if(PK)return _5;PK=1;var t=Ule();function e(r,n){var s=r==null?0:r.length;return!!s&&t(r,n,0)>-1}return _5=e,_5}var v5,jK;function EN(){if(jK)return v5;jK=1;function t(e,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)if(n(r,e[s]))return!0;return!1}return v5=t,v5}var y5,TK;function lWe(){if(TK)return y5;TK=1;function t(){}return y5=t,y5}var b5,EK;function cWe(){if(EK)return b5;EK=1;var t=oge(),e=lWe(),r=_te(),n=1/0,s=t&&1/r(new t([,-0]))[1]==n?function(i){return new t(i)}:e;return b5=s,b5}var x5,RK;function Ble(){if(RK)return x5;RK=1;var t=nO(),e=TN(),r=EN(),n=sO(),s=cWe(),i=_te(),o=200;function l(c,u,d){var f=-1,p=e,m=c.length,h=!0,_=[],g=_;if(d)h=!1,p=r;else if(m>=o){var y=u?null:s(c);if(y)return i(y);h=!1,p=n,g=new t}else g=u?[]:_;e:for(;++f<m;){var b=c[f],x=u?u(b):b;if(b=d||b!==0?b:0,h&&x===x){for(var w=g.length;w--;)if(g[w]===x)continue e;u&&g.push(x),_.push(b)}else p(g,x,d)||(g!==_&&g.push(x),_.push(b))}return _}return x5=l,x5}var S5,IK;function RN(){if(IK)return S5;IK=1;var t=Ble();function e(r){return r&&r.length?t(r):[]}return S5=e,S5}var w5,DK;function IN(){if(DK)return w5;DK=1;var t=Ble();function e(r,n){return n=typeof n=="function"?n:void 0,r&&r.length?t(r,void 0,n):[]}return w5=e,w5}var C5,$K;function uWe(){if($K)return C5;$K=1;var t=Fh(),e=z3(),r=mN(),n=Ov(),s=Object.prototype,i=s.hasOwnProperty,o=t(function(l,c){l=Object(l);var u=-1,d=c.length,f=d>2?c[2]:void 0;for(f&&r(c[0],c[1],f)&&(d=1);++u<d;)for(var p=c[u],m=n(p),h=-1,_=m.length;++h<_;){var g=m[h],y=l[g];(y===void 0||e(y,s[g])&&!i.call(l,g))&&(l[g]=p[g])}return l});return C5=o,C5}var A5,OK;function zle(){if(OK)return A5;OK=1;var t=nO(),e=TN(),r=EN(),n=Th(),s=jh(),i=sO(),o=Math.min;function l(c,u,d){for(var f=d?r:e,p=c[0].length,m=c.length,h=m,_=Array(m),g=1/0,y=[];h--;){var b=c[h];h&&u&&(b=n(b,s(u))),g=o(b.length,g),_[h]=!d&&(u||p>=120&&b.length>=120)?new t(h&&b):void 0}b=c[0];var x=-1,w=_[0];e:for(;++x<p&&y.length<g;){var C=b[x],k=u?u(C):C;if(C=d||C!==0?C:0,!(w?i(w,k):f(y,k,d))){for(h=m;--h;){var A=_[h];if(!(A?i(A,k):f(c[h],k,d)))continue e}w&&w.push(k),y.push(C)}}return y}return A5=l,A5}var k5,LK;function qle(){if(LK)return k5;LK=1;var t=fN();function e(r){return t(r)?r:[]}return k5=e,k5}var M5,NK;function Vle(){if(NK)return M5;NK=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return M5=t,M5}var P5,FK;function Hle(){if(FK)return P5;FK=1;var t=Th(),e=zle(),r=Fh(),n=qle(),s=Vle(),i=r(function(o){var l=s(o),c=t(o,n);return l=typeof l=="function"?l:void 0,l&&c.pop(),c.length&&c[0]===o[0]?e(c,void 0,l):[]});return P5=i,P5}var j5,UK;function dWe(){if(UK)return j5;UK=1;var t=J$(),e=lv(),r="[object Boolean]";function n(s){return s===!0||s===!1||e(s)&&t(s)==r}return j5=n,j5}var T5,BK;function DN(){if(BK)return T5;BK=1;var t=Lle(),e=Fle(),r=RN(),n=IN(),s=uWe(),i=Hle(),o=W0(),l=dWe(),c=O=>Array.isArray(O)?O:[O],u=O=>O===void 0,d=O=>o(O)||Array.isArray(O)?Object.keys(O):[],f=(O,N)=>O.hasOwnProperty(N),p=O=>e(r(O)),m=O=>u(O)||Array.isArray(O)&&O.length===0,h=(O,N,F,U)=>N&&f(N,F)&&O&&f(O,F)&&U(O[F],N[F]),_=(O,N)=>u(O)&&N===0||u(N)&&O===0||t(O,N),g=(O,N)=>u(O)&&N===!1||u(N)&&O===!1||t(O,N),y=O=>u(O)||t(O,{})||O===!0,b=O=>u(O)||t(O,{}),x=O=>u(O)||o(O)||O===!0||O===!1;function w(O,N){return m(O)&&m(N)?!0:t(p(O),p(N))}function C(O,N){return O=c(O),N=c(N),t(p(O),p(N))}function k(O,N,F,U){var z=r(d(O).concat(d(N)));return b(O)&&b(N)?!0:b(O)&&d(N).length||b(N)&&d(O).length?!1:z.every(function(H){var W=O[H],K=N[H];return Array.isArray(W)&&Array.isArray(K)?t(p(O),p(N)):Array.isArray(W)&&!Array.isArray(K)||Array.isArray(K)&&!Array.isArray(W)?!1:h(O,N,H,U)})}function A(O,N,F,U){return o(O)&&o(N)?U(O,N):Array.isArray(O)&&Array.isArray(N)?k(O,N,F,U):t(O,N)}function P(O,N,F,U){var z=n(O,U),H=n(N,U),W=i(z,H,U);return W.length===Math.max(z.length,H.length)}var T={title:t,uniqueItems:g,minLength:_,minItems:_,minProperties:_,required:w,enum:w,type:C,items:A,anyOf:P,allOf:P,oneOf:P,properties:k,patternProperties:k,dependencies:k},j=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],R=["additionalProperties","additionalItems","contains","propertyNames","not"];function D(O,N,F){if(F=s(F,{ignore:[]}),y(O)&&y(N))return!0;if(!x(O)||!x(N))throw new Error("Either of the values are not a JSON schema.");if(O===N)return!0;if(l(O)&&l(N))return O===N;if(O===void 0&&N===!1||N===void 0&&O===!1||u(O)&&!u(N)||!u(O)&&u(N))return!1;var U=r(Object.keys(O).concat(Object.keys(N)));if(F.ignore.length&&(U=U.filter(H=>F.ignore.indexOf(H)===-1)),!U.length)return!0;function z(H,W){return D(H,W,F)}return U.every(function(H){var W=O[H],K=N[H];if(R.indexOf(H)!==-1)return D(W,K,F);var q=T[H];if(q||(q=t),t(W,K))return!0;if(j.indexOf(H)===-1&&(!f(O,H)&&f(N,H)||f(O,H)&&!f(N,H)))return W===K;var X=q(W,K,H,z);if(!l(X))throw new Error("Comparer must return true or false");return X})}return T5=D,T5}var E5,zK;function $N(){if(zK)return E5;zK=1;function t(e){return Object.prototype.toString.call(e)==="[object Array]"}return E5=Array.isArray||t,E5}var R5,qK;function fWe(){if(qK)return R5;qK=1;function t(e){return(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}return R5=t,R5}var I5,VK;function pWe(){if(VK)return I5;VK=1;var t=fWe();function e(r){return t(r)&&r%1===0}return I5=e,I5}var D5,HK;function Gle(){if(HK)return D5;HK=1;var t=$N(),e=pWe();function r(n){var s;if(!t(n)||(s=n.length,!s))return!1;for(var i=0;i<s;i++)if(!e(n[i]))return!1;return!0}return D5=r,D5}var $5,GK;function Wle(){if(GK)return $5;GK=1;function t(e){return typeof e=="function"}return $5=t,$5}var O5,WK;function mWe(){if(WK)return O5;WK=1;var t=$N(),e=Gle(),r=Wle(),n=Math.pow(2,31)-1;function s(l,c){var u=1,d;if(l===0)return c;if(c===0)return l;for(;l%2===0&&c%2===0;)l=l/2,c=c/2,u=u*2;for(;l%2===0;)l=l/2;for(;c;){for(;c%2===0;)c=c/2;l>c&&(d=c,c=l,l=d),c=c-l}return u*l}function i(l,c){var u=0,d;if(l===0)return c;if(c===0)return l;for(;(l&1)===0&&(c&1)===0;)l>>>=1,c>>>=1,u++;for(;(l&1)===0;)l>>>=1;for(;c;){for(;(c&1)===0;)c>>>=1;l>c&&(d=c,c=l,l=d),c=c-l}return l<<u}function o(){var l=arguments.length,c,u,d,f,p,m,h;for(c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];if(e(c)){if(l===2)return p=c[0],m=c[1],p<0&&(p=-p),m<0&&(m=-m),p<=n&&m<=n?i(p,m):s(p,m);d=c}else if(t(c[0]))if(l>1){if(d=c[0],u=c[1],!r(u))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+u+"`.")}else d=c[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+c[0]+"`.");if(f=d.length,f<2)return null;if(u){for(p=new Array(f),h=0;h<f;h++)p[h]=u(d[h],h);d=p}if(l<3&&!e(d))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+d+"`.");for(h=0;h<f;h++)p=d[h],p<0&&(d[h]=-p);for(p=d[0],h=1;h<f;h++)m=d[h],m<=n&&p<=n?p=i(p,m):p=s(p,m);return p}return O5=o,O5}var L5,YK;function hWe(){if(YK)return L5;YK=1;var t=mWe(),e=$N(),r=Gle(),n=Wle();function s(){var i=arguments.length,o,l,c,u,d,f,p;for(o=new Array(i),p=0;p<i;p++)o[p]=arguments[p];if(r(o)){if(i===2)return d=o[0],f=o[1],d<0&&(d=-d),f<0&&(f=-f),d===0||f===0?0:d/t(d,f)*f;c=o}else if(e(o[0]))if(i>1){if(c=o[0],l=o[1],!n(l))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+l+"`.")}else c=o[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+o[0]+"`.");if(u=c.length,u<2)return null;if(l){for(d=new Array(u),p=0;p<u;p++)d[p]=l(c[p],p);c=d}if(i<3&&!r(c))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+c+"`.");for(p=0;p<u;p++)d=c[p],d<0&&(c[p]=-d);for(d=c[0],p=1;p<u;p++){if(f=c[p],d===0||f===0)return 0;d=d/t(d,f)*f}return d}return L5=s,L5}var N5,KK;function gWe(){if(KK)return N5;KK=1;var t=pN(),e=Qd();function r(n,s,i,o,l,c){return e(n)&&e(s)&&(c.set(s,n),t(n,s,void 0,r,c),c.delete(s)),n}return N5=r,N5}var F5,QK;function _We(){if(QK)return F5;QK=1;var t=pN(),e=qae(),r=e(function(n,s,i,o){t(n,s,i,o)});return F5=r,F5}var U5,ZK;function vWe(){if(ZK)return U5;ZK=1;var t=Uae(),e=Fh(),r=gWe(),n=_We(),s=e(function(i){return i.push(void 0,r),t(n,void 0,i)});return U5=s,U5}var B5,XK;function ON(){if(XK)return B5;XK=1;var t=jN();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return B5=e,B5}var z5,JK;function Yle(){if(JK)return z5;JK=1;var t=jN(),e=1/0;function r(n){var s=n==null?0:n.length;return s?t(n,e):[]}return z5=r,z5}var q5,eQ;function yWe(){if(eQ)return q5;eQ=1;var t=Th(),e=zle(),r=Fh(),n=qle(),s=r(function(i){var o=t(i,n);return o.length&&o[0]===i[0]?e(o):[]});return q5=s,q5}var V5,tQ;function bWe(){if(tQ)return V5;tQ=1;function t(e,r,n,s){for(var i=n-1,o=e.length;++i<o;)if(s(e[i],r))return i;return-1}return V5=t,V5}var H5,rQ;function xWe(){if(rQ)return H5;rQ=1;var t=Th(),e=Ule(),r=bWe(),n=jh(),s=uN(),i=Array.prototype,o=i.splice;function l(c,u,d,f){var p=f?r:e,m=-1,h=u.length,_=c;for(c===u&&(u=s(u)),d&&(_=t(c,n(d)));++m<h;)for(var g=0,y=u[m],b=d?d(y):y;(g=p(_,b,g,f))>-1;)_!==c&&o.call(_,g,1),o.call(c,g,1);return c}return H5=l,H5}var G5,nQ;function SWe(){if(nQ)return G5;nQ=1;var t=xWe();function e(r,n){return r&&r.length&&n&&n.length?t(r,n):r}return G5=e,G5}var W5,sQ;function wWe(){if(sQ)return W5;sQ=1;var t=q3();function e(r){return typeof r=="function"?r:t}return W5=e,W5}var Y5,iQ;function Kle(){if(iQ)return Y5;iQ=1;var t=Ile(),e=Nle(),r=wWe(),n=cv();function s(i,o){var l=n(i)?t:e;return l(i,r(o))}return Y5=s,Y5}var K5,oQ;function CWe(){if(oQ)return K5;oQ=1;var t=nO(),e=TN(),r=EN(),n=Th(),s=jh(),i=sO(),o=200;function l(c,u,d,f){var p=-1,m=e,h=!0,_=c.length,g=[],y=u.length;if(!_)return g;d&&(u=n(u,s(d))),f?(m=r,h=!1):u.length>=o&&(m=i,h=!1,u=new t(u));e:for(;++p<_;){var b=c[p],x=d==null?b:d(b);if(b=f||b!==0?b:0,h&&x===x){for(var w=y;w--;)if(u[w]===x)continue e;g.push(b)}else m(u,x,f)||g.push(b)}return g}return K5=l,K5}var Q5,aQ;function AWe(){if(aQ)return Q5;aQ=1;var t=CWe(),e=Fh(),r=fN(),n=e(function(s,i){return r(s)?t(s,i):[]});return Q5=n,Q5}var Z5,lQ;function Qle(){if(lQ)return Z5;lQ=1;const t=ON(),e=Yle(),r=W0(),n=RN(),s=IN(),i=AWe();function o(_){for(const g in _)u(_,g)&&m(_[g])&&delete _[g];return _}const l=_=>n(e(_.map(d))),c=(_,g)=>_.map(y=>y&&y[g]),u=(_,g)=>Object.prototype.hasOwnProperty.call(_,g),d=_=>r(_)||Array.isArray(_)?Object.keys(_):[],f=_=>_!==void 0,p=_=>r(_)||_===!0||_===!1,m=_=>!d(_).length&&_!==!1&&_!==!0;return Z5={allUniqueKeys:l,deleteUndefinedProps:o,getValues:c,has:u,isEmptySchema:m,isSchema:p,keys:d,notUndefined:f,uniqWith:s,withoutArr:(_,...g)=>i.apply(null,[_].concat(t(g)))},Z5}var X5,cQ;function kWe(){if(cQ)return X5;cQ=1;const t=DN(),e=Kle(),{allUniqueKeys:r,deleteUndefinedProps:n,getValues:s,keys:i,notUndefined:o,uniqWith:l,withoutArr:c}=Qle();function u(f){e(f,function(p,m){p===!1&&delete f[m]})}function d(f,p){return r(f).reduce(function(h,_){const g=s(f,_),y=l(g.filter(o),t);return h[_]=p(y,_),h},{})}return X5={keywords:["properties","patternProperties","additionalProperties"],resolver(f,p,m,h){h.ignoreAdditionalProperties||(f.forEach(function(g){const y=f.filter(C=>C!==g),b=i(g.properties),w=i(g.patternProperties).map(C=>new RegExp(C));y.forEach(function(C){const k=i(C.properties),A=k.filter(T=>w.some(j=>j.test(T)));c(k,b,A).forEach(function(T){C.properties[T]=m.properties([C.properties[T],g.additionalProperties],T)})})}),f.forEach(function(g){const y=f.filter(x=>x!==g),b=i(g.patternProperties);g.additionalProperties===!1&&y.forEach(function(x){const w=i(x.patternProperties);c(w,b).forEach(k=>delete x.patternProperties[k])})}));const _={additionalProperties:m.additionalProperties(f.map(g=>g.additionalProperties)),patternProperties:d(f.map(g=>g.patternProperties),m.patternProperties),properties:d(f.map(g=>g.properties),m.properties)};return _.additionalProperties===!1&&u(_.properties),n(_)}},X5}var J5,uQ;function MWe(){if(uQ)return J5;uQ=1;const t=DN(),e=Kle(),{allUniqueKeys:r,deleteUndefinedProps:n,has:s,isSchema:i,notUndefined:o,uniqWith:l}=Qle();function c(p){e(p,function(m,h){m===!1&&p.splice(h,1)})}function u(p,m){return p.map(function(h){if(h)if(Array.isArray(h.items)){const _=h.items[m];if(i(_))return _;if(s(h,"additionalItems"))return h.additionalItems}else return h.items})}function d(p){return p.map(function(m){if(m)return Array.isArray(m.items)?m.additionalItems:m.items})}function f(p,m,h){return r(h).reduce(function(g,y){const b=u(p,y),x=l(b.filter(o),t);return g[y]=m(x,y),g},[])}return J5={keywords:["items","additionalItems"],resolver(p,m,h){const _=p.map(x=>x.items),g=_.filter(o),y={};g.every(i)?y.items=h.items(_):y.items=f(p,h.items,_);let b;return g.every(Array.isArray)?b=p.map(x=>x.additionalItems):g.some(Array.isArray)&&(b=d(p)),b&&(y.additionalItems=h.additionalItems(b)),y.additionalItems===!1&&Array.isArray(y.items)&&c(y.items),n(y)}},J5}var eI,dQ;function PWe(){if(dQ)return eI;dQ=1;const t=ZGe(),e=DN(),r=hWe(),n=vWe(),s=ON(),i=Yle(),o=yWe(),l=Hle(),c=Lle(),u=W0(),d=SWe(),f=Fle(),p=RN(),m=IN(),h=kWe(),_=MWe(),g=(se,le)=>se.indexOf(le)!==-1,y=se=>u(se)||se===!0||se===!1,b=se=>se===!1,x=se=>se===!0,w=(se,le,ee)=>ee(se),C=se=>f(p(i(se))),k=se=>se!==void 0,A=se=>p(i(se.map(H))),P=se=>se[0],T=se=>C(se),j=se=>Math.max.apply(Math,se),R=se=>Math.min.apply(Math,se),D=se=>se.some(x),O=se=>m(s(se),c);function N(se){return function(le,ee){return e({[se]:le},{[se]:ee})}}function F(se){let{allOf:le=[],...ee}=se;return ee=u(se)?ee:se,[ee,...le.map(F)]}function U(se,le){return se.map(ee=>ee&&ee[le])}function z(se,le){return se.map(function(ee,J){try{return le(ee,J)}catch{return}}).filter(k)}function H(se){return u(se)||Array.isArray(se)?Object.keys(se):[]}function W(se,le){if(le=le||[],!se.length)return le;const ee=se.slice(0).shift(),J=se.slice(1);return le.length?W(J,s(le.map(me=>ee.map(pe=>[pe].concat(me))))):W(J,ee.map(me=>me))}function K(se,le){let ee;try{ee=se.map(function(J){return JSON.stringify(J,null,2)}).join(`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:321:`,jJe="️",TJe="‍",$I="￼";let pw=null,mw=null;function EJe(t=[]){const e={};sl.groups=e;const r=new sl;pw==null&&(pw=fX(wJe)),mw==null&&(mw=fX(CJe)),sr(r,"'",s3),sr(r,"{",kb),sr(r,"}",Mb),sr(r,"[",qC),sr(r,"]",VC),sr(r,"(",HC),sr(r,")",GC),sr(r,"<",WC),sr(r,">",YC),sr(r,"（",KC),sr(r,"）",QC),sr(r,"「",ZC),sr(r,"」",XC),sr(r,"『",JC),sr(r,"』",e3),sr(r,"＜",t3),sr(r,"＞",r3),sr(r,"&",n3),sr(r,"*",i3),sr(r,"@",Qf),sr(r,"`",a3),sr(r,"^",l3),sr(r,":",ep),sr(r,",",JN),sr(r,"$",c3),sr(r,".",bu),sr(r,"=",u3),sr(r,"!",e7),sr(r,"-",Fl),sr(r,"%",Pb),sr(r,"|",d3),sr(r,"+",f3),sr(r,"#",p3),sr(r,"?",jb),sr(r,'"',t7),sr(r,"/",xu),sr(r,";",r7),sr(r,"~",Tb),sr(r,"_",m3),sr(r,"\\",o3),sr(r,"・",Yce);const n=pi(r,kd,ZN,{[a$]:!0});pi(n,kd,n);const s=pi(n,Ad,Gce,{[Ab]:!0}),i=pi(n,Dy,Wce,{[tb]:!0}),o=pi(r,Ad,Pd,{[l$]:!0});pi(o,kd,s),pi(o,Ad,o),pi(s,kd,s),pi(s,Ad,s);const l=pi(r,Dy,d$,{[c$]:!0});pi(l,Ad),pi(l,kd,i),pi(l,Dy,l),pi(i,kd,i),pi(i,Ad),pi(i,Dy,i);const c=sr(r,DI,XN,{[EI]:!0}),u=sr(r,dX,m$,{[EI]:!0}),d=pi(r,II,m$,{[EI]:!0});sr(r,$I,d),sr(u,DI,c),sr(u,$I,d),pi(u,II,d),sr(d,dX),sr(d,DI),pi(d,II,d),sr(d,$I,d);const f=pi(r,RI,Kce,{[Hce]:!0});sr(f,"#"),pi(f,RI,f),sr(f,jJe,f);const p=sr(f,TJe);sr(p,"#"),pi(p,RI,f);const m=[[Ad,o],[kd,s]],h=[[Ad,null],[Dy,l],[kd,i]];for(let _=0;_<pw.length;_++)Hf(r,pw[_],f$,Pd,m);for(let _=0;_<mw.length;_++)Hf(r,mw[_],p$,d$,h);Xm(f$,{tld:!0,ascii:!0},e),Xm(p$,{utld:!0,alpha:!0},e),Hf(r,"file",Jw,Pd,m),Hf(r,"mailto",Jw,Pd,m),Hf(r,"http",s_,Pd,m),Hf(r,"https",s_,Pd,m),Hf(r,"ftp",s_,Pd,m),Hf(r,"ftps",s_,Pd,m),Xm(Jw,{scheme:!0,ascii:!0},e),Xm(s_,{slashscheme:!0,ascii:!0},e),t=t.sort((_,g)=>_[0]>g[0]?1:-1);for(let _=0;_<t.length;_++){const g=t[_][0],b=t[_][1]?{[AJe]:!0}:{[kJe]:!0};g.indexOf("-")>=0?b[u$]=!0:Ad.test(g)?kd.test(g)?b[Ab]=!0:b[l$]=!0:b[a$]=!0,uX(r,g,g,b)}return uX(r,"localhost",o0,{ascii:!0}),r.jd=new sl(h3),{start:r,tokens:Object.assign({groups:e},Qce)}}function Zce(t,e){const r=RJe(e.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,s=[];let i=0,o=0;for(;o<n;){let l=t,c=null,u=0,d=null,f=-1,p=-1;for(;o<n&&(c=l.go(r[o]));)l=c,l.accepts()?(f=0,p=0,d=l):f>=0&&(f+=r[o].length,p++),u+=r[o].length,i+=r[o].length,o++;i-=f,o-=p,u-=f,s.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return s}function RJe(t){const e=[],r=t.length;let n=0;for(;n<r;){let s=t.charCodeAt(n),i,o=s<55296||s>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?t[n]:t.slice(n,n+2);e.push(o),n+=o.length}return e}function Hf(t,e,r,n,s){let i;const o=e.length;for(let l=0;l<o-1;l++){const c=e[l];t.j[c]?i=t.j[c]:(i=new sl(n),i.jr=s.slice(),t.j[c]=i),t=i}return i=new sl(r),i.jr=s.slice(),t.j[e[o-1]]=i,i}function fX(t){const e=[],r=[];let n=0,s="0123456789";for(;n<t.length;){let i=0;for(;s.indexOf(t[n+i])>=0;)i++;if(i>0){e.push(r.join(""));for(let o=parseInt(t.substring(n,n+i),10);o>0;o--)r.pop();n+=i}else r.push(t[n]),n++}return e}const a0={defaultProtocol:"http",events:null,format:pX,formatHref:pX,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function n7(t,e=null){let r=Object.assign({},a0);t&&(r=Object.assign(r,t instanceof n7?t.o:t));const n=r.ignoreTags,s=[];for(let i=0;i<n.length;i++)s.push(n[i].toUpperCase());this.o=r,e&&(this.defaultRender=e),this.ignoreTags=s}n7.prototype={o:a0,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,r){const n=e!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=r.t in s?s[r.t]:a0[t],typeof s=="function"&&n&&(s=s(e,r))):typeof s=="function"&&n&&(s=s(e,r.t,r)),s)},getObj(t,e,r){let n=this.o[t];return typeof n=="function"&&e!=null&&(n=n(e,r.t,r)),n},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function pX(t){return t}function Xce(t,e){this.t="token",this.v=t,this.tk=e}Xce.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),r=t.get("truncate",e,this),n=t.get("format",e,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=a0.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,r=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",r,this),s=t.get("tagName",r,e),i=this.toFormattedString(t),o={},l=t.get("className",r,e),c=t.get("target",r,e),u=t.get("rel",r,e),d=t.getObj("attributes",r,e),f=t.getObj("events",r,e);return o.href=n,l&&(o.class=l),c&&(o.target=c),u&&(o.rel=u),d&&Object.assign(o,d),{tagName:s,attributes:o,content:i,eventListeners:f}}};function ak(t,e){class r extends Xce{constructor(s,i){super(s,i),this.t=t}}for(const n in e)r.prototype[n]=e[n];return r.t=t,r}const mX=ak("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),hX=ak("text"),IJe=ak("nl"),hw=ak("url",{isLink:!0,toHref(t=a0.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==o0&&t[1].t===ep}}),Dl=t=>new sl(t);function DJe({groups:t}){const e=t.domain.concat([n3,i3,Qf,o3,a3,l3,c3,u3,Fl,ZN,Pb,d3,f3,p3,xu,h3,Tb,m3]),r=[s3,ep,JN,bu,e7,Pb,jb,t7,r7,WC,YC,kb,Mb,VC,qC,HC,GC,KC,QC,ZC,XC,JC,e3,t3,r3],n=[n3,s3,i3,o3,a3,l3,c3,u3,Fl,kb,Mb,Pb,d3,f3,p3,jb,xu,h3,Tb,m3],s=Dl(),i=sr(s,Tb);Cn(i,n,i),Cn(i,t.domain,i);const o=Dl(),l=Dl(),c=Dl();Cn(s,t.domain,o),Cn(s,t.scheme,l),Cn(s,t.slashscheme,c),Cn(o,n,i),Cn(o,t.domain,o);const u=sr(o,Qf);sr(i,Qf,u),sr(l,Qf,u),sr(c,Qf,u);const d=sr(i,bu);Cn(d,n,i),Cn(d,t.domain,i);const f=Dl();Cn(u,t.domain,f),Cn(f,t.domain,f);const p=sr(f,bu);Cn(p,t.domain,f);const m=Dl(mX);Cn(p,t.tld,m),Cn(p,t.utld,m),sr(u,o0,m);const h=sr(f,Fl);sr(h,Fl,h),Cn(h,t.domain,f),Cn(m,t.domain,f),sr(m,bu,p),sr(m,Fl,h);const _=sr(m,ep);Cn(_,t.numeric,mX);const g=sr(o,Fl),y=sr(o,bu);sr(g,Fl,g),Cn(g,t.domain,o),Cn(y,n,i),Cn(y,t.domain,o);const b=Dl(hw);Cn(y,t.tld,b),Cn(y,t.utld,b),Cn(b,t.domain,o),Cn(b,n,i),sr(b,bu,y),sr(b,Fl,g),sr(b,Qf,u);const x=sr(b,ep),w=Dl(hw);Cn(x,t.numeric,w);const C=Dl(hw),k=Dl();Cn(C,e,C),Cn(C,r,k),Cn(k,e,C),Cn(k,r,k),sr(b,xu,C),sr(w,xu,C);const A=sr(l,ep),P=sr(c,ep),T=sr(P,xu),j=sr(T,xu);Cn(l,t.domain,o),sr(l,bu,y),sr(l,Fl,g),Cn(c,t.domain,o),sr(c,bu,y),sr(c,Fl,g),Cn(A,t.domain,C),sr(A,xu,C),sr(A,jb,C),Cn(j,t.domain,C),Cn(j,e,C),sr(j,xu,C);const R=[[kb,Mb],[qC,VC],[HC,GC],[WC,YC],[KC,QC],[ZC,XC],[JC,e3],[t3,r3]];for(let D=0;D<R.length;D++){const[O,N]=R[D],F=sr(C,O);sr(k,O,F),sr(F,N,C);const U=Dl(hw);Cn(F,e,U);const z=Dl();Cn(F,r),Cn(U,e,U),Cn(U,r,z),Cn(z,e,U),Cn(z,r,z),sr(U,N,C),sr(z,N,C)}return sr(s,o0,b),sr(s,XN,IJe),{start:s,tokens:Qce}}function $Je(t,e,r){let n=r.length,s=0,i=[],o=[];for(;s<n;){let l=t,c=null,u=null,d=0,f=null,p=-1;for(;s<n&&!(c=l.go(r[s].t));)o.push(r[s++]);for(;s<n&&(u=c||l.go(r[s].t));)c=null,l=u,l.accepts()?(p=0,f=l):p>=0&&p++,s++,d++;if(p<0)s-=d,s<n&&(o.push(r[s]),s++);else{o.length>0&&(i.push(OI(hX,e,o)),o=[]),s-=p,d-=p;const m=f.t,h=r.slice(s-d,s);i.push(OI(m,e,h))}}return o.length>0&&i.push(OI(hX,e,o)),i}function OI(t,e,r){const n=r[0].s,s=r[r.length-1].e,i=e.slice(n,s);return new t(i,r)}const Oo={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function OJe(){Oo.scanner=EJe(Oo.customSchemes);for(let t=0;t<Oo.tokenQueue.length;t++)Oo.tokenQueue[t][1]({scanner:Oo.scanner});Oo.parser=DJe(Oo.scanner.tokens);for(let t=0;t<Oo.pluginQueue.length;t++)Oo.pluginQueue[t][1]({scanner:Oo.scanner,parser:Oo.parser});return Oo.initialized=!0,Oo}function Jce(t){return Oo.initialized||OJe(),$Je(Oo.parser.start,t,Zce(Oo.scanner.start,t))}Jce.scan=Zce;function LJe(t,e,r){const n=Jce(t),s=[];for(let i=0;i<n.length;i++){const o=n[i];if(o.t==="nl"&&e.get("nl2br")){const l=`__linkify-el-${r.elementId++}`;s.push(I.createElement("br",{key:l}))}else if(!o.isLink||!e.check(o))s.push(o.toString());else{let l=e.render(o);if(!("key"in l.props)){const c=`__linkify-el-${r.elementId++}`,u=Object.assign({key:c},l.props);l=I.cloneElement(l,u)}s.push(l)}}return s}function eue(t,e,r){if(I.Children.count(t.props.children)===0)return t;const n=[];I.Children.forEach(t.props.children,o=>{typeof o=="string"?n.push.apply(n,LJe(o,e,r)):I.isValidElement(o)?typeof o.type=="string"&&e.ignoreTags.indexOf(o.type.toUpperCase())>=0?n.push(o):n.push(eue(o,e,r)):n.push(o)});const s=`__linkify-el-${r.elementId++}`,i=Object.assign({key:s},t.props);return I.cloneElement(t,i,n)}const NJe=t=>{let e=0;const r=({tagName:c,attributes:u,content:d})=>(u.key=`__linkify-lnk-${e++}`,u.class&&(u.className=u.class,delete u.class),I.createElement(c,u,d)),n={key:"__linkify-wrapper"};for(const c in t)c!=="options"&&c!=="as"&&c!=="tagName"&&c!=="children"&&(n[c]=t[c]);const s=new n7(t.options,r),i=t.as||t.tagName||I.Fragment||"span",o=t.children,l=I.createElement(i,n,o);return eue(l,s,{elementId:0})};function g3(t){const e=he.c(10),{description:r,band:n}=t;let s;if(e[0]!==r){e:{if(!r){s=null;break e}const l=r.toString();if(l.includes(D6)){const[c,u]=l.toString().split(D6);let d;e[2]!==c||e[3]!==u?(d={defaultText:c,descriptionText:u},e[2]=c,e[3]=u,e[4]=d):d=e[4],s=d}else{let c;e[5]!==l?(c={defaultText:null,descriptionText:l},e[5]=l,e[6]=c):c=e[6],s=c}}e[0]=r,e[1]=s}else s=e[1];const i=s;let o;return e[7]!==n||e[8]!==i?(o=i?a.jsxs(te,{direction:"column",sx:{backgroundColor:"divider",px:2,py:1.5,flex:"0 0 auto","&:last-child":{borderRadius:"0 0 10px 10px"},...!n&&{p:0,my:.5,backgroundColor:"transparent"},color:"text.secondary"},spacing:0,nowrap:!0,children:[i.descriptionText&&a.jsxs(te,{direction:"row",nowrap:!0,align:"flex-start",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:"grey.600",pt:n?.2:.5},align:"center",justify:"center",children:a.jsx(ge.Info,{size:n?20:16})}),a.jsx(_e,{color:"inherit",type:"body2",sx:{"& a":{color:"primary.main"}},children:a.jsx(NJe,{options:{target:"blank"},children:i.descriptionText})})]}),i.defaultText&&a.jsxs(te,{direction:"row",nowrap:!0,align:"flex-start",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:"grey.600",pt:n?.2:.5},align:"center",justify:"center",children:a.jsx(ge.Catalog,{size:n?20:16})}),a.jsx(_e,{type:"body2",fontWeight:500,color:"inherit",children:i.defaultText})]})]}):null,e[7]=n,e[8]=i,e[9]=o):o=e[9],o}function tue(t){const e=he.c(26),{schema:r,objKeys:n,objData:s,objErrors:i,onClick:o,title:l,id:c,isErrored:u,registry:d}=t;let f;e[0]!==r?(f=Bce(r),e[0]=r,e[1]=f):f=e[1];const p=f,m=r.description;let h;if(e[2]!==n||e[3]!==r.properties){let C;e[5]!==r.properties?(C=k=>{const A=r.properties?.[k];return!A||A===!0||Ah(A)?null:k},e[5]=r.properties,e[6]=C):C=e[6],h=n.map(C).filter(UJe),e[2]=n,e[3]=r.properties,e[4]=h}else h=e[4];const _=h;let g;e:{if(!Uce(r)){let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=[],e[7]=k):k=e[7],g=k;break e}let C;e[8]!==s||e[9]!==_?(C=Object.keys(s).filter(k=>!_.includes(k)),e[8]=s,e[9]=_,e[10]=C):C=e[10],g=C}const y=g;let b;e[11]!==y||e[12]!==_?(b=[..._,...y],e[11]=y,e[12]=_,e[13]=b):b=e[13];const x=b;let w;return e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==p||e[18]!==u||e[19]!==s||e[20]!==i||e[21]!==o||e[22]!==d||e[23]!==r||e[24]!==l?(w=p?null:a.jsxs(pr,{title:a.jsx(X0,{title:l,isObject:!0,id:c,isErrored:u}),folder:!0,headerActionsComponent:a.jsx(Ze,{onClick:o,text:"edit",size:"small",startIcon:a.jsx(ge.Edit,{}),variant:"outlined"}),error:u,elevation:2,sx:{mb:3},children:[m?a.jsx(g3,{description:m,id:c,schema:r,registry:null,band:!0}):a.jsx(a.Fragment,{}),x.length>0?a.jsx(te,{spacing:0,children:x.map(C=>{const k=r.properties?.[C]||r.additionalProperties;let A;k&&k!==!0&&k?.title?A=k.title:A=C,A=Zl(A);let P=s?.[C];const T=k&&k!==!0&&k.type==="object",j=k&&k!==!0&&k.type==="array"&&!(i0(k)||zC(k)),R=k&&k!==!0&&QN(k),D=k&&k!==!0&&"discriminator"in k,O=!j&&!T&&!D,N=i?Object.keys(i).includes(C):!1;if(j)P=VN({items:P,schema:k,registry:d});else if(k&&k!==!0&&(i0(k)||zC(k)))P=P?.length?a.jsx(gt,{children:a.jsx(ks,{size:"small",items:P.map(FJe)})},C):a.jsx(_e,{type:"body2",children:"—"});else if(R){const F=k.format?.split(":"),U=F?.[1],z=F?.[2];P=a.jsx(ms,{label:`${U} script ${z?" (base64)":""}`,size:"small",color:"info"},C)}else P=a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:P!==void 0?`${P}`:"—"},C);return a.jsxs(te,{direction:"row",align:"center",justify:"space-between",sx:{flex:"1 1 auto",px:2,py:.5,borderBottom:"1px solid",borderColor:"divider","&:last-child":{borderBottom:0}},nowrap:!0,children:[a.jsxs(te,{direction:"row",align:"center",sx:{color:N?"error.main":"text.secondary"},nowrap:!0,children:[j&&a.jsx(ge.Stack,{size:24}),T&&a.jsx(ge.List,{size:24}),D&&a.jsx(ge.Directions,{size:20}),O&&a.jsx(te,{sx:{width:"24px",height:"24px",flex:"0 0 auto",pt:"1px"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Circle,{size:12})}),a.jsx(_e,{type:"body2",fontWeight:"600",sx:{wordBreak:"break-all"},color:N?"error.main":"text.primary",noWrap:!0,children:A}),j&&a.jsx(_e,{type:"caption",sx:{fontWeight:"600",px:.5,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",textAlign:"center"},children:P?.length})]}),O&&P]},C)})}):a.jsx(a.Fragment,{})]}),e[14]=m,e[15]=x,e[16]=c,e[17]=p,e[18]=u,e[19]=s,e[20]=i,e[21]=o,e[22]=d,e[23]=r,e[24]=l,e[25]=w):w=e[25],w}function FJe(t){return{id:t,label:t}}function UJe(t){return!!t}function BJe(t){const e=he.c(18),{schema:r,children:n,paths:s,index:i,registry:o}=t,l=n.props,c=zr(zJe);let u;e[0]!==c||e[1]!==s?(u=()=>{s&&c({id:s.selectableItemId})},e[0]=c,e[1]=s,e[2]=u):u=e[2];const d=u;let f;e:{if(!r.properties){let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[3]=x):x=e[3],f=x;break e}let b;e[4]!==r.properties?(b=Object.keys(r.properties),e[4]=r.properties,e[5]=b):b=e[5],f=b}const p=f;let m;e[6]!==l.errorSchema?(m=Object.keys(l.errorSchema||{}),e[6]=l.errorSchema,e[7]=m):m=e[7];const h=m.length>0,_=l.formData,g=`#${i} - ${l.schema.title||l.name}`;let y;return e[8]!==l.errorSchema||e[9]!==_||e[10]!==d||e[11]!==h||e[12]!==s.selectableItemId||e[13]!==p||e[14]!==o||e[15]!==r||e[16]!==g?(y=a.jsx(a.Fragment,{children:a.jsx(tue,{isErrored:h,id:s.selectableItemId,schema:r,objKeys:p,objData:_,objErrors:l.errorSchema,title:g,onClick:d,registry:o})}),e[8]=l.errorSchema,e[9]=_,e[10]=d,e[11]=h,e[12]=s.selectableItemId,e[13]=p,e[14]=o,e[15]=r,e[16]=g,e[17]=y):y=e[17],y}function zJe(t){return t.handleSelectNode}function qJe(t){const e=he.c(40),{children:r,disabled:n,hasToolbar:s,hasCopy:i,hasMoveDown:o,hasMoveUp:l,hasRemove:c,index:u,onCopyIndexClick:d,onDropIndexClick:f,onReorderClick:p,readonly:m,uiSchema:h,registry:_,schema:g,parentIdSchema:y}=t,b=zr(HJe),x=r.props,{CopyButton:w,MoveDownButton:C,MoveUpButton:k,RemoveButton:A}=_.templates.ButtonTemplates;let P;e[0]===Symbol.for("react.memo_cache_sentinel")?(P={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"600",minWidth:0},e[0]=P):P=e[0];const T=P;let j;e:{if(!b){j=void 0;break e}let W,K;if(e[1]!==u||e[2]!==y.$id||e[3]!==b){const Q=y.$id.split(".").slice(2),Z=[...b.split("."),...Q,u];W=Array.from(Z).map(VJe),K=Array.from(Z),e[1]=u,e[2]=y.$id,e[3]=b,e[4]=W,e[5]=K}else W=e[4],K=e[5];const q=K.join(".");let X;e[6]!==W||e[7]!==q?(X={selectableItemPath:W,selectableItemId:q},e[6]=W,e[7]=q,e[8]=X):X=e[8],j=X}const R=j;let D;e[9]!==x.errorSchema?(D=Object.keys(x.errorSchema||{}),e[9]=x.errorSchema,e[10]=D):D=e[10];const O=D.length>0,N=g.type==="object";if(!R)return null;let F;e[11]!==w||e[12]!==C||e[13]!==k||e[14]!==A||e[15]!==n||e[16]!==i||e[17]!==o||e[18]!==l||e[19]!==c||e[20]!==s||e[21]!==u||e[22]!==d||e[23]!==f||e[24]!==p||e[25]!==m||e[26]!==_||e[27]!==h?(F=s&&a.jsxs(te,{direction:"row",justify:"flex-end",children:[(l||o||i)&&a.jsxs(SJe,{children:[(l||o)&&a.jsx(k,{style:T,disabled:n||m||!l,onClick:p(u,u-1),uiSchema:h,registry:_}),(l||o)&&a.jsx(C,{style:T,disabled:n||m||!o,onClick:p(u,u+1),uiSchema:h,registry:_}),i&&a.jsx(w,{style:T,disabled:n||m,onClick:d(u),uiSchema:h,registry:_})]},u),c&&a.jsx(A,{style:T,disabled:n||m,onClick:f(u),uiSchema:h,registry:_})]}),e[11]=w,e[12]=C,e[13]=k,e[14]=A,e[15]=n,e[16]=i,e[17]=o,e[18]=l,e[19]=c,e[20]=s,e[21]=u,e[22]=d,e[23]=f,e[24]=p,e[25]=m,e[26]=_,e[27]=h,e[28]=F):F=e[28];let U;e[29]!==r||e[30]!==N||e[31]!==R||e[32]!==t?(U=N?a.jsx(BJe,{...t,paths:R}):r,e[29]=r,e[30]=N,e[31]=R,e[32]=t,e[33]=U):U=e[33];let z;e[34]!==U?(z=a.jsx(Kt,{children:U}),e[34]=U,e[35]=z):z=e[35];let H;return e[36]!==O||e[37]!==F||e[38]!==z?(H=a.jsx(pr,{error:O,elevation:3,footerActionsComponent:F,children:z}),e[36]=O,e[37]=F,e[38]=z,e[39]=H):H=e[39],H}function VJe(t){return t.toString()}function HJe(t){return t.selectedId}function rue(t){const e=he.c(50),{title:r,idSchema:n,children:s,isErrored:i,headerActionsComponent:o,isArray:l,description:c}=t,u=zr(GJe),d=n.$id===wo;let f;if(e[0]!==n.$id||e[1]!==u){f=n.$id===u;const w=u?.split(".")||[],C=w[w.length-1];w&&C&&n.$id===`${wo}.${C}`&&(f=!0),e[0]=n.$id,e[1]=u,e[2]=f}else f=e[2];let p;e[3]!==f||e[4]!==u?(p=w=>{if(!u||!f)return;const C=w.schemaFields[u];if(C&&C.type===ol.DISCRIMINATOR)return C},e[3]=f,e[4]=u,e[5]=p):p=e[5];const m=zr(p);if(d){let w;return e[6]!==s||e[7]!==n.$id?(w=a.jsx(gt,{"data-id":n.$id,children:s}),e[6]=s,e[7]=n.$id,e[8]=w):w=e[8],w}else if(f){let w;e[9]!==l||e[10]!==i?(w=l&&!i&&{borderBottom:"1px solid",borderColor:"divider"},e[9]=l,e[10]=i,e[11]=w):w=e[11];let C;e[12]!==i?(C=i&&{border:"2px solid",borderColor:"error.main"},e[12]=i,e[13]=C):C=e[13];let k;e[14]!==w||e[15]!==C?(k={flex:"1 1 auto",...w,...C},e[14]=w,e[15]=C,e[16]=k):k=e[16];let A;e[17]!==m||e[18]!==o||e[19]!==r?(A=!m&&a.jsxs(te,{justify:"space-between",sx:{borderBottom:"1px solid",borderBottomColor:"divider",px:2,py:1,flex:"0 0 auto"},direction:"row",align:"center",fullWidth:!0,children:[r,o]}),e[17]=m,e[18]=o,e[19]=r,e[20]=A):A=e[20];let P;e[21]!==c||e[22]!==n?(P=c&&a.jsx(g3,{description:c,band:!0,id:n.$id,schema:n,registry:null}),e[21]=c,e[22]=n,e[23]=P):P=e[23];let T;e[24]!==s||e[25]!==l?(T=l?s:a.jsx(Kt,{children:s}),e[24]=s,e[25]=l,e[26]=T):T=e[26];let j;return e[27]!==n.$id||e[28]!==k||e[29]!==A||e[30]!==P||e[31]!==T?(j=a.jsxs(te,{"data-id":n.$id,spacing:0,fullHeight:!0,sx:k,nowrap:!0,children:[A,P,T]}),e[27]=n.$id,e[28]=k,e[29]=A,e[30]=P,e[31]=T,e[32]=j):j=e[32],j}const h=d?0:2;let _;e[33]===Symbol.for("react.memo_cache_sentinel")?(_={mb:1.5,maxWidth:"100%"},e[33]=_):_=e[33];let g;e[34]!==c||e[35]!==n?(g=c&&a.jsx(g3,{description:c,band:!0,id:n.$id,schema:n,registry:null}),e[34]=c,e[35]=n,e[36]=g):g=e[36];let y;e[37]!==s||e[38]!==l?(y=l?a.jsx(a.Fragment,{children:s}):a.jsx(Kt,{children:s}),e[37]=s,e[38]=l,e[39]=y):y=e[39];let b;e[40]!==g||e[41]!==y?(b=a.jsxs(a.Fragment,{children:[g,y]}),e[40]=g,e[41]=y,e[42]=b):b=e[42];let x;return e[43]!==o||e[44]!==n.$id||e[45]!==i||e[46]!==h||e[47]!==b||e[48]!==r?(x=a.jsx(pr,{title:r,error:i,folder:!0,"data-id":n.$id,elevation:h,headerActionsComponent:o,sx:_,children:b}),e[43]=o,e[44]=n.$id,e[45]=i,e[46]=h,e[47]=b,e[48]=r,e[49]=x):x=e[49],x}function GJe(t){return t.selectedId}function WJe(t){const e=he.c(103),{canAdd:r,disabled:n,idSchema:s,uiSchema:i,items:o,onAddClick:l,readonly:c,registry:u,schema:d,title:f}=t,p=zr(JJe),m=zr(XJe);let h;e[0]!==o||e[1]!==u||e[2]!==d?(h=VN({items:o.map(ZJe),schema:d,registry:u}),e[0]=o,e[1]=u,e[2]=d,e[3]=h):h=e[3];const _=h,g=QJe;let y;e[4]!==_?(y=(we,Me,$e)=>{if(we!==null&&typeof we=="object"&&"__index__"in we){const Ve=$e==="UP"?Me-1:Me+1;return _[Ve].__index__}return $e==="UP"?Me-1:Me+1},e[4]=_,e[5]=y):y=e[5];const b=y;let x;e[6]!==i?(x=Dn(i),e[6]=i,e[7]=x):x=e[7];const w=x,{ButtonTemplates:C}=u.templates,{AddButton:k}=C;let A;e[8]!==o?(A=o.reduce(KJe,{}),e[8]=o,e[9]=A):A=e[9];const P=A;let T;e[10]!==P?(T=Object.keys(P),e[10]=P,e[11]=T):T=e[11];const j=T.length>0;let R;e[12]!==s.$id||e[13]!==p?(R=we=>{if(!p)return;const Me=s.$id.split(".").slice(2),Ve=[...p.split("."),...Me,we];return{selectableItemPath:Array.from(Ve).map(YJe),selectableItemId:Array.from(Ve).join(".")}},e[12]=s.$id,e[13]=p,e[14]=R):R=e[14];const D=R;let O;e[15]!==D||e[16]!==m?(O=(we,Me)=>{const $e=g(we,Me),Ve=D($e);if(Ve)return setTimeout(()=>{m({id:Ve.selectableItemId})},0)},e[15]=D,e[16]=m,e[17]=O):O=e[17];let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(ge.Edit,{}),e[18]=N):N=e[18];let F;e[19]!==O?(F={label:"Edit",onClick:O,icon:N},e[19]=O,e[20]=F):F=e[20];let U,z;e[21]!==o?(U=(we,Me)=>{const $e=g(we,Me),{onCopyIndexClick:Ve}=o[$e];return Ve($e)()},z=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne}=o[$e];return!!(Ve||Ne)},e[21]=o,e[22]=U,e[23]=z):(U=e[22],z=e[23]);let H;e[24]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Copy,{}),e[24]=H):H=e[24];let W;e[25]!==U||e[26]!==z?(W={label:"Copy",onClick:U,disabled:z,icon:H,wrapped:!0},e[25]=U,e[26]=z,e[27]=W):W=e[27];let K;e[28]!==b||e[29]!==o?(K=(we,Me)=>{const $e=g(we,Me),{onReorderClick:Ve}=o[$e];return Ve($e,b(we,Me,"UP"))()},e[28]=b,e[29]=o,e[30]=K):K=e[30];let q;e[31]!==o?(q=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne,hasMoveUp:Oe}=o[$e];return Ve||Ne||!Oe},e[31]=o,e[32]=q):q=e[32];let X;e[33]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.UpArrow,{}),e[33]=X):X=e[33];let Q;e[34]!==K||e[35]!==q?(Q={label:"Up",onClick:K,disabled:q,icon:X,wrapped:!0},e[34]=K,e[35]=q,e[36]=Q):Q=e[36];let Y;e[37]!==b||e[38]!==o?(Y=(we,Me)=>{const $e=g(we,Me),{onReorderClick:Ve}=o[$e];return Ve($e,b(we,Me,"DOWN"))()},e[37]=b,e[38]=o,e[39]=Y):Y=e[39];let Z;e[40]!==o?(Z=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne,hasMoveDown:Oe}=o[$e];return Ve||Ne||!Oe},e[40]=o,e[41]=Z):Z=e[41];let re;e[42]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(ge.DownArrow,{}),e[42]=re):re=e[42];let fe;e[43]!==Y||e[44]!==Z?(fe={label:"Down",onClick:Y,disabled:Z,icon:re,wrapped:!0},e[43]=Y,e[44]=Z,e[45]=fe):fe=e[45];let de,se;e[46]!==o?(de=(we,Me)=>{const $e=g(we,Me),{onDropIndexClick:Ve}=o[$e];return setTimeout(()=>{Ve($e)()},0)},se=(we,Me)=>{const $e=g(we,Me),{disabled:Ve,readonly:Ne}=o[$e];return!!(Ve||Ne)},e[46]=o,e[47]=de,e[48]=se):(de=e[47],se=e[48]);let le;e[49]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(ge.Trash,{}),e[49]=le):le=e[49];let ee;e[50]!==de||e[51]!==se?(ee={label:"Remove",onClick:de,disabled:se,icon:le,wrapped:!0},e[50]=de,e[51]=se,e[52]=ee):ee=e[52];let J;e[53]!==F||e[54]!==W||e[55]!==Q||e[56]!==fe||e[57]!==ee?(J=[F,W,Q,fe,ee],e[53]=F,e[54]=W,e[55]=Q,e[56]=fe,e[57]=ee,e[58]=J):J=e[58];const pe=J;let Se;e[59]===Symbol.for("react.memo_cache_sentinel")?(Se=[],e[59]=Se):Se=e[59];let ve=Se;if(d.items&&!Array.isArray(d.items)&&d.items!==!0){let we,Me;if(e[60]!==D||e[61]!==m||e[62]!==o||e[63]!==d.items){let $e={};const Ve=d.items.allOf||d.items.anyOf||d.items.oneOf;let Ne;e[66]!==d.items?(Ne=qu(d.items),e[66]=d.items,e[67]=Ne):Ne=e[67],we=Ne,d.items.properties?$e=d.items.properties:Ve&&Ve.forEach(Oe=>{Oe===!0||Oe===!1||Oe.properties&&Oe.type==="object"&&($e={...$e,...Oe.properties})}),Me=Object.keys($e||{}).filter(Oe=>{const ft=$e?.[Oe];return ft&&ft!==!0&&!Ve?!Ah(ft):!0}).map(Oe=>{const ft=Oe,Ct=$e?.[Oe],Et=Zl(Oe),at={key:ft,label:Et,numeric:!1,minWidth:"150"};return Ct&&typeof Ct=="object"&&(at.numeric=Ct.type==="number",at.label=Zl(Ct.title||Oe)),at.cellRender=($t,Ee)=>{const Be=D(Ee),qt=$t[ft],ar=Ct&&Ct!==!0&&i0(Ct),hr=Ct&&Ct!==!0&&zC(Ct),ir=qt&&Ct&&Ct!==!0&&QN(Ct);if(ar||hr)return Array.isArray(qt)?a.jsx("span",{children:qt.join(", ")||"—"}):a.jsx("span",{children:"-"});const cr=!!o[Ee].children.props.errorSchema?.[ft];if(typeof qt=="object"||Array.isArray(qt))return a.jsx(Ze,{variant:"text",size:"small",startIcon:Array.isArray(qt)?a.jsx(ge.Stack,{size:24}):a.jsx(ge.List,{size:24}),onClick:()=>{Be&&m({id:`${Be.selectableItemId}.${Oe}`})},text:Array.isArray(qt)?`${qt.length} item${qt.length!==1?"s":""}`:""});if(ir){const kr=Ct.format?.split(":"),Rr=kr?.[1],Ut=kr?.[2];return a.jsx(ms,{label:`${Rr} script ${Ut?" (base64)":"—"}`,size:"small",color:cr?"error":"info"})}return we===Oe?a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ge.Directions,{size:16}),a.jsx(_e,{type:"body2",color:cr?"error":"text.primary",children:`${qt??"—"}`})]}):a.jsx(_e,{type:"body2",color:cr?"error":"text.primary",children:`${qt??"—"}`})},at}),e[60]=D,e[61]=m,e[62]=o,e[63]=d.items,e[64]=we,e[65]=Me}else we=e[64],Me=e[65];if(ve=Me,we){let $e;e[68]!==ve||e[69]!==we?($e=ve.filter(Ct=>Ct.key===we),e[68]=ve,e[69]=we,e[70]=$e):$e=e[70];const Ve=$e;let Ne;e[71]!==ve||e[72]!==we?(Ne=ve.filter(Ct=>Ct.key!==we),e[71]=ve,e[72]=we,e[73]=Ne):Ne=e[73];const Oe=Ne;let ft;e[74]!==Ve||e[75]!==Oe?(ft=[...Ve,...Oe],e[74]=Ve,e[75]=Oe,e[76]=ft):ft=e[76],ve=ft}}const xe=ve,qe=!!xe.length,Le=w.title||f;let Te;e[77]!==s.$id||e[78]!==j||e[79]!==Le?(Te=a.jsx(X0,{id:s.$id,title:Le,isErrored:j,isArray:!0}),e[77]=s.$id,e[78]=j,e[79]=Le,e[80]=Te):Te=e[80];let je;e[81]!==k||e[82]!==r||e[83]!==n||e[84]!==l||e[85]!==c||e[86]!==u||e[87]!==i?(je=r&&a.jsx(k,{className:"array-item-add",onClick:l,disabled:n||c,uiSchema:i,registry:u}),e[81]=k,e[82]=r,e[83]=n,e[84]=l,e[85]=c,e[86]=u,e[87]=i,e[88]=je):je=e[88];const Ge=w.description||d.description;let nt;e[89]!==xe||e[90]!==s||e[91]!==o||e[92]!==_||e[93]!==pe?(nt=xe.length?a.jsx(Br,{columns:xe,rowsCount:_.length,rowsPerPage:_.length,orderBy:xe[0].key,page:0,hidePagination:!0,rowKey:xe[0].key,data:_,rowActions:pe,stickyRowActions:!0,hideRowsCount:!0}):a.jsx(te,{children:o.map(we=>{const{key:Me,...$e}=we;return a.jsx(qJe,{...$e,parentIdSchema:s},Me)})}),e[89]=xe,e[90]=s,e[91]=o,e[92]=_,e[93]=pe,e[94]=nt):nt=e[94];let Re;return e[95]!==s||e[96]!==j||e[97]!==qe||e[98]!==Te||e[99]!==je||e[100]!==Ge||e[101]!==nt?(Re=a.jsx(rue,{idSchema:s,isErrored:j,isArray:qe,title:Te,headerActionsComponent:je,description:Ge,children:nt}),e[95]=s,e[96]=j,e[97]=qe,e[98]=Te,e[99]=je,e[100]=Ge,e[101]=nt,e[102]=Re):Re=e[102],Re}function YJe(t){return t.toString()}function KJe(t,e){const r=e.children.props.errorSchema;return{...t,...r}}function QJe(t,e){return t!==null&&typeof t=="object"&&"__index__"in t?t.__index__:e}function ZJe(t){return t.children.props.formData}function XJe(t){return t.handleSelectNode}function JJe(t){return t.selectedId}function Fv(t){const e=he.c(29),{value:r,label:n,error:s,language:i,onChange:o,showError:l,sx:c,readonly:u}=t,d=l===void 0?!0:l,f=$Ee(),p=ci();let m;e[0]!==f?(m=()=>{f&&(f.languages.html.registerHTMLLanguageService("xml",{format:{wrapLineLength:0,preserveNewLines:!1,tabSize:2}},{documentFormattingEdits:!0}),f.languages.setLanguageConfiguration("xml",{indentationRules:{increaseIndentPattern:new RegExp(`<(?!\\?|[^>]*\\/>)([-_.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}"']*$`),decreaseIndentPattern:new RegExp("^\\s*(<\\/(?!html)[-_.A-Za-z0-9]+\\b[^>]*>|-->|})")}}))},e[0]=f,e[1]=m):m=e[1];let h;e[2]!==i||e[3]!==f?(h=[i,f],e[2]=i,e[3]=f,e[4]=h):h=e[4],I.useEffect(m,h);let _;e[5]!==s||e[6]!==n?(_=n&&a.jsx(_e,{color:s?"error":"text.secondary",sx:{flex:"0 0 auto"},children:n}),e[5]=s,e[6]=n,e[7]=_):_=e[7];const g=s?"error.main":"grey.400";let y;e[8]!==c||e[9]!==g?(y={p:1,flex:"1 1 auto",width:"100%",border:"1px solid",borderColor:g,borderRadius:1,...c},e[8]=c,e[9]=g,e[10]=y):y=e[10];const b=p.palette.mode==="light"?"light":"vs-dark";let x;e[11]!==u?(x={automaticLayout:!0,autoClosingBrackets:"always",autoClosingQuotes:"always",autoIndent:"full",formatOnPaste:!0,formatOnType:!0,detectIndentation:!0,readOnly:u},e[11]=u,e[12]=x):x=e[12];let w;e[13]!==i||e[14]!==o||e[15]!==b||e[16]!==x||e[17]!==r?(w=a.jsx(SL,{theme:b,defaultValue:r,language:i,onChange:o,options:x}),e[13]=i,e[14]=o,e[15]=b,e[16]=x,e[17]=r,e[18]=w):w=e[18];let C;e[19]!==y||e[20]!==w?(C=a.jsx(gt,{sx:y,children:w}),e[19]=y,e[20]=w,e[21]=C):C=e[21];let k;e[22]!==s||e[23]!==d?(k=d&&s&&a.jsx(_e,{color:"error",type:"caption",sx:{pl:1.5,flex:"0 0 auto"},children:s}),e[22]=s,e[23]=d,e[24]=k):k=e[24];let A;return e[25]!==C||e[26]!==k||e[27]!==_?(A=a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,spacing:.5,children:[_,C,k]}),e[25]=C,e[26]=k,e[27]=_,e[28]=A):A=e[28],A}function eet(t){const e=he.c(15),{schema:r,rawErrors:n,value:s,onChange:i,label:o,readonly:l}=t,{format:c}=r;let u;e[0]!==c?(u=c?.split(":"),e[0]=c,e[1]=u):u=e[1];const d=u,f=d?.[0]==="code",p=d?.[1],m=d?.[2]==="base64";let h;e:{if(m){const C=s||"";let k;e[2]!==C?(k=atob(C),e[2]=C,e[3]=k):k=e[3],h=k;break e}h=s}const _=h;let g;e[4]!==m||e[5]!==i?(g=C=>{if(C)return i(m?btoa(C):C)},e[4]=m,e[5]=i,e[6]=g):g=e[6];const y=g;if(!f||!p)return null;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b={height:"500px"},e[7]=b):b=e[7];const x=n?.[0];let w;return e[8]!==_||e[9]!==y||e[10]!==o||e[11]!==p||e[12]!==l||e[13]!==x?(w=a.jsx(gt,{sx:b,children:a.jsx(Fv,{value:_,language:p,error:x,showError:!1,onChange:y,label:o,readonly:l})}),e[8]=_,e[9]=y,e[10]=o,e[11]=p,e[12]=l,e[13]=x,e[14]=w):w=e[14],w}function tet(t){const e=he.c(4),{schema:r}=t;if(QN(r)){let i;return e[0]!==t?(i=a.jsx(eet,{...t}),e[0]=t,e[1]=i):i=e[1],i}let s;return e[2]!==t?(s=a.jsx(Mce,{...t}),e[2]=t,e[3]=s):s=e[3],s}function ret(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.Add,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Add new",disabled:n,startIcon:s,variant:"outlined"}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function net(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.DownArrow,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Down",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function set(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.UpArrow,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Up",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function iet(t){const e=he.c(4),{onClick:r,disabled:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(ge.Trash,{}),e[0]=s):s=e[0];let i;return e[1]!==n||e[2]!==r?(i=a.jsx(Ze,{onClick:r,size:"small",text:"Remove",variant:"outlined",disabled:n,startIcon:s}),e[1]=n,e[2]=r,e[3]=i):i=e[3],i}function oet(){return null}function aet(t){const e=he.c(28),r=ci(),n=mce(t.schema);let s;e[0]!==t.schema.type?(s=Array.isArray(t.schema.type)&&t.schema.type.find(cet),e[0]=t.schema.type,e[1]=s):s=e[1];const i=s,o=t.schema.anyOf&&t.description;if(n)return null;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={mb:3},e[2]=l):l=e[2];let c;e[3]!==t.schema.deprecated||e[4]!==r?(c=t.schema.deprecated&&{backgroundColor:br(r.palette.warning.main,.2),borderRadius:1,p:.5},e[3]=t.schema.deprecated,e[4]=r,e[5]=c):c=e[5];let u;e[6]!==c?(u={"& .form-group.field.field-string, & .form-group.field.field-boolean, & .form-group.field.field-integer":l,...c},e[6]=c,e[7]=u):u=e[7];let d;e[8]!==t.schema.deprecated?(d=t.schema.deprecated&&a.jsx(Lr,{title:"Deprecated",severity:"warning"}),e[8]=t.schema.deprecated,e[9]=d):d=e[9];let f;e[10]!==i?(f=i&&{padding:2,border:"1px solid",borderColor:"divider",borderRadius:1,mb:3},e[10]=i,e[11]=f):f=e[11];let p;e[12]!==f?(p={...f},e[12]=f,e[13]=p):p=e[13];let m;e[14]!==i||e[15]!==t?(m=i&&a.jsx(gt,{sx:{flex:"0 0 auto",ml:-.5},children:a.jsx(da,{label:"Set to Null",checked:t.formData===null,onChange:(b,x)=>{t.onChange(x?null:void 0)},size:"small"})}),e[14]=i,e[15]=t,e[16]=m):m=e[16];const h=o?void 0:t.description;let _;e[17]!==t||e[18]!==h?(_=a.jsx(Pce,{...t,description:h}),e[17]=t,e[18]=h,e[19]=_):_=e[19];let g;e[20]!==p||e[21]!==m||e[22]!==_?(g=a.jsxs(te,{fullWidth:!0,spacing:0,sx:p,children:[m,_]}),e[20]=p,e[21]=m,e[22]=_,e[23]=g):g=e[23];let y;return e[24]!==g||e[25]!==u||e[26]!==d?(y=a.jsxs(te,{sx:u,"data-id":"field",spacing:1.5,children:[d,g]}),e[24]=g,e[25]=u,e[26]=d,e[27]=y):y=e[27],y}function cet(t){return t!=="null"}function uet(t,e){const r=e.indexOf(t[t.length-1]);return t.length===1&&t[0]===wo?[...e.slice(r+1)]:r!==-1?[...t,...e.slice(r+1)]:[...t,...e]}function det(t){const e=he.c(38),{errorSchema:r,description:n,properties:s,disabled:i,readonly:o,uiSchema:l,idSchema:c,schema:u,formData:d,onAddClick:f,registry:p,title:m}=t,h=zr(met),_=zr(pet),{ButtonTemplates:g}=p.templates,{AddButton:y}=g,b=c.$id===wo;let x;e[0]!==h?(x=N=>{if(!h)return;const F=N.split("."),U=h.split("."),z=uet(U,F);return{selectableItemPath:z.map(fet),selectableItemId:z.join(".")}},e[0]=h,e[1]=x):x=e[1];const w=x;let C;e[2]!==w||e[3]!==_?(C=N=>{const F=w(N);F&&_({id:F.selectableItemId})},e[2]=w,e[3]=_,e[4]=C):C=e[4];const k=C;let A;e[5]!==r?(A=Object.keys(r||{}),e[5]=r,e[6]=A):A=e[6];const P=A.length>0;let T;e[7]!==c.$id||e[8]!==P||e[9]!==m?(T=a.jsx(X0,{id:c.$id,title:m,isObject:!0,isErrored:P}),e[7]=c.$id,e[8]=P,e[9]=m,e[10]=T):T=e[10];let j;e[11]!==y||e[12]!==i||e[13]!==d||e[14]!==f||e[15]!==o||e[16]!==p||e[17]!==u||e[18]!==l?(j=bN(u,l,d)&&a.jsx(y,{className:"object-property-expand",onClick:f(u),disabled:i||o,uiSchema:l,registry:p}),e[11]=y,e[12]=i,e[13]=d,e[14]=f,e[15]=o,e[16]=p,e[17]=u,e[18]=l,e[19]=j):j=e[19];let R;if(e[20]!==k||e[21]!==b||e[22]!==s||e[23]!==p){let N;e[25]!==k||e[26]!==b||e[27]!==p?(N=(F,U)=>{const z=F.content.props,H=z.schema,W=H.title||z.name,K=z.formData,q=Object.keys(H.properties||[]),X=H.type==="object"&&!b,Q=z.idSchema.$id,Y=z.errorSchema,Z=Object.keys(Y||{}).length>0;return Ah(H)?null:F.hidden?F.content:X?a.jsx(tue,{id:Q,schema:H,objKeys:q,objData:K,objErrors:Y,onClick:()=>k(Q),title:W,isErrored:Z,registry:p},`${Q}-${U}`):a.jsx(gt,{sx:{mb:1.5,"&:last-child":{mb:0}},"data-id":"object-box",children:F.content},`${Q}-${U}`)},e[25]=k,e[26]=b,e[27]=p,e[28]=N):N=e[28],R=s.map(N),e[20]=k,e[21]=b,e[22]=s,e[23]=p,e[24]=R}else R=e[24];let D;e[29]!==R?(D=a.jsx(a.Fragment,{children:R}),e[29]=R,e[30]=D):D=e[30];let O;return e[31]!==n||e[32]!==c||e[33]!==P||e[34]!==T||e[35]!==j||e[36]!==D?(O=a.jsx(rue,{idSchema:c,title:T,description:n,isErrored:P,headerActionsComponent:j,children:D}),e[31]=n,e[32]=c,e[33]=P,e[34]=T,e[35]=j,e[36]=D,e[37]=O):O=e[37],O}function fet(t){return t?.toString()}function pet(t){return t.handleSelectNode}function met(t){return t.selectedId}function het(t){const e=new Set;function r(n){if(typeof n!="object"||n===null)return;const s=n;"discriminator"in s&&typeof s.discriminator=="object"&&s.discriminator&&"propertyName"in s.discriminator&&typeof s.discriminator.propertyName=="string"&&s.discriminator.propertyName&&e.add(s.discriminator.propertyName);for(const i in s)r(s[i])}return r(t),e}function qs(t){const e=he.c(79);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g,y,b,x,w,C,k,A,P;e[0]!==t?({disabled:o,variant:P,label:f,error:l,fullWidth:c,name:h,value:A,size:w,required:x,onChange:_,children:n,multiple:m,open:g,id:d,labelId:p,autoWidth:r,helperText:u,renderValue:b,color:s,defaultValue:i,tooltip:k,sx:C,...y}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g,e[16]=y,e[17]=b,e[18]=x,e[19]=w,e[20]=C,e[21]=k,e[22]=A,e[23]=P):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15],y=e[16],b=e[17],x=e[18],w=e[19],C=e[20],k=e[21],A=e[22],P=e[23]);const T=iN();let j;e[24]!==w?(j=w==="small"&&{"&.MuiInputLabel-animated ":{transform:"translate(14px, 8px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"}}},e[24]=w,e[25]=j):j=e[25];let R;e[26]!==j?(R={...j},e[26]=j,e[27]=R):R=e[27];let D;e[28]!==f||e[29]!==p||e[30]!==R?(D=a.jsx(GO,{id:p,sx:R,children:f}),e[28]=f,e[29]=p,e[30]=R,e[31]=D):D=e[31];const O=T&&T;let N;e[32]!==h?(N=h&&{"data-testid":`field-${h}`},e[32]=h,e[33]=N):N=e[33];let F;e[34]!==k?(F=k&&{endAdornment:a.jsx(gt,{sx:{position:"relative",right:12,display:"flex",alignItems:"center"},children:a.jsx(Mn,{title:k,arrow:!0,children:a.jsx("span",{children:a.jsx(ge.Info,{})})})})},e[34]=k,e[35]=F):F=e[35];let U;e[36]!==w?(U=w==="small"&&{m:0,p:0},e[36]=w,e[37]=U):U=e[37];let z;e[38]!==k?(z=k&&{".MuiSelect-icon":{position:"relative",right:16}},e[38]=k,e[39]=z):z=e[39];let H;e[40]!==U||e[41]!==z?(H={...U,m:0,p:0,...z},e[40]=U,e[41]=z,e[42]=H):H=e[42];const W=`field-input-${h}`;let K;e[43]!==W?(K={"data-testid":W},e[43]=W,e[44]=K):K=e[44];let q;e[45]!==r||e[46]!==n||e[47]!==s||e[48]!==i||e[49]!==o||e[50]!==l||e[51]!==c||e[52]!==d||e[53]!==f||e[54]!==p||e[55]!==m||e[56]!==h||e[57]!==_||e[58]!==g||e[59]!==y||e[60]!==b||e[61]!==x||e[62]!==w||e[63]!==K||e[64]!==O||e[65]!==N||e[66]!==F||e[67]!==H||e[68]!==A||e[69]!==P?(q=a.jsx(yA,{...y,labelId:p,id:d,value:A,open:g,label:f,name:h,disabled:o,variant:P,error:l,fullWidth:c,required:x,onChange:_,multiple:m,autoWidth:r,renderValue:b,defaultValue:i,color:s,...O,...N,size:w,...F,sx:H,inputProps:K,children:n}),e[45]=r,e[46]=n,e[47]=s,e[48]=i,e[49]=o,e[50]=l,e[51]=c,e[52]=d,e[53]=f,e[54]=p,e[55]=m,e[56]=h,e[57]=_,e[58]=g,e[59]=y,e[60]=b,e[61]=x,e[62]=w,e[63]=K,e[64]=O,e[65]=N,e[66]=F,e[67]=H,e[68]=A,e[69]=P,e[70]=q):q=e[70];let X;e[71]!==l||e[72]!==u?(X=u&&a.jsx(gv,{error:l,children:u}),e[71]=l,e[72]=u,e[73]=X):X=e[73];let Q;return e[74]!==C||e[75]!==q||e[76]!==X||e[77]!==D?(Q=a.jsxs(hv,{fullWidth:!0,sx:C,children:[D,q,X]}),e[74]=C,e[75]=q,e[76]=X,e[77]=D,e[78]=Q):Q=e[78],Q}function get(t){const e=he.c(51),{id:r,options:n,label:s,hideLabel:i,required:o,disabled:l,schema:c,readonly:u,value:d,multiple:f,name:p,onChange:m,size:h,rawErrors:_,registry:g}=t;let y;e[0]!==_?(y=_===void 0?[]:_,e[0]=_,e[1]=y):y=e[1];const b=y,{enumOptions:x,enumDisabled:w,emptyValue:C}=n,{rootSchema:k}=g;let A,P,T,j;if(e[2]!==x||e[3]!==f||e[4]!==p||e[5]!==m||e[6]!==C||e[7]!==k||e[8]!==d){const K=het(k);let q;e[13]!==f?(q=f?[]:"",e[13]=f,e[14]=q):q=e[14],A=q;let X;e[15]!==x||e[16]!==m||e[17]!==C?(X=Y=>{const{target:Z}=Y,{value:re}=Z,fe=Gi(re,x,C);m(fe)},e[15]=x,e[16]=m,e[17]=C,e[18]=X):X=e[18],P=X;let Q;e[19]!==x||e[20]!==f||e[21]!==d?(Q=ZA(d,x,f),e[19]=x,e[20]=f,e[21]=d,e[22]=Q):Q=e[22],T=Q,j=K.has(p)&&x?.length===1&&d,e[2]=x,e[3]=f,e[4]=p,e[5]=m,e[6]=C,e[7]=k,e[8]=d,e[9]=A,e[10]=P,e[11]=T,e[12]=j}else A=e[9],P=e[10],T=e[11],j=e[12];if(j){let K;e[23]===Symbol.for("react.memo_cache_sentinel")?(K={alignSelf:"start"},e[23]=K):K=e[23];let q;return e[24]!==d?(q=a.jsx(ms,{sx:K,label:d}),e[24]=d,e[25]=q):q=e[25],q}let R;e[26]!==i||e[27]!==s?(R=Up(s||void 0,i,!1)||"",e[26]=i,e[27]=s,e[28]=R):R=e[28];const D=`${R}`,O=typeof T>"u"?A:T,N=l||u,F=b.length>0;let U;e[29]!==r?(U=Ua(r),e[29]=r,e[30]=U):U=e[30];let z;e[31]!==f||e[32]!==o||e[33]!==c?(z=!f&&c.default===void 0&&!o&&a.jsx(En,{value:"",children:"---"}),e[31]=f,e[32]=o,e[33]=c,e[34]=z):z=e[34];let H;e[35]!==w||e[36]!==x?(H=Array.isArray(x)&&x.map((K,q)=>{const{value:X,label:Q}=K,Y=Array.isArray(w)&&w.indexOf(X)!==-1;return a.jsx(En,{value:String(q),disabled:Y,children:Q},q)}),e[35]=w,e[36]=x,e[37]=H):H=e[37];let W;return e[38]!==P||e[39]!==r||e[40]!==f||e[41]!==o||e[42]!==h||e[43]!==z||e[44]!==H||e[45]!==D||e[46]!==O||e[47]!==N||e[48]!==F||e[49]!==U?(W=a.jsxs(qs,{id:r,name:r,label:D,value:O,required:o,disabled:N,multiple:f,error:F,onChange:P,size:h,fullWidth:!1,"aria-describedby":U,children:[z,H]}),e[38]=P,e[39]=r,e[40]=f,e[41]=o,e[42]=h,e[43]=z,e[44]=H,e[45]=D,e[46]=O,e[47]=N,e[48]=F,e[49]=U,e[50]=W):W=e[50],W}function _et(){const t=he.c(16),e=zr(wet),r=zr(xet),n=zr(bet),s=zr(yet),i=zr(vet);let o;t[0]!==s?(o=x=>{const w=RZe(x.formData);s(w)},t[0]=s,t[1]=o):o=t[1];const l=o;let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c={ObjectFieldTemplate:det,TitleFieldTemplate:X0,DescriptionFieldTemplate:g3,ArrayFieldTemplate:WJe,FieldTemplate:aet,BaseInputTemplate:tet,ButtonTemplates:{AddButton:ret,RemoveButton:iet,MoveDownButton:net,MoveUpButton:set,SubmitButton:oet}},t[2]=c):c=t[2];const u=c;let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d={ArrayField:tJe,AnyOfField:cX,OneOfField:cX},t[3]=d):d=t[3];const f=d;let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p={select:get},t[4]=p):p=t[4];const m=p;if(!e||!n){let x;return t[5]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[5]=x):x=t[5],x}let h;t[6]===Symbol.for("react.memo_cache_sentinel")?(h={overflow:"hidden"},t[6]=h):h=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",px:2,py:1},children:a.jsx(vJe,{})}),t[7]=_):_=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"auto","& .form-group > .MuiFormControl-root":{mt:0},"& .form-group.field":{"&.field-array, &.field-object":{maxWidth:"100%"}}},t[8]=g):g=t[8];let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y={arrayMinItems:{populate:"requiredOnly"},emptyObjectFields:"populateRequiredDefaults"},t[9]=y):y=t[9];let b;return t[10]!==l||t[11]!==r||t[12]!==n||t[13]!==e||t[14]!==i?(b=a.jsxs(te,{fullHeight:!0,direction:"column",nowrap:!0,sx:h,spacing:0,children:[_,a.jsx(gt,{sx:g,children:a.jsx(EZe,{schema:e,validator:Nce,formData:r,onChange:l,liveValidate:!0,showErrorList:!1,noHtml5Validate:!0,idSeparator:".",templates:u,fields:f,widgets:m,transformErrors:jce,experimental_defaultFormStateBehavior:y,uiSchema:i},n)})]}),t[10]=l,t[11]=r,t[12]=n,t[13]=e,t[14]=i,t[15]=b):b=t[15],b}function vet(t){return t.selectedUiSchema||void 0}function yet(t){return t.handleDataChange}function bet(t){return t.selectedId}function xet(t){return t.selectedData}function wet(t){return t.selectedSchema}const zp=t=>{const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={flexGrow:1,overflowY:"auto",pt:1,px:2,pb:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(te,{direction:"column",nowrap:!0,sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s};function kh(t){const e=he.c(25);let r,n,s,i,o,l,c,u,d;e[0]!==t?({color:n,disabled:s,size:c,value:d,children:r,onClick:i,sx:u,single:l,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9]);let f;e[10]!==l||e[11]!==c?(f=c==="small"&&{height:40,...l&&{width:40}},e[10]=l,e[11]=c,e[12]=f):f=e[12];let p;e[13]!==u||e[14]!==f?(p={...u,...f},e[13]=u,e[14]=f,e[15]=p):p=e[15];let m;return e[16]!==r||e[17]!==n||e[18]!==s||e[19]!==i||e[20]!==o||e[21]!==c||e[22]!==p||e[23]!==d?(m=a.jsx(VFe,{color:n,disabled:s,size:c,value:d,onClick:i,...o,sx:p,children:r}),e[16]=r,e[17]=n,e[18]=s,e[19]=i,e[20]=o,e[21]=c,e[22]=p,e[23]=d,e[24]=m):m=e[24],m}function lk(t){const e=he.c(19);let r,n,s,i,o,l;e[0]!==t?({value:l,onChange:s,children:r,"data-testid":n,innerSelection:o,...i}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6]);const c=o===void 0?!0:o,[u,d]=I.useState(l);let f;e[7]!==c||e[8]!==s?(f=(g,y)=>{c&&d(y),s&&s(y)},e[7]=c,e[8]=s,e[9]=f):f=e[9];const p=f;let m,h;e[10]!==l?(m=()=>{d(l)},h=[l],e[10]=l,e[11]=m,e[12]=h):(m=e[11],h=e[12]),I.useEffect(m,h);let _;return e[13]!==r||e[14]!==n||e[15]!==p||e[16]!==i||e[17]!==u?(_=a.jsx(YFe,{value:u,onChange:p,"data-testid":n,...i,children:r}),e[13]=r,e[14]=n,e[15]=p,e[16]=i,e[17]=u,e[18]=_):_=e[18],_}function Cet(){const t=he.c(13),e=zr(ket),r=zr(Aet);let n;t[0]!==r?(n=f=>{r(f)},t[0]=r,t[1]=n):n=t[1];const s=e===nl.JSON_VIEW_MODE;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(ge.Tree,{size:24}),t[2]=i):i=t[2];let o;t[3]!==s?(o=a.jsx(kh,{value:nl.JSON_VIEW_MODE,disabled:s,children:i},nl.JSON_VIEW_MODE),t[3]=s,t[4]=o):o=t[4];const l=e===nl.EDITOR_VIEW_MODE;let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ge.Code,{size:24}),t[5]=c):c=t[5];let u;t[6]!==l?(u=a.jsx(kh,{value:nl.EDITOR_VIEW_MODE,disabled:l,children:c},nl.EDITOR_VIEW_MODE),t[6]=l,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==o||t[10]!==u||t[11]!==e?(d=a.jsxs(lk,{color:"primary",value:e,onChange:n,exclusive:!0,children:[o,u]}),t[8]=n,t[9]=o,t[10]=u,t[11]=e,t[12]=d):d=t[12],d}function Aet(t){return t.setViewMode}function ket(t){return t.viewMode}function Met(t){const e=he.c(36),{toolbarActions:r,actionError:n}=t,s=zr(Det),i=zr(Iet),o=zr(Ret),l=zr(Eet),c=zr(Tet),{drawerOpen:u,drawerClose:d,popoverOpen:f}=Jt(),p=zr(jet);let m;e[0]!==d||e[1]!==u||e[2]!==i||e[3]!==c||e[4]!==p?(m=()=>{u({width:600,title:`${i.length} Error${i.length!==1?"s":""}`,content:()=>a.jsx(zp,{children:i.map(T=>{const{id:j}=IZe(T),R=j?.split("."),D=R?.map((O,N)=>{const F=R?.slice(0,N+1).join(".");let U=!1;function z(W){const K=R?.slice(0,W+1).join("."),q=p[K];return q||(U=!0,z(W-1))}const H=z(N);return{text:O,trail:F,schemaField:H,parentSchemaField:U}})||[];return a.jsx(gt,{onClick:()=>{c({id:D[D.length-1].schemaField.id}),d()},sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",message:T.message,title:D.map(Pet).join(" / ")})},T.property)})})})},e[0]=d,e[1]=u,e[2]=i,e[3]=c,e[4]=p,e[5]=m):m=e[5];const h=m;let _;e[6]!==n||e[7]!==f?(_=T=>{f({anchorEl:T.currentTarget,anchorOrigin:{vertical:"top",horizontal:"right"},content:()=>a.jsx(a.Fragment,{children:n})})},e[6]=n,e[7]=f,e[8]=_):_=e[8];const g=_;let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={px:2,py:1,borderTop:"1px solid",borderColor:"divider"},e[9]=y):y=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Cet,{}),e[10]=b):b=e[10];let x;e[11]!==i.length||e[12]!==h||e[13]!==l?(x=l===nl.JSON_VIEW_MODE&&i.length>0&&a.jsx(gt,{onClick:h,sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",title:`${i.length} Error${i.length>1?"s":""}`})}),e[11]=i.length,e[12]=h,e[13]=l,e[14]=x):x=e[14];let w;e[15]!==o||e[16]!==l?(w=l===nl.EDITOR_VIEW_MODE&&o>0&&a.jsx(Lr,{severity:"error",title:`${o} Error${o>1?"s":""}`}),e[15]=o,e[16]=l,e[17]=w):w=e[17];let C;e[18]!==o||e[19]!==i.length||e[20]!==l?(C=(l===nl.EDITOR_VIEW_MODE&&o===0||l===nl.JSON_VIEW_MODE&&i.length===0)&&a.jsx(Lr,{severity:"success",title:"No Errors"}),e[18]=o,e[19]=i.length,e[20]=l,e[21]=C):C=e[21];let k;e[22]!==x||e[23]!==w||e[24]!==C?(k=a.jsxs(te,{direction:"row",children:[b,a.jsxs(te,{justify:"center",children:[x,w,C]})]}),e[22]=x,e[23]=w,e[24]=C,e[25]=k):k=e[25];let A;e[26]!==n||e[27]!==s||e[28]!==o||e[29]!==i.length||e[30]!==g||e[31]!==r?(A=r&&a.jsxs(te,{direction:"row",children:[r?.map(T=>{const{name:j,onClick:R,disabledOnErrors:D,variant:O,...N}=T;return a.jsx(Ze,{variant:O,text:j,onClick:()=>{R(s)},disabled:D?i.length>0||o>0:!1,...N},j)}),n&&a.jsx(gt,{onClick:g,sx:{cursor:"pointer"},children:a.jsx(Lr,{severity:"error",title:"Error"})})]}),e[26]=n,e[27]=s,e[28]=o,e[29]=i.length,e[30]=g,e[31]=r,e[32]=A):A=e[32];let P;return e[33]!==k||e[34]!==A?(P=a.jsx(gt,{sx:y,children:a.jsxs(te,{align:"center",justify:"space-between",fullWidth:!0,direction:"row",nowrap:!0,children:[k,A]})}),e[33]=k,e[34]=A,e[35]=P):P=e[35],P}function Pet(t){const{text:e,schemaField:r,parentSchemaField:n}=t;return Zl(n?e:r?.title||e)}function jet(t){return t.schemaFields}function Tet(t){return t.handleSelectNode}function Eet(t){return t.viewMode}function Ret(t){return t.editorErrors}function Iet(t){return t.errors}function Det(t){return t.data}function $et(t){const e=he.c(61),{title:r,type:n,id:s,itemsLength:i,deprecated:o}=t,l=ci(),c=zr(Uet),u=zr(Fet);let d;e[0]!==s?(d=Q=>Q.selectedId===s,e[0]=s,e[1]=d):d=e[1];const f=zr(d);let p;e[2]!==s?(p=Q=>Q.expandedIds.includes(s),e[2]=s,e[3]=p):p=e[3];const m=zr(p),h=s===wo,_=n===ol.DISCRIMINATOR,g=n===ol.LEAF,y=n===ol.ARRAY,b=n===ol.OBJECT,x=i===0;let w;e[4]!==s||e[5]!==h?(w=Q=>Q.expandedIds.includes(s.split(".").slice(0,-1).join("."))||h,e[4]=s,e[5]=h,e[6]=w):w=e[6];const C=zr(w);let k;e[7]!==s||e[8]!==n?(k=Q=>{const Y=Q.schemaFields[s];if(Y&&n!==Y.type&&Y.type===ol.DISCRIMINATOR)return Y},e[7]=s,e[8]=n,e[9]=k):k=e[9];const A=zr(k);let P;e[10]!==r?(P=Zl(r),e[10]=r,e[11]=P):P=e[11];const T=P;let j;e[12]!==s||e[13]!==h?(j=Q=>{const Y=Q.errors;if(h&&Y?.length)return!0;const Z=s.replace(wo,"");if(!Y||!Z)return!1;const re=Z.split(".");return Y.map(Net).map(Let).filter(Oet).some(fe=>re.every((de,se)=>fe[se]===de))},e[12]=s,e[13]=h,e[14]=j):j=e[14];const R=zr(j);if(!C||_||_)return null;let D;e[15]!==f||e[16]!==l?(D=f?Ic(l.palette.primary.main,.1):"transparent",e[15]=f,e[16]=l,e[17]=D):D=e[17];let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O={backgroundColor:"action.hover"},e[18]=O):O=e[18];let N;e[19]!==o?(N=o&&{"& p":{textDecoration:"line-through"}},e[19]=o,e[20]=N):N=e[20];let F;e[21]!==D||e[22]!==N?(F={backgroundColor:D,borderRadius:1,borderTopRightRadius:0,borderBottomRightRadius:0,mt:"1px",flex:"0 0 auto","&:hover":O,cursor:"pointer",...N},e[21]=D,e[22]=N,e[23]=F):F=e[23];let U;e[24]!==c||e[25]!==s||e[26]!==g?(U=()=>{let Q=s;g&&(Q=s.split(".").slice(0,-1).join(".")),c({id:Q})},e[24]=c,e[25]=s,e[26]=g,e[27]=U):U=e[27];let z;e[28]!==s||e[29]!==x||e[30]!==m||e[31]!==y||e[32]!==b||e[33]!==u?(z=(y||b)&&!x?a.jsx(te,{sx:{fontSize:"16px",p:1,cursor:"pointer"},onClick:Q=>{Q.stopPropagation(),u({id:s,expanded:!m})},children:m?a.jsx(ge.DownArrow,{}):a.jsx(ge.RightArrow,{})}):a.jsx(gt,{sx:{p:1},children:a.jsx(gt,{sx:{width:"16px",height:"16px"}})}),e[28]=s,e[29]=x,e[30]=m,e[31]=y,e[32]=b,e[33]=u,e[34]=z):z=e[34];let H;e[35]!==T||e[36]!==f||e[37]!==R||e[38]!==h||e[39]!==y||e[40]!==b||e[41]!==i?(H=(y||b)&&a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(te,{sx:{flex:"0 0 auto",color:R?"error.main":f?"primary.main":"text.primary",fontSize:"24px"},align:"center",justify:"center",nowrap:!0,children:h?a.jsx(ge.Tree,{}):y?a.jsx(ge.Stack,{}):a.jsx(ge.List,{})}),a.jsx(_e,{type:"body1",sx:{textTransform:"none",overflow:"hidden",whiteSpace:"nowrap"},color:R?"error":f?"primary.main":"text.primary",fontWeight:R||f?"600":"400",children:T}),y&&a.jsx(_e,{type:"caption",sx:{fontWeight:"600",px:.5,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",textAlign:"center"},children:i})]}),e[35]=T,e[36]=f,e[37]=R,e[38]=h,e[39]=y,e[40]=b,e[41]=i,e[42]=H):H=e[42];let W;e[43]!==A||e[44]!==T||e[45]!==f||e[46]!==R||e[47]!==g?(W=g&&a.jsxs(te,{direction:"row",nowrap:!0,align:"center",sx:{flex:"0 0 auto"},children:[a.jsx(te,{sx:{flex:"0 0 auto",color:R?"error.main":"text.secondary",fontSize:"12px",height:"24px",width:"24px"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Circle,{})}),a.jsx(_e,{type:"body1",sx:{flex:"0 0 auto"},color:R?"error":"text.primary",fontWeight:R||f?"600":"400",children:A?.discriminatorTitle?`${Zl(A.discriminatorTitle)}`:T})]}),e[43]=A,e[44]=T,e[45]=f,e[46]=R,e[47]=g,e[48]=W):W=e[48];let K;e[49]!==A?(K=!!A&&a.jsxs(te,{direction:"row",nowrap:!0,spacing:0,align:"center",sx:{ml:1,backgroundColor:"divider",color:"text.primary",borderRadius:1,overflow:"hidden",whiteSpace:"nowrap",flex:"0 0 auto"},children:[a.jsx(te,{sx:{width:"24px",height:"24px",flex:"0 0 auto"},align:"center",justify:"center",nowrap:!0,children:a.jsx(ge.Directions,{size:14})}),a.jsx(_e,{type:"caption",sx:{textTransform:"none",fontWeight:"600",flex:"0 0 auto",pr:.8},children:Zl(A.title)})]}),e[49]=A,e[50]=K):K=e[50];let q;e[51]!==o?(q=o&&a.jsxs(te,{align:"center",direction:"row",sx:{ml:1,px:.5,borderRadius:.5,color:"warning.contrastText",backgroundColor:"warning.main"},nowrap:!0,children:[a.jsx(ge.StatusWarningSmall,{size:16}),a.jsx(_e,{type:"caption",color:"warning",children:"Deprecated"})]}),e[51]=o,e[52]=q):q=e[52];let X;return e[53]!==F||e[54]!==U||e[55]!==z||e[56]!==H||e[57]!==W||e[58]!==K||e[59]!==q?(X=a.jsxs(te,{align:"center",direction:"row",justify:"flex-start",spacing:0,sx:F,onClick:U,nowrap:!0,children:[z,H,W,K,q]}),e[53]=F,e[54]=U,e[55]=z,e[56]=H,e[57]=W,e[58]=K,e[59]=q,e[60]=X):X=e[60],X}function Oet(t){return!!t}function Let(t){return t?t.split("."):""}function Net(t){return t.property}function Fet(t){return t.setExpandedId}function Uet(t){return t.handleSelectNode}function Bet(t){const e=he.c(7),{children:r,type:n,id:s}=t;let i;e[0]!==s?(i=u=>u.expandedIds.includes(s),e[0]=s,e[1]=i):i=e[1];const o=zr(i);if(n===ol.DISCRIMINATOR){let u;return e[2]!==r?(u=a.jsx(a.Fragment,{children:r}),e[2]=r,e[3]=u):u=e[3],u}if(!o)return null;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={pl:1.5},e[4]=l):l=e[4];let c;return e[5]!==r?(c=a.jsx(gt,{sx:l,children:r}),e[5]=r,e[6]=c):c=e[6],c}function ck(t){const e=he.c(10),{title:r,type:n,id:s,schema:i,discriminatorTitle:o}=t,l=zr(zet);let c,u;e[0]!==o||e[1]!==s||e[2]!==i||e[3]!==l||e[4]!==r||e[5]!==n?(c=()=>{n!==ol.LEAF&&l({id:s,schema:i,title:r,type:n,discriminatorTitle:o})},u=[o,s,i,l,r,n],e[0]=o,e[1]=s,e[2]=i,e[3]=l,e[4]=r,e[5]=n,e[6]=c,e[7]=u):(c=e[6],u=e[7]),I.useEffect(c,u);let d;return e[8]!==t?(d=a.jsxs(a.Fragment,{children:[a.jsx($et,{...t}),a.jsx(Bet,{...t})]}),e[8]=t,e[9]=d):d=e[9],d}function zet(t){return t.setSchemaFields}function gX(t){const e=he.c(25),{registry:r,formData:n,options:s,baseType:i,schema:o,idSchema:l,name:c}=t,{schemaUtils:u}=r,d=l.$id===wo,f=t.registry.fields.SchemaField;let p;e[0]!==o?(p=qu(o),e[0]=o,e[1]=p):p=e[1];const m=p;let h;if(e[2]!==n||e[3]!==s||e[4]!==u){let j;e[6]!==n||e[7]!==u?(j=R=>u.retrieveSchema(R,n),e[6]=n,e[7]=u,e[8]=j):j=e[8],h=s.map(j),e[2]=n,e[3]=s,e[4]=u,e[5]=h}else h=e[5];const _=h,g=u.getClosestMatchingOption(n,s,0,m),y=g>=0&&_[g]||null;let b;e:{if(y){let j;e[9]!==i||e[10]!==y?(j=y.type?y:{...y,type:i},e[9]=i,e[10]=y,e[11]=j):j=e[11],b=j;break e}b=null}const x=b;let w;const{title:C}=_[g];C?w=C:w=`Option ${g+1}`;const k=w,A=!!o.deprecated;let P;e[12]!==f||e[13]!==k||e[14]!==l.$id||e[15]!==A||e[16]!==d||e[17]!==c||e[18]!==y||e[19]!==x||e[20]!==t||e[21]!==o?(P=y&&x&&a.jsx(a.Fragment,{children:a.jsx(ck,{id:l.$id,title:k||"root",schema:o,type:ol.DISCRIMINATOR,discriminatorTitle:o.title||c,isRoot:d,deprecated:A,children:a.jsx(f,{...t,schema:x})},l.$id)}),e[12]=f,e[13]=k,e[14]=l.$id,e[15]=A,e[16]=d,e[17]=c,e[18]=y,e[19]=x,e[20]=t,e[21]=o,e[22]=P):P=e[22];let T;return e[23]!==P?(T=a.jsx(a.Fragment,{children:P}),e[23]=P,e[24]=T):T=e[24],T}function qet(){const t=he.c(5),e=zr(Wet),r=zr(Get),n=zr(Het),s=zr(Vet);let i;return t[0]!==s||t[1]!==r||t[2]!==n||t[3]!==e?(i=[...e].length>1?a.jsxs(te,{sx:{flex:"0 0 auto",borderTop:"1px solid",borderColor:"divider",px:2,py:1.5},direction:"column",align:"flex-start",justify:"space-between",spacing:.3,children:[a.jsx(_e,{type:"caption",fontWeight:"600",children:"View Level"}),a.jsx(lk,{color:"primary",value:r,onChange:o=>{n(o)},exclusive:!0,sx:{height:"32px"},children:[...e].map(o=>a.jsx(kh,{value:o,disabled:r===o||s,children:o},o))})]}):null,t[0]=s,t[1]=r,t[2]=n,t[3]=e,t[4]=i):i=t[4],i}function Vet(t){return!!t.errors.length}function Het(t){return t.setSelectedViewLevel}function Get(t){return t.selectedViewLevel}function Wet(t){return t.viewLevels}function Yet(t){const e=he.c(16),{items:r,idSchema:n,title:s,schema:i,registry:o}=t,c=n.$id===wo;let u;e[0]!==r||e[1]!==o||e[2]!==i?(u=VN({items:r.map(Qet),schema:i,registry:o}),e[0]=r,e[1]=o,e[2]=i,e[3]=u):u=e[3];const d=u,f=!!i.deprecated,p=n.$id,m=n.$id,h=d.length;let _;e[4]!==r?(_=r.map(Ket),e[4]=r,e[5]=_):_=e[5];let g;e[6]!==_?(g=a.jsx(a.Fragment,{children:_}),e[6]=_,e[7]=g):g=e[7];let y;return e[8]!==n.$id||e[9]!==f||e[10]!==c||e[11]!==d.length||e[12]!==i||e[13]!==g||e[14]!==s?(y=a.jsx(ck,{id:p,title:s,type:ol.ARRAY,schema:i,isRoot:c,itemsLength:h,deprecated:f,children:g},m),e[8]=n.$id,e[9]=f,e[10]=c,e[11]=d.length,e[12]=i,e[13]=g,e[14]=s,e[15]=y):y=e[15],y}function Ket(t,e){return a.jsx(I.Fragment,{children:t.children},e)}function Qet(t){return t.children.props.formData}function Zet(t){const e=he.c(14),{children:r,id:n,schema:s,label:i,hidden:o}=t,l=mce(s);let c;e[0]!==s?(c=s.type!=="array"&&s.type!=="object"&&s.type!==void 0||!s.type&&s.enum||s.items&&s.type==="array"&&!Array.isArray(s.items)&&s.items!==!0&&s.items.enum||i0(s)||Fce(s),e[0]=s,e[1]=c):c=e[1];const u=c,d=!!s.deprecated;if(o||l||Bce(s)){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={display:"none"},e[2]=m):m=e[2];let h;return e[3]!==r?(h=a.jsx(gt,{sx:m,children:r}),e[3]=r,e[4]=h):h=e[4],h}let f;e[5]!==r||e[6]!==n||e[7]!==d||e[8]!==u||e[9]!==i||e[10]!==s?(f=u?a.jsx(ck,{id:n,type:ol.LEAF,schema:s,title:i,isRoot:!1,deprecated:d}):r,e[5]=r,e[6]=n,e[7]=d,e[8]=u,e[9]=i,e[10]=s,e[11]=f):f=e[11];let p;return e[12]!==f?(p=a.jsx(a.Fragment,{children:f}),e[12]=f,e[13]=p):p=e[13],p}function Xet(t){const e=he.c(16),{title:r,properties:n,idSchema:s,schema:i,formData:o}=t,l=s.$id,c=l===wo;let u;e[0]!==l?(u=g=>g.expandedIds.includes(l),e[0]=l,e[1]=u):u=e[1];const d=zr(u);let f;e[2]!==o||e[3]!==i||e[4]!==r?(f=zce(i,o)||r||"root",e[2]=o,e[3]=i,e[4]=r,e[5]=f):f=e[5];const p=f,m=!!i.deprecated;let h;e[6]!==d||e[7]!==n?(h=d?a.jsx(te,{spacing:0,direction:"column",justify:"flex-start",children:n.map(ett)}):n.map(Jet),e[6]=d,e[7]=n,e[8]=h):h=e[8];let _;return e[9]!==s.$id||e[10]!==m||e[11]!==c||e[12]!==p||e[13]!==i||e[14]!==h?(_=a.jsx(ck,{id:s.$id,title:p,isRoot:c,schema:i,type:ol.OBJECT,deprecated:m,children:h},s.$id),e[9]=s.$id,e[10]=m,e[11]=c,e[12]=p,e[13]=i,e[14]=h,e[15]=_):_=e[15],_}function Jet(t,e){const{content:r}=t;return a.jsx(I.Fragment,{children:r},e)}function ett(t,e){const{content:r}=t;return a.jsx(I.Fragment,{children:r},e)}function ttt(){return null}const rtt=I.memo(function(e){const r=he.c(18),{data:n}=e,s=zr(ott),i=zr(att),o=zr(ltt),l=zr(ctt),c=I.useRef(null),u=I.useRef(!1);let d;r[0]===Symbol.for("react.memo_cache_sentinel")?(d={AnyOfField:gX,OneOfField:gX},r[0]=d):d=r[0];const f=d;let p;r[1]===Symbol.for("react.memo_cache_sentinel")?(p={FieldTemplate:Zet,ObjectFieldTemplate:Xet,ArrayFieldTemplate:Yet,ButtonTemplates:{SubmitButton:ttt}},r[1]=p):p=r[1];const m=p;let h;r[2]!==l?(h=k=>{u.current||(l(k.formData),u.current=!0)},r[2]=l,r[3]=h):h=r[3];const _=h;let g,y;r[4]!==n||r[5]!==s||r[6]!==o?(g=()=>{if(c.current?.validate&&s){const{errors:k}=c.current.validate(n,s);o(k)}},y=[n,c,s,o],r[4]=n,r[5]=s,r[6]=o,r[7]=g,r[8]=y):(g=r[7],y=r[8]),I.useEffect(g,y);let b,x;if(r[9]!==o?(b=()=>()=>{o([])},x=[o],r[9]=o,r[10]=b,r[11]=x):(b=r[10],x=r[11]),I.useEffect(b,x),!s)return null;let w;r[12]===Symbol.for("react.memo_cache_sentinel")?(w={arrayMinItems:{populate:"requiredOnly"},emptyObjectFields:"populateRequiredDefaults"},r[12]=w):w=r[12];let C;return r[13]!==n||r[14]!==_||r[15]!==s||r[16]!==i?(C=a.jsx(kce,{schema:s,validator:Nce,formData:n,liveValidate:!1,noHtml5Validate:!1,noValidate:!0,showErrorList:"top",onChange:_,ref:c,idSeparator:".",fields:f,templates:m,transformErrors:jce,experimental_defaultFormStateBehavior:w,uiSchema:i}),r[13]=n,r[14]=_,r[15]=s,r[16]=i,r[17]=C):C=r[17],C});function ntt(){const t=he.c(12),e=zr(itt),r=I.useDeferredValue(e),n=zr(stt);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"relative"},t[0]=s):s=t[0];let i;t[1]!==n?(i=!n[wo]&&a.jsx(pr,{sx:{position:"absolute",left:0,bottom:0,top:0,right:0,zIndex:999,p:2},children:a.jsxs(te,{spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"})]}),a.jsx(Dt,{variant:"rounded",height:"24px"})]}),a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsxs(te,{sx:{pl:2},spacing:1,children:[a.jsx(Dt,{variant:"rounded",height:"24px"}),a.jsx(Dt,{variant:"rounded",height:"24px"})]})]})]})}),t[1]=n,t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o={flex:"1 1 auto",overflow:"auto",p:2,pr:0},t[3]=o):o=t[3];let l;t[4]!==r?(l=r&&a.jsx(rtt,{data:r}),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==l?(c=a.jsx(gt,{sx:o,children:l}),t[6]=l,t[7]=c):c=t[7];let u;t[8]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(qet,{}),t[8]=u):u=t[8];let d;return t[9]!==i||t[10]!==c?(d=a.jsxs(te,{spacing:0,fullHeight:!0,fullWidth:!0,nowrap:!0,sx:s,children:[i,c,u]}),t[9]=i,t[10]=c,t[11]=d):d=t[11],d}function stt(t){return t.schemaFields}function itt(t){return t.data}function ott(t){return t.schema}function att(t){return t.uiSchema||void 0}function ltt(t){return t.setErrors}function ctt(t){return t.setData}function utt(t){const e=he.c(37),{$ref:r,schema:n,data:s,toolbarActions:i,uiSchema:o,actionError:l}=t,c=zr(htt),u=zr(mtt),d=zr(ptt),f=zr(ftt),p=zr(dtt),m=ci();let h;e[0]!==r||e[1]!==s||e[2]!==c||e[3]!==n||e[4]!==o?(h=()=>{c({$ref:r,schema:n,data:s,uiSchema:o||{}})},e[0]=r,e[1]=s,e[2]=c,e[3]=n,e[4]=o,e[5]=h):h=e[5];let _;e[6]!==r||e[7]!==s||e[8]!==c||e[9]!==u||e[10]!==n||e[11]!==o?(_=[r,s,c,u,n,o],e[6]=r,e[7]=s,e[8]=c,e[9]=u,e[10]=n,e[11]=o,e[12]=_):_=e[12],I.useEffect(h,_);let g,y;e[13]!==u?(g=()=>()=>{u()},y=[u],e[13]=u,e[14]=g,e[15]=y):(g=e[14],y=e[15]),I.useEffect(g,y);let b;e[16]!==m.palette.divider||e[17]!==m.palette.primary.main?(b={overflow:"hidden","--separator-border":m.palette.divider,"--focus-border":m.palette.primary.main},e[16]=m.palette.divider,e[17]=m.palette.primary.main,e[18]=b):b=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x={flex:"1 1 auto"},e[19]=x):x=e[19];let w;e[20]!==d||e[21]!==f||e[22]!==p?(w=p===nl.JSON_VIEW_MODE&&a.jsxs($R,{children:[a.jsx($R.Pane,{preferredSize:300,minSize:200,maxSize:400,children:a.jsx(ntt,{},f)}),a.jsx($R.Pane,{children:a.jsx(_et,{},`${d??"no-selection"}-${f}`)})]}),e[20]=d,e[21]=f,e[22]=p,e[23]=w):w=e[23];let C;e[24]!==p?(C=p===nl.EDITOR_VIEW_MODE&&a.jsx(AYe,{}),e[24]=p,e[25]=C):C=e[25];let k;e[26]!==w||e[27]!==C?(k=a.jsxs(gt,{sx:x,children:[w,C]}),e[26]=w,e[27]=C,e[28]=k):k=e[28];let A;e[29]===Symbol.for("react.memo_cache_sentinel")?(A={flex:"0 0 auto"},e[29]=A):A=e[29];let P;e[30]!==l||e[31]!==i?(P=a.jsx(gt,{sx:A,children:a.jsx(Met,{toolbarActions:i,actionError:l})}),e[30]=l,e[31]=i,e[32]=P):P=e[32];let T;return e[33]!==P||e[34]!==b||e[35]!==k?(T=a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,sx:b,spacing:0,children:[k,P]}),e[33]=P,e[34]=b,e[35]=k,e[36]=T):T=e[36],T}function dtt(t){return t.viewMode}function ftt(t){return t.selectedViewLevel}function ptt(t){return t.selectedId}function mtt(t){return t.reset}function htt(t){return t.initialize}const nue=I.memo(utt),gtt={[ue.AAA]:"#/components/schemas/AAAConfig",[ue.AMF]:"#/components/schemas/AMFConfig",[ue.AUSF]:"#/components/schemas/AusfConfig",[ue.BMSC]:"#/components/schemas/BmscConfig",[ue.CHF]:"#/components/schemas/CHFConfig",[ue.DRA]:"#/components/schemas/DRAConfiguration",[ue.DSM]:"#/components/schemas/DsmConfig",[ue.EIR]:"#/components/schemas/EirConfig",[ue.MME]:"#/components/schemas/MMEConfiguration",[ue.NCM]:"#/components/schemas/NCMConfig",[ue.NRF]:"#/components/schemas/NRFConfig",[ue.PCF]:"#/components/schemas/PCFConfig",[ue.SGWC]:"#/components/schemas/SGWConfiguration",[ue.SMF]:"#/components/schemas/SMFConfig",[ue.SMSF]:"#/components/schemas/SmsfConfig",[ue.UDM]:"#/components/schemas/UdmConfig",[ue.UDR]:"#/components/schemas/UdrConfig",[ue.UPF]:"#/components/schemas/UPFConfiguration"};function _tt(t){const e=he.c(56),{nf:r}=t,n=zn(),{submit:s,state:i,data:o}=gr(),{submit:l,state:c,data:u}=gr();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={key:"fetcher-factory-reset"},e[0]=d):d=e[0];const{submit:f,state:p,data:m}=gr(d);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h={key:"fetcher-reload"},e[1]=h):h=e[1];const{submit:_,state:g,data:y}=gr(h),b=ys(),x=gtt[r]||null;let w;e[2]!==s?(w=async ee=>{ee&&s(ee,{method:"POST",encType:"application/json",action:"apply"})},e[2]=s,e[3]=w):w=e[3];const C=w;let k;e[4]!==l?(k=async()=>{l(null,{method:"POST",encType:"application/json",action:"persist"})},e[4]=l,e[5]=k):k=e[5];const A=k;let P;e[6]!==f||e[7]!==b?(P=async()=>{f(null,{method:"POST",encType:"application/json",action:"factory-reset"}),b(".")},e[6]=f,e[7]=b,e[8]=P):P=e[8];const T=P;let j;e[9]!==_?(j=async()=>{_(null,{method:"POST",encType:"application/json",action:"reload"})},e[9]=_,e[10]=j):j=e[10];const R=j,D=g==="submitting"||g==="loading";let O;e[11]!==R||e[12]!==D?(O={name:"Reload",variant:"outlined",onClick:R,loading:D},e[11]=R,e[12]=D,e[13]=O):O=e[13];const N=p==="submitting"||p==="loading";let F;e[14]!==T||e[15]!==N?(F={name:"Factory Reset",variant:"outlined",onClick:T,loading:N},e[14]=T,e[15]=N,e[16]=F):F=e[16];const U=c==="submitting"||c==="loading";let z;e[17]!==A||e[18]!==U?(z={name:"Persist",variant:"outlined",onClick:A,loading:U},e[17]=A,e[18]=U,e[19]=z):z=e[19];const H=i==="submitting"||i==="loading";let W;e[20]!==C||e[21]!==H?(W={name:"Apply",onClick:C,loading:H,disabledOnErrors:!0},e[20]=C,e[21]=H,e[22]=W):W=e[22];let K;e[23]!==F||e[24]!==z||e[25]!==W||e[26]!==O?(K=[O,F,z,W],e[23]=F,e[24]=z,e[25]=W,e[26]=O,e[27]=K):K=e[27];const q=K;let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X={api_version:{"ui:widget":"hidden"},commit_timestamp:{"ui:widget":"hidden"}},e[28]=X):X=e[28];const Q=X;let Y;e:{if(xt(o)||xt(u)||xt(m)||xt(y)){let ee;e[29]===Symbol.for("react.memo_cache_sentinel")?(ee={maxWidth:"1000px"},e[29]=ee):ee=e[29];let J;e[30]!==o?(J=a.jsx(Xr,{data:o}),e[30]=o,e[31]=J):J=e[31];let me;e[32]!==u?(me=a.jsx(Xr,{data:u}),e[32]=u,e[33]=me):me=e[33];let pe;e[34]!==m?(pe=a.jsx(Xr,{data:m}),e[34]=m,e[35]=pe):pe=e[35];let Se;e[36]!==y?(Se=a.jsx(Xr,{data:y}),e[36]=y,e[37]=Se):Se=e[37];let ve;e[38]!==J||e[39]!==me||e[40]!==pe||e[41]!==Se?(ve=a.jsxs(te,{nowrap:!0,sx:ee,children:[J,me,pe,Se]}),e[38]=J,e[39]=me,e[40]=pe,e[41]=Se,e[42]=ve):ve=e[42],Y=ve;break e}Y=null}const Z=Y;if(!x)throw new Error(`NF "${r}" not supported`);let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),e[43]=re):re=e[43];let fe;e[44]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),e[44]=fe):fe=e[44];let de;e[45]!==Z||e[46]!==r||e[47]!==x||e[48]!==q?(de=ee=>{const[J,me]=ee;return a.jsx(te,{fullHeight:!0,nowrap:!0,spacing:0,children:a.jsx(nue,{$ref:x,data:me,schema:J,toolbarActions:q,uiSchema:Q,actionError:Z},r)})},e[45]=Z,e[46]=r,e[47]=x,e[48]=q,e[49]=de):de=e[49];let se;e[50]!==n.configuration||e[51]!==de?(se=a.jsx(Qt,{resolve:n.configuration,errorElement:fe,children:de}),e[50]=n.configuration,e[51]=de,e[52]=se):se=e[52];let le;return e[53]!==r||e[54]!==se?(le=a.jsx(I.Suspense,{fallback:re,children:se},r),e[53]=r,e[54]=se,e[55]=le):le=e[55],le}async function vtt(t){const e=$.apis.nfOAS.replace("{nf}",t);return De({options:{url:e,method:"GET"}})}async function ytt(t){const e=$.apis.nfConfig.replace("{nf}",t);return De({options:{url:e,method:"GET"}})}async function btt({nf:t,values:e}){const r=$.apis.nfConfig.replace("{nf}",t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function xtt({nf:t}){const e=$.apis.nfConfigPersist.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}async function Stt({nf:t}){const e=$.apis.nfConfigFactoryReset.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}async function wtt({nf:t}){const e=$.apis.nfRestart.replace("{nf}",t);return De({options:{url:e,method:"POST"}})}function Ctt(t){return async({request:e})=>{const r=await e.json(),n=await btt({nf:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function Att(t){return async()=>{const e=await xtt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function ktt(t){return async()=>{const e=await Stt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function Mtt(t){return async()=>{const e=await wtt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}async function Ptt(t){return Foe({configuration:Promise.all([vtt(t),ytt(t)])})}function io(t){return{path:"configuration",handle:vr({to:`/${t}/configuration`,labelIntl:`route.${t}.configuration`}),loader:async()=>Ptt(t),shouldRevalidate:({actionResult:e})=>!xt(e),element:a.jsx(_tt,{nf:t},t),children:[{path:"apply",action:Ctt(t),loader:()=>rt("..")},{path:"persist",action:Att(t),loader:()=>rt("..")},{path:"factory-reset",action:ktt(t),loader:()=>rt("..")},{path:"reload",action:Mtt(t),loader:()=>rt("..")}]}}const jtt=Pr(),Ttt={path:"aaa",handle:vr({labelIntl:"route.aaa",icon:a.jsx(ge.AAA,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AAA)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.AAA),{path:"status",handle:vr({labelIntl:"route.aaa.status",to:$.urls.aaaStatus}),element:a.jsx(Ao,{tabs:[{url:"radius",label:jtt.formatMessage({id:"route.aaa.status.radius"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"radius",replace:!0})},{path:"radius",element:a.jsx(Fqe,{}),loader:Bqe,errorElement:a.jsx(en,{})}]}]}]};function s7(t){const e=he.c(17);let r,n,s,i;e[0]!==t?({children:r,listItemActions:s,divided:n,...i}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i):(r=e[1],n=e[2],s=e[3],i=e[4]);const{menuOpen:o,menuClose:l}=Jt();let c;e[5]!==s||e[6]!==l||e[7]!==o?(c=(p,m,h)=>{s&&o({anchorEl:p.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:s.map(_=>{const{label:g,onClick:y,disabled:b,icon:x}=_;return{label:g,value:g,disabled:typeof b=="function"?b(m):b,icon:x,onClick:()=>{l(),y(m,h)}}})})},e[5]=s,e[6]=l,e[7]=o,e[8]=c):c=e[8];const u=c;let d;e[9]!==r||e[10]!==n||e[11]!==u||e[12]!==s?(d=I.Children.map(r,(p,m)=>{const h={divided:!!(n&&m<I.Children.toArray(r).length-1),...s&&{handleOpenListItemActions:u}};return I.cloneElement(p,h)}),e[9]=r,e[10]=n,e[11]=u,e[12]=s,e[13]=d):d=e[13];let f;return e[14]!==i||e[15]!==d?(f=a.jsx(_h,{...i,children:d}),e[14]=i,e[15]=d,e[16]=f):f=e[16],f}function i7(t){const e=he.c(35),{index:r,item:n,listKey:s,selected:i,onClick:o,primaryText:l,secondaryText:c,divided:u,handleOpenListItemActions:d,endIcon:f,decorator:p,sx:m}=t;let h;e[0]!==o?(h=!o&&{":hover":{background:"transparent",cursor:"auto"}},e[0]=o,e[1]=h):h=e[1];let _;e[2]!==i?(_=i&&{backgroundColor:Ett},e[2]=i,e[3]=_):_=e[3];let g;e[4]!==m||e[5]!==h||e[6]!==_?(g={display:"flex",transition:"background-color 0.35s",...h,..._,...m},e[4]=m,e[5]=h,e[6]=_,e[7]=g):g=e[7];const y=!o;let b;e[8]===Symbol.for("react.memo_cache_sentinel")?(b={my:"2px"},e[8]=b):b=e[8];let x;e[9]!==i?(x=i&&{fontWeight:600},e[9]=i,e[10]=x):x=e[10];let w;e[11]!==x?(w={primary:{sx:{typography:"body1",...x}}},e[11]=x,e[12]=w):w=e[12];let C;e[13]!==l||e[14]!==c||e[15]!==w?(C=a.jsx(dA,{primary:l,secondary:c,sx:b,slotProps:w}),e[13]=l,e[14]=c,e[15]=w,e[16]=C):C=e[16];let k;e[17]!==d||e[18]!==r||e[19]!==n||e[20]!==s||e[21]!==t?(k=d&&a.jsx(gt,{sx:{width:{xs:"64px",md:"32px"}},children:a.jsx(Zr,{onClick:T=>{T.stopPropagation(),d(T,t,r||0)},"data-testid":`list-dropdown-tools-${s&&n?n[s]:r}`,size:"small",children:a.jsx(ge.More,{})})}),e[17]=d,e[18]=r,e[19]=n,e[20]=s,e[21]=t,e[22]=k):k=e[22];let A;e[23]!==f?(A=f&&a.jsx(gt,{sx:{width:{xs:"64px",md:"32px",display:"flex",alignItems:"center",justifyContent:"flex-end"}},children:f}),e[23]=f,e[24]=A):A=e[24];let P;return e[25]!==p||e[26]!==u||e[27]!==o||e[28]!==i||e[29]!==g||e[30]!==y||e[31]!==C||e[32]!==k||e[33]!==A?(P=a.jsxs(Vne,{selected:i,onClick:o,sx:g,divider:u,disableRipple:y,children:[p,C,k,A]}),e[25]=p,e[26]=u,e[27]=o,e[28]=i,e[29]=g,e[30]=y,e[31]=C,e[32]=k,e[33]=A,e[34]=P):P=e[34],P}function Ett(t){return`${t.palette.action.hover} !important`}const la=t=>{const e=he.c(39),{navs:r}=t,n=Lp("."),s=ys(),i=WL();let o;e[0]!==s?(o=N=>{s(N,{replace:!0})},e[0]=s,e[1]=o):o=e[1];const l=o;let c;if(e[2]!==r||e[3]!==n){let N;e[5]!==n?(N=F=>({...F,url:`${n.pathname}/${F.url}`}),e[5]=n,e[6]=N):N=e[6],c=r.map(N),e[2]=r,e[3]=n,e[4]=c}else c=e[4];const u=c;let d;e[7]!==i?(d=N=>!!i.find(F=>F.pathname===N),e[7]=i,e[8]=d):d=e[8];const f=d;let p;if(e[9]!==f||e[10]!==u){let N;e[12]!==f?(N=F=>f(F.url),e[12]=f,e[13]=N):N=e[13],p=u.find(N),e[9]=f,e[10]=u,e[11]=p}else p=e[11];const m=p;let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h={height:"100%",overflow:"hidden"},e[14]=h):h=e[14];let _;e[15]!==f||e[16]!==l||e[17]!==u?(_=u?.length>1&&a.jsx(Is,{size:{xs:3,lg:2},sx:{height:"100%",overflow:"hidden"},children:a.jsx(gt,{sx:{borderRight:"1px solid",borderColor:"divider",height:"100%",overflow:"auto"},children:a.jsx(s7,{disablePadding:!0,children:u.map(N=>{const{url:F,label:U,status:z}=N,H=z?a.jsx(gt,{sx:{pr:1},children:a.jsx(bi,{status:z})}):null;return a.jsx(i7,{primaryText:U,selected:f(F),onClick:()=>l(F),endIcon:a.jsx(ge.RightArrow,{}),decorator:a.jsx(gt,{sx:{pr:1},children:H})},F)})})})}),e[15]=f,e[16]=l,e[17]=u,e[18]=_):_=e[18];const g=r?.length>1?9:12,y=r?.length>1?10:12;let b;e[19]!==g||e[20]!==y?(b={xs:g,lg:y},e[19]=g,e[20]=y,e[21]=b):b=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x={height:"100%",overflow:"hidden"},e[22]=x):x=e[22];let w;e[23]===Symbol.for("react.memo_cache_sentinel")?(w={overflow:"hidden"},e[23]=w):w=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C={flex:"0 0 auto",px:2,py:.5,borderBottom:"1px solid",borderColor:"divider",height:"48px"},e[24]=C):C=e[24];const k=m?.title?m?.title:m?.label;let A;e[25]!==k?(A=a.jsx(_e,{type:"h6",fontWeight:600,children:k}),e[25]=k,e[26]=A):A=e[26];let P;e[27]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx("div",{id:sue}),e[27]=P):P=e[27];let T;e[28]!==A?(T=a.jsxs(te,{direction:"row",justify:"space-between",align:"center",fullWidth:!0,sx:C,children:[A,P]}),e[28]=A,e[29]=T):T=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(gt,{sx:{flex:"1 1 auto",maxHeight:"100%",overflow:"hidden"},children:a.jsx(Bd,{})}),e[30]=j):j=e[30];let R;e[31]!==T?(R=a.jsxs(te,{fullHeight:!0,sx:w,spacing:0,nowrap:!0,fullWidth:!0,children:[T,j]}),e[31]=T,e[32]=R):R=e[32];let D;e[33]!==R||e[34]!==b?(D=a.jsx(Is,{size:b,sx:x,children:R}),e[33]=R,e[34]=b,e[35]=D):D=e[35];let O;return e[36]!==D||e[37]!==_?(O=a.jsxs(al,{spacing:0,sx:h,children:[_,D]}),e[36]=D,e[37]=_,e[38]=O):O=e[38],O},sue="master-detail-header-actions";function o7(t){const e=he.c(2),{children:r}=t;let n;if(e[0]!==r){const s=document.querySelector(`#${sue}`);n=s&&aA.createPortal(a.jsx(a.Fragment,{children:r}),s),e[0]=r,e[1]=n}else n=e[1];return n}function Rtt({sst:t,sd:e}){if(!t&&!e)return"";let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}const Itt=t=>{const e=he.c(24),{row:r}=t,n=Ye();let s;e[0]!==r.supported_ta_list?(s=r.supported_ta_list?.reduce(Ltt,[])??[],e[0]=r.supported_ta_list,e[1]=s):s=e[1];const o=s;let l;e[2]!==n?(l=n.formatMessage({id:"ngap.status.connections.row_detail.tac"}),e[2]=n,e[3]=l):l=e[3];let c;e[4]!==l?(c={key:"tac",label:l},e[4]=l,e[5]=c):c=e[5];let u;e[6]!==n?(u=n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns"}),e[6]=n,e[7]=u):u=e[7];let d;e[8]!==n?(d=y=>{const{broadcast_plmns:b}=y;return b?a.jsx(te,{direction:"column",divided:!0,children:b.map(x=>{const{plmn:w,nssai:C}=x;return a.jsxs(te,{direction:"row",align:"baseline",spacing:4,children:[a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns.plmn"})}),a.jsx(_e,{type:"body2",children:w})]}),C?.length?a.jsxs(te,{direction:"row",align:"baseline",nowrap:!0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:n.formatMessage({id:"ngap.status.connections.row_detail.broadcast_plmns.nssais"})}),a.jsx(ks,{size:"small",items:C?.map(Ntt)||[]})]}):a.jsx(a.Fragment,{})]},w)})}):a.jsx(a.Fragment,{})},e[8]=n,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f={key:"broadcast_plmns",label:u,cellRender:d},e[10]=u,e[11]=d,e[12]=f):f=e[12];let p;e[13]!==c||e[14]!==f?(p=[c,f],e[13]=c,e[14]=f,e[15]=p):p=e[15];const m=p;let h;e[16]!==n?(h=n.formatMessage({id:"ngap.status.connections.supported_ta_list"}),e[16]=n,e[17]=h):h=e[17];let _;e[18]!==m||e[19]!==o?(_=a.jsx(Br,{data:o,orderBy:"tac",page:0,rowsCount:o.length,rowsPerPage:o.length,rowKey:"tac",columns:m,hidePagination:!0,hideRowsCount:!0}),e[18]=m,e[19]=o,e[20]=_):_=e[20];let g;return e[21]!==h||e[22]!==_?(g=a.jsx(pr,{dense:!0,folder:!0,title:h,children:_}),e[21]=h,e[22]=_,e[23]=g):g=e[23],g};function Dtt(t){return Rtt(t)}function $tt(t){return!!t}function Ott(t,e){return[...t,{plmn:e.plmn,nssai:e.nssai?.map(Dtt).filter($tt)||[]}]}function Ltt(t,e){return[...t,{tac:e.tac,broadcast_plmns:e.broadcast_plmns.reduce(Ott,[])}]}function Ntt(t){return{label:`${t}`,id:`${t}`}}function Ftt(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eC={exports:{}},Utt=eC.exports,_X;function Btt(){return _X||(_X=1,(function(t,e){(function(r,n){t.exports=n()})(Utt,(function(){var r;function n(){return r.apply(null,arguments)}function s(L){r=L}function i(L){return L instanceof Array||Object.prototype.toString.call(L)==="[object Array]"}function o(L){return L!=null&&Object.prototype.toString.call(L)==="[object Object]"}function l(L,G){return Object.prototype.hasOwnProperty.call(L,G)}function c(L){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(L).length===0;var G;for(G in L)if(l(L,G))return!1;return!0}function u(L){return L===void 0}function d(L){return typeof L=="number"||Object.prototype.toString.call(L)==="[object Number]"}function f(L){return L instanceof Date||Object.prototype.toString.call(L)==="[object Date]"}function p(L,G){var ne=[],ae,ye=L.length;for(ae=0;ae<ye;++ae)ne.push(G(L[ae],ae));return ne}function m(L,G){for(var ne in G)l(G,ne)&&(L[ne]=G[ne]);return l(G,"toString")&&(L.toString=G.toString),l(G,"valueOf")&&(L.valueOf=G.valueOf),L}function h(L,G,ne,ae){return Ix(L,G,ne,ae,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(L){return L._pf==null&&(L._pf=_()),L._pf}var y;Array.prototype.some?y=Array.prototype.some:y=function(L){var G=Object(this),ne=G.length>>>0,ae;for(ae=0;ae<ne;ae++)if(ae in G&&L.call(this,G[ae],ae,G))return!0;return!1};function b(L){var G=null,ne=!1,ae=L._d&&!isNaN(L._d.getTime());if(ae&&(G=g(L),ne=y.call(G.parsedDateParts,function(ye){return ye!=null}),ae=G.overflow<0&&!G.empty&&!G.invalidEra&&!G.invalidMonth&&!G.invalidWeekday&&!G.weekdayMismatch&&!G.nullInput&&!G.invalidFormat&&!G.userInvalidated&&(!G.meridiem||G.meridiem&&ne),L._strict&&(ae=ae&&G.charsLeftOver===0&&G.unusedTokens.length===0&&G.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(L))L._isValid=ae;else return ae;return L._isValid}function x(L){var G=h(NaN);return L!=null?m(g(G),L):g(G).userInvalidated=!0,G}var w=n.momentProperties=[],C=!1;function k(L,G){var ne,ae,ye,Ie=w.length;if(u(G._isAMomentObject)||(L._isAMomentObject=G._isAMomentObject),u(G._i)||(L._i=G._i),u(G._f)||(L._f=G._f),u(G._l)||(L._l=G._l),u(G._strict)||(L._strict=G._strict),u(G._tzm)||(L._tzm=G._tzm),u(G._isUTC)||(L._isUTC=G._isUTC),u(G._offset)||(L._offset=G._offset),u(G._pf)||(L._pf=g(G)),u(G._locale)||(L._locale=G._locale),Ie>0)for(ne=0;ne<Ie;ne++)ae=w[ne],ye=G[ae],u(ye)||(L[ae]=ye);return L}function A(L){k(this,L),this._d=new Date(L._d!=null?L._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,n.updateOffset(this),C=!1)}function P(L){return L instanceof A||L!=null&&L._isAMomentObject!=null}function T(L){n.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+L)}function j(L,G){var ne=!0;return m(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,L),ne){var ae=[],ye,Ie,St,Sr=arguments.length;for(Ie=0;Ie<Sr;Ie++){if(ye="",typeof arguments[Ie]=="object"){ye+=`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:324:`+new Error().stack),ne=!1}return G.apply(this,arguments)},G)}var R={};function D(L,G){n.deprecationHandler!=null&&n.deprecationHandler(L,G),R[L]||(T(G),R[L]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function O(L){return typeof Function<"u"&&L instanceof Function||Object.prototype.toString.call(L)==="[object Function]"}function N(L){var G,ne;for(ne in L)l(L,ne)&&(G=L[ne],O(G)?this[ne]=G:this["_"+ne]=G);this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F(L,G){var ne=m({},L),ae;for(ae in G)l(G,ae)&&(o(L[ae])&&o(G[ae])?(ne[ae]={},m(ne[ae],L[ae]),m(ne[ae],G[ae])):G[ae]!=null?ne[ae]=G[ae]:delete ne[ae]);for(ae in L)l(L,ae)&&!l(G,ae)&&o(L[ae])&&(ne[ae]=m({},ne[ae]));return ne}function U(L){L!=null&&this.set(L)}var z;Object.keys?z=Object.keys:z=function(L){var G,ne=[];for(G in L)l(L,G)&&ne.push(G);return ne};var H={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function W(L,G,ne){var ae=this._calendar[L]||this._calendar.sameElse;return O(ae)?ae.call(G,ne):ae}function K(L,G,ne){var ae=""+Math.abs(L),ye=G-ae.length,Ie=L>=0;return(Ie?ne?"+":"":"-")+Math.pow(10,Math.max(0,ye)).toString().substr(1)+ae}var q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,X=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Q={},Y={};function Z(L,G,ne,ae){var ye=ae;typeof ae=="string"&&(ye=function(){return this[ae]()}),L&&(Y[L]=ye),G&&(Y[G[0]]=function(){return K(ye.apply(this,arguments),G[1],G[2])}),ne&&(Y[ne]=function(){return this.localeData().ordinal(ye.apply(this,arguments),L)})}function re(L){return L.match(/\[[\s\S]/)?L.replace(/^\[|\]$/g,""):L.replace(/\\/g,"")}function fe(L){var G=L.match(q),ne,ae;for(ne=0,ae=G.length;ne<ae;ne++)Y[G[ne]]?G[ne]=Y[G[ne]]:G[ne]=re(G[ne]);return function(ye){var Ie="",St;for(St=0;St<ae;St++)Ie+=O(G[St])?G[St].call(ye,L):G[St];return Ie}}function de(L,G){return L.isValid()?(G=se(G,L.localeData()),Q[G]=Q[G]||fe(G),Q[G](L)):L.localeData().invalidDate()}function se(L,G){var ne=5;function ae(ye){return G.longDateFormat(ye)||ye}for(X.lastIndex=0;ne>=0&&X.test(L);)L=L.replace(X,ae),X.lastIndex=0,ne-=1;return L}var le={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ee(L){var G=this._longDateFormat[L],ne=this._longDateFormat[L.toUpperCase()];return G||!ne?G:(this._longDateFormat[L]=ne.match(q).map(function(ae){return ae==="MMMM"||ae==="MM"||ae==="DD"||ae==="dddd"?ae.slice(1):ae}).join(""),this._longDateFormat[L])}var J="Invalid date";function me(){return this._invalidDate}var pe="%d",Se=/\d{1,2}/;function ve(L){return this._ordinal.replace("%d",L)}var xe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qe(L,G,ne,ae){var ye=this._relativeTime[ne];return O(ye)?ye(L,G,ne,ae):ye.replace(/%d/i,L)}function Le(L,G){var ne=this._relativeTime[L>0?"future":"past"];return O(ne)?ne(G):ne.replace(/%s/i,G)}var Te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function je(L){return typeof L=="string"?Te[L]||Te[L.toLowerCase()]:void 0}function Ge(L){var G={},ne,ae;for(ae in L)l(L,ae)&&(ne=je(ae),ne&&(G[ne]=L[ae]));return G}var nt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Re(L){var G=[],ne;for(ne in L)l(L,ne)&&G.push({unit:ne,priority:nt[ne]});return G.sort(function(ae,ye){return ae.priority-ye.priority}),G}var we=/\d/,Me=/\d\d/,$e=/\d{3}/,Ve=/\d{4}/,Ne=/[+-]?\d{6}/,Oe=/\d\d?/,ft=/\d\d\d\d?/,Ct=/\d\d\d\d\d\d?/,Et=/\d{1,3}/,at=/\d{1,4}/,$t=/[+-]?\d{1,6}/,Ee=/\d+/,Be=/[+-]?\d+/,qt=/Z|[+-]\d\d:?\d\d/gi,ar=/Z|[+-]\d\d(?::?\d\d)?/gi,hr=/[+-]?\d+(\.\d{1,3})?/,ir=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,cr=/^[1-9]\d?/,kr=/^([1-9]\d|\d)/,Rr;Rr={};function Ut(L,G,ne){Rr[L]=O(G)?G:function(ae,ye){return ae&&ne?ne:G}}function fn(L,G){return l(Rr,L)?Rr[L](G._strict,G._locale):new RegExp(Zt(L))}function Zt(L){return _r(L.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(G,ne,ae,ye,Ie){return ne||ae||ye||Ie}))}function _r(L){return L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function st(L){return L<0?Math.ceil(L)||0:Math.floor(L)}function wt(L){var G=+L,ne=0;return G!==0&&isFinite(G)&&(ne=st(G)),ne}var Pe={};function Ae(L,G){var ne,ae=G,ye;for(typeof L=="string"&&(L=[L]),d(G)&&(ae=function(Ie,St){St[G]=wt(Ie)}),ye=L.length,ne=0;ne<ye;ne++)Pe[L[ne]]=ae}function ze(L,G){Ae(L,function(ne,ae,ye,Ie){ye._w=ye._w||{},G(ne,ye._w,ye,Ie)})}function _t(L,G,ne){G!=null&&l(Pe,L)&&Pe[L](G,ne._a,ne,L)}function jt(L){return L%4===0&&L%100!==0||L%400===0}var Gt=0,Yt=1,Rt=2,At=3,zt=4,or=5,ot=6,ct=7,ke=8;Z("Y",0,0,function(){var L=this.year();return L<=9999?K(L,4):"+"+L}),Z(0,["YY",2],0,function(){return this.year()%100}),Z(0,["YYYY",4],0,"year"),Z(0,["YYYYY",5],0,"year"),Z(0,["YYYYYY",6,!0],0,"year"),Ut("Y",Be),Ut("YY",Oe,Me),Ut("YYYY",at,Ve),Ut("YYYYY",$t,Ne),Ut("YYYYYY",$t,Ne),Ae(["YYYYY","YYYYYY"],Gt),Ae("YYYY",function(L,G){G[Gt]=L.length===2?n.parseTwoDigitYear(L):wt(L)}),Ae("YY",function(L,G){G[Gt]=n.parseTwoDigitYear(L)}),Ae("Y",function(L,G){G[Gt]=parseInt(L,10)});function He(L){return jt(L)?366:365}n.parseTwoDigitYear=function(L){return wt(L)+(wt(L)>68?1900:2e3)};var ut=wr("FullYear",!0);function It(){return jt(this.year())}function wr(L,G){return function(ne){return ne!=null?(sn(this,L,ne),n.updateOffset(this,G),this):Cr(this,L)}}function Cr(L,G){if(!L.isValid())return NaN;var ne=L._d,ae=L._isUTC;switch(G){case"Milliseconds":return ae?ne.getUTCMilliseconds():ne.getMilliseconds();case"Seconds":return ae?ne.getUTCSeconds():ne.getSeconds();case"Minutes":return ae?ne.getUTCMinutes():ne.getMinutes();case"Hours":return ae?ne.getUTCHours():ne.getHours();case"Date":return ae?ne.getUTCDate():ne.getDate();case"Day":return ae?ne.getUTCDay():ne.getDay();case"Month":return ae?ne.getUTCMonth():ne.getMonth();case"FullYear":return ae?ne.getUTCFullYear():ne.getFullYear();default:return NaN}}function sn(L,G,ne){var ae,ye,Ie,St,Sr;if(!(!L.isValid()||isNaN(ne))){switch(ae=L._d,ye=L._isUTC,G){case"Milliseconds":return void(ye?ae.setUTCMilliseconds(ne):ae.setMilliseconds(ne));case"Seconds":return void(ye?ae.setUTCSeconds(ne):ae.setSeconds(ne));case"Minutes":return void(ye?ae.setUTCMinutes(ne):ae.setMinutes(ne));case"Hours":return void(ye?ae.setUTCHours(ne):ae.setHours(ne));case"Date":return void(ye?ae.setUTCDate(ne):ae.setDate(ne));case"FullYear":break;default:return}Ie=ne,St=L.month(),Sr=L.date(),Sr=Sr===29&&St===1&&!jt(Ie)?28:Sr,ye?ae.setUTCFullYear(Ie,St,Sr):ae.setFullYear(Ie,St,Sr)}}function pn(L){return L=je(L),O(this[L])?this[L]():this}function jn(L,G){if(typeof L=="object"){L=Ge(L);var ne=Re(L),ae,ye=ne.length;for(ae=0;ae<ye;ae++)this[ne[ae].unit](L[ne[ae].unit])}else if(L=je(L),O(this[L]))return this[L](G);return this}function es(L,G){return(L%G+G)%G}var Vr;Array.prototype.indexOf?Vr=Array.prototype.indexOf:Vr=function(L){var G;for(G=0;G<this.length;++G)if(this[G]===L)return G;return-1};function Fr(L,G){if(isNaN(L)||isNaN(G))return NaN;var ne=es(G,12);return L+=(G-ne)/12,ne===1?jt(L)?29:28:31-ne%7%2}Z("M",["MM",2],"Mo",function(){return this.month()+1}),Z("MMM",0,0,function(L){return this.localeData().monthsShort(this,L)}),Z("MMMM",0,0,function(L){return this.localeData().months(this,L)}),Ut("M",Oe,cr),Ut("MM",Oe,Me),Ut("MMM",function(L,G){return G.monthsShortRegex(L)}),Ut("MMMM",function(L,G){return G.monthsRegex(L)}),Ae(["M","MM"],function(L,G){G[Yt]=wt(L)-1}),Ae(["MMM","MMMM"],function(L,G,ne,ae){var ye=ne._locale.monthsParse(L,ae,ne._strict);ye!=null?G[Yt]=ye:g(ne).invalidMonth=L});var Qn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Er="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),on=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ei=ir,ha=ir;function Zn(L,G){return L?i(this._months)?this._months[L.month()]:this._months[(this._months.isFormat||on).test(G)?"format":"standalone"][L.month()]:i(this._months)?this._months:this._months.standalone}function Fi(L,G){return L?i(this._monthsShort)?this._monthsShort[L.month()]:this._monthsShort[on.test(G)?"format":"standalone"][L.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lo(L,G,ne){var ae,ye,Ie,St=L.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ae=0;ae<12;++ae)Ie=h([2e3,ae]),this._shortMonthsParse[ae]=this.monthsShort(Ie,"").toLocaleLowerCase(),this._longMonthsParse[ae]=this.months(Ie,"").toLocaleLowerCase();return ne?G==="MMM"?(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:null):(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:null):G==="MMM"?(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:null)):(ye=Vr.call(this._longMonthsParse,St),ye!==-1?ye:(ye=Vr.call(this._shortMonthsParse,St),ye!==-1?ye:null))}function Ki(L,G,ne){var ae,ye,Ie;if(this._monthsParseExact)return lo.call(this,L,G,ne);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ae=0;ae<12;ae++){if(ye=h([2e3,ae]),ne&&!this._longMonthsParse[ae]&&(this._longMonthsParse[ae]=new RegExp("^"+this.months(ye,"").replace(".","")+"$","i"),this._shortMonthsParse[ae]=new RegExp("^"+this.monthsShort(ye,"").replace(".","")+"$","i")),!ne&&!this._monthsParse[ae]&&(Ie="^"+this.months(ye,"")+"|^"+this.monthsShort(ye,""),this._monthsParse[ae]=new RegExp(Ie.replace(".",""),"i")),ne&&G==="MMMM"&&this._longMonthsParse[ae].test(L))return ae;if(ne&&G==="MMM"&&this._shortMonthsParse[ae].test(L))return ae;if(!ne&&this._monthsParse[ae].test(L))return ae}}function Yp(L,G){if(!L.isValid())return L;if(typeof G=="string"){if(/^\d+$/.test(G))G=wt(G);else if(G=L.localeData().monthsParse(G),!d(G))return L}var ne=G,ae=L.date();return ae=ae<29?ae:Math.min(ae,Fr(L.year(),ne)),L._isUTC?L._d.setUTCMonth(ne,ae):L._d.setMonth(ne,ae),L}function ns(L){return L!=null?(Yp(this,L),n.updateOffset(this,!0),this):Cr(this,"Month")}function Gn(){return Fr(this.year(),this.month())}function Wu(L){return this._monthsParseExact?(l(this,"_monthsRegex")||sf.call(this),L?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ei),this._monthsShortStrictRegex&&L?this._monthsShortStrictRegex:this._monthsShortRegex)}function zo(L){return this._monthsParseExact?(l(this,"_monthsRegex")||sf.call(this),L?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ha),this._monthsStrictRegex&&L?this._monthsStrictRegex:this._monthsRegex)}function sf(){function L(Qr,In){return In.length-Qr.length}var G=[],ne=[],ae=[],ye,Ie,St,Sr;for(ye=0;ye<12;ye++)Ie=h([2e3,ye]),St=_r(this.monthsShort(Ie,"")),Sr=_r(this.months(Ie,"")),G.push(St),ne.push(Sr),ae.push(Sr),ae.push(St);G.sort(L),ne.sort(L),ae.sort(L),this._monthsRegex=new RegExp("^("+ae.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+G.join("|")+")","i")}function $s(L,G,ne,ae,ye,Ie,St){var Sr;return L<100&&L>=0?(Sr=new Date(L+400,G,ne,ae,ye,Ie,St),isFinite(Sr.getFullYear())&&Sr.setFullYear(L)):Sr=new Date(L,G,ne,ae,ye,Ie,St),Sr}function Ui(L){var G,ne;return L<100&&L>=0?(ne=Array.prototype.slice.call(arguments),ne[0]=L+400,G=new Date(Date.UTC.apply(null,ne)),isFinite(G.getUTCFullYear())&&G.setUTCFullYear(L)):G=new Date(Date.UTC.apply(null,arguments)),G}function Po(L,G,ne){var ae=7+G-ne,ye=(7+Ui(L,0,ae).getUTCDay()-G)%7;return-ye+ae-1}function yl(L,G,ne,ae,ye){var Ie=(7+ne-ae)%7,St=Po(L,ae,ye),Sr=1+7*(G-1)+Ie+St,Qr,In;return Sr<=0?(Qr=L-1,In=He(Qr)+Sr):Sr>He(L)?(Qr=L+1,In=Sr-He(L)):(Qr=L,In=Sr),{year:Qr,dayOfYear:In}}function co(L,G,ne){var ae=Po(L.year(),G,ne),ye=Math.floor((L.dayOfYear()-ae-1)/7)+1,Ie,St;return ye<1?(St=L.year()-1,Ie=ye+jo(St,G,ne)):ye>jo(L.year(),G,ne)?(Ie=ye-jo(L.year(),G,ne),St=L.year()+1):(St=L.year(),Ie=ye),{week:Ie,year:St}}function jo(L,G,ne){var ae=Po(L,G,ne),ye=Po(L+1,G,ne);return(He(L)-ae+ye)/7}Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),Ut("w",Oe,cr),Ut("ww",Oe,Me),Ut("W",Oe,cr),Ut("WW",Oe,Me),ze(["w","ww","W","WW"],function(L,G,ne,ae){G[ae.substr(0,1)]=wt(L)});function Yu(L){return co(L,this._week.dow,this._week.doy).week}var To={dow:0,doy:6};function Wh(){return this._week.dow}function Ku(){return this._week.doy}function of(L){var G=this.localeData().week(this);return L==null?G:this.add((L-G)*7,"d")}function Yc(L){var G=co(this,1,4).week;return L==null?G:this.add((L-G)*7,"d")}Z("d",0,"do","day"),Z("dd",0,0,function(L){return this.localeData().weekdaysMin(this,L)}),Z("ddd",0,0,function(L){return this.localeData().weekdaysShort(this,L)}),Z("dddd",0,0,function(L){return this.localeData().weekdays(this,L)}),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),Ut("d",Oe),Ut("e",Oe),Ut("E",Oe),Ut("dd",function(L,G){return G.weekdaysMinRegex(L)}),Ut("ddd",function(L,G){return G.weekdaysShortRegex(L)}),Ut("dddd",function(L,G){return G.weekdaysRegex(L)}),ze(["dd","ddd","dddd"],function(L,G,ne,ae){var ye=ne._locale.weekdaysParse(L,ae,ne._strict);ye!=null?G.d=ye:g(ne).invalidWeekday=L}),ze(["d","e","E"],function(L,G,ne,ae){G[ae]=wt(L)});function af(L,G){return typeof L!="string"?L:isNaN(L)?(L=G.weekdaysParse(L),typeof L=="number"?L:null):parseInt(L,10)}function Yh(L,G){return typeof L=="string"?G.weekdaysParse(L)%7||7:isNaN(L)?null:L}function Va(L,G){return L.slice(G,7).concat(L.slice(0,G))}var Eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lf=ir,cf=ir,xx=ir;function Yv(L,G){var ne=i(this._weekdays)?this._weekdays:this._weekdays[L&&L!==!0&&this._weekdays.isFormat.test(G)?"format":"standalone"];return L===!0?Va(ne,this._week.dow):L?ne[L.day()]:ne}function Sx(L){return L===!0?Va(this._weekdaysShort,this._week.dow):L?this._weekdaysShort[L.day()]:this._weekdaysShort}function Kp(L){return L===!0?Va(this._weekdaysMin,this._week.dow):L?this._weekdaysMin[L.day()]:this._weekdaysMin}function ac(L,G,ne){var ae,ye,Ie,St=L.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ae=0;ae<7;++ae)Ie=h([2e3,1]).day(ae),this._minWeekdaysParse[ae]=this.weekdaysMin(Ie,"").toLocaleLowerCase(),this._shortWeekdaysParse[ae]=this.weekdaysShort(Ie,"").toLocaleLowerCase(),this._weekdaysParse[ae]=this.weekdays(Ie,"").toLocaleLowerCase();return ne?G==="dddd"?(ye=Vr.call(this._weekdaysParse,St),ye!==-1?ye:null):G==="ddd"?(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1?ye:null):(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null):G==="dddd"?(ye=Vr.call(this._weekdaysParse,St),ye!==-1||(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null)):G==="ddd"?(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1||(ye=Vr.call(this._weekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1?ye:null)):(ye=Vr.call(this._minWeekdaysParse,St),ye!==-1||(ye=Vr.call(this._weekdaysParse,St),ye!==-1)?ye:(ye=Vr.call(this._shortWeekdaysParse,St),ye!==-1?ye:null))}function Kv(L,G,ne){var ae,ye,Ie;if(this._weekdaysParseExact)return ac.call(this,L,G,ne);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ae=0;ae<7;ae++){if(ye=h([2e3,1]).day(ae),ne&&!this._fullWeekdaysParse[ae]&&(this._fullWeekdaysParse[ae]=new RegExp("^"+this.weekdays(ye,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ae]=new RegExp("^"+this.weekdaysShort(ye,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ae]=new RegExp("^"+this.weekdaysMin(ye,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ae]||(Ie="^"+this.weekdays(ye,"")+"|^"+this.weekdaysShort(ye,"")+"|^"+this.weekdaysMin(ye,""),this._weekdaysParse[ae]=new RegExp(Ie.replace(".",""),"i")),ne&&G==="dddd"&&this._fullWeekdaysParse[ae].test(L))return ae;if(ne&&G==="ddd"&&this._shortWeekdaysParse[ae].test(L))return ae;if(ne&&G==="dd"&&this._minWeekdaysParse[ae].test(L))return ae;if(!ne&&this._weekdaysParse[ae].test(L))return ae}}function Qp(L){if(!this.isValid())return L!=null?this:NaN;var G=Cr(this,"Day");return L!=null?(L=af(L,this.localeData()),this.add(L-G,"d")):G}function Kc(L){if(!this.isValid())return L!=null?this:NaN;var G=(this.day()+7-this.localeData()._week.dow)%7;return L==null?G:this.add(L-G,"d")}function Qv(L){if(!this.isValid())return L!=null?this:NaN;if(L!=null){var G=Yh(L,this.localeData());return this.day(this.day()%7?G:G-7)}else return this.day()||7}function Qh(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=lf),this._weekdaysStrictRegex&&L?this._weekdaysStrictRegex:this._weekdaysRegex)}function wx(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cf),this._weekdaysShortStrictRegex&&L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zh(L){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||uf.call(this),L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xx),this._weekdaysMinStrictRegex&&L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function uf(){function L(mo,Wa){return Wa.length-mo.length}var G=[],ne=[],ae=[],ye=[],Ie,St,Sr,Qr,In;for(Ie=0;Ie<7;Ie++)St=h([2e3,1]).day(Ie),Sr=_r(this.weekdaysMin(St,"")),Qr=_r(this.weekdaysShort(St,"")),In=_r(this.weekdays(St,"")),G.push(Sr),ne.push(Qr),ae.push(In),ye.push(Sr),ye.push(Qr),ye.push(In);G.sort(L),ne.sort(L),ae.sort(L),ye.sort(L),this._weekdaysRegex=new RegExp("^("+ye.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+G.join("|")+")","i")}function Xh(){return this.hours()%12||12}function Ro(){return this.hours()||24}Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,Xh),Z("k",["kk",2],0,Ro),Z("hmm",0,0,function(){return""+Xh.apply(this)+K(this.minutes(),2)}),Z("hmmss",0,0,function(){return""+Xh.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)}),Z("Hmm",0,0,function(){return""+this.hours()+K(this.minutes(),2)}),Z("Hmmss",0,0,function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)});function Qc(L,G){Z(L,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),G)})}Qc("a",!0),Qc("A",!1);function Zp(L,G){return G._meridiemParse}Ut("a",Zp),Ut("A",Zp),Ut("H",Oe,kr),Ut("h",Oe,cr),Ut("k",Oe,cr),Ut("HH",Oe,Me),Ut("hh",Oe,Me),Ut("kk",Oe,Me),Ut("hmm",ft),Ut("hmmss",Ct),Ut("Hmm",ft),Ut("Hmmss",Ct),Ae(["H","HH"],At),Ae(["k","kk"],function(L,G,ne){var ae=wt(L);G[At]=ae===24?0:ae}),Ae(["a","A"],function(L,G,ne){ne._isPm=ne._locale.isPM(L),ne._meridiem=L}),Ae(["h","hh"],function(L,G,ne){G[At]=wt(L),g(ne).bigHour=!0}),Ae("hmm",function(L,G,ne){var ae=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae)),g(ne).bigHour=!0}),Ae("hmmss",function(L,G,ne){var ae=L.length-4,ye=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae,2)),G[or]=wt(L.substr(ye)),g(ne).bigHour=!0}),Ae("Hmm",function(L,G,ne){var ae=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae))}),Ae("Hmmss",function(L,G,ne){var ae=L.length-4,ye=L.length-2;G[At]=wt(L.substr(0,ae)),G[zt]=wt(L.substr(ae,2)),G[or]=wt(L.substr(ye))});function Xp(L){return(L+"").toLowerCase().charAt(0)==="p"}var Yk=/[ap]\.?m?\.?/i,Zv=wr("Hours",!0);function Xv(L,G,ne){return L>11?ne?"pm":"PM":ne?"am":"AM"}var df={calendar:H,longDateFormat:le,invalidDate:J,ordinal:pe,dayOfMonthOrdinalParse:Se,relativeTime:xe,months:Qn,monthsShort:Er,week:To,weekdays:Eo,weekdaysMin:Wv,weekdaysShort:Kh,meridiemParse:Yk},bs={},ff={},Jp;function Kk(L,G){var ne,ae=Math.min(L.length,G.length);for(ne=0;ne<ae;ne+=1)if(L[ne]!==G[ne])return ne;return ae}function Cx(L){return L&&L.toLowerCase().replace("_","-")}function Jv(L){for(var G=0,ne,ae,ye,Ie;G<L.length;){for(Ie=Cx(L[G]).split("-"),ne=Ie.length,ae=Cx(L[G+1]),ae=ae?ae.split("-"):null;ne>0;){if(ye=Jh(Ie.slice(0,ne).join("-")),ye)return ye;if(ae&&ae.length>=ne&&Kk(Ie,ae)>=ne-1)break;ne--}G++}return Jp}function Qk(L){return!!(L&&L.match("^[^/\\\\]*$"))}function Jh(L){var G=null,ne;if(bs[L]===void 0&&t&&t.exports&&Qk(L))try{G=Jp._abbr,ne=Ftt,ne("./locale/"+L),Zc(G)}catch{bs[L]=null}return bs[L]}function Zc(L,G){var ne;return L&&(u(G)?ne=bl(L):ne=e1(L,G),ne?Jp=ne:typeof console<"u"&&console.warn&&console.warn("Locale "+L+" not found. Did you forget to load it?")),Jp._abbr}function e1(L,G){if(G!==null){var ne,ae=df;if(G.abbr=L,bs[L]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ae=bs[L]._config;else if(G.parentLocale!=null)if(bs[G.parentLocale]!=null)ae=bs[G.parentLocale]._config;else if(ne=Jh(G.parentLocale),ne!=null)ae=ne._config;else return ff[G.parentLocale]||(ff[G.parentLocale]=[]),ff[G.parentLocale].push({name:L,config:G}),null;return bs[L]=new U(F(ae,G)),ff[L]&&ff[L].forEach(function(ye){e1(ye.name,ye.config)}),Zc(L),bs[L]}else return delete bs[L],null}function Zk(L,G){if(G!=null){var ne,ae,ye=df;bs[L]!=null&&bs[L].parentLocale!=null?bs[L].set(F(bs[L]._config,G)):(ae=Jh(L),ae!=null&&(ye=ae._config),G=F(ye,G),ae==null&&(G.abbr=L),ne=new U(G),ne.parentLocale=bs[L],bs[L]=ne),Zc(L)}else bs[L]!=null&&(bs[L].parentLocale!=null?(bs[L]=bs[L].parentLocale,L===Zc()&&Zc(L)):bs[L]!=null&&delete bs[L]);return bs[L]}function bl(L){var G;if(L&&L._locale&&L._locale._abbr&&(L=L._locale._abbr),!L)return Jp;if(!i(L)){if(G=Jh(L),G)return G;L=[L]}return Jv(L)}function Xk(){return z(bs)}function t1(L){var G,ne=L._a;return ne&&g(L).overflow===-2&&(G=ne[Yt]<0||ne[Yt]>11?Yt:ne[Rt]<1||ne[Rt]>Fr(ne[Gt],ne[Yt])?Rt:ne[At]<0||ne[At]>24||ne[At]===24&&(ne[zt]!==0||ne[or]!==0||ne[ot]!==0)?At:ne[zt]<0||ne[zt]>59?zt:ne[or]<0||ne[or]>59?or:ne[ot]<0||ne[ot]>999?ot:-1,g(L)._overflowDayOfYear&&(G<Gt||G>Rt)&&(G=Rt),g(L)._overflowWeeks&&G===-1&&(G=ct),g(L)._overflowWeekday&&G===-1&&(G=ke),g(L).overflow=G),L}var Jk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,r1=/Z|[+-]\d\d(?::?\d\d)?/,eg=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],n1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tM=/^\/?Date\((-?\d+)/i,Ax=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rM={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kx(L){var G,ne,ae=L._i,ye=Jk.exec(ae)||eM.exec(ae),Ie,St,Sr,Qr,In=eg.length,mo=n1.length;if(ye){for(g(L).iso=!0,G=0,ne=In;G<ne;G++)if(eg[G][1].exec(ye[1])){St=eg[G][0],Ie=eg[G][2]!==!1;break}if(St==null){L._isValid=!1;return}if(ye[3]){for(G=0,ne=mo;G<ne;G++)if(n1[G][1].exec(ye[3])){Sr=(ye[2]||" ")+n1[G][0];break}if(Sr==null){L._isValid=!1;return}}if(!Ie&&Sr!=null){L._isValid=!1;return}if(ye[4])if(r1.exec(ye[4]))Qr="Z";else{L._isValid=!1;return}L._f=St+(Sr||"")+(Qr||""),tg(L)}else L._isValid=!1}function nM(L,G,ne,ae,ye,Ie){var St=[sM(L),Er.indexOf(G),parseInt(ne,10),parseInt(ae,10),parseInt(ye,10)];return Ie&&St.push(parseInt(Ie,10)),St}function sM(L){var G=parseInt(L,10);return G<=49?2e3+G:G<=999?1900+G:G}function iM(L){return L.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oM(L,G,ne){if(L){var ae=Kh.indexOf(L),ye=new Date(G[0],G[1],G[2]).getDay();if(ae!==ye)return g(ne).weekdayMismatch=!0,ne._isValid=!1,!1}return!0}function aM(L,G,ne){if(L)return rM[L];if(G)return 0;var ae=parseInt(ne,10),ye=ae%100,Ie=(ae-ye)/100;return Ie*60+ye}function Mx(L){var G=Ax.exec(iM(L._i)),ne;if(G){if(ne=nM(G[4],G[3],G[2],G[5],G[6],G[7]),!oM(G[1],ne,L))return;L._a=ne,L._tzm=aM(G[8],G[9],G[10]),L._d=Ui.apply(null,L._a),L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),g(L).rfc2822=!0}else L._isValid=!1}function lM(L){var G=tM.exec(L._i);if(G!==null){L._d=new Date(+G[1]);return}if(kx(L),L._isValid===!1)delete L._isValid;else return;if(Mx(L),L._isValid===!1)delete L._isValid;else return;L._strict?L._isValid=!1:n.createFromInputFallback(L)}n.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(L){L._d=new Date(L._i+(L._useUTC?" UTC":""))});function Xc(L,G,ne){return L??G??ne}function em(L){var G=new Date(n.now());return L._useUTC?[G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate()]:[G.getFullYear(),G.getMonth(),G.getDate()]}function s1(L){var G,ne,ae=[],ye,Ie,St;if(!L._d){for(ye=em(L),L._w&&L._a[Rt]==null&&L._a[Yt]==null&&Px(L),L._dayOfYear!=null&&(St=Xc(L._a[Gt],ye[Gt]),(L._dayOfYear>He(St)||L._dayOfYear===0)&&(g(L)._overflowDayOfYear=!0),ne=Ui(St,0,L._dayOfYear),L._a[Yt]=ne.getUTCMonth(),L._a[Rt]=ne.getUTCDate()),G=0;G<3&&L._a[G]==null;++G)L._a[G]=ae[G]=ye[G];for(;G<7;G++)L._a[G]=ae[G]=L._a[G]==null?G===2?1:0:L._a[G];L._a[At]===24&&L._a[zt]===0&&L._a[or]===0&&L._a[ot]===0&&(L._nextDay=!0,L._a[At]=0),L._d=(L._useUTC?Ui:$s).apply(null,ae),Ie=L._useUTC?L._d.getUTCDay():L._d.getDay(),L._tzm!=null&&L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),L._nextDay&&(L._a[At]=24),L._w&&typeof L._w.d<"u"&&L._w.d!==Ie&&(g(L).weekdayMismatch=!0)}}function Px(L){var G,ne,ae,ye,Ie,St,Sr,Qr,In;G=L._w,G.GG!=null||G.W!=null||G.E!=null?(Ie=1,St=4,ne=Xc(G.GG,L._a[Gt],co(Ps(),1,4).year),ae=Xc(G.W,1),ye=Xc(G.E,1),(ye<1||ye>7)&&(Qr=!0)):(Ie=L._locale._week.dow,St=L._locale._week.doy,In=co(Ps(),Ie,St),ne=Xc(G.gg,L._a[Gt],In.year),ae=Xc(G.w,In.week),G.d!=null?(ye=G.d,(ye<0||ye>6)&&(Qr=!0)):G.e!=null?(ye=G.e+Ie,(G.e<0||G.e>6)&&(Qr=!0)):ye=Ie),ae<1||ae>jo(ne,Ie,St)?g(L)._overflowWeeks=!0:Qr!=null?g(L)._overflowWeekday=!0:(Sr=yl(ne,ae,ye,Ie,St),L._a[Gt]=Sr.year,L._dayOfYear=Sr.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function tg(L){if(L._f===n.ISO_8601){kx(L);return}if(L._f===n.RFC_2822){Mx(L);return}L._a=[],g(L).empty=!0;var G=""+L._i,ne,ae,ye,Ie,St,Sr=G.length,Qr=0,In,mo;for(ye=se(L._f,L._locale).match(q)||[],mo=ye.length,ne=0;ne<mo;ne++)Ie=ye[ne],ae=(G.match(fn(Ie,L))||[])[0],ae&&(St=G.substr(0,G.indexOf(ae)),St.length>0&&g(L).unusedInput.push(St),G=G.slice(G.indexOf(ae)+ae.length),Qr+=ae.length),Y[Ie]?(ae?g(L).empty=!1:g(L).unusedTokens.push(Ie),_t(Ie,ae,L)):L._strict&&!ae&&g(L).unusedTokens.push(Ie);g(L).charsLeftOver=Sr-Qr,G.length>0&&g(L).unusedInput.push(G),L._a[At]<=12&&g(L).bigHour===!0&&L._a[At]>0&&(g(L).bigHour=void 0),g(L).parsedDateParts=L._a.slice(0),g(L).meridiem=L._meridiem,L._a[At]=jx(L._locale,L._a[At],L._meridiem),In=g(L).era,In!==null&&(L._a[Gt]=L._locale.erasConvertYear(In,L._a[Gt])),s1(L),t1(L)}function jx(L,G,ne){var ae;return ne==null?G:L.meridiemHour!=null?L.meridiemHour(G,ne):(L.isPM!=null&&(ae=L.isPM(ne),ae&&G<12&&(G+=12),!ae&&G===12&&(G=0)),G)}function Tx(L){var G,ne,ae,ye,Ie,St,Sr=!1,Qr=L._f.length;if(Qr===0){g(L).invalidFormat=!0,L._d=new Date(NaN);return}for(ye=0;ye<Qr;ye++)Ie=0,St=!1,G=k({},L),L._useUTC!=null&&(G._useUTC=L._useUTC),G._f=L._f[ye],tg(G),b(G)&&(St=!0),Ie+=g(G).charsLeftOver,Ie+=g(G).unusedTokens.length*10,g(G).score=Ie,Sr?Ie<ae&&(ae=Ie,ne=G):(ae==null||Ie<ae||St)&&(ae=Ie,ne=G,St&&(Sr=!0));m(L,ne||G)}function Ex(L){if(!L._d){var G=Ge(L._i),ne=G.day===void 0?G.date:G.day;L._a=p([G.year,G.month,ne,G.hour,G.minute,G.second,G.millisecond],function(ae){return ae&&parseInt(ae,10)}),s1(L)}}function pf(L){var G=new A(t1(Rx(L)));return G._nextDay&&(G.add(1,"d"),G._nextDay=void 0),G}function Rx(L){var G=L._i,ne=L._f;return L._locale=L._locale||bl(L._l),G===null||ne===void 0&&G===""?x({nullInput:!0}):(typeof G=="string"&&(L._i=G=L._locale.preparse(G)),P(G)?new A(t1(G)):(f(G)?L._d=G:i(ne)?Tx(L):ne?tg(L):cM(L),b(L)||(L._d=null),L))}function cM(L){var G=L._i;u(G)?L._d=new Date(n.now()):f(G)?L._d=new Date(G.valueOf()):typeof G=="string"?lM(L):i(G)?(L._a=p(G.slice(0),function(ne){return parseInt(ne,10)}),s1(L)):o(G)?Ex(L):d(G)?L._d=new Date(G):n.createFromInputFallback(L)}function Ix(L,G,ne,ae,ye){var Ie={};return(G===!0||G===!1)&&(ae=G,G=void 0),(ne===!0||ne===!1)&&(ae=ne,ne=void 0),(o(L)&&c(L)||i(L)&&L.length===0)&&(L=void 0),Ie._isAMomentObject=!0,Ie._useUTC=Ie._isUTC=ye,Ie._l=ne,Ie._i=L,Ie._f=G,Ie._strict=ae,pf(Ie)}function Ps(L,G,ne,ae){return Ix(L,G,ne,ae,!1)}var Dx=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=Ps.apply(null,arguments);return this.isValid()&&L.isValid()?L<this?this:L:x()}),tm=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var L=Ps.apply(null,arguments);return this.isValid()&&L.isValid()?L>this?this:L:x()});function mf(L,G){var ne,ae;if(G.length===1&&i(G[0])&&(G=G[0]),!G.length)return Ps();for(ne=G[0],ae=1;ae<G.length;++ae)(!G[ae].isValid()||G[ae][L](ne))&&(ne=G[ae]);return ne}function uM(){var L=[].slice.call(arguments,0);return mf("isBefore",L)}function rg(){var L=[].slice.call(arguments,0);return mf("isAfter",L)}var $x=function(){return Date.now?Date.now():+new Date},hf=["year","quarter","month","week","day","hour","minute","second","millisecond"];function i1(L){var G,ne=!1,ae,ye=hf.length;for(G in L)if(l(L,G)&&!(Vr.call(hf,G)!==-1&&(L[G]==null||!isNaN(L[G]))))return!1;for(ae=0;ae<ye;++ae)if(L[hf[ae]]){if(ne)return!1;parseFloat(L[hf[ae]])!==wt(L[hf[ae]])&&(ne=!0)}return!0}function o1(){return this._isValid}function Ox(){return qo(NaN)}function rm(L){var G=Ge(L),ne=G.year||0,ae=G.quarter||0,ye=G.month||0,Ie=G.week||G.isoWeek||0,St=G.day||0,Sr=G.hour||0,Qr=G.minute||0,In=G.second||0,mo=G.millisecond||0;this._isValid=i1(G),this._milliseconds=+mo+In*1e3+Qr*6e4+Sr*1e3*60*60,this._days=+St+Ie*7,this._months=+ye+ae*3+ne*12,this._data={},this._locale=bl(),this._bubble()}function nm(L){return L instanceof rm}function a1(L){return L<0?Math.round(-1*L)*-1:Math.round(L)}function dM(L,G,ne){var ae=Math.min(L.length,G.length),ye=Math.abs(L.length-G.length),Ie=0,St;for(St=0;St<ae;St++)wt(L[St])!==wt(G[St])&&Ie++;return Ie+ye}function Lx(L,G){Z(L,0,0,function(){var ne=this.utcOffset(),ae="+";return ne<0&&(ne=-ne,ae="-"),ae+K(~~(ne/60),2)+G+K(~~ne%60,2)})}Lx("Z",":"),Lx("ZZ",""),Ut("Z",ar),Ut("ZZ",ar),Ae(["Z","ZZ"],function(L,G,ne){ne._useUTC=!0,ne._tzm=l1(ar,L)});var fM=/([\+\-]|\d\d)/gi;function l1(L,G){var ne=(G||"").match(L),ae,ye,Ie;return ne===null?null:(ae=ne[ne.length-1]||[],ye=(ae+"").match(fM)||["-",0,0],Ie=+(ye[1]*60)+wt(ye[2]),Ie===0?0:ye[0]==="+"?Ie:-Ie)}function uo(L,G){var ne,ae;return G._isUTC?(ne=G.clone(),ae=(P(L)||f(L)?L.valueOf():Ps(L).valueOf())-ne.valueOf(),ne._d.setTime(ne._d.valueOf()+ae),n.updateOffset(ne,!1),ne):Ps(L).local()}function Qu(L){return-Math.round(L._d.getTimezoneOffset())}n.updateOffset=function(){};function Nx(L,G,ne){var ae=this._offset||0,ye;if(!this.isValid())return L!=null?this:NaN;if(L!=null){if(typeof L=="string"){if(L=l1(ar,L),L===null)return this}else Math.abs(L)<16&&!ne&&(L=L*60);return!this._isUTC&&G&&(ye=Qu(this)),this._offset=L,this._isUTC=!0,ye!=null&&this.add(ye,"m"),ae!==L&&(!G||this._changeInProgress?m1(this,qo(L-ae,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?ae:Qu(this)}function Fx(L,G){return L!=null?(typeof L!="string"&&(L=-L),this.utcOffset(L,G),this):-this.utcOffset()}function Ux(L){return this.utcOffset(0,L)}function Bx(L){return this._isUTC&&(this.utcOffset(0,L),this._isUTC=!1,L&&this.subtract(Qu(this),"m")),this}function c1(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var L=l1(qt,this._i);L!=null?this.utcOffset(L):this.utcOffset(0,!0)}return this}function pM(L){return this.isValid()?(L=L?Ps(L).utcOffset():0,(this.utcOffset()-L)%60===0):!1}function gf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function u1(){if(!u(this._isDSTShifted))return this._isDSTShifted;var L={},G;return k(L,this),L=Rx(L),L._a?(G=L._isUTC?h(L._a):Ps(L._a),this._isDSTShifted=this.isValid()&&dM(L._a,G.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function sm(){return this.isValid()?!this._isUTC:!1}function d1(){return this.isValid()?this._isUTC:!1}function f1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Zu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qo(L,G){var ne=L,ae=null,ye,Ie,St;return nm(L)?ne={ms:L._milliseconds,d:L._days,M:L._months}:d(L)||!isNaN(+L)?(ne={},G?ne[G]=+L:ne.milliseconds=+L):(ae=Zu.exec(L))?(ye=ae[1]==="-"?-1:1,ne={y:0,d:wt(ae[Rt])*ye,h:wt(ae[At])*ye,m:wt(ae[zt])*ye,s:wt(ae[or])*ye,ms:wt(a1(ae[ot]*1e3))*ye}):(ae=_f.exec(L))?(ye=ae[1]==="-"?-1:1,ne={y:Jc(ae[2],ye),M:Jc(ae[3],ye),w:Jc(ae[4],ye),d:Jc(ae[5],ye),h:Jc(ae[6],ye),m:Jc(ae[7],ye),s:Jc(ae[8],ye)}):ne==null?ne={}:typeof ne=="object"&&("from"in ne||"to"in ne)&&(St=zx(Ps(ne.from),Ps(ne.to)),ne={},ne.ms=St.milliseconds,ne.M=St.months),Ie=new rm(ne),nm(L)&&l(L,"_locale")&&(Ie._locale=L._locale),nm(L)&&l(L,"_isValid")&&(Ie._isValid=L._isValid),Ie}qo.fn=rm.prototype,qo.invalid=Ox;function Jc(L,G){var ne=L&&parseFloat(L.replace(",","."));return(isNaN(ne)?0:ne)*G}function eu(L,G){var ne={};return ne.months=G.month()-L.month()+(G.year()-L.year())*12,L.clone().add(ne.months,"M").isAfter(G)&&--ne.months,ne.milliseconds=+G-+L.clone().add(ne.months,"M"),ne}function zx(L,G){var ne;return L.isValid()&&G.isValid()?(G=uo(G,L),L.isBefore(G)?ne=eu(L,G):(ne=eu(G,L),ne.milliseconds=-ne.milliseconds,ne.months=-ne.months),ne):{milliseconds:0,months:0}}function p1(L,G){return function(ne,ae){var ye,Ie;return ae!==null&&!isNaN(+ae)&&(D(G,"moment()."+G+"(period, number) is deprecated. Please use moment()."+G+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ie=ne,ne=ae,ae=Ie),ye=qo(ne,ae),m1(this,ye,L),this}}function m1(L,G,ne,ae){var ye=G._milliseconds,Ie=a1(G._days),St=a1(G._months);L.isValid()&&(ae=ae??!0,St&&Yp(L,Cr(L,"Month")+St*ne),Ie&&sn(L,"Date",Cr(L,"Date")+Ie*ne),ye&&L._d.setTime(L._d.valueOf()+ye*ne),ae&&n.updateOffset(L,Ie||St))}var mM=p1(1,"add"),hM=p1(-1,"subtract");function qx(L){return typeof L=="string"||L instanceof String}function Vx(L){return P(L)||f(L)||qx(L)||d(L)||h1(L)||Hx(L)||L===null||L===void 0}function Hx(L){var G=o(L)&&!c(L),ne=!1,ae=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ye,Ie,St=ae.length;for(ye=0;ye<St;ye+=1)Ie=ae[ye],ne=ne||l(L,Ie);return G&&ne}function h1(L){var G=i(L),ne=!1;return G&&(ne=L.filter(function(ae){return!d(ae)&&qx(L)}).length===0),G&&ne}function Ha(L){var G=o(L)&&!c(L),ne=!1,ae=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ye,Ie;for(ye=0;ye<ae.length;ye+=1)Ie=ae[ye],ne=ne||l(L,Ie);return G&&ne}function ng(L,G){var ne=L.diff(G,"days",!0);return ne<-6?"sameElse":ne<-1?"lastWeek":ne<0?"lastDay":ne<1?"sameDay":ne<2?"nextDay":ne<7?"nextWeek":"sameElse"}function ga(L,G){arguments.length===1&&(arguments[0]?Vx(arguments[0])?(L=arguments[0],G=void 0):Ha(arguments[0])&&(G=arguments[0],L=void 0):(L=void 0,G=void 0));var ne=L||Ps(),ae=uo(ne,this).startOf("day"),ye=n.calendarFormat(this,ae)||"sameElse",Ie=G&&(O(G[ye])?G[ye].call(this,ne):G[ye]);return this.format(Ie||this.localeData().calendar(ye,this,Ps(ne)))}function vf(){return new A(this)}function g1(L,G){var ne=P(L)?L:Ps(L);return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()>ne.valueOf():ne.valueOf()<this.clone().startOf(G).valueOf()):!1}function sg(L,G){var ne=P(L)?L:Ps(L);return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()<ne.valueOf():this.clone().endOf(G).valueOf()<ne.valueOf()):!1}function ig(L,G,ne,ae){var ye=P(L)?L:Ps(L),Ie=P(G)?G:Ps(G);return this.isValid()&&ye.isValid()&&Ie.isValid()?(ae=ae||"()",(ae[0]==="("?this.isAfter(ye,ne):!this.isBefore(ye,ne))&&(ae[1]===")"?this.isBefore(Ie,ne):!this.isAfter(Ie,ne))):!1}function _1(L,G){var ne=P(L)?L:Ps(L),ae;return this.isValid()&&ne.isValid()?(G=je(G)||"millisecond",G==="millisecond"?this.valueOf()===ne.valueOf():(ae=ne.valueOf(),this.clone().startOf(G).valueOf()<=ae&&ae<=this.clone().endOf(G).valueOf())):!1}function Xu(L,G){return this.isSame(L,G)||this.isAfter(L,G)}function Gx(L,G){return this.isSame(L,G)||this.isBefore(L,G)}function og(L,G,ne){var ae,ye,Ie;if(!this.isValid())return NaN;if(ae=uo(L,this),!ae.isValid())return NaN;switch(ye=(ae.utcOffset()-this.utcOffset())*6e4,G=je(G),G){case"year":Ie=lc(this,ae)/12;break;case"month":Ie=lc(this,ae);break;case"quarter":Ie=lc(this,ae)/3;break;case"second":Ie=(this-ae)/1e3;break;case"minute":Ie=(this-ae)/6e4;break;case"hour":Ie=(this-ae)/36e5;break;case"day":Ie=(this-ae-ye)/864e5;break;case"week":Ie=(this-ae-ye)/6048e5;break;default:Ie=this-ae}return ne?Ie:st(Ie)}function lc(L,G){if(L.date()<G.date())return-lc(G,L);var ne=(G.year()-L.year())*12+(G.month()-L.month()),ae=L.clone().add(ne,"months"),ye,Ie;return G-ae<0?(ye=L.clone().add(ne-1,"months"),Ie=(G-ae)/(ae-ye)):(ye=L.clone().add(ne+1,"months"),Ie=(G-ae)/(ye-ae)),-(ne+Ie)||0}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function gM(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Vo(L){if(!this.isValid())return null;var G=L!==!0,ne=G?this.clone().utc():this;return ne.year()<0||ne.year()>9999?de(ne,G?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?G?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",de(ne,"Z")):de(ne,G?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function v1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var L="moment",G="",ne,ae,ye,Ie;return this.isLocal()||(L=this.utcOffset()===0?"moment.utc":"moment.parseZone",G="Z"),ne="["+L+'("]',ae=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ye="-MM-DD[T]HH:mm:ss.SSS",Ie=G+'[")]',this.format(ne+ae+ye+Ie)}function cc(L){L||(L=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var G=de(this,L);return this.localeData().postformat(G)}function Wx(L,G){return this.isValid()&&(P(L)&&L.isValid()||Ps(L).isValid())?qo({to:this,from:L}).locale(this.locale()).humanize(!G):this.localeData().invalidDate()}function ag(L){return this.from(Ps(),L)}function Ju(L,G){return this.isValid()&&(P(L)&&L.isValid()||Ps(L).isValid())?qo({from:this,to:L}).locale(this.locale()).humanize(!G):this.localeData().invalidDate()}function y1(L){return this.to(Ps(),L)}function b1(L){var G;return L===void 0?this._locale._abbr:(G=bl(L),G!=null&&(this._locale=G),this)}var lg=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(L){return L===void 0?this.localeData():this.locale(L)});function x1(){return this._locale}var fo=1e3,Ga=60*fo,uc=60*Ga,im=(365*400+97)*24*uc;function xl(L,G){return(L%G+G)%G}function Ho(L,G,ne){return L<100&&L>=0?new Date(L+400,G,ne)-im:new Date(L,G,ne).valueOf()}function Go(L,G,ne){return L<100&&L>=0?Date.UTC(L+400,G,ne)-im:Date.UTC(L,G,ne)}function tu(L){var G,ne;if(L=je(L),L===void 0||L==="millisecond"||!this.isValid())return this;switch(ne=this._isUTC?Go:Ho,L){case"year":G=ne(this.year(),0,1);break;case"quarter":G=ne(this.year(),this.month()-this.month()%3,1);break;case"month":G=ne(this.year(),this.month(),1);break;case"week":G=ne(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":G=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":G=ne(this.year(),this.month(),this.date());break;case"hour":G=this._d.valueOf(),G-=xl(G+(this._isUTC?0:this.utcOffset()*Ga),uc);break;case"minute":G=this._d.valueOf(),G-=xl(G,Ga);break;case"second":G=this._d.valueOf(),G-=xl(G,fo);break}return this._d.setTime(G),n.updateOffset(this,!0),this}function Sl(L){var G,ne;if(L=je(L),L===void 0||L==="millisecond"||!this.isValid())return this;switch(ne=this._isUTC?Go:Ho,L){case"year":G=ne(this.year()+1,0,1)-1;break;case"quarter":G=ne(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":G=ne(this.year(),this.month()+1,1)-1;break;case"week":G=ne(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":G=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":G=ne(this.year(),this.month(),this.date()+1)-1;break;case"hour":G=this._d.valueOf(),G+=uc-xl(G+(this._isUTC?0:this.utcOffset()*Ga),uc)-1;break;case"minute":G=this._d.valueOf(),G+=Ga-xl(G,Ga)-1;break;case"second":G=this._d.valueOf(),G+=fo-xl(G,fo)-1;break}return this._d.setTime(G),n.updateOffset(this,!0),this}function wl(){return this._d.valueOf()-(this._offset||0)*6e4}function dc(){return Math.floor(this.valueOf()/1e3)}function Yx(){return new Date(this.valueOf())}function S1(){var L=this;return[L.year(),L.month(),L.date(),L.hour(),L.minute(),L.second(),L.millisecond()]}function w1(){var L=this;return{years:L.year(),months:L.month(),date:L.date(),hours:L.hours(),minutes:L.minutes(),seconds:L.seconds(),milliseconds:L.milliseconds()}}function Kx(){return this.isValid()?this.toISOString():null}function Bi(){return b(this)}function Os(){return m({},g(this))}function Ln(){return g(this).overflow}function ru(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Z("N",0,0,"eraAbbr"),Z("NN",0,0,"eraAbbr"),Z("NNN",0,0,"eraAbbr"),Z("NNNN",0,0,"eraName"),Z("NNNNN",0,0,"eraNarrow"),Z("y",["y",1],"yo","eraYear"),Z("y",["yy",2],0,"eraYear"),Z("y",["yyy",3],0,"eraYear"),Z("y",["yyyy",4],0,"eraYear"),Ut("N",fc),Ut("NN",fc),Ut("NNN",fc),Ut("NNNN",pc),Ut("NNNNN",su),Ae(["N","NN","NNN","NNNN","NNNNN"],function(L,G,ne,ae){var ye=ne._locale.erasParse(L,ae,ne._strict);ye?g(ne).era=ye:g(ne).invalidEra=L}),Ut("y",Ee),Ut("yy",Ee),Ut("yyy",Ee),Ut("yyyy",Ee),Ut("yo",mc),Ae(["y","yy","yyy","yyyy"],Gt),Ae(["yo"],function(L,G,ne,ae){var ye;ne._locale._eraYearOrdinalRegex&&(ye=L.match(ne._locale._eraYearOrdinalRegex)),ne._locale.eraYearOrdinalParse?G[Gt]=ne._locale.eraYearOrdinalParse(L,ye):G[Gt]=parseInt(L,10)});function _a(L,G){var ne,ae,ye,Ie=this._eras||bl("en")._eras;for(ne=0,ae=Ie.length;ne<ae;++ne){switch(typeof Ie[ne].since){case"string":ye=n(Ie[ne].since).startOf("day"),Ie[ne].since=ye.valueOf();break}switch(typeof Ie[ne].until){case"undefined":Ie[ne].until=1/0;break;case"string":ye=n(Ie[ne].until).startOf("day").valueOf(),Ie[ne].until=ye.valueOf();break}}return Ie}function C1(L,G,ne){var ae,ye,Ie=this.eras(),St,Sr,Qr;for(L=L.toUpperCase(),ae=0,ye=Ie.length;ae<ye;++ae)if(St=Ie[ae].name.toUpperCase(),Sr=Ie[ae].abbr.toUpperCase(),Qr=Ie[ae].narrow.toUpperCase(),ne)switch(G){case"N":case"NN":case"NNN":if(Sr===L)return Ie[ae];break;case"NNNN":if(St===L)return Ie[ae];break;case"NNNNN":if(Qr===L)return Ie[ae];break}else if([St,Sr,Qr].indexOf(L)>=0)return Ie[ae]}function nu(L,G){var ne=L.since<=L.until?1:-1;return G===void 0?n(L.since).year():n(L.since).year()+(G-L.offset)*ne}function Qx(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].name;return""}function Zx(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].narrow;return""}function yf(){var L,G,ne,ae=this.localeData().eras();for(L=0,G=ae.length;L<G;++L)if(ne=this.clone().startOf("day").valueOf(),ae[L].since<=ne&&ne<=ae[L].until||ae[L].until<=ne&&ne<=ae[L].since)return ae[L].abbr;return""}function ed(){var L,G,ne,ae,ye=this.localeData().eras();for(L=0,G=ye.length;L<G;++L)if(ne=ye[L].since<=ye[L].until?1:-1,ae=this.clone().startOf("day").valueOf(),ye[L].since<=ae&&ae<=ye[L].until||ye[L].until<=ae&&ae<=ye[L].since)return(this.year()-n(ye[L].since).year())*ne+ye[L].offset;return this.year()}function A1(L){return l(this,"_erasNameRegex")||am.call(this),L?this._erasNameRegex:this._erasRegex}function om(L){return l(this,"_erasAbbrRegex")||am.call(this),L?this._erasAbbrRegex:this._erasRegex}function k1(L){return l(this,"_erasNarrowRegex")||am.call(this),L?this._erasNarrowRegex:this._erasRegex}function fc(L,G){return G.erasAbbrRegex(L)}function pc(L,G){return G.erasNameRegex(L)}function su(L,G){return G.erasNarrowRegex(L)}function mc(L,G){return G._eraYearOrdinalRegex||Ee}function am(){var L=[],G=[],ne=[],ae=[],ye,Ie,St,Sr,Qr,In=this.eras();for(ye=0,Ie=In.length;ye<Ie;++ye)St=_r(In[ye].name),Sr=_r(In[ye].abbr),Qr=_r(In[ye].narrow),G.push(St),L.push(Sr),ne.push(Qr),ae.push(St),ae.push(Sr),ae.push(Qr);this._erasRegex=new RegExp("^("+ae.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+G.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+L.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ne.join("|")+")","i")}Z(0,["gg",2],0,function(){return this.weekYear()%100}),Z(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bf(L,G){Z(0,[L,L.length],0,G)}bf("gggg","weekYear"),bf("ggggg","weekYear"),bf("GGGG","isoWeekYear"),bf("GGGGG","isoWeekYear"),Ut("G",Be),Ut("g",Be),Ut("GG",Oe,Me),Ut("gg",Oe,Me),Ut("GGGG",at,Ve),Ut("gggg",at,Ve),Ut("GGGGG",$t,Ne),Ut("ggggg",$t,Ne),ze(["gggg","ggggg","GGGG","GGGGG"],function(L,G,ne,ae){G[ae.substr(0,2)]=wt(L)}),ze(["gg","GG"],function(L,G,ne,ae){G[ae]=n.parseTwoDigitYear(L)});function xf(L){return Jx.call(this,L,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function cg(L){return Jx.call(this,L,this.isoWeek(),this.isoWeekday(),1,4)}function td(){return jo(this.year(),1,4)}function zi(){return jo(this.isoWeekYear(),1,4)}function ug(){var L=this.localeData()._week;return jo(this.year(),L.dow,L.doy)}function Xx(){var L=this.localeData()._week;return jo(this.weekYear(),L.dow,L.doy)}function Jx(L,G,ne,ae,ye){var Ie;return L==null?co(this,ae,ye).year:(Ie=jo(L,ae,ye),G>Ie&&(G=Ie),_M.call(this,L,G,ne,ae,ye))}function _M(L,G,ne,ae,ye){var Ie=yl(L,G,ne,ae,ye),St=Ui(Ie.year,0,Ie.dayOfYear);return this.year(St.getUTCFullYear()),this.month(St.getUTCMonth()),this.date(St.getUTCDate()),this}Z("Q",0,"Qo","quarter"),Ut("Q",we),Ae("Q",function(L,G){G[Yt]=(wt(L)-1)*3});function vM(L){return L==null?Math.ceil((this.month()+1)/3):this.month((L-1)*3+this.month()%3)}Z("D",["DD",2],"Do","date"),Ut("D",Oe,cr),Ut("DD",Oe,Me),Ut("Do",function(L,G){return L?G._dayOfMonthOrdinalParse||G._ordinalParse:G._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],Rt),Ae("Do",function(L,G){G[Rt]=wt(L.match(Oe)[0])});var ri=wr("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),Ut("DDD",Et),Ut("DDDD",$e),Ae(["DDD","DDDD"],function(L,G,ne){ne._dayOfYear=wt(L)});function M1(L){var G=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return L==null?G:this.add(L-G,"d")}Z("m",["mm",2],0,"minute"),Ut("m",Oe,kr),Ut("mm",Oe,Me),Ae(["m","mm"],zt);var lm=wr("Minutes",!1);Z("s",["ss",2],0,"second"),Ut("s",Oe,kr),Ut("ss",Oe,Me),Ae(["s","ss"],or);var cm=wr("Seconds",!1);Z("S",0,0,function(){return~~(this.millisecond()/100)}),Z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,function(){return this.millisecond()*10}),Z(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Z(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Z(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Z(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Z(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ut("S",Et,we),Ut("SS",Et,Me),Ut("SSS",Et,$e);var Cl,rd;for(Cl="SSSS";Cl.length<=9;Cl+="S")Ut(Cl,Ee);function Sf(L,G){G[ot]=wt(("0."+L)*1e3)}for(Cl="S";Cl.length<=9;Cl+="S")Ae(Cl,Sf);rd=wr("Milliseconds",!1),Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");function yM(){return this._isUTC?"UTC":""}function eS(){return this._isUTC?"Coordinated Universal Time":""}var er=A.prototype;er.add=mM,er.calendar=ga,er.clone=vf,er.diff=og,er.endOf=Sl,er.format=cc,er.from=Wx,er.fromNow=ag,er.to=Ju,er.toNow=y1,er.get=pn,er.invalidAt=Ln,er.isAfter=g1,er.isBefore=sg,er.isBetween=ig,er.isSame=_1,er.isSameOrAfter=Xu,er.isSameOrBefore=Gx,er.isValid=Bi,er.lang=lg,er.locale=b1,er.localeData=x1,er.max=tm,er.min=Dx,er.parsingFlags=Os,er.set=jn,er.startOf=tu,er.subtract=hM,er.toArray=S1,er.toObject=w1,er.toDate=Yx,er.toISOString=Vo,er.inspect=v1,typeof Symbol<"u"&&Symbol.for!=null&&(er[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),er.toJSON=Kx,er.toString=gM,er.unix=dc,er.valueOf=wl,er.creationData=ru,er.eraName=Qx,er.eraNarrow=Zx,er.eraAbbr=yf,er.eraYear=ed,er.year=ut,er.isLeapYear=It,er.weekYear=xf,er.isoWeekYear=cg,er.quarter=er.quarters=vM,er.month=ns,er.daysInMonth=Gn,er.week=er.weeks=of,er.isoWeek=er.isoWeeks=Yc,er.weeksInYear=ug,er.weeksInWeekYear=Xx,er.isoWeeksInYear=td,er.isoWeeksInISOWeekYear=zi,er.date=ri,er.day=er.days=Qp,er.weekday=Kc,er.isoWeekday=Qv,er.dayOfYear=M1,er.hour=er.hours=Zv,er.minute=er.minutes=lm,er.second=er.seconds=cm,er.millisecond=er.milliseconds=rd,er.utcOffset=Nx,er.utc=Ux,er.local=Bx,er.parseZone=c1,er.hasAlignedHourOffset=pM,er.isDST=gf,er.isLocal=sm,er.isUtcOffset=d1,er.isUtc=f1,er.isUTC=f1,er.zoneAbbr=yM,er.zoneName=eS,er.dates=j("dates accessor is deprecated. Use date instead.",ri),er.months=j("months accessor is deprecated. Use month instead",ns),er.years=j("years accessor is deprecated. Use year instead",ut),er.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fx),er.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",u1);function tS(L){return Ps(L*1e3)}function nd(){return Ps.apply(null,arguments).parseZone()}function dg(L){return L}var Nn=U.prototype;Nn.calendar=W,Nn.longDateFormat=ee,Nn.invalidDate=me,Nn.ordinal=ve,Nn.preparse=dg,Nn.postformat=dg,Nn.relativeTime=qe,Nn.pastFuture=Le,Nn.set=N,Nn.eras=_a,Nn.erasParse=C1,Nn.erasConvertYear=nu,Nn.erasAbbrRegex=om,Nn.erasNameRegex=A1,Nn.erasNarrowRegex=k1,Nn.months=Zn,Nn.monthsShort=Fi,Nn.monthsParse=Ki,Nn.monthsRegex=zo,Nn.monthsShortRegex=Wu,Nn.week=Yu,Nn.firstDayOfYear=Ku,Nn.firstDayOfWeek=Wh,Nn.weekdays=Yv,Nn.weekdaysMin=Kp,Nn.weekdaysShort=Sx,Nn.weekdaysParse=Kv,Nn.weekdaysRegex=Qh,Nn.weekdaysShortRegex=wx,Nn.weekdaysMinRegex=Zh,Nn.isPM=Xp,Nn.meridiem=Xv;function um(L,G,ne,ae){var ye=bl(),Ie=h().set(ae,G);return ye[ne](Ie,L)}function sd(L,G,ne){if(d(L)&&(G=L,L=void 0),L=L||"",G!=null)return um(L,G,ne,"month");var ae,ye=[];for(ae=0;ae<12;ae++)ye[ae]=um(L,ae,ne,"month");return ye}function dm(L,G,ne,ae){typeof L=="boolean"?(d(G)&&(ne=G,G=void 0),G=G||""):(G=L,ne=G,L=!1,d(G)&&(ne=G,G=void 0),G=G||"");var ye=bl(),Ie=L?ye._week.dow:0,St,Sr=[];if(ne!=null)return um(G,(ne+Ie)%7,ae,"day");for(St=0;St<7;St++)Sr[St]=um(G,(St+Ie)%7,ae,"day");return Sr}function fg(L,G){return sd(L,G,"months")}function pg(L,G){return sd(L,G,"monthsShort")}function rS(L,G,ne){return dm(L,G,ne,"weekdays")}function nS(L,G,ne){return dm(L,G,ne,"weekdaysShort")}function id(L,G,ne){return dm(L,G,ne,"weekdaysMin")}Zc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var G=L%10,ne=wt(L%100/10)===1?"th":G===1?"st":G===2?"nd":G===3?"rd":"th";return L+ne}}),n.lang=j("moment.lang is deprecated. Use moment.locale instead.",Zc),n.langData=j("moment.langData is deprecated. Use moment.localeData instead.",bl);var po=Math.abs;function sS(){var L=this._data;return this._milliseconds=po(this._milliseconds),this._days=po(this._days),this._months=po(this._months),L.milliseconds=po(L.milliseconds),L.seconds=po(L.seconds),L.minutes=po(L.minutes),L.hours=po(L.hours),L.months=po(L.months),L.years=po(L.years),this}function P1(L,G,ne,ae){var ye=qo(G,ne);return L._milliseconds+=ae*ye._milliseconds,L._days+=ae*ye._days,L._months+=ae*ye._months,L._bubble()}function wf(L,G){return P1(this,L,G,1)}function fm(L,G){return P1(this,L,G,-1)}function pm(L){return L<0?Math.floor(L):Math.ceil(L)}function mm(){var L=this._milliseconds,G=this._days,ne=this._months,ae=this._data,ye,Ie,St,Sr,Qr;return L>=0&&G>=0&&ne>=0||L<=0&&G<=0&&ne<=0||(L+=pm(mg(ne)+G)*864e5,G=0,ne=0),ae.milliseconds=L%1e3,ye=st(L/1e3),ae.seconds=ye%60,Ie=st(ye/60),ae.minutes=Ie%60,St=st(Ie/60),ae.hours=St%24,G+=st(St/24),Qr=st(hm(G)),ne+=Qr,G-=pm(mg(Qr)),Sr=st(ne/12),ne%=12,ae.days=G,ae.months=ne,ae.years=Sr,this}function hm(L){return L*4800/146097}function mg(L){return L*146097/4800}function od(L){if(!this.isValid())return NaN;var G,ne,ae=this._milliseconds;if(L=je(L),L==="month"||L==="quarter"||L==="year")switch(G=this._days+ae/864e5,ne=this._months+hm(G),L){case"month":return ne;case"quarter":return ne/3;case"year":return ne/12}else switch(G=this._days+Math.round(mg(this._months)),L){case"week":return G/7+ae/6048e5;case"day":return G+ae/864e5;case"hour":return G*24+ae/36e5;case"minute":return G*1440+ae/6e4;case"second":return G*86400+ae/1e3;case"millisecond":return Math.floor(G*864e5)+ae;default:throw new Error("Unknown unit "+L)}}function Al(L){return function(){return this.as(L)}}var hc=Al("ms"),j1=Al("s"),T1=Al("m"),iu=Al("h"),ou=Al("d"),gm=Al("w"),E1=Al("M"),R1=Al("Q"),_m=Al("y"),vm=hc;function iS(){return qo(this)}function oS(L){return L=je(L),this.isValid()?this[L+"s"]():NaN}function va(L){return function(){return this.isValid()?this._data[L]:NaN}}var hg=va("milliseconds"),aS=va("seconds"),I1=va("minutes"),D1=va("hours"),Wo=va("days"),ya=va("months"),au=va("years");function $1(){return st(this.days()/7)}var kl=Math.round,Yo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ko(L,G,ne,ae,ye){return ye.relativeTime(G||1,!!ne,L,ae)}function ni(L,G,ne,ae){var ye=qo(L).abs(),Ie=kl(ye.as("s")),St=kl(ye.as("m")),Sr=kl(ye.as("h")),Qr=kl(ye.as("d")),In=kl(ye.as("M")),mo=kl(ye.as("w")),Wa=kl(ye.as("y")),Ml=Ie<=ne.ss&&["s",Ie]||Ie<ne.s&&["ss",Ie]||St<=1&&["m"]||St<ne.m&&["mm",St]||Sr<=1&&["h"]||Sr<ne.h&&["hh",Sr]||Qr<=1&&["d"]||Qr<ne.d&&["dd",Qr];return ne.w!=null&&(Ml=Ml||mo<=1&&["w"]||mo<ne.w&&["ww",mo]),Ml=Ml||In<=1&&["M"]||In<ne.M&&["MM",In]||Wa<=1&&["y"]||["yy",Wa],Ml[2]=G,Ml[3]=+L>0,Ml[4]=ae,Ko.apply(null,Ml)}function gg(L){return L===void 0?kl:typeof L=="function"?(kl=L,!0):!1}function gc(L,G){return Yo[L]===void 0?!1:G===void 0?Yo[L]:(Yo[L]=G,L==="s"&&(Yo.ss=G-1),!0)}function an(L,G){if(!this.isValid())return this.localeData().invalidDate();var ne=!1,ae=Yo,ye,Ie;return typeof L=="object"&&(G=L,L=!1),typeof L=="boolean"&&(ne=L),typeof G=="object"&&(ae=Object.assign({},Yo,G),G.s!=null&&G.ss==null&&(ae.ss=G.s-1)),ye=this.localeData(),Ie=ni(this,!ne,ae,ye),ne&&(Ie=ye.pastFuture(+this,Ie)),ye.postformat(Ie)}var ss=Math.abs;function Ls(L){return(L>0)-(L<0)||+L}function ad(){if(!this.isValid())return this.localeData().invalidDate();var L=ss(this._milliseconds)/1e3,G=ss(this._days),ne=ss(this._months),ae,ye,Ie,St,Sr=this.asSeconds(),Qr,In,mo,Wa;return Sr?(ae=st(L/60),ye=st(ae/60),L%=60,ae%=60,Ie=st(ne/12),ne%=12,St=L?L.toFixed(3).replace(/\.?0+$/,""):"",Qr=Sr<0?"-":"",In=Ls(this._months)!==Ls(Sr)?"-":"",mo=Ls(this._days)!==Ls(Sr)?"-":"",Wa=Ls(this._milliseconds)!==Ls(Sr)?"-":"",Qr+"P"+(Ie?In+Ie+"Y":"")+(ne?In+ne+"M":"")+(G?mo+G+"D":"")+(ye||ae||L?"T":"")+(ye?Wa+ye+"H":"")+(ae?Wa+ae+"M":"")+(L?Wa+St+"S":"")):"P0D"}var _n=rm.prototype;_n.isValid=o1,_n.abs=sS,_n.add=wf,_n.subtract=fm,_n.as=od,_n.asMilliseconds=hc,_n.asSeconds=j1,_n.asMinutes=T1,_n.asHours=iu,_n.asDays=ou,_n.asWeeks=gm,_n.asMonths=E1,_n.asQuarters=R1,_n.asYears=_m,_n.valueOf=vm,_n._bubble=mm,_n.clone=iS,_n.get=oS,_n.milliseconds=hg,_n.seconds=aS,_n.minutes=I1,_n.hours=D1,_n.days=Wo,_n.weeks=$1,_n.months=ya,_n.years=au,_n.humanize=an,_n.toISOString=ad,_n.toString=ad,_n.toJSON=ad,_n.locale=b1,_n.localeData=x1,_n.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ad),_n.lang=lg,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),Ut("x",Be),Ut("X",hr),Ae("X",function(L,G,ne){ne._d=new Date(parseFloat(L)*1e3)}),Ae("x",function(L,G,ne){ne._d=new Date(wt(L))});return n.version="2.30.1",s(Ps),n.fn=er,n.min=uM,n.max=rg,n.now=$x,n.utc=h,n.unix=tS,n.months=fg,n.isDate=f,n.locale=Zc,n.invalid=x,n.duration=qo,n.isMoment=P,n.weekdays=rS,n.parseZone=nd,n.localeData=bl,n.isDuration=nm,n.monthsShort=pg,n.weekdaysMin=id,n.defineLocale=e1,n.updateLocale=Zk,n.locales=Xk,n.weekdaysShort=nS,n.normalizeUnits=je,n.relativeTimeRounding=gg,n.relativeTimeThreshold=gc,n.calendarFormat=ng,n.prototype=er,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}))})(eC)),eC.exports}var ztt=Btt();const iue=Pi(ztt),oue=Pr();function Mr(t){return t?iue(t).format($[oue.locale.split("-")[0]].fullDateFormat):""}function qtt(t){return iue.unix(t).format($[oue.locale.split("-")[0]].fullDateFormat)}function Vtt(){const t=he.c(81),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=de=>{n({association_id:de},{action:"delete",method:"POST",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==n?(l=de=>{n({association_id:de},{action:"reset",method:"POST",encType:"application/json"})},t[2]=n,t[3]=l):l=t[3];const c=l;let u;t[4]!==e?(u=e.formatMessage({id:"ngap.status.connections.association_id"}),t[4]=e,t[5]=u):u=t[5];let d;t[6]!==u?(d={key:"association_id",label:u},t[6]=u,t[7]=d):d=t[7];let f;t[8]!==e?(f=e.formatMessage({id:"ngap.status.connections.connected_at"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]!==f?(p={key:"connected_at",label:f,cellRender:Xtt},t[10]=f,t[11]=p):p=t[11];let m;t[12]!==e?(m=e.formatMessage({id:"ngap.status.connections.global_ran_node_id"}),t[12]=e,t[13]=m):m=t[13];let h;t[14]!==e?(h=de=>{const{global_ran_node_id:se}=de;return se?a.jsxs(te,{direction:"column",spacing:0,children:[a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.id"})}),a.jsx(_e,{type:"body2",children:se.id})]}),a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.plmn"})}),a.jsx(_e,{type:"body2",children:se.plmn})]}),a.jsxs(te,{direction:"row",align:"baseline",children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"ngap.status.connections.global_ran_node_id.type"})}),a.jsx(_e,{type:"body2",children:se.type})]})]}):a.jsx(a.Fragment,{})},t[14]=e,t[15]=h):h=t[15];let _;t[16]!==m||t[17]!==h?(_={key:"global_ran_node_id",label:m,cellRender:h},t[16]=m,t[17]=h,t[18]=_):_=t[18];let g;t[19]!==e?(g=e.formatMessage({id:"ngap.status.connections.ran_node_name"}),t[19]=e,t[20]=g):g=t[20];let y;t[21]!==g?(y={key:"ran_node_name",label:g},t[21]=g,t[22]=y):y=t[22];let b;t[23]!==e?(b=e.formatMessage({id:"mme.sbcap.status.connections.local_addrs"}),t[23]=e,t[24]=b):b=t[24];let x;t[25]!==b?(x={key:"local_addrs",label:b,cellRender:Qtt},t[25]=b,t[26]=x):x=t[26];let w;t[27]!==e?(w=e.formatMessage({id:"ngap.status.connections.local_port"}),t[27]=e,t[28]=w):w=t[28];let C;t[29]!==w?(C={key:"local_port",label:w},t[29]=w,t[30]=C):C=t[30];let k;t[31]!==e?(k=e.formatMessage({id:"mme.sbcap.status.connections.remote_addrs"}),t[31]=e,t[32]=k):k=t[32];let A;t[33]!==k?(A={key:"remote_addrs",label:k,cellRender:Ytt},t[33]=k,t[34]=A):A=t[34];let P;t[35]!==e?(P=e.formatMessage({id:"ngap.status.connections.remote_port"}),t[35]=e,t[36]=P):P=t[36];let T;t[37]!==P?(T={key:"remote_port",label:P},t[37]=P,t[38]=T):T=t[38];let j;t[39]!==e?(j=e.formatMessage({id:"ngap.status.connections.srb_count"}),t[39]=e,t[40]=j):j=t[40];let R;t[41]!==j?(R={key:"srb_count",label:j},t[41]=j,t[42]=R):R=t[42];let D;t[43]!==y||t[44]!==x||t[45]!==C||t[46]!==A||t[47]!==T||t[48]!==R||t[49]!==d||t[50]!==p||t[51]!==_?(D=[d,p,_,y,x,C,A,T,R],t[43]=y,t[44]=x,t[45]=C,t[46]=A,t[47]=T,t[48]=R,t[49]=d,t[50]=p,t[51]=_,t[52]=D):D=t[52];const O=D;let N;t[53]!==e?(N=e.formatMessage({id:"ngap.status.connections.actions.delete"}),t[53]=e,t[54]=N):N=t[54];let F;t[55]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),t[55]=F):F=t[55];let U;t[56]!==o?(U=de=>{const{association_id:se}=de;o(se)},t[56]=o,t[57]=U):U=t[57];let z;t[58]!==N||t[59]!==U?(z={label:N,icon:F,disabled:Wtt,onClick:U},t[58]=N,t[59]=U,t[60]=z):z=t[60];let H;t[61]!==e?(H=e.formatMessage({id:"ngap.status.connections.actions.reset"}),t[61]=e,t[62]=H):H=t[62];let W;t[63]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(ge.Refresh,{}),t[63]=W):W=t[63];let K;t[64]!==c?(K=de=>{const{association_id:se}=de;c(se)},t[64]=c,t[65]=K):K=t[65];let q;t[66]!==H||t[67]!==K?(q={label:H,icon:W,disabled:Gtt,onClick:K},t[66]=H,t[67]=K,t[68]=q):q=t[68];let X;t[69]!==z||t[70]!==q?(X=[z,q],t[69]=z,t[70]=q,t[71]=X):X=t[71];const Q=X;let Y;t[72]===Symbol.for("react.memo_cache_sentinel")?(Y=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[72]=Y):Y=t[72];let Z;t[73]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(en,{}),t[73]=Z):Z=t[73];let re;t[74]!==O||t[75]!==s.state||t[76]!==Q?(re=de=>a.jsx(Br,{autoScale:!0,data:de||[],orderBy:"association_id",page:0,loading:s.state!=="idle",rowsCount:de?.length,rowsPerPage:de?.length,rowKey:"association_id",columns:O,hidePagination:!0,rowDetail:{content:Htt},rowActions:Q,stickyRowActions:!0}),t[74]=O,t[75]=s.state,t[76]=Q,t[77]=re):re=t[77];let fe;return t[78]!==r.connections||t[79]!==re?(fe=a.jsx(I.Suspense,{fallback:Y,children:a.jsx(Qt,{resolve:r.connections,errorElement:Z,children:re})}),t[78]=r.connections,t[79]=re,t[80]=fe):fe=t[80],fe}function Htt(t){return a.jsx(Itt,{row:t})}function Gtt(){return!Ue(ie.monitoring)}function Wtt(){return!Ue(ie.monitoring)}function Ytt(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Ktt)||[]})}function Ktt(t){return{label:`${t}`,id:`${t}`}}function Qtt(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Ztt)||[]})}function Ztt(t){return{label:`${t}`,id:`${t}`}}function Xtt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Jtt(){const t=he.c(24),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"ngap.status.listeners.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:ert},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"ngap.status.listeners.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"ngap.status.listeners.transport_name"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"transport_name",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==i||t[13]!==l||t[14]!==u?(d=[i,l,u],t[12]=i,t[13]=l,t[14]=u,t[15]=d):d=t[15];const f=d;let p;t[16]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=p):p=t[16];let m;t[17]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(en,{}),t[17]=m):m=t[17];let h;t[18]!==f||t[19]!==n.state?(h=g=>a.jsx(Br,{autoScale:!0,data:g,orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:g?.length,rowsPerPage:g?.length,rowKey:"transport_name",columns:f,hidePagination:!0}),t[18]=f,t[19]=n.state,t[20]=h):h=t[20];let _;return t[21]!==r.listeners||t[22]!==h?(_=a.jsx(I.Suspense,{fallback:p,children:a.jsx(Qt,{resolve:r.listeners,errorElement:m,children:h})}),t[21]=r.listeners,t[22]=h,t[23]=_):_=t[23],_}function ert(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(trt)||[]})}function trt(t){return{label:`${t}`,id:t}}async function rrt({nf:t}){const e=$.apis.ngap.status.connections(t);return De({options:{url:e,method:"GET"}})}async function nrt({nf:t,association_id:e}){const r=`${$.apis.ngap.status.connections(t)}/${e}/remove`;return De({options:{url:r,method:"POST"}})}async function srt({nf:t,association_id:e}){const r=`${$.apis.ngap.status.connections(t)}/${e}/reset`;return De({options:{url:r,method:"POST"}})}async function irt({nf:t}){const e=$.apis.ngap.status.listeners(t);return De({options:{url:e,method:"GET"}})}function ort({nf:t}){return async({request:e})=>{const{association_id:r}=await e.json(),n=await nrt({nf:t,association_id:r});return xt(n)?Ar(n.error.title):Nt(),Ft(n)}}function art({nf:t}){return async({request:e})=>{const{association_id:r}=await e.json(),n=await srt({nf:t,association_id:r});return xt(n)?Ar(n.error.title):Nt(),Ft(n)}}function lrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:rrt({nf:t})}})}function crt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{listeners:irt({nf:t})}})}function urt({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:r.formatMessage({id:"route.ngap.connections"})},{url:"listeners",label:r.formatMessage({id:"route.ngap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:lrt({nf:e}),element:a.jsx(Vtt,{}),children:[{path:"delete",action:ort({nf:e}),loader:()=>rt("..")},{path:"reset",action:art({nf:e}),loader:()=>rt("..")}]},{path:"listeners",loader:crt({nf:e}),element:a.jsx(Jtt,{})}]}}const drt=Pr(),frt={path:"amf",handle:vr({labelIntl:"route.amf",icon:a.jsx(ge.AMF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AMF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.amf.status",to:$.urls.amfStatus}),element:a.jsx(Ao,{tabs:[{url:"ngap",label:drt.formatMessage({id:"route.ngap"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"ngap",replace:!0})},urt({path:"ngap",nf:ue.AMF})]},io(ue.AMF)]}]},prt={path:"ausf",handle:vr({labelIntl:"route.ausf",icon:a.jsx(ge.AUSF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.AUSF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.AUSF)]}]};function mrt(t){const e=he.c(17),{children:r,title:n,description:s,"data-testid":i}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:"100%",maxWidth:"480px",flex:"0 0 auto"},e[0]=o):o=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={mb:2},e[1]=l):l=e[1];let c;e[2]!==n?(c=a.jsx(_e,{type:"h5",fontWeight:500,children:n}),e[2]=n,e[3]=c):c=e[3];let u;e[4]!==s?(u=a.jsx(_e,{color:"text.secondary",children:s}),e[4]=s,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==u?(d=a.jsxs(gt,{sx:l,children:[c,u]}),e[6]=c,e[7]=u,e[8]=d):d=e[8];let f;e[9]!==r?(f=a.jsx(gt,{children:r}),e[9]=r,e[10]=f):f=e[10];let p;e[11]!==d||e[12]!==f?(p=a.jsxs(Kt,{children:[d,f]}),e[11]=d,e[12]=f,e[13]=p):p=e[13];let m;return e[14]!==i||e[15]!==p?(m=a.jsx(te,{fullHeight:!0,align:"center",justify:"center",children:a.jsx(pr,{"data-testid":i,sx:o,children:p})}),e[14]=i,e[15]=p,e[16]=m):m=e[16],m}const hrt=dr().shape({username:We().required("Username is required"),password:We().required("Password is required")}),aue=t=>{const e=he.c(12),{backend:r}=t,n=Ye(),s=On(),i=gl(),o=T6e();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={username:"",password:""},e[0]=l):l=e[0];const c=l;let u;e[1]!==r||e[2]!==i?(u=async m=>{const{username:h,password:_}=m;i({username:h,password:_,backend:r},{method:"POST",encType:"application/json"})},e[1]=r,e[2]=i,e[3]=u):u=e[3];const d=u;let f;e[4]!==o||e[5]!==r||e[6]!==n||e[7]!==s?(f=m=>{const{isSubmitting:h}=m,_=h||s.state!=="idle";return a.jsx(te,{sx:{mt:2},children:a.jsx(Kd,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"username",children:g=>{const{field:y,form:b}=g,{touched:x,errors:w}=b;return a.jsx(dt,{fullWidth:!0,label:n.formatMessage({id:"login.username.label"}),placeholder:n.formatMessage({id:"login.username.placeholder"}),error:!!(x.username&&w.username),disabled:h,helperText:x.username&&w.username?n.formatMessage({id:"login.username.error"}):void 0,...y})}}),a.jsx(Ke,{name:"password",children:g=>{const{field:y,form:b}=g,{touched:x,errors:w}=b;return a.jsx(dt,{...y,fullWidth:!0,type:"password",showPasswordVisibility:!0,label:n.formatMessage({id:"login.password.label"}),placeholder:n.formatMessage({id:"login.password.placeholder"}),error:!!(x.password&&w.password),disabled:h,helperText:x.password&&w.password?n.formatMessage({id:"login.password.error"}):void 0})}}),a.jsx(Xr,{data:o}),a.jsx(Ze,{fullWidth:!0,size:"large","data-testid":"button-submit",disabled:_,loading:_,text:n.formatMessage({id:`login.submit.${r}`}),type:"submit",sx:{mt:1}})]})})})},e[4]=o,e[5]=r,e[6]=n,e[7]=s,e[8]=f):f=e[8];let p;return e[9]!==d||e[10]!==f?(p=a.jsx(a.Fragment,{children:a.jsx(Wr,{initialValues:c,validationSchema:hrt,onSubmit:d,validateOnBlur:!1,validateOnChange:!1,children:f})}),e[9]=d,e[10]=f,e[11]=p):p=e[11],p};function grt(t){const e=he.c(35),{terms:r,forbiddenNotice:n,onConfirm:s}=t,i=Ye(),[o,l]=I.useState(!1),[c,u]=I.useState(!1),d=I.useRef(null);let f,p;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{const U=d.current;if(!U)return;if(U.scrollHeight===U.clientHeight){l(!0);return}const z=()=>{U.offsetHeight+U.scrollTop===U.scrollHeight&&l(!0)};return U.addEventListener("scroll",z),()=>{U.removeEventListener("scroll",z)}},p=[],e[0]=f,e[1]=p):(f=e[0],p=e[1]),I.useEffect(f,p);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=(U,z)=>{u(z)},e[2]=m):m=e[2];const h=m;let _;e[3]!==s?(_=()=>{s&&s()},e[3]=s,e[4]=_):_=e[4];const g=_;let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y={height:"100%"},e[5]=y):y=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b={maxWidth:"600px"},e[6]=b):b=e[6];let x;e[7]!==i?(x=i.formatMessage({id:"system_usage_terms.title"}),e[7]=i,e[8]=x):x=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w={maxHeight:"400px",overflow:"auto",whiteSpace:"pre-wrap"},e[9]=w):w=e[9];let C;e[10]!==r?(C=a.jsx(pr,{elevation:0,children:a.jsx(Kt,{children:a.jsx(_e,{ref:d,color:"text.secondary",sx:w,children:r})})}),e[10]=r,e[11]=C):C=e[11];let k;e[12]!==n?(k=n&&a.jsx(Lr,{severity:"warning",message:n}),e[12]=n,e[13]=k):k=e[13];const A=!o;let P;e[14]!==i?(P=i.formatMessage({id:"system_usage_terms.checkbox.accept"}),e[14]=i,e[15]=P):P=e[15];let T;e[16]!==A||e[17]!==P||e[18]!==c?(T=a.jsx(da,{disabled:A,checked:c,onChange:h,label:P}),e[16]=A,e[17]=P,e[18]=c,e[19]=T):T=e[19];const j=!c;let R;e[20]!==i?(R=i.formatMessage({id:"common.confirm"}),e[20]=i,e[21]=R):R=e[21];let D;e[22]===Symbol.for("react.memo_cache_sentinel")?(D={alignSelf:"flex-end"},e[22]=D):D=e[22];let O;e[23]!==g||e[24]!==j||e[25]!==R?(O=a.jsx(Ze,{disabled:j,text:R,onClick:g,sx:D}),e[23]=g,e[24]=j,e[25]=R,e[26]=O):O=e[26];let N;e[27]!==k||e[28]!==T||e[29]!==O||e[30]!==C?(N=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[C,k,T,O]})}),e[27]=k,e[28]=T,e[29]=O,e[30]=C,e[31]=N):N=e[31];let F;return e[32]!==N||e[33]!==x?(F=a.jsx(gt,{display:"flex",justifyContent:"center",alignItems:"center",sx:y,children:a.jsx(te,{spacing:2,sx:b,children:a.jsx(pr,{title:x,children:N})})}),e[32]=N,e[33]=x,e[34]=F):F=e[34],F}const _rt=()=>{const t=he.c(10),e=Ye(),r=zn(),[n,s]=I.useState(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{s(!0)},t[0]=i):i=t[0];const o=i;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Dt,{variant:"rounded",sx:{height:"250px"}}),t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Tr,{}),t[2]=c):c=t[2];let u;t[3]!==e||t[4]!==r.openIdAuthorization||t[5]!==n?(u=f=>{const{auth_backends:p,system_terms:m}=f,h=p.filter(vrt);return a.jsx(a.Fragment,{children:m?.enabled&&!n?a.jsx(grt,{terms:m.terms,forbiddenNotice:m.forbidden_notice,onConfirm:o}):a.jsxs(mrt,{title:e.formatMessage({id:"login.title"}),description:e.formatMessage({id:"login.subtitle"}),"data-testid":"login-form",children:[h.length>1&&a.jsx(VA,{value:h[0],tabs:h.map(yrt)}),h.length===1&&a.jsx(aue,{backend:h[0]}),p.includes(_i.openid)&&a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.openIdAuthorization,errorElement:a.jsxs(a.Fragment,{children:[a.jsx(Oc,{sx:{my:2},children:e.formatMessage({id:"common.or"})}),a.jsx(Tr,{})]}),children:_=>_?a.jsxs(a.Fragment,{children:[a.jsx(Oc,{sx:{my:2},children:e.formatMessage({id:"common.or"})}),a.jsx(Ze,{text:"Sign in with OpenID",fullWidth:!0,startIcon:a.jsx(ge.OpenID,{}),size:"large",color:"openid",onClick:()=>{window.location.href=_.url}})]}):null})})]})})},t[3]=e,t[4]=r.openIdAuthorization,t[5]=n,t[6]=u):u=t[6];let d;return t[7]!==r.frontendConfig||t[8]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:r.frontendConfig,errorElement:c,children:u})}),t[7]=r.frontendConfig,t[8]=u,t[9]=d):d=t[9],d};function vrt(t){return t!=="openid"}function yrt(t){return{label:t,value:t,disabled:!1,content:a.jsx(aue,{backend:t})}}async function brt({request:t}){const e=new URL(t.url).searchParams,r=await t.json(),n=await KTe(r);if(!xt(n)){fie(n);const s=e.get("returnUrl")||$.urls.home,i=e.get("redirect_to");if(i){window.location.href=i;return}return rt(s)}return Ft({...n,error:{...n.error,backend:r.backend}})}async function xrt({request:t}){const{username:e,refreshToken:r}=await t.json(),n=await XTe(e,r);return xt(n)?Ar():Nt(),Ft(n)}const Srt={path:"login",loader:lqe,action:brt,element:a.jsx(_rt,{})},wrt={path:"login-openid",loader:cqe},Crt={path:"refresh-token",action:gL},Art=t=>{const e=he.c(68),{row:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"diameter.status.connections.local_peer"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==r.local_addr||e[3]!==r.local_addrs?(i=r.local_addrs&&r.local_addrs.length>0?r.local_addrs:r.local_addr?[r.local_addr]:void 0,e[2]=r.local_addr,e[3]=r.local_addrs,e[4]=i):i=e[4];let o;e[5]!==r.local_capabilities.origin_host||e[6]!==r.local_capabilities.origin_realm||e[7]!==r.local_capabilities.product_name||e[8]!==r.local_capabilities.vendor_id||e[9]!==r.local_port||e[10]!==s||e[11]!==i?(o={peer:s,origin_host:r.local_capabilities.origin_host,origin_realm:r.local_capabilities.origin_realm,addresses:i,port:r.local_port,vendor_id:r.local_capabilities.vendor_id,product_name:r.local_capabilities.product_name},e[5]=r.local_capabilities.origin_host,e[6]=r.local_capabilities.origin_realm,e[7]=r.local_capabilities.product_name,e[8]=r.local_capabilities.vendor_id,e[9]=r.local_port,e[10]=s,e[11]=i,e[12]=o):o=e[12];let l;e[13]!==n?(l=n.formatMessage({id:"diameter.status.connections.remote_peer"}),e[13]=n,e[14]=l):l=e[14];let c;e[15]!==r.remote_addr||e[16]!==r.remote_addrs?(c=r.remote_addrs&&r.remote_addrs.length>0?r.remote_addrs:r.remote_addr?[r.remote_addr]:void 0,e[15]=r.remote_addr,e[16]=r.remote_addrs,e[17]=c):c=e[17];let u;e[18]!==r.remote_capabilities.origin_host||e[19]!==r.remote_capabilities.origin_realm||e[20]!==r.remote_capabilities.product_name||e[21]!==r.remote_capabilities.vendor_id||e[22]!==r.remote_port||e[23]!==l||e[24]!==c?(u={peer:l,origin_host:r.remote_capabilities.origin_host,origin_realm:r.remote_capabilities.origin_realm,addresses:c,port:r.remote_port,vendor_id:r.remote_capabilities.vendor_id,product_name:r.remote_capabilities.product_name},e[18]=r.remote_capabilities.origin_host,e[19]=r.remote_capabilities.origin_realm,e[20]=r.remote_capabilities.product_name,e[21]=r.remote_capabilities.vendor_id,e[22]=r.remote_port,e[23]=l,e[24]=c,e[25]=u):u=e[25];let d;e[26]!==o||e[27]!==u?(d=[o,u],e[26]=o,e[27]=u,e[28]=d):d=e[28];const p=d;let m;e[29]!==n?(m=n.formatMessage({id:"diameter.status.connections.peer"}),e[29]=n,e[30]=m):m=e[30];let h;e[31]!==m?(h={key:"peer",label:m},e[31]=m,e[32]=h):h=e[32];let _;e[33]!==n?(_=n.formatMessage({id:"diameter.status.connections.capabilities.origin_host"}),e[33]=n,e[34]=_):_=e[34];let g;e[35]!==_?(g={key:"origin_host",label:_},e[35]=_,e[36]=g):g=e[36];let y;e[37]!==n?(y=n.formatMessage({id:"diameter.status.connections.capabilities.origin_realm"}),e[37]=n,e[38]=y):y=e[38];let b;e[39]!==y?(b={key:"origin_realm",label:y},e[39]=y,e[40]=b):b=e[40];let x;e[41]!==n?(x=n.formatMessage({id:"diameter.status.connections.addrs"}),e[41]=n,e[42]=x):x=e[42];let w;e[43]!==x?(w={key:"addresses",label:x,cellRender:Mrt},e[43]=x,e[44]=w):w=e[44];let C;e[45]!==n?(C=n.formatMessage({id:"diameter.status.connections.port"}),e[45]=n,e[46]=C):C=e[46];let k;e[47]!==C?(k={key:"port",label:C},e[47]=C,e[48]=k):k=e[48];let A;e[49]!==n?(A=n.formatMessage({id:"diameter.status.connections.capabilities.vendor_id"}),e[49]=n,e[50]=A):A=e[50];let P;e[51]!==A?(P={key:"vendor_id",label:A},e[51]=A,e[52]=P):P=e[52];let T;e[53]!==n?(T=n.formatMessage({id:"diameter.status.connections.capabilities.product_name"}),e[53]=n,e[54]=T):T=e[54];let j;e[55]!==T?(j={key:"product_name",label:T},e[55]=T,e[56]=j):j=e[56];let R;e[57]!==g||e[58]!==b||e[59]!==w||e[60]!==k||e[61]!==P||e[62]!==j||e[63]!==h?(R=[h,g,b,w,k,P,j],e[57]=g,e[58]=b,e[59]=w,e[60]=k,e[61]=P,e[62]=j,e[63]=h,e[64]=R):R=e[64];const D=R;let O;return e[65]!==D||e[66]!==p?(O=a.jsx(pr,{title:"Peers",folder:!0,dense:!0,elevation:2,children:a.jsx(Br,{data:p,orderBy:"peer",page:0,rowsCount:p.length,rowsPerPage:p.length,rowKey:"peer",columns:D,hidePagination:!0,hideRowsCount:!0})}),e[65]=D,e[66]=p,e[67]=O):O=e[67],O};function krt(t){return{label:`${t}`,id:`${t}`}}function Mrt(t){const{addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(krt)||[]})}function Prt(){const t=he.c(60),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async H=>{n({connectionId:H},{method:"POST",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==e?(l=e.formatMessage({id:"diameter.status.connections.user"}),t[2]=e,t[3]=l):l=t[3];let c;t[4]!==l?(c={key:"user",label:l},t[4]=l,t[5]=c):c=t[5];let u;t[6]!==e?(u=e.formatMessage({id:"diameter.status.connections.name"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]!==u?(d={key:"name",label:u},t[8]=u,t[9]=d):d=t[9];let f;t[10]!==e?(f=e.formatMessage({id:"diameter.status.connections.side"}),t[10]=e,t[11]=f):f=t[11];let p;t[12]!==f?(p={key:"side",label:f},t[12]=f,t[13]=p):p=t[13];let m;t[14]!==e?(m=e.formatMessage({id:"diameter.status.connections.stack"}),t[14]=e,t[15]=m):m=t[15];let h;t[16]!==m?(h={key:"stack",label:m},t[16]=m,t[17]=h):h=t[17];let _;t[18]!==e?(_=e.formatMessage({id:"diameter.status.connections.watchdog"}),t[18]=e,t[19]=_):_=t[19];let g;t[20]!==_?(g={key:"watchdog",label:_},t[20]=_,t[21]=g):g=t[21];let y;t[22]!==e?(y=e.formatMessage({id:"diameter.status.connections.connection_type"}),t[22]=e,t[23]=y):y=t[23];let b;t[24]!==y?(b={key:"connection_type",label:y},t[24]=y,t[25]=b):b=t[25];let x;t[26]!==e?(x=e.formatMessage({id:"diameter.status.connections.applications"}),t[26]=e,t[27]=x):x=t[27];let w;t[28]!==x?(w={key:"applications",label:x,cellRender:Irt},t[28]=x,t[29]=w):w=t[29];let C;t[30]!==e?(C=e.formatMessage({id:"diameter.status.connections.vendor_specific_applications"}),t[30]=e,t[31]=C):C=t[31];let k;t[32]!==C?(k={key:"vendor_specific_applications",label:C,cellRender:Ert},t[32]=C,t[33]=k):k=t[33];let A;t[34]!==g||t[35]!==b||t[36]!==w||t[37]!==k||t[38]!==c||t[39]!==d||t[40]!==p||t[41]!==h?(A=[c,d,p,h,g,b,w,k],t[34]=g,t[35]=b,t[36]=w,t[37]=k,t[38]=c,t[39]=d,t[40]=p,t[41]=h,t[42]=A):A=t[42];const P=A;let T;t[43]!==e?(T=e.formatMessage({id:"diameter.status.connections.actions.disconnect"}),t[43]=e,t[44]=T):T=t[44];let j;t[45]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Disconnect,{}),t[45]=j):j=t[45];let R;t[46]!==o?(R=async H=>{const{name:W}=H;o(W)},t[46]=o,t[47]=R):R=t[47];let D;t[48]!==T||t[49]!==R?(D=[{label:T,icon:j,disabled:Trt,onClick:R}],t[48]=T,t[49]=R,t[50]=D):D=t[50];const O=D;let N;t[51]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[51]=N):N=t[51];let F;t[52]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(en,{}),t[52]=F):F=t[52];let U;t[53]!==P||t[54]!==s.state||t[55]!==O?(U=H=>a.jsx(Br,{autoScale:!0,data:H||[],orderBy:"name",page:0,loading:s.state!=="idle",rowsCount:H?.length,rowsPerPage:H?.length,rowKey:"name",columns:P,hidePagination:!0,rowDetail:{content:jrt},rowActions:O,stickyRowActions:!0}),t[53]=P,t[54]=s.state,t[55]=O,t[56]=U):U=t[56];let z;return t[57]!==r.connections||t[58]!==U?(z=a.jsx(I.Suspense,{fallback:N,children:a.jsx(Qt,{resolve:r.connections,errorElement:F,children:U})}),t[57]=r.connections,t[58]=U,t[59]=z):z=t[59],z}function jrt(t){return a.jsx(Art,{row:t})}function Trt(){return!Ue(ie.monitoring)}function Ert(t){const{vendor_specific_applications:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Rrt)||[]})}function Rrt(t){const{application_id:e,vendor_id:r}=t;return{label:`${e} (${r})`,id:`${e} (${r})`}}function Irt(t){const{applications:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Drt)||[]})}function Drt(t){return{label:`${t}`,id:`${t}`}}function $rt(){const t=he.c(64),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"diameter.status.peers.status"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"status",label:s,cellRender:zrt},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"diameter.status.peers.name"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"name",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"diameter.status.peers.stack"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"stack",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"diameter.status.peers.product_name"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"product_name",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"diameter.status.peers.vendor_id"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"vendor_id",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"diameter.status.peers.remote_host"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"remote_host",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"diameter.status.peers.remote_realm"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"remote_realm",label:g},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"diameter.status.peers.addrs"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"addrs",label:b,cellRender:Urt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"diameter.status.peers.app_ids"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"app_ids",label:w,cellRender:Nrt},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==e?(k=e.formatMessage({id:"diameter.status.peers.transports"}),t[36]=e,t[37]=k):k=t[37];let A;t[38]!==k?(A={key:"transports",label:k,cellRender:Ort},t[38]=k,t[39]=A):A=t[39];let P;t[40]!==e?(P=e.formatMessage({id:"diameter.status.peers.connection"}),t[40]=e,t[41]=P):P=t[41];let T;t[42]!==P?(T={key:"connection",label:P},t[42]=P,t[43]=T):T=t[43];let j;t[44]!==i||t[45]!==_||t[46]!==y||t[47]!==x||t[48]!==C||t[49]!==A||t[50]!==T||t[51]!==l||t[52]!==u||t[53]!==f||t[54]!==m?(j=[i,l,u,f,m,_,y,x,C,A,T],t[44]=i,t[45]=_,t[46]=y,t[47]=x,t[48]=C,t[49]=A,t[50]=T,t[51]=l,t[52]=u,t[53]=f,t[54]=m,t[55]=j):j=t[55];const R=j;let D;t[56]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[56]=D):D=t[56];let O;t[57]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(en,{}),t[57]=O):O=t[57];let N;t[58]!==R||t[59]!==n.state?(N=U=>a.jsx(Br,{autoScale:!0,data:U,orderBy:"name",page:0,loading:n.state==="loading",rowsCount:U?.length,rowsPerPage:U?.length,rowKey:"name",columns:R,hidePagination:!0}),t[58]=R,t[59]=n.state,t[60]=N):N=t[60];let F;return t[61]!==r.peers||t[62]!==N?(F=a.jsx(I.Suspense,{fallback:D,children:a.jsx(Qt,{resolve:r.peers,errorElement:O,children:N})}),t[61]=r.peers,t[62]=N,t[63]=F):F=t[63],F}function Ort(t){const{transports:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Lrt)||[]})}function Lrt(t){return{label:t,id:t}}function Nrt(t){const{app_ids:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Frt)||[]})}function Frt(t){return{label:`${t}`,id:t}}function Urt(t){const{addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Brt)||[]})}function Brt(t){return{label:`${t}`,id:t}}function zrt(t){const{status:e}=t;return a.jsx(bi,{label:e,status:e==="UP"?nn.SUCCESS:nn.ERROR})}async function qrt({nf:t}){const e=$.apis.diameter.status.connections(t);return De({options:{url:e,method:"GET"}})}async function Vrt({nf:t,connectionId:e}){const r=$.apis.diameter.status.disconnect(t);return De({options:{url:r,method:"POST",data:JSON.stringify({connection_id:e})}})}async function Hrt({nf:t}){const e=$.apis.diameter.status.peers(t);return De({options:{url:e,method:"GET"}})}function Grt({nf:t}){return async({request:e})=>{const r=await e.json(),{connectionId:n}=r,s=await Vrt({nf:t,connectionId:n});return xt(s)?Ar():Nt(),Ft(s)}}function Wrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:qrt({nf:t})}})}function Yrt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{peers:Hrt({nf:t})}})}function qp({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:r.formatMessage({id:"route.diameter.connections"})},{url:"peers",label:r.formatMessage({id:"route.diameter.peers"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",action:Grt({nf:e}),loader:Wrt({nf:e}),element:a.jsx(Prt,{}),errorElement:a.jsx(en,{})},{path:"peers",loader:Yrt({nf:e}),element:a.jsx($rt,{}),errorElement:a.jsx(en,{})}]}}function Krt(){const t=he.c(43),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async()=>{n({},{method:"POST",encType:"application/json",action:"flush"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==e?(l=e.formatMessage({id:"denypeer.status.gtpc.id"}),t[2]=e,t[3]=l):l=t[3];let c;t[4]!==l?(c={key:"id",label:l},t[4]=l,t[5]=c):c=t[5];let u;t[6]!==e?(u=e.formatMessage({id:"denypeer.status.gtpc.blocked_count"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]!==u?(d={key:"blocked_count",label:u},t[8]=u,t[9]=d):d=t[9];let f;t[10]!==e?(f=e.formatMessage({id:"denypeer.status.gtpc.expires"}),t[10]=e,t[11]=f):f=t[11];let p;t[12]!==f?(p={key:"expires",label:f},t[12]=f,t[13]=p):p=t[13];let m;t[14]!==e?(m=e.formatMessage({id:"denypeer.status.gtpc.rule_type"}),t[14]=e,t[15]=m):m=t[15];let h;t[16]!==m?(h={key:"rule_type",label:m},t[16]=m,t[17]=h):h=t[17];let _;t[18]!==e?(_=e.formatMessage({id:"denypeer.status.gtpc.blocked"}),t[18]=e,t[19]=_):_=t[19];let g;t[20]!==_?(g={key:"blocked",label:_},t[20]=_,t[21]=g):g=t[21];let y;t[22]!==e?(y=e.formatMessage({id:"denypeer.status.gtpc.type"}),t[22]=e,t[23]=y):y=t[23];let b;t[24]!==y?(b={key:"type",label:y},t[24]=y,t[25]=b):b=t[25];let x;t[26]!==g||t[27]!==b||t[28]!==c||t[29]!==d||t[30]!==p||t[31]!==h?(x=[c,d,p,h,g,b],t[26]=g,t[27]=b,t[28]=c,t[29]=d,t[30]=p,t[31]=h,t[32]=x):x=t[32];const w=x;let C;t[33]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[33]=C):C=t[33];let k;t[34]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(en,{}),t[34]=k):k=t[34];let A;t[35]!==w||t[36]!==o||t[37]!==e||t[38]!==s.state?(A=T=>a.jsx(Br,{autoScale:!0,data:T||[],orderBy:"id",page:0,loading:s.state!=="idle",rowsCount:T?.length,rowsPerPage:T?.length,rowKey:"id",columns:w,hidePagination:!0,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{disabled:s.state==="loading",loading:s.state==="submitting",variant:"outlined",onClick:()=>void o(),text:e.formatMessage({id:"denypeer.status.gtpc.actions.flush"})})})}),t[35]=w,t[36]=o,t[37]=e,t[38]=s.state,t[39]=A):A=t[39];let P;return t[40]!==r.blockedPeers||t[41]!==A?(P=a.jsx(I.Suspense,{fallback:C,children:a.jsx(Qt,{resolve:r.blockedPeers,errorElement:k,children:A})}),t[40]=r.blockedPeers,t[41]=A,t[42]=P):P=t[42],P}function Qrt(){const t=he.c(54),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpc.status.peers.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpc.status.peers.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpc.status.peers.remote_addr"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpc.status.peers.version"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"version",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"gtpc.status.peers.reset_counter"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"reset_counter",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"gtpc.status.peers.uptime_sec"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"uptime_sec",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"gtpc.status.peers.last_reset_at"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"last_reset_at",label:g,cellRender:Xrt},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"gtpc.status.peers.connected_at"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"connected_at",label:b,cellRender:Zrt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"gtpc.status.peers.num_tuns"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"num_tuns",label:w},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==i||t[37]!==_||t[38]!==y||t[39]!==x||t[40]!==C||t[41]!==l||t[42]!==u||t[43]!==f||t[44]!==m?(k=[i,l,u,f,m,_,y,x,C],t[36]=i,t[37]=_,t[38]=y,t[39]=x,t[40]=C,t[41]=l,t[42]=u,t[43]=f,t[44]=m,t[45]=k):k=t[45];const A=k;let P;t[46]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[46]=P):P=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[47]=T):T=t[47];let j;t[48]!==A||t[49]!==n.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"transport_name",columns:A,hidePagination:!0}),t[48]=A,t[49]=n.state,t[50]=j):j=t[50];let R;return t[51]!==r.peers||t[52]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:r.peers,errorElement:T,children:j})}),t[51]=r.peers,t[52]=j,t[53]=R):R=t[53],R}function Zrt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Xrt(t){const{last_reset_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Jrt(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpc.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpc.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpc.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpc.status.sockets.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.sockets||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.sockets,errorElement:_,children:g})}),t[26]=r.sockets,t[27]=g,t[28]=y):y=t[28],y}async function ent({nf:t}){const e=$.apis.denypeer.status.gtpc(t);return De({options:{url:e,method:"GET"}})}async function tnt({nf:t}){const e=$.apis.denypeer.status.flushBlocked(t);return De({options:{url:e,method:"POST"}})}function rnt({nf:t}){return async()=>{const e=await tnt({nf:t});return xt(e)?Ar():Nt(),Ft(e)}}function nnt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{blockedPeers:ent({nf:t})}})}async function snt({nf:t}){const e=$.apis.gtpc.status.sockets(t);return De({options:{url:e,method:"GET"}})}async function int({nf:t}){const e=$.apis.gtpc.status.peers(t);return De({options:{url:e,method:"GET"}})}function ont({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:snt({nf:t})}})}function ant({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{peers:int({nf:t})}})}function uk({path:t,nf:e,showBlockedPeers:r}){const n=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:n.formatMessage({id:"route.gtpc.sockets"})},{url:"peers",label:n.formatMessage({id:"route.gtpc.peers"})},...r?[{url:"blocked-peers",label:n.formatMessage({id:"route.gtpc.denypeer.blocked_peers"})}]:[]]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:ont({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Jrt,{})},{path:"peers",loader:ant({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Qrt,{})},...r?[{path:"blocked-peers",loader:nnt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Krt,{}),children:[{action:rnt({nf:e}),path:"flush",loader:()=>rt("..")}]}]:[]]}}const vX=Pr(),lnt={path:"bmsc",handle:vr({labelIntl:"route.bmsc",icon:a.jsx(ge.BMSC,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.BMSC)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.bmsc.status",to:$.urls.bmscStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:vX.formatMessage({id:"route.diameter"})},{url:"gtpc",label:vX.formatMessage({id:"route.bmsc.status.gtpc"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.BMSC}),uk({path:"gtpc",nf:ue.BMSC,showBlockedPeers:!1})]},io(ue.BMSC)]}]};function cnt(){const t=he.c(39),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"route.gtpp.status.local_address"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addr",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"route.gtpp.status.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"route.gtpp.status.remote_address"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"route.gtpp.status.remote_host"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_host",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"route.gtpp.status.remote_port"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"remote_port",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"route.gtpp.status.transport_name"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"transport_name",label:h},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==i||t[25]!==_||t[26]!==l||t[27]!==u||t[28]!==f||t[29]!==m?(g=[i,l,u,f,m,_],t[24]=i,t[25]=_,t[26]=l,t[27]=u,t[28]=f,t[29]=m,t[30]=g):g=t[30];const y=g;let b;t[31]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[31]=b):b=t[31];let x;t[32]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(en,{}),t[32]=x):x=t[32];let w;t[33]!==y||t[34]!==n.state?(w=k=>a.jsx(Br,{autoScale:!0,data:k,orderBy:"local_addr",page:0,loading:n.state!=="idle",rowsCount:k?.length,rowsPerPage:k?.length,rowKey:"local_addr",columns:y,hidePagination:!0,stickyRowActions:!0}),t[33]=y,t[34]=n.state,t[35]=w):w=t[35];let C;return t[36]!==r.connections||t[37]!==w?(C=a.jsx(I.Suspense,{fallback:b,children:a.jsx(Qt,{resolve:r.connections,errorElement:x,children:w})}),t[36]=r.connections,t[37]=w,t[38]=C):C=t[38],C}async function unt({nf:t}){const e=$.apis.gtpPrime.status.connections(t);return De({options:{url:e,method:"GET"}})}function dnt({nf:t}){return async e=>Wt({deferred:!0,loaderArgs:e,data:{connections:unt({nf:t})}})}const fnt=Pr();function pnt({path:t,nf:e}){return{path:t,element:a.jsx(la,{navs:[{url:"connections",label:fnt.formatMessage({id:"route.gtpp.status.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:dnt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(cnt,{})}]}}const yX=Pr(),mnt={path:"chf",handle:vr({labelIntl:"route.chf",icon:a.jsx(ge.CHF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.CHF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.chf.status",to:$.urls.chfStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:yX.formatMessage({id:"route.diameter"})},{url:"gtpprime",label:yX.formatMessage({id:"route.chf.status.gtp_prime"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.CHF}),pnt({path:"gtpprime",nf:ue.CHF})]},io(ue.CHF)]}]},hnt=Pr(),gnt={path:"dra",handle:vr({labelIntl:"route.dra",icon:a.jsx(ge.DRA,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.DRA)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.dra.status",to:$.urls.draStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:hnt.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.DRA})]},io(ue.DRA)]}]},_nt=t=>{const e=he.c(26),{id:r,children:n,onConfirm:s,onCancel:i}=t,o=Ye(),{dialogClose:l}=Jt();let c;e[0]!==l||e[1]!==r||e[2]!==s?(c=()=>{l(r),s()},e[0]=l,e[1]=r,e[2]=s,e[3]=c):c=e[3];const u=c;let d;e[4]!==l||e[5]!==r||e[6]!==i?(d=()=>{l(r),i?.()},e[4]=l,e[5]=r,e[6]=i,e[7]=d):d=e[7];const f=d;let p;e[8]!==n?(p=a.jsx(_s,{children:n}),e[8]=n,e[9]=p):p=e[9];let m;e[10]!==o?(m=o.formatMessage({id:"confirm_dialog.cancel"}),e[10]=o,e[11]=m):m=e[11];let h;e[12]!==f||e[13]!==m?(h=a.jsx(Ze,{text:m,onClick:f,variant:"outlined"}),e[12]=f,e[13]=m,e[14]=h):h=e[14];let _;e[15]!==o?(_=o.formatMessage({id:"confirm_dialog.ok"}),e[15]=o,e[16]=_):_=e[16];let g;e[17]!==u||e[18]!==_?(g=a.jsx(Ze,{text:_,onClick:u}),e[17]=u,e[18]=_,e[19]=g):g=e[19];let y;e[20]!==h||e[21]!==g?(y=a.jsxs(Ti,{children:[h,g]}),e[20]=h,e[21]=g,e[22]=y):y=e[22];let b;return e[23]!==p||e[24]!==y?(b=a.jsxs(a.Fragment,{children:[p,y]}),e[23]=p,e[24]=y,e[25]=b):b=e[25],b},di=()=>{const{dialogOpen:t,dialogClose:e}=Jt(),r=Ye();return{openConfirmDialog:({id:s,title:i=r.formatMessage({id:"confirm_dialog.title"}),text:o,onConfirm:l,onCancel:c,closeOnBackdropClick:u=!0})=>{t({id:s,title:i,content:()=>a.jsx(_nt,{id:s,onConfirm:l,onCancel:c,children:a.jsx(_e,{children:o})}),closeOnBackdropClick:u})},closeConfirmDialog:e}},Lm=Pr(),vnt=dr().shape({fileContent:We().required(Lm.formatMessage({id:"dsm_zones.upload.required"}))}),ynt=dr().shape({server:We().required(Lm.formatMessage({id:"dsm_zones.upload.required"})),files:yr().when("fileUpload",(t,e)=>t?e.min(1,Lm.formatMessage({id:"dsm_zones.upload.min"})).max(1,Lm.formatMessage({id:"dsm_zones.upload.max"})).required(Lm.formatMessage({id:"dsm_zones.upload.required"})):e),fileContent:We().when("fileUpload",(t,e)=>t?e:e.required(Lm.formatMessage({id:"dsm_zones.upload.required"}))),name:We().when("fileUpload",(t,e)=>t?e:e.required(Lm.formatMessage({id:"dsm_zones.upload.required"})))}),bnt=t=>{const e=he.c(20),{dsmZone:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,load:c}=i,{data:u,state:d,submit:f}=o;let p,m;e[0]!==r||e[1]!==c?(p=()=>{const{name:A,server:P}=r;c(`${$.urls.dsmZones}/${P}/${A}`)},m=[r,c],e[0]=r,e[1]=c,e[2]=p,e[3]=m):(p=e[2],m=e[3]),I.useEffect(p,m);let h;e[4]!==f?(h=A=>{const{server:P,name:T,fileContent:j}=A,R=new File([j],T),D=new FormData;D.set("server",P),D.set("file",R),f(D,{method:"POST",encType:"multipart/form-data",action:`${$.urls.dsmZones}/create`})},e[4]=f,e[5]=h):h=e[5];const _=h,{name:g,server:y}=r,b=l?.zone?.content||"";let x;e[6]!==g||e[7]!==y||e[8]!==b?(x={server:y,name:g,fileContent:b},e[6]=g,e[7]=y,e[8]=b,e[9]=x):x=e[9];const w=x;if(!l){let A;return e[10]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),e[10]=A):A=e[10],A}let C;e[11]!==s||e[12]!==u||e[13]!==d||e[14]!==n?(C=A=>{const{dirty:P}=A;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(yv,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"server",children:xnt}),a.jsx(Ke,{name:"name",children:Snt}),a.jsx(Ke,{name:"fileContent",children:T=>{const{field:j,meta:R,form:D}=T,{setFieldValue:O}=D;return a.jsx(Fv,{value:j.value,label:n.formatMessage({id:"dsm_zones.upload.form.file.content"}),error:R.error,language:"plaintext",onChange:N=>{O(j.name,N)}})}}),a.jsx(Xr,{data:u})]})}),a.jsx(vv,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:d!=="idle",onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!P||!Ue(ie.management),loading:d!=="idle"})]})})]})},e[11]=s,e[12]=u,e[13]=d,e[14]=n,e[15]=C):C=e[15];let k;return e[16]!==_||e[17]!==w||e[18]!==C?(k=a.jsx(Wr,{initialValues:w,validationSchema:vnt,onSubmit:_,children:C}),e[16]=_,e[17]=w,e[18]=C,e[19]=k):k=e[19],k};function xnt(t){const{field:e}=t;return a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"body1",color:"text.secondary",children:e.name}),a.jsx(_e,{type:"body1",fontWeight:"600",children:e.value})]})}function Snt(t){const{field:e}=t;return a.jsxs(te,{spacing:0,sx:{pb:1},children:[a.jsx(_e,{type:"body1",color:"text.secondary",children:e.name}),a.jsx(_e,{type:"body1",fontWeight:"600",children:e.value})]})}const wnt="array",Cnt="bit",bX="bits",Ant="byte",xX="bytes",Yg="",knt="exponent",Mnt="function",SX="iec",Pnt="Invalid number",jnt="Invalid rounding method",LI="jedec",Tnt="object",wX=".",Ent="round",Rnt="s",Int="si",Dnt="kbit",$nt="kB",Ont=" ",Lnt="string",Nnt="0",NI={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function a7(t,{bits:e=!1,pad:r=!1,base:n=-1,round:s=2,locale:i=Yg,localeOptions:o={},separator:l=Yg,spacer:c=Ont,symbols:u={},standard:d=Yg,output:f=Lnt,fullform:p=!1,fullforms:m=[],exponent:h=-1,roundingMethod:_=Ent,precision:g=0}={}){let y=h,b=Number(t),x=[],w=0,C=Yg;d===Int?(n=10,d=LI):d===SX||d===LI?n=2:n===2?d=SX:(n=10,d=LI);const k=n===10?1e3:1024,A=p===!0,P=b<0,T=Math[_];if(typeof t!="bigint"&&isNaN(t))throw new TypeError(Pnt);if(typeof T!==Mnt)throw new TypeError(jnt);if(P&&(b=-b),(y===-1||isNaN(y))&&(y=Math.floor(Math.log(b)/Math.log(k)),y<0&&(y=0)),y>8&&(g>0&&(g+=8-y),y=8),f===knt)return y;if(b===0)x[0]=0,C=x[1]=NI.symbol[d][e?bX:xX][y];else{w=b/(n===2?Math.pow(2,y*10):Math.pow(1e3,y)),e&&(w=w*8,w>=k&&y<8&&(w=w/k,y++));const j=Math.pow(10,y>0?s:0);x[0]=T(w*j)/j,x[0]===k&&y<8&&h===-1&&(x[0]=1,y++),C=x[1]=n===10&&y===1?e?Dnt:$nt:NI.symbol[d][e?bX:xX][y]}if(P&&(x[0]=-x[0]),g>0&&(x[0]=x[0].toPrecision(g)),x[1]=u[x[1]]||x[1],i===!0?x[0]=x[0].toLocaleString():i.length>0?x[0]=x[0].toLocaleString(i,o):l.length>0&&(x[0]=x[0].toString().replace(wX,l)),r&&s>0){const j=x[0].toString(),R=l||(j.match(/(\D)/g)||[]).pop()||wX,D=j.toString().split(R),O=D[1]||Yg,N=O.length,F=s-N;x[0]=`${D[0]}${R}${O.padEnd(N+F,Nnt)}`}return A&&(x[1]=m[y]?m[y]:NI.fullform[d][y]+(e?Cnt:Ant)+(x[0]===1?Yg:Rnt)),f===wnt?x:f===Tnt?{value:x[0],symbol:x[1],exponent:y,unit:C}:x.join(c)}const Fnt=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Q_(t,e,r){const n=Unt(t),{webkitRelativePath:s}=t,i=typeof e=="string"?e:typeof s=="string"&&s.length>0?s:`./${t.name}`;return typeof n.path!="string"&&CX(n,"path",i),CX(n,"relativePath",i),n}function Unt(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const n=e.split(".").pop().toLowerCase(),s=Fnt.get(n);s&&Object.defineProperty(t,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return t}function CX(t,e,r){Object.defineProperty(t,e,{value:r,writable:!1,configurable:!1,enumerable:!0})}const Bnt=[".DS_Store","Thumbs.db"];function znt(t){return Rh(this,void 0,void 0,function*(){return _3(t)&&qnt(t.dataTransfer)?Wnt(t.dataTransfer,t.type):Vnt(t)?Hnt(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?Gnt(t):[]})}function qnt(t){return _3(t)}function Vnt(t){return _3(t)&&_3(t.target)}function _3(t){return typeof t=="object"&&t!==null}function Hnt(t){return h$(t.target.files).map(e=>Q_(e))}function Gnt(t){return Rh(this,void 0,void 0,function*(){return(yield Promise.all(t.map(r=>r.getFile()))).map(r=>Q_(r))})}function Wnt(t,e){return Rh(this,void 0,void 0,function*(){if(t.items){const r=h$(t.items).filter(s=>s.kind==="file");if(e!=="drop")return r;const n=yield Promise.all(r.map(Ynt));return AX(lue(n))}return AX(h$(t.files).map(r=>Q_(r)))})}function AX(t){return t.filter(e=>Bnt.indexOf(e.name)===-1)}function h$(t){if(t===null)return[];const e=[];for(let r=0;r<t.length;r++){const n=t[r];e.push(n)}return e}function Ynt(t){if(typeof t.webkitGetAsEntry!="function")return kX(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?cue(e):kX(t,e)}function lue(t){return t.reduce((e,r)=>[...e,...Array.isArray(r)?lue(r):[r]],[])}function kX(t,e){return Rh(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const i=yield t.getAsFileSystemHandle();if(i===null)throw new Error(`${t} is not a File`);if(i!==void 0){const o=yield i.getFile();return o.handle=i,Q_(o)}}const n=t.getAsFile();if(!n)throw new Error(`${t} is not a File`);return Q_(n,(r=e?.fullPath)!==null&&r!==void 0?r:void 0)})}function Knt(t){return Rh(this,void 0,void 0,function*(){return t.isDirectory?cue(t):Qnt(t)})}function cue(t){const e=t.createReader();return new Promise((r,n)=>{const s=[];function i(){e.readEntries(o=>Rh(this,void 0,void 0,function*(){if(o.length){const l=Promise.all(o.map(Knt));s.push(l),i()}else try{const l=yield Promise.all(s);r(l)}catch(l){n(l)}}),o=>{n(o)})}i()})}function Qnt(t){return Rh(this,void 0,void 0,function*(){return new Promise((e,r)=>{t.file(n=>{const s=Q_(n,t.fullPath);e(s)},n=>{r(n)})})})}var gw={},MX;function Znt(){return MX||(MX=1,gw.__esModule=!0,gw.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",s=(t.type||"").toLowerCase(),i=s.replace(/\/.*$/,"");return r.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):s===l})}return!0}),gw}var Xnt=Znt();const FI=Pi(Xnt);function PX(t){return tst(t)||est(t)||due(t)||Jnt()}function Jnt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:328:In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gue(t,e){if(t){if(typeof t=="string")return _$(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _$(t,e)}}function _$(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tst(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],s=!0,i=!1,o,l;try{for(r=r.call(t);!(s=(o=r.next()).done)&&(n.push(o.value),!(e&&n.length===e));s=!0);}catch(c){i=!0,l=c}finally{try{!s&&r.return!=null&&r.return()}finally{if(i)throw l}}return n}}function Est(t){if(Array.isArray(t))return t}function DX(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function si(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DX(Object(r),!0).forEach(function(n){v$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DX(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function v$(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y3(t,e){if(t==null)return{};var r=Rst(t,e),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Rst(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}var l7=I.forwardRef(function(t,e){var r=t.children,n=y3(t,xst),s=vue(n),i=s.open,o=y3(s,Sst);return I.useImperativeHandle(e,function(){return{open:i}},[i]),Yn.createElement(I.Fragment,null,r(si(si({},o),{},{open:i})))});l7.displayName="Dropzone";var _ue={disabled:!1,getFilesFromEvent:znt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};l7.defaultProps=_ue;l7.propTypes={children:Je.func,accept:Je.objectOf(Je.arrayOf(Je.string)),multiple:Je.bool,preventDropOnDocument:Je.bool,noClick:Je.bool,noKeyboard:Je.bool,noDrag:Je.bool,noDragEventsBubbling:Je.bool,minSize:Je.number,maxSize:Je.number,maxFiles:Je.number,disabled:Je.bool,getFilesFromEvent:Je.func,onFileDialogCancel:Je.func,onFileDialogOpen:Je.func,useFsAccessApi:Je.bool,autoFocus:Je.bool,onDragEnter:Je.func,onDragLeave:Je.func,onDragOver:Je.func,onDrop:Je.func,onDropAccepted:Je.func,onDropRejected:Je.func,onError:Je.func,validator:Je.func};var y$={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vue(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=si(si({},_ue),t),r=e.accept,n=e.disabled,s=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,l=e.multiple,c=e.maxFiles,u=e.onDragEnter,d=e.onDragLeave,f=e.onDragOver,p=e.onDrop,m=e.onDropAccepted,h=e.onDropRejected,_=e.onFileDialogCancel,g=e.onFileDialogOpen,y=e.useFsAccessApi,b=e.autoFocus,x=e.preventDropOnDocument,w=e.noClick,C=e.noKeyboard,k=e.noDrag,A=e.noDragEventsBubbling,P=e.onError,T=e.validator,j=I.useMemo(function(){return vst(r)},[r]),R=I.useMemo(function(){return _st(r)},[r]),D=I.useMemo(function(){return typeof g=="function"?g:$X},[g]),O=I.useMemo(function(){return typeof _=="function"?_:$X},[_]),N=I.useRef(null),F=I.useRef(null),U=I.useReducer(Ist,y$),z=UI(U,2),H=z[0],W=z[1],K=H.isFocused,q=H.isFileDialogActive,X=I.useRef(typeof window<"u"&&window.isSecureContext&&y&&gst()),Q=function(){!X.current&&q&&setTimeout(function(){if(F.current){var we=F.current.files;we.length||(W({type:"closeDialog"}),O())}},300)};I.useEffect(function(){return window.addEventListener("focus",Q,!1),function(){window.removeEventListener("focus",Q,!1)}},[F,q,O,X]);var Y=I.useRef([]),Z=function(we){N.current&&N.current.contains(we.target)||(we.preventDefault(),Y.current=[])};I.useEffect(function(){return x&&(document.addEventListener("dragover",IX,!1),document.addEventListener("drop",Z,!1)),function(){x&&(document.removeEventListener("dragover",IX),document.removeEventListener("drop",Z))}},[N,x]),I.useEffect(function(){return!n&&b&&N.current&&N.current.focus(),function(){}},[N,b,n]);var re=I.useCallback(function(Re){P?P(Re):console.error(Re)},[P]),fe=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re),Y.current=[].concat(Ast(Y.current),[Re.target]),_w(Re)&&Promise.resolve(s(Re)).then(function(we){if(!(v3(Re)&&!A)){var Me=we.length,$e=Me>0&&fst({files:we,accept:j,minSize:o,maxSize:i,multiple:l,maxFiles:c,validator:T}),Ve=Me>0&&!$e;W({isDragAccept:$e,isDragReject:Ve,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Re)}}).catch(function(we){return re(we)})},[s,u,re,A,j,o,i,l,c,T]),de=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re);var we=_w(Re);if(we&&Re.dataTransfer)try{Re.dataTransfer.dropEffect="copy"}catch{}return we&&f&&f(Re),!1},[f,A]),se=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re);var we=Y.current.filter(function($e){return N.current&&N.current.contains($e)}),Me=we.indexOf(Re.target);Me!==-1&&we.splice(Me,1),Y.current=we,!(we.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_w(Re)&&d&&d(Re))},[N,d,A]),le=I.useCallback(function(Re,we){var Me=[],$e=[];Re.forEach(function(Ve){var Ne=fue(Ve,j),Oe=UI(Ne,2),ft=Oe[0],Ct=Oe[1],Et=pue(Ve,o,i),at=UI(Et,2),$t=at[0],Ee=at[1],Be=T?T(Ve):null;if(ft&&$t&&!Be)Me.push(Ve);else{var qt=[Ct,Ee];Be&&(qt=qt.concat(Be)),$e.push({file:Ve,errors:qt.filter(function(ar){return ar})})}}),(!l&&Me.length>1||l&&c>=1&&Me.length>c)&&(Me.forEach(function(Ve){$e.push({file:Ve,errors:[dst]})}),Me.splice(0)),W({acceptedFiles:Me,fileRejections:$e,isDragReject:$e.length>0,type:"setFiles"}),p&&p(Me,$e,we),$e.length>0&&h&&h($e,we),Me.length>0&&m&&m(Me,we)},[W,l,j,o,i,c,p,m,h,T]),ee=I.useCallback(function(Re){Re.preventDefault(),Re.persist(),Te(Re),Y.current=[],_w(Re)&&Promise.resolve(s(Re)).then(function(we){v3(Re)&&!A||le(we,Re)}).catch(function(we){return re(we)}),W({type:"reset"})},[s,le,re,A]),J=I.useCallback(function(){if(X.current){W({type:"openDialog"}),D();var Re={multiple:l,types:R};window.showOpenFilePicker(Re).then(function(we){return s(we)}).then(function(we){le(we,null),W({type:"closeDialog"})}).catch(function(we){yst(we)?(O(we),W({type:"closeDialog"})):bst(we)?(X.current=!1,F.current?(F.current.value=null,F.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):re(we)});return}F.current&&(W({type:"openDialog"}),D(),F.current.value=null,F.current.click())},[W,D,O,y,le,re,R,l]),me=I.useCallback(function(Re){!N.current||!N.current.isEqualNode(Re.target)||(Re.key===" "||Re.key==="Enter"||Re.keyCode===32||Re.keyCode===13)&&(Re.preventDefault(),J())},[N,J]),pe=I.useCallback(function(){W({type:"focus"})},[]),Se=I.useCallback(function(){W({type:"blur"})},[]),ve=I.useCallback(function(){w||(hst()?setTimeout(J,0):J())},[w,J]),xe=function(we){return n?null:we},qe=function(we){return C?null:xe(we)},Le=function(we){return k?null:xe(we)},Te=function(we){A&&we.stopPropagation()},je=I.useMemo(function(){return function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=Re.refKey,Me=we===void 0?"ref":we,$e=Re.role,Ve=Re.onKeyDown,Ne=Re.onFocus,Oe=Re.onBlur,ft=Re.onClick,Ct=Re.onDragEnter,Et=Re.onDragOver,at=Re.onDragLeave,$t=Re.onDrop,Ee=y3(Re,wst);return si(si(v$({onKeyDown:qe(gu(Ve,me)),onFocus:qe(gu(Ne,pe)),onBlur:qe(gu(Oe,Se)),onClick:xe(gu(ft,ve)),onDragEnter:Le(gu(Ct,fe)),onDragOver:Le(gu(Et,de)),onDragLeave:Le(gu(at,se)),onDrop:Le(gu($t,ee)),role:typeof $e=="string"&&$e!==""?$e:"presentation"},Me,N),!n&&!C?{tabIndex:0}:{}),Ee)}},[N,me,pe,Se,ve,fe,de,se,ee,C,k,n]),Ge=I.useCallback(function(Re){Re.stopPropagation()},[]),nt=I.useMemo(function(){return function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=Re.refKey,Me=we===void 0?"ref":we,$e=Re.onChange,Ve=Re.onClick,Ne=y3(Re,Cst),Oe=v$({accept:j,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe(gu($e,ee)),onClick:xe(gu(Ve,Ge)),tabIndex:-1},Me,F);return si(si({},Oe),Ne)}},[F,r,l,ee,n]);return si(si({},H),{},{isFocused:K&&!n,getRootProps:je,getInputProps:nt,rootRef:N,inputRef:F,open:xe(J)})}function Ist(t,e){switch(e.type){case"focus":return si(si({},t),{},{isFocused:!0});case"blur":return si(si({},t),{},{isFocused:!1});case"openDialog":return si(si({},y$),{},{isFileDialogActive:!0});case"closeDialog":return si(si({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return si(si({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return si(si({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return si({},y$);default:return t}}function $X(){}const Z_=t=>{const e=he.c(81),{name:r,label:n,onChange:s,accept:i,maxFiles:o,multiple:l,onDropAccepted:c,onDropRejected:u,minSize:d,maxSize:f,noDrag:p,disabled:m,onError:h,validator:_,value:g,size:y,sx:b,formError:x}=t,w=n===void 0?"Drag and drop or click to upload your file":n;let C;e[0]!==g?(C=g||[],e[0]=g,e[1]=C):C=e[1];const[k,A]=I.useState(C);let P,T;e[2]!==g?(P=()=>{g&&A(g)},T=[g],e[2]=g,e[3]=P,e[4]=T):(P=e[3],T=e[4]),I.useEffect(P,T);let j;e[5]!==l||e[6]!==s?(j=Re=>{A(we=>{const Me=l?[...we,...Re]:[...Re];return s&&s(Me),Me})},e[5]=l,e[6]=s,e[7]=j):j=e[7];const R=j;let D;e[8]!==i||e[9]!==m||e[10]!==R||e[11]!==o||e[12]!==f||e[13]!==d||e[14]!==l||e[15]!==p||e[16]!==c||e[17]!==u||e[18]!==h||e[19]!==_?(D={onDrop:R,accept:i,maxFiles:o,multiple:l,onDropAccepted:c,onDropRejected:u,minSize:d,maxSize:f,noDrag:p,disabled:m,onError:h,validator:_},e[8]=i,e[9]=m,e[10]=R,e[11]=o,e[12]=f,e[13]=d,e[14]=l,e[15]=p,e[16]=c,e[17]=u,e[18]=h,e[19]=_,e[20]=D):D=e[20];const{getRootProps:O,getInputProps:N,isDragActive:F,fileRejections:U}=vue(D);let z;e[21]!==s?(z=Re=>{A(we=>{const Me=we?.filter($e=>$e.name!==Re);return s&&s(Me),Me})},e[21]=s,e[22]=z):z=e[22];const H=z;let W;e[23]!==k?(W=k.map(Dst),e[23]=k,e[24]=W):W=e[24];const K=W;let q;e[25]!==U?(q=new Map,U.forEach(Re=>{const{errors:we}=Re,Me=we[0];q.set(Me.code,Me.message)}),e[25]=U,e[26]=q):q=e[26];let X;e[27]!==q?(X=Array.from(q),e[27]=q,e[28]=X):X=e[28];const Q=X;let Y;y==="small"?Y=K.length?"3px":"6px":Y=K.length?"11px":"14px";const Z=Y;let re;e[29]===Symbol.for("react.memo_cache_sentinel")?(re={position:"relative"},e[29]=re):re=e[29];const fe=`field-${r}`;let de;e[30]!==m?(de=!m&&{cursor:"pointer","&:hover":{borderColor:"text.primary"}},e[30]=m,e[31]=de):de=e[31];let se;e[32]!==F?(se=F&&{borderColor:"primary.main",backgroundColor:"primary.light"},e[32]=F,e[33]=se):se=e[33];let le;e[34]!==U.length||e[35]!==x?(le=(U.length||x)&&{borderColor:"error.main"},e[34]=U.length,e[35]=x,e[36]=le):le=e[36];let ee;e[37]!==Z||e[38]!==b||e[39]!==de||e[40]!==se||e[41]!==le?(ee={py:Z,px:1.75,borderWidth:"2px",borderRadius:"4px",borderColor:"divider",borderStyle:"dashed",outline:"none",...de,...se,...le,...b},e[37]=Z,e[38]=b,e[39]=de,e[40]=se,e[41]=le,e[42]=ee):ee=e[42];let J;e[43]!==O?(J=O(),e[43]=O,e[44]=J):J=e[44];let me;e[45]!==N?(me=N(),e[45]=N,e[46]=me):me=e[46];let pe;e[47]!==r?(pe=r&&{"data-testid":`field-${r}`},e[47]=r,e[48]=pe):pe=e[48];let Se;e[49]!==me||e[50]!==pe?(Se=a.jsx("input",{...me,...pe}),e[49]=me,e[50]=pe,e[51]=Se):Se=e[51];let ve;e[52]!==m||e[53]!==K||e[54]!==H||e[55]!==w||e[56]!==o||e[57]!==l?(ve=K.length?a.jsx(gt,{sx:{position:"relative",top:w?"2px":"1px"},children:a.jsx(ks,{onDelete:H,items:K,size:"small",disabled:m})}):a.jsxs(_e,{children:[w,l&&` (${o?`max ${o}`:"multiple"} files can be uploaded)`]}),e[52]=m,e[53]=K,e[54]=H,e[55]=w,e[56]=o,e[57]=l,e[58]=ve):ve=e[58];let xe;e[59]!==ee||e[60]!==J||e[61]!==Se||e[62]!==ve?(xe=a.jsxs(gt,{sx:ee,...J,children:[Se,ve]}),e[59]=ee,e[60]=J,e[61]=Se,e[62]=ve,e[63]=xe):xe=e[63];let qe;e[64]===Symbol.for("react.memo_cache_sentinel")?(qe={ml:1.75},e[64]=qe):qe=e[64];let Le;e[65]!==i||e[66]!==Q.length||e[67]!==x?(Le=i&&!Q.length&&!x&&a.jsxs(_e,{type:"caption",color:"text.secondary",children:["Only ",Object.keys(i).join(",")," files are accepted"]}),e[65]=i,e[66]=Q.length,e[67]=x,e[68]=Le):Le=e[68];let Te;e[69]!==Q?(Te=Q.map($st),e[69]=Q,e[70]=Te):Te=e[70];let je;e[71]!==x?(je=x&&a.jsx(_e,{color:"error.main",type:"caption",children:x}),e[71]=x,e[72]=je):je=e[72];let Ge;e[73]!==Le||e[74]!==Te||e[75]!==je?(Ge=a.jsxs(gt,{sx:qe,children:[Le,Te,je]}),e[73]=Le,e[74]=Te,e[75]=je,e[76]=Ge):Ge=e[76];let nt;return e[77]!==fe||e[78]!==xe||e[79]!==Ge?(nt=a.jsxs("section",{style:re,"data-testid":fe,children:[xe,Ge]}),e[77]=fe,e[78]=xe,e[79]=Ge,e[80]=nt):nt=e[80],nt};function Dst(t){return{id:t.name,label:t.name+" - "+a7(t.size)}}function $st(t,e){const[,r]=t;return a.jsx(_e,{color:"error.main",type:"caption",children:r},e)}function ti(t){const e=he.c(11),{color:r,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:f}=t,p=r===void 0?"primary":r;let m;return e[0]!==f||e[1]!==p||e[2]!==o||e[3]!==c||e[4]!==n||e[5]!==u||e[6]!==i||e[7]!==l||e[8]!==s||e[9]!==d?(m=a.jsx(W9e,{color:p,disabled:n,size:s,onChange:i,defaultChecked:o,required:l,disableRipple:c,edge:u,value:d,checked:f}),e[0]=f,e[1]=p,e[2]=o,e[3]=c,e[4]=n,e[5]=u,e[6]=i,e[7]=l,e[8]=s,e[9]=d,e[10]=m):m=e[10],m}const Ost=()=>{const t=he.c(11),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{submit:s,data:i,state:o}=n;let l;t[0]!==s?(l=m=>{const{files:h,server:_,name:g,fileUpload:y,fileContent:b}=m;let x;y?x=h[0]:x=new File([b],g);const w=new FormData;w.set("server",_),w.set("file",x),s(w,{method:"POST",encType:"multipart/form-data",action:`${$.urls.dsmZones}/create`})},t[0]=s,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={files:[],server:"",fileUpload:!0,name:"",fileContent:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==o?(f=m=>{const{dirty:h}=m;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"server",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.server"}),size:"medium",error:!!y.error,helperText:y.error})}}),a.jsx(Ke,{name:"fileUpload",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,onChange:(x,w)=>{b(g.name,w)}}),a.jsx(_e,{children:e.formatMessage({id:"dsm_zones.upload.form.file.upload"})})]})}}),a.jsx(Ke,{name:"name",children:_=>{const{field:g,meta:y,form:b}=_,{values:x}=b;return x.fileUpload?null:a.jsx(dt,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.name"}),size:"medium",error:!!y.error,helperText:y.error})}}),a.jsx(Ke,{name:"fileContent",children:_=>{const{field:g,meta:y,form:b}=_,{values:x,setFieldValue:w}=b;return x.fileUpload?null:a.jsx(Fv,{value:g.value,label:e.formatMessage({id:"dsm_zones.upload.form.file.content"}),error:y.error,language:"plaintext",onChange:C=>{w(g.name,C)}})}}),a.jsx(Ke,{name:"files",children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x,values:w}=b;return w.fileUpload?a.jsxs(a.Fragment,{children:[a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"dsm_zones.upload.form.description"})}),a.jsx(Z_,{...g,label:e.formatMessage({id:"dsm_zones.upload.form.file"}),size:"medium",maxFiles:1,multiple:!1,disabled:o!=="idle",onChange:C=>{setTimeout(()=>{if(!C.length){x(g.name,[]);return}x(g.name,C)},0)},formError:y.error})]}):null}}),a.jsx(Xr,{data:i})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:o!=="idle",onClick:()=>r()}),a.jsx(Ze,{text:e.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!h,loading:o!=="idle"})]})})]})},t[3]=i,t[4]=r,t[5]=e,t[6]=o,t[7]=f):f=t[7];let p;return t[8]!==c||t[9]!==f?(p=a.jsx(Wr,{initialValues:d,validationSchema:ynt,onSubmit:c,children:f}),t[8]=c,t[9]=f,t[10]=p):p=t[10],p},OX=Pr(),_l=t=>Ue(t)?{label:OX.formatMessage({id:"common.edit"}),icon:a.jsx(ge.Edit,{})}:{label:OX.formatMessage({id:"common.view"}),icon:a.jsx(ge.Info,{})},Lst=()=>{const t=he.c(57),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),i=gr();let o;t[0]!==r||t[1]!==e?(o=()=>{r({title:e.formatMessage({id:"dsm_zones.upload.form.title"}),fullScreen:!0,content:Nst})},t[0]=r,t[1]=e,t[2]=o):o=t[2];const l=o;let c;t[3]!==r||t[4]!==e?(c=q=>{r({title:e.formatMessage({id:"dsm_zones.upload.form.edit.title"}),fullScreen:!0,content:()=>a.jsx(bnt,{dsmZone:q})})},t[3]=r,t[4]=e,t[5]=c):c=t[5];const u=c;let d;t[6]!==i||t[7]!==e||t[8]!==n?(d=q=>{const{name:X,server:Q}=q;n({text:e.formatMessage({id:"dsm_zones.delete.dialog.confirm"}),onConfirm:()=>{i.submit({name:X,server:Q},{method:"DELETE",encType:"application/json",action:`${$.urls.dsmZones}/delete`})}})},t[6]=i,t[7]=e,t[8]=n,t[9]=d):d=t[9];const f=d;let p;t[10]!==i?(p=q=>{const{name:X,server:Q}=q;i.submit({name:X,server:Q},{method:"POST",encType:"application/json",action:`${$.urls.dsmZones}/download`})},t[10]=i,t[11]=p):p=t[11];const m=p;let h;t[12]!==e?(h=e.formatMessage({id:"dsm_zones.table.id"}),t[12]=e,t[13]=h):h=t[13];let _;t[14]!==h?(_={key:"server",label:h},t[14]=h,t[15]=_):_=t[15];let g;t[16]!==e?(g=e.formatMessage({id:"dsm_zones.table.name"}),t[16]=e,t[17]=g):g=t[17];let y;t[18]!==g?(y={key:"name",label:g},t[18]=g,t[19]=y):y=t[19];let b;t[20]!==_||t[21]!==y?(b=[_,y],t[20]=_,t[21]=y,t[22]=b):b=t[22];const x=b;let w;t[23]===Symbol.for("react.memo_cache_sentinel")?(w=_l(ie.management),t[23]=w):w=t[23];let C;t[24]!==u?(C={...w,onClick:q=>void u(q)},t[24]=u,t[25]=C):C=t[25];let k;t[26]!==e?(k=e.formatMessage({id:"dsm_zones.table.actions.download"}),t[26]=e,t[27]=k):k=t[27];let A;t[28]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(ge.Download,{}),t[28]=A):A=t[28];let P;t[29]!==m?(P=q=>void m(q),t[29]=m,t[30]=P):P=t[30];let T;t[31]!==k||t[32]!==P?(T={label:k,icon:A,onClick:P,wrapped:!0},t[31]=k,t[32]=P,t[33]=T):T=t[33];let j;t[34]!==e?(j=e.formatMessage({id:"dsm_zones.table.actions.delete"}),t[34]=e,t[35]=j):j=t[35];let R,D;t[36]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Trash,{}),D=Ue(ie.management),t[36]=R,t[37]=D):(R=t[36],D=t[37]);let O;t[38]!==f?(O=q=>void f(q),t[38]=f,t[39]=O):O=t[39];let N;t[40]!==j||t[41]!==O?(N={label:j,icon:R,disabled:!D,onClick:O,wrapped:!0},t[40]=j,t[41]=O,t[42]=N):N=t[42];let F;t[43]!==C||t[44]!==T||t[45]!==N?(F=[C,T,N],t[43]=C,t[44]=T,t[45]=N,t[46]=F):F=t[46];const U=F;let z;t[47]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[47]=z):z=t[47];let H;t[48]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Tr,{}),t[48]=H):H=t[48];let W;t[49]!==x||t[50]!==l||t[51]!==e||t[52]!==U?(W=q=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Add,{}),disabled:!Ue(ie.management),text:e.formatMessage({id:"dsm_zones.upload.buttons.new"}),onClick:l})}),a.jsx(Br,{autoScale:!0,data:q,orderBy:"server",columns:x,rowActions:U,stickyRowActions:!0,page:0,labelDisplayedRows:Fst,rowsCount:q.length,rowsPerPage:q.length,rowKey:"server"})]}),t[49]=x,t[50]=l,t[51]=e,t[52]=U,t[53]=W):W=t[53];let K;return t[54]!==s.zones||t[55]!==W?(K=a.jsx(I.Suspense,{fallback:z,children:a.jsx(Qt,{resolve:s.zones,errorElement:H,children:W})}),t[54]=s.zones,t[55]=W,t[56]=K):K=t[56],K};function Nst(){return a.jsx(Ost,{})}function Fst(){return""}function c7(t,e=""){const r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function yue(t,e,r="text/plain"){const n=window.URL.createObjectURL(new Blob([t],{type:r}));c7(n,e)}function Ust(){const t=$.apis.dsm.zones;return De({options:{url:t,method:"GET"}})}function Bst(t,e){const r=`${$.apis.dsm.zones}/${t}`,n=new FormData;return n.append("file",e),De({options:{url:r,method:"POST",data:n,headers:{"content-type":"multipart/form-data"}}})}function zst(t,e){const r=`${$.apis.dsm.zones}/${t}/${e}`;return De({options:{url:r,method:"DELETE"}})}async function bue(t,e){const r=`${$.apis.dsm.zones}/${t}/${e}`;return{content:await De({options:{url:r,method:"GET"}})}}const xue=Pr();async function qst({request:t}){const e=await t.formData(),r=e.get("server"),n=e.get("file"),s=await Bst(r,n);return xt(s)||Nt(),Ft(s)}async function Vst({request:t}){const{server:e,name:r}=await t.json(),n=await zst(e,r);return xt(n)?Ar(n.error.detail||xue.formatMessage({id:"dsm_zones.delete.result.message_ko"})):Nt(),Ft(n)}async function Hst({request:t}){const{server:e,name:r}=await t.json(),n=await bue(e,r);return xt(n)?Ar(n.error.detail||xue.formatMessage({id:"dsm_zones.download.result.message_ko"})):yue(n.content,r),Ft(n)}function Gst(t){return Wt({loaderArgs:t,deferred:!0,data:{zones:Ust()}})}function Wst(t){const{server:e,name:r}=t.params;return!e||!r?null:Wt({loaderArgs:t,deferred:!0,data:{zone:bue(e,r)}})}const Yst={path:"dsm",handle:vr({labelIntl:"route.dsm",icon:a.jsx(ge.DSM,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.DSM,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.DSM),{path:"zones",handle:vr({labelIntl:"route.dsm.zones",to:"/dms/zones"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Gst,element:a.jsx(Lst,{})},{path:":server/:name",loader:Wst,element:a.jsx(ur,{to:$.urls.dsmZones,replace:!0})},{path:"create",action:qst,loader:()=>rt("..")},{path:"delete",action:Vst,loader:()=>rt("..")},{path:"download",action:Hst,loader:()=>rt("..")}]}]}]},Kst=t=>{const e=he.c(17),{onCancel:r,onSubmit:n,validationSchema:s,renderComponentForm:i,initialValues:o,submitButtonText:l,cancelButtonText:c,validateOnChange:u,validateOnBlur:d,isReadonly:f,isLoading:p}=t,m=Ye();let h;e[0]!==n?(h=async y=>n(y),e[0]=n,e[1]=h):h=e[1];let _;e[2]!==c||e[3]!==m||e[4]!==p||e[5]!==f||e[6]!==i||e[7]!==l?(_=y=>{const{isSubmitting:b,dirty:x}=y;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:i()}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:c||m.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:b}),!f&&a.jsx(Ze,{text:l||m.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:b||!x||p,loading:b||p})]})})]})},e[2]=c,e[3]=m,e[4]=p,e[5]=f,e[6]=i,e[7]=l,e[8]=_):_=e[8];let g;return e[9]!==o||e[10]!==r||e[11]!==h||e[12]!==_||e[13]!==d||e[14]!==u||e[15]!==s?(g=a.jsx(Wr,{initialValues:o,validationSchema:s,onSubmit:h,onReset:r,validateOnChange:u,validateOnBlur:d,children:_}),e[9]=o,e[10]=r,e[11]=h,e[12]=_,e[13]=d,e[14]=u,e[15]=s,e[16]=g):g=e[16],g},Sue=t=>{const e=he.c(24),{description:r,exampleFileUrl:n,filesLabel:s,max:i,accept:o,acceptEncrypted:l,alert:c}=t,u=Ye();let d;e[0]!==r||e[1]!==n||e[2]!==u?(d=r||(n?u.formatMessage({id:"form_import_files.description"}):void 0),e[0]=r,e[1]=n,e[2]=u,e[3]=d):d=e[3];let f;e[4]!==n?(f=n&&a.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:"example"}),e[4]=n,e[5]=f):f=e[5];let p;e[6]!==d||e[7]!==f?(p=a.jsxs(_e,{children:[d,f]}),e[6]=d,e[7]=f,e[8]=p):p=e[8];let m;e[9]!==c?(m=c&&a.jsx(Lr,{...c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==o||e[12]!==s||e[13]!==u||e[14]!==i?(h=a.jsx(Ke,{name:"files",children:y=>{const{field:b,meta:x,form:w}=y,{setFieldValue:C,isSubmitting:k}=w;return a.jsx(Z_,{...b,label:s||u.formatMessage({id:"form_import_files.file"}),size:"medium",accept:o,maxFiles:i,multiple:i>1,disabled:k,onChange:A=>{setTimeout(()=>{if(!A.length){C(b.name,[]);return}C(b.name,A)},0)},formError:x.error})}}),e[11]=o,e[12]=s,e[13]=u,e[14]=i,e[15]=h):h=e[15];let _;e[16]!==l||e[17]!==u?(_=l&&a.jsx(Ke,{name:"encrypted",children:y=>{const{field:b,form:x}=y,{setFieldValue:w,isSubmitting:C}=x;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:b.value,onChange:(k,A)=>{w(b.name,A)},disabled:C}),a.jsx(_e,{children:u.formatMessage({id:"form_import_files.encrypted"})})]})}}),e[16]=l,e[17]=u,e[18]=_):_=e[18];let g;return e[19]!==p||e[20]!==m||e[21]!==h||e[22]!==_?(g=a.jsxs(te,{spacing:2,children:[p,m,h,_]}),e[19]=p,e[20]=m,e[21]=h,e[22]=_,e[23]=g):g=e[23],g},wue=t=>{const e=he.c(20),{onSubmit:r,onCancel:n,...s}=t,i=Ye(),o=Kst,l=()=>a.jsx(Sue,{...s});let c;e[0]!==i?(c=i.formatMessage({id:"form_import_files.save"}),e[0]=i,e[1]=c):c=e[1];let u;e[2]!==i?(u=i.formatMessage({id:"form_import_files.cancel"}),e[2]=i,e[3]=u):u=e[3];let d;e[4]!==r?(d=async g=>r(g),e[4]=r,e[5]=d):d=e[5];const f=dr().shape({files:yr().min(s.min,i.formatMessage({id:"form_import_files.min"},{num:s.min})).max(s.max,i.formatMessage({id:"form_import_files.max"},{num:s.max})).required(s.requiredMessage?s.requiredMessage:i.formatMessage({id:"form_import_files.required"})),...s.acceptEncrypted&&{encrypted:li()}});let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let m;e[7]!==s.acceptEncrypted?(m=s.acceptEncrypted&&{encrypted:!1},e[7]=s.acceptEncrypted,e[8]=m):m=e[8];let h;e[9]!==m?(h={files:p,...m},e[9]=m,e[10]=h):h=e[10];let _;return e[11]!==o||e[12]!==n||e[13]!==l||e[14]!==c||e[15]!==u||e[16]!==d||e[17]!==f||e[18]!==h?(_=a.jsx(o,{renderComponentForm:l,submitButtonText:c,cancelButtonText:u,onSubmit:d,onCancel:n,validationSchema:f,initialValues:h}),e[11]=o,e[12]=n,e[13]=l,e[14]=c,e[15]=u,e[16]=d,e[17]=f,e[18]=h,e[19]=_):_=e[19],_},x_=Pr();var Cue=(t=>(t.WHITELISTED="WHITELISTED",t.GREYLISTED="GREYLISTED",t.BLACKLISTED="BLACKLISTED",t))(Cue||{});const J0=Object.keys(Cue),Qst=dr().shape({supi:We().strict(!0).matches(new RegExp($.regex.supi)).required(x_.formatMessage({id:"eir_autorules.new_rule.form_errors.required"}))}),Zst=dr().shape({pei:We().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"})).strict(!0).matches(/^(imei-[0-9]{8}|imei-[0-9]{14,15}|mac((-[0-9a-fA-F]{2}){6})(-untrusted)?|eui((-[0-9a-fA-F]{2}){8}))$/),supi:We().strict(!0).matches(new RegExp($.regex.supi)),status:We().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"})),enabled:li().required(x_.formatMessage({id:"eir_rules.new_rule.form_errors.required"}))}),Xst=dr().shape({status:We().required(x_.formatMessage({id:"eir_rules.edit_rule.form_errors.required"})),enabled:li().required(x_.formatMessage({id:"eir_rules.edit_rule.form_errors.required"}))}),Jst=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=m=>{const{supi:h}=m;h&&o({supi:h},{action:`${$.urls.eirAutoRules}/create`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={supi:""},t[2]=u):u=t[2];let d;t[3]!==r?(d=()=>r(),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==e||t[7]!==i?(f=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"supi",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_autorules.new_rule.supi"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"new-autorule-button-cancel",text:e.formatMessage({id:"eir_autorules.new_rule.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{"data-testid":"new-autorule-button-save",text:e.formatMessage({id:"eir_autorules.new_rule.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=f):f=t[8];let p;return t[9]!==c||t[10]!==d||t[11]!==f?(p=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:Qst,onSubmit:c,onReset:d,children:f})}),t[9]=c,t[10]=d,t[11]=f,t[12]=p):p=t[12],p},eit=()=>{const t=he.c(31),e=Ye(),{dialogOpen:r,dialogClose:n}=Jt(),{upsertFetcher:s}=Ys(),{state:i,submit:o}=s;let l;t[0]!==o?(l=k=>{const A=new FormData;A.append("file",k),o(A,{action:$.urls.eirAutorulesCreateBulk_Action,method:"POST",encType:"multipart/form-data"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]!==r||t[3]!==e?(u=()=>{r({title:e.formatMessage({id:"eir_autorules.toolbar.new_autorule"}),content:tit,closeOnBackdropClick:!1})},t[2]=r,t[3]=e,t[4]=u):u=t[4];const d=u;let f;t[5]!==n||t[6]!==r||t[7]!==c||t[8]!==e?(f=()=>{r({title:e.formatMessage({id:"eir_autorules.toolbar.import_rules"}),content:()=>a.jsx(wue,{onSubmit:k=>c(k.files[0]),onCancel:()=>n(),min:1,max:1,filesLabel:e.formatMessage({id:"eir_autorules.import.file"}),accept:{"text/csv":[".csv"]},requiredMessage:e.formatMessage({id:"eir_autorules.import.form_errors.required"}),description:e.formatMessage({id:"eir_autorules.import.description"}),exampleFileUrl:"/files/eir_autorules_provisioning_example.csv"}),closeOnBackdropClick:!1})},t[5]=n,t[6]=r,t[7]=c,t[8]=e,t[9]=f):f=t[9];const p=f;let m;t[10]!==e?(m=e.formatMessage({id:"eir_autorules.toolbar.import_rules"}),t[10]=e,t[11]=m):m=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Upload,{}),t[12]=h):h=t[12];let _;t[13]!==i?(_=i!=="idle"||!Ue(ie.provisioning),t[13]=i,t[14]=_):_=t[14];let g;t[15]!==p||t[16]!==m||t[17]!==_?(g=a.jsx(Ze,{"data-testid":"toolbar-button-import-rules",variant:"outlined",text:m,startIcon:h,onClick:p,disabled:_}),t[15]=p,t[16]=m,t[17]=_,t[18]=g):g=t[18];let y;t[19]!==e?(y=e.formatMessage({id:"eir_autorules.toolbar.new_autorule"}),t[19]=e,t[20]=y):y=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(ge.Add,{}),t[21]=b):b=t[21];let x;t[22]!==i?(x=i!=="idle"||!Ue(ie.provisioning),t[22]=i,t[23]=x):x=t[23];let w;t[24]!==d||t[25]!==x||t[26]!==y?(w=a.jsx(Ze,{"data-testid":"toolbar-button-new-autorule",text:y,startIcon:b,onClick:d,disabled:x}),t[24]=d,t[25]=x,t[26]=y,t[27]=w):w=t[27];let C;return t[28]!==w||t[29]!==g?(C=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[g,w]}),t[28]=w,t[29]=g,t[30]=C):C=t[30],C};function tit(){return a.jsx(Jst,{})}const rit=()=>{const t=he.c(47),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==i||t[1]!==e||t[2]!==r?(m=async z=>{const{supi:H}=z;H&&r({text:e.formatMessage({id:"eir_autorules.actions.confirm_delete"}),onConfirm:()=>{i({supi:H},{action:$.urls.eirAutorulesDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"eir_autorules.table.header.supi"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"supi",label:_,cellRender:nit},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"eir_autorules.table.header.created_at"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"created_at",label:y,cellRender:sit},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"eir_autorules.table.header.modified_at"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"modified_at",label:x,cellRender:iit},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==g||t[17]!==b||t[18]!==w?(C=[g,b,w],t[16]=g,t[17]=b,t[18]=w,t[19]=C):C=t[19];const k=C;let A;t[20]!==e?(A=e.formatMessage({id:"eir_autorules.actions.delete"}),t[20]=e,t[21]=A):A=t[21];let P;t[22]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Trash,{}),t[22]=P):P=t[22];let T;t[23]!==h?(T=z=>void h(z),t[23]=h,t[24]=T):T=t[24];let j;t[25]!==o||t[26]!==s.state?(j=s.state!=="idle"||o!=="idle"||!Ue(ie.provisioning),t[25]=o,t[26]=s.state,t[27]=j):j=t[27];let R;t[28]!==T||t[29]!==j||t[30]!==A?(R=[{label:A,icon:P,onClick:T,disabled:j}],t[28]=T,t[29]=j,t[30]=A,t[31]=R):R=t[31];const D=R;let O;t[32]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(te,{sx:{height:"100%"},children:a.jsx(Dt,{variant:"rounded",height:"100%"})}),t[32]=O):O=t[32];let N;t[33]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(Tr,{}),t[33]=N):N=t[33];let F;t[34]!==d||t[35]!==u||t[36]!==k||t[37]!==o||t[38]!==p||t[39]!==f||t[40]!==l||t[41]!==c||t[42]!==D?(F=z=>{const{data:H,metadata:W}=z;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(eit,{})}),a.jsx(Br,{autoScale:!0,loading:o!=="idle",orderBy:"supi",columns:k,data:H,page:p(W),labelDisplayedRows:oit,rowsCount:f(W),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"supi",rowActions:D,stickyRowActions:!0,onPageChange:d(W)})]})},t[34]=d,t[35]=u,t[36]=k,t[37]=o,t[38]=p,t[39]=f,t[40]=l,t[41]=c,t[42]=D,t[43]=F):F=t[43];let U;return t[44]!==n.autorules||t[45]!==F?(U=a.jsx(I.Suspense,{fallback:O,children:a.jsx(Qt,{resolve:n.autorules,errorElement:N,children:F})}),t[44]=n.autorules,t[45]=F,t[46]=U):U=t[46],U};function nit(t){const{supi:e}=t;return e?a.jsx(_e,{fontSize:"body2",children:e}):a.jsx(_e,{fontSize:"body2",children:"*"})}function sit(t){const{created_at:e}=t;return a.jsx(_e,{fontSize:"body2",children:Mr(e)})}function iit(t){const{modified_at:e}=t;return a.jsx(_e,{fontSize:"body2",children:Mr(e)})}function oit(){return""}const ait=t=>{const e=he.c(30),{ruleId:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=`${$.urls.eirRules}/${r}`;let o;e[0]!==i?(o={editLoadTo:i},e[0]=i,e[1]=o):o=e[1];const{dataFetcher:l,upsertFetcher:c,isLoading:u}=Ys(o),{data:d,state:f}=l,{data:p,state:m,submit:h}=c;let _;e[2]!==r||e[3]!==h?(_=async C=>{const{status:k,enabled:A}=C;!C||!r||!k||!A||h({id:r,enabled:A,status:k},{action:`${$.urls.eirRules}/update`,method:"POST",encType:"application/json"})},e[2]=r,e[3]=h,e[4]=_):_=e[4];const g=_;let y;e:{if(!d){let O;e[5]===Symbol.for("react.memo_cache_sentinel")?(O={status:"GREYLISTED",enabled:!0,pei:"",autorule:!1,created_at:"",modified_at:"",supi:""},e[5]=O):O=e[5],y=O;break e}const C=d.eirRule?.status??"WHITELISTED",k=d.eirRule.enabled??!0,A=d.eirRule?.pei??"",P=d.eirRule?.autorule??!1,T=d.eirRule?.created_at??"",j=d.eirRule?.modified_at??"",R=d.eirRule?.supi??"";let D;e[6]!==P||e[7]!==T||e[8]!==j||e[9]!==R||e[10]!==C||e[11]!==k||e[12]!==A?(D={status:C,enabled:k,pei:A,autorule:P,created_at:T,modified_at:j,supi:R},e[6]=P,e[7]=T,e[8]=j,e[9]=R,e[10]=C,e[11]=k,e[12]=A,e[13]=D):D=e[13],y=D}const b=y;let x;e[14]!==p||e[15]!==s||e[16]!==m||e[17]!==b.autorule||e[18]!==b.created_at||e[19]!==b.modified_at||e[20]!==b.pei||e[21]!==b.supi||e[22]!==n||e[23]!==u||e[24]!==f?(x=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),children:[a.jsx(_s,{loading:u,children:a.jsxs(te,{spacing:2,children:[a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.created_at"}),size:"small",value:Mr(b.created_at),name:"created_at"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.modified_at"}),size:"small",value:Mr(b.modified_at),name:"modified_at"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.autorule"}),size:"small",value:b.autorule,name:"autorule"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.pei"}),size:"small",value:b.pei,name:"pei"}),a.jsx(dt,{disabled:!0,label:n.formatMessage({id:"eir_rules.edit_rule.supi"}),size:"small",value:b.supi,name:"supi"}),a.jsx(Ke,{name:"status",children:C=>{const{field:k,meta:A}=C;return a.jsx(qs,{...k,label:n.formatMessage({id:"eir_rules.edit_rule.status"}),size:"small",error:!!A.error,helperText:A.error,disabled:m!=="idle"||f!=="idle",children:J0.map(P=>a.jsx(En,{value:P,children:n.formatMessage({id:`eir_rules.edit_rule.status.${P}`})},P))})}}),a.jsx(Ke,{name:"enabled",children:C=>{const{field:k,meta:A}=C;return a.jsxs(qs,{...k,label:n.formatMessage({id:"eir_rules.edit_rule.enabled"}),size:"small",error:!!A.error,helperText:A.error,disabled:m!=="idle"||f!=="idle",children:[a.jsx(En,{value:"true",children:n.formatMessage({id:"eir_rules.edit_rule.enabled.true"})}),a.jsx(En,{value:"false",children:n.formatMessage({id:"eir_rules.edit_rule.enabled.false"})})]})}}),a.jsx(Xr,{data:p})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"edit-rule-button-cancel",text:n.formatMessage({id:"eir_rules.edit_rule.cancel"}),variant:"outlined",disabled:m!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"edit-rule-button-save",text:n.formatMessage({id:"eir_rules.edit_rule.save"}),type:"submit",disabled:m!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[14]=p,e[15]=s,e[16]=m,e[17]=b.autorule,e[18]=b.created_at,e[19]=b.modified_at,e[20]=b.pei,e[21]=b.supi,e[22]=n,e[23]=u,e[24]=f,e[25]=x):x=e[25];let w;return e[26]!==g||e[27]!==b||e[28]!==x?(w=a.jsx(Wr,{initialValues:b,validationSchema:Xst,enableReinitialize:!0,onSubmit:g,children:x}),e[26]=g,e[27]=b,e[28]=x,e[29]=w):w=e[29],w},u7=()=>{const t=he.c(2),[e]=hl();let r;return t[0]!==e?(r=Object.fromEntries(Object.entries(Object.fromEntries(e)).filter(lit)),t[0]=e,t[1]=r):r=t[1],r};function lit(t){const[,e]=t;return!!e}const cit=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=m=>{const{supi:h,..._}=m;o({..._,...h&&{supi:h}},{action:`${$.urls.eirRules}/create`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={pei:"",supi:"",status:"WHITELISTED",enabled:!0},t[2]=u):u=t[2];let d;t[3]!==r?(d=()=>r(),t[3]=r,t[4]=d):d=t[4];let f;t[5]!==s||t[6]!==e||t[7]!==i?(f=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pei",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_rules.new_rule.pei"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"supi",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,label:e.formatMessage({id:"eir_rules.new_rule.supi"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"status",children:m=>{const{field:h,meta:_}=m;return a.jsx(qs,{...h,label:e.formatMessage({id:"eir_rules.new_rule.status"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle",children:J0.map(g=>a.jsx(En,{value:g,children:e.formatMessage({id:`eir_rules.new_rule.status.${g}`})},g))})}}),a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,meta:_}=m;return a.jsxs(qs,{...h,label:e.formatMessage({id:"eir_rules.new_rule.enabled"}),size:"small",error:!!_.error,helperText:_.error,disabled:i!=="idle",children:[a.jsx(En,{value:"true",children:e.formatMessage({id:"eir_rules.new_rule.enabled.true"})}),a.jsx(En,{value:"false",children:e.formatMessage({id:"eir_rules.new_rule.enabled.false"})})]})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"new-rule-button-cancel",text:e.formatMessage({id:"eir_rules.new_rule.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{"data-testid":"new-rule-button-save",text:e.formatMessage({id:"eir_rules.new_rule.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=f):f=t[8];let p;return t[9]!==c||t[10]!==d||t[11]!==f?(p=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:Zst,onSubmit:c,onReset:d,children:f})}),t[9]=c,t[10]=d,t[11]=f,t[12]=p):p=t[12],p};function d7({filter:t,keysToExclude:e=[$.searchParams.pageSize,$.searchParams.paginationToken]}){const r=Object.keys(t??{}).filter(n=>!e?.includes(n));return Object.keys(r).length}const f7=t=>{const e=he.c(3),{children:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={px:2,pb:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(te,{direction:"row",justify:"flex-end",spacing:2,nowrap:!0,sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s},uit=()=>{const t=he.c(33),e=Ye(),[r,n]=hl();let s;t[0]!==r?(s=r.get("supi"),t[0]=r,t[1]=s):s=t[1];const[i,o]=I.useState(s==="*"),{drawerClose:l}=Jt();let c;t[2]!==l||t[3]!==n||t[4]!==i?(c=w=>{n(C=>{const k=new URLSearchParams;k.set($.searchParams.pageSize,C.get($.searchParams.pageSize)||$.pageSize.toString()),w.pei&&k.set("pei",w.pei);const A=i?"*":w.supi;return A&&k.set("supi",A),w.status&&k.set("status",w.status),w.enabled&&k.set("enabled",w.enabled),w.autorule&&k.set("autorule",w.autorule),k},{replace:!0}),l()},t[2]=l,t[3]=n,t[4]=i,t[5]=c):c=t[5];const u=c;let d;t[6]!==l||t[7]!==n?(d=()=>{n(dit,{replace:!0}),l()},t[6]=l,t[7]=n,t[8]=d):d=t[8];const f=d;let p;t[9]!==r?(p=r.get("pei")??"",t[9]=r,t[10]=p):p=t[10];let m;t[11]!==r?(m=r.get("pei")??"",t[11]=r,t[12]=m):m=t[12];let h;t[13]!==r?(h=r.get("status")??"",t[13]=r,t[14]=h):h=t[14];let _;t[15]!==r?(_=r.get("enabled")??"",t[15]=r,t[16]=_):_=t[16];let g;t[17]!==r?(g=r.get("autorule")??"",t[17]=r,t[18]=g):g=t[18];let y;t[19]!==p||t[20]!==m||t[21]!==h||t[22]!==_||t[23]!==g?(y={pei:p,supi:m,status:h,enabled:_,autorule:g},t[19]=p,t[20]=m,t[21]=h,t[22]=_,t[23]=g,t[24]=y):y=t[24];let b;t[25]!==e||t[26]!==i?(b=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsx(te,{spacing:2,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pei",children:w=>{const{field:C}=w;return a.jsx(dt,{...C,value:C.value||"",label:e.formatMessage({id:"eir_rules.filters.pei"}),size:"small"})}}),a.jsx(Ke,{name:"supi",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k,P=()=>{i?A("supi",""):A("supi","*"),o(fit)};return a.jsxs(te,{direction:"row",justify:"stretch",nowrap:!0,align:"center",children:[a.jsx(dt,{...C,value:C.value||"",label:e.formatMessage({id:"eir_rules.filters.supi"}),size:"small",disabled:i,sx:{flexGrow:1}}),a.jsxs(te,{direction:"row",align:"center",sx:{marginLeft:"0px !important",mt:"4px"},nowrap:!0,children:[a.jsx(ti,{onChange:P,value:i,checked:i,size:"small"}),a.jsx(Mn,{title:e.formatMessage({id:"eir_rules.filters.supi.all_tooltip"}),arrow:!0,placement:"top",children:a.jsx(gt,{children:a.jsx(te,{align:"center",children:a.jsx(ge.QuestionMark,{fontSize:"16px"})})})})]})]})}}),a.jsx(Ke,{name:"status",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.status"}),multiple:!1,size:"small",freeSolo:!1,options:["",...J0],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}}),a.jsx(Ke,{name:"enabled",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.enabled"}),multiple:!1,size:"small",freeSolo:!1,options:["","true","false"],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}}),a.jsx(Ke,{name:"autorule",children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsx(rn,{value:C.value,name:C.name,label:e.formatMessage({id:"eir_rules.filters.autorule"}),multiple:!1,size:"small",freeSolo:!1,options:["","true","false"],onChange:(P,T)=>{A(C.name,T||"")},fullWidth:!0})}})]})})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-rule-button-reset",text:e.formatMessage({id:"eir_rules.filters.buttons.reset"}),variant:"outlined",disabled:!as(ie.provisioning),type:"reset"}),a.jsx(Ze,{"data-testid":"filter-rule-button-apply",text:e.formatMessage({id:"eir_rules.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[25]=e,t[26]=i,t[27]=b):b=t[27];let x;return t[28]!==f||t[29]!==u||t[30]!==y||t[31]!==b?(x=a.jsx(Wr,{initialValues:y,onSubmit:u,onReset:f,children:b}),t[28]=f,t[29]=u,t[30]=y,t[31]=b,t[32]=x):x=t[32],x};function dit(t){const e=new URLSearchParams;return e.set($.searchParams.pageSize,t.get($.searchParams.pageSize)||$.pageSize.toString()),e}function fit(t){return!t}const pit=t=>{const e=he.c(66),{configuration:r,isDisabled:n}=t,s=n===void 0?!1:n,i=Ye(),o=On(),{dialogOpen:l,dialogClose:c,drawerOpen:u}=Jt(),{upsertFetcher:d}=Ys(),{state:f,submit:p}=d,{upsertFetcher:m}=Ys(),{state:h,submit:_}=m,g=u7();let y;e[0]!==p?(y=se=>{const le=new FormData;le.append("file",se),p(le,{action:$.urls.eirRulesCreateBulk_Action,method:"POST",encType:"multipart/form-data"})},e[0]=p,e[1]=y):y=e[1];const b=y;let x;e[2]!==l||e[3]!==i?(x=()=>{l({title:i.formatMessage({id:"eir_rules.toolbar.new_rule"}),content:mit,closeOnBackdropClick:!1})},e[2]=l,e[3]=i,e[4]=x):x=e[4];const w=x;let C;e[5]!==c||e[6]!==l||e[7]!==b||e[8]!==i?(C=()=>{l({title:i.formatMessage({id:"eir_rules.toolbar.import_rules"}),content:()=>a.jsx(wue,{onSubmit:se=>b(se.files[0]),onCancel:()=>c(),min:1,max:1,filesLabel:i.formatMessage({id:"eir_rules.import.file"}),accept:{"text/csv":[".csv"]},requiredMessage:i.formatMessage({id:"eir_rules.import.form_errors.required"}),description:i.formatMessage({id:"eir_rules.import.description"}),exampleFileUrl:"/files/eir_rules_provisioning_example.csv"}),closeOnBackdropClick:!1})},e[5]=c,e[6]=l,e[7]=b,e[8]=i,e[9]=C):C=e[9];const k=C;let A;e[10]!==u||e[11]!==i?(A=()=>{u({title:i.formatMessage({id:"eir_rules.toolbar.filters"}),content:hit})},e[10]=u,e[11]=i,e[12]=A):A=e[12];const P=A;let T;e[13]!==r.single_rule_per_pei||e[14]!==_?(T=async()=>{_({single_rule_per_pei:!r.single_rule_per_pei},{action:$.urls.eirRulesEquipmentConfigurationSet,method:"POST",encType:"application/json"})},e[13]=r.single_rule_per_pei,e[14]=_,e[15]=T):T=e[15];const j=T;let R;e[16]!==r||e[17]!==j||e[18]!==i||e[19]!==s||e[20]!==o||e[21]!==f||e[22]!==h?(R=r?a.jsxs(te,{direction:"row",align:"center",sx:{mr:1},spacing:0,justify:"flex-start",children:[a.jsx(ti,{checked:r?.single_rule_per_pei,"data-testid":"toolbar-switch-single-rule-per-pei",onChange:()=>void j(),size:"small",disabled:s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning)}),a.jsx(_e,{type:"body2",children:i.formatMessage({id:"eir_rules.toolbar.configuration"})})]}):null,e[16]=r,e[17]=j,e[18]=i,e[19]=s,e[20]=o,e[21]=f,e[22]=h,e[23]=R):R=e[23];let D;e[24]!==g?(D=d7({filter:g}),e[24]=g,e[25]=D):D=e[25];const O=!D;let N;e[26]!==i?(N=i.formatMessage({id:"eir_rules.toolbar.filters"}),e[26]=i,e[27]=N):N=e[27];let F;e[28]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Filter,{}),e[28]=F):F=e[28];let U;e[29]===Symbol.for("react.memo_cache_sentinel")?(U={width:"100%"},e[29]=U):U=e[29];const z=s||o.state!=="idle"||f!=="idle"||h!=="idle";let H;e[30]!==P||e[31]!==N||e[32]!==z?(H=a.jsx(Ze,{"data-testid":"toolbar-button-filters",variant:"outlined",text:N,startIcon:F,onClick:P,sx:U,disabled:z}),e[30]=P,e[31]=N,e[32]=z,e[33]=H):H=e[33];let W;e[34]!==O||e[35]!==H?(W=a.jsx(Iv,{variant:"dot",invisible:O,children:H}),e[34]=O,e[35]=H,e[36]=W):W=e[36];let K;e[37]!==i?(K=i.formatMessage({id:"eir_rules.toolbar.import_rules"}),e[37]=i,e[38]=K):K=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=a.jsx(ge.Upload,{}),e[39]=q):q=e[39];let X;e[40]!==s||e[41]!==o||e[42]!==f||e[43]!==h?(X=s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning),e[40]=s,e[41]=o,e[42]=f,e[43]=h,e[44]=X):X=e[44];let Q;e[45]!==k||e[46]!==K||e[47]!==X?(Q=a.jsx(Ze,{"data-testid":"toolbar-button-import-rules",variant:"outlined",text:K,startIcon:q,onClick:k,disabled:X}),e[45]=k,e[46]=K,e[47]=X,e[48]=Q):Q=e[48];let Y;e[49]!==i?(Y=i.formatMessage({id:"eir_rules.toolbar.new_rule"}),e[49]=i,e[50]=Y):Y=e[50];let Z;e[51]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(ge.Add,{}),e[51]=Z):Z=e[51];let re;e[52]!==s||e[53]!==o||e[54]!==f||e[55]!==h?(re=s||o.state!=="idle"||f!=="idle"||h!=="idle"||!Ue(ie.provisioning),e[52]=s,e[53]=o,e[54]=f,e[55]=h,e[56]=re):re=e[56];let fe;e[57]!==w||e[58]!==Y||e[59]!==re?(fe=a.jsx(Ze,{"data-testid":"toolbar-button-new-rule",text:Y,startIcon:Z,onClick:w,disabled:re}),e[57]=w,e[58]=Y,e[59]=re,e[60]=fe):fe=e[60];let de;return e[61]!==W||e[62]!==Q||e[63]!==fe||e[64]!==R?(de=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[R,W,Q,fe]}),e[61]=W,e[62]=Q,e[63]=fe,e[64]=R,e[65]=de):de=e[65],de};function mit(){return a.jsx(cit,{})}function hit(){return a.jsx(uit,{})}const git=()=>{const t=he.c(78),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{pageSize:o,pageSizeOptions:l,changePageSize:c,changePage:u,getRowsCount:d,getPage:f}=Na(),{dialogOpen:p}=Jt();let m;t[0]!==i||t[1]!==e||t[2]!==r?(m=async le=>{const{id:ee}=le;ee&&r({text:e.formatMessage({id:"eir_rules.actions.confirm_delete"}),onConfirm:()=>{i.submit({id:ee},{action:$.urls.eirRulesDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"eir_rules.table.header.pei"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"pei",label:_},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"eir_rules.table.header.supi"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"supi",label:y,cellRender:_it},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"eir_rules.table.header.status"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"status",label:x},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==e?(C=e.formatMessage({id:"eir_rules.table.header.enabled"}),t[16]=e,t[17]=C):C=t[17];let k;t[18]!==C?(k={key:"enabled",label:C},t[18]=C,t[19]=k):k=t[19];let A;t[20]!==e?(A=e.formatMessage({id:"eir_rules.table.header.created_at"}),t[20]=e,t[21]=A):A=t[21];let P;t[22]!==A?(P={key:"created_at",label:A},t[22]=A,t[23]=P):P=t[23];let T;t[24]!==e?(T=e.formatMessage({id:"eir_rules.table.header.modified_at"}),t[24]=e,t[25]=T):T=t[25];let j;t[26]!==T?(j={key:"modified_at",label:T},t[26]=T,t[27]=j):j=t[27];let R;t[28]!==e?(R=e.formatMessage({id:"eir_rules.table.header.autorule"}),t[28]=e,t[29]=R):R=t[29];let D;t[30]!==R?(D={key:"autorule",label:R,cellRender:vit,width:"80"},t[30]=R,t[31]=D):D=t[31];let O;t[32]!==P||t[33]!==j||t[34]!==D||t[35]!==g||t[36]!==b||t[37]!==w||t[38]!==k?(O=[g,b,w,k,P,j,D],t[32]=P,t[33]=j,t[34]=D,t[35]=g,t[36]=b,t[37]=w,t[38]=k,t[39]=O):O=t[39];const N=O;let F;t[40]===Symbol.for("react.memo_cache_sentinel")?(F=_l(ie.provisioning),t[40]=F):F=t[40];const U=s.state!=="idle"||i.state!=="idle";let z;t[41]!==p||t[42]!==e?(z=le=>{p({title:e.formatMessage({id:"eir_rules.edit_rule.title"}),content:()=>a.jsx(ait,{ruleId:le.id}),closeOnBackdropClick:!1})},t[41]=p,t[42]=e,t[43]=z):z=t[43];let H;t[44]!==U||t[45]!==z?(H={...F,disabled:U,onClick:z},t[44]=U,t[45]=z,t[46]=H):H=t[46];let W;t[47]!==e?(W=e.formatMessage({id:"eir_rules.actions.delete"}),t[47]=e,t[48]=W):W=t[48];let K;t[49]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(ge.Trash,{}),t[49]=K):K=t[49];let q;t[50]!==i.state||t[51]!==s.state?(q=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[50]=i.state,t[51]=s.state,t[52]=q):q=t[52];let X;t[53]!==h?(X=le=>void h(le),t[53]=h,t[54]=X):X=t[54];let Q;t[55]!==W||t[56]!==q||t[57]!==X?(Q={label:W,icon:K,disabled:q,onClick:X},t[55]=W,t[56]=q,t[57]=X,t[58]=Q):Q=t[58];let Y;t[59]!==H||t[60]!==Q?(Y=[H,Q],t[59]=H,t[60]=Q,t[61]=Y):Y=t[61];const Z=Y;let re;t[62]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(te,{sx:{height:"100%"},children:a.jsx(Dt,{variant:"rounded",height:"100%"})}),t[62]=re):re=t[62];let fe;t[63]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),t[63]=fe):fe=t[63];let de;t[64]!==u||t[65]!==c||t[66]!==N||t[67]!==n.equipmentConfiguration||t[68]!==i.state||t[69]!==f||t[70]!==d||t[71]!==o||t[72]!==l||t[73]!==Z?(de=le=>{const{data:ee,metadata:J}=le;return a.jsxs(a.Fragment,{children:[a.jsx(I.Suspense,{fallback:a.jsx(Dt,{variant:"rounded",height:"38px"}),children:a.jsx(Qt,{resolve:n.equipmentConfiguration,errorElement:a.jsx(Tr,{}),children:me=>a.jsx(hs,{children:a.jsx(pit,{configuration:me,isDisabled:i.state!=="idle"})})})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"pei",columns:N,data:ee,page:f(J),labelDisplayedRows:yit,rowsCount:d(J),rowsPerPage:o,onRowsPerPageChange:c,rowsPerPageOptions:l,rowKey:"id",rowActions:Z,stickyRowActions:!0,onPageChange:u(J)})]})},t[64]=u,t[65]=c,t[66]=N,t[67]=n.equipmentConfiguration,t[68]=i.state,t[69]=f,t[70]=d,t[71]=o,t[72]=l,t[73]=Z,t[74]=de):de=t[74];let se;return t[75]!==n.rules||t[76]!==de?(se=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:n.rules,errorElement:fe,children:de})}),t[75]=n.rules,t[76]=de,t[77]=se):se=t[77],se};function _it(t){const{supi:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{children:"*"})}function vit(t){const{autorule:e}=t;return e?a.jsx(_e,{align:"center",children:a.jsx(ge.Magic,{})}):a.jsx(a.Fragment,{})}function yit(){return""}const bit=async({status:t,enabled:e,autorule:r,supi:n,pei:s,pageSize:i,paginationToken:o})=>{const l=new URLSearchParams({...i&&{max_results:i},...s&&{pei_icont:s},...n&&n!=="*"&&{supi_icont:n},...t&&J0.includes(t)&&{status_eq:t},...e==="true"&&{enabled_true:"true"},...e==="false"&&{enabled_false:"false"},...r==="true"&&{autorule_true:"true"},...r==="false"&&{autorule_false:"false"},...o&&{pagination_token:o}}),c=`${$.apis.eir.rules}?${l}`;return De({options:{url:c,method:"GET",cache:!1}})};async function xit({id:t}){const e=`${$.apis.eir.rules}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"GET"}})}const Sit=async t=>{const e=$.apis.eir.rules;return De({options:{url:e,method:"POST",data:JSON.stringify(t),cache:!1}})},wit=async({id:t,...e})=>{const r=`${$.apis.eir.rules}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e),cache:!1}})},Cit=async t=>{const e=`${$.apis.eir.rules}/${t}`;return De({options:{url:e,method:"DELETE",cache:!1}})},Ait=async t=>{const e=$.apis.eir.rules;return De({options:{url:e,method:"PATCH",headers:{"content-type":"multipart/form-data"},data:t,cache:!1}})},kit=async()=>{const t=`${$.apis.eir.equipmentRuleConfiguration}`;return De({options:{url:t,method:"GET",cache:!1}})},Mit=async t=>{const e=`${$.apis.eir.equipmentRuleConfiguration}`;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})},Pit=async({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize})=>{let r=`${$.apis.eir.autorules}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})},jit=async t=>{const e=$.apis.eir.autorules;return De({options:{url:e,method:"POST",data:JSON.stringify(t),cache:!1}})},Tit=async t=>{const e=`${$.apis.eir.autorules}/${t}`;return De({options:{url:e,method:"DELETE",cache:!1}})},Eit=async t=>{const e=$.apis.eir.autorules;return De({options:{url:e,method:"PATCH",headers:{"content-type":"multipart/form-data"},data:t,cache:!1}})};async function Rit({request:t}){const e=await t.json(),r=await Sit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Iit({request:t}){const e=await t.json(),r=await wit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Dit({request:t}){const{id:e}=await t.json(),r=await Cit(e);return xt(r)?Ar():Nt(),Ft(r)}async function $it({request:t}){const e=await t.formData(),r=await Ait(e);return xt(r)?Ar():Nt(),Ft(r)}async function Oit({request:t}){const e=await t.json(),r=await Mit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Lit({request:t}){const e=await t.json(),r=await jit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Nit({request:t}){const{supi:e}=await t.json(),r=await Tit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Fit({request:t}){const e=await t.formData(),r=await Eit(e);return xt(r)?Ar():Nt(),Ft(r)}async function Uit(t){const e=new URL(t.request.url),r=e.searchParams.get("pei"),n=e.searchParams.get("supi"),s=e.searchParams.get("status"),i=e.searchParams.get("enabled"),o=e.searchParams.get("autorule"),{pageSize:l,paginationToken:c}=Fa(t);return s&&!J0.includes(s)?(e.searchParams.delete("status"),rt(e.href)):i&&!["true","false"].includes(i)?(e.searchParams.delete("enabled"),rt(e.href)):o&&!["true","false"].includes(o)?(e.searchParams.delete("autorule"),rt(e.href)):Wt({loaderArgs:t,deferred:!0,data:{rules:bit({pageSize:l,paginationToken:c,pei:r,supi:n,status:s,enabled:i,autorule:o}),equipmentConfiguration:kit()}})}async function Bit(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{eirRule:xit({id:e})}}):null}async function zit(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{autorules:Pit({pageSize:e,paginationToken:r})}})}const qit=Pr(),Vit={path:"eir",handle:vr({labelIntl:"route.eir",icon:a.jsx(ge.EIR,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.EIR,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.eir.status",to:"/eir/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:qit.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.EIR})]},io(ue.EIR),{path:"rules",handle:vr({labelIntl:"route.eir.rules",to:"/eir/rules"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Uit,element:a.jsx(git,{})},{path:":id",loader:Bit,element:a.jsx(ur,{to:"/eir/rules",replace:!0})},{action:Rit,path:"create",loader:()=>rt("..")},{action:Iit,path:"update",loader:()=>rt("..")},{action:Dit,path:"delete",loader:()=>rt("..")},{action:$it,path:"create-bulk",loader:()=>rt("..")},{action:Oit,path:"equipment-configuration-set",loader:()=>rt("..")}]},{path:"auto-rules",handle:vr({labelIntl:"route.eir.auto-rules",to:"/eir/auto-rules"}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:zit,element:a.jsx(rit,{})},{action:Lit,path:"create",loader:()=>rt("..")},{action:Nit,path:"delete",loader:()=>rt("..")},{action:Fit,path:"create-bulk",loader:()=>rt("..")}]}]}]};function Aue(t){const e=he.c(6),{value:r,language:n}=t,s=ci();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={p:1,flex:"1 1 auto",width:"100%",border:"1px solid",borderColor:"grey.400",borderRadius:1},e[0]=i):i=e[0];const o=s.palette.mode==="light"?"light":"vs-dark";let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={automaticLayout:!0,autoClosingBrackets:"always",autoClosingQuotes:"always",autoIndent:"full",formatOnPaste:!0,formatOnType:!0,detectIndentation:!0,readOnly:!0},e[1]=l):l=e[1];let c;return e[2]!==n||e[3]!==o||e[4]!==r?(c=a.jsx(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,spacing:.5,children:a.jsx(gt,{sx:i,children:a.jsx(SL,{value:r,language:n,theme:o,options:l})})}),e[2]=n,e[3]=o,e[4]=r,e[5]=c):c=e[5],c}function Hit(t){const e=he.c(22),{domain:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={to:"mme/status/dns/cache"},e[0]=i):i=e[0];const{data:o}=Dv(i);o?.cache;let l;e[1]!==o?.cache||e[2]!==r?(l=o?.cache.find(g=>g.query?.domain===r),e[1]=o?.cache,e[2]=r,e[3]=l):l=e[3];const c=l;let u;e[4]!==c?(u=c&&a.jsx(Aue,{value:JSON.stringify(c??null,null,2),language:"json"}),e[4]=c,e[5]=u):u=e[5];let d;e[6]!==c||e[7]!==n?(d=!c&&a.jsx(Lr,{severity:"warning",message:n.formatMessage({id:"mme.dns.status.cache.no_data"})}),e[6]=c,e[7]=n,e[8]=d):d=e[8];let f;e[9]!==u||e[10]!==d?(f=a.jsx(_s,{children:a.jsxs(te,{fullHeight:!0,align:"center",justify:"center",children:[u,d]})}),e[9]=u,e[10]=d,e[11]=f):f=e[11];let p;e[12]!==n?(p=n.formatMessage({id:"info_dialog.close"}),e[12]=n,e[13]=p):p=e[13];let m;e[14]!==s?(m=()=>{s()},e[14]=s,e[15]=m):m=e[15];let h;e[16]!==p||e[17]!==m?(h=a.jsx(Ti,{children:a.jsx(Ze,{text:p,onClick:m})}),e[16]=p,e[17]=m,e[18]=h):h=e[18];let _;return e[19]!==f||e[20]!==h?(_=a.jsxs(a.Fragment,{children:[f,h]}),e[19]=f,e[20]=h,e[21]=_):_=e[21],_}function Git(){const t=he.c(35),e=Ye(),{dialogOpen:r}=Jt(),n=Gr(),s=On(),i=gl();let o;t[0]!==i?(o=async()=>{i({},{method:"POST",encType:"application/json",action:"flush"})},t[0]=i,t[1]=o):o=t[1];const l=o;let c;t[2]!==e?(c=e.formatMessage({id:"mme.dns.status.cache.query.domain"}),t[2]=e,t[3]=c):c=t[3];let u;t[4]!==c?(u={key:"query.domain",label:c,cellRender:Kit},t[4]=c,t[5]=u):u=t[5];let d;t[6]!==e?(d=e.formatMessage({id:"mme.dns.status.cache.query.type"}),t[6]=e,t[7]=d):d=t[7];let f;t[8]!==d?(f={key:"query.type",label:d,cellRender:Yit},t[8]=d,t[9]=f):f=t[9];let p;t[10]!==e?(p=e.formatMessage({id:"mme.dns.status.cache.expiration"}),t[10]=e,t[11]=p):p=t[11];let m;t[12]!==e?(m=A=>{const{expired:P,expires_s:T}=A;return a.jsx(a.Fragment,{children:P?a.jsx(bi,{label:e.formatMessage({id:"mme.dns.status.cache.expired"}),status:nn.ERROR}):T&&a.jsx(_e,{type:"body2",children:Mr(T)})})},t[12]=e,t[13]=m):m=t[13];let h;t[14]!==p||t[15]!==m?(h={key:"expires",label:p,cellRender:m},t[14]=p,t[15]=m,t[16]=h):h=t[16];let _;t[17]!==u||t[18]!==f||t[19]!==h?(_=[u,f,h],t[17]=u,t[18]=f,t[19]=h,t[20]=_):_=t[20];const g=_;let y;t[21]!==r||t[22]!==e?(y=A=>[{label:e.formatMessage({id:"mme.dns.status.cache.details"}),icon:a.jsx(ge.Details,{}),disabled:Wit,onClick:P=>{const{query:T}=P,j=A.find(R=>R.query?.domain===T?.domain);r({fullScreen:!0,title:`${j?j.query?.domain:""}`,content:()=>a.jsx(Hit,{domain:T?.domain})})}}],t[21]=r,t[22]=e,t[23]=y):y=t[23];const b=y;let x;t[24]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[24]=x):x=t[24];let w;t[25]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(en,{}),t[25]=w):w=t[25];let C;t[26]!==g||t[27]!==l||t[28]!==e||t[29]!==s.state||t[30]!==b?(C=A=>a.jsx(a.Fragment,{children:a.jsx(Br,{autoScale:!0,data:A||[],orderBy:"query",page:0,loading:s.state!=="idle",rowsCount:A?.length,rowsPerPage:A?.length,rowKey:"query",columns:g,hidePagination:!0,rowActions:b(A),stickyRowActions:!0,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{startIcon:a.jsx(ge.Clear,{}),disabled:s.state==="loading"||!Ue(ie.monitoring),loading:s.state==="submitting",variant:"outlined",onClick:()=>void l(),text:e.formatMessage({id:"mme.dns.status.cache.actions.flush_cache"})})})})}),t[26]=g,t[27]=l,t[28]=e,t[29]=s.state,t[30]=b,t[31]=C):C=t[31];let k;return t[32]!==n.dnsCache||t[33]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:n.dnsCache,errorElement:w,children:C})}),t[32]=n.dnsCache,t[33]=C,t[34]=k):k=t[34],k}function Wit(){return!Ue(ie.monitoring)}function Yit(t){const{query:e}=t;return a.jsx(_e,{type:"body2",children:e?.type&&e.type.toUpperCase()})}function Kit(t){const{query:e}=t;return a.jsx(_e,{type:"body2",children:e?.domain})}const Qit=WIe("table",{shouldForwardProp:t=>t!=="showBorder"})(({theme:t})=>({borderSpacing:0,borderCollapse:"collapse","td, th":{borderBottom:`1px solid ${t.palette.divider}`},"tr:last-child td":{borderBottom:"none"}}));function Zit(t){const e=he.c(27),{columns:r,data:n,title:s}=t;let i;e[0]!==r.length?(i=_=>_===0?"left":_===r.length-1?"right":"center",e[0]=r.length,e[1]=i):i=e[1];const o=i;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={width:"max-content"},e[2]=l):l=e[2];let c;e[3]!==s?(c=s&&a.jsx(_e,{align:"center",fontSize:"small",fontWeight:"600",children:s}),e[3]=s,e[4]=c):c=e[4];let u;if(e[5]!==r||e[6]!==o){let _;e[8]!==o?(_=(g,y)=>{const{label:b}=g;return a.jsx("th",{children:a.jsx(_e,{align:o(y),fontSize:"small",fontWeight:600,children:b})},y)},e[8]=o,e[9]=_):_=e[9],u=r.map(_),e[5]=r,e[6]=o,e[7]=u}else u=e[7];let d;e[10]!==u?(d=a.jsx("thead",{children:a.jsx("tr",{children:u})}),e[10]=u,e[11]=d):d=e[11];let f;if(e[12]!==r||e[13]!==n||e[14]!==o){let _;e[16]!==r||e[17]!==o?(_=(g,y)=>a.jsx("tr",{children:r.map((b,x)=>{const{key:w}=b;return a.jsx("td",{children:a.jsx(_e,{align:o(x),fontSize:"small",children:`${g[w]}`})},x)})},y),e[16]=r,e[17]=o,e[18]=_):_=e[18],f=n.map(_),e[12]=r,e[13]=n,e[14]=o,e[15]=f}else f=e[15];let p;e[19]!==f?(p=a.jsx("tbody",{children:f}),e[19]=f,e[20]=p):p=e[20];let m;e[21]!==d||e[22]!==p?(m=a.jsxs(Qit,{children:[d,p]}),e[21]=d,e[22]=p,e[23]=m):m=e[23];let h;return e[24]!==c||e[25]!==m?(h=a.jsxs(te,{spacing:0,sx:l,children:[c,m]}),e[24]=c,e[25]=m,e[26]=h):h=e[26],h}function Xit(t){const e=he.c(17),{data:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl.id"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"mce_id",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n?(o=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl.plmn"}),e[4]=n,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"plmn",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==i||e[9]!==l?(c=[i,l],e[8]=i,e[9]=l,e[10]=c):c=e[10];const u=c;let d;e[11]!==n?(d=n.formatMessage({id:"mme.m3.status.connections.m3_sessions.cl"}),e[11]=n,e[12]=d):d=e[12];let f;return e[13]!==u||e[14]!==r||e[15]!==d?(f=a.jsx(Zit,{columns:u,data:r,title:d}),e[13]=u,e[14]=r,e[15]=d,e[16]=f):f=e[16],f}function Jit(t){const e=he.c(40),{row:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r.id?(s=r.id&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.id"})}),a.jsx(_e,{fontSize:"small",children:r.id})]}),e[0]=n,e[1]=r.id,e[2]=s):s=e[2];let i;e[3]!==n||e[4]!==r.mce_name?(i=r.mce_name&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.mce_name"})}),a.jsx(_e,{fontSize:"small",children:r.mce_name})]}),e[3]=n,e[4]=r.mce_name,e[5]=i):i=e[5];let o;e[6]!==n||e[7]!==r.service_areas?(o=r.service_areas&&r.service_areas.length&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.service_areas"})}),r.service_areas.map(tot)]}),e[6]=n,e[7]=r.service_areas,e[8]=o):o=e[8];let l;e[9]!==n||e[10]!==r.global_mce_id?(l=r.global_mce_id?.mce_id&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.global_mce_id.id"})}),a.jsx(_e,{fontSize:"small",children:r.global_mce_id.mce_id})]}),e[9]=n,e[10]=r.global_mce_id,e[11]=l):l=e[11];let c;e[12]!==n||e[13]!==r.global_mce_id?(c=r.global_mce_id?.plmn&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.global_mce_id.plmn"})}),a.jsx(_e,{fontSize:"small",children:r.global_mce_id.plmn})]}),e[12]=n,e[13]=r.global_mce_id,e[14]=c):c=e[14];let u;e[15]!==n||e[16]!==r.m3_sessions?(u=r.m3_sessions?.tmgi&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.tmgi"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions.tmgi})]}),e[15]=n,e[16]=r.m3_sessions,e[17]=u):u=e[17];let d;e[18]!==n||e[19]!==r.m3_sessions?(d=r.m3_sessions?.flow!==void 0&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.flow"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions.flow})]}),e[18]=n,e[19]=r.m3_sessions,e[20]=d):d=e[20];let f;e[21]!==n||e[22]!==r.m3_sessions?(f=r.m3_sessions?.sas&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions.sas"})}),r.m3_sessions.sas.map(eot)]}),e[21]=n,e[22]=r.m3_sessions,e[23]=f):f=e[23];let p;e[24]!==r.m3_sessions?(p=r.m3_sessions?.cl&&a.jsx(Is,{size:{xs:6,sm:4,md:3,lg:2},children:a.jsx(Xit,{data:r.m3_sessions.cl})}),e[24]=r.m3_sessions,e[25]=p):p=e[25];let m;e[26]!==n||e[27]!==r.m3_sessions_count?(m=r.m3_sessions_count&&a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:"mme.m3.status.connections.m3_sessions_count"})}),a.jsx(_e,{fontSize:"small",children:r.m3_sessions_count})]}),e[26]=n,e[27]=r.m3_sessions_count,e[28]=m):m=e[28];let h;return e[29]!==s||e[30]!==m||e[31]!==i||e[32]!==o||e[33]!==l||e[34]!==c||e[35]!==u||e[36]!==d||e[37]!==f||e[38]!==p?(h=a.jsxs(al,{children:[s,i,o,l,c,u,d,f,p,m]}),e[29]=s,e[30]=m,e[31]=i,e[32]=o,e[33]=l,e[34]=c,e[35]=u,e[36]=d,e[37]=f,e[38]=p,e[39]=h):h=e[39],h}function eot(t,e){return a.jsx(_e,{fontSize:"small",children:t},e)}function tot(t,e){return a.jsx(_e,{fontSize:"small",children:t},e)}function rot(){const t=he.c(42),e=Ye(),r=Gr();let n;t[0]!==e?(n=e.formatMessage({id:"mme.m3.status.connections.connection_id"}),t[0]=e,t[1]=n):n=t[1];let s;t[2]!==n?(s={key:"connection_id",label:n},t[2]=n,t[3]=s):s=t[3];let i;t[4]!==e?(i=e.formatMessage({id:"mme.m3.status.connections.local_addrs"}),t[4]=e,t[5]=i):i=t[5];let o;t[6]!==i?(o={key:"local_addrs",label:i,cellRender:oot},t[6]=i,t[7]=o):o=t[7];let l;t[8]!==e?(l=e.formatMessage({id:"mme.m3.status.connections.local_port"}),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==l?(c={key:"local_port",label:l},t[10]=l,t[11]=c):c=t[11];let u;t[12]!==e?(u=e.formatMessage({id:"mme.m3.status.connections.remote_addrs"}),t[12]=e,t[13]=u):u=t[13];let d;t[14]!==u?(d={key:"remote_addrs",label:u,cellRender:sot},t[14]=u,t[15]=d):d=t[15];let f;t[16]!==e?(f=e.formatMessage({id:"mme.m3.status.connections.remote_port"}),t[16]=e,t[17]=f):f=t[17];let p;t[18]!==f?(p={key:"remote_port",label:f},t[18]=f,t[19]=p):p=t[19];let m;t[20]!==e?(m=e.formatMessage({id:"mme.m3.status.connections.transport_name"}),t[20]=e,t[21]=m):m=t[21];let h;t[22]!==m?(h={key:"transport_name",label:m},t[22]=m,t[23]=h):h=t[23];let _;t[24]!==e?(_=e.formatMessage({id:"mme.m3.status.connections.connection_ts"}),t[24]=e,t[25]=_):_=t[25];let g;t[26]!==_?(g={key:"connection_ts",label:_},t[26]=_,t[27]=g):g=t[27];let y;t[28]!==s||t[29]!==h||t[30]!==g||t[31]!==o||t[32]!==c||t[33]!==d||t[34]!==p?(y=[s,o,c,d,p,h,g],t[28]=s,t[29]=h,t[30]=g,t[31]=o,t[32]=c,t[33]=d,t[34]=p,t[35]=y):y=t[35];const b=y;let x;t[36]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[36]=x):x=t[36];let w;t[37]!==b?(w=k=>a.jsx(Br,{autoScale:!0,data:k||[],orderBy:"connection_id",page:0,rowsCount:k?.length,rowsPerPage:k?.length,rowKey:"connection_id",columns:b,hidePagination:!0,rowDetail:{content:not}}),t[37]=b,t[38]=w):w=t[38];let C;return t[39]!==r.connections||t[40]!==w?(C=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:r.connections,children:w})}),t[39]=r.connections,t[40]=w,t[41]=C):C=t[41],C}function not(t){return a.jsx(Jit,{row:t})}function sot(t){const{remote_addrs:e}=t,r=e.map(iot);return a.jsx(ks,{size:"small",items:r})}function iot(t){return{label:`${t}`,id:`${t}`}}function oot(t){const{local_addrs:e}=t,r=e.map(aot);return a.jsx(ks,{size:"small",items:r})}function aot(t){return{label:`${t}`,id:`${t}`}}function lot(){const t=he.c(88),e=Ye(),r=Gr(),n=gl(),s=On();let i;t[0]!==n?(i=async ee=>{n({enbId:ee},{method:"POST",encType:"application/json",action:"disconnect"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==n?(l=async ee=>{n({enbId:ee},{method:"POST",encType:"application/json",action:"reset"})},t[2]=n,t[3]=l):l=t[3];const c=l;let u;t[4]!==e?(u=e.formatMessage({id:"mme.s1ap.status.connections.local_addrs"}),t[4]=e,t[5]=u):u=t[5];let d;t[6]!==u?(d={key:"local_addrs",label:u,cellRender:_ot},t[6]=u,t[7]=d):d=t[7];let f;t[8]!==e?(f=e.formatMessage({id:"mme.s1ap.status.connections.local_port"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]!==f?(p={key:"local_port",label:f},t[10]=f,t[11]=p):p=t[11];let m;t[12]!==e?(m=e.formatMessage({id:"mme.s1ap.status.connections.remote_addrs"}),t[12]=e,t[13]=m):m=t[13];let h;t[14]!==m?(h={key:"remote_addrs",label:m,cellRender:hot},t[14]=m,t[15]=h):h=t[15];let _;t[16]!==e?(_=e.formatMessage({id:"mme.s1ap.status.connections.remote_port"}),t[16]=e,t[17]=_):_=t[17];let g;t[18]!==_?(g={key:"remote_port",label:_},t[18]=_,t[19]=g):g=t[19];let y;t[20]!==e?(y=e.formatMessage({id:"mme.s1ap.status.connections.enb_name"}),t[20]=e,t[21]=y):y=t[21];let b;t[22]!==y?(b={key:"enb_name",label:y},t[22]=y,t[23]=b):b=t[23];let x;t[24]!==e?(x=e.formatMessage({id:"mme.s1ap.status.connections.transport_name"}),t[24]=e,t[25]=x):x=t[25];let w;t[26]!==x?(w={key:"transport_name",label:x},t[26]=x,t[27]=w):w=t[27];let C;t[28]!==e?(C=e.formatMessage({id:"mme.s1ap.status.connections.srb_count"}),t[28]=e,t[29]=C):C=t[29];let k;t[30]!==C?(k={key:"srb_count",label:C},t[30]=C,t[31]=k):k=t[31];let A;t[32]!==e?(A=e.formatMessage({id:"mme.s1ap.status.connections.connection_ts"}),t[32]=e,t[33]=A):A=t[33];let P;t[34]!==A?(P={key:"connection_ts",label:A,cellRender:mot},t[34]=A,t[35]=P):P=t[35];let T;t[36]!==e?(T=e.formatMessage({id:"mme.s1ap.status.connections.connection_id"}),t[36]=e,t[37]=T):T=t[37];let j;t[38]!==T?(j={key:"connection_id",label:T},t[38]=T,t[39]=j):j=t[39];let R;t[40]!==e?(R=e.formatMessage({id:"mme.s1ap.status.connections.global_enb_id"}),t[40]=e,t[41]=R):R=t[41];let D;t[42]!==R?(D={key:"global_enb_id",label:R,cellRender:pot},t[42]=R,t[43]=D):D=t[43];let O;t[44]!==e?(O=e.formatMessage({id:"mme.s1ap.status.connections.tai"}),t[44]=e,t[45]=O):O=t[45];let N;t[46]!==O?(N={key:"tai",label:O,cellRender:dot},t[46]=O,t[47]=N):N=t[47];let F;t[48]!==b||t[49]!==w||t[50]!==k||t[51]!==P||t[52]!==j||t[53]!==D||t[54]!==N||t[55]!==d||t[56]!==p||t[57]!==h||t[58]!==g?(F=[d,p,h,g,b,w,k,P,j,D,N],t[48]=b,t[49]=w,t[50]=k,t[51]=P,t[52]=j,t[53]=D,t[54]=N,t[55]=d,t[56]=p,t[57]=h,t[58]=g,t[59]=F):F=t[59];const U=F;let z;t[60]!==e?(z=e.formatMessage({id:"mme.s1ap.status.connections.actions.disconnect"}),t[60]=e,t[61]=z):z=t[61];let H;t[62]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Disconnect,{}),t[62]=H):H=t[62];let W;t[63]!==o?(W=async ee=>{const{id:J}=ee;J&&o(J)},t[63]=o,t[64]=W):W=t[64];let K;t[65]!==z||t[66]!==W?(K={label:z,icon:H,disabled:uot,onClick:W},t[65]=z,t[66]=W,t[67]=K):K=t[67];let q;t[68]!==e?(q=e.formatMessage({id:"mme.s1ap.status.connections.actions.reset"}),t[68]=e,t[69]=q):q=t[69];let X;t[70]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.Refresh,{}),t[70]=X):X=t[70];let Q;t[71]!==c?(Q=async ee=>{const{id:J}=ee;J&&c(J)},t[71]=c,t[72]=Q):Q=t[72];let Y;t[73]!==q||t[74]!==Q?(Y={label:q,icon:X,disabled:cot,onClick:Q},t[73]=q,t[74]=Q,t[75]=Y):Y=t[75];let Z;t[76]!==K||t[77]!==Y?(Z=[K,Y],t[76]=K,t[77]=Y,t[78]=Z):Z=t[78];const re=Z;let fe;t[79]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[79]=fe):fe=t[79];let de;t[80]===Symbol.for("react.memo_cache_sentinel")?(de=a.jsx(en,{}),t[80]=de):de=t[80];let se;t[81]!==U||t[82]!==s.state||t[83]!==re?(se=ee=>a.jsx(Br,{autoScale:!0,data:ee||[],orderBy:"id",page:0,loading:s.state!=="idle",rowsCount:ee?.length,rowsPerPage:ee?.length,rowKey:"id",columns:U,hidePagination:!0,rowActions:re,stickyRowActions:!0}),t[81]=U,t[82]=s.state,t[83]=re,t[84]=se):se=t[84];let le;return t[85]!==r.connections||t[86]!==se?(le=a.jsx(I.Suspense,{fallback:fe,children:a.jsx(Qt,{resolve:r.connections,errorElement:de,children:se})}),t[85]=r.connections,t[86]=se,t[87]=le):le=t[87],le}function cot(){return!Ue(ie.monitoring)}function uot(){return!Ue(ie.monitoring)}function dot(t){const{tai:e}=t;return a.jsx(ks,{size:"small",items:e?.map(fot)||[]})}function fot(t){return{label:`${t.tac} | ${t.plmn} (${t.rat})`,id:`${t.tac}-${t.plmn}-${t.rat}`}}function pot(t){const{global_enb_id:e}=t;return e?a.jsx(_e,{type:"body2",children:`${e.id} | ${e.plmn} (${e.type})`}):a.jsx(a.Fragment,{})}function mot(t){const{connection_ts:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function hot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(got)||[]})}function got(t){return{label:`${t}`,id:`${t}`}}function _ot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(vot)||[]})}function vot(t){return{label:`${t}`,id:`${t}`}}function yot(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.s1ap.status.listeners.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.s1ap.status.listeners.local_addrs"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addrs",label:o,cellRender:bot},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.s1ap.status.listeners.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.s1ap.status.listeners.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.listeners||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.listeners,errorElement:_,children:g})}),t[26]=r.listeners,t[27]=g,t[28]=y):y=t[28],y}function bot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(xot)||[]})}function xot(t){return{label:`${t}`,id:`${t}`}}function Sot(){const t=he.c(44),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sbcap.status.connections.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:kot},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sbcap.status.connections.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sbcap.status.connections.remote_addrs"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addrs",label:c,cellRender:Cot},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sbcap.status.connections.remote_port"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_port",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"mme.sbcap.status.connections.transport_name"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"transport_name",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"mme.sbcap.status.connections.connection_ts"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"connection_ts",label:h,cellRender:wot},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"mme.sbcap.status.connections.connection_id"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"connection_id",label:g},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==i||t[29]!==_||t[30]!==y||t[31]!==l||t[32]!==u||t[33]!==f||t[34]!==m?(b=[i,l,u,f,m,_,y],t[28]=i,t[29]=_,t[30]=y,t[31]=l,t[32]=u,t[33]=f,t[34]=m,t[35]=b):b=t[35];const x=b;let w;t[36]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[36]=w):w=t[36];let C;t[37]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(en,{}),t[37]=C):C=t[37];let k;t[38]!==x||t[39]!==n.state?(k=P=>a.jsx(Br,{autoScale:!0,data:P||[],orderBy:"connection_id",page:0,loading:n.state!=="idle",rowsCount:P?.length,rowsPerPage:P?.length,rowKey:"connection_id",columns:x,hidePagination:!0,stickyRowActions:!0}),t[38]=x,t[39]=n.state,t[40]=k):k=t[40];let A;return t[41]!==r.connections||t[42]!==k?(A=a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:r.connections,errorElement:C,children:k})}),t[41]=r.connections,t[42]=k,t[43]=A):A=t[43],A}function wot(t){const{connection_ts:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Cot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Aot)||[]})}function Aot(t){return{label:`${t}`,id:`${t}`}}function kot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Mot)||[]})}function Mot(t){return{label:`${t}`,id:`${t}`}}function Pot(){const t=he.c(29),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sbcap.status.listeners.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sbcap.status.listeners.local_addrs"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addrs",label:o,cellRender:jot},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sbcap.status.listeners.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sbcap.status.listeners.dev"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"dev",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==i||t[17]!==l||t[18]!==u||t[19]!==f?(p=[i,l,u,f],t[16]=i,t[17]=l,t[18]=u,t[19]=f,t[20]=p):p=t[20];const m=p;let h;t[21]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[21]=h):h=t[21];let _;t[22]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[22]=_):_=t[22];let g;t[23]!==m||t[24]!==n.state?(g=b=>a.jsx(Br,{autoScale:!0,data:b||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:b?.length,rowsPerPage:b?.length,rowKey:"transport_name",columns:m,hidePagination:!0}),t[23]=m,t[24]=n.state,t[25]=g):g=t[25];let y;return t[26]!==r.listeners||t[27]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:r.listeners,errorElement:_,children:g})}),t[26]=r.listeners,t[27]=g,t[28]=y):y=t[28],y}function jot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Tot)||[]})}function Tot(t){return{label:`${t}`,id:`${t}`}}function Eot(){const t=he.c(34),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"mme.sgs.status.connections.local_addrs"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"local_addrs",label:s,cellRender:Dot},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"mme.sgs.status.connections.local_port"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_port",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"mme.sgs.status.connections.remote_addrs"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"remote_addrs",label:c,cellRender:Rot},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"mme.sgs.status.connections.remote_port"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_port",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"mme.sgs.status.connections.connection_id"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"connection_id",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==i||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==m?(h=[i,l,u,f,m],t[20]=i,t[21]=l,t[22]=u,t[23]=f,t[24]=m,t[25]=h):h=t[25];const _=h;let g;t[26]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[26]=g):g=t[26];let y;t[27]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(en,{}),t[27]=y):y=t[27];let b;t[28]!==_||t[29]!==n.state?(b=w=>a.jsx(Br,{autoScale:!0,data:w||[],orderBy:"connection_id",page:0,loading:n.state!=="idle",rowsCount:w?.length,rowsPerPage:w?.length,rowKey:"connection_id",columns:_,hidePagination:!0,stickyRowActions:!0}),t[28]=_,t[29]=n.state,t[30]=b):b=t[30];let x;return t[31]!==r.connections||t[32]!==b?(x=a.jsx(I.Suspense,{fallback:g,children:a.jsx(Qt,{resolve:r.connections,errorElement:y,children:b})}),t[31]=r.connections,t[32]=b,t[33]=x):x=t[33],x}function Rot(t){const{remote_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map(Iot)||[]})}function Iot(t){return{label:`${t}`,id:`${t}`}}function Dot(t){const{local_addrs:e}=t;return a.jsx(ks,{size:"small",items:e?.map($ot)||[]})}function $ot(t){return{label:`${t}`,id:`${t}`}}async function Oot(){const t=$.apis.mme.s1ap.status.connections;return De({options:{url:t,method:"GET"}})}async function Lot({enbId:t}){const e=$.apis.mme.s1ap.status.disconnect(t);return De({options:{url:e,method:"POST"}})}async function Not({enbId:t}){const e=$.apis.mme.s1ap.status.reset(t);return De({options:{url:e,method:"POST"}})}async function Fot(){const t=$.apis.mme.s1ap.status.listeners;return De({options:{url:t,method:"GET"}})}async function Uot(){const t=$.apis.mme.sgs.status.connections;return De({options:{url:t,method:"GET"}})}async function Bot(){const t=$.apis.mme.sbcap.status.connections;return De({options:{url:t,method:"GET"}})}async function zot(){const t=$.apis.mme.sbcap.status.listeners;return De({options:{url:t,method:"GET"}})}async function qot(){const t=$.apis.mme.dns.status.cache;return De({options:{url:t,method:"GET"}})}async function Vot(){const t=$.apis.mme.dns.status.cacheFlush;return De({options:{url:t,method:"POST"}})}async function Hot(t){const e=$.apis.mme.imsi.status.ue(t);return De({options:{url:e,method:"GET"}})}async function Got(t){const e=$.apis.mme.imsi.status.disconnect(t);return De({options:{url:e,method:"POST"}})}async function Wot(t,e){const r=$.apis.mme.imsi.status.detach(t,e);return De({options:{url:r,method:"POST"}})}async function Yot(t,e){const r=$.apis.mme.imsi.status.purge(t,e);return De({options:{url:r,method:"POST"}})}async function Kot(){const t=$.apis.mme.m3.status.connections;return De({options:{url:t,method:"GET"}})}function Qot(){return async({request:t})=>{const e=await t.json(),{enbId:r}=e,n=await Lot({enbId:r});return xt(n)?Ar():Nt(),Ft(n)}}function Zot(){return async({request:t})=>{const e=await t.json(),{enbId:r}=e,n=await Not({enbId:r});return xt(n)?Ar():Nt(),Ft(n)}}async function Xot(){const t=await Vot();return xt(t)?Ar():Nt(),Ft(t)}async function Jot(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Oot()}})}async function eat(t){return Wt({loaderArgs:t,deferred:!0,data:{listeners:Fot()}})}async function tat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Uot()}})}async function rat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Bot()}})}async function nat(t){return Wt({loaderArgs:t,deferred:!0,data:{listeners:zot()}})}async function sat(t){return Wt({loaderArgs:t,deferred:!0,data:{dnsCache:qot()}})}async function iat(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:Kot()}})}const oat=dr().shape({x1_ca:yr().of(oa()).min(1),x1_key:yr().of(oa()).min(1),x1_cert:yr().of(oa()).min(1),x2_ca:yr().of(oa()).min(1),x2_key:yr().of(oa()).min(1),x2_cert:yr().of(oa()).min(1),x1_uids:yr().of(We()).min(1)});function b$(t){return{[`${t}_ca`]:yr().of(oa()).when([`${t}_key`,`${t}_cert`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n),[`${t}_key`]:yr().of(oa()).when([`${t}_ca`,`${t}_cert`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n),[`${t}_cert`]:yr().of(oa()).when([`${t}_ca`,`${t}_key`],(e,r,n)=>e?.length>0||r?.length>0?n.min(1):n)}}function x$(t){return[[`${t}_ca`,`${t}_key`],[`${t}_ca`,`${t}_cert`],[`${t}_key`,`${t}_cert`]]}const aat=dr().shape({x1_ca:yr().of(oa()).min(1),x1_key:yr().of(oa()).min(1),x1_cert:yr().of(oa()).min(1),x2_ca:yr().of(oa()).min(1),x2_key:yr().of(oa()).min(1),x2_cert:yr().of(oa()).min(1),x1_uids:yr().of(We()).min(1),...b$("t3")},[...x$("t3")]),lat=dr().shape({...b$("x3"),...b$("t3")},[...x$("x3"),...x$("t3")]),kue=async t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>n.result?e(n.result):r(n.error),n.onerror=()=>r(n.error),n.readAsText(t)}),vw=t=>{const e=he.c(7),{name:r,disabled:n}=t,s=n===void 0?!1:n,i=Ye();let o;e[0]!==s||e[1]!==i||e[2]!==r?(o=c=>{const{field:u,meta:d,form:f}=c,{setFieldValue:p}=f;return a.jsxs(te,{direction:"column",children:[a.jsx(_e,{children:i.formatMessage({id:`lawful_interception.form.${r}`})}),a.jsx(Z_,{...u,label:i.formatMessage({id:"form_import_files.file"}),size:"medium",accept:{"application/x-pem-file":[".pem"]},maxFiles:1,multiple:!1,disabled:s,onChange:m=>{setTimeout(()=>{if(!m.length){p(u.name,[]);return}p(u.name,m)},0)},formError:d.error})]})},e[0]=s,e[1]=i,e[2]=r,e[3]=o):o=e[3];let l;return e[4]!==r||e[5]!==o?(l=a.jsx(Ke,{name:r,children:o}),e[4]=r,e[5]=o,e[6]=l):l=e[6],l};function cat(t){const e=he.c(31),{nf:r}=t,n=Ye(),{openConfirmDialog:s}=di(),i=zn(),o=gr();let l;e:{switch(r){case ue.MME:{let A;e[0]===Symbol.for("react.memo_cache_sentinel")?(A=["x1_ca","x1_key","x1_cert","x2_ca","x2_key","x2_cert"],e[0]=A):A=e[0],l=A;break e}case ue.SMF:{let A;e[1]===Symbol.for("react.memo_cache_sentinel")?(A=["x1_ca","x1_key","x1_cert","x2_ca","x2_key","x2_cert","t3_ca","t3_key","t3_cert"],e[1]=A):A=e[1],l=A;break e}case ue.UPF:{let A;e[2]===Symbol.for("react.memo_cache_sentinel")?(A=["x3_ca","x3_key","x3_cert","t3_ca","t3_key","t3_cert"],e[2]=A):A=e[2],l=A;break e}}l=void 0}const c=l;let u;e[3]!==c?(u=A=>c.reduce(async(P,T)=>{try{const j=await P,R=await kue(A[T][0]),D=btoa(R);return{...j,[T]:D}}catch{return{...await P}}},{}),e[3]=c,e[4]=u):u=e[4];const d=u;let f;e[5]!==o||e[6]!==d||e[7]!==r?(f=async A=>{const P=await d(A);let T;e:switch(r){case ue.MME:{T={x1:{ca:P.x1_ca,key:P.x1_key,cert:P.x1_cert},x2:{ca:P.x2_ca,key:P.x2_key,cert:P.x2_cert},...A.x1_uids.length>0&&{x1_uids:A.x1_uids}};break e}case ue.SMF:{T={x1:{ca:P.x1_ca,key:P.x1_key,cert:P.x1_cert},x2:{ca:P.x2_ca,key:P.x2_key,cert:P.x2_cert},...P.t3_ca&&P.t3_ca&&P.t3_cert&&{t3:{ca:P.t3_ca,key:P.t3_key,cert:P.t3_cert}},...A.x1_uids.length>0&&{x1_uids:A.x1_uids}};break e}case ue.UPF:T={...P.t3_ca&&P.t3_ca&&P.t3_cert&&{t3:{ca:P.t3_ca,key:P.t3_key,cert:P.t3_cert}},...P.x3_ca&&P.x3_key&&P.x3_cert&&{x3:{ca:P.x3_ca,key:P.x3_key,cert:P.x3_cert}}}}o.submit(T,{method:"POST",encType:"application/json",action:"create"})},e[5]=o,e[6]=d,e[7]=r,e[8]=f):f=e[8];const p=f;let m;e[9]!==o||e[10]!==n||e[11]!==s?(m=()=>{s({text:n.formatMessage({id:"lawful_interception.actions.confirm_delete"}),onConfirm:()=>{o.submit(null,{method:"DELETE",encType:"application/json",action:"delete"})}})},e[9]=o,e[10]=n,e[11]=s,e[12]=m):m=e[12];const h=m;let _;e:{switch(r){case ue.MME:{let A;e[13]===Symbol.for("react.memo_cache_sentinel")?(A={x1_ca:[],x1_key:[],x1_cert:[],x2_ca:[],x2_key:[],x2_cert:[],x1_uids:[]},e[13]=A):A=e[13],_=A;break e}case ue.SMF:{let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A={x1_ca:[],x1_key:[],x1_cert:[],x2_ca:[],x2_key:[],x2_cert:[],x1_uids:[],t3_ca:[],t3_key:[],t3_cert:[]},e[14]=A):A=e[14],_=A;break e}case ue.UPF:{let A;e[15]===Symbol.for("react.memo_cache_sentinel")?(A={x3_ca:[],x3_key:[],x3_cert:[],t3_ca:[],t3_key:[],t3_cert:[]},e[15]=A):A=e[15],_=A;break e}}_=void 0}const g=_;let y;e:{switch(r){case ue.MME:{y=oat;break e}case ue.SMF:{y=aat;break e}case ue.UPF:{y=lat;break e}}y=void 0}const b=y;let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"1226px"}),e[16]=x):x=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Tr,{}),e[17]=w):w=e[17];let C;e[18]!==o.data||e[19]!==o.state||e[20]!==c||e[21]!==h||e[22]!==p||e[23]!==g||e[24]!==n||e[25]!==r||e[26]!==b?(C=A=>a.jsx(Wr,{initialValues:g,validationSchema:b,enableReinitialize:!0,onSubmit:p,children:P=>{const{dirty:T}=P;return a.jsxs(dn,{canWrite:Ue(ie.lawful_interception),children:[a.jsx(hs,{children:a.jsx(te,{direction:"row",spacing:2,align:"center",children:!!A&&a.jsxs(a.Fragment,{children:[A.provisioned?a.jsx(bi,{status:nn.SUCCESS,asChip:!0,label:n.formatMessage({id:"lawful_interception.provisioned"})}):a.jsx(bi,{status:nn.ERROR,asChip:!0,label:n.formatMessage({id:"lawful_interception.not_provisioned"})}),a.jsx(Ze,{variant:"outlined",text:n.formatMessage({id:"lawful_interception.actions.delete"}),startIcon:a.jsx(ge.Trash,{}),disabled:!A?.provisioned||o.state!=="idle"||!Ue(ie.lawful_interception),onClick:h})]})})}),(r===ue.MME||r===ue.SMF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x1"}),children:a.jsxs(te,{spacing:2,fullWidth:!0,align:"stretch",children:[c.filter(pat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j)),a.jsx(_e,{children:n.formatMessage({id:"lawful_interception.form.title.x1_uids"})}),a.jsx(Ke,{name:"x1_uids",children:j=>{const{field:R,meta:D,form:O}=j,{setFieldValue:N}=O;return a.jsx(rn,{name:R.name,value:R.value,label:n.formatMessage({id:"lawful_interception.form.x1_uids"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(F,U)=>{N(R.name,U)},error:!!D.error,helperText:D.error,disabled:o.state!=="idle",fullWidth:!0})}})]})}),(r===ue.MME||r===ue.SMF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x2"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(fat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),(r===ue.SMF||r===ue.UPF)&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.t3"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(dat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),r===ue.UPF&&a.jsx(Kt,{title:n.formatMessage({id:"lawful_interception.form.title.x3"}),children:a.jsx(te,{spacing:2,fullWidth:!0,align:"stretch",children:c.filter(uat).map(j=>a.jsx(vw,{name:j,disabled:o.state!=="idle"},j))})}),a.jsxs(Kt,{children:[a.jsx(Xr,{data:o.data}),a.jsx(Ze,{type:"submit",text:n.formatMessage({id:"lawful_interception.buttons.save"}),disabled:!T||!Ue(ie.lawful_interception),loading:o.state!=="idle",sx:{alignSelf:"flex-start"}})]})]})}}),e[18]=o.data,e[19]=o.state,e[20]=c,e[21]=h,e[22]=p,e[23]=g,e[24]=n,e[25]=r,e[26]=b,e[27]=C):C=e[27];let k;return e[28]!==i.status||e[29]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:i.status,errorElement:w,children:C})}),e[28]=i.status,e[29]=C,e[30]=k):k=e[30],k}function uat(t){return t.includes("x3")}function dat(t){return t.includes("t3")}function fat(t){return t.includes("x2")}function pat(t){return t.includes("x1")}async function mat(t){const e=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:e,method:"GET",cache:!1}})}async function hat(t,e){const r=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:r,method:"POST",data:JSON.stringify(e)}})}async function gat(t){const e=$.apis.lawful_interception.keyMaterial(t);return De({options:{url:e,method:"DELETE"}})}const _at=t=>async({request:e})=>{const r=await e.json(),n=await hat(t,r);return xt(n)||Nt(),Ft(n)},vat=t=>async()=>{const e=await gat(t);return xt(e)?Ar(e.error.detail||Pr().formatMessage({id:"lawful_interception.remove_ko"})):Nt(),Ft(e)},yat=t=>async e=>Wt({loaderArgs:e,deferred:!0,data:{status:mat(t)}});function p7(t){return{path:"lawful-interception",loader:yat(t),element:a.jsx(cat,{nf:t}),handle:vr({labelIntl:`route.${t}.lawful-interception`,to:"lawful-interception"}),children:[{path:"create",action:_at(t),loader:()=>rt("..")},{path:"delete",action:vat(t),loader:()=>rt("..")}]}}const bat=t=>{const e=he.c(5),{row:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r.counters?(s=r.counters?Object.entries(r.counters).map(l=>{const[c,u]=l;return a.jsxs(Is,{size:{xs:6,sm:4,md:3,lg:2},children:[a.jsx(_e,{fontSize:"small",fontWeight:"600",children:n.formatMessage({id:`gtpu.status.sockets.counters.${c}`})}),a.jsx(_e,{fontSize:"small",children:u})]},c)}):a.jsx(a.Fragment,{}),e[0]=n,e[1]=r.counters,e[2]=s):s=e[2];const i=s;let o;return e[3]!==i?(o=a.jsx(al,{children:i}),e[3]=i,e[4]=o):o=e[4],o};function xat(){const t=he.c(34),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"gtpu.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"gtpu.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"gtpu.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"gtpu.status.sockets.created"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"created",label:d,cellRender:Cat},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"gtpu.status.sockets.counters"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"counters",label:p,cellRender:wat},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==i||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==m?(h=[i,l,u,f,m],t[20]=i,t[21]=l,t[22]=u,t[23]=f,t[24]=m,t[25]=h):h=t[25];const _=h;let g;t[26]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[26]=g):g=t[26];let y;t[27]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(en,{}),t[27]=y):y=t[27];let b;t[28]!==_||t[29]!==n.state?(b=w=>a.jsx(Br,{autoScale:!0,data:w||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:w?.length,rowsPerPage:w?.length,rowKey:"transport_name",rowDetail:{content:Sat},columns:_,hidePagination:!0}),t[28]=_,t[29]=n.state,t[30]=b):b=t[30];let x;return t[31]!==r.sockets||t[32]!==b?(x=a.jsx(I.Suspense,{fallback:g,children:a.jsx(Qt,{resolve:r.sockets,errorElement:y,children:b})}),t[31]=r.sockets,t[32]=b,t[33]=x):x=t[33],x}function Sat(t){return a.jsx(bat,{row:t})}function wat(t){const{counters:e}=t;return e?a.jsx(_e,{type:"body2",children:Object.keys(e).length}):a.jsx(a.Fragment,{})}function Cat(t){const{created:e}=t;if(!e)return a.jsx(a.Fragment,{});const r=new Date(e*1e3);return a.jsx(_e,{type:"body2",children:Mr(r)})}async function Aat({nf:t}){const e=$.apis.gtpu.status.sockets(t);return De({options:{url:e,method:"GET"}})}function kat({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:Aat({nf:t})}})}function m7({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:r.formatMessage({id:"route.gtpu.sockets"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:kat({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(xat,{})}]}}const Xo=Pr(),Mat={path:"mme",handle:vr({labelIntl:"route.mme",icon:a.jsx(ge.MME,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"status",handle:vr({labelIntl:"route.mme.status",to:$.urls.mmeStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:Xo.formatMessage({id:"route.diameter"})},{url:"s1ap",label:Xo.formatMessage({id:"route.mme.status.s1ap"})},{url:"gtpc",label:Xo.formatMessage({id:"route.mme.status.gtpc"})},{url:"gtpu",label:Xo.formatMessage({id:"route.mme.status.gtpu"})},{url:"sgs",label:Xo.formatMessage({id:"route.mme.status.sgs"})},{url:"sbcap",label:Xo.formatMessage({id:"route.mme.status.sbcap"})},{url:"dns",label:Xo.formatMessage({id:"route.mme.status.dns"})},{url:"m3",label:Xo.formatMessage({id:"route.mme.status.m3"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.MME}),{path:"s1ap",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.s1ap.connections"})},{url:"listeners",label:Xo.formatMessage({id:"route.mme.status.s1ap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:Jot,errorElement:a.jsx(en,{}),element:a.jsx(lot,{}),children:[{action:Qot(),path:"disconnect",loader:()=>rt("..")},{action:Zot(),path:"reset",loader:()=>rt("..")}]},{path:"listeners",loader:eat,errorElement:a.jsx(en,{}),element:a.jsx(yot,{})}]},uk({path:"gtpc",nf:ue.MME,showBlockedPeers:!0}),m7({path:"gtpu",nf:ue.MME}),{path:"sgs",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.sgs.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:tat,errorElement:a.jsx(en,{}),element:a.jsx(Eot,{})}]},{path:"sbcap",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.sbcap.connections"})},{url:"listeners",label:Xo.formatMessage({id:"route.mme.status.sbcap.listeners"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:rat,errorElement:a.jsx(en,{}),element:a.jsx(Sot,{})},{path:"listeners",loader:nat,errorElement:a.jsx(en,{}),element:a.jsx(Pot,{})}]},{path:"dns",element:a.jsx(la,{navs:[{url:"cache",label:Xo.formatMessage({id:"route.mme.status.dns.cache"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"cache",replace:!0})},{path:"cache",loader:sat,errorElement:a.jsx(en,{}),element:a.jsx(Git,{}),children:[{action:Xot,path:"flush",loader:()=>rt("..")}]}]},{path:"m3",element:a.jsx(la,{navs:[{url:"connections",label:Xo.formatMessage({id:"route.mme.status.m3.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:iat,errorElement:a.jsx(en,{}),element:a.jsx(rot,{})}]}]},io(ue.MME)]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.MME)]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.MME)]}]},LX=Pr(),S$=new RegExp($.regex.supi),Pat=t=>S$.test(t),jat=dr().shape({id:We().strict(!0).matches(S$,LX.formatMessage({id:"device_status.form.errors.format"},{value:`${S$.toString()}`})).required(LX.formatMessage({id:"device_status.form.errors.required"}))}),Tat=()=>{const t=he.c(39),e=ys(),r=Ye(),n=On(),{id:s}=ko(),{submit:i,state:o}=gr(),l=zn();let c;t[0]!==s||t[1]!==i?(c=()=>{s&&i({supi:s},{method:"POST",encType:"application/json",action:`${s}/udm-re-attach`})},t[0]=s,t[1]=i,t[2]=c):c=t[2];const u=c;let d;t[3]!==e?(d=j=>{e(j.id)},t[3]=e,t[4]=d):d=t[4];const f=d;let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"hidden"},t[5]=p):p=t[5];let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m={borderBottom:"1px solid",borderColor:"divider",px:2,py:1.5},t[6]=m):m=t[6];let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h={flex:"1 1 auto"},t[7]=h):h=t[7];const _=s||"";let g;t[8]!==_?(g={id:_},t[8]=_,t[9]=g):g=t[9];let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y=as(ie.monitoring),t[10]=y):y=t[10];let b;t[11]!==r||t[12]!==n.state?(b=a.jsx(dn,{canWrite:y,children:a.jsx(Ke,{name:"id",children:j=>{const{field:R,meta:D}=j;return a.jsxs(te,{direction:"row",spacing:0,fullWidth:!0,nowrap:!0,children:[a.jsx(dt,{...R,label:r.formatMessage({id:"device_status.form.id"}),size:"small",error:!!D.error,helperText:D.error,sx:{flex:"1 1 auto",fieldset:{borderRightColor:"rgba(51, 51, 51, 0.5)",borderTopRightRadius:"0px",borderBottomRightRadius:"0px"}}}),a.jsx(Ze,{type:"submit",text:"search",startIcon:a.jsx(ge.Search,{}),disabled:n.state!=="idle"||!as(ie.monitoring),sx:{mt:"4px",height:"40px",borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"}})]})}})}),t[11]=r,t[12]=n.state,t[13]=b):b=t[13];let x;t[14]!==f||t[15]!==g||t[16]!==b?(x=a.jsx(gt,{sx:h,children:a.jsx(Wr,{initialValues:g,enableReinitialize:!0,validationSchema:jat,onSubmit:f,children:b})}),t[14]=f,t[15]=g,t[16]=b,t[17]=x):x=t[17];let w;t[18]!==u||t[19]!==s||t[20]!==r||t[21]!==o?(w=j=>a.jsx(a.Fragment,{children:s&&j.includes(ue.UDM)&&a.jsx(Ze,{text:r.formatMessage({id:"device_status.reAttach"}),variant:"outlined",onClick:u,loading:o!=="idle",sx:{mt:"4px",height:"40px"}})}),t[18]=u,t[19]=s,t[20]=r,t[21]=o,t[22]=w):w=t[22];let C;t[23]!==l.services||t[24]!==w?(C=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:l.services,children:w})}),t[23]=l.services,t[24]=w,t[25]=C):C=t[25];let k;t[26]!==C||t[27]!==x?(k=a.jsx(gt,{sx:m,children:a.jsxs(te,{spacing:2,align:"flex-start",justify:"space-between",fullWidth:!0,direction:"row",nowrap:!0,children:[x,C]})}),t[26]=C,t[27]=x,t[28]=k):k=t[28];let A;t[29]!==s||t[30]!==r||t[31]!==n.state?(A=!s&&n.state==="idle"&&a.jsx(gt,{sx:{p:2},children:a.jsx(Lr,{severity:"info",message:r.formatMessage({id:"device_status.noDataHint"})})}),t[29]=s,t[30]=r,t[31]=n.state,t[32]=A):A=t[32];let P;t[33]!==n.state?(P=n.state==="idle"?a.jsx(gt,{sx:{flex:"1 1 auto",overflow:"hidden"},children:a.jsx(Bd,{})}):a.jsx(Dt,{variant:"rectangular",width:"100%",sx:{flex:"1 1 auto"}}),t[33]=n.state,t[34]=P):P=t[34];let T;return t[35]!==k||t[36]!==A||t[37]!==P?(T=a.jsxs(te,{nowrap:!0,fullHeight:!0,sx:p,spacing:0,children:[k,A,P]}),t[35]=k,t[36]=A,t[37]=P,t[38]=T):T=t[38],T};var rb=(t=>(t.REQUESTED="REQUESTED",t.NOT_REQUESTED="NOT_REQUESTED",t))(rb||{});function zh(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Kt,{children:a.jsx(Lr,{severity:"error",message:Pr().formatMessage({id:"device_status.not_found"})})}),t[0]=e):e=t[0],e}function Qe(t){const e=he.c(7),{label:r,value:n}=t;if(n===void 0)return null;let s;e[0]!==r?(s=a.jsx(_e,{color:"text.secondary",type:"body2",fontWeight:600,children:r}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==n?(i=Array.isArray(n)&&n.length>0?n.map(Eat):a.jsx(_e,{type:"body2",children:`${n}`}),e[2]=n,e[3]=i):i=e[3];let o;return e[4]!==s||e[5]!==i?(o=a.jsxs(te,{spacing:0,children:[s,i]}),e[4]=s,e[5]=i,e[6]=o):o=e[6],o}function Eat(t,e){return a.jsx(_e,{type:"body2",children:`${t}`},e)}function Rat(){const t=he.c(16),e=Gr(),r=gl(),n=gr(),s=Ye(),{menuOpen:i,menuClose:o}=Jt();let l;t[0]!==r?(l=(_,g)=>{r({id:_,reregister:g},{method:"POST",encType:"application/json",action:"amf-remove"})},t[0]=r,t[1]=l):l=t[1];const c=l;let u;t[2]!==c||t[3]!==s||t[4]!==o||t[5]!==i?(u=(_,g)=>{i({anchorEl:_?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:s.formatMessage({id:"device_status.amf.remove.reregister_requested"}),value:rb.REQUESTED,onClick:()=>{o(),c(g,rb.REQUESTED)}},{label:s.formatMessage({id:"device_status.amf.remove.reregister_not_requested"}),value:rb.NOT_REQUESTED,onClick:()=>{o(),c(g,rb.NOT_REQUESTED)}}]})},t[2]=c,t[3]=s,t[4]=o,t[5]=i,t[6]=u):u=t[6];const d=u;let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[7]=f):f=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(zh,{}),t[8]=p):p=t[8];let m;t[9]!==n||t[10]!==d||t[11]!==s?(m=_=>a.jsxs(a.Fragment,{children:[a.jsx(o7,{children:_.supi&&a.jsx(Ze,{text:s.formatMessage({id:"device_status.amf.remove"}),size:"small",onClick:g=>{_.supi&&d(g,_.supi)},loading:n.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})})}),a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.5gGuti"}),value:_["5gGuti"]}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.supi"}),value:_.supi}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.amfUeNgapID"}),value:_.amfUeNgapID}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ranUeNgapID"}),value:_.ranUeNgapID}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.cmState"}),value:_.cmState}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.mmState"}),value:_.mmState})]}),_.ueLocation&&a.jsxs(a.Fragment,{children:[a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:s.formatMessage({id:"device_status.amf.ueLocation.nrLocation.ncgi"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.ncgi.nrCellId"}),value:_.ueLocation.nrLocation?.ncgi?.nrCellId}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.ncgi.plmn"}),value:`${_.ueLocation.nrLocation?.ncgi?.plmnId.mcc}${_.ueLocation.nrLocation?.ncgi?.plmnId.mnc}`})]})}),a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:s.formatMessage({id:"device_status.amf.ueLocation.nrLocation.tai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.tai.plmn"}),value:`${_.ueLocation.nrLocation?.tai?.plmnId.mcc}${_.ueLocation.nrLocation?.tai?.plmnId.mnc}`}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.ueLocation.tai.tac"}),value:_.ueLocation.nrLocation?.tai?.tac})]})})]}),_.smContexts&&_.smContexts.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:s.formatMessage({id:"device_status.amf.smContexts"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:_.smContexts.map(g=>a.jsx(xr,{elevation:2,title:`${s.formatMessage({id:"device_status.amf.smContext"})} - ${g.pduSessionId}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.pduSessionId"}),value:g.pduSessionId}),a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.dnn"}),value:g.dnn}),g.sNssai&&a.jsx(Qe,{label:s.formatMessage({id:"device_status.amf.smContexts.sNssai"}),value:g.sNssai.sd?`${g.sNssai.sst}-${g.sNssai.sd}`:g.sNssai.sst})]})},g.pduSessionId))})]})]})})]}),t[9]=n,t[10]=d,t[11]=s,t[12]=m):m=t[12];let h;return t[13]!==e.amfStatus||t[14]!==m?(h=a.jsx(I.Suspense,{fallback:f,children:a.jsx(Qt,{resolve:e.amfStatus,errorElement:p,children:m})}),t[13]=e.amfStatus,t[14]=m,t[15]=h):h=t[15],h}function Iat(){const t=he.c(8),e=Gr(),r=to(),n=ys(),{id:s}=ko();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Tr,{}),t[0]=i):i=t[0];let o;t[1]!==s||t[2]!==r.pathname||t[3]!==n?(o=c=>{const{activeTabs:u,startLocation:d}=c,f=r.pathname.split("/").at(-1);return s===f?(n(d,{replace:!0}),null):a.jsx(la,{navs:u})},t[1]=s,t[2]=r.pathname,t[3]=n,t[4]=o):o=t[4];let l;return t[5]!==e.tabs||t[6]!==o?(l=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:e.tabs,errorElement:i,children:o})}),t[5]=e.tabs,t[6]=o,t[7]=l):l=t[7],l}var nb=(t=>(t.REQUIRED="required",t.NOT_REQUIRED="not_required",t))(nb||{}),sb=(t=>(t.REQUIRED="required",t.NOT_REQUIRED="not_required",t))(sb||{});function Dat(t){const e=he.c(24),{decor:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.decor"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.decor.computed_usage_type"}),e[2]=n,e[3]=i):i=e[3];const o=r?.computed_usage_type;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.mme.decor.rerouted"}),e[7]=n,e[8]=c):c=e[8];const u=r?.rerouted;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==l||e[13]!==d?(f=a.jsxs(te,{children:[l,d]}),e[12]=l,e[13]=d,e[14]=f):f=e[14];let p;e[15]!==r||e[16]!==n?(p=r?.state&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.decor.state"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.static"}),value:r.state.static}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.hss"}),value:r.state.hss}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.ue"}),value:r.state.ue}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.decor.state.mme"}),value:r.state.mme})]})}),e[15]=r,e[16]=n,e[17]=p):p=e[17];let m;e[18]!==f||e[19]!==p?(m=a.jsxs(te,{spacing:2,children:[f,p]}),e[18]=f,e[19]=p,e[20]=m):m=e[20];let h;return e[21]!==s||e[22]!==m?(h=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:m}),e[21]=s,e[22]=m,e[23]=h):h=e[23],h}function $at(t){const e=he.c(20),{esm:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.esm"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.esm.sgw_fqdn"}),e[2]=n,e[3]=i):i=e[3];const o=r?.sgw_fqdn;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==r||e[8]!==n?(c=r?.ue_ambr&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.esm.ue_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.ue_ambr.ul"}),value:r.ue_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.ue_ambr.dl"}),value:r.ue_ambr.dl})]})}),e[7]=r,e[8]=n,e[9]=c):c=e[9];let u;e[10]!==r||e[11]!==n?(u=r?.bearers&&r?.bearers.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.esm.bearers"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:r.bearers.map(p=>a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.mme.esm.bearer"})} - ${p.ebi}`,content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.ebi"}),value:p.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn"}),value:p.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.context_id"}),value:p.context_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.pdn_addr"}),value:p.pdn_addr})]}),p.apn_ambr&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr.ul"}),value:p.apn_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.apn_ambr.dl"}),value:p.apn_ambr.ul})]})}),p.rabs&&p.rabs.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.esm.bearer.rabs"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:p.rabs.map(m=>a.jsx(xr,{elevation:5,disableGutters:!0,expanded:!0,title:`${n.formatMessage({id:"device_status.mme.esm.bearer.rab"})} #${m.ebi}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.rab.ebi"}),value:m.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.esm.bearer.rab.qos.qci"}),value:m.qos?.qci})]})}))})]})]})},p.ebi))})]}),e[10]=r,e[11]=n,e[12]=u):u=e[12];let d;e[13]!==l||e[14]!==c||e[15]!==u?(d=a.jsxs(te,{spacing:2,children:[l,c,u]}),e[13]=l,e[14]=c,e[15]=u,e[16]=d):d=e[16];let f;return e[17]!==s||e[18]!==d?(f=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:d}),e[17]=s,e[18]=d,e[19]=f):f=e[19],f}function Oat(t){const e=he.c(24),{profile:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.mme.profile"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.mme.profile.hss_host"}),e[2]=n,e[3]=i):i=e[3];const o=r?.hss_host;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.mme.profile.hss_realm"}),e[7]=n,e[8]=c):c=e[8];const u=r?.hss_realm;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==l||e[13]!==d?(f=a.jsxs(te,{children:[l,d]}),e[12]=l,e[13]=d,e[14]=f):f=e[14];let p;e[15]!==n||e[16]!==r?(p=r?.subscription&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription"}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.status"}),value:r.subscription.status}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.status"}),value:r.subscription.status}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.mode"}),value:r.subscription.mode}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.usage_type"}),value:r.subscription.usage_type})]}),r.subscription.ue_ambr&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr.dl"}),value:r.subscription.ue_ambr.dl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.ue_ambr.ul"}),value:r.subscription.ue_ambr.ul})]})}),r.subscription.config&&a.jsx(xr,{elevation:4,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.default_context_id"}),value:r.subscription.config.default_context_id}),r.subscription.config.apns&&r.subscription.config.apns.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.mme.profile.subscription.config.apns"})}),a.jsx(Jn,{exclusive:!1,spacing:1,children:r.subscription.config.apns.map(_=>a.jsx(xr,{elevation:5,title:`${_.apn} - ${_.pdn_type}`,content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn"}),value:_.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.context_id"}),value:_.context_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.pdn_type"}),value:_.pdn_type}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.data_mode"}),value:_.data_mode}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.non_ip"}),value:_.non_ip}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.non_ip_method"}),value:_.non_ip_method})]}),a.jsx(xr,{elevation:6,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.qci"}),value:_.qos?.qci}),_.qos?.arp&&a.jsx(xr,{elevation:7,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.priority_level"}),value:_.qos.arp.priority_level}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.preemption_capability"}),value:_.qos.arp.preemption_capability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.qos.arp.preemption_vulnerability"}),value:_.qos.arp.preemption_vulnerability})]})})]})}),_.apn_ambr&&a.jsx(xr,{elevation:6,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr.ul"}),value:_.apn_ambr.ul}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.mme.profile.subscription.config.apn.apn_ambr.dl"}),value:_.apn_ambr.ul})]})})]})},_.context_id))})]})]})})]})}),e[15]=n,e[16]=r,e[17]=p):p=e[17];let m;e[18]!==f||e[19]!==p?(m=a.jsxs(te,{spacing:2,children:[f,p]}),e[18]=f,e[19]=p,e[20]=m):m=e[20];let h;return e[21]!==s||e[22]!==m?(h=a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,title:s,content:m}),e[21]=s,e[22]=m,e[23]=h):h=e[23],h}function Lat(){const t=he.c(29),e=Gr(),r=gl(),n=gr(),s=gr(),i=gr(),{menuOpen:o,menuClose:l}=Jt(),c=Ye();let u;t[0]!==r?(u=A=>()=>{r({imsi:A},{method:"POST",encType:"application/json",action:"mme-disconnect"})},t[0]=r,t[1]=u):u=t[1];const d=u;let f;t[2]!==r?(f=(A,P)=>{r({imsi:A,reattach:P},{method:"POST",encType:"application/json",action:"mme-detach"})},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==p||t[5]!==c||t[6]!==l||t[7]!==o?(m=(A,P)=>{o({anchorEl:A?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:c.formatMessage({id:"device_status.mme.detach.reattach_required"}),value:nb.REQUIRED,onClick:()=>{l(),p(P,nb.REQUIRED)}},{label:c.formatMessage({id:"device_status.mme.detach.reattach_not_required"}),value:nb.NOT_REQUIRED,onClick:()=>{l(),p(P,nb.NOT_REQUIRED)}}]})},t[4]=p,t[5]=c,t[6]=l,t[7]=o,t[8]=m):m=t[8];const h=m;let _;t[9]!==r?(_=(A,P)=>{r({imsi:A,reattach:P},{method:"POST",encType:"application/json",action:"mme-purge"})},t[9]=r,t[10]=_):_=t[10];const g=_;let y;t[11]!==g||t[12]!==c||t[13]!==l||t[14]!==o?(y=(A,P)=>{o({anchorEl:A?.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:c.formatMessage({id:"device_status.mme.purge.reattach_required"}),value:sb.REQUIRED,onClick:()=>{l(),g(P,sb.REQUIRED)}},{label:c.formatMessage({id:"device_status.mme.purge.reattach_not_required"}),value:sb.NOT_REQUIRED,onClick:()=>{l(),g(P,sb.NOT_REQUIRED)}}]})},t[11]=g,t[12]=c,t[13]=l,t[14]=o,t[15]=y):y=t[15];const b=y;let x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=x):x=t[16];let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(zh,{}),t[17]=w):w=t[17];let C;t[18]!==s.state||t[19]!==n.state||t[20]!==i.state||t[21]!==h||t[22]!==d||t[23]!==b||t[24]!==c?(C=A=>a.jsxs(a.Fragment,{children:[a.jsx(o7,{children:a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.disconnect"}),size:"small",onClick:d(A.imsi),loading:n.state!=="idle",variant:"outlined"}),a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.detach"}),size:"small",onClick:P=>{h(P,A.imsi)},loading:s.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})}),a.jsx(Ze,{text:c.formatMessage({id:"device_status.mme.purge"}),size:"small",onClick:P=>{b(P,A.imsi)},loading:i.state!=="idle",variant:"outlined",endIcon:a.jsx(ge.DownArrow,{size:14})})]})}),a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.imsi"}),value:A.imsi}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.imeisv"}),value:A.imeisv}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.profile.subscription.msisdn"}),value:A.profile?.subscription?.msisdn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.profile.subscription.mode"}),value:A.profile?.subscription?.mode}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.age_of_location_info"}),value:A.age_of_location_info}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.ecm_state"}),value:A.ecm_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.emm_state"}),value:A.emm_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.last_radio_contact"}),value:A.last_radio_contact}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.pending_procedure"}),value:A.pending_procedure}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.sgs_state"}),value:A.sgs_state}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.drx"}),value:A.drx}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.guti"}),value:A.guti}),A.uli&&A.uli.tai&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.uli.tai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.tai.plmn"}),value:A.uli.tai.plmn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.tai.tac"}),value:A.uli.tai.tac})]})}),A.uli&&A.uli.ecgi&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.uli.ecgi"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.ecgi.plmn"}),value:A.uli.ecgi.plmn}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.uli.ecgi.eci"}),value:A.uli.ecgi.eci})]})}),A.profile&&a.jsx(Oat,{profile:A.profile}),A.decor&&a.jsx(Dat,{decor:A.decor}),A.esm&&a.jsx($at,{esm:A.esm}),A.psm&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.psm"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.psm"}),value:A.psm.psm}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.idle_since_ms"}),value:A.psm.idle_since_ms}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.psm.t3324"}),value:A.psm.t3324})]})}),A.edrx&&a.jsx(xr,{elevation:2,disableGutters:!0,expanded:!0,sx:{borderRadius:1},title:c.formatMessage({id:"device_status.mme.edrx"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.mode"}),value:A.edrx.mode}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.window"}),value:A.edrx.window}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.window_s"}),value:A.edrx.window_s}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.cycle"}),value:A.edrx.cycle}),a.jsx(Qe,{label:c.formatMessage({id:"device_status.mme.edrx.cycle_s"}),value:A.edrx.cycle_s})]})})]})})]}),t[18]=s.state,t[19]=n.state,t[20]=i.state,t[21]=h,t[22]=d,t[23]=b,t[24]=c,t[25]=C):C=t[25];let k;return t[26]!==e.mmeStatus||t[27]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:e.mmeStatus,errorElement:w,children:C})}),t[26]=e.mmeStatus,t[27]=C,t[28]=k):k=t[28],k}function Nat(t){const e=he.c(14),{activeAppSessions:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.pcf.active_app_sessions"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;if(e[4]!==r||e[5]!==n){let u;e[7]!==n?(u=d=>a.jsx(xr,{title:n.formatMessage({id:"device_status.pcf.active_app_session"},{id:d.id}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.interface_type"}),value:d.interface_type}),a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules"})}),d.rules&&d.rules.length>0&&a.jsx(Jn,{exclusive:!0,children:d.rules.map(f=>a.jsx(xr,{expanded:!0,disableGutters:!0,title:n.formatMessage({id:"device_status.pcf.active_app_sessions.rule"},{id:f.rule_id}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.rule_id"}),value:f.rule_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_id"}),value:f.qos_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_5qi"}),value:f.qos_5qi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_gbrDl"}),value:f.qos_gbrDl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_gbrUl"}),value:f.qos_gbrUl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_maxbrDl"}),value:f.qos_maxbrDl}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.qos_maxbrUl"}),value:f.qos_maxbrUl}),f.flow_infos&&f.flow_infos.length>0&&a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos"})}),a.jsx(Jn,{exclusive:!0,children:f.flow_infos.map((p,m)=>a.jsx(xr,{title:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_info"},{id:m}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos.description"}),value:p.description}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.pcf.active_app_sessions.rules.flow_infos.direction"}),value:p.direction})]})},m))})]})]})},f.rule_id))})]})]})},d.id),e[7]=n,e[8]=u):u=e[8],o=r.map(u),e[4]=r,e[5]=n,e[6]=o}else o=e[6];let l;e[9]!==o?(l=a.jsx(Jn,{exclusive:!0,spacing:1,children:o}),e[9]=o,e[10]=l):l=e[10];let c;return e[11]!==i||e[12]!==l?(c=a.jsxs(te,{children:[i,l]}),e[11]=i,e[12]=l,e[13]=c):c=e[13],c}function Fat(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:e.formatMessage({id:"device_status.pcf.pdu_session"},{id:c.pdu_session_id}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pdu_session_id"}),value:c.pdu_session_id}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pdu_session_type"}),value:c.pdu_session_type}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.supi"}),value:c.supi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.dnn"}),value:c.dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.ipv4_addr"}),value:c.ipv4_addr}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.ipv6_addr"}),value:c.ipv6_addr}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.is_emergency"}),value:c.is_emergency}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.pei"}),value:c.pei}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.plmn"}),value:`${c.plmn?.mcc}${c.plmn?.mnc}`}),c.snssai&&a.jsx(Qe,{label:e.formatMessage({id:"device_status.pcf.snssai"}),value:c.snssai.sd?`${c.snssai.sst}-${c.snssai.sd}`:c.snssai.sst})]}),c.active_app_sessions&&c.active_app_sessions.length>0&&a.jsx(Nat,{activeAppSessions:c.active_app_sessions})]})},c.pdu_session_id))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.pcfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.pcfStatus,errorElement:s,children:i})}),t[4]=r.pcfStatus,t[5]=i,t[6]=o):o=t[6],o}function Uat(t){const e=he.c(10),{dedicatedBearers:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.sgwc.session.dedicated_bearers"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==n?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer"})} - ${c.ebi}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ebi"}),value:c.ebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.lebi"}),value:c.lebi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.rat"}),value:c.rat}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.apn"}),value:c.apn}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ambr.uplink"}),value:c?.ambr?.uplink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.ambr.downlink"}),value:c?.ambr?.downlink}),a.jsx(xr,{elevation:3,disableGutters:!0,title:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.ambr.uplink"}),value:c?.qos?.ambr?.uplink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.ambr.downlink"}),value:c?.qos?.ambr?.downlink}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.preemption_capability"}),value:c?.qos?.arp?.preemption_capability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.preemption_vulnerability"}),value:c?.qos?.arp?.preemption_vulnerability}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.arp.priority"}),value:c?.qos?.arp?.priority}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.sgwc.session.dedicated_bearer.qos.qci"}),value:c?.qos?.qci})]})})]})},c.ebi))}),e[4]=r,e[5]=n,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function Bat(t){const e=he.c(85),{defaultBearer:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.sgwc.session.default_bearer"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ebi"}),e[2]=n,e[3]=i):i=e[3];const o=r?.ebi;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.sgwc.session.default_bearer.lebi"}),e[7]=n,e[8]=c):c=e[8];const u=r?.lebi;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.sgwc.session.default_bearer.rat"}),e[12]=n,e[13]=f):f=e[13];const p=r?.rat;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.sgwc.session.default_bearer.apn"}),e[17]=n,e[18]=h):h=e[18];const _=r?.apn;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ambr.uplink"}),e[22]=n,e[23]=y):y=e[23];const b=r?.ambr?.uplink;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.sgwc.session.default_bearer.ambr.downlink"}),e[27]=n,e[28]=w):w=e[28];const C=r?.ambr?.downlink;let k;e[29]!==w||e[30]!==C?(k=a.jsx(Qe,{label:w,value:C}),e[29]=w,e[30]=C,e[31]=k):k=e[31];let A;e[32]!==n?(A=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos"}),e[32]=n,e[33]=A):A=e[33];let P;e[34]!==n?(P=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.ambr.uplink"}),e[34]=n,e[35]=P):P=e[35];const T=r?.qos?.ambr?.uplink;let j;e[36]!==P||e[37]!==T?(j=a.jsx(Qe,{label:P,value:T}),e[36]=P,e[37]=T,e[38]=j):j=e[38];let R;e[39]!==n?(R=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.ambr.downlink"}),e[39]=n,e[40]=R):R=e[40];const D=r?.qos?.ambr?.downlink;let O;e[41]!==R||e[42]!==D?(O=a.jsx(Qe,{label:R,value:D}),e[41]=R,e[42]=D,e[43]=O):O=e[43];let N;e[44]!==n?(N=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.preemption_capability"}),e[44]=n,e[45]=N):N=e[45];const F=r?.qos?.arp?.preemption_capability;let U;e[46]!==N||e[47]!==F?(U=a.jsx(Qe,{label:N,value:F}),e[46]=N,e[47]=F,e[48]=U):U=e[48];let z;e[49]!==n?(z=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.preemption_vulnerability"}),e[49]=n,e[50]=z):z=e[50];const H=r?.qos?.arp?.preemption_vulnerability;let W;e[51]!==z||e[52]!==H?(W=a.jsx(Qe,{label:z,value:H}),e[51]=z,e[52]=H,e[53]=W):W=e[53];let K;e[54]!==n?(K=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.arp.priority"}),e[54]=n,e[55]=K):K=e[55];const q=r?.qos?.arp?.priority;let X;e[56]!==K||e[57]!==q?(X=a.jsx(Qe,{label:K,value:q}),e[56]=K,e[57]=q,e[58]=X):X=e[58];let Q;e[59]!==n?(Q=n.formatMessage({id:"device_status.sgwc.session.default_bearer.qos.qci"}),e[59]=n,e[60]=Q):Q=e[60];const Y=r?.qos?.qci;let Z;e[61]!==Q||e[62]!==Y?(Z=a.jsx(Qe,{label:Q,value:Y}),e[61]=Q,e[62]=Y,e[63]=Z):Z=e[63];let re;e[64]!==j||e[65]!==O||e[66]!==U||e[67]!==W||e[68]!==X||e[69]!==Z?(re=a.jsxs(te,{children:[j,O,U,W,X,Z]}),e[64]=j,e[65]=O,e[66]=U,e[67]=W,e[68]=X,e[69]=Z,e[70]=re):re=e[70];let fe;e[71]!==A||e[72]!==re?(fe=a.jsx(xr,{elevation:3,disableGutters:!0,title:A,content:re}),e[71]=A,e[72]=re,e[73]=fe):fe=e[73];let de;e[74]!==m||e[75]!==g||e[76]!==x||e[77]!==k||e[78]!==l||e[79]!==fe||e[80]!==d?(de=a.jsxs(te,{children:[l,d,m,g,x,k,fe]}),e[74]=m,e[75]=g,e[76]=x,e[77]=k,e[78]=l,e[79]=fe,e[80]=d,e[81]=de):de=e[81];let se;return e[82]!==s||e[83]!==de?(se=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:de}),e[82]=s,e[83]=de,e[84]=se):se=e[84],se}function zat(){const t=he.c(7),e=Gr(),r=Ye();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==r?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:`${r.formatMessage({id:"device_status.sgwc.session"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.id"}),value:c.id}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.id_type"}),value:c.id_type}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.upf_ip"}),value:c.upf_ip}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.mme_ip"}),value:c.mme_ip}),a.jsx(Qe,{label:r.formatMessage({id:"device_status.sgwc.session.pgw_ip"}),value:c.pgw_ip})]}),c.default_bearer&&a.jsx(Bat,{defaultBearer:c.default_bearer}),c.dedicated_bearers&&c.dedicated_bearers.length>0&&a.jsx(Uat,{dedicatedBearers:c.dedicated_bearers})]})},c.id))})}),t[2]=r,t[3]=i):i=t[3];let o;return t[4]!==e.sgwcStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:e.sgwcStatus,errorElement:s,children:i})}),t[4]=e.sgwcStatus,t[5]=i,t[6]=o):o=t[6],o}function qat(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!0,children:l.map(c=>a.jsx(xr,{sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},title:`${e.formatMessage({id:"device_status.smf.pduSession"})} - ${c.pduSessionId}`,content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.pduSessionId"}),value:c.pduSessionId}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.pduSessionType"}),value:c.pduSessionType}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.supi"}),value:c.supi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.dnn"}),value:c.dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.ue_ipv6_prefix"}),value:c.ue_ipv6_prefix}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.ue_ipv4_address"}),value:c.ue_ipv4_address}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.detectedMacAddresses"}),value:c.detected_mac_addresses}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.sNssai"}),value:c.sNssai.sd?`${c.sNssai.sst}-${c.sNssai.sd}`:c.sNssai.sst})]}),c.n4c&&c.n4c.local_fseid&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.n4c.localFseid"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.ipv4"}),value:c.n4c.local_fseid.ipv4}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.ipv6"}),value:c.n4c.local_fseid.ipv6}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.localFseid.seid"}),value:c.n4c.local_fseid.seid})]})}),c.n4c&&c.n4c.remote_fseid&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.n4c.remoteFseid"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.ipv4"}),value:c.n4c.remote_fseid.ipv4}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.ipv6"}),value:c.n4c.remote_fseid.ipv6}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.n4c.remoteFseid.seid"}),value:c.n4c.remote_fseid.seid})]})}),c.charging&&a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:e.formatMessage({id:"device_status.smf.charging"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.chargingChar"}),value:c.charging.charging_char}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.chargingDataRef"}),value:c.charging.charging_data_ref}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.smf.charging.sequenceNum"}),value:c.charging.sequence_num})]})})]})},c.pduSessionId))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.smfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.smfStatus,errorElement:s,children:i})}),t[4]=r.smfStatus,t[5]=i,t[6]=o):o=t[6],o}function Vat(t){const e=he.c(44),{aaa:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.aaa"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.aaa.dataSubscriptionNotificationFailure"}),e[2]=n,e[3]=i):i=e[3];const o=r?.data_subscription_notification_failure;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.aaa.host"}),e[7]=n,e[8]=c):c=e[8];const u=r?.host;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.aaa.plmn"}),e[12]=n,e[13]=f):f=e[13];const p=`${r?.plmn.mcc}${r?.plmn.mnc}`;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.aaa.ratType"}),e[17]=n,e[18]=h):h=e[18];const _=r?.rat_type;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.aaa.realm"}),e[22]=n,e[23]=y):y=e[23];const b=r?.realm;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.udrSupiStatus.aaa.registeredAt"}),e[27]=n,e[28]=w):w=e[28];const C=r?.registered_at;let k;e[29]!==C?(k=Mr(C),e[29]=C,e[30]=k):k=e[30];let A;e[31]!==w||e[32]!==k?(A=a.jsx(Qe,{label:w,value:k}),e[31]=w,e[32]=k,e[33]=A):A=e[33];let P;e[34]!==m||e[35]!==g||e[36]!==x||e[37]!==A||e[38]!==l||e[39]!==d?(P=a.jsxs(te,{children:[l,d,m,g,x,A]}),e[34]=m,e[35]=g,e[36]=x,e[37]=A,e[38]=l,e[39]=d,e[40]=P):P=e[40];let T;return e[41]!==s||e[42]!==P?(T=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:P}),e[41]=s,e[42]=P,e[43]=T):T=e[43],T}function Hat(t){const e=he.c(44),{amf:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.amf"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.amf.amfInstanceID"}),e[2]=n,e[3]=i):i=e[3];const o=r?.amf_instance_id;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.amf.pei"}),e[7]=n,e[8]=c):c=e[8];const u=r?.pei;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.amf.dataSubscriptionNotificationFailure"}),e[12]=n,e[13]=f):f=e[13];const p=r?.data_subscription_notification_failure;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.amf.ratType"}),e[17]=n,e[18]=h):h=e[18];const _=r?.rat_type;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.amf.registeredAt"}),e[22]=n,e[23]=y):y=e[23];const b=r?.registered_at;let x;e[24]!==b?(x=Mr(b),e[24]=b,e[25]=x):x=e[25];let w;e[26]!==y||e[27]!==x?(w=a.jsx(Qe,{label:y,value:x}),e[26]=y,e[27]=x,e[28]=w):w=e[28];let C;e[29]!==m||e[30]!==g||e[31]!==w||e[32]!==l||e[33]!==d?(C=a.jsxs(te,{children:[l,d,m,g,w]}),e[29]=m,e[30]=g,e[31]=w,e[32]=l,e[33]=d,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==n?(k=r?.guami&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami"}),content:a.jsxs(te,{spacing:2,children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.amfID"}),value:r.guami.amf_id}),a.jsx(xr,{elevation:4,expanded:!0,disableGutters:!0,title:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.mcc"}),value:r.guami.plmn.mcc}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.mnc"}),value:r.guami.plmn.mnc}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.amf.guami.plmn.nid"}),value:r.guami.plmn.nid})]})})]})}),e[35]=r,e[36]=n,e[37]=k):k=e[37];let A;e[38]!==C||e[39]!==k?(A=a.jsxs(te,{spacing:2,children:[C,k]}),e[38]=C,e[39]=k,e[40]=A):A=e[40];let P;return e[41]!==s||e[42]!==A?(P=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:A}),e[41]=s,e[42]=A,e[43]=P):P=e[43],P}function Gat(t){const e=he.c(56),{mme:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.mme"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.mme.host"}),e[2]=n,e[3]=i):i=e[3];const o=r?.host;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.mme.realm"}),e[7]=n,e[8]=c):c=e[8];const u=r?.realm;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.mme.pei"}),e[12]=n,e[13]=f):f=e[13];const p=r?.pei;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.mme.registeredForSms"}),e[17]=n,e[18]=h):h=e[18];const _=r?.registered_for_sms;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.mme.dataSubscriptionNotificationFailure"}),e[22]=n,e[23]=y):y=e[23];const b=r?.data_subscription_notification_failure;let x;e[24]!==y||e[25]!==b?(x=a.jsx(Qe,{label:y,value:b}),e[24]=y,e[25]=b,e[26]=x):x=e[26];let w;e[27]!==n?(w=n.formatMessage({id:"device_status.udrSupiStatus.mme.ratType"}),e[27]=n,e[28]=w):w=e[28];const C=r?.rat_type;let k;e[29]!==w||e[30]!==C?(k=a.jsx(Qe,{label:w,value:C}),e[29]=w,e[30]=C,e[31]=k):k=e[31];let A;e[32]!==n?(A=n.formatMessage({id:"device_status.udrSupiStatus.mme.plmn"}),e[32]=n,e[33]=A):A=e[33];const P=`${r?.plmn.mcc}${r?.plmn.mnc}`;let T;e[34]!==A||e[35]!==P?(T=a.jsx(Qe,{label:A,value:P}),e[34]=A,e[35]=P,e[36]=T):T=e[36];let j;e[37]!==n?(j=n.formatMessage({id:"device_status.udrSupiStatus.mme.registeredAt"}),e[37]=n,e[38]=j):j=e[38];const R=r?.registered_at;let D;e[39]!==R?(D=Mr(R),e[39]=R,e[40]=D):D=e[40];let O;e[41]!==j||e[42]!==D?(O=a.jsx(Qe,{label:j,value:D}),e[41]=j,e[42]=D,e[43]=O):O=e[43];let N;e[44]!==m||e[45]!==g||e[46]!==x||e[47]!==k||e[48]!==T||e[49]!==O||e[50]!==l||e[51]!==d?(N=a.jsxs(te,{children:[l,d,m,g,x,k,T,O]}),e[44]=m,e[45]=g,e[46]=x,e[47]=k,e[48]=T,e[49]=O,e[50]=l,e[51]=d,e[52]=N):N=e[52];let F;return e[53]!==s||e[54]!==N?(F=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:N}),e[53]=s,e[54]=N,e[55]=F):F=e[55],F}function Wat(t){const e=he.c(13),{mwdStatus:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={borderRadius:1},e[0]=s):s=e[0];let i;e[1]!==n?(i=n.formatMessage({id:"device_status.udrInfo.mwdStatus"}),e[1]=n,e[2]=i):i=e[2];let o;e[3]!==n?(o=n.formatMessage({id:"device_status.udrInfo.mwdStatus.host"}),e[3]=n,e[4]=o):o=e[4];let l;e[5]!==r?(l=r.map(Yat),e[5]=r,e[6]=l):l=e[6];let c;e[7]!==o||e[8]!==l?(c=a.jsx(Qe,{label:o,value:l}),e[7]=o,e[8]=l,e[9]=c):c=e[9];let u;return e[10]!==i||e[11]!==c?(u=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,sx:s,title:i,content:c}),e[10]=i,e[11]=c,e[12]=u):u=e[12],u}function Yat(t){return t.host}function Kat(t){const e=he.c(53),{sgsn:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={borderRadius:1},e[0]=s):s=e[0];let i;e[1]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.sgsn"}),e[1]=n,e[2]=i):i=e[2];let o;e[3]!==n?(o=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.dataSubscriptionNotificationFailure"}),e[3]=n,e[4]=o):o=e[4];const l=`${r?.data_subscription_notification_failure}`;let c;e[5]!==o||e[6]!==l?(c=a.jsx(Qe,{label:o,value:l}),e[5]=o,e[6]=l,e[7]=c):c=e[7];let u;e[8]!==n?(u=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.plmn"}),e[8]=n,e[9]=u):u=e[9];const d=`${r?.plmn.mcc}${r?.plmn.mnc}`;let f;e[10]!==u||e[11]!==d?(f=a.jsx(Qe,{label:u,value:d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let p;e[13]!==n?(p=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.ratType"}),e[13]=n,e[14]=p):p=e[14];const m=r?.rat_type;let h;e[15]!==m||e[16]!==p?(h=a.jsx(Qe,{label:p,value:m}),e[15]=m,e[16]=p,e[17]=h):h=e[17];let _;e[18]!==n?(_=n.formatMessage({id:"device_status.udrSupiStatus.sgsn.registeredAt"}),e[18]=n,e[19]=_):_=e[19];const g=r?.registered_at;let y;e[20]!==g?(y=Mr(g),e[20]=g,e[21]=y):y=e[21];let b;e[22]!==_||e[23]!==y?(b=a.jsx(Qe,{label:_,value:y}),e[22]=_,e[23]=y,e[24]=b):b=e[24];let x;e[25]!==n||e[26]!==r?(x=r&&"host"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.host"}),value:r.host}),e[25]=n,e[26]=r,e[27]=x):x=e[27];let w;e[28]!==n||e[29]!==r?(w=r&&"pei"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.pei"}),value:r.pei}),e[28]=n,e[29]=r,e[30]=w):w=e[30];let C;e[31]!==n||e[32]!==r?(C=r&&"realm"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.realm"}),value:r.realm}),e[31]=n,e[32]=r,e[33]=C):C=e[33];let k;e[34]!==n||e[35]!==r?(k=r&&"address"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.address"}),value:r.address}),e[34]=n,e[35]=r,e[36]=k):k=e[36];let A;e[37]!==n||e[38]!==r?(A=r&&"number"in r&&a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.sgsn.number"}),value:r.number}),e[37]=n,e[38]=r,e[39]=A):A=e[39];let P;e[40]!==h||e[41]!==b||e[42]!==x||e[43]!==w||e[44]!==C||e[45]!==k||e[46]!==A||e[47]!==c||e[48]!==f?(P=a.jsxs(te,{children:[c,f,h,b,x,w,C,k,A]}),e[40]=h,e[41]=b,e[42]=x,e[43]=w,e[44]=C,e[45]=k,e[46]=A,e[47]=c,e[48]=f,e[49]=P):P=e[49];let T;return e[50]!==i||e[51]!==P?(T=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,sx:s,title:i,content:P}),e[50]=i,e[51]=P,e[52]=T):T=e[52],T}function Qat(t){const e=he.c(5),{smf:r}=t,n=Ye();let s;e[0]!==n||e[1]!==r?(s=r&&r.length>0&&a.jsx(Jn,{spacing:1,children:r.map(o=>{const{smf_instance_id:l,pdu_sessions:c}=o;return a.jsx(xr,{elevation:2,title:n.formatMessage({id:"device_status.udrSupiStatus.smf"},{id:l}),content:a.jsxs(te,{children:[a.jsx(_e,{type:"body1",color:"grey.600",children:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_sessions"})}),a.jsx(Jn,{spacing:1,children:c.map(u=>{const{pdu_session_id:d,dnn:f,emergency_services:p,registered_at:m,single_nssai:h}=u;return a.jsx(xr,{elevation:3,title:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session"},{id:d}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.dnn"}),value:f}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.emergency_services"}),value:p}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.registered_at"}),value:Mr(m)}),a.jsx(xr,{expanded:!0,elevation:4,title:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai.sd"}),value:h.sd}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.udrSupiStatus.smf.pdu_session.single_nssai.sst"}),value:h.sst})]})})]})},d)})})]})},l)})}),e[0]=n,e[1]=r,e[2]=s):s=e[2];let i;return e[3]!==s?(i=a.jsx(a.Fragment,{children:s}),e[3]=s,e[4]=i):i=e[4],i}function Zat(t){const e=he.c(38),{vlr:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.udrSupiStatus.vlr"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==n?(i=n.formatMessage({id:"device_status.udrSupiStatus.vlr.data_subscription_notification_failure"}),e[2]=n,e[3]=i):i=e[3];const o=r?.data_subscription_notification_failure;let l;e[4]!==i||e[5]!==o?(l=a.jsx(Qe,{label:i,value:o}),e[4]=i,e[5]=o,e[6]=l):l=e[6];let c;e[7]!==n?(c=n.formatMessage({id:"device_status.udrSupiStatus.vlr.msc_number"}),e[7]=n,e[8]=c):c=e[8];const u=r?.msc_number;let d;e[9]!==c||e[10]!==u?(d=a.jsx(Qe,{label:c,value:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11];let f;e[12]!==n?(f=n.formatMessage({id:"device_status.udrSupiStatus.vlr.number"}),e[12]=n,e[13]=f):f=e[13];const p=r?.number;let m;e[14]!==f||e[15]!==p?(m=a.jsx(Qe,{label:f,value:p}),e[14]=f,e[15]=p,e[16]=m):m=e[16];let h;e[17]!==n?(h=n.formatMessage({id:"device_status.udrSupiStatus.vlr.plmn"}),e[17]=n,e[18]=h):h=e[18];const _=`${r?.plmn.mcc}${r?.plmn.mnc}`;let g;e[19]!==h||e[20]!==_?(g=a.jsx(Qe,{label:h,value:_}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;e[22]!==n?(y=n.formatMessage({id:"device_status.udrSupiStatus.vlr.registered_at"}),e[22]=n,e[23]=y):y=e[23];const b=r?.registered_at;let x;e[24]!==b?(x=Mr(b),e[24]=b,e[25]=x):x=e[25];let w;e[26]!==y||e[27]!==x?(w=a.jsx(Qe,{label:y,value:x}),e[26]=y,e[27]=x,e[28]=w):w=e[28];let C;e[29]!==m||e[30]!==g||e[31]!==w||e[32]!==l||e[33]!==d?(C=a.jsx(te,{spacing:2,children:a.jsxs(te,{children:[l,d,m,g,w]})}),e[29]=m,e[30]=g,e[31]=w,e[32]=l,e[33]=d,e[34]=C):C=e[34];let k;return e[35]!==s||e[36]!==C?(k=a.jsx(xr,{elevation:2,expanded:!0,disableGutters:!0,title:s,content:C}),e[35]=s,e[36]=C,e[37]=k):k=e[37],k}function Xat(){const t=he.c(4),e=Gr();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(zh,{}),t[1]=n):n=t[1];let s;return t[2]!==e.udrStatus?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.udrStatus,errorElement:n,children:Jat})}),t[2]=e.udrStatus,t[3]=s):s=t[3],s}function Jat(t){const{udrSupiStatus:e,mwdStatus:r}=t;return a.jsx(Kt,{sx:{overflow:"auto",height:"100%"},children:a.jsxs(te,{children:[e.location.aaa&&a.jsx(Vat,{aaa:e.location.aaa}),e.location.amf&&a.jsx(Hat,{amf:e.location.amf}),e.location.mme&&a.jsx(Gat,{mme:e.location.mme}),e.location.vlr&&a.jsx(Zat,{vlr:e.location.vlr}),e.location.sgsn&&a.jsx(Kat,{sgsn:e.location.sgsn}),r.length>0&&a.jsx(Wat,{mwdStatus:r}),e.sessions.smf&&e.sessions.smf.length>0&&a.jsx(Qat,{smf:e.sessions.smf})]})})}function elt(t){const e=he.c(10),{farList:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.upfSession.far"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r||e[5]!==n?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.upfSession.far.item_id"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.id"}),value:c.id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.apply_actions"}),value:c.apply_actions}),c.forwarding_params&&a.jsx(xr,{elevation:3,disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.upfSession.far.forwarding_params"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.network_instance"}),value:c.forwarding_params.network_instance}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.destination_iface"}),value:c.forwarding_params.destination_iface}),c.forwarding_params.ohc&&a.jsx(xr,{disableGutters:!0,expanded:!0,title:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc"}),content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.hdr"}),value:c.forwarding_params.ohc.hdr}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.teid"}),value:c.forwarding_params.ohc.teid}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.far.forwarding_params.ohc.ipv4"}),value:c.forwarding_params.ohc.ipv4})]})})]})})]})},c.id))}),e[4]=r,e[5]=n,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function tlt(t){const e=he.c(10),{pdrList:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"device_status.upfSession.pdr"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i=a.jsx(_e,{type:"body1",color:"grey.600",children:s}),e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n||e[5]!==r?(o=r&&a.jsx(Jn,{exclusive:!1,spacing:1,children:r.map(c=>a.jsx(xr,{elevation:2,title:`${n.formatMessage({id:"device_status.upfSession.pdr.item_id"})} - ${c.id}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.id"}),value:c.id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.far_id"}),value:c.far_id}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ohr"}),value:c.ohr}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.source_iface"}),value:c.source_iface}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.network_instance"}),value:c.network_instance}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.qfi"}),value:c.qfi}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.vrf_index"}),value:c.vrf_index}),c.pdi&&a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.upfSession.pdr.pdi"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.pdi_type"}),value:c.pdi.pdi_type}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.ip"}),value:c.pdi.ip})," ",a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.teid"}),value:c.pdi.teid})," ",a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.pdi.vrf"}),value:c.pdi.vrf})]})}),c.ue_ip_addr&&a.jsx(xr,{elevation:3,title:`${n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.ipv4"}),value:c.ue_ip_addr.ipv4}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.ipv6"}),value:c.ue_ip_addr.ipv6}),a.jsx(Qe,{label:n.formatMessage({id:"device_status.upfSession.pdr.ue_ip_addr.sd"}),value:c.ue_ip_addr.sd})]})})]})},c.id))}),e[4]=n,e[5]=r,e[6]=o):o=e[6];let l;return e[7]!==i||e[8]!==o?(l=a.jsxs(te,{spacing:1,children:[i,o]}),e[7]=i,e[8]=o,e[9]=l):l=e[9],l}function rlt(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(zh,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>a.jsx(gt,{sx:{overflow:"auto",height:"100%"},children:a.jsx(Jn,{exclusive:!1,children:l.map(c=>a.jsx(xr,{title:`${e.formatMessage({id:"device_status.upfSession.seid"})} - ${c.seid}`,sx:{borderBottom:"1px solid",borderColor:"divider",boxShadow:0,borderRadius:0,"&:last-of-type":{borderRadius:0}},content:a.jsxs(te,{children:[a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.seid"}),value:c.seid}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.apn_dnn"}),value:c.apn_dnn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.pdn_type"}),value:c.pdn_type}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.framed_routes"}),value:c.framed_routes}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.managed_routes"}),value:c.managed_routes}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.mac_addrs"}),value:c.mac_addrs})]}),a.jsx(xr,{elevation:2,title:`${e.formatMessage({id:"device_status.upfSessioon.user_id"})}`,content:a.jsxs(te,{children:[a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.imsi"}),value:c.user_id?.imsi}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.imei"}),value:c.user_id?.imei}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.msisdn"}),value:c.user_id?.msisdn}),a.jsx(Qe,{label:e.formatMessage({id:"device_status.upfSession.user_id.nai"}),value:c.user_id?.nai})]})}),c.pdr&&c.pdr.length>0&&a.jsx(tlt,{pdrList:c.pdr}),c.far&&c.far.length>0&&a.jsx(elt,{farList:c.far})]})},c.seid))})}),t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.upfStatus||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.upfStatus,errorElement:s,children:i})}),t[4]=r.upfStatus,t[5]=i,t[6]=o):o=t[6],o}var BI,NX;function nlt(){if(NX)return BI;NX=1;var t=J$(),e=lv(),r="[object RegExp]";function n(s){return e(s)&&t(s)==r}return BI=n,BI}var zI,FX;function slt(){if(FX)return zI;FX=1;var t=nlt(),e=jh(),r=rO(),n=r&&r.isRegExp,s=n?e(n):t;return zI=s,zI}var qI,UX;function ilt(){if(UX)return qI;UX=1;var t=dge(),e=t("length");return qI=e,qI}var VI,BX;function olt(){if(BX)return VI;BX=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",s=e+r+n,i="\\ufe0e\\ufe0f",o="["+t+"]",l="["+s+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",h=u+"?",_="["+i+"]?",g="(?:"+m+"(?:"+[d,f,p].join("|")+")"+_+h+")*",y=_+h+g,b="(?:"+[d+l+"?",l,f,p,o].join("|")+")",x=RegExp(c+"(?="+c+")|"+b+y,"g");function w(C){for(var k=x.lastIndex=0;x.test(C);)++k;return k}return VI=w,VI}var HI,zX;function alt(){if(zX)return HI;zX=1;var t=ilt(),e=yte(),r=olt();function n(s){return e(s)?r(s):t(s)}return HI=n,HI}var GI,qX;function llt(){if(qX)return GI;qX=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return GI=e,GI}var WI,VX;function clt(){if(VX)return WI;VX=1;var t=llt(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return WI=r,WI}var YI,HX;function ult(){if(HX)return YI;HX=1;var t=clt(),e=Qd(),r=hte(),n=NaN,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(r(u))return n;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var f=i.test(u);return f||o.test(u)?l(u.slice(2),f?2:8):s.test(u)?n:+u}return YI=c,YI}var KI,GX;function dlt(){if(GX)return KI;GX=1;var t=ult(),e=1/0,r=17976931348623157e292;function n(s){if(!s)return s===0?s:0;if(s=t(s),s===e||s===-e){var i=s<0?-1:1;return i*r}return s===s?s:0}return KI=n,KI}var QI,WX;function flt(){if(WX)return QI;WX=1;var t=dlt();function e(r){var n=t(r),s=n%1;return n===n?s?n-s:n:0}return QI=e,QI}var ZI,YX;function plt(){if(YX)return ZI;YX=1;var t=fge(),e=pge(),r=yte(),n=Qd(),s=slt(),i=alt(),o=mge(),l=flt(),c=hge(),u=30,d="...",f=/\w*$/;function p(m,h){var _=u,g=d;if(n(h)){var y="separator"in h?h.separator:y;_="length"in h?l(h.length):_,g="omission"in h?t(h.omission):g}m=c(m);var b=m.length;if(r(m)){var x=o(m);b=x.length}if(_>=b)return m;var w=_-i(g);if(w<1)return g;var C=x?e(x,0,w).join(""):m.slice(0,w);if(y===void 0)return C+g;if(x&&(w+=C.length-w),s(y)){if(m.slice(w).search(y)){var k,A=C;for(y.global||(y=RegExp(y.source,c(f.exec(y))+"g")),y.lastIndex=0;k=y.exec(A);)var P=k.index;C=C.slice(0,P===void 0?w:P)}}else if(m.indexOf(t(y),w)!=w){var T=C.lastIndexOf(y);T>-1&&(C=C.slice(0,T))}return C+g}return ZI=p,ZI}var mlt=plt();const hlt=Pi(mlt),glt=()=>{const t=he.c(46),e=Ye(),r=Gr(),n=_lt;let s;t[0]!==e?(s=e.formatMessage({id:"landing.alerts.title.severity"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==e?(i=R=>a.jsx(Lr,{severity:n(R.labels.severity),message:e.formatMessage({id:`landing.alerts.severity.${R.labels.severity}`}),sx:{maxWidth:"160px",".MuiAlert-message":{wordBreak:"keep-all"}}}),t[2]=e,t[3]=i):i=t[3];let o;t[4]!==s||t[5]!==i?(o={key:"labels.severity",label:s,cellRender:i,wordBreak:"keep-all"},t[4]=s,t[5]=i,t[6]=o):o=t[6];let l;t[7]!==e?(l=e.formatMessage({id:"landing.alerts.title.name"}),t[7]=e,t[8]=l):l=t[8];let c;t[9]!==l?(c={key:"labels.alertname",label:l,cellRender:vlt},t[9]=l,t[10]=c):c=t[10];let u;t[11]!==e?(u=e.formatMessage({id:"landing.alerts.title.summary"}),t[11]=e,t[12]=u):u=t[12];let d;t[13]!==u?(d={key:"annotations.summary",label:u,cellRender:ylt},t[13]=u,t[14]=d):d=t[14];let f;t[15]!==e?(f=e.formatMessage({id:"landing.alerts.title.state"}),t[15]=e,t[16]=f):f=t[16];let p;t[17]!==f?(p={key:"status.state",label:f},t[17]=f,t[18]=p):p=t[18];let m;t[19]!==e?(m=e.formatMessage({id:"landing.alerts.title.firedAt"}),t[19]=e,t[20]=m):m=t[20];let h;t[21]!==m?(h={key:"startsAt",label:m,cellRender:blt},t[21]=m,t[22]=h):h=t[22];let _;t[23]!==e?(_=e.formatMessage({id:"landing.alerts.title.stillActiveAt"}),t[23]=e,t[24]=_):_=t[24];let g;t[25]!==_?(g={key:"updatedAt",label:_,cellRender:xlt},t[25]=_,t[26]=g):g=t[26];let y;t[27]!==h||t[28]!==g||t[29]!==o||t[30]!==c||t[31]!==d||t[32]!==p?(y=[o,c,d,p,h,g],t[27]=h,t[28]=g,t[29]=o,t[30]=c,t[31]=d,t[32]=p,t[33]=y):y=t[33];const b=y;let x;t[34]===Symbol.for("react.memo_cache_sentinel")?(x={flex:"1 1 auto"},t[34]=x):x=t[34];let w;t[35]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[35]=w):w=t[35];let C;t[36]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[36]=C):C=t[36];let k;t[37]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}}),t[37]=k):k=t[37];let A;t[38]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsxs(te,{sx:x,spacing:2,children:[w,C,k,a.jsx(Dt,{variant:"rounded",sx:{height:"52px"}})]}),t[38]=A):A=t[38];let P;t[39]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Tr,{}),t[39]=P):P=t[39];let T;t[40]!==b||t[41]!==e?(T=R=>a.jsxs(a.Fragment,{children:[R.length===0&&a.jsx(Lr,{severity:"info",title:e.formatMessage({id:"landing.alerts.no_alerts"})}),R.length>0&&a.jsx(Jn,{exclusive:!1,spacing:2,children:Object.entries(Kze(R)).map(D=>{const[O,N]=D,{items:F,counts:U}=N,{total:z,...H}=U;return a.jsx(xr,{title:a.jsxs(te,{direction:"row",align:"center",spacing:1.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:.5,children:[a.jsx(_e,{type:"subtitle1",fontWeight:"600",children:O}),a.jsx(ms,{label:z,size:"small"})]}),a.jsx(te,{direction:"row",spacing:1,children:Object.keys(Z6).map(W=>H[W]>0?a.jsx(Lr,{severity:n(W),message:`${e.formatMessage({id:`landing.alerts.severity.${W}`})} ${H[W]!==z?H[W]:""}`,sx:{padding:"2px 8px !important",".MuiAlert-icon":{mr:"4px"},".MuiAlert-message":{wordBreak:"keep-all"},".MuiAlert-message .MuiTypography-root":{fontSize:14}}},W):null)})]}),content:a.jsx(Br,{autoScale:!0,columns:b,data:F,noDataText:e.formatMessage({id:"landing.alerts.no_alerts"}),orderBy:"labels.alertname",hidePagination:!0,rowsCount:F?.length||0,rowsPerPage:F?.length||0,rowKey:"labels.alertname",page:0})},O)})})]}),t[40]=b,t[41]=e,t[42]=T):T=t[42];let j;return t[43]!==r.alerts||t[44]!==T?(j=a.jsx(I.Suspense,{fallback:A,children:a.jsx(Qt,{resolve:r.alerts,errorElement:P,children:T})}),t[43]=r.alerts,t[44]=T,t[45]=j):j=t[45],j};function _lt(t){return["emergency","alert","critical","error"].includes(t)?"error":["warning","notice"].includes(t)?"warning":["info","informational"].includes(t)?"info":"success"}function vlt(t){return a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(_e,{type:"body2",children:t.labels.alertname}),t.annotations.description&&a.jsx(Mn,{arrow:!0,title:t.annotations.description,children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}function ylt(t){return a.jsx(Mn,{arrow:!0,title:t.annotations.summary,children:a.jsx("div",{children:hlt(t.annotations.summary,{length:50})})})}function blt(t){return a.jsx(_e,{type:"body2",children:Mr(t.startsAt)})}function xlt(t){return a.jsx(_e,{type:"body2",children:Mr(t.updatedAt)})}const Mue=async t=>{const e=`${$.apis.amf.supis}/${t}`;return De({options:{url:e,method:"GET"}})},Slt=async(t,e)=>{const r=`${$.apis.amf.supis}/${t}/remove?reregister=${e}`;return De({options:{url:r,method:"POST"}})};async function wlt(t){const e=$.apis.udm.supiReAttach(t);return De({options:{url:e,method:"POST"}})}async function Clt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udm.homeNetworkKeys}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Alt(t){const e=`${$.apis.udm.homeNetworkKeys}`;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function klt(t){const e=`${$.apis.udm.homeNetworkKeys}/upload`,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Mlt(t){const e=`${$.apis.udm.homeNetworkKeys}/${t}`;return De({options:{url:e,method:"DELETE"}})}function Plt(t){const e=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:e,method:"GET"}})}function jlt({paginationToken:t,pageSize:e}={}){const r=new URLSearchParams({...t&&{pagination_token:t},...e&&{max_results:`${e}`}}),n=`${$.apis.udm.plmnPrefixes}?${r.size?r.toString():""}`;return De({options:{url:n,method:"GET"}})}function Tlt(t){const e=$.apis.udm.plmnPrefixes;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}function Elt(t,e){const r=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}function Rlt(t){const e=`${$.apis.udm.plmnPrefixes}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Ilt({request:t}){const{id:e,reregister:r}=await t.json(),n=await Slt(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Dlt({request:t}){const{supi:e}=await t.json(),r=await wlt(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}async function $lt({request:t}){const{imsi:e}=await t.json(),r=await Got(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}async function Olt({request:t}){const{imsi:e,reattach:r}=await t.json(),n=await Wot(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Llt({request:t}){const{imsi:e,reattach:r}=await t.json(),n=await Yot(e,r);return xt(n)?Ar(n.error.detail):Nt(),Ft(n)}async function Nlt(t){const e=$.apis.pcf.monitoring.supiInfo(t);return De({options:{url:e,method:"GET"}})}async function Flt(t){const e=$.apis.sgwc.status(t);return De({options:{url:e,method:"GET"}})}const Pue=async t=>{const e=`${$.apis.smf.status}/${t}`;return De({options:{url:e,method:"GET"}})};async function Ult({applicationServer:t,dataReferenceEq:e}={}){const r=new URLSearchParams;return t&&r.set("application_server_icont",t),e&&r.set("data_reference_eq",e),De({options:{url:`${$.apis.udr.imsApplicationServerAcl}${r.size?"?"+r.toString():""}`,method:"GET",cache:!1}})}async function Blt({id:t}){const e=`${$.apis.udr.imsApplicationServerAcl}/${t}`;return De({options:{url:e,method:"GET"}})}async function zlt(t){const e=$.apis.udr.imsApplicationServerAcl;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function qlt(t){const{id:e,...r}=t,n=`${$.apis.udr.imsApplicationServerAcl}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Vlt(t){const e=`${$.apis.udr.imsApplicationServerAcl}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Hlt({public_identity:t,...e}){const r=`${$.apis.udr.imsApplicationServerProfiles(t)}`;return De({options:{url:r,method:"POST",data:JSON.stringify(e)}})}async function Glt({public_identity:t,service_indication:e,service_data:r}){const n=`${$.apis.udr.imsApplicationServerProfiles(t)}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify({service_data:r})}})}async function Wlt({public_identity:t,service_indication:e}){const r=`${$.apis.udr.imsApplicationServerProfiles(t)}/${e}`;return De({options:{url:r,method:"DELETE"}})}async function Ylt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsInitialFilters}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Klt({id:t}){const e=`${$.apis.udr.imsInitialFilters}/${t}`;return De({options:{url:e,method:"GET"}})}async function Qlt(t){const e=$.apis.udr.imsInitialFilters;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Zlt(t){const{id:e,...r}=t,n=`${$.apis.udr.imsInitialFilters}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Xlt(t){const e=`${$.apis.udr.imsInitialFilters}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Jlt({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsPrivateIdentities}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function jue({name:t}){const e=`${$.apis.udr.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function ect(t){const e=$.apis.udr.imsPrivateIdentities;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function tct(t){const e=$.apis.udr.imsBasicPrivateIdentities;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function rct(t){const{name:e,isOverridingKeys:r,...n}=t,s=`${$.apis.udr.imsPrivateIdentities}/${e}/?preserve_keys=${!r}`;return De({options:{url:s,method:"PUT",data:JSON.stringify(n)}})}async function nct(t){const e=`${$.apis.udr.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function sct(t){const e=`${$.apis.udr.status.imsPrivateIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function ict(t){const e=`${$.apis.udr.status.imsPublicIdentities}/${t}`;return De({options:{url:e,method:"GET"}})}async function oct({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.imsServiceProfiles}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function act({id:t}){const e=`${$.apis.udr.imsServiceProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function lct(t){const e=$.apis.udr.imsServiceProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function cct(t){const{id:e,...r}=t,n=`${$.apis.udr.imsServiceProfiles}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function uct(t){const e=`${$.apis.udr.imsServiceProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function dct(t){const e=$.apis.udr.mwdStatus;return De({options:{url:e,method:"POST",data:JSON.stringify({supi:t})}})}async function fct({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.plmns}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function pct(t,e){const r=$.apis.udr.plmns;return De({options:{url:r,method:"POST",data:JSON.stringify({mcc:t,mnc:e})}})}async function mct(t,e){const r=`${$.apis.udr.plmns}/${t}-${e}`;return De({options:{url:r,method:"DELETE"}})}async function hct(t){const e=`${$.apis.udr.policyDataProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function h7({paginationToken:t,pageSize:e}={}){const r=new URLSearchParams;return e&&r.set("max_results",e.toString()),t&&r.set("pagination_token",t),De({options:{url:`${$.apis.udr.policyDataProfiles}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function gct(t){const e=$.apis.udr.policyDataProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function _ct(t){const{uuid:e,...r}=t,n=`${$.apis.udr.policyDataProfiles}/${e}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function vct(t){const e=`${$.apis.udr.policyDataProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function g7({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.provisionedDataProfiles}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function yct(t){const e=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:e,method:"GET"}})}async function bct(t){const e=$.apis.udr.provisionedDataProfiles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function xct(t,e){const r=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function Sct(t){const e=`${$.apis.udr.provisionedDataProfiles}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function wct(t){const e=`${$.apis.udr.supiStatus}/${t}`;return De({options:{url:e,method:"GET"}})}async function Cct(t){const e=`${$.apis.udr.supis}/${t}`;return De({options:{url:e,method:"GET"}})}async function Act({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}={}){const u=new URLSearchParams;return t&&u.set("max_results",t.toString()),e&&u.set("pagination_token",e),r&&u.set("supi_icont",r),n&&u.set("supi_noticont",n),s&&u.set("supi_iend",s),i&&u.set("gpsi_icont",i),o&&u.set("gpsi_noticont",o),l&&u.set("gpsi_iend",l),c&&u.set("status_eq",c),De({options:{url:`${$.apis.udr.supis}${u.size?"?"+u.toString():""}`,method:"GET"}})}async function kct(t){const e=$.apis.udr.supis;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Mct(t,e){const r=`${$.apis.udr.supis}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e)}})}async function Pct(t){const e=`${$.apis.udr.supis}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function jct(t){const e=$.apis.udr.supisBulkImport,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Tct(t){const e=$.apis.bulkImportSupisCheck(t);return De({options:{url:e,method:"GET"}})}async function Ect({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}){const[u,d,f]=await Promise.all([Act({pageSize:t,paginationToken:e,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c}),h7({pageSize:1e4}),g7({pageSize:1e4})]);return{supiList:u,policyDataProfileList:d,provisionedDataProfileList:f}}async function KX(t){const[e,r,n]=await Promise.all([t?Cct(t):void 0,h7({pageSize:1e4}),g7({pageSize:1e4})]);return{supi:e,policyDataProfileList:r,provisionedDataProfileList:n}}async function Rct({pageSize:t=$.pageSize,paginationToken:e}={pageSize:$.pageSize}){let r=`${$.apis.udr.transportKeys}?max_results=${t}`;return e&&(r+=`&pagination_token=${e}`),De({options:{url:r,method:"GET",cache:!1}})}async function Ict({id:t}){const e=`${$.apis.udr.transportKeys}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"GET"}})}async function Dct(t){const e=$.apis.udr.transportKeys;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function $ct(t){const{id:e,...r}=t,n=`${$.apis.udr.transportKeys}/${encodeURIComponent(e)}`;return De({options:{url:n,method:"PUT",data:JSON.stringify(r)}})}async function Oct(t){const e=`${$.apis.udr.transportKeys}/${encodeURIComponent(t)}`;return De({options:{url:e,method:"DELETE"}})}async function Lct(){const t=$.apis.udr.milenageConstants;return De({options:{url:t,method:"GET"}})}async function Nct(t){const e=$.apis.udr.milenageConstants;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Fct(){const t=$.apis.udr.milenageConstants;return De({options:{url:t,method:"DELETE"}})}function Uct({pageSize:t,paginationToken:e}={}){const r=new URLSearchParams;return t&&r.set("max_results",t.toString()),e&&r.set("pagination_token",e),De({options:{url:`${$.apis.udr.operatorKeys}${r.size?"?"+r.toString():""}`,method:"GET"}})}async function Bct(t){const e=$.apis.udr.operatorKeys;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function zct({id:t,...e}){const r=`${$.apis.udr.operatorKeys}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function qct(t){const e=`${$.apis.udr.operatorKeys}/${t}`;return De({options:{url:e,method:"DELETE"}})}async function Vct(t){const e=`${$.apis.upf.sessions}/supi/${t}`;return De({options:{url:e,method:"GET"}})}const Hct=[ue.AMF,ue.SMF,ue.UDR,ue.UDM,ue.UPF,ue.MME,ue.SGWC,ue.PCF];async function Tue(){const t=await ma(),e=[];return Hct.forEach(r=>{Ds({services:t,name:r})&&e.push(r)}),e}async function Tm(t,e){try{return await t(e),nn.SUCCESS}catch{return nn.ERROR}}async function Gct(t){const e=t.split("-")[1],[r,n,s,i,o,l,c]=await Promise.all([Tm(Mue,t),Tm(Pue,t),Tm(Eue,t),Tm(Rue,t),Tm(Iue,e),Tm(Due,e),Tm($ue,t)]);return{[ue.AMF]:r,[ue.SMF]:n,[ue.UDR]:i,[ue.UPF]:s,[ue.MME]:o,[ue.SGWC]:l,[ue.PCF]:c}}async function Wct(t){const e=await Tue(),r=await Gct(t),n=[];return e.filter(s=>s!==ue.UDM).forEach(s=>{n.push({url:s,label:Pr().formatMessage({id:`device_status.tabs.${s}`}),status:r[s]})}),{activeTabs:n,startLocation:n[0]?.url}}async function Eue(t){const e=await Vct(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Rue(t){const[e,r]=await Promise.all([wct(t),dct(t)]);if(Ni.isEmpty(e.location))throw Li({type:mn.REMOTE_NOT_FOUND});return{udrSupiStatus:e,mwdStatus:r}}async function Iue(t){const e=await Hot(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Due(t){const e=await Flt(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function $ue(t){const e=await Nlt(t);if(Ni.isEmpty(e))throw Li({type:mn.REMOTE_NOT_FOUND});return e}async function Yct(t){return Wt({loaderArgs:t,deferred:!0,data:{services:Tue()}})}async function Kct(t){const{id:e}=t.params;return e?Pat(e)?Wt({loaderArgs:t,deferred:!0,data:{tabs:Wct(e)}}):rt(".."):null}async function Qct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.AMF})?Wt({loaderArgs:t,deferred:!0,data:{amfStatus:Mue(e)}}):rt("..")}async function Zct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.SMF})?Wt({loaderArgs:t,deferred:!0,data:{smfStatus:Pue(e)}}):rt("..")}async function Xct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.UPF})?Wt({loaderArgs:t,deferred:!0,data:{upfStatus:Eue(e)}}):rt("..")}async function Jct(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.UDR})?Wt({loaderArgs:t,deferred:!0,data:{udrStatus:Rue(e)}}):rt("..")}async function eut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();if(!Ds({services:r,name:ue.MME}))return rt("..");const n=e.split("-")[1];return Wt({loaderArgs:t,deferred:!0,data:{mmeStatus:Iue(n)}})}async function tut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();if(!Ds({services:r,name:ue.SGWC}))return rt("..");const n=e.split("-")[1];return Wt({loaderArgs:t,deferred:!0,data:{sgwcStatus:Due(n)}})}async function rut(t){const{id:e}=t.params;if(!e)return null;const r=await ma();return Ds({services:r,name:ue.PCF})?Wt({loaderArgs:t,deferred:!0,data:{pcfStatus:$ue(e)}}):rt("..")}async function _7(){const t=`${$.apis.ncm.status.vrfs}`;return De({options:{url:t,method:"GET"}})}async function nut({filter:t}={}){const e=`${$.apis.ncm.status.interfaces}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function sut({filter:t}={}){const e=`${$.apis.ncm.status.neighbors}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function iut({filter:t}={}){const e=`${$.apis.ncm.status.routes}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function out({filter:t}={}){const e=`${$.apis.ncm.status.rules}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function aut({filter:t}={}){const e=`${$.apis.ncm.status.sockets}${t?"?"+new URLSearchParams(t):""}`;return De({options:{url:e,method:"GET"}})}async function lut(){const t=`${$.apis.ncm.status.ntp}`;return De({options:{url:t,method:"GET"}})}async function cut(){const t=`${$.apis.ncm.status.bird}`;return De({options:{url:t,method:"GET"}})}async function uut({filter:t}={}){const[e,r]=await Promise.all([nut({filter:t}),_7()]);return{interfaces:e,vrfs:r}}async function dut({filter:t}={}){const[e,r]=await Promise.all([sut({filter:t}),_7()]);return{neighbors:e,vrfs:r}}async function fut({filter:t}={}){const[e,r]=await Promise.all([iut({filter:t}),_7()]);return{routes:e,vrfs:r}}async function put(){const t=$.apis.ncm.network.neighborsFlush;return await De({options:{url:t,method:"POST"}})}async function mut(t){const e=$.monitoring.clusters.reduce((r,n)=>({...r,[n]:Eze({nf:n})}),{});return Wt({loaderArgs:t,deferred:!0,data:{monitoring:nqe(),services:ma(),activeClusters:Rze(),ncmStatusNtp:lut(),...e}})}async function hut(t){return Wt({loaderArgs:t,deferred:!0,data:{alerts:Gae()}})}const gut={path:"monitoring",handle:vr({labelIntl:"route.monitoring",icon:a.jsx(ge.Monitoring,{})}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"alerts",replace:!0})},{path:"ue-status",handle:vr({labelIntl:"route.monitoring.ue-status",to:$.urls.monitoringUeStatus}),loader:Yct,element:a.jsx(Tat,{}),children:[{path:":id",loader:Kct,element:a.jsx(Iat,{}),children:[{path:"udm-re-attach",action:Dlt,loader:()=>rt("..")},{path:"amf",loader:Qct,element:a.jsx(Rat,{}),children:[{path:"amf-remove",action:Ilt,loader:()=>rt("..")}]},{path:"smf",loader:Zct,element:a.jsx(qat,{})},{path:"upf",loader:Xct,element:a.jsx(rlt,{})},{path:"udr",loader:Jct,element:a.jsx(Xat,{})},{path:"mme",loader:eut,element:a.jsx(Lat,{}),children:[{path:"mme-disconnect",action:$lt,loader:()=>rt("..")},{path:"mme-detach",action:Olt,loader:()=>rt("..")},{path:"mme-purge",action:Llt,loader:()=>rt("..")}]},{path:"sgwc",loader:tut,element:a.jsx(zat,{})},{path:"pcf",loader:rut,element:a.jsx(Fat,{})}]}]}]},{element:a.jsx(Or,{transparent:!0}),children:[{path:"alerts",handle:vr({labelIntl:"route.monitoring.alerts",to:$.urls.monitoringAlerts}),loader:hut,element:a.jsx(glt,{})}]}]},_ut=t=>{const e=he.c(39),{sessions:r}=t,n=Ye();let s;e[0]!==n?(s=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.ip_address"}),e[0]=n,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"ip_address",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==n?(o=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.interface"}),e[4]=n,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"interface",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==n?(c=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.state"}),e[8]=n,e[9]=c):c=e[9];let u;e[10]!==c?(u={key:"state",label:c},e[10]=c,e[11]=u):u=e[11];let d;e[12]!==n?(d=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.since"}),e[12]=n,e[13]=d):d=e[13];let f;e[14]!==d?(f={key:"since",label:d},e[14]=d,e[15]=f):f=e[15];let p;e[16]!==n?(p=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.interval"}),e[16]=n,e[17]=p):p=e[17];let m;e[18]!==p?(m={key:"interval",label:p},e[18]=p,e[19]=m):m=e[19];let h;e[20]!==n?(h=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions.timeout"}),e[20]=n,e[21]=h):h=e[21];let _;e[22]!==h?(_={key:"timeout",label:h},e[22]=h,e[23]=_):_=e[23];let g;e[24]!==m||e[25]!==_||e[26]!==i||e[27]!==l||e[28]!==u||e[29]!==f?(g=[i,l,u,f,m,_],e[24]=m,e[25]=_,e[26]=i,e[27]=l,e[28]=u,e[29]=f,e[30]=g):g=e[30];const y=g;let b;e[31]!==n?(b=n.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.sessions"}),e[31]=n,e[32]=b):b=e[32];let x;e[33]!==y||e[34]!==r?(x=a.jsx(Br,{data:r,orderBy:"ip_address",page:0,rowsCount:r.length,rowsPerPage:r.length,rowKey:"ip_address",columns:y,hidePagination:!0,hideRowsCount:!0}),e[33]=y,e[34]=r,e[35]=x):x=e[35];let w;return e[36]!==b||e[37]!==x?(w=a.jsx(pr,{title:b,folder:!0,dense:!0,elevation:2,children:x}),e[36]=b,e[37]=x,e[38]=w):w=e[38],w},Oue=()=>{const t=he.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={p:2},t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(te,{fullHeight:!0,sx:e,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})}),t[1]=r):r=t[1],r},vut=I.memo(function(){const e=he.c(11),r=Ye(),n=Gr();let s;e[0]!==r?(s=r.formatMessage({id:"ncm_status.tabs.bird.bfd_sessions.name"}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==s?(i=[{key:"name",label:s}],e[2]=s,e[3]=i):i=e[3];const o=i;let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Oue,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(en,{}),e[5]=c):c=e[5];let u;e[6]!==o?(u=f=>{const{bfd_sessions:p}=f;return a.jsx(Br,{autoScale:!0,data:p||[],orderBy:"name",page:0,rowsCount:p?.length,rowsPerPage:p?.length,rowKey:"name",columns:o,hidePagination:!0,rowDetail:{content:yut}})},e[6]=o,e[7]=u):u=e[7];let d;return e[8]!==n.bird||e[9]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:n.bird,errorElement:c,children:u})}),e[8]=n.bird,e[9]=u,e[10]=d):d=e[10],d});function yut(t){const{sessions:e}=t;return a.jsx(_ut,{sessions:e})}const but=I.memo(function(){const e=he.c(38),r=Ye(),n=Gr();let s;e[0]!==r?(s=r.formatMessage({id:"ncm_status.tabs.bird.protocols.name"}),e[0]=r,e[1]=s):s=e[1];let i;e[2]!==s?(i={key:"name",label:s},e[2]=s,e[3]=i):i=e[3];let o;e[4]!==r?(o=r.formatMessage({id:"ncm_status.tabs.bird.protocols.proto"}),e[4]=r,e[5]=o):o=e[5];let l;e[6]!==o?(l={key:"proto",label:o},e[6]=o,e[7]=l):l=e[7];let c;e[8]!==r?(c=r.formatMessage({id:"ncm_status.tabs.bird.protocols.table"}),e[8]=r,e[9]=c):c=e[9];let u;e[10]!==c?(u={key:"table",label:c},e[10]=c,e[11]=u):u=e[11];let d;e[12]!==r?(d=r.formatMessage({id:"ncm_status.tabs.bird.protocols.state"}),e[12]=r,e[13]=d):d=e[13];let f;e[14]!==d?(f={key:"state",label:d},e[14]=d,e[15]=f):f=e[15];let p;e[16]!==r?(p=r.formatMessage({id:"ncm_status.tabs.bird.protocols.since"}),e[16]=r,e[17]=p):p=e[17];let m;e[18]!==p?(m={key:"since",label:p},e[18]=p,e[19]=m):m=e[19];let h;e[20]!==r?(h=r.formatMessage({id:"ncm_status.tabs.bird.protocols.info"}),e[20]=r,e[21]=h):h=e[21];let _;e[22]!==h?(_={key:"info",label:h},e[22]=h,e[23]=_):_=e[23];let g;e[24]!==i||e[25]!==_||e[26]!==l||e[27]!==u||e[28]!==f||e[29]!==m?(g=[i,l,u,f,m,_],e[24]=i,e[25]=_,e[26]=l,e[27]=u,e[28]=f,e[29]=m,e[30]=g):g=e[30];const y=g;let b;e[31]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Oue,{}),e[31]=b):b=e[31];let x;e[32]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(en,{}),e[32]=x):x=e[32];let w;e[33]!==y?(w=k=>{const{protocols:A}=k;return a.jsx(Br,{autoScale:!0,data:A||[],orderBy:"name",page:0,rowsCount:A?.length,rowsPerPage:A?.length,rowKey:"name",columns:y,hidePagination:!0})},e[33]=y,e[34]=w):w=e[34];let C;return e[35]!==n.bird||e[36]!==w?(C=a.jsx(I.Suspense,{fallback:b,children:a.jsx(Qt,{resolve:n.bird,errorElement:x,children:w})}),e[35]=n.bird,e[36]=w,e[37]=C):C=e[37],C}),ex=t=>{const e=he.c(14),{initialSortingState:r,getColumnValue:n,getColumnType:s}=t,[i,o]=I.useState(r);let l;e[0]!==n?(l=(g,y,b,x)=>x*n(g,b).localeCompare(n(y,b)),e[0]=n,e[1]=l):l=e[1];const c=l;let u;e[2]!==n?(u=(g,y,b,x)=>x*(n(g,b)>n(y,b)?1:-1),e[2]=n,e[3]=u):u=e[3];const d=u;let f;e[4]!==s||e[5]!==d||e[6]!==c?(f=(g,y)=>{const{column:b,direction:x}=y,w=s(b),C=x===Gl.ASC?1:-1;return[...g].sort((k,A)=>w==="string"?c(k,A,b,C):d(k,A,b,C))},e[4]=s,e[5]=d,e[6]=c,e[7]=f):f=e[7];const p=f;let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{const{column:y,direction:b}=g;o(x=>({column:y,direction:x.column!==y?Gl.ASC:b}))},e[8]=m):m=e[8];const h=m;let _;return e[9]!==d||e[10]!==p||e[11]!==i||e[12]!==c?(_={stringSort:c,numberSort:d,sort:p,updateSorting:h,sorting:i,setSorting:o},e[9]=d,e[10]=p,e[11]=i,e[12]=c,e[13]=_):_=e[13],_};function Uv({urlOrSearchParams:t}){let e;try{e=new URL(t).searchParams}catch{e=new URLSearchParams(t)}return Object.fromEntries(e)}function Lue(t){return t==="true"}const tp="all",tx=t=>{const e=he.c(34),{vrfs:r,filterKeys:n}=t,s=Ye(),{search:i}=to();let o;e[0]!==i?(o=Uv({urlOrSearchParams:i}),e[0]=i,e[1]=o):o=e[1];const l=o,c=ys();let u;e[2]!==l.table||e[3]!==n?(u=!!n&&n.includes("table")&&l.table!==void 0,e[2]=l.table,e[3]=n,e[4]=u):u=e[4];const[d,f]=I.useState(u),[p,m]=I.useState(l.table);let h;e[5]!==l||e[6]!==c?(h=R=>{const D=Object.fromEntries(Object.entries({...l,...R}).filter(xut)),O=new URLSearchParams(D),N=`${D?`?${O}`:""}`;c(N)},e[5]=l,e[6]=c,e[7]=h):h=e[7];const _=h;let g;e[8]!==_?(g=R=>{_({vrf:R!==tp?R:void 0})},e[8]=_,e[9]=g):g=e[9];const y=g;let b;e[10]!==_?(b=R=>{f(R==="table"),R!=="table"&&m(void 0),_(R==="table"?{vrf:void 0}:{vrf:void 0,table:void 0})},e[10]=_,e[11]=b):b=e[11];const x=b;let w;e[12]!==_?(w=R=>{m(R),_({table:R})},e[12]=_,e[13]=w):w=e[13];const C=w,k=n&&n.includes("vrf")?"space-between":"flex-end";let A;e[14]===Symbol.for("react.memo_cache_sentinel")?(A={flex:"0 0 auto"},e[14]=A):A=e[14];let P;e[15]!==l.vrf||e[16]!==n||e[17]!==x||e[18]!==C||e[19]!==y||e[20]!==s||e[21]!==d||e[22]!==p||e[23]!==r?(P=(!n||n&&n.includes("vrf"))&&a.jsxs(te,{direction:"row",nowrap:!0,children:[n&&n.includes("table")&&a.jsxs(a.Fragment,{children:[a.jsx(gt,{sx:{width:"150px"},children:a.jsxs(qs,{label:s.formatMessage({id:"ncm_status.filter.type"}),size:"small",value:d?"table":"vrf",onChange:R=>x(R.target.value),children:[a.jsx(En,{value:"vrf",children:s.formatMessage({id:"ncm_status.filter.vrf"})},"vrf"),a.jsx(En,{value:"table",children:s.formatMessage({id:"ncm_status.filter.table"})},"table")]})}),d&&a.jsx(gt,{sx:{width:"150px"},children:a.jsx(dt,{size:"small",placeholder:s.formatMessage({id:"ncm_status.filter.table"}),value:p,onChange:R=>C(R.target.value)})})]}),!d&&r&&a.jsx(gt,{sx:{width:"150px"},children:a.jsxs(qs,{label:s.formatMessage({id:"ncm_status.filter.vrf"}),size:"small",value:l.vrf||tp,onChange:R=>y(R.target.value),children:[a.jsx(En,{value:tp,children:tp},tp),r.map(Sut)]})})]}),e[15]=l.vrf,e[16]=n,e[17]=x,e[18]=C,e[19]=y,e[20]=s,e[21]=d,e[22]=p,e[23]=r,e[24]=P):P=e[24];let T;e[25]!==l.family||e[26]!==n||e[27]!==_||e[28]!==s?(T=(!n||n?.includes("family"))&&a.jsxs(lk,{value:l.family,onChange:R=>_({family:R}),exclusive:!0,color:"primary",children:[a.jsx(kh,{value:"inet",children:s.formatMessage({id:"ncm_status.filter.family.inet"})}),a.jsx(kh,{value:"inet6",children:s.formatMessage({id:"ncm_status.filter.family.inet6"})})]}),e[25]=l.family,e[26]=n,e[27]=_,e[28]=s,e[29]=T):T=e[29];let j;return e[30]!==T||e[31]!==k||e[32]!==P?(j=a.jsxs(te,{direction:"row",justify:k,sx:A,children:[P,T]}),e[30]=T,e[31]=k,e[32]=P,e[33]=j):j=e[33],j};function xut(t){const[,e]=t;return!!e}function Sut(t){return a.jsx(En,{value:t.name??tp,children:`${t.name??tp}${t.table?" ("+t.table+")":""}`},t.name??tp)}const rx=()=>{const t=he.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},t[0]=e):e=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(gt,{sx:e,children:a.jsx(Dt,{variant:"rounded",sx:{height:"44px"}})}),t[1]=r):r=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n={flex:"1 1 auto",p:2},t[2]=n):n=t[2];let s;return t[3]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(te,{nowrap:!0,fullHeight:!0,children:[r,a.jsx(gt,{sx:n,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})})]}),t[3]=s):s=t[3],s},wut=t=>{const e=he.c(14),{linkInfo:r}=t,n=Ye();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={maxHeight:"400px",overflow:"auto",p:1},e[0]=s):s=e[0];let i;e[1]!==n||e[2]!==r.info_data?(i=!!r.info_data&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_data"})}),Object.entries(r.info_data).filter(Cut).map(Aut)]}),e[1]=n,e[2]=r.info_data,e[3]=i):i=e[3];let o;e[4]!==n||e[5]!==r.info_slave_kind?(o=!!r.info_slave_kind&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_slave_kind"})}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r.info_slave_kind})]}),e[4]=n,e[5]=r.info_slave_kind,e[6]=o):o=e[6];let l;e[7]!==n||e[8]!==r.info_slave_data?(l=!!r.info_slave_data&&a.jsxs(te,{align:"normal",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"800",fontSize:"medium",sx:{textTransform:"uppercase"},children:n.formatMessage({id:"ncm_status.tabs.network_interfaces.linkinfo.info_slave_data"})}),Object.entries(r.info_slave_data).filter(kut).map(Mut)]}),e[7]=n,e[8]=r.info_slave_data,e[9]=l):l=e[9];let c;return e[10]!==i||e[11]!==o||e[12]!==l?(c=a.jsxs(te,{justify:"stretch",align:"normal",nowrap:!0,sx:s,spacing:3,children:[i,o,l]}),e[10]=i,e[11]=o,e[12]=l,e[13]=c):c=e[13],c};function Cut(t){return t!==void 0}function Aut(t){const[e,r]=t;return a.jsxs(te,{align:"normal",nowrap:!0,spacing:1,direction:"row",children:[a.jsxs(_e,{fontWeight:"500",fontSize:"medium",children:[e,":"]}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r})]},e)}function kut(t){return t!==void 0}function Mut(t){const[e,r]=t;return a.jsxs(te,{align:"normal",nowrap:!0,spacing:1,direction:"row",children:[a.jsxs(_e,{fontWeight:"500",fontSize:"medium",children:[e,":"]}),a.jsx(_e,{fontWeight:"600",fontSize:"medium",children:r})]},e)}const Put=t=>{const e=he.c(7),{linkInfo:r}=t;let n;e[0]!==r.info_kind?(n=a.jsx(_e,{type:"body2",children:r.info_kind}),e[0]=r.info_kind,e[1]=n):n=e[1];let s;e[2]!==r?(s=r.info_data||r.info_slave_data||r.info_slave_kind?a.jsx(Mn,{title:a.jsx(wut,{linkInfo:r}),opaque:!0,children:a.jsx(Zr,{sx:{cursor:"default"},children:a.jsx(ge.Info,{size:18})})}):null,e[2]=r,e[3]=s):s=e[3];let i;return e[4]!==n||e[5]!==s?(i=a.jsxs(te,{direction:"row",spacing:.5,align:"center",nowrap:!0,children:[n,s]}),e[4]=n,e[5]=s,e[6]=i):i=e[6],i},jut=I.memo(function(){const e=he.c(55),r=Ye(),n=Gr(),s=On(),i=Eut,o=Rut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"ifindex"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(W,K)=>{u({column:K,direction:W})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.network_interfaces.id"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"ifindex",sortable:!0},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.network_interfaces.interface"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"ifname",sortable:!0},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.network_interfaces.interface_type"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"linkinfo.info_kind",sortable:!0,cellRender:Iut},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==r?(x=r.formatMessage({id:"ncm_status.tabs.network_interfaces.mtu"}),e[15]=r,e[16]=x):x=e[16];let w;e[17]!==x?(w={label:x,key:"mtu",sortable:!0},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==r?(C=r.formatMessage({id:"ncm_status.tabs.network_interfaces.status"}),e[19]=r,e[20]=C):C=e[20];let k;e[21]!==C?(k={label:C,key:"flags",sortable:!0,cellRender:Dut},e[21]=C,e[22]=k):k=e[22];let A;e[23]!==r?(A=r.formatMessage({id:"ncm_status.tabs.network_interfaces.address"}),e[23]=r,e[24]=A):A=e[24];let P;e[25]!==A?(P={label:A,key:"address",sortable:!0},e[25]=A,e[26]=P):P=e[26];let T;e[27]!==r?(T=r.formatMessage({id:"ncm_status.tabs.network_interfaces.ip_address"}),e[27]=r,e[28]=T):T=e[28];let j;e[29]!==T?(j={label:T,key:"addr_info",sortable:!0,cellRender:Out},e[29]=T,e[30]=j):j=e[30];let R;e[31]!==r?(R=r.formatMessage({id:"ncm_status.tabs.network_interfaces.master"}),e[31]=r,e[32]=R):R=e[32];let D;e[33]!==R?(D={label:R,key:"master",sortable:!0},e[33]=R,e[34]=D):D=e[34];let O;e[35]!==k||e[36]!==P||e[37]!==j||e[38]!==D||e[39]!==h||e[40]!==g||e[41]!==b||e[42]!==w?(O=[h,g,b,w,k,P,j,D],e[35]=k,e[36]=P,e[37]=j,e[38]=D,e[39]=h,e[40]=g,e[41]=b,e[42]=w,e[43]=O):O=e[43];const N=O;let F;e[44]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(rx,{}),e[44]=F):F=e[44];let U;e[45]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(en,{}),e[45]=U):U=e[45];let z;e[46]!==N||e[47]!==p||e[48]!==s.state||e[49]!==c||e[50]!==d?(z=W=>{const{interfaces:K,vrfs:q}=W;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,sx:{overflow:"auto",width:"100%"},children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:q,filterKeys:["vrf","family"]})}),a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:N,rowKey:"ifindex",page:0,hidePagination:!0,data:c(K,d),rowsCount:K?.length||0,rowsPerPage:K?.length||0,orderBy:d.column,onSort:p,order:d.direction})]})},e[46]=N,e[47]=p,e[48]=s.state,e[49]=c,e[50]=d,e[51]=z):z=e[51];let H;return e[52]!==n.interfacesStatus||e[53]!==z?(H=a.jsx(I.Suspense,{fallback:F,children:a.jsx(Qt,{resolve:n.interfacesStatus,errorElement:U,children:z})}),e[52]=n.interfacesStatus,e[53]=z,e[54]=H):H=e[54],H});function Tut(t){return`${t.local}/${t.prefixlen}`}function Eut(t,e){switch(e){case"linkinfo":return t.linkinfo?.info_kind??"";case"addr_info":return t.addr_info?.map(Tut).sort().at(0)??"";case"flags":return t.flags?.join(", ")??"";case"address":case"master":return t[e]??"";default:return t[e]}}function Rut(t){switch(t){case"ifname":case"linkinfo":case"flags":case"address":case"addr_info":case"master":return"string";default:return"number"}}function Iut(t){return a.jsx(Put,{linkInfo:t.linkinfo})}function Dut(t){const{flags:e}=t;return a.jsx(_e,{type:"body2",children:e?.join(", ")})}function $ut(t){return a.jsx(_e,{type:"body2",children:`${t.local}/${t.prefixlen}`},`${t.local}/${t.prefixlen}`)}function Out(t){const{addr_info:e}=t;return a.jsx(a.Fragment,{children:e?.map($ut)})}const Lut=I.memo(function(){const e=he.c(39),r=Ye(),n=Gr(),s=On(),{submit:i}=gr();let o;e[0]!==i?(o=()=>{i({},{method:"POST",encType:"application/json",action:"flush"})},e[0]=i,e[1]=o):o=e[1];const l=o,c=Nut,u=Fut;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={initialSortingState:{direction:Gl.ASC,column:"dst"},getColumnValue:c,getColumnType:u},e[2]=d):d=e[2];const{sort:f,updateSorting:p,sorting:m}=ex(d);let h;e[3]!==p?(h=(N,F)=>{p({column:F,direction:N})},e[3]=p,e[4]=h):h=e[4];const _=h;let g;e[5]!==r?(g=r.formatMessage({id:"ncm_status.tabs.neighbors.dst"}),e[5]=r,e[6]=g):g=e[6];let y;e[7]!==g?(y={label:g,key:"dst",sortable:!0},e[7]=g,e[8]=y):y=e[8];let b;e[9]!==r?(b=r.formatMessage({id:"ncm_status.tabs.neighbors.lladdr"}),e[9]=r,e[10]=b):b=e[10];let x;e[11]!==b?(x={label:b,key:"lladdr",sortable:!0},e[11]=b,e[12]=x):x=e[12];let w;e[13]!==r?(w=r.formatMessage({id:"ncm_status.tabs.neighbors.dev"}),e[13]=r,e[14]=w):w=e[14];let C;e[15]!==w?(C={label:w,key:"dev",sortable:!0},e[15]=w,e[16]=C):C=e[16];let k;e[17]!==r?(k=r.formatMessage({id:"ncm_status.tabs.neighbors.state"}),e[17]=r,e[18]=k):k=e[18];let A;e[19]!==k?(A={label:k,key:"state",sortable:!0},e[19]=k,e[20]=A):A=e[20];let P;e[21]!==A||e[22]!==y||e[23]!==x||e[24]!==C?(P=[y,x,C,A],e[21]=A,e[22]=y,e[23]=x,e[24]=C,e[25]=P):P=e[25];const T=P;let j;e[26]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(rx,{}),e[26]=j):j=e[26];let R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(en,{}),e[27]=R):R=e[27];let D;e[28]!==T||e[29]!==l||e[30]!==_||e[31]!==r||e[32]!==s.state||e[33]!==f||e[34]!==m?(D=N=>{const{neighbors:F,vrfs:U}=N;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:U,filterKeys:["vrf","family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:T,rowKey:"lladdr",page:0,hidePagination:!0,data:f(F,m),rowsCount:F?.length||0,rowsPerPage:F?.length||0,orderBy:m.column,onSort:_,order:m.direction,customFooterComponent:a.jsx(gt,{sx:{px:1},children:a.jsx(Ze,{startIcon:a.jsx(ge.Clear,{}),disabled:s.state==="loading"||!Ue(ie.monitoring),loading:s.state==="submitting",variant:"outlined",onClick:()=>l(),text:r.formatMessage({id:"ncm_status.tabs.neighbors.actions.flush"})})})})})]})},e[28]=T,e[29]=l,e[30]=_,e[31]=r,e[32]=s.state,e[33]=f,e[34]=m,e[35]=D):D=e[35];let O;return e[36]!==n.neighborsStatus||e[37]!==D?(O=a.jsx(I.Suspense,{fallback:j,children:a.jsx(Qt,{resolve:n.neighborsStatus,errorElement:R,children:D})}),e[36]=n.neighborsStatus,e[37]=D,e[38]=O):O=e[38],O});function Nut(t,e){switch(e){case"state":return t[e]?.sort()?.join(", ");default:return t[e]??""}}function Fut(){return"string"}const Uut=I.memo(function(){const e=he.c(39),r=Ye(),n=Gr(),s=On();let i;e[0]!==r?(i=r.formatMessage({id:"ncm_status.tabs.routes.dst"}),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o={label:i,key:"dst"},e[2]=i,e[3]=o):o=e[3];let l;e[4]!==r?(l=r.formatMessage({id:"ncm_status.tabs.routes.gateway"}),e[4]=r,e[5]=l):l=e[5];let c;e[6]!==l?(c={label:l,key:"gateway"},e[6]=l,e[7]=c):c=e[7];let u;e[8]!==r?(u=r.formatMessage({id:"ncm_status.tabs.routes.dev"}),e[8]=r,e[9]=u):u=e[9];let d;e[10]!==u?(d={label:u,key:"dev"},e[10]=u,e[11]=d):d=e[11];let f;e[12]!==r?(f=r.formatMessage({id:"ncm_status.tabs.routes.prefsrc"}),e[12]=r,e[13]=f):f=e[13];let p;e[14]!==f?(p={label:f,key:"prefsrc"},e[14]=f,e[15]=p):p=e[15];let m;e[16]!==r?(m=r.formatMessage({id:"ncm_status.tabs.routes.metric"}),e[16]=r,e[17]=m):m=e[17];let h;e[18]!==m?(h={label:m,key:"metric"},e[18]=m,e[19]=h):h=e[19];let _;e[20]!==r?(_=r.formatMessage({id:"ncm_status.tabs.routes.protocol"}),e[20]=r,e[21]=_):_=e[21];let g;e[22]!==_?(g={label:_,key:"protocol"},e[22]=_,e[23]=g):g=e[23];let y;e[24]!==o||e[25]!==g||e[26]!==c||e[27]!==d||e[28]!==p||e[29]!==h?(y=[o,c,d,p,h,g],e[24]=o,e[25]=g,e[26]=c,e[27]=d,e[28]=p,e[29]=h,e[30]=y):y=e[30];const b=y;let x;e[31]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(rx,{}),e[31]=x):x=e[31];let w;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(en,{}),e[32]=w):w=e[32];let C;e[33]!==b||e[34]!==s.state?(C=A=>{const{routes:P,vrfs:T}=A;return a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{vrfs:T,filterKeys:["vrf","family","table"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:b,rowKey:"dst",page:0,hidePagination:!0,data:P,rowsCount:P?.length||0,rowsPerPage:P?.length||0,orderBy:"dst"})})]})},e[33]=b,e[34]=s.state,e[35]=C):C=e[35];let k;return e[36]!==n.routesStatus||e[37]!==C?(k=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:n.routesStatus,errorElement:w,children:C})}),e[36]=n.routesStatus,e[37]=C,e[38]=k):k=e[38],k}),But=I.memo(function(){const e=he.c(30),r=Ye(),n=Gr(),s=On(),i=zut,o=qut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"priority"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(T,j)=>{u({column:j,direction:T})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.rules.priority"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"priority",sortable:!0},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.rules.rule"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"action",cellRender:Vut},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.rules.family"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"family",sortable:!0},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==h||e[16]!==g||e[17]!==b?(x=[h,g,b],e[15]=h,e[16]=g,e[17]=b,e[18]=x):x=e[18];const w=x;let C;e[19]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(rx,{}),e[19]=C):C=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(en,{}),e[20]=k):k=e[20];let A;e[21]!==w||e[22]!==p||e[23]!==s.state||e[24]!==c||e[25]!==d?(A=T=>a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{filterKeys:["family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:w,rowKey:"priority",page:0,hidePagination:!0,data:c(T,d),rowsCount:T?.length||0,rowsPerPage:T?.length||0,orderBy:d.column,onSort:p,order:d.direction})})]}),e[21]=w,e[22]=p,e[23]=s.state,e[24]=c,e[25]=d,e[26]=A):A=e[26];let P;return e[27]!==n.rules||e[28]!==A?(P=a.jsx(I.Suspense,{fallback:C,children:a.jsx(Qt,{resolve:n.rules,errorElement:k,children:A})}),e[27]=n.rules,e[28]=A,e[29]=P):P=e[29],P});function zut(t,e){return t[e]?.toString()??""}function qut(t){switch(t){case"priority":return"number";default:return"string"}}function Vut(t){const e=[];if(t.src){let r=`from ${t.src}`;t.srclen&&(r=r+`/${t.srclen}`),e.push(r)}if(t.dst){let r=`to ${t.dst}`;t.dstlen&&(r=r+`/${t.dstlen}`),e.push(r)}return t.iif&&e.push(`iif ${t.iif}`),t.oif&&e.push(`oif ${t.oif}`),t.l3mdev===null?e.push("lookup [l3mdev-table]"):e.push(`lookup ${t.table}`),t.action&&e.push(`${t.action}`),t.protocol&&e.push(`proto ${t.protocol}`),a.jsx(_e,{type:"body2",children:e.join(" ")})}const Hut=I.memo(function(){const e=he.c(40),r=Ye(),n=Gr(),s=On(),i=Gut,o=Wut;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={initialSortingState:{direction:Gl.ASC,column:"protocol"},getColumnValue:i,getColumnType:o},e[0]=l):l=e[0];const{sort:c,updateSorting:u,sorting:d}=ex(l);let f;e[1]!==u?(f=(O,N)=>{u({column:N,direction:O})},e[1]=u,e[2]=f):f=e[2];const p=f;let m;e[3]!==r?(m=r.formatMessage({id:"ncm_status.tabs.sockets.local_address"}),e[3]=r,e[4]=m):m=e[4];let h;e[5]!==m?(h={label:m,key:"local_address",sortable:!0,cellRender:Yut},e[5]=m,e[6]=h):h=e[6];let _;e[7]!==r?(_=r.formatMessage({id:"ncm_status.tabs.sockets.peer_address"}),e[7]=r,e[8]=_):_=e[8];let g;e[9]!==_?(g={label:_,key:"peer_address",sortable:!0,cellRender:Kut},e[9]=_,e[10]=g):g=e[10];let y;e[11]!==r?(y=r.formatMessage({id:"ncm_status.tabs.sockets.protocol"}),e[11]=r,e[12]=y):y=e[12];let b;e[13]!==y?(b={label:y,key:"protocol",sortable:!0},e[13]=y,e[14]=b):b=e[14];let x;e[15]!==r?(x=r.formatMessage({id:"ncm_status.tabs.sockets.state"}),e[15]=r,e[16]=x):x=e[16];let w;e[17]!==x?(w={label:x,key:"state",sortable:!0},e[17]=x,e[18]=w):w=e[18];let C;e[19]!==r?(C=r.formatMessage({id:"ncm_status.tabs.sockets.process"}),e[19]=r,e[20]=C):C=e[20];let k;e[21]!==C?(k={label:C,key:"process",sortable:!0,cellRender:Qut},e[21]=C,e[22]=k):k=e[22];let A;e[23]!==k||e[24]!==h||e[25]!==g||e[26]!==b||e[27]!==w?(A=[h,g,b,w,k],e[23]=k,e[24]=h,e[25]=g,e[26]=b,e[27]=w,e[28]=A):A=e[28];const P=A;let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(rx,{}),e[29]=T):T=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(en,{}),e[30]=j):j=e[30];let R;e[31]!==P||e[32]!==p||e[33]!==s.state||e[34]!==c||e[35]!==d?(R=O=>a.jsxs(te,{nowrap:!0,fullHeight:!0,spacing:0,children:[a.jsx(gt,{sx:{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"divider",p:2},children:a.jsx(tx,{filterKeys:["family"]})}),a.jsx(gt,{sx:{flex:"1 1 auto",height:"100%",overflow:"hidden"},children:a.jsx(Br,{autoScale:!0,loading:s.state!=="idle",columns:P,rowKey:"local_address",page:0,hidePagination:!0,data:c(O,d),rowsCount:O?.length||0,rowsPerPage:O?.length||0,orderBy:d.column,onSort:p,order:d.direction})})]}),e[31]=P,e[32]=p,e[33]=s.state,e[34]=c,e[35]=d,e[36]=R):R=e[36];let D;return e[37]!==n.sockets||e[38]!==R?(D=a.jsx(I.Suspense,{fallback:T,children:a.jsx(Qt,{resolve:n.sockets,errorElement:j,children:R})}),e[37]=n.sockets,e[38]=R,e[39]=D):D=e[39],D});function Gut(t,e){switch(e){case"process":return t[e]?.join(", ")??"";default:return t[e]??""}}function Wut(){return"string"}function Yut(t){const{local_address:e,local_port:r,interface:n}=t;return a.jsxs(_e,{type:"body2",children:[e,":",r,n?`%${n}`:""]})}function Kut(t){const{peer_address:e,peer_port:r}=t;return a.jsxs(_e,{type:"body2",children:[e,":",r]})}function Qut(t){const{process:e}=t;return e?.[0]&&a.jsxs(_e,{type:"body2",children:[e?.[0]?.name," (",e?.[0]?.pid,")"]})}async function Zut(){const t=await put();return xt(t)?Ar():Nt(),Ft(t)}async function Xut(t){const{kind:e,vrf:r,master:n,parent:s,family:i}=Uv({urlOrSearchParams:t.request.url}),o={...e&&{kind:e},...r&&{vrf:r},...n&&{master:n},...s&&{parent:s},...i&&{family:i}};return Wt({loaderArgs:t,deferred:!0,data:{interfacesStatus:uut({filter:o})}})}async function Jut(t){const{vrf:e,family:r}=Uv({urlOrSearchParams:t.request.url}),n={...e&&{vrf:e},...r&&{family:r}};return Wt({loaderArgs:t,deferred:!0,data:{neighborsStatus:dut({filter:n})}})}async function edt(t){const{vrf:e,family:r,table:n}=Uv({urlOrSearchParams:t.request.url}),s={...r&&{family:r},...n&&{table:n},...e&&!n&&{vrf:e}};return Wt({loaderArgs:t,deferred:!0,data:{routesStatus:fut({filter:s})}})}async function tdt(t){const{family:e}=Uv({urlOrSearchParams:t.request.url}),r={...e&&{family:e}};return Wt({loaderArgs:t,deferred:!0,data:{rules:out({filter:r})}})}async function rdt(t){const{family:e,proto:r}=Uv({urlOrSearchParams:t.request.url}),n={...e&&{family:e},...r&&{proto:r}};return Wt({loaderArgs:t,deferred:!0,data:{sockets:aut({filter:n})}})}async function QX(t){return Wt({loaderArgs:t,deferred:!0,data:{bird:cut()}})}const Gf=Pr(),ndt={path:"network",handle:vr({labelIntl:"route.ncm",icon:a.jsx(ge.NCM,{})}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.NCM),{path:"status",handle:vr({to:"status",labelIntl:"route.ncm.status"}),errorElement:a.jsx(Tr,{}),element:a.jsx(Ao,{keepQueryParams:!0,tabs:[{url:"interfaces",label:Gf.formatMessage({id:"route.ncm.status.interfaces"})},{url:"neighbors",label:Gf.formatMessage({id:"route.ncm.status.neighbors"})},{url:"routes",label:Gf.formatMessage({id:"route.ncm.status.routes"})},{url:"rules",label:Gf.formatMessage({id:"route.ncm.status.rules"})},{url:"sockets",label:Gf.formatMessage({id:"route.ncm.status.sockets"})},{url:"bird",label:Gf.formatMessage({id:"route.ncm.status.bird"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"interfaces",replace:!0})},{path:"interfaces",errorElement:a.jsx(Tr,{}),element:a.jsx(jut,{}),loader:Xut},{path:"neighbors",errorElement:a.jsx(Tr,{}),element:a.jsx(Lut,{}),loader:Jut,children:[{action:Zut,path:"flush",loader:()=>rt("..")}]},{path:"routes",errorElement:a.jsx(Tr,{}),element:a.jsx(Uut,{}),loader:edt},{path:"rules",errorElement:a.jsx(Tr,{}),element:a.jsx(But,{}),loader:tdt},{path:"sockets",errorElement:a.jsx(Tr,{}),element:a.jsx(Hut,{}),loader:rdt},{path:"bird",errorElement:a.jsx(Tr,{}),element:a.jsx(la,{navs:[{url:"protocols",label:Gf.formatMessage({id:"route.ncm.status.bird.protocols"})},{url:"bfd-sessions",label:Gf.formatMessage({id:"route.ncm.status.bird.bfd_sessions"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"protocols",replace:!0})},{path:"protocols",element:a.jsx(but,{}),loader:QX},{path:"bfd-sessions",element:a.jsx(vut,{}),loader:QX}]}]}]}]},Si=Pr();var Nue=(t=>(t.IPV4="IPV4",t.IPV6="IPV6",t.IPV4V6="IPV4V6",t.UNSTRUCTURED="UNSTRUCTURED",t.ETHERNET="ETHERNET",t))(Nue||{});const sdt=Object.keys(Nue);var v7=(t=>(t["5G_EIR"]="5G_EIR",t.AF="AF",t.AMF="AMF",t.AUSF="AUSF",t.BSF="BSF",t.CBCF="CBCF",t.CHF="CHF",t.DRA="DRA",t.GMLC="GMLC",t.HSS="HSS",t.ICSCF="ICSCF",t.IMS_AS="IMS_AS",t.LMF="LMF",t.MME="MME",t.N3IWF="N3IWF",t.NEF="NEF",t.NRF="NRF",t.NSSAAF="NSSAAF",t.NSSF="NSSF",t.NWDAF="NWDAF",t.PCF="PCF",t.PCSCF="PCSCF",t.SCSAS="SCSAS",t.SCSCF="SCSCF",t.SEPP="SEPP",t.SMF="SMF",t.SMSF="SMSF",t.SOR_AF="SOR_AF",t.SPAF="SPAF",t.SCEF="SCEF",t.SCP="SCP",t.UCMF="UCMF",t.UDM="UDM",t.UDR="UDR",t.UDSF="UDSF",t.UPF="UPF",t))(v7||{});const idt=Object.keys(v7);var Eb=(t=>(t.REGISTERED="REGISTERED",t.SUSPENDED="SUSPENDED",t.UNDISCOVERABLE="UNDISCOVERABLE",t))(Eb||{});const odt=Object.keys(Eb);var b3=(t=>(t.N3="N3",t.N6="N6",t.N9="N9",t.DATA_FORWARDING="DATA_FORWARDING",t))(b3||{});function adt({sst:t,sd:e,sdRanges:r}){if(!t&&!e&&!r?.length)return;let n="";return t&&(n+=t),e&&(n+=`-${e}`),r?.length&&(n+=`-(${r.map(s=>{let i="";return s.start&&(i+=`${s.start}`),s.end&&(i+=`-${s.end}`),i}).join(", ")})`),n}function ldt({sst:t,sd:e}){if(!t&&!e)return;let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}function ZX({start:t,end:e}){return{_uuid:gn(),start:t??"",end:e??""}}function XX({start:t,end:e}){return{...t&&{start:t},...e&&{end:e}}}function cdt({nid:t,tac:e,plmnId:r}){return{_uuid:gn(),nid:t,tac:e,plmnId:{mcc:r.mcc??"",mnc:r.mnc??""}}}function udt({nid:t,tac:e,plmnId:r}){return{...t&&{nid:t},tac:e,plmnId:r}}function ddt({dnnUpfInfoList:t,redundantTransport:e,sNssai:r}){return{_uuid:gn(),sNssai:{sst:r.sst,...r.sd&&{sd:r.sd}},dnnUpfInfoList:t?.map(n=>({_uuid:gn(),dnn:n.dnn,pduSessionTypes:n.pduSessionTypes||[],ipv4AddressRanges:n.ipv4AddressRanges?.map(ZX)||[],ipv6PrefixRanges:n.ipv6PrefixRanges?.map(ZX)||[]})),redundantTransport:e||!1}}function fdt({sNssai:t,dnnUpfInfoList:e,redundantTransport:r}){return{sNssai:{sst:t.sst,...t.sd&&{sd:t.sd}},...r&&{redundantTransport:r},dnnUpfInfoList:e?.map(({dnn:n,pduSessionTypes:s,ipv6PrefixRanges:i,ipv4AddressRanges:o})=>{const l=o?.filter(u=>!!u.start||!!u.end)||[],c=i?.filter(u=>!!u.start||!!u.end)||[];return{dnn:n,...!!s?.length&&{pduSessionTypes:s}||[],...!!l?.length&&{ipv4AddressRanges:l?.map(XX)}||[],...!!c?.length&&{ipv6PrefixRanges:c?.map(XX)}||[]}})}}function pdt({interfaceType:t,networkInstance:e}){return{_uuid:gn(),interfaceType:t,networkInstance:e}}function mdt({interfaceType:t,networkInstance:e}){return{...t&&{interfaceType:t},networkInstance:e}}function hdt(t){return{nfType:t?.nfType||"",fqdn:t?.fqdn||"",ipv4Addresses:t?.ipv4Addresses||[],ipv6Addresses:t?.ipv6Addresses||[],nfInstanceId:t?.nfInstanceId||"",nfInstanceName:t?.nfInstanceName||"",nfStatus:t?.nfStatus||"",priority:t?.priority||"",capacity:t?.capacity||"",locality:t?.locality||"",sNssais:t?.sNssais?.map(e=>({sst:e.sst,sd:e.sd||"",sdRanges:e.sdRanges?.map(r=>({_uuid:gn(),start:r.start||"",end:r.end||""}))||[],isRangesActive:!!e.sdRanges?.length,_uuid:gn()}))||[],plmnList:t?.plmnList?.map(e=>({_uuid:gn(),mnc:e.mnc||"",mcc:e.mcc||""})),...t?.upfInfoList&&{upfInfoList:Object.entries(t?.upfInfoList)?.map(([e,r])=>({_uuid:e,taiList:r.taiList?.map(cdt)||[],sNssaiUpfInfoList:r.sNssaiUpfInfoList.map(ddt),ueIpAddrInd:r.ueIpAddrInd,interfaceUpfInfoList:r.interfaceUpfInfoList?.map(pdt)||[]}))}}}function JX(t){return{nfType:t.nfType,nfStatus:t.nfStatus,...t.nfInstanceId&&{nfInstanceId:t.nfInstanceId},...t.nfInstanceName&&{nfInstanceName:t.nfInstanceName},...t.fqdn&&{fqdn:t.fqdn},...t.ipv4Addresses&&!!t.ipv4Addresses.length&&{ipv4Addresses:t.ipv4Addresses},...t.ipv6Addresses&&!!t.ipv6Addresses.length&&{ipv6Addresses:t.ipv6Addresses},...t.priority&&{priority:t.priority},...t.capacity&&{capacity:t.capacity},...t.locality&&{locality:t.locality},...t.sNssais&&!!t.sNssais?.length&&{sNssais:t.sNssais?.map(r=>({sst:r.sst,...r.sd&&!r.isRangesActive&&{sd:r.sd},...!!r.sdRanges?.length&&r.isRangesActive&&{sdRanges:r.sdRanges.map(({start:n,end:s})=>({start:n,end:s}))}}))},...t.plmnList&&!!t.plmnList?.length&&{plmnList:t.plmnList?.map(r=>({mnc:r.mnc,mcc:r.mcc}))},...t.upfInfoList&&!!t.upfInfoList?.length&&{upfInfoList:t.upfInfoList.reduce((r,{_uuid:n,taiList:s,sNssaiUpfInfoList:i,ueIpAddrInd:o,interfaceUpfInfoList:l})=>({...r,[n]:{...!!s?.length&&{taiList:s.map(udt)},ueIpAddrInd:o??!1,...i&&{sNssaiUpfInfoList:i.map(fdt)},...!!l?.length&&{interfaceUpfInfoList:l.map(mdt)}}}),{})}}}const gdt=dr().shape({nfInstanceId:We().matches(new RegExp($.regex.uuid)),nfType:We().required(Si.formatMessage({id:"validation.required"})),nfStatus:We().required(Si.formatMessage({id:"validation.required"})),fqdn:We().test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),ipv4Addresses:yr().of(We().matches(new RegExp($.regex.ipv4Addr))).test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),ipv6Addresses:yr().of(We().matches(new RegExp($.regex.ipv6Addr))).test("oneOfFqdnIpsRequired",Si.formatMessage({id:"nrf_static_profile.form.errors.fqdn_ips_at_least_one"}),(t,e)=>!!e.parent.fqdn||!!e.parent.ipv4Addresses?.length||!!e.parent.ipv6Addresses?.length),nfInstanceName:We(),priority:kn().min(0).max(65535),capacity:kn().min(0).max(65535),locality:We(),sNssais:yr().of(dr().shape({sst:kn().required(Si.formatMessage({id:"validation.required"})).min(0).max(255),isRangesActive:li(),sd:We().matches(new RegExp($.regex.sd)),sdRanges:yr().of(dr().shape({start:We().matches(new RegExp($.regex.sd)).required(Si.formatMessage({id:"validation.required"})),end:We().matches(new RegExp($.regex.sd)).required(Si.formatMessage({id:"validation.required"}))}))})),plmnList:yr().of(dr().shape({mcc:We().matches(new RegExp($.regex.mcc)).required(Si.formatMessage({id:"validation.required"})),mnc:We().matches(new RegExp($.regex.mnc)).required(Si.formatMessage({id:"validation.required"}))})),upfInfoList:yr().of(dr().shape({ueIpAddrInd:li(),interfaceUpfInfoList:yr().of(dr().shape({networkInstance:We(),interfaceType:We().required(Si.formatMessage({id:"validation.required"}))})),taiList:yr().of(dr().shape({plmnId:dr().shape({mcc:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.mcc)),mnc:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.mnc))}),tac:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.tac))})),sNssaiUpfInfoList:yr().of(dr().shape({sNssai:dr().shape({sd:We().matches(new RegExp($.regex.sd)),sst:kn().required(Si.formatMessage({id:"validation.required"})).min(0).max(255)}),dnnUpfInfoList:yr().of(dr().shape({dnn:We().required(Si.formatMessage({id:"validation.required"})),pduSessionTypes:yr().of(We()),ipv4AddressRanges:yr().of(dr().shape({start:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv4Addr)),end:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv4Addr))})),ipv6PrefixRanges:yr().of(dr().shape({start:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv6Prefix)),end:We().required(Si.formatMessage({id:"validation.required"})).matches(new RegExp($.regex.ipv6Prefix))}))})).min(1),redundantTransport:li()})).required().min(1)})).when("$nfType",(t,e)=>t==="UPF"?e.required(Si.formatMessage({id:"validation.required"})):e)}),_dt=t=>{const e=he.c(13),{i:r}=t,n=Ye(),s=`plmnList[${r}].mcc`;let i;e[0]!==n?(i=f=>{const{field:p,meta:m,form:h}=f,{isSubmitting:_}=h;return a.jsx(dt,{...p,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.plmnList.mcc"}),size:"small",error:!!m.error,helperText:m.error,disabled:_,sx:{width:"50%"}})},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==s||e[3]!==i?(o=a.jsx(Ke,{name:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4];const l=`plmnList[${r}].mnc`;let c;e[5]!==n?(c=f=>{const{field:p,meta:m,form:h}=f,{isSubmitting:_}=h;return a.jsx(dt,{...p,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.plmnList.mnc"}),size:"small",error:!!m.error,helperText:m.error,disabled:_,sx:{width:"50%"}})},e[5]=n,e[6]=c):c=e[6];let u;e[7]!==l||e[8]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[7]=l,e[8]=c,e[9]=u):u=e[9];let d;return e[10]!==o||e[11]!==u?(d=a.jsxs(te,{direction:"row",nowrap:!0,fullWidth:!0,children:[o,u]}),e[10]=o,e[11]=u,e[12]=d):d=e[12],d},vdt=t=>{const e=he.c(28),{i:r}=t,n=Ye(),{values:s,isSubmitting:i}=_0(),o=ydt,l=bdt,c=`sNssais[${r}].sst`;let u;e[0]!==n||e[1]!==i?(u=y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sst"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})},e[0]=n,e[1]=i,e[2]=u):u=e[2];let d;e[3]!==c||e[4]!==u?(d=a.jsx(Ke,{name:c,children:u}),e[3]=c,e[4]=u,e[5]=d):d=e[5];const f=`sNssais[${r}].isRangesActive`;let p;e[6]!==r||e[7]!==n||e[8]!==i?(p=y=>{const{field:b,form:x}=y,{setFieldValue:w}=x;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.sNssais.isRangesActiveFalse"})}),a.jsx(ti,{checked:!!b.value,onChange:(C,k)=>{w(b.name,k),k?(w(`sNssais[${r}].sd`,""),w(`sNssais[${r}].sdRanges`,[{_uuid:gn(),start:"",end:""}])):(w(`sNssais[${r}].sdRanges`,[]),w(`sNssais[${r}].sd`,""))},disabled:i||!Ue(ie.provisioning)}),a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.sNssais.isRangesActiveTrue"})})]})},e[6]=r,e[7]=n,e[8]=i,e[9]=p):p=e[9];let m;e[10]!==f||e[11]!==p?(m=a.jsx(Ke,{name:f,children:p}),e[10]=f,e[11]=p,e[12]=m):m=e[12];let h;e[13]!==r||e[14]!==n||e[15]!==i||e[16]!==s.sNssais?(h=!s.sNssais?.[r].isRangesActive&&a.jsx(Ke,{name:`sNssais[${r}].sd`,children:y=>{const{field:b,meta:x}=y;return a.jsx(dt,{...b,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sd"}),size:"small",error:!!x.error,helperText:x.error,disabled:i})}}),e[13]=r,e[14]=n,e[15]=i,e[16]=s.sNssais,e[17]=h):h=e[17];let _;e[18]!==r||e[19]!==n||e[20]!==i||e[21]!==s.sNssais?(_=!!s.sNssais?.[r].isRangesActive&&a.jsx(oi,{name:`sNssais[${r}].sdRanges`,children:y=>{const{remove:b,push:x,form:w}=y,{getFieldMeta:C,errors:k}=w,A=P=>!C(P)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.range_add"}),type:"button",variant:"outlined",onClick:()=>o(x),disabled:i}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!A(`sNssais[${r}].sdRanges`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.sNssais.form_errors.has_errors"})}),typeof k[`sNssais[${r}].sdRanges`]=="string"&&a.jsx(_e,{color:"error",paragraph:!1,children:a.jsx("ul",{children:a.jsx("li",{children:k[`sNssais[${r}].sdRanges`]})})})]})}),!!s.sNssais?.length&&s.sNssais[r].sdRanges?.map((P,T)=>a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,children:[a.jsx(Ke,{name:`sNssais[${r}].sdRanges[${T}].start`,children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,required:!0,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sdRanges.start"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||!Ue(ie.provisioning),sx:{width:"50%"}})}}),a.jsx(Ke,{name:`sNssais[${r}].sdRanges[${T}].end`,children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{required:!0,...R,label:n.formatMessage({id:"nrf_static_profile.form.sNssais.sdRanges.end"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||!Ue(ie.provisioning),sx:{width:"50%"}})}}),a.jsx(Zr,{onClick:()=>l(b,T),disabled:i,children:a.jsx(ge.Trash,{})})]},P._uuid)),!s.sNssais?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.sNssais.sdRanges.no_ranges"})})]})})})})}}),e[18]=r,e[19]=n,e[20]=i,e[21]=s.sNssais,e[22]=_):_=e[22];let g;return e[23]!==d||e[24]!==m||e[25]!==h||e[26]!==_?(g=a.jsxs(te,{children:[d,m,h,_]}),e[23]=d,e[24]=m,e[25]=h,e[26]=_,e[27]=g):g=e[27],g};function ydt(t){const e={_uuid:gn(),start:"",end:""};t(e)}function bdt(t,e){t(e)}function xdt(t){const e=he.c(17),{children:r,index:n,parentFieldName:s,interfaceTypeOptions:i}=t,o=Ye(),l=`${s}[${n}].interfaceType`;let c;e[0]!==i||e[1]!==o?(c=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(qs,{...g,label:o.formatMessage({id:"nrf_static_profile.form.upfInfoList.interfaceUpfInfoList.interface_type"}),size:"small",error:!!y.error,helperText:y.error,disabled:x||!Ue(ie.provisioning),required:!0,children:i.map(Sdt)})},e[0]=i,e[1]=o,e[2]=c):c=e[2];let u;e[3]!==l||e[4]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5];const d=`${s}[${n}].networkInstance`;let f;e[6]!==o?(f=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:o.formatMessage({id:"nrf_static_profile.form.upfInfoList.interfaceUpfInfoList.network_instance"}),size:"small",error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[6]=o,e[7]=f):f=e[7];let p;e[8]!==d||e[9]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[8]=d,e[9]=f,e[10]=p):p=e[10];let m;e[11]!==u||e[12]!==p?(m=a.jsxs(te,{fullWidth:!0,children:[u,p]}),e[11]=u,e[12]=p,e[13]=m):m=e[13];let h;return e[14]!==r||e[15]!==m?(h=a.jsxs(te,{direction:"row",align:"flex-start",divided:!0,nowrap:!0,fullWidth:!0,children:[m,r]}),e[14]=r,e[15]=m,e[16]=h):h=e[16],h}function Sdt(t){return a.jsx(En,{value:t,children:t},t)}function wdt(t){const e=he.c(12),{upfIndex:r}=t,n=Ye();let s;e[0]!==r?(s=(f,p)=>{const m=Object.values(b3).filter(h=>!f?.upfInfoList?.[r].interfaceUpfInfoList.find(_=>_.interfaceType===h));return p?.interfaceType&&m.push(p.interfaceType),Array.from(new Set(m)).sort(Adt).filter(Cdt)},e[0]=r,e[1]=s):s=e[1];const i=s;let o;e[2]!==i?(o=(f,p)=>{const m={_uuid:gn(),interfaceType:i(p)[0],networkInstance:""};f(m)},e[2]=i,e[3]=o):o=e[3];const l=o,c=`upfInfoList[${r}].interfaceUpfInfoList`;let u;e[4]!==i||e[5]!==l||e[6]!==n||e[7]!==r?(u=f=>{const{remove:p,push:m,form:h}=f,{getFieldMeta:_,isSubmitting:g,errors:y,values:b}=h,x=b,w=C=>!_(C)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.interface_add"}),type:"button",variant:"outlined",onClick:()=>l(m,x),disabled:g||!i(x).length||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!w(`upfInfoList[${r}].interfaceUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].interfaceUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].interfaceUpfInfoList`]})})})]})}),a.jsx(te,{divided:!0,spacing:3,children:!!x?.upfInfoList?.[r].interfaceUpfInfoList?.length&&x.upfInfoList[r].interfaceUpfInfoList?.map((C,k)=>a.jsx(xdt,{parentFieldName:`upfInfoList[${r}].interfaceUpfInfoList`,index:k,interfaceTypeOptions:i(x,C),children:a.jsx(Zr,{onClick:()=>p(k),disabled:g||!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})},C._uuid))}),!x?.upfInfoList?.[r].interfaceUpfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.interfaceUpfInfoList.no_interfaces"})})]})})})})},e[4]=i,e[5]=l,e[6]=n,e[7]=r,e[8]=u):u=e[8];let d;return e[9]!==c||e[10]!==u?(d=a.jsx(oi,{name:c,children:u}),e[9]=c,e[10]=u,e[11]=d):d=e[11],d}function Cdt(t){return!!t}function Adt(t,e){return t===b3.DATA_FORWARDING?1:e===b3.DATA_FORWARDING?-1:t>e?1:-1}const kdt=t=>{const e=he.c(16),{parentFieldName:r,startLabel:n,endLabel:s,index:i,children:o}=t,l=`${r}[${i}].start`;let c;e[0]!==n?(c=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,required:!0,label:n,size:"small",error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[0]=n,e[1]=c):c=e[1];let u;e[2]!==l||e[3]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[2]=l,e[3]=c,e[4]=u):u=e[4];const d=`${r}[${i}].end`;let f;e[5]!==s?(f=_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,required:!0,size:"small",label:s,error:!!y.error,helperText:y.error,fullWidth:!0,disabled:x||!Ue(ie.provisioning)})},e[5]=s,e[6]=f):f=e[6];let p;e[7]!==d||e[8]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[7]=d,e[8]=f,e[9]=p):p=e[9];let m;e[10]!==u||e[11]!==p?(m=a.jsxs(te,{fullWidth:!0,children:[u,p]}),e[10]=u,e[11]=p,e[12]=m):m=e[12];let h;return e[13]!==o||e[14]!==m?(h=a.jsxs(te,{direction:"row",align:"flex-start",divided:!0,nowrap:!0,fullWidth:!0,children:[m,o]}),e[13]=o,e[14]=m,e[15]=h):h=e[15],h},eJ=t=>{const e=he.c(15),{fieldName:r,startLabel:n,endLabel:s,addLabel:i,noItemsLabel:o,titleLabel:l,listValue:c}=t,{getFieldMeta:u}=_0(),d=Mdt,f=Pdt;let p;e[0]!==r||e[1]!==u?(p=()=>!u(r)?.error,e[0]=r,e[1]=u,e[2]=p):p=e[2];const m=p;let h;e[3]!==i||e[4]!==s||e[5]!==r||e[6]!==m||e[7]!==c||e[8]!==o||e[9]!==n||e[10]!==l?(h=g=>{const{remove:y,push:b,form:x}=g,{isSubmitting:w}=x;return a.jsx(pr,{title:l,headerActionsComponent:a.jsx(Ze,{text:i,type:"button",variant:"outlined",onClick:()=>d(b),disabled:w||!Ue(ie.provisioning)}),error:!m(),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{divided:!0,spacing:3,children:!!c.length&&c?.map((C,k)=>a.jsx(kdt,{parentFieldName:r,startLabel:n,endLabel:s,index:k,children:a.jsx(Zr,{onClick:()=>f(y,k),disabled:w||!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})},C._uuid))}),!c?.length&&a.jsx(_e,{children:o})]})})})})},e[3]=i,e[4]=s,e[5]=r,e[6]=m,e[7]=c,e[8]=o,e[9]=n,e[10]=l,e[11]=h):h=e[11];let _;return e[12]!==r||e[13]!==h?(_=a.jsx(oi,{name:r,children:h}),e[12]=r,e[13]=h,e[14]=_):_=e[14],_};function Mdt(t){const e={_uuid:gn(),start:"",end:""};t(e)}function Pdt(t,e){t(e)}const jdt=t=>{const e=he.c(61),{upfIndex:r,sliceIndex:n,dnnIndex:s}=t,i=Ye(),{values:o}=_0(),l=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].dnn`;let c;e[0]!==i?(c=N=>{const{field:F,meta:U,form:z}=N,{isSubmitting:H}=z;return a.jsx(dt,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.dnn"}),size:"small",error:!!U.error,helperText:U.error,disabled:H||!Ue(ie.provisioning)})},e[0]=i,e[1]=c):c=e[1];let u;e[2]!==l||e[3]!==c?(u=a.jsx(Ke,{name:l,children:c}),e[2]=l,e[3]=c,e[4]=u):u=e[4];const d=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].pduSessionTypes`;let f;e[5]!==i?(f=N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H,isSubmitting:W}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.pduSessionTypes"}),multiple:!0,size:"small",options:sdt,onChange:(K,q)=>{H(F.name,[...new Set(q.map(Tdt))])},error:!!U.error,helperText:U.error,disabled:W||!Ue(ie.provisioning),fullWidth:!0})},e[5]=i,e[6]=f):f=e[6];let p;e[7]!==d||e[8]!==f?(p=a.jsx(Ke,{name:d,children:f}),e[7]=d,e[8]=f,e[9]=p):p=e[9];const m=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].ipv4AddressRanges`;let h;e[10]!==i?(h=i.formatMessage({id:"nrf_static_profile.section.upf.ipv4Ranges.range_add"}),e[10]=i,e[11]=h):h=e[11];let _;e[12]!==i?(_=i.formatMessage({id:"nrf_static_profile.section.upf.ipv4Ranges.no_ranges"}),e[12]=i,e[13]=_):_=e[13];let g;e[14]!==i?(g=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges.start"}),e[14]=i,e[15]=g):g=e[15];let y;e[16]!==i?(y=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges.end"}),e[16]=i,e[17]=y):y=e[17];let b;e[18]!==i?(b=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv4Ranges"}),e[18]=i,e[19]=b):b=e[19];let x;e[20]!==s||e[21]!==n||e[22]!==r||e[23]!==o.upfInfoList?(x=o.upfInfoList?.[r]?.sNssaiUpfInfoList?.[n]?.dnnUpfInfoList?.[s]?.ipv4AddressRanges||[],e[20]=s,e[21]=n,e[22]=r,e[23]=o.upfInfoList,e[24]=x):x=e[24];let w;e[25]!==g||e[26]!==y||e[27]!==b||e[28]!==x||e[29]!==m||e[30]!==h||e[31]!==_?(w=a.jsx(eJ,{fieldName:m,addLabel:h,noItemsLabel:_,startLabel:g,endLabel:y,titleLabel:b,listValue:x}),e[25]=g,e[26]=y,e[27]=b,e[28]=x,e[29]=m,e[30]=h,e[31]=_,e[32]=w):w=e[32];const C=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${s}].ipv6PrefixRanges`;let k;e[33]!==i?(k=i.formatMessage({id:"nrf_static_profile.section.upf.ipv6Ranges.range_add"}),e[33]=i,e[34]=k):k=e[34];let A;e[35]!==i?(A=i.formatMessage({id:"nrf_static_profile.section.upf.ipv6Ranges.no_ranges"}),e[35]=i,e[36]=A):A=e[36];let P;e[37]!==i?(P=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges.start"}),e[37]=i,e[38]=P):P=e[38];let T;e[39]!==i?(T=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges.end"}),e[39]=i,e[40]=T):T=e[40];let j;e[41]!==i?(j=i.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.dnnUpfInfoList.ipv6Ranges"}),e[41]=i,e[42]=j):j=e[42];let R;e[43]!==s||e[44]!==n||e[45]!==r||e[46]!==o.upfInfoList?(R=o.upfInfoList?.[r]?.sNssaiUpfInfoList?.[n]?.dnnUpfInfoList?.[s]?.ipv6PrefixRanges||[],e[43]=s,e[44]=n,e[45]=r,e[46]=o.upfInfoList,e[47]=R):R=e[47];let D;e[48]!==C||e[49]!==k||e[50]!==A||e[51]!==P||e[52]!==T||e[53]!==j||e[54]!==R?(D=a.jsx(eJ,{fieldName:C,addLabel:k,noItemsLabel:A,startLabel:P,endLabel:T,titleLabel:j,listValue:R}),e[48]=C,e[49]=k,e[50]=A,e[51]=P,e[52]=T,e[53]=j,e[54]=R,e[55]=D):D=e[55];let O;return e[56]!==w||e[57]!==D||e[58]!==u||e[59]!==p?(O=a.jsxs(te,{spacing:2,children:[u,p,w,D]}),e[56]=w,e[57]=D,e[58]=u,e[59]=p,e[60]=O):O=e[60],O};function Tdt(t){return t.trim()}const Edt=t=>{const e=he.c(7),{upfIndex:r,sliceIndex:n}=t,s=Ye(),i=Rdt,o=Idt,l=Ddt,c=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList`;let u;e[0]!==s||e[1]!==n||e[2]!==r?(u=f=>{const{remove:p,push:m,form:h}=f,{getFieldMeta:_,isSubmitting:g,values:y,errors:b}=h,x=w=>!_(w)?.error;return a.jsx(pr,{title:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.title"}),headerActionsComponent:a.jsx(Ze,{text:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.dnn_add"}),type:"button",variant:"outlined",onClick:()=>o(m),disabled:g||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!x(`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof b[`upfInfoList[${r}].sNssaiUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:b[`upfInfoList[${r}].sNssaiUpfInfoList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:y.upfInfoList[r]?.sNssaiUpfInfoList[n]?.dnnUpfInfoList?.map((w,C)=>a.jsx(xr,{title:`${i({dnn:w.dnn,i:C})}`,error:!x(`upfInfoList[${r}].sNssaiUpfInfoList[${n}].dnnUpfInfoList[${C}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>l(p,C),label:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.dnn_delete"}),disabled:g||!Ue(ie.provisioning)}],content:a.jsx(jdt,{upfIndex:r,sliceIndex:n,dnnIndex:C})},`${w._uuid}`))||null}),!y.upfInfoList[r]?.sNssaiUpfInfoList[n]?.dnnUpfInfoList?.length&&a.jsx(_e,{children:s.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.dnns.no_dnns"})})]})})})})},e[0]=s,e[1]=n,e[2]=r,e[3]=u):u=e[3];let d;return e[4]!==c||e[5]!==u?(d=a.jsx(oi,{name:c,children:u}),e[4]=c,e[5]=u,e[6]=d):d=e[6],d};function Rdt(t){const{dnn:e,i:r}=t;return e||`DNN #${r+1}`}function Idt(t){const e={_uuid:gn(),dnn:"",pduSessionTypes:[],ipv4AddressRanges:[],ipv6PrefixRanges:[]};t(e)}function Ddt(t,e){t(e)}const $dt=t=>{const e=he.c(17),{upfIndex:r,sliceIndex:n}=t,s=Ye(),i=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].sNssai.sst`;let o;e[0]!==s?(o=m=>{const{field:h,meta:_,form:g}=m,{isSubmitting:y}=g;return a.jsx(dt,{...h,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.sNssai.sst"}),size:"small",error:!!_.error,helperText:_.error,disabled:y||!Ue(ie.provisioning)})},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==i||e[3]!==o?(l=a.jsx(Ke,{name:i,children:o}),e[2]=i,e[3]=o,e[4]=l):l=e[4];const c=`upfInfoList[${r}].sNssaiUpfInfoList[${n}].sNssai.sd`;let u;e[5]!==s?(u=m=>{const{field:h,meta:_,form:g}=m,{isSubmitting:y}=g;return a.jsx(dt,{...h,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.sNssaiUpfInfoList.sNssai.sd"}),size:"small",error:!!_.error,helperText:_.error,disabled:y||!Ue(ie.provisioning)})},e[5]=s,e[6]=u):u=e[6];let d;e[7]!==c||e[8]!==u?(d=a.jsx(Ke,{name:c,children:u}),e[7]=c,e[8]=u,e[9]=d):d=e[9];let f;e[10]!==n||e[11]!==r?(f=a.jsx(Edt,{upfIndex:r,sliceIndex:n}),e[10]=n,e[11]=r,e[12]=f):f=e[12];let p;return e[13]!==l||e[14]!==d||e[15]!==f?(p=a.jsxs(te,{spacing:2,children:[l,d,f]}),e[13]=l,e[14]=d,e[15]=f,e[16]=p):p=e[16],p},Odt=t=>{const e=he.c(6),{upfIndex:r}=t,n=Ye(),s=Ldt,i=Ndt,o=Fdt,l=`upfInfoList[${r}].sNssaiUpfInfoList`;let c;e[0]!==n||e[1]!==r?(c=d=>{const{remove:f,push:p,form:m}=d,{getFieldMeta:h,isSubmitting:_,values:g,errors:y}=m,b=x=>!h(x)?.error;return a.jsx(pr,{title:`${n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.title"})}*`,headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.slice_add"}),type:"button",variant:"outlined",onClick:()=>i(p),disabled:_||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!b(`upfInfoList[${r}].sNssaiUpfInfoList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].sNssaiUpfInfoList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].sNssaiUpfInfoList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:g.upfInfoList[r]?.sNssaiUpfInfoList?.map((x,w)=>a.jsx(xr,{title:`${s({sst:x.sNssai.sst,sd:x.sNssai.sd,i:w})}`,error:!b(`upfInfoList[${r}].sNssaiUpfInfoList[${w}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(f,w),label:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.slice_delete"}),disabled:_||!Ue(ie.provisioning)}],content:a.jsx($dt,{upfIndex:r,sliceIndex:w})},`${x._uuid}`))||null}),!g.upfInfoList[r]?.sNssaiUpfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.sNssaiUpfInfoList.no_slices"})})]})})})})},e[0]=n,e[1]=r,e[2]=c):c=e[2];let u;return e[3]!==l||e[4]!==c?(u=a.jsx(oi,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5],u};function Ldt(t){const{sst:e,sd:r,i:n}=t,s=ldt({sst:e,sd:r});return s||`Slice #${n+1}`}function Ndt(t){const e={_uuid:gn(),dnnUpfInfoList:[],sNssai:{sd:"",sst:""},redundantTransport:!1};t(e)}function Fdt(t,e){t(e)}function Udt(t){const e=he.c(18),{children:r,label:n,helperText:s,spacing:i,required:o,direction:l,sx:c}=t,u=i===void 0?2:i,d=o===void 0?!1:o,f=l===void 0?"row":l,p=As(),m=Nd(p.breakpoints.up("sm"))?f:"column";let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={py:0,px:0,mr:.75,transform:"translateX(-2px)"},e[0]=h):h=e[0];let _;e[1]!==u||e[2]!==c?(_={".MuiCheckbox-root":h,mb:u,...c},e[1]=u,e[2]=c,e[3]=_):_=e[3];let g;e[4]!==n||e[5]!==d?(g=n&&a.jsx(mv,{color:"primary",required:d,sx:{mb:.75},children:n}),e[4]=n,e[5]=d,e[6]=g):g=e[6];let y;e[7]!==r||e[8]!==m||e[9]!==u?(y=a.jsx(te,{direction:m,fullWidth:!0,spacing:u,children:r}),e[7]=r,e[8]=m,e[9]=u,e[10]=y):y=e[10];let b;e[11]!==s?(b=s&&a.jsx(gv,{sx:{mx:0},children:s}),e[11]=s,e[12]=b):b=e[12];let x;return e[13]!==_||e[14]!==g||e[15]!==y||e[16]!==b?(x=a.jsxs(hv,{component:"fieldset",fullWidth:!0,sx:_,children:[g,y,b]}),e[13]=_,e[14]=g,e[15]=y,e[16]=b,e[17]=x):x=e[17],x}const Bdt=t=>{const e=he.c(24),{upfIndex:r,taiIndex:n}=t,s=Ye(),i=`upfInfoList[${r}].taiList[${n}].tac`;let o;e[0]!==s?(o=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.tac"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[0]=s,e[1]=o):o=e[1];let l;e[2]!==i||e[3]!==o?(l=a.jsx(Ke,{name:i,children:o}),e[2]=i,e[3]=o,e[4]=l):l=e[4];let c;e[5]!==s?(c=s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId"}),e[5]=s,e[6]=c):c=e[6];const u=`upfInfoList[${r}].taiList[${n}].plmnId.mcc`;let d;e[7]!==s?(d=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId.mcc"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[7]=s,e[8]=d):d=e[8];let f;e[9]!==u||e[10]!==d?(f=a.jsx(Ke,{name:u,children:d}),e[9]=u,e[10]=d,e[11]=f):f=e[11];const p=`upfInfoList[${r}].taiList[${n}].plmnId.mnc`;let m;e[12]!==s?(m=y=>{const{field:b,meta:x,form:w}=y,{isSubmitting:C}=w;return a.jsx(dt,{...b,required:!0,label:s.formatMessage({id:"nrf_static_profile.form.upfInfoList.taiList.plmnId.mnc"}),size:"small",error:!!x.error,helperText:x.error,disabled:C||!Ue(ie.provisioning)})},e[12]=s,e[13]=m):m=e[13];let h;e[14]!==p||e[15]!==m?(h=a.jsx(Ke,{name:p,children:m}),e[14]=p,e[15]=m,e[16]=h):h=e[16];let _;e[17]!==h||e[18]!==c||e[19]!==f?(_=a.jsxs(Udt,{label:c,children:[f,h]}),e[17]=h,e[18]=c,e[19]=f,e[20]=_):_=e[20];let g;return e[21]!==_||e[22]!==l?(g=a.jsxs(te,{spacing:2,children:[l,_]}),e[21]=_,e[22]=l,e[23]=g):g=e[23],g},zdt=t=>{const e=he.c(6),{upfIndex:r}=t,n=Ye(),s=qdt,i=Vdt,o=Hdt,l=`upfInfoList[${r}].taiList`;let c;e[0]!==n||e[1]!==r?(c=d=>{const{remove:f,push:p,form:m}=d,{getFieldMeta:h,isSubmitting:_,values:g,errors:y}=m,b=x=>!h(x)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.tai_add"}),type:"button",variant:"outlined",onClick:()=>i(p),disabled:_||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!b(`upfInfoList[${r}].taiList`)&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof y[`upfInfoList[${r}].taiList`]=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:y[`upfInfoList[${r}].taiList`]})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:g.upfInfoList[r]?.taiList?.map((x,w)=>a.jsx(xr,{title:`${s({...x,i:w})}`,error:!b(`upfInfoList[${r}].taiList[${w}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(f,w),label:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.tai_delete"}),disabled:_||!Ue(ie.provisioning)}],content:a.jsx(Bdt,{upfIndex:r,taiIndex:w})},`${x._uuid}`))||null}),!g.upfInfoList[r]?.taiList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.taiList.no_tais"})})]})})})})},e[0]=n,e[1]=r,e[2]=c):c=e[2];let u;return e[3]!==l||e[4]!==c?(u=a.jsx(oi,{name:l,children:c}),e[3]=l,e[4]=c,e[5]=u):u=e[5],u};function qdt(t){const{tac:e,plmnId:r,i:n}=t,{mcc:s,mnc:i}=r;let o="";return e&&(o=`${e}`),(s||i)&&(o=o+" (",s&&(o=o+s),i&&(o=o+`-${i}`),o=o+")"),o||`TAI #${n+1}`}function Vdt(t){const e={_uuid:gn(),plmnId:{mnc:"",mcc:""},tac:"",nid:""};t(e)}function Hdt(t,e){t(e)}const Gdt=t=>{const e=he.c(14),{upfIndex:r}=t,n=Ye(),s=`upfInfoList[${r}].ueIpAddrInd`;let i;e[0]!==n?(i=f=>{const{field:p,form:m}=f,{setFieldValue:h,isSubmitting:_}=m;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!p.value,onChange:(g,y)=>{h(p.name,y)},disabled:_||!Ue(ie.provisioning)}),a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.ueIpAddrInd"})})]})},e[0]=n,e[1]=i):i=e[1];let o;e[2]!==s||e[3]!==i?(o=a.jsx(Ke,{name:s,children:i}),e[2]=s,e[3]=i,e[4]=o):o=e[4];let l,c,u;e[5]!==r?(l=a.jsx(wdt,{upfIndex:r}),c=a.jsx(zdt,{upfIndex:r}),u=a.jsx(Odt,{upfIndex:r}),e[5]=r,e[6]=l,e[7]=c,e[8]=u):(l=e[6],c=e[7],u=e[8]);let d;return e[9]!==o||e[10]!==l||e[11]!==c||e[12]!==u?(d=a.jsxs(te,{spacing:2,children:[o,l,c,u]}),e[9]=o,e[10]=l,e[11]=c,e[12]=u,e[13]=d):d=e[13],d},Wdt=t=>{const e=he.c(3),{isLoading:r}=t,n=Ye(),s=Ydt,i=Kdt,o=Qdt;let l;return e[0]!==n||e[1]!==r?(l=a.jsx(oi,{name:"upfInfoList",children:c=>{const{remove:u,push:d,form:f}=c,{getFieldMeta:p,values:m,errors:h}=f,_=g=>!p(g)?.error;return a.jsx(pr,{title:n.formatMessage({id:"nrf_static_profile.section.upf.title"}),headerActionsComponent:a.jsx(Ze,{text:n.formatMessage({id:"nrf_static_profile.section.upf.upf_instance_add"}),type:"button",variant:"outlined",onClick:()=>{i(d)},disabled:r||!Ue(ie.provisioning)}),children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!_("upfInfoList")&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:n.formatMessage({id:"nrf_static_profile.form.upfInfoList.form_errors.has_errors"})}),typeof h.upfInfoList=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:h.upfInfoList})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:m.upfInfoList?.map((g,y)=>a.jsx(xr,{title:`${s(y)}`,subtitle:g._uuid,error:!_(`upfInfoList[${y}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>o(u,y),label:n.formatMessage({id:"nrf_static_profile.section.upf.upf_instance_delete"}),disabled:r||!Ue(ie.provisioning)}],content:a.jsx(Gdt,{upfIndex:y})},`${g._uuid}`))||null}),!m.upfInfoList?.length&&a.jsx(_e,{children:n.formatMessage({id:"nrf_static_profile.section.upf.no_upf_instances"})})]})})})})}}),e[0]=n,e[1]=r,e[2]=l):l=e[2],l};function Ydt(t){return`UPF Instance #${t+1}`}function Kdt(t){const e={_uuid:gn(),sNssaiUpfInfoList:[],taiList:[],ueIpAddrInd:!1,interfaceUpfInfoList:[]};t(e)}function Qdt(t,e){t(e)}const Zdt=t=>{const e=he.c(66),{isEditing:r,isLoading:n,errorData:s}=t,i=Ye(),{values:o}=_0(),l=Xdt,c=Jdt,u=eft,d=tft,f=rft;let p;e[0]!==i?(p=i.formatMessage({id:"nrf_static_profile.section.general.title"}),e[0]=i,e[1]=p):p=e[1];let m;e[2]!==p?(m=a.jsx(_e,{type:"h6",fontWeight:600,children:p}),e[2]=p,e[3]=m):m=e[3];let h;e[4]!==i||e[5]!==r||e[6]!==n?(h=a.jsx(Ke,{name:"nfInstanceId",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.nfInstanceId"}),size:"small",error:!!U.error,helperText:U.error,disabled:r||n})}}),e[4]=i,e[5]=r,e[6]=n,e[7]=h):h=e[7];let _;e[8]!==i||e[9]!==n?(_=a.jsx(Ke,{name:"nfType",children:N=>{const{field:F,meta:U}=N;return a.jsx(qs,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.nfType"}),size:"small",error:!!U.error,helperText:U.error,disabled:n,children:idt.map(nft)})}}),e[8]=i,e[9]=n,e[10]=_):_=e[10];let g;e[11]!==i||e[12]!==n?(g=a.jsx(Ke,{name:"nfStatus",children:N=>{const{field:F,meta:U}=N;return a.jsx(qs,{...F,required:!0,label:i.formatMessage({id:"nrf_static_profile.form.nfStatus"}),size:"small",error:!!U.error,helperText:U.error,disabled:n,children:odt.map(sft)})}}),e[11]=i,e[12]=n,e[13]=g):g=e[13];let y;e[14]!==i||e[15]!==n?(y=a.jsx(Ke,{name:"fqdn",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.fqdn"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[14]=i,e[15]=n,e[16]=y):y=e[16];let b;e[17]!==i||e[18]!==n?(b=a.jsx(Ke,{name:"ipv4Addresses",children:N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.ipv4Addresses"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(W,K)=>{H(F.name,[...new Set(K.map(ift))])},error:!!U.error,helperText:U.error,disabled:n})}}),e[17]=i,e[18]=n,e[19]=b):b=e[19];let x;e[20]!==i||e[21]!==n?(x=a.jsx(Ke,{name:"ipv6Addresses",children:N=>{const{field:F,meta:U,form:z}=N,{setFieldValue:H}=z;return a.jsx(rn,{name:F.name,value:F.value||[],label:i.formatMessage({id:"nrf_static_profile.form.ipv6Addresses"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(W,K)=>{H(F.name,[...new Set(K.map(oft))])},error:!!U.error,helperText:U.error,disabled:n})}}),e[20]=i,e[21]=n,e[22]=x):x=e[22];let w;e[23]!==i||e[24]!==n?(w=a.jsx(Ke,{name:"nfInstanceName",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.nfInstanceName"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[23]=i,e[24]=n,e[25]=w):w=e[25];let C;e[26]!==i||e[27]!==n?(C=a.jsx(Ke,{name:"priority",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.priority"}),size:"small",type:"number",error:!!U.error,helperText:U.error,disabled:n})}}),e[26]=i,e[27]=n,e[28]=C):C=e[28];let k;e[29]!==i||e[30]!==n?(k=a.jsx(Ke,{name:"capacity",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.capacity"}),size:"small",type:"number",error:!!U.error,helperText:U.error,disabled:n})}}),e[29]=i,e[30]=n,e[31]=k):k=e[31];let A;e[32]!==i||e[33]!==n?(A=a.jsx(Ke,{name:"locality",children:N=>{const{field:F,meta:U}=N;return a.jsx(dt,{...F,label:i.formatMessage({id:"nrf_static_profile.form.locality"}),size:"small",error:!!U.error,helperText:U.error,disabled:n})}}),e[32]=i,e[33]=n,e[34]=A):A=e[34];let P;e[35]!==i||e[36]!==n||e[37]!==o.sNssais?(P=a.jsx(oi,{name:"sNssais",children:N=>{const{remove:F,push:U,form:z}=N,{getFieldMeta:H,errors:W}=z,K=q=>!H(q)?.error;return a.jsx(pr,{title:i.formatMessage({id:"nrf_static_profile.section.slices.title"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"nrf_static_profile.section.slices.slice_add"}),type:"button",variant:"outlined",onClick:()=>c(U),disabled:n||!Ue(ie.provisioning)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[a.jsx(te,{children:!K("sNssais")&&a.jsxs(a.Fragment,{children:[a.jsx(_e,{color:"error",children:i.formatMessage({id:"nrf_static_profile.form.sNssais.form_errors.has_errors"})}),typeof W.sNssais=="string"&&a.jsx(_e,{color:"error",children:a.jsx("ul",{children:a.jsx("li",{children:W.sNssais})})})]})}),a.jsx(Jn,{exclusive:!0,spacing:2,children:o.sNssais?.map((q,X)=>{const Q=q;return a.jsx(xr,{title:`${l(Q,X)}`,error:!K(`sNssais[${X}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>u(F,X),label:i.formatMessage({id:"nrf_static_profile.section.slices.slice_delete"}),disabled:n||!Ue(ie.provisioning)}],content:a.jsx(vdt,{i:X}),elevation:3},`${Q._uuid}`)})||[]}),!o.sNssais?.length&&a.jsx(_e,{children:i.formatMessage({id:"nrf_static_profile.section.slices.no_slices"})})]})})})})}}),e[35]=i,e[36]=n,e[37]=o.sNssais,e[38]=P):P=e[38];let T;e[39]!==i||e[40]!==n||e[41]!==o.plmnList?(T=a.jsx(oi,{name:"plmnList",children:N=>{const{remove:F,push:U}=N;return a.jsx(pr,{title:i.formatMessage({id:"nrf_static_profile.section.plmnList.title"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"nrf_static_profile.section.plmnList.plmn_add"}),type:"button",variant:"outlined",onClick:()=>d(U),disabled:n||!Ue(ie.provisioning)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsx(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,sx:{width:"100%"},children:a.jsxs(te,{fullWidth:!0,children:[!!o.plmnList?.length&&o.plmnList.map((z,H)=>{const W=z;return a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,children:[a.jsx(_dt,{i:H}),a.jsx(Zr,{onClick:()=>f(F,H),disabled:n||!Ue(ie.provisioning),sx:{mt:"4px"},children:a.jsx(ge.Trash,{size:"24px"})})]},W._uuid)}),!o.plmnList?.length&&a.jsx(_e,{children:i.formatMessage({id:"nrf_static_profile.section.plmnList.no_plmns"})})]})})})})}}),e[39]=i,e[40]=n,e[41]=o.plmnList,e[42]=T):T=e[42];let j;e[43]!==s?(j=a.jsx(Xr,{data:s}),e[43]=s,e[44]=j):j=e[44];let R;e[45]!==C||e[46]!==k||e[47]!==A||e[48]!==P||e[49]!==T||e[50]!==j||e[51]!==h||e[52]!==_||e[53]!==g||e[54]!==y||e[55]!==b||e[56]!==x||e[57]!==w?(R=a.jsxs(te,{spacing:2,children:[h,_,g,y,b,x,w,C,k,A,P,T,j]}),e[45]=C,e[46]=k,e[47]=A,e[48]=P,e[49]=T,e[50]=j,e[51]=h,e[52]=_,e[53]=g,e[54]=y,e[55]=b,e[56]=x,e[57]=w,e[58]=R):R=e[58];let D;e[59]!==n||e[60]!==o.nfType?(D=o?.nfType===v7.UPF&&a.jsx(Wdt,{isLoading:n}),e[59]=n,e[60]=o.nfType,e[61]=D):D=e[61];let O;return e[62]!==R||e[63]!==D||e[64]!==m?(O=a.jsxs(te,{spacing:2,children:[m,R,D]}),e[62]=R,e[63]=D,e[64]=m,e[65]=O):O=e[65],O};function Xdt(t,e){const{sst:r,sd:n,sdRanges:s}=t,i=adt({sst:r,sd:n,sdRanges:s});return i||`Slice #${e+1}`}function Jdt(t){const e={_uuid:gn(),sst:"",sd:"",isRangesActive:!1,sdRanges:[]};t(e)}function eft(t,e){t(e)}function tft(t){const e={_uuid:gn(),mcc:"",mnc:""};t(e)}function rft(t,e){t(e)}function nft(t){return a.jsx(En,{value:t,children:t},t)}function sft(t){return a.jsx(En,{value:t,children:t},t)}function ift(t){return t.trim()}function oft(t){return t.trim()}const aft=t=>{const e=he.c(24),{staticProfile:r}=t,n=Ye(),{confirmationSimpleDialogOpen:s}=Jt(),{id:i}=ko(),{data:o,state:l,submit:c}=gr(),u=i!=="new";let d;e[0]!==r?(d=hdt(r),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==u||e[3]!==c?(p=b=>{u?c(JX(b),{method:"PUT",encType:"application/json",action:"update"}):c(JX(b),{method:"POST",encType:"application/json",action:"create"})},e[2]=u,e[3]=c,e[4]=p):p=e[4];const m=p;let h;e[5]!==s||e[6]!==l||e[7]!==i||e[8]!==n||e[9]!==u||e[10]!==c?(h=u&&a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:l!=="idle"||!Ue(ie.provisioning),text:n.formatMessage({id:"nrf_static_profiles.actions.delete"}),onClick:()=>{i&&s({title:n.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.title"}),description:n.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.description"},{nfInstanceId:i}),onConfirm:()=>{c({id:i},{method:"DELETE",encType:"application/json",action:"delete"})},cancelText:n.formatMessage({id:"confirm_dialog.cancel"}),confirmText:n.formatMessage({id:"confirm_dialog.ok"})})}})}),e[5]=s,e[6]=l,e[7]=i,e[8]=n,e[9]=u,e[10]=c,e[11]=h):h=e[11];let _;e[12]!==o||e[13]!==l||e[14]!==n||e[15]!==u?(_=b=>{const{dirty:x}=b;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsx(Zdt,{isEditing:u,isLoading:l!=="idle",errorData:o}),Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:n.formatMessage({id:"udr_supi.form.buttons.submit"}),disabled:!x,loading:l!=="idle",sx:{alignSelf:"flex-start"}})]})})},e[12]=o,e[13]=l,e[14]=n,e[15]=u,e[16]=_):_=e[16];let g;e[17]!==m||e[18]!==f||e[19]!==_?(g=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:f,enableReinitialize:!0,validationSchema:gdt,onSubmit:m,children:_})}),e[17]=m,e[18]=f,e[19]=_,e[20]=g):g=e[20];let y;return e[21]!==h||e[22]!==g?(y=a.jsxs(a.Fragment,{children:[h,g]}),e[21]=h,e[22]=g,e[23]=y):y=e[23],y},lft=()=>{const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",height:"600px"}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.staticProfile?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.staticProfile,errorElement:n,children:cft})}),t[2]=e.staticProfile,t[3]=s):s=t[3],s};function cft(t){return a.jsx(aft,{staticProfile:t})}const Ap=t=>{const e=he.c(25),{text:r,max:n,fontWeight:s}=t,i=n===void 0?10:n,o=s===void 0?"400":s,{snackbarOpen:l}=Jt(),c=Ye();let u;e[0]!==c||e[1]!==l||e[2]!==r?(u=()=>{navigator.clipboard.writeText(r),l({message:c.formatMessage({id:"long_string_displayer.message.copy_ok"}),severity:"success"})},e[0]=c,e[1]=l,e[2]=r,e[3]=u):u=e[3];const d=u;if(!r)return null;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={wordBreak:"break-all"},e[4]=f):f=e[4];let p;e[5]!==i||e[6]!==r?(p=r.length>i?`${r.substring(0,i)}...`:r,e[5]=i,e[6]=r,e[7]=p):p=e[7];let m;e[8]!==o||e[9]!==p?(m=a.jsx("span",{children:a.jsx(te,{direction:"row",spacing:0,align:"center",children:a.jsx(_e,{type:"body2",fontWeight:o,sx:f,noWrap:!0,children:p})})}),e[8]=o,e[9]=p,e[10]=m):m=e[10];let h;e[11]!==m||e[12]!==r?(h=a.jsx(Mn,{title:r,children:m}),e[11]=m,e[12]=r,e[13]=h):h=e[13];let _;e[14]!==c?(_=c.formatMessage({id:"long_string_displayer.message.copy"}),e[14]=c,e[15]=_):_=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(ge.Copy,{}),e[16]=g):g=e[16];let y;e[17]!==d?(y=a.jsx("span",{children:a.jsx(Zr,{onClick:d,size:"small",children:g})}),e[17]=d,e[18]=y):y=e[18];let b;e[19]!==y||e[20]!==_?(b=a.jsx(Mn,{title:_,children:y}),e[19]=y,e[20]=_,e[21]=b):b=e[21];let x;return e[22]!==b||e[23]!==h?(x=a.jsxs(te,{direction:"row",spacing:.5,align:"center",nowrap:!0,children:[h,b]}),e[22]=b,e[23]=h,e[24]=x):x=e[24],x},uft=()=>{const t=he.c(83),e=Ye(),{confirmationSimpleDialogOpen:r}=Jt(),n=ys(),s=zn(),{submit:i}=gr();let o;t[0]!==e?(o=e.formatMessage({id:"nrf_static_profiles.table.nfType"}),t[0]=e,t[1]=o):o=t[1];let l;t[2]!==o?(l={key:"nfType",label:o,cellRender:dft},t[2]=o,t[3]=l):l=t[3];let c;t[4]!==e?(c=e.formatMessage({id:"nrf_static_profiles.table.nfStatus"}),t[4]=e,t[5]=c):c=t[5];let u;t[6]!==c?(u={key:"nfStatus",label:c,cellRender:fft},t[6]=c,t[7]=u):u=t[7];let d;t[8]!==e?(d=e.formatMessage({id:"nrf_static_profiles.table.fqdn"}),t[8]=e,t[9]=d):d=t[9];let f;t[10]!==d?(f={key:"fqdn",label:d},t[10]=d,t[11]=f):f=t[11];let p;t[12]!==e?(p=e.formatMessage({id:"nrf_static_profiles.table.ipv4Addresses"}),t[12]=e,t[13]=p):p=t[13];let m;t[14]!==p?(m={key:"ipv4Addresses",label:p,cellRender:mft},t[14]=p,t[15]=m):m=t[15];let h;t[16]!==e?(h=e.formatMessage({id:"nrf_static_profiles.table.ipv6Addresses"}),t[16]=e,t[17]=h):h=t[17];let _;t[18]!==h?(_={key:"ipv6Addresses",label:h,cellRender:gft},t[18]=h,t[19]=_):_=t[19];let g;t[20]!==e?(g=e.formatMessage({id:"nrf_static_profiles.table.priority"}),t[20]=e,t[21]=g):g=t[21];let y;t[22]!==g?(y={key:"priority",label:g},t[22]=g,t[23]=y):y=t[23];let b;t[24]!==e?(b=e.formatMessage({id:"nrf_static_profiles.table.locality"}),t[24]=e,t[25]=b):b=t[25];let x;t[26]!==b?(x={key:"locality",label:b},t[26]=b,t[27]=x):x=t[27];let w;t[28]!==e?(w=e.formatMessage({id:"nrf_static_profiles.table.capacity"}),t[28]=e,t[29]=w):w=t[29];let C;t[30]!==w?(C={key:"capacity",label:w},t[30]=w,t[31]=C):C=t[31];let k;t[32]!==e?(k=e.formatMessage({id:"nrf_static_profiles.table.sNssais"}),t[32]=e,t[33]=k):k=t[33];let A;t[34]!==k?(A={key:"sNssais",label:k,cellRender:_ft},t[34]=k,t[35]=A):A=t[35];let P;t[36]!==e?(P=e.formatMessage({id:"nrf_static_profiles.table.plmnList"}),t[36]=e,t[37]=P):P=t[37];let T;t[38]!==P?(T={key:"plmnList",label:P,cellRender:vft},t[38]=P,t[39]=T):T=t[39];let j;t[40]!==e?(j=e.formatMessage({id:"nrf_static_profiles.table.nfInstanceId"}),t[40]=e,t[41]=j):j=t[41];let R;t[42]!==j?(R={key:"nfInstanceId",label:j,cellRender:yft},t[42]=j,t[43]=R):R=t[43];let D;t[44]!==l||t[45]!==y||t[46]!==x||t[47]!==C||t[48]!==A||t[49]!==T||t[50]!==R||t[51]!==u||t[52]!==f||t[53]!==m||t[54]!==_?(D=[l,u,f,m,_,y,x,C,A,T,R],t[44]=l,t[45]=y,t[46]=x,t[47]=C,t[48]=A,t[49]=T,t[50]=R,t[51]=u,t[52]=f,t[53]=m,t[54]=_,t[55]=D):D=t[55];const O=D;let N;t[56]===Symbol.for("react.memo_cache_sentinel")?(N=_l(ie.configuration),t[56]=N):N=t[56];let F;t[57]!==n?(F={...N,onClick:fe=>{const{nfInstanceId:de}=fe;return n(`${$.urls.nrfStaticProfiles}/${de}`)}},t[57]=n,t[58]=F):F=t[58];let U;t[59]!==e?(U=e.formatMessage({id:"nrf_static_profiles.actions.delete"}),t[59]=e,t[60]=U):U=t[60];let z;t[61]===Symbol.for("react.memo_cache_sentinel")?(z=Ue(ie.configuration),t[61]=z):z=t[61];let H;t[62]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(ge.Trash,{}),t[62]=H):H=t[62];let W;t[63]!==r||t[64]!==e||t[65]!==i?(W=fe=>{const{nfInstanceId:de}=fe;de&&r({title:e.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.title"}),description:e.formatMessage({id:"nrf_static_profiles.actions.confirm_dialog.description"},{nfInstanceId:de}),onConfirm:()=>{i({id:de},{method:"DELETE",encType:"application/json",action:`${de}/delete`})},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[63]=r,t[64]=e,t[65]=i,t[66]=W):W=t[66];let K;t[67]!==U||t[68]!==W?(K={label:U,disabled:!z,icon:H,onClick:W},t[67]=U,t[68]=W,t[69]=K):K=t[69];let q;t[70]!==F||t[71]!==K?(q=[F,K],t[70]=F,t[71]=K,t[72]=q):q=t[72];const X=q;let Q;t[73]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[73]=Q):Q=t[73];let Y;t[74]===Symbol.for("react.memo_cache_sentinel")?(Y=a.jsx(Tr,{}),t[74]=Y):Y=t[74];let Z;t[75]!==O||t[76]!==e||t[77]!==n||t[78]!==X?(Z=fe=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"nfr-profile-btn-add",text:e.formatMessage({id:"nrf_static_profiles.toolbar.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>n(`${$.urls.nrfStaticProfiles}/new`),disabled:!Ue(ie.configuration)})}),a.jsx(Br,{autoScale:!0,orderBy:"nfInstanceId",columns:O,data:fe,page:1,rowsCount:fe.length,rowsPerPage:fe.length,rowsPerPageOptions:$.pageSizeOptions,hidePagination:!0,rowKey:"nfInstanceId",rowActions:X,stickyRowActions:!0})]}),t[75]=O,t[76]=e,t[77]=n,t[78]=X,t[79]=Z):Z=t[79];let re;return t[80]!==s.staticProfiles||t[81]!==Z?(re=a.jsx(I.Suspense,{fallback:Q,children:a.jsx(Qt,{resolve:s.staticProfiles,errorElement:Y,children:Z})}),t[80]=s.staticProfiles,t[81]=Z,t[82]=re):re=t[82],re};function dft(t){return a.jsx(ms,{size:"small",id:t.nfType,label:t.nfType})}function fft(t){const{nfStatus:e}=t;return a.jsx(ms,{size:"small",label:e,color:e===Eb.REGISTERED?"success":e===Eb.SUSPENDED?"error":e===Eb.UNDISCOVERABLE?"warning":"info"})}function pft(t){return{label:t,id:t}}function mft(t){const{ipv4Addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(pft)||[]})}function hft(t){return{label:t,id:t}}function gft(t){const{ipv6Addresses:e}=t;return a.jsx(ks,{size:"small",items:e?.map(hft)||[]})}function _ft(t){const{sNssais:e}=t;return a.jsx(_e,{type:"body2",children:e?.length?e.length:""})}function vft(t){const{plmnList:e}=t;return a.jsx(_e,{type:"body2",children:e?.length?e.length:""})}function yft(t){const{nfInstanceId:e}=t;return a.jsx(Ap,{text:e||""})}function bft(t){const e=he.c(25),{nfInstanceId:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={to:"nrf/status"},e[0]=i):i=e[0];const{data:o}=Dv(i);o?.profiles;let l;e[1]!==o?.profiles||e[2]!==r?(l=o?.profiles.find(b=>b.nf_profile.nfInstanceId===r),e[1]=o?.profiles,e[2]=r,e[3]=l):l=e[3];const c=l,u=!o;let d;e[4]!==c?(d=c&&a.jsx(Aue,{value:JSON.stringify(c??null,null,2),language:"json"}),e[4]=c,e[5]=d):d=e[5];let f;e[6]!==n||e[7]!==c?(f=!c&&a.jsx(Lr,{severity:"warning",message:n.formatMessage({id:"nrf.status.details.no_profile"})}),e[6]=n,e[7]=c,e[8]=f):f=e[8];let p;e[9]!==d||e[10]!==f?(p=a.jsxs(te,{fullHeight:!0,align:"center",justify:"center",children:[d,f]}),e[9]=d,e[10]=f,e[11]=p):p=e[11];let m;e[12]!==u||e[13]!==p?(m=a.jsx(_s,{loading:u,children:p}),e[12]=u,e[13]=p,e[14]=m):m=e[14];let h;e[15]!==n?(h=n.formatMessage({id:"info_dialog.close"}),e[15]=n,e[16]=h):h=e[16];let _;e[17]!==s?(_=()=>s(),e[17]=s,e[18]=_):_=e[18];let g;e[19]!==h||e[20]!==_?(g=a.jsx(Ti,{children:a.jsx(Ze,{text:h,onClick:_})}),e[19]=h,e[20]=_,e[21]=g):g=e[21];let y;return e[22]!==g||e[23]!==m?(y=a.jsxs(a.Fragment,{children:[m,g]}),e[22]=g,e[23]=m,e[24]=y):y=e[24],y}function xft(){const t=he.c(57),e=Ye(),{dialogOpen:r}=Jt(),n=Gr(),s=ys(),i=On();let o;t[0]!==e?(o=(q,X)=>{switch(X){case"nf_profile.nfType":return q.nf_profile.nfType;case"md.static":return q.md.static?e.formatMessage({id:"nrf.status.profile_type.static"}):e.formatMessage({id:"nrf.status.profile_type.dynamic"});case"nf_profile.nfStatus":return q.nf_profile.nfStatus;case"nf_profile.nfInstanceId":return q.nf_profile.nfInstanceId;case"md.registration_ts_epoch_s":return q.md.registration_ts_epoch_s;case"md.expiration_ts_epoch_s":return q.md.expiration_ts_epoch_s??0;default:return""}},t[0]=e,t[1]=o):o=t[1];const l=o,c=Pft;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={direction:Gl.ASC,column:"nf_profile.nfType"},t[2]=u):u=t[2];let d;t[3]!==l?(d={initialSortingState:u,getColumnValue:l,getColumnType:c},t[3]=l,t[4]=d):d=t[4];const{sort:f,updateSorting:p,sorting:m}=ex(d);let h;t[5]!==p?(h=(q,X)=>{p({column:X,direction:q})},t[5]=p,t[6]=h):h=t[6];const _=h;let g;t[7]!==e?(g=e.formatMessage({id:"nrf.status.nf_type"}),t[7]=e,t[8]=g):g=t[8];let y;t[9]!==g?(y={key:"nf_profile.nfType",label:g,sortable:!0,cellRender:Mft},t[9]=g,t[10]=y):y=t[10];let b;t[11]!==e?(b=e.formatMessage({id:"nrf.status.profile_type"}),t[11]=e,t[12]=b):b=t[12];let x;t[13]!==e?(x=q=>a.jsx(ms,{color:q.md.static?"info":"default",size:"small",id:q.nf_profile.nfInstanceId,label:q.md.static?e.formatMessage({id:"nrf.status.profile_type.static"}):e.formatMessage({id:"nrf.status.profile_type.dynamic"})}),t[13]=e,t[14]=x):x=t[14];let w;t[15]!==b||t[16]!==x?(w={key:"md.static",label:b,sortable:!0,cellRender:x},t[15]=b,t[16]=x,t[17]=w):w=t[17];let C;t[18]!==e?(C=e.formatMessage({id:"nrf.status.nf_status"}),t[18]=e,t[19]=C):C=t[19];let k;t[20]!==C?(k={key:"nf_profile.nfStatus",label:C,sortable:!0,cellRender:kft},t[20]=C,t[21]=k):k=t[21];let A;t[22]!==e?(A=e.formatMessage({id:"nrf.status.registration"}),t[22]=e,t[23]=A):A=t[23];let P;t[24]!==A?(P={key:"md.registration_ts_epoch_s",label:A,sortable:!0,cellRender:Aft},t[24]=A,t[25]=P):P=t[25];let T;t[26]!==e?(T=e.formatMessage({id:"nrf.status.expiration"}),t[26]=e,t[27]=T):T=t[27];let j;t[28]!==T?(j={key:"md.expiration_ts_epoch_s",label:T,sortable:!0,cellRender:Cft},t[28]=T,t[29]=j):j=t[29];let R;t[30]!==e?(R=e.formatMessage({id:"nrf.status.nf_instance_id"}),t[30]=e,t[31]=R):R=t[31];let D;t[32]!==R?(D={key:"nf_profile.nfInstanceId",label:R,sortable:!0,cellRender:wft},t[32]=R,t[33]=D):D=t[33];let O;t[34]!==k||t[35]!==P||t[36]!==j||t[37]!==D||t[38]!==y||t[39]!==w?(O=[y,w,k,P,j,D],t[34]=k,t[35]=P,t[36]=j,t[37]=D,t[38]=y,t[39]=w,t[40]=O):O=t[40];const N=O;let F;t[41]!==r||t[42]!==e||t[43]!==s?(F=q=>[{label:e.formatMessage({id:"nrf.status.actions.edit"}),icon:a.jsx(ge.Edit,{}),disabled:Sft,onClick:X=>{s($.urls.nrfStaticProfilesDetails.replace(":id",X.nf_profile.nfInstanceId))}},{label:e.formatMessage({id:"nrf.status.actions.details"}),icon:a.jsx(ge.Details,{}),onClick:X=>{const Q=q.find(Y=>Y.nf_profile.nfInstanceId===X.nf_profile.nfInstanceId);r({fullScreen:!0,title:`${Q?Q?.nf_profile?.nfType+" - ":""}${e.formatMessage({id:"nrf.status.profile_details"})}`,content:()=>a.jsx(bft,{nfInstanceId:X.nf_profile.nfInstanceId})})}}],t[41]=r,t[42]=e,t[43]=s,t[44]=F):F=t[44];const U=F;let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Dt,{variant:"rectangular",height:"100%"}),t[45]=z):z=t[45];let H;t[46]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Tr,{}),t[46]=H):H=t[46];let W;t[47]!==N||t[48]!==_||t[49]!==i.state||t[50]!==U||t[51]!==f||t[52]!==m?(W=q=>a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",columns:N,rowKey:"nf_profile.nfInstanceId",page:0,hidePagination:!0,data:f(q,m),rowsCount:q?.length,rowsPerPage:q?.length,orderBy:m.column,onSort:_,order:m.direction,rowActions:U(q)}),t[47]=N,t[48]=_,t[49]=i.state,t[50]=U,t[51]=f,t[52]=m,t[53]=W):W=t[53];let K;return t[54]!==n.profiles||t[55]!==W?(K=a.jsx(I.Suspense,{fallback:z,children:a.jsx(Qt,{resolve:n.profiles,errorElement:H,children:W})}),t[54]=n.profiles,t[55]=W,t[56]=K):K=t[56],K}function Sft(t){return!t.md.static||!Ue(ie.management)}function wft(t){return a.jsx(Ap,{text:t.nf_profile.nfInstanceId})}function Cft(t){return t.md.static?a.jsx(a.Fragment,{}):a.jsx(_e,{type:"body2",children:ai.unix(t.md.expiration_ts_epoch_s).fromNow()})}function Aft(t){return a.jsx(_e,{type:"body2",children:ai.unix(t.md.registration_ts_epoch_s).fromNow()})}function kft(t){let e;e:switch(t.nf_profile.nfStatus){case b_.REGISTERED:{e="success";break e}case b_.SUSPENDED:{e="error";break e}default:e="warning"}return a.jsx(ms,{color:e,size:"small",id:t.nf_profile.nfStatus,label:t.nf_profile.nfStatus})}function Mft(t){return a.jsx(ms,{size:"small",id:t.nf_profile.nfType,label:t.nf_profile.nfType})}function Pft(t){switch(t){case"nf_profile.nfType":case"md.static":case"nf_profile.nfStatus":case"nf_profile.nfInstanceId":return"string";case"md.registration_ts_epoch_s":case"md.expiration_ts_epoch_s":return"number";default:return"string"}}async function jft({request:t}){const e=await t.json(),r=await Zze(e);return xt(r)?Ft(r):(Nt(),rt($.urls.nrfStaticProfiles))}async function Tft({request:t}){const e=await t.json(),r=await Xze(e);return xt(r)?Ft(r):(Nt(),rt($.urls.nrfStaticProfiles))}async function Eft({request:t}){const{id:e}=await t.json(),r=await Jze(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.nrfStaticProfiles)return rt($.urls.nrfStaticProfiles);return Ft(r)}async function Rft(t){return Wt({loaderArgs:t,deferred:!0,data:{profiles:Vae()}})}async function Ift(t){return Wt({loaderArgs:t,deferred:!0,data:{staticProfiles:Hae()}})}async function Dft(t){if(t==="new")return null;const r=(await Hae()).find(n=>n.nfInstanceId===t);if(!r)throw Li({type:mn.NOT_FOUND});return r}async function $ft(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{staticProfile:Dft(e)}})}const Oft={path:"nrf",handle:vr({labelIntl:"route.nrf",icon:a.jsx(ge.NRF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"status",loader:Rft,handle:vr({labelIntl:"route.nrf.status",to:$.urls.nrfStatus}),element:a.jsx(xft,{})},io(ue.NRF)]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.NRF,{dbCluster:!0})]},{path:"static-profiles",handle:vr({labelIntl:"route.nrf.static-profiles",to:$.urls.nrfStaticProfiles}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:Ift,element:a.jsx(uft,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",loader:$ft,handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.nrf.static-profiles.new":"route.nrf.static-profiles.id",...e!=="new"&&{captionIntl:"route.nrf.static-profiles.id.caption",captionIntlParams:{id:e}},to:`${$.urls.nrfStaticProfiles}/${e}`})},element:a.jsx(lft,{}),children:[{path:"create",action:jft,loader:()=>rt("..")},{path:"update",action:Tft,loader:()=>rt("..")},{path:"delete",action:Eft,loader:()=>rt("..")}]}]}]}]},Lft=Pr(),Nft={path:"pcf",handle:vr({labelIntl:"route.pcf",icon:a.jsx(ge.PCF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.PCF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.pcf.status",to:"/pcf/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:Lft.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.PCF})]},io(ue.PCF)]}]};function Fft(){const t=he.c(7),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"1200px"}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Tr,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>{const{authConfiguration:c}=l;return a.jsx(Ao,{tabs:[{url:"strategies",label:e.formatMessage({id:"route.auth.strategies"})},...c?[{url:"auth-config",label:e.formatMessage({id:"route.auth.auth_config"})}]:[],{url:"terms",label:e.formatMessage({id:"route.auth.terms"})}]})},t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.config||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.config,errorElement:s,children:i})}),t[4]=r.config,t[5]=i,t[6]=o):o=t[6],o}const ln=Pr();function Uft(t){return{access_token_ttl_s:t.access_token_ttl_s,refresh_token_ttl_s:t.refresh_token_ttl_s,login_throttle_period_s:t.login_throttle_period_s,audit_retention_s:t.audit_retention_s,ui_inactivity_s:t.isUiInactivityTimerInSeconds?t.ui_inactivity_s:null,login_max_attempts:t.isLoginMaxAttempts?t.login_max_attempts:null,password_rule_max_account_name_characters:t.password_rule_max_account_name_characters?t.password_rule_max_account_name_characters:null,password_rule_min_length:t.password_rule_min_length,password_rule_min_lowercase_characters:t.password_rule_min_lowercase_characters?t.password_rule_min_lowercase_characters:null,password_rule_min_number_characters:t.password_rule_min_number_characters?t.password_rule_min_number_characters:null,password_rule_min_special_characters:t.password_rule_min_special_characters?t.password_rule_min_special_characters:null,password_rule_min_uppercase_characters:t.password_rule_min_uppercase_characters?t.password_rule_min_uppercase_characters:null,password_rule_special_characters:t.password_rule_min_special_characters&&t.password_rule_special_characters?t.password_rule_special_characters:null}}function Bft(t){return{...t,isUiInactivityTimerInSeconds:t.ui_inactivity_s!==null,isLoginMaxAttempts:t.login_max_attempts!==null}}const zft=dr().shape({access_token_ttl_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.type"})).min(60,ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s.validation.required"})),refresh_token_ttl_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.type"})).min(120,ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s.validation.required"})),ui_inactivity_s:kn().when("isUiInactivityTimerInSeconds",(t,e)=>t?e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.type"})).min(60,ln.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.validation.min"})):e.nullable()),audit_retention_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s.validation.required"})),login_max_attempts:kn().when("isLoginMaxAttempts",(t,e)=>t?e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts.validation.min"})):e.nullable()),login_throttle_period_s:kn().typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.min"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s.validation.required"})),password_rule_max_account_name_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters.validation.min"})).nullable(),password_rule_min_length:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.integer"})).required(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.required"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.type"})).min(12,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length.validation.min"})),password_rule_min_lowercase_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters.validation.min"})).nullable(),password_rule_min_number_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters.validation.min"})).nullable(),password_rule_min_special_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.min"})).nullable(),password_rule_min_uppercase_characters:kn().integer(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.integer"})).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters.validation.min"})).nullable(),password_rule_special_characters:We().matches(new RegExp($.regex.specialCharacters)).typeError(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters.validation.type"})).min(1,ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters.validation.min"})).nullable().when("password_rule_min_special_characters",(t,e)=>{if(t)return e.required(ln.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters.validation.required"}))})}),qft=dr().shape({address:We().matches(new RegExp($.regex.ipv4v6Addr)).required(ln.formatMessage({id:"authentication_strategies.local.address.required"})),dev:We(),port:kn().required(ln.formatMessage({id:"authentication_strategies.local.port.required"})).min(0,ln.formatMessage({id:"authentication_strategies.local.port.min"})).max(65535,ln.formatMessage({id:"authentication_strategies.local.port.max"}))});function Vft(t){return{address:t.address,...t.dev&&{dev:t.dev},port:Number(t.port)}}function Hft(){const t=he.c(12),e=Ye(),{authConfiguration:r}=Np(),{submit:n,data:s,state:i}=gr();let o;t[0]!==n?(o=f=>{n(Uft(f),{method:"POST",encType:"application/json",action:$.urls.platformAuthenticationAuthConfigUpdate_Action})},t[0]=n,t[1]=o):o=t[1];const l=o;let c;t[2]!==r?(c=Bft(r),t[2]=r,t[3]=c):c=t[3];let u;t[4]!==s||t[5]!==e||t[6]!==i?(u=f=>{const{dirty:p,isValid:m,values:h}=f;return a.jsx(dn,{canWrite:Ue([[ie.management,ie.configuration]]),children:a.jsxs(te,{spacing:2,children:[a.jsx(pr,{title:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rules"}),elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"password_rule_min_length",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_length"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_lowercase_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_lowercase_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_uppercase_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_uppercase_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_number_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_number_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_min_special_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_min_special_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_special_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_special_characters"}),size:"small",helperText:y.error,disabled:!h.password_rule_min_special_characters||i!=="idle",error:!!y.error,fullWidth:!0})}}),a.jsx(Ke,{name:"password_rule_max_account_name_characters",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.password_rule_max_account_name_characters"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,fullWidth:!0})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"authentication_strategies.auth_config.form.session_timers"}),elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"access_token_ttl_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.access_token_ttl_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:60})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.access_token_ttl_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"refresh_token_ttl_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.refresh_token_ttl_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:120})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.refresh_token_ttl_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsxs(te,{direction:"row",justify:"stretch",align:"center",spacing:2,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"audit_retention_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.audit_retention_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.audit_retention_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:24})})})})]}),a.jsx(Ke,{name:"isUiInactivityTimerInSeconds",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,size:"medium",onChange:()=>{b(g.name,!g.value),g.value||b("ui_inactivity_s","")}}),a.jsx(_e,{color:g.value?"primary":"",children:e.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s.seconds"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.ui_inactivity_s"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}}),!!h.isUiInactivityTimerInSeconds&&a.jsx(Ke,{name:"ui_inactivity_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.ui_inactivity_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:60})}}),a.jsx(Ke,{name:"isLoginMaxAttempts",children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,size:"small",onChange:()=>{b(g.name,!g.value),g.value||b("login_max_attempts","")}}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"authentication_strategies.auth_config.tooltip.login_max_attempts"}),children:a.jsx("span",{children:a.jsx(te,{direction:"row",nowrap:!0,align:"center",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]})}}),!!h.isLoginMaxAttempts&&a.jsx(Ke,{name:"login_max_attempts",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.login_max_attempts"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),!!h.isLoginMaxAttempts&&a.jsx(Ke,{name:"login_throttle_period_s",children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"authentication_strategies.auth_config.form.login_throttle_period_s"}),size:"small",helperText:y.error,disabled:i!=="idle",error:!!y.error,type:"number",fullWidth:!0,min:1})}}),a.jsx(Xr,{data:s})]})})}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"authentication_strategies.form.buttons.save"}),disabled:i!=="idle"||!Ue([[ie.management,ie.configuration]])||!p||!m,loading:i!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[4]=s,t[5]=e,t[6]=i,t[7]=u):u=t[7];let d;return t[8]!==l||t[9]!==c||t[10]!==u?(d=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Wr,{initialValues:c,enableReinitialize:!0,validationSchema:zft,onSubmit:l,children:u})})}),t[8]=l,t[9]=c,t[10]=u,t[11]=d):d=t[11],d}const Gft=Pr(),Wft=dr().shape({backends:yr().test("backends",Gft.formatMessage({id:"authentication_strategies.form.errors.backends"}),t=>t?t?.includes(_i.local):!1)}),nx=t=>{const e=he.c(11),{fieldName:r,fieldLabel:n,dense:s,basePermissions:i,disabled:o,modalElevation:l}=t,c=s===void 0?!0:s,u=As(),d=Ye();let f;e[0]!==i||e[1]!==c||e[2]!==o||e[3]!==n||e[4]!==d||e[5]!==l||e[6]!==u?(f=m=>{const{field:h,form:_}=m,{setFieldValue:g}=_,y=(b,x)=>{g(h.name,{...h.value,[b]:x})};return a.jsx(pr,{title:n??d.formatMessage({id:"user_permissions.title"}),elevation:2,dense:c,modalElevation:l,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:3,children:[!!i&&a.jsx(Lr,{message:d.formatMessage({id:"user_permissions.permissions_may_be_overridden"}),severity:"info"}),a.jsx(te,{direction:"column",spacing:2,children:E4e.map(b=>a.jsxs(te,{direction:"row",justify:"space-between",align:"center",children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[a.jsxs(lk,{color:"primary",onChange:x=>y(b,x),exclusive:!0,value:h.value?.[b],children:[a.jsx(kh,{value:op.ro,disabled:o,sx:{...i?.[b]==="ro"&&{backgroundColor:u.palette.action.selected}},children:op.ro}),a.jsx(kh,{value:op.rw,disabled:o,sx:{...i?.[b]==="rw"&&{backgroundColor:u.palette.action.selected}},children:op.rw})]}),a.jsx(_e,{children:b})]}),!!i&&a.jsxs(a.Fragment,{children:[!!h.value?.[b]&&a.jsx(ms,{label:d.formatMessage({id:"user_permissions.overridden"}),color:"primary",variant:"outlined"}),!!i[b]&&!h.value?.[b]&&a.jsx(ms,{label:d.formatMessage({id:"user_permissions.from_roles"}),variant:"outlined"})]})]},b))})]})})})},e[0]=i,e[1]=c,e[2]=o,e[3]=n,e[4]=d,e[5]=l,e[6]=u,e[7]=f):f=e[7];let p;return e[8]!==r||e[9]!==f?(p=a.jsx(Ke,{name:r,children:f}),e[8]=r,e[9]=f,e[10]=p):p=e[10],p},Fue=t=>{const e=he.c(7),{rolesList:r,rolesMappings:n,disabled:s}=t,i=Ye(),o=Yft,l=Kft;let c;e[0]!==r?(c=r.map(Qft),e[0]=r,e[1]=c):c=e[1];const u=c;let d;return e[2]!==s||e[3]!==i||e[4]!==u||e[5]!==n?(d=a.jsx(oi,{name:"roles_mappings",children:f=>{const{remove:p,push:m,form:h}=f,{errors:_}=h;return a.jsx(pr,{title:i.formatMessage({id:"authentication_strategies.roles_mappings"}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"common.add"}),type:"button",startIcon:a.jsx(ge.Add,{}),size:"small",onClick:()=>o(m),disabled:s||!Ue(ie.management)}),elevation:2,children:a.jsx(Kt,{sx:{width:"100%",position:"relative"},children:a.jsxs(te,{direction:"column",spacing:1,nowrap:!0,fullWidth:!0,children:[n&&!!n.length&&n.map((g,y)=>{const{application_role:b,external_role:x}=g;return a.jsxs(te,{direction:"row",align:"flex-start",nowrap:!0,justify:"space-between",children:[a.jsxs(te,{direction:"row",nowrap:!0,fullWidth:!0,children:[a.jsx(Ke,{name:`roles_mappings.${y}.external_role`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,value:C.value||x,required:!0,label:i.formatMessage({id:"authentication_strategies.roles_mappings.external_role"}),size:"small",error:!!k.error,helperText:k.error,fullWidth:!0,disabled:s||!Ue(ie.management)})}}),a.jsx(Ke,{name:`roles_mappings.${y}.application_role`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{name:C.name,label:i.formatMessage({id:"authentication_strategies.roles_mappings.application_role"}),multiple:!1,size:"small",value:C.value||b,freeSolo:!1,options:u,onChange:(T,j)=>{P(C.name,j||"")},fullWidth:!0,error:!!k.error,helperText:k.error,required:!0,disabled:s||!Ue(ie.management)})}})]}),a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{onClick:()=>l(p,y),size:"small",disabled:s||!Ue(ie.management),sx:{mt:"10px"},children:a.jsx(ge.Trash,{})})})]},y)}),!!_.roles_mappings&&typeof _.roles_mappings=="string"&&a.jsx(Lr,{severity:"error",message:_.roles_mappings,sx:{mt:1}}),!n?.length&&a.jsx(Lr,{severity:"info",message:i.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}})]})})})}}),e[2]=s,e[3]=i,e[4]=u,e[5]=n,e[6]=d):d=e[6],d};function Yft(t){t({application_role:"",external_role:""})}function Kft(t,e){t(e)}function Qft(t){return t.id}const Sc=Pr(),XI={base_dn:"",bind_dn:"",bind_password:"",username_attribute:"",transport_remote_addresses:[],transport_remote_port:"",transport_ssl:!1,transport_ssl_verify:!1,transport_timeout_s:"",roles_mappings:[],permission_template:{backup:null,configuration:null,management:null,monitoring:null,provisioning:null,transport_keys:null,operator_codes:null,lawful_interception:null,milenage_constants:null},isPermissionTemplateActive:!1};function Zft(t){return{...!!t.base_dn&&{base_dn:t.base_dn},...!!t.bind_dn&&{bind_dn:t.bind_dn},...!!t.bind_password&&{bind_password:t.bind_password},...!!t.username_attribute&&{username_attribute:t.username_attribute},...!!t.permission_template&&t.isPermissionTemplateActive&&{permission_template:t.permission_template},...!!t.roles_mappings&&!t.isPermissionTemplateActive&&{roles_mappings:t.roles_mappings.reduce((e,r)=>({...e,[r.external_role]:r.application_role}),{})},transport:{remote_addresses:t.transport_remote_addresses,remote_port:t.transport_remote_port,ssl:t.transport_ssl,ssl_verify:t.transport_ssl_verify,timeout_s:t.transport_timeout_s}}}function Xft(t){return!t||Kae(t)?XI:{...XI,base_dn:t.base_dn??"",bind_dn:t.bind_dn??"",bind_password:t.bind_password??"",username_attribute:t.username_attribute??"",...!!t.transport&&{transport_remote_addresses:t.transport.remote_addresses,transport_remote_port:t.transport.remote_port,transport_ssl:t.transport.ssl,transport_ssl_verify:t.transport.ssl_verify??!1,transport_timeout_s:t.transport.timeout_s},...!!t.roles_mappings&&{roles_mappings:Object.entries(t.roles_mappings).map(([e,r])=>({external_role:e,application_role:r}))},...!t.roles_mappings&&{isPermissionTemplateActive:!0},...!!t.permission_template&&{permission_template:{...XI.permission_template,...t.permission_template}}}}const Jft=dr().shape({base_dn:We(),bind_dn:We().when("bind_password",(t,e)=>t?e.required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.bind_dn_required_if_bind_password"})):e),bind_password:We().when("bind_dn",(t,e)=>t?e.required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.bind_password_required_if_bind_dn"})):e),username_attribute:We(),permission_template:dr().shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()}),isPermissionTemplateActive:li(),roles_mappings:yr().when("isPermissionTemplateActive",(t,e)=>t?e:yr().of(dr().shape({external_role:We().required(Sc.formatMessage({id:"authentication_strategies.external_role.required"})),application_role:We().required(Sc.formatMessage({id:"authentication_strategies.application_role.required"}))})).test({name:"unique-external-role",message:Sc.formatMessage({id:"authentication_strategies.unique_external_role"}),test:r=>r?.length===0||r&&r.length===[...new Set(r.map(n=>`${n.external_role}`))].length})),transport_remote_addresses:yr().of(We().matches(new RegExp($.regex.ipv4v6Addr))).min(1,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_addresses"})).required(),transport_remote_port:kn().min(0,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port.min"})).max(65535,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port.max"})).required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.remote_port"})),transport_timeout_s:kn().min(1,Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.timeout_s.min"})).required(Sc.formatMessage({id:"authentication_strategies.ldap.form_errors.transport.timeout_s"})),transport_ssl_verify:li(),transport_ssl:li().required()},[["bind_dn","bind_password"]]);function Uue(t){const e=he.c(22),{backend:r,config:n}=t,{submit:s,state:i,data:o}=gr(),{submit:l,state:c,data:u}=gr(),d=Ye(),f=n?.address??"",p=n?.port??"",m=n?.dev??"";let h;e[0]!==f||e[1]!==p||e[2]!==m?(h={address:f,port:p,dev:m},e[0]=f,e[1]=p,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e[4]!==r||e[5]!==s?(g=k=>{s(Vft(k),{method:"POST",encType:"application/json",action:`${r}-local-config-update`})},e[4]=r,e[5]=s,e[6]=g):g=e[6];const y=g;let b;e[7]!==r||e[8]!==l?(b=()=>{l(null,{method:"DELETE",encType:"application/json",action:`${r}-local-config-reset`})},e[7]=r,e[8]=l,e[9]=b):b=e[9];const x=b;let w;e[10]!==r||e[11]!==u||e[12]!==o||e[13]!==x||e[14]!==d||e[15]!==c||e[16]!==i?(w=()=>a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:d.formatMessage({id:"authentication_strategies.local.title"},r===_i.radius?{backend:"Radius"}:{backend:"Ldap"}),elevation:3,sx:{m:2},children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(Ke,{name:"address",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.address"}),size:"small",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle",required:!0})}}),a.jsx(Ke,{name:"dev",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.dev"}),size:"small",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle"})}}),a.jsx(Ke,{name:"port",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:d.formatMessage({id:"authentication_strategies.local.port"}),size:"small",type:"number",helperText:P.error,error:!!P.error,disabled:i!=="idle"||c!=="idle",required:!0})}})]}),a.jsx(Xr,{data:o}),a.jsx(Xr,{data:u}),a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{type:"submit",text:d.formatMessage({id:"authentication_strategies.local.save"}),disabled:i!=="idle"||c!=="idle"}),a.jsx(Ze,{text:d.formatMessage({id:"authentication_strategies.local.reset"}),disabled:i!=="idle"||c!=="idle",variant:"outlined",onClick:x})]})]})})})}),e[10]=r,e[11]=u,e[12]=o,e[13]=x,e[14]=d,e[15]=c,e[16]=i,e[17]=w):w=e[17];let C;return e[18]!==y||e[19]!==_||e[20]!==w?(C=a.jsx(Wr,{initialValues:_,onSubmit:y,enableReinitialize:!0,validationSchema:qft,children:w}),e[18]=y,e[19]=_,e[20]=w,e[21]=C):C=e[21],C}const ept=()=>{const t=he.c(16),e=Ye();let r;t[0]!==e?(r=a.jsx(Ke,{name:"transport_ssl",children:c=>{const{field:u,form:d}=c,{isSubmitting:f,setFieldValue:p}=d;return a.jsx(da,{onChange:(m,h)=>{p(u.name,h)},checked:u.value,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.ssl"}),disabled:f})}}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=a.jsx(Ke,{name:"transport_ssl_verify",children:c=>{const{field:u,form:d}=c,{isSubmitting:f,setFieldValue:p}=d;return a.jsx(da,{onChange:(m,h)=>{p(u.name,h)},checked:!!u.value,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.ssl_verify"}),disabled:f})}}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=a.jsx(Ke,{name:"transport_remote_addresses",children:c=>{const{field:u,meta:d,form:f}=c,{setFieldValue:p}=f;return a.jsx(rn,{name:u.name,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.remote_addresses"}),value:u.value,multiple:!0,size:"small",freeSolo:!0,options:[""],onChange:(m,h)=>{p(u.name,h||"")},error:!!d.error,helperText:d.error,fullWidth:!0})}}),t[4]=e,t[5]=s):s=t[5];let i;t[6]!==e?(i=a.jsx(Ke,{name:"transport_remote_port",children:c=>{const{field:u,meta:d,form:f}=c,{isSubmitting:p}=f;return a.jsx(dt,{...u,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.remote_port"}),size:"small",helperText:d.error,error:!!d.error,disabled:p,type:"number",required:!0})}}),t[6]=e,t[7]=i):i=t[7];let o;t[8]!==e?(o=a.jsx(Ke,{name:"transport_timeout_s",children:c=>{const{field:u,meta:d,form:f}=c,{isSubmitting:p}=f;return a.jsx(dt,{...u,label:e.formatMessage({id:"authentication_strategies.ldap.transport.form.timeout_s"}),size:"small",helperText:d.error,error:!!d.error,disabled:p,type:"number",required:!0})}}),t[8]=e,t[9]=o):o=t[9];let l;return t[10]!==r||t[11]!==n||t[12]!==s||t[13]!==i||t[14]!==o?(l=a.jsxs(te,{spacing:2,children:[r,n,s,i,o]}),t[10]=r,t[11]=n,t[12]=s,t[13]=i,t[14]=o,t[15]=l):l=t[15],l},tpt=t=>{const e=he.c(26),{backendList:r,ldapConfig:n,rolesList:s,ldapLocalConfig:i}=t,o=Ye(),{data:l,state:c,submit:u}=gr();let d;e[0]!==r?(d=r.includes(_i.ldap),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=Xft(n),e[2]=n,e[3]=p):p=e[3];const m=p;let h;e[4]!==u?(h=async k=>{u(Zft(k),{method:"POST",encType:"application/json",action:"ldap-config-update"})},e[4]=u,e[5]=h):h=e[5];const _=h;let g;e[6]!==o||e[7]!==f?(g=!f&&a.jsx(Lr,{severity:"warning",message:o.formatMessage({id:"authentication_strategies.ldap.not_active"})}),e[6]=o,e[7]=f,e[8]=g):g=e[8];let y;e[9]!==l||e[10]!==o||e[11]!==s||e[12]!==c?(y=k=>{const{values:A}=k;return a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.ldap.card.title"}),elevation:2,children:a.jsx(Kt,{children:a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"base_dn",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.base_dn"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"bind_dn",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.bind_dn"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"bind_password",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.bind_password"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"username_attribute",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.ldap.form.username_attribute"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error})}}),a.jsx(Ke,{name:"isPermissionTemplateActive",children:P=>{const{field:T,form:j}=P,{setFieldValue:R}=j;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{color:T.value?"":"primary",children:o.formatMessage({id:"authentication_strategies.roles_mappings"})}),a.jsx(ti,{checked:T.value,onChange:()=>{R(T.name,!T.value)}}),a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.permission_template"})})]})}}),A.isPermissionTemplateActive?a.jsx(nx,{fieldName:"permission_template",fieldLabel:o.formatMessage({id:"authentication_strategies.ldap.form.permission_template"}),disabled:c!=="idle"}):a.jsx(Fue,{rolesList:s,rolesMappings:A.roles_mappings,disabled:c!=="idle"}),a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.ldap.transport.title"}),elevation:3,children:a.jsx(Kt,{children:a.jsx(ept,{})})}),a.jsx(Xr,{data:l}),a.jsx(Ze,{type:"submit",text:o.formatMessage({id:"authentication_strategies.ldap.form.buttons.save"}),disabled:c!=="idle"||!Ue(ie.management),loading:c!=="idle",sx:{alignSelf:"flex-start"}})]})})})})},e[9]=l,e[10]=o,e[11]=s,e[12]=c,e[13]=y):y=e[13];let b;e[14]!==_||e[15]!==m||e[16]!==y?(b=a.jsx(Wr,{initialValues:m,onSubmit:_,enableReinitialize:!0,validationSchema:Jft,children:y}),e[14]=_,e[15]=m,e[16]=y,e[17]=b):b=e[17];let x;e[18]!==g||e[19]!==b?(x=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[g,b]})}),e[18]=g,e[19]=b,e[20]=x):x=e[20];let w;e[21]!==i?(w=a.jsx(Uue,{backend:_i.ldap,config:i}),e[21]=i,e[22]=w):w=e[22];let C;return e[23]!==x||e[24]!==w?(C=a.jsxs(te,{children:[x,w]}),e[23]=x,e[24]=w,e[25]=C):C=e[25],C},yw=Pr();function rpt(t){const{allow_unsafe_http:e,configuration_overrides:r,permission_template:n,roles_mappings:s,username_attribute:i,is_permission_template_active:o,client_id:l,client_secret:c,issuer:u}=t;return{client_id:l,client_secret:c,issuer:u,...e&&{allow_unsafe_http:e},...i&&{username_attribute:i},...!Ni.isEmpty(r)&&{username_attribute:i},...o&&!Ni.isEmpty(n)&&{permission_template:n},...!o&&s&&s.length&&{roles_mappings:s.reduce((d,{application_role:f,external_role:p})=>({...d,[p]:f}),{})},...r&&{configuration_overrides:JSON.parse(r)}}}function npt({permission_template:t,roles_mappings:e,configuration_overrides:r,...n}){return{...n,client_secret:"",is_permission_template_active:!Ni.isEmpty(t)&&!0,...t&&{permission_template:t},...e&&{roles_mappings:Object.entries(e).map(([s,i])=>({external_role:s,application_role:i}))},...r&&{configuration_overrides:JSON.stringify(r,null,2)}}}const spt=dr().shape({allow_unsafe_http:li(),client_id:We().required(),client_secret:We().required(),issuer:We().matches(new RegExp($.regex.url)),username_attribute:We(),provider_label:We(),is_permission_template_active:li(),permission_template:dr().when("is_permission_template_active",{is:!0,then:t=>t.shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()})}),roles_mappings:yr().when("is_permission_template_active",{is:!1,then:t=>t.of(dr().shape({external_role:We().required(yw.formatMessage({id:"authentication_strategies.external_role.required"})),application_role:We().required(yw.formatMessage({id:"authentication_strategies.application_role.required"}))}))}).test({name:"unique-external-role",message:yw.formatMessage({id:"authentication_strategies.unique_external_role"}),test:t=>t?t.length===0||t.length===[...new Set(t.map(e=>`${e.external_role}`))].length:!0}),configuration_overrides:We().test("valid-json-configuration-overrides",yw.formatMessage({id:"authentication_strategies.invalid_configuration_overrides"}),t=>{if(!t)return!0;try{return JSON.parse(t),!0}catch{return!1}})}),ipt=t=>{const e=he.c(21),{backendList:r,openIdConfig:n,rolesList:s}=t,i=Ye(),{data:o,state:l,submit:c}=gr();let u;e[0]!==r?(u=r.includes(_i.openid),e[0]=r,e[1]=u):u=e[1];const d=u;let f;e[2]!==n?(f=npt(n),e[2]=n,e[3]=f):f=e[3];const p=f;let m;e[4]!==c?(m=x=>{c(rpt(x),{method:"POST",encType:"application/json",action:"openid-config-update"})},e[4]=c,e[5]=m):m=e[5];const h=m;let _;e[6]!==i||e[7]!==d?(_=!d&&a.jsx(Lr,{severity:"warning",message:i.formatMessage({id:"authentication_strategies.openid.not_active"})}),e[6]=i,e[7]=d,e[8]=_):_=e[8];let g;e[9]!==o||e[10]!==i||e[11]!==s||e[12]!==l?(g=x=>{const{values:w}=x;return a.jsx(Kd,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"allow_unsafe_http",children:C=>{const{field:k,form:A}=C,{setFieldValue:P}=A;return a.jsx(da,{onChange:(T,j)=>{P(k.name,j)},checked:k.value,label:i.formatMessage({id:"authentication_strategies.openid.allow_unsafe_http"}),disabled:l!=="idle"||!Ue(ie.management)})}}),a.jsx(Ke,{name:"client_id",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.client_id"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0})}}),a.jsx(Ke,{name:"client_secret",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.client_secret"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0,showPasswordVisibility:!0,type:"password",autoComplete:"new-password"})}}),a.jsx(Ke,{name:"issuer",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.issuer"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,required:!0})}}),a.jsx(Ke,{name:"username_attribute",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"authentication_strategies.openid.username_attribute"}),size:"small",helperText:A.error,disabled:l!=="idle"||!Ue(ie.management),error:!!A.error,autoComplete:"new-text"})}}),a.jsx(xr,{elevation:2,title:i.formatMessage({id:"authentication_strategies.openid.configuration_overrides"}),content:a.jsx(Ke,{name:"configuration_overrides",children:opt})}),a.jsx(Ke,{name:"is_permission_template_active",children:C=>{const{field:k,form:A}=C,{setFieldValue:P}=A;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{color:k.value?"":"primary",children:i.formatMessage({id:"authentication_strategies.roles_mappings"})}),a.jsx(ti,{checked:k.value,onChange:()=>{P(k.name,!k.value)}}),a.jsx(_e,{children:i.formatMessage({id:"authentication_strategies.permission_template"})})]})}}),w.is_permission_template_active?a.jsx(nx,{fieldName:"permission_template",fieldLabel:i.formatMessage({id:"authentication_strategies.permission_template"}),disabled:l!=="idle"}):a.jsx(Fue,{rolesList:s,rolesMappings:w.roles_mappings,disabled:l!=="idle"}),a.jsx(Xr,{data:o}),a.jsx(Ze,{type:"submit",text:i.formatMessage({id:"common.save"}),disabled:l!=="idle"||!Ue(ie.management),loading:l!=="idle",sx:{alignSelf:"flex-start"}})]})})},e[9]=o,e[10]=i,e[11]=s,e[12]=l,e[13]=g):g=e[13];let y;e[14]!==h||e[15]!==p||e[16]!==g?(y=a.jsx(Wr,{initialValues:p,onSubmit:h,validationSchema:spt,children:g}),e[14]=h,e[15]=p,e[16]=g,e[17]=y):y=e[17];let b;return e[18]!==_||e[19]!==y?(b=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[_,y]})}),e[18]=_,e[19]=y,e[20]=b):b=e[20],b};function opt(t){const{field:e,meta:r,form:n}=t,{setFieldValue:s}=n;return a.jsx(Fv,{...e,onChange:i=>{s(e.name,i)},value:e.value?e.value:"",language:"json",error:r.error,sx:{height:"300px"}})}const _u=Pr(),JI={secret:"",transport_remote_addresses:[],transport_remote_port:"",transport_timeout_s:"",isPermissionTemplateActive:!1,roles:[],permission_template:{backup:null,configuration:null,management:null,monitoring:null,provisioning:null,transport_keys:null,operator_codes:null,lawful_interception:null,milenage_constants:null}};function apt(t){return{secret:t.secret,...t.roles&&!t.isPermissionTemplateActive&&{roles:t.roles},...t.permission_template&&t.isPermissionTemplateActive&&{permission_template:Yae(t.permission_template)},transport:{remote_addresses:t.transport_remote_addresses,remote_port:t.transport_remote_port,timeout_s:t.transport_timeout_s}}}function lpt(t){return!t||Kae(t)?JI:{...JI,secret:t.secret,...!!t.transport&&{transport_remote_addresses:t.transport.remote_addresses,transport_remote_port:t.transport.remote_port,transport_timeout_s:t.transport.timeout_s},...!!t.roles&&{roles:t.roles},...!t.roles?.length&&{isPermissionTemplateActive:!0},...!!t.permission_template&&{permission_template:{...JI.permission_template,...t.permission_template}}}}const cpt=dr().shape({secret:We().required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.secret"})),permission_template:dr().shape({backup:We().nullable(),configuration:We().nullable(),management:We().nullable(),monitoring:We().nullable(),provisioning:We().nullable(),transport_keys:We().nullable(),operator_codes:We().nullable(),lawful_interception:We().nullable()}).required(),isPermissionTemplateActive:li(),roles:yr().when("isPermissionTemplateActive",(t,e)=>t?e:yr().of(We().required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.roles_required"}))).min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.roles_min"})).test({name:"unique-role",message:_u.formatMessage({id:"authentication_strategies.radius.form_errors.unique_role"}),test:r=>r?.length===0||r&&r.length===[...new Set(r.map(n=>`${n}`))].length})),transport_remote_addresses:yr().of(We().matches(new RegExp($.regex.ipv4v6Addr))).min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_addresses"})).required(),transport_remote_port:kn().min(0,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port.min"})).max(65535,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port.max"})).required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.remote_port"})),transport_timeout_s:kn().min(1,_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.timeout_s.min"})).required(_u.formatMessage({id:"authentication_strategies.radius.form_errors.transport.timeout_s"}))}),upt=()=>{const t=he.c(10),e=Ye();let r;t[0]!==e?(r=a.jsx(Ke,{name:"transport_remote_addresses",children:o=>{const{field:l,meta:c,form:u}=o,{setFieldValue:d}=u;return a.jsx(rn,{name:l.name,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.remote_addresses"}),value:l.value,multiple:!0,size:"small",freeSolo:!0,options:[""],onChange:(f,p)=>{d(l.name,p||"")},error:!!c.error,helperText:c.error,fullWidth:!0})}}),t[0]=e,t[1]=r):r=t[1];let n;t[2]!==e?(n=a.jsx(Ke,{name:"transport_remote_port",children:o=>{const{field:l,meta:c,form:u}=o,{isSubmitting:d}=u;return a.jsx(dt,{...l,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.remote_port"}),size:"small",helperText:c.error,error:!!c.error,disabled:d,type:"number",required:!0})}}),t[2]=e,t[3]=n):n=t[3];let s;t[4]!==e?(s=a.jsx(Ke,{name:"transport_timeout_s",children:o=>{const{field:l,meta:c,form:u}=o,{isSubmitting:d}=u;return a.jsx(dt,{...l,label:e.formatMessage({id:"authentication_strategies.radius.transport.form.timeout_s"}),size:"small",helperText:c.error,error:!!c.error,disabled:d,type:"number",required:!0})}}),t[4]=e,t[5]=s):s=t[5];let i;return t[6]!==r||t[7]!==n||t[8]!==s?(i=a.jsxs(te,{spacing:2,children:[r,n,s]}),t[6]=r,t[7]=n,t[8]=s,t[9]=i):i=t[9],i},dpt=t=>{const e=he.c(26),{backendList:r,radiusConfig:n,rolesList:s,radiusLocalConfig:i}=t,o=Ye(),{data:l,state:c,submit:u}=gr();let d;e[0]!==r?(d=r.includes(_i.radius),e[0]=r,e[1]=d):d=e[1];const f=d;let p;e[2]!==n?(p=lpt(n),e[2]=n,e[3]=p):p=e[3];const m=p;let h;e[4]!==u?(h=async k=>{u(apt(k),{method:"POST",encType:"application/json",action:"radius-config-update"})},e[4]=u,e[5]=h):h=e[5];const _=h;let g;e[6]!==o||e[7]!==f?(g=!f&&a.jsx(Lr,{severity:"warning",message:o.formatMessage({id:"authentication_strategies.radius.not_active"})}),e[6]=o,e[7]=f,e[8]=g):g=e[8];let y;e[9]!==l||e[10]!==o||e[11]!==s||e[12]!==c?(y=k=>{const{values:A}=k;return a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.radius.panel.title"}),elevation:3,children:a.jsx(Kt,{children:a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"secret",children:P=>{const{field:T,meta:j}=P;return a.jsx(dt,{...T,label:o.formatMessage({id:"authentication_strategies.radius.form.secret"}),size:"small",helperText:j.error,disabled:c!=="idle",error:!!j.error,required:!0})}}),a.jsx(Ke,{name:"isPermissionTemplateActive",children:P=>{const{field:T,form:j}=P,{setFieldValue:R}=j;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.radius.transport.form.roles"})}),a.jsx(ti,{checked:T.value,onChange:()=>{R(T.name,!T.value)}}),a.jsx(_e,{children:o.formatMessage({id:"authentication_strategies.radius.form.permission_template"})})]})}}),A.isPermissionTemplateActive?a.jsx(nx,{fieldName:"permission_template",fieldLabel:o.formatMessage({id:"authentication_strategies.radius.form.permission_template"})}):a.jsx(Ke,{name:"roles",children:P=>{const{field:T,meta:j,form:R}=P,{setFieldValue:D}=R;return a.jsx(rn,{name:T.name,label:o.formatMessage({id:"authentication_strategies.radius.form.roles"}),value:T.value,multiple:!0,size:"small",freeSolo:!1,options:s.map(fpt),onChange:(O,N)=>{D(T.name,[...new Set(N.map(ppt))])},fullWidth:!0,error:!!j.error,helperText:j.error})}}),a.jsx(pr,{title:o.formatMessage({id:"authentication_strategies.radius.transport.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsx(upt,{})})}),a.jsx(Xr,{data:l}),a.jsx(Ze,{type:"submit",text:o.formatMessage({id:"authentication_strategies.radius.form.buttons.save"}),disabled:c!=="idle"||!Ue(ie.management),loading:c!=="idle",sx:{alignSelf:"flex-start"}})]})})})})},e[9]=l,e[10]=o,e[11]=s,e[12]=c,e[13]=y):y=e[13];let b;e[14]!==_||e[15]!==m||e[16]!==y?(b=a.jsx(Wr,{initialValues:m,onSubmit:_,enableReinitialize:!0,validationSchema:cpt,children:y}),e[14]=_,e[15]=m,e[16]=y,e[17]=b):b=e[17];let x;e[18]!==g||e[19]!==b?(x=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[g,b]})}),e[18]=g,e[19]=b,e[20]=x):x=e[20];let w;e[21]!==i?(w=a.jsx(Uue,{backend:_i.radius,config:i}),e[21]=i,e[22]=w):w=e[22];let C;return e[23]!==x||e[24]!==w?(C=a.jsxs(te,{children:[x,w]}),e[23]=x,e[24]=w,e[25]=C):C=e[25],C};function fpt(t){return t.id}function ppt(t){return t.trim()}function mpt(){const t=he.c(53),e=Ye(),{backendList:r,ldapConfig:n,ldapLocalConfig:s,radiusLocalConfig:i,radiusConfig:o,rolesList:l,openIdConfig:c}=Np(),{data:u,state:d,submit:f}=gr();let p;t[0]!==f?(p=N=>{const{backends:F}=N;f(F,{method:"POST",encType:"application/json",action:"backends-update"})},t[0]=f,t[1]=p):p=t[1];const m=p;let h;t[2]!==e?(h=e.formatMessage({id:"authentication_strategies.title"}),t[2]=e,t[3]=h):h=t[3];let _;t[4]!==r?(_={backends:r},t[4]=r,t[5]=_):_=t[5];let g;t[6]!==u||t[7]!==e||t[8]!==d?(g=N=>{const{dirty:F,isValid:U}=N;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"authentication_strategies.form.backends.info"})}),a.jsx(Ke,{name:"backends",children:z=>{const{field:H,meta:W,form:K}=z,{setFieldValue:q}=K;return a.jsx(rn,{value:H.value,name:H.name,label:e.formatMessage({id:"authentication_strategies.form.backends"}),multiple:!0,size:"small",freeSolo:!1,options:WTe,onChange:(X,Q)=>{q(H.name,[...new Set(Q.map(hpt))])},error:!!W.error,helperText:W.error,disabled:d!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:u}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"authentication_strategies.form.buttons.save"}),disabled:d!=="idle"||!Ue(ie.management)||!F||!U,loading:d!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[6]=u,t[7]=e,t[8]=d,t[9]=g):g=t[9];let y;t[10]!==m||t[11]!==_||t[12]!==g?(y=a.jsx(Kt,{children:a.jsx(Wr,{initialValues:_,enableReinitialize:!0,validationSchema:Wft,onSubmit:m,children:g})}),t[10]=m,t[11]=_,t[12]=g,t[13]=y):y=t[13];let b;t[14]!==h||t[15]!==y?(b=a.jsx(pr,{elevation:2,title:h,children:y}),t[14]=h,t[15]=y,t[16]=b):b=t[16];let x;t[17]!==e?(x=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.radius}`}),t[17]=e,t[18]=x):x=t[18];let w;t[19]!==r||t[20]!==o||t[21]!==i||t[22]!==l?(w=a.jsx(dpt,{backendList:r,radiusConfig:o,rolesList:l,radiusLocalConfig:i}),t[19]=r,t[20]=o,t[21]=i,t[22]=l,t[23]=w):w=t[23];let C;t[24]!==x||t[25]!==w?(C={label:x,value:_i.radius,content:w},t[24]=x,t[25]=w,t[26]=C):C=t[26];let k;t[27]!==e?(k=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.ldap}`}),t[27]=e,t[28]=k):k=t[28];let A;t[29]!==r||t[30]!==n||t[31]!==s||t[32]!==l?(A=a.jsx(tpt,{backendList:r,ldapConfig:n,rolesList:l,ldapLocalConfig:s}),t[29]=r,t[30]=n,t[31]=s,t[32]=l,t[33]=A):A=t[33];let P;t[34]!==A||t[35]!==k?(P={label:k,value:_i.ldap,content:A},t[34]=A,t[35]=k,t[36]=P):P=t[36];let T;t[37]!==e?(T=e.formatMessage({id:`authentication_strategies.tabs.item.${_i.openid}`}),t[37]=e,t[38]=T):T=t[38];let j;t[39]!==r||t[40]!==c||t[41]!==l?(j=a.jsx(ipt,{backendList:r,openIdConfig:c,rolesList:l}),t[39]=r,t[40]=c,t[41]=l,t[42]=j):j=t[42];let R;t[43]!==T||t[44]!==j?(R={label:T,value:_i.openid,content:j},t[43]=T,t[44]=j,t[45]=R):R=t[45];let D;t[46]!==P||t[47]!==R||t[48]!==C?(D=a.jsx(pr,{elevation:2,children:a.jsx(VA,{value:_i.radius,tabs:[C,P,R]})}),t[46]=P,t[47]=R,t[48]=C,t[49]=D):D=t[49];let O;return t[50]!==D||t[51]!==b?(O=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[b,D]})})}),t[50]=D,t[51]=b,t[52]=O):O=t[52],O}function hpt(t){return t.trim()}const gpt=Pr();function _pt(t){const{enabled:e,terms:r,forbidden_notice:n}=t;return{enabled:e,terms:r,...n&&{forbidden_notice:n}}}function vpt({enabled:t,terms:e,forbidden_notice:r}){return{enabled:t,terms:e,forbidden_notice:r||""}}const ypt=dr().shape({enabled:li().required(),terms:We().required(gpt.formatMessage({id:"system_usage_terms.form.errors.required"})),forbidden_notice:We()});function bpt(){const t=he.c(11),e=Ye(),{systemUsageTerms:r}=Np(),{submit:n,state:s}=gr();let i;t[0]!==n?(i=d=>{n(_pt(d),{method:"PUT",action:"system-usage-terms-update",encType:"application/json"})},t[0]=n,t[1]=i):i=t[1];const o=i;let l;t[2]!==r?(l=vpt(r),t[2]=r,t[3]=l):l=t[3];let c;t[4]!==e||t[5]!==s?(c=d=>{const{dirty:f,values:p}=d;return a.jsx(dn,{canWrite:Ue([[ie.management]]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:"row",children:[a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsx(Rv,{control:a.jsx(ti,{onChange:(y,b)=>{g(h.name,b)},checked:h.value}),label:e.formatMessage({id:"common.enabled"}),sx:{m:0}})}}),a.jsx(Mn,{placement:"right",arrow:!0,title:e.formatMessage({id:"system_usage_terms.form.checkbox.hint"}),children:a.jsx(gt,{display:"flex",justifyContent:"center",alignItems:"center",children:a.jsx(ge.QuestionMark,{size:18})})})]}),a.jsx(Ke,{name:"terms",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,fullWidth:!0,required:!0,multiline:10,label:e.formatMessage({id:"system_usage_terms.form.terms"}),error:!!_.error,helperText:_.error,disabled:!p.enabled})}}),a.jsx(Ke,{name:"forbidden_notice",children:m=>{const{field:h,meta:_}=m;return a.jsx(dt,{...h,fullWidth:!0,multiline:3,label:e.formatMessage({id:"system_usage_terms.form.forbidden_notice"}),error:!!_.error,helperText:_.error,disabled:!p.enabled})}}),a.jsx(Lr,{message:e.formatMessage({id:"system_usage_terms.form.forbidden_notice.alert"})}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.save"}),disabled:!Ue([ie.management])||!f,loading:s!=="idle",sx:{alignSelf:"flex-start"}})]})})},t[4]=e,t[5]=s,t[6]=c):c=t[6];let u;return t[7]!==o||t[8]!==l||t[9]!==c?(u=a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Wr,{validationSchema:ypt,initialValues:l,onSubmit:o,enableReinitialize:!0,children:c})})}),t[7]=o,t[8]=l,t[9]=c,t[10]=u):u=t[10],u}const dk=t=>{const e=he.c(2),{permissions:r}=t;let n;return e[0]!==r?(n=a.jsx(a.Fragment,{children:Object.entries(r??{}).map(xpt)}),e[0]=r,e[1]=n):n=e[1],n};function xpt(t){const[e,r]=t;return a.jsxs(te,{justify:"stretch",direction:"row",align:"center",nowrap:!0,children:[a.jsxs(te,{direction:"row",divided:!0,align:"center",nowrap:!0,spacing:.5,children:[a.jsx(_e,{fontWeight:"600",type:"body2",color:r===op.ro?"primary":"grey.500",sx:{textTransform:"uppercase"},children:op.ro}),a.jsx(_e,{fontWeight:"600",type:"body2",color:r===op.rw?"primary":"grey.500",sx:{textTransform:"uppercase"},children:op.rw})]}),a.jsx(_e,{type:"body2",sx:{textTransform:"lowercase"},children:e})]},e)}const Spt=Pr(),wpt=dr().shape({id:We().required(Spt.formatMessage({id:"roles.new_role.form_errors.required"})),permissions:dr()});function Bue(t){const e=he.c(24),{id:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i,isLoading:o}=Ys(),{submit:l,state:c,data:u}=s,{load:d,data:f}=i,p=!!r,{dialogClose:m}=Jt();let h,_;e[0]!==r||e[1]!==p||e[2]!==d?(h=()=>{p&&d($.urls.platformRolesDetails.replace(":id",r))},_=[r,p,d],e[0]=r,e[1]=p,e[2]=d,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_),f?.role;const g=f?.role,y=g?.id??"";let b;e[5]!==g?.permissions?(b=g?.permissions?{...g?.permissions}:{},e[5]=g?.permissions,e[6]=b):b=e[6];let x;e[7]!==y||e[8]!==b?(x={id:y,permissions:b},e[7]=y,e[8]=b,e[9]=x):x=e[9];const w=x;let C;e[10]!==f?.role||e[11]!==l?(C=T=>{const{id:j,permissions:R}=T,D=f?.role;l({id:j,...R&&{permissions:R},permissions:Yae(R)},{method:D?"PATCH":"POST",encType:"application/json",action:D?$.urls.platformRolesUpdate_Action:$.urls.platformRolesCreate_Action})},e[10]=f?.role,e[11]=l,e[12]=C):C=e[12],f?.role;const k=C;let A;e[13]!==m||e[14]!==u||e[15]!==c||e[16]!==n||e[17]!==p||e[18]!==o?(A=T=>{const{dirty:j}=T;return a.jsxs(dn,{canWrite:Ue(ie.management),children:[a.jsx(_s,{loading:o,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"id",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"roles.new_role.form.id"}),size:"medium",error:!!O.error,helperText:O.error,disabled:p||c!=="idle"})}}),a.jsx(nx,{fieldName:"permissions",modalElevation:!0}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:c!=="idle",onClick:()=>m()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!j||!Ue(ie.management),loading:c!=="idle"})]})})]})},e[13]=m,e[14]=u,e[15]=c,e[16]=n,e[17]=p,e[18]=o,e[19]=A):A=e[19];let P;return e[20]!==k||e[21]!==w||e[22]!==A?(P=a.jsx(Wr,{enableReinitialize:!0,initialValues:w,validationSchema:wpt,onSubmit:k,children:A}),e[20]=k,e[21]=w,e[22]=A,e[23]=P):P=e[23],P}const Cpt=()=>{const t=he.c(60),e=Ye(),r=zn(),{dialogOpen:n,confirmationSimpleDialogOpen:s}=Jt(),i=gr();let o;t[0]!==n||t[1]!==e?(o=()=>{n({title:e.formatMessage({id:"roles.new_role.form.title"}),content:Apt})},t[0]=n,t[1]=e,t[2]=o):o=t[2];const l=o;let c;t[3]!==e?(c=e.formatMessage({id:"roles.table.id"}),t[3]=e,t[4]=c):c=t[4];let u;t[5]!==c?(u={key:"id",label:c},t[5]=c,t[6]=u):u=t[6];let d;t[7]!==e?(d=e.formatMessage({id:"roles.table.permissions"}),t[7]=e,t[8]=d):d=t[8];let f;t[9]!==d?(f={key:"permissions",label:d,cellRender:kpt},t[9]=d,t[10]=f):f=t[10];let p;t[11]!==e?(p=e.formatMessage({id:"roles.table.created_at"}),t[11]=e,t[12]=p):p=t[12];let m;t[13]!==p?(m={key:"created_at",label:p,cellRender:Mpt},t[13]=p,t[14]=m):m=t[14];let h;t[15]!==e?(h=e.formatMessage({id:"roles.table.modified_at"}),t[15]=e,t[16]=h):h=t[16];let _;t[17]!==h?(_={key:"modified_at",label:h,cellRender:Ppt},t[17]=h,t[18]=_):_=t[18];let g;t[19]!==u||t[20]!==f||t[21]!==m||t[22]!==_?(g=[u,f,m,_],t[19]=u,t[20]=f,t[21]=m,t[22]=_,t[23]=g):g=t[23];const y=g;let b;t[24]!==i?(b=K=>{i.submit({id:K},{method:"DELETE",encType:"application/json",action:$.urls.platformRolesDelete_Action})},t[24]=i,t[25]=b):b=t[25];const x=b;let w;t[26]!==e?(w=e.formatMessage({id:"roles.table.actions.update"}),t[26]=e,t[27]=w):w=t[27];let C,k;t[28]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(ge.Edit,{}),k=Ue(ie.management),t[28]=C,t[29]=k):(C=t[28],k=t[29]);let A;t[30]!==n||t[31]!==e?(A=K=>{const{id:q}=K;n({title:e.formatMessage({id:"roles.edit_role.form.title"}),content:()=>a.jsx(Bue,{id:q})})},t[30]=n,t[31]=e,t[32]=A):A=t[32];let P;t[33]!==w||t[34]!==A?(P={label:w,icon:C,disabled:!k,onClick:A},t[33]=w,t[34]=A,t[35]=P):P=t[35];let T;t[36]!==e?(T=e.formatMessage({id:"roles.table.actions.delete"}),t[36]=e,t[37]=T):T=t[37];let j,R;t[38]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Trash,{}),R=Ue(ie.management),t[38]=j,t[39]=R):(j=t[38],R=t[39]);let D;t[40]!==s||t[41]!==x||t[42]!==e?(D=K=>{const{id:q}=K;s({title:e.formatMessage({id:"roles.dialog.confirm_delete.title"}),description:e.formatMessage({id:"roles.dialog.confirm_delete.description"},{role:q}),onConfirm:()=>{x(q)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[40]=s,t[41]=x,t[42]=e,t[43]=D):D=t[43];let O;t[44]!==T||t[45]!==D?(O={label:T,icon:j,disabled:!R,onClick:D},t[44]=T,t[45]=D,t[46]=O):O=t[46];let N;t[47]!==P||t[48]!==O?(N=[P,O],t[47]=P,t[48]=O,t[49]=N):N=t[49];const F=N;let U;t[50]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[50]=U):U=t[50];let z;t[51]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[51]=z):z=t[51];let H;t[52]!==y||t[53]!==l||t[54]!==e||t[55]!==F?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"toolbar-button-new-role",text:e.formatMessage({id:"roles.toolbar.new_role"}),startIcon:a.jsx(ge.Add,{}),onClick:l})}),a.jsx(Br,{autoScale:!0,orderBy:"id",columns:y,data:K,page:0,labelDisplayedRows:jpt,rowsCount:K.length,rowsPerPage:K.length,rowsPerPageOptions:void 0,rowKey:"id",rowActions:F,stickyRowActions:!0})]}),t[52]=y,t[53]=l,t[54]=e,t[55]=F,t[56]=H):H=t[56];let W;return t[57]!==r.roles||t[58]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:r.roles,errorElement:z,children:H})}),t[57]=r.roles,t[58]=H,t[59]=W):W=t[59],W};function Apt(){return a.jsx(Bue,{})}function kpt(t){const{permissions:e}=t;return e?a.jsx(dk,{permissions:e}):a.jsx(a.Fragment,{})}function Mpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Ppt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function jpt(){return""}function tJ(t){const e=he.c(24),{type:r}=t,n=Ye(),s=gl(),i=`fetcher-${r}-certificate`;let o;e[0]!==i?(o={key:i},e[0]=i,e[1]=o):o=e[1];const l=gr(o);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[2]=c):c=e[2];let u;e[3]!==r?(u=r===ip.SERVER&&{key_file:[]},e[3]=r,e[4]=u):u=e[4];let d;e[5]!==u?(d={cert_file:c,...u},e[5]=u,e[6]=d):d=e[6];const f=d;let p;e:{switch(r){case ip.CLIENT:{let b;e[7]!==n?(b=dr().shape({cert_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"}))}),e[7]=n,e[8]=b):b=e[8],p=b;break e}case ip.SERVER:{let b;e[9]!==n?(b=dr().shape({cert_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})),key_file:yr().min(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).max(1,n.formatMessage({id:"pls.tls.certificates.form.error.file_required"})).required(n.formatMessage({id:"pls.tls.certificates.form.error.file_required"}))}),e[9]=n,e[10]=b):b=e[10],p=b;break e}}p=void 0}const m=p;let h;e[11]!==s||e[12]!==r?(h=b=>{const x=new FormData;for(const w in b){const C=b[w];if(!C)return;x.append(w,C[0])}s(x,{method:"POST",encType:"multipart/form-data",action:`${r}-certificate-update`,navigate:!1,fetcherKey:`fetcher-${r}-certificate`})},e[11]=s,e[12]=r,e[13]=h):h=e[13];const _=h;let g;e[14]!==l.data||e[15]!==l.state||e[16]!==n||e[17]!==r?(g=b=>{const{dirty:x,isValid:w}=b;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:n.formatMessage({id:`pls.tls.certificates.${r}.title`}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"cert_file",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsxs(te,{children:[a.jsx(_e,{children:n.formatMessage({id:"pls.tls.certificates.form.cert_file"})}),a.jsx(Z_,{...k,label:n.formatMessage({id:"pls.tls.certificates.form.file"}),disabled:l.state!=="idle",maxFiles:1,multiple:!1,onChange:j=>{setTimeout(()=>{T(k.name,j)},0)},formError:A.error})]})}}),r===ip.SERVER&&a.jsx(Ke,{name:"key_file",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsxs(te,{children:[a.jsx(_e,{children:n.formatMessage({id:"pls.tls.certificates.form.key_file"})}),a.jsx(Z_,{...k,label:n.formatMessage({id:"pls.tls.certificates.form.file"}),disabled:l.state!=="idle",maxFiles:1,multiple:!1,onChange:j=>{setTimeout(()=>{T(k.name,j)},0)},formError:A.error})]})}}),a.jsx(Xr,{data:l.data}),a.jsx(Ze,{type:"submit",disabled:l.state!=="idle"||!x||!w||!Ue(ie.management),loading:l.state!=="idle",text:n.formatMessage({id:`pls.tls.certificates.${r}.form.update`}),sx:{alignSelf:"flex-start"}})]})})})})},e[14]=l.data,e[15]=l.state,e[16]=n,e[17]=r,e[18]=g):g=e[18];let y;return e[19]!==_||e[20]!==f||e[21]!==g||e[22]!==m?(y=a.jsx(Wr,{initialValues:f,enableReinitialize:!0,onSubmit:_,validationSchema:m,children:g}),e[19]=_,e[20]=f,e[21]=g,e[22]=m,e[23]=y):y=e[23],y}function Tpt(t){const e=he.c(11),{configuration:r}=t,n=Ye(),s=gl();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={key:"fetcher-configuration-update"},e[0]=i):i=e[0];const o=gr(i);let l;e[1]!==s?(l=f=>{s(f,{method:"PUT",encType:"application/json",action:"configuration-update",navigate:!1,fetcherKey:"fetcher-configuration-update"})},e[1]=s,e[2]=l):l=e[2];const c=l;let u;e[3]!==o.data||e[4]!==o.state||e[5]!==n?(u=f=>{const{dirty:p}=f;return a.jsx(dn,{canWrite:Ue(ie.management),children:a.jsx(pr,{title:n.formatMessage({id:"pls.tls.configuration.title"}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsxs("div",{children:[a.jsx(Ke,{name:"client_auth",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:h.value,onChange:(y,b)=>{g(h.name,b)},disabled:o.state!=="idle"}),a.jsx(_e,{children:n.formatMessage({id:"pls.tls.configuration.form.client_auth"})})]})}}),a.jsx(Ke,{name:"enabled",children:m=>{const{field:h,form:_}=m,{setFieldValue:g}=_;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:h.value,onChange:(y,b)=>{g(h.name,b)},disabled:o.state!=="idle"}),a.jsx(_e,{children:n.formatMessage({id:"pls.tls.configuration.form.enabled"})})]})}})]}),a.jsx(Xr,{data:o.data,sx:{mt:1}}),a.jsx(Ze,{type:"submit",disabled:o.state!=="idle"||!p||!Ue(ie.management),loading:o.state!=="idle",text:n.formatMessage({id:"pls.tls.configuration.form.apply"}),sx:{alignSelf:"flex-start"}})]})})})})},e[3]=o.data,e[4]=o.state,e[5]=n,e[6]=u):u=e[6];let d;return e[7]!==r||e[8]!==c||e[9]!==u?(d=a.jsx(Wr,{initialValues:r,enableReinitialize:!0,onSubmit:c,children:u}),e[7]=r,e[8]=c,e[9]=u,e[10]=d):d=e[10],d}function Ept(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(te,{spacing:2,children:[a.jsx(Dt,{variant:"rounded",height:"232px"}),a.jsx(Dt,{variant:"rounded",height:"251px"}),a.jsx(Dt,{variant:"rounded",height:"362px"})]}),t[0]=e):e=t[0],e}function Rpt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Ept,{}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.configuration?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.configuration,errorElement:n,children:Ipt})}),t[2]=e.configuration,t[3]=s):s=t[3],s}function Ipt(t){return a.jsxs(te,{spacing:1.5,children:[a.jsx(Tpt,{configuration:t}),a.jsx(tJ,{type:ip.CLIENT}),a.jsx(tJ,{type:ip.SERVER})]})}function zue(t){const e=he.c(32),{username:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i,isLoading:o}=Ys(),{submit:l,state:c,data:u}=s,{load:d,data:f}=i,{load:p,data:m,state:h}=gr(),_=!!r,{dialogClose:g}=Jt();let y,b;e[0]!==_||e[1]!==d||e[2]!==p||e[3]!==r?(y=()=>{p($.urls.platformRolesEntries),_&&d($.urls.platformUsersDetails.replace(":username",r))},b=[_,d,p,r],e[0]=_,e[1]=d,e[2]=p,e[3]=r,e[4]=y,e[5]=b):(y=e[4],b=e[5]),I.useEffect(y,b),m?.roles;const x=m?.roles;let w;e[6]!==f?.user?(w=()=>{const N=f?.user;return{username:N?.username??"",password:"",fullname:N?.fullname??"",permissions:N?.permissions?{...Uz,...N?.permissions}:Uz,roles:N?.roles||[]}},e[6]=f?.user,e[7]=w):w=e[7],f?.user;let C;e[8]!==w?(C=w(),e[8]=w,e[9]=C):C=e[9];const k=C;f?.user;const A=f?.user;let P;e[10]!==n||e[11]!==A?(P=dr().shape({username:We().required(n.formatMessage({id:"users.new_user.form_errors.required"})),password:A?We():We().required(n.formatMessage({id:"users.new_user.form_errors.required"})),fullname:We(),permissions:dr(),roles:yr().of(We())}),e[10]=n,e[11]=A,e[12]=P):P=e[12];const T=P;let j;e[13]!==f?.user||e[14]!==l?(j=N=>{const{username:F,fullname:U,password:z,permissions:H,roles:W}=N;l(F==="admin"?{username:F,...U&&{fullname:U},...z&&{password:z}}:{username:F,...U&&{fullname:U},...z&&{password:z},...H&&{permissions:H},roles:W},{method:f?.user?"PATCH":"POST",encType:"application/json",action:f?.user?$.urls.platformUsersUpdate_Action:$.urls.platformUsersCreate_Action})},e[13]=f?.user,e[14]=l,e[15]=j):j=e[15],f?.user;const R=j;let D;e[16]!==g||e[17]!==u||e[18]!==c||e[19]!==n||e[20]!==_||e[21]!==o||e[22]!==m?.roles||e[23]!==x||e[24]!==h||e[25]!==r?(D=N=>{const{dirty:F,values:U}=N,z=m?.roles?I4e(m?.roles.filter(H=>U?.roles?.includes(H.id))?.map(Dpt)):void 0;return a.jsxs(dn,{canWrite:Ue(ie.management),fullHeight:!0,children:[a.jsx(_s,{loading:o,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"username",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,label:n.formatMessage({id:"users.new_user.form.username"}),size:"medium",error:!!K.error,helperText:K.error,disabled:_||c!=="idle"})}}),!_&&a.jsx(Ke,{name:"password",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,type:"password",showPasswordVisibility:!0,label:n.formatMessage({id:"users.new_user.form.password"}),size:"medium",error:!!K.error,helperText:K.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"fullname",children:H=>{const{field:W,meta:K}=H;return a.jsx(dt,{...W,label:n.formatMessage({id:"users.new_user.form.fullname"}),size:"medium",error:!!K.error,helperText:K.error,disabled:c!=="idle"})}}),a.jsx(pr,{title:n.formatMessage({id:"users.new_user.roles.title"}),dense:!0,modalElevation:!0,children:a.jsxs(Kt,{children:[h==="loading"&&a.jsx(gt,{sx:{display:"flex",justifyContent:"center",p:5},children:a.jsx(Nc,{type:"circular",color:"primary"})}),h!=="loading"&&x&&a.jsxs(a.Fragment,{children:[!x.length&&a.jsx(Lr,{message:n.formatMessage({id:"users.new_user.no_roles"}),severity:"warning"}),!!x.length&&a.jsx(te,{spacing:2,children:a.jsx(Ke,{name:"roles",children:H=>{const{field:W,form:K}=H,{setFieldValue:q}=K;return a.jsx(te,{direction:"row",spacing:1,children:x.map(X=>a.jsx(Mn,{opaque:!0,title:a.jsx(gt,{sx:{py:1,px:1.5},children:a.jsx(dk,{permissions:X.permissions})}),children:a.jsx("div",{children:a.jsx(Ze,{text:X.id,endIcon:a.jsx(ge.Info,{size:15}),variant:W.value?.includes(X.id)?"contained":"outlined",disabled:r==="admin",sx:{textTransform:"none"},onClick:()=>{if(!W.value){q(W.name,[X.id]);return}if(W.value.includes(X.id)){const Q=W.value.filter(Y=>Y!==X.id);q(W.name,Q);return}q(W.name,[...W.value,X.id])}})})},X.id))})}})})]})]})}),a.jsx(nx,{fieldName:"permissions",fieldLabel:n.formatMessage({id:"users.new_user.permissions_override.title"}),basePermissions:z,disabled:r==="admin",modalElevation:!0}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.cancel"}),type:"reset",variant:"outlined",disabled:c!=="idle",onClick:()=>g()}),a.jsx(Ze,{text:n.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!F||!Ue(ie.management),loading:c!=="idle"})]})})]})},e[16]=g,e[17]=u,e[18]=c,e[19]=n,e[20]=_,e[21]=o,e[22]=m?.roles,e[23]=x,e[24]=h,e[25]=r,e[26]=D):D=e[26];let O;return e[27]!==R||e[28]!==k||e[29]!==D||e[30]!==T?(O=a.jsx(Wr,{enableReinitialize:!0,initialValues:k,validationSchema:T,onSubmit:R,children:D}),e[27]=R,e[28]=k,e[29]=D,e[30]=T,e[31]=O):O=e[31],O}function Dpt(t){return t.permissions}function que(t){const e=he.c(18),{isCurrentUser:r,username:n}=t,s=Ye(),{dialogClose:i}=Jt(),{upsertFetcher:o}=Ys(),{submit:l,state:c,data:u}=o;let d;e[0]!==r||e[1]!==l||e[2]!==n?(d=b=>{const{password:x,current_password:w}=b;r?l({password:x,current_password:w},{method:"POST",encType:"application/json",action:$.urls.platformUsersCurrentUserPasswordChange_Action}):l({username:n,password:x},{method:"POST",encType:"application/json",action:$.urls.platformUsersPasswordChange_Action})},e[0]=r,e[1]=l,e[2]=n,e[3]=d):d=e[3];const f=d;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p={current_password:"",password:"",passwordConfirmation:""},e[4]=p):p=e[4];const m=p;let h;e[5]!==s||e[6]!==r?(h=dr().shape({current_password:r?We().required(s.formatMessage({id:"users.change_password.form_errors.required"})):We(),password:We().required(s.formatMessage({id:"users.change_password.form_errors.required"})),passwordConfirmation:We().oneOf([gge("password"),null],s.formatMessage({id:"users.change_password.form_errors.password_must_match"})).required(s.formatMessage({id:"users.change_password.form_errors.required"}))}),e[5]=s,e[6]=r,e[7]=h):h=e[7];const _=h;let g;e[8]!==u||e[9]!==i||e[10]!==s||e[11]!==r||e[12]!==c?(g=b=>{const{dirty:x}=b;return a.jsxs(Kd,{children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[r&&a.jsx(Ke,{name:"current_password",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.current_password"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"password",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.password"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"passwordConfirmation",children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,type:"password",showPasswordVisibility:!0,label:s.formatMessage({id:"users.change_password.form.passwordConfirmation"}),size:"medium",error:!!k.error,helperText:k.error,disabled:c!=="idle"})}}),a.jsx(Xr,{data:u})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:s.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:c!=="idle",onClick:()=>i()}),a.jsx(Ze,{text:s.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:c!=="idle"||!x,loading:c!=="idle"})]})})]})},e[8]=u,e[9]=i,e[10]=s,e[11]=r,e[12]=c,e[13]=g):g=e[13];let y;return e[14]!==f||e[15]!==g||e[16]!==_?(y=a.jsx(Wr,{initialValues:m,validationSchema:_,onSubmit:f,children:g}),e[14]=f,e[15]=g,e[16]=_,e[17]=y):y=e[17],y}const $pt=()=>{const t=he.c(114),e=Ye(),r=zn(),{dialogOpen:n,confirmationSimpleDialogOpen:s}=Jt(),i=gr(),o=ys();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ih(),t[0]=l):l=t[0];const c=l;let u;t[1]!==n||t[2]!==e?(u=()=>{n({title:e.formatMessage({id:"users.new_user.form.title"}),content:Opt})},t[1]=n,t[2]=e,t[3]=u):u=t[3];const d=u;let f;t[4]!==i?(f=$e=>{i.submit({username:$e},{method:"DELETE",encType:"application/json",action:$.urls.platformUsersDelete_Action})},t[4]=i,t[5]=f):f=t[5];const p=f;let m;t[6]!==i?(m=$e=>{const Ve=localStorage.getItem(U_);Ve&&i.submit({username:$e,refreshToken:Ve},{method:"POST",encType:"application/json",action:$.urls.platformUsersRevokeTokens_Action})},t[6]=i,t[7]=m):m=t[7];const h=m;let _;t[8]!==e?(_=e.formatMessage({id:"users.table.username"}),t[8]=e,t[9]=_):_=t[9];let g;t[10]!==e?(g=$e=>{const{username:Ve}=$e;return a.jsxs(te,{nowrap:!0,direction:"row",children:[a.jsx(_e,{type:"body2",children:Ve}),c?.sub===Ve&&a.jsx(ms,{label:e.formatMessage({id:"users.table.current_user"}),size:"small"})]})},t[10]=e,t[11]=g):g=t[11];let y;t[12]!==_||t[13]!==g?(y={key:"username",label:_,cellRender:g},t[12]=_,t[13]=g,t[14]=y):y=t[14];let b;t[15]!==e?(b=e.formatMessage({id:"users.table.fullname"}),t[15]=e,t[16]=b):b=t[16];let x;t[17]!==b?(x={key:"fullname",label:b},t[17]=b,t[18]=x):x=t[18];let w;t[19]!==e?(w=e.formatMessage({id:"users.table.backend"}),t[19]=e,t[20]=w):w=t[20];let C;t[21]!==w?(C={key:"backend",label:w,cellRender:Lpt},t[21]=w,t[22]=C):C=t[22];let k;t[23]!==e?(k=e.formatMessage({id:"users.table.roles"}),t[23]=e,t[24]=k):k=t[24];let A;t[25]!==k?(A={key:"roles",label:k,cellRender:Fpt},t[25]=k,t[26]=A):A=t[26];let P;t[27]!==e?(P=e.formatMessage({id:"users.table.permissions_override"}),t[27]=e,t[28]=P):P=t[28];let T;t[29]!==P?(T={key:"permissions",label:P,cellRender:Upt},t[29]=P,t[30]=T):T=t[30];let j;t[31]!==e?(j=e.formatMessage({id:"users.table.created_at"}),t[31]=e,t[32]=j):j=t[32];let R;t[33]!==j?(R={key:"created_at",label:j,cellRender:Bpt},t[33]=j,t[34]=R):R=t[34];let D;t[35]!==e?(D=e.formatMessage({id:"users.table.modified_at"}),t[35]=e,t[36]=D):D=t[36];let O;t[37]!==D?(O={key:"modified_at",label:D,cellRender:zpt},t[37]=D,t[38]=O):O=t[38];let N;t[39]!==C||t[40]!==A||t[41]!==T||t[42]!==R||t[43]!==O||t[44]!==y||t[45]!==x?(N=[y,x,C,A,T,R,O],t[39]=C,t[40]=A,t[41]=T,t[42]=R,t[43]=O,t[44]=y,t[45]=x,t[46]=N):N=t[46];const F=N;let U;t[47]!==e?(U=e.formatMessage({id:"users.table.actions.update"}),t[47]=e,t[48]=U):U=t[48];let z,H;t[49]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(ge.Edit,{}),H=$e=>c?.sub===$e.username||!Ue(ie.management),t[49]=z,t[50]=H):(z=t[49],H=t[50]);let W;t[51]!==n||t[52]!==e?(W=$e=>{const{username:Ve}=$e;n({title:e.formatMessage({id:"users.edit_user.form.title"}),content:()=>a.jsx(zue,{username:Ve})})},t[51]=n,t[52]=e,t[53]=W):W=t[53];let K;t[54]!==U||t[55]!==W?(K={label:U,icon:z,disabled:H,onClick:W},t[54]=U,t[55]=W,t[56]=K):K=t[56];let q;t[57]!==e?(q=e.formatMessage({id:"users.table.actions.delete"}),t[57]=e,t[58]=q):q=t[58];let X,Q;t[59]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(ge.Trash,{}),Q=$e=>$e.username===GTe||c?.sub===$e.username||!Ue(ie.management),t[59]=X,t[60]=Q):(X=t[59],Q=t[60]);let Y;t[61]!==s||t[62]!==p||t[63]!==e?(Y=$e=>{const{username:Ve}=$e;s({title:e.formatMessage({id:"users.dialog.confirm_delete.title"}),description:e.formatMessage({id:"users.dialog.confirm_delete.description"},{username:Ve}),onConfirm:()=>{p(Ve)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[61]=s,t[62]=p,t[63]=e,t[64]=Y):Y=t[64];let Z;t[65]!==q||t[66]!==Y?(Z={label:q,icon:X,disabled:Q,onClick:Y},t[65]=q,t[66]=Y,t[67]=Z):Z=t[67];let re;t[68]!==e?(re=e.formatMessage({id:"users.table.actions.change_password"}),t[68]=e,t[69]=re):re=t[69];let fe,de;t[70]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(ge.Password,{}),de=$e=>$e.backend!==_i.local||c?.sub!==$e.username&&!Ue(ie.management),t[70]=fe,t[71]=de):(fe=t[70],de=t[71]);let se;t[72]!==n||t[73]!==e?(se=$e=>{const{username:Ve}=$e;n({title:e.formatMessage({id:"user_profile.actions.change_password"}),content:()=>a.jsx(que,{username:Ve,isCurrentUser:Ve===c?.sub})})},t[72]=n,t[73]=e,t[74]=se):se=t[74];let le;t[75]!==re||t[76]!==se?(le={label:re,icon:fe,disabled:de,onClick:se,wrapped:!0},t[75]=re,t[76]=se,t[77]=le):le=t[77];let ee;t[78]!==e?(ee=e.formatMessage({id:"users.table.actions.audit"}),t[78]=e,t[79]=ee):ee=t[79];let J,me;t[80]===Symbol.for("react.memo_cache_sentinel")?(J=a.jsx(ge.Sort,{}),me=as(ie.management),t[80]=J,t[81]=me):(J=t[80],me=t[81]);let pe;t[82]!==o?(pe=$e=>{const{username:Ve}=$e;o(`/platform/users/audits/${Ve}`)},t[82]=o,t[83]=pe):pe=t[83];let Se;t[84]!==ee||t[85]!==pe?(Se={label:ee,icon:J,disabled:!me,onClick:pe,wrapped:!0},t[84]=ee,t[85]=pe,t[86]=Se):Se=t[86];let ve;t[87]!==e?(ve=e.formatMessage({id:"users.table.actions.revoke_tokens"}),t[87]=e,t[88]=ve):ve=t[88];let xe,qe;t[89]===Symbol.for("react.memo_cache_sentinel")?(xe=a.jsx(ge.Reset,{}),qe=as(ie.management),t[89]=xe,t[90]=qe):(xe=t[89],qe=t[90]);let Le;t[91]!==s||t[92]!==h||t[93]!==e?(Le=$e=>{const{username:Ve}=$e;s({title:e.formatMessage({id:"users.dialog.confirm_revoke_tokens.title"}),description:e.formatMessage({id:"users.dialog.confirm_revoke_tokens.description"},{username:Ve}),onConfirm:()=>{h(Ve)},cancelText:e.formatMessage({id:"confirm_dialog.cancel"}),confirmText:e.formatMessage({id:"confirm_dialog.ok"})})},t[91]=s,t[92]=h,t[93]=e,t[94]=Le):Le=t[94];let Te;t[95]!==ve||t[96]!==Le?(Te={label:ve,icon:xe,disabled:!qe,onClick:Le,wrapped:!0},t[95]=ve,t[96]=Le,t[97]=Te):Te=t[97];let je;t[98]!==K||t[99]!==Z||t[100]!==le||t[101]!==Se||t[102]!==Te?(je=[K,Z,le,Se,Te],t[98]=K,t[99]=Z,t[100]=le,t[101]=Se,t[102]=Te,t[103]=je):je=t[103];const Ge=je;let nt;t[104]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[104]=nt):nt=t[104];let Re;t[105]===Symbol.for("react.memo_cache_sentinel")?(Re=a.jsx(Tr,{}),t[105]=Re):Re=t[105];let we;t[106]!==F||t[107]!==d||t[108]!==e||t[109]!==Ge?(we=$e=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{"data-testid":"toolbar-button-new-rule",text:e.formatMessage({id:"users.toolbar.new_user"}),startIcon:a.jsx(ge.Add,{}),onClick:d})}),a.jsx(Br,{autoScale:!0,orderBy:"username",columns:F,data:$e,page:0,labelDisplayedRows:qpt,rowsCount:$e.length,rowsPerPage:$e.length,rowsPerPageOptions:void 0,rowKey:"username",rowActions:Ge,stickyRowActions:!0})]}),t[106]=F,t[107]=d,t[108]=e,t[109]=Ge,t[110]=we):we=t[110];let Me;return t[111]!==r.users||t[112]!==we?(Me=a.jsx(I.Suspense,{fallback:nt,children:a.jsx(Qt,{resolve:r.users,errorElement:Re,children:we})}),t[111]=r.users,t[112]=we,t[113]=Me):Me=t[113],Me};function Opt(){return a.jsx(zue,{})}function Lpt(t){const{backend:e}=t;return a.jsx(ms,{label:e||"",size:"small",color:e!==_i.local?"primary":"default"})}function Npt(t){return{id:t,label:t}}function Fpt(t){const{roles:e}=t;return a.jsx(ks,{items:e?.map(Npt)??[],size:"small"})}function Upt(t){const{permissions:e}=t;return e?a.jsx(dk,{permissions:e}):a.jsx(a.Fragment,{})}function Bpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function zpt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function qpt(){return""}function Vpt(){const t=he.c(37),e=Ye(),r=zn(),{pageSize:n,pageSizeOptions:s,changePageSize:i,changePage:o,getRowsCount:l,getPage:c}=Na();let u;t[0]!==e?(u=e.formatMessage({id:"audits.created_at"}),t[0]=e,t[1]=u):u=t[1];let d;t[2]!==u?(d={key:"created_at",label:u,cellRender:Gpt},t[2]=u,t[3]=d):d=t[3];let f;t[4]!==e?(f=e.formatMessage({id:"audits.action"}),t[4]=e,t[5]=f):f=t[5];let p;t[6]!==f?(p={key:"action",label:f},t[6]=f,t[7]=p):p=t[7];let m;t[8]!==e?(m=e.formatMessage({id:"audits.auth"}),t[8]=e,t[9]=m):m=t[9];let h;t[10]!==e?(h=P=>{const{auth:T}=P;return T==="allowed"?a.jsx(ms,{variant:"outlined",size:"small",color:"success",label:e.formatMessage({id:"audits.auth.allowed"})}):a.jsx(ms,{variant:"outlined",size:"small",color:"error",label:e.formatMessage({id:"audits.auth.denied"})})},t[10]=e,t[11]=h):h=t[11];let _;t[12]!==m||t[13]!==h?(_={key:"auth",label:m,cellRender:h},t[12]=m,t[13]=h,t[14]=_):_=t[14];let g;t[15]!==e?(g=e.formatMessage({id:"audits.source_ip"}),t[15]=e,t[16]=g):g=t[16];let y;t[17]!==g?(y={key:"source_ip",label:g},t[17]=g,t[18]=y):y=t[18];let b;t[19]!==d||t[20]!==p||t[21]!==_||t[22]!==y?(b=[d,p,_,y],t[19]=d,t[20]=p,t[21]=_,t[22]=y,t[23]=b):b=t[23];const x=b;let w;t[24]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[24]=w):w=t[24];let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Tr,{}),t[25]=C):C=t[25];let k;t[26]!==o||t[27]!==i||t[28]!==x||t[29]!==c||t[30]!==l||t[31]!==n||t[32]!==s?(k=P=>{const{data:T,metadata:j}=P;return a.jsx(Br,{autoScale:!0,rowKey:"created_at",orderBy:"created_at",columns:x,data:T,page:c(j),labelDisplayedRows:Hpt,rowsCount:l(j),rowsPerPage:n,onRowsPerPageChange:i,rowsPerPageOptions:s,onPageChange:o(j)})},t[26]=o,t[27]=i,t[28]=x,t[29]=c,t[30]=l,t[31]=n,t[32]=s,t[33]=k):k=t[33];let A;return t[34]!==r.audits||t[35]!==k?(A=a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:r.audits,errorElement:C,children:k})}),t[34]=r.audits,t[35]=k,t[36]=A):A=t[36],A}function Hpt(){return""}function Gpt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}async function Wpt(){const t=$.apis.pls.tls.config;return De({options:{url:t,method:"GET"}})}async function Ypt(t){const e=$.apis.pls.tls.certificates.client,r=new FormData;return r.append("cert_file",t.cert_file[0]),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Kpt(t){const e=$.apis.pls.tls.certificates.server,r=new FormData;return r.append("cert_file",t.cert_file[0]),r.append("key_file",t.key_file[0]),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function Qpt(t){const e=$.apis.pls.tls.config;return De({options:{url:e,method:"PUT",data:JSON.stringify(t)}})}async function Zpt(){const t=$.apis.authenticationStrategies.backendList;return De({options:{url:t,method:"GET"}})}async function Xpt(){const t=$.apis.authenticationStrategies.ldap;return De({options:{url:t,method:"GET"}})}async function Jpt(){const t=$.apis.authenticationStrategies.radius;return De({options:{url:t,method:"GET"}})}async function emt(){const t=$.apis.authenticationStrategies.openId;return De({options:{url:t,method:"GET"}})}async function tmt(){const t=as([ie.configuration]),[e,r,n,s,i,o,l,c,u]=await Promise.all([Zpt(),Xpt(),Jpt(),emt(),Pie(),t?n4e():null,P4e(),smt(),amt()]);return{backendList:e,ldapConfig:r,radiusConfig:n,openIdConfig:s,authConfiguration:o,rolesList:i,systemUsageTerms:l,radiusLocalConfig:c,ldapLocalConfig:u}}async function rmt(){const t=$.apis.pls.bootPartitions;return De({options:{url:t,method:"GET"}})}async function nmt(t){const e=$.apis.pls.bootPartitions;return De({options:{url:e,method:"PUT",data:{default:t}}})}async function smt(){const t=$.apis.authenticationStrategies.localRadius;return De({options:{url:t,method:"GET"}})}async function imt(t){const e=$.apis.authenticationStrategies.localRadius;return De({options:{url:e,method:"PUT",data:t}})}async function omt(){const t=$.apis.authenticationStrategies.localRadius;return De({options:{url:t,method:"DELETE"}})}async function amt(){const t=$.apis.authenticationStrategies.localLdap;return De({options:{url:t,method:"GET"}})}async function lmt(t){const e=$.apis.authenticationStrategies.localLdap;return De({options:{url:e,method:"PUT",data:t}})}async function cmt(){const t=$.apis.authenticationStrategies.localLdap;return De({options:{url:t,method:"DELETE"}})}async function umt({request:t}){const e=await t.json(),r=await Qpt(e);return xt(r)||Nt(),Ft(r)}async function dmt({request:t}){const n={cert_file:[(await t.formData()).get("cert_file")]},s=await Ypt(n);return xt(s)||Nt(),Ft(s)}async function fmt({request:t}){const e=await t.formData(),r=e.get("cert_file"),n=e.get("key_file"),i=await Kpt({cert_file:[r],key_file:[n]});return xt(i)||Nt(),Ft(i)}async function pmt({request:t}){const e=await t.json(),r=await w4e(e);return xt(r)||Nt(),Ft(r)}async function mmt({request:t}){const e=await t.json(),r=await C4e(e);return xt(r)||Nt(),Ft(r)}async function hmt({request:t}){const e=await t.json(),r=await imt(e);return xt(r)||Nt(),r}async function gmt(){const t=await omt();return xt(t)||Nt(),t}async function _mt({request:t}){const e=await t.json(),r=await A4e(e);return xt(r)||Nt(),Ft(r)}async function vmt({request:t}){const e=await t.json(),r=await lmt(e);return xt(r)||Nt(),r}async function ymt(){const t=await cmt();return xt(t)||Nt(),t}async function bmt({request:t}){const e=await t.json(),r=await k4e(e);return xt(r)||Nt(),Ft(r)}async function xmt({request:t}){const e=await t.json(),r=await S4e(e);return xt(r)||Nt(),Ft(r)}async function Smt({request:t}){const e=await t.json(),r=await j4e(e);return xt(r)||Nt(),Ft(r)}async function wmt({request:t}){const{defaultPartition:e}=await t.json(),r=await nmt(e);return Ft(r)}async function Cmt(t){const e=`${$.apis.pls.roles}/${t}`;return De({options:{url:e,method:"GET"}})}async function Amt(t){const e=$.apis.pls.roles;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function kmt({id:t,...e}){const r=`${$.apis.pls.roles}/${t}`;return De({options:{url:r,method:"PUT",data:JSON.stringify(e.permissions)}})}async function Mmt(t){const e=`${$.apis.pls.roles}/${t}`;return De({options:{url:e,method:"DELETE"}})}const Pmt=Pr();async function jmt({request:t}){const e=await t.json(),r=await Amt(e);return xt(r)||Nt(),Ft(r)}async function Tmt({request:t}){const e=await t.json(),r=await kmt(e);return xt(r)||Nt(),Ft(r)}async function Emt({request:t}){const{id:e}=await t.json(),r=await Mmt(e);return xt(r)?Ar(r.error.detail||Pmt.formatMessage({id:"roles.delete.message_ko"})):Nt(),Ft(r)}async function Rmt({request:t}){const e=await t.json(),r=await t4e({values:e});if(!xt(r))throw Gb();return Ft(r)}async function Imt(){const t=$.apis.pls.users;return De({options:{url:t,method:"GET"}})}async function Dmt(t){const e=`${$.apis.pls.users}/${t}`;return De({options:{url:e,method:"GET"}})}async function $mt(t){const e=$.apis.pls.users;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function Vue({username:t,...e}){const r=`${$.apis.pls.users}/${t}`;return De({options:{url:r,method:"PATCH",data:JSON.stringify(e)}})}async function Omt(t){const e=`${$.apis.pls.users}/${t}`;return De({options:{url:e,method:"DELETE"}})}const Lmt=Pr();async function Nmt({request:t}){const e=await t.json(),r=await $mt(R4e(e));return xt(r)||Nt(),Ft(r)}async function Fmt({request:t}){const e=await t.json(),r=await Vue(e);return xt(r)||Nt(),Ft(r)}async function Umt({request:t}){const e=await t.json(),r=await Vue(e);return xt(r)||Nt(),Ft(r)}async function Bmt({request:t}){const{username:e}=await t.json(),r=await Omt(e);return xt(r)?Ar(r.error.detail||Lmt.formatMessage({id:"users.delete.message_ko"})):Nt(),Ft(r)}async function zmt(t){return Wt({loaderArgs:t,deferred:!0,data:{configuration:Wpt()}})}async function qmt(t){return Wt({loaderArgs:t,deferred:!0,data:{config:tmt()}})}async function Vmt(t){return Wt({loaderArgs:t,deferred:!0,data:{bootPartitions:rmt()}})}async function Hmt(t){return Wt({loaderArgs:t,deferred:!0,data:{roles:Pie()}})}async function Gmt(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{role:Cmt(e)}})}async function Wmt(t){return Wt({loaderArgs:t,deferred:!0,data:{users:Imt()}})}async function Ymt(t){const{username:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{user:Dmt(e)}})}function Kmt(t){const e=he.c(31),{path:r}=t,n=zn(),{data:s,submit:i,state:o}=gr(),{data:l,submit:c,state:u}=gr(),d=ys();let f;e[0]!==i?(f=async R=>{R&&i(R,{method:"POST",encType:"application/json",action:"apply"})},e[0]=i,e[1]=f):f=e[1];const p=f;let m;e[2]!==c||e[3]!==d||e[4]!==r?(m=async()=>{c(null,{method:"POST",encType:"application/json",action:"factory-reset"}),d(`${$.urls.platform}/${r}`)},e[2]=c,e[3]=d,e[4]=r,e[5]=m):m=e[5];const h=m;let _;e:{if(xt(s)||xt(l)){let R;e[6]===Symbol.for("react.memo_cache_sentinel")?(R={maxWidth:"1000px"},e[6]=R):R=e[6];let D;e[7]!==s?(D=a.jsx(Xr,{data:s}),e[7]=s,e[8]=D):D=e[8];let O;e[9]!==l?(O=a.jsx(Xr,{data:l}),e[9]=l,e[10]=O):O=e[10];let N;e[11]!==D||e[12]!==O?(N=a.jsxs(te,{nowrap:!0,sx:R,children:[D,O]}),e[11]=D,e[12]=O,e[13]=N):N=e[13],_=N;break e}_=null}const g=_,y=u!=="idle";let b;e[14]!==h||e[15]!==y?(b={name:"Factory Reset",onClick:h,variant:"outlined",loading:y},e[14]=h,e[15]=y,e[16]=b):b=e[16];const x=o!=="idle";let w;e[17]!==p||e[18]!==x?(w={name:"Apply and Persist",onClick:p,loading:x,disabledOnErrors:!0},e[17]=p,e[18]=x,e[19]=w):w=e[19];let C;e[20]!==b||e[21]!==w?(C=[b,w],e[20]=b,e[21]=w,e[22]=C):C=e[22];const k=C;let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),e[23]=A):A=e[23];let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Tr,{}),e[24]=P):P=e[24];let T;e[25]!==g||e[26]!==k?(T=R=>{const[D,O,N]=R;return a.jsx(nue,{$ref:N,data:O,schema:D,toolbarActions:k,uiSchema:null,actionError:g},N)},e[25]=g,e[26]=k,e[27]=T):T=e[27];let j;return e[28]!==n.configuration||e[29]!==T?(j=a.jsx(I.Suspense,{fallback:A,children:a.jsx(Qt,{resolve:n.configuration,errorElement:P,children:T})}),e[28]=n.configuration,e[29]=T,e[30]=j):j=e[30],j}async function Qmt({service:t}){const e=$.apis.shippingConfig(t);return De({options:{url:e,method:"GET"}})}async function Zmt({service:t,values:e}){const r=$.apis.shippingConfig(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function Xmt({service:t}){const e=$.apis.shippingFactoryReset.replace("{service}",t);return De({options:{url:e,method:"POST"}})}function Jmt({service:t}){return async({request:e})=>{const r=await e.json(),n=await Zmt({service:t,values:r});return xt(n)?Ar():Nt(),Ft(n)}}function eht({service:t}){return async()=>{const e=await Xmt({service:t});return xt(e)?Ar():Nt(),Ft(e)}}function tht({service:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{configuration:Promise.all([x4e(),Qmt({service:t}),M4e[t]])}})}function eD({service:t,path:e}){return{path:e,loader:tht({service:t}),element:a.jsx(Kmt,{path:e},e),shouldRevalidate:({actionResult:r})=>!xt(r),handle:vr({labelIntl:`route.platform.${e}`,to:`${$.urls.platform}/${e}`}),children:[{path:"apply",action:Jmt({service:t}),loader:()=>rt("..")},{path:"factory-reset",action:eht({service:t}),loader:()=>rt("..")}]}}const rht={path:"platform",handle:vr({labelIntl:"route.platform",icon:a.jsx(ge.Platform,{})}),children:[{element:a.jsx(Or,{center:!0}),children:[{path:"auth",handle:vr({labelIntl:"route.platform.auth",to:$.urls.platformAuthentication}),element:a.jsx(Fft,{}),loader:qmt,children:[{index:!0,element:a.jsx(ur,{to:"strategies",replace:!0})},{path:"strategies",element:a.jsx(mpt,{}),children:[{path:"backends-update",action:pmt,loader:()=>rt("..")},{path:"radius-config-update",action:mmt,loader:()=>rt("..")},{path:"radius-local-config-update",action:hmt,loader:()=>rt("..")},{path:"radius-local-config-reset",action:gmt,loader:()=>rt("..")},{path:"ldap-config-update",action:_mt,loader:()=>rt("..")},{path:"ldap-local-config-update",action:vmt,loader:()=>rt("..")},{path:"ldap-local-config-reset",action:ymt,loader:()=>rt("..")},{path:"openid-config-update",action:bmt,loader:()=>rt("..")}]},{path:"auth-config",element:a.jsx(Hft,{}),children:[{path:"auth-config-update",action:xmt,loader:()=>rt("..")}]},{path:"terms",element:a.jsx(bpt,{}),children:[{path:"system-usage-terms-update",action:Smt,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{transparent:!0,center:!0}),children:[{path:"tls",handle:vr({labelIntl:"route.platform.tls",to:$.urls.platformTls}),loader:zmt,element:a.jsx(Rpt,{}),children:[{path:"configuration-update",action:umt,loader:()=>rt("..")},{path:"client-certificate-update",action:dmt,loader:()=>rt("..")},{path:"server-certificate-update",action:fmt,loader:()=>rt("..")}]},so(ue.PLS,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"users",handle:vr({labelIntl:"route.platform.users",to:$.urls.platformUsers}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Wmt,element:a.jsx($pt,{})},{path:":username",loader:Ymt,element:a.jsx(ur,{to:$.urls.platformUsers,replace:!0})},{path:"audits/:username",loader:uqe,element:a.jsx(Vpt,{}),handle:t=>{const e=t.params.username;return vr({labelIntl:"route.platform.audit",to:$.urls.platformUsersAudits,captionIntl:"route.platform.audit.caption",captionIntlParams:{username:e}})}},{path:"create",action:Nmt,loader:()=>rt("..")},{path:"update",action:Fmt,loader:()=>rt("..")},{path:"password-change",action:Umt,loader:()=>rt("..")},{path:"current-user-password-change",action:Rmt,loader:()=>rt("..")},{path:"delete",action:Bmt,loader:()=>rt("..")},{path:"revoke-tokens",action:xrt,loader:()=>rt("..")}]},{path:"roles",handle:vr({labelIntl:"route.platform.roles",to:$.urls.platformRoles}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:Hmt,element:a.jsx(Cpt,{})},{path:":id",loader:Gmt,element:a.jsx(ur,{to:$.urls.platformRoles,replace:!0})},{path:"create",action:jmt,loader:()=>rt("..")},{path:"update",action:Tmt,loader:()=>rt("..")},{path:"delete",action:Emt,loader:()=>rt("..")}]},eD({service:ue.FLUENTBIT,path:"log-shipping"}),eD({service:ue.PROMETHEUS,path:"kpi-shipping"}),eD({service:ue.ALERTMANAGER,path:"alert-shipping"})]}]},nht=()=>{const t=he.c(43),e=Ye(),{menuOpen:r,menuClose:n,dialogOpen:s}=Jt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Ih(),t[0]=i):i=t[0];const o=i;let l;t[1]!==s||t[2]!==e||t[3]!==n||t[4]!==r?(l=R=>{r({anchorEl:R.currentTarget,anchorOrigin:{vertical:"bottom",horizontal:"right"},items:[{label:e.formatMessage({id:"user_profile.actions.change_password"}),value:"change-password",icon:a.jsx(ge.Password,{}),disabled:o?.backend!==_i.local,onClick:()=>{n(),o?.sub&&s({title:e.formatMessage({id:"user_profile.actions.change_password"}),content:()=>a.jsx(que,{username:o.sub,isCurrentUser:!0})})}}]})},t[1]=s,t[2]=e,t[3]=n,t[4]=r,t[5]=l):l=t[5];const c=l;let u;t[6]!==e?(u=e.formatMessage({id:"user_profile.title"}),t[6]=e,t[7]=u):u=t[7];let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ge.More,{}),t[8]=d):d=t[8];let f;t[9]!==c?(f=a.jsx(Zr,{onClick:c,"data-testid":"dropdown-user-actions",children:d}),t[9]=c,t[10]=f):f=t[10];let p;t[11]!==e?(p=e.formatMessage({id:"user_profile.username"}),t[11]=e,t[12]=p):p=t[12];let m;t[13]!==p?(m=a.jsx(_e,{fontWeight:"600",children:p}),t[13]=p,t[14]=m):m=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(_e,{children:o?.sub}),t[15]=h):h=t[15];let _;t[16]!==m?(_=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[m,h]}),t[16]=m,t[17]=_):_=t[17];let g;t[18]!==e?(g=e.formatMessage({id:"user_profile.fullname"}),t[18]=e,t[19]=g):g=t[19];let y;t[20]!==g?(y=a.jsx(_e,{fontWeight:"600",children:g}),t[20]=g,t[21]=y):y=t[21];let b;t[22]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(_e,{children:o?.fullname}),t[22]=b):b=t[22];let x;t[23]!==y?(x=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[y,b]}),t[23]=y,t[24]=x):x=t[24];let w;t[25]!==e?(w=e.formatMessage({id:"user_profile.backend"}),t[25]=e,t[26]=w):w=t[26];let C;t[27]!==w?(C=a.jsx(_e,{fontWeight:"600",children:w}),t[27]=w,t[28]=C):C=t[28];let k;t[29]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(bi,{status:o?.backend===_i.radius?nn.WARNING:nn.DEFAULT,asChip:!0,label:o?.backend||""}),t[29]=k):k=t[29];let A;t[30]!==C?(A=a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[C,k]}),t[30]=C,t[31]=A):A=t[31];let P;t[32]!==e?(P=o?.permissions&&a.jsxs(te,{direction:"column",align:"flex-start",spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:e.formatMessage({id:"user_profile.permissions"})}),a.jsx(dk,{permissions:o.permissions})]}),t[32]=e,t[33]=P):P=t[33];let T;t[34]!==x||t[35]!==A||t[36]!==P||t[37]!==_?(T=a.jsx(Kt,{children:a.jsxs(te,{direction:"column",spacing:2,children:[_,x,A,P]})}),t[34]=x,t[35]=A,t[36]=P,t[37]=_,t[38]=T):T=t[38];let j;return t[39]!==T||t[40]!==u||t[41]!==f?(j=a.jsx(a.Fragment,{children:a.jsx(pr,{title:u,headerActionsComponent:f,children:T})}),t[39]=T,t[40]=u,t[41]=f,t[42]=j):j=t[42],j},sht={element:a.jsx(Or,{center:!0}),children:[{path:"profile",element:a.jsx(nht,{}),handle:vr({labelIntl:"route.profile",icon:a.jsx(ge.Profile,{})})}]};function iht(){const t=he.c(11),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Nc,{variant:"indeterminate",type:"circular"}),t[0]=n):n=t[0];let s;t[1]!==e?(s=e.formatMessage({id:"restart.progress.title"}),t[1]=e,t[2]=s):s=t[2];let i;t[3]!==s?(i=a.jsx(G0,{fullWidth:!0,fullHeight:!0,children:a.jsxs(te,{direction:"row",justify:"center",align:"center",spacing:2,fullHeight:!0,children:[n,a.jsx(_e,{fontSize:"1.2em",children:s})]})}),t[3]=s,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ur,{to:$.urls.home,replace:!0}),t[5]=o):o=t[5];let l;t[6]!==r.restarted?(l=a.jsx(Qt,{resolve:r.restarted,children:o}),t[6]=r.restarted,t[7]=l):l=t[7];let c;return t[8]!==i||t[9]!==l?(c=a.jsx(I.Suspense,{fallback:i,children:l}),t[8]=i,t[9]=l,t[10]=c):c=t[10],c}async function oht(t){const e=$.apis.swUpdate.upload,r=new FormData;return r.append("file",t),De({options:{url:e,method:"POST",headers:{"Content-Type":"multipart/form-data"},data:r}})}function aht(){const t=$.apis.pls.reboot;return De({options:{url:t,method:"POST"}})}async function lht(){const t=$.ws.swUpdate;return De({type:Od.WS,options:{url:t}})}async function cht(){const t=await aht();if(xt(t))Ar();else return Ji.setRestartStatus(),rt($.urls.restart);return Ft(t)}const uht=1e3*5;async function dht(){return new Promise(t=>{async function e(){try{return await Wae(),Ji.deleteRestartStatus(),t(!0)}catch{r()}}function r(){setTimeout(()=>{e()},uht)}r()})}async function fht(t){return Ji.getRestartStatus()?Wt({loaderArgs:t,deferred:!0,data:{restarted:dht()}}):rt($.urls.home)}const pht={path:"restart",element:a.jsx(iht,{}),loader:fht,action:cht},Bv="DEFAULT_X_AXIS_KEY",y7="DEFAULT_Y_AXIS_KEY",mht={top:20,bottom:20,left:20,right:20},hht=45,ght=25,Hue=20;class _ht{constructor(e){this.value=e,this.listeners=new Set}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.value;update=e=>{const r=e(this.value);r!==this.value&&(this.value=r,this.listeners.forEach(n=>n(r)))}}const fk=({params:t,store:e})=>{I.useEffect(()=>{e.update(n=>ce({},n,{animation:ce({},n.animation,{skip:t.skipAnimation})}))},[e,t.skipAnimation]);const r=I.useCallback(()=>{let n=!1;return e.update(s=>ce({},s,{animation:ce({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests+1})})),()=>{n||(n=!0,e.update(s=>ce({},s,{animation:ce({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests-1})})))}},[e]);return ei(()=>{if(typeof window>"u"||!window?.matchMedia)return;let s;const i=l=>{l.matches?s=r():s?.()},o=window.matchMedia("(prefers-reduced-motion)");return i(o),o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[r,e]),{instance:{disableAnimation:r}}};fk.params={skipAnimation:!0};fk.getDefaultizedParams=({params:t})=>ce({},t,{skipAnimation:t.skipAnimation??!1});fk.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var x3=Symbol("NOT_FOUND");function vht(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function yht(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function bht(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(r=>typeof r=="function")){const r=t.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${e}[${r}]`)}}var rJ=t=>Array.isArray(t)?t:[t];function xht(t){const e=Array.isArray(t[0])?t[0]:t;return bht(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function Sht(t,e){const r=[],{length:n}=t;for(let s=0;s<n;s++)r.push(t[s].apply(null,e));return r}function wht(t){let e;return{get(r){return e&&t(e.key,r)?e.value:x3},put(r,n){e={key:r,value:n}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function Cht(t,e){let r=[];function n(l){const c=r.findIndex(u=>e(l,u.key));if(c>-1){const u=r[c];return c>0&&(r.splice(c,1),r.unshift(u)),u.value}return x3}function s(l,c){n(l)===x3&&(r.unshift({key:l,value:c}),r.length>t&&r.pop())}function i(){return r}function o(){r=[]}return{get:n,put:s,getEntries:i,clear:o}}var Aht=(t,e)=>t===e;function kht(t){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;const{length:s}=r;for(let i=0;i<s;i++)if(!t(r[i],n[i]))return!1;return!0}}function Mht(t,e){const r=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:n=Aht,maxSize:s=1,resultEqualityCheck:i}=r,o=kht(n);let l=0;const c=s<=1?wht(o):Cht(s,o);function u(){let d=c.get(arguments);if(d===x3){if(d=t.apply(null,arguments),l++,i){const p=c.getEntries().find(m=>i(m.value,d));p&&(d=p.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var Pht=class{constructor(t){this.value=t}deref(){return this.value}},jht=typeof WeakRef<"u"?WeakRef:Pht,Tht=0,nJ=1;function bw(){return{s:Tht,v:void 0,o:null,p:null}}function Gue(t,e={}){let r=bw();const{resultEqualityCheck:n}=e;let s,i=0;function o(){let l=r;const{length:c}=arguments;for(let f=0,p=c;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let h=l.o;h===null&&(l.o=h=new WeakMap);const _=h.get(m);_===void 0?(l=bw(),h.set(m,l)):l=_}else{let h=l.p;h===null&&(l.p=h=new Map);const _=h.get(m);_===void 0?(l=bw(),h.set(m,l)):l=_}}const u=l;let d;if(l.s===nJ)d=l.v;else if(d=t.apply(null,arguments),i++,n){const f=s?.deref?.()??s;f!=null&&n(f,d)&&(d=f,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new jht(d):d}return u.s=nJ,u.v=d,d}return o.clearCache=()=>{r=bw(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function Wue(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...s)=>{let i=0,o=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),vht(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...r,...c},{memoize:f,memoizeOptions:p=[],argsMemoize:m=Gue,argsMemoizeOptions:h=[]}=d,_=rJ(p),g=rJ(h),y=xht(s),b=f(function(){return i++,u.apply(null,arguments)},..._),x=m(function(){o++;const C=Sht(y,arguments);return l=b.apply(null,C),l},...g);return Object.assign(x,{resultFunc:u,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:m})};return Object.assign(n,{withTypes:()=>n}),n}var Eht=Wue(Gue),Rht=Object.assign((t,e=Eht)=>{yht(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const r=Object.keys(t),n=r.map(i=>t[i]);return e(n,(...i)=>i.reduce((o,l,c)=>(o[r[c]]=l,o),{}))},{withTypes:()=>Rht});const Iht=Wue({memoize:Mht,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),sJ=new WeakMap,Vt=(...t)=>(r,...n)=>{const s=r.cacheKey;let i=sJ.get(s);i||(i=new Map,sJ.set(s,i));const o=i.get(t);if(o)return o(r,...n);const l=Iht(...t);return i.set(t,l),l(r,...n)},Dht=t=>t.animation,$ht=Vt([Dht],t=>t.skip||t.skipAnimationRequests>0);function Oht(t){return h_(t).defaultView||window}var tD={exports:{}},rD={},nD={exports:{}},sD={};var iJ;function Lht(){if(iJ)return sD;iJ=1;var t=Ph();function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,s=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function l(f,p){var m=p(),h=n({inst:{value:m,getSnapshot:p}}),_=h[0].inst,g=h[1];return i(function(){_.value=m,_.getSnapshot=p,c(_)&&g({inst:_})},[f,m,p]),s(function(){return c(_)&&g({inst:_}),f(function(){c(_)&&g({inst:_})})},[f]),o(m),m}function c(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!r(f,m)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return sD.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,sD}var oJ;function Nht(){return oJ||(oJ=1,nD.exports=Lht()),nD.exports}var aJ;function Fht(){if(aJ)return rD;aJ=1;var t=Ph(),e=Nht();function r(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,i=t.useRef,o=t.useEffect,l=t.useMemo,c=t.useDebugValue;return rD.useSyncExternalStoreWithSelector=function(u,d,f,p,m){var h=i(null);if(h.current===null){var _={hasValue:!1,value:null};h.current=_}else _=h.current;h=l(function(){function y(k){if(!b){if(b=!0,x=k,k=p(k),m!==void 0&&_.hasValue){var A=_.value;if(m(A,k))return w=A}return w=k}if(A=w,n(x,k))return A;var P=p(k);return m!==void 0&&m(A,P)?(x=k,A):(x=k,w=P)}var b=!1,x,w,C=f===void 0?null:f;return[function(){return y(d())},C===null?void 0:function(){return y(C())}]},[d,f,p,m]);var g=s(u,h[0],h[1]);return o(function(){_.hasValue=!0,_.value=g},[g]),c(g),g},rD}var lJ;function Uht(){return lJ||(lJ=1,tD.exports=Fht()),tD.exports}var Bht=Uht();const zht=Object.is,qr=(t,e,r=[],n=zht)=>{const s=i=>e(i,...r);return Bht.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,s,n)},oc=t=>t.cartesianAxis?.x,Hc=t=>t.cartesianAxis?.y,qht=Vt([Hc],t=>(t??[]).reduce((e,r)=>r.position==="left"?e+(r.width||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Vht=Vt([Hc],t=>(t??[]).reduce((e,r)=>r.position==="right"?e+(r.width||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Hht=Vt([oc],t=>(t??[]).reduce((e,r)=>r.position==="top"?e+(r.height||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Ght=Vt([oc],t=>(t??[]).reduce((e,r)=>r.position==="bottom"?e+(r.height||0)+(r.zoom?.slider.enabled?r.zoom.slider.size:0):e,0)),Wht=t=>t.dimensions,Yue=t=>t.dimensions.width,Kue=t=>t.dimensions.height,Yht=t=>t.dimensions.margin.top,Kht=t=>t.dimensions.margin.right,Qht=t=>t.dimensions.margin.bottom,Zht=t=>t.dimensions.margin.left,vl=Vt([Yue,Kue,Yht,Kht,Qht,Zht,Hht,Vht,Ght,qht],(t,e,r,n,s,i,o,l,c,u)=>({width:t-i-n-u-l,left:i+u,right:n+l,height:e-r-s-o-c,top:r+o,bottom:s+c})),Que=Vt([Wht],t=>({width:t.propsWidth,height:t.propsHeight})),Xht=Vt([Yue,Kue],(t,e)=>({width:t,height:e}));function Zue(t,e){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:e?ce({},e,t):t}const Jht=10,pk=({params:t,store:e,svgRef:r})=>{const n=t.width!==void 0&&t.height!==void 0,s=I.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[i,o]=I.useState(0),[l,c]=I.useState(0),u=I.useCallback(()=>{const h=r?.current;if(!h)return{};const g=Oht(h).getComputedStyle(h),y=Math.floor(parseFloat(g.height))||0,b=Math.floor(parseFloat(g.width))||0;return e.update(x=>x.dimensions.width===b&&x.dimensions.height===y?x:ce({},x,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??b,height:t.height??y,propsWidth:t.width,propsHeight:t.height}})),{height:y,width:b}},[e,r,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);I.useEffect(()=>{e.update(h=>{const _=t.width??h.dimensions.width,g=t.height??h.dimensions.height;return ce({},h,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:_,height:g,propsHeight:t.height,propsWidth:t.width}})})},[e,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),I.useEffect(()=>{s.current.displayError=!0},[]),ei(()=>{if(n||!s.current.initialCompute||s.current.computeRun>Jht)return;const h=u();h.width!==i||h.height!==l?(s.current.computeRun+=1,h.width!==void 0&&o(h.width),h.height!==void 0&&c(h.height)):s.current.initialCompute&&(s.current.initialCompute=!1)},[l,i,u,n]),ei(()=>{if(n)return()=>{};u();const h=r.current;if(typeof ResizeObserver>"u")return()=>{};let _;const g=new ResizeObserver(()=>{_=requestAnimationFrame(()=>{u()})});return h&&g.observe(h),()=>{_&&cancelAnimationFrame(_),h&&g.unobserve(h)}},[u,n,r]);const d=qr(e,vl),f=I.useCallback(h=>h>=d.left-1&&h<=d.left+d.width,[d.left,d.width]),p=I.useCallback(h=>h>=d.top-1&&h<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:I.useCallback((h,_,g)=>g&&"closest"in g&&g.closest("[data-drawing-container]")?!0:f(h)&&p(_),[f,p]),isXInside:f,isYInside:p}}};pk.params={width:!0,height:!0,margin:!0};pk.getDefaultizedParams=({params:t})=>ce({},t,{margin:Zue(t.margin,mht)});pk.getInitialState=({width:t,height:e,margin:r})=>({dimensions:{margin:r,width:t??0,height:e??0,propsWidth:t,propsHeight:e}});const b7=({params:t,store:e})=>(ei(()=>{e.update(r=>ce({},r,{experimentalFeatures:t.experimentalFeatures}))},[e,t.experimentalFeatures]),{});b7.params={experimentalFeatures:!0};b7.getInitialState=({experimentalFeatures:t})=>({experimentalFeatures:t});const egt=t=>t.experimentalFeatures,mk=Vt([egt],t=>!!t?.preferStrictDomainInLineCharts);let cJ=0;const tgt=()=>(cJ+=1,`mui-chart-${cJ}`),x7=({params:t,store:e})=>(I.useEffect(()=>{e.update(r=>t.id===void 0||t.id===r.id.providedChartId&&r.id.chartId!==void 0?r:ce({},r,{id:ce({},r.id,{chartId:t.id??tgt()})}))},[e,t.id]),{});x7.params={id:!0};x7.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const rgt=t=>t.id,ngt=Vt([rgt],t=>t.chartId),sgt=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],igt=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],Xue=t=>t==="dark"?igt:sgt,Jue=({series:t,colors:e,seriesConfig:r,dataset:n})=>{const s={};t.forEach((o,l)=>{const c=r[o.type].getSeriesWithDefaultValues(o,l,e),u=c.id;if(s[o.type]===void 0&&(s[o.type]={series:{},seriesOrder:[]}),s[o.type]?.series[u]!==void 0)throw new Error(`MUI X Charts: series' id "${u}" is not unique.`);s[o.type].series[u]=c,s[o.type].seriesOrder.push(u)});const i={};return Object.keys(r).forEach(o=>{const l=s[o];l!==void 0&&(i[o]=r[o]?.seriesProcessor?.(l,n)??s[o])}),i},hk=({params:t,store:e,seriesConfig:r})=>{const{series:n,dataset:s,theme:i,colors:o}=t,l=I.useRef(!0);return I.useEffect(()=>{if(l.current){l.current=!1;return}e.update(c=>ce({},c,{series:ce({},c.series,{processedSeries:Jue({series:n,colors:typeof o=="function"?o(i):o,seriesConfig:r,dataset:s})})}))},[o,s,n,i,r,e]),{}};hk.params={dataset:!0,series:!0,colors:!0,theme:!0};const ogt=[];hk.getDefaultizedParams=({params:t})=>ce({},t,{series:t.series?.length?t.series:ogt,colors:t.colors??Xue,theme:t.theme??"light"});hk.getInitialState=({series:t=[],colors:e,theme:r,dataset:n},s,i)=>({series:{seriesConfig:i,processedSeries:Jue({series:t,colors:typeof e=="function"?e(r):e,seriesConfig:i,dataset:n})}});const ede=t=>t.series,Mo=Vt([ede],t=>t.processedSeries),Gc=Vt([ede],t=>t.seriesConfig),agt={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0};class tde{customData={};constructor(e){if(!e||!e.name)throw new Error("Gesture must be initialized with a valid name.");if(e.name in agt)throw new Error(`Gesture can't be created with a native event name. Tried to use "${e.name}". Please use a custom name instead.`);this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,r,n,s){this.element=e,this.pointerManager=r,this.gesturesRegistry=n,this.keyboardManager=s;const i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange);const o=`${this.name}ChangeState`;this.element.addEventListener(o,this.handleStateChange)}handleOptionsChange=e=>{e&&e.detail&&this.updateOptions(e.detail)};updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(e,r){if(e!=="mouse"&&e!=="touch"&&e!=="pen")return r;const n=this.pointerOptions[e];return n?ce({},r,n):r}handleStateChange=e=>{e&&e.detail&&this.updateState(e.detail)};updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||"contains"in this.element&&this.element.contains(e.target)||"getRootNode"in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,r){const n=this.getEffectiveConfig(r,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(this.preventIf.length===0)return!1;const s=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(i=>s[i])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0?!0:this.pointerMode.includes(e)}destroy(){const e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange);const r=`${this.name}ChangeState`;this.element.removeEventListener(r,this.handleStateChange)}}class lgt{activeGestures=new Map;registerActiveGesture(e,r){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);const n=this.activeGestures.get(e),s={gesture:r,element:e};n.add(s)}unregisterActiveGesture(e,r){const n=this.activeGestures.get(e);n&&(n.forEach(s=>{s.gesture===r&&n.delete(s)}),n.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){const r=this.activeGestures.get(e);return r?Array.from(r).reduce((n,s)=>(n[s.gesture.name]=!0,n),{}):{}}isGestureActive(e,r){const n=this.activeGestures.get(e);return n?Array.from(n).some(s=>s.gesture===r):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}}class cgt{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>"u"||(window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("blur",this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||e.length===0?!0:e.every(r=>r==="ControlOrMeta"?navigator.platform.includes("Mac")?this.pressedKeys.has("Meta"):this.pressedKeys.has("Control"):this.pressedKeys.has(r))}destroy(){typeof window<"u"&&(window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("blur",this.clearKeys)),this.clearKeys()}}class ugt{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||"auto",this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return new Map(this.pointers)}setupEventListeners(){this.touchAction!=="auto"&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener("pointerdown",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointermove",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointerup",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointercancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("forceCancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("blur",this.handleInterruptEvents),this.root.addEventListener("contextmenu",this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&"pointerType"in e&&e.pointerType==="touch"){e.preventDefault();return}const r=new PointerEvent("forceCancel",{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(r,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(const[s,i]of this.pointers.entries()){const o=ce({},i,{type:"forceCancel"});this.pointers.set(s,o)}}this.notifyHandlers(r),this.pointers.clear()};handlePointerEvent=e=>{const{type:r,pointerId:n}=e;if(r==="pointerdown"||r==="pointermove")this.pointers.set(n,this.createPointerData(e));else if(r==="pointerup"||r==="pointercancel"||r==="forceCancel"){this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(n);return}this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(r=>r(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener("pointerdown",this.handlePointerEvent),this.root.removeEventListener("pointermove",this.handlePointerEvent),this.root.removeEventListener("pointerup",this.handlePointerEvent),this.root.removeEventListener("pointercancel",this.handlePointerEvent),this.root.removeEventListener("forceCancel",this.handlePointerEvent),this.root.removeEventListener("blur",this.handleInterruptEvents),this.root.removeEventListener("contextmenu",this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}}class dgt{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new lgt;keyboardManager=new cgt;constructor(e){this.pointerManager=new ugt({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(r=>{this.addGestureTemplate(r)})}addGestureTemplate(e){this.gestureTemplates.has(e.name)&&console.warn(`Gesture template with name "${e.name}" already exists. It will be overwritten.`),this.gestureTemplates.set(e.name,e)}setGestureOptions(e,r,n){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(i)}setGestureState(e,r,n){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(i)}registerElement(e,r,n){return Array.isArray(e)||(e=[e]),e.forEach(s=>{const i=n?.[s];this.registerSingleGesture(s,r,i)}),r}registerSingleGesture(e,r,n){const s=this.gestureTemplates.get(e);if(!s)return console.error(`Gesture template "${e}" not found.`),!1;this.elementGestureMap.has(r)||this.elementGestureMap.set(r,new Map);const i=this.elementGestureMap.get(r);i.has(e)&&(console.warn(`Element already has gesture "${e}" registered. It will be replaced.`),this.unregisterElement(e,r));const o=s.clone(n);return o.init(r,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,o),!0}unregisterElement(e,r){const n=this.elementGestureMap.get(r);return!n||!n.has(e)?!1:(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(r),n.size===0&&this.elementGestureMap.delete(r),!0)}unregisterAllGestures(e){const r=this.elementGestureMap.get(e);if(r){for(const[,n]of r)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(const[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}}class qh extends tde{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,r,n,s){super.init(e,r,n,s),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(e,r){const n=this.getEffectiveConfig(r,this.getBaseConfig());return e.length>=n.minPointers&&e.length<=n.maxPointers}getRelevantPointers(e,r){return e.filter(n=>this.isPointerTypeAllowed(n.pointerType)&&(r===n.target||n.target===this.originalTarget||r===this.originalTarget||"contains"in r&&r.contains(n.target))||"getRootNode"in r&&r.getRootNode()instanceof ShadowRoot&&n.srcEvent.composedPath().includes(r))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function fgt(t,e){const r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}function iD(t){if(t.length<2)return 0;let e=0,r=0;for(let n=0;n<t.length;n+=1)for(let s=n+1;s<t.length;s+=1)e+=fgt({x:t[n].clientX,y:t[n].clientY},{x:t[s].clientX,y:t[s].clientY}),r+=1;return r>0?e/r:0}function Vd(t){if(t.length===0)return{x:0,y:0};const e=t.reduce((r,n)=>(r.x+=n.clientX,r.y+=n.clientY,r),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}}function Xl(t,e){return`${t}${e==="ongoing"?"":e.charAt(0).toUpperCase()+e.slice(1)}`}const xw=1e-5,Wf=1e-5,uJ=.15;function pgt(t,e){const r=e.x-t.x,n=e.y-t.y,s={vertical:null,horizontal:null,mainAxis:null},i=mgt(e,t),o=Math.abs(r)>Math.abs(n)?"horizontal":"vertical",l=i||o==="horizontal"?xw:uJ,c=i?xw:o==="horizontal"?uJ:xw;return Math.abs(r)>l&&(s.horizontal=r>0?"right":"left"),Math.abs(n)>c&&(s.vertical=n>0?"down":"up"),s.mainAxis=i?"diagonal":o,s}function mgt(t,e){const r=e.x-t.x,n=e.y-t.y,s=Math.atan2(n,r)*180/Math.PI;return s>=-45+Wf&&s<=-22.5+Wf||s>=22.5+Wf&&s<=45+Wf||s>=135+Wf&&s<=157.5+Wf||s>=-157.5+Wf&&s<=-135+Wf}function hgt(t,e){if(!t.vertical&&!t.horizontal)return!1;if(e.length===0)return!0;const r=t.vertical===null||e.includes(t.vertical),n=t.horizontal===null||e.includes(t.horizontal);return r&&n}const dJ=0,ggt=t=>t>dJ?1:t<-dJ?-1:0,Zf=t=>{t.cancelable&&t.preventDefault()};class S7 extends qh{state={lastPosition:null};constructor(e){super(e),this.threshold=e.threshold||0}clone(e){return new S7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.element.addEventListener("pointerenter",this.handleElementEnter),this.element.addEventListener("pointerleave",this.handleElementLeave)}destroy(){this.element.removeEventListener("pointerenter",this.handleElementEnter),this.element.removeEventListener("pointerleave",this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=e=>{if(e.pointerType!=="mouse"&&e.pointerType!=="pen")return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());if(this.isWithinPointerCount(n,e.pointerType)){this.isActive=!0;const s={x:e.clientX,y:e.clientY};this.state.lastPosition=s,this.emitMoveEvent(this.element,"start",n,e),this.emitMoveEvent(this.element,"ongoing",n,e)}};handleElementLeave=e=>{if(e.pointerType!=="mouse"&&e.pointerType!=="pen"||!this.isActive)return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());this.emitMoveEvent(this.element,"end",n,e),this.resetState()};handlePointerEvent=(e,r)=>{if(r.type!=="pointermove"||r.pointerType!=="mouse"&&r.pointerType!=="pen")return;this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s||!this.isWithinPointerCount(n,r.pointerType))return;if(this.shouldPreventGesture(s,r.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(s,"end",n,r);return}const i={x:r.clientX,y:r.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(s,"start",n,r)),this.emitMoveEvent(s,"ongoing",n,r)};emitMoveEvent(e,r,n,s){const i=this.state.lastPosition||Vd(n),o=this.gesturesRegistry.getActiveGestures(e),l={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,activeGestures:o,customData:this.customData},c=Xl(this.name,r),u=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:l});e.dispatchEvent(u)}}class ch extends qh{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(e){super(e),this.direction=e.direction||["up","down","left","right"],this.threshold=e.threshold||0}clone(e){return new ch(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction,this.threshold=e.threshold??this.threshold}resetState(){this.isActive=!1,this.state=ce({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(e,r)=>{const n=Array.from(e.values());if(r.type==="forceCancel"){this.cancel(r.target,n,r);return}const s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.cancel(s,n,r);return}const i=this.getRelevantPointers(n,s);if(!this.isWithinPointerCount(i,r.pointerType)){this.cancel(s,i,r);return}switch(r.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(i.forEach(o=>{this.state.startPointers.set(o.pointerId,o)}),this.originalTarget=s,this.state.startCentroid=Vd(i),this.state.lastCentroid=ce({},this.state.startCentroid));break;case"pointermove":if(this.state.startCentroid&&this.isWithinPointerCount(n,r.pointerType)){const o=Vd(i),l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y,u=Math.sqrt(l*l+c*c),d=pgt(this.state.lastCentroid??this.state.startCentroid,o),f=this.state.lastCentroid?o.x-this.state.lastCentroid.x:0,p=this.state.lastCentroid?o.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&u>=this.threshold&&hgt(d,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(s,"start",i,r,o),this.emitPanEvent(s,"ongoing",i,r,o)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:f,y:p},this.state.totalDeltaX+=f,this.state.totalDeltaY+=p,this.state.activeDeltaX+=f,this.state.activeDeltaY+=p,this.emitPanEvent(s,"ongoing",i,r,o)),this.state.lastCentroid=o,this.state.lastDirection=d}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){const o=i.filter(l=>l.type!=="pointerup"&&l.type!=="pointercancel");if(!this.isWithinPointerCount(o,r.pointerType)){const l=this.state.lastCentroid||this.state.startCentroid;r.type==="pointercancel"&&this.emitPanEvent(s,"cancel",i,r,l),this.emitPanEvent(s,"end",i,r,l),this.resetState()}}else this.resetState();break}};emitPanEvent(e,r,n,s,i){if(!this.state.startCentroid)return;const o=this.state.lastDeltas?.x??0,l=this.state.lastDeltas?.y??0,c=this.state.startPointers.values().next().value,u=c?(s.timeStamp-c.timeStamp)/1e3:0,d=u>0?o/u:0,f=u>0?l/u:0,p=Math.sqrt(d*d+f*f),m=this.gesturesRegistry.getActiveGestures(e),h={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,deltaX:o,deltaY:l,direction:this.state.lastDirection,velocityX:d,velocityY:f,velocity:p,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:m,customData:this.customData},_=Xl(this.name,r),g=new CustomEvent(_,{bubbles:!0,cancelable:!0,composed:!0,detail:h});e.dispatchEvent(g),this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation()}cancel(e,r,n){if(this.isActive){const s=e??this.element;this.emitPanEvent(s,"cancel",r,n,this.state.lastCentroid),this.emitPanEvent(s,"end",r,n,this.state.lastCentroid)}this.resetState()}}class w7 extends qh{state={startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0};constructor(e){super(ce({},e,{minPointers:e.minPointers??2})),this.threshold=e.threshold??0}clone(e){return new w7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state=ce({},this.state,{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,deltaScale:0})}handlePointerEvent=(e,r)=>{const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.isActive&&(this.emitPinchEvent(s,"cancel",n,r),this.resetState());return}const i=this.getRelevantPointers(n,s);switch(r.type){case"pointerdown":if(i.length>=2&&!this.isActive){const o=iD(i);this.state.startDistance=o,this.state.lastDistance=o,this.state.lastTime=r.timeStamp,this.originalTarget=s}break;case"pointermove":if(this.state.startDistance&&this.isWithinPointerCount(i,r.pointerType)){const o=iD(i),l=Math.abs(o-this.state.lastDistance);if(l!==0&&l>=this.threshold){const c=this.state.startDistance?o/this.state.startDistance:1,u=c/this.state.lastScale;this.state.totalScale*=u;const d=(r.timeStamp-this.state.lastTime)/1e3;if(this.state.lastDistance){const p=(o-this.state.lastDistance)/d;this.state.velocity=Number.isNaN(p)?0:p}this.state.lastDistance=o,this.state.deltaScale=c-this.state.lastScale,this.state.lastScale=c,this.state.lastTime=r.timeStamp,this.isActive?this.emitPinchEvent(s,"ongoing",i,r):(this.isActive=!0,this.emitPinchEvent(s,"start",i,r),this.emitPinchEvent(s,"ongoing",i,r))}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const o=i.filter(l=>l.type!=="pointerup"&&l.type!=="pointercancel");if(!this.isWithinPointerCount(o,r.pointerType))r.type==="pointercancel"&&this.emitPinchEvent(s,"cancel",i,r),this.emitPinchEvent(s,"end",i,r),this.resetState();else if(o.length>=2){const l=iD(o);this.state.startDistance=l/this.state.lastScale}}break}};emitPinchEvent(e,r,n,s){const i=Vd(n),o=this.state.lastDistance,l=this.state.lastScale,c=this.gesturesRegistry.getActiveGestures(e),u={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,scale:l,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:o,velocity:this.state.velocity,activeGestures:c,direction:ggt(this.state.velocity),customData:this.customData};this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation();const d=Xl(this.name,r),f=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:u});e.dispatchEvent(f)}}class gk extends qh{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(e){return new gk(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=ce({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(e,r)=>{const n=Array.from(e.values());if(r.type==="forceCancel"){this.cancelPress(r.target,n,r);return}const s=this.getTargetElement(r);if(!s)return;if(this.shouldPreventGesture(s,r.pointerType)){this.isActive&&this.cancelPress(s,n,r);return}const i=this.getRelevantPointers(n,s);if(!this.isWithinPointerCount(i,r.pointerType)){this.isActive&&this.cancelPress(s,i,r);return}switch(r.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Vd(i),this.state.lastPosition=ce({},this.state.startCentroid),this.state.startTime=r.timeStamp,this.isActive=!0,this.originalTarget=s,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;const o=this.state.lastPosition;this.emitPressEvent(s,"start",i,r,o),this.emitPressEvent(s,"ongoing",i,r,o)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const o=Vd(i);this.state.lastPosition=o;const l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y;Math.sqrt(l*l+c*c)>this.maxDistance&&this.cancelPress(s,i,r)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const o=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(s,"end",i,r,o)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(s,i,r);break}};emitPressEvent(e,r,n,s,i){const o=this.gesturesRegistry.getActiveGestures(e),l=s.timeStamp-this.state.startTime,c={gestureName:this.name,centroid:i,target:s.target,srcEvent:s,phase:r,pointers:n,timeStamp:s.timeStamp,x:i.x,y:i.y,duration:l,activeGestures:o,customData:this.customData},u=Xl(this.name,r),d=new CustomEvent(u,{bubbles:!0,cancelable:!0,composed:!0,detail:c});e.dispatchEvent(d),this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation()}cancelPress(e,r,n){if(this.isActive&&this.state.pressThresholdReached){const s=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,"cancel",r,n,s),this.emitPressEvent(e??this.element,"end",r,n,s)}this.resetState()}}class C7 extends qh{state={phase:"waitingForPress",dragTimeoutId:null};constructor(e){super(e),this.pressDuration=e.pressDuration??500,this.pressMaxDistance=e.pressMaxDistance??10,this.dragTimeout=e.dragTimeout??1e3,this.dragThreshold=e.dragThreshold??0,this.dragDirection=e.dragDirection||["up","down","left","right"],this.pressGesture=new gk({name:`${this.name}-press`,duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new ch({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(e){return new C7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,pressDuration:this.pressDuration,pressMaxDistance:this.pressMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.pressGesture.init(e,r,n,s),this.panGesture.init(e,r,n,s),this.element.addEventListener(this.pressGesture.name,this.pressHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.pressGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.pressGesture.name,this.pressHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(e){super.updateOptions(e),this.pressDuration=e.pressDuration??this.pressDuration,this.pressMaxDistance=e.pressMaxDistance??this.pressMaxDistance,this.dragTimeout=e.dragTimeout??this.dragTimeout,this.dragThreshold=e.dragThreshold??this.dragThreshold,this.dragDirection=e.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.pressGesture.name}ChangeOptions`,{detail:{duration:this.pressDuration,maxDistance:this.pressMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForPress",dragTimeoutId:null}}handlePointerEvent(){}pressHandler=()=>{this.state.phase==="waitingForPress"&&(this.state.phase="pressDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=e=>{this.state.phase==="pressDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};dragMoveHandler=e=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e))};dragEndHandler=e=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};setTouchAction(){this.element.addEventListener("touchstart",Zf,{passive:!1}),this.element.addEventListener("touchmove",Zf,{passive:!1}),this.element.addEventListener("touchend",Zf,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Zf),this.element.removeEventListener("touchmove",Zf),this.element.removeEventListener("touchend",Zf)}}class _k extends qh{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(e){return new _k(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null}}handlePointerEvent=(e,r)=>{const n=Array.from(e.values()),s=this.getTargetElement(r);if(!s)return;const i=this.getRelevantPointers(n,s);if(this.shouldPreventGesture(s,r.pointerType)||!this.isWithinPointerCount(i,r.pointerType)){this.isActive&&this.cancelTap(s,i,r);return}switch(r.type){case"pointerdown":this.isActive||(this.state.startCentroid=Vd(i),this.state.lastPosition=ce({},this.state.startCentroid),this.isActive=!0,this.originalTarget=s);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const o=Vd(i);this.state.lastPosition=o;const l=o.x-this.state.startCentroid.x,c=o.y-this.state.startCentroid.y;Math.sqrt(l*l+c*c)>this.maxDistance&&this.cancelTap(s,i,r)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const o=this.state.lastPosition||this.state.startCentroid;if(!o){this.cancelTap(s,i,r);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(s,i,r,o),this.resetState()):(this.state.lastTapTime=r.timeStamp,this.isActive=!1,this.state.startCentroid=null,setTimeout(()=>{this.state&&this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case"pointercancel":case"forceCancel":this.cancelTap(s,i,r);break}};fireTapEvent(e,r,n,s){const i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:s,target:n.target,srcEvent:n,phase:"end",pointers:r,timeStamp:n.timeStamp,x:s.x,y:s.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},l=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(l),this.preventDefault&&n.preventDefault(),this.stopPropagation&&n.stopPropagation()}cancelTap(e,r,n){if(this.state.startCentroid||this.state.lastPosition){const s=this.state.lastPosition||this.state.startCentroid,i=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:s,target:n.target,srcEvent:n,phase:"cancel",pointers:r,timeStamp:n.timeStamp,x:s.x,y:s.y,tapCount:this.state.currentTapCount,activeGestures:i,customData:this.customData},l=Xl(this.name,"cancel"),c=new CustomEvent(l,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(c)}this.resetState()}}class A7 extends qh{state={phase:"waitingForTap",dragTimeoutId:null};constructor(e){super(e),this.tapMaxDistance=e.tapMaxDistance??10,this.dragTimeout=e.dragTimeout??1e3,this.dragThreshold=e.dragThreshold??0,this.dragDirection=e.dragDirection||["up","down","left","right"],this.tapGesture=new _k({name:`${this.name}-tap`,maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}),this.panGesture=new ch({name:`${this.name}-pan`,minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)})}clone(e){return new A7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,tapMaxDistance:this.tapMaxDistance,dragTimeout:this.dragTimeout,dragThreshold:this.dragThreshold,dragDirection:[...this.dragDirection],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},e))}init(e,r,n,s){super.init(e,r,n,s),this.tapGesture.init(e,r,n,s),this.panGesture.init(e,r,n,s),this.element.addEventListener(this.tapGesture.name,this.tapHandler),this.element.addEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.addEventListener(this.panGesture.name,this.dragMoveHandler),this.element.addEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.addEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler)}destroy(){this.resetState(),this.tapGesture.destroy(),this.panGesture.destroy(),this.element.removeEventListener(this.tapGesture.name,this.tapHandler),this.element.removeEventListener(`${this.panGesture.name}Start`,this.dragStartHandler),this.element.removeEventListener(this.panGesture.name,this.dragMoveHandler),this.element.removeEventListener(`${this.panGesture.name}End`,this.dragEndHandler),this.element.removeEventListener(`${this.panGesture.name}Cancel`,this.dragEndHandler),super.destroy()}updateOptions(e){super.updateOptions(e),this.tapMaxDistance=e.tapMaxDistance??this.tapMaxDistance,this.dragTimeout=e.dragTimeout??this.dragTimeout,this.dragThreshold=e.dragThreshold??this.dragThreshold,this.dragDirection=e.dragDirection||this.dragDirection,this.element.dispatchEvent(new CustomEvent(`${this.panGesture.name}ChangeOptions`,{detail:{minPointers:this.minPointers,maxPointers:this.maxPointers,threshold:this.dragThreshold,direction:this.dragDirection,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}})),this.element.dispatchEvent(new CustomEvent(`${this.tapGesture.name}ChangeOptions`,{detail:{maxDistance:this.tapMaxDistance,maxPointers:this.maxPointers,pointerMode:this.pointerMode,requiredKeys:this.requiredKeys,preventIf:this.preventIf,pointerOptions:structuredClone(this.pointerOptions)}}))}resetState(){this.state.dragTimeoutId!==null&&clearTimeout(this.state.dragTimeoutId),this.restoreTouchAction(),this.isActive=!1,this.state={phase:"waitingForTap",dragTimeoutId:null}}handlePointerEvent(){}tapHandler=()=>{this.state.phase==="waitingForTap"&&(this.state.phase="tapDetected",this.setTouchAction(),this.state.dragTimeoutId=setTimeout(()=>{this.resetState()},this.dragTimeout))};dragStartHandler=e=>{this.state.phase==="tapDetected"&&(this.state.dragTimeoutId!==null&&(clearTimeout(this.state.dragTimeoutId),this.state.dragTimeoutId=null),this.restoreTouchAction(),this.state.phase="dragging",this.isActive=!0,this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};dragMoveHandler=e=>{this.state.phase==="dragging"&&this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e))};dragEndHandler=e=>{this.state.phase==="dragging"&&(this.resetState(),this.element.dispatchEvent(new CustomEvent(Xl(this.name,e.detail.phase),e)))};setTouchAction(){this.element.addEventListener("touchstart",Zf,{passive:!1})}restoreTouchAction(){this.element.removeEventListener("touchstart",Zf)}}class k7 extends tde{state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0};constructor(e){super(e),this.sensitivity=e.sensitivity??1,this.max=e.max??Number.MAX_SAFE_INTEGER,this.min=e.min??Number.MIN_SAFE_INTEGER,this.initialDelta=e.initialDelta??0,this.invert=e.invert??!1,this.state.totalDeltaX=this.initialDelta,this.state.totalDeltaY=this.initialDelta,this.state.totalDeltaZ=this.initialDelta}clone(e){return new k7(ce({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,sensitivity:this.sensitivity,max:this.max,min:this.min,initialDelta:this.initialDelta,invert:this.invert,requiredKeys:[...this.requiredKeys],preventIf:[...this.preventIf]},e))}init(e,r,n,s){super.init(e,r,n,s),this.element.addEventListener("wheel",this.handleWheelEvent)}destroy(){this.element.removeEventListener("wheel",this.handleWheelEvent),this.resetState(),super.destroy()}resetState(){this.isActive=!1,this.state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0}}updateOptions(e){super.updateOptions(e),this.sensitivity=e.sensitivity??this.sensitivity,this.max=e.max??this.max,this.min=e.min??this.min,this.initialDelta=e.initialDelta??this.initialDelta,this.invert=e.invert??this.invert}handleWheelEvent=e=>{if(this.shouldPreventGesture(this.element,"mouse"))return;const r=this.pointerManager.getPointers()||new Map,n=Array.from(r.values());this.state.totalDeltaX+=e.deltaX*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaY+=e.deltaY*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaZ+=e.deltaZ*this.sensitivity*(this.invert?-1:1),["totalDeltaX","totalDeltaY","totalDeltaZ"].forEach(s=>{this.state[s]<this.min&&(this.state[s]=this.min),this.state[s]>this.max&&(this.state[s]=this.max)}),this.emitWheelEvent(n,e)};emitWheelEvent(e,r){const n=e.length>0?Vd(e):{x:r.clientX,y:r.clientY},s=this.gesturesRegistry.getActiveGestures(this.element),i={gestureName:this.name,centroid:n,target:r.target,srcEvent:r,phase:"ongoing",pointers:e,timeStamp:r.timeStamp,deltaX:r.deltaX*this.sensitivity*(this.invert?-1:1),deltaY:r.deltaY*this.sensitivity*(this.invert?-1:1),deltaZ:r.deltaZ*this.sensitivity*(this.invert?-1:1),deltaMode:r.deltaMode,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,totalDeltaZ:this.state.totalDeltaZ,activeGestures:s,customData:this.customData};this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation();const o=Xl(this.name,"ongoing"),l=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:i});this.element.dispatchEvent(l)}}const Kg=t=>t.preventDefault(),M7=({svgRef:t})=>{const e=I.useRef(null);I.useEffect(()=>{const s=t.current;e.current||(e.current=new dgt({gestures:[new ch({name:"pan",threshold:0,maxPointers:1}),new S7({name:"move",preventIf:["pan","zoomPinch","zoomPan"]}),new _k({name:"tap",preventIf:["pan","zoomPinch","zoomPan"]}),new gk({name:"quickPress",duration:50}),new ch({name:"brush",threshold:0,maxPointers:1}),new ch({name:"zoomPan",threshold:0,maxPointers:1,preventIf:["zoomTapAndDrag","zoomPressAndDrag"]}),new w7({name:"zoomPinch",threshold:5,preventIf:["pan","zoomPan"]}),new k7({name:"zoomTurnWheel",sensitivity:.01,initialDelta:1}),new A7({name:"zoomTapAndDrag",dragThreshold:10}),new C7({name:"zoomPressAndDrag",dragThreshold:10,preventIf:["zoomPinch"]})]}));const i=e.current;if(!(!s||!i))return i.registerElement(["pan","move","zoomPinch","zoomPan","zoomTurnWheel","tap","quickPress","zoomTapAndDrag","zoomPressAndDrag","brush"],s),()=>{i.unregisterAllGestures(s)}},[t,e]);const r=I.useCallback((s,i,o)=>{const l=t.current;return l?.addEventListener(s,i,o),{cleanup:()=>l?.removeEventListener(s,i)}},[t]),n=I.useCallback((s,i)=>{const o=t.current,l=e.current;!l||!o||l.setGestureOptions(s,o,i??{})},[t,e]);return I.useEffect(()=>{const s=t.current;return s?.addEventListener("gesturestart",Kg),s?.addEventListener("gesturechange",Kg),s?.addEventListener("gestureend",Kg),()=>{s?.removeEventListener("gesturestart",Kg),s?.removeEventListener("gesturechange",Kg),s?.removeEventListener("gestureend",Kg)}},[t]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:n}}};M7.params={};M7.getInitialState=()=>({});const _gt=[x7,b7,pk,hk,M7,fk],vgt=["apiRef"],ygt=t=>{let{plugins:e}=t,r=Ht(t.props,vgt);const n={};e.forEach(o=>{Object.assign(n,o.params)});const s={};return Object.keys(r).forEach(o=>{const l=r[o];n[o]&&(s[o]=l)}),e.reduce((o,l)=>l.getDefaultizedParams?l.getDefaultizedParams({params:o}):o,s)};let fJ=0;function bgt(t,e,r){const n=dv(),s=I.useMemo(()=>[..._gt,...t],[t]),i=ygt({plugins:s,props:e});i.id=i.id??n;const l=I.useRef({}).current,c=Sgt(e.apiRef),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null);if(f.current==null){fJ+=1;const h={cacheKey:{id:fJ}};s.forEach(_=>{_.getInitialState&&Object.assign(h,_.getInitialState(i,h,r))}),f.current=new _ht(h)}const p=h=>{const _=h({instance:l,params:i,plugins:s,store:f.current,svgRef:d,chartRootRef:u,seriesConfig:r});_.publicAPI&&Object.assign(c.current,_.publicAPI),_.instance&&Object.assign(l,_.instance)};return s.forEach(p),{contextValue:I.useMemo(()=>({store:f.current,publicAPI:c.current,instance:l,svgRef:d,chartRootRef:u}),[l,c])}}function xgt(t){return t.current==null&&(t.current={}),t}function Sgt(t){const e=I.useRef({});return t?xgt(t):e}const rde=I.createContext(null),nde=()=>{},sde=4,ide=20+2*sde,wgt=40+2*sde,Cgt="hover",Sw={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",reverse:!1,slider:{enabled:!1,preview:!1,size:ide,showTooltip:Cgt}},P7=(t,e,r,n)=>{if(t)return t===!0?ce({axisId:e,axisDirection:r},Sw,{reverse:n??!1}):ce({axisId:e,axisDirection:r},Sw,{reverse:n??!1},t,{slider:ce({},Sw.slider,{size:t.slider?.preview??Sw.slider.preview?wgt:ide},t.slider)})};function ode(t,e){const r={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:Bv,scaleType:"linear"}]).map((i,o)=>{const l=i.dataKey,c=o===0?"bottom":"none",u=i.position??c,d=ght+(i.label?Hue:0),f=i.id??`defaultized-x-axis-${o}`,p=ce({offset:r[u]},i,{id:f,position:u,height:i.height??d,zoom:P7(i.zoom,f,"x",i.reverse)});if(u!=="none"&&(r[u]+=p.height,p.zoom?.slider.enabled&&(r[u]+=p.zoom.slider.size)),l===void 0||i.data!==void 0)return p;if(e===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return ce({},p,{data:e.map(m=>m[l])})})}function ade(t,e){const r={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:y7,scaleType:"linear"}]).map((i,o)=>{const l=i.dataKey,c=o===0?"left":"none",u=i.position??c,d=hht+(i.label?Hue:0),f=i.id??`defaultized-y-axis-${o}`,p=ce({offset:r[u]},i,{id:f,position:u,width:i.width??d,zoom:P7(i.zoom,f,"y",i.reverse)});if(u!=="none"&&(r[u]+=p.width,p.zoom?.slider.enabled&&(r[u]+=p.zoom.slider.size)),l===void 0||i.data!==void 0)return p;if(e===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return ce({},p,{data:e.map(m=>m[l])})})}function vp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)){const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i+=1)if(!vp(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let i=0;i<s.length;i+=1)if(!e.has(s[i][0]))return!1;for(let i=0;i<s.length;i+=1){const o=s[i];if(!vp(o[1],e.get(o[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let i=0;i<s.length;i+=1)if(!e.has(s[i][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i+=1)if(t[i]!==e[i])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const r=Object.keys(t),n=r.length;if(n!==Object.keys(e).length)return!1;for(let s=0;s<n;s+=1)if(!Object.prototype.hasOwnProperty.call(e,r[s]))return!1;for(let s=0;s<n;s+=1){const i=r[s];if(!vp(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Agt(t,e){return function(n,s){if(s.location==="tick"){const i=s.scale.domain();return i[0]===i[1]?s.scale.tickFormat(1)(n):s.scale.tickFormat(t)(n)}return s.location==="zoom-slider-tooltip"?e.tickFormat(2)(n):`${n}`}}function Hd(t){return t.scaleType==="band"}function Vp(t){return t.scaleType==="point"}function kgt(t){return t.scaleType!=="point"&&t.scaleType!=="band"}function Mgt(t){return t.scaleType==="symlog"}function tC(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pgt(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function j7(t){let e,r,n;t.length!==2?(e=tC,r=(l,c)=>tC(t(l),c),n=(l,c)=>t(l)-c):(e=t===tC||t===Pgt?t:jgt,r=t,n=t);function s(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<0?u=f+1:d=f}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(e(c,c)!==0)return d;do{const f=u+d>>>1;r(l[f],c)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,c,u=0,d=l.length){const f=s(l,c,u,d-1);return f>u&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:s,center:o,right:i}}function jgt(){return 0}function Tgt(t){return t===null?NaN:+t}const Egt=j7(tC),lde=Egt.right;j7(Tgt).center;class pJ extends Map{constructor(e,r=Dgt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,s]of e)this.set(n,s)}get(e){return super.get(mJ(this,e))}has(e){return super.has(mJ(this,e))}set(e,r){return super.set(Rgt(this,e),r)}delete(e){return super.delete(Igt(this,e))}}function mJ({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Rgt({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Igt({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function Dgt(t){return t!==null&&typeof t=="object"?t.valueOf():t}const $gt=Math.sqrt(50),Ogt=Math.sqrt(10),Lgt=Math.sqrt(2);function S3(t,e,r){const n=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(n)),i=n/Math.pow(10,s),o=i>=$gt?10:i>=Ogt?5:i>=Lgt?2:1;let l,c,u;return s<0?(u=Math.pow(10,-s)/o,l=Math.round(t*u),c=Math.round(e*u),l/u<t&&++l,c/u>e&&--c,u=-u):(u=Math.pow(10,s)*o,l=Math.round(t/u),c=Math.round(e/u),l*u<t&&++l,c*u>e&&--c),c<l&&.5<=r&&r<2?S3(t,e,r*2):[l,c,u]}function w$(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[s,i,o]=n?S3(e,t,r):S3(t,e,r);if(!(i>=s))return[];const l=i-s+1,c=new Array(l);if(n)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(s+u)/-o;else for(let u=0;u<l;++u)c[u]=(s+u)*o;return c}function C$(t,e,r){return e=+e,t=+t,r=+r,S3(t,e,r)[2]}function A$(t,e,r){e=+e,t=+t,r=+r;const n=e<t,s=n?C$(e,t,r):C$(t,e,r);return(n?-1:1)*(s<0?1/-s:s)}function Ngt(t,e,r){t=+t,e=+e,r=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+r;for(var n=-1,s=Math.max(0,Math.ceil((e-t)/r))|0,i=new Array(s);++n<s;)i[n]=t+n*r;return i}function rf(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Fgt(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hJ=Symbol("implicit");function w3(){var t=new pJ,e=[],r=[],n=hJ;function s(i){let o=t.get(i);if(o===void 0){if(n!==hJ)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return s.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new pJ;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return s},s.range=function(i){return arguments.length?(r=Array.from(i),s):r.slice()},s.unknown=function(i){return arguments.length?(n=i,s):n},s.copy=function(){return w3(e,r).unknown(n)},rf.apply(s,arguments),s}function vk(){var t=w3().unknown(void 0),e=t.domain,r=t.range,n=0,s=1,i,o,l=!1,c=0,u=0,d=.5;delete t.unknown;function f(){var p=e().length,m=s<n,h=m?s:n,_=m?n:s;i=(_-h)/Math.max(1,p-c+u*2),l&&(i=Math.floor(i)),h+=(_-h-i*(p-c))*d,o=i*(1-c),l&&(h=Math.round(h),o=Math.round(o));var g=Ngt(p).map(function(y){return h+i*y});return r(m?g.reverse():g)}return t.domain=function(p){return arguments.length?(e(p),f()):e()},t.range=function(p){return arguments.length?([n,s]=p,n=+n,s=+s,f()):[n,s]},t.rangeRound=function(p){return[n,s]=p,n=+n,s=+s,l=!0,f()},t.bandwidth=function(){return o},t.step=function(){return i},t.round=function(p){return arguments.length?(l=!!p,f()):l},t.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),f()):c},t.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),f()):c},t.paddingOuter=function(p){return arguments.length?(u=+p,f()):u},t.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),f()):d},t.copy=function(){return vk(e(),[n,s]).round(l).paddingInner(c).paddingOuter(u).align(d)},rf.apply(f(),arguments)}function cde(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cde(e())},t}function ude(){return cde(vk.apply(null,arguments).paddingInner(1))}function T7(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function dde(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function sx(){}var c0=.7,C3=1/c0,S_="\\s*([+-]?\\d+)\\s*",u0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ugt=/^#([0-9a-f]{3,8})$/,Bgt=new RegExp(`^rgb\\(${S_},${S_},${S_}\\)$`),zgt=new RegExp(`^rgb\\(${Lu},${Lu},${Lu}\\)$`),qgt=new RegExp(`^rgba\\(${S_},${S_},${S_},${u0}\\)$`),Vgt=new RegExp(`^rgba\\(${Lu},${Lu},${Lu},${u0}\\)$`),Hgt=new RegExp(`^hsl\\(${u0},${Lu},${Lu}\\)$`),Ggt=new RegExp(`^hsla\\(${u0},${Lu},${Lu},${u0}\\)$`),gJ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};T7(sx,d0,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_J,formatHex:_J,formatHex8:Wgt,formatHsl:Ygt,formatRgb:vJ,toString:vJ});function _J(){return this.rgb().formatHex()}function Wgt(){return this.rgb().formatHex8()}function Ygt(){return fde(this).formatHsl()}function vJ(){return this.rgb().formatRgb()}function d0(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ugt.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?yJ(e):r===3?new ja(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ww(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ww(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Bgt.exec(t))?new ja(e[1],e[2],e[3],1):(e=zgt.exec(t))?new ja(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=qgt.exec(t))?ww(e[1],e[2],e[3],e[4]):(e=Vgt.exec(t))?ww(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Hgt.exec(t))?SJ(e[1],e[2]/100,e[3]/100,1):(e=Ggt.exec(t))?SJ(e[1],e[2]/100,e[3]/100,e[4]):gJ.hasOwnProperty(t)?yJ(gJ[t]):t==="transparent"?new ja(NaN,NaN,NaN,0):null}function yJ(t){return new ja(t>>16&255,t>>8&255,t&255,1)}function ww(t,e,r,n){return n<=0&&(t=e=r=NaN),new ja(t,e,r,n)}function Kgt(t){return t instanceof sx||(t=d0(t)),t?(t=t.rgb(),new ja(t.r,t.g,t.b,t.opacity)):new ja}function k$(t,e,r,n){return arguments.length===1?Kgt(t):new ja(t,e,r,n??1)}function ja(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}T7(ja,k$,dde(sx,{brighter(t){return t=t==null?C3:Math.pow(C3,t),new ja(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?c0:Math.pow(c0,t),new ja(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ja(uh(this.r),uh(this.g),uh(this.b),A3(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bJ,formatHex:bJ,formatHex8:Qgt,formatRgb:xJ,toString:xJ}));function bJ(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}`}function Qgt(){return`#${Jm(this.r)}${Jm(this.g)}${Jm(this.b)}${Jm((isNaN(this.opacity)?1:this.opacity)*255)}`}function xJ(){const t=A3(this.opacity);return`${t===1?"rgb(":"rgba("}${uh(this.r)}, ${uh(this.g)}, ${uh(this.b)}${t===1?")":`, ${t})`}`}function A3(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function uh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Jm(t){return t=uh(t),(t<16?"0":"")+t.toString(16)}function SJ(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Pc(t,e,r,n)}function fde(t){if(t instanceof Pc)return new Pc(t.h,t.s,t.l,t.opacity);if(t instanceof sx||(t=d0(t)),!t)return new Pc;if(t instanceof Pc)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,s=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,l=i-s,c=(i+s)/2;return l?(e===i?o=(r-n)/l+(r<n)*6:r===i?o=(n-e)/l+2:o=(e-r)/l+4,l/=c<.5?i+s:2-i-s,o*=60):l=c>0&&c<1?0:o,new Pc(o,l,c,t.opacity)}function Zgt(t,e,r,n){return arguments.length===1?fde(t):new Pc(t,e,r,n??1)}function Pc(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}T7(Pc,Zgt,dde(sx,{brighter(t){return t=t==null?C3:Math.pow(C3,t),new Pc(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?c0:Math.pow(c0,t),new Pc(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,s=2*r-n;return new ja(oD(t>=240?t-240:t+120,s,n),oD(t,s,n),oD(t<120?t+240:t-120,s,n),this.opacity)},clamp(){return new Pc(wJ(this.h),Cw(this.s),Cw(this.l),A3(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=A3(this.opacity);return`${t===1?"hsl(":"hsla("}${wJ(this.h)}, ${Cw(this.s)*100}%, ${Cw(this.l)*100}%${t===1?")":`, ${t})`}`}}));function wJ(t){return t=(t||0)%360,t<0?t+360:t}function Cw(t){return Math.max(0,Math.min(1,t||0))}function oD(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const E7=t=>()=>t;function Xgt(t,e){return function(r){return t+r*e}}function Jgt(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function e_t(t){return(t=+t)==1?pde:function(e,r){return r-e?Jgt(e,r,t):E7(isNaN(e)?r:e)}}function pde(t,e){var r=e-t;return r?Xgt(t,r):E7(isNaN(t)?e:t)}const CJ=(function t(e){var r=e_t(e);function n(s,i){var o=r((s=k$(s)).r,(i=k$(i)).r),l=r(s.g,i.g),c=r(s.b,i.b),u=pde(s.opacity,i.opacity);return function(d){return s.r=o(d),s.g=l(d),s.b=c(d),s.opacity=u(d),s+""}}return n.gamma=t,n})(1);function t_t(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),s;return function(i){for(s=0;s<r;++s)n[s]=t[s]*(1-i)+e[s]*i;return n}}function r_t(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function n_t(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,s=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)s[o]=yk(t[o],e[o]);for(;o<r;++o)i[o]=e[o];return function(l){for(o=0;o<n;++o)i[o]=s[o](l);return i}}function R7(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Js(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function s_t(t,e){var r={},n={},s;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(s in e)s in t?r[s]=yk(t[s],e[s]):n[s]=e[s];return function(i){for(s in r)n[s]=r[s](i);return n}}var M$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,aD=new RegExp(M$.source,"g");function i_t(t){return function(){return t}}function o_t(t){return function(e){return t(e)+""}}function I7(t,e){var r=M$.lastIndex=aD.lastIndex=0,n,s,i,o=-1,l=[],c=[];for(t=t+"",e=e+"";(n=M$.exec(t))&&(s=aD.exec(e));)(i=s.index)>r&&(i=e.slice(r,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(s=s[0])?l[o]?l[o]+=s:l[++o]=s:(l[++o]=null,c.push({i:o,x:Js(n,s)})),r=aD.lastIndex;return r<e.length&&(i=e.slice(r),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?o_t(c[0].x):i_t(e):(e=c.length,function(u){for(var d=0,f;d<e;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}function yk(t,e){var r=typeof e,n;return e==null||r==="boolean"?E7(e):(r==="number"?Js:r==="string"?(n=d0(e))?(e=n,CJ):I7:e instanceof d0?CJ:e instanceof Date?R7:r_t(e)?t_t:Array.isArray(e)?n_t:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?s_t:Js)(t,e)}function mde(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function a_t(t){return function(){return t}}function l_t(t){return+t}var AJ=[0,1];function Wl(t){return t}function P$(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:a_t(isNaN(e)?NaN:.5)}function c_t(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function u_t(t,e,r){var n=t[0],s=t[1],i=e[0],o=e[1];return s<n?(n=P$(s,n),i=r(o,i)):(n=P$(n,s),i=r(i,o)),function(l){return i(n(l))}}function d_t(t,e,r){var n=Math.min(t.length,e.length)-1,s=new Array(n),i=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)s[o]=P$(t[o],t[o+1]),i[o]=r(e[o],e[o+1]);return function(l){var c=lde(t,l,1,n)-1;return i[c](s[c](l))}}function ix(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function bk(){var t=AJ,e=AJ,r=yk,n,s,i,o=Wl,l,c,u;function d(){var p=Math.min(t.length,e.length);return o!==Wl&&(o=c_t(t[0],t[p-1])),l=p>2?d_t:u_t,c=u=null,f}function f(p){return p==null||isNaN(p=+p)?i:(c||(c=l(t.map(n),e,r)))(n(o(p)))}return f.invert=function(p){return o(s((u||(u=l(e,t.map(n),Js)))(p)))},f.domain=function(p){return arguments.length?(t=Array.from(p,l_t),d()):t.slice()},f.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},f.rangeRound=function(p){return e=Array.from(p),r=mde,d()},f.clamp=function(p){return arguments.length?(o=p?!0:Wl,d()):o!==Wl},f.interpolate=function(p){return arguments.length?(r=p,d()):r},f.unknown=function(p){return arguments.length?(i=p,f):i},function(p,m){return n=p,s=m,d()}}function hde(){return bk()(Wl,Wl)}function f_t(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function k3(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function X_(t){return t=k3(Math.abs(t)),t?t[1]:NaN}function p_t(t,e){return function(r,n){for(var s=r.length,i=[],o=0,l=t[0],c=0;s>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(r.substring(s-=l,s+l)),!((c+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(e)}}function m_t(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var h_t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f0(t){if(!(e=h_t.exec(t)))throw new Error("invalid format: "+t);var e;return new D7({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}f0.prototype=D7.prototype;function D7(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}D7.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function g_t(t){e:for(var e=t.length,r=1,n=-1,s;r<e;++r)switch(t[r]){case".":n=s=r;break;case"0":n===0&&(n=r),s=r;break;default:if(!+t[r])break e;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(s+1):t}var gde;function __t(t,e){var r=k3(t,e);if(!r)return t+"";var n=r[0],s=r[1],i=s-(gde=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+k3(t,Math.max(0,e+i-1))[0]}function kJ(t,e){var r=k3(t,e);if(!r)return t+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const MJ={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:f_t,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>kJ(t*100,e),r:kJ,s:__t,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function PJ(t){return t}var jJ=Array.prototype.map,TJ=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function v_t(t){var e=t.grouping===void 0||t.thousands===void 0?PJ:p_t(jJ.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",s=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?PJ:m_t(jJ.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f){f=f0(f);var p=f.fill,m=f.align,h=f.sign,_=f.symbol,g=f.zero,y=f.width,b=f.comma,x=f.precision,w=f.trim,C=f.type;C==="n"?(b=!0,C="g"):MJ[C]||(x===void 0&&(x=12),w=!0,C="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var k=_==="$"?r:_==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",A=_==="$"?n:/[%p]/.test(C)?o:"",P=MJ[C],T=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function j(R){var D=k,O=A,N,F,U;if(C==="c")O=P(R)+O,R="";else{R=+R;var z=R<0||1/R<0;if(R=isNaN(R)?c:P(Math.abs(R),x),w&&(R=g_t(R)),z&&+R==0&&h!=="+"&&(z=!1),D=(z?h==="("?h:l:h==="-"||h==="("?"":h)+D,O=(C==="s"?TJ[8+gde/3]:"")+O+(z&&h==="("?")":""),T){for(N=-1,F=R.length;++N<F;)if(U=R.charCodeAt(N),48>U||U>57){O=(U===46?s+R.slice(N+1):R.slice(N))+O,R=R.slice(0,N);break}}}b&&!g&&(R=e(R,1/0));var H=D.length+R.length+O.length,W=H<y?new Array(y-H+1).join(p):"";switch(b&&g&&(R=e(W+R,W.length?y-O.length:1/0),W=""),m){case"<":R=D+R+O+W;break;case"=":R=D+W+R+O;break;case"^":R=W.slice(0,H=W.length>>1)+D+R+O+W.slice(H);break;default:R=W+D+R+O;break}return i(R)}return j.toString=function(){return f+""},j}function d(f,p){var m=u((f=f0(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(X_(p)/3)))*3,_=Math.pow(10,-h),g=TJ[8+h/3];return function(y){return m(_*y)+g}}return{format:u,formatPrefix:d}}var Aw,$7,_de;y_t({thousands:",",grouping:[3],currency:["$",""]});function y_t(t){return Aw=v_t(t),$7=Aw.format,_de=Aw.formatPrefix,Aw}function b_t(t){return Math.max(0,-X_(Math.abs(t)))}function x_t(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(X_(e)/3)))*3-X_(Math.abs(t)))}function S_t(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,X_(e)-X_(t))+1}function w_t(t,e,r,n){var s=A$(t,e,r),i;switch(n=f0(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(i=x_t(s,o))&&(n.precision=i),_de(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=S_t(s,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=b_t(s))&&(n.precision=i-(n.type==="%")*2);break}}return $7(n)}function xk(t){var e=t.domain;return t.ticks=function(r){var n=e();return w$(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var s=e();return w_t(s[0],s[s.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),s=0,i=n.length-1,o=n[s],l=n[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=s,s=i,i=u);d-- >0;){if(u=C$(o,l,r),u===c)return n[s]=o,n[i]=l,e(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function O7(){var t=hde();return t.copy=function(){return ix(t,O7())},rf.apply(t,arguments),xk(t)}function vde(t,e){t=t.slice();var r=0,n=t.length-1,s=t[r],i=t[n],o;return i<s&&(o=r,r=n,n=o,o=s,s=i,i=o),t[r]=e.floor(s),t[n]=e.ceil(i),t}function EJ(t){return Math.log(t)}function RJ(t){return Math.exp(t)}function C_t(t){return-Math.log(-t)}function A_t(t){return-Math.exp(-t)}function k_t(t){return isFinite(t)?+("1e"+t):t<0?0:t}function M_t(t){return t===10?k_t:t===Math.E?Math.exp:e=>Math.pow(t,e)}function P_t(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function IJ(t){return(e,r)=>-t(-e,r)}function j_t(t){const e=t(EJ,RJ),r=e.domain;let n=10,s,i;function o(){return s=P_t(n),i=M_t(n),r()[0]<0?(s=IJ(s),i=IJ(i),t(C_t,A_t)):t(EJ,RJ),e}return e.base=function(l){return arguments.length?(n=+l,o()):n},e.domain=function(l){return arguments.length?(r(l),o()):r()},e.ticks=l=>{const c=r();let u=c[0],d=c[c.length-1];const f=d<u;f&&([u,d]=[d,u]);let p=s(u),m=s(d),h,_;const g=l==null?10:+l;let y=[];if(!(n%1)&&m-p<g){if(p=Math.floor(p),m=Math.ceil(m),u>0){for(;p<=m;++p)for(h=1;h<n;++h)if(_=p<0?h/i(-p):h*i(p),!(_<u)){if(_>d)break;y.push(_)}}else for(;p<=m;++p)for(h=n-1;h>=1;--h)if(_=p>0?h/i(-p):h*i(p),!(_<u)){if(_>d)break;y.push(_)}y.length*2<g&&(y=w$(u,d,g))}else y=w$(p,m,Math.min(m-p,g)).map(i);return f?y.reverse():y},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=f0(c)).precision==null&&(c.trim=!0),c=$7(c)),l===1/0)return c;const u=Math.max(1,n*l/e.ticks().length);return d=>{let f=d/i(Math.round(s(d)));return f*n<n-.5&&(f*=n),f<=u?c(d):""}},e.nice=()=>r(vde(r(),{floor:l=>i(Math.floor(s(l))),ceil:l=>i(Math.ceil(s(l)))})),e}function M3(){const t=j_t(bk()).domain([1,10]);return t.copy=()=>ix(t,M3()).base(t.base()),rf.apply(t,arguments),t}function DJ(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function $J(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function T_t(t){var e=1,r=t(DJ(e),$J(e));return r.constant=function(n){return arguments.length?t(DJ(e=+n),$J(e)):e},xk(r)}function yde(){var t=T_t(bk());return t.copy=function(){return ix(t,yde()).constant(t.constant())},rf.apply(t,arguments)}function OJ(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function E_t(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function R_t(t){return t<0?-t*t:t*t}function I_t(t){var e=t(Wl,Wl),r=1;function n(){return r===1?t(Wl,Wl):r===.5?t(E_t,R_t):t(OJ(r),OJ(1/r))}return e.exponent=function(s){return arguments.length?(r=+s,n()):r},xk(e)}function L7(){var t=I_t(bk());return t.copy=function(){return ix(t,L7()).exponent(t.exponent())},rf.apply(t,arguments),t}function D_t(){return L7.apply(null,arguments).exponent(.5)}function bde(){var t=[.5],e=[0,1],r,n=1;function s(i){return i!=null&&i<=i?e[lde(t,i,0,n)]:r}return s.domain=function(i){return arguments.length?(t=Array.from(i),n=Math.min(t.length,e.length-1),s):t.slice()},s.range=function(i){return arguments.length?(e=Array.from(i),n=Math.min(t.length,e.length-1),s):e.slice()},s.invertExtent=function(i){var o=e.indexOf(i);return[t[o-1],t[o]]},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return bde().domain(t).range(e).unknown(r)},rf.apply(s,arguments)}const lD=new Date,cD=new Date;function Yi(t,e,r,n){function s(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return s.floor=i=>(t(i=new Date(+i)),i),s.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),s.round=i=>{const o=s(i),l=s.ceil(i);return i-o<l-i?o:l},s.offset=(i,o)=>(e(i=new Date(+i),o==null?1:Math.floor(o)),i),s.range=(i,o,l)=>{const c=[];if(i=s.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),e(i,l),t(i);while(u<i&&i<o);return c},s.filter=i=>Yi(o=>{if(o>=o)for(;t(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!i(o););else for(;--l>=0;)for(;e(o,1),!i(o););}),r&&(s.count=(i,o)=>(lD.setTime(+i),cD.setTime(+o),t(lD),t(cD),Math.floor(r(lD,cD))),s.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?s.filter(n?o=>n(o)%i===0:o=>s.count(0,o)%i===0):s)),s}const P3=Yi(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);P3.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Yi(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):P3);P3.range;const Id=1e3,Yl=Id*60,Dd=Yl*60,Gd=Dd*24,N7=Gd*7,LJ=Gd*30,uD=Gd*365,eh=Yi(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Id)},(t,e)=>(e-t)/Id,t=>t.getUTCSeconds());eh.range;const F7=Yi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Id)},(t,e)=>{t.setTime(+t+e*Yl)},(t,e)=>(e-t)/Yl,t=>t.getMinutes());F7.range;const U7=Yi(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Yl)},(t,e)=>(e-t)/Yl,t=>t.getUTCMinutes());U7.range;const B7=Yi(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Id-t.getMinutes()*Yl)},(t,e)=>{t.setTime(+t+e*Dd)},(t,e)=>(e-t)/Dd,t=>t.getHours());B7.range;const z7=Yi(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Dd)},(t,e)=>(e-t)/Dd,t=>t.getUTCHours());z7.range;const ox=Yi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Yl)/Gd,t=>t.getDate()-1);ox.range;const Sk=Yi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gd,t=>t.getUTCDate()-1);Sk.range;const xde=Yi(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Gd,t=>Math.floor(t/Gd));xde.range;function Vh(t){return Yi(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Yl)/N7)}const wk=Vh(0),j3=Vh(1),$_t=Vh(2),O_t=Vh(3),J_=Vh(4),L_t=Vh(5),N_t=Vh(6);wk.range;j3.range;$_t.range;O_t.range;J_.range;L_t.range;N_t.range;function Hh(t){return Yi(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/N7)}const Ck=Hh(0),T3=Hh(1),F_t=Hh(2),U_t=Hh(3),ev=Hh(4),B_t=Hh(5),z_t=Hh(6);Ck.range;T3.range;F_t.range;U_t.range;ev.range;B_t.range;z_t.range;const q7=Yi(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());q7.range;const V7=Yi(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());V7.range;const Wd=Yi(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Wd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Yi(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Wd.range;const Yd=Yi(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Yd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Yi(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Yd.range;function Sde(t,e,r,n,s,i){const o=[[eh,1,Id],[eh,5,5*Id],[eh,15,15*Id],[eh,30,30*Id],[i,1,Yl],[i,5,5*Yl],[i,15,15*Yl],[i,30,30*Yl],[s,1,Dd],[s,3,3*Dd],[s,6,6*Dd],[s,12,12*Dd],[n,1,Gd],[n,2,2*Gd],[r,1,N7],[e,1,LJ],[e,3,3*LJ],[t,1,uD]];function l(u,d,f){const p=d<u;p&&([u,d]=[d,u]);const m=f&&typeof f.range=="function"?f:c(u,d,f),h=m?m.range(u,+d+1):[];return p?h.reverse():h}function c(u,d,f){const p=Math.abs(d-u)/f,m=j7(([,,g])=>g).right(o,p);if(m===o.length)return t.every(A$(u/uD,d/uD,f));if(m===0)return P3.every(Math.max(A$(u,d,f),1));const[h,_]=o[p/o[m-1][2]<o[m][2]/p?m-1:m];return h.every(_)}return[l,c]}const[q_t,V_t]=Sde(Yd,V7,Ck,xde,z7,U7),[H_t,G_t]=Sde(Wd,q7,wk,ox,B7,F7);function dD(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function fD(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function $y(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function W_t(t){var e=t.dateTime,r=t.date,n=t.time,s=t.periods,i=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=Oy(s),d=Ly(s),f=Oy(i),p=Ly(i),m=Oy(o),h=Ly(o),_=Oy(l),g=Ly(l),y=Oy(c),b=Ly(c),x={a:z,A:H,b:W,B:K,c:null,d:qJ,e:qJ,f:gvt,g:kvt,G:Pvt,H:pvt,I:mvt,j:hvt,L:wde,m:_vt,M:vvt,p:q,q:X,Q:GJ,s:WJ,S:yvt,u:bvt,U:xvt,V:Svt,w:wvt,W:Cvt,x:null,X:null,y:Avt,Y:Mvt,Z:jvt,"%":HJ},w={a:Q,A:Y,b:Z,B:re,c:null,d:VJ,e:VJ,f:Ivt,g:qvt,G:Hvt,H:Tvt,I:Evt,j:Rvt,L:Ade,m:Dvt,M:$vt,p:fe,q:de,Q:GJ,s:WJ,S:Ovt,u:Lvt,U:Nvt,V:Fvt,w:Uvt,W:Bvt,x:null,X:null,y:zvt,Y:Vvt,Z:Gvt,"%":HJ},C={a:j,A:R,b:D,B:O,c:N,d:BJ,e:BJ,f:cvt,g:UJ,G:FJ,H:zJ,I:zJ,j:ivt,L:lvt,m:svt,M:ovt,p:T,q:nvt,Q:dvt,s:fvt,S:avt,u:X_t,U:J_t,V:evt,w:Z_t,W:tvt,x:F,X:U,y:UJ,Y:FJ,Z:rvt,"%":uvt};x.x=k(r,x),x.X=k(n,x),x.c=k(e,x),w.x=k(r,w),w.X=k(n,w),w.c=k(e,w);function k(se,le){return function(ee){var J=[],me=-1,pe=0,Se=se.length,ve,xe,qe;for(ee instanceof Date||(ee=new Date(+ee));++me<Se;)se.charCodeAt(me)===37&&(J.push(se.slice(pe,me)),(xe=NJ[ve=se.charAt(++me)])!=null?ve=se.charAt(++me):xe=ve==="e"?" ":"0",(qe=le[ve])&&(ve=qe(ee,xe)),J.push(ve),pe=me+1);return J.push(se.slice(pe,me)),J.join("")}}function A(se,le){return function(ee){var J=$y(1900,void 0,1),me=P(J,se,ee+="",0),pe,Se;if(me!=ee.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(le&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(pe=fD($y(J.y,0,1)),Se=pe.getUTCDay(),pe=Se>4||Se===0?T3.ceil(pe):T3(pe),pe=Sk.offset(pe,(J.V-1)*7),J.y=pe.getUTCFullYear(),J.m=pe.getUTCMonth(),J.d=pe.getUTCDate()+(J.w+6)%7):(pe=dD($y(J.y,0,1)),Se=pe.getDay(),pe=Se>4||Se===0?j3.ceil(pe):j3(pe),pe=ox.offset(pe,(J.V-1)*7),J.y=pe.getFullYear(),J.m=pe.getMonth(),J.d=pe.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Se="Z"in J?fD($y(J.y,0,1)).getUTCDay():dD($y(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Se+5)%7:J.w+J.U*7-(Se+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,fD(J)):dD(J)}}function P(se,le,ee,J){for(var me=0,pe=le.length,Se=ee.length,ve,xe;me<pe;){if(J>=Se)return-1;if(ve=le.charCodeAt(me++),ve===37){if(ve=le.charAt(me++),xe=C[ve in NJ?le.charAt(me++):ve],!xe||(J=xe(se,ee,J))<0)return-1}else if(ve!=ee.charCodeAt(J++))return-1}return J}function T(se,le,ee){var J=u.exec(le.slice(ee));return J?(se.p=d.get(J[0].toLowerCase()),ee+J[0].length):-1}function j(se,le,ee){var J=m.exec(le.slice(ee));return J?(se.w=h.get(J[0].toLowerCase()),ee+J[0].length):-1}function R(se,le,ee){var J=f.exec(le.slice(ee));return J?(se.w=p.get(J[0].toLowerCase()),ee+J[0].length):-1}function D(se,le,ee){var J=y.exec(le.slice(ee));return J?(se.m=b.get(J[0].toLowerCase()),ee+J[0].length):-1}function O(se,le,ee){var J=_.exec(le.slice(ee));return J?(se.m=g.get(J[0].toLowerCase()),ee+J[0].length):-1}function N(se,le,ee){return P(se,e,le,ee)}function F(se,le,ee){return P(se,r,le,ee)}function U(se,le,ee){return P(se,n,le,ee)}function z(se){return o[se.getDay()]}function H(se){return i[se.getDay()]}function W(se){return c[se.getMonth()]}function K(se){return l[se.getMonth()]}function q(se){return s[+(se.getHours()>=12)]}function X(se){return 1+~~(se.getMonth()/3)}function Q(se){return o[se.getUTCDay()]}function Y(se){return i[se.getUTCDay()]}function Z(se){return c[se.getUTCMonth()]}function re(se){return l[se.getUTCMonth()]}function fe(se){return s[+(se.getUTCHours()>=12)]}function de(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var le=k(se+="",x);return le.toString=function(){return se},le},parse:function(se){var le=A(se+="",!1);return le.toString=function(){return se},le},utcFormat:function(se){var le=k(se+="",w);return le.toString=function(){return se},le},utcParse:function(se){var le=A(se+="",!0);return le.toString=function(){return se},le}}}var NJ={"-":"",_:" ",0:"0"},oo=/^\s*\d+/,Y_t=/^%/,K_t=/[\\^$*+?|[\]().{}]/g;function cs(t,e,r){var n=t<0?"-":"",s=(n?-t:t)+"",i=s.length;return n+(i<r?new Array(r-i+1).join(e)+s:s)}function Q_t(t){return t.replace(K_t,"\\$&")}function Oy(t){return new RegExp("^(?:"+t.map(Q_t).join("|")+")","i")}function Ly(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Z_t(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function X_t(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function J_t(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function evt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function tvt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function FJ(t,e,r){var n=oo.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function UJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rvt(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nvt(t,e,r){var n=oo.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function svt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function BJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ivt(t,e,r){var n=oo.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function zJ(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ovt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function avt(t,e,r){var n=oo.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function lvt(t,e,r){var n=oo.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function cvt(t,e,r){var n=oo.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function uvt(t,e,r){var n=Y_t.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function dvt(t,e,r){var n=oo.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function fvt(t,e,r){var n=oo.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function qJ(t,e){return cs(t.getDate(),e,2)}function pvt(t,e){return cs(t.getHours(),e,2)}function mvt(t,e){return cs(t.getHours()%12||12,e,2)}function hvt(t,e){return cs(1+ox.count(Wd(t),t),e,3)}function wde(t,e){return cs(t.getMilliseconds(),e,3)}function gvt(t,e){return wde(t,e)+"000"}function _vt(t,e){return cs(t.getMonth()+1,e,2)}function vvt(t,e){return cs(t.getMinutes(),e,2)}function yvt(t,e){return cs(t.getSeconds(),e,2)}function bvt(t){var e=t.getDay();return e===0?7:e}function xvt(t,e){return cs(wk.count(Wd(t)-1,t),e,2)}function Cde(t){var e=t.getDay();return e>=4||e===0?J_(t):J_.ceil(t)}function Svt(t,e){return t=Cde(t),cs(J_.count(Wd(t),t)+(Wd(t).getDay()===4),e,2)}function wvt(t){return t.getDay()}function Cvt(t,e){return cs(j3.count(Wd(t)-1,t),e,2)}function Avt(t,e){return cs(t.getFullYear()%100,e,2)}function kvt(t,e){return t=Cde(t),cs(t.getFullYear()%100,e,2)}function Mvt(t,e){return cs(t.getFullYear()%1e4,e,4)}function Pvt(t,e){var r=t.getDay();return t=r>=4||r===0?J_(t):J_.ceil(t),cs(t.getFullYear()%1e4,e,4)}function jvt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+cs(e/60|0,"0",2)+cs(e%60,"0",2)}function VJ(t,e){return cs(t.getUTCDate(),e,2)}function Tvt(t,e){return cs(t.getUTCHours(),e,2)}function Evt(t,e){return cs(t.getUTCHours()%12||12,e,2)}function Rvt(t,e){return cs(1+Sk.count(Yd(t),t),e,3)}function Ade(t,e){return cs(t.getUTCMilliseconds(),e,3)}function Ivt(t,e){return Ade(t,e)+"000"}function Dvt(t,e){return cs(t.getUTCMonth()+1,e,2)}function $vt(t,e){return cs(t.getUTCMinutes(),e,2)}function Ovt(t,e){return cs(t.getUTCSeconds(),e,2)}function Lvt(t){var e=t.getUTCDay();return e===0?7:e}function Nvt(t,e){return cs(Ck.count(Yd(t)-1,t),e,2)}function kde(t){var e=t.getUTCDay();return e>=4||e===0?ev(t):ev.ceil(t)}function Fvt(t,e){return t=kde(t),cs(ev.count(Yd(t),t)+(Yd(t).getUTCDay()===4),e,2)}function Uvt(t){return t.getUTCDay()}function Bvt(t,e){return cs(T3.count(Yd(t)-1,t),e,2)}function zvt(t,e){return cs(t.getUTCFullYear()%100,e,2)}function qvt(t,e){return t=kde(t),cs(t.getUTCFullYear()%100,e,2)}function Vvt(t,e){return cs(t.getUTCFullYear()%1e4,e,4)}function Hvt(t,e){var r=t.getUTCDay();return t=r>=4||r===0?ev(t):ev.ceil(t),cs(t.getUTCFullYear()%1e4,e,4)}function Gvt(){return"+0000"}function HJ(){return"%"}function GJ(t){return+t}function WJ(t){return Math.floor(+t/1e3)}var Qg,Mde,Pde;Wvt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Wvt(t){return Qg=W_t(t),Mde=Qg.format,Qg.parse,Pde=Qg.utcFormat,Qg.utcParse,Qg}function Yvt(t){return new Date(t)}function Kvt(t){return t instanceof Date?+t:+new Date(+t)}function H7(t,e,r,n,s,i,o,l,c,u){var d=hde(),f=d.invert,p=d.domain,m=u(".%L"),h=u(":%S"),_=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),b=u("%b %d"),x=u("%B"),w=u("%Y");function C(k){return(c(k)<k?m:l(k)<k?h:o(k)<k?_:i(k)<k?g:n(k)<k?s(k)<k?y:b:r(k)<k?x:w)(k)}return d.invert=function(k){return new Date(f(k))},d.domain=function(k){return arguments.length?p(Array.from(k,Kvt)):p().map(Yvt)},d.ticks=function(k){var A=p();return t(A[0],A[A.length-1],k??10)},d.tickFormat=function(k,A){return A==null?C:u(A)},d.nice=function(k){var A=p();return(!k||typeof k.range!="function")&&(k=e(A[0],A[A.length-1],k??10)),k?p(vde(A,k)):d},d.copy=function(){return ix(d,H7(t,e,r,n,s,i,o,l,c,u))},d}function jde(){return rf.apply(H7(H_t,G_t,Wd,q7,wk,ox,B7,F7,eh,Mde).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Qvt(){return rf.apply(H7(q_t,V_t,Yd,V7,Ck,Sk,z7,U7,eh,Pde).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zvt(){var t=0,e=1,r,n,s,i,o=Wl,l=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(s===0?.5:(f=(i(f)-r)*s,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([t,e]=f,r=i(t=+t),n=i(e=+e),s=r===n?0:1/(n-r),u):[t,e]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(p){var m,h;return arguments.length?([m,h]=p,o=f(m,h),u):[o(0),o(1)]}}return u.range=d(yk),u.rangeRound=d(mde),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return i=f,r=f(t),n=f(e),s=r===n?0:1/(n-r),u}}function Xvt(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Tde(){var t=xk(Zvt()(Wl));return t.copy=function(){return Xvt(t,Tde())},Fgt.apply(t,arguments)}function Ede(t){return t.type==="piecewise"?bde(t.thresholds,t.colors):Tde([t.min??0,t.max??100],t.color)}function tv(t){return t.values?w3(t.values,t.colors).unknown(t.unknownColor??null):w3(t.colors.map((e,r)=>r),t.colors).unknown(t.unknownColor??null)}function w_(t){return t.type==="ordinal"?tv(t):Ede(t)}function Rde(t,e,r){const{tickMaxStep:n,tickMinStep:s,tickNumber:i}=t,o=s===void 0?999:Math.floor(Math.abs(e[1]-e[0])/s),l=n===void 0?2:Math.ceil(Math.abs(e[1]-e[0])/n);return Math.min(o,Math.max(l,i??r))}function Ide(t,e){return e[1]-e[0]===0?1:t/((e[1]-e[0])/100)}function G7(t){return Math.floor(Math.abs(t)/50)}function Dde(t,e){const r=yde(t,e),n=r.ticks,{negativeScale:s,linearScale:i,positiveScale:o}=Jvt(r);return r.ticks=l=>{const c=n(l),u=r.constant();let d=0,f=0,p=0;c.forEach(h=>{h>-u&&h<u&&(f+=1),h<=-u&&(d+=1),h>=u&&(p+=1)});const m=[];if(d>0&&m.push(...s.ticks(d)),f>0){const h=i.ticks(f);m.at(-1)===h[0]?m.push(...h.slice(1)):m.push(...h)}if(p>0){const h=o.ticks(p);m.at(-1)===h[0]?m.push(...h.slice(1)):m.push(...h)}return m},r.tickFormat=(l=10,c)=>{const u=r.constant(),[d,f]=r.domain(),p=f-d,m=s.domain(),h=m[1]-m[0],g=(p===0?0:h/p)*l,y=i.domain(),b=y[1]-y[0],w=(p===0?0:b/p)*l,C=o.domain(),k=C[1]-C[0],P=(p===0?0:k/p)*l,T=s.tickFormat(g,c),j=i.tickFormat(w,c),R=o.tickFormat(P,c);return D=>(D.valueOf()<=-u?T:D.valueOf()>=u?R:j)(D)},r.copy=()=>Dde(r.domain(),r.range()).constant(r.constant()),r}function Jvt(t){const e=t.constant(),r=t.domain(),n=[r[0],Math.min(r[1],-e)],s=M3(n,t.range()),i=[Math.max(r[0],-e),Math.min(r[1],e)],o=O7(i,t.range()),l=[Math.max(r[0],e),r[1]],c=M3(l,t.range());return{negativeScale:s,linearScale:o,positiveScale:c}}function Ak(t,e,r){switch(t){case"log":return M3(e,r);case"pow":return L7(e,r);case"sqrt":return D_t(e,r);case"time":return jde(e,r);case"utc":return Qvt(e,r);case"symlog":return Dde(e,r);default:return O7(e,r)}}const j$=t=>t?.[0]instanceof Date;function T$(t,e,r){const n=jde(t,e);return(s,{location:i})=>i==="tick"?n.tickFormat(r)(s):`${s.toLocaleString()}`}let YJ,KJ;class e1t{types=new Set;constructor(){if(YJ)throw new Error("You can only create one instance!");YJ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}class t1t{types=new Set;constructor(){if(KJ)throw new Error("You can only create one instance!");KJ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}const kk=new e1t;kk.addType("bar");kk.addType("line");kk.addType("scatter");const $de=new t1t;$de.addType("radar");function W7(t){return kk.getTypes().has(t)}const r1t=(t,e,r,n)=>{const s=new Set;return Object.keys(e).filter(W7).forEach(o=>{const l=r[o]?.series??{},c=e[o].axisTooltipGetter?.(l);c!==void 0&&c.forEach(({axisId:u,direction:d})=>{d===t&&s.add(u??n)})}),s};function ao(t){return t.bandwidth!==void 0}function n1t(t){return ao(t)&&t.paddingOuter!==void 0}function s1t(t,e,r){const n=e==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return r?[n[1],n[0]]:n}const i1t=.2,o1t=.1;function Ode({scales:t,drawingArea:e,formattedSeries:r,axis:n,seriesConfig:s,axisDirection:i,zoomMap:o,domains:l}){if(n===void 0)return{axis:{},axisIds:[]};const c=r1t(i,s,r,n[0].id),u={};return n.forEach(d=>{const f=d,p=t[f.id],m=o?.get(f.id),h=m?[m.start,m.end]:[0,100],_=s1t(e,i,f.reverse??!1),g=!f.ignoreTooltip&&c.has(f.id),y=f.data??[];if(ao(p)){const k=i==="y"?[_[1],_[0]]:_;if(n1t(p)&&Hd(f)){const A=f.categoryGapRatio??i1t,P=f.barGapRatio??o1t;u[f.id]=ce({offset:0,height:0,categoryGapRatio:A,barGapRatio:P,triggerTooltip:g},f,{data:y,scale:p,tickNumber:f.data.length,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?tv(ce({values:f.data},f.colorMap)):w_(f.colorMap))})}if(Vp(f)&&(u[f.id]=ce({offset:0,height:0,triggerTooltip:g},f,{data:y,scale:p,tickNumber:f.data.length,colorScale:f.colorMap&&(f.colorMap.type==="ordinal"?tv(ce({values:f.data},f.colorMap)):w_(f.colorMap))})),j$(f.data)){const A=T$(f.data,k,f.tickNumber);u[f.id].valueFormatter=f.valueFormatter??A}return}if(f.scaleType==="band"||f.scaleType==="point")return;const b=l[f.id].tickNumber,x=f,w=x.scaleType??"linear",C=Ide(b,h);u[f.id]=ce({offset:0,height:0,triggerTooltip:g},x,{data:y,scaleType:w,scale:p,tickNumber:C,colorScale:x.colorMap&&Ede(x.colorMap),valueFormatter:f.valueFormatter??Agt(C,Ak(w,_.map(k=>p.invert(k)),_))})}),{axis:u,axisIds:n.map(({id:d})=>d)}}function a1t(t){return t!=null}function l1t(t,e,r,n){const s=t?.length??0,i=Math.floor(e*s/100),o=Math.ceil(r*s/100);return function(c,u){return(c[n]??t?.[u])==null?!0:u>=i&&u<o}}function c1t(t,e,r,n,s){const i=t[0].valueOf(),o=t[1].valueOf(),l=i+e*(o-i)/100,c=i+r*(o-i)/100;return function(d,f){const p=d[n]??s?.[f];return p==null?!0:p>=l&&p<=c}}const u1t=t=>({currentAxisId:e,seriesXAxisId:r,seriesYAxisId:n,isDefaultAxis:s})=>(i,o)=>!(e===r?n:r)||s?Object.values(t??{})[0]?.(i,o)??!0:[n,r].filter(u=>u!==e).map(u=>t[u??""]).filter(a1t).every(u=>u(i,o)),QJ=t=>(e=[])=>e.reduce((r,n)=>{const{zoom:s,id:i,reverse:o}=n,l=P7(s,i,t,o);return l&&(r[i]=l),r},{}),d1t=.2;function Lde(t,e,r){const n=e==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return r.reverse?[n[1],n[0]]:n}function Nde(t,e){const r=[0,1];if(Hd(t)){const i=t.categoryGapRatio??d1t;return vk(e,r).paddingInner(i).paddingOuter(i/2)}if(Vp(t))return ude(e,r);const n=t.scaleType??"linear",s=Ak(n,e,r);return Mgt(t)&&t.constant!=null&&s.constant(t.constant),s}const Fde=(t,e)=>{const r=t[1]-t[0],n=e[1]-e[0],s=t[0]-e[0]*r/n,i=t[1]+(100-e[1])*r/n;return[s,i]},f1t=(t,e,r,n,s,i,o)=>{const l=r==="x"?n[t].xExtremumGetter:n[t].yExtremumGetter,c=i[t]?.series??{};return l?.({series:c,axis:e,axisIndex:s,isDefaultAxis:s===0,getFilters:o})??[1/0,-1/0]};function Mk(t,e,r,n,s,i){const o=Object.keys(r).filter(W7);let l=[1/0,-1/0];for(const c of o){const[u,d]=f1t(c,t,e,r,n,s,i);l=[Math.min(l[0],u),Math.max(l[1],d)]}return Number.isNaN(l[0])||Number.isNaN(l[1])?[1/0,-1/0]:l}const p1t=(t,e,r,n)=>{if(t.domainLimit!==void 0)return t.domainLimit;if(e==="x")for(const s of n.line?.seriesOrder??[]){const i=n.line.series[s];if(i.xAxisId===t.id||i.xAxisId===void 0&&r===0)return"strict"}return"nice"};function Ude(t,e,r){return Ak(t??"linear",e,[0,1]).nice(r).domain()}function Bde(t,e,r,n,[s,i],o,l){const c=qde(t,e,r,n,l);let u=Vde(t,s,i);if(typeof c=="function"){const{min:f,max:p}=c(s.valueOf(),i.valueOf());u[0]=f,u[1]=p}const d=Rde(t,u,o);return c==="nice"&&(u=Ude(t.scaleType,u,d)),u=["min"in t?t.min??u[0]:u[0],"max"in t?t.max??u[1]:u[1]],{domain:u,tickNumber:d}}function zde(t,e,r,n,[s,i],o,l){const c=qde(t,e,r,n,l);let u=Vde(t,s,i);if(typeof c=="function"){const{min:d,max:f}=c(s.valueOf(),i.valueOf());u[0]=d,u[1]=f}return c==="nice"&&(u=Ude(t.scaleType,u,o)),[t.min??u[0],t.max??u[1]]}function qde(t,e,r,n,s){return s?p1t(t,e,r,n):t.domainLimit??"nice"}function Vde(t,e,r){let n=e,s=r;return"max"in t&&t.max!=null&&t.max<e&&(n=t.max),"min"in t&&t.min!=null&&t.min>e&&(s=t.min),!("min"in t)&&!("max"in t)?[n,s]:[t.min??n,t.max??s]}class m1t{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,r){let n=this.length++;for(;n>0;){const s=n-1>>1,i=this.values[s];if(r>=i)break;this.ids[n]=this.ids[s],this.values[n]=i,n=s}this.ids[n]=e,this.values[n]=r}pop(){if(this.length===0)return;const e=this.ids,r=this.values,n=e[0],s=--this.length;if(s>0){const i=e[s],o=r[s];let l=0;const c=s>>1;for(;l<c;){const u=(l<<1)+1,d=u+1,f=u+(+(d<s)&+(r[d]<r[u]));if(r[f]>=o)break;e[l]=e[f],r[l]=r[f],l=f}e[l]=i,r[l]=o}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){this.ids.length=this.values.length=this.length}}const ZJ=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],pD=3;class Y7{static from(e,r=0){if(r%8!==0)throw new Error("byteOffset must be 8-byte aligned.");if(!e||e.byteLength===void 0||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[n,s]=new Uint8Array(e,r+0,2);if(n!==251)throw new Error("Data does not appear to be in a Flatbush format.");const i=s>>4;if(i!==pD)throw new Error(`Got v${i} data when expected v${pD}.`);const o=ZJ[s&15];if(!o)throw new Error("Unrecognized array type.");const[l]=new Uint16Array(e,r+2,1),[c]=new Uint32Array(e,r+4,1);return new Y7(c,l,o,void 0,e,r)}constructor(e,r=16,n=Float64Array,s=ArrayBuffer,i,o=0){if(e===void 0)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.byteOffset=o;let l=e,c=l;this._levelBounds=[l*4];do l=Math.ceil(l/this.nodeSize),c+=l,this._levelBounds.push(c*4);while(l!==1);this.ArrayType=n,this.IndexArrayType=c<16384?Uint16Array:Uint32Array;const u=ZJ.indexOf(n),d=c*4*n.BYTES_PER_ELEMENT;if(u<0)throw new Error(`Unexpected typed array class: ${n}.`);if(i)this.data=i,this._boxes=new n(i,o+8,c*4),this._indices=new this.IndexArrayType(i,o+8+d,c),this._pos=c*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{const f=this.data=new s(8+d+c*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(f,8,c*4),this._indices=new this.IndexArrayType(f,8+d,c),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(f,0,2).set([251,(pD<<4)+u]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=e}this._queue=new m1t}add(e,r,n=e,s=r){const i=this._pos>>2,o=this._boxes;return this._indices[i]=i,o[this._pos++]=e,o[this._pos++]=r,o[this._pos++]=n,o[this._pos++]=s,e<this.minX&&(this.minX=e),r<this.minY&&(this.minY=r),n>this.maxX&&(this.maxX=n),s>this.maxY&&(this.maxY=s),i}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize){e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,e[this._pos++]=this.maxY;return}const r=this.maxX-this.minX||1,n=this.maxY-this.minY||1,s=new Uint32Array(this.numItems),i=65535;for(let o=0,l=0;o<this.numItems;o++){const c=e[l++],u=e[l++],d=e[l++],f=e[l++],p=Math.floor(i*((c+d)/2-this.minX)/r),m=Math.floor(i*((u+f)/2-this.minY)/n);s[o]=_1t(p,m)}E$(s,e,this._indices,0,this.numItems-1,this.nodeSize);for(let o=0,l=0;o<this._levelBounds.length-1;o++){const c=this._levelBounds[o];for(;l<c;){const u=l;let d=e[l++],f=e[l++],p=e[l++],m=e[l++];for(let h=1;h<this.nodeSize&&l<c;h++)d=Math.min(d,e[l++]),f=Math.min(f,e[l++]),p=Math.max(p,e[l++]),m=Math.max(m,e[l++]);this._indices[this._pos>>2]=u,e[this._pos++]=d,e[this._pos++]=f,e[this._pos++]=p,e[this._pos++]=m}}}search(e,r,n,s,i){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let o=this._boxes.length-4;const l=[],c=[];for(;o!==void 0;){const u=Math.min(o+this.nodeSize*4,XJ(o,this._levelBounds));for(let d=o;d<u;d+=4){if(n<this._boxes[d]||s<this._boxes[d+1]||e>this._boxes[d+2]||r>this._boxes[d+3])continue;const f=this._indices[d>>2]|0;o>=this.numItems*4?l.push(f):(i===void 0||i(f))&&(c.push(f),c.push(this._boxes[d]),c.push(this._boxes[d+1]))}o=l.pop()}return c}neighbors(e,r,n=1/0,s=1/0,i,o=h1t){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let l=this._boxes.length-4;const c=this._queue,u=[];e:for(;l!==void 0;){const d=Math.min(l+this.nodeSize*4,XJ(l,this._levelBounds));for(let f=l;f<d;f+=4){const p=this._indices[f>>2]|0,m=this._boxes[f],h=this._boxes[f+1],_=this._boxes[f+2],g=this._boxes[f+3],y=e<m?m-e:e>_?e-_:0,b=r<h?h-r:r>g?r-g:0,x=o(y,b);x>s||(l>=this.numItems*4?c.push(p<<1,x):(i===void 0||i(p))&&c.push((p<<1)+1,x))}for(;c.length&&c.peek()&1;)if(c.peekValue()>s||(u.push(c.pop()>>1),u.length===n))break e;l=c.length?c.pop()>>1:void 0}return c.clear(),u}}function h1t(t,e){return t*t+e*e}function XJ(t,e){let r=0,n=e.length-1;for(;r<n;){const s=r+n>>1;e[s]>t?n=s:r=s+1}return e[r]}function E$(t,e,r,n,s,i){if(Math.floor(n/i)>=Math.floor(s/i))return;const o=t[n],l=t[n+s>>1],c=t[s];let u=c;const d=Math.max(o,l);c>d?u=d:d===o?u=Math.max(l,c):d===l&&(u=Math.max(o,c));let f=n-1,p=s+1;for(;;){do f++;while(t[f]<u);do p--;while(t[p]>u);if(f>=p)break;g1t(t,e,r,f,p)}E$(t,e,r,n,p,i),E$(t,e,r,p+1,s,i)}function g1t(t,e,r,n,s){const i=t[n];t[n]=t[s],t[s]=i;const o=4*n,l=4*s,c=e[o],u=e[o+1],d=e[o+2],f=e[o+3];e[o]=e[l],e[o+1]=e[l+1],e[o+2]=e[l+2],e[o+3]=e[l+3],e[l]=c,e[l+1]=u,e[l+2]=d,e[l+3]=f;const p=r[n];r[n]=r[s],r[s]=p}function _1t(t,e){let r=t^e,n=65535^r,s=65535^(t|e),i=t&(e^65535),o=r|n>>1,l=r>>1^r,c=s>>1^n&i>>1^s,u=r&s>>1^i>>1^i;r=o,n=l,s=c,i=u,o=r&r>>2^n&n>>2,l=r&n>>2^n&(r^n)>>2,c^=r&s>>2^n&i>>2,u^=n&s>>2^(r^n)&i>>2,r=o,n=l,s=c,i=u,o=r&r>>4^n&n>>4,l=r&n>>4^n&(r^n)>>4,c^=r&s>>4^n&i>>4,u^=n&s>>4^(r^n)&i>>4,r=o,n=l,s=c,i=u,c^=r&s>>8^n&i>>8,u^=n&s>>8^(r^n)&i>>8,r=c^c>>1,n=u^u>>1;let d=t^e,f=n|65535^(d|r);return d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,(f<<1|d)>>>0}const v1t=t=>{const e=new Map;return t.forEach(r=>{e.set(r.axisId,r)}),e},Hde=t=>t.zoom,Gde=Vt([Hde],t=>t?.isInteracting),Hp=Vt([Hde],t=>t?.zoomData&&v1t(t?.zoomData)),JJ=Vt([Hp,(t,e)=>e],(t,e)=>t?.get(e)),ax=Vt([oc,Hc],(t,e)=>ce({},QJ("x")(t),QJ("y")(e)));Vt([ax,(t,e)=>e],(t,e)=>t[e]);const y1t=Vt([vl],function(e){return G7(e.width)}),b1t=Vt([vl],function(e){return G7(e.height)}),K7=Vt([oc,Mo,Gc,mk,y1t],function(e,r,n,s,i){const l={};return e?.forEach((c,u)=>{const d=c;if(Hd(d)||Vp(d)){l[d.id]={domain:d.data};return}const f=Mk(d,"x",n,u,r);l[d.id]=Bde(d,"x",u,r,f,i,s)}),l}),Q7=Vt([Hc,Mo,Gc,mk,b1t],function(e,r,n,s,i){const l={};return e?.forEach((c,u)=>{const d=c;if(Hd(d)||Vp(d)){l[d.id]={domain:d.data};return}const f=Mk(d,"y",n,u,r);l[d.id]=Bde(d,"y",u,r,f,i,s)}),l}),Wde=Vt([Hp,ax,oc,Hc,K7,Q7],(t,e,r,n,s,i)=>{if(!t||!e)return;let o=!1;const l={},c=[...r??[],...n??[]];for(let u=0;u<c.length;u+=1){const d=c[u];if(!e[d.id]||e[d.id].filterMode!=="discard")continue;const f=t.get(d.id);if(f===void 0||f.start<=0&&f.end>=100)continue;const p=u<(r?.length??0)?"x":"y";if(d.scaleType==="band"||d.scaleType==="point")l[d.id]=l1t(d.data,f.start,f.end,p);else{const{domain:m}=p==="x"?s[d.id]:i[d.id];l[d.id]=c1t(m,f.start,f.end,p,d.data)}o=!0}if(o)return u1t(l)}),x1t=Vt([oc,Mo,Gc,Hp,ax,Wde,mk,K7],(t,e,r,n,s,i,o,l)=>{const c={};return t?.forEach((u,d)=>{const f=l[u.id].domain;if(Hd(u)||Vp(u)){c[u.id]=f;return}const p=n?.get(u.id),m=s?.[u.id],h=p===void 0&&!m?i:void 0;if(!h){c[u.id]=f;return}const _=l[u.id].tickNumber,g=Mk(u,"x",r,d,e,h);c[u.id]=zde(u,"x",d,e,g,_,o)}),c},{memoizeOptions:{resultEqualityCheck:(t,e)=>vp(t,e)}}),S1t=Vt([Hc,Mo,Gc,Hp,ax,Wde,mk,Q7],(t,e,r,n,s,i,o,l)=>{const c={};return t?.forEach((u,d)=>{const f=l[u.id].domain;if(Hd(u)||Vp(u)){c[u.id]=f;return}const p=n?.get(u.id),m=s?.[u.id],h=p===void 0&&!m?i:void 0;if(!h){c[u.id]=f;return}const _=l[u.id].tickNumber,g=Mk(u,"y",r,d,e,h);c[u.id]=zde(u,"y",d,e,g,_,o)}),c},{memoizeOptions:{resultEqualityCheck:(t,e)=>vp(t,e)}}),Yde=Vt([oc,x1t],function(e,r){const n={};return e?.forEach(s=>{const i=s,o=r[i.id];n[i.id]=Nde(i,o)}),n}),Kde=Vt([Hc,S1t],function(e,r){const n={};return e?.forEach(s=>{const i=s,o=r[i.id];n[i.id]=Nde(i,o)}),n}),w1t=Vt([oc,Yde,vl,Hp],function(e,r,n,s){const i={};return e?.forEach(o=>{const l=o,c=s?.get(l.id),u=c?[c.start,c.end]:[0,100],d=Lde(n,"x",l),f=r[l.id].copy(),p=Fde(d,u);f.range(p),i[l.id]=f}),i}),C1t=Vt([Hc,Kde,vl,Hp],function(e,r,n,s){const i={};return e?.forEach(o=>{const l=o,c=s?.get(l.id),u=c?[c.start,c.end]:[0,100],d=Lde(n,"y",l),f=r[l.id].copy(),p=ao(f)?d.reverse():d,m=Fde(p,u);f.range(m),i[l.id]=f}),i}),Ba=Vt([oc,vl,Mo,Gc,Hp,K7,w1t],(t,e,r,n,s,i,o)=>Ode({scales:o,drawingArea:e,formattedSeries:r,axis:t,seriesConfig:n,axisDirection:"x",zoomMap:s,domains:i})),za=Vt([Hc,vl,Mo,Gc,Hp,Q7,C1t],(t,e,r,n,s,i,o)=>Ode({scales:o,drawingArea:e,formattedSeries:r,axis:t,seriesConfig:n,axisDirection:"y",zoomMap:s,domains:i}));Vt([Ba,za,(t,e)=>e],(t,e,r)=>t?.axis[r]??e?.axis[r]);Vt([oc,Hc,(t,e)=>e],(t,e,r)=>{const n=t?.find(s=>s.id===r)??e?.find(s=>s.id===r)??null;if(n)return n});const A1t=Vt([oc],t=>t[0].id),k1t=Vt([Hc],t=>t[0].id),M1t=new Map,P1t=()=>M1t,j1t=Vt([Mo,Yde,Kde,A1t,k1t],function(e,r,n,s,i){const o=e.scatter,l=new Map;return o&&o.seriesOrder.forEach(c=>{const{data:u,xAxisId:d=s,yAxisId:f=i}=o.series[c],p=new Y7(u.length),m=r[d],h=n[f];for(const _ of u)p.add(m(_.x),h(_.y));p.finish(),l.set(c,p)}),l});function Zg(t){return t instanceof Date?t.getTime():t}function rv(t,e){const{scale:r,data:n,reverse:s}=t;if(!ao(r)){const o=r.invert(e);if(n===void 0)return-1;const l=Zg(o);return n?.findIndex((u,d)=>{const f=Zg(u);return f>l&&(d===0||Math.abs(l-f)<=Math.abs(l-Zg(n[d-1])))||f<=l&&(d===n.length-1||Math.abs(Zg(o)-f)<Math.abs(Zg(o)-Zg(n[d+1])))})}const i=r.bandwidth()===0?Math.floor((e-Math.min(...r.range())+r.step()/2)/r.step()):Math.floor((e-Math.min(...r.range()))/r.step());return i<0||i>=n.length?-1:s?n.length-1-i:i}function eee(t,e,r,n){if(!ao(t)){if(n===null){const s=t.invert(r);return Number.isNaN(s)?null:s}return e[n]}return n===null||n<0||n>=e.length?null:e[n]}function p0(t,e){const r=t.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r.matrixTransform(t.getScreenCTM().inverse())}const T1t=Object.is;function Qde(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let r=0,n=0;for(const s in t)if(r+=1,!T1t(t[s],e[s])||!(s in e))return!1;for(const s in e)n+=1;return r===n}const lx=({store:t})=>{const e=lr(function(){t.update(o=>ce({},o,{interaction:ce({},o.interaction,{pointer:null,item:null})}))}),r=lr(function(o){t.update(l=>{const c=l.interaction.item;return o?c===null||Object.keys(o).some(u=>o[u]!==c[u])?l:ce({},l,{interaction:ce({},l.interaction,{item:null})}):c===null?l:ce({},l,{interaction:ce({},l.interaction,{item:null})})})}),n=lr(function(o){t.update(l=>Qde(l.interaction.item,o)?l:ce({},l,{interaction:ce({},l.interaction,{item:o})}))}),s=lr(function(o){t.update(l=>ce({},l,{interaction:ce({},l.interaction,{pointer:o,lastUpdate:o!==null?"pointer":l.interaction.lastUpdate})}))});return{instance:{cleanInteraction:e,setItemInteraction:n,removeItemInteraction:r,setPointerCoordinate:s}}};lx.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:"pointer"}});lx.params={};const Pk=t=>t.interaction,E1t=Vt([Pk],t=>t!==void 0),Zde=Vt([Pk],t=>t?.item??null),Xde=Vt([Pk],t=>t?.pointer??null),cx=Vt([Xde],t=>t&&t.x),ux=Vt([Xde],t=>t&&t.y),R1t=Vt([Zde],t=>t!==null),Jde=Vt([Pk],t=>t?.lastUpdate),jk=(t,e)=>e;function R$(t,e,r=e.axisIds[0]){return Array.isArray(r)?r.map(n=>rv(e.axis[n],t)):rv(e.axis[r],t)}const efe=(t,e,r)=>{if(t===null)return null;const n=R$(t,e,r);return n===-1?null:n},Z7=Vt([cx,Ba,jk],efe),X7=Vt([ux,za,jk],efe),I1t=Vt([cx,ux,Ba,za],(t,e,r,n)=>[...t===null?[]:r.axisIds.map(s=>({axisId:s,dataIndex:R$(t,r,s)})),...e===null?[]:n.axisIds.map(s=>({axisId:s,dataIndex:R$(e,n,s)}))].filter(s=>s.dataIndex!==null&&s.dataIndex>=0));function tfe(t,e,r,n=e.axisIds[0]){return Array.isArray(n)?n.map((s,i)=>{const o=e.axis[s];return eee(o.scale,o.data,t,r[i])}):eee(e.axis[n].scale,e.axis[n].data,t,r)}const D1t=Vt([cx,Ba,Z7,jk],(t,e,r,n)=>t===null||e.axisIds.length===0?null:tfe(t,e,r,n)),$1t=Vt([ux,za,X7,jk],(t,e,r,n)=>t===null||e.axisIds.length===0?null:tfe(t,e,r,n)),rfe=Vt([cx,Ba],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:rv(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:vp}}),nfe=Vt([ux,za],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:rv(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:vp}}),O1t=Vt([rfe,nfe],(t,e)=>t.length>0||e.length>0),L1t=()=>{};function N1t(t,e,r,n){const s=NO(F1t,{store:t,selector:e,skip:n}).current;s.effect=r,I.useEffect(s.onMount(n),[n])}function F1t(t){const{store:e,selector:r,skip:n}=t;let s=!1,i;const o=()=>{l.dispose??=e.subscribe(c=>{const u=r(c);l.effect(i,u),i=u})},l={effect:L1t,dispose:null,onMount:c=>()=>{if(!c)return s||(s=!0,i=r(e.value)),o(),()=>{l.dispose?.(),l.dispose=null}}};return n||(s=!0,i=r(e.value),o()),l}function U1t(t){return t.setPointerCoordinate!==void 0}const zv=({params:t,store:e,seriesConfig:r,svgRef:n,instance:s})=>{const{xAxis:i,yAxis:o,dataset:l,onHighlightedAxisChange:c}=t,u=qr(e,vl),d=qr(e,Mo),f=qr(e,E1t),{axis:p,axisIds:m}=qr(e,Ba),{axis:h,axisIds:_}=qr(e,za);nde({controlled:t.highlightedAxis}),ei(()=>{t.highlightedAxis!==void 0&&e.update(w=>w.controlledCartesianAxisHighlight===t.highlightedAxis?w:ce({},w,{controlledCartesianAxisHighlight:t.highlightedAxis}))},[e,t.highlightedAxis]);const g=I.useRef(!0);I.useEffect(()=>{if(g.current){g.current=!1;return}e.update(w=>ce({},w,{cartesianAxis:ce({},w.cartesianAxis,{x:ode(i,l),y:ade(o,l)})}))},[r,u,i,o,l,e]);const y=m[0],b=_[0];N1t(e,I1t,(w,C)=>{if(!Object.is(w,C)){if(w.length!==C.length){c(C);return}w?.some(({axisId:k,dataIndex:A},P)=>C[P].axisId!==k||C[P].dataIndex!==A)&&c(C)}},!c);const x=U1t(s);return I.useEffect(()=>{const w=n.current;if(!f||!x||!w||t.disableAxisListener)return()=>{};const C=s.addInteractionListener("moveEnd",D=>{D.detail.activeGestures.pan||s.cleanInteraction()}),k=s.addInteractionListener("panEnd",D=>{D.detail.activeGestures.move||s.cleanInteraction()}),A=s.addInteractionListener("quickPressEnd",D=>{!D.detail.activeGestures.move&&!D.detail.activeGestures.pan&&s.cleanInteraction()}),P=D=>{const O=D.detail.srcEvent,N=D.detail.target,F=p0(w,O);if(D.detail.srcEvent.buttons>=1&&N?.hasPointerCapture(D.detail.srcEvent.pointerId)&&!N?.closest("[data-charts-zoom-slider]")&&N?.releasePointerCapture(D.detail.srcEvent.pointerId),!s.isPointInside(F.x,F.y,N)){s.cleanInteraction?.();return}s.setPointerCoordinate(F)},T=s.addInteractionListener("move",P),j=s.addInteractionListener("pan",P),R=s.addInteractionListener("quickPress",P);return()=>{T.cleanup(),C.cleanup(),j.cleanup(),k.cleanup(),R.cleanup(),A.cleanup()}},[n,e,p,y,h,b,s,t.disableAxisListener,f,x]),I.useEffect(()=>{const w=n.current,C=t.onAxisClick;if(w===null||!C)return()=>{};const k=s.addInteractionListener("tap",A=>{let P=null,T=!1;const j=p0(w,A.detail.srcEvent),R=rv(p[y],j.x);T=R!==-1,P=T?R:rv(h[b],j.y);const D=T?m[0]:_[0];if(P==null||P===-1)return;const O=(T?p:h)[D].data[P],N={};Object.keys(d).filter(F=>["bar","line"].includes(F)).forEach(F=>{d[F]?.seriesOrder.forEach(U=>{const z=d[F].series[U],H=z.xAxisId,W=z.yAxisId,K=T?H:W;(K===void 0||K===D)&&(N[U]=z.data[P])})}),C(A.detail.srcEvent,{dataIndex:P,axisValue:O,seriesValues:N})});return()=>{k.cleanup()}},[t.onAxisClick,d,n,p,m,h,_,y,b,s]),{}};zv.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0};zv.getDefaultizedParams=({params:t})=>ce({},t,{colors:t.colors??Xue,theme:t.theme??"light",defaultizedXAxis:ode(t.xAxis,t.dataset),defaultizedYAxis:ade(t.yAxis,t.dataset)});zv.getInitialState=t=>ce({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}},t.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:t.highlightedAxis});const dx=t=>t.keyboardNavigation,B1t=Vt([dx],t=>t?.item!=null),Tk=Vt([dx],t=>t?.item?.type),Ek=Vt([dx],t=>t?.item?.seriesId),Rk=Vt([dx],t=>t?.item?.dataIndex),z1t=Vt([dx],t=>!!t?.enableKeyboardNavigation),sfe=t=>(e,r,n,s,i)=>{if(e===void 0||r===void 0||n===void 0)return;const o=i[e]?.series[r];if(!o)return;let l=t==="x"?"xAxisId"in o&&o.xAxisId:"yAxisId"in o&&o.yAxisId;return(l===void 0||l===!1)&&(l=s.axisIds[0]),{axisId:l,dataIndex:n}},q1t=Vt([Tk,Ek,Rk,Ba,Mo],sfe("x")),V1t=Vt([Tk,Ek,Rk,za,Mo],sfe("y")),H1t=Vt([Tk,Ek,Rk],function(e,r,n){return r===void 0?null:{seriesId:r,dataIndex:e==="line"?void 0:n}}),fx=({store:t,svgRef:e,instance:r,params:n})=>{ei(()=>{t.update(o=>ce({},o,{brush:ce({},o.brush,{enabled:n.brushConfig.enabled,preventTooltip:n.brushConfig.preventTooltip,preventHighlight:n.brushConfig.preventHighlight})}))},[t,n.brushConfig.enabled,n.brushConfig.preventTooltip,n.brushConfig.preventHighlight]);const s=lr(function(l){t.update(c=>ce({},c,{brush:ce({},c.brush,{start:c.brush.start??l,current:l})}))}),i=lr(function(){t.update(l=>ce({},l,{brush:ce({},l.brush,{start:null,current:null})}))});return I.useEffect(()=>{const o=e.current;if(o===null||!t.getSnapshot().brush.enabled)return()=>{};const l=m=>{if(m.detail.target?.closest("[data-charts-zoom-slider]"))return;const h=p0(o,{clientX:m.detail.initialCentroid.x,clientY:m.detail.initialCentroid.y});s(h)},c=m=>{const h=p0(o,{clientX:m.detail.centroid.x,clientY:m.detail.centroid.y});s(h)},u=r.addInteractionListener("brushStart",l),d=r.addInteractionListener("brush",c),f=r.addInteractionListener("brushCancel",i),p=r.addInteractionListener("brushEnd",i);return()=>{u.cleanup(),d.cleanup(),p.cleanup(),f.cleanup()}},[e,r,t,i,s]),{instance:{setBrushCoordinates:s,clearBrush:i}}};fx.params={brushConfig:!0};fx.getDefaultizedParams=({params:t})=>ce({},t,{brushConfig:{enabled:t?.brushConfig?.enabled??!1,preventTooltip:t?.brushConfig?.preventTooltip??!0,preventHighlight:t?.brushConfig?.preventHighlight??!0}});fx.getInitialState=t=>({brush:{enabled:t.brushConfig.enabled,preventTooltip:t.brushConfig.preventTooltip,preventHighlight:t.brushConfig.preventHighlight,start:null,current:null}});const Gu=t=>t.brush;Vt([Gu],t=>t?.start);Vt([Gu],t=>t?.current);const G1t=Vt([Gu],t=>t?.start?.x??null),W1t=Vt([Gu],t=>t?.start?.y??null),Y1t=Vt([Gu],t=>t?.current?.x??null),K1t=Vt([Gu],t=>t?.current?.y??null);Vt([G1t,W1t,Y1t,K1t],(t,e,r,n)=>t===null||e===null||r===null||n===null?null:{start:{x:t,y:e},current:{x:r,y:n}});const Q1t=Vt([Mo],t=>{let e=!1,r=!1;return t&&Object.entries(t).forEach(([n,s])=>{Object.values(s.series).some(i=>i.layout==="horizontal")&&(e=!0),n==="scatter"&&s.seriesOrder.length>0&&(r=!0)}),r?"xy":e?"y":"x"}),Z1t=Vt([ax],t=>{let e=!1,r=!1;return Object.values(t).forEach(n=>{n.axisDirection==="y"&&(r=!0),n.axisDirection==="x"&&(e=!0)}),e&&r?"xy":r?"y":e?"x":null});Vt([Q1t,Z1t],(t,e)=>e??t);Vt([Gu],t=>t?.enabled);const ife=Vt([Gu],t=>t?.enabled&&t?.start!==null&&t?.current!==null),Ik=Vt([Gu,ife],(t,e)=>e&&t?.preventHighlight),X1t=Vt([Gu,ife],(t,e)=>e&&t?.preventTooltip),qv=t=>t.controlledCartesianAxisHighlight,ofe=(t,e,r,n)=>n?[]:r!==void 0?r.filter(s=>e.axis[s.axisId]!==void 0).map(s=>s):t===null?[]:[{axisId:e.axisIds[0],dataIndex:t}],afe=Vt([Z7,Ba,qv,Ik],ofe);Vt([X7,za,qv,Ik],ofe);const lfe=(t,e,r,n,s,i,o)=>{if(o)return[];if(n!==void 0)return n.map(d=>ce({},d,{value:r.axis[d.axisId]?.data?.[d.dataIndex]})).filter(({value:d})=>d!==void 0);const l=e!==null&&{axisId:r.axisIds[0],dataIndex:t,value:e},c=s&&r.axis[s.axisId]?.data?.[s.dataIndex],u=s&&c!=null&&ce({},s,{value:c});if(i==="pointer"){if(l)return[l];if(u)return[u]}if(i==="keyboard"){if(u)return[u];if(l)return[l]}return[]},J1t=Vt([Z7,D1t,Ba,qv,q1t,Jde,Ik],lfe),eyt=Vt([X7,$1t,za,qv,V1t,Jde,Ik],lfe),cfe=(t,e)=>t===void 0?[e.axis[e.axisIds[0]]]:t.map(n=>e.axis[n.axisId]??null).filter(n=>n!==null);Vt([qv,Ba],cfe);Vt([qv,za],cfe);function tee(t,e){return t.id!==void 0?t:ce({id:e},t)}function ree(t){return t.colorMap?ce({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?tv(ce({values:t.data},t.colorMap)):w_(t.colorMap.type==="continuous"?ce({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function ufe(t,e){if(!t||t.length===0)return{axis:{},axisIds:[]};const r={},n=[];return t.forEach((s,i)=>{const o=s.dataKey,l=s.id??`defaultized-z-axis-${i}`;if(o===void 0||s.data!==void 0){r[l]=ree(tee(s,l)),n.push(l);return}if(e===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");r[l]=ree(tee(ce({},s,{data:e.map(c=>c[o])}),l)),n.push(l)}),{axis:r,axisIds:n}}const px=({params:t,store:e})=>{const{zAxis:r,dataset:n}=t,s=I.useRef(!0);return I.useEffect(()=>{if(s.current){s.current=!1;return}e.update(i=>ce({},i,{zAxis:ufe(r,n)}))},[r,n,e]),{}};px.params={zAxis:!0,dataset:!0};px.getInitialState=t=>({zAxis:ufe(t.zAxis,t.dataset)});const tyt=t=>t,ryt=Vt([tyt],t=>t.zAxis),Vv=({store:t,params:e})=>{nde({controlled:e.highlightedItem}),ei(()=>{t.update(s=>s.highlight.item===e.highlightedItem?s:ce({},s,{highlight:ce({},s.highlight,{item:e.highlightedItem})}))},[t,e.highlightedItem]);const r=lr(()=>{e.onHighlightChange?.(null),t.getSnapshot().highlight.item!==null&&t.update(i=>ce({},i,{highlight:{item:null,lastUpdate:"pointer"}}))}),n=lr(s=>{const i=t.getSnapshot().highlight.item;Qde(i,s)||(e.onHighlightChange?.(s),t.update(o=>ce({},o,{highlight:{item:s,lastUpdate:"pointer"}})))});return{instance:{clearHighlight:r,setHighlight:n}}};Vv.getDefaultizedParams=({params:t})=>ce({},t,{highlightedItem:t.highlightedItem??null});Vv.getInitialState=t=>({highlight:{item:t.highlightedItem,lastUpdate:"pointer"}});Vv.params={highlightedItem:!0,onHighlightChange:!0};function dfe(t){let e=1/0,r=-1/0;for(const n of t??[])n<e&&(e=n),n>r&&(r=n);return[e,r]}const nee=(t,e)=>e==="x"?{x:t,y:null}:{x:null,y:t},ffe=t=>{const{axis:e,getFilters:r,isDefaultAxis:n}=t,s=r?.({currentAxisId:e.id,isDefaultAxis:n}),i=s?e.data?.filter((o,l)=>s({x:null,y:null},l)):e.data;return dfe(i??[])},pfe=t=>e=>{const{series:r,axis:n,getFilters:s,isDefaultAxis:i}=e;return Object.keys(r).filter(o=>{const l=t==="x"?r[o].xAxisId:r[o].yAxisId;return l===n.id||i&&l===void 0}).reduce((o,l)=>{const{stackedData:c}=r[l],u=s?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:r[l].xAxisId,seriesYAxisId:r[l].yAxisId}),[d,f]=c?.reduce((p,m,h)=>u&&(!u(nee(m[0],t),h)||!u(nee(m[1],t),h))?p:[Math.min(...m,p[0]),Math.max(...m,p[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(d,o[0]),Math.max(f,o[1])]},[1/0,-1/0])},nyt=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?pfe("x")(t):ffe(t),syt=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?ffe(t):pfe("y")(t);function bn(t){return function(){return t}}const see=Math.abs,Do=Math.atan2,jd=Math.cos,iyt=Math.max,mD=Math.min,Pa=Math.sin,So=Math.sqrt,Lo=1e-12,kp=Math.PI,E3=kp/2,yp=2*kp;function oyt(t){return t>1?0:t<-1?kp:Math.acos(t)}function iee(t){return t>=1?E3:t<=-1?-E3:Math.asin(t)}const I$=Math.PI,D$=2*I$,Nm=1e-6,ayt=D$-Nm;function mfe(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function lyt(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return mfe;const r=10**e;return function(n){this._+=n[0];for(let s=1,i=n.length;s<i;++s)this._+=Math.round(arguments[s]*r)/r+n[s]}}class cyt{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?mfe:lyt(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,s){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+s}`}bezierCurveTo(e,r,n,s,i,o){this._append`C${+e},${+r},${+n},${+s},${this._x1=+i},${this._y1=+o}`}arcTo(e,r,n,s,i){if(e=+e,r=+r,n=+n,s=+s,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-e,u=s-r,d=o-e,f=l-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(p>Nm)if(!(Math.abs(f*c-u*d)>Nm)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let m=n-o,h=s-l,_=c*c+u*u,g=m*m+h*h,y=Math.sqrt(_),b=Math.sqrt(p),x=i*Math.tan((I$-Math.acos((_+p-g)/(2*y*b)))/2),w=x/b,C=x/y;Math.abs(w-1)>Nm&&this._append`L${e+w*d},${r+w*f}`,this._append`A${i},${i},0,0,${+(f*m>d*h)},${this._x1=e+C*c},${this._y1=r+C*u}`}}arc(e,r,n,s,i,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(s),c=n*Math.sin(s),u=e+l,d=r+c,f=1^o,p=o?s-i:i-s;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Nm||Math.abs(this._y1-d)>Nm)&&this._append`L${u},${d}`,n&&(p<0&&(p=p%D$+D$),p>ayt?this._append`A${n},${n},0,1,${f},${e-l},${r-c}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:p>Nm&&this._append`A${n},${n},0,${+(p>=I$)},${f},${this._x1=e+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(e,r,n,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function Dk(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new cyt(e)}function uyt(t){return t.innerRadius}function dyt(t){return t.outerRadius}function fyt(t){return t.startAngle}function pyt(t){return t.endAngle}function myt(t){return t&&t.padAngle}function hyt(t,e,r,n,s,i,o,l){var c=r-t,u=n-e,d=o-s,f=l-i,p=f*c-d*u;if(!(p*p<Lo))return p=(d*(e-i)-f*(t-s))/p,[t+p*c,e+p*u]}function kw(t,e,r,n,s,i,o){var l=t-r,c=e-n,u=(o?i:-i)/So(l*l+c*c),d=u*c,f=-u*l,p=t+d,m=e+f,h=r+d,_=n+f,g=(p+h)/2,y=(m+_)/2,b=h-p,x=_-m,w=b*b+x*x,C=s-i,k=p*_-h*m,A=(x<0?-1:1)*So(iyt(0,C*C*w-k*k)),P=(k*x-b*A)/w,T=(-k*b-x*A)/w,j=(k*x+b*A)/w,R=(-k*b+x*A)/w,D=P-g,O=T-y,N=j-g,F=R-y;return D*D+O*O>N*N+F*F&&(P=j,T=R),{cx:P,cy:T,x01:-d,y01:-f,x11:P*(s/C-1),y11:T*(s/C-1)}}function hfe(){var t=uyt,e=dyt,r=bn(0),n=null,s=fyt,i=pyt,o=myt,l=null,c=Dk(u);function u(){var d,f,p=+t.apply(this,arguments),m=+e.apply(this,arguments),h=s.apply(this,arguments)-E3,_=i.apply(this,arguments)-E3,g=see(_-h),y=_>h;if(l||(l=d=c()),m<p&&(f=m,m=p,p=f),!(m>Lo))l.moveTo(0,0);else if(g>yp-Lo)l.moveTo(m*jd(h),m*Pa(h)),l.arc(0,0,m,h,_,!y),p>Lo&&(l.moveTo(p*jd(_),p*Pa(_)),l.arc(0,0,p,_,h,y));else{var b=h,x=_,w=h,C=_,k=g,A=g,P=o.apply(this,arguments)/2,T=P>Lo&&(n?+n.apply(this,arguments):So(p*p+m*m)),j=mD(see(m-p)/2,+r.apply(this,arguments)),R=j,D=j,O,N;if(T>Lo){var F=iee(T/p*Pa(P)),U=iee(T/m*Pa(P));(k-=F*2)>Lo?(F*=y?1:-1,w+=F,C-=F):(k=0,w=C=(h+_)/2),(A-=U*2)>Lo?(U*=y?1:-1,b+=U,x-=U):(A=0,b=x=(h+_)/2)}var z=m*jd(b),H=m*Pa(b),W=p*jd(C),K=p*Pa(C);if(j>Lo){var q=m*jd(x),X=m*Pa(x),Q=p*jd(w),Y=p*Pa(w),Z;if(g<kp)if(Z=hyt(z,H,Q,Y,q,X,W,K)){var re=z-Z[0],fe=H-Z[1],de=q-Z[0],se=X-Z[1],le=1/Pa(oyt((re*de+fe*se)/(So(re*re+fe*fe)*So(de*de+se*se)))/2),ee=So(Z[0]*Z[0]+Z[1]*Z[1]);R=mD(j,(p-ee)/(le-1)),D=mD(j,(m-ee)/(le+1))}else R=D=0}A>Lo?D>Lo?(O=kw(Q,Y,z,H,m,D,y),N=kw(q,X,W,K,m,D,y),l.moveTo(O.cx+O.x01,O.cy+O.y01),D<j?l.arc(O.cx,O.cy,D,Do(O.y01,O.x01),Do(N.y01,N.x01),!y):(l.arc(O.cx,O.cy,D,Do(O.y01,O.x01),Do(O.y11,O.x11),!y),l.arc(0,0,m,Do(O.cy+O.y11,O.cx+O.x11),Do(N.cy+N.y11,N.cx+N.x11),!y),l.arc(N.cx,N.cy,D,Do(N.y11,N.x11),Do(N.y01,N.x01),!y))):(l.moveTo(z,H),l.arc(0,0,m,b,x,!y)):l.moveTo(z,H),!(p>Lo)||!(k>Lo)?l.lineTo(W,K):R>Lo?(O=kw(W,K,q,X,p,-R,y),N=kw(z,H,Q,Y,p,-R,y),l.lineTo(O.cx+O.x01,O.cy+O.y01),R<j?l.arc(O.cx,O.cy,R,Do(O.y01,O.x01),Do(N.y01,N.x01),!y):(l.arc(O.cx,O.cy,R,Do(O.y01,O.x01),Do(O.y11,O.x11),!y),l.arc(0,0,p,Do(O.cy+O.y11,O.cx+O.x11),Do(N.cy+N.y11,N.cx+N.x11),y),l.arc(N.cx,N.cy,R,Do(N.y11,N.x11),Do(N.y01,N.x01),!y))):l.arc(0,0,p,C,w,y)}if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+s.apply(this,arguments)+ +i.apply(this,arguments))/2-kp/2;return[jd(f)*d,Pa(f)*d]},u.innerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:bn(+d),u):t},u.outerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:bn(+d),u):e},u.cornerRadius=function(d){return arguments.length?(r=typeof d=="function"?d:bn(+d),u):r},u.padRadius=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:bn(+d),u):n},u.startAngle=function(d){return arguments.length?(s=typeof d=="function"?d:bn(+d),u):s},u.endAngle=function(d){return arguments.length?(i=typeof d=="function"?d:bn(+d),u):i},u.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:bn(+d),u):o},u.context=function(d){return arguments.length?(l=d??null,u):l},u}function $k(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gfe(t){this._context=t}gfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function J7(t){return new gfe(t)}function _fe(t){return t[0]}function vfe(t){return t[1]}function yfe(t,e){var r=bn(!0),n=null,s=J7,i=null,o=Dk(l);t=typeof t=="function"?t:t===void 0?_fe:bn(t),e=typeof e=="function"?e:e===void 0?vfe:bn(e);function l(c){var u,d=(c=$k(c)).length,f,p=!1,m;for(n==null&&(i=s(m=o())),u=0;u<=d;++u)!(u<d&&r(f=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(f,u,c),+e(f,u,c));if(m)return i=null,m+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:bn(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:bn(+c),l):e},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:bn(!!c),l):r},l.curve=function(c){return arguments.length?(s=c,n!=null&&(i=s(n)),l):s},l.context=function(c){return arguments.length?(c==null?n=i=null:i=s(n=c),l):n},l}function gyt(t,e,r){var n=null,s=bn(!0),i=null,o=J7,l=null,c=Dk(u);t=typeof t=="function"?t:t===void 0?_fe:bn(+t),e=typeof e=="function"?e:bn(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?vfe:bn(+r);function u(f){var p,m,h,_=(f=$k(f)).length,g,y=!1,b,x=new Array(_),w=new Array(_);for(i==null&&(l=o(b=c())),p=0;p<=_;++p){if(!(p<_&&s(g=f[p],p,f))===y)if(y=!y)m=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=p-1;h>=m;--h)l.point(x[h],w[h]);l.lineEnd(),l.areaEnd()}y&&(x[p]=+t(g,p,f),w[p]=+e(g,p,f),l.point(n?+n(g,p,f):x[p],r?+r(g,p,f):w[p]))}if(b)return l=null,b+""||null}function d(){return yfe().defined(s).curve(o).context(i)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:bn(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:bn(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:bn(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:bn(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:bn(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:bn(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(t).y(e)},u.lineY1=function(){return d().x(t).y(r)},u.lineX1=function(){return d().x(n).y(e)},u.defined=function(f){return arguments.length?(s=typeof f=="function"?f:bn(!!f),u):s},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function _yt(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vyt(t){return t}function yyt(){var t=vyt,e=_yt,r=null,n=bn(0),s=bn(yp),i=bn(0);function o(l){var c,u=(l=$k(l)).length,d,f,p=0,m=new Array(u),h=new Array(u),_=+n.apply(this,arguments),g=Math.min(yp,Math.max(-yp,s.apply(this,arguments)-_)),y,b=Math.min(Math.abs(g)/u,i.apply(this,arguments)),x=b*(g<0?-1:1),w;for(c=0;c<u;++c)(w=h[m[c]=c]=+t(l[c],c,l))>0&&(p+=w);for(e!=null?m.sort(function(C,k){return e(h[C],h[k])}):r!=null&&m.sort(function(C,k){return r(l[C],l[k])}),c=0,f=p?(g-u*x)/p:0;c<u;++c,_=y)d=m[c],w=h[d],y=_+(w>0?w*f:0)+x,h[d]={data:l[d],index:c,value:w,startAngle:_,endAngle:y,padAngle:b};return h}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:bn(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,r=null,o):e},o.sort=function(l){return arguments.length?(r=l,e=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:bn(+l),o):n},o.endAngle=function(l){return arguments.length?(s=typeof l=="function"?l:bn(+l),o):s},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:bn(+l),o):i},o}class bfe{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function byt(t){return new bfe(t,!0)}function xyt(t){return new bfe(t,!1)}const xfe={draw(t,e){const r=So(e/kp);t.moveTo(r,0),t.arc(0,0,r,0,yp)}},Syt={draw(t,e){const r=So(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Sfe=So(1/3),wyt=Sfe*2,Cyt={draw(t,e){const r=So(e/wyt),n=r*Sfe;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Ayt={draw(t,e){const r=So(e),n=-r/2;t.rect(n,n,r,r)}},kyt=.8908130915292852,wfe=Pa(kp/10)/Pa(7*kp/10),Myt=Pa(yp/10)*wfe,Pyt=-jd(yp/10)*wfe,jyt={draw(t,e){const r=So(e*kyt),n=Myt*r,s=Pyt*r;t.moveTo(0,-r),t.lineTo(n,s);for(let i=1;i<5;++i){const o=yp*i/5,l=jd(o),c=Pa(o);t.lineTo(c*r,-l*r),t.lineTo(l*n-c*s,c*n+l*s)}t.closePath()}},hD=So(3),Tyt={draw(t,e){const r=-So(e/(hD*3));t.moveTo(0,r*2),t.lineTo(-hD*r,-r),t.lineTo(hD*r,-r),t.closePath()}},$l=-.5,Ol=So(3)/2,$$=1/So(12),Eyt=($$/2+1)*3,Ryt={draw(t,e){const r=So(e/Eyt),n=r/2,s=r*$$,i=n,o=r*$$+r,l=-i,c=o;t.moveTo(n,s),t.lineTo(i,o),t.lineTo(l,c),t.lineTo($l*n-Ol*s,Ol*n+$l*s),t.lineTo($l*i-Ol*o,Ol*i+$l*o),t.lineTo($l*l-Ol*c,Ol*l+$l*c),t.lineTo($l*n+Ol*s,$l*s-Ol*n),t.lineTo($l*i+Ol*o,$l*o-Ol*i),t.lineTo($l*l+Ol*c,$l*c-Ol*l),t.closePath()}},Cfe=[xfe,Syt,Cyt,Ayt,jyt,Tyt,Ryt];function Afe(t,e){let r=null,n=Dk(s);t=typeof t=="function"?t:bn(t||xfe),e=typeof e=="function"?e:bn(e===void 0?64:+e);function s(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return s.type=function(i){return arguments.length?(t=typeof i=="function"?i:bn(i),s):t},s.size=function(i){return arguments.length?(e=typeof i=="function"?i:bn(+i),s):e},s.context=function(i){return arguments.length?(r=i??null,s):r},s}function oee(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function e8(t,e){this._context=t,this._k=(1-e)/6}e8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:oee(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oee(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function r(n){return new e8(n,e)}return r.tension=function(n){return t(+n)},r})(0);function Iyt(t,e,r){var n=t._x1,s=t._y1,i=t._x2,o=t._y2;if(t._l01_a>Lo){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,s=(s*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Lo){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*u+t._x1*t._l23_2a-e*t._l12_2a)/d,o=(o*u+t._y1*t._l23_2a-r*t._l12_2a)/d}t._context.bezierCurveTo(n,s,i,o,t._x2,t._y2)}function kfe(t,e){this._context=t,this._alpha=e}kfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Iyt(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Dyt=(function t(e){function r(n){return e?new kfe(n,e):new e8(n,0)}return r.alpha=function(n){return t(+n)},r})(.5);function aee(t){return t<0?-1:1}function lee(t,e,r){var n=t._x1-t._x0,s=e-t._x1,i=(t._y1-t._y0)/(n||s<0&&-0),o=(r-t._y1)/(s||n<0&&-0),l=(i*s+o*n)/(n+s);return(aee(i)+aee(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function cee(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function gD(t,e,r){var n=t._x0,s=t._y0,i=t._x1,o=t._y1,l=(i-n)/3;t._context.bezierCurveTo(n+l,s+l*e,i-l,o-l*r,i,o)}function R3(t){this._context=t}R3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gD(this,this._t0,cee(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gD(this,cee(this,r=lee(this,t,e)),r);break;default:gD(this,this._t0,r=lee(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function Mfe(t){this._context=new Pfe(t)}(Mfe.prototype=Object.create(R3.prototype)).point=function(t,e){R3.prototype.point.call(this,e,t)};function Pfe(t){this._context=t}Pfe.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,s,i){this._context.bezierCurveTo(e,t,n,r,i,s)}};function uee(t){return new R3(t)}function $yt(t){return new Mfe(t)}function jfe(t){this._context=t}jfe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=dee(t),s=dee(e),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],s[0][i],n[1][i],s[1][i],t[o],e[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function dee(t){var e,r=t.length-1,n,s=new Array(r),i=new Array(r),o=new Array(r);for(s[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)s[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(s[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=s[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(s[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)s[e]=(o[e]-s[e+1])/i[e];for(i[r-1]=(t[r]+s[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-s[e+1];return[s,i]}function Oyt(t){return new jfe(t)}function Ok(t,e){this._context=t,this._t=e}Ok.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function Lyt(t){return new Ok(t,.5)}function Nyt(t){return new Ok(t,0)}function Fyt(t){return new Ok(t,1)}function nv(t,e){if((o=t.length)>1)for(var r=1,n,s,i=t[e[0]],o,l=i.length;r<o;++r)for(s=i,i=t[e[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(s[n][1])?s[n][0]:s[n][1]}function sv(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Uyt(t,e){return t[e]}function Byt(t){const e=[];return e.key=t,e}function Tfe(){var t=bn([]),e=sv,r=nv,n=Uyt;function s(i){var o=Array.from(t.apply(this,arguments),Byt),l,c=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+n(f,o[l].key,u,i)]).data=f;for(l=0,d=$k(e(o));l<c;++l)o[d[l]].index=l;return r(o,d),o}return s.keys=function(i){return arguments.length?(t=typeof i=="function"?i:bn(Array.from(i)),s):t},s.value=function(i){return arguments.length?(n=typeof i=="function"?i:bn(+i),s):n},s.order=function(i){return arguments.length?(e=i==null?sv:typeof i=="function"?i:bn(Array.from(i)),s):e},s.offset=function(i){return arguments.length?(r=i??nv,s):r},s}function zyt(t,e){if((n=t.length)>0){for(var r,n,s=0,i=t[0].length,o;s<i;++s){for(o=r=0;r<n;++r)o+=t[r][s][1]||0;if(o)for(r=0;r<n;++r)t[r][s][1]/=o}nv(t,e)}}function qyt(t,e){if((c=t.length)>0)for(var r,n=0,s,i,o,l,c,u=t[e[0]].length;n<u;++n)for(o=l=0,r=0;r<c;++r)(i=(s=t[e[r]][n])[1]-s[0])>0?(s[0]=o,s[1]=o+=i):i<0?(s[1]=l,s[0]=l+=i):(s[0]=0,s[1]=i)}function Vyt(t,e){if((s=t.length)>0){for(var r=0,n=t[e[0]],s,i=n.length;r<i;++r){for(var o=0,l=0;o<s;++o)l+=t[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}nv(t,e)}}function Hyt(t,e){if(!(!((o=t.length)>0)||!((i=(s=t[e[0]]).length)>0))){for(var r=0,n=1,s,i,o;n<i;++n){for(var l=0,c=0,u=0;l<o;++l){for(var d=t[e[l]],f=d[n][1]||0,p=d[n-1][1]||0,m=(f-p)/2,h=0;h<l;++h){var _=t[e[h]],g=_[n][1]||0,y=_[n-1][1]||0;m+=g-y}c+=f,u+=m*f}s[n-1][1]+=s[n-1][0]=r,c&&(r-=u/c)}s[n-1][1]+=s[n-1][0]=r,nv(t,e)}}function Efe(t){var e=t.map(Gyt);return sv(t).sort(function(r,n){return e[r]-e[n]})}function Gyt(t){for(var e=-1,r=0,n=t.length,s,i=-1/0;++e<n;)(s=+t[e][1])>i&&(i=s,r=e);return r}function Rfe(t){var e=t.map(Ife);return sv(t).sort(function(r,n){return e[r]-e[n]})}function Ife(t){for(var e=0,r=-1,n=t.length,s;++r<n;)(s=+t[r][1])&&(e+=s);return e}function Wyt(t){return Rfe(t).reverse()}function Yyt(t){var e=t.length,r,n,s=t.map(Ife),i=Efe(t),o=0,l=0,c=[],u=[];for(r=0;r<e;++r)n=i[r],o<l?(o+=s[n],c.push(n)):(l+=s[n],u.push(n));return u.reverse().concat(c)}function Kyt(t){return sv(t).reverse()}const _D={appearance:Efe,ascending:Rfe,descending:Wyt,insideOut:Yyt,none:sv,reverse:Kyt},vD={expand:zyt,diverging:qyt,none:nv,silhouette:Vyt,wiggle:Hyt},Dfe=t=>{const{series:e,seriesOrder:r,defaultStrategy:n}=t,s=[],i={};return r.forEach(o=>{const{stack:l,stackOrder:c,stackOffset:u}=e[o];l===void 0?s.push({ids:[o],stackingOrder:_D.none,stackingOffset:vD.none}):i[l]===void 0?(i[l]=s.length,s.push({ids:[o],stackingOrder:_D[c??n?.stackOrder??"none"],stackingOffset:vD[u??n?.stackOffset??"diverging"]})):(s[i[l]].ids.push(o),c!==void 0&&(s[i[l]].stackingOrder=_D[c]),u!==void 0&&(s[i[l]].stackingOffset=vD[u]))}),s},Qyt=t=>t==null?"":t.toLocaleString(),Zyt=(t,e)=>{const{seriesOrder:r,series:n}=t,s=Dfe(t),i=e??[];r.forEach(l=>{const c=n[l].data;if(c!==void 0)c.forEach((u,d)=>{i.length<=d?i.push({[l]:u}):i[d][l]=u});else if(e===void 0)throw new Error([`MUI X Charts: bar series with id='${l}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:341:        ${s}`},[`& .${kee.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"center",justifyItems:S2t(t.legendPosition),alignItems:w2t(t.legendPosition)}});function P2t(t){const{children:e,sx:r,extendVertically:n}=t,s=R0t(),i=Ms(),{width:o,height:l}=qr(i,Que);return a.jsx(M2t,{ref:s,ownerState:t,sx:r,extendVertically:n??l===void 0,width:o,children:e})}function $pe(t){return t.replace(" ","_")}const Ope=Sn("MuiAppearingMask",["animate"]),j2t=Ce("rect")({animationName:"animate-width",animationTimingFunction:a8,animationDuration:"0s",[`&.${Ope.animate}`]:{animationDuration:`${Bk}ms`},"@keyframes animate-width":{from:{width:0}}});function Lpe(t){const e=qa(),r=mx(),n=$pe(`${r}-${t.id}`);return a.jsxs(I.Fragment,{children:[a.jsx("clipPath",{id:n,children:a.jsx(j2t,{className:t.skipAnimation?"":Ope.animate,x:0,y:0,width:e.left+e.width+e.right,height:e.top+e.height+e.bottom})}),a.jsx("g",{clipPath:`url(#${n})`,children:t.children})]})}const T2t=["skipAnimation","ownerState"];function E2t(t){const{skipAnimation:e,ownerState:r}=t,n=Ht(t,T2t),s=k0t(t);return a.jsx(Lpe,{skipAnimation:e,id:`${r.id}-area-clip`,children:a.jsx("path",ce({fill:r.gradientId?`url(#${r.gradientId})`:r.color,filter:r.isHighlighted?"brightness(140%)":r.gradientId?void 0:"brightness(120%)",opacity:r.isFaded?.3:1,stroke:"none","data-series":r.id,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},n,s))})}const R2t=["id","classes","color","gradientId","slots","slotProps","onClick"];function I2t(t){return Pn("MuiAreaElement",t)}const D2t=Sn("MuiAreaElement",["root","highlighted","faded","series"]),$2t=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s}=t,i={root:["root",`series-${r}`,s&&"highlighted",n&&"faded"]};return un(i,I2t,e)};function O2t(t){const{id:e,classes:r,color:n,gradientId:s,slots:i,slotProps:o,onClick:l}=t,c=Ht(t,R2t),u=vx({type:"line",seriesId:e}),{isFaded:d,isHighlighted:f}=Uk({seriesId:e}),p={id:e,classes:r,color:n,gradientId:s,isFaded:d,isHighlighted:f},m=$2t(p),h=i?.area??E2t,_=xn({elementType:h,externalSlotProps:o?.area,additionalProps:ce({},u,{onClick:l,cursor:l?"pointer":"unset"}),className:m.root,ownerState:p});return a.jsx(h,ce({},c,_))}function Npe(t){switch(t){case"catmullRom":return Dyt.alpha(.5);case"linear":return J7;case"monotoneX":return uee;case"monotoneY":return $yt;case"natural":return Oyt;case"step":return Lyt;case"stepBefore":return Nyt;case"stepAfter":return Fyt;case"bumpY":return xyt;case"bumpX":return byt;default:return uee}}function L2t(t,e){const r=hx(),n=Uo().xAxisIds[0],s=Bo().yAxisIds[0],i=o8();return I.useMemo(()=>{if(r===void 0)return[];const{series:l,stackingGroups:c}=r,u=[];for(const d of c){const f=d.ids;for(let p=f.length-1;p>=0;p-=1){const m=f[p],{xAxisId:h=n,yAxisId:_=s,stackedData:g,data:y,connectNulls:b,baseline:x,curve:w,strictStepCurve:C,area:k}=l[m];if(!k||!(h in t)||!(_ in e))continue;const A=t[h].scale,P=Hv(A),T=e[_].scale,j=t[h].data,R=e[_].colorScale&&i(_)||t[h].colorScale&&i(h)||void 0,D=w?.includes("step")&&!C&&ao(A),O=j?.flatMap((z,H)=>{const W=y[H]==null;if(D){const K=[{x:z,y:g[H],nullData:W,isExtension:!1}];return!W&&(H===0||y[H-1]==null)&&K.unshift({x:(A(z)??0)-(A.step()-A.bandwidth())/2,y:g[H],nullData:W,isExtension:!0}),!W&&(H===y.length-1||y[H+1]==null)&&K.push({x:(A(z)??0)+(A.step()+A.bandwidth())/2,y:g[H],nullData:W,isExtension:!0}),K}return{x:z,y:g[H],nullData:W}})??[],N=b?O.filter(z=>!z.nullData):O,U=gyt().x(z=>z.isExtension?z.x:P(z.x)).defined(z=>b||!z.nullData||!!z.isExtension).y0(z=>{if(typeof x=="number")return T(x);if(x==="max")return T.range()[1];if(x==="min")return T.range()[0];const H=z.y&&T(z.y[0]);return Number.isNaN(H)?T.range()[0]:H}).y1(z=>z.y&&T(z.y[1])).curve(Npe(w))(N)||"";u.push({area:l[m].area,color:l[m].color,gradientId:R,d:U,seriesId:m})}}return u},[r,n,s,t,e,i])}const N2t=["slots","slotProps","onItemClick","skipAnimation"],F2t=Ce("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${D2t.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}}),U2t=()=>{const{xAxis:t}=Uo(),{yAxis:e}=Bo();return L2t(t,e)};function Fpe(t){const{slots:e,slotProps:r,onItemClick:n,skipAnimation:s}=t,i=Ht(t,N2t),o=Wk(),l=yx(o||s),c=U2t();return a.jsx(F2t,ce({},i,{children:c.map(({d:u,seriesId:d,color:f,area:p,gradientId:m})=>!!p&&a.jsx(O2t,{id:d,d:u,color:f,gradientId:m,slots:e,slotProps:r,onClick:n&&(h=>n(h,{type:"line",seriesId:d})),skipAnimation:l},d))}))}const B2t=["skipAnimation","ownerState"],z2t=I.forwardRef(function(e,r){const{skipAnimation:n,ownerState:s}=e,i=Ht(e,B2t),o=E0t(ce({},e,{ref:r}));return a.jsx(Lpe,{skipAnimation:n,id:`${s.id}-line-clip`,children:a.jsx("path",ce({stroke:s.gradientId?`url(#${s.gradientId})`:s.color,strokeWidth:2,strokeLinejoin:"round",fill:"none",filter:s.isHighlighted?"brightness(120%)":void 0,opacity:s.isFaded?.3:1,"data-series":s.id,"data-highlighted":s.isHighlighted||void 0,"data-faded":s.isFaded||void 0},i,o))})}),q2t=["id","classes","color","gradientId","slots","slotProps","onClick"];function V2t(t){return Pn("MuiLineElement",t)}const H2t=Sn("MuiLineElement",["root","highlighted","faded","series"]),G2t=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s}=t,i={root:["root",`series-${r}`,s&&"highlighted",n&&"faded"]};return un(i,V2t,e)};function W2t(t){const{id:e,classes:r,color:n,gradientId:s,slots:i,slotProps:o,onClick:l}=t,c=Ht(t,q2t),u=vx({type:"line",seriesId:e}),{isFaded:d,isHighlighted:f}=Uk({seriesId:e}),p={id:e,classes:r,color:n,gradientId:s,isFaded:d,isHighlighted:f},m=G2t(p),h=i?.line??z2t,_=xn({elementType:h,externalSlotProps:o?.line,additionalProps:ce({},u,{onClick:l,cursor:l?"pointer":"unset"}),className:m.root,ownerState:p});return a.jsx(h,ce({},c,_))}function Y2t(t,e){const r=hx(),n=Uo().xAxisIds[0],s=Bo().yAxisIds[0],i=o8();return I.useMemo(()=>{if(r===void 0)return[];const{series:l,stackingGroups:c}=r,u=[];for(const d of c){const f=d.ids;for(const p of f){const{xAxisId:m=n,yAxisId:h=s,stackedData:_,data:g,connectNulls:y,curve:b,strictStepCurve:x}=l[p];if(!(m in t)||!(h in e))continue;const w=t[m].scale,C=Hv(w),k=e[h].scale,A=t[m].data,P=e[h].colorScale&&i(h)||t[m].colorScale&&i(m)||void 0,T=b?.includes("step")&&!x&&ao(w),j=A?.flatMap((N,F)=>{const U=g[F]==null;if(T){const z=[{x:N,y:_[F],nullData:U,isExtension:!1}];return!U&&(F===0||g[F-1]==null)&&z.unshift({x:(w(N)??0)-(w.step()-w.bandwidth())/2,y:_[F],nullData:U,isExtension:!0}),!U&&(F===g.length-1||g[F+1]==null)&&z.push({x:(w(N)??0)+(w.step()+w.bandwidth())/2,y:_[F],nullData:U,isExtension:!0}),z}return{x:N,y:_[F],nullData:U}})??[],R=y?j.filter(N=>!N.nullData):j,O=yfe().x(N=>N.isExtension?N.x:C(N.x)).defined(N=>y||!N.nullData||!!N.isExtension).y(N=>k(N.y[1])).curve(Npe(b))(R)||"";u.push({color:l[p].color,gradientId:P,d:O,seriesId:p})}}return u},[r,n,s,t,e,i])}const K2t=["slots","slotProps","skipAnimation","onItemClick"],Q2t=Ce("g",{name:"MuiAreaPlot",slot:"Root"})({[`& .${H2t.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}}),Z2t=()=>{const{xAxis:t}=Uo(),{yAxis:e}=Bo();return Y2t(t,e)};function Upe(t){const{slots:e,slotProps:r,skipAnimation:n,onItemClick:s}=t,i=Ht(t,K2t),o=Wk(),l=yx(o||n),c=Z2t();return a.jsx(Q2t,ce({},i,{children:c.map(({d:u,seriesId:d,color:f,gradientId:p})=>a.jsx(W2t,{id:d,d:u,color:f,gradientId:p,skipAnimation:l,slots:e,slotProps:r,onClick:s&&(m=>s(m,{type:"line",seriesId:d}))},d))}))}function X2t(t){return Pn("MuiMarkElement",t)}const Bpe=Sn("MuiMarkElement",["root","highlighted","faded","animate","series"]),zpe=t=>{const{classes:e,id:r,isFaded:n,isHighlighted:s,skipAnimation:i}=t,o={root:["root",`series-${r}`,s&&"highlighted",n&&"faded",i?void 0:"animate"]};return un(o,X2t,e)},J2t=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],ewt=Ce("circle")({[`&.${Bpe.animate}`]:{transitionDuration:`${Bk}ms`,transitionProperty:"cx, cy",transitionTimingFunction:a8}});function twt(t){const{x:e,y:r,id:n,classes:s,color:i,dataIndex:o,onClick:l,skipAnimation:c,isFaded:u=!1,isHighlighted:d=!1}=t,f=Ht(t,J2t),p=As(),m=vx({type:"line",seriesId:n,dataIndex:o}),_=zpe({id:n,classes:s,isHighlighted:d,isFaded:u,skipAnimation:c});return a.jsx(ewt,ce({},f,{cx:e,cy:r,r:5,fill:(p.vars||p).palette.background.paper,stroke:i,strokeWidth:2,className:_.root,onClick:l,cursor:l?"pointer":"unset"},m,{"data-highlighted":d||void 0,"data-faded":u||void 0}))}function qpe(t){switch(t){case"circle":return 0;case"cross":return 1;case"diamond":return 2;case"square":return 3;case"star":return 4;case"triangle":return 5;case"wye":return 6;default:return 0}}const rwt=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation","isFaded","isHighlighted"],nwt=Ce("path",{name:"MuiMarkElement",slot:"Root"})(({ownerState:t,theme:e})=>({fill:(e.vars||e).palette.background.paper,stroke:t.color,strokeWidth:2,[`&.${Bpe.animate}`]:{transitionDuration:`${Bk}ms`,transitionProperty:"transform, transform-origin",transitionTimingFunction:a8}}));function swt(t){const{x:e,y:r,id:n,classes:s,color:i,shape:o,dataIndex:l,onClick:c,skipAnimation:u,isFaded:d=!1,isHighlighted:f=!1}=t,p=Ht(t,rwt),m=vx({type:"line",seriesId:n,dataIndex:l}),h={id:n,classes:s,isHighlighted:f,isFaded:d,color:i,skipAnimation:u},_=zpe(h);return a.jsx(nwt,ce({},p,{style:{transform:`translate(${e}px, ${r}px)`,transformOrigin:`${e}px ${r}px`},ownerState:h,className:_.root,d:Afe(Cfe[qpe(o)])(),onClick:c,cursor:c?"pointer":"unset"},m,{"data-highlighted":f||void 0,"data-faded":d||void 0}))}const iwt=["slots","slotProps","skipAnimation","onItemClick"];function owt(t){const{slots:e,slotProps:r,skipAnimation:n,onItemClick:s}=t,i=Ht(t,iwt),o=Wk(),l=yx(o||n),c=hx(),{xAxis:u,xAxisIds:d}=Uo(),{yAxis:f,yAxisIds:p}=Bo(),m=mx(),{instance:h,store:_}=Wc(),{isFaded:g,isHighlighted:y}=u0t(),b=qr(_,afe),x=I.useMemo(()=>{const P={};for(const{dataIndex:T,axisId:j}of b)P[j]===void 0?P[j]=new Set([T]):P[j].add(T);return P},[b]);if(c===void 0)return null;const{series:w,stackingGroups:C}=c,k=d[0],A=p[0];return a.jsx("g",ce({},i,{children:C.flatMap(({ids:P})=>P.map(T=>{const{xAxisId:j=k,yAxisId:R=A,stackedData:D,data:O,showMark:N=!0,shape:F="circle"}=w[T];if(N===!1)return null;const U=Hv(u[j].scale),z=f[R].scale,H=u[j].data;if(H===void 0)throw new Error(`MUI X Charts: ${j===Bv?"The first `xAxis`":`The x-axis with id "${j}"`} should have data property to be able to display a line plot.`);const W=$pe(`${m}-${T}-line-clip`),K=t8(w[T],u[j],f[R]),q=e?.mark??(F==="circle"?twt:swt),X=y({seriesId:T}),Q=!X&&g({seriesId:T});return a.jsx("g",{clipPath:`url(#${W})`,"data-series":T,children:H?.map((Y,Z)=>{const re=O[Z]==null?null:D[Z][1];return{x:U(Y),y:re===null?null:z(re),position:Y,value:re,index:Z}}).filter(({x:Y,y:Z,index:re,position:fe,value:de})=>de===null||Z===null||!h.isPointInside(Y,Z)?!1:N===!0?!0:N({x:Y,y:Z,index:re,position:fe,value:de})).map(({x:Y,y:Z,index:re})=>a.jsx(q,ce({id:T,dataIndex:re,shape:F,color:K(re),x:Y,y:Z,skipAnimation:l,onClick:s&&(fe=>s(fe,{type:"line",seriesId:T,dataIndex:re})),isHighlighted:x[j]?.has(re)||X,isFaded:Q},r?.mark),`${T}-${re}`))},T)}))}))}const awt=parseInt(I.version,10),lwt=["x","y","id","classes","color","shape"];function cwt(t){return Pn("MuiHighlightElement",t)}Sn("MuiHighlightElement",["root"]);const uwt=t=>{const{classes:e,id:r}=t,n={root:["root",`series-${r}`]};return un(n,cwt,e)};function dwt(t){const{x:e,y:r,color:n,shape:s}=t,i=Ht(t,lwt),o=uwt(t),l=s==="circle"?"circle":"path",c=s==="circle"?{cx:0,cy:0,r:i.r===void 0?5:i.r}:{d:Afe(Cfe[qpe(s)])()},u=awt>18?{transformOrigin:`${e} ${r}`}:{"transform-origin":`${e} ${r}`};return a.jsx(l,ce({pointerEvents:"none",className:o.root,transform:`translate(${e} ${r})`,fill:n},u,c,i))}const fwt=["slots","slotProps"];function Vpe(t){const{slots:e,slotProps:r}=t,n=Ht(t,fwt),s=hx(),{xAxis:i,xAxisIds:o}=Uo(),{yAxis:l,yAxisIds:c}=Bo(),{instance:u}=Wc(),d=Ms(),f=qr(d,afe);if(f.length===0||s===void 0)return null;const{series:p,stackingGroups:m}=s,h=o[0],_=c[0],g=e?.lineHighlight??dwt;return a.jsx("g",ce({},n,{children:f.flatMap(({dataIndex:y,axisId:b})=>m.flatMap(({ids:x})=>x.flatMap(w=>{const{xAxisId:C=h,yAxisId:k=_,stackedData:A,data:P,disableHighlight:T,shape:j="circle"}=p[w];if(T||P[y]==null||b!==C)return null;const R=Hv(i[C].scale),D=l[k].scale,O=i[C].data;if(O===void 0)throw new Error(`MUI X Charts: ${C===Bv?"The first `xAxis`":`The x-axis with id "${C}"`} should have data property to be able to display a line plot.`);const N=R(O[y]),F=D(A[y][1]);if(!u.isPointInside(N,F))return null;const U=t8(p[w],i[C],l[k]);return a.jsx(g,ce({id:w,color:U(y),x:N,y:F,shape:j},r?.lineHighlight),`${w}`)})))}))}const pwt=[px,fx,zv,lx,Vv,Fk],mwt=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","hideLegend","grid","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","showToolbar","brushConfig"],hwt=t=>{const{xAxis:e,yAxis:r,series:n,width:s,height:i,margin:o,colors:l,dataset:c,sx:u,onAreaClick:d,onLineClick:f,onMarkClick:p,axisHighlight:m,disableLineItemHighlight:h,grid:_,children:g,slots:y,slotProps:b,skipAnimation:x,loading:w,highlightedItem:C,onHighlightChange:k,className:A,brushConfig:P}=t,T=Ht(t,mwt),R=`${dv()}-clip-path`,D=I.useMemo(()=>n.map(re=>ce({disableHighlight:!!h,type:"line"},re)),[h,n]),O=ce({},T,{series:D,width:s,height:i,margin:o,colors:l,dataset:c,xAxis:e??[{id:Bv,scaleType:"point",data:Array.from({length:Math.max(...n.map(re=>(re.data??c??[]).length))},(re,fe)=>fe)}],yAxis:r,highlightedItem:C,onHighlightChange:k,disableAxisListener:b?.tooltip?.trigger!=="axis"&&m?.x==="none"&&m?.y==="none",className:A,skipAnimation:x,brushConfig:P,plugins:pwt}),N={vertical:_?.vertical,horizontal:_?.horizontal},F={clipPath:`url(#${R})`},U={id:R},z={slots:y,slotProps:b,onItemClick:d},H={slots:y,slotProps:b,onItemClick:f},W={slots:y,slotProps:b,onItemClick:p,skipAnimation:x},K={slots:y,slotProps:b,loading:w},q={slots:y,slotProps:b},X=ce({x:"line"},m),Q={slots:y,slotProps:b},Y={slots:y,slotProps:b};return{chartsWrapperProps:{sx:u,legendPosition:t.slotProps?.legend?.position,legendDirection:t.slotProps?.legend?.direction,hideLegend:t.hideLegend??!1},chartContainerProps:O,gridProps:N,clipPathProps:U,clipPathGroupProps:F,areaPlotProps:z,linePlotProps:H,markPlotProps:W,overlayProps:K,chartsAxisProps:q,axisHighlightProps:X,lineHighlightPlotProps:Q,legendProps:Y,children:g}},Pw=6;function Hpe(){const t=As(),e=Epe(),r=hx(),{xAxis:n,xAxisIds:s}=Uo(),{yAxis:i,yAxisIds:o}=Bo();if(e===null||e.seriesType!=="line"||!r)return null;const l=r?.series[e.seriesId],c=l.xAxisId??s[0],u=l.yAxisId??o[0];return a.jsx("rect",{fill:"none",stroke:(t.vars??t).palette.text.primary,strokeWidth:2,x:n[c].scale(n[c].data[e.dataIndex])-Pw,y:i[u].scale(l.stackedData[e.dataIndex][1])-Pw,width:2*Pw,height:2*Pw,rx:3,ry:3})}const Mee=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiLineChart"}),{chartsWrapperProps:s,chartContainerProps:i,gridProps:o,clipPathProps:l,clipPathGroupProps:c,areaPlotProps:u,linePlotProps:d,markPlotProps:f,overlayProps:p,chartsAxisProps:m,axisHighlightProps:h,lineHighlightPlotProps:_,legendProps:g,children:y}=hwt(n),{chartDataProviderProps:b,chartsSurfaceProps:x}=x2t(i,r),w=n.slots?.tooltip??jpe,C=n.slots?.toolbar;return a.jsx(Dpe,ce({},b,{children:a.jsxs(P2t,ce({},s,{children:[n.showToolbar&&C?a.jsx(C,ce({},n.slotProps?.toolbar)):null,!n.hideLegend&&a.jsx(gSt,ce({},g)),a.jsxs(p8,ce({},x,{children:[a.jsx(Dxt,ce({},o)),a.jsxs("g",ce({},c,{children:[a.jsx(Fpe,ce({},u)),a.jsx(Upe,ce({},d)),a.jsx(o2t,ce({},p)),a.jsx(Tpe,ce({},h))]})),a.jsx(Hpe,{}),a.jsx(Mxt,ce({},m)),a.jsx("g",{"data-drawing-container":!0,children:a.jsx(owt,ce({},f))}),a.jsx(Vpe,ce({},_)),a.jsx(epe,ce({},l)),y]})),!n.loading&&a.jsx(w,ce({},n.slotProps?.tooltip))]}))}))});function Uy(t,e){if(typeof t=="number")return t;if(t==="100%")return e;if(t.endsWith("%")){const r=Number.parseFloat(t.slice(0,t.length-1));if(!Number.isNaN(r))return r*e/100}if(t.endsWith("px")){const r=Number.parseFloat(t.slice(0,t.length-2));if(!Number.isNaN(r))return r}throw new Error(`MUI X Charts: Received an unknown value "${t}". It should be a number, or a string with a percentage value.`)}const gwt=["xAxis","yAxis","width","height","margin","color","baseline","sx","showTooltip","showHighlight","axisHighlight","children","slots","slotProps","data","plotType","valueFormatter","area","curve","className","disableClipping","clipAreaOffset","onHighlightChange","onHighlightedAxisChange","highlightedAxis","highlightedItem"],_wt=5,kD=I.forwardRef(function(e,r){const{xAxis:n,yAxis:s,width:i,height:o,margin:l=_wt,color:c,baseline:u,sx:d,showTooltip:f,showHighlight:p,axisHighlight:m,children:h,slots:_,slotProps:g,data:y,plotType:b="line",valueFormatter:x=Y=>Y===null?"":Y.toString(),area:w,curve:C="linear",className:k,disableClipping:A,clipAreaOffset:P,onHighlightChange:T,onHighlightedAxisChange:j,highlightedAxis:R,highlightedItem:D}=e,O=Ht(e,gwt),F=`${dv()}-clip-path`,U=I.useMemo(()=>({top:P?.top??1,right:P?.right??1,bottom:P?.bottom??1,left:P?.left??1}),[P?.bottom,P?.left,P?.right,P?.top]),z=I.useMemo(()=>p&&b==="bar"?{x:"band"}:{x:"none"},[b,p]),H=I.useMemo(()=>ce({},z,m),[z,m]),W=e.slots?.tooltip??jpe,K=I.useMemo(()=>{if(c!=null)return typeof c=="function"?Y=>[c(Y)]:[c]},[c]),q=I.useMemo(()=>[ce({type:b,data:y,valueFormatter:x},b==="bar"?{}:{area:w,curve:C,baseline:u,disableHighlight:!p})],[w,u,C,y,b,p,x]),X=I.useMemo(()=>[ce({id:Bv,scaleType:b==="bar"?"band":"point",hideTooltip:n===void 0},n,{data:n?.data??Array.from({length:y.length},(Y,Z)=>Z),position:"none"})],[y.length,b,n]),Q=I.useMemo(()=>[ce({id:y7},s,{position:"none"})],[s]);return a.jsxs(Dpe,{series:q,width:i,height:o,margin:l,xAxis:X,yAxis:Q,colors:K,disableAxisListener:j===void 0&&(!f||g?.tooltip?.trigger!=="axis")&&H?.x==="none"&&H?.y==="none",onHighlightChange:T,onHighlightedAxisChange:j,highlightedAxis:R,highlightedItem:D,children:[a.jsxs(p8,ce({className:k,ref:r,sx:d},O,{children:[a.jsxs("g",{clipPath:`url(#${F})`,children:[b==="bar"&&a.jsx(XSt,{skipAnimation:!0,slots:_,slotProps:g}),b==="line"&&a.jsxs(I.Fragment,{children:[a.jsx(Fpe,{skipAnimation:!0,slots:_,slotProps:g}),a.jsx(Upe,{skipAnimation:!0,slots:_,slotProps:g})]})]}),b==="line"&&a.jsxs(I.Fragment,{children:[a.jsx(Vpe,{slots:_,slotProps:g}),a.jsx(Hpe,{})]}),A?null:a.jsx(epe,{id:F,offset:U}),a.jsx(Tpe,ce({},H)),h]})),f&&a.jsx(W,ce({},e.slotProps?.tooltip))]})});function MD(t){const e=up(t);return[Math.sin(e),-Math.cos(e)]}function vwt(t,e){const r=[[0,0],MD(t),MD(e)],n=Math.min(t,e),s=Math.max(t,e),i=Math.floor(n/90)*90;for(let d=1;d<=4;d+=1){const f=i+d*90;f<s&&r.push(MD(f))}const o=Math.min(...r.map(([d])=>d)),l=Math.max(...r.map(([d])=>d)),c=Math.min(...r.map(([,d])=>d)),u=Math.max(...r.map(([,d])=>d));return{cx:-o/(l-o),cy:-c/(u-c),minX:o,maxX:l,minY:c,maxY:u}}function ywt(t,e,r,n,{minX:s,maxX:i,minY:o,maxY:l}){return Math.min(...[{ratio:Math.abs(s),space:t},{ratio:Math.abs(i),space:r-t},{ratio:Math.abs(o),space:e},{ratio:Math.abs(l),space:n-e}].map(({ratio:c,space:u})=>c<1e-5?1/0:u/c))}const Gpe=I.createContext({value:null,valueMin:0,valueMax:0,startAngle:0,endAngle:0,innerRadius:0,outerRadius:0,cornerRadius:0,cx:0,cy:0,maxRadius:0,valueAngle:null});function bwt(t){const{value:e=null,valueMin:r=0,valueMax:n=100,startAngle:s=0,endAngle:i=360,outerRadius:o,innerRadius:l,cornerRadius:c,cx:u,cy:d,children:f}=t,{left:p,top:m,width:h,height:_}=qa(),g=vwt(s,i),y=u?Uy(u,h):g.cx*h,b=d?Uy(d,_):g.cy*_;let x=p+y,w=m+b;const C=ywt(y,b,h,_,g);if(u===void 0){const j=C*(g.maxX-g.minX);x=p+(h-j)/2+g.cx*j}if(d===void 0){const j=C*(g.maxY-g.minY);w=m+(_-j)/2+g.cy*j}const k=Uy(o??C,C),A=Uy(l??"80%",C),P=Uy(c??0,k-A),T=I.useMemo(()=>{const j=up(s),R=up(i);return{value:e,valueMin:r,valueMax:n,startAngle:j,endAngle:R,outerRadius:k,innerRadius:A,cornerRadius:P,cx:x,cy:w,maxRadius:C,valueAngle:e===null?null:j+(R-j)*(e-r)/(n-r)}},[e,r,n,s,i,k,A,P,x,w,C]);return a.jsx(Gpe.Provider,{value:T,children:f})}function m8(){return I.useContext(Gpe)}const xwt=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],Swt=Ce("g")(({theme:t})=>({"& text":{fill:(t.vars||t).palette.text.primary}})),wwt=I.forwardRef(function(e,r){const{width:n,height:s,margin:i,title:o,desc:l,value:c,valueMin:u=0,valueMax:d=100,startAngle:f,endAngle:p,outerRadius:m,innerRadius:h,cornerRadius:_,cx:g,cy:y,children:b}=e,x=Ht(e,xwt);return a.jsx(Ofe,{pluginParams:{width:n,height:s,margin:Zue(i,{left:10,right:10,top:10,bottom:10})},plugins:[],children:a.jsx(bwt,{value:c,valueMin:u,valueMax:d,startAngle:f,endAngle:p,outerRadius:m,innerRadius:h,cornerRadius:_,cx:g,cy:y,children:a.jsx(p8,ce({title:o,desc:l,role:"meter","aria-valuenow":c===null?void 0:c,"aria-valuemin":u,"aria-valuemax":d},x,{ref:r,children:a.jsx(Swt,{"aria-hidden":"true",children:b})}))})})});function Cwt(t,e){const r=Js(t.startAngle,e.startAngle),n=Js(t.endAngle,e.endAngle),s=Js(t.innerRadius,e.innerRadius),i=Js(t.outerRadius,e.outerRadius),o=Js(t.cornerRadius,e.cornerRadius);return l=>({startAngle:r(l),endAngle:n(l),innerRadius:s(l),outerRadius:i(l),cornerRadius:o(l)})}function Awt(t){return Gv({startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius},{createInterpolator:Cwt,transformProps:e=>({d:hfe().cornerRadius(e.cornerRadius)({innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle})}),applyProps(e,r){e.setAttribute("d",r.d)},initialProps:{startAngle:t.startAngle,endAngle:t.startAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius},skip:t.skipAnimation,ref:t.ref})}function kwt(t){return Pn("MuiGauge",t)}const th=Sn("MuiGauge",["root","valueArc","referenceArc","valueText"]),Mwt=["className"],Pwt=["cx","cy","startAngle","endAngle","cornerRadius","innerRadius","outerRadius","skipAnimation"],jwt=Ce("path",{name:"MuiGauge",slot:"ValueArc"})(({theme:t})=>({fill:(t.vars||t).palette.primary.main}));function Twt(t){let{className:e}=t,r=Ht(t,Mwt);const{value:n,valueMin:s,valueMax:i,startAngle:o,endAngle:l,outerRadius:c,innerRadius:u,cornerRadius:d,cx:f,cy:p}=m8();if(n===null)return null;const m=o+(n-s)/(i-s)*(l-o);return a.jsx(Ewt,ce({},r,{className:lt(th.valueArc,e),cx:f,cy:p,startAngle:o,endAngle:m,cornerRadius:d,innerRadius:u,outerRadius:c}))}function Ewt(t){let{cx:e,cy:r,startAngle:n,endAngle:s,cornerRadius:i,innerRadius:o,outerRadius:l,skipAnimation:c}=t,u=Ht(t,Pwt);const d=yx(c),f=Awt({startAngle:n,endAngle:s,cornerRadius:i,innerRadius:o,outerRadius:l,skipAnimation:d});return a.jsx(jwt,ce({},f,{transform:`translate(${e}, ${r})`},u))}const Rwt=["className"],Iwt=Ce("path",{name:"MuiGauge",slot:"ReferenceArc"})(({theme:t})=>({fill:(t.vars||t).palette.divider}));function Dwt(t){let{className:e}=t,r=Ht(t,Rwt);const{startAngle:n,endAngle:s,outerRadius:i,innerRadius:o,cornerRadius:l,cx:c,cy:u}=m8();return a.jsx(Iwt,ce({className:lt(th.referenceArc,e),transform:`translate(${c}, ${u})`,d:hfe().cornerRadius(l)({startAngle:n,endAngle:s,innerRadius:o,outerRadius:i})},r))}const $wt=["text","className"];function Owt({value:t}){return t===null?null:t.toLocaleString()}function Lwt(t){const{text:e=Owt,className:r}=t,n=Ht(t,$wt),{value:s,valueMin:i,valueMax:o,cx:l,cy:c}=m8(),u=typeof e=="function"?e({value:s,valueMin:i,valueMax:o}):e;return u===null?null:a.jsx("g",{className:lt(th.valueText,r),children:a.jsx(_x,ce({x:l,y:c,text:u,style:{textAnchor:"middle",dominantBaseline:"central"}},n))})}const Nwt=["text","children","classes","className","skipAnimation"],Fwt=t=>{const{classes:e}=t;return un({root:["root"]},kwt,e)},Pee=I.forwardRef(function(e,r){const{text:n,children:s,className:i,skipAnimation:o}=e,l=Ht(e,Nwt),c=Fwt(e);return a.jsxs(wwt,ce({},l,{className:lt(c.root,i),ref:r,children:[a.jsx(Dwt,{}),a.jsx(Twt,{skipAnimation:o}),a.jsx(Lwt,{text:n}),s]}))}),mi=t=>{const e=he.c(4),{show:r,size:n,children:s}=t,i=r===void 0?!1:r,o=n===void 0?"default":n;let l;return e[0]!==s||e[1]!==i||e[2]!==o?(l=i?a.jsx(Is,{size:o==="small"?{xs:6,lg:2,xl:2}:{xs:12,sm:6,lg:4,xl:3},zeroMinWidth:!0,children:a.jsx(pr,{fullHeight:!0,children:a.jsx(Kt,{children:a.jsx(te,{spacing:2,children:s})})})}):null,e[0]=s,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},jw=t=>{const e=he.c(2),{isFirst:r}=t,s=(r===void 0?!1:r)?0:2;let i;return e[0]!==s?(i=a.jsx(Dt,{sx:{height:"32px",mb:2,mt:s},variant:"rectangular"}),e[0]=s,e[1]=i):i=e[1],i},Wpe=t=>{const e=he.c(5),{size:r}=t,n=r===void 0?"default":r,s=n==="small"?"74px":"250px";let i;e[0]!==s?(i=a.jsx(Dt,{variant:"rounded",sx:{height:s}}),e[0]=s,e[1]=i):i=e[1];let o;return e[2]!==n||e[3]!==i?(o=a.jsx(mi,{show:!0,size:n,children:i}),e[2]=n,e[3]=i,e[4]=o):o=e[4],o},Tw=t=>{const e=he.c(5),{size:r}=t,n=r===void 0?"default":r;let s;e[0]!==n?(s=Array.from({length:n==="small"?4:8}),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==n||e[3]!==s?(i=a.jsx(al,{children:s.map((o,l)=>a.jsx(Wpe,{size:n},l))}),e[2]=n,e[3]=s,e[4]=i):i=e[4],i};function Rs(t){const e=he.c(73);let r,n,s,i,o,l,c,u,d,f,p,m,h,_,g;e[0]!==t?({mainValue:n,mainValueUnit:i,totalValue:h,totalValueUnit:_,totalValueFontSizeRatio:u,valueDivider:g,title:p,subtitle:l,variant:d,titleColor:m,mainValueColor:s,subtitleColor:c,leftAlign:r,uppercaseTitle:f,...o}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=m,e[13]=h,e[14]=_,e[15]=g):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10],p=e[11],m=e[12],h=e[13],_=e[14],g=e[15]);const y=u===void 0?1:u,b=d===void 0?"medium":d,x=f===void 0?!0:f;let w;e:{switch(b){case"large":{let se;e[16]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:40,unit:24},titleFontSize:16,subtitleFontSize:14},e[16]=se):se=e[16],w=se;break e}case"medium":{let se;e[17]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:32,unit:20},titleFontSize:16,subtitleFontSize:14},e[17]=se):se=e[17],w=se;break e}case"small":{let se;e[18]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:24,unit:14},titleFontSize:16,subtitleFontSize:14},e[18]=se):se=e[18],w=se;break e}case"xsmall":{let se;e[19]===Symbol.for("react.memo_cache_sentinel")?(se={valueFontSize:{value:18,unit:14},titleFontSize:16,subtitleFontSize:14},e[19]=se):se=e[19],w=se;break e}}w=void 0}const C=w,k=Uwt,{valueFontSize:A,titleFontSize:P,subtitleFontSize:T}=C,j=r?"left":"right";let R;e[20]!==j?(R={lineHeight:1,textAlign:j},e[20]=j,e[21]=R):R=e[21];const D=R;let O;e[22]!==D?(O={...D,wordBreak:"break-word"},e[22]=D,e[23]=O):O=e[23];let N;e[24]!==O||e[25]!==A.value?(N={component:"span",color:"text.primary",fontSize:A.value,fontWeight:"600",sx:O},e[24]=O,e[25]=A.value,e[26]=N):N=e[26];const F=N;let U;e[27]!==D?(U={...D,display:"inline-block"},e[27]=D,e[28]=U):U=e[28];let z;e[29]!==U||e[30]!==A.unit?(z={component:"span",color:"text.primary",fontSize:A.unit,sx:U},e[29]=U,e[30]=A.unit,e[31]=z):z=e[31];const H=z,W=r?"left":"right";let K;e[32]!==W?(K={textAlign:W,whiteSpace:""},e[32]=W,e[33]=K):K=e[33];const q=s?`${s}.main`:F.color;let X;e[34]!==n||e[35]!==q||e[36]!==F?(X=a.jsx(cn,{...F,color:q,children:n}),e[34]=n,e[35]=q,e[36]=F,e[37]=X):X=e[37];let Q;e[38]!==n||e[39]!==i||e[40]!==H?(Q=i&&!k(n)&&a.jsx(cn,{...H,children:i}),e[38]=n,e[39]=i,e[40]=H,e[41]=Q):Q=e[41];let Y;e[42]!==h||e[43]!==y||e[44]!==_||e[45]!==H||e[46]!==F||e[47]!==g||e[48]!==A.unit||e[49]!==A.value?(Y=!k(h)&&a.jsxs(a.Fragment,{children:[a.jsx(cn,{...F,fontSize:A?.value?A.value*y:void 0,paddingX:g?0:1,children:g}),a.jsx(cn,{...F,fontSize:A?.value?A.value*y:void 0,children:h}),_&&a.jsx(cn,{...H,fontSize:A?.unit?A.unit*y:void 0,children:_})]}),e[42]=h,e[43]=y,e[44]=_,e[45]=H,e[46]=F,e[47]=g,e[48]=A.unit,e[49]=A.value,e[50]=Y):Y=e[50];let Z;e[51]!==K||e[52]!==X||e[53]!==Q||e[54]!==Y?(Z=a.jsxs(cn,{component:"p",sx:K,children:[X,Q,Y]}),e[51]=K,e[52]=X,e[53]=Q,e[54]=Y,e[55]=Z):Z=e[55];let re;e[56]!==p||e[57]!==m||e[58]!==P||e[59]!==D||e[60]!==x?(re=p&&a.jsx(cn,{component:"p",fontSize:P,sx:D,className:"SquaredChildTile-title",color:m?`${m}.main`:"text.primary",children:x?p.toUpperCase():p}),e[56]=p,e[57]=m,e[58]=P,e[59]=D,e[60]=x,e[61]=re):re=e[61];let fe;e[62]!==l||e[63]!==c||e[64]!==T||e[65]!==D||e[66]!==x?(fe=l&&a.jsx(a.Fragment,{children:typeof l=="string"?a.jsx(cn,{component:"p",fontSize:T,color:c?`${c}.main`:"text.secondary",sx:D,children:x?l.toUpperCase():l}):a.jsx(te,{direction:"row",justify:"flex-end",spacing:2,sx:{flexWrap:"nowrap",mb:1,marginTop:"10px"},children:l.map((se,le)=>a.jsxs(te,{children:[a.jsx(cn,{component:"span",fontSize:T,sx:D,children:se.label?.toUpperCase()}),a.jsx(cn,{component:"span",fontWeight:"600",fontSize:T,sx:D,children:se.value?.toString().toUpperCase()})]},le))})}),e[62]=l,e[63]=c,e[64]=T,e[65]=D,e[66]=x,e[67]=fe):fe=e[67];let de;return e[68]!==o||e[69]!==Z||e[70]!==re||e[71]!==fe?(de=a.jsxs(gt,{...o,children:[Z,re,fe]}),e[68]=o,e[69]=Z,e[70]=re,e[71]=fe,e[72]=de):de=e[72],de}function Uwt(t){return t==null||t===""}function wi(t){const e=he.c(36);let r,n,s,i,o,l,c,u,d;e[0]!==t?({onClick:c,epigraph:n,epigraphColor:s,icon:o,iconLabel:l,children:r,horizontal:i,divided:d,...u}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9]);const f=d===void 0?!0:d;let p;e[10]!==c?(p=c&&{"&:hover":{cursor:"pointer","& .SquaredTile-title":{textDecoration:"underline"}}},e[10]=c,e[11]=p):p=e[11];let m;e[12]!==p?(m={...p},e[12]=p,e[13]=m):m=e[13];let h;e[14]!==n||e[15]!==s?(h=n&&a.jsx(cn,{color:s?`${s}.main`:"text.primary",fontSize:"14px",fontWeight:"600",sx:{lineHeight:1},children:n}),e[14]=n,e[15]=s,e[16]=h):h=e[16];const _=o||l?"space-between":"flex-end";let g;e[17]===Symbol.for("react.memo_cache_sentinel")?(g={gap:"10px"},e[17]=g):g=e[17];let y;e[18]!==n||e[19]!==o||e[20]!==l?(y=(o||l)&&a.jsxs(te,{direction:"column",align:"center",children:[o&&a.jsx(gt,{sx:{fontSize:"42px",marginTop:n?"10px":"0",color:"text.secondary"},children:o}),l&&a.jsx(cn,{color:"text.secondary",fontWeight:"400",component:"div",sx:{textAlign:"center",lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:l})]}),e[18]=n,e[19]=o,e[20]=l,e[21]=y):y=e[21];let b;e[22]!==r||e[23]!==f||e[24]!==i?(b=r&&a.jsx(te,{fullWidth:!0,divided:f,spacing:2,dividerSize:"50px",align:"flex-end",dividerAlign:"flex-end",...i&&{direction:"row",nowrap:!0,sx:{div:{flexGrow:1}}},children:r}),e[22]=r,e[23]=f,e[24]=i,e[25]=b):b=e[25];let x;e[26]!==_||e[27]!==y||e[28]!==b?(x=a.jsxs(te,{direction:"row",justify:_,align:"flex-start",spacing:0,sx:g,nowrap:!0,children:[y,b]}),e[26]=_,e[27]=y,e[28]=b,e[29]=x):x=e[29];let w;return e[30]!==c||e[31]!==u||e[32]!==m||e[33]!==h||e[34]!==x?(w=a.jsxs(gt,{sx:m,onClick:c,...u,children:[h,x]}),e[30]=c,e[31]=u,e[32]=m,e[33]=h,e[34]=x,e[35]=w):w=e[35],w}const Ew=I.forwardRef((t,e)=>{const r=he.c(10),{sx:n,text:s,align:i}=t,o=i===void 0?"left":i;let l;r[0]===Symbol.for("react.memo_cache_sentinel")?(l={mt:1},r[0]=l):l=r[0];let c;r[1]!==n?(c={mt:6,mb:2,"&:first-of-type":l,...n},r[1]=n,r[2]=c):c=r[2];let u;r[3]!==o||r[4]!==e||r[5]!==s?(u=a.jsx(_e,{type:"body1",align:o,ref:e,title:s,fontWeight:"500",children:s}),r[3]=o,r[4]=e,r[5]=s,r[6]=u):u=r[6];let d;return r[7]!==c||r[8]!==u?(d=a.jsx(gt,{sx:c,children:u}),r[7]=c,r[8]=u,r[9]=d):d=r[9],d});var Ype=(t=>(t.Bytes="Bytes",t.kB="kB",t.MB="MB",t.GB="GB",t.TB="TB",t.PB="PB",t.EB="EB",t.ZB="ZB",t.YB="YB",t))(Ype||{});const Bwt=Object.keys(Ype);var Kpe=(t=>(t.bps="bps",t.kbps="kbps",t.Mbps="Mbps",t.Gbps="Gbps",t.Tbps="Tbps",t.Pbps="Pbps",t.Ebps="Ebps",t.Zbps="Zbps",t.Ybps="Ybps",t))(Kpe||{});const zwt=Object.keys(Kpe);function Rw(t){return t==null?0:(typeof t=="string"&&(t=+t),t)}function Qpe({value:t,decimals:e=2,defaultSize:r,sizes:n,k:s=1e3}){if(t===0)return{value:"0",unit:r};e=e<0?0:e;const i=Math.floor(Math.log(t)/Math.log(s));return{value:parseFloat((t/Math.pow(s,i)).toFixed(e))?.toString(),unit:n[i]}}function qwt(t,e=2){return Qpe({value:t,decimals:e,defaultSize:"Bytes",sizes:Bwt})}function Vwt(t,e=2){return Qpe({value:t,decimals:e,defaultSize:"bps",sizes:zwt})}function jee(t){const e=ai.duration(t,"seconds");return Math.floor(e.asHours())+ai.utc(e.asMilliseconds()).format(":mm:ss")}const Jg={rate:function(t){return Vwt(Rw(t))},filesize:function(t){return qwt(Rw(t))},time:function(t){return jee(Rw(t))},hours:function(t){return jee(Rw(t))?.split(":")[0]}},Em=t=>{const e=he.c(3),{data:r,children:n}=t;let s;e:{if(Array.isArray(r)){s=r.length>0;break e}if(typeof r=="number"){s=!0;break e}if(r===$.errorKey){s=!1;break e}s=!!r}const i=s;let o;return e[0]!==n||e[1]!==i?(o=i?a.jsx(a.Fragment,{children:n}):null,e[0]=n,e[1]=i,e[2]=o):o=e[2],o},By=.75,Hwt="err",e_="-",Gwt=()=>{const t=Ye(),e=ys(),r=Gr(),n=I.useCallback(c=>c.some(u=>u===$.errorKey)?"error":void 0,[]),s=I.useCallback((c,u="string")=>c==null?"-":c===$.errorKey?Hwt:u==="rate"?Jg.rate(c)?.value??e_:u==="filesize"?Jg.filesize(c)?.value??e_:u==="time"?Jg.time(c)??e_:u==="hours"?Jg.hours(c)??e_:u==="count"?(typeof c=="string"&&(c=+c),c.toFixed(0)):u==="percentage"||u==="float"?(typeof c=="string"&&(c=+c),c.toFixed(2)):c.toString(),[]),i=I.useCallback((c,u)=>{if(c===$.errorKey)return"";switch(u){case"filesize":return Jg.filesize(c)?.unit??e_;case"rate":return Jg.rate(c)?.unit??e_}return"-"},[]),o=()=>{e($.urls.monitoringAlerts)},l=({nf:c})=>{e(`/${c}/cluster`)};return a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{isFirst:!0}),a.jsx(Tw,{size:"small"}),a.jsx(jw,{}),a.jsx(Tw,{size:"default"})]}),children:a.jsx(Qt,{resolve:r.services,errorElement:a.jsx(Tr,{}),children:c=>a.jsxs(gt,{children:[a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{isFirst:!0}),a.jsx(Tw,{size:"small"})]}),children:a.jsx(Qt,{resolve:r.activeClusters,errorElement:a.jsx(Tr,{}),children:u=>a.jsx(a.Fragment,{children:u.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.cluster.title"})}),a.jsx(al,{children:u.map(d=>{const f=ge[d.toUpperCase()];return a.jsx(I.Suspense,{fallback:a.jsx(Wpe,{size:"small"}),children:a.jsx(Qt,{resolve:r[d],errorElement:a.jsx(mi,{show:!0,size:"small",children:a.jsx(Mn,{title:t.formatMessage({id:"monitoring.cluster.error"}),children:a.jsx(wi,{icon:a.jsx(f,{}),iconLabel:t.formatMessage({id:`route.${d}`}),onClick:()=>l({nf:d}),children:a.jsx(gt,{sx:{color:"error.main"},children:a.jsx(ge.StatusError,{size:50})})})})}),children:p=>p?a.jsx(mi,{show:!0,size:"small",children:a.jsx(wi,{icon:a.jsx(f,{}),iconLabel:t.formatMessage({id:`route.${d}`}),onClick:()=>l({nf:d==="pls"?"platform":d}),children:a.jsx(Mn,{title:t.formatMessage({id:`monitoring.cluster.fully_established.${p.fully_established}`}),children:a.jsx(gt,{sx:{fontSize:"32px"},children:p.fully_established?a.jsx(gt,{sx:{color:"success.main"},children:a.jsx(ge.StatusSuccess,{size:50})}):a.jsx(gt,{sx:{color:"warning.main"},children:a.jsx(ge.StatusWarning,{size:50})})})})})}):null})},d)})})]})})})}),a.jsx(I.Suspense,{fallback:a.jsxs(a.Fragment,{children:[a.jsx(jw,{}),a.jsx(Tw,{size:"default"})]}),children:a.jsx(Qt,{resolve:r.monitoring,errorElement:a.jsx(Tr,{}),children:u=>a.jsxs(a.Fragment,{children:[u?.platform&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.platform.title"})}),a.jsxs(al,{children:[a.jsx(mi,{show:!!u.platform?.alerts,children:a.jsx(wi,{icon:a.jsx(ge.Alerts,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.alerts"}),onClick:o,children:a.jsx(Rs,{mainValue:s(u.platform?.alerts?.alerts_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.platform.alerts"}),titleColor:n([u.platform?.alerts?.alerts_count])})})}),a.jsxs(mi,{show:!!u.platform?.cpu,children:[a.jsxs(wi,{icon:a.jsx(ge.Cpu,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.cpu"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.cpu?.cpu_count,"count"),variant:"small",title:t.formatMessage({id:"monitoring.platform.cpu.cpu_count"}),titleColor:n([u.platform?.cpu?.cpu_count])}),a.jsx(Rs,{mainValue:s(u.platform?.cpu?.cpu_busy_perc,"percentage"),mainValueUnit:u.platform?.cpu?.cpu_busy_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.cpu.cpu_busy_perc"}),titleColor:n([u.platform?.cpu?.cpu_busy_perc])})]}),a.jsx(Em,{data:u.platform?.cpu?.ts_cpu_busy_perc,children:a.jsx(kD,{data:u.platform?.cpu?.ts_cpu_busy_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsxs(mi,{show:!!u.platform?.disk,children:[a.jsxs(wi,{icon:a.jsx(ge.Drive,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.disk"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.disk?.disk_available_bytes,"filesize"),mainValueUnit:i(u.platform?.disk?.disk_available_bytes,"filesize"),totalValue:s(u.platform?.disk?.disk_total_bytes,"filesize"),totalValueUnit:i(u.platform?.disk?.disk_total_bytes,"filesize"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"small",title:t.formatMessage({id:"monitoring.platform.disk.availability"}),titleColor:n([u.platform?.disk?.disk_available_bytes,u.platform?.disk?.disk_total_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.disk?.disk_used_perc,"percentage"),mainValueUnit:u.platform?.disk?.disk_used_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.disk.occupation"}),titleColor:n([u.platform?.disk?.disk_used_perc])})]}),a.jsx(Em,{data:u.platform?.disk?.ts_disk_used_perc,children:a.jsx(kD,{data:u.platform?.disk?.ts_disk_used_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsxs(mi,{show:!!u.platform?.memory,children:[a.jsxs(wi,{icon:a.jsx(ge.Ram,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.ram"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.memory?.memory_available_bytes,"filesize"),mainValueUnit:i(u.platform?.memory?.memory_available_bytes,"filesize"),totalValue:s(u.platform?.memory?.memory_total_bytes,"filesize"),totalValueUnit:i(u.platform?.memory?.memory_total_bytes,"filesize"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"small",title:t.formatMessage({id:"monitoring.platform.memory.availability"}),titleColor:n([u.platform?.memory?.memory_available_bytes,u.platform?.memory?.memory_total_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.memory?.memory_used_perc,"percentage"),mainValueUnit:u.platform?.memory?.memory_used_perc===$.errorKey?"":"%",variant:"small",title:t.formatMessage({id:"monitoring.platform.memory.occupation"}),titleColor:n([u.platform?.memory?.memory_used_perc])})]}),a.jsx(Em,{data:u.platform?.memory?.ts_memory_used_perc,children:a.jsx(kD,{data:u.platform?.memory?.ts_memory_used_perc?.map(({value:d})=>parseFloat(d))??[],height:80,color:by})})]}),a.jsx(mi,{show:!!u.platform?.uptime,children:a.jsx(wi,{icon:a.jsx(ge.Clock,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.uptime"}),children:a.jsx(Rs,{mainValue:s(u.platform?.uptime?.uptime_seconds,"hours"),variant:"large",title:t.formatMessage({id:"monitoring.platform.uptime.title"}),subtitle:t.formatMessage({id:"monitoring.platform.uptime.subtitle"}),titleColor:n([u.platform?.uptime?.uptime_seconds])})})}),a.jsx(mi,{show:!!u.platform?.network_interfaces,children:a.jsxs(wi,{icon:a.jsx(ge.Cloud,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.network"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.network_interfaces?.interfaces_active_count,"count"),totalValue:s(u.platform?.network_interfaces?.interfaces_total_count,"count"),variant:"large",valueDivider:"/",totalValueFontSizeRatio:By,title:t.formatMessage({id:"monitoring.platform.network_interfaces.title"}),subtitle:t.formatMessage({id:"monitoring.platform.network_interfaces.subtitle"}),titleColor:n([u.platform?.network_interfaces?.interfaces_active_count,u.platform?.network_interfaces?.interfaces_total_count])}),a.jsx(I.Suspense,{fallback:a.jsx(bi,{status:nn.DEFAULT,label:t.formatMessage({id:"monitoring.platform.network_ntp.loading"})}),children:a.jsx(Qt,{resolve:r.ncmStatusNtp,children:({ntp_synced:d})=>a.jsx(bi,{status:d?nn.SUCCESS:nn.ERROR,label:d?t.formatMessage({id:"monitoring.platform.network_ntp.synced"}):t.formatMessage({id:"monitoring.platform.network_ntp.not_synced"})})})})]})}),a.jsxs(mi,{show:!!u.platform?.network,children:[a.jsxs(wi,{icon:a.jsx(ge.Cloud,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.network"}),children:[a.jsx(Rs,{mainValue:s(u.platform?.network?.total_transmit_bytes,"filesize"),mainValueUnit:i(u.platform?.network?.total_transmit_bytes,"filesize"),totalValue:s(u.platform?.network?.total_receive_bytes,"filesize"),totalValueUnit:i(u.platform?.network?.total_receive_bytes,"filesize"),variant:"small",title:t.formatMessage({id:"monitoring.platform.network.load.title"}),titleColor:n([u.platform?.network?.total_transmit_bytes,u.platform?.network?.total_receive_bytes])}),a.jsx(Rs,{mainValue:s(u.platform?.network?.transmit_rate_bps,"rate"),mainValueUnit:i(u.platform?.network?.transmit_rate_bps,"rate"),totalValue:s(u.platform?.network?.receive_rate_bps,"rate"),totalValueUnit:i(u.platform?.network?.receive_rate_bps,"rate"),variant:"small",title:t.formatMessage({id:"monitoring.platform.network.rate.title"}),titleColor:n([u.platform?.network?.transmit_rate_bps,u.platform?.network?.receive_rate_bps])})]}),a.jsx(Em,{data:u.platform?.network?.ts_transmit_rate_bps,children:a.jsx(Mee,{axisHighlight:{x:"none",y:"none"},series:[{data:u.platform?.network?.ts_transmit_rate_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1},{data:u.platform?.network?.ts_receive_rate_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1}],xAxis:[{scaleType:"point",data:u.platform?.network?.ts_transmit_rate_bps?.map((d,f)=>f)??[],position:"none"}],yAxis:[{position:"none"}],height:80,disableAxisListener:!0,disableLineItemHighlight:!0,margin:{bottom:5,left:5,right:5,top:5},colors:O6})})]})]})]}),u?.control_plane&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.control_plane.title"})}),a.jsxs(al,{children:[Ds({services:c,name:ue.UDR})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u.control_plane?.udr_sims?.provisioned_sims_count,children:a.jsx(wi,{icon:a.jsx(ge.UDR,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.udr"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.udr_sims?.provisioned_sims_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.provisioned_sims.title"}),titleColor:n([u.control_plane?.udr_sims?.provisioned_sims_count])})})})}),Ds({services:c,name:ue.AMF})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.control_plane?.amf_ue,children:[a.jsx(wi,{icon:a.jsx(ge.AMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.amf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.amf_ue?.active_ue_count,"count"),totalValue:s(u.control_plane?.amf_ue?.registered_ue_count,"count"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"medium",title:t.formatMessage({id:"monitoring.control_plane.amf_ue.title"}),subtitle:t.formatMessage({id:"monitoring.control_plane.amf_ue.subtitle"}),titleColor:n([u.control_plane?.amf_ue?.active_ue_count,u.control_plane?.amf_ue?.registered_ue_count])})}),a.jsx(Em,{data:u.control_plane?.amf_ue?.active_ue_count,children:a.jsx(Pee,{height:100,value:+(u.control_plane?.amf_ue?.active_ue_count??0),valueMin:0,valueMax:+(u.control_plane?.amf_ue?.registered_ue_count??0),startAngle:-90,endAngle:90,sx:{[`& .${th.valueText}`]:{fontSize:30,transform:"translate(0px, -10px)"},[`& .${th.valueArc}`]:{fill:d=>by(d.palette.mode)}}})})]}),a.jsx(mi,{show:!!u.control_plane?.amf_active_radios,children:a.jsx(wi,{icon:a.jsx(ge.AMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.amf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.amf_active_radios?.active_radios_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.amf_active_radios.title"}),titleColor:n([u.control_plane?.amf_active_radios?.active_radios_count])})})})]}),Ds({services:c,name:ue.MME})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.control_plane?.mme_ue,children:[a.jsx(wi,{icon:a.jsx(ge.MME,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.mme"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.mme_ue?.active_ue_count,"count"),totalValue:s(u.control_plane?.mme_ue?.registered_ue_count,"count"),valueDivider:"/",totalValueFontSizeRatio:By,variant:"medium",title:t.formatMessage({id:"monitoring.control_plane.mme_ue.title"}),subtitle:t.formatMessage({id:"monitoring.control_plane.mme_ue.subtitle"}),titleColor:n([u.control_plane?.mme_ue?.active_ue_count,u.control_plane?.mme_ue?.registered_ue_count])})}),a.jsx(Em,{data:u.control_plane?.mme_ue?.active_ue_count,children:a.jsx(Pee,{height:100,value:+(u.control_plane?.mme_ue?.active_ue_count??0),valueMin:0,valueMax:+(u.control_plane?.mme_ue?.registered_ue_count??0),startAngle:-90,endAngle:90,sx:{[`& .${th.valueText}`]:{fontSize:30,transform:"translate(0px, -10px)"},[`& .${th.valueArc}`]:{fill:d=>by(d.palette.mode)}}})})]}),a.jsx(mi,{show:!!u.control_plane?.mme_active_radios,children:a.jsx(wi,{icon:a.jsx(ge.MME,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.mme"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.mme_active_radios?.active_radios_count,"count"),variant:"large",title:t.formatMessage({id:"monitoring.control_plane.mme_active_radios.title"}),titleColor:n([u.control_plane?.mme_active_radios?.active_radios_count])})})})]}),Ds({services:c,name:ue.SMF})&&a.jsxs(a.Fragment,{children:[a.jsx(mi,{show:!!u.control_plane?.smf_users,children:a.jsxs(wi,{icon:a.jsx(ge.SMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.smf"}),children:[a.jsx(Rs,{mainValue:s(u.control_plane?.smf_users?.users_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_users.users_count.title"}),titleColor:n([u.control_plane?.smf_users?.users_count]),variant:"medium"}),a.jsx(Rs,{mainValue:s(u.control_plane?.smf_users?.sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_users.sessions_count.title"}),titleColor:n([u.control_plane?.smf_users?.sessions_count]),variant:"medium"})]})}),a.jsx(mi,{show:!!u.control_plane?.smf_connected_peers,children:a.jsx(wi,{icon:a.jsx(ge.SMF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.smf"}),children:a.jsx(Rs,{mainValue:s(u.control_plane?.smf_connected_peers?.connected_peers_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.smf_connected_peers.title"}),titleColor:n([u.control_plane?.smf_connected_peers?.connected_peers_count]),variant:"large"})})})]}),Ds({services:c,name:ue.EIR})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.eir_rules,children:a.jsx(wi,{icon:a.jsx(ge.EIR,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.eir"}),children:a.jsx(Rs,{mainValue:s(u?.control_plane?.eir_rules?.eir_rules_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.eir_rules.title"}),titleColor:n([u?.control_plane?.eir_rules?.eir_rules_count]),variant:"large"})})})}),Ds({services:c,name:ue.PCF})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.pcf_sessions,children:a.jsxs(wi,{iconLabel:t.formatMessage({id:"monitoring.icon_label.pcf"}),icon:a.jsx(ge.PCF,{}),children:[a.jsx(Rs,{mainValue:s(u?.control_plane?.pcf_sessions?.n5_sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.pcf_sessions.n5_sessions_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.pcf_sessions?.n5_sessions_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.pcf_sessions?.n7_sessions_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.pcf_sessions.n7_sessions_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.pcf_sessions?.n7_sessions_count])})]})})}),Ds({services:c,name:ue.NRF})&&a.jsx(a.Fragment,{children:a.jsx(mi,{show:!!u?.control_plane?.nrf_profiles,children:a.jsxs(wi,{icon:a.jsx(ge.NRF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.nrf"}),children:[a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.registered_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.registered_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.registered_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.suspended_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.suspended_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.suspended_count])}),a.jsx(Rs,{mainValue:s(u?.control_plane?.nrf_profiles?.undiscoverable_count,"count"),title:t.formatMessage({id:"monitoring.control_plane.nrf_profiles.undiscoverable_count.title"}),variant:"medium",titleColor:n([u?.control_plane?.nrf_profiles?.undiscoverable_count])})]})})})]})]}),u?.user_plane&&a.jsxs(a.Fragment,{children:[a.jsx(Ew,{text:t.formatMessage({id:"monitoring.user_plane.title"})}),a.jsx(al,{children:Ds({services:c,name:ue.UPF})&&a.jsxs(a.Fragment,{children:[a.jsxs(mi,{show:!!u.user_plane?.upf_throughput,children:[a.jsx(wi,{icon:a.jsx(ge.UPF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.upf"}),children:a.jsx(Rs,{mainValue:s(u.user_plane?.upf_throughput?.total_load_uplink_bytes,"filesize"),mainValueUnit:i(u.user_plane?.upf_throughput?.total_load_uplink_bytes,"filesize"),totalValue:s(u.user_plane?.upf_throughput?.total_load_downlink_bytes,"filesize"),totalValueUnit:i(u.user_plane?.upf_throughput?.total_load_downlink_bytes,"filesize"),variant:"small",title:t.formatMessage({id:"monitoring.user_plane.upf_throughput.total.title"}),titleColor:n([u.user_plane?.upf_throughput?.total_load_uplink_bytes,u.user_plane?.upf_throughput?.total_load_downlink_bytes])})}),a.jsx(Rs,{mainValue:s(u.user_plane?.upf_throughput?.throughput_uplink_bps,"rate"),mainValueUnit:i(u.user_plane?.upf_throughput?.throughput_uplink_bps,"rate"),totalValue:s(u.user_plane?.upf_throughput?.throughput_downlink_bps,"rate"),totalValueUnit:i(u.user_plane?.upf_throughput?.throughput_downlink_bps,"rate"),variant:"small",title:t.formatMessage({id:"monitoring.user_plane.upf_throughput.throughput.title"}),titleColor:n([u.user_plane?.upf_throughput?.throughput_uplink_bps,u.user_plane?.upf_throughput?.throughput_downlink_bps])}),a.jsx(Em,{data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps,children:a.jsx(Mee,{axisHighlight:{x:"none",y:"none"},series:[{data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1},{data:u.user_plane?.upf_throughput?.ts_throughput_downlink_bps?.map(({value:d})=>parseFloat(d))??[],showMark:!1}],xAxis:[{scaleType:"point",data:u.user_plane?.upf_throughput?.ts_throughput_uplink_bps?.map((d,f)=>f)??[],position:"none"}],yAxis:[{position:"none"}],height:80,disableAxisListener:!0,disableLineItemHighlight:!0,margin:{bottom:5,left:5,right:5,top:5},colors:O6})})]}),a.jsx(mi,{show:!!u.user_plane?.upf_sessions,children:a.jsx(wi,{icon:a.jsx(ge.UPF,{}),iconLabel:t.formatMessage({id:"monitoring.icon_label.upf"}),children:a.jsx(Rs,{mainValue:s(u.user_plane?.upf_sessions?.active_sessions,"count"),variant:"large",title:t.formatMessage({id:"monitoring.user_plane.upf_sessions.title"}),titleColor:n([u.user_plane?.upf_sessions?.active_sessions])})})})]})})]})]})})})]})})})},Wwt={element:a.jsx(Or,{transparent:!0}),children:[{path:"home",loader:mut,element:a.jsx(Gwt,{}),handle:vr({labelIntl:"route.home",icon:a.jsx(ge.Home,{})})}]};function Ywt(){const t=he.c(54),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"pfcp.status.peers.remote_node_id"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"remote_node_id",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"pfcp.status.peers.transport_name"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"transport_name",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"pfcp.status.peers.local_addr"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_addr",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==e?(d=e.formatMessage({id:"pfcp.status.peers.remote_addr"}),t[12]=e,t[13]=d):d=t[13];let f;t[14]!==d?(f={key:"remote_addr",label:d},t[14]=d,t[15]=f):f=t[15];let p;t[16]!==e?(p=e.formatMessage({id:"pfcp.status.peers.version"}),t[16]=e,t[17]=p):p=t[17];let m;t[18]!==p?(m={key:"version",label:p},t[18]=p,t[19]=m):m=t[19];let h;t[20]!==e?(h=e.formatMessage({id:"pfcp.status.peers.uptime"}),t[20]=e,t[21]=h):h=t[21];let _;t[22]!==h?(_={key:"uptime_sec",label:h,cellRender:Zwt},t[22]=h,t[23]=_):_=t[23];let g;t[24]!==e?(g=e.formatMessage({id:"pfcp.status.peers.last_reset_at"}),t[24]=e,t[25]=g):g=t[25];let y;t[26]!==g?(y={key:"last_reset_at",label:g,cellRender:Qwt},t[26]=g,t[27]=y):y=t[27];let b;t[28]!==e?(b=e.formatMessage({id:"pfcp.status.peers.connected_at"}),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==b?(x={key:"connected_at",label:b,cellRender:Kwt},t[30]=b,t[31]=x):x=t[31];let w;t[32]!==e?(w=e.formatMessage({id:"pfcp.status.peers.num_tuns"}),t[32]=e,t[33]=w):w=t[33];let C;t[34]!==w?(C={key:"num_tuns",label:w},t[34]=w,t[35]=C):C=t[35];let k;t[36]!==i||t[37]!==_||t[38]!==y||t[39]!==x||t[40]!==C||t[41]!==l||t[42]!==u||t[43]!==f||t[44]!==m?(k=[i,l,u,f,m,_,y,x,C],t[36]=i,t[37]=_,t[38]=y,t[39]=x,t[40]=C,t[41]=l,t[42]=u,t[43]=f,t[44]=m,t[45]=k):k=t[45];const A=k;let P;t[46]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[46]=P):P=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[47]=T):T=t[47];let j;t[48]!==A||t[49]!==n.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"remote_node_id",page:0,loading:n.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"remote_node_id",columns:A,hidePagination:!0}),t[48]=A,t[49]=n.state,t[50]=j):j=t[50];let R;return t[51]!==r.peers||t[52]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:r.peers,errorElement:T,children:j})}),t[51]=r.peers,t[52]=j,t[53]=R):R=t[53],R}function Kwt(t){const{connected_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Qwt(t){const{last_reset_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Zwt(t){const{uptime_sec:e}=t;return a.jsx(_e,{type:"body2",children:ai.utc(e*1e3).format("HH:mm:ss")})}function Xwt(){const t=he.c(24),e=Ye(),r=Gr(),n=On();let s;t[0]!==e?(s=e.formatMessage({id:"pfcp.status.sockets.transport_name"}),t[0]=e,t[1]=s):s=t[1];let i;t[2]!==s?(i={key:"transport_name",label:s},t[2]=s,t[3]=i):i=t[3];let o;t[4]!==e?(o=e.formatMessage({id:"pfcp.status.sockets.local_addr"}),t[4]=e,t[5]=o):o=t[5];let l;t[6]!==o?(l={key:"local_addr",label:o},t[6]=o,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.formatMessage({id:"pfcp.status.sockets.local_port"}),t[8]=e,t[9]=c):c=t[9];let u;t[10]!==c?(u={key:"local_port",label:c},t[10]=c,t[11]=u):u=t[11];let d;t[12]!==i||t[13]!==l||t[14]!==u?(d=[i,l,u],t[12]=i,t[13]=l,t[14]=u,t[15]=d):d=t[15];const f=d;let p;t[16]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Dt,{variant:"rounded",height:"100%",sx:{m:2}}),t[16]=p):p=t[16];let m;t[17]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(en,{}),t[17]=m):m=t[17];let h;t[18]!==f||t[19]!==n.state?(h=g=>a.jsx(Br,{autoScale:!0,data:g||[],orderBy:"transport_name",page:0,loading:n.state!=="idle",rowsCount:g?.length,rowsPerPage:g?.length,rowKey:"transport_name",columns:f,hidePagination:!0}),t[18]=f,t[19]=n.state,t[20]=h):h=t[20];let _;return t[21]!==r.sockets||t[22]!==h?(_=a.jsx(I.Suspense,{fallback:p,children:a.jsx(Qt,{resolve:r.sockets,errorElement:m,children:h})}),t[21]=r.sockets,t[22]=h,t[23]=_):_=t[23],_}async function Jwt({nf:t}){const e=$.apis.pfcp.status.sockets(t);return De({options:{url:e,method:"GET"}})}async function eCt({nf:t}){const e=$.apis.pfcp.status.peers(t);return De({options:{url:e,method:"GET"}})}function tCt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{sockets:Jwt({nf:t})}})}function rCt({nf:t}){return async e=>Wt({loaderArgs:e,deferred:!0,data:{peers:eCt({nf:t})}})}function h8({path:t,nf:e}){const r=Pr();return{path:t,element:a.jsx(la,{navs:[{url:"sockets",label:r.formatMessage({id:"route.pfcp.sockets"})},{url:"peers",label:r.formatMessage({id:"route.pfcp.peers"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"sockets",replace:!0})},{path:"sockets",loader:tCt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Xwt,{})},{path:"peers",loader:rCt({nf:e}),errorElement:a.jsx(en,{}),element:a.jsx(Ywt,{})}]}}const Tee=Pr(),nCt={path:"sgwc",handle:vr({labelIntl:"route.sgwc",icon:a.jsx(ge.SGWC,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SGWC)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.SGWC),{path:"status",handle:vr({labelIntl:"route.sgwc.status",to:$.urls.sgwcStatus}),element:a.jsx(Ao,{tabs:[{url:"gtpc",label:Tee.formatMessage({id:"route.sgwc.status.gtpc"})},{url:"pfcp",label:Tee.formatMessage({id:"route.sgwc.status.pfcp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"gtpc",replace:!0})},uk({path:"gtpc",nf:ue.SGWC,showBlockedPeers:!1}),h8({path:"pfcp",nf:ue.SGWC})]}]}]},PD=Pr(),sCt={path:"smf",handle:vr({labelIntl:"route.smf",icon:a.jsx(ge.SMF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SMF)]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.SMF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.SMF),{path:"status",handle:vr({labelIntl:"route.smf.status",to:$.urls.smfStatus}),element:a.jsx(Ao,{tabs:[{url:"gtpc",label:PD.formatMessage({id:"route.smf.status.gtpc"})},{url:"gtpu",label:PD.formatMessage({id:"route.smf.status.gtpu"})},{url:"pfcp",label:PD.formatMessage({id:"route.smf.status.pfcp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"gtpc",replace:!0})},uk({path:"gtpc",nf:ue.SMF,showBlockedPeers:!1}),m7({path:"gtpu",nf:ue.SMF}),h8({path:"pfcp",nf:ue.SMF})]}]}]};function iCt(){const t=he.c(48),e=ci(),r=Ye(),n=Gr(),s=On(),i=aCt;let o;t[0]!==r?(o=r.formatMessage({id:"smsf.smpp.connections.name"}),t[0]=r,t[1]=o):o=t[1];let l;t[2]!==o?(l={key:"name",label:o},t[2]=o,t[3]=l):l=t[3];let c;t[4]!==r?(c=r.formatMessage({id:"smsf.smpp.connections.connection_type"}),t[4]=r,t[5]=c):c=t[5];let u;t[6]!==r||t[7]!==e?(u=D=>{const{connection_type:O}=D;return a.jsx(_e,{sx:{backgroundColor:O==="smpp_mc_peer"?e.palette.boy.light:e.palette.girl.light,color:O==="smpp_mc_peer"?e.palette.boy.contrastText:e.palette.girl.contrastText,fontWeight:"600",fontSize:"13px",borderRadius:5,px:1,display:"inline-block"},children:r.formatMessage({id:`smsf.smpp.connections.connection_type.${O}`})})},t[6]=r,t[7]=e,t[8]=u):u=t[8];let d;t[9]!==c||t[10]!==u?(d={key:"connection_type",label:c,cellRender:u},t[9]=c,t[10]=u,t[11]=d):d=t[11];let f;t[12]!==r?(f=r.formatMessage({id:"smsf.smpp.connections.bind_type"}),t[12]=r,t[13]=f):f=t[13];let p;t[14]!==r?(p=D=>{const{bind_type:O}=D;return a.jsxs(te,{direction:"row",spacing:1,justify:"flex-start",nowrap:!0,children:[O==="tx"?a.jsx(ge.UpArrow,{}):O==="rx"?a.jsx(ge.DownArrow,{}):a.jsxs(gt,{sx:{position:"relative"},children:[a.jsx(gt,{sx:{position:"relative",top:"-3px"},children:a.jsx(ge.UpArrow,{})}),a.jsx(gt,{sx:{position:"absolute",left:0,top:"3px"},children:a.jsx(ge.DownArrow,{})})]}),a.jsx(_e,{fontSize:"small",children:r.formatMessage({id:`smsf.smpp.connections.bind_type.${O}`})})]})},t[14]=r,t[15]=p):p=t[15];let m;t[16]!==f||t[17]!==p?(m={key:"bind_type",label:f,cellRender:p},t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;t[19]!==r?(h=r.formatMessage({id:"smsf.smpp.connections.local_addr"}),t[19]=r,t[20]=h):h=t[20];let _;t[21]===Symbol.for("react.memo_cache_sentinel")?(_=D=>{const{local_addr:O,local_port:N}=D;return a.jsx(_e,{type:"body2",children:i({addr:O,port:N})})},t[21]=_):_=t[21];let g;t[22]!==h?(g={key:"local_addr",label:h,cellRender:_},t[22]=h,t[23]=g):g=t[23];let y;t[24]!==r?(y=r.formatMessage({id:"smsf.smpp.connections.remote_addr"}),t[24]=r,t[25]=y):y=t[25];let b;t[26]===Symbol.for("react.memo_cache_sentinel")?(b=D=>{const{remote_addr:O,remote_port:N}=D;return a.jsx(_e,{type:"body2",children:i({addr:O,port:N})})},t[26]=b):b=t[26];let x;t[27]!==y?(x={key:"remote_addr",label:y,cellRender:b},t[27]=y,t[28]=x):x=t[28];let w;t[29]!==r?(w=r.formatMessage({id:"smsf.smpp.connections.created_at"}),t[29]=r,t[30]=w):w=t[30];let C;t[31]!==w?(C={key:"created_at",label:w,cellRender:oCt},t[31]=w,t[32]=C):C=t[32];let k;t[33]!==l||t[34]!==g||t[35]!==x||t[36]!==C||t[37]!==d||t[38]!==m?(k=[l,d,m,g,x,C],t[33]=l,t[34]=g,t[35]=x,t[36]=C,t[37]=d,t[38]=m,t[39]=k):k=t[39];const A=k;let P;t[40]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[40]=P):P=t[40];let T;t[41]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(en,{}),t[41]=T):T=t[41];let j;t[42]!==A||t[43]!==s.state?(j=D=>a.jsx(Br,{autoScale:!0,data:D||[],orderBy:"name",page:0,loading:s.state!=="idle",rowsCount:D?.length,rowsPerPage:D?.length,rowKey:"name",columns:A,hidePagination:!0}),t[42]=A,t[43]=s.state,t[44]=j):j=t[44];let R;return t[45]!==n.connections||t[46]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:n.connections,errorElement:T,children:j})}),t[45]=n.connections,t[46]=j,t[47]=R):R=t[47],R}function oCt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function aCt(t){const{addr:e,port:r}=t;return a.jsxs(a.Fragment,{children:[e||"-",r?":"+r:""]})}const jD=Pr(),lCt=dr().shape({msisdn:We().matches(new RegExp(`${$.regex.msisdnForSmsBox}`)).required(jD.formatMessage({id:"validation.required"})),to:We().matches(new RegExp(`${$.regex.msisdnForSmsBox}`)).required(jD.formatMessage({id:"validation.required"})),body:We().required(jD.formatMessage({id:"validation.required"})),validity_time_s:kn().min(0)}),cCt=t=>{const e=he.c(22),{msisdnList:r,onCancel:n}=t,s=Ye(),{data:i,state:o,submit:l}=gr(),[c,u]=I.useState(!1),{msisdn:d}=ko(),f=ys(),p=to();let m,h;e[0]!==p||e[1]!==f||e[2]!==n||e[3]!==i||e[4]!==o?(m=()=>{if(i&&o==="idle"){const{from:k}=i,A=`${$.urls.smsfSmsBox}/${k}/outbound`;xt(i)||(f(A,{replace:p.pathname===A}),n())}},h=[f,n,i,o,p],e[0]=p,e[1]=f,e[2]=n,e[3]=i,e[4]=o,e[5]=m,e[6]=h):(m=e[5],h=e[6]),I.useEffect(m,h);let _;e[7]!==l?(_=async k=>{const{body:A,to:P,validity_time_s:T,msisdn:j}=k,R={msisdn:j,to:P,body:A,...!!T&&{validity_time_s:+T}};l(R,{method:"POST",encType:"application/json",action:"smsf/sms-box/send"})},e[7]=l,e[8]=_):_=e[8];const g=_,y=d??"";let b;e[9]!==y?(b={msisdn:y,to:"",body:"",validity_time_s:""},e[9]=y,e[10]=b):b=e[10];const x=b;let w;e[11]!==s||e[12]!==c||e[13]!==r||e[14]!==n||e[15]!==i||e[16]!==o?(w=k=>{const{setFieldValue:A}=k,P=(T,j)=>{A(T,j??"")};return a.jsx(dn,{canWrite:Ue(ie.management),sx:{maxWidth:"100%"},children:a.jsx(_s,{children:a.jsxs(te,{spacing:4,sx:{pt:2},children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"msisdn",children:T=>{const{field:j,meta:R}=T;return a.jsx(rn,{value:j.value,name:j.name,label:s.formatMessage({id:"smsf.sms_box.new_message.msisdn"}),options:r,freeSolo:!0,error:!!R.error,helperText:R.error,onChange:(D,O)=>P("msisdn",O),onInputChange:(D,O)=>P("msisdn",O),disabled:o!=="idle"})}}),a.jsx(Ke,{name:"to",children:T=>{const{field:j,meta:R}=T;return a.jsx(rn,{value:j.value,name:j.name,label:s.formatMessage({id:"smsf.sms_box.new_message.to"}),options:r,freeSolo:!0,error:!!R.error,helperText:R.error,onChange:(D,O)=>P("to",O),onInputChange:(D,O)=>P("to",O),disabled:o!=="idle"})}}),a.jsx(Ke,{name:"body",children:T=>{const{field:j,meta:R}=T;return a.jsx(dt,{...j,label:s.formatMessage({id:"smsf.sms_box.new_message.body"}),size:"small",multiline:5,error:!!R.error,helperText:R.error,disabled:o!=="idle"})}}),a.jsx(Ke,{name:"validity_time_s",children:T=>{const{field:j,meta:R}=T;return a.jsxs(te,{children:[a.jsxs(te,{direction:"row",justify:"stretch",align:"stretch",nowrap:!0,children:[c&&a.jsx(dt,{...j,label:s.formatMessage({id:"smsf.sms_box.new_message.validity_time_s"}),type:"number",error:!!R.error,helperText:R.error,disabled:o!=="idle",fullWidth:!0,sx:{width:"100%"},InputProps:{endAdornment:a.jsx(Zr,{onClick:()=>P("validity_time_s",""),children:a.jsx(ge.StatusError,{})})}}),!c&&a.jsx(uL,{label:s.formatMessage({id:"smsf.sms_box.new_message.validity_time_s"}),value:j.value?ai.unix(j.value):null,minDate:ai(),slotProps:{field:{clearable:!0}},onChange:D=>{D&&P("validity_time_s",D.unix())},sx:{width:"100%"}})]}),a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:c,onChange:(D,O)=>{u(O)}}),a.jsx(_e,{children:s.formatMessage({id:"smsf.sms_box.new_message.is_seconds_visible"})})]})]})}}),a.jsx(Xr,{data:i})]}),a.jsxs(te,{direction:"row",justify:"space-between",children:[a.jsx(Ze,{text:s.formatMessage({id:"smsf.sms_box.new_message.buttons.cancel"}),type:"button",disabled:o!=="idle"||!Ue(ie.management),onClick:n,variant:"outlined"}),a.jsx(Ze,{text:s.formatMessage({id:"smsf.sms_box.new_message.buttons.send"}),type:"submit",disabled:!Ue(ie.management),loading:o!=="idle"})]})]})})})},e[11]=s,e[12]=c,e[13]=r,e[14]=n,e[15]=i,e[16]=o,e[17]=w):w=e[17];let C;return e[18]!==g||e[19]!==x||e[20]!==w?(C=a.jsx(Wr,{initialValues:x,validationSchema:lCt,enableReinitialize:!0,onSubmit:g,children:w}),e[18]=g,e[19]=x,e[20]=w,e[21]=C):C=e[21],C};function uCt(){const t=he.c(19),{dialogOpen:e,dialogClose:r}=Jt(),n=Ye(),s=Gr(),i=On(),o=ys(),{msisdn:l,direction:c}=ko();let u;t[0]!==r||t[1]!==e||t[2]!==n?(u=b=>()=>{e({title:n.formatMessage({id:"smsf.sms_box.new_message.dialog.title"}),content:()=>a.jsx(cCt,{msisdnList:b,onCancel:()=>r()})})},t[0]=r,t[1]=e,t[2]=n,t[3]=u):u=t[3];const d=u;let f;t[4]===Symbol.for("react.memo_cache_sentinel")?(f={p:2,flex:"0 0 auto",borderColor:"divider"},t[4]=f):f=t[4];let p;t[5]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(gt,{sx:f,children:a.jsx(Dt,{variant:"rounded",sx:{height:"40px",width:"100%",margin:"0 auto"}})}),t[5]=p):p=t[5];let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m={px:2,pb:2,flex:"1 1 auto"},t[6]=m):m=t[6];let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(te,{fullHeight:!0,children:[p,a.jsx(gt,{sx:m,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})})]}),t[7]=h):h=t[7];let _;t[8]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[8]=_):_=t[8];let g;t[9]!==c||t[10]!==d||t[11]!==n||t[12]!==l||t[13]!==o||t[14]!==i.state?(g=b=>a.jsx(a.Fragment,{children:a.jsxs(te,{spacing:0,nowrap:!0,fullHeight:!0,children:[a.jsx(gt,{sx:{borderBottom:"1px solid",flex:"0 0 auto",borderColor:"divider"},children:a.jsxs(te,{justify:"space-between",align:"center",direction:"row",sx:{p:2},children:[a.jsx(rn,{placeholder:n.formatMessage({id:"smsf.sms_box.search"}),options:b,sx:{minWidth:"250px"},size:"small",value:l??"",disabled:i.state==="loading",onChange:(x,w)=>o(w?`${$.urls.smsfSmsBox}/${w}/${c??"inbound"}`:$.urls.smsfSmsBox)}),a.jsx(Ze,{startIcon:a.jsx(ge.Send,{}),text:n.formatMessage({id:"smsf.sms_box.buttons.new_sms"}),onClick:d(b),disabled:i.state==="loading"})]})}),a.jsx(te,{sx:{flex:"1 1 auto"},fullHeight:!0,nowrap:!0,children:a.jsx(Bd,{})})]})}),t[9]=c,t[10]=d,t[11]=n,t[12]=l,t[13]=o,t[14]=i.state,t[15]=g):g=t[15];let y;return t[16]!==s.msisdnList||t[17]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:s.msisdnList,errorElement:_,children:g})}),t[16]=s.msisdnList,t[17]=g,t[18]=y):y=t[18],y}function dCt(){const t=he.c(9),e=Ye(),r=Gr(),n=ys();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={p:2,flex:"1 1 auto"},t[0]=s):s=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(gt,{sx:s,children:a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}})}),t[1]=i):i=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Tr,{}),t[2]=o):o=t[2];let l;t[3]!==e||t[4]!==n?(l=u=>a.jsxs(a.Fragment,{children:[u.length>0&&a.jsx(s7,{divided:!0,sx:{overflow:"auto",height:"100%",maxHeight:"100%",p:0},children:u.map(d=>a.jsx(i7,{primaryText:d,selected:!1,onClick:()=>n(`${$.urls.smsfSmsBox}/${d}`),endIcon:a.jsx(ge.RightArrow,{})},d))}),u.length===0&&a.jsx(Kt,{children:a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"smsf.sms_box.no_msisdns"})})})]}),t[3]=e,t[4]=n,t[5]=l):l=t[5];let c;return t[6]!==r.msisdnList||t[7]!==l?(c=a.jsx(I.Suspense,{fallback:i,children:a.jsx(Qt,{resolve:r.msisdnList,errorElement:o,children:l})}),t[6]=r.msisdnList,t[7]=l,t[8]=c):c=t[8],c}function fCt(t){const e=he.c(65),{message:r}=t,{id:n,from:s,to:i,created_at:o,modified_at:l,validity_time_s:c,body:u}=r,d=Ye(),f=gl(),{openConfirmDialog:p}=di(),{direction:m,msisdn:h}=ko();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={key:"fetcher-smsf-sms-box-delete"},e[0]=_):_=e[0];const g=gr(_);let y;e[1]!==m||e[2]!==n||e[3]!==h||e[4]!==f?(y=async()=>{n&&h&&(m==="inbound"||m==="outbound")&&f({msisdn:h,message_id:n,direction:m},{method:"POST",encType:"application/json",navigate:!1,action:"delete",fetcherKey:"fetcher-smsf-sms-box-delete"})},e[1]=m,e[2]=n,e[3]=h,e[4]=f,e[5]=y):y=e[5];const b=y;let x;e[6]!==b||e[7]!==n||e[8]!==d||e[9]!==p?(x=()=>{p({id:"smsf-sms-box-delete-confir",onConfirm:()=>void b(),title:d.formatMessage({id:"smsf.sms_box.delete_message.dialog.confirm.title"}),text:d.formatMessage({id:"smsf.sms_box.delete_message.dialog.confirm.text"},{id:n}),closeOnBackdropClick:!0})},e[6]=b,e[7]=n,e[8]=d,e[9]=p,e[10]=x):x=e[10];const w=x;let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C={"&:hover":{".deleteIcon":{visibility:"visible"}},borderRadius:3,padding:2,position:"relative"},e[11]=C):C=e[11];let k;e[12]!==m||e[13]!==d?(k=d.formatMessage({id:`smsf.sms_box.message.message_${m==="outbound"?"to":"from"}`}),e[12]=m,e[13]=d,e[14]=k):k=e[14];let A;e[15]!==k?(A=a.jsx(_e,{children:k}),e[15]=k,e[16]=A):A=e[16];const P=m==="outbound"?i:s;let T;e[17]!==P?(T=a.jsx(_e,{fontSize:"large",fontWeight:"600",children:P}),e[17]=P,e[18]=T):T=e[18];let j;e[19]!==A||e[20]!==T?(j=a.jsxs(te,{direction:"row",align:"center",children:[A,T]}),e[19]=A,e[20]=T,e[21]=j):j=e[21];let R;e[22]!==d?(R=d.formatMessage({id:"smsf.sms_box.message.message_at"}),e[22]=d,e[23]=R):R=e[23];let D;e[24]!==R?(D=a.jsx(_e,{children:R}),e[24]=R,e[25]=D):D=e[25];let O;e[26]!==o?(O=Mr(o),e[26]=o,e[27]=O):O=e[27];let N;e[28]!==O?(N=a.jsx(_e,{fontWeight:"600",children:O}),e[28]=O,e[29]=N):N=e[29];let F;e[30]!==D||e[31]!==N?(F=a.jsxs(te,{direction:"row",align:"center",children:[D,N]}),e[30]=D,e[31]=N,e[32]=F):F=e[32];let U;e[33]!==j||e[34]!==F?(U=a.jsxs(te,{spacing:0,children:[j,F]}),e[33]=j,e[34]=F,e[35]=U):U=e[35];let z;e[36]===Symbol.for("react.memo_cache_sentinel")?(z={margin:"0",border:"1px solid",borderColor:"divider",borderRadius:"4px",paddingBlock:4,paddingInline:8,whiteSpace:"pre-wrap",wordBreak:"break-word"},e[36]=z):z=e[36];let H;e[37]!==u?(H=a.jsx("pre",{style:z,children:u}),e[37]=u,e[38]=H):H=e[38];let W;e[39]!==U||e[40]!==H?(W=a.jsxs(te,{spacing:1,children:[U,H]}),e[39]=U,e[40]=H,e[41]=W):W=e[41];let K;e[42]===Symbol.for("react.memo_cache_sentinel")?(K={color:"text.secondary"},e[42]=K):K=e[42];let q;e[43]!==n||e[44]!==d?(q=!!n&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.id"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:n})]}),e[43]=n,e[44]=d,e[45]=q):q=e[45];let X;e[46]!==d||e[47]!==c?(X=!!c&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.validity_time_s"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:qtt(c)})]}),e[46]=d,e[47]=c,e[48]=X):X=e[48];let Q;e[49]!==d||e[50]!==l?(Q=!!l&&a.jsxs(te,{direction:"row",children:[a.jsxs(_e,{fontSize:"small",children:[d.formatMessage({id:"smsf.sms_box.message.modified_at"}),":"]}),a.jsx(_e,{fontSize:"small",fontWeight:"500",children:Mr(l)})]}),e[49]=d,e[50]=l,e[51]=Q):Q=e[51];let Y;e[52]!==q||e[53]!==X||e[54]!==Q?(Y=a.jsxs(gt,{sx:K,children:[q,X,Q]}),e[52]=q,e[53]=X,e[54]=Q,e[55]=Y):Y=e[55];let Z;e[56]===Symbol.for("react.memo_cache_sentinel")?(Z={visibility:"hidden",position:"absolute",top:"10px",right:"10px"},e[56]=Z):Z=e[56];const re=g.state!=="idle";let fe;e[57]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(ge.Trash,{}),e[57]=fe):fe=e[57];let de;e[58]!==w||e[59]!==re?(de=a.jsx(gt,{className:"deleteIcon",sx:Z,children:a.jsx(Zr,{onClick:w,disabled:re,children:fe})}),e[58]=w,e[59]=re,e[60]=de):de=e[60];let se;return e[61]!==W||e[62]!==Y||e[63]!==de?(se=a.jsx(pr,{variant:"outlined",children:a.jsxs(te,{spacing:2,sx:C,children:[W,Y,de]})}),e[61]=W,e[62]=Y,e[63]=de,e[64]=se):se=e[64],se}function pCt(){const t=he.c(11),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={p:2,flex:"1 1 auto"},t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[1]=s):s=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}}),t[3]=o):o=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsxs(te,{sx:n,spacing:2,children:[s,i,o,a.jsx(Dt,{variant:"rounded",sx:{height:"200px"}})]}),t[4]=l):l=t[4];let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(Tr,{}),t[5]=c):c=t[5];let u;t[6]!==e?(u=f=>a.jsxs(a.Fragment,{children:[!!f.length&&a.jsx(te,{spacing:2,sx:{overflow:"auto",p:2},nowrap:!0,fullWidth:!0,children:f.map(mCt)}),!f.length&&a.jsx(Kt,{children:a.jsx(Lr,{severity:"info",message:e.formatMessage({id:"smsf.sms_box.messages.no_messages"})})})]}),t[6]=e,t[7]=u):u=t[7];let d;return t[8]!==r.messages||t[9]!==u?(d=a.jsx(I.Suspense,{fallback:l,children:a.jsx(Qt,{resolve:r.messages,errorElement:c,children:u})}),t[8]=r.messages,t[9]=u,t[10]=d):d=t[10],d}function mCt(t){return a.jsx(fCt,{message:t},t.id)}async function hCt(){const t=$.apis.smsf.smpp.status.connections;return De({options:{url:t,method:"GET"}})}async function Zpe(){const t=$.apis.smsf.smsBox.msisdnList;return De({options:{url:t,method:"GET"}})}async function gCt({msisdn:t,direction:e}){const r=$.apis.smsf.smsBox.msisdnMessages({msisdn:t,direction:e});return De({options:{url:r,method:"GET",cache:!1}})}async function _Ct({msisdn:t,validity_time_s:e,to:r,body:n}){const s=$.apis.smsf.smsBox.messagesCreate({msisdn:t});return De({options:{url:s,method:"POST",data:{to:r,body:n,...e&&{validity_time_s:e}}}})}async function vCt({msisdn:t,direction:e,message_id:r}){const n=$.apis.smsf.smsBox.messagesDelete({msisdn:t,direction:e,message_id:r});return De({options:{url:n,method:"DELETE"}})}const q$=Pr();async function yCt({request:t}){const e=await t.json(),r=await _Ct(e);return xt(r)||Nt(q$.formatMessage({id:"smsf.sms_box.new_message.dialog.send_ok"})),Ft(r)}async function bCt({request:t}){const e=await t.json(),r=await vCt(e);return xt(r)?Ar(r.error?.detail||q$.formatMessage({id:"smsf.sms_box.delete_message.dialog.send_ko"})):Nt(q$.formatMessage({id:"smsf.sms_box.delete_message.dialog.send_ok"})),Ft(r)}async function xCt(t){return Wt({loaderArgs:t,deferred:!0,data:{connections:hCt()}})}async function Eee(t){return Wt({loaderArgs:t,deferred:!0,data:{msisdnList:Zpe()}})}async function SCt(t){const{msisdn:e,direction:r}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{messages:gCt({msisdn:e,direction:r&&["inbound","outbound"].includes(r)?r:"inbound"}),msisdnList:Zpe(),msisdn:e}}):null}const zy=Pr(),wCt={path:"smsf",handle:vr({labelIntl:"route.smsf",icon:a.jsx(ge.SMSF,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.SMSF,{dbCluster:!0})]},{element:a.jsx(Or,{center:!0,fullHeight:!0}),children:[{path:"sms-box",handle:vr({labelIntl:"route.smsf.sms-box",to:"/smsf/sms-box"}),element:a.jsx(uCt,{}),loader:Eee,children:[{index:!0,element:a.jsx(ur,{to:"list",replace:!0})},{path:"send",action:yCt,loader:()=>rt("..")},{path:"list",loader:Eee,element:a.jsx(dCt,{})},{path:":msisdn",element:a.jsx(Ao,{tabs:[{url:"inbound",label:zy.formatMessage({id:"smsf.sms_box.tabs.inbound"})},{url:"outbound",label:zy.formatMessage({id:"smsf.sms_box.tabs.outbound"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"inbound",replace:!0})},{path:":direction",element:a.jsx(pCt,{}),loader:SCt,children:[{path:"delete",action:bCt,loader:()=>rt("..")}]}]}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.smsf.status",to:"/smsf/status"}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:zy.formatMessage({id:"route.diameter"})},{url:"smpp",label:zy.formatMessage({id:"route.smsf.smpp"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.SMSF}),{path:"smpp",element:a.jsx(la,{navs:[{url:"connections",label:zy.formatMessage({id:"route.smsf.smpp.connections"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"connections",replace:!0})},{path:"connections",loader:xCt,errorElement:a.jsx(en,{}),element:a.jsx(iCt,{})}]}]},io(ue.SMSF)]}]};function TD(t){return xt(t)?!0:Array.isArray(t)?t.some(e=>xt(e)):!1}function CCt(t){const e=he.c(6),{errorData:r}=t;if(Array.isArray(r)){let s;e[0]!==r?(s=r.map(ACt),e[0]=r,e[1]=s):s=e[1];let i;return e[2]!==s?(i=a.jsx(te,{children:s}),e[2]=s,e[3]=i):i=e[3],i}let n;return e[4]!==r.error.detail?(n=a.jsx(Lr,{severity:"error",message:r.error.detail}),e[4]=r.error.detail,e[5]=n):n=e[5],n}function ACt(t,e){return a.jsx(Lr,{severity:"error",message:t.error.detail},e)}const bx=t=>{const e=he.c(47);let r,n,s,i,o,l,c,u,d,f;e[0]!==t?({action:n,requiredMessage:f,onDialogSuccess:u,min:c,max:l,acceptEncrypted:r,extraData:o,customError:s,extraContent:i,...d}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=u,e[9]=d,e[10]=f):(r=e[1],n=e[2],s=e[3],i=e[4],o=e[5],l=e[6],c=e[7],u=e[8],d=e[9],f=e[10]);const p=Ye(),{data:m,state:h,submit:_}=gr(),{dialogClose:g}=Jt();let y,b;e[11]!==m||e[12]!==g||e[13]!==u||e[14]!==h?(y=()=>{m&&!TD(m)&&h==="idle"&&(g(),u&&u(m))},b=[m,g,u,h],e[11]=m,e[12]=g,e[13]=u,e[14]=h,e[15]=y,e[16]=b):(y=e[15],b=e[16]),I.useEffect(y,b);let x;e[17]!==n||e[18]!==o||e[19]!==_?(x=async O=>{const N=new FormData;for(const F in O){const U=O[F];if(Array.isArray(U))for(let z=0;z<U.length;z++)N.append(F,U[z]);else N.append(F,U)}for(const F in o)N.append(F,o[F]);_(N,{method:"POST",encType:"multipart/form-data",action:n})},e[17]=n,e[18]=o,e[19]=_,e[20]=x):x=e[20];const w=x;let C;e[21]!==r||e[22]!==p||e[23]!==l||e[24]!==c||e[25]!==f?(C=dr().shape({files:yr().min(c,p.formatMessage({id:"form_import_files.min"},{num:c})).max(l,p.formatMessage({id:"form_import_files.max"},{num:l})).required(f||p.formatMessage({id:"form_import_files.required"})),...r&&{encrypted:li()}}),e[21]=r,e[22]=p,e[23]=l,e[24]=c,e[25]=f,e[26]=C):C=e[26];const k=C;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=[],e[27]=A):A=e[27];let P;e[28]!==r?(P=r&&{encrypted:!1},e[28]=r,e[29]=P):P=e[29];let T;e[30]!==P?(T={files:A,...P},e[30]=P,e[31]=T):T=e[31];const j=T;let R;e[32]!==s||e[33]!==m||e[34]!==g||e[35]!==i||e[36]!==p||e[37]!==l||e[38]!==c||e[39]!==d||e[40]!==h?(R=O=>{const{dirty:N}=O;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[i,a.jsx(Sue,{min:c,max:l,...d}),TD(m)&&!s&&a.jsx(CCt,{errorData:m}),TD(m)&&!!s&&s(m)]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:p.formatMessage({id:"dialog_with_form.buttons.cancel"}),variant:"outlined",disabled:h!=="idle",onClick:()=>g()}),a.jsx(Ze,{text:p.formatMessage({id:"dialog_with_form.buttons.submit"}),type:"submit",disabled:!N,loading:h!=="idle"})]})})]})},e[32]=s,e[33]=m,e[34]=g,e[35]=i,e[36]=p,e[37]=l,e[38]=c,e[39]=d,e[40]=h,e[41]=R):R=e[41];let D;return e[42]!==w||e[43]!==j||e[44]!==R||e[45]!==k?(D=a.jsx(Wr,{initialValues:j,validationSchema:k,onSubmit:w,children:R}),e[42]=w,e[43]=j,e[44]=R,e[45]=k,e[46]=D):D=e[46],D},kCt=Pr();function MCt(t){switch(t.status){case"CREATED":return nn.DEFAULT;case"RUNNING":return nn.INFO;case"TERMINATED":return t.info?.errors.length?nn.ERROR:t.info?.warnings.length?nn.WARNING:nn.SUCCESS}}const PCt=dr().shape({password:We().matches(/^[a-fA-F0-9]{32}$/)}),jCt=dr().shape({files:yr().min(1,kCt.formatMessage({id:"backup.detail.form.validation.error"}))});function TCt(){const t=he.c(16),e=Ye(),{dialogClose:r}=Jt(),{nf:n}=ko(),{upsertFetcher:s}=Ys(),{submit:i,data:o,state:l}=s;let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={password:""},t[0]=c):c=t[0];const u=c;let d;t[1]!==n||t[2]!==i?(d=()=>{n&&i({nf:n,configuration:{password:null}},{action:"system/backup/update-configuration",method:"PUT",encType:"application/json"})},t[1]=n,t[2]=i,t[3]=d):d=t[3];const f=d;let p;t[4]!==n||t[5]!==i?(p=g=>{n&&i({nf:n,configuration:g},{action:"system/backup/update-configuration",method:"PUT",encType:"application/json"})},t[4]=n,t[5]=i,t[6]=p):p=t[6];const m=p;let h;t[7]!==o||t[8]!==r||t[9]!==f||t[10]!==e||t[11]!==l?(h=g=>{const{dirty:y,isSubmitting:b}=g;return a.jsxs(dn,{canWrite:Ue([[ie.provisioning,ie.backup]]),children:[a.jsx(yv,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"password",children:x=>{const{field:w,meta:C}=x;return a.jsx(dt,{...w,showPasswordVisibility:!0,fullWidth:!0,type:"password",label:e.formatMessage({id:"backup.encryption_password"}),helperText:C.error,error:!!C.error})}}),a.jsx(Xr,{data:o})]})}),a.jsx(vv,{children:a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"common.form.cancel"}),disabled:l!=="idle",onClick:()=>r()}),a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"backup.encryption_password.reset_default"}),disabled:l!=="idle"||!Ue([[ie.provisioning,ie.backup]]),loading:l!=="idle"&&!b,onClick:f}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"common.update"}),loading:l!=="idle"&&b,disabled:!y||l!=="idle"||!Ue([[ie.provisioning,ie.backup]])})]})})]})},t[7]=o,t[8]=r,t[9]=f,t[10]=e,t[11]=l,t[12]=h):h=t[12];let _;return t[13]!==m||t[14]!==h?(_=a.jsx(Wr,{initialValues:u,validationSchema:PCt,onSubmit:m,children:h}),t[13]=m,t[14]=h,t[15]=_):_=t[15],_}const h0=I.createContext({});function ECt(t){return tr("MuiTimeline",t)}rr("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Wp(t){return t==="alternate-reverse"?"positionAlternateReverse":`position${tt(t)}`}const RCt=t=>{const{position:e,classes:r}=t,n={root:["root",e&&Wp(e)]};return nr(n,ECt,r)},ICt=Ce("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.position&&e[Wp(r.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),DCt=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimeline"}),{position:s="right",className:i,...o}=n,l={...n,position:s},c=RCt(l),u=I.useMemo(()=>({position:s}),[s]);return a.jsx(h0.Provider,{value:u,children:a.jsx(ICt,{className:lt(c.root,i),ownerState:l,ref:r,...o})})});function $Ct(t){return tr("MuiTimelineConnector",t)}rr("MuiTimelineConnector",["root"]);const OCt=t=>{const{classes:e}=t;return nr({root:["root"]},$Ct,e)},LCt=Ce("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({width:2,backgroundColor:(t.vars||t).palette.grey[400],flexGrow:1})),Ree=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineConnector"}),{className:s,...i}=n,o=n,l=OCt(o);return a.jsx(LCt,{className:lt(l.root,s),ownerState:o,ref:r,...i})});function NCt(t){return tr("MuiTimelineContent",t)}const FCt=rr("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),UCt=t=>{const{position:e,classes:r}=t,n={root:["root",Wp(e)]};return nr(n,NCt,r)},BCt=Ce(cn,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({flex:1,padding:"6px 16px",textAlign:"left",...t.position==="left"&&{textAlign:"right"}})),ED=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineContent"}),{className:s,...i}=n,{position:o}=I.useContext(h0),l={...n,position:o||"right"},c=UCt(l);return a.jsx(BCt,{component:"div",className:lt(c.root,s),ownerState:l,ref:r,...i})});function zCt(t){return tr("MuiTimelineDot",t)}rr("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const qCt=t=>{const{color:e,variant:r,classes:n}=t,s={root:["root",r,e!=="inherit"&&`${r}${tt(e)}`]};return nr(s,zCt,n)},VCt=Ce("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.color!=="inherit"&&`${r.variant}${tt(r.color)}`],e[r.variant]]}})(({ownerState:t,theme:e})=>({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(e.vars||e).shadows[1],margin:"11.5px 0",...t.variant==="filled"&&{borderColor:"transparent",...t.color!=="inherit"&&{...t.color==="grey"?{color:(e.vars||e).palette.grey[50],backgroundColor:(e.vars||e).palette.grey[400]}:{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main}}},...t.variant==="outlined"&&{boxShadow:"none",backgroundColor:"transparent",...t.color!=="inherit"&&{...t.color==="grey"?{borderColor:(e.vars||e).palette.grey[400]}:{borderColor:(e.vars||e).palette[t.color].main}}}})),RD=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineDot"}),{className:s,color:i="grey",variant:o="filled",...l}=n,c={...n,color:i,variant:o},u=qCt(c);return a.jsx(VCt,{className:lt(u.root,s),ownerState:c,ref:r,...l})});function HCt(t){return tr("MuiTimelineOppositeContent",t)}const GCt=rr("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),WCt=t=>{const{position:e,classes:r}=t,n={root:["root",Wp(e)]};return nr(n,HCt,r)},YCt=Ce(cn,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1,...t.position==="left"&&{textAlign:"left"}})),rC=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineOppositeContent"}),{className:s,...i}=n,{position:o}=I.useContext(h0),l={...n,position:o||"left"},c=WCt(l);return a.jsx(YCt,{component:"div",className:lt(c.root,s),ownerState:l,ref:r,...i})});rC.muiName="TimelineOppositeContent";function KCt(t){return tr("MuiTimelineItem",t)}rr("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const QCt=t=>{const{position:e,classes:r,hasOppositeContent:n}=t,s={root:["root",Wp(e),!n&&"missingOppositeContent"]};return nr(s,KCt,r)},ZCt=Ce("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[Wp(r.position)]]}})(({ownerState:t})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...t.position==="left"&&{flexDirection:"row-reverse"},...(t.position==="alternate"||t.position==="alternate-reverse")&&{[`&:nth-of-type(${t.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${FCt.root}`]:{textAlign:"right"},[`& .${GCt.root}`]:{textAlign:"left"}}},...!t.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),ID=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineItem"}),{position:s,className:i,...o}=n,{position:l}=I.useContext(h0);let c=!1;I.Children.forEach(n.children,p=>{cb(p,["TimelineOppositeContent"])&&(c=!0)});const u={...n,position:s||l||"right",hasOppositeContent:c},d=QCt(u),f=I.useMemo(()=>({position:u.position}),[u.position]);return a.jsx(h0.Provider,{value:f,children:a.jsx(ZCt,{className:lt(d.root,i),ownerState:u,ref:r,...o})})});function XCt(t){return tr("MuiTimelineSeparator",t)}rr("MuiTimelineSeparator",["root"]);const JCt=t=>{const{classes:e}=t;return nr({root:["root"]},XCt,e)},e3t=Ce("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),DD=I.forwardRef(function(e,r){const n=Kr({props:e,name:"MuiTimelineSeparator"}),{className:s,...i}=n,o=n,l=JCt(o);return a.jsx(e3t,{className:lt(l.root,s),ownerState:o,ref:r,...i})});function t3t(t){const e=he.c(38),{scheduleStatus:r}=t,{created_at:n,info:s}=r;s?.warnings.length,s?.errors.length;let i;e:{if(s?.errors.length){i="error";break e}if(s?.warnings.length){i="warning";break e}i="success"}const o=i;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={p:0},e[0]=l):l=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={whiteSpace:"nowrap"},e[1]=c):c=e[1];const u=s?.terminated_at;let d;e[2]!==u?(d=Mr(u),e[2]=u,e[3]=d):d=e[3];let f;e[4]!==d?(f=a.jsx(rC,{color:"text.secondary",sx:c,children:d}),e[4]=d,e[5]=f):f=e[5];let p;e[6]!==o?(p=a.jsx(RD,{color:o}),e[6]=o,e[7]=p):p=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Ree,{}),e[8]=m):m=e[8];let h;e[9]!==p?(h=a.jsxs(DD,{children:[p,m]}),e[9]=p,e[10]=h):h=e[10];let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(ED,{sx:{textAlign:"right"},children:"Terminated at"}),e[11]=_):_=e[11];let g;e[12]!==f||e[13]!==h?(g=a.jsxs(ID,{children:[f,h,_]}),e[12]=f,e[13]=h,e[14]=g):g=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y={whiteSpace:"nowrap"},e[15]=y):y=e[15];const b=s?.started_at;let x;e[16]!==b?(x=Mr(b),e[16]=b,e[17]=x):x=e[17];let w;e[18]!==x?(w=a.jsx(rC,{color:"text.secondary",sx:y,children:x}),e[18]=x,e[19]=w):w=e[19];let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsxs(DD,{children:[a.jsx(RD,{color:"info"}),a.jsx(Ree,{})]}),e[20]=C):C=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(ED,{sx:{textAlign:"right"},children:"Started at"}),e[21]=k):k=e[21];let A;e[22]!==w?(A=a.jsxs(ID,{children:[w,C,k]}),e[22]=w,e[23]=A):A=e[23];let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P={minHeight:"auto"},e[24]=P):P=e[24];let T;e[25]===Symbol.for("react.memo_cache_sentinel")?(T={whiteSpace:"nowrap"},e[25]=T):T=e[25];let j;e[26]!==n?(j=Mr(n),e[26]=n,e[27]=j):j=e[27];let R;e[28]!==j?(R=a.jsx(rC,{color:"text.secondary",sx:T,children:j}),e[28]=j,e[29]=R):R=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(DD,{children:a.jsx(RD,{color:"grey"})}),e[30]=D):D=e[30];let O;e[31]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(ED,{sx:{textAlign:"right"},children:"Created at"}),e[31]=O):O=e[31];let N;e[32]!==R?(N=a.jsxs(ID,{sx:P,children:[R,D,O]}),e[32]=R,e[33]=N):N=e[33];let F;return e[34]!==g||e[35]!==A||e[36]!==N?(F=a.jsxs(DCt,{position:"left",sx:l,children:[g,A,N]}),e[34]=g,e[35]=A,e[36]=N,e[37]=F):F=e[37],F}var V$=(t=>(t.ERRORS="errors",t.WARNINGS="warnings",t))(V$||{});function Iee(t){const e=he.c(40),{scheduleStatus:r,type:n,nf:s}=t,i=Ye(),{dialogClose:o}=Jt(),{info:l,uuid:c}=r;let u;e:{if(!l){let D;e[0]===Symbol.for("react.memo_cache_sentinel")?(D=[],e[0]=D):D=e[0],u=D;break e}u=l[n]}const d=u;let f;e[1]!==d||e[2]!==l?.terminated_at||e[3]!==s||e[4]!==n||e[5]!==c?(f=()=>{const D=d.reduce(s3t,`param,reason
/etc/athonet/ems-frontend/advanced/assets/index-Cw8Irsq8.js.bak:343:`}function i3t(t){const e=he.c(95),{scheduleStatus:r}=t,n=Ye(),{nf:s}=ko(),{popoverOpen:i}=Jt(),{dialogOpen:o}=Jt(),{status:l,uuid:c,created_at:u,info:d}=r;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=location.pathname.includes("backup-schedules"),e[0]=f):f=e[0];const p=f;let m;e[1]!==s||e[2]!==c?(m=()=>{s&&c7($.apis.backup.download(s,c))},e[1]=s,e[2]=c,e[3]=m):m=e[3];const h=m;let _;e[4]!==i||e[5]!==r?(_=q=>{i({anchorEl:q.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsx(t3t,{scheduleStatus:r})})},e[4]=i,e[5]=r,e[6]=_):_=e[6];const g=_;let y;e[7]!==o||e[8]!==n||e[9]!==s||e[10]!==r?(y=()=>{o({title:n.formatMessage({id:"backup.restore.warnings_dialog.title"}),closeOnBackdropClick:!0,fullScreen:!0,content:()=>a.jsx(Iee,{scheduleStatus:r,type:V$.WARNINGS,nf:s})})},e[7]=o,e[8]=n,e[9]=s,e[10]=r,e[11]=y):y=e[11];const b=y;let x;e[12]!==o||e[13]!==n||e[14]!==s||e[15]!==r?(x=()=>{o({title:n.formatMessage({id:"backup.restore.errors_dialog.title"}),closeOnBackdropClick:!0,fullScreen:!0,content:()=>a.jsx(Iee,{scheduleStatus:r,type:V$.ERRORS,nf:s})})},e[12]=o,e[13]=n,e[14]=s,e[15]=r,e[16]=x):x=e[16];const w=x;d?.started_at,d?.terminated_at;let C;e:{switch(l){case"CREATED":{let q;e[17]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[17]=q):q=e[17];let X;e[18]!==n?(X=n.formatMessage({id:"backup.card.created_at"}),e[18]=n,e[19]=X):X=e[19];let Q;e[20]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[20]=X,e[21]=Q):Q=e[21];let Y;e[22]!==u?(Y=Mr(u),e[22]=u,e[23]=Y):Y=e[23];let Z;e[24]!==Y?(Z=a.jsx(_e,{type:"body2",children:Y}),e[24]=Y,e[25]=Z):Z=e[25];let re;e[26]!==Z||e[27]!==Q?(re=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,Z]}),e[26]=Z,e[27]=Q,e[28]=re):re=e[28],C=re;break e}case"RUNNING":{let q;e[29]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[29]=q):q=e[29];let X;e[30]!==n?(X=n.formatMessage({id:"backup.card.started_at"}),e[30]=n,e[31]=X):X=e[31];let Q;e[32]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[32]=X,e[33]=Q):Q=e[33];const Y=d?.started_at;let Z;e[34]!==Y?(Z=Mr(Y),e[34]=Y,e[35]=Z):Z=e[35];let re;e[36]!==Z?(re=a.jsx(_e,{type:"body2",children:Z}),e[36]=Z,e[37]=re):re=e[37];let fe;e[38]!==re||e[39]!==Q?(fe=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,re]}),e[38]=re,e[39]=Q,e[40]=fe):fe=e[40],C=fe;break e}case"TERMINATED":{let q;e[41]===Symbol.for("react.memo_cache_sentinel")?(q={ml:"20px"},e[41]=q):q=e[41];let X;e[42]!==n?(X=n.formatMessage({id:"backup.card.terminated_at"}),e[42]=n,e[43]=X):X=e[43];let Q;e[44]!==X?(Q=a.jsx(_e,{type:"body2",color:"text.secondary",children:X}),e[44]=X,e[45]=Q):Q=e[45];const Y=d?.terminated_at;let Z;e[46]!==Y?(Z=Mr(Y),e[46]=Y,e[47]=Z):Z=e[47];let re;e[48]!==Z?(re=a.jsx(_e,{type:"body2",children:Z}),e[48]=Z,e[49]=re):re=e[49];let fe;e[50]!==re||e[51]!==Q?(fe=a.jsxs(te,{direction:"row",nowrap:!0,sx:q,children:[Q,re]}),e[50]=re,e[51]=Q,e[52]=fe):fe=e[52],C=fe;break e}}C=void 0}const k=C;let A;e[53]!==r?(A=MCt(r),e[53]=r,e[54]=A):A=e[54];let P;e[55]!==l||e[56]!==A?(P=a.jsx(bi,{label:l,status:A}),e[55]=l,e[56]=A,e[57]=P):P=e[57];let T,j;e[58]===Symbol.for("react.memo_cache_sentinel")?(j={ml:"20px"},T=a.jsx(_e,{type:"body2",color:"text.secondary",children:"ID:"}),e[58]=T,e[59]=j):(T=e[58],j=e[59]);let R;e[60]!==c?(R=a.jsxs(te,{direction:"row",nowrap:!0,sx:j,children:[T,a.jsx(_e,{type:"body2",fontWeight:600,children:c})]}),e[60]=c,e[61]=R):R=e[61];let D;e[62]!==k||e[63]!==R||e[64]!==P?(D=a.jsxs(te,{children:[P,R,k]}),e[62]=k,e[63]=R,e[64]=P,e[65]=D):D=e[65];let O;e[66]!==g||e[67]!==n||e[68]!==l?(O=l==="TERMINATED"&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.timeline"}),children:a.jsx(Zr,{onClick:g,children:a.jsx(ge.Clock,{})})}),e[66]=g,e[67]=n,e[68]=l,e[69]=O):O=e[69];let N;e[70]!==b||e[71]!==d||e[72]!==n?(N=d?.warnings&&d.warnings.length>0&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.warnings"}),children:a.jsx(Zr,{color:"warning",onClick:b,children:a.jsx(ge.StatusWarning,{})})}),e[70]=b,e[71]=d,e[72]=n,e[73]=N):N=e[73];let F;e[74]!==w||e[75]!==d?.errors||e[76]!==n?(F=d?.errors&&d?.errors.length>0&&a.jsx(Mn,{title:n.formatMessage({id:"backup.card.errors"}),children:a.jsx(Zr,{color:"error",onClick:w,children:a.jsx(ge.StatusError,{})})}),e[74]=w,e[75]=d?.errors,e[76]=n,e[77]=F):F=e[77];let U;e[78]!==O||e[79]!==N||e[80]!==F?(U=a.jsxs(te,{direction:"row",spacing:0,children:[O,N,F]}),e[78]=O,e[79]=N,e[80]=F,e[81]=U):U=e[81];let z;e[82]!==D||e[83]!==U?(z=a.jsxs(te,{direction:"row",justify:"space-between",align:"flex-start",children:[D,U]}),e[82]=D,e[83]=U,e[84]=z):z=e[84];let H;e[85]!==h||e[86]!==d?.errors||e[87]!==n||e[88]!==l?(H=p&&l==="TERMINATED"&&!d?.errors.length&&a.jsx(Ze,{text:n.formatMessage({id:"common.download"}),size:"small",variant:"outlined",startIcon:a.jsx(ge.Download,{}),onClick:h,sx:{mt:1}}),e[85]=h,e[86]=d?.errors,e[87]=n,e[88]=l,e[89]=H):H=e[89];let W;e[90]!==H?(W=a.jsx(gt,{alignSelf:"flex-end",children:H}),e[90]=H,e[91]=W):W=e[91];let K;return e[92]!==z||e[93]!==W?(K=a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{children:[z,W]})})}),e[92]=z,e[93]=W,e[94]=K):K=e[94],K}function Dee(t){const e=he.c(37),{isBackup:r}=t,n=Ye(),{nf:s}=ko(),{backupSchedules:i,restoreSchedules:o}=Np(),{submit:l}=gr(),{dialogOpen:c}=Jt();let u;e:{if(r&&s){u=i[s];break e}if(!r&&s){u=o[s];break e}u=void 0}const d=u;let f;e[0]!==c?(f=()=>{c({title:"Update encryption password",content:l3t})},e[0]=c,e[1]=f):f=e[1];const p=f;let m;e[2]!==s||e[3]!==l?(m=()=>{s&&l({nf:s},{action:$.urls.systemBackupScheduleBackup_Action,encType:"application/json",method:"POST"})},e[2]=s,e[3]=l,e[4]=m):m=e[4];const h=m;let _;e[5]!==c||e[6]!==n||e[7]!==s?(_=()=>{s&&c({title:n.formatMessage({id:"backup.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:n.formatMessage({id:"backup.form.placeholder"}),description:n.formatMessage({id:"backup.form.description"}),requiredMessage:n.formatMessage({id:"backup.detail.form.validation.error"}),accept:{".bck":[".bck"],".enc":[".enc"]},action:$.urls.systemBackupScheduleRestore_Action,onDialogSuccess:a3t,extraData:{nf:s}})})},e[5]=c,e[6]=n,e[7]=s,e[8]=_):_=e[8];const g=_;let y;e[9]!==h||e[10]!==g||e[11]!==p||e[12]!==n||e[13]!==r?(y=a.jsx(o7,{children:a.jsx(te,{direction:"row",children:r?a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:n.formatMessage({id:"backup.encryption_password"}),size:"small",variant:"outlined",onClick:p,disabled:!as([[ie.provisioning,ie.backup]])}),a.jsx(Ze,{text:n.formatMessage({id:"backup.button.schedule.backup"}),size:"small",disabled:!as([[ie.provisioning,ie.backup]]),onClick:h})]}):a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:n.formatMessage({id:"backup.encryption_password"}),size:"small",variant:"outlined",onClick:p,disabled:!Ue([[ie.provisioning,ie.backup]])}),a.jsx(Ze,{text:n.formatMessage({id:"backup.button.schedule.restore"}),size:"small",disabled:!Ue([[ie.provisioning,ie.backup]]),onClick:g})]})})}),e[9]=h,e[10]=g,e[11]=p,e[12]=n,e[13]=r,e[14]=y):y=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b={overflow:"auto",maxHeight:"100%",height:"100%"},e[15]=b):b=e[15];let x;e[16]!==n||e[17]!==s?(x=n.formatMessage({id:`backup.detail.${s}.alert`}),e[16]=n,e[17]=s,e[18]=x):x=e[18];let w;e[19]!==x?(w=a.jsx(Lr,{severity:"info",title:x}),e[19]=x,e[20]=w):w=e[20];let C;e[21]!==d?(C=a.jsx(Xr,{data:d}),e[21]=d,e[22]=C):C=e[22];let k;e[23]!==d||e[24]!==n?(k=d&&d.length>0?d.map(o3t):a.jsx(Lr,{message:n.formatMessage({id:"backup.noData"})}),e[23]=d,e[24]=n,e[25]=k):k=e[25];let A;e[26]!==k?(A=a.jsx(a.Fragment,{children:k}),e[26]=k,e[27]=A):A=e[27];let P;e[28]!==A||e[29]!==C?(P=a.jsxs(te,{spacing:1,direction:"column-reverse",children:[C,A]}),e[28]=A,e[29]=C,e[30]=P):P=e[30];let T;e[31]!==P||e[32]!==w?(T=a.jsx(Kt,{sx:b,children:a.jsxs(te,{spacing:2,children:[w,P]})}),e[31]=P,e[32]=w,e[33]=T):T=e[33];let j;return e[34]!==T||e[35]!==y?(j=a.jsxs(a.Fragment,{children:[y,T]}),e[34]=T,e[35]=y,e[36]=j):j=e[36],j}function o3t(t){return a.jsx(i3t,{scheduleStatus:t},t.uuid)}function a3t(){Nt()}function l3t(){return a.jsx(TCt,{})}function $ee(t){const e=he.c(21),{isBackup:r}=t,n=Ye(),{activeTabs:s,backupSchedules:i,restoreSchedules:o}=Np();let l;e:{if(r){l=i;break e}l=o}const c=l;let u;if(e[0]!==s||e[1]!==c||e[2]!==n||e[3]!==r){let p;e[5]!==c||e[6]!==n||e[7]!==r?(p=C=>{const{label:k,url:A}=C;return c[A]?.find(c3t)?{title:`${k}${` ${n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase()}`}`,label:k,url:A,status:nn.INFO}:{title:`${k}${` ${n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase()}`}`,label:k,url:A,status:nn.DEFAULT}},e[5]=c,e[6]=n,e[7]=r,e[8]=p):p=e[8];const m=s.map(p);let h;e[9]!==n?(h=n.formatMessage({id:"route.system.backup.configuration"}),e[9]=n,e[10]=h):h=e[10];let _;e[11]!==n||e[12]!==r?(_=n.formatMessage({id:`common.${r?"backup":"restore"}`}).toLowerCase(),e[11]=n,e[12]=r,e[13]=_):_=e[13];const g=`${h}${` ${_}`}`;let y;e[14]!==n?(y=n.formatMessage({id:"route.system.backup.configuration"}),e[14]=n,e[15]=y):y=e[15];const b=`${y}`;let x;e[16]!==g||e[17]!==b?(x={title:g,label:b,url:"configuration",status:nn.DEFAULT},e[16]=g,e[17]=b,e[18]=x):x=e[18];const w=x;u=as([[ie.backup,ie.configuration]])?[w,...m]:m,e[0]=s,e[1]=c,e[2]=n,e[3]=r,e[4]=u}else u=e[4];const d=u;let f;return e[19]!==d?(f=a.jsx(la,{navs:d}),e[19]=d,e[20]=f):f=e[20],f}function c3t(t){const{status:e}=t;return e==="RUNNING"}function u3t(){const t=he.c(7),e=Ye(),r=Gr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[0]=n):n=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Tr,{}),t[1]=s):s=t[1];let i;t[2]!==e?(i=l=>{const{backupSchedules:c,restoreSchedules:u}=l;let d=!1,f=!1;for(const p in c)if(c[p].find(f3t)){d=!0;break}for(const p in u)if(u[p].find(d3t)){f=!0;break}return a.jsx(a.Fragment,{children:a.jsx(Ao,{tabs:[{url:"backup-schedules",label:e.formatMessage({id:"backup.tab.backup"}),...as([[ie.backup,ie.provisioning]])&&{status:d?nn.INFO:nn.DEFAULT}},{url:"restore-schedules",label:e.formatMessage({id:"backup.tab.restore"}),...as([[ie.backup,ie.provisioning]])&&{status:f?nn.INFO:nn.DEFAULT}}]})})},t[2]=e,t[3]=i):i=t[3];let o;return t[4]!==r.schedule||t[5]!==i?(o=a.jsx(I.Suspense,{fallback:n,children:a.jsx(Qt,{resolve:r.schedule,errorElement:s,children:i})}),t[4]=r.schedule,t[5]=i,t[6]=o):o=t[6],o}function d3t(t){const{status:e}=t;return e==="RUNNING"}function f3t(t){const{status:e}=t;return e==="RUNNING"}function p3t(){const t=he.c(17),e=Ye(),r=zn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],t[0]=n):n=t[0];const[s,i]=I.useState(n),{submit:o}=gr();let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=b=>(x,w)=>{i(C=>w?[...C,b]:C.filter(k=>k!==b))},t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=b=>()=>{i(b)},t[2]=u):u=t[2];const d=u;let f;t[3]!==s||t[4]!==o?(f=()=>{o({services:s},{method:"POST",encType:"application/json",action:"configuration-backup"})},t[3]=s,t[4]=o,t[5]=f):f=t[5];const p=f;let m;t[6]!==s?(m=b=>!!s.find(w=>w===b),t[6]=s,t[7]=m):m=t[7];const h=m;let _;t[8]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(en,{}),t[8]=_):_=t[8];let g;t[9]!==p||t[10]!==e||t[11]!==h||t[12]!==s.length?(g=b=>{const x=b.filter(h3t).map(m3t);return a.jsx(Kt,{sx:{overflow:"auto",maxHeight:"100%",height:"100%"},children:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"info",title:e.formatMessage({id:"backup.detail.configuration.backup.alert"})}),a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(_e,{type:"body2",children:e.formatMessage({id:"backup.detail.configuration.backup.hint"})}),a.jsx(al,{spacing:0,children:x.map(w=>a.jsx(Is,{size:{xs:12,md:6,lg:3},children:a.jsx(da,{onChange:c(w),checked:h(w),label:w===ue.PLS?e.formatMessage({id:"route.system"}):w.toUpperCase()})},w))}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{size:"small",text:e.formatMessage({id:"common.select_all"}),variant:"outlined",disabled:!as([[ie.backup,ie.configuration]]),onClick:d(x)}),a.jsx(Ze,{size:"small",text:e.formatMessage({id:"common.download"}),startIcon:a.jsx(ge.Download,{}),disabled:!s.length||!as([[ie.backup,ie.configuration]]),onClick:p})]})]})})})]})})},t[9]=p,t[10]=e,t[11]=h,t[12]=s.length,t[13]=g):g=t[13];let y;return t[14]!==r.services||t[15]!==g?(y=a.jsx(I.Suspense,{children:a.jsx(Qt,{resolve:r.services,errorElement:_,children:g})}),t[14]=r.services,t[15]=g,t[16]=y):y=t[16],y}function m3t(t){const{name:e}=t;return e}function h3t(t){const{backup:e}=t;return e}function g3t(){const t=he.c(14),e=Ye(),{submit:r,state:n,data:s}=gr(),i=I.useRef(null);let o;t[0]!==r?(o=h=>{const{files:_}=h,g=new FormData;g.set("file",_[0]),r(g,{method:"POST",encType:"multipart/form-data",action:"configuration-restore"})},t[0]=r,t[1]=o):o=t[1];const l=o;let c,u;t[2]!==s||t[3]!==n?(c=()=>{s&&n==="idle"&&i.current&&i.current.resetForm()},u=[s,n],t[2]=s,t[3]=n,t[4]=c,t[5]=u):(c=t[4],u=t[5]),I.useEffect(c,u);let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={overflow:"auto",maxHeight:"100%",height:"100%"},t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f={files:[]},t[7]=f):f=t[7];let p;t[8]!==e||t[9]!==n?(p=h=>{const{dirty:_}=h;return a.jsx(dn,{canWrite:Ue([[ie.backup,ie.configuration]]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{children:[a.jsx(_e,{type:"body2",children:e.formatMessage({id:"backup.detail.configuration.restore.hint"})}),a.jsx(Ke,{name:"files",children:g=>{const{field:y,meta:b,form:x}=g,{setFieldValue:w}=x;return a.jsx(Z_,{...y,label:e.formatMessage({id:"form_import_files.file"}),size:"medium",accept:{"application/gzip":[".gz"]},maxFiles:1,onChange:C=>{setTimeout(()=>{C.length?w(y.name,C):w(y.name,[])},0)},disabled:n!=="idle",formError:b.error})}})]}),a.jsx(te,{direction:"row",justify:"flex-end",children:a.jsx(Ze,{type:"submit",size:"small",startIcon:a.jsx(ge.Upload,{}),disabled:!_||!Ue([[ie.backup,ie.configuration]]),loading:n!=="idle",text:e.formatMessage({id:"common.upload"})})})]})})},t[8]=e,t[9]=n,t[10]=p):p=t[10];let m;return t[11]!==l||t[12]!==p?(m=a.jsx(Kt,{sx:d,children:a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsx(Wr,{validationSchema:jCt,initialValues:f,onSubmit:l,innerRef:i,children:p})})})}),t[11]=l,t[12]=p,t[13]=m):m=t[13],m}const Iw=Pr(),_3t={invalid_license:Iw.formatMessage({id:"licensing.upload.form.error.invalid_license"}),unspecified:Iw.formatMessage({id:"licensing.upload.form.error.unspecified"}),wrong_site_id:Iw.formatMessage({id:"licensing.upload.form.error.wrong_site_id"}),"Not Found":Iw.formatMessage({id:"licensing.upload.form.error.not_found"})},g8=t=>{const e=he.c(5),{action:r,actionError:n}=t,s=ci();let i;return e[0]!==r||e[1]!==n||e[2]!==s.palette.error||e[3]!==s.palette.success?(i=r?a.jsx(ge.StatusSuccessSmall,{color:s.palette.success.main}):a.jsx(Mn,{title:_3t[n]??n,children:a.jsx("span",{style:{cursor:"help"},children:a.jsx(ge.StatusError,{color:s.palette.error.main})})}),e[0]=r,e[1]=n,e[2]=s.palette.error,e[3]=s.palette.success,e[4]=i):i=e[4],i},v3t=()=>{const t=he.c(90),e=ci(),r=Ye(),{dialogOpen:n,popoverOpen:s}=Jt(),{openConfirmDialog:i}=di(),o=zn(),l=gr();let c;t[0]!==r?(c=r.formatMessage({id:"licensing.table.nf_type"}),t[0]=r,t[1]=c):c=t[1];let u;t[2]!==c?(u={key:"license_nf_type",label:c,cellRender:y3t},t[2]=c,t[3]=u):u=t[3];let d;t[4]!==r?(d=r.formatMessage({id:"licensing.table.id"}),t[4]=r,t[5]=d):d=t[5];let f;t[6]!==d?(f={key:"license_id",label:d,cellRender:b3t},t[6]=d,t[7]=f):f=t[7];let p;t[8]!==r?(p=r.formatMessage({id:"licensing.install"}),t[8]=r,t[9]=p):p=t[9];let m;t[10]!==p?(m={key:"install",label:p,maxWidth:"65",width:"65",cellRender:x3t},t[10]=p,t[11]=m):m=t[11];let h;t[12]!==r?(h=r.formatMessage({id:"licensing.set"}),t[12]=r,t[13]=h):h=t[13];let _;t[14]!==h?(_={key:"set",label:h,maxWidth:"65",width:"65",cellRender:S3t},t[14]=h,t[15]=_):_=t[15];let g;t[16]!==r?(g=r.formatMessage({id:"licensing.persist"}),t[16]=r,t[17]=g):g=t[17];let y;t[18]!==g?(y={key:"persist",label:g,maxWidth:"65",width:"65",cellRender:w3t},t[18]=g,t[19]=y):y=t[19];let b;t[20]!==u||t[21]!==f||t[22]!==m||t[23]!==_||t[24]!==y?(b=[u,f,m,_,y],t[20]=u,t[21]=f,t[22]=m,t[23]=_,t[24]=y,t[25]=b):b=t[25];const x=b;let w;t[26]!==x||t[27]!==n||t[28]!==r||t[29]!==e.palette.error.main||t[30]!==e.palette.success.main?(w=()=>{n({title:r.formatMessage({id:"licensing.upload.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:r.formatMessage({id:"licensing.upload.form.file"}),accept:{"application/json":[".json"]},requiredMessage:r.formatMessage({id:"licensing.upload.form.file.required"}),description:r.formatMessage({id:"licensing.upload.form.description"}),action:"system/licensing/install",customError:pe=>{const Se=pe.error.errorList;Se.sort(C3t);const ve=Se.some(A3t);return a.jsxs(te,{spacing:2,children:[ve&&a.jsx(Lr,{sx:{width:"100%"},severity:"error",message:r.formatMessage({id:"licensing.upload.form.error"})}),a.jsx(pr,{elevation:1,sx:{borderColor:ve?e.palette.error.main:e.palette.success.main,borderWidth:"1px",borderStyle:"solid"},children:a.jsx(Kt,{children:a.jsx(Br,{data:Se,orderBy:"license_nf_type",columns:x,page:0,rowsCount:Se.length,rowsPerPage:Se.length,rowKey:"license_nf_type",dense:!0,hidePagination:!0,hideRowsCount:!0})})})]})}})})},t[26]=x,t[27]=n,t[28]=r,t[29]=e.palette.error.main,t[30]=e.palette.success.main,t[31]=w):w=t[31];const C=w;let k;t[32]!==l||t[33]!==r||t[34]!==i?(k=pe=>{const{license_id:Se,precedence:ve}=pe;i({text:r.formatMessage({id:"licensing.delete.dialog.confirm"}),onConfirm:()=>{l.submit({license_id:Se,precedence:ve},{method:"DELETE",encType:"application/json",action:"delete"})}})},t[32]=l,t[33]=r,t[34]=i,t[35]=k):k=t[35];const A=k;let P;t[36]!==r?(P=r.formatMessage({id:"licensing.table.id"}),t[36]=r,t[37]=P):P=t[37];let T;t[38]!==P?(T={key:"license_id",label:P},t[38]=P,t[39]=T):T=t[39];let j;t[40]!==r?(j=r.formatMessage({id:"licensing.table.nf_type"}),t[40]=r,t[41]=j):j=t[41];let R;t[42]!==j?(R={key:"license_id",label:j,cellRender:k3t},t[42]=j,t[43]=R):R=t[43];let D;t[44]!==r?(D=r.formatMessage({id:"licensing.table.start_date"}),t[44]=r,t[45]=D):D=t[45];let O;t[46]!==D?(O={key:"license",label:D,cellRender:M3t},t[46]=D,t[47]=O):O=t[47];let N;t[48]!==r?(N=r.formatMessage({id:"licensing.table.expire_date"}),t[48]=r,t[49]=N):N=t[49];let F;t[50]!==N?(F={key:"license",label:N,cellRender:P3t},t[50]=N,t[51]=F):F=t[51];let U;t[52]!==r?(U=r.formatMessage({id:"licensing.table.precedence"}),t[52]=r,t[53]=U):U=t[53];let z;t[54]!==U?(z={key:"precedence",label:U},t[54]=U,t[55]=z):z=t[55];let H;t[56]!==r?(H=r.formatMessage({id:"licensing.table.state"}),t[56]=r,t[57]=H):H=t[57];let W;t[58]!==H?(W={key:"state",label:H,cellRender:j3t},t[58]=H,t[59]=W):W=t[59];let K;t[60]!==T||t[61]!==R||t[62]!==O||t[63]!==F||t[64]!==z||t[65]!==W?(K=[T,R,O,F,z,W],t[60]=T,t[61]=R,t[62]=O,t[63]=F,t[64]=z,t[65]=W,t[66]=K):K=t[66];const q=K;let X;t[67]!==r?(X=r.formatMessage({id:"licensing.table.actions.delete"}),t[67]=r,t[68]=X):X=t[68];let Q,Y;t[69]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Trash,{}),Y=Ue(ie.management),t[69]=Q,t[70]=Y):(Q=t[69],Y=t[70]);let Z;t[71]!==A?(Z=pe=>void A(pe),t[71]=A,t[72]=Z):Z=t[72];let re;t[73]!==X||t[74]!==Z?(re=[{label:X,icon:Q,disabled:!Y,onClick:Z}],t[73]=X,t[74]=Z,t[75]=re):re=t[75];const fe=re;let de;t[76]!==r||t[77]!==s?(de=(pe,Se)=>s({anchorEl:pe.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsxs(te,{spacing:1,divided:!0,children:[Se.hostname&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"licensing.host.hostname"})}),a.jsx(Ap,{text:Se.hostname})]}),Se.siteid?.value&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"licensing.host.siteid"})}),a.jsx(Ap,{text:Se.siteid?.value,max:50})]})]})}),t[76]=r,t[77]=s,t[78]=de):de=t[78];const se=de;let le;t[79]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[79]=le):le=t[79];let ee;t[80]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(Tr,{}),t[80]=ee):ee=t[80];let J;t[81]!==q||t[82]!==C||t[83]!==se||t[84]!==r||t[85]!==fe?(J=pe=>{const{licenses:Se,hostInfo:ve}=pe;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[a.jsx(Ze,{startIcon:a.jsx(ge.Info,{}),onClick:xe=>{se(xe,ve)},variant:"outlined",text:r.formatMessage({id:"licensing.info"})}),a.jsx(Ze,{startIcon:a.jsx(ge.Upload,{}),disabled:!Ue(ie.management),text:r.formatMessage({id:"licensing.upload.buttons.upload"}),onClick:C})]})}),a.jsx(Br,{autoScale:!0,data:Se,orderBy:"license_id",columns:q,rowActions:fe,stickyRowActions:!0,page:0,labelDisplayedRows:T3t,rowsCount:Se.length,rowsPerPage:Se.length,rowKey:"license_id",rowDetail:{content:xe=>{const{license:qe}=xe;return a.jsx(al,{children:!!qe?.app_content&&Object.entries(qe.app_content)?.filter(E3t)?.map(Le=>{const[Te,je]=Le;return a.jsxs(Is,{size:{xs:3},children:[a.jsx(_e,{fontWeight:"600",children:r.formatMessage({id:`licensing.table.details.${Te}`})}),a.jsx(_e,{children:je})]},Te)})})}}})]})},t[81]=q,t[82]=C,t[83]=se,t[84]=r,t[85]=fe,t[86]=J):J=t[86];let me;return t[87]!==o.licensing||t[88]!==J?(me=a.jsx(I.Suspense,{fallback:le,children:a.jsx(Qt,{resolve:o.licensing,errorElement:ee,children:J})}),t[87]=o.licensing,t[88]=J,t[89]=me):me=t[89],me};function y3t(t){const{license_nf_type:e}=t;return a.jsx(te,{direction:"row",align:"center",spacing:2,children:a.jsx(_e,{children:e})})}function b3t(t){const{license_id:e}=t;return a.jsx(Ap,{text:e||"",max:4})}function x3t(t){const{install:e,installError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function S3t(t){const{set:e,setError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function w3t(t){const{persist:e,persistError:r}=t;return a.jsx(g8,{action:e,actionError:r})}function C3t(t,e){return t.license_nf_type.localeCompare(e.license_nf_type)}function A3t(t){return!t.install||!t.persist||!t.set}function k3t(t){const{license:e}=t;return a.jsx(_e,{type:"body2",children:e?.app_content?.app_type||"-"})}function M3t(t){const{license:e}=t;return e?.license_params?.start_date?a.jsx(_e,{type:"body2",children:Mr(e.license_params.start_date*1e3)}):a.jsx(a.Fragment,{})}function P3t(t){const{license:e}=t;return e?.license_params?.expire_date?a.jsx(_e,{type:"body2",children:Mr(e.license_params.expire_date*1e3)}):a.jsx(a.Fragment,{})}function j3t(t){const{state:e}=t;return a.jsx(_e,{type:"body2",children:e?.str})}function T3t(){return""}function E3t(t){const[,e]=t;return!!e}function R3t(t){const e=he.c(16),{children:r,href:n,underline:s,targetBlank:i,color:o,onClick:l,sx:c,"data-testid":u}=t,d=o===void 0?"primary":o,f=i?"_blank":"",p=i?"noreferrer":"",m=`${d}.main`;let h;e[0]!==d||e[1]!==i?(h=i&&{"&::after":{content:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==)",margin:"0 3px 0 5px"},"&::visited":{color:`${d}.main`}},e[0]=d,e[1]=i,e[2]=h):h=e[2];let _;e[3]!==c||e[4]!==h?(_={cursor:"pointer",...h,...c},e[3]=c,e[4]=h,e[5]=_):_=e[5];let g;return e[6]!==r||e[7]!==u||e[8]!==n||e[9]!==l||e[10]!==p||e[11]!==m||e[12]!==_||e[13]!==f||e[14]!==s?(g=a.jsx(N8e,{href:n,underline:s,target:f,rel:p,color:m,onClick:l,sx:_,"data-testid":u,children:r}),e[6]=r,e[7]=u,e[8]=n,e[9]=l,e[10]=p,e[11]=m,e[12]=_,e[13]=f,e[14]=s,e[15]=g):g=e[15],g}function C_(t){const e=he.c(11),{field:r,value:n,href:s,fontWeight:i}=t;let o;e[0]!==r?(o=a.jsx(_e,{type:"caption",color:"text.secondary",children:r}),e[0]=r,e[1]=o):o=e[1];let l;e[2]!==r||e[3]!==i||e[4]!==s||e[5]!==n?(l=s?a.jsx(R3t,{href:s,targetBlank:!0,sx:{fontFamily:"'Source Code Pro', monospace",wordBreak:"break-all",fontSize:14,fontWeight:i},children:n}):a.jsx(_e,{sx:{wordBreak:"break-all",fontFamily:"'Source Code Pro', monospace",fontWeight:i},fontSize:14,children:r==="PRIORITY"?q_(n):n}),e[2]=r,e[3]=i,e[4]=s,e[5]=n,e[6]=l):l=e[6];let c;return e[7]!==r||e[8]!==o||e[9]!==l?(c=a.jsxs(te,{spacing:.1,children:[o,l]},r),e[7]=r,e[8]=o,e[9]=l,e[10]=c):c=e[10],c}function Xpe(t){const e=he.c(58),{entry:r,cursorAsTitle:n}=t,s=ci();let i;e[0]!==r?(i=R=>Object.entries(r).filter(D=>{const[O]=D;if(["MESSAGE","SYSLOG_IDENTIFIER","__CURSOR"].includes(O))return!1;switch(R){case Um.TRUSTED:return Aie(O);case Um.ADDRESS:return bL(O);default:return _4e(O)}}).sort(),e[0]=r,e[1]=i):i=e[1];const o=i;let l;e:switch(q_(r.PRIORITY)){case ii.EMERGENCY:case ii.ALERT:case ii.CRITICAL:case ii.ERROR:{let R;e[2]!==s.palette.error.main?(R=Ic(s.palette.error.main,.1),e[2]=s.palette.error.main,e[3]=R):R=e[3];let D;e[4]!==R?(D={backgroundColor:R,borderColor:"error.main"},e[4]=R,e[5]=D):D=e[5],l=D;break e}case ii.WARNING:{let R;e[6]!==s.palette.warning.main?(R=Ic(s.palette.warning.main,.1),e[6]=s.palette.warning.main,e[7]=R):R=e[7];let D;e[8]!==R?(D={backgroundColor:R,borderColor:"warning.main"},e[8]=R,e[9]=D):D=e[9],l=D;break e}case ii.DEBUG:{let R;e[10]!==s.palette.info.main?(R=Ic(s.palette.info.main,.1),e[10]=s.palette.info.main,e[11]=R):R=e[11];let D;e[12]!==R?(D={backgroundColor:R,borderColor:"info.main"},e[12]=R,e[13]=D):D=e[13],l=D;break e}default:{let R;e[14]===Symbol.for("react.memo_cache_sentinel")?(R={backgroundColor:"divider",borderColor:"divider"},e[14]=R):R=e[14],l=R}}const c=l;let u;e[15]!==r.__REALTIME_TIMESTAMP?(u=mp(r.__REALTIME_TIMESTAMP),e[15]=r.__REALTIME_TIMESTAMP,e[16]=u):u=e[16];let d;e[17]!==u?(d=a.jsx(C_,{field:"TIMESTAMP",value:u,fontWeight:"600"}),e[17]=u,e[18]=d):d=e[18];let f;e[19]!==r.SYSLOG_IDENTIFIER?(f=a.jsx(C_,{field:"SYSLOG_IDENTIFIER",value:r.SYSLOG_IDENTIFIER}),e[19]=r.SYSLOG_IDENTIFIER,e[20]=f):f=e[20];let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(_e,{type:"caption",color:"text.secondary",children:"MESSAGE"}),e[21]=p):p=e[21];let m;e[22]!==c?(m={border:"1px solid",p:1,borderRadius:1,...c},e[22]=c,e[23]=m):m=e[23];let h;e[24]===Symbol.for("react.memo_cache_sentinel")?(h={fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},e[24]=h):h=e[24];let _;e[25]!==r.MESSAGE?(_=a.jsx(_e,{fontWeight:"inherit",fontSize:14,sx:h,children:r.MESSAGE}),e[25]=r.MESSAGE,e[26]=_):_=e[26];let g;e[27]!==m||e[28]!==_?(g=a.jsxs(te,{spacing:.1,children:[p,a.jsx(Vte,{sx:m,children:_})]}),e[27]=m,e[28]=_,e[29]=g):g=e[29];let y;e[30]!==n||e[31]!==r.__CURSOR?(y=n?null:$.urls.systemLogsCursorItem.replace(":cursor",r.__CURSOR),e[30]=n,e[31]=r.__CURSOR,e[32]=y):y=e[32];let b;e[33]!==r.__CURSOR||e[34]!==y?(b=a.jsx(C_,{field:"__CURSOR",value:r.__CURSOR,href:y}),e[33]=r.__CURSOR,e[34]=y,e[35]=b):b=e[35];let x;e[36]!==g||e[37]!==b||e[38]!==d||e[39]!==f?(x=a.jsxs(te,{nowrap:!0,children:[d,f,g,b]}),e[36]=g,e[37]=b,e[38]=d,e[39]=f,e[40]=x):x=e[40];let w;e[41]!==o?(w=o(Um.USER).map($3t),e[41]=o,e[42]=w):w=e[42];let C;e[43]!==w?(C=a.jsx(te,{nowrap:!0,children:w}),e[43]=w,e[44]=C):C=e[44];let k;e[45]!==o?(k=o(Um.TRUSTED).map(D3t),e[45]=o,e[46]=k):k=e[46];let A;e[47]!==k?(A=a.jsx(te,{nowrap:!0,children:k}),e[47]=k,e[48]=A):A=e[48];let P;e[49]!==o?(P=o(Um.ADDRESS).map(I3t),e[49]=o,e[50]=P):P=e[50];let T;e[51]!==P?(T=a.jsx(te,{nowrap:!0,children:P}),e[51]=P,e[52]=T):T=e[52];let j;return e[53]!==x||e[54]!==C||e[55]!==A||e[56]!==T?(j=a.jsxs(te,{spacing:1.5,nowrap:!0,divided:!0,children:[x,C,A,T]}),e[53]=x,e[54]=C,e[55]=A,e[56]=T,e[57]=j):j=e[57],j}function I3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function D3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function $3t(t){const[e,r]=t;return a.jsx(C_,{field:e,value:r},e)}function O3t(t){const e=he.c(6),{cursor:r}=t,{load:n,data:s}=gr();let i,o;e[0]!==r||e[1]!==n?(i=()=>{n($.urls.systemLogsCursorItem.replace(":cursor",r))},o=[n,r],e[0]=r,e[1]=n,e[2]=i,e[3]=o):(i=e[2],o=e[3]),I.useEffect(i,o);let l;return e[4]!==s?(l=a.jsx(zp,{children:s?a.jsx(Xpe,{entry:s.entries[0]}):a.jsx(te,{align:"center",justify:"center",fullHeight:!0,fullWidth:!0,children:a.jsx(Nc,{type:"circular",size:36})})}),e[4]=s,e[5]=l):l=e[5],l}function Jpe({data:t}){const e=ci(),r=Ye(),[n,s]=hl(),i=On(),o=n.getAll("field"),l=n.get("entries"),c=n.get("grep")||"",u=parseInt(l),[d,f]=I.useState(null),{drawerOpen:p}=Jt(),{pathname:m}=to(),h=m===$.urls.systemLogsFollow,[_,g]=I.useState(null),y=n.get("since"),b=n.get("until"),x=parseInt(n.get("skip")),w=I.useMemo(()=>Cie([...o,"PRIORITY","SYSLOG_IDENTIFIER"]),[o]),C=I.useCallback(R=>{s(D=>(D.set("entries",R.toString()),D))},[s]),k=I.useCallback(()=>{const R=mp(t[0].__REALTIME_TIMESTAMP),D=mp(t[t.length-1].__REALTIME_TIMESTAMP);Rie(JSON.stringify(t,null,2),`logs_${R}_${D}.txt`)},[t]),A=I.useCallback(R=>{const D=t[0],O=t[t.length-1];s(N=>{const F=parseInt(N.get("entries"));if(y||b){if(R===0&&N.set("skip","0"),R===1&&x>0){const U=Math.max(0,x-F);N.set("skip",`${U}`)}if(R===3)if(t.length===F){const U=x+F;N.set("skip",`${U}`)}else N.set("skip",`${x}`);R===4&&N.set("skip",`-${F}`)}else R===0&&(N.delete("cursor"),N.set("skip","0")),R===1&&(N.set("cursor",D.__CURSOR),N.set("skip",`-${F}`)),R===3&&(N.set("cursor",O.__CURSOR),N.set("skip","0")),R===4&&(N.delete("cursor"),N.set("skip",`-${F}`));return N})},[t,s,y,x,b]),P=I.useCallback(R=>{f(R.__CURSOR),p({width:600,title:r.formatMessage({id:"logs.log_details"}),content:()=>a.jsx(O3t,{cursor:R.__CURSOR}),onClose:()=>{f(null)}})},[p,r]),T=I.useMemo(()=>[{key:"__REALTIME_TIMESTAMP",label:"TIMESTAMP",cellRender:R=>{const D=mp(R.__REALTIME_TIMESTAMP);return a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace"},children:D})},width:"230",whiteSpace:"nowrap"},...w.map(R=>({key:R,label:R,cellRender:D=>a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace"},children:R==="PRIORITY"?q_(D[R]):D[R]})})),{key:"MESSAGE",label:"MESSAGE",minWidth:"600",cellRender:R=>a.jsx(te,{spacing:.5,className:"logs-cell-message",children:a.jsx(_e,{fontWeight:"inherit",fontSize:13,sx:{fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:R.MESSAGE})})}],[w]),j=I.useRef(null);return I.useEffect(()=>{(j.current===null||j.current>=98)&&h&&t&&!d&&_&&_.scrollTo({left:0,top:_.scrollHeight,behavior:"instant"})},[t,h,d,_]),I.useEffect(()=>{if(_)if(h)_.onscroll=()=>{Ji.setScrollRestore(_.scrollTop);const R=_.scrollTop/(_.scrollHeight-_.clientHeight)*100;j.current=isNaN(R)?null:R};else{const R=Ji.getScrollRestore();R&&(_.scrollTop=R)}},[h,_]),I.useEffect(()=>{t.length&&qce.highlightSearchTerm({search:c,selector:".logs-cell-message"})},[c,t]),a.jsx(Br,{containerRef:R=>{R&&g(R)},loading:i.state==="loading",autoScale:!0,data:t,dense:!0,columns:T,orderBy:"__REALTIME_TIMESTAMP",rowKey:"__CURSOR",rowsCount:h?t.length:u*5,page:2,rowsPerPage:u,showFirstLastButton:!0,rowsPerPageOptions:$.pageSizeOptions,onRowsPerPageChange:C,labelDisplayedRows:()=>`${t.length} Logs`,hidePagination:h,onRowClick:P,customFooterComponent:a.jsxs(te,{sx:{px:1,pb:.5},direction:"row",align:"center",children:[a.jsx(Ze,{startIcon:a.jsx(ge.Download,{}),text:r.formatMessage({id:"logs.download_logs"},{logs:t.length}),sx:{},onClick:k,variant:"text",size:"small"}),h&&a.jsx(_e,{type:"caption",fontWeight:"600",children:r.formatMessage({id:"logs.stream.buffer"},{buffer:u})})]}),customRowSx:R=>{const D=R.__CURSOR===d;let O="inherit";switch(q_(R.PRIORITY)){case ii.EMERGENCY:case ii.ALERT:case ii.CRITICAL:case ii.ERROR:O=Ic(e.palette.error.main,.1);break;case ii.WARNING:O=Ic(e.palette.warning.main,.1);break;case ii.DEBUG:O=Ic(e.palette.info.main,.1);break}return{backgroundColor:O,...D&&{backgroundColor:"divider"}}},onPageChange:A})}const Oee=Pr(),L3t=dr().shape({level:We().required(),exceptions:yr().of(dr().shape({enabled:li().required(),level:We().required(),rules:yr().of(dr().shape({field:We().required(Oee.formatMessage({id:"logs.config.form.exception.rules.field.error"})),values:yr().of(We()).min(1,Oee.formatMessage({id:"logs.config.form.exception.rules.values.error"}))})).min(1)}))});function N3t(t){const e=he.c(16),{service:r,config:n,fields:s}=t,i=Ye(),{submit:o,state:l,data:c}=gr(),[u,d]=I.useState(!1);let f;e[0]!==o?(f=g=>y=>{o({nf:g,logsConfig:y},{action:"system/logs/config/update",method:"POST",encType:"application/json"})},e[0]=o,e[1]=f):f=e[1];const p=f;let m;e[2]!==p||e[3]!==r?(m=p(r),e[2]=p,e[3]=r,e[4]=m):m=e[4];let h;e[5]!==c||e[6]!==u||e[7]!==s||e[8]!==i||e[9]!==r||e[10]!==l?(h=g=>{const{values:y,errors:b,getFieldMeta:x,setFieldValue:w}=g,C=y.exceptions?.length||0;return a.jsx(dn,{canWrite:as(ie.monitoring),children:a.jsx(xr,{elevation:2,title:C?a.jsxs(te,{direction:"row",align:"center",spacing:4,children:[a.jsx(_e,{type:"subtitle1",color:"text.secondary",children:r.toUpperCase()}),a.jsx(Iv,{variant:"standard",color:"error",badgeContent:a.jsx(_e,{type:"body2",noWrap:!0,children:`${C} exc.`})})]}):r.toUpperCase(),error:!!x(r).error,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"level",children:k=>{const{field:A,meta:P}=k;return a.jsx(qs,{...A,label:i.formatMessage({id:"logs.config.form.level"}),size:"small",error:!!P.error,helperText:P.error,children:SC.map(U3t)})}}),a.jsx(oi,{name:"exceptions",children:k=>{const{push:A,remove:P}=k,T=y.exceptions,j=()=>{d(!0),A({enabled:!0,level:ii.INFO,rules:[]})},R=N=>()=>{P(N)},D=()=>{w("exceptions",[])},O=N=>()=>{T&&N===T.length-1&&u&&d(!1)};return a.jsx(pr,{elevation:3,title:a.jsx(_e,{children:i.formatMessage({id:"logs.config.form.exceptions"})}),headerActionsComponent:a.jsxs(te,{direction:"row",children:[T&&T.length>0&&a.jsx(Ze,{variant:"outlined",size:"small",text:i.formatMessage({id:"logs.config.form.exceptions.clear"}),startIcon:a.jsx(ge.Clear,{}),disabled:l!=="idle",onClick:D}),a.jsx(Ze,{variant:"outlined",size:"small",text:i.formatMessage({id:"logs.config.form.exceptions.add"}),startIcon:a.jsx(ge.Add,{}),disabled:l!=="idle",onClick:j})]}),error:!!x("exceptions").error,children:a.jsx(Kt,{children:T&&T.length?a.jsx(Jn,{exclusive:!1,spacing:1,children:T.map((N,F)=>a.jsx(xr,{expanded:F===T.length-1&&u,onChange:O(F),elevation:4,title:i.formatMessage({id:"logs.config.form.exceptions.exception"},{index:F}),actionsComponent:a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{size:"small",disabled:l!=="idle",onClick:R(F),children:a.jsx(ge.Trash,{})})}),error:!!x(`exceptions.${F}`).error,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:`exceptions.${F}.enabled`,children:U=>{const{field:z}=U;return a.jsx(da,{label:i.formatMessage({id:"logs.config.form.exception.enabled"}),checked:z.value,onChange:(H,W)=>{w(z.name,W)}})}}),a.jsx(Ke,{name:`exceptions.${F}.level`,children:U=>{const{field:z,meta:H}=U;return a.jsx(qs,{...z,label:i.formatMessage({id:"logs.config.form.level"}),size:"small",error:!!H.error,helperText:H.error,children:SC.map(F3t)})}}),a.jsx(oi,{name:`exceptions.${F}.rules`,children:U=>{const{push:z,remove:H}=U,W=()=>{z({field:"",values:[]})},K=q=>()=>{H(q)};return a.jsxs(te,{children:[a.jsx(pr,{elevation:5,title:a.jsx(_e,{children:i.formatMessage({id:"logs.config.form.exception.rules"})}),headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"logs.config.form.exception.rules.add"}),variant:"outlined",size:"small",startIcon:a.jsx(ge.Add,{}),disabled:l!=="idle",onClick:W}),error:!!x(`exceptions.${F}.rules`).error,children:a.jsx(Kt,{children:a.jsx(te,{children:N.rules.length?N.rules.map((q,X)=>a.jsxs(te,{direction:"row",align:"flex-start",fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:`exceptions.${F}.rules.${X}.field`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(rn,{name:Y.name,value:Y.value,error:!!Z.error,helperText:Z.error,label:i.formatMessage({id:"logs.config.form.exception.rules.field"}),size:"small",freeSolo:!0,multiple:!1,options:s,onChange:(re,fe)=>{w(Y.name,fe||"")},sx:{flex:1}})}}),a.jsx(Ke,{name:`exceptions.${F}.rules.${X}.values`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(rn,{name:Y.name,value:Y.value||[],error:!!Z.error,helperText:Z.error,label:i.formatMessage({id:"logs.config.form.exception.rules.values"}),size:"small",freeSolo:!0,multiple:!0,options:[],onChange:(re,fe)=>{w(Y.name,fe)},sx:{flex:1}})}}),a.jsx(Mn,{title:i.formatMessage({id:"common.remove"}),children:a.jsx(Zr,{size:"small",onClick:K(X),disabled:l!=="idle",sx:{mt:"10px"},children:a.jsx(ge.Trash,{})})})]},X)):a.jsx(Lr,{message:i.formatMessage({id:"logs.config.form.exception.rules.no_data"}),sx:{backgroundColor:"divider"}})})})}),!!x(`exceptions.${F}.rules`).error&&a.jsx(_e,{type:"body2",color:"error.main",children:i.formatMessage({id:"logs.config.form.exception.rules.error"})})]})}})]})},F))}):a.jsx(Lr,{message:i.formatMessage({id:"logs.config.form.exceptions.no_data"}),sx:{backgroundColor:"divider"}})})})}}),a.jsx(Xr,{data:c}),a.jsx(te,{direction:"row",fullWidth:!0,children:a.jsx(Ze,{type:"submit",text:i.formatMessage({id:"common.save"}),loading:l!=="idle",disabled:!!b.exceptions||!as(ie.monitoring)})})]})},r)})},e[5]=c,e[6]=u,e[7]=s,e[8]=i,e[9]=r,e[10]=l,e[11]=h):h=e[11];let _;return e[12]!==n||e[13]!==m||e[14]!==h?(_=a.jsx(Wr,{validationSchema:L3t,initialValues:n,onSubmit:m,children:h}),e[12]=n,e[13]=m,e[14]=h,e[15]=_):_=e[15],_}function F3t(t){return a.jsx(En,{value:t,children:t},t)}function U3t(t){return a.jsx(En,{value:t,children:t},t)}function B3t(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(zp,{children:a.jsx(te,{spacing:2,children:[...Array(5)].map(z3t)})}),t[0]=e):e=t[0],e}function z3t(t,e){return a.jsx(Dt,{variant:"rounded",height:"56px"},e)}function q3t(){const t=he.c(6),e=Ye();let r,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={fontSize:"40px",color:"text.secondary"},n=a.jsx(ge.Config,{}),t[0]=r,t[1]=n):(r=t[0],n=t[1]);let s;t[2]!==e?(s=e.formatMessage({id:"logs.config.no_data"}),t[2]=e,t[3]=s):s=t[3];let i;return t[4]!==s?(i=a.jsxs(te,{fullHeight:!0,justify:"center",align:"center",spacing:1,sx:r,children:[n,a.jsx(_e,{type:"body1",children:s})]}),t[4]=s,t[5]=i):i=t[5],i}function V3t(){const t=he.c(7),{state:e,load:r,data:n}=gr();let s,i;t[0]!==n||t[1]!==r||t[2]!==e?(s=()=>{e==="idle"&&!n&&r("system/logs/config")},i=[r,n,e],t[0]=n,t[1]=r,t[2]=e,t[3]=s,t[4]=i):(s=t[3],i=t[4]),I.useEffect(s,i);let o;return t[5]!==n?(o=a.jsx(a.Fragment,{children:n?n.logsConfig.length?a.jsx(zp,{children:a.jsx(Jn,{exclusive:!0,spacing:2,children:n.logsConfig.map(H3t)})}):a.jsx(q3t,{}):a.jsx(B3t,{})}),t[5]=n,t[6]=o):o=t[6],o}function H3t(t){const{service:e,config:r,metadata:n}=t;return a.jsx(N3t,{service:e,config:r,fields:n},e)}function G3t(){const t=he.c(11),e=zn(),r=Ye(),{popoverOpen:n}=Jt();let s;t[0]!==r||t[1]!==n?(s=(d,f)=>n({anchorEl:d.currentTarget,anchorOrigin:{horizontal:"right",vertical:"bottom"},content:()=>a.jsxs(te,{spacing:.5,divided:!0,children:[a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.virtualization"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.virtualization})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.journal_begins"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:mp(f.cutoff_from_realtime)})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.journal_ends"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:mp(f.cutoff_to_realtime)})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.disk_usage"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:a7(parseInt(f.usage))})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.machine_id"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.machine_id})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{type:"caption",children:r.formatMessage({id:"logs.machine.boot_id"})}),a.jsx(_e,{type:"body2",fontWeight:600,children:f.boot_id})]})]})}),t[0]=r,t[1]=n,t[2]=s):s=t[2];const i=s;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Dt,{variant:"rectangular",width:"95px",height:"36px",sx:{borderRadius:"18px"}}),t[3]=o):o=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Tr,{}),t[4]=l):l=t[4];let c;t[5]!==i||t[6]!==r?(c=d=>a.jsx(Ze,{startIcon:a.jsx(ge.Host,{}),onClick:f=>{i(f,d)},variant:"outlined",text:r.formatMessage({id:"logs.machine.info"})}),t[5]=i,t[6]=r,t[7]=c):c=t[7];let u;return t[8]!==e.machine||t[9]!==c?(u=a.jsx(I.Suspense,{fallback:o,children:a.jsx(Qt,{resolve:e.machine,errorElement:l,children:c})}),t[8]=e.machine,t[9]=c,t[10]=u):u=t[10],u}function W3t(){const t=he.c(17),[,e]=hl(),{popoverClose:r}=Jt(),n=Ye(),{load:s,data:i,state:o}=gr();let l;t[0]!==r||t[1]!==e?(l=g=>{const{field:y}=g;r(),e(b=>(!!b.getAll("field").find(C=>{const[k]=C.split("=");return k===y})||b.append("field",y),b),{replace:!0})},t[0]=r,t[1]=e,t[2]=l):l=t[2];const c=l;let u;t[3]!==i?(u=[],i&&i.fields&&(i.fields.metadataFields.forEach((g,y)=>{u.push({label:g,value:g,divider:y===i.fields.metadataFields.length-1})}),i.fields.journalFields.forEach(g=>{u.push({label:g,value:g})})),t[3]=i,t[4]=u):u=t[4];const d=u;let f,p;t[5]!==s?(f=()=>{s($.urls.systemLogsFields)},p=[s],t[5]=s,t[6]=f,t[7]=p):(f=t[6],p=t[7]),I.useEffect(f,p);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m={field:""},t[8]=m):m=t[8];let h;t[9]!==o||t[10]!==n||t[11]!==d||t[12]!==r?(h=g=>{const{dirty:y,values:b}=g;return a.jsx(dn,{canWrite:as(ie.monitoring),children:a.jsxs(te,{spacing:2,sx:{minWidth:"240px"},children:[a.jsx(Ke,{name:"field",children:x=>{const{field:w,form:C}=x,{setFieldValue:k}=C;return a.jsx(rn,{...w,value:d.find(A=>{const{value:P}=A;return P===w.value}),size:"small",label:n.formatMessage({id:"logs.filter.field_name"}),options:d,loading:o!=="idle",multiple:!1,freeSolo:!0,onChange:(A,P)=>{P&&(typeof P=="string"?k(w.name,P):k(w.name,P.value))},onInputChange:(A,P)=>{k(w.name,P)}})}}),a.jsxs(te,{direction:"row",justify:"space-between",children:[a.jsx(Ze,{type:"button",size:"small",variant:"outlined",text:n.formatMessage({id:"logs.filter.cancel"}),onClick:r,disabled:!y||!b.field||!as(ie.monitoring)}),a.jsx(Ze,{type:"submit",disabled:!y||!b.field||!as(ie.monitoring),size:"small",text:n.formatMessage({id:"logs.filter.confirm"})})]})]})})},t[9]=o,t[10]=n,t[11]=d,t[12]=r,t[13]=h):h=t[13];let _;return t[14]!==c||t[15]!==h?(_=a.jsx(Wr,{initialValues:m,onSubmit:c,children:h}),t[14]=c,t[15]=h,t[16]=_):_=t[16],_}function Y3t(t,e,r=1){return Array.from({length:(e-t)/r+1},(n,s)=>t+s*r)}function H$(t){const e=he.c(66),{name:r,removable:n}=t,s=n===void 0?!0:n,i=`fetcher-fields-${r}`;let o;e[0]!==i?(o={key:i},e[0]=i,e[1]=o):o=e[1];const{load:l,data:c,state:u}=gr(o),[d,f]=hl();let p;e[2]!==d?(p=d.getAll("field"),e[2]=d,e[3]=p):p=e[3];const m=p,h=X3t;let _;e[4]!==f?(_=(J,me)=>{J==="PRIORITY"&&me&&(me=Y3t(0,+me).map(String)),f(pe=>(h(J,pe),me.length?(me=Array.isArray(me)?me:[me],me.forEach(Se=>{pe.append("field",`${J}=${Se}`)})):pe.append("field",J),pe))},e[4]=f,e[5]=_):_=e[5];const g=_;let y;e[6]!==r||e[7]!==f?(y=()=>{f(J=>(h(r,J),J))},e[6]=r,e[7]=f,e[8]=y):y=e[8];const b=y;let x;if(e[9]!==m||e[10]!==r){e:{let J;e[12]!==r?(J=Se=>{const[ve,xe]=z_(Se);return ve===r&&xe!==""},e[12]=r,e[13]=J):J=e[13];let me;e[14]!==r?(me=Se=>{const[,ve]=z_(Se);return{value:ve,label:r==="PRIORITY"?q_(ve):ve}},e[14]=r,e[15]=me):me=e[15];const pe=m.filter(J).map(me);if(r==="PRIORITY"){if(!pe?.length){x=null;break e}const Se=pe.map(Z3t),ve=Math.max(...Se);let xe;e[16]!==ve?(xe=ve.toString(),e[16]=ve,e[17]=xe):xe=e[17];let qe;e[18]!==ve?(qe=q_(ve.toString()),e[18]=ve,e[19]=qe):qe=e[19];let Le;e[20]!==xe||e[21]!==qe?(Le={value:xe,label:qe},e[20]=xe,e[21]=qe,e[22]=Le):Le=e[22],x=Le;break e}x=pe}e[9]=m,e[10]=r,e[11]=x}else x=e[11];const w=x;let C;e[23]===Symbol.for("react.memo_cache_sentinel")?(C=[],e[23]=C):C=e[23];const k=C;let A,P;e[24]!==l||e[25]!==r?(P=()=>{l($.urls.systemLogsFieldsName.replace(":field_name",r))},A=[l,r],e[24]=l,e[25]=r,e[26]=A,e[27]=P):(A=e[26],P=e[27]),I.useEffect(P,A);const[T,j]=I.useState(0);let R,D;e[28]!==r?(R=()=>{const J=document.querySelector(`.label-${r}-container`),me=document.querySelector(`.label-${r}-text`);me&&J&&(j(me.clientWidth),J.removeChild(me))},D=[r],e[28]=r,e[29]=R,e[30]=D):(R=e[29],D=e[30]),I.useEffect(R,D);const O=r==="PRIORITY"?170:`${T+47+(s?28:0)}px`;let N;e[31]!==O?(N={minWidth:O},e[31]=O,e[32]=N):N=e[32];const F=`label-${r}-container`;let U;e[33]===Symbol.for("react.memo_cache_sentinel")?(U={p:"0 4px 0 8px",opacity:0},e[33]=U):U=e[33];const z=`label-${r}-text`;let H;e[34]!==r||e[35]!==z?(H=a.jsx(_e,{sx:U,className:z,paragraph:!1,children:r}),e[34]=r,e[35]=z,e[36]=H):H=e[36];let W;e[37]!==F||e[38]!==H?(W=a.jsx("span",{className:F,children:H}),e[37]=F,e[38]=H,e[39]=W):W=e[39];const K=r!=="PRIORITY";let q;e[40]!==c?.fields||e[41]!==r?(q=r==="PRIORITY"?v4e:c?.fields.map(Q3t)||k,e[40]=c?.fields,e[41]=r,e[42]=q):q=e[42];const X=r==="PRIORITY"?"PRIORITY LEVEL":r,Q=u==="loading";let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y={color:"primary"},e[43]=Y):Y=e[43];let Z;e[44]!==r?(Z=wie.includes(r),e[44]=r,e[45]=Z):Z=e[45];const re=!Z;let fe;e[46]!==g||e[47]!==r?(fe=(J,me)=>{g(r,Array.isArray(me)?me.map(K3t):typeof me=="string"?me:me?.value??"")},e[46]=g,e[47]=r,e[48]=fe):fe=e[48];let de;e[49]===Symbol.for("react.memo_cache_sentinel")?(de={flex:"1 1 auto"},e[49]=de):de=e[49];let se;e[50]!==b||e[51]!==s?(se=s&&a.jsx(Zr,{onClick:J=>{J.stopPropagation(),b()},children:a.jsx(ge.Trash,{size:16})}),e[50]=b,e[51]=s,e[52]=se):se=e[52];let le;e[53]!==w||e[54]!==K||e[55]!==q||e[56]!==X||e[57]!==Q||e[58]!==re||e[59]!==fe||e[60]!==se?(le=a.jsx(rn,{multiple:K,options:q,label:X,size:"small",loading:Q,ChipProps:Y,freeSolo:re,value:w,onChange:fe,sx:de,endAdornment:se}),e[53]=w,e[54]=K,e[55]=q,e[56]=X,e[57]=Q,e[58]=re,e[59]=fe,e[60]=se,e[61]=le):le=e[61];let ee;return e[62]!==N||e[63]!==W||e[64]!==le?(ee=a.jsxs(te,{direction:"row",sx:N,nowrap:!0,spacing:0,align:"flex-start",children:[W,le]}),e[62]=N,e[63]=W,e[64]=le,e[65]=ee):ee=e[65],ee}function K3t(t){return typeof t=="string"?t:t.value}function Q3t(t){return{label:t,value:t}}function Z3t(t){const{value:e}=t;return+e}function X3t(t,e){e.set("skip","0"),e.delete("cursor");const r=e.getAll("field").filter(n=>{const[s]=n.split("=");return s!==t});e.delete("field"),r.forEach(n=>{e.append("field",n)})}function J3t(){const t=he.c(20),e=Ye(),[r]=hl(),{popoverOpen:n}=Jt();let s;t[0]!==r?(s=r.getAll("field"),t[0]=r,t[1]=s):s=t[1];const i=s;let o;t[2]!==i?(o=Cie([...i,"PRIORITY","SYSLOG_IDENTIFIER"]),t[2]=i,t[3]=o):o=t[3];const l=o;let c;t[4]!==n?(c=b=>{n({anchorEl:b.currentTarget,content:rAt})},t[4]=n,t[5]=c):c=t[5];const u=c;let d,f;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(H$,{name:"PRIORITY",removable:!1},"PRIORITY"),f=a.jsx(H$,{name:"SYSLOG_IDENTIFIER",removable:!1},"SYSLOG_IDENTIFIER"),t[6]=d,t[7]=f):(d=t[6],f=t[7]);let p;t[8]!==l?(p=l.filter(tAt).map(eAt),t[8]=l,t[9]=p):p=t[9];let m;t[10]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(ge.Add,{}),t[10]=m):m=t[10];let h;t[11]!==e?(h=e.formatMessage({id:"logs.filter.add"}),t[11]=e,t[12]=h):h=t[12];let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_={mt:"4px"},t[13]=_):_=t[13];let g;t[14]!==u||t[15]!==h?(g=a.jsx(Ze,{startIcon:m,variant:"outlined",text:h,onClick:u,sx:_}),t[14]=u,t[15]=h,t[16]=g):g=t[16];let y;return t[17]!==p||t[18]!==g?(y=a.jsxs(a.Fragment,{children:[d,f,p,g]}),t[17]=p,t[18]=g,t[19]=y):y=t[19],y}function eAt(t){return a.jsx(H$,{name:t},t)}function tAt(t){return!["SYSLOG_IDENTIFIER","PRIORITY"].includes(t)}function rAt(){return a.jsx(W3t,{})}function nAt(){const t=he.c(20),[e,r]=hl();let n;t[0]!==e?(n=e.get("grep")||"",t[0]=e,t[1]=n):n=t[1];const[s,i]=I.useState(n),o=I.useRef(null),l=Ye();let c;t[2]!==r?(c=b=>{const x=b.target.value;i(x),o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{r(w=>x?(w.set("grep",x),w.delete("cursor"),w.set("skip","0"),w):(w.delete("grep"),w),{replace:!0})},400)},t[2]=r,t[3]=c):c=t[3];const u=c;let d;t[4]!==r?(d=()=>{i(""),r(sAt,{replace:!0})},t[4]=r,t[5]=d):d=t[5];const f=d;let p;t[6]!==l?(p=l.formatMessage({id:"logs.grep.search"}),t[6]=l,t[7]=p):p=t[7];let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m={pr:1},t[8]=m):m=t[8];let h;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(te,{sx:m,align:"center",justify:"center",children:a.jsx(ge.Search,{})}),t[9]=h):h=t[9];let _;t[10]!==s||t[11]!==f?(_=s&&a.jsx(Zr,{size:"small",onClick:f,children:a.jsx(ge.Close,{size:16})}),t[10]=s,t[11]=f,t[12]=_):_=t[12];let g;t[13]!==_?(g={startAdornment:h,endAdornment:_},t[13]=_,t[14]=g):g=t[14];let y;return t[15]!==s||t[16]!==u||t[17]!==p||t[18]!==g?(y=a.jsx(dt,{value:s,size:"small",onChange:u,placeholder:p,InputProps:g}),t[15]=s,t[16]=u,t[17]=p,t[18]=g,t[19]=y):y=t[19],y}function sAt(t){return t.delete("grep"),t}function iAt(){const t=he.c(11),[e,r]=hl(),n=Ye(),{pathname:s}=to(),i=s===$.urls.systemLogsFollow,o=zn();let l;t[0]!==r?(l=(m,h)=>{r(_=>m?(_.set(h,m.toISOString()),_.delete("cursor"),_.set("skip","0"),_):(_.delete(h),_))},t[0]=r,t[1]=l):l=t[1];const c=l;if(i)return null;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(Dt,{variant:"rectangular",width:"95px",height:"36px",sx:{borderRadius:"18px"}}),t[2]=u):u=t[2];let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Tr,{}),t[3]=d):d=t[3];let f;t[4]!==c||t[5]!==n||t[6]!==e?(f=m=>a.jsx(te,{direction:"row",spacing:.5,children:["since","until"].map(h=>{let _=ai.utc(e.get(h));const g=h==="until"&&e.get("since")?ai(e.get("since")):ai.utc(mp(m.cutoff_from_realtime)),y=h==="since"&&e.get("until")?ai.utc(e.get("until")):ai.utc(mp(m.cutoff_to_realtime));return _.isValid()||(_=null),a.jsx(uL,{ampm:!1,label:n.formatMessage({id:`logs.realtime.${h}`}),value:_,minDateTime:g,maxDateTime:y,format:"YYYY-MM-DD HH:mm:ss",views:["year","month","day","hours","minutes","seconds"],timezone:"UTC",slotProps:{field:{clearable:!0},textField:{size:"small"},clearButton:{size:"small"},openPickerButton:{size:"small"}},onChange:b=>{c(b,h)}},h)})}),t[4]=c,t[5]=n,t[6]=e,t[7]=f):f=t[7];let p;return t[8]!==o.machine||t[9]!==f?(p=a.jsx(I.Suspense,{fallback:u,children:a.jsx(Qt,{resolve:o.machine,errorElement:d,children:f})}),t[8]=o.machine,t[9]=f,t[10]=p):p=t[10],p}function oAt(){const t=he.c(49),[e,r]=hl(),{drawerOpen:n}=Jt();let s;t[0]!==e?(s=Lue(e.get("boot")),t[0]=e,t[1]=s):s=t[1];const i=s,o=Ye(),l=ys(),{pathname:c}=to(),u=zn(),d=c===$.urls.systemLogsFollow;let f;t[2]!==r?(f=K=>{r(q=>(q.set("boot",String(K)),q.delete("cursor"),q.set("skip","0"),q))},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==n||t[5]!==o?(m=()=>{n({title:o.formatMessage({id:"logs.config"}),width:700,content:aAt})},t[4]=n,t[5]=o,t[6]=m):m=t[6];const h=m;let _;t[7]!==d||t[8]!==l?(_=()=>{const K=d?$.urls.systemLogsEntries:$.urls.systemLogsFollow,q=new URLSearchParams(window.location.search);l(`${K}?${q.toString()}`,{replace:!0})},t[7]=d,t[8]=l,t[9]=_):_=t[9];const g=_;let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y={mr:1},t[10]=y):y=t[10];let b;t[11]!==p?(b=(K,q)=>{p(q)},t[11]=p,t[12]=b):b=t[12];let x;t[13]!==i||t[14]!==b?(x=a.jsx(ti,{size:"small",checked:i,onChange:b}),t[13]=i,t[14]=b,t[15]=x):x=t[15];let w;t[16]!==o?(w=o.formatMessage({id:"logs.current_boot"}),t[16]=o,t[17]=w):w=t[17];let C;t[18]!==w?(C=a.jsx(_e,{type:"body2",children:w}),t[18]=w,t[19]=C):C=t[19];let k;t[20]!==x||t[21]!==C?(k=a.jsxs(te,{direction:"row",align:"center",spacing:.5,sx:y,children:[x,C]}),t[20]=x,t[21]=C,t[22]=k):k=t[22];let A;t[23]===Symbol.for("react.memo_cache_sentinel")?(A=a.jsx(G3t,{}),t[23]=A):A=t[23];let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Dt,{width:"111px",height:"36px",variant:"rectangular",sx:{borderRadius:"18px"}}),t[24]=P):P=t[24];let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=a.jsx(Tr,{}),t[25]=T):T=t[25];let j;t[26]!==h||t[27]!==o?(j=K=>a.jsx(Iv,{badgeContent:K&&a.jsx(_e,{type:"body2",children:`${K} exc.`}),color:"error",children:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Config,{}),text:o.formatMessage({id:"logs.config"}),onClick:h})}),t[26]=h,t[27]=o,t[28]=j):j=t[28];let R;t[29]!==u.exceptionsCount||t[30]!==j?(R=a.jsx(I.Suspense,{fallback:P,children:a.jsx(Qt,{resolve:u.exceptionsCount,errorElement:T,children:j})}),t[29]=u.exceptionsCount,t[30]=j,t[31]=R):R=t[31];let D;t[32]!==d?(D=d?a.jsx(ge.Stop,{}):a.jsx(ge.Play,{}),t[32]=d,t[33]=D):D=t[33];let O;t[34]!==o?(O=o.formatMessage({id:"logs.stream.follow"}),t[34]=o,t[35]=O):O=t[35];let N;t[36]!==g||t[37]!==D||t[38]!==O?(N=a.jsx(Ze,{startIcon:D,text:O,onClick:g}),t[36]=g,t[37]=D,t[38]=O,t[39]=N):N=t[39];let F;t[40]!==R||t[41]!==N||t[42]!==k?(F=a.jsx(hs,{children:a.jsxs(te,{direction:"row",align:"center",spacing:1,children:[k,A,R,N]})}),t[40]=R,t[41]=N,t[42]=k,t[43]=F):F=t[43];let U;t[44]===Symbol.for("react.memo_cache_sentinel")?(U={borderBottom:"1px solid",flex:"0 0 auto",borderColor:"divider"},t[44]=U):U=t[44];let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z={px:2,py:1},t[45]=z):z=t[45];let H;t[46]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(gt,{sx:U,children:a.jsxs(te,{direction:"row",align:"center",fullWidth:!0,sx:z,spacing:.5,children:[a.jsx(nAt,{}),a.jsx(iAt,{}),a.jsx(J3t,{})]})}),t[46]=H):H=t[46];let W;return t[47]!==F?(W=a.jsxs(a.Fragment,{children:[F,H]}),t[47]=F,t[48]=W):W=t[48],W}function aAt(){return a.jsx(V3t,{})}function lAt(t){const e=he.c(8),{entries:r}=t,[n]=hl();let s;e[0]!==n?(s=n.get("entries"),e[0]=n,e[1]=s):s=e[1];const o=parseInt(s),[l]=vie(r,o);let c;e[2]!==l[0]?(c=()=>{if(!l[0])return;const f=new URL(window.location.href);f.searchParams.set("cursor",l[0].__CURSOR),window.history.replaceState(null,"",f.href)},e[2]=l[0],e[3]=c):c=e[3];let u;e[4]!==l?(u=[l],e[4]=l,e[5]=u):u=e[5],I.useEffect(c,u);let d;return e[6]!==l?(d=a.jsx(Jpe,{data:l}),e[6]=l,e[7]=d):d=e[7],d}function cAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:uAt})}),t[2]=e.entries,t[3]=s):s=t[3],s}function uAt(t){return a.jsx(lAt,{entries:t})}function dAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:fAt})}),t[2]=e.entries,t[3]=s):s=t[3],s}function fAt(t){return a.jsx(Jpe,{data:t})}function pAt(){const t=he.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0],I.useEffect(mAt,e);let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(a.Fragment,{children:[a.jsx(oAt,{}),a.jsx(Bd,{})]}),t[1]=r):r=t[1],r}function mAt(){return hAt}function hAt(){Ji.deleteScrollRestore()}function gAt(){const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",sx:{height:"400px"}}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.entries?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.entries,errorElement:n,children:_At})}),t[2]=e.entries,t[3]=s):s=t[3],s}function _At(t){const e=t[0];return a.jsx(pr,{children:a.jsx(Kt,{children:a.jsx(Xpe,{entry:e,cursorAsTitle:!0})})})}const vAt=()=>{const t=he.c(64),e=Ye(),r=Gr(),{submit:n,state:s,json:i}=gr(),{submit:o,state:l,json:c}=gr(),{submit:u,state:d,json:f}=gr(),{submit:p,state:m,json:h}=gr(),{submit:_,state:g,json:y}=gr(),{confirmationDialogOpen:b}=Jt();let x;t[0]!==n?(x=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};n(le?{...ee,action:Bl.DISABLE}:{...ee,action:Bl.ENABLE},J)},t[0]=n,t[1]=x):x=t[1];const w=x;let C;t[2]!==o?(C=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};o(le?{...ee,action:Bl.DISABLE_AUTOSTART}:{...ee,action:Bl.ENABLE_AUTOSTART},J)},t[2]=o,t[3]=C):C=t[3];const k=C;let A;t[4]!==b||t[5]!==e||t[6]!==u?(A=(se,le)=>()=>{const ee={name:se},J={action:"management",method:"POST",encType:"application/json"};le===Tu.STOPPED?u({...ee,action:Bl.START},J):b({severity:"warning",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.stop"},{name:se.toUpperCase()}),onConfirm:()=>u({...ee,action:Bl.STOP},J)})},t[4]=b,t[5]=e,t[6]=u,t[7]=A):A=t[7];const P=A;let T;t[8]!==b||t[9]!==e||t[10]!==p?(T=se=>()=>{b({severity:"warning",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.restart"},{name:se.toUpperCase()}),onConfirm:()=>p({name:se,action:Bl.RESTART},{action:"management",method:"POST",encType:"application/json"})})},t[8]=b,t[9]=e,t[10]=p,t[11]=T):T=t[11];const j=T;let R;t[12]!==b||t[13]!==e||t[14]!==_?(R=se=>()=>{b({severity:"danger",title:e.formatMessage({id:"confirm_dialog.title"}),alertMessage:e.formatMessage({id:"service.dialog.message.reset"},{name:se.toUpperCase()}),onConfirm:()=>_({name:se,action:Bl.RESET},{action:"management",method:"POST",encType:"application/json"})})},t[12]=b,t[13]=e,t[14]=_,t[15]=R):R=t[15];const D=R;let O;t[16]!==e?(O=se=>[...se].sort((le,ee)=>e.formatMessage({id:`service.name.${le.name}`}).localeCompare(e.formatMessage({id:`service.name.${ee.name}`}))).sort(yAt),t[16]=e,t[17]=O):O=t[17];const N=O;let F;t[18]!==e?(F=e.formatMessage({id:"service.title.name"}),t[18]=e,t[19]=F):F=t[19];let U;t[20]!==e?(U=se=>{const{state:le,name:ee,readonly:J,backup:me,type:pe}=se;return a.jsxs(te,{direction:"row",sx:{alignItems:"center"},children:[a.jsx(Mn,{title:le===Tu.STARTED?e.formatMessage({id:"service.started"}):e.formatMessage({id:"service.stopped"}),children:a.jsx("div",{children:a.jsx(bi,{label:e.formatMessage({id:`service.name.${ee}`}),status:le===Tu.STARTED?nn.SUCCESS:nn.ERROR})})}),a.jsx(ms,{size:"small",label:e.formatMessage({id:`service.type.${pe}`}),sx:{fontWeight:"500"}}),J&&a.jsx(ms,{size:"small",label:e.formatMessage({id:"service.readonly"})}),me&&a.jsx(ms,{size:"small",label:e.formatMessage({id:"service.backup"})})]})},t[20]=e,t[21]=U):U=t[21];let z;t[22]!==F||t[23]!==U?(z={key:"name",label:F,cellRender:U},t[22]=F,t[23]=U,t[24]=z):z=t[24];let H;t[25]!==e?(H=e.formatMessage({id:"service.title.version"}),t[25]=e,t[26]=H):H=t[26];let W;t[27]!==H?(W={key:"version",label:H},t[27]=H,t[28]=W):W=t[28];let K;t[29]!==i||t[30]!==s||t[31]!==w||t[32]!==e?(K={key:"enabled",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J}=se;return a.jsx(a.Fragment,{children:!ee&&a.jsxs(te,{direction:"row",fullWidth:!0,align:"center",justify:"center",children:[_y(i)&&i.name===le&&s!=="idle"?a.jsx(te,{sx:{width:40},direction:"row",align:"center",justify:"center",children:a.jsx(Nc,{type:"circular",size:20})}):a.jsx(ti,{size:"small",checked:J,disabled:!Ue(ie.management)||ee,onChange:w(le,J)}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"service.status.enabled"})})]})})}},t[29]=i,t[30]=s,t[31]=w,t[32]=e,t[33]=K):K=t[33];let q;t[34]!==c||t[35]!==l||t[36]!==k||t[37]!==e?(q={key:"autostart",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J,autostart:me}=se;return a.jsx(a.Fragment,{children:!ee&&a.jsxs(te,{direction:"row",fullWidth:!0,align:"center",justify:"center",children:[_y(c)&&c.name===le&&l!=="idle"?a.jsx(te,{sx:{width:40},direction:"row",align:"center",justify:"center",children:a.jsx(Nc,{type:"circular",size:20})}):a.jsx(ti,{size:"small",checked:me,disabled:!Ue(ie.management)||ee||!J,onChange:k(le,me)}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"service.status.autostart"})})]})})}},t[34]=c,t[35]=l,t[36]=k,t[37]=e,t[38]=q):q=t[38];let X;t[39]!==D||t[40]!==j||t[41]!==P||t[42]!==e||t[43]!==y||t[44]!==g||t[45]!==h||t[46]!==m||t[47]!==f||t[48]!==d?(X={key:"actions",label:"",cellRender:se=>{const{name:le,readonly:ee,enabled:J,state:me,mgmt:pe}=se;return a.jsx(a.Fragment,{children:Ue(ie.management)&&!ee&&J&&a.jsxs(te,{direction:"row",align:"center",justify:"flex-end",nowrap:!0,spacing:1,children:[a.jsx(Mn,{title:me===Tu.STOPPED?e.formatMessage({id:"service.hint.start"}):e.formatMessage({id:"service.hint.stop"}),children:a.jsx(Ze,{variant:"text",loading:_y(f)&&f.name===le&&d!=="idle",startIcon:me===Tu.STOPPED?a.jsx(ge.Play,{}):a.jsx(ge.Stop,{}),onClick:P(le,me)})}),a.jsx(Mn,{title:e.formatMessage({id:"service.hint.restart"}),children:a.jsx(Ze,{variant:"text",startIcon:a.jsx(ge.Refresh,{}),onClick:j(le),loading:_y(h)&&h.name===le&&m!=="idle"})}),a.jsx(Mn,{title:e.formatMessage({id:"service.hint.reset"}),children:a.jsx(Ze,{variant:"text",startIcon:a.jsx(ge.Reset,{}),onClick:D(le),loading:_y(y)&&y.name===le&&g!=="idle",sx:{visibility:pe?"visible":"hidden"}})})]})})}},t[39]=D,t[40]=j,t[41]=P,t[42]=e,t[43]=y,t[44]=g,t[45]=h,t[46]=m,t[47]=f,t[48]=d,t[49]=X):X=t[49];let Q;t[50]!==W||t[51]!==K||t[52]!==q||t[53]!==X||t[54]!==z?(Q=[z,W,K,q,X],t[50]=W,t[51]=K,t[52]=q,t[53]=X,t[54]=z,t[55]=Q):Q=t[55];const Y=Q;let Z;t[56]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[56]=Z):Z=t[56];let re;t[57]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Tr,{}),t[57]=re):re=t[57];let fe;t[58]!==Y||t[59]!==N?(fe=se=>a.jsx(Br,{autoScale:!0,orderBy:"name",columns:Y,data:N(se),page:0,labelDisplayedRows:bAt,rowKey:"name",rowsCount:se.length,rowsPerPage:se.length,hidePagination:!0}),t[58]=Y,t[59]=N,t[60]=fe):fe=t[60];let de;return t[61]!==r.services||t[62]!==fe?(de=a.jsx(I.Suspense,{fallback:Z,children:a.jsx(Qt,{resolve:r.services,errorElement:re,children:fe})}),t[61]=r.services,t[62]=fe,t[63]=de):de=t[63],de};function yAt(t,e){return t.type===xC.NF&&e.type===xC.PS?-1:t.type===e.type?0:1}function bAt(){return""}var rp=(t=>(t.Status="status",t.Source="source",t.Info="info",t.Message="message",t.Step="step",t))(rp||{});function _8(t,e){return!!t.find(r=>r.type==="status"&&r.status===e)}function v8(t){return _8(t,"DONE")}function xAt(t){return v8(t)&&_8(t,"SUCCESS")}function SAt(t){return v8(t)&&_8(t,"FAILURE")}function wAt(t){const e=he.c(4),{status:r}=t;let n;e:switch(r){case"SUCCESS":{n="success";break e}case"FAILURE":{n="warning";break e}default:n="default"}const s=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={my:"4px",mx:2,fontSize:"13px"},e[0]=i):i=e[0];let o;return e[1]!==s||e[2]!==r?(o=a.jsx(ms,{size:"small",label:r,color:s,sx:i}),e[1]=s,e[2]=r,e[3]=o):o=e[3],o}function CAt(t){const e=he.c(3),{status:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px",px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(_e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function AAt(t){const e=he.c(3),{source:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px",px:2},e[0]=n):n=e[0];let s;return e[1]!==r?(s=a.jsx(_e,{sx:n,children:r}),e[1]=r,e[2]=s):s=e[2],s}function kAt(t){const e=he.c(7),{text:r,level:n}=t;let s;e:switch(+n){case 3:{s=PAt;break e}case 6:{s=MAt;break e}default:s="inherit"}const i=s;let o;e[0]!==i?(o=i&&{backgroundColor:i},e[0]=i,e[1]=o):o=e[1];let l;e[2]!==o?(l={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",...o,py:"2px",px:2},e[2]=o,e[3]=l):l=e[3];let c;return e[4]!==l||e[5]!==r?(c=a.jsx(_e,{sx:l,children:r}),e[4]=l,e[5]=r,e[6]=c):c=e[6],c}function MAt(t){return Ic(t.palette.info.main,.1)}function PAt(t){return Ic(t.palette.error.main,.1)}function jAt(t){const e=he.c(19),{name:r,step:n,percent:s,number:i}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={px:2},e[0]=o):o=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={fontSize:"13px",fontFamily:"'Source Code Pro', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all",py:"2px"},e[1]=l):l=e[1];let c;e[2]!==r||e[3]!==i||e[4]!==n?(c=a.jsxs(_e,{sx:l,children:["Step ",n," of ",i," - ",r]}),e[2]=r,e[3]=i,e[4]=n,e[5]=c):c=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u={width:"80px"},e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d={width:"100%",color:"text.secondary"},e[7]=d):d=e[7];const f=+s;let p;e[8]!==f?(p=a.jsx(gt,{sx:d,children:a.jsx(Nc,{type:"linear",variant:"determinate",color:"inherit",thickness:2,value:f})}),e[8]=f,e[9]=p):p=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m={fontSize:"13px"},e[10]=m):m=e[10];const h=`${+s}%`;let _;e[11]!==h?(_=a.jsx(_e,{sx:m,children:h}),e[11]=h,e[12]=_):_=e[12];let g;e[13]!==_||e[14]!==p?(g=a.jsxs(te,{direction:"row",nowrap:!0,align:"center",spacing:1,sx:u,children:[p,_]}),e[13]=_,e[14]=p,e[15]=g):g=e[15];let y;return e[16]!==g||e[17]!==c?(y=a.jsxs(te,{direction:"row",justify:"space-between",align:"center",sx:o,children:[c,g]}),e[16]=g,e[17]=c,e[18]=y):y=e[18],y}function TAt({logs:t,sx:e}){const r=Ye(),n=I.useRef(null);return I.useEffect(()=>{n.current&&n.current.scrollTo({behavior:"instant",top:n.current.scrollHeight})},[n.current?.scrollHeight,t]),a.jsx(pr,{title:r.formatMessage({id:"software_update.panel.logs.title"}),sx:e,children:a.jsx(te,{spacing:0,ref:n,divided:!0,nowrap:!0,sx:{height:"100%",overflow:"auto",backgroundColor:s=>s.palette.background.paper},children:t.map((s,i)=>{switch(s.type){case rp.Status:return a.jsx(wAt,{status:s.status},i);case rp.Source:return a.jsx(CAt,{status:s.status},i);case rp.Info:return a.jsx(AAt,{source:s.source},i);case rp.Message:return a.jsx(kAt,{text:s.text,level:s.level},i);case rp.Step:default:return a.jsx(jAt,{name:s.name,number:s.number,percent:s.percent,step:s.step},i)}})})})}function EAt(t){const e=he.c(6),{status:r}=t;switch(r){case"SUCCESS":{let n;return e[0]!==r?(n=a.jsx(ms,{label:r,color:"success"}),e[0]=r,e[1]=n):n=e[1],n}case"FAILURE":{let n;return e[2]!==r?(n=a.jsx(ms,{label:r,color:"error"}),e[2]=r,e[3]=n):n=e[3],n}default:{let n;return e[4]!==r?(n=a.jsx(ms,{label:r}),e[4]=r,e[5]=n):n=e[5],n}}}function RAt(t){const e=he.c(33),{logs:r,sx:n}=t,s=Ye(),[i,o]=I.useState(0),[l,c]=I.useState(0),[u,d]=I.useState(0),[f,p]=I.useState("");let m,h;e[0]!==r?(m=()=>{const O=r.filter(DAt);if(O.length){const N={};O.forEach(z=>{const{percent:H,step:W}=z;N[+W]?+H>N[+W]&&(N[+W]=+H):N[+W]=+H});const F=O[O.length-1];let U=0;for(const z in N)U=U+N[z]/+F.number;d(Math.round(U)),p(F.name),o(+F.step),c(+F.number)}},h=[r],e[0]=r,e[1]=m,e[2]=h):(m=e[1],h=e[2]),I.useEffect(m,h);let _;e:{let O;e[3]!==r?(O=r.filter(IAt),e[3]=r,e[4]=O):O=e[4];const N=O,F=N[N.length-1];if(F){_=F.status;break e}_=void 0}const g=_;let y;e[5]!==s?(y=s.formatMessage({id:"software_update.panel.status.title"}),e[5]=s,e[6]=y):y=e[6];let b;e[7]!==g?(b=g&&a.jsx(EAt,{status:g}),e[7]=g,e[8]=b):b=e[8];let x;e[9]!==b?(x=a.jsx(a.Fragment,{children:b}),e[9]=b,e[10]=x):x=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={flex:1},e[11]=w):w=e[11];let C;e[12]!==u?(C=a.jsx(gt,{sx:w,children:a.jsx(Nc,{type:"linear",variant:"determinate",thickness:6,value:u})}),e[12]=u,e[13]=C):C=e[13];const k=`${u}%`;let A;e[14]!==k?(A=a.jsx(_e,{fontSize:"1.2rem",children:k}),e[14]=k,e[15]=A):A=e[15];let P;e[16]!==A||e[17]!==C?(P=a.jsx(te,{spacing:2,children:a.jsxs(te,{direction:"row",align:"center",children:[C,A]})}),e[16]=A,e[17]=C,e[18]=P):P=e[18];let T;e[19]!==f?(T=a.jsx(gt,{component:"span",fontWeight:"600",children:f}),e[19]=f,e[20]=T):T=e[20];let j;e[21]!==i||e[22]!==T||e[23]!==l?(j=a.jsxs(_e,{children:["Step ",i," of ",l," -"," ",T]}),e[21]=i,e[22]=T,e[23]=l,e[24]=j):j=e[24];let R;e[25]!==P||e[26]!==j?(R=a.jsx(Kt,{children:a.jsxs(te,{children:[P,j]})}),e[25]=P,e[26]=j,e[27]=R):R=e[27];let D;return e[28]!==n||e[29]!==R||e[30]!==y||e[31]!==x?(D=a.jsx(pr,{title:y,headerActionsComponent:x,sx:n,children:R}),e[28]=n,e[29]=R,e[30]=y,e[31]=x,e[32]=D):D=e[32],D}function IAt(t){return t.type===rp.Status&&t.status!=="DONE"}function DAt(t){return t.type===rp.Step}function eme(t){const e=he.c(29),{status:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=ys();let o;e[0]!==s?(o=()=>{s()},e[0]=s,e[1]=o):o=e[1];const l=o;let c;e[2]!==s||e[3]!==i?(c=()=>{i($.urls.home),s()},e[2]=s,e[3]=i,e[4]=c):c=e[4];const u=c;let d;e:{switch(r){case"SUCCESS":{let b;e[5]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.success"}),e[5]=n,e[6]=b):b=e[6],d=b;break e}case"FAILED":{let b;e[7]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.failed"}),e[7]=n,e[8]=b):b=e[8],d=b;break e}case"UNKNOWN":{let b;e[9]!==n?(b=n.formatMessage({id:"software_update.dialog.completed.content.unknown"}),e[9]=n,e[10]=b):b=e[10],d=b;break e}}d=void 0}const f=d;let p;e[11]!==f?(p=a.jsx(yv,{children:a.jsx(_e,{children:f})}),e[11]=f,e[12]=p):p=e[12];let m;e[13]!==n||e[14]!==r?(m=r==="FAILED"?n.formatMessage({id:"common.form.cancel"}):n.formatMessage({id:"common.form.close"}),e[13]=n,e[14]=r,e[15]=m):m=e[15];let h;e[16]!==l||e[17]!==m?(h=a.jsx(Ze,{text:m,variant:"outlined",onClick:l}),e[16]=l,e[17]=m,e[18]=h):h=e[18];let _;e[19]!==u||e[20]!==n||e[21]!==r?(_=r!=="FAILED"&&a.jsx(Ze,{text:n.formatMessage({id:"software_update.dialog.action.home"}),variant:"contained",onClick:u}),e[19]=u,e[20]=n,e[21]=r,e[22]=_):_=e[22];let g;e[23]!==h||e[24]!==_?(g=a.jsxs(vv,{children:[h,_]}),e[23]=h,e[24]=_,e[25]=g):g=e[25];let y;return e[26]!==p||e[27]!==g?(y=a.jsxs(a.Fragment,{children:[p,g]}),e[26]=p,e[27]=g,e[28]=y):y=e[28],y}function $At(t){const e=he.c(26),{sx:r}=t,n=Ye(),{dialogOpen:s,dialogClose:i}=Jt(),o=ys();let l;e[0]!==i||e[1]!==s||e[2]!==n||e[3]!==o?(l=()=>{s({title:n.formatMessage({id:"software_update.form.title"}),content:()=>a.jsx(bx,{action:$.urls.systemUpgradeUpload_Action,min:1,max:1,filesLabel:n.formatMessage({id:"software_update.form.file"}),accept:{"application/octet-stream":[".swu",".SWU"]},requiredMessage:n.formatMessage({id:"software_update.form.file.required"}),description:n.formatMessage({id:"software_update.form.description"}),extraContent:a.jsxs(te,{spacing:2,children:[a.jsx(Lr,{severity:"warning",title:n.formatMessage({id:"software_update.alert.title"}),message:n.formatMessage({id:"software_update.alert.description"}),action:a.jsx(Ze,{size:"small",variant:"outlined",text:n.formatMessage({id:"software_update.alert.action"}),onClick:()=>{i(),o($.urls.systemBackup)}})}),a.jsx(Lr,{severity:"info",title:n.formatMessage({id:"software_update.alert.warning"})})]})})})},e[0]=i,e[1]=s,e[2]=n,e[3]=o,e[4]=l):l=e[4];const c=l;let u;e[5]!==n?(u=n.formatMessage({id:"software_update.panel.upload.title"}),e[5]=n,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d={height:"100%"},e[7]=d):d=e[7];let f;e[8]!==n?(f=n.formatMessage({id:"software_update.panel.upload.description"}),e[8]=n,e[9]=f):f=e[9];let p;e[10]!==f?(p=a.jsx(_e,{children:f}),e[10]=f,e[11]=p):p=e[11];let m;e[12]!==n?(m=n.formatMessage({id:"software_update.button.upload"}),e[12]=n,e[13]=m):m=e[13];let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(ge.Upload,{}),e[14]=h):h=e[14];let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_={alignSelf:"flex-start"},e[15]=_):_=e[15];let g;e[16]!==c||e[17]!==m?(g=a.jsx(Ze,{text:m,startIcon:h,onClick:c,sx:_}),e[16]=c,e[17]=m,e[18]=g):g=e[18];let y;e[19]!==p||e[20]!==g?(y=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,justify:"space-between",sx:d,children:[p,g]})}),e[19]=p,e[20]=g,e[21]=y):y=e[21];let b;return e[22]!==r||e[23]!==y||e[24]!==u?(b=a.jsx(pr,{title:u,sx:r,children:y}),e[22]=r,e[23]=y,e[24]=u,e[25]=b):b=e[25],b}function OAt(t){const e=he.c(11),{streamResponse:r}=t,n=Ye(),{dialogOpen:s,confirmationSimpleDialogOpen:i}=Jt(),[o,l]=vie(r),{submit:c}=gr();let u,d;e[0]!==i||e[1]!==s||e[2]!==n||e[3]!==o||e[4]!==l||e[5]!==c?(u=()=>{const m=v8(o),h=xAt(o),_=SAt(o);h?i({onConfirm:()=>{c(null,{action:$.urls.restart,encType:"application/json",method:"POST"})},confirmText:n.formatMessage({id:"software_update.dialog.completed.content.success.action"}),title:n.formatMessage({id:"software_update.dialog.completed.title.success"}),description:n.formatMessage({id:"software_update.dialog.completed.content.success"})}):_?s({title:n.formatMessage({id:"software_update.dialog.completed.title.failed"}),content:NAt}):m&&s({content:LAt}),(h||_||m)&&l()},d=[i,s,n,o,l,c],e[0]=i,e[1]=s,e[2]=n,e[3]=o,e[4]=l,e[5]=c,e[6]=u,e[7]=d):(u=e[6],d=e[7]),I.useEffect(u,d);let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={height:"100%",overflow:"hidden"},e[8]=f):f=e[8];let p;return e[9]!==o?(p=a.jsx(te,{spacing:2,sx:f,children:o.length>0?a.jsxs(a.Fragment,{children:[a.jsx(RAt,{logs:o,sx:{flex:0}}),a.jsx(TAt,{logs:o,sx:{height:"100%",overflow:"hidden",flex:1}})]}):a.jsx($At,{sx:{flex:0}})}),e[9]=o,e[10]=p):p=e[10],p}function LAt(){return a.jsx(eme,{status:"UNKNOWN"})}function NAt(){return a.jsx(eme,{status:"FAILED"})}const FAt=()=>{const t=he.c(4),e=zn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Dt,{variant:"rounded",width:"100%",height:"183px"}),t[0]=r):r=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Tr,{}),t[1]=n):n=t[1];let s;return t[2]!==e.logsStream?(s=a.jsx(I.Suspense,{fallback:r,children:a.jsx(Qt,{resolve:e.logsStream,errorElement:n,children:UAt})}),t[2]=e.logsStream,t[3]=s):s=t[3],s};function UAt(t){return a.jsx(OAt,{streamResponse:t})}function BAt(){const t=he.c(6),e=Ye();let r,n;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={fontSize:"40px",color:"text.secondary"},n=a.jsx(ge.DocumentMissing,{}),t[0]=r,t[1]=n):(r=t[0],n=t[1]);let s;t[2]!==e?(s=e.formatMessage({id:"terminal.drawer.files.message.noData"}),t[2]=e,t[3]=s):s=t[3];let i;return t[4]!==s?(i=a.jsxs(te,{fullHeight:!0,justify:"center",align:"center",spacing:1,sx:r,children:[n,a.jsx(_e,{type:"body1",children:s})]}),t[4]=s,t[5]=i):i=t[5],i}function zAt(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(te,{spacing:2,children:[...Array(5)].map(qAt)}),t[0]=e):e=t[0],e}function qAt(t,e){return a.jsxs(te,{direction:"row",justify:"space-between",align:"center",spacing:2,children:[a.jsx(Dt,{variant:"rounded",sx:{flex:1}}),a.jsx(Dt,{variant:"circular",width:"40px",height:"40px"})]},e)}function VAt(){const t=he.c(4),e=Ye();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={to:"system/terminal/list"},t[0]=r):r=t[0];const{data:n}=Dv(r),s=HAt;let i;return t[1]!==n||t[2]!==e?(i=a.jsx(zp,{children:n?a.jsxs(a.Fragment,{children:[a.jsx(te,{divided:!0,children:n.files.map(o=>a.jsxs(te,{direction:"row",justify:"space-between",align:"center",nowrap:!0,children:[a.jsxs(te,{direction:"row",nowrap:!0,align:"center",spacing:2,children:[a.jsx(ge.Document,{}),a.jsx(_e,{children:o})]}),a.jsx(Mn,{title:e.formatMessage({id:"terminal.drawer.files.download.tooltip"}),placement:"left",children:a.jsx("div",{children:a.jsx(Zr,{onClick:s(o),size:"small",children:a.jsx(ge.Download,{})})})})]},o))}),!n.files.length&&a.jsx(BAt,{})]}):a.jsx(zAt,{})}),t[1]=n,t[2]=e,t[3]=i):i=t[3],i}function HAt(t){return()=>{c7(`${$.apis.pls.terminal.files}/${t}`,t)}}const GAt=()=>{const t=he.c(17),e=Ye(),{drawerOpen:r}=Jt(),[n,s]=I.useState();let i,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const g=()=>{s(Ji.getSiteNode())};return addEventListener("node-change",g),()=>{removeEventListener("node-change",g)}},o=[],t[0]=i,t[1]=o):(i=t[0],o=t[1]),I.useEffect(i,o);let l;t[2]!==r||t[3]!==e?(l=()=>{r({title:e.formatMessage({id:"terminal.drawer.files.title"}),content:WAt,width:600})},t[2]=r,t[3]=e,t[4]=l):l=t[4];const c=l;let u;t[5]!==e?(u=e.formatMessage({id:"terminal.toolbar.files"}),t[5]=e,t[6]=u):u=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ge.Folder,{}),t[7]=d):d=t[7];let f;t[8]!==c||t[9]!==u?(f=a.jsx(hs,{children:a.jsx(Ze,{variant:"outlined",text:u,startIcon:d,onClick:c})}),t[8]=c,t[9]=u,t[10]=f):f=t[10];const p=`/webconsole${n?`?x-ath-node=${n}`:""}`;let m;t[11]===Symbol.for("react.memo_cache_sentinel")?(m={flex:1,border:"none",backgroundColor:"transparent"},t[11]=m):m=t[11];let h;t[12]!==p?(h=a.jsx("iframe",{title:"terminal",src:p,style:m}),t[12]=p,t[13]=h):h=t[13];let _;return t[14]!==f||t[15]!==h?(_=a.jsxs(a.Fragment,{children:[f,h]}),t[14]=f,t[15]=h,t[16]=_):_=t[16],_};function WAt(){return a.jsx(VAt,{})}const qy=Pr(),YAt={start_at:"",end_at:"",include_logs:!0,include_metrics:!0},KAt=dr().shape({start_at:eU().required(qy.formatMessage({id:"validation.required"})),end_at:eU().when("start_at",(t,e)=>t&&e.min(t,qy.formatMessage({id:"troubleshoot_dump.form.end_at.validation"}))).required(qy.formatMessage({id:"validation.required"})),include_logs:li().required(qy.formatMessage({id:"validation.required"})),include_metrics:li().required(qy.formatMessage({id:"validation.required"}))});function Lee(t){const e=he.c(17),{label:r,value:n,disabled:s,error:i,onChange:o}=t;let l;e[0]!==n?(l=n?ai(n):null,e[0]=n,e[1]=l):l=e[1];let c,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["year","month","day","hours","minutes"],u={clearable:!0},e[2]=c,e[3]=u):(c=e[2],u=e[3]);const d=!!i;let f;e[4]!==i||e[5]!==d?(f={size:"small",error:d,helperText:i},e[4]=i,e[5]=d,e[6]=f):f=e[6];let p,m;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={size:"small"},m={size:"small"},e[7]=p,e[8]=m):(p=e[7],m=e[8]);let h;e[9]!==f?(h={field:u,textField:f,clearButton:p,openPickerButton:m},e[9]=f,e[10]=h):h=e[10];let _;return e[11]!==s||e[12]!==r||e[13]!==o||e[14]!==l||e[15]!==h?(_=a.jsx(uL,{ampm:!1,label:r,value:l,format:"YYYY-MM-DD HH:mm",views:c,slotProps:h,onChange:o,disabled:s}),e[11]=s,e[12]=r,e[13]=o,e[14]=l,e[15]=h,e[16]=_):_=e[16],_}function QAt(){const t=he.c(49),{upsertFetcher:e}=Ys(),{submit:r,data:n,state:s}=e,i=Ye(),{dialogClose:o}=Jt();let l;t[0]!==r?(l=D=>{r(D,{action:$.urls.systemTroubleshootDumpCreate_Action,method:"POST",encType:"application/json"})},t[0]=r,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=Ue([ie.management]),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==s?(d=a.jsx(Ke,{name:"start_at",children:D=>{const{field:O,meta:N,form:F}=D,{setFieldValue:U}=F;return a.jsx(Lee,{label:i.formatMessage({id:"troubleshoot_dump.form.start_at"}),value:O.value,onChange:z=>{U(O.name,z?.toISOString())},error:N.error,disabled:s!=="idle"})}}),t[3]=i,t[4]=s,t[5]=d):d=t[5];let f;t[6]!==i||t[7]!==s?(f=a.jsx(Ke,{name:"end_at",children:D=>{const{field:O,meta:N,form:F}=D,{setFieldValue:U}=F;return a.jsx(Lee,{label:i.formatMessage({id:"troubleshoot_dump.form.end_at"}),value:O.value,onChange:z=>{U(O.name,z?.toISOString())},error:N.error,disabled:s!=="idle"})}}),t[6]=i,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==d||t[10]!==f?(p=a.jsxs(te,{spacing:2,children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]!==i||t[13]!==s?(m=a.jsx(Ke,{name:"include_logs",children:D=>{const{field:O,form:N}=D,{setFieldValue:F}=N;return a.jsx(da,{label:i.formatMessage({id:"troubleshoot_dump.form.include_logs"}),checked:O.value,onChange:(U,z)=>{F(O.name,z)},disabled:s!=="idle"})}}),t[12]=i,t[13]=s,t[14]=m):m=t[14];let h;t[15]!==i||t[16]!==s?(h=a.jsx(Ke,{name:"include_metrics",children:D=>{const{field:O,form:N}=D,{setFieldValue:F}=N;return a.jsx(da,{label:i.formatMessage({id:"troubleshoot_dump.form.include_metrics"}),checked:O.value,onChange:(U,z)=>{F(O.name,z)},disabled:s!=="idle"})}}),t[15]=i,t[16]=s,t[17]=h):h=t[17];let _;t[18]!==m||t[19]!==h?(_=a.jsxs(te,{spacing:0,children:[m,h]}),t[18]=m,t[19]=h,t[20]=_):_=t[20];let g;t[21]!==n?(g=a.jsx(Xr,{data:n}),t[21]=n,t[22]=g):g=t[22];let y;t[23]!==p||t[24]!==_||t[25]!==g?(y=a.jsx(_s,{children:a.jsxs(te,{spacing:1,align:"start",children:[p,_,g]})}),t[23]=p,t[24]=_,t[25]=g,t[26]=y):y=t[26];let b;t[27]!==i?(b=i.formatMessage({id:"common.form.cancel"}),t[27]=i,t[28]=b):b=t[28];let x;t[29]!==o?(x=()=>o(),t[29]=o,t[30]=x):x=t[30];const w=s!=="idle";let C;t[31]!==b||t[32]!==x||t[33]!==w?(C=a.jsx(Ze,{text:b,variant:"outlined",onClick:x,disabled:w}),t[31]=b,t[32]=x,t[33]=w,t[34]=C):C=t[34];let k;t[35]!==i?(k=i.formatMessage({id:"troubleshoot_dump.form.submit"}),t[35]=i,t[36]=k):k=t[36];const A=s!=="idle";let P;t[37]!==k||t[38]!==A?(P=a.jsx(Ze,{text:k,type:"submit",disabled:A}),t[37]=k,t[38]=A,t[39]=P):P=t[39];let T;t[40]!==C||t[41]!==P?(T=a.jsxs(Ti,{children:[C,P]}),t[40]=C,t[41]=P,t[42]=T):T=t[42];let j;t[43]!==y||t[44]!==T?(j=a.jsxs(dn,{canWrite:u,children:[y,T]}),t[43]=y,t[44]=T,t[45]=j):j=t[45];let R;return t[46]!==c||t[47]!==j?(R=a.jsx(Wr,{initialValues:YAt,validationSchema:KAt,onSubmit:c,children:j}),t[46]=c,t[47]=j,t[48]=R):R=t[48],R}function ZAt(){const t=he.c(62),e=Gr(),{submit:r,state:n}=gr(),{dialogOpen:s,confirmationSimpleDialogOpen:i}=Jt(),o=Ye();let l;t[0]!==s||t[1]!==o?(l=()=>{s({title:o.formatMessage({id:"troubleshoot_dump.form.title"}),content:okt})},t[0]=s,t[1]=o,t[2]=l):l=t[2];const c=l;let u;t[3]!==o?(u=o.formatMessage({id:"troubleshoot_dump.table.action_id"}),t[3]=o,t[4]=u):u=t[4];let d;t[5]!==u?(d={key:"action_id",label:u},t[5]=u,t[6]=d):d=t[6];let f;t[7]!==o?(f=o.formatMessage({id:"troubleshoot_dump.table.status"}),t[7]=o,t[8]=f):f=t[8];let p;t[9]!==f?(p={key:"status",label:f,cellRender:ikt},t[9]=f,t[10]=p):p=t[10];let m;t[11]!==o?(m=o.formatMessage({id:"troubleshoot_dump.table.start_at"}),t[11]=o,t[12]=m):m=t[12];let h;t[13]!==m?(h={key:"start_at",label:m,cellRender:skt},t[13]=m,t[14]=h):h=t[14];let _;t[15]!==o?(_=o.formatMessage({id:"troubleshoot_dump.table.end_at"}),t[15]=o,t[16]=_):_=t[16];let g;t[17]!==_?(g={key:"end_at",label:_,cellRender:nkt},t[17]=_,t[18]=g):g=t[18];let y;t[19]!==o?(y=o.formatMessage({id:"troubleshoot_dump.table.created_at"}),t[19]=o,t[20]=y):y=t[20];let b;t[21]!==y?(b={key:"created_at",label:y,cellRender:rkt},t[21]=y,t[22]=b):b=t[22];let x;t[23]!==o?(x=o.formatMessage({id:"troubleshoot_dump.table.size"}),t[23]=o,t[24]=x):x=t[24];let w;t[25]!==x?(w={key:"size",label:x,cellRender:tkt},t[25]=x,t[26]=w):w=t[26];let C;t[27]!==b||t[28]!==w||t[29]!==d||t[30]!==p||t[31]!==h||t[32]!==g?(C=[d,p,h,g,b,w],t[27]=b,t[28]=w,t[29]=d,t[30]=p,t[31]=h,t[32]=g,t[33]=C):C=t[33];const k=C;let A;t[34]!==o?(A=o.formatMessage({id:"troubleshoot_dump.table.actions.download"}),t[34]=o,t[35]=A):A=t[35];let P;t[36]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(ge.Download,{}),t[36]=P):P=t[36];let T;t[37]!==A?(T={label:A,icon:P,onClick:ekt},t[37]=A,t[38]=T):T=t[38];let j;t[39]!==o?(j=o.formatMessage({id:"troubleshoot_dump.table.actions.delete"}),t[39]=o,t[40]=j):j=t[40];let R;t[41]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(ge.Trash,{}),t[41]=R):R=t[41];let D;t[42]!==i||t[43]!==o||t[44]!==r?(D=W=>{const{action_id:K}=W;i({title:o.formatMessage({id:"troubleshoot_dump.dialog.delete.title"}),description:o.formatMessage({id:"troubleshoot_dump.dialog.delete.description"},{id:K}),onConfirm:()=>{r({id:K},{action:$.urls.systemTroubleshootDumpDelete_Action,method:"POST",encType:"application/json"})}})},t[42]=i,t[43]=o,t[44]=r,t[45]=D):D=t[45];let O;t[46]!==j||t[47]!==D?(O={label:j,icon:R,onClick:D},t[46]=j,t[47]=D,t[48]=O):O=t[48];let N;t[49]!==T||t[50]!==O?(N=[T,O],t[49]=T,t[50]=O,t[51]=N):N=t[51];const F=N;let U;t[52]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",width:"100%",height:"400px"}),t[52]=U):U=t[52];let z;t[53]!==k||t[54]!==c||t[55]!==o||t[56]!==F||t[57]!==n?(z=W=>{if(W.length>0){const K=W.some(JAt);return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{variant:"contained",text:o.formatMessage({id:"troubleshoot_dump.toolbar.dump"}),startIcon:a.jsx(ge.Add,{}),onClick:c,disabled:K})}),a.jsx(Br,{autoScale:!0,orderBy:"created_at",columns:k,data:W,page:0,labelDisplayedRows:XAt,rowsCount:W.length,rowsPerPage:W.length,rowsPerPageOptions:void 0,rowKey:"action_id",rowActions:F,stickyRowActions:!0,loading:n!=="idle"})]})}return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{variant:"contained",text:o.formatMessage({id:"troubleshoot_dump.toolbar.dump"}),startIcon:a.jsx(ge.Add,{}),onClick:c})}),a.jsx(gt,{p:2,children:a.jsx(Lr,{message:o.formatMessage({id:"troubleshoot_dump.no_data"})})})]})},t[53]=k,t[54]=c,t[55]=o,t[56]=F,t[57]=n,t[58]=z):z=t[58];let H;return t[59]!==e.schedules||t[60]!==z?(H=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:e.schedules,children:z})}),t[59]=e.schedules,t[60]=z,t[61]=H):H=t[61],H}function XAt(){return""}function JAt(t){return t.status==="running"}function ekt(t){const{action_id:e}=t;return Eie($.apis.pls.troubleshootDump.download(e))}function tkt(t){const{size:e}=t;return e?a.jsx(_e,{type:"body2",children:a7(e)}):a.jsx(_e,{children:"--"})}function rkt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:e?Mr(e):"--"})}function nkt(t){const{end_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function skt(t){const{start_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ikt(t){const{status:e}=t;let r;e:switch(e){case"running":{r=nn.INFO;break e}case"completed":{r=nn.SUCCESS;break e}case"staled":r=nn.ERROR}return a.jsx(bi,{label:e,status:r})}function okt(){return a.jsx(QAt,{})}const Nee=Pr();function akt(t){const e=$.apis.backup.create(t);return De({options:{url:e,method:"POST"}})}function lkt(t,e){const r=$.apis.backup.restore(t),n=new FormData;return n.append("file",e),De({options:{url:r,method:"POST",headers:{"content-type":"multipart/form-data"},data:n}})}function ckt(t){const e=$.apis.backup.backupSchedules(t);return De({options:{url:e,method:"GET",cache:!1}})}function ukt(t){const e=$.apis.backup.restoreSchedules(t);return De({options:{url:e,method:"GET",cache:!1}})}function dkt(t,e){const r=$.apis.backup.update(t);return De({options:{url:r,method:"PUT",data:JSON.stringify(e)}})}async function fkt(){const t=await ma(),e=[];return Ds({services:t,name:ue.PLS})&&e.push(ue.PLS),Ds({services:t,name:ue.UDR})&&e.push(ue.UDR),Ds({services:t,name:ue.EIR})&&e.push(ue.EIR),Ds({services:t,name:ue.DSM})&&e.push(ue.DSM),Ds({services:t,name:ue.UDM})&&e.push(ue.UDM),Ds({services:t,name:ue.NRF})&&e.push(ue.NRF),e}function pkt(t){return t.map(e=>{const r=e===ue.PLS?Nee.formatMessage({id:"route.platform"}):Nee.formatMessage({id:`route.system.backup.${e}`});return{url:e,label:r}})}async function mkt(){const t=as([[ie.backup,ie.provisioning]]),e=await fkt();let r=[],n={},s={};if(t){r=pkt(e);const i=await Promise.all(e.map(async o=>{const l=[ckt(o),ukt(o)],[c,u=[]]=await Promise.all(l);return{backup:c,restore:u}}));e.forEach((o,l)=>{n={...n,[o]:i[l].backup},s={...s,[o]:i[l].restore}})}return{activeTabs:r,backupSchedules:n,restoreSchedules:s}}function hkt(t){const e=$.apis.pls.configuration.backup;return De({options:{url:e,method:"POST",data:JSON.stringify(t),responseType:"blob"}})}function gkt(t){const e=$.apis.pls.configuration.restore,r=new FormData;return r.append("backup_file",t),De({options:{url:e,method:"POST",headers:{"content-type":"multipart/form-data"},data:r}})}async function _kt({request:t}){const{nf:e}=await t.json(),r=await akt(e);return xt(r)?Ar():Nt(),Ft(r)}async function vkt({request:t}){const e=await t.formData(),r=e.get("nf"),n=e.getAll("files")[0],s=await lkt(r,n);return xt(s)?Ar():Nt(),Ft(s)}async function ykt({request:t}){const e=await t.json(),r=await hkt(e);return xt(r)?Ar():yue(r,`backup_configuration_${Date.now()}.tar.gz`,"application/gzip"),Ft(r)}async function bkt({request:t}){const r=(await t.formData()).get("file"),n=await gkt(r);return xt(n)?Ar():Nt(),Ft(n)}async function xkt({request:t}){const{nf:e,configuration:r}=await t.json(),n=await dkt(e,r);return xt(n)||Nt(),Ft(n)}async function Skt({request:t}){const{nf:e,logsConfig:r}=await t.json(),n=await p4e({nf:e,logsConfig:r});return xt(n)?Ar():Nt(),Ft(n)}async function wkt(){const t=$.apis.licensing.licenses;return De({options:{url:t,method:"GET"}})}async function Ckt(){const t=$.apis.licensing.host;return De({options:{url:t,method:"GET"}})}async function Akt(t){const e=$.apis.licensing.licenses;return De({options:{url:e,method:"POST",data:JSON.stringify(t)}})}async function kkt(t,e){const r=$.apis.licensing.setLicense(t);return De({options:{url:r,method:"PUT",data:JSON.stringify({license_id:e})}})}async function Mkt(t){const e=$.apis.licensing.persistLicense(t);return De({options:{url:e,method:"POST"}})}async function Pkt(t,e){const r=new URLSearchParams;return e!==void 0&&r.set("precedence",e.toString()),De({options:{url:`${$.apis.licensing.licenses}/${t}${r.size?"?"+r.toString():""}`,method:"DELETE"}})}async function jkt(){const[t,e]=await Promise.all([wkt(),Ckt()]);return{licenses:t,hostInfo:e}}async function Tkt({request:t}){const r=(await t.formData()).getAll("files"),n=await kue(r[0]),i=JSON.parse(n).licenses,o=await Promise.all(i.map(async l=>{const{license_id:c,license_content:u,license_nf_type:d}=l,f={license_id:c,precedence:10,signature_type:"ssl",signed_license:{license:u,signature_type:"ssl"}};let p={license_id:c,license_nf_type:d,install:!1,set:!1,persist:!1,errorCount:0};const m=await Akt(f);xt(m)?p={...p,errorCount:p.errorCount+1,installError:m.error.title}:p={...p,install:!0};const h=await kkt(d,c);xt(h)?p={...p,errorCount:p.errorCount+1,setError:h.error.title}:p={...p,set:!0};const _=await Mkt(d);return xt(_)?p={...p,errorCount:p.errorCount+1,persistError:_.error.title}:p={...p,persist:!0},p}));return o.every(l=>l.errorCount===0)&&Nt(),Ft({error:{title:"Something went wrong",detail:"Not all actions worked",status:444,errorList:o}})}async function Ekt({request:t}){const{license_id:e,precedence:r}=await t.json(),n=await Pkt(e,r);return xt(n)?Ar():Nt(),Ft(n)}async function Rkt({request:t}){const e=await t.json(),r=await d4e(e);return xt(r)?Ar():Nt(),Ft(r)}async function Ikt({request:t}){const r=(await t.formData()).getAll("files")[0],n=await oht(r);return xt(n)&&Ar(),Ft(n)}async function Dkt(){return De({options:{url:$.apis.pls.troubleshootDump.all,method:"GET"}})}async function $kt(t){return De({options:{url:$.apis.pls.troubleshootDump.create,method:"POST",data:t}})}async function Okt(t){return De({options:{url:$.apis.pls.troubleshootDump.get(t),method:"DELETE"}})}async function Lkt({request:t}){const e=await t.json(),r=await $kt(e);return xt(r)||(Nt(),rt($.urls.systemTroubleshootDump)),r}async function Nkt({request:t}){const{id:e}=await t.json(),r=await Okt(e);return xt(r)?Ar():(Nt(),rt($.urls.systemTroubleshootDump)),r}async function Fkt(t){return Wt({loaderArgs:t,deferred:!0,data:{schedule:mkt()}})}async function Fee(t){return Wt({loaderArgs:t,deferred:!0,data:{services:ma()}})}function Uee({stream:t}){return async e=>{const r=await Mie(),{request:n}=e,s=new URL(n.url),i=s.searchParams.get("entries"),o=s.searchParams.get("skip"),l=s.searchParams.get("boot"),c=s.searchParams.get("cursor")||"",u=s.searchParams.getAll("field"),d=s.searchParams.get("grep"),f=s.searchParams.get("since")||"",p=s.searchParams.get("until")||"";if(l===null)return s.searchParams.set("boot","true"),rt(s.href);let m=80;if(i!==null){const C=parseInt(i);if($.pageSizeOptions.includes(C))m=C;else return s.searchParams.set("entries",m.toString()),rt(s.href)}else return s.searchParams.set("entries",m.toString()),rt(s.href);let h=0;if(o!==null)if(f||p){const C=parseInt(o);if(C%m!==0)return s.searchParams.set("skip",h.toString()),rt(s.href);h=C}else{const C=parseInt(o);if($.pageSizeOptions.includes(Math.abs(C))||C===0)h=C;else return s.searchParams.set("skip",h.toString()),rt(s.href)}else return s.searchParams.set("skip",h.toString()),rt(s.href);const _=200,g=0;if(t){if(h!==g||m!==_)return s.searchParams.set("entries",_.toString()),s.searchParams.set("skip",g.toString()),rt(s.href);if(c)return s.searchParams.delete("cursor"),rt(s.href);if(f)return s.searchParams.delete("since"),rt(s.href);if(p)return s.searchParams.delete("until"),rt(s.href)}if((f||p)&&c)return s.searchParams.delete("cursor"),rt(s.href);if(u.some(C=>!C))return s.searchParams.delete("field"),u.filter(C=>!!C).forEach(C=>{s.searchParams.append("field",C)}),rt(s.href);if(u.some(C=>{const[k]=z_(C);return k!==k.toUpperCase()}))return s.searchParams.delete("field"),u.filter(C=>!!C).forEach(C=>{const[k,A]=z_(C);s.searchParams.append("field",`${k.toUpperCase()}=${A}`)}),rt(s.href);let x="",w="";return f&&!ai.utc(f).isValid()?(s.searchParams.delete("since"),rt(s.href)):p&&!ai.utc(p).isValid()?(s.searchParams.delete("until"),rt(s.href)):(f&&(x=ai.utc(f).unix().toString()),p&&(w=ai.utc(p).unix().toString()),Wt({loaderArgs:e,deferred:!0,data:{entries:kie({numEntries:m,numSkip:h,cursor:c,boot:Lue(l),fields:u,stream:t,grep:d,since:x,until:w}),machine:r}}))}}function Ukt(t){return Wt({loaderArgs:t,deferred:!0,data:{machine:Mie(),exceptionsCount:g4e()}})}async function Bkt(t){return Wt({loaderArgs:t,deferred:!0,data:{fields:y4e()}})}async function zkt(t){const{params:e}=t,{field_name:r}=e;if(!r)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{fields:b4e({fieldName:r})}})}async function qkt(t){const{params:e}=t,{cursor:r}=e;if(!r)throw Li({type:mn.NOT_FOUND});return Wt({loaderArgs:t,deferred:!0,data:{entries:kie({cursor:r,numEntries:1,numSkip:0,stream:!1})}})}function Vkt(t){return Wt({loaderArgs:t,deferred:!0,data:{logsConfig:h4e()}})}async function Hkt(t){return Wt({loaderArgs:t,deferred:!0,data:{licensing:jkt()}})}async function Gkt(t){return Wt({loaderArgs:t,deferred:!0,data:{services:vL()}})}async function Wkt({name:t}){try{const e=await f4e({name:t});if(!e)throw Li({type:mn.SERVICE_UNAVAILABLE,data:t});return e}catch{throw Li({type:mn.SERVICE_UNAVAILABLE,data:t})}}async function Ykt(t){return Wt({loaderArgs:t,deferred:!0,data:{logsStream:lht()}})}const Kkt=async()=>(await Wkt({name:ue.TERMINAL}),null);async function Qkt(t){return Wt({loaderArgs:t,deferred:!0,data:{files:T4e()}})}async function Zkt(t){return Wt({loaderArgs:t,deferred:!0,data:{schedules:Dkt().then(e=>e.sort((r,n)=>Date.parse(n.created_at)-Date.parse(r.created_at)))}})}const Xkt={path:"system",handle:vr({labelIntl:"route.system",icon:a.jsx(ge.System,{})}),children:[{element:a.jsx(Or,{fullHeight:!0,transparent:!0,center:!0}),children:[{path:"upgrade",handle:vr({labelIntl:"route.system.upgrade",to:$.urls.systemUpgrade}),loader:Ykt,element:a.jsx(FAt,{}),shouldRevalidate:()=>!1,children:[{path:"upload",action:Ikt,loader:()=>rt("..")}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[{path:"licensing",handle:vr({labelIntl:"route.system.licensing",to:$.urls.systemLicensing}),loader:Hkt,element:a.jsx(v3t,{}),children:[{path:"install",action:Tkt,loader:()=>rt("..")},{path:"delete",action:Ekt,loader:()=>rt("..")}]},{path:"services",handle:vr({labelIntl:"route.system.services",to:$.urls.systemServices}),loader:Gkt,element:a.jsx(vAt,{}),children:[{path:"management",action:Rkt,loader:()=>rt("..")}]},{path:"terminal",loader:Kkt,handle:vr({labelIntl:"route.system.terminal",to:$.urls.systemTerminal}),element:a.jsx(GAt,{}),children:[{path:"list",loader:Qkt,element:a.jsx(ur,{to:$.urls.systemTerminal,replace:!0})}]},{path:"backup",loader:Fkt,handle:vr({labelIntl:"route.system.backup",to:$.urls.systemBackup}),element:a.jsx(u3t,{}),children:[{index:!0,element:a.jsx(ur,{to:"backup-schedules",replace:!0})},{path:"backup-schedules",element:a.jsx($ee,{isBackup:!0}),children:[{index:!0,element:as([ie.backup,ie.configuration])?a.jsx(ur,{to:"configuration",replace:!0}):a.jsx(ur,{to:"pls",replace:!0})},{path:"configuration",element:a.jsx(p3t,{}),errorElement:a.jsx(en,{}),loader:Fee,children:[{path:"configuration-backup",action:ykt,loader:()=>rt("..")}]},{path:":nf",element:a.jsx(Dee,{isBackup:!0})}]},{path:"restore-schedules",element:a.jsx($ee,{isBackup:!1}),children:[{index:!0,element:as([ie.backup,ie.configuration])?a.jsx(ur,{to:"configuration",replace:!0}):a.jsx(ur,{to:"pls",replace:!0})},{path:"configuration",element:a.jsx(g3t,{}),errorElement:a.jsx(en,{}),loader:Fee,children:[{path:"configuration-restore",action:bkt,loader:()=>rt("..")}]},{path:":nf",element:a.jsx(Dee,{isBackup:!1})}]},{path:"schedule-backup",action:_kt,loader:()=>rt("..")},{path:"schedule-restore",action:vkt,loader:()=>rt("..")},{path:"update-configuration",action:xkt,loader:()=>rt("..")}]},{path:"troubleshoot-dump",element:a.jsx(ZAt,{}),handle:vr({labelIntl:"route.system.troubleshoot_dump",to:$.urls.systemTroubleshootDump}),loader:Zkt,children:[{path:"create",action:Lkt},{path:"delete",action:Nkt}]}]},{path:"logs",handle:vr({icon:a.jsx(ge.Logs,{}),labelIntl:"route.system.logs",to:$.urls.systemLogs}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{element:a.jsx(Or,{fullHeight:!0}),children:[{element:a.jsx(pAt,{}),loader:Ukt,children:[{path:"entries",loader:Uee({stream:!1}),element:a.jsx(dAt,{})},{path:"fields",loader:Bkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0}),children:[{path:":field_name",loader:zkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0})}]},{path:"follow",loader:Uee({stream:!0}),element:a.jsx(cAt,{})},{path:"config",loader:Vkt,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0}),children:[{path:"update",action:Skt,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{center:!0}),children:[{path:"cursor",children:[{index:!0,element:a.jsx(ur,{to:$.urls.systemLogs,replace:!0})},{path:":cursor",loader:qkt,handle:t=>{const e=t.params.cursor;return vr({labelIntl:"route.system.logs.cursor",captionIntl:"route.system.logs.cursor.caption",captionIntlParams:{cursor:e},to:$.urls.systemLogsCursor})},element:a.jsx(gAt,{})}]}]}]},{path:"boot-partitions",element:a.jsx(ur,{to:"/",replace:!0}),loader:Vmt},{path:"boot-partitions-update",loader:()=>rt("/"),action:wmt}]},Vy=Pr(),Jkt=dr().shape({description:We().matches(new RegExp($.regex.descriptionRm),Vy.formatMessage({id:"udm_home_network_keys.form.errors.format"},{value:"^[ -~]{1,128}"})),home_network_identifier:We().matches(new RegExp($.regex.plmnStr)).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),key_id:kn().min(1).max(255).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),private_key:We().when("profile",(t,e)=>t==="A"?e.matches(new RegExp($.regex.ecX25519PrivateKey)):e.matches(new RegExp($.regex.secp256r1PrivateKey))).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"})),profile:We().matches(new RegExp("^(A|B)$")).required(Vy.formatMessage({id:"udm_home_network_keys.form.errors.required"}))}),eMt=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=h=>{o({key_id:+h.key_id,home_network_identifier:h.home_network_identifier,private_key:h.private_key,profile:h.profile,...h.description&&{description:h.description}},{action:$.urls.udmHomeNetworkKeysCreate_Action,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={key_id:"",home_network_identifier:"",private_key:"",public_key:"",profile:"A",description:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==r?(f=()=>r(),t[3]=r,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==e||t[7]!==i?(p=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"key_id",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.key_id"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"description",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.description"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"home_network_identifier",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.home_network_identifier"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"profile",children:h=>{const{field:_,meta:g}=h;return a.jsxs(qs,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.profile"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle",children:[a.jsx(En,{value:"A",children:"A"},"A"),a.jsx(En,{value:"B",children:"B"},"B")]})}}),a.jsx(Ke,{name:"private_key",children:h=>{const{field:_,meta:g}=h;return a.jsx(dt,{..._,label:e.formatMessage({id:"udm_home_network_keys.form.private_key"}),size:"small",error:!!g.error,helperText:g.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udm_home_network_keys.form.cancel"}),type:"reset",variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"udm_home_network_keys.form.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning)})]})]})}),t[5]=s,t[6]=e,t[7]=i,t[8]=p):p=t[8];let m;return t[9]!==c||t[10]!==f||t[11]!==p?(m=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:d,validationSchema:Jkt,onSubmit:c,onReset:f,children:p})}),t[9]=c,t[10]=f,t[11]=p,t[12]=m):m=t[12],m},tMt=()=>{const t=he.c(23),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udm_home_network_keys.form.title_create"}),content:rMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==r||t[4]!==e?(i=()=>{r({title:e.formatMessage({id:"udm_home_network_keys.upload.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:e.formatMessage({id:"udm_home_network_keys.upload.form.file"}),accept:{".enc":[".enc"]},requiredMessage:e.formatMessage({id:"udm_home_network_keys.upload.form.file.required"}),description:e.formatMessage({id:"udm_home_network_keys.upload.form.description"}),action:"udm/home-network-keys/upload"})})},t[3]=r,t[4]=e,t[5]=i):i=t[5];const o=i;let l;t[6]!==e?(l=e.formatMessage({id:"udm_home_network_keys.toolbar.upload"}),t[6]=e,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(ge.Upload,{}),t[8]=c):c=t[8];let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=Ue(ie.provisioning),t[9]=u):u=t[9];let d;t[10]!==o||t[11]!==l?(d=a.jsx(Ze,{variant:"outlined","data-testid":"udm-home-network-keys-btn-upload",text:l,startIcon:c,onClick:o,disabled:!u}),t[10]=o,t[11]=l,t[12]=d):d=t[12];let f;t[13]!==e?(f=e.formatMessage({id:"udm_home_network_keys.toolbar.new"}),t[13]=e,t[14]=f):f=t[14];let p;t[15]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ge.Add,{}),t[15]=p):p=t[15];let m;t[16]===Symbol.for("react.memo_cache_sentinel")?(m=Ue(ie.provisioning),t[16]=m):m=t[16];let h;t[17]!==s||t[18]!==f?(h=a.jsx(Ze,{text:f,startIcon:p,onClick:s,disabled:!m}),t[17]=s,t[18]=f,t[19]=h):h=t[19];let _;return t[20]!==d||t[21]!==h?(_=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[d,h]}),t[20]=d,t[21]=h,t[22]=_):_=t[22],_};function rMt(){return a.jsx(eMt,{})}const nMt=()=>{const t=he.c(65),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{pageSize:o,pageSizeOptions:l,changePageSize:c,changePage:u,getRowsCount:d,getPage:f}=Na();let p;t[0]!==i||t[1]!==e||t[2]!==r?(p=Q=>{const{id:Y,key_id:Z}=Q;Y&&r({text:e.formatMessage({id:"udm_home_network_keys.actions.confirm_delete"},{value:Z}),onConfirm:()=>{i.submit({id:Y},{action:$.urls.udmHomeNetworkKeysDelete_Action,method:"POST",encType:"application/json"})}})},t[0]=i,t[1]=e,t[2]=r,t[3]=p):p=t[3];const m=p;let h;t[4]!==e?(h=e.formatMessage({id:"udm_home_network_keys.table.key_id"}),t[4]=e,t[5]=h):h=t[5];let _;t[6]!==h?(_={key:"key_id",label:h},t[6]=h,t[7]=_):_=t[7];let g;t[8]!==e?(g=e.formatMessage({id:"udm_home_network_keys.table.description"}),t[8]=e,t[9]=g):g=t[9];let y;t[10]!==g?(y={key:"description",label:g},t[10]=g,t[11]=y):y=t[11];let b;t[12]!==e?(b=e.formatMessage({id:"udm_home_network_keys.table.home_network_identifier"}),t[12]=e,t[13]=b):b=t[13];let x;t[14]!==b?(x={key:"home_network_identifier",label:b},t[14]=b,t[15]=x):x=t[15];let w;t[16]!==e?(w=e.formatMessage({id:"udm_home_network_keys.table.profile"}),t[16]=e,t[17]=w):w=t[17];let C;t[18]!==w?(C={key:"profile",label:w},t[18]=w,t[19]=C):C=t[19];let k;t[20]!==e?(k=e.formatMessage({id:"udm_home_network_keys.table.public_key"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==k?(A={key:"public_key",label:k,cellRender:sMt},t[22]=k,t[23]=A):A=t[23];let P;t[24]!==e?(P=e.formatMessage({id:"udm_home_network_keys.table.created_at"}),t[24]=e,t[25]=P):P=t[25];let T;t[26]!==P?(T={key:"created_at",label:P,cellRender:iMt},t[26]=P,t[27]=T):T=t[27];let j;t[28]!==e?(j=e.formatMessage({id:"udm_home_network_keys.table.modified_at"}),t[28]=e,t[29]=j):j=t[29];let R;t[30]!==j?(R={key:"modified_at",label:j,cellRender:oMt},t[30]=j,t[31]=R):R=t[31];let D;t[32]!==A||t[33]!==T||t[34]!==R||t[35]!==_||t[36]!==y||t[37]!==x||t[38]!==C?(D=[_,y,x,C,A,T,R],t[32]=A,t[33]=T,t[34]=R,t[35]=_,t[36]=y,t[37]=x,t[38]=C,t[39]=D):D=t[39];const O=D;let N;t[40]!==e?(N=e.formatMessage({id:"udm_home_network_keys.actions.delete"}),t[40]=e,t[41]=N):N=t[41];let F;t[42]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),t[42]=F):F=t[42];let U;t[43]!==i.state||t[44]!==s.state?(U=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[43]=i.state,t[44]=s.state,t[45]=U):U=t[45];let z;t[46]!==m||t[47]!==N||t[48]!==U?(z=[{label:N,icon:F,onClick:m,disabled:U}],t[46]=m,t[47]=N,t[48]=U,t[49]=z):z=t[49];const H=z;let W;t[50]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[50]=W):W=t[50];let K;t[51]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(Tr,{}),t[51]=K):K=t[51];let q;t[52]!==u||t[53]!==c||t[54]!==O||t[55]!==i.state||t[56]!==f||t[57]!==d||t[58]!==o||t[59]!==l||t[60]!==H?(q=Q=>{const{data:Y,metadata:Z}=Q;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(tMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"key_id",columns:O,data:Y,page:f(Z),labelDisplayedRows:aMt,rowsCount:d(Z),rowsPerPage:o,onRowsPerPageChange:c,rowsPerPageOptions:l,rowKey:"key_id",rowActions:H,stickyRowActions:!0,onPageChange:u(Z)})]})},t[52]=u,t[53]=c,t[54]=O,t[55]=i.state,t[56]=f,t[57]=d,t[58]=o,t[59]=l,t[60]=H,t[61]=q):q=t[61];let X;return t[62]!==n.autorules||t[63]!==q?(X=a.jsx(I.Suspense,{fallback:W,children:a.jsx(Qt,{resolve:n.autorules,errorElement:K,children:q})}),t[62]=n.autorules,t[63]=q,t[64]=X):X=t[64],X};function sMt(t){const{public_key:e}=t;return a.jsx(Ap,{text:e,max:8})}function iMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function oMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function aMt(){return""}const $D=Pr(),lMt=dr().shape({prefix:We().required($D.formatMessage({id:"udm_plmn_prefixes.prefix.form_errors.required"})).matches(new RegExp($.regex.plmnPrefix)),mcc:We().required($D.formatMessage({id:"udm_plmn_prefixes.mcc.form_errors.required"})).matches(new RegExp($.regex.mcc)),mnc:We().required($D.formatMessage({id:"udm_plmn_prefixes.mnc.form_errors.required"})).matches(new RegExp($.regex.mnc))}),tme=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{upsertFetcher:s,dataFetcher:i}=Ys(),{submit:o,data:l,state:c}=s,{load:u,data:d,state:f}=i,{dialogClose:p}=Jt(),m=!!r;let h,_;e[0]!==r||e[1]!==m||e[2]!==u?(h=()=>{m&&u(`udm/plmn-prefixes/${r}`)},_=[r,m,u],e[0]=r,e[1]=m,e[2]=u,e[3]=h,e[4]=_):(h=e[3],_=e[4]),I.useEffect(h,_);let g;e[5]!==m||e[6]!==o?(g=R=>{o(R,{method:"POST",encType:"application/json",action:m?"udm/plmn-prefixes/update":"udm/plmn-prefixes/create"})},e[5]=m,e[6]=o,e[7]=g):g=e[7];const y=g,b=d?.udmPlmnPrefix.prefix||"",x=d?.udmPlmnPrefix.mcc||"",w=d?.udmPlmnPrefix.mnc||"";let C;e[8]!==b||e[9]!==x||e[10]!==w?(C={prefix:b,mcc:x,mnc:w},e[8]=b,e[9]=x,e[10]=w,e[11]=C):C=e[11];const k=C,A=f!=="idle";let P;e[12]!==p||e[13]!==n||e[14]!==m||e[15]!==l||e[16]!==c?(P=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"prefix",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.prefix"}),size:"small",error:!!O.error,helperText:O.error,disabled:m||c!=="idle"})}}),a.jsx(Ke,{name:"mcc",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.mcc"}),size:"small",error:!!O.error,helperText:O.error,disabled:c!=="idle"})}}),a.jsx(Ke,{name:"mnc",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udm_plmns_prefixes.mnc"}),size:"small",error:!!O.error,helperText:O.error,disabled:c!=="idle"})}}),a.jsx(Xr,{data:l})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"common.form.cancel"}),variant:"outlined",disabled:c!=="idle"||!Ue(ie.provisioning),onClick:()=>p()}),a.jsx(Ze,{text:n.formatMessage({id:"common.form.submit"}),type:"submit",loading:c!=="idle",disabled:!Ue(ie.provisioning)})]})]})}),e[12]=p,e[13]=n,e[14]=m,e[15]=l,e[16]=c,e[17]=P):P=e[17];let T;e[18]!==y||e[19]!==k||e[20]!==P?(T=a.jsx(Wr,{initialValues:k,validationSchema:lMt,onSubmit:y,children:P}),e[18]=y,e[19]=k,e[20]=P,e[21]=T):T=e[21];let j;return e[22]!==A||e[23]!==T?(j=a.jsx(_s,{loading:A,children:T}),e[22]=A,e[23]=T,e[24]=j):j=e[24],j};function cMt(){const t=he.c(73),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),{pageSize:s,pageSizeOptions:i,changePageSize:o,changePage:l,getRowsCount:c,getPage:u}=Na(),d=zn(),{submit:f,state:p}=gr();let m;t[0]!==r||t[1]!==e?(m=()=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:pMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==r||t[4]!==e?(_=le=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:()=>a.jsx(tme,{id:le}),closeOnBackdropClick:!1})},t[3]=r,t[4]=e,t[5]=_):_=t[5];const g=_;let y;t[6]!==e||t[7]!==n||t[8]!==f?(y=le=>{n({text:e.formatMessage({id:"udm_plmns_prefixes.actions.delete.confirm"},{prefix:le}),onConfirm:()=>{f({prefix:le},{method:"POST",encType:"application/json",action:"delete"})}})},t[6]=e,t[7]=n,t[8]=f,t[9]=y):y=t[9];const b=y;let x;t[10]!==e?(x=e.formatMessage({id:"udm_plmns_prefixes.prefix"}),t[10]=e,t[11]=x):x=t[11];let w;t[12]!==x?(w={key:"prefix",label:x},t[12]=x,t[13]=w):w=t[13];let C;t[14]!==e?(C=e.formatMessage({id:"udm_plmns_prefixes.mcc"}),t[14]=e,t[15]=C):C=t[15];let k;t[16]!==C?(k={key:"mcc",label:C},t[16]=C,t[17]=k):k=t[17];let A;t[18]!==e?(A=e.formatMessage({id:"udm_plmns_prefixes.mnc"}),t[18]=e,t[19]=A):A=t[19];let P;t[20]!==A?(P={key:"mnc",label:A},t[20]=A,t[21]=P):P=t[21];let T;t[22]!==e?(T=e.formatMessage({id:"udm_plmns_prefixes.created_at"}),t[22]=e,t[23]=T):T=t[23];let j;t[24]!==T?(j={key:"created_at",label:T,cellRender:fMt},t[24]=T,t[25]=j):j=t[25];let R;t[26]!==e?(R=e.formatMessage({id:"udm_plmns_prefixes.modified_at"}),t[26]=e,t[27]=R):R=t[27];let D;t[28]!==R?(D={key:"modified_at",label:R,cellRender:dMt},t[28]=R,t[29]=D):D=t[29];let O;t[30]!==j||t[31]!==D||t[32]!==w||t[33]!==k||t[34]!==P?(O=[w,k,P,j,D],t[30]=j,t[31]=D,t[32]=w,t[33]=k,t[34]=P,t[35]=O):O=t[35];const N=O;let F;t[36]===Symbol.for("react.memo_cache_sentinel")?(F=_l(ie.provisioning),t[36]=F):F=t[36];let U;t[37]!==g?(U=le=>{const{prefix:ee}=le;return g(ee)},t[37]=g,t[38]=U):U=t[38];const z=p!=="idle";let H;t[39]!==U||t[40]!==z?(H={...F,onClick:U,disabled:z},t[39]=U,t[40]=z,t[41]=H):H=t[41];let W;t[42]!==e?(W=e.formatMessage({id:"common.delete"}),t[42]=e,t[43]=W):W=t[43];let K;t[44]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(ge.Trash,{}),t[44]=K):K=t[44];let q;t[45]!==b?(q=le=>{const{prefix:ee}=le;return b(ee)},t[45]=b,t[46]=q):q=t[46];let X;t[47]!==p?(X=p!=="idle"||!Ue(ie.provisioning),t[47]=p,t[48]=X):X=t[48];let Q;t[49]!==W||t[50]!==q||t[51]!==X?(Q={label:W,icon:K,onClick:q,disabled:X},t[49]=W,t[50]=q,t[51]=X,t[52]=Q):Q=t[52];let Y;t[53]!==H||t[54]!==Q?(Y=[H,Q],t[53]=H,t[54]=Q,t[55]=Y):Y=t[55];const Z=Y;let re;t[56]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[56]=re):re=t[56];let fe;t[57]===Symbol.for("react.memo_cache_sentinel")?(fe=a.jsx(Tr,{}),t[57]=fe):fe=t[57];let de;t[58]!==l||t[59]!==o||t[60]!==N||t[61]!==u||t[62]!==c||t[63]!==h||t[64]!==e||t[65]!==s||t[66]!==i||t[67]!==Z||t[68]!==p?(de=le=>{const{data:ee,metadata:J}=le;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:h,disabled:p!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"prefix",columns:N,data:ee,page:u(J),labelDisplayedRows:uMt,rowsCount:c(J),rowsPerPage:s,onRowsPerPageChange:o,rowsPerPageOptions:i,rowKey:"mcc",stickyRowActions:!0,onPageChange:l(J),rowActions:Z})]})},t[58]=l,t[59]=o,t[60]=N,t[61]=u,t[62]=c,t[63]=h,t[64]=e,t[65]=s,t[66]=i,t[67]=Z,t[68]=p,t[69]=de):de=t[69];let se;return t[70]!==d.udrPlmnPrefixList||t[71]!==de?(se=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:d.udrPlmnPrefixList,errorElement:fe,children:de})}),t[70]=d.udrPlmnPrefixList,t[71]=de,t[72]=se):se=t[72],se}function uMt(){return""}function dMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function fMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function pMt(){return a.jsx(tme,{})}async function mMt({request:t}){const e=await t.json(),r=await Alt(e);return xt(r)?Ar():Nt(),Ft(r)}async function hMt({request:t}){const r=(await t.formData()).getAll("files"),n=await klt(r[0]);return xt(n)||Nt(),Ft(n)}async function gMt({request:t}){const{id:e}=await t.json(),r=await Mlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function _Mt({request:t}){const{mcc:e,mnc:r,prefix:n}=await t.json(),s=await Tlt({mcc:e,mnc:r,prefix:n});return xt(s)?Ar():Nt(),Ft(s)}async function vMt({request:t}){const{mcc:e,mnc:r,prefix:n}=await t.json(),s=await Elt(n,{mcc:e,mnc:r});return xt(s)?Ar():Nt(),Ft(s)}async function yMt({request:t}){const{prefix:e}=await t.json(),r=await Rlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function bMt(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{autorules:Clt({pageSize:+e,paginationToken:r})}})}const xMt=async t=>{const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udmPlmnPrefix:Plt(e)}}):null},SMt=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPlmnPrefixList:jlt({pageSize:+e,...r&&{paginationToken:r}})}})},wMt=Pr(),CMt={path:"udm",handle:vr({labelIntl:"route.udm",icon:a.jsx(ge.UDM,{})}),children:[{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UDM,{dbCluster:!0})]},{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{path:"status",handle:vr({labelIntl:"route.udm.status",to:$.urls.udmStatus}),element:a.jsx(Ao,{tabs:[{url:"diameter",label:wMt.formatMessage({id:"route.diameter"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"diameter",replace:!0})},qp({path:"diameter",nf:ue.UDM})]},io(ue.UDM),{path:"home-network-keys",handle:vr({labelIntl:"route.udm.home-network-keys",to:$.urls.udmHomeNetworkKeys}),loader:bMt,element:a.jsx(nMt,{}),children:[{action:mMt,path:"create",loader:()=>rt("..")},{action:gMt,path:"delete",loader:()=>rt("..")},{action:hMt,path:"upload",loader:()=>rt("..")}]},{path:"plmn-prefixes",handle:vr({labelIntl:"route.udm.plmn-prefixes",to:"/udm/plmn-prefixes"}),loader:SMt,element:a.jsx(cMt,{}),children:[{path:":id",loader:xMt,element:a.jsx(ur,{to:"/udm/plmn-prefixes",replace:!0})},{path:"create",action:_Mt,loader:()=>rt("..")},{path:"update",action:vMt,loader:()=>rt("..")},{path:"delete",action:yMt,loader:()=>rt("..")}]}]}]};var rh=(t=>(t.REPOSITORY_DATA="REPOSITORY_DATA",t.IMSI="IMSI",t.IMS_PUBLIC_IDENTITY="IMS_PUBLIC_IDENTITY",t.SMS_REGISTRATION_INFO="SMS_REGISTRATION_INFO",t))(rh||{}),Cu=(t=>(t.READ="READ",t.WRITE="WRITE",t.SUBSCRIBE="SUBSCRIBE",t))(Cu||{});const rme=["REPOSITORY_DATA","IMSI","IMS_PUBLIC_IDENTITY","SMS_REGISTRATION_INFO"],nme=t=>{const e=he.c(31),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i,dataFetcher:o}=Ys(),{data:l,state:c,submit:u}=i,{data:d,state:f,load:p}=o,m=r!==void 0;let h;e[0]!==u||e[1]!==r||e[2]!==m?(h=T=>{const{application_server:j,data_reference:R,permissions:D}=T;if(m){u({id:r,permissions:D},{action:`${$.urls.udrImsApplicationServerAcls}/update`,method:"POST",encType:"application/json"});return}u({application_server:j,data_reference:R,permissions:D},{action:`${$.urls.udrImsApplicationServerAcls}/create`,method:"POST",encType:"application/json"})},e[0]=u,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!d){let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N={application_server:"",data_reference:rh.REPOSITORY_DATA,permissions:[Cu.READ]},e[4]=N):N=e[4],g=N;break e}const T=d?.udrImsApplicationServerAcl,j=T?.application_server||"",R=T.data_reference||rh.REPOSITORY_DATA;let D;e[5]!==T.permissions?(D=T.permissions||[Cu.READ],e[5]=T.permissions,e[6]=D):D=e[6];let O;e[7]!==j||e[8]!==R||e[9]!==D?(O={application_server:j,data_reference:R,permissions:D},e[7]=j,e[8]=R,e[9]=D,e[10]=O):O=e[10],g=O}const y=g,b=AMt;let x;e[11]!==n?(x=dr().shape({application_server:We().required(n.formatMessage({id:"udr_ims_application_server_acls.form.error.required"})),data_reference:We().required(n.formatMessage({id:"udr_ims_application_server_acls.form.error.required"})),permissions:yr().when("data_reference",T=>yr().of(We()).required().min(1).test({name:"wrong-array-values",message:n.formatMessage({id:"udr_ims_application_server_acls.form.error.permissions"},{permissions:b(T)?.join(", ")}),test:j=>!j||j?.length===0?!1:j.every(R=>new RegExp(b(T)?.join("|")).test(R))}))}),e[11]=n,e[12]=x):x=e[12];const w=x;let C,k;e[13]!==r||e[14]!==m||e[15]!==p?(C=()=>{m&&p(`${$.urls.udrImsApplicationServerAcls}/${r}`)},k=[r,m,p],e[13]=r,e[14]=m,e[15]=p,e[16]=C,e[17]=k):(C=e[16],k=e[17]),I.useEffect(C,k);let A;e[18]!==s||e[19]!==l||e[20]!==c||e[21]!==d||e[22]!==n||e[23]!==m||e[24]!==f?(A=T=>{const{values:j}=T;return a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!d,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"application_server",children:R=>{const{field:D,meta:O}=R;return a.jsx(dt,{...D,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.application_server"}),size:"small",error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle"||m})}}),a.jsx(Ke,{name:"data_reference",children:R=>{const{field:D,meta:O,form:N}=R,{setFieldValue:F}=N;return a.jsx(rn,{value:D.value,name:D.name,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.data_reference"}),multiple:!1,size:"small",options:[...rme],onChange:(U,z)=>{F(D.name,z||"")},error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle"||m,fullWidth:!0})}}),a.jsx(Ke,{name:"permissions",children:R=>{const{field:D,meta:O,form:N}=R,{setFieldValue:F}=N;return a.jsx(rn,{name:D.name,value:D.value,label:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.form.permissions"}),multiple:!0,size:"small",options:b(j.data_reference),onChange:(U,z)=>{F(D.name,[...new Set(z.map(kMt))])},error:!!O.error,helperText:O.error,disabled:f!=="idle"||c!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:l})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.cancel"}),onClick:()=>s(),variant:"outlined",disabled:f!=="idle"||c!=="idle"||!Ue(ie.provisioning)}),a.jsx(Ze,{text:n.formatMessage({id:"udr_ims_application_server_acls.new_ims_application_server_acl.save"}),type:"submit",disabled:f!=="idle"||c!=="idle"||!Ue(ie.provisioning)})]})})]})},e[18]=s,e[19]=l,e[20]=c,e[21]=d,e[22]=n,e[23]=m,e[24]=f,e[25]=A):A=e[25];let P;return e[26]!==_||e[27]!==y||e[28]!==A||e[29]!==w?(P=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:w,onSubmit:_,children:A}),e[26]=_,e[27]=y,e[28]=A,e[29]=w,e[30]=P):P=e[30],P};function AMt(t){switch(t){case rh.SMS_REGISTRATION_INFO:return[Cu.READ,Cu.WRITE];case rh.REPOSITORY_DATA:return[Cu.READ,Cu.WRITE,Cu.SUBSCRIBE];case rh.IMS_PUBLIC_IDENTITY:return[Cu.READ];case rh.IMSI:return[Cu.READ]}}function kMt(t){return t.trim()}const MMt=()=>{const t=he.c(20),e=Ye(),[r,n]=hl(),{drawerClose:s}=Jt();let i;t[0]!==s||t[1]!==n?(i=h=>{n(()=>{const _=new URLSearchParams;return h.application_server_icont&&_.set("applicationServer",h.application_server_icont),h.data_reference_eq&&_.set("dataReferenceEq",h.data_reference_eq),_},{replace:!0}),s()},t[0]=s,t[1]=n,t[2]=i):i=t[2];const o=i;let l;t[3]!==s||t[4]!==n?(l=()=>{n(PMt,{replace:!0}),s()},t[3]=s,t[4]=n,t[5]=l):l=t[5];const c=l;let u;t[6]!==r?(u=r.get("applicationServer")??"",t[6]=r,t[7]=u):u=t[7];let d;t[8]!==r?(d=r.get("dataReferenceEq")??"",t[8]=r,t[9]=d):d=t[9];let f;t[10]!==u||t[11]!==d?(f={application_server_icont:u,data_reference_eq:d},t[10]=u,t[11]=d,t[12]=f):f=t[12];let p;t[13]!==e?(p=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsx(te,{spacing:2,children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"application_server_icont",children:h=>{const{field:_}=h;return a.jsx(dt,{..._,value:_.value||"",label:e.formatMessage({id:"udr_ims_application_server_acls.filters.application_server_icont"}),size:"small"})}}),a.jsx(Ke,{name:"data_reference_eq",children:h=>{const{field:_,form:g}=h,{setFieldValue:y}=g;return a.jsx(rn,{value:_.value,name:_.name,label:e.formatMessage({id:"udr_ims_application_server_acls.filters.data_reference_eq"}),multiple:!1,size:"small",freeSolo:!1,options:["",...rme],onChange:(b,x)=>{y(_.name,x||"")},fullWidth:!0})}})]})})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-application-server-button-reset",text:e.formatMessage({id:"udr_ims_application_server_acls.filters.buttons.reset"}),disabled:!as(ie.provisioning),variant:"outlined",type:"reset"}),a.jsx(Ze,{"data-testid":"filter-application-server-button-apply",text:e.formatMessage({id:"udr_ims_application_server_acls.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[13]=e,t[14]=p):p=t[14];let m;return t[15]!==c||t[16]!==o||t[17]!==f||t[18]!==p?(m=a.jsx(Wr,{initialValues:f,onSubmit:o,onReset:c,children:p}),t[15]=c,t[16]=o,t[17]=f,t[18]=p,t[19]=m):m=t[19],m};function PMt(){return new URLSearchParams}const jMt=()=>{const t=he.c(28),e=Ye(),{dialogOpen:r,drawerOpen:n}=Jt(),s=u7();let i;t[0]!==r||t[1]!==e?(i=()=>{r({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.new_ims_application_server_acl"}),content:TMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=i):i=t[2];const o=i;let l;t[3]!==n||t[4]!==e?(l=()=>{n({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.filters"}),content:EMt})},t[3]=n,t[4]=e,t[5]=l):l=t[5];const c=l;let u;t[6]!==s?(u=d7({filter:s}),t[6]=s,t[7]=u):u=t[7];const d=!u;let f;t[8]!==e?(f=e.formatMessage({id:"udr_ims_application_server_acls.toolbar.filters"}),t[8]=e,t[9]=f):f=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ge.Filter,{}),t[10]=p):p=t[10];let m;t[11]===Symbol.for("react.memo_cache_sentinel")?(m={width:"100%"},t[11]=m):m=t[11];let h;t[12]!==c||t[13]!==f?(h=a.jsx(Ze,{"data-testid":"toolbar-button-filters",variant:"outlined",text:f,startIcon:p,onClick:c,sx:m}),t[12]=c,t[13]=f,t[14]=h):h=t[14];let _;t[15]!==d||t[16]!==h?(_=a.jsx(Iv,{variant:"dot",invisible:d,children:h}),t[15]=d,t[16]=h,t[17]=_):_=t[17];let g;t[18]!==e?(g=e.formatMessage({id:"common.new"}),t[18]=e,t[19]=g):g=t[19];let y;t[20]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(ge.Add,{}),t[20]=y):y=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=Ue(ie.provisioning),t[21]=b):b=t[21];let x;t[22]!==o||t[23]!==g?(x=a.jsx(Ze,{text:g,startIcon:y,onClick:o,disabled:!b}),t[22]=o,t[23]=g,t[24]=x):x=t[24];let w;return t[25]!==x||t[26]!==_?(w=a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[_,x]}),t[25]=x,t[26]=_,t[27]=w):w=t[27],w};function TMt(){return a.jsx(nme,{})}function EMt(){return a.jsx(MMt,{})}const RMt=()=>{const t=he.c(63),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{dialogOpen:o}=Jt();let l;t[0]!==o||t[1]!==e?(l=X=>{X&&o({title:e.formatMessage({id:"udr_ims_application_server_acls.toolbar.new_ims_application_server_acl"}),content:()=>a.jsx(nme,{id:X}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=l):l=t[2];const c=l;let u;t[3]!==i||t[4]!==e||t[5]!==r?(u=async X=>{const{id:Q}=X;Q&&r({text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:Q},{action:`${$.urls.udrImsApplicationServerAcls}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=r,t[6]=u):u=t[6];const d=u;let f;t[7]!==e?(f=e.formatMessage({id:"udr_ims_application_server_acls.table.header.application_server"}),t[7]=e,t[8]=f):f=t[8];let p;t[9]!==f?(p={key:"application_server",label:f},t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e?(m=e.formatMessage({id:"udr_ims_application_server_acls.table.header.data_reference"}),t[11]=e,t[12]=m):m=t[12];let h;t[13]!==m?(h={key:"data_reference",label:m},t[13]=m,t[14]=h):h=t[14];let _;t[15]!==e?(_=e.formatMessage({id:"udr_ims_application_server_acls.table.header.permissions"}),t[15]=e,t[16]=_):_=t[16];let g;t[17]!==_?(g={key:"permissions",label:_,cellRender:DMt},t[17]=_,t[18]=g):g=t[18];let y;t[19]!==e?(y=e.formatMessage({id:"udr_ims_application_server_acls.table.header.created_at"}),t[19]=e,t[20]=y):y=t[20];let b;t[21]!==y?(b={key:"created_at",label:y,cellRender:$Mt},t[21]=y,t[22]=b):b=t[22];let x;t[23]!==e?(x=e.formatMessage({id:"udr_ims_application_server_acls.table.header.modified_at"}),t[23]=e,t[24]=x):x=t[24];let w;t[25]!==x?(w={key:"modified_at",label:x,cellRender:OMt},t[25]=x,t[26]=w):w=t[26];let C;t[27]!==w||t[28]!==p||t[29]!==h||t[30]!==g||t[31]!==b?(C=[p,h,g,b,w],t[27]=w,t[28]=p,t[29]=h,t[30]=g,t[31]=b,t[32]=C):C=t[32];const k=C;let A;t[33]===Symbol.for("react.memo_cache_sentinel")?(A=_l(ie.provisioning),t[33]=A):A=t[33];const P=s.state!=="idle"||i.state!=="idle";let T;t[34]!==c?(T=X=>{const{id:Q}=X;return c(Q)},t[34]=c,t[35]=T):T=t[35];let j;t[36]!==P||t[37]!==T?(j={...A,disabled:P,onClick:T},t[36]=P,t[37]=T,t[38]=j):j=t[38];let R;t[39]!==e?(R=e.formatMessage({id:"udr_ims_application_server_acls.actions.delete"}),t[39]=e,t[40]=R):R=t[40];let D;t[41]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(ge.Trash,{}),t[41]=D):D=t[41];let O;t[42]!==i.state||t[43]!==s.state?(O=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[42]=i.state,t[43]=s.state,t[44]=O):O=t[44];let N;t[45]!==d?(N=X=>void d(X),t[45]=d,t[46]=N):N=t[46];let F;t[47]!==R||t[48]!==O||t[49]!==N?(F={label:R,icon:D,disabled:O,onClick:N},t[47]=R,t[48]=O,t[49]=N,t[50]=F):F=t[50];let U;t[51]!==j||t[52]!==F?(U=[j,F],t[51]=j,t[52]=F,t[53]=U):U=t[53];const z=U;let H;t[54]===Symbol.for("react.memo_cache_sentinel")?(H=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[54]=H):H=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Tr,{}),t[55]=W):W=t[55];let K;t[56]!==k||t[57]!==i.state||t[58]!==z?(K=X=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(jMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:k,data:X,hidePagination:!0,labelDisplayedRows:LMt,rowsPerPageOptions:$.pageSizeOptions,rowKey:"id",rowActions:z,stickyRowActions:!0,page:0,rowsCount:X?.length,rowsPerPage:X?.length})]}),t[56]=k,t[57]=i.state,t[58]=z,t[59]=K):K=t[59];let q;return t[60]!==n.udrImsApplicationServerAclList||t[61]!==K?(q=a.jsx(I.Suspense,{fallback:H,children:a.jsx(Qt,{resolve:n.udrImsApplicationServerAclList,errorElement:W,children:K})}),t[60]=n.udrImsApplicationServerAclList,t[61]=K,t[62]=q):q=t[62],q};function IMt(t){return{id:t,label:t}}function DMt(t){const{permissions:e}=t;return a.jsx(ks,{items:e.map(IMt),size:"small"})}function $Mt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function OMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function LMt(){return""}const NMt=Pr();async function FMt({request:t}){const e=await t.json(),r=await Qlt(e);return xt(r)||(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}async function UMt({request:t}){const e=await t.json(),r=await Zlt(e);return xt(r)||(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}async function BMt({request:t}){const{id:e}=await t.json(),r=await Xlt(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsInitialFilters)),Ft(r)}const zMt=dr().shape({data:We().required(NMt.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form_errors.required"})),description:We().strict(!0).matches(new RegExp($.regex.descriptionRm))}),sme=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,state:c,load:u}=i,{data:d,state:f,submit:p}=o,m=r!==void 0;let h;e[0]!==p||e[1]!==r||e[2]!==m?(h=k=>{const{data:A,description:P}=k;if(m){p({id:r,data:A,...!!P&&{description:P}},{action:`${$.urls.udrImsInitialFilters}/update`,method:"POST",encType:"application/json"});return}p({data:A,...!!P&&{description:P}},{action:`${$.urls.udrImsInitialFilters}/create`,method:"POST",encType:"application/json"})},e[0]=p,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!l){let j;e[4]===Symbol.for("react.memo_cache_sentinel")?(j={description:"",data:""},e[4]=j):j=e[4],g=j;break e}const k=l.udrImsInitialFilter,A=k?.description??"",P=k?.data??"";let T;e[5]!==A||e[6]!==P?(T={description:A,data:P},e[5]=A,e[6]=P,e[7]=T):T=e[7],g=T}const y=g;let b,x;e[8]!==r||e[9]!==m||e[10]!==u?(b=()=>{m&&u(`${$.urls.udrImsInitialFilters}/${r}`)},x=[r,m,u],e[8]=r,e[9]=m,e[10]=u,e[11]=b,e[12]=x):(b=e[11],x=e[12]),I.useEffect(b,x);let w;e[13]!==s||e[14]!==d||e[15]!==f||e[16]!==l||e[17]!==n||e[18]!==m||e[19]!==c?(w=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!l,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form.description"}),size:"small",error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle"})}}),a.jsx(Ke,{name:"data",children:k=>{const{field:A,meta:P,form:T}=k,{setFieldValue:j}=T;return a.jsx(Fv,{value:A.value,label:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.form.data"}),error:P.error,language:"xml",onChange:R=>{j(A.name,R)}})}}),a.jsx(Xr,{data:d})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-initial-filter-button-cancel",text:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.cancel"}),variant:"outlined",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:n.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[13]=s,e[14]=d,e[15]=f,e[16]=l,e[17]=n,e[18]=m,e[19]=c,e[20]=w):w=e[20];let C;return e[21]!==_||e[22]!==y||e[23]!==w?(C=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:zMt,onSubmit:_,children:w}),e[21]=_,e[22]=y,e[23]=w,e[24]=C):C=e[24],C},qMt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udr_ims_initial_filters.toolbar.new_ims_initial_filter"}),fullScreen:!0,content:VMt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.provisioning),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function VMt(){return a.jsx(sme,{})}const HMt=()=>{const t=he.c(62),e=Ye(),r=Gr(),{openConfirmDialog:n}=di(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=Z=>{Z&&o({title:e.formatMessage({id:"udr_ims_initial_filters.toolbar.new_ims_initial_filter"}),fullScreen:!0,content:()=>a.jsx(sme,{id:Z}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==n?(_=Z=>{const{id:re}=Z;re&&n({text:e.formatMessage({id:"udr_ims_initial_filters.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:re},{action:`${$.urls.udrImsInitialFilters}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=n,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_ims_initial_filters.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:GMt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_ims_initial_filters.table.header.description"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"description",label:x,cellRender:WMt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_ims_initial_filters.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:YMt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_ims_initial_filters.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:KMt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l(ie.provisioning),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=Z=>{const{id:re}=Z;return h(re)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_ims_initial_filters.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==i.state||t[38]!==s.state?(z=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[37]=i.state,t[38]=s.state,t[39]=z):z=t[39];let H;t[40]!==g||t[41]!==F||t[42]!==z?(H={label:F,icon:U,disabled:z,onClick:g},t[40]=g,t[41]=F,t[42]=z,t[43]=H):H=t[43];let W;t[44]!==N||t[45]!==H?(W=[N,H],t[44]=N,t[45]=H,t[46]=W):W=t[46];const K=W;let q;t[47]===Symbol.for("react.memo_cache_sentinel")?(q=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[47]=q):q=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Tr,{}),t[48]=X):X=t[48];let Q;t[49]!==d||t[50]!==u||t[51]!==j||t[52]!==i.state||t[53]!==p||t[54]!==f||t[55]!==l||t[56]!==c||t[57]!==K?(Q=Z=>{const{data:re,metadata:fe}=Z;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(qMt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:re,page:p(fe),labelDisplayedRows:QMt,rowsCount:f(fe),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:K,stickyRowActions:!0,onPageChange:d(fe)})]})},t[49]=d,t[50]=u,t[51]=j,t[52]=i.state,t[53]=p,t[54]=f,t[55]=l,t[56]=c,t[57]=K,t[58]=Q):Q=t[58];let Y;return t[59]!==r.udrImsInitialFilterList||t[60]!==Q?(Y=a.jsx(I.Suspense,{fallback:q,children:a.jsx(Qt,{resolve:r.udrImsInitialFilterList,errorElement:X,children:Q})}),t[59]=r.udrImsInitialFilterList,t[60]=Q,t[61]=Y):Y=t[61],Y};function GMt(t){const{id:e}=t;return a.jsx(Ap,{text:e||""})}function WMt(t){const{description:e}=t;return a.jsx(_e,{type:"body2",children:e})}function YMt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function KMt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function QMt(){return""}const Rm=t=>{const e=he.c(10),{translationKey:r,value:n}=t,s=Ye();let i;e[0]!==s||e[1]!==r?(i=s.formatMessage({id:r}),e[0]=s,e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=a.jsx(_e,{fontWeight:"600",children:i}),e[3]=i,e[4]=o):o=e[4];const l=n??"-";let c;e[5]!==l?(c=a.jsx(_e,{children:l}),e[5]=l,e[6]=c):c=e[6];let u;return e[7]!==o||e[8]!==c?(u=a.jsxs(te,{spacing:0,children:[o,c]}),e[7]=o,e[8]=c,e[9]=u):u=e[9],u},ZMt=t=>{const e=he.c(16),{name:r}=t,n=Ye(),{data:s,state:i,load:o}=gr();let l;e:{if(s&&"udrImsPrivateIdentityPrivateStatus"in s){l=s.udrImsPrivateIdentityPrivateStatus;break e}l=null}const c=l;let u,d;e[0]!==o||e[1]!==r?(u=()=>{o(`${$.urls.udrImsPrivateIdentities}/private-status/${r}`)},d=[r,o],e[0]=o,e[1]=r,e[2]=u,e[3]=d):(u=e[2],d=e[3]),I.useEffect(u,d);const f=i==="loading";let p;e[4]!==n||e[5]!==c?(p=!c&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),e[4]=n,e[5]=c,e[6]=p):p=e[6];let m;e[7]!==n||e[8]!==c?(m=!!c&&a.jsxs(te,{spacing:2,children:[!c.location?.ip_sm_gw&&!c.location?.scscf&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),!!c.location?.ip_sm_gw&&a.jsx(pr,{title:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Rm,{value:c.location.ip_sm_gw.host,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.host"}),a.jsx(Rm,{value:c.location.ip_sm_gw.realm,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.realm"}),a.jsx(Rm,{value:Mr(c.location.ip_sm_gw.registered_at),translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.ip_sm_gw.registered_at"})]})})}),!!c.location?.scscf&&a.jsx(pr,{title:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Rm,{value:c.location.scscf.host,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.host"}),a.jsx(Rm,{value:c.location.scscf.realm,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.realm"}),a.jsx(Rm,{value:c.location.scscf.name,translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.name"}),a.jsx(Rm,{value:Mr(c.location.scscf.modified_at),translationKey:"udr_ims_private_identities.dialog.ims_private_identity_status.location.scscf.modified_at"})]})})})]}),e[7]=n,e[8]=c,e[9]=m):m=e[9];let h;e[10]!==p||e[11]!==m?(h=a.jsxs(a.Fragment,{children:[p,m]}),e[10]=p,e[11]=m,e[12]=h):h=e[12];let _;return e[13]!==f||e[14]!==h?(_=a.jsx(_s,{loading:f,children:h}),e[13]=f,e[14]=h,e[15]=_):_=e[15],_},XMt=t=>{const e=he.c(16),{name:r}=t,n=Ye(),{data:s,state:i,load:o}=gr();let l;e:{if(s&&"udrImsPrivateIdentityPublicStatus"in s){l=s.udrImsPrivateIdentityPublicStatus;break e}l=null}const c=l;let u,d;e[0]!==o||e[1]!==r?(u=()=>{o(`${$.urls.udrImsPrivateIdentities}/public-status/${r}`)},d=[r,o],e[0]=o,e[1]=r,e[2]=u,e[3]=d):(u=e[2],d=e[3]),I.useEffect(u,d);const f=i==="loading";let p;e[4]!==n||e[5]!==c?(p=!c&&a.jsx(_e,{children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.no_data"})}),e[4]=n,e[5]=c,e[6]=p):p=e[6];let m;e[7]!==n||e[8]!==c?(m=!!c&&a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.status"})}),a.jsxs(_e,{children:[c.status," ",c.pending?`(${n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.pending"})})`:""]})]}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",children:n.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.modified_at"})}),a.jsx(_e,{children:Mr(c.modified_at)})]})]}),e[7]=n,e[8]=c,e[9]=m):m=e[9];let h;e[10]!==p||e[11]!==m?(h=a.jsxs(a.Fragment,{children:[p,m]}),e[10]=p,e[11]=m,e[12]=h):h=e[12];let _;return e[13]!==f||e[14]!==h?(_=a.jsx(_s,{loading:f,children:h}),e[13]=f,e[14]=h,e[15]=_):_=e[15],_},JMt=t=>{const e=he.c(29),{row:r,onShowPublicStatusClick:n,isLoading:s}=t,i=s===void 0?!1:s,o=Ye(),l=i?"0.5":"1";let c;e[0]!==l?(c={opacity:l},e[0]=l,e[1]=c):c=e[1];let u;e[2]!==o||e[3]!==r.server_name?(u=r.server_name&&a.jsxs(a.Fragment,{children:[a.jsx(Is,{size:{xs:12,sm:2},children:a.jsx(_e,{fontWeight:"600",children:o.formatMessage({id:"udr_ims_private_identities.table.value.server_name"})})}),a.jsx(Is,{size:{xs:12,sm:10},children:r.server_name})]}),e[2]=o,e[3]=r.server_name,e[4]=u):u=e[4];let d;e[5]!==o||e[6]!==r.sip_digest_provisioned?(d=r.sip_digest_provisioned!==void 0&&a.jsxs(a.Fragment,{children:[a.jsx(Is,{size:{xs:12,sm:2},children:a.jsx(_e,{fontWeight:"600",children:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned"})})}),a.jsx(Is,{size:{xs:12,sm:10},children:r.sip_digest_provisioned?a.jsx(bi,{label:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned_true"}),status:nn.SUCCESS}):a.jsx(bi,{label:o.formatMessage({id:"udr_ims_private_identities.table.value.sip_digest_provisioned_false"}),status:nn.ERROR})})]}),e[5]=o,e[6]=r.sip_digest_provisioned,e[7]=d):d=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={xs:12,sm:2},e[8]=f):f=e[8];let p;e[9]!==o?(p=o.formatMessage({id:"udr_ims_private_identities.table.value.registration_sets"}),e[9]=o,e[10]=p):p=e[10];let m;e[11]!==p?(m=a.jsx(Is,{size:f,children:a.jsx(_e,{fontWeight:"600",children:p})}),e[11]=p,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h={xs:12,sm:10},e[13]=h):h=e[13];let _;if(e[14]!==o||e[15]!==n||e[16]!==r.registration_sets){let b;e[18]!==o||e[19]!==n?(b=x=>a.jsx(pr,{folder:!0,dense:!0,title:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identities"}),elevation:2,children:a.jsxs(Kt,{children:[x.description&&a.jsx(_e,{type:"body2",color:"text.secondary",children:x.description}),a.jsx(al,{children:x.public_identities.map(w=>a.jsx(Is,{size:{xs:12,md:6,xl:4},sx:{position:"relative"},children:a.jsx(pr,{folder:!0,elevation:4,sx:{flex:"1 1 auto"},children:a.jsxs(Kt,{sx:{position:"relative"},children:[a.jsx("div",{title:o.formatMessage({id:"udr_ims_private_identities.table.status"}),style:{position:"absolute",top:3,right:3},children:a.jsx(Zr,{onClick:()=>n(w.name),children:a.jsx(ge.Info,{})})}),a.jsxs(te,{spacing:1,children:[w.barred?a.jsx(bi,{status:nn.ERROR,label:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_barred"})}):a.jsx(bi,{status:nn.SUCCESS,label:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_authorized"})}),a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.public_identity_name"})}),a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:w.name})]}),w.service_profile&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.service_profile"})}),a.jsx(_e,{type:"body2",sx:{wordBreak:"break-all"},children:w.service_profile})]}),!!w.application_servers_profiles?.length&&a.jsxs(te,{spacing:0,children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:o.formatMessage({id:"udr_ims_private_identities.table.value.application_servers_profiles"})}),a.jsx(ks,{items:w.application_servers_profiles.map(ePt)})]})]})]})})},w.name))})]})},x.description),e[18]=o,e[19]=n,e[20]=b):b=e[20],_=r.registration_sets.map(b),e[14]=o,e[15]=n,e[16]=r.registration_sets,e[17]=_}else _=e[17];let g;e[21]!==_?(g=a.jsx(Is,{size:h,children:_}),e[21]=_,e[22]=g):g=e[22];let y;return e[23]!==g||e[24]!==c||e[25]!==u||e[26]!==d||e[27]!==m?(y=a.jsxs(al,{sx:c,children:[u,d,m,g]}),e[23]=g,e[24]=c,e[25]=u,e[26]=d,e[27]=m,e[28]=y):y=e[28],y};function ePt(t){return{label:t.service_indication,id:t.service_indication}}const ea=Pr();var Gm=(t=>(t.DISTINCT_PUI="DISTINCT_PUI",t.PSI="PSI",t))(Gm||{}),Td=(t=>(t.VOLTE="VOLTE",t.PSI="PSI",t))(Td||{});const tPt=Object.keys(Td),rPt=Object.keys(Gm),nC={registration_sets:[],server_name:"",status:"ACTIVE",supi:"",type:"PSI"},Bee=(t,e)=>t.map(({public_identities:r,description:n})=>({_uuid:gn(),description:n??"",public_identities:r.map(({barred:s,name:i,service_profile:o,application_servers_profiles:l})=>({_uuid:gn(),barred:s,name:i,...e&&o&&{service_profile:o},...l&&{application_servers_profiles:l}}))})),zee=(t,e)=>t.map(({public_identities:r,description:n})=>({description:n&&n.length>0?n:null,public_identities:r.map(({barred:s,name:i,service_profile:o,application_servers_profiles:l})=>({barred:s,name:i,...l&&{application_servers_profiles:l},...e&&o&&{service_profile:o}}))})),nPt=t=>{if(!t)return nC;switch(t.type){case"PSI":{const{registration_sets:e,status:r,type:n,supi:s,server_name:i}=t;return{...nC,server_name:i,status:r,registration_sets:Bee(e,!1),supi:s,type:n}}case"DISTINCT_PUI":{const{registration_sets:e,status:r,supi:n,type:s,sip_digest_provisioned:i}=t;return{...nC,registration_sets:Bee(e,!0),status:r,supi:n,type:s,isOverridingKeys:!1,sip_digest_provisioned:i}}}},qee=({values:t,isEditing:e})=>{switch(t.type){case"PSI":{const{registration_sets:r,status:n,type:s,supi:i,server_name:o}=t;return{...!e&&{supi:i},...!e&&{type:s},status:n,registration_sets:zee(r,!1),server_name:o}}case"DISTINCT_PUI":{const{isOverridingKeys:r,registration_sets:n,status:s,supi:i,type:o,sip_digest_password:l,sip_digest_realm:c}=t;return{...!e&&{supi:i},...!e&&{type:o},status:s,isOverridingKeys:r,registration_sets:zee(n,!0),...l&&c&&r&&{sip_digest:{password:l,realm:c}}}}}},sPt=dr().shape({supi:We().strict(!0).required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"})).when("type",(t,e)=>{switch(t){case"PSI":return e.strict(!0).matches(new RegExp($.regex.nai));case"VOLTE":return e.strict(!0).matches(new RegExp($.regex.imsi))}}),type:We().required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"})),service_profile:We().strict(!0).when("type",(t,e)=>{switch(t){case"PSI":return e;case"VOLTE":return e.strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))}}),public_identity:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"}));case"VOLTE":return e}}),server_name:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.required"}));case"VOLTE":return e}})}),iPt=dr().shape({supi:We().strict(!0).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"})).when("type",(t,e)=>{switch(t){case"PSI":return e.strict(!0).matches(new RegExp($.regex.nai));case"DISTINCT_PUI":return e.strict(!0).matches(new RegExp(`${$.regex.imsi}|${$.regex.nai}`))}}),type:We().required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"})),status:We(),registration_sets:yr().when("type",t=>{switch(t){case"PSI":return yr(dr({description:We(),public_identities:yr().of(dr().shape({barred:li(),name:We().required()})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}));case"DISTINCT_PUI":return yr(dr({description:We(),public_identities:yr().of(dr().shape({barred:li(),name:We().required(),service_profile:We().matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))})).min(1).required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}}),sip_digest_password:We().when("isOverridingKeys",(t,e)=>{if(t)return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}),sip_digest_realm:We().when("isOverridingKeys",(t,e)=>{if(t)return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}))}),server_name:We().when("type",(t,e)=>{switch(t){case"PSI":return e.required(ea.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.required"}));case"DISTINCT_PUI":return e}})}).test("sip_digest",`${ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.sip_digest"})}`,function({sip_digest_password:t,sip_digest_realm:e,type:r}){return r!=="DISTINCT_PUI"?!0:!!t&&t.length>0&&!e||!!e&&e.length>0&&!t?this.createError({path:"sip_digest",message:`${ea.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form_errors.sip_digest"})}`}):!0}),oPt=()=>{const t=he.c(13),e=Ye(),{dialogClose:r}=Jt(),{upsertFetcher:n}=Ys(),{data:s,state:i,submit:o}=n;let l;t[0]!==o?(l=h=>{let _;e:switch(h.type){case Td.PSI:{const{type:g,public_identity:y,supi:b,server_name:x}=h;_={type:g,public_identity:y,supi:b,server_name:x};break e}case Td.VOLTE:{const{type:g,supi:y,service_profile:b}=h;_={type:g,supi:y,...b&&{service_profile:b}}}}o(_,{action:`${$.urls.udrImsPrivateIdentities}/create-basic`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={public_identity:"",server_name:"",supi:"",type:Td.PSI,service_profile:""},t[2]=u):u=t[2];const d=u;let f;t[3]!==r?(f=()=>r(),t[3]=r,t[4]=f):f=t[4];let p;t[5]!==s||t[6]!==i||t[7]!==e?(p=h=>{const{values:_}=h;return a.jsxs(Kd,{style:{display:"flex",flexDirection:"column",flexGrow:"1",maxHeight:"100%",overflow:"auto"},children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"type",children:g=>{const{field:y,meta:b,form:x}=g,{setFieldValue:w}=x,C=k=>{w(y.name,k),k===Td.PSI&&w("service_profile",""),k===Td.VOLTE&&(w("server_name",""),w("public_identity",""))};return a.jsx(qs,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.type"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting",onChange:k=>C(k.target.value),children:tPt.map(aPt)})}}),a.jsx(Ke,{name:"supi",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.supi"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}}),_.type===Td.PSI&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:"server_name",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.server_name"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}}),a.jsx(Ke,{name:"public_identity",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.public_identity"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}})]}),_.type===Td.VOLTE&&a.jsx(a.Fragment,{children:a.jsx(Ke,{name:"service_profile",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.form.service_profile"}),size:"small",error:!!b.error,helperText:b.error,disabled:i==="loading"||i==="submitting"})}})}),a.jsx(Xr,{data:s})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.cancel"}),type:"reset",variant:"outlined",disabled:i==="loading"||i==="submitting"}),a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.new_ims_private_identity_basic.save"}),type:"submit",disabled:i==="loading"||i==="submitting"})]})})]})},t[5]=s,t[6]=i,t[7]=e,t[8]=p):p=t[8];let m;return t[9]!==c||t[10]!==f||t[11]!==p?(m=a.jsx(Wr,{initialValues:d,validationSchema:sPt,onSubmit:c,onReset:f,children:p}),t[9]=c,t[10]=f,t[11]=p,t[12]=m):m=t[12],m};function aPt(t){return a.jsx(En,{value:t,children:t},t)}const lPt=()=>{const t=he.c(104),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=ys(),o=gr(),{dialogOpen:l}=Jt(),{pageSize:c,pageSizeOptions:u,changePageSize:d,changePage:f,getRowsCount:p,getPage:m}=Na();let h;t[0]!==i?(h=()=>{i(`${$.urls.udrImsPrivateIdentities}/new`)},t[0]=i,t[1]=h):h=t[1];const _=h;let g;t[2]!==l||t[3]!==e?(g=()=>{l({title:e.formatMessage({id:"udr_ims_private_identities.toolbar.new_ims_private_identity_basic"}),content:cPt})},t[2]=l,t[3]=e,t[4]=g):g=t[4];const y=g;let b;t[5]!==o||t[6]!==e||t[7]!==r?(b=we=>{const{name:Me}=we;Me&&r({text:e.formatMessage({id:"udr_ims_service_profiles.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{o.submit({name:Me},{action:`${$.urls.udrImsPrivateIdentities}/delete`,method:"POST",encType:"application/json"})}})},t[5]=o,t[6]=e,t[7]=r,t[8]=b):b=t[8];const x=b;let w;t[9]!==l||t[10]!==e?(w=we=>{l({title:e.formatMessage({id:"udr_ims_private_identities.dialog.ims_private_identity_status.title"}),content:()=>a.jsx(ZMt,{name:we}),closeIcon:!0,closeOnBackdropClick:!0})},t[9]=l,t[10]=e,t[11]=w):w=t[11];const C=w;let k;t[12]!==l||t[13]!==e?(k=we=>{l({title:e.formatMessage({id:"udr_ims_private_identities.dialog.ims_public_identity_status.title"}),content:()=>a.jsx(XMt,{name:we}),closeIcon:!0,closeOnBackdropClick:!0})},t[12]=l,t[13]=e,t[14]=k):k=t[14];const A=k;let P;t[15]!==e?(P=e.formatMessage({id:"udr_ims_private_identities.table.header.name"}),t[15]=e,t[16]=P):P=t[16];let T;t[17]!==P?(T={key:"name",label:P,cellRender:uPt},t[17]=P,t[18]=T):T=t[18];let j;t[19]!==e?(j=e.formatMessage({id:"udr_ims_private_identities.table.header.supi"}),t[19]=e,t[20]=j):j=t[20];let R;t[21]!==j?(R={key:"supi",label:j,cellRender:dPt},t[21]=j,t[22]=R):R=t[22];let D;t[23]!==e?(D=e.formatMessage({id:"udr_ims_private_identities.table.header.type"}),t[23]=e,t[24]=D):D=t[24];let O;t[25]!==D?(O={key:"type",label:D,cellRender:fPt},t[25]=D,t[26]=O):O=t[26];let N;t[27]!==e?(N=e.formatMessage({id:"udr_ims_private_identities.table.header.status"}),t[27]=e,t[28]=N):N=t[28];let F;t[29]!==N?(F={key:"status",label:N,cellRender:pPt},t[29]=N,t[30]=F):F=t[30];let U;t[31]!==e?(U=e.formatMessage({id:"udr_ims_private_identities.table.header.created_at"}),t[31]=e,t[32]=U):U=t[32];let z;t[33]!==U?(z={key:"created_at",label:U,cellRender:mPt},t[33]=U,t[34]=z):z=t[34];let H;t[35]!==e?(H=e.formatMessage({id:"udr_ims_private_identities.table.header.modified_at"}),t[35]=e,t[36]=H):H=t[36];let W;t[37]!==H?(W={key:"modified_at",label:H,cellRender:hPt},t[37]=H,t[38]=W):W=t[38];let K;t[39]!==O||t[40]!==F||t[41]!==z||t[42]!==W||t[43]!==T||t[44]!==R?(K=[T,R,O,F,z,W],t[39]=O,t[40]=F,t[41]=z,t[42]=W,t[43]=T,t[44]=R,t[45]=K):K=t[45];const q=K;let X;t[46]!==e?(X=e.formatMessage({id:"udr_ims_private_identities.actions.status"}),t[46]=e,t[47]=X):X=t[47];let Q;t[48]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Info,{}),t[48]=Q):Q=t[48];let Y;t[49]!==C?(Y=we=>{const{name:Me}=we;return C(Me)},t[49]=C,t[50]=Y):Y=t[50];let Z;t[51]!==X||t[52]!==Y?(Z={label:X,icon:Q,onClick:Y},t[51]=X,t[52]=Y,t[53]=Z):Z=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=_l(ie.provisioning),t[54]=re):re=t[54];const fe=s.state!=="idle"||o.state!=="idle";let de;t[55]!==i?(de=we=>{const{name:Me}=we;i(`${$.urls.udrImsPrivateIdentities}/${Me}`)},t[55]=i,t[56]=de):de=t[56];let se;t[57]!==fe||t[58]!==de?(se={...re,disabled:fe,onClick:de},t[57]=fe,t[58]=de,t[59]=se):se=t[59];let le;t[60]!==e?(le=e.formatMessage({id:"udr_ims_private_identities.actions.edit_application_servers_profiles"}),t[60]=e,t[61]=le):le=t[61];let ee;t[62]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(ge.Sync,{}),t[62]=ee):ee=t[62];const J=s.state!=="idle"||o.state!=="idle";let me;t[63]!==i?(me=we=>{const{name:Me}=we;i(`${$.urls.udrImsPrivateIdentities}/${Me}/application-servers-profiles`)},t[63]=i,t[64]=me):me=t[64];let pe;t[65]!==le||t[66]!==J||t[67]!==me?(pe={label:le,icon:ee,disabled:J,onClick:me},t[65]=le,t[66]=J,t[67]=me,t[68]=pe):pe=t[68];let Se;t[69]!==e?(Se=e.formatMessage({id:"udr_ims_private_identities.actions.delete"}),t[69]=e,t[70]=Se):Se=t[70];let ve;t[71]===Symbol.for("react.memo_cache_sentinel")?(ve=a.jsx(ge.Trash,{}),t[71]=ve):ve=t[71];let xe;t[72]!==o.state||t[73]!==s.state?(xe=s.state!=="idle"||o.state!=="idle"||!Ue(ie.provisioning),t[72]=o.state,t[73]=s.state,t[74]=xe):xe=t[74];let qe;t[75]!==x||t[76]!==Se||t[77]!==xe?(qe={label:Se,icon:ve,onClick:x,disabled:xe},t[75]=x,t[76]=Se,t[77]=xe,t[78]=qe):qe=t[78];let Le;t[79]!==Z||t[80]!==se||t[81]!==pe||t[82]!==qe?(Le=[Z,se,pe,qe],t[79]=Z,t[80]=se,t[81]=pe,t[82]=qe,t[83]=Le):Le=t[83];const Te=Le;let je;t[84]===Symbol.for("react.memo_cache_sentinel")?(je=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[84]=je):je=t[84];let Ge;t[85]===Symbol.for("react.memo_cache_sentinel")?(Ge=a.jsx(Tr,{}),t[85]=Ge):Ge=t[85];let nt;t[86]!==f||t[87]!==d||t[88]!==q||t[89]!==o.state||t[90]!==m||t[91]!==p||t[92]!==y||t[93]!==_||t[94]!==e||t[95]!==s.state||t[96]!==c||t[97]!==u||t[98]!==Te||t[99]!==A?(nt=we=>{const{data:Me,metadata:$e}=we;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[a.jsx(Ze,{variant:"outlined",text:e.formatMessage({id:"udr_ims_private_identities.toolbar.new_ims_private_identity_basic"}),startIcon:a.jsx(ge.Add,{}),onClick:y,disabled:!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:_,disabled:!Ue(ie.provisioning)})]})}),a.jsx(Br,{autoScale:!0,loading:o.state!=="idle",orderBy:"name",columns:q,data:Me,page:m($e),labelDisplayedRows:gPt,rowsCount:p($e),rowsPerPage:c,onRowsPerPageChange:d,rowsPerPageOptions:u,rowKey:"name",rowActions:Te,stickyRowActions:!0,onPageChange:f($e),rowDetail:{content:Ve=>a.jsx(JMt,{row:Ve,onShowPublicStatusClick:Ne=>A(Ne),isLoading:s.state!=="idle"||o.state!=="idle"})}})]})},t[86]=f,t[87]=d,t[88]=q,t[89]=o.state,t[90]=m,t[91]=p,t[92]=y,t[93]=_,t[94]=e,t[95]=s.state,t[96]=c,t[97]=u,t[98]=Te,t[99]=A,t[100]=nt):nt=t[100];let Re;return t[101]!==n.udrImsPrivateIdentityList||t[102]!==nt?(Re=a.jsx(I.Suspense,{fallback:je,children:a.jsx(Qt,{resolve:n.udrImsPrivateIdentityList,errorElement:Ge,children:nt})}),t[101]=n.udrImsPrivateIdentityList,t[102]=nt,t[103]=Re):Re=t[103],Re};function cPt(){return a.jsx(oPt,{})}function uPt(t){const{name:e}=t;return a.jsx(_e,{type:"body2",children:e})}function dPt(t){const{supi:e}=t;return a.jsx(_e,{type:"body2",children:e})}function fPt(t){const{type:e}=t;return a.jsx(_e,{type:"body2",children:e})}function pPt(t){const{status:e}=t;return a.jsx(bi,{status:e==="ACTIVE"?nn.SUCCESS:nn.ERROR,asChip:!0,label:e})}function mPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function hPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function gPt(){return""}const Vee=Pr(),_Pt=dr().shape({service_indication:We().required(Vee.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.errors.required"})),service_data:We().required(Vee.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.errors.required"}))}),Hee=t=>{const e=he.c(20),{applicationServerProfile:r,publicIdentity:n,dialogId:s}=t,i=Ye(),{dialogClose:o}=Jt(),{upsertFetcher:l}=Ys(),{data:c,state:u,submit:d}=l,{name:f}=ko(),p=!!r;let m;e[0]!==d||e[1]!==p||e[2]!==f||e[3]!==n?(m=C=>{if(p){d({...C,public_identity:n},{action:`${$.urls.udrImsPrivateIdentities}/${f}/application-servers-profiles/update`,method:"POST",encType:"application/json"});return}d({...C,public_identity:n},{action:`${$.urls.udrImsPrivateIdentities}/${f}/application-servers-profiles/create`,method:"POST",encType:"application/json"})},e[0]=d,e[1]=p,e[2]=f,e[3]=n,e[4]=m):m=e[4];const h=m;r?.service_data,r?.service_indication;const _=r?.service_indication||"",g=r?.service_data||"";let y;e[5]!==n||e[6]!==_||e[7]!==g?(y={service_indication:_,service_data:g,public_identity:n},e[5]=n,e[6]=_,e[7]=g,e[8]=y):y=e[8];const b=y;let x;e[9]!==o||e[10]!==s||e[11]!==c||e[12]!==u||e[13]!==i||e[14]!==p?(x=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{children:a.jsxs(te,{fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"service_indication",children:C=>{const{field:k,meta:A}=C;return a.jsx(dt,{...k,label:i.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.service_indication"}),error:!!A.error,size:"small",helperText:A.error,disabled:u==="submitting"||p})}}),a.jsx(Ke,{name:"service_data",children:C=>{const{field:k,meta:A,form:P}=C,{setFieldValue:T}=P;return a.jsx(Fv,{value:k.value,language:"xml",label:i.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.service_data"}),error:A.error,onChange:j=>{T(k.name,j)}})}}),a.jsx(Xr,{data:c})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-initial-filter-button-cancel",text:i.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.cancel"}),variant:"outlined",disabled:!Ue(ie.provisioning)||u!=="idle",onClick:()=>o(s)}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:i.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:!Ue(ie.provisioning)||u!=="idle"})]})})]}),e[9]=o,e[10]=s,e[11]=c,e[12]=u,e[13]=i,e[14]=p,e[15]=x):x=e[15];let w;return e[16]!==h||e[17]!==b||e[18]!==x?(w=a.jsx(Wr,{initialValues:b,enableReinitialize:!0,validationSchema:_Pt,onSubmit:h,children:x}),e[16]=h,e[17]=b,e[18]=x,e[19]=w):w=e[19],w},vPt=()=>{const t=he.c(23),e=Ye(),{openConfirmDialog:r}=di(),{dialogOpen:n}=Jt(),{submit:s}=gr(),i=zn(),{name:o}=ko();let l;t[0]!==o||t[1]!==s?(l=x=>{const{public_identity:w,service_indication:C}=x;s({public_identity:w,service_indication:C},{action:`${$.urls.udrImsPrivateIdentities}/${o}/application-servers-profiles/delete`,method:"POST",encType:"application/json"})},t[0]=o,t[1]=s,t[2]=l):l=t[2];const c=l;let u;t[3]!==n||t[4]!==e?(u=x=>{const{public_identity:w}=x;n({id:"application_servers_profiles_create",fullScreen:!0,title:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.create.title"}),content:()=>a.jsx(Hee,{publicIdentity:w,dialogId:"application_servers_profiles_create"}),closeOnBackdropClick:!1})},t[3]=n,t[4]=e,t[5]=u):u=t[5];const d=u;let f;t[6]!==n||t[7]!==e?(f=x=>{const{service_indication:w,service_data:C,public_identity:k}=x,A=`application_servers_profiles_edit-${w}-${C}`;n({id:A,fullScreen:!0,title:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.edit.title"}),content:()=>a.jsx(Hee,{publicIdentity:k,applicationServerProfile:{service_indication:w,service_data:C},dialogId:A}),closeOnBackdropClick:!1})},t[6]=n,t[7]=e,t[8]=f):f=t[8];const p=f;let m;t[9]!==c||t[10]!==e||t[11]!==r?(m=x=>{const{service_indication:w,public_identity:C}=x,k=`application_servers_profiles_delete-${w}`;r({id:k,text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"},{service_indication:w}),onConfirm:()=>void c({service_indication:w,public_identity:C})})},t[9]=c,t[10]=e,t[11]=r,t[12]=m):m=t[12];const h=m;let _;t[13]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Dt,{variant:"rounded",height:"600px",width:"100%"}),t[13]=_):_=t[13];let g;t[14]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Tr,{}),t[14]=g):g=t[14];let y;t[15]!==d||t[16]!==h||t[17]!==p||t[18]!==e?(y=x=>a.jsxs(te,{spacing:2,sx:{m:2},children:[!x&&a.jsx(Lr,{severity:"error",message:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.no_private_identity"})}),!!x&&x.registration_sets.length&&a.jsx(Jn,{children:x.registration_sets.map((w,C)=>{const k=w.description||`Registration Set ${C+1}`;return a.jsx(xr,{expanded:!0,title:k,elevation:2,content:a.jsx(te,{children:w.public_identities.map(A=>{const P=[{label:e.formatMessage({id:Ue(ie.provisioning)?"udr_ims_private_identities.application_servers_profiles.form.actions.edit":"udr_ims_private_identities.application_servers_profiles.form.actions.show"}),icon:a.jsx(ge.Edit,{}),onClick:T=>{T.item&&p({...T.item,public_identity:A.name})}},{label:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.actions.delete"}),icon:a.jsx(ge.Trash,{}),onClick:T=>{T.item&&h({...T.item,public_identity:A.name})}}];return a.jsx(pr,{title:A.name,elevation:3,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.form.actions.create"}),variant:"outlined",size:"small",onClick:()=>d({public_identity:A.name}),disabled:!Ue(ie.provisioning),startIcon:a.jsx(ge.Add,{})}),children:a.jsx(s7,{divided:!0,listItemActions:P,sx:{p:0},children:A.application_servers_profiles?.map(yPt)??a.jsx(a.Fragment,{})})},A.name)})})},k)})})]}),t[15]=d,t[16]=h,t[17]=p,t[18]=e,t[19]=y):y=t[19];let b;return t[20]!==i.udrImsPrivateIdentity||t[21]!==y?(b=a.jsx(I.Suspense,{fallback:_,children:a.jsx(Qt,{resolve:i.udrImsPrivateIdentity,errorElement:g,children:y})}),t[20]=i.udrImsPrivateIdentity,t[21]=y,t[22]=b):b=t[22],b};function yPt(t,e){return a.jsx(i7,{primaryText:t.service_indication,item:t,index:e,selected:!1},t.service_indication)}const bPt=()=>{const t=he.c(33),e=Ye(),{name:r}=ko(),{submit:n,state:s,data:i}=gr(),{submit:o}=gr(),l=zn(),{confirmationSimpleDialogOpen:c}=Jt(),u=ys(),d=r!=="new";let f;t[0]!==r||t[1]!==u?(f=()=>{u(`${$.urls.udrImsPrivateIdentities}/${r}/application-servers-profiles`)},t[0]=r,t[1]=u,t[2]=f):f=t[2];const p=f;let m;t[3]!==c||t[4]!==o||t[5]!==e||t[6]!==r?(m=()=>{r&&c({title:e.formatMessage({id:"udr_ims_service_profiles.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{o({name:r},{action:`${$.urls.udrImsPrivateIdentities}/delete`,method:"POST",encType:"application/json"})}})},t[3]=c,t[4]=o,t[5]=e,t[6]=r,t[7]=m):m=t[7];const h=m;let _;t[8]!==n||t[9]!==d||t[10]!==r?(_=T=>{r&&(d?n({name:r,...qee({values:T,isEditing:d})},{action:`${$.urls.udrImsPrivateIdentities}/update`,method:"POST",encType:"application/json"}):n({...qee({values:T,isEditing:d})},{action:`${$.urls.udrImsPrivateIdentities}/create`,method:"POST",encType:"application/json"}))},t[8]=n,t[9]=d,t[10]=r,t[11]=_):_=t[11];const g=_;let y;t[12]!==p||t[13]!==h||t[14]!==e||t[15]!==d?(y=d&&a.jsxs(te,{direction:"row",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.actions.edit_application_servers_profiles"}),startIcon:a.jsx(ge.Sync,{}),variant:"outlined",onClick:p,disabled:!Ue(ie.provisioning)}),a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:h})]}),t[12]=p,t[13]=h,t[14]=e,t[15]=d,t[16]=y):y=t[16];let b;t[17]!==y?(b=a.jsx(hs,{children:y}),t[17]=y,t[18]=b):b=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Dt,{variant:"rounded",height:"926px",width:"100%"}),t[19]=x):x=t[19];const w=l?.udrImsPrivateIdentity;let C;t[20]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Tr,{}),t[20]=C):C=t[20];let k;t[21]!==i||t[22]!==s||t[23]!==g||t[24]!==e||t[25]!==d?(k=T=>{const j=T?nPt(T):nC;return a.jsx(Wr,{initialValues:j,validationSchema:iPt,onSubmit:g,children:R=>{const{values:D,errors:O,dirty:N}=R;return a.jsx(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"type",children:F=>{const{field:U,meta:z,form:H}=F,{setFieldValue:W}=H,K=q=>{W(U.name,q),q===Gm.PSI&&(W("sip_digest_password",""),W("sip_digest_realm","")),q===Gm.DISTINCT_PUI&&W("server_name","")};return a.jsx(qs,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.type"}),size:"small",error:!!z.error,helperText:z.error,disabled:d||s!=="idle",onChange:q=>K(q.target.value),children:rPt.map(xPt)})}}),!d&&a.jsx(Ke,{name:"supi",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.supi"}),size:"small",error:!!z.error,helperText:z.error,disabled:s!=="idle"||s!=="idle"})}}),D.type===Gm.PSI&&a.jsx(a.Fragment,{children:a.jsx(Ke,{name:"server_name",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.server_name"}),size:"small",error:!!z.error,helperText:z.error,disabled:s!=="idle"})}})}),d&&a.jsxs(te,{spacing:2,direction:"row",align:"center",children:[a.jsx(Ur,{name:"isOverridingKeys",children:F=>{const{field:U,form:z}=F,{setFieldValue:H}=z;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{size:"small",checked:!!U.value,onChange:(W,K)=>{H(U.name,K)}}),a.jsx(_e,{type:"body2",children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.isOverridingKeys"})})]})}}),a.jsx(ms,{label:D.sip_digest_provisioned?e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.keys_provisioned"}):e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.keys_not_provisioned"}),color:D.sip_digest_provisioned?"primary":"default",size:"small"})]}),D.type===Gm.DISTINCT_PUI&&(D.isOverridingKeys&&d||!d)&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:"sip_digest_password",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.sip_digest.password"}),size:"small",error:!!z.error||!!O.sip_digest,helperText:z.error||O.sip_digest,disabled:s!=="idle"})}}),a.jsx(Ke,{name:"sip_digest_realm",children:F=>{const{field:U,meta:z}=F;return a.jsx(dt,{...U,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.sip_digest.realm"}),size:"small",error:!!z.error||!!O.sip_digest,helperText:z.error||O.sip_digest,disabled:s!=="idle"})}})]}),a.jsx(oi,{name:"registration_sets",children:F=>{const{remove:U,push:z,form:H}=F,{getFieldMeta:W}=H,K=()=>{z({_uuid:gn(),description:"",public_identities:[]})},q=Q=>{U(Q)},X=Q=>!W(Q)?.error;return a.jsxs(a.Fragment,{children:[a.jsxs(te,{align:"center",direction:"row",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_set_add"}),type:"button",onClick:K,disabled:s!=="idle"||!Ue(ie.provisioning)}),!X("registration_sets")&&a.jsx(_e,{color:"error",children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form_errors.has_errors"})})]}),a.jsx(Jn,{exclusive:!1,children:D.registration_sets?.map((Q,Y)=>a.jsx(xr,{title:`${Y+1}. ${Q.description||"-"}`,elevation:2,error:!X(`registration_sets[${Y}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>q(Y),label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_set_delete"}),disabled:s!=="idle"||!Ue(ie.provisioning)}],content:a.jsxs(te,{children:[a.jsx(Ke,{name:`registration_sets[${Y}].description`,children:Z=>{const{field:re,meta:fe}=Z;return a.jsx(dt,{...re,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.description"}),size:"small",error:!!fe.error,helperText:fe.error,disabled:s!=="idle"})}}),a.jsx(oi,{name:`registration_sets[${Y}].public_identities`,children:Z=>{const{remove:re,push:fe}=Z,de=le=>{re(le)},se=()=>{fe({_uuid:gn(),barred:!1,name:""})};return a.jsxs(a.Fragment,{children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identity_add"}),type:"button",onClick:se,disabled:s!=="idle"||!Ue(ie.provisioning),sx:{alignSelf:"flex-start",my:1}}),Q?.public_identities?.length>0&&a.jsx(Jn,{exclusive:!1,children:Q.public_identities.map((le,ee)=>a.jsx(xr,{title:`${ee+1}. ${le.name||"-"}`,elevation:3,error:!X(`registration_sets[${Y}].public_identities[${ee}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>de(ee),label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identity_delete"}),disabled:s!=="idle"||!Ue(ie.provisioning)}],content:a.jsxs(te,{children:[a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].name`,children:J=>{const{field:me,meta:pe}=J;return a.jsx(dt,{...me,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.name"}),size:"small",error:!!pe.error,helperText:pe.error,disabled:s!=="idle"})}}),a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].barred`,children:J=>{const{field:me,form:pe}=J,{setFieldValue:Se}=pe;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:me.value,onChange:(ve,xe)=>{Se(me.name,xe)},disabled:s!=="idle"}),a.jsx(_e,{children:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.barred"})})]})}}),D.type===Gm.DISTINCT_PUI&&a.jsx(Ke,{name:`registration_sets[${Y}].public_identities[${ee}].service_profile`,children:J=>{const{field:me,meta:pe}=J;return a.jsx(dt,{...me,label:e.formatMessage({id:"udr_ims_private_identities.create_or_edit_ims_private_identity.form.registration_sets.public_identities.service_profile"}),size:"small",error:!!pe.error,helperText:pe.error,disabled:s!=="idle"})}}),!!le.application_servers_profiles?.length&&a.jsxs(te,{children:[a.jsx(_e,{fontWeight:"600",type:"body2",children:e.formatMessage({id:"udr_ims_private_identities.table.value.application_servers_profiles"})}),a.jsx(ks,{items:le.application_servers_profiles.map(SPt)})]})]})},`${le._uuid}`))})]})}})]})},`${Q._uuid}`))})]})}}),a.jsx(Xr,{data:i}),a.jsx(Ze,{"data-testid":"ims-initial-filter-button-save",text:e.formatMessage({id:"udr_ims_initial_filters.new_ims_initial_filter.save"}),type:"submit",disabled:!N||s!=="idle"||!Ue(ie.provisioning),sx:{alignSelf:"flex-start"}})]})})})}})},t[21]=i,t[22]=s,t[23]=g,t[24]=e,t[25]=d,t[26]=k):k=t[26];let A;t[27]!==w||t[28]!==k?(A=a.jsx(I.Suspense,{fallback:x,children:a.jsx(Qt,{resolve:w,errorElement:C,children:k})}),t[27]=w,t[28]=k,t[29]=A):A=t[29];let P;return t[30]!==b||t[31]!==A?(P=a.jsxs(a.Fragment,{children:[b,A]}),t[30]=b,t[31]=A,t[32]=P):P=t[32],P};function xPt(t){return a.jsx(En,{value:t,children:t},t)}function SPt(t){return{id:t.service_indication,label:t.service_indication}}const wPt=Pr(),CPt=dr().shape({description:We(),initial_filter_criteria:yr().of(We().strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.uuid})`))).required(wPt.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form_errors.required"})).min(1)}),ime=t=>{const e=he.c(25),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{dataFetcher:i,upsertFetcher:o}=Ys(),{data:l,state:c,load:u}=i,{data:d,state:f,submit:p}=o,m=r!==void 0;let h;e[0]!==p||e[1]!==r||e[2]!==m?(h=k=>{const{initial_filter_criteria:A,description:P}=k;if(m){p({id:r,initial_filter_criteria:A,...!!P&&{description:P}},{action:`${$.urls.udrImsServiceProfiles}/update`,method:"POST",encType:"application/json"});return}p({initial_filter_criteria:A,...!!P&&{description:P}},{action:`${$.urls.udrImsServiceProfiles}/create`,method:"POST",encType:"application/json"})},e[0]=p,e[1]=r,e[2]=m,e[3]=h):h=e[3];const _=h;let g;e:{if(!m||!l){let j;e[4]===Symbol.for("react.memo_cache_sentinel")?(j={description:"",initial_filter_criteria:[]},e[4]=j):j=e[4],g=j;break e}const k=l.udrImsServiceProfile,A=k?.description??"",P=k.initial_filter_criteria??"";let T;e[5]!==A||e[6]!==P?(T={description:A,initial_filter_criteria:P},e[5]=A,e[6]=P,e[7]=T):T=e[7],g=T}const y=g;let b,x;e[8]!==r||e[9]!==m||e[10]!==u?(b=()=>{m&&u(`${$.urls.udrImsServiceProfiles}/${r}`)},x=[r,m,u],e[8]=r,e[9]=m,e[10]=u,e[11]=b,e[12]=x):(b=e[11],x=e[12]),I.useEffect(b,x);let w;e[13]!==s||e[14]!==d||e[15]!==f||e[16]!==l||e[17]!==n||e[18]!==m||e[19]!==c?(w=()=>a.jsxs(dn,{canWrite:Ue(ie.provisioning),fullHeight:!0,children:[a.jsx(_s,{loading:m&&!l,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form.description"}),size:"small",error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle"})}}),a.jsx(Ke,{name:"initial_filter_criteria",children:k=>{const{field:A,meta:P,form:T}=k,{setFieldValue:j}=T;return a.jsx(rn,{value:A.value,name:A.name,label:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.form.initial_filter_criteria"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(R,D)=>{j(A.name,[...new Set(D.map(APt))])},error:!!P.error,helperText:P.error,disabled:c!=="idle"||f!=="idle",fullWidth:!0})}}),a.jsx(Xr,{data:d})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"ims-service-profile-button-cancel",text:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.cancel"}),variant:"outlined",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"ims-service-profile-button-save",text:n.formatMessage({id:"udr_ims_service_profiles.new_ims_service_profile.save"}),type:"submit",disabled:c!=="idle"||f!=="idle"||!Ue(ie.provisioning)})]})})]}),e[13]=s,e[14]=d,e[15]=f,e[16]=l,e[17]=n,e[18]=m,e[19]=c,e[20]=w):w=e[20];let C;return e[21]!==_||e[22]!==y||e[23]!==w?(C=a.jsx(Wr,{initialValues:y,enableReinitialize:!0,validationSchema:CPt,onSubmit:_,children:w}),e[21]=_,e[22]=y,e[23]=w,e[24]=C):C=e[24],C};function APt(t){return t.trim()}const kPt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=()=>{r({title:e.formatMessage({id:"udr_ims_service_profiles.toolbar.new_ims_service_profile"}),content:MPt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.provisioning),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function MPt(){return a.jsx(ime,{})}const PPt=()=>{const t=he.c(64),e=Ye(),{openConfirmDialog:r}=di(),n=Gr(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=re=>{re&&o({title:e.formatMessage({id:"udr_ims_service_profiles.toolbar.new_ims_service_profile"}),content:()=>a.jsx(ime,{id:re}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==r?(_=re=>{const{id:fe}=re;fe&&r({text:e.formatMessage({id:"udr_ims_private_identities.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:fe},{action:`${$.urls.udrImsServiceProfiles}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=r,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_ims_service_profiles.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:jPt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_ims_service_profiles.table.header.description"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"description",label:x,cellRender:TPt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_ims_service_profiles.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:EPt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_ims_service_profiles.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:RPt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l(ie.provisioning),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=re=>{const{id:fe}=re;return h(fe)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_ims_service_profiles.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==g?(z=re=>void g(re),t[37]=g,t[38]=z):z=t[38];let H;t[39]!==i.state||t[40]!==s.state?(H=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning),t[39]=i.state,t[40]=s.state,t[41]=H):H=t[41];let W;t[42]!==F||t[43]!==z||t[44]!==H?(W={label:F,icon:U,onClick:z,disabled:H},t[42]=F,t[43]=z,t[44]=H,t[45]=W):W=t[45];let K;t[46]!==N||t[47]!==W?(K=[N,W],t[46]=N,t[47]=W,t[48]=K):K=t[48];const q=K;let X;t[49]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[49]=X):X=t[49];let Q;t[50]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Tr,{}),t[50]=Q):Q=t[50];let Y;t[51]!==d||t[52]!==u||t[53]!==j||t[54]!==i.state||t[55]!==p||t[56]!==f||t[57]!==l||t[58]!==c||t[59]!==q?(Y=re=>{const{data:fe,metadata:de}=re;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(kPt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:fe,page:p(de),labelDisplayedRows:IPt,rowsCount:f(de),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:q,stickyRowActions:!0,onPageChange:d(de)})]})},t[51]=d,t[52]=u,t[53]=j,t[54]=i.state,t[55]=p,t[56]=f,t[57]=l,t[58]=c,t[59]=q,t[60]=Y):Y=t[60];let Z;return t[61]!==n.udrImsServiceProfileList||t[62]!==Y?(Z=a.jsx(I.Suspense,{fallback:X,children:a.jsx(Qt,{resolve:n.udrImsServiceProfileList,errorElement:Q,children:Y})}),t[61]=n.udrImsServiceProfileList,t[62]=Y,t[63]=Z):Z=t[63],Z};function jPt(t){const{id:e}=t;return a.jsx(Ap,{text:e||"*"})}function TPt(t){const{description:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function EPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function RPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function IPt(){return""}function DPt(t){return{...t,r1:parseInt(t.r1),r2:parseInt(t.r2),r3:parseInt(t.r3),r4:parseInt(t.r4),r5:parseInt(t.r5)}}const $Pt=dr().shape({c1:We().required().matches(new RegExp($.regex.milenageConstantC)),c2:We().required().matches(new RegExp($.regex.milenageConstantC)),c3:We().required().matches(new RegExp($.regex.milenageConstantC)),c4:We().required().matches(new RegExp($.regex.milenageConstantC)),c5:We().required().matches(new RegExp($.regex.milenageConstantC)),r1:kn().required().min(1).max(127),r2:kn().required().min(1).max(127),r3:kn().required().min(1).max(127),r4:kn().required().min(1).max(127),r5:kn().required().min(1).max(127)}),OPt=()=>{const t=he.c(19),e=Ye(),{openConfirmDialog:r}=di(),n=zn(),{submit:s,state:i,data:o}=gr(),{submit:l,state:c}=gr();let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={c1:"",c2:"",c3:"",c4:"",c5:"",r1:"",r2:"",r3:"",r4:"",r5:""},t[0]=u):u=t[0];const d=u;let f;t[1]!==s?(f=x=>{s(DPt(x),{method:"PUT",action:"update",encType:"application/json"})},t[1]=s,t[2]=f):f=t[2];const p=f;let m;t[3]!==e||t[4]!==r||t[5]!==l?(m=()=>{r({text:e.formatMessage({id:"udr_milenage_constants.actions.confirm_delete"}),onConfirm:()=>{l(null,{method:"DELETE",action:$.urls.udrCustomMilenageConstantsDelete_Action,encType:"application/json"})}})},t[3]=e,t[4]=r,t[5]=l,t[6]=m):m=t[6];const h=m;let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Dt,{variant:"rounded",height:"755px"}),t[7]=_):_=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Tr,{}),t[8]=g):g=t[8];let y;t[9]!==h||t[10]!==p||t[11]!==e||t[12]!==c||t[13]!==o||t[14]!==i?(y=x=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsxs(te,{direction:"row",spacing:2,align:"center",children:[x.provisioned?a.jsx(bi,{status:nn.SUCCESS,asChip:!0,label:e.formatMessage({id:"udr_milenage_constants.provisioned"})}):a.jsx(bi,{status:nn.ERROR,asChip:!0,label:e.formatMessage({id:"udr_milenage_constants.not_provisioned"})}),a.jsx(Ze,{text:e.formatMessage({id:"udr_milenage_constants.actions.delete"}),variant:"outlined",startIcon:a.jsx(ge.Trash,{}),disabled:!x.provisioned||c!=="idle"||i!=="idle",onClick:h})]})}),a.jsx(Kt,{title:e.formatMessage({id:"udr_milenage_constants.panel.title"}),children:a.jsx(Wr,{initialValues:d,validationSchema:$Pt,onSubmit:p,children:w=>{const{dirty:C}=w;return a.jsx(dn,{canWrite:Ue(ie.milenage_constants),children:a.jsxs(te,{spacing:2,fullWidth:!0,nowrap:!0,children:[["c1","c2","c3","c4","c5","r1","r2","r3","r4","r5"].map(k=>a.jsx(Ke,{name:k,children:A=>{const{field:P,meta:T}=A;return a.jsx(dt,{...P,label:e.formatMessage({id:`udr_milenage_constants.form.${k}`}),size:"small",error:!!T.error,helperText:T.error})}},k)),a.jsx(Xr,{data:o}),a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"udr_milenage_constants.buttons.save"}),disabled:!C||c!=="idle"||!Ue(ie.milenage_constants),loading:i!=="idle",sx:{alignSelf:"flex-start"}})]})})}})})]}),t[9]=h,t[10]=p,t[11]=e,t[12]=c,t[13]=o,t[14]=i,t[15]=y):y=t[15];let b;return t[16]!==n.milenageCostants||t[17]!==y?(b=a.jsx(I.Suspense,{fallback:_,children:a.jsx(Qt,{resolve:n.milenageCostants,errorElement:g,children:y})}),t[16]=n.milenageCostants,t[17]=y,t[18]=b):b=t[18],b},LPt=Pr(),NPt=dr().shape({transport_key_id:We(),transport_key_tag:We().matches(new RegExp($.regex.supiTag)),op:We().strict(!0).matches(new RegExp($.regex.operatorKey)).required(LPt.formatMessage({id:"udr_operator_keys.new_operator_key.form_errors.required"}))}),ome=t=>{const e=he.c(14),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),{upsertFetcher:i}=Ys(),{submit:o,state:l,data:c}=i,u=!!r;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={op:""},e[0]=d):d=e[0];const f=d;let p;e[1]!==r||e[2]!==u||e[3]!==o?(p=g=>{if(u){const{op:y}=g;o({id:r,op:y},{action:"udr/operator-codes/update",method:"PUT",encType:"application/json"})}else o({id:g.id,op:g.op},{action:"udr/operator-codes/create",method:"POST",encType:"application/json"})},e[1]=r,e[2]=u,e[3]=o,e[4]=p):p=e[4];const m=p;let h;e[5]!==c||e[6]!==s||e[7]!==n||e[8]!==u||e[9]!==l?(h=()=>a.jsx(dn,{canWrite:Ue([ie.operator_codes,ie.provisioning]),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[!u&&a.jsx(Ke,{name:"id",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:n.formatMessage({id:"udr_operator_keys.new_operator_key.id"}),size:"small",error:!!b.error,helperText:b.error,disabled:l!=="idle"})}}),a.jsx(Ke,{name:"op",children:g=>{const{field:y,meta:b}=g;return a.jsx(dt,{...y,label:n.formatMessage({id:"udr_operator_keys.new_operator_key.op"}),size:"small",error:!!b.error,helperText:b.error,disabled:l!=="idle"})}}),a.jsx(Xr,{data:c})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:n.formatMessage({id:"udr_operator_keys.new_operator_key.cancel"}),variant:"outlined",disabled:l!=="idle"||!Ue([ie.operator_codes,ie.provisioning]),onClick:()=>s()}),a.jsx(Ze,{text:n.formatMessage({id:"udr_operator_keys.new_operator_key.save"}),type:"submit",loading:l!=="idle",disabled:!Ue([ie.operator_codes,ie.provisioning])})]})]})}),e[5]=c,e[6]=s,e[7]=n,e[8]=u,e[9]=l,e[10]=h):h=e[10];let _;return e[11]!==m||e[12]!==h?(_=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:f,validationSchema:NPt,onSubmit:m,children:h})}),e[11]=m,e[12]=h,e[13]=_):_=e[13],_},FPt=()=>{const t=he.c(56),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==e?(m=e.formatMessage({id:"udr_operator_keys.table.header.id"}),t[0]=e,t[1]=m):m=t[1];let h;t[2]!==m?(h={key:"id",label:m,cellRender:UPt},t[2]=m,t[3]=h):h=t[3];let _;t[4]!==e?(_=e.formatMessage({id:"udr_operator_keys.table.header.created_at"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"created_at",label:_,cellRender:BPt},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"udr_operator_keys.table.header.modified_at"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"modified_at",label:y,cellRender:zPt},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==g||t[14]!==b?(x=[h,g,b],t[12]=h,t[13]=g,t[14]=b,t[15]=x):x=t[15];const w=x;let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=_l([ie.operator_codes,ie.provisioning]),t[16]=C):C=t[16];const k=o!=="idle";let A;t[17]!==r||t[18]!==e?(A=K=>{const{id:q}=K;r({title:e.formatMessage({id:"udr_operator_keys.edit_operator_key.title"}),content:()=>a.jsx(ome,{id:q})})},t[17]=r,t[18]=e,t[19]=A):A=t[19];let P;t[20]!==k||t[21]!==A?(P={...C,disabled:k,onClick:A},t[20]=k,t[21]=A,t[22]=P):P=t[22];let T;t[23]!==e?(T=e.formatMessage({id:"udr_operator_keys.actions.delete"}),t[23]=e,t[24]=T):T=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.Trash,{}),t[25]=j):j=t[25];let R;t[26]!==e||t[27]!==n||t[28]!==i?(R=K=>{const{id:q}=K;n({text:e.formatMessage({id:"udr_operator_keys.actions.delete.confirm"},{key:q}),onConfirm:()=>{i({id:q},{action:$.urls.udrOperatorCodesDelete_Action,method:"DELETE",encType:"application/json"})}})},t[26]=e,t[27]=n,t[28]=i,t[29]=R):R=t[29];let D;t[30]!==o?(D=o!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.operator_codes),t[30]=o,t[31]=D):D=t[31];let O;t[32]!==T||t[33]!==R||t[34]!==D?(O={label:T,icon:j,onClick:R,disabled:D},t[32]=T,t[33]=R,t[34]=D,t[35]=O):O=t[35];let N;t[36]!==P||t[37]!==O?(N=[P,O],t[36]=P,t[37]=O,t[38]=N):N=t[38];const F=N;let U;t[39]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[39]=U):U=t[39];let z;t[40]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[40]=z):z=t[40];let H;t[41]!==d||t[42]!==u||t[43]!==w||t[44]!==r||t[45]!==p||t[46]!==f||t[47]!==e||t[48]!==l||t[49]!==c||t[50]!==F||t[51]!==o?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>{r({title:e.formatMessage({id:"udr_operator_keys.new_operator_key.title"}),content:qPt})},disabled:o!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.operator_codes)})}),a.jsx(Br,{autoScale:!0,orderBy:"id",columns:w,data:K.data,page:p(K.metadata),labelDisplayedRows:VPt,rowsCount:f(K.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:F,stickyRowActions:!0,onPageChange:d(K.metadata),loading:o!=="idle"})]}),t[41]=d,t[42]=u,t[43]=w,t[44]=r,t[45]=p,t[46]=f,t[47]=e,t[48]=l,t[49]=c,t[50]=F,t[51]=o,t[52]=H):H=t[52];let W;return t[53]!==s.operatorKeys||t[54]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:s.operatorKeys,errorElement:z,children:H})}),t[53]=s.operatorKeys,t[54]=H,t[55]=W):W=t[55],W};function UPt(t){const{id:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function BPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function zPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function qPt(){return a.jsx(ome,{})}function VPt(){return""}const Gee=Pr(),HPt=dr().shape({mcc:We().required(Gee.formatMessage({id:"udr_plmns.new_plmn.form_errors.required"})).strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.mcc})`)),mnc:We().required(Gee.formatMessage({id:"udr_plmns.new_plmn.form_errors.required"})).strict(!0).matches(new RegExp(`(${$.regex.idString})|(${$.regex.mnc})`))}),GPt=()=>{const t=he.c(11),e=Ye(),{upsertFetcher:r}=Ys(),{submit:n,data:s,state:i}=r,{dialogClose:o}=Jt();let l;t[0]!==n?(l=p=>{const{mcc:m,mnc:h}=p;n({mcc:m,mnc:h},{method:"POST",encType:"application/json",action:"udr/plmns/create"})},t[0]=n,t[1]=l):l=t[1];const c=l;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={mcc:"",mnc:""},t[2]=u):u=t[2];let d;t[3]!==s||t[4]!==o||t[5]!==e||t[6]!==i?(d=()=>a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"mcc",children:p=>{const{field:m,meta:h}=p;return a.jsx(dt,{...m,label:e.formatMessage({id:"udr_plmns.new_plmn.form.mcc"}),size:"small",error:!!h.error,helperText:h.error,disabled:i!=="idle"})}}),a.jsx(Ke,{name:"mnc",children:p=>{const{field:m,meta:h}=p;return a.jsx(dt,{...m,label:e.formatMessage({id:"udr_plmns.new_plmn.form.mnc"}),size:"small",error:!!h.error,helperText:h.error,disabled:i!=="idle"})}}),a.jsx(Xr,{data:s})]}),a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{text:e.formatMessage({id:"udr_plmns.new_plmn.cancel"}),variant:"outlined",disabled:i!=="idle"||!Ue(ie.provisioning),onClick:()=>o()}),a.jsx(Ze,{text:e.formatMessage({id:"udr_plmns.new_plmn.save"}),type:"submit",disabled:i!=="idle"||!Ue(ie.provisioning),loading:i!=="idle"})]})]})}),t[3]=s,t[4]=o,t[5]=e,t[6]=i,t[7]=d):d=t[7];let f;return t[8]!==c||t[9]!==d?(f=a.jsx(te,{padding:2,children:a.jsx(Wr,{initialValues:u,validationSchema:HPt,onSubmit:c,children:d})}),t[8]=c,t[9]=d,t[10]=f):f=t[10],f},WPt=()=>{const t=he.c(54),e=Ye(),{dialogOpen:r}=Jt(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==r||t[1]!==e?(m=()=>{r({title:e.formatMessage({id:"udr_plmns.toolbar.new_plmn"}),content:YPt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==e||t[4]!==n||t[5]!==i?(_=K=>{const{mcc:q,mnc:X}=K;n({text:e.formatMessage({id:"udr_plmns.actions.delete.confirm"},{plmn:`${q}${X}`}),onConfirm:()=>{i({mcc:q,mnc:X},{method:"DELETE",encType:"application/json",action:"delete"})}})},t[3]=e,t[4]=n,t[5]=i,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_plmns.table.header.mcc"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"mcc",label:y},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_plmns.table.header.mnc"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"mnc",label:x},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_plmns.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:KPt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_plmns.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:QPt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]!==e?(R=e.formatMessage({id:"udr_plmns.actions.delete"}),t[28]=e,t[29]=R):R=t[29];let D;t[30]===Symbol.for("react.memo_cache_sentinel")?(D=a.jsx(ge.Trash,{}),t[30]=D):D=t[30];let O;t[31]!==o?(O=o!=="idle"||!Ue(ie.provisioning),t[31]=o,t[32]=O):O=t[32];let N;t[33]!==g||t[34]!==R||t[35]!==O?(N=[{label:R,icon:D,onClick:g,disabled:O}],t[33]=g,t[34]=R,t[35]=O,t[36]=N):N=t[36];const F=N;let U;t[37]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[37]=U):U=t[37];let z;t[38]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(Tr,{}),t[38]=z):z=t[38];let H;t[39]!==d||t[40]!==u||t[41]!==j||t[42]!==p||t[43]!==f||t[44]!==h||t[45]!==e||t[46]!==l||t[47]!==c||t[48]!==F||t[49]!==o?(H=K=>a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:h,disabled:o!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"mcc",columns:j,data:K.data,page:p(K.metadata),labelDisplayedRows:ZPt,rowsCount:f(K.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"mcc",rowActions:F,stickyRowActions:!0,onPageChange:d(K.metadata),loading:o!=="idle"})]}),t[39]=d,t[40]=u,t[41]=j,t[42]=p,t[43]=f,t[44]=h,t[45]=e,t[46]=l,t[47]=c,t[48]=F,t[49]=o,t[50]=H):H=t[50];let W;return t[51]!==s.udrPlmnList||t[52]!==H?(W=a.jsx(I.Suspense,{fallback:U,children:a.jsx(Qt,{resolve:s.udrPlmnList,errorElement:z,children:H})}),t[51]=s.udrPlmnList,t[52]=H,t[53]=W):W=t[53],W};function YPt(){return a.jsx(GPt,{})}function KPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function QPt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ZPt(){return""}const XPt=()=>{const t=he.c(71),e=Ye(),{submit:r,state:n}=gr(),s=ys(),{udrPolicyDataProfileList:i}=zn(),{openConfirmDialog:o}=di(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==s?(m=()=>{s("new")},t[0]=s,t[1]=m):m=t[1];const h=m;let _;t[2]!==s?(_=le=>{const{uuid:ee}=le;ee&&s(ee)},t[2]=s,t[3]=_):_=t[3];const g=_;let y;t[4]!==e||t[5]!==o||t[6]!==r?(y=le=>{const{uuid:ee}=le;ee&&o({text:e.formatMessage({id:"udr_policy_data_profiles.toolbar.delete"}),onConfirm:()=>r({id:ee},{method:"DELETE",encType:"application/json",action:`${ee}/delete`})})},t[4]=e,t[5]=o,t[6]=r,t[7]=y):y=t[7];const b=y;let x;t[8]!==e?(x=e.formatMessage({id:"udr_policy_data_profiles.table.id"}),t[8]=e,t[9]=x):x=t[9];let w;t[10]!==x?(w={key:"uuid",label:x},t[10]=x,t[11]=w):w=t[11];let C;t[12]!==e?(C=e.formatMessage({id:"udr_policy_data_profiles.table.description"}),t[12]=e,t[13]=C):C=t[13];let k;t[14]!==C?(k={key:"description",label:C},t[14]=C,t[15]=k):k=t[15];let A;t[16]!==e?(A=e.formatMessage({id:"udr_policy_data_profiles.table.created_at"}),t[16]=e,t[17]=A):A=t[17];let P;t[18]!==A?(P={key:"created_at",label:A,cellRender:JPt},t[18]=A,t[19]=P):P=t[19];let T;t[20]!==e?(T=e.formatMessage({id:"udr_policy_data_profiles.table.modified_at"}),t[20]=e,t[21]=T):T=t[21];let j;t[22]!==T?(j={key:"modified_at",label:T,cellRender:ejt},t[22]=T,t[23]=j):j=t[23];let R;t[24]!==j||t[25]!==w||t[26]!==k||t[27]!==P?(R=[w,k,P,j],t[24]=j,t[25]=w,t[26]=k,t[27]=P,t[28]=R):R=t[28];const D=R;let O;t[29]===Symbol.for("react.memo_cache_sentinel")?(O=_l(ie.provisioning),t[29]=O):O=t[29];const N=n!=="idle";let F;t[30]!==g||t[31]!==N?(F={...O,disabled:N,onClick:g},t[30]=g,t[31]=N,t[32]=F):F=t[32];let U;t[33]!==e?(U=e.formatMessage({id:"udr_policy_data_profiles.actions.delete"}),t[33]=e,t[34]=U):U=t[34];let z;t[35]===Symbol.for("react.memo_cache_sentinel")?(z=a.jsx(ge.Trash,{}),t[35]=z):z=t[35];let H;t[36]!==n?(H=n!=="idle"||!Ue(ie.provisioning),t[36]=n,t[37]=H):H=t[37];let W;t[38]!==b||t[39]!==U||t[40]!==H?(W={label:U,icon:z,disabled:H,onClick:b},t[38]=b,t[39]=U,t[40]=H,t[41]=W):W=t[41];let K;t[42]!==F||t[43]!==W?(K=[F,W],t[42]=F,t[43]=W,t[44]=K):K=t[44];const q=K;let X;t[45]!==e?(X=e.formatMessage({id:"common.new"}),t[45]=e,t[46]=X):X=t[46];let Q;t[47]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ge.Add,{}),t[47]=Q):Q=t[47];let Y;t[48]!==n?(Y=n!=="idle"||!Ue(ie.provisioning),t[48]=n,t[49]=Y):Y=t[49];let Z;t[50]!==h||t[51]!==X||t[52]!==Y?(Z=a.jsx(hs,{children:a.jsx(Ze,{text:X,startIcon:Q,onClick:h,disabled:Y})}),t[50]=h,t[51]=X,t[52]=Y,t[53]=Z):Z=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(Dt,{variant:"rounded",sx:{height:"100%"}}),t[54]=re):re=t[54];let fe;t[55]!==d||t[56]!==u||t[57]!==D||t[58]!==p||t[59]!==f||t[60]!==l||t[61]!==c||t[62]!==q||t[63]!==n?(fe=le=>a.jsx(Br,{autoScale:!0,orderBy:"uuid",columns:D,data:le.data,page:p(le.metadata),labelDisplayedRows:tjt,rowsCount:f(le.metadata),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"uuid",rowActions:q,stickyRowActions:!0,onPageChange:d(le.metadata),loading:n!=="idle"}),t[55]=d,t[56]=u,t[57]=D,t[58]=p,t[59]=f,t[60]=l,t[61]=c,t[62]=q,t[63]=n,t[64]=fe):fe=t[64];let de;t[65]!==fe||t[66]!==i?(de=a.jsx(I.Suspense,{fallback:re,children:a.jsx(Qt,{resolve:i,children:fe})}),t[65]=fe,t[66]=i,t[67]=de):de=t[67];let se;return t[68]!==Z||t[69]!==de?(se=a.jsxs(a.Fragment,{children:[Z,de]}),t[68]=Z,t[69]=de,t[70]=se):se=t[70],se};function JPt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function ejt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function tjt(){return""}const vu=Pr(),rjt=t=>!t||bie.isEmpty(t)?{snssaiList:[]}:{snssaiList:Object.values(t.smPolicySnssaiData).map(e=>({_uuid:gn(),sst:e.snssai?.sst,sd:e.snssai?.sd??"",dnnList:Object.values(e.smPolicyDnnData)?.map(r=>({_uuid:gn(),dnn:r.dnn,allowedServices:r.allowedServices}))}))},njt=t=>!t||bie.isEmpty(t)?{subscCats:""}:{subscCats:t.subscCats[0]??""};function sjt(t){const{uuid:e,description:r,sm_data:n,am_data:s}=t,i=rjt(n),o=njt(s);return{uuid:e,description:r??"",...i,...o}}function ijt(t){if(t.length!==0)return{sm_data:{smPolicySnssaiData:t.reduce((e,{sd:r,sst:n,dnnList:s})=>({...e,[`${n}${r?"-"+r:""}`]:{snssai:{sst:n,...r&&{sd:r}},smPolicyDnnData:s.reduce((i,{dnn:o,allowedServices:l})=>({...i,[`${o}`]:{dnn:o,allowedServices:l}}),{})}}),{})}}}function ojt(t){if(t)return{am_data:{subscCats:[t]}}}function ajt({uuid:t,description:e,snssaiList:r,subscCats:n}){const s=ijt(r),i=ojt(n);return{uuid:t,...e&&{description:e},...s,...i}}const ljt=(t,e,r)=>t?e?`${t}-${e}`:`${t}`:`S-NSSAI #${r+1}`,cjt=(t,e)=>t||`DNN #${e+1}`,ujt=dr().shape({uuid:We().required(vu.formatMessage({id:"validation.required"})).matches(new RegExp(`${$.regex.idString}|${$.regex.uuid}`),vu.formatMessage({id:"udr_provisioned_data_profiles.form.errors.uuid_format"},{value:`${$.regex.idString}|${$.regex.uuid}`})),description:We().strict(!0).matches(new RegExp($.regex.descriptionRm),vu.formatMessage({id:"udr_policy_data_profiles.form.errors.format"},{value:"^[ -~]{1,128}"})),snssaiList:yr().of(dr().shape({sst:kn().typeError("must be a number").min(0,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.min"},{value:0})).max(255,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.max"},{value:255})).required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"})),sd:We().typeError("must be a string").strict(!0).matches(/^[A-Fa-f0-9]{6}$/,vu.formatMessage({id:"udr_policy_data_profiles.form.errors.format"},{value:"^[A-Fa-f0-9]{6}$"})),dnnList:yr().of(dr().shape({dnn:We().required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"})),allowedServices:yr().of(We()).min(1,({min:t})=>vu.formatMessage({id:"udr_policy_data_profiles.form.errors.least"},{value:t}))})).min(1)})).when("subscCats",{is:t=>t&&t.length>0,then:t=>t.min(0),otherwise:t=>t.min(1)}),subscCats:We().when("snssaiList",{is:t=>!t||t.length>0,then:t=>t.notRequired(),otherwise:t=>t.required(vu.formatMessage({id:"udr_policy_data_profiles.form.errors.required"}))})},[["subscCats","snssaiList"]]),djt=t=>{const e=he.c(16),{initialValues:r,onSubmit:n,loading:s,error:i}=t,[o,l]=I.useState("sm"),c=Ye(),u=ko().id!=="new";let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=b=>{l(b)},e[0]=d):d=e[0];const f=d;let p;e:{if(r){let x;e[1]!==r?(x=sjt(r),e[1]=r,e[2]=x):x=e[2],p=x;break e}let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b={uuid:"",description:"",snssaiList:[],subscCats:""},e[3]=b):b=e[3],p=b}const m=p;let h;e[4]!==n?(h=b=>{const x=ajt(b);x&&n(x)},e[4]=n,e[5]=h):h=e[5];const _=h;let g;e[6]!==i||e[7]!==c||e[8]!==u||e[9]!==s||e[10]!==o?(g=b=>{const{values:x,errors:w,dirty:C}=b;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"uuid",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.uuid"}),size:"small",required:!0,disabled:u,error:!!P.error,helperText:P.error})}}),a.jsx(Ke,{name:"description",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.description"}),size:"small",error:!!P.error,helperText:P.error})}}),a.jsx(VA,{tabs:[{value:"sm",label:c.formatMessage({id:"udr_policy_data_profiles.form.tabs.sm"}),status:w.snssaiList?nn.ERROR:void 0},{value:"am",label:c.formatMessage({id:"udr_policy_data_profiles.form.tabs.am"}),status:w.subscCats?nn.ERROR:void 0}],value:o,onChange:f}),o==="sm"&&a.jsx(oi,{name:"snssaiList",children:k=>{const{remove:A,push:P,form:T}=k,{getFieldMeta:j}=T,R=()=>{P({_uuid:gn(),sst:"",sd:"",dnnList:[]})},D=N=>{A(N)},O=N=>!j(N)?.error;return a.jsx(pr,{error:!O("snssaiList"),title:"S-NSSAIs",headerActionsComponent:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Add,{}),text:c.formatMessage({id:"udr_policy_data_profiles.form.snssai_add"}),type:"button",onClick:R,disabled:!Ue(ie.provisioning)}),elevation:2,children:a.jsxs(Kt,{children:[x.snssaiList.length===0&&a.jsx(Lr,{severity:"info",message:c.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}}),a.jsx(Jn,{exclusive:!1,spacing:2,children:x.snssaiList.map((N,F)=>a.jsx(xr,{title:ljt(N.sst,N.sd||"",F),error:!O(`snssaiList[${F}]`),elevation:3,actionsComponent:a.jsx(Mn,{title:c.formatMessage({id:"udr_policy_data_profiles.form.dnn_remove"}),children:a.jsx("div",{children:a.jsx(Zr,{component:"span",role:"button",size:"small",onClick:()=>D(F),disabled:!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})})}),content:a.jsxs(te,{spacing:2,children:[a.jsxs(te,{direction:{xs:"column",md:"row"},children:[a.jsx(Ke,{name:`snssaiList[${F}].sst`,children:U=>{const{field:z,meta:H}=U;return a.jsx(dt,{...z,label:c.formatMessage({id:"udr_policy_data_profiles.form.sst"}),size:"small",error:!!H.error,helperText:H.error,sx:{flex:1}})}}),a.jsx(Ke,{name:`snssaiList[${F}].sd`,children:U=>{const{field:z,meta:H}=U;return a.jsx(dt,{...z,label:c.formatMessage({id:"udr_policy_data_profiles.form.sd"}),size:"small",error:!!H.error,helperText:H.error,sx:{flex:1}})}})]}),a.jsx(oi,{name:`snssaiList[${F}].dnnList`,children:U=>{const{remove:z,push:H}=U,W=q=>{z(q)},K=()=>{H({_uuid:gn(),dnn:"",allowedServices:[]})};return a.jsx(pr,{error:!O(`snssaiList[${F}].dnnList`),title:"DNNs",headerActionsComponent:a.jsx(Ze,{variant:"outlined",startIcon:a.jsx(ge.Add,{}),text:c.formatMessage({id:"udr_policy_data_profiles.form.dnn_add"}),type:"button",onClick:K,disabled:!Ue(ie.provisioning)}),elevation:4,children:a.jsxs(Kt,{children:[N.dnnList.length===0&&a.jsx(Lr,{severity:"info",message:c.formatMessage({id:"common.no-data"}),sx:{backgroundColor:"divider"}}),N.dnnList.length>0&&a.jsx(Jn,{exclusive:!1,spacing:2,children:N.dnnList.map((q,X)=>a.jsx(xr,{elevation:5,title:cjt(q.dnn,X),error:!O(`snssaiList[${F}].dnnList[${X}]`),actionsComponent:a.jsx(Mn,{title:c.formatMessage({id:"udr_policy_data_profiles.form.snssai_remove"}),children:a.jsx("div",{children:a.jsx(Zr,{component:"span",role:"button",size:"small",onClick:()=>W(X),disabled:!Ue(ie.provisioning),children:a.jsx(ge.Trash,{})})})}),content:a.jsxs(te,{direction:{xs:"column",md:"row"},children:[a.jsx(Ke,{name:`snssaiList[${F}].dnnList[${X}].dnn`,children:Q=>{const{field:Y,meta:Z}=Q;return a.jsx(dt,{...Y,label:c.formatMessage({id:"udr_policy_data_profiles.form.dnn"}),size:"small",error:!!Z.error,helperText:Z.error,sx:{flex:1}})}}),a.jsx(Ke,{name:`snssaiList[${F}].dnnList[${X}].allowedServices`,children:Q=>{const{field:Y,meta:Z,form:re}=Q,{setFieldValue:fe}=re;return a.jsx(rn,{value:Y.value,name:Y.name,label:c.formatMessage({id:"udr_policy_data_profiles.form.allowedServices"}),multiple:!0,size:"small",freeSolo:!0,options:["ims","mcptt"],onChange:(de,se)=>{fe(Y.name,se)},error:!!Z.error,helperText:Z.error,sx:{flex:1}})}})]})},`${q?._uuid}`))})]})})}})]})},`${N._uuid}`))})]})})}}),o==="am"&&a.jsx(pr,{elevation:2,children:a.jsx(Kt,{children:a.jsx(Ke,{name:"subscCats",children:k=>{const{field:A,meta:P}=k;return a.jsx(dt,{...A,label:c.formatMessage({id:"udr_policy_data_profiles.form.subscCats"}),size:"small",error:!!P.error,helperText:P.error,fullWidth:!0})}})})}),a.jsx(Xr,{data:i})]}),a.jsx(Ze,{type:"submit",text:c.formatMessage({id:"udr_policy_data_profiles.form.submit"}),disabled:!C,loading:s,sx:{alignSelf:"flex-start"}})]})})},e[6]=i,e[7]=c,e[8]=u,e[9]=s,e[10]=o,e[11]=g):g=e[11];let y;return e[12]!==_||e[13]!==m||e[14]!==g?(y=a.jsx(Wr,{initialValues:m,validationSchema:ujt,onSubmit:_,children:g}),e[12]=_,e[13]=m,e[14]=g,e[15]=y):y=e[15],y},fjt=()=>{const t=he.c(31),e=Ye(),{submit:r,data:n,state:s}=gr(),{id:i}=ko(),{udrPolicyDataProfile:o}=zn(),{openConfirmDialog:l}=di(),c=i&&i!=="new";let u;t[0]!==r?(u=async P=>{r(P,{method:"POST",encType:"application/json",action:"create"})},t[0]=r,t[1]=u):u=t[1];const d=u;let f;t[2]!==r?(f=async P=>{r(P,{method:"PUT",encType:"application/json",action:"update"})},t[2]=r,t[3]=f):f=t[3];const p=f;let m;t[4]!==r?(m=async P=>{r({id:P},{method:"DELETE",encType:"application/json",action:"delete"})},t[4]=r,t[5]=m):m=t[5];const h=m;let _;t[6]!==d||t[7]!==c||t[8]!==p?(_=async P=>{c?await p(P):await d(P)},t[6]=d,t[7]=c,t[8]=p,t[9]=_):_=t[9];const g=_;let y;t[10]!==i||t[11]!==e||t[12]!==c||t[13]!==l||t[14]!==h?(y=()=>{l({text:e.formatMessage({id:"udr_policy_data_profiles.toolbar.delete"}),onConfirm:()=>{i&&c&&h(i)}})},t[10]=i,t[11]=e,t[12]=c,t[13]=l,t[14]=h,t[15]=y):y=t[15];const b=y;let x;t[16]!==b||t[17]!==e||t[18]!==c?(x=c&&a.jsx(hs,{children:a.jsx(Ze,{startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),text:e.formatMessage({id:"nrf_static_profiles.actions.delete"}),onClick:()=>void b()})}),t[16]=b,t[17]=e,t[18]=c,t[19]=x):x=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Dt,{variant:"rounded",sx:{height:"500px"}}),t[20]=w):w=t[20];let C;t[21]!==n||t[22]!==g||t[23]!==s?(C=P=>a.jsx(djt,{initialValues:P,onSubmit:g,loading:s!=="idle",error:n}),t[21]=n,t[22]=g,t[23]=s,t[24]=C):C=t[24];let k;t[25]!==C||t[26]!==o?(k=a.jsx(Kt,{children:a.jsx(I.Suspense,{fallback:w,children:a.jsx(Qt,{resolve:o,children:C})})}),t[25]=C,t[26]=o,t[27]=k):k=t[27];let A;return t[28]!==x||t[29]!==k?(A=a.jsxs(a.Fragment,{children:[x,k]}),t[28]=x,t[29]=k,t[30]=A):A=t[30],A},tn=Pr();var ame=(t=>(t.NR="NR",t.EUTRA="EUTRA",t.WLAN="WLAN",t.VIRTUAL="VIRTUAL",t.NBIOT="NBIOT",t.WIRELINE="WIRELINE",t.WIRELINE_CABLE="WIRELINE_CABLE",t.WIRELINE_BBF="WIRELINE_BBF",t.LTE="LTE-M",t.NR_U="NR_U",t.EUTRA_U="EUTRA_U",t.TRUSTED_N3GA="TRUSTED_N3GA",t.TRUSTED_WLAN="TRUSTED_WLAN",t.UTRA="UTRA",t.GERA="GERA",t))(ame||{});const pjt=Object.keys(ame);var fp=(t=>(t.DATA="DATA",t.REJECT="REJECT",t.SOR_LIGHT="SOR_LIGHT",t.SOR_AGGRESSIVE="SOR_AGGRESSIVE",t))(fp||{});const mjt=Object.keys(fp);var lme=(t=>(t.DATA_OVER_USER_PLANE_PREFERRED="DATA_OVER_USER_PLANE_PREFERRED",t.DATA_OVER_CONTROL_PLANE_PREFERRED="DATA_OVER_CONTROL_PLANE_PREFERRED",t))(lme||{});const hjt=Object.keys(lme);var cme=(t=>(t.REQUIRED="REQUIRED",t.PREFERRED="PREFERRED",t.NOT_NEEDED="NOT_NEEDED",t))(cme||{});const Wee=Object.keys(cme);var ume=(t=>(t.ALLOWED_AREAS="ALLOWED_AREAS",t.NOT_ALLOWED_AREAS="NOT_ALLOWED_AREAS",t))(ume||{});const gjt=Object.keys(ume);var G$=(t=>(t.UNABLE_TO_COMPLY="UNABLE_TO_COMPLY",t.ROAMING_NOT_ALLOWED_ODB_ALL_APN="ROAMING_NOT_ALLOWED_ODB_ALL_APN",t))(G$||{}),W$=(t=>(t.UNEXPECTED_DATA_VALUE="UNEXPECTED_DATA_VALUE",t.SYSTEM_FAILURE="SYSTEM_FAILURE",t))(W$||{});const _jt={uuid:"",description:"",plmnRules:[]},N3=["bps","Kbps","Mbps","Gbps","Tbps"],Yee=["IPV4","IPV4V6","IPV6","UNSTRUCTURED","ETHERNET"],vjt=["ONLY_PACKET","PACKET_AND_CIRCUIT","ONLY_CIRCUIT","PACKET_WITH_CIRCUIT_ONLY_FOR_SMS"],yjt=["NOT_PREEMPT","MAY_PREEMPT"],bjt=["NOT_PREEMPTABLE","PREEMPTABLE"];function dh({sst:t,sd:e}){if(!t&&!e)return;let r="";return t&&(r+=t),e&&(r+=`-${e}`),r}function xjt({dnnConfigurations:t,defaultDnn:e}){return Object.entries(t).map(([r,n])=>({_uuid:e&&e.dnnName===r?e._uuid:gn(),dnnName:r,"5qi":n["5gQosProfile"]?.["5qi"]||"","3gppChargingCharacteristics":n["3gppChargingCharacteristics"]||"",preferredDataMode:n["x-ath-preferredDataMode"]||[],upSecurityUpConfid:n.upSecurity?.upConfid||"",upSecurityUpIntegr:n.upSecurity?.upIntegr||"",uplink:n.sessionAmbr?.uplink||"",downlink:n.sessionAmbr?.downlink||"",preemptCap:n["5gQosProfile"]?.arp?.preemptCap,preemptVuln:n["5gQosProfile"]?.arp?.preemptVuln,arpPriorityLevel:n["5gQosProfile"]?.arp?.priorityLevel||"",defaultSessionType:n.pduSessionTypes?.defaultSessionType||"",allowedSessionTypes:n.pduSessionTypes?.allowedSessionTypes||[],allowedSscModes:n.sscModes?.allowedSscModes||[],defaultSscMode:"SSC_MODE_1",APNOIReplacement:n["x-ath-APNOIReplacement"]||""}))}function Sjt({data:t,default4gSlice:e,defaultSlices:r}){const n=t?.smfSelData?.subscribedSnssaiInfos?Object.entries(t.smfSelData.subscribedSnssaiInfos)?.map(([o])=>{const[l,c]=o.split("-");return{sd:c,sst:+l}}):[],s=t?.smfSelData?.subscribedSnssaiInfos?Object.entries(t.smfSelData.subscribedSnssaiInfos)?.map(([o,l])=>{const[c,u]=o.split("-");return{sd:u,sst:c,dnnList:l.dnnInfos?.map(f=>({dnnName:f.dnn,isDefault:f.defaultDnnIndicator,_uuid:gn()}))}}).filter(o=>!!o):[];return t?.smData?.map(o=>{if(o.singleNssai.sd||o.singleNssai.sst){const{sd:l,sst:c}=o.singleNssai,u=({sst:p,sd:m})=>{const h=!!e&&p===e.sst&&m===e.sd,_=r.find(g=>p===g.sst&&m===g.sd);return h?e?._uuid:_?_._uuid:gn()},d=s?.reduce((p,m)=>{if(p)return p;if((!m.sd||m.sd&&m.sd===l)&&+m.sst===c&&m?.dnnList?.find(h=>h.isDefault)){const h=m?.dnnList?.find(_=>_.isDefault);return h&&{_uuid:h._uuid,dnnName:h.dnnName}}},void 0);return{_uuid:u({sst:c,sd:l}),sd:l,sst:c,"3gppChargingCharacteristics":o["3gppChargingCharacteristics"]||"",defaultDnnId:d?._uuid||"",isDefault:!!r.find(p=>p.sd===l&&p.sst===c),isEnabled:!!n.find(p=>p.sd===l&&p.sst===c),dnnList:o.dnnConfigurations&&xjt({dnnConfigurations:o.dnnConfigurations,defaultDnn:d})}}else return}).filter(o=>!!o)??[]}function wjt(t){return t?Object.keys(t?.plmn_rules_map):[]}function Y$(t,e){return t?t?.plmn_rules_map?.[e]?.data?.smData?.reduce((r,n)=>{const s=n.dnnConfigurations&&Object.keys(n.dnnConfigurations)?.map(i=>({sliceId:dh({sd:n.singleNssai.sd,sst:n.singleNssai.sst}),dnnName:i})).filter(i=>!!i);return s?[...r,...s]:r},[])||[]:[]}function Cjt({_uuid:t,data:e,pattern:r,action:n,data_from:s,...i}){if(!e&&s)return{_uuid:t,action:n,pattern:r||"",defaultSliceIds:[],default4gSliceId:"",isServiceAreaRestrictionActive:!1,slices:[],smsSubscribed:!1,smsMtSubscribed:!1,smsMoSubscribed:!1,data_from:s,isDataFrom:!!s,...i};if(!e)return{_uuid:t,action:n,pattern:r||"",defaultUplink:"",defaultDownlink:"",defaultSliceIds:[],default4gSliceId:"",networkAccessMode:"",coreNetworkTypeRestrictions:[],rfspIndex:"",regionalSubscriptionZoneCodes:[],isServiceAreaRestrictionActive:!1,serviceAreaRestrictionType:"ALLOWED_AREAS",serviceAreaRestrictionAreas:[],forbiddenAreas:[],closedSubscriberGroup:[],ratRestrictions:[],APNOIReplacement:"",ueUsageType:"",subsRegTimer:"",slices:[],smsSubscribed:!1,smsMtSubscribed:!1,smsMoSubscribed:!1,diameter_error:"",map_error:"",max_attempts:"",tolerance_period_sec:"",data_from:"",isDataFrom:!1};const o=e.smData?.map(m=>{const{singleNssai:{sd:h,sst:_}}=m;if(_)return{sd:h,sst:_}}).filter(m=>!!m),c=(e.amData?.nssai?.defaultSingleNssais?.map(m=>{const{sd:h,sst:_}=m;if(_)return{sd:h,sst:_}}).filter(m=>!!m&&!!o?.find(h=>h.sd===m.sd&&h.sst===m.sst))??[])?.map(m=>({_uuid:gn(),sd:m.sd,sst:m.sst})),u=e.amData?.nssai?.["x-ath-nssai"],d=u&&c?.length?c.find(m=>m.sd===u.sd&&m.sst===u.sst):void 0,f=u?{_uuid:d?d._uuid:gn(),sd:u.sd,sst:u.sst}:void 0;return{_uuid:gn(),action:n,pattern:r,defaultUplink:e?.amData?.subscribedUeAmbr?.uplink||"",defaultDownlink:e?.amData?.subscribedUeAmbr?.downlink||"",defaultSliceIds:c?.map(m=>m._uuid),default4gSliceId:f?._uuid||"",networkAccessMode:e?.amData?.["x-ath-networkAccessMode"]||"",coreNetworkTypeRestrictions:e?.amData?.coreNetworkTypeRestrictions||[],rfspIndex:e?.amData?.rfspIndex||"",regionalSubscriptionZoneCodes:e?.amData?.["x-ath-regionalSubscriptionZoneCodes"]||[],isServiceAreaRestrictionActive:!!e?.amData?.serviceAreaRestriction?.restrictionType,serviceAreaRestrictionType:e?.amData?.serviceAreaRestriction?.restrictionType||"ALLOWED_AREAS",serviceAreaRestrictionAreas:e?.amData?.serviceAreaRestriction?.areas?.map(({["x-ath-name"]:m,tacs:h})=>({_uuid:gn(),name:m,tacs:h}))??[],forbiddenAreas:e?.amData?.forbiddenAreas?.map(({["x-ath-name"]:m,tacs:h})=>({_uuid:gn(),name:m,tacs:h}))??[],closedSubscriberGroup:e?.amData?.["x-ath-closedSubscriberGroup"]?.map(m=>({_uuid:gn(),csg_id:m.csg_id||"",visited_plmn:m.visited_plmn||""}))??[],ratRestrictions:e?.amData?.ratRestrictions||[],APNOIReplacement:e?.amData?.["x-ath-APNOIReplacement"]||"",ueUsageType:e?.amData?.ueUsageType??"",subsRegTimer:e?.amData?.subsRegTimer??"",slices:Sjt({data:e,default4gSlice:f,defaultSlices:c}),smsSubscribed:e?.smsSubsData?.smsSubscribed??!1,smsMtSubscribed:e?.smsMngData?.mtSmsSubscribed??!1,smsMoSubscribed:e?.smsMngData?.moSmsSubscribed??!1,isDataFrom:!!s,...i}}function Ajt(t){if(!t||!Object.keys(t).length)return[];const e=Object.entries(t).map(([n,{action:s,data:i,data_from:o,...l}])=>Cjt({_uuid:gn(),pattern:n,action:s,data:i,data_from:o,...l}));return e.map(n=>n.data_from?{...n,data_from:e.find(s=>s.pattern===n.data_from)?._uuid}:n)}function kjt(t){if(!t)return _jt;const e=Ajt(t.plmn_rules_map),r={uuid:t.uuid,description:t.description||"",plmnRules:e};return Ni.cloneDeep(r)}const Mjt=t=>{const e=t.filter(r=>r.isEnabled).reduce((r,n)=>{const s=dh({sd:n.sd,sst:n.sst}),i=n.dnnList?.map(o=>({defaultDnnIndicator:n.defaultDnnId===o._uuid,dnn:o.dnnName}))||[];return!s||!i.length?r:{...r,[s]:{dnnInfos:i}}},{});return Object.entries(e).length?{subscribedSnssaiInfos:e}:void 0},Pjt=t=>t.map(e=>{const{sd:r,sst:n}=e,s=e.dnnList?.reduce((i,o)=>{const{dnnName:l,...c}=o,u=!!c["5qi"]||!!c.preemptCap||!!c.preemptVuln||!!c.arpPriorityLevel,d=!!c.allowedSessionTypes?.length,f=!!c.allowedSscModes?.length,p=!!c.uplink&&c.downlink,m=!!c.upSecurityUpIntegr&&!!c.upSecurityUpConfid;return{...i,[l]:{pduSessionTypes:{defaultSessionType:c.defaultSessionType,...d&&{allowedSessionTypes:c.allowedSessionTypes}},sscModes:{defaultSscMode:c.defaultSscMode||"SSC_MODE_1",...f&&{allowedSscModes:c.allowedSscModes}},...c.APNOIReplacement&&{"x-ath-APNOIReplacement":c.APNOIReplacement},...p&&{sessionAmbr:{downlink:c.downlink,uplink:c.uplink}},...u&&{"5gQosProfile":{arp:{preemptCap:c.preemptCap,preemptVuln:c.preemptVuln,priorityLevel:c.arpPriorityLevel},"5qi":c["5qi"]}},...c["3gppChargingCharacteristics"]&&{"3gppChargingCharacteristics":c["3gppChargingCharacteristics"]},...c.preferredDataMode&&{"x-ath-preferredDataMode":c.preferredDataMode},...m&&{upSecurity:{upConfid:c.upSecurityUpConfid,upIntegr:c.upSecurityUpIntegr}}}}},{})||{};return{singleNssai:{...r&&{sd:r},sst:+n},...e["3gppChargingCharacteristics"]&&{"3gppChargingCharacteristics":e["3gppChargingCharacteristics"]},...!!Object.entries(s)?.length&&{dnnConfigurations:s}}});function jjt(t){const e=t.slices.filter(d=>t.defaultSliceIds.includes(d._uuid)).map(d=>({...d.sd&&{sd:d.sd},sst:+d.sst})).filter(d=>!!d),r=t.slices.map(d=>t.default4gSliceId===d._uuid?{...d.sd&&{sd:d.sd},sst:+d.sst}:void 0).find(d=>!!d),n=t.slices.map(d=>({...d.sd&&{sd:d.sd},sst:+d.sst})).filter(d=>!!d),s=({singleNssais:d,defaultSingleNssais:f,default4gSingleNssai:p,defaultUplink:m,defaultDownlink:h,networkAccessMode:_,coreNetworkTypeRestrictions:g,rfspIndex:y,forbiddenAreas:b,isServiceAreaRestrictionActive:x,serviceAreaRestrictionType:w,serviceAreaRestrictionAreas:C,regionalSubscriptionZoneCodes:k,closedSubscriberGroup:A,ratRestrictions:P,APNOIReplacement:T,ueUsageType:j,subsRegTimer:R,canAddNetworkAccessMode:D,canAddAPNOIReplacement:O})=>{const N=!!f?.length,F=!!d?.length,U=!!p,z=!!h&&!!m,H=N||F||U,W=!!g?.length,K=!!P?.length,q=!!k?.length,X=!!A?.length,Q=!!b?.length;return!H&&!z&&!_&&!T&&typeof j!="number"&&typeof R!="number"&&!W&&!K&&!q&&!X&&!y&&!x&&!Q?void 0:{...H&&{nssai:{...N&&{defaultSingleNssais:f},...F&&{singleNssais:d},...U&&{"x-ath-nssai":p}}},...z&&{subscribedUeAmbr:{downlink:h,uplink:m}},..._&&D&&{"x-ath-networkAccessMode":_},...T&&O&&{"x-ath-APNOIReplacement":T},...typeof j=="number"&&j>=0&&{ueUsageType:j},...typeof R=="number"&&R>=0&&{subsRegTimer:R},...W&&{coreNetworkTypeRestrictions:g},...K&&{ratRestrictions:P},...q&&{"x-ath-regionalSubscriptionZoneCodes":k},...X&&{"x-ath-closedSubscriberGroup":A.map(({csg_id:Z,visited_plmn:re})=>({csg_id:+Z,...re&&{visited_plmn:re}}))},...!!y&&{rfspIndex:y},...x&&{serviceAreaRestriction:{restrictionType:w,areas:C.map(({name:Z,tacs:re})=>({name:Z,tacs:re}))}},...Q&&{forbiddenAreas:b.map(({name:Z,tacs:re})=>({name:Z,tacs:re}))}}},i=({smsSubscribed:d,smsMoSubscribed:f,smsMtSubscribed:p})=>({smsSubsData:{smsSubscribed:d},smsMngData:{moSmsSubscribed:f,mtSmsSubscribed:p}}),o=s({default4gSingleNssai:r,singleNssais:n,defaultSingleNssais:e,defaultUplink:t.defaultUplink,defaultDownlink:t.defaultDownlink,networkAccessMode:t.networkAccessMode,coreNetworkTypeRestrictions:t.coreNetworkTypeRestrictions,closedSubscriberGroup:t.closedSubscriberGroup,rfspIndex:t.rfspIndex,regionalSubscriptionZoneCodes:t.regionalSubscriptionZoneCodes,ratRestrictions:t.ratRestrictions,forbiddenAreas:t.forbiddenAreas,isServiceAreaRestrictionActive:t.isServiceAreaRestrictionActive,serviceAreaRestrictionType:t.serviceAreaRestrictionType,serviceAreaRestrictionAreas:t.serviceAreaRestrictionAreas,APNOIReplacement:t.APNOIReplacement,ueUsageType:t.ueUsageType,subsRegTimer:t.subsRegTimer,canAddNetworkAccessMode:!!t.default4gSliceId,canAddAPNOIReplacement:!0}),l=Pjt(t.slices),c=Mjt(t.slices),u=i(t);return{...!!o&&{amData:o},...!!l?.length&&{smData:l},...!!c&&{smfSelData:c},...u}}function Tjt(t){return t.reduce((e,{pattern:r,action:n,diameter_error:s,map_error:i,max_attempts:o,tolerance_period_sec:l,data_from:c,...u})=>({...e,[r]:{action:n,...u.isDataFrom?{data_from:t.find(d=>d._uuid===c)?.pattern}:{data:jjt(u)},...n==="SOR_LIGHT"&&!!s&&{diameter_error:s},...n==="SOR_LIGHT"&&!!i&&{map_error:i},...n==="SOR_LIGHT"&&!!o&&{max_attempts:o},...(n==="SOR_LIGHT"||n==="SOR_AGGRESSIVE")&&!!l&&{tolerance_period_sec:l}}}),{})}function Ejt({uuid:t,description:e,plmnRules:r}){return{uuid:t,...e&&{description:e},plmn_rules_map:Tjt(r)}}function dme({sst:t,sd:e},r){const n=dh({sst:t,sd:e});return n||`Slice #${r+1}`}const Rjt=dr().shape({uuid:We().required(tn.formatMessage({id:"validation.required"})).matches(new RegExp(`${$.regex.idString}|${$.regex.uuid}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.uuid_format"},{value:`${$.regex.idString}|${$.regex.uuid}`})),description:We().matches(new RegExp($.regex.descriptionRm),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^[ -~]{1,128}"})),plmnRules:yr().of(dr().shape({action:We().matches(new RegExp(`^${Object.values(fp).join("|")}$`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:`^${Object.values(fp).join("|")}$`})),max_attempts:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max_attempts"})),tolerance_period_sec:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.tolerance_period_sec"})),pattern:We().matches(new RegExp($.regex.plmnRuleStr)).required(tn.formatMessage({id:"validation.required"})),data_from:We().when("isDataFrom",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_rule"})):e),defaultDownlink:We().when("default4gSliceId",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_default4g"})):e).when("defaultUplink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_downlink"})):e),defaultUplink:We().when("default4gSliceId",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_default4g"})):e).when("defaultDownlink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_uplink"})):e),networkAccessMode:We().nullable(),coreNetworkTypeRestrictions:yr().of(We()),regionalSubscriptionZoneCodes:yr().of(We().matches(new RegExp(`${$.regex.regionalSubscriptionZoneCodes}`))).max(10),closedSubscriberGroup:yr().of(dr().shape({csg_id:kn().required(tn.formatMessage({id:"validation.required"})).min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})).max(134217727),visited_plmn:We().matches(new RegExp($.regex.plmnVisited))})),ratRestrictions:yr().of(We()),forbiddenAreas:yr().of(dr().shape({name:We(),tacs:yr().of(We().matches(new RegExp($.regex.tac))).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionAreas"}))})),isServiceAreaRestrictionActive:li(),serviceAreaRestrictionType:We().when("isServiceAreaRestrictionActive",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionType"})):e),serviceAreaRestrictionAreas:yr().of(dr().shape({name:We(),tacs:yr().of(We().matches(new RegExp($.regex.tac))).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})).required(tn.formatMessage({id:"validation.required"}))})).when("isServiceAreaRestrictionActive",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionType"})).min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_serviceAreaRestrictionAreas"})):e),rfspIndex:kn().min(1).max(256),APNOIReplacement:We().nullable().matches(new RegExp(`${$.regex.apnOi}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^([a-zA-Z0-9]\\.|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]\\.)*mnc[0-9]{3}\\.mcc[0-9]{3}\\.gprs$"})),ueUsageType:kn().min(0),subsRegTimer:kn().min(0),default4gSliceId:We(),defaultSliceIds:yr().of(We()).when("slices",(t,e)=>t?.length>0?e.min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:1})):e),slices:yr().of(dr().shape({sst:kn().min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"},{value:0})).max(255,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"},{value:255})).required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),sd:We().matches(new RegExp(`${$.regex.sd}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^[a-f0-9]{6}$"})),isEnabled:li(),"3gppChargingCharacteristics":We().matches(new RegExp($.regex["3gppChargingCharacteristics"])),defaultDnnId:We(),dnnList:yr().of(dr().shape({dnnName:We().required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),downlink:We().when("uplink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_downlink"})):e),uplink:We().when("downlink",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_uplink"})):e),"3gppChargingCharacteristics":We().matches(new RegExp($.regex["3gppChargingCharacteristics"])),preferredDataMode:yr().of(We()),upSecurityUpConfid:We().when("upSecurityUpIntegr",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_upSecurityUpConfid"})):e),upSecurityUpIntegr:We().when("upSecurityUpConfid",(t,e)=>t?e.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_upSecurityUpIntegr"})):e),"5qi":kn().max(255,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"})).min(0,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"})).when(["preemptCap","preemptVuln","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),preemptCap:We().when(["5qi","preemptVuln","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),preemptVuln:We().when(["preemptCap","5qi","arpPriorityLevel"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),arpPriorityLevel:kn().min(1,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.min"})).max(15,tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.max"})).when(["preemptCap","preemptVuln","5qi"],(t,e,r,n)=>t||e||r?n.required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required_5gQosProfile"})):n),allowedSessionTypes:yr().of(We()),defaultSessionType:We().required(tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.required"})),APNOIReplacement:We().nullable().matches(new RegExp(`${$.regex.apnOi}`),tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.format"},{value:"^([a-zA-Z0-9]\\.|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]\\.)*mnc[0-9]{3}\\.mcc[0-9]{3}\\.gprs$"}))},[["uplink","downlink"],["upSecurityUpConfid","upSecurityUpIntegr"],["5qi","preemptCap"],["5qi","preemptVuln"],["5qi","arpPriorityLevel"],["preemptCap","5qi"],["preemptCap","preemptVuln"],["preemptCap","arpPriorityLevel"],["preemptVuln","5qi"],["preemptVuln","preemptCap"],["preemptVuln","arpPriorityLevel"],["arpPriorityLevel","5qi"],["arpPriorityLevel","preemptCap"],["arpPriorityLevel","preemptVuln"]]))})).test({name:"unique-slices-id",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.unique_slices_id"}),test:t=>t?.length===0||t&&t.length===[...new Set(t.map(e=>`${e.sst}-${e.sd}`))].length})},[["defaultUplink","defaultDownlink"]]).test({name:"default4g-slice-with-pdn-enabled",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_pdn_enabled"}),test:(t,e)=>t.default4gSliceId?t.slices?.find(s=>s._uuid===t.default4gSliceId&&s.isEnabled)?t.slices?.find(s=>s._uuid===t.default4gSliceId&&!!s.dnnList?.find(i=>!!i["5qi"]))?!0:e.createError({path:`${e.path}.default4gSliceId`,message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_5gQosProfile"})}):e.createError({path:`${e.path}.default4gSliceId`,message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.default4g_slice_with_pdn_enabled"})}):!0})).test({name:"unique-plmn-rule-pattern",message:tn.formatMessage({id:"udr_provisioned_data_profiles.form.errors.unique_plmn_rule_id"}),test:t=>t?.length===0||t&&t.length===[...new Set(t.map(e=>`${e.pattern}`))].length})},[["defaultUplink","defaultDownlink"]]),F3=t=>{const e=he.c(32),{fieldName:r,fieldValue:n,fieldLabel:s,setFieldValue:i,selectOptions:o,selectInitialValue:l,disabled:c,canWrite:u,meta:d}=t,[f,p]=I.useState(l);let m;e[0]!==r||e[1]!==i||e[2]!==f?(m=D=>{const O=D.target.value;O?.split(" ")[0]?i(r,`${O?.split(" ")[0]} ${f}`):i(r,"")},e[0]=r,e[1]=i,e[2]=f,e[3]=m):m=e[3];const h=m;let _;e[4]!==r||e[5]!==n||e[6]!==i?(_=D=>{p(D.target.value),n?.split(" ")[0]&&i(r,`${n?.split(" ")[0]} ${D.target.value}`)},e[4]=r,e[5]=n,e[6]=i,e[7]=_):_=e[7];const g=_;let y,b;e[8]!==l?(y=()=>{p(l)},b=[p,l],e[8]=l,e[9]=y,e[10]=b):(y=e[9],b=e[10]),I.useEffect(y,b);let x;e[11]!==n?(x=n?.split(" ")[0]||"",e[11]=n,e[12]=x):x=e[12];const w=!!d.error,C=c||!u;let k;e[13]!==s||e[14]!==r||e[15]!==d.error||e[16]!==h||e[17]!==x||e[18]!==w||e[19]!==C?(k=a.jsx(dt,{name:r,value:x,label:s,size:"small",type:"number",fullWidth:!0,error:w,helperText:d.error,disabled:C,onChange:h}),e[13]=s,e[14]=r,e[15]=d.error,e[16]=h,e[17]=x,e[18]=w,e[19]=C,e[20]=k):k=e[20];let A;e[21]===Symbol.for("react.memo_cache_sentinel")?(A={width:"100px"},e[21]=A):A=e[21];const P=c||!u;let T;e[22]!==o?(T=o.map(Ijt),e[22]=o,e[23]=T):T=e[23];let j;e[24]!==g||e[25]!==P||e[26]!==T||e[27]!==f?(j=a.jsx(gt,{sx:A,children:a.jsx(qs,{label:"Unit",value:f,onChange:g,disabled:P,size:"small",children:T})}),e[24]=g,e[25]=P,e[26]=T,e[27]=f,e[28]=j):j=e[28];let R;return e[29]!==j||e[30]!==k?(R=a.jsxs(te,{direction:"row",spacing:.2,nowrap:!0,justify:"flex-start",children:[k,j]}),e[29]=j,e[30]=k,e[31]=R):R=e[31],R};function Ijt(t){return a.jsx(En,{value:t,children:t},t)}const Djt=t=>{const e=he.c(120),{i:r,j:n,plmnIndex:s}=t,i=Ye(),o=`plmnRules[${s}].slices[${r}].dnnList[${n}].dnnName`;let l;e[0]!==i?(l=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct,handleBlur:Et}=ft;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.name"}),onBlur:at=>{const $t=at.target.value||"";Ct(Ne.name,$t.trim()),Et(at)},size:"small",error:!!Oe.error,helperText:Oe.error})},e[0]=i,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=a.jsx(Ur,{name:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];const u=`plmnRules[${s}].slices[${r}].dnnList[${n}].APNOIReplacement`;let d;e[5]!==i?(d=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.APNOIReplacement"}),size:"small",error:!!Oe.error,helperText:Oe.error})},e[5]=i,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=a.jsx(Ur,{name:u,children:d}),e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=`plmnRules[${s}].slices[${r}].dnnList[${n}].3gppChargingCharacteristics`;let m;e[10]!==i?(m=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.3gppChargingCharacteristics"}),size:"small",error:!!Oe.error,helperText:Oe.error})},e[10]=i,e[11]=m):m=e[11];let h;e[12]!==p||e[13]!==m?(h=a.jsx(Ur,{name:p,children:m}),e[12]=p,e[13]=m,e[14]=h):h=e[14];const _=`plmnRules[${s}].slices[${r}].dnnList[${n}].preferredDataMode`;let g;e[15]!==i?(g=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.preferredDataMode"}),multiple:!0,size:"small",value:Ne.value,options:[...hjt],onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,Ne.value)},error:!!Oe.error,helperText:Oe.error})},e[15]=i,e[16]=g):g=e[16];let y;e[17]!==_||e[18]!==g?(y=a.jsx(Ur,{name:_,children:g}),e[17]=_,e[18]=g,e[19]=y):y=e[19];let b;e[20]!==i?(b=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.aggregated_maximum_bitrate.title"}),e[20]=i,e[21]=b):b=e[21];const x=`plmnRules[${s}].slices[${r}].dnnList[${n}].downlink`;let w;e[22]!==i?(w=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(F3,{fieldValue:Ne.value,fieldName:Ne.name,fieldLabel:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.downlink"}),setFieldValue:Ct,selectInitialValue:Ne.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:Oe})},e[22]=i,e[23]=w):w=e[23];let C;e[24]!==x||e[25]!==w?(C=a.jsx(Ur,{name:x,children:w}),e[24]=x,e[25]=w,e[26]=C):C=e[26];const k=`plmnRules[${s}].slices[${r}].dnnList[${n}].uplink`;let A;e[27]!==i?(A=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(F3,{fieldValue:Ne.value,fieldName:Ne.name,fieldLabel:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.uplink"}),setFieldValue:Ct,selectInitialValue:Ne.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:Oe})},e[27]=i,e[28]=A):A=e[28];let P;e[29]!==k||e[30]!==A?(P=a.jsx(Ur,{name:k,children:A}),e[29]=k,e[30]=A,e[31]=P):P=e[31];let T;e[32]!==C||e[33]!==P?(T=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[C,P]})}),e[32]=C,e[33]=P,e[34]=T):T=e[34];let j;e[35]!==b||e[36]!==T?(j=a.jsx(pr,{title:b,elevation:7,children:T}),e[35]=b,e[36]=T,e[37]=j):j=e[37];let R;e[38]!==i?(R=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.qos.title"}),e[38]=i,e[39]=R):R=e[39];const D=`plmnRules[${s}].slices[${r}].dnnList[${n}].5qi`;let O;e[40]!==i?(O=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.5qi"}),size:"small",type:"number",error:!!Oe.error,helperText:Oe.error})},e[40]=i,e[41]=O):O=e[41];let N;e[42]!==D||e[43]!==O?(N=a.jsx(Ur,{name:D,children:O}),e[42]=D,e[43]=O,e[44]=N):N=e[44];let F;e[45]!==i?(F=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.qos.arp.title"}),e[45]=i,e[46]=F):F=e[46];const U=`plmnRules[${s}].slices[${r}].dnnList[${n}].preemptCap`;let z;e[47]!==i?(z=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.preemptCap"}),size:"small",value:Ne.value||null,options:yjt,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[47]=i,e[48]=z):z=e[48];let H;e[49]!==U||e[50]!==z?(H=a.jsx(Ur,{name:U,children:z}),e[49]=U,e[50]=z,e[51]=H):H=e[51];const W=`plmnRules[${s}].slices[${r}].dnnList[${n}].preemptVuln`;let K;e[52]!==i?(K=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.preemptVuln"}),size:"small",value:Ne.value||null,options:bjt,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[52]=i,e[53]=K):K=e[53];let q;e[54]!==W||e[55]!==K?(q=a.jsx(Ur,{name:W,children:K}),e[54]=W,e[55]=K,e[56]=q):q=e[56];const X=`plmnRules[${s}].slices[${r}].dnnList[${n}].arpPriorityLevel`;let Q;e[57]!==i?(Q=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(dt,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.5gQosProfile.arp.priorityLevel"}),size:"small",type:"number",error:!!Oe.error,helperText:Oe.error})},e[57]=i,e[58]=Q):Q=e[58];let Y;e[59]!==X||e[60]!==Q?(Y=a.jsx(Ur,{name:X,children:Q}),e[59]=X,e[60]=Q,e[61]=Y):Y=e[61];let Z;e[62]!==H||e[63]!==q||e[64]!==Y?(Z=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[H,q,Y]})}),e[62]=H,e[63]=q,e[64]=Y,e[65]=Z):Z=e[65];let re;e[66]!==F||e[67]!==Z?(re=a.jsx(pr,{title:F,elevation:8,children:Z}),e[66]=F,e[67]=Z,e[68]=re):re=e[68];let fe;e[69]!==N||e[70]!==re?(fe=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[N,re]})}),e[69]=N,e[70]=re,e[71]=fe):fe=e[71];let de;e[72]!==R||e[73]!==fe?(de=a.jsx(pr,{title:R,elevation:7,children:fe}),e[72]=R,e[73]=fe,e[74]=de):de=e[74];let se;e[75]!==i?(se=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.session_types.title"}),e[75]=i,e[76]=se):se=e[76];const le=`plmnRules[${s}].slices[${r}].dnnList[${n}].defaultSessionType`;let ee;e[77]!==i?(ee=Ve=>{const{field:Ne,meta:Oe}=Ve;return a.jsx(qs,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.pduSessionTypes.defaultSessionType"}),size:"small",error:!!Oe.error,helperText:Oe.error,children:Yee.map($jt)})},e[77]=i,e[78]=ee):ee=e[78];let J;e[79]!==le||e[80]!==ee?(J=a.jsx(Ur,{name:le,children:ee}),e[79]=le,e[80]=ee,e[81]=J):J=e[81];const me=`plmnRules[${s}].slices[${r}].dnnList[${n}].allowedSessionTypes`;let pe;e[82]!==i?(pe=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{name:Ne.name,value:Ne.value||[],label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.pduSessionTypes.additionalSessionTypes"}),multiple:!0,size:"small",options:[...Yee],onChange:(Et,at)=>{Ct(Ne.name,[...new Set(at.map(Ojt))])},error:!!Oe.error,helperText:Oe.error,fullWidth:!0})},e[82]=i,e[83]=pe):pe=e[83];let Se;e[84]!==me||e[85]!==pe?(Se=a.jsx(Ur,{name:me,children:pe}),e[84]=me,e[85]=pe,e[86]=Se):Se=e[86];let ve;e[87]!==J||e[88]!==Se?(ve=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[J,Se]})}),e[87]=J,e[88]=Se,e[89]=ve):ve=e[89];let xe;e[90]!==se||e[91]!==ve?(xe=a.jsx(pr,{title:se,elevation:7,children:ve}),e[90]=se,e[91]=ve,e[92]=xe):xe=e[92];let qe;e[93]!==i?(qe=i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.dnn.up_security.title"}),e[93]=i,e[94]=qe):qe=e[94];const Le=`plmnRules[${s}].slices[${r}].dnnList[${n}].upSecurityUpConfid`;let Te;e[95]!==i?(Te=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.upSecurityUpConfid"}),size:"small",value:Ne.value||"",options:[...Wee],freeSolo:!0,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[95]=i,e[96]=Te):Te=e[96];let je;e[97]!==Le||e[98]!==Te?(je=a.jsx(Ur,{name:Le,children:Te}),e[97]=Le,e[98]=Te,e[99]=je):je=e[99];const Ge=`plmnRules[${s}].slices[${r}].dnnList[${n}].upSecurityUpIntegr`;let nt;e[100]!==i?(nt=Ve=>{const{field:Ne,meta:Oe,form:ft}=Ve,{setFieldValue:Ct}=ft;return a.jsx(rn,{...Ne,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.upSecurityUpIntegr"}),size:"small",value:Ne.value||"",options:[...Wee],freeSolo:!0,onChange:(Et,at)=>{at?Ct(Ne.name,at):Ct(Ne.name,"")},error:!!Oe.error,helperText:Oe.error})},e[100]=i,e[101]=nt):nt=e[101];let Re;e[102]!==Ge||e[103]!==nt?(Re=a.jsx(Ur,{name:Ge,children:nt}),e[102]=Ge,e[103]=nt,e[104]=Re):Re=e[104];let we;e[105]!==je||e[106]!==Re?(we=a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[je,Re]})}),e[105]=je,e[106]=Re,e[107]=we):we=e[107];let Me;e[108]!==qe||e[109]!==we?(Me=a.jsx(pr,{title:qe,elevation:7,children:we}),e[108]=qe,e[109]=we,e[110]=Me):Me=e[110];let $e;return e[111]!==y||e[112]!==j||e[113]!==c||e[114]!==de||e[115]!==xe||e[116]!==Me||e[117]!==f||e[118]!==h?($e=a.jsxs(te,{spacing:2,children:[c,f,h,y,j,de,xe,Me]}),e[111]=y,e[112]=j,e[113]=c,e[114]=de,e[115]=xe,e[116]=Me,e[117]=f,e[118]=h,e[119]=$e):$e=e[119],$e};function $jt(t){return a.jsx(En,{value:t,children:t},t)}function Ojt(t){return t.trim()}function Ljt(t){const e=he.c(36),{slice:r,i:n,plmnIndex:s}=t,i=Ye(),o=`plmnRules[${s}].slices[${n}].sst`;let l;e[0]!==i?(l=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.sst"}),size:"small",error:!!k.error,helperText:k.error})},e[0]=i,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=a.jsx(Ur,{name:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];const u=`plmnRules[${s}].slices[${n}].sd`;let d;e[5]!==i?(d=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.sd"}),size:"small",error:!!k.error,helperText:k.error})},e[5]=i,e[6]=d):d=e[6];let f;e[7]!==u||e[8]!==d?(f=a.jsx(Ur,{name:u,children:d}),e[7]=u,e[8]=d,e[9]=f):f=e[9];const p=`plmnRules[${s}].slices[${n}].3gppChargingCharacteristics`;let m;e[10]!==i?(m=w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.3gppChargingCharacteristics"}),size:"small",error:!!k.error,helperText:k.error})},e[10]=i,e[11]=m):m=e[11];let h;e[12]!==p||e[13]!==m?(h=a.jsx(Ur,{name:p,children:m}),e[12]=p,e[13]=m,e[14]=h):h=e[14];let _;e[15]!==n||e[16]!==i||e[17]!==s||e[18]!==r.dnnList||e[19]!==r.isEnabled?(_=!!r?.dnnList?.length&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:`plmnRules[${s}].slices[${n}].isEnabled`,children:w=>{const{field:C,form:k}=w,{setFieldValue:A}=k;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!C.value,onChange:(P,T)=>{A(C.name,T)}}),a.jsx(_e,{children:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.isEnabled"})}),a.jsx(Mn,{title:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.isEnabled_required_for_4g"}),children:a.jsx("span",{children:a.jsx(ge.Info,{})})})]})}}),r.isEnabled&&a.jsx(Ke,{name:`plmnRules[${s}].slices[${n}].defaultDnnId`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(Ur,{name:`plmnRules[${s}].slices[${n}]`,children:()=>{if(!r.dnnList)return;const T=r.dnnList.map(Fjt),j=T.find(R=>R.value===C.value)||null;return a.jsx(rn,{...C,label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.defaultDnnId"}),size:"small",value:j,options:T,onChange:(R,D)=>{D&&!Array.isArray(D)&&typeof D=="object"&&typeof D.value=="string"?P(C.name,D.value):P(C.name,"")},error:!!k.error,helperText:k.error})}})}})]}),e[15]=n,e[16]=i,e[17]=s,e[18]=r.dnnList,e[19]=r.isEnabled,e[20]=_):_=e[20];const g=`plmnRules[${s}].slices[${n}].dnnList`;let y;e[21]!==n||e[22]!==i||e[23]!==s||e[24]!==r.defaultDnnId||e[25]!==r.dnnList?(y=w=>{const{remove:C,push:k,form:A}=w,{getFieldMeta:P}=A;return a.jsx(Ur,{name:`plmnRules[${s}].slices[${n}].dnnList`,children:()=>{const T=Njt,j=O=>{C(O)},R=()=>{const O={_uuid:gn(),dnnName:"",uplink:"",downlink:"","5qi":"",preemptCap:"",preemptVuln:"",arpPriorityLevel:"",defaultSessionType:"",allowedSessionTypes:[],defaultSscMode:"",allowedSscModes:[],preferredDataMode:[]};k(O)},D=O=>!P(O)?.error;return a.jsx(pr,{title:i.formatMessage({id:"udr_provisioned_data_profile.section.dnnList.title"}),elevation:5,headerActionsComponent:a.jsx(Ze,{text:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn_add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:R}),children:a.jsxs(Kt,{children:[!!r.dnnList?.length&&a.jsx(Jn,{exclusive:!0,spacing:2,children:r.dnnList.map((O,N)=>a.jsx(xr,{unmountOnExit:!0,title:`${T(O.dnnName,N)}${r.defaultDnnId===O._uuid?" ("+i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn.isDefault"})+")":""}`,error:!D(`plmnRules[${s}].slices[${n}].dnnList[${N}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>j(N),label:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.dnn_delete"}),disabled:!Ue(ie.provisioning)}],elevation:6,content:a.jsx(Djt,{plmnIndex:s,i:n,j:N})},`${O?._uuid}`))}),!r.dnnList?.length&&a.jsx(_e,{children:i.formatMessage({id:"udr_provisioned_data_profile.form.slice.no_dnns"})})]})})}})},e[21]=n,e[22]=i,e[23]=s,e[24]=r.defaultDnnId,e[25]=r.dnnList,e[26]=y):y=e[26];let b;e[27]!==g||e[28]!==y?(b=a.jsx(oi,{name:g,children:y}),e[27]=g,e[28]=y,e[29]=b):b=e[29];let x;return e[30]!==_||e[31]!==b||e[32]!==c||e[33]!==f||e[34]!==h?(x=a.jsxs(te,{spacing:2,children:[c,f,h,_,b]}),e[30]=_,e[31]=b,e[32]=c,e[33]=f,e[34]=h,e[35]=x):x=e[35],x}function Njt(t,e){return t||`DNN #${e+1}`}function Fjt(t,e){const{_uuid:r,dnnName:n}=t;return{label:n||`DNN #${e+1}`,value:r}}const Im=(t,e)=>!e(t)?.error,yu=(t,e)=>{const r=e(t);if(!(!r?.error||typeof r?.error!="string"))return r?.error};function Ujt(){const t=he.c(11),e=Ye(),r=ko().id!=="new";let n;t[0]!==e||t[1]!==r?(n=a.jsx(Ur,{name:"uuid",children:l=>{const{field:c,meta:u}=l;return a.jsx(dt,{...c,label:e.formatMessage({id:"udr_provisioned_data_profile.form.uuid"}),size:"small",required:!0,disabled:r,error:!!u.error,helperText:u.error})}}),t[0]=e,t[1]=r,t[2]=n):n=t[2];let s;t[3]!==e?(s=a.jsx(Ur,{name:"description",children:l=>{const{field:c,meta:u}=l;return a.jsx(dt,{...c,label:e.formatMessage({id:"udr_provisioned_data_profile.form.description"}),size:"small",error:!!u.error,helperText:u.error})}}),t[3]=e,t[4]=s):s=t[4];let i;t[5]!==e?(i=a.jsx(oi,{name:"plmnRules",children:l=>{const{remove:c,push:u,form:d}=l,{values:f,getFieldMeta:p}=d;return a.jsx(Ur,{name:"plmnRules",children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.plmn_rules.title"}),error:!Im("plmnRules",p),headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_add"}),type:"button",variant:"outlined",startIcon:a.jsx(ge.Add,{}),disabled:!Ue(ie.provisioning),onClick:()=>{const m={_uuid:gn(),action:fp.DATA,pattern:"",default4gSliceId:"",defaultSliceIds:[],slices:[],smsSubscribed:!1,smsMoSubscribed:!1,smsMtSubscribed:!1,coreNetworkTypeRestrictions:[],forbiddenAreas:[],isServiceAreaRestrictionActive:!1,serviceAreaRestrictionType:"",serviceAreaRestrictionAreas:[],ratRestrictions:[],rfspIndex:"",subsRegTimer:"",ueUsageType:"",diameter_error:"",map_error:"",max_attempts:"",tolerance_period_sec:"",data_from:"",isDataFrom:!1};u(m)}}),elevation:2,children:a.jsxs(Kt,{children:[yu("plmnRules",p)&&a.jsx(Lr,{severity:"error",title:yu("plmnRules",p),sx:{mb:2}}),a.jsx(Jn,{exclusive:!0,spacing:2,children:f.plmnRules.map((m,h)=>a.jsx(xr,{title:a.jsxs(te,{direction:"row",nowrap:!0,align:"center",children:[a.jsx(ms,{label:m.action}),a.jsx(_e,{color:"text.secondary",type:"subtitle1",children:m.pattern||`PLMN Rule ${h+1}`}),m.isDataFrom&&a.jsxs(a.Fragment,{children:[a.jsx(ms,{label:"DATA_FROM"}),a.jsx(_e,{color:"text.secondary",type:"subtitle1",children:f.plmnRules.find(_=>_._uuid===f.plmnRules[h].data_from)?.pattern})]})]}),elevation:3,error:!Im(`plmnRules[${h}]`,p),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>{if(f.plmnRules.some(_=>_.data_from===f.plmnRules[h]._uuid)){zL({message:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_delete.data_from.error"}),severity:"error"});return}c(h)},label:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.rule_delete"})}],unmountOnExit:!0,content:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].pattern`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.pattern"}),size:"small",error:!!y.error,helperText:y.error,required:!0})}}),a.jsx(Ur,{name:`plmnRules[${h}].action`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(qs,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.action"}),size:"small",value:g.value,onChange:w=>{x(g.name,w.target.value)},required:!0,error:!!y.error,helperText:y.error,children:mjt.map(Vjt)})}}),(f.plmnRules[h].action===fp.SOR_LIGHT||f.plmnRules[h].action===fp.SOR_AGGRESSIVE)&&a.jsx(pr,{title:e.formatMessage({id:`udr_provisioned_data_profile.form.specific_fields.${f.plmnRules[h].action}`}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[f.plmnRules[h].action===fp.SOR_LIGHT&&a.jsxs(a.Fragment,{children:[a.jsx(Ke,{name:`plmnRules[${h}].diameter_error`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(rn,{value:g.value,name:g.name,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.diameter_error"}),multiple:!1,size:"small",freeSolo:!1,options:[G$.UNABLE_TO_COMPLY,G$.ROAMING_NOT_ALLOWED_ODB_ALL_APN],onChange:(x,w)=>{b(g.name,w||"")},fullWidth:!0})}}),a.jsx(Ke,{name:`plmnRules[${h}].map_error`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(rn,{value:g.value,name:g.name,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.map_error"}),multiple:!1,size:"small",freeSolo:!1,options:[W$.UNEXPECTED_DATA_VALUE,W$.SYSTEM_FAILURE],onChange:(x,w)=>{b(g.name,w||"")},fullWidth:!0})}}),a.jsx(Ke,{name:`plmnRules[${h}].max_attempts`,children:_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.max_attempts"}),size:"small",helperText:y.error,error:!!y.error,disabled:x,type:"number"})}})]}),a.jsx(Ke,{name:`plmnRules[${h}].tolerance_period_sec`,children:_=>{const{field:g,meta:y,form:b}=_,{isSubmitting:x}=b;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.advanced_input.tolerance_period_sec"}),size:"small",helperText:y.error,error:!!y.error,disabled:x,type:"number"})}})]})})}),a.jsx(Ke,{name:`plmnRules[${h}].isDataFrom`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b,isSubmitting:x}=y;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:g.value,onChange:(w,C)=>{b(g.name,C),C||b(`plmnRules[${h}].data_from`,"")},disabled:x}),a.jsx(_e,{children:e.formatMessage({id:"udr_provisioned_data_profile.form.isDataFrom"})})]})}}),f.plmnRules[h].isDataFrom&&a.jsx(Ke,{name:`plmnRules[${h}].data_from`,children:_=>{const{field:g,meta:y}=_;return a.jsx(qs,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.data_from"}),size:"small",error:!!y.error,helperText:y.error,children:f.plmnRules.map((b,x)=>x!==h&&!b.data_from&&b.action!=="REJECT"?a.jsx(En,{value:b._uuid,children:b.pattern||`PLMN Rule ${x+1}`},b._uuid):null)})}}),!f.plmnRules[h].isDataFrom&&a.jsxs(a.Fragment,{children:[a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.access_and_mobility.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].subsRegTimer`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.subsRegTimer"}),type:"number",size:"small",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].ueUsageType`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.ueUsageType"}),type:"number",size:"small",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].APNOIReplacement`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.APNOIReplacement"}),size:"small",error:!!y.error,helperText:y.error})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.aggregated_maximum_bitrate.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].defaultDownlink`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(F3,{fieldValue:g.value,fieldName:g.name,fieldLabel:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultDownlink"}),setFieldValue:x,selectInitialValue:g.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:y})}}),a.jsx(Ur,{name:`plmnRules[${h}].defaultUplink`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(F3,{fieldValue:g.value,fieldName:g.name,fieldLabel:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultUplink"}),setFieldValue:x,selectInitialValue:g.value?.split(" ")?.[1]||"bps",selectOptions:N3,canWrite:Ue(ie.provisioning),meta:y})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.title"}),elevation:4,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:`plmnRules[${h}].networkAccessMode`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.networkAccessMode"}),size:"small",value:g.value||null,options:vjt,onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error,disabled:!f.plmnRules[h].default4gSliceId})}}),a.jsx(Ur,{name:`plmnRules[${h}].ratRestrictions`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.ratRestrictions"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:pjt,onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].rfspIndex`,children:_=>{const{field:g,meta:y}=_;return a.jsx(dt,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.rfspIndex"}),size:"small",type:"number",error:!!y.error,helperText:y.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].coreNetworkTypeRestrictions`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.coreNetworkTypeRestrictions"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:["5GC","EPC"],onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.4g-5g-nsa.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].regionalSubscriptionZoneCodes`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(rn,{...g,label:e.formatMessage({id:"udr_provisioned_data_profile.form.regionalSubscriptionZoneCodes"}),size:"small",value:g.value,freeSolo:!0,multiple:!0,options:[],onChange:(w,C)=>{C?x(g.name,C):x(g.name,"")},error:!!y.error,helperText:y.error})}}),a.jsx(oi,{name:`plmnRules[${h}].closedSubscriberGroup`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.closed_subscriber_group.title"}),error:!Im(`plmnRules[${h}].closedSubscriberGroup`,p),dense:!0,elevation:6,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),csg_id:"",visited_plmn:""};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].closedSubscriberGroup`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].closedSubscriberGroup`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].closedSubscriberGroup?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,children:[a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup[${x}].csg_id`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.csg_id"}),size:"small",fullWidth:!0,required:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].closedSubscriberGroup[${x}].visited_plmn`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.visited_plmn"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].closedSubscriberGroup?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.closed_subscriber_group.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}})]})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.restrictions.5g.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(oi,{name:`plmnRules[${h}].forbiddenAreas`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.forbidden_areas.title"}),dense:!0,error:!Im(`plmnRules[${h}].forbiddenAreas`,p),elevation:6,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),name:"",tacs:[]};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].forbiddenAreas`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].forbiddenAreas`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].forbiddenAreas?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,children:[a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas[${x}].name`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.name"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].forbiddenAreas[${x}].tacs`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.tacs"}),size:"small",value:C.value,freeSolo:!0,multiple:!0,fullWidth:!0,options:[],onChange:(T,j)=>{j?P(C.name,j):P(C.name,"")},error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].forbiddenAreas?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}}),a.jsxs(te,{spacing:2,sx:{mt:1},children:[a.jsx(Ke,{name:`plmnRules[${h}].isServiceAreaRestrictionActive`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(a.Fragment,{children:a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!g.value,onChange:(x,w)=>{b(g.name,w)}}),a.jsx(_e,{children:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction.title"})})]})})}}),f.plmnRules[h].isServiceAreaRestrictionActive&&a.jsx(pr,{elevation:6,title:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction.title"}),dense:!0,children:a.jsx(Kt,{children:a.jsxs(te,{nowrap:!0,spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionType`,children:_=>{const{field:g,meta:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(qs,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.serviceAreaRestrictionType"}),size:"small",value:g.value,onChange:w=>{x(g.name,w.target.value)},required:!0,error:!!y.error,helperText:y.error,children:gjt.map(qjt)})}}),a.jsx(oi,{name:`plmnRules[${h}].serviceAreaRestrictionAreas`,children:_=>{const{remove:g,push:y}=_;return a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas`,children:()=>a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.service_area_restriction_areas.title"}),dense:!0,error:!Im(`plmnRules[${h}].serviceAreaRestrictionAreas`,p),elevation:7,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const b={_uuid:gn(),name:"",tacs:[]};y(b)}}),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].serviceAreaRestrictionAreas`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].serviceAreaRestrictionAreas`,p)}),a.jsx(te,{spacing:2,divided:!0,children:f.plmnRules[h].serviceAreaRestrictionAreas?.map((b,x)=>a.jsxs(te,{direction:"row",nowrap:!0,justify:"stretch",align:"flex-start",children:[a.jsxs(te,{align:"flex-start",justify:"stretch",fullWidth:!0,spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas[${x}].name`,children:w=>{const{field:C,meta:k}=w;return a.jsx(dt,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.name"}),size:"small",fullWidth:!0,error:!!k.error,helperText:k.error})}}),a.jsx(Ur,{name:`plmnRules[${h}].serviceAreaRestrictionAreas[${x}].tacs`,children:w=>{const{field:C,meta:k,form:A}=w,{setFieldValue:P}=A;return a.jsx(rn,{...C,label:e.formatMessage({id:"udr_provisioned_data_profile.form.forbidden_areas.tacs"}),size:"small",fullWidth:!0,value:C.value,freeSolo:!0,multiple:!0,options:[],onChange:(T,j)=>{j?P(C.name,j):P(C.name,"")},error:!!k.error,helperText:k.error})}})]}),a.jsx(Zr,{onClick:()=>g(x),sx:{mt:.5},size:"small",children:a.jsx(ge.Trash,{})})]},b._uuid))}),!f.plmnRules[h].serviceAreaRestrictionAreas?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.service_area_restriction_areas.no_data"}),sx:{backgroundColor:"divider"}})]})})})})}})]})})})]})]})})})]})})}),a.jsx(oi,{name:`plmnRules[${h}].slices`,children:_=>{const{remove:g,push:y,form:b}=_,{setFieldValue:x}=b;return a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.slices.title"}),error:!Im(`plmnRules[${h}].slices`,p),elevation:4,headerActionsComponent:a.jsx(Ze,{text:e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_add"}),startIcon:a.jsx(ge.Add,{}),type:"button",variant:"outlined",onClick:()=>{const w={_uuid:gn(),sst:"",sd:"","3gppChargingCharacteristics":"",dnnList:[],isEnabled:!0,defaultDnnId:""};y(w)}}),children:a.jsx(Kt,{children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,children:a.jsxs(te,{spacing:2,children:[yu(`plmnRules[${h}].slices`,p)&&a.jsx(Lr,{severity:"error",title:yu(`plmnRules[${h}].slices`,p)}),a.jsx(Jn,{exclusive:!0,spacing:2,children:f.plmnRules[h].slices?.map((w,C)=>a.jsx(xr,{unmountOnExit:!0,elevation:5,group:!0,title:`${dme(w,C)} ${f.plmnRules[h].defaultSliceIds.includes(w._uuid)?"("+e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_default"})+")":""}`,error:!Im(`plmnRules[${h}].slices[${C}]`,p),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>{w._uuid===f.plmnRules[h].default4gSliceId&&x(`plmnRules[${h}].default4gSliceId`,""),x(`plmnRules[${h}].defaultSliceIds`,f.plmnRules[h].defaultSliceIds.filter(k=>k!==w._uuid)),g(C)},label:e.formatMessage({id:"udr_provisioned_data_profile.form.slices.slice_delete"})}],content:a.jsx(a.Fragment,{children:a.jsx(Ljt,{slice:w,i:C,plmnIndex:h})}),subtitle:a.jsx(te,{direction:"row",nowrap:!0,children:a.jsx(_e,{sx:{wordBreak:"break-all"},children:w.dnnList?.map(zjt).join(", ")})})},`${w._uuid}`))||null}),!f.plmnRules[h].slices?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.slice.no_slices"}),sx:{backgroundColor:"divider"}})]})})})})}}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.default_slices.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsx(te,{direction:"column",spacing:2,nowrap:!0,children:[{fieldName:`plmnRules[${h}].default4gSliceId`,label:e.formatMessage({id:"udr_provisioned_data_profile.form.default4gSliceId"}),isMultiple:!1},{fieldName:`plmnRules[${h}].defaultSliceIds`,label:e.formatMessage({id:"udr_provisioned_data_profile.form.defaultSliceIds"}),isMultiple:!0}].map(_=>{const{fieldName:g,label:y,isMultiple:b}=_;return a.jsx(Ke,{name:g,children:x=>{const{field:w,meta:C,form:k}=x,{setFieldValue:A}=k,P=f.plmnRules[h].slices.map(Bjt),T=b?P.filter(j=>{const{value:R}=j;return w.value.includes(R)}):P.find(j=>{const{value:R}=j;return w.value===R})||null;return a.jsx(rn,{...w,multiple:b,label:y,size:"small",value:T,options:P,onChange:(j,R)=>{if(Array.isArray(R)){const D=[];R.forEach(O=>{typeof O=="object"&&typeof O.value=="string"&&D.push(O.value)}),A(w.name,D)}else R&&typeof R=="object"&&typeof R.value=="string"?A(w.name,R.value):A(w.name,"")},error:!!C.error,helperText:C.error,disabled:!f.plmnRules[h].slices?.length})}},g)})})})}),a.jsx(pr,{title:e.formatMessage({id:"udr_provisioned_data_profile.section.sms.title"}),elevation:5,children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ur,{name:`plmnRules[${h}].smsSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.subscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}}),a.jsx(Ur,{name:`plmnRules[${h}].smsMoSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.moSubscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}}),a.jsx(Ur,{name:`plmnRules[${h}].smsMtSubscribed`,children:_=>{const{field:g,form:y}=_,{setFieldValue:b}=y;return a.jsx(da,{label:e.formatMessage({id:"udr_provisioned_data_profile.form.sms.mtSubscribed"}),checked:g.value,size:"medium",onChange:(x,w)=>{b(g.name,w)}})}})]})})})]})]})},m._uuid||h))}),!f.plmnRules?.length&&a.jsx(Lr,{message:e.formatMessage({id:"udr_provisioned_data_profile.form.plmn_rules.no_data"}),sx:{backgroundColor:"divider"}})]})})})}}),t[5]=e,t[6]=i):i=t[6];let o;return t[7]!==n||t[8]!==s||t[9]!==i?(o=a.jsxs(te,{spacing:2,children:[n,s,i]}),t[7]=n,t[8]=s,t[9]=i,t[10]=o):o=t[10],o}function Bjt(t,e){const{_uuid:r,sst:n,sd:s}=t;return{label:dme({sst:n,sd:s},e),value:r}}function zjt(t){return t.dnnName}function qjt(t){return a.jsx(En,{value:t,children:t},t)}function Vjt(t){return a.jsx(En,{value:t,children:t},t)}function Hjt(){const t=he.c(27),e=Ye(),{id:r}=ko(),n=zn(),{submit:s,data:i,state:o}=gr(),{openConfirmDialog:l}=di(),c=r!=="new";let u;t[0]!==r||t[1]!==c||t[2]!==s?(u=async x=>{const w=Ejt(x);r&&c?s({id:r,profile:w},{action:"update",method:"PUT",encType:"application/json"}):s(w,{action:"create",method:"POST",encType:"application/json"})},t[0]=r,t[1]=c,t[2]=s,t[3]=u):u=t[3];const d=u;let f;t[4]!==r||t[5]!==e||t[6]!==c||t[7]!==l||t[8]!==s?(f=()=>{r&&c&&l({text:e.formatMessage({id:"udr_provisioned_data_profiles.actions.confirm_delete"}),onConfirm:()=>s({id:r},{method:"DELETE",encType:"application/json",action:"delete"})})},t[4]=r,t[5]=e,t[6]=c,t[7]=l,t[8]=s,t[9]=f):f=t[9];const p=f;let m;t[10]!==p||t[11]!==e||t[12]!==c?(m=c&&a.jsx(hs,{children:a.jsx(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:p})})}),t[10]=p,t[11]=e,t[12]=c,t[13]=m):m=t[13];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",height:"1000px"}),t[14]=h):h=t[14];let _;t[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[15]=_):_=t[15];let g;t[16]!==i||t[17]!==o||t[18]!==d||t[19]!==e?(g=x=>a.jsx(Wr,{initialValues:kjt(x),validationSchema:Rjt,onSubmit:d,children:w=>{const{dirty:C}=w;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsx(Kt,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ujt,{}),a.jsx(Xr,{data:i,sx:{mb:2}}),Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:e.formatMessage({id:"udr_provisioned_data_profile.form.buttons.submit"}),disabled:!C,loading:o!=="idle",sx:{alignSelf:"flex-start"}})]})})})}}),t[16]=i,t[17]=o,t[18]=d,t[19]=e,t[20]=g):g=t[20];let y;t[21]!==n.profile||t[22]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:n.profile,errorElement:_,children:g})}),t[21]=n.profile,t[22]=g,t[23]=y):y=t[23];let b;return t[24]!==m||t[25]!==y?(b=a.jsxs(a.Fragment,{children:[m,y]}),t[24]=m,t[25]=y,t[26]=b):b=t[26],b}const Gjt=()=>{const t=he.c(60),e=Ye(),r=ys(),{openConfirmDialog:n}=di(),s=zn(),{submit:i,state:o}=gr(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==e||t[1]!==n||t[2]!==i?(m=Q=>{n({text:e.formatMessage({id:"udr_provisioned_data_profiles.actions.confirm_delete"},{profile:Q.description}),onConfirm:()=>{i({id:Q.uuid},{method:"DELETE",encType:"application/json",action:`${Q.uuid}/delete`})}})},t[0]=e,t[1]=n,t[2]=i,t[3]=m):m=t[3];const h=m;let _;t[4]!==e?(_=e.formatMessage({id:"udr_provisioned_data_profiles.table.id"}),t[4]=e,t[5]=_):_=t[5];let g;t[6]!==_?(g={key:"uuid",label:_},t[6]=_,t[7]=g):g=t[7];let y;t[8]!==e?(y=e.formatMessage({id:"udr_provisioned_data_profiles.table.description"}),t[8]=e,t[9]=y):y=t[9];let b;t[10]!==y?(b={key:"description",label:y},t[10]=y,t[11]=b):b=t[11];let x;t[12]!==e?(x=e.formatMessage({id:"udr_provisioned_data_profiles.table.created_at"}),t[12]=e,t[13]=x):x=t[13];let w;t[14]!==x?(w={key:"created_at",label:x,cellRender:Wjt},t[14]=x,t[15]=w):w=t[15];let C;t[16]!==e?(C=e.formatMessage({id:"udr_provisioned_data_profiles.table.modified_at"}),t[16]=e,t[17]=C):C=t[17];let k;t[18]!==C?(k={key:"modified_at",label:C,cellRender:Yjt},t[18]=C,t[19]=k):k=t[19];let A;t[20]!==g||t[21]!==b||t[22]!==w||t[23]!==k?(A=[g,b,w,k],t[20]=g,t[21]=b,t[22]=w,t[23]=k,t[24]=A):A=t[24];const P=A;let T;t[25]===Symbol.for("react.memo_cache_sentinel")?(T=_l(ie.provisioning),t[25]=T):T=t[25];const j=o!=="idle";let R;t[26]!==r?(R=Q=>r(`${$.urls.udrProvisionedDataProfile}/${Q.uuid}`),t[26]=r,t[27]=R):R=t[27];let D;t[28]!==j||t[29]!==R?(D={...T,disabled:j,onClick:R},t[28]=j,t[29]=R,t[30]=D):D=t[30];let O;t[31]!==e?(O=e.formatMessage({id:"udr_provisioned_data_profiles.actions.delete"}),t[31]=e,t[32]=O):O=t[32];let N;t[33]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(ge.Trash,{}),t[33]=N):N=t[33];let F;t[34]!==o?(F=o!=="idle"||!Ue(ie.provisioning),t[34]=o,t[35]=F):F=t[35];let U;t[36]!==h||t[37]!==O||t[38]!==F?(U={label:O,icon:N,disabled:F,onClick:h},t[36]=h,t[37]=O,t[38]=F,t[39]=U):U=t[39];let z;t[40]!==D||t[41]!==U?(z=[D,U],t[40]=D,t[41]=U,t[42]=z):z=t[42];const H=z;let W;t[43]===Symbol.for("react.memo_cache_sentinel")?(W=a.jsx(Dt,{height:"100%",variant:"rounded"}),t[43]=W):W=t[43];let K;t[44]===Symbol.for("react.memo_cache_sentinel")?(K=a.jsx(Tr,{}),t[44]=K):K=t[44];let q;t[45]!==d||t[46]!==u||t[47]!==P||t[48]!==p||t[49]!==f||t[50]!==e||t[51]!==r||t[52]!==l||t[53]!==c||t[54]!==H||t[55]!==o?(q=Q=>{const{data:Y,metadata:Z}=Q;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(Ze,{text:e.formatMessage({id:"common.new"}),startIcon:a.jsx(ge.Add,{}),onClick:()=>r(`${$.urls.udrProvisionedDataProfile}/new`),disabled:o!=="idle"||!Ue(ie.provisioning)})}),a.jsx(Br,{autoScale:!0,orderBy:"uuid",columns:P,data:Y,page:p(Z),labelDisplayedRows:Kjt,rowsCount:f(Z),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"uuid",rowActions:H,stickyRowActions:!0,onPageChange:d(Z),loading:o!=="idle"})]})},t[45]=d,t[46]=u,t[47]=P,t[48]=p,t[49]=f,t[50]=e,t[51]=r,t[52]=l,t[53]=c,t[54]=H,t[55]=o,t[56]=q):q=t[56];let X;return t[57]!==s.profiles||t[58]!==q?(X=a.jsx(I.Suspense,{fallback:W,children:a.jsx(Qt,{resolve:s.profiles,errorElement:K,children:q})}),t[57]=s.profiles,t[58]=q,t[59]=X):X=t[59],X};function Wjt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Yjt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function Kjt(){return""}const Md=Pr();var g0=(t=>(t.op="OP",t.opc="OPC",t.operator_key_id="OPID",t.opc_enc="OPC_ENC",t))(g0||{});const Qjt=Object.keys(g0);var fme=(t=>(t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t))(fme||{});function Kee({sst:t,sd:e,dnn:r,pattern:n}){return`${n}-${dh({sst:+t,sd:e})}-${r}`}var pme=(t=>(t.ACTIVE="ACTIVE",t.INACTIVE="INACTIVE",t))(pme||{});const Zjt=Object.keys(pme);function Xjt({type:t,value:e}){switch(t){case"OPID":return{operator_key_id:e};case"OPC":return{opc:e};case"OP":return{op:e};case"OPC_ENC":return{opc_enc:e}}}function Jjt(t){return t.map(({pattern:e,sst:r,sd:n,dnn:s,static_ipv4:i,ipv4_frame_route_list:o,ipv6_frame_route_list:l,static_ipv6:c})=>{const u={...o?.length&&{ipv4FrameRouteList:o.map(h=>({ipv4Mask:h}))},...l?.length&&{ipv6FrameRouteList:l.map(h=>({ipv6Prefix:h}))}},d=[i?{ipv4Addr:i}:void 0,c?{ipv6Prefix:c}:void 0].filter(h=>!!h);let f=null;(i||c)&&(f={defaultSessionType:i&&c?"IPV4V6":i?"IPV4":"IPV6"});const p={...u,...d.length>0&&{staticIpAddress:d},...f&&{pduSessionTypes:f}},m={sst:+r,...n&&{sd:n}};return Object.entries(p).map(([h,_])=>({op:h==="pduSessionTypes"?"replace":"add",path:`/${e}/data/smData/[singleNssai=${JSON.stringify(m)}]/dnnConfigurations/${s}/${h}`,value:_}))}).flat()}const OD=(t,e)=>{let r;switch(t){case"ipv4FrameRouteList":r={ipv4_frame_route_list:e.map(({ipv4Mask:n})=>n)};break;case"ipv6FrameRouteList":r={ipv6_frame_route_list:e.map(({ipv6Prefix:n})=>n)};break;case"staticIpAddress":r=r=e.reduce((n,s)=>{const i="ipv4Addr"in s?{static_ipv4:s.ipv4Addr}:"ipv6Prefix"in s?{static_ipv6:s.ipv6Prefix}:{};return{...n,...i}},{});break;default:r={}}return r};function eTt(t){if(!t?.length)return[];const e=new RegExp($.regex.patches),r=t.reduce((n,s)=>{const i=s.value,{json:o,pattern:l,dnn:c,field:u}=e.exec(s.path)?.groups||{};let d="",f="";try{const m=JSON.parse(o);d=m.sst,f=m.sd}catch{}const p={id:Kee({sst:d,sd:f,dnn:c,pattern:l}),dnn:c,sst:d,sd:f,pattern:l,...OD(u,i)};return p.id in n?{...n,[p.id]:{...n[p.id],...p,...OD(u,i)}}:{...n,[p.id]:{id:Kee({sst:d,sd:f,dnn:c,pattern:l}),dnn:c??"",pattern:l??"",sst:d,sd:f,static_ipv4:"",static_ipv6:"",ipv6_frame_route_list:[],ipv4_frame_route_list:[],...OD(u,i)}}},{});return Object.entries(r).map(([,n])=>n)}function tTt(t){return{supi:t?.supi||"",description:t?.description||"",gpsi:t?.gpsi||"",status:t?.status||"ACTIVE",isOverridingKeys:!t?.supi,operator_key_type:"OP",operator_key_value:"",k:t?.authentication_subscription?.k||"",k_provisioned:t?.authentication_subscription?.k_provisioned||!1,auth_method:t?.authentication_subscription?.auth_method||"",transport_key_id:t?.authentication_subscription?.transport_key_id||"",k_tag:t?.authentication_subscription?.k_tag||"",opc_tag:t?.authentication_subscription?.opc_tag||"",policy_data_profile_uuid:t?.policy_data_profile?.uuid||"",provisioned_data_profile_uuid:t?.provisioned_data_profile?.uuid||"",provisioned_data_profile_patches:eTt(t?.provisioned_data_profile?.patches)}}function rTt(t,e){return{...e&&t.supi&&{supi:t.supi},...e?t.gpsi?{gpsi:t.gpsi}:!1:{gpsi:t.gpsi||null},description:t.description||null,status:t.status||"ACTIVE",...t.policy_data_profile_uuid?{policy_data_profile:{uuid:t.policy_data_profile_uuid}}:e?{}:{policy_data_profile:{uuid:null}},...t.provisioned_data_profile_uuid?{provisioned_data_profile:{uuid:t.provisioned_data_profile_uuid,...t.provisioned_data_profile_patches&&{patches:Jjt(t.provisioned_data_profile_patches)}}}:e?{}:{provisioned_data_profile:{uuid:null}},...t.isOverridingKeys&&{authentication_subscription:{k:t.k,...t.auth_method&&{auth_method:t.auth_method},...t.operator_key_type&&Xjt({value:t.operator_key_value,type:t.operator_key_type}),...t.transport_key_id&&{transport_key_id:t.transport_key_id},...t.k_tag&&{k_tag:t.k_tag},...t.opc_tag&&{opc_tag:t.opc_tag}}}}}const nTt=dr().shape({supi:We().matches(new RegExp($.regex.supi)).required(Md.formatMessage({id:"validation.required"})),status:We(),description:We().max(128),gpsi:We().matches(new RegExp(`${$.regex.gpsi}`)),provisioned_data_profile_uuid:We(),policy_data_profile_uuid:We(),isOverridingKeys:li(),k:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e).matches(new RegExp($.regex.operatorKey)),operator_key_type:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e),operator_key_value:We().when("isOverridingKeys",(t,e)=>t?e.required(Md.formatMessage({id:"validation.required"})):e).when("operator_key_type",(t,e)=>["OP","OPC","OPC_ENC"].includes(t)?e.matches(new RegExp($.regex.operatorKey)):e),transport_key_id:We().when("operator_key_type",(t,e)=>{if(t==="OPC_ENC")return e.required(Md.formatMessage({id:"validation.required"}))}),k_tag:We().matches(new RegExp($.regex.supiTag)),opc_tag:We().matches(new RegExp($.regex.supiTag)),provisioned_data_profile_patches:yr(dr().shape({id:We(),sst:We(),sd:We(),dnn:We(),static_ipv4:We().matches(new RegExp($.regex.ipv4Addr)).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),static_ipv6:We().matches(new RegExp($.regex.ipv6Prefix)).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),ipv4_frame_route_list:yr().of(We().matches(new RegExp($.regex.ipv4Mask))).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length),ipv6_frame_route_list:yr().of(We().matches(new RegExp($.regex.ipv6Prefix))).test("oneOfPatchRequired",Md.formatMessage({id:"udr_supi.form.errors.provisioned_data_profiles_patch_at_least_one"}),(t,e)=>!!e.parent.static_ipv4||!!e.parent.static_ipv6||!!e.parent.ipv4_frame_route_list?.length||!!e.parent.ipv6_frame_route_list?.length)}))}),sTt=dr().shape({pattern:We().required(),sliceId:We().required(),dnnName:We().required()}),iTt=t=>{const e=he.c(10),{onSubmit:r,provisionedDataProfile:n}=t,s=Ye(),{dialogClose:i}=Jt();let o;e[0]!==r?(o=f=>{const{sliceId:p,dnnName:m,pattern:h}=f;r({sliceId:p,dnnName:m,pattern:h})},e[0]=r,e[1]=o):o=e[1];const l=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c={pattern:"",sliceId:"",dnnName:""},e[2]=c):c=e[2];let u;e[3]!==i||e[4]!==s||e[5]!==n?(u=f=>{const{isSubmitting:p,values:m}=f;return a.jsxs(dn,{canWrite:Ue(ie.provisioning),children:[a.jsx(_s,{children:a.jsxs(te,{spacing:2,children:[a.jsx(Ke,{name:"pattern",children:h=>{const{field:_,meta:g,form:y}=h,{setFieldValue:b}=y;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.pattern"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),onChange:x=>{const w=x.target.value;b("pattern",w),b("sliceId",""),b("dnnName","")},children:[...new Set(wjt(n))].map(oTt)})}}),m.pattern&&a.jsx(Ke,{name:"sliceId",children:h=>{const{field:_,meta:g,form:y}=h,{setFieldValue:b}=y;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.sliceId"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),onChange:x=>{b("sliceId",x.target.value),b("dnnName","")},children:[...new Set(Y$(n,m.pattern).map(aTt))].map(lTt)})}}),m.sliceId&&a.jsx(Ke,{name:"dnnName",children:h=>{const{field:_,meta:g}=h;return a.jsx(qs,{..._,label:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.dnnName"}),size:"small",error:!!g.error,helperText:g.error,disabled:p||!Ue(ie.provisioning),children:Y$(n,m.pattern).filter(y=>y.sliceId===m.sliceId).map(cTt)})}})]})}),a.jsxs(Ti,{children:[a.jsx(Ze,{text:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.buttons.cancel"}),type:"reset",onClick:()=>i(),variant:"outlined",disabled:p||!Ue(ie.provisioning)}),a.jsx(Ze,{text:s.formatMessage({id:"udr_supi.form.slice_dnn_selection.buttons.submit"}),type:"submit",disabled:p||!Ue(ie.provisioning),loading:p})]})]})},e[3]=i,e[4]=s,e[5]=n,e[6]=u):u=e[6];let d;return e[7]!==l||e[8]!==u?(d=a.jsx(Wr,{initialValues:c,enableReinitialize:!0,onSubmit:l,validationSchema:sTt,children:u}),e[7]=l,e[8]=u,e[9]=d):d=e[9],d};function oTt(t){return a.jsx(En,{value:t,children:t},t)}function aTt(t){return t.sliceId}function lTt(t){return a.jsx(En,{value:t,children:t},t)}function cTt(t){const{dnnName:e}=t;return a.jsx(En,{value:e,children:e},e)}const uTt=I.memo(function(e){const r=he.c(25),{i:n}=e,s=Ye(),i=`provisioned_data_profile_patches[${n}].static_ipv4`;let o;r[0]!==s?(o=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k}=C;return a.jsx(dt,{...x,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.static_ipv4"}),size:"small",error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning)})},r[0]=s,r[1]=o):o=r[1];let l;r[2]!==i||r[3]!==o?(l=a.jsx(Ur,{name:i,children:o}),r[2]=i,r[3]=o,r[4]=l):l=r[4];const c=`provisioned_data_profile_patches[${n}].static_ipv6`;let u;r[5]!==s?(u=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k}=C;return a.jsx(dt,{...x,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.static_ipv6"}),size:"small",error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning)})},r[5]=s,r[6]=u):u=r[6];let d;r[7]!==c||r[8]!==u?(d=a.jsx(Ur,{name:c,children:u}),r[7]=c,r[8]=u,r[9]=d):d=r[9];const f=`provisioned_data_profile_patches[${n}].ipv4_frame_route_list`;let p;r[10]!==s?(p=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k,setFieldValue:A}=C;return a.jsx(rn,{name:x.name,value:x.value,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.ipv4_frame_route_list"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(P,T)=>{A(x.name,[...new Set(T.map(dTt))])},error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning),fullWidth:!0})},r[10]=s,r[11]=p):p=r[11];let m;r[12]!==f||r[13]!==p?(m=a.jsx(Ur,{name:f,children:p}),r[12]=f,r[13]=p,r[14]=m):m=r[14];const h=`provisioned_data_profile_patches[${n}].ipv6_frame_route_list`;let _;r[15]!==s?(_=b=>{const{field:x,meta:w,form:C}=b,{isSubmitting:k,setFieldValue:A}=C;return a.jsx(rn,{name:x.name,value:x.value,label:s.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.ipv6_frame_route_list"}),multiple:!0,size:"small",freeSolo:!0,options:[],onChange:(P,T)=>{A(x.name,[...new Set(T.map(fTt))])},error:!!w.error,helperText:w.error,disabled:k||!Ue(ie.provisioning),fullWidth:!0})},r[15]=s,r[16]=_):_=r[16];let g;r[17]!==h||r[18]!==_?(g=a.jsx(Ur,{name:h,children:_}),r[17]=h,r[18]=_,r[19]=g):g=r[19];let y;return r[20]!==g||r[21]!==l||r[22]!==d||r[23]!==m?(y=a.jsxs(te,{spacing:2,children:[l,d,m,g]}),r[20]=g,r[21]=l,r[22]=d,r[23]=m,r[24]=y):y=r[24],y});function dTt(t){return t.trim()}function fTt(t){return t.trim()}function pTt(t){const e=he.c(72),{isEditing:r,policyDataProfileList:n,provisionedDataProfileList:s,dirty:i,loading:o,error:l}=t,c=Ye(),{dialogOpen:u,dialogClose:d,snackbarOpen:f}=Jt(),{values:p}=_0();let m;if(e[0]!==s||e[1]!==p.provisioned_data_profile_uuid){let q;e[3]!==p.provisioned_data_profile_uuid?(q=X=>X.uuid===p.provisioned_data_profile_uuid,e[3]=p.provisioned_data_profile_uuid,e[4]=q):q=e[4],m=s.find(q),e[0]=s,e[1]=p.provisioned_data_profile_uuid,e[2]=m}else m=e[2];const h=m;let _;e[5]!==h?(_=q=>{const{sst:X,sd:Q,dnn:Y,pattern:Z}=q;return!!Y$(h,Z).find(fe=>fe.sliceId===dh({sst:X,sd:Q})&&fe.dnnName===Y)},e[5]=h,e[6]=_):_=e[6];const g=_;let y;e[7]!==c?(y=c.formatMessage({id:"udr_supi.section.general.title"}),e[7]=c,e[8]=y):y=e[8];let b;e[9]!==c||e[10]!==r?(b=a.jsx(Ur,{name:"supi",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.supi"}),size:"small",error:!!Q.error,helperText:Q.error,disabled:r||!Ue(ie.provisioning)})}}),e[9]=c,e[10]=r,e[11]=b):b=e[11];let x;e[12]!==c?(x=a.jsx(Ur,{name:"description",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.description"}),size:"small",error:!!Q.error,helperText:Q.error})}}),e[12]=c,e[13]=x):x=e[13];let w;e[14]!==c?(w=a.jsx(Ur,{name:"gpsi",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.gpsi"}),size:"small",error:!!Q.error,helperText:Q.error})}}),e[14]=c,e[15]=w):w=e[15];let C;e[16]!==c?(C=a.jsx(Ur,{name:"status",children:q=>{const{field:X,meta:Q}=q;return a.jsxs(qs,{...X,label:c.formatMessage({id:"udr_supi.form.status"}),size:"small",error:!!Q.error,helperText:Q.error,children:[a.jsx(En,{value:"ACTIVE",children:"ACTIVE"}),a.jsx(En,{value:"INACTIVE",children:"INACTIVE"})]})}}),e[16]=c,e[17]=C):C=e[17];let k;e[18]!==c||e[19]!==r||e[20]!==p.k_provisioned?(k=r&&a.jsxs(te,{spacing:2,direction:"row",align:"center",children:[a.jsx(Ur,{name:"isOverridingKeys",children:q=>{const{field:X,form:Q}=q,{setFieldValue:Y}=Q;return a.jsxs(te,{direction:"row",align:"center",children:[a.jsx(ti,{checked:!!X.value,onChange:(Z,re)=>{Y(X.name,re)}}),a.jsx(_e,{children:c.formatMessage({id:"udr_supi.form.is_overriding_keys"})})]})}}),a.jsx(ms,{size:"small",label:p.k_provisioned?c.formatMessage({id:"udr_supi.form.keys_provisioned"}):c.formatMessage({id:"udr_supi.form.keys_not_provisioned"}),color:p.k_provisioned?"primary":"default"})]}),e[18]=c,e[19]=r,e[20]=p.k_provisioned,e[21]=k):k=e[21];let A;e[22]!==c||e[23]!==p.isOverridingKeys||e[24]!==p.operator_key_type?(A=p.isOverridingKeys&&a.jsxs(a.Fragment,{children:[a.jsx(Ur,{name:"k",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.k"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ke,{name:"operator_key_type",children:q=>{const{field:X,meta:Q}=q;return a.jsx(qs,{...X,label:c.formatMessage({id:"udr_supi.form.operator_key_type"}),size:"small",error:!!Q.error,helperText:Q.error,children:Qjt.map(gTt)})}}),a.jsx(Ke,{name:"operator_key_value",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.operator_key_value"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ur,{name:"transport_key_id",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.transport_key_id"}),size:"small",error:!!Q.error,helperText:Q.error})}}),a.jsx(Ur,{name:"k_tag",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.k_tag"}),size:"small",error:!!Q.error,helperText:Q.error})}}),p.operator_key_type===g0.opc_enc&&a.jsx(Ke,{name:"opc_tag",children:q=>{const{field:X,meta:Q}=q;return a.jsx(dt,{...X,label:c.formatMessage({id:"udr_supi.form.opc_tag"}),size:"small",error:!!Q.error,helperText:Q.error})}})]}),e[22]=c,e[23]=p.isOverridingKeys,e[24]=p.operator_key_type,e[25]=A):A=e[25];let P;e[26]!==b||e[27]!==x||e[28]!==w||e[29]!==C||e[30]!==k||e[31]!==A?(P=a.jsxs(te,{spacing:2,children:[b,x,w,C,k,A]}),e[26]=b,e[27]=x,e[28]=w,e[29]=C,e[30]=k,e[31]=A,e[32]=P):P=e[32];let T;e[33]!==P||e[34]!==y?(T=a.jsx(Kt,{title:y,children:P}),e[33]=P,e[34]=y,e[35]=T):T=e[35];let j;e[36]===Symbol.for("react.memo_cache_sentinel")?(j={width:"100%",position:"relative"},e[36]=j):j=e[36];let R;e[37]!==c?(R=c.formatMessage({id:"udr_supi.section.profiles.title"}),e[37]=c,e[38]=R):R=e[38];let D;e[39]===Symbol.for("react.memo_cache_sentinel")?(D={width:"100%"},e[39]=D):D=e[39];let O;e[40]!==c||e[41]!==n?(O=a.jsx(Ke,{name:"policy_data_profile_uuid",children:q=>{const{field:X,meta:Q,form:Y}=q,{setFieldValue:Z}=Y,re=n.map(hTt),fe=re.find(de=>{const{value:se}=de;return se===X?.value})??null;return a.jsx(rn,{...X,label:c.formatMessage({id:"udr_supi.form.policy_data_profile_uuid"}),size:"small",value:fe,options:re,onChange:(de,se)=>{if(!se){Z(X.name,"");return}se&&!Array.isArray(se)&&typeof se=="object"&&typeof se.value=="string"&&Z(X.name,se.value)},error:!!Q.error,helperText:Q.error})}}),e[40]=c,e[41]=n,e[42]=O):O=e[42];let N;e[43]!==c||e[44]!==s?(N=a.jsx(Ke,{name:"provisioned_data_profile_uuid",children:q=>{const{field:X,meta:Q,form:Y}=q,{setFieldValue:Z}=Y,re=s.map(mTt),fe=re.find(de=>{const{value:se}=de;return se===X?.value})??null;return a.jsx(rn,{...X,label:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_uuid"}),size:"small",value:fe,options:re,onChange:(de,se)=>{if(!se){Z(X.name,"");return}se&&!Array.isArray(se)&&typeof se=="object"&&typeof se.value=="string"&&Z(X.name,se.value)},error:!!Q.error,helperText:Q.error})}}),e[43]=c,e[44]=s,e[45]=N):N=e[45];let F;e[46]!==d||e[47]!==u||e[48]!==c||e[49]!==g||e[50]!==h||e[51]!==f||e[52]!==p?(F=(!!p.provisioned_data_profile_uuid||p.provisioned_data_profile_patches&&p.provisioned_data_profile_patches.length>0)&&a.jsx(oi,{name:"provisioned_data_profile_patches",children:q=>{const{remove:X,push:Q,form:Y}=q,{getFieldMeta:Z}=Y,re=le=>{const{sliceId:ee,dnnName:J,pattern:me}=le,[pe,Se]=ee.split("-"),ve=p.provisioned_data_profile_patches?.find(xe=>{const{sd:qe,sst:Le,dnn:Te}=xe;return ee===dh({sst:+Le,sd:qe})&&Te===J});d(),ve?f({message:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.error.already_present"}),severity:"info"}):Q({id:`${me}-${ee}-${J}`,sst:pe||"",sd:Se||"",dnn:J,pattern:me,ipv4_frame_route_list:[],static_ipv4:"",ipv6_frame_route_list:[],static_ipv6:""})},fe=()=>{h&&u({title:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.add_dialog.title"}),content:()=>a.jsx(iTt,{provisionedDataProfile:h,onSubmit:le=>re(le)}),closeOnBackdropClick:!1})},de=le=>{X(le)},se=le=>!Z(le)?.error;return a.jsx(pr,{title:c.formatMessage({id:"udr_supi.section.provisioned_data_profile_patches.title"}),dense:!0,error:!se("provisioned_data_profile_patches"),headerActionsComponent:a.jsx(Ze,{text:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.add"}),type:"button",variant:"outlined",onClick:fe,disabled:!Ue(ie.provisioning)}),elevation:2,children:a.jsxs(Kt,{children:[!!p.provisioned_data_profile_patches?.length&&a.jsx(Jn,{exclusive:!0,spacing:2,children:p.provisioned_data_profile_patches.map((le,ee)=>a.jsx(xr,{elevation:4,title:`${le.pattern} ${g({sst:+le.sst,sd:le.sd,dnn:le.dnn,pattern:le.pattern})?"":"(invalid)"}`,subtitle:`${dh({sst:+le.sst,sd:le.sd})} - ${le.dnn}`,error:!se(`provisioned_data_profile_patches[${ee}]`),actions:[{icon:a.jsx(ge.Trash,{}),onClick:()=>de(ee),label:c.formatMessage({id:"udr_supi.form.provisioned_data_profile_patches.delete"})}],content:a.jsx(uTt,{i:ee})},le?.id))}),!p.provisioned_data_profile_patches?.length&&a.jsx(_e,{children:c.formatMessage({id:"udr_supi.section.provisioned_data_profile_patches.no_patch"})})]})})}}),e[46]=d,e[47]=u,e[48]=c,e[49]=g,e[50]=h,e[51]=f,e[52]=p,e[53]=F):F=e[53];let U;e[54]!==l?(U=a.jsx(Xr,{data:l}),e[54]=l,e[55]=U):U=e[55];let z;e[56]!==i||e[57]!==c||e[58]!==o?(z=Ue(ie.provisioning)&&a.jsx(Ze,{type:"submit",text:c.formatMessage({id:"udr_supi.form.buttons.submit"}),disabled:!i,loading:o,sx:{alignSelf:"flex-start"}}),e[56]=i,e[57]=c,e[58]=o,e[59]=z):z=e[59];let H;e[60]!==O||e[61]!==N||e[62]!==F||e[63]!==U||e[64]!==z?(H=a.jsxs(te,{direction:"column",spacing:2,nowrap:!0,fullWidth:!0,sx:D,children:[O,N,F,U,z]}),e[60]=O,e[61]=N,e[62]=F,e[63]=U,e[64]=z,e[65]=H):H=e[65];let W;e[66]!==R||e[67]!==H?(W=a.jsx(Kt,{sx:j,title:R,children:H}),e[66]=R,e[67]=H,e[68]=W):W=e[68];let K;return e[69]!==T||e[70]!==W?(K=a.jsxs(te,{spacing:2,children:[T,W]}),e[69]=T,e[70]=W,e[71]=K):K=e[71],K}function mTt(t){const{description:e,uuid:r}=t;return{label:`${r} ${e?`- ${e}`:""}`,value:r}}function hTt(t){const{description:e,uuid:r}=t;return{label:`${r} ${e?`- ${e}`:""}`,value:r}}function gTt(t){return a.jsx(En,{value:g0[t],children:g0[t]},t)}const _Tt=()=>{const t=he.c(27),e=Ye(),{id:r}=ko(),n=zn(),{data:s,state:i,submit:o}=gr(),{openConfirmDialog:l}=di(),c=r!=="new";let u;t[0]!==r||t[1]!==c||t[2]!==o?(u=x=>{const w=rTt(x,!c);c&&r?o({supi:r,formData:w},{method:"PATCH",encType:"application/json",action:"update"}):o(w,{method:"POST",encType:"application/json",action:"create"})},t[0]=r,t[1]=c,t[2]=o,t[3]=u):u=t[3];const d=u;let f;t[4]!==r||t[5]!==e||t[6]!==c||t[7]!==l||t[8]!==o?(f=()=>{r&&c&&l({text:e.formatMessage({id:"udr_supis.actions.confirm_delete"}),onConfirm:()=>o({supi:r},{method:"DELETE",encType:"application/json",action:"delete"})})},t[4]=r,t[5]=e,t[6]=c,t[7]=l,t[8]=o,t[9]=f):f=t[9];const p=f;let m;t[10]!==p||t[11]!==e||t[12]!==c?(m=c&&a.jsx(hs,{children:a.jsx(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:a.jsx(Ze,{text:e.formatMessage({id:"common.delete"}),startIcon:a.jsx(ge.Trash,{}),variant:"outlined",disabled:!Ue(ie.provisioning),onClick:p})})}),t[10]=p,t[11]=e,t[12]=c,t[13]=m):m=t[13];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(Dt,{variant:"rounded",sx:{height:"800px"}}),t[14]=h):h=t[14];let _;t[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Tr,{}),t[15]=_):_=t[15];let g;t[16]!==s||t[17]!==i||t[18]!==d||t[19]!==c?(g=x=>{const{supi:w,policyDataProfileList:C,provisionedDataProfileList:k}=x;return a.jsx(Wr,{initialValues:tTt(w),validationSchema:nTt,onSubmit:d,children:A=>{const{dirty:P}=A;return a.jsx(dn,{canWrite:Ue(ie.provisioning),children:a.jsx(te,{spacing:2,children:a.jsx(pTt,{isEditing:c,policyDataProfileList:C.data,provisionedDataProfileList:k.data,dirty:P,loading:i!=="idle",error:s})})})}})},t[16]=s,t[17]=i,t[18]=d,t[19]=c,t[20]=g):g=t[20];let y;t[21]!==n.createOrEditData||t[22]!==g?(y=a.jsx(I.Suspense,{fallback:h,children:a.jsx(Qt,{resolve:n.createOrEditData,errorElement:_,children:g})}),t[21]=n.createOrEditData,t[22]=g,t[23]=y):y=t[23];let b;return t[24]!==m||t[25]!==y?(b=a.jsxs(a.Fragment,{children:[m,y]}),t[24]=m,t[25]=y,t[26]=b):b=t[26],b};function vTt(t){const e=he.c(12),{errors:r}=t,n=Ye(),{dialogClose:s}=Jt();let i;e[0]!==s?(i=()=>{s()},e[0]=s,e[1]=i):i=e[1];const o=i;let l;e[2]!==r?(l=a.jsx(_s,{children:a.jsx(Lr,{noIcon:!0,severity:"error",message:r})}),e[2]=r,e[3]=l):l=e[3];let c;e[4]!==n?(c=n.formatMessage({id:"common.form.close"}),e[4]=n,e[5]=c):c=e[5];let u;e[6]!==o||e[7]!==c?(u=a.jsx(Ti,{children:a.jsx(Ze,{text:c,onClick:o})}),e[6]=o,e[7]=c,e[8]=u):u=e[8];let d;return e[9]!==l||e[10]!==u?(d=a.jsxs(a.Fragment,{children:[l,u]}),e[9]=l,e[10]=u,e[11]=d):d=e[11],d}function yTt(t){const e=he.c(22),{loader:r,close:n,successMessage:s,errorMessage:i,revalidate:o}=t;let l;e[0]!==r?(l={to:r},e[0]=r,e[1]=l):l=e[1];const{data:c}=Dv(l),{dialogClose:u,dialogOpen:d}=Jt(),f=Ye(),p=j6e();let m;e[2]!==n||e[3]!==c||e[4]!==u||e[5]!==d||e[6]!==i||e[7]!==o||e[8]!==p||e[9]!==s?(m=()=>{const g=n(c);g&&(g.status==="ok"&&(u(),Nt(s),o&&p.revalidate()),g.status==="error"&&(u(),g.errors&&d({title:i,content:()=>a.jsx(vTt,{errors:g.errors})})))},e[2]=n,e[3]=c,e[4]=u,e[5]=d,e[6]=i,e[7]=o,e[8]=p,e[9]=s,e[10]=m):m=e[10];let h;e[11]!==n||e[12]!==c||e[13]!==u||e[14]!==d||e[15]!==i||e[16]!==f||e[17]!==o||e[18]!==p||e[19]!==s?(h=[n,c,u,d,i,f,o,p,s],e[11]=n,e[12]=c,e[13]=u,e[14]=d,e[15]=i,e[16]=f,e[17]=o,e[18]=p,e[19]=s,e[20]=h):h=e[20],I.useEffect(m,h);let _;return e[21]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(_s,{children:a.jsx(gt,{sx:{my:2},children:a.jsx(Nc,{variant:"indeterminate"})})}),e[21]=_):_=e[21],_}var mme=(t=>(t.CREATED="CREATED",t.RUNNING="RUNNING",t.TERMINATED="TERMINATED",t))(mme||{});const bTt=()=>{const t=he.c(35),e=Ye(),[r,n]=hl(),{drawerClose:s}=Jt();let i;t[0]!==s||t[1]!==n?(i=x=>{n(w=>{const C=new URLSearchParams;return C.set($.searchParams.pageSize,w.get($.searchParams.pageSize)||$.pageSize.toString()),x.supi_icont&&C.set("supi_icont",x.supi_icont),x.supi_noticont&&C.set("supi_noticont",x.supi_noticont),x.supi_iend&&C.set("supi_iend",x.supi_iend),x.gpsi_icont&&C.set("gpsi_icont",x.gpsi_icont),x.gpsi_noticont&&C.set("gpsi_noticont",x.gpsi_noticont),x.gpsi_iend&&C.set("gpsi_iend",x.gpsi_iend),x.status_eq&&C.set("status_eq",x.status_eq),C},{replace:!0}),s()},t[0]=s,t[1]=n,t[2]=i):i=t[2];const o=i;let l;t[3]!==s||t[4]!==n?(l=()=>{n(xTt,{replace:!0}),s()},t[3]=s,t[4]=n,t[5]=l):l=t[5];const c=l;let u;t[6]!==r?(u=r.get("supi_icont")??"",t[6]=r,t[7]=u):u=t[7];let d;t[8]!==r?(d=r.get("supi_noticont")??"",t[8]=r,t[9]=d):d=t[9];let f;t[10]!==r?(f=r.get("supi_iend")??"",t[10]=r,t[11]=f):f=t[11];let p;t[12]!==r?(p=r.get("gpsi_icont")??"",t[12]=r,t[13]=p):p=t[13];let m;t[14]!==r?(m=r.get("gpsi_noticont")??"",t[14]=r,t[15]=m):m=t[15];let h;t[16]!==r?(h=r.get("gpsi_iend")??"",t[16]=r,t[17]=h):h=t[17];let _;t[18]!==r?(_=r.get("status_eq")??"",t[18]=r,t[19]=_):_=t[19];let g;t[20]!==u||t[21]!==d||t[22]!==f||t[23]!==p||t[24]!==m||t[25]!==h||t[26]!==_?(g={supi_icont:u,supi_noticont:d,supi_iend:f,gpsi_icont:p,gpsi_noticont:m,gpsi_iend:h,status_eq:_},t[20]=u,t[21]=d,t[22]=f,t[23]=p,t[24]=m,t[25]=h,t[26]=_,t[27]=g):g=t[27];let y;t[28]!==e?(y=()=>a.jsxs(dn,{canWrite:as(ie.provisioning),fullHeight:!0,children:[a.jsx(zp,{children:a.jsxs(te,{spacing:3,children:[a.jsx(Ke,{name:"status_eq",children:x=>{const{field:w,form:C}=x,{setFieldValue:k}=C;return a.jsx(rn,{value:w.value,name:w.name,label:e.formatMessage({id:"udr_supi.filters.status_eq_active_inactive"}),multiple:!1,size:"small",freeSolo:!1,options:["",...Zjt],onChange:(A,P)=>{k(w.name,P||"")},fullWidth:!0})}}),a.jsxs(te,{spacing:.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,fullWidth:!0,nowrap:!0,children:[a.jsxs(_e,{fontWeight:"600",lineHeight:"1",color:"text.secondary",children:[e.formatMessage({id:"udr_supi.filters.supi"})," "]}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"udr_supi.filters.case_insensitive.info"}),children:a.jsx("span",{children:a.jsx(te,{direction:"column",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]}),a.jsx(Ke,{name:"supi_icont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_icont"}),size:"small"})}}),a.jsx(Ke,{name:"supi_noticont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_noticont"}),size:"small"})}}),a.jsx(Ke,{name:"supi_iend",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.supi_iend"}),size:"small"})}})]}),a.jsxs(te,{spacing:.5,children:[a.jsxs(te,{direction:"row",align:"center",spacing:1,fullWidth:!0,nowrap:!0,children:[a.jsx(_e,{fontWeight:"600",lineHeight:"1",color:"text.secondary",children:e.formatMessage({id:"udr_supi.filters.gpsi"})}),a.jsx(Mn,{arrow:!0,title:e.formatMessage({id:"udr_supi.filters.case_insensitive.info"}),children:a.jsx("span",{children:a.jsx(te,{direction:"column",justify:"center",children:a.jsx(ge.QuestionMark,{size:18})})})})]}),a.jsx(Ke,{name:"gpsi_icont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_icont"}),size:"small"})}}),a.jsx(Ke,{name:"gpsi_noticont",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_noticont"}),size:"small"})}}),a.jsx(Ke,{name:"gpsi_iend",children:x=>{const{field:w}=x;return a.jsx(dt,{...w,value:w.value||"",label:e.formatMessage({id:"udr_supi.filters.gpsi_iend"}),size:"small"})}})]})]})}),a.jsxs(f7,{children:[a.jsx(Ze,{"data-testid":"filter-udr-supi-button-reset",text:e.formatMessage({id:"udr_supi.filters.buttons.reset"}),variant:"outlined",disabled:!as(ie.provisioning),type:"reset"}),a.jsx(Ze,{"data-testid":"filter-udr-supi-button-apply",text:e.formatMessage({id:"udr_supi.filters.buttons.apply"}),type:"submit",disabled:!as(ie.provisioning)})]})]}),t[28]=e,t[29]=y):y=t[29];let b;return t[30]!==c||t[31]!==o||t[32]!==y||t[33]!==g?(b=a.jsx(Wr,{initialValues:g,onSubmit:o,onReset:c,children:y}),t[30]=c,t[31]=o,t[32]=y,t[33]=g,t[34]=b):b=t[34],b};function xTt(t){const e=new URLSearchParams;return e.set($.searchParams.pageSize,t.get($.searchParams.pageSize)||$.pageSize.toString()),e}const STt=()=>{const t=he.c(90),e=Ye(),r=ys(),{openConfirmDialog:n}=di(),{dialogOpen:s,dialogClose:i,drawerOpen:o}=Jt(),l=zn(),{submit:c,state:u}=gr(),{pageSize:d,pageSizeOptions:f,changePageSize:p,changePage:m,getRowsCount:h,getPage:_}=Na(),g=u7();let y;t[0]!==i||t[1]!==s||t[2]!==e?(y=()=>{s({title:e.formatMessage({id:"udr_supis.import.form.title"}),content:()=>a.jsx(bx,{min:1,max:1,filesLabel:e.formatMessage({id:"udr_supis.import.form.file"}),accept:{"text/csv":[".csv"]},requiredMessage:e.formatMessage({id:"udr_supis.import.form.file.required"}),description:e.formatMessage({id:"udr_supis.import.form.description"}),exampleFileUrl:"/files/udr_supi_provisioning_example.csv",action:"udr/supis/upload",onDialogSuccess:nt=>{const Re=nt;s({title:e.formatMessage({id:"udr_supis.import.form.result.message_started"}),content:()=>a.jsx(yTt,{revalidate:!0,successMessage:e.formatMessage({id:"udr_supis.import.form.result.message_ok"}),errorMessage:e.formatMessage({id:"udr_supis.import.form.result.message_ko"}),loader:`udr/supis/upload/async/${Re.action_id}`,close:we=>we&&we.status===mme.TERMINATED?(i(),we.info.errors?.length?{status:"error",errors:we.info.errors.map(wTt)}:{status:"ok"}):null})})}})})},t[0]=i,t[1]=s,t[2]=e,t[3]=y):y=t[3];const b=y;let x;t[4]!==e||t[5]!==n||t[6]!==c?(x=nt=>{n({text:e.formatMessage({id:"udr_supis.actions.confirm_delete"}),onConfirm:()=>c({supi:nt.supi},{method:"DELETE",encType:"application/json",action:`${nt.supi}/delete`})})},t[4]=e,t[5]=n,t[6]=c,t[7]=x):x=t[7];const w=x;let C;t[8]!==e?(C=(nt,Re)=>[{key:"supi",label:e.formatMessage({id:"udr_supis.table.id"})},{key:"description",label:e.formatMessage({id:"udr_supis.table.description"})},{key:"gpsi",label:e.formatMessage({id:"udr_supis.table.gpsi"})},{key:"provisioned_data_profile",label:e.formatMessage({id:"udr_supis.table.provisioned_data_profile"}),cellRender:we=>{const{provisioned_data_profile:Me}=we,$e=Re.find(Ve=>Ve.uuid===Me?.uuid);return $e?.description?a.jsx(_e,{type:"body2",children:$e?.description}):a.jsx(_e,{type:"body2",children:$e?.uuid})}},{key:"policy_data_profile",label:e.formatMessage({id:"udr_supis.table.policy_data_profile"}),cellRender:we=>{const{policy_data_profile:Me}=we,$e=nt.find(Ve=>Ve.uuid===Me?.uuid);return $e?.description?a.jsx(_e,{type:"body2",children:$e?.description}):a.jsx(_e,{type:"body2",children:$e?.uuid})}},{key:"status",label:e.formatMessage({id:"udr_supis.table.status"}),cellRender:CTt},{key:"created_at",label:e.formatMessage({id:"udr_supis.table.created_at"}),cellRender:ATt},{key:"modified_at",label:e.formatMessage({id:"udr_supis.table.modified_at"}),cellRender:kTt}],t[8]=e,t[9]=C):C=t[9];const k=C;let A;t[10]===Symbol.for("react.memo_cache_sentinel")?(A=_l(ie.provisioning),t[10]=A):A=t[10];let P;t[11]!==r?(P={...A,onClick:nt=>r(`${$.urls.udrSupis}/${nt.supi}`)},t[11]=r,t[12]=P):P=t[12];let T;t[13]!==e?(T=e.formatMessage({id:"udr_supis.actions.info"}),t[13]=e,t[14]=T):T=t[14];let j,R;t[15]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(ge.UEstatus,{}),R=as(ie.monitoring),t[15]=j,t[16]=R):(j=t[15],R=t[16]);let D;t[17]!==r?(D=nt=>r(`${$.urls.monitoringUeStatus}/${nt.supi}`),t[17]=r,t[18]=D):D=t[18];let O;t[19]!==T||t[20]!==D?(O={label:T,icon:j,disabled:!R,onClick:D},t[19]=T,t[20]=D,t[21]=O):O=t[21];let N;t[22]!==e?(N=e.formatMessage({id:"udr_supis.actions.delete"}),t[22]=e,t[23]=N):N=t[23];let F,U;t[24]===Symbol.for("react.memo_cache_sentinel")?(F=a.jsx(ge.Trash,{}),U=Ue(ie.provisioning),t[24]=F,t[25]=U):(F=t[24],U=t[25]);let z;t[26]!==w?(z=nt=>void w(nt),t[26]=w,t[27]=z):z=t[27];let H;t[28]!==N||t[29]!==z?(H={label:N,icon:F,disabled:!U,onClick:z},t[28]=N,t[29]=z,t[30]=H):H=t[30];let W;t[31]!==H||t[32]!==P||t[33]!==O?(W=[P,O,H],t[31]=H,t[32]=P,t[33]=O,t[34]=W):W=t[34];const K=W;let q;t[35]!==o||t[36]!==e?(q=()=>{o({title:e.formatMessage({id:"udr_supi.toolbar.filters"}),content:MTt})},t[35]=o,t[36]=e,t[37]=q):q=t[37];const X=q;let Q;t[38]!==g?(Q=d7({filter:g}),t[38]=g,t[39]=Q):Q=t[39];const Y=!Q;let Z;t[40]!==e?(Z=e.formatMessage({id:"udr_supi.toolbar.filters"}),t[40]=e,t[41]=Z):Z=t[41];let re;t[42]===Symbol.for("react.memo_cache_sentinel")?(re=a.jsx(ge.Filter,{}),t[42]=re):re=t[42];let fe;t[43]!==X||t[44]!==Z?(fe=a.jsx(Ze,{"data-testid":"supi-btn-filters",variant:"outlined",text:Z,startIcon:re,onClick:X}),t[43]=X,t[44]=Z,t[45]=fe):fe=t[45];let de;t[46]!==Y||t[47]!==fe?(de=a.jsx(Iv,{variant:"dot",invisible:Y,children:fe}),t[46]=Y,t[47]=fe,t[48]=de):de=t[48];let se;t[49]!==e?(se=e.formatMessage({id:"udr_supis.toolbar.import"}),t[49]=e,t[50]=se):se=t[50];let le;t[51]===Symbol.for("react.memo_cache_sentinel")?(le=a.jsx(ge.Upload,{}),t[51]=le):le=t[51];let ee;t[52]!==u?(ee=u!=="idle"||!Ue(ie.provisioning),t[52]=u,t[53]=ee):ee=t[53];let J;t[54]!==b||t[55]!==se||t[56]!==ee?(J=a.jsx(Ze,{variant:"outlined","data-testid":"supi-btn-import",text:se,startIcon:le,onClick:b,disabled:ee}),t[54]=b,t[55]=se,t[56]=ee,t[57]=J):J=t[57];let me;t[58]!==e?(me=e.formatMessage({id:"common.new"}),t[58]=e,t[59]=me):me=t[59];let pe;t[60]===Symbol.for("react.memo_cache_sentinel")?(pe=a.jsx(ge.Add,{}),t[60]=pe):pe=t[60];let Se;t[61]!==r?(Se=()=>r(`${$.urls.udrSupis}/new`),t[61]=r,t[62]=Se):Se=t[62];let ve;t[63]!==u?(ve=u!=="idle"||!Ue(ie.provisioning),t[63]=u,t[64]=ve):ve=t[64];let xe;t[65]!==me||t[66]!==Se||t[67]!==ve?(xe=a.jsx(Ze,{"data-testid":"supi-btn-add",text:me,startIcon:pe,onClick:Se,disabled:ve}),t[65]=me,t[66]=Se,t[67]=ve,t[68]=xe):xe=t[68];let qe;t[69]!==de||t[70]!==J||t[71]!==xe?(qe=a.jsx(hs,{children:a.jsxs(te,{direction:"row",justify:"flex-end",fullWidth:!0,children:[de,J,xe]})}),t[69]=de,t[70]=J,t[71]=xe,t[72]=qe):qe=t[72];let Le;t[73]===Symbol.for("react.memo_cache_sentinel")?(Le=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[73]=Le):Le=t[73];let Te;t[74]!==m||t[75]!==p||t[76]!==k||t[77]!==_||t[78]!==h||t[79]!==d||t[80]!==f||t[81]!==K||t[82]!==u?(Te=nt=>{const{supiList:Re,policyDataProfileList:we,provisionedDataProfileList:Me}=nt;return a.jsx(Br,{autoScale:!0,orderBy:"supi",columns:k(we.data,Me.data),data:Re.data,page:_(Re.metadata),labelDisplayedRows:PTt,rowsCount:h(Re.metadata),rowsPerPage:d,onRowsPerPageChange:p,rowsPerPageOptions:f,rowKey:"supi",rowActions:K,stickyRowActions:!0,onPageChange:m(Re.metadata),loading:u!=="idle"})},t[74]=m,t[75]=p,t[76]=k,t[77]=_,t[78]=h,t[79]=d,t[80]=f,t[81]=K,t[82]=u,t[83]=Te):Te=t[83];let je;t[84]!==l.supisData||t[85]!==Te?(je=a.jsx(I.Suspense,{fallback:Le,children:a.jsx(Qt,{resolve:l.supisData,children:Te})}),t[84]=l.supisData,t[85]=Te,t[86]=je):je=t[86];let Ge;return t[87]!==qe||t[88]!==je?(Ge=a.jsxs(a.Fragment,{children:[qe,je]}),t[87]=qe,t[88]=je,t[89]=Ge):Ge=t[89],Ge};function wTt(t){return`${t.entity} - ${t.reason}`}function CTt(t){const{status:e}=t;return a.jsx(ms,{size:"small",id:e,label:e,color:e===fme.ACTIVE?"success":"default"})}function ATt(t){const{created_at:e}=t;return a.jsx("span",{children:Mr(e)})}function kTt(t){const{modified_at:e}=t;return a.jsx("span",{children:Mr(e)})}function MTt(){return a.jsx(bTt,{})}function PTt(){return""}const nh={AES_128_ECB:{name:"AES_128_ECB",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!1,isAdRequired:!1},AES_192_ECB:{name:"AES_192_ECB",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!1,isAdRequired:!1},AES_256_ECB:{name:"AES_256_ECB",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!1,isAdRequired:!1},DES_64_ECB:{name:"DES_64_ECB",validation:/^[a-fA-F0-9]{16}$/,isIvRequired:!1,isAdRequired:!1},TDES_128_ECB:{name:"TDES_128_ECB",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!1,isAdRequired:!1},TDES_192_ECB:{name:"TDES_192_ECB",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!1,isAdRequired:!1},AES_128_CBC:{name:"AES_128_CBC",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},AES_192_CBC:{name:"AES_192_CBC",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},AES_256_CBC:{name:"AES_256_CBC",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{32}$/},DES_64_CBC:{name:"DES_64_CBC",validation:/^[a-fA-F0-9]{16}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},TDES_128_CBC:{name:"TDES_128_CBC",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},TDES_192_CBC:{name:"TDES_192_CBC",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,isAdRequired:!1,ivValidation:/^[a-fA-F0-9]{16}$/},AES_128_GCM:{name:"AES_128_GCM",validation:/^[a-fA-F0-9]{32}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/},AES_192_GCM:{name:"AES_192_GCM",validation:/^[a-fA-F0-9]{48}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/},AES_256_GCM:{name:"AES_256_GCM",validation:/^[a-fA-F0-9]{64}$/,isIvRequired:!0,ivValidation:/^([a-fA-F0-9]{2})+$/,isAdRequired:!0,adValidation:/^([a-fA-F0-9]{2})*$/}},jTt=Object.values(nh),TTt=new RegExp(`^(${Object.keys(nh).join("|")})$`),hme=t=>{const e=he.c(33),{id:r}=t,n=Ye(),{dialogClose:s}=Jt(),i=r!==void 0;let o;e[0]!==r||e[1]!==i?(o=i&&{editLoadTo:`${$.urls.udrTransportKeys}/${r}`},e[0]=r,e[1]=i,e[2]=o):o=e[2];let l;e[3]!==o?(l={...o},e[3]=o,e[4]=l):l=e[4];const{upsertFetcher:c,dataFetcher:u,isLoading:d}=Ys(l),{data:f,state:p,submit:m}=c,{data:h,state:_}=u;let g;e[5]!==m||e[6]!==r||e[7]!==i?(g=P=>{const{id:T,key:j,iv:R,cipher:D,ad:O}=P;if(i){m({id:r,key:j,cipher:D,...R&&{iv:R},...O&&{ad:O}},{action:`${$.urls.udrTransportKeys}/update`,method:"POST",encType:"application/json"});return}m({id:T,key:j,cipher:D,...R&&{iv:R},...O&&{ad:O}},{action:`${$.urls.udrTransportKeys}/create`,method:"POST",encType:"application/json"})},e[5]=m,e[6]=r,e[7]=i,e[8]=g):g=e[8];const y=g;let b;e:{if(!i||!h){let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D={id:"",cipher:"AES_128_ECB",key:"",ad:"",iv:""},e[9]=D):D=e[9],b=D;break e}const P=h.udrTransportKey,T=P?.id??"",j=P?.cipher??"AES_128_ECB";let R;e[10]!==T||e[11]!==j?(R={id:T,cipher:j,key:"",ad:"",iv:""},e[10]=T,e[11]=j,e[12]=R):R=e[12],b=R}const x=b;let w;if(e[13]!==n||e[14]!==i){let P;e[16]!==n?(P=(j,R)=>{const D=nh[j];return!D||!D.isIvRequired?R:D.ivValidation?R.required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).matches(new RegExp(D.ivValidation)):R},e[16]=n,e[17]=P):P=e[17];let T;e[18]!==n?(T=(j,R)=>{const D=nh[j];return!D||!D.isAdRequired?R:D.adValidation?R.required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).matches(new RegExp(D.adValidation)):R},e[18]=n,e[19]=T):T=e[19],w=dr().shape({...!i&&{id:We().required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"}))},cipher:We().strict(!0).matches(TTt).required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})),key:We().required(n.formatMessage({id:"udr_transport_keys.new_transport_key.form_errors.required"})).when("cipher",ETt),iv:We().when("cipher",P),ad:We().when("cipher",T)}),e[13]=n,e[14]=i,e[15]=w}else w=e[15];const C=w;let k;e[20]!==s||e[21]!==f||e[22]!==p||e[23]!==n||e[24]!==i||e[25]!==d||e[26]!==_?(k=P=>{const{values:T}=P;return a.jsxs(dn,{canWrite:Ue(ie.transport_keys),fullHeight:!0,children:[a.jsx(_s,{loading:d,children:a.jsxs(te,{spacing:2,fullHeight:!0,fullWidth:!0,nowrap:!0,children:[a.jsx(Ke,{name:"id",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.id"}),size:"small",error:!!D.error,helperText:D.error,disabled:i||_!=="idle"||p!=="idle"})}}),a.jsx(Ke,{name:"cipher",children:j=>{const{field:R,meta:D,form:O}=j,{setFieldValue:N}=O,F=U=>{N(R.name,U)};return a.jsx(qs,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.cipher"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle",onChange:U=>F(U.target.value),children:jTt.map(RTt)})}}),a.jsx(Ke,{name:"key",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.key"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),nh[T.cipher].isIvRequired&&a.jsx(Ke,{name:"iv",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.iv"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),nh[T.cipher].isAdRequired&&a.jsx(Ke,{name:"ad",children:j=>{const{field:R,meta:D}=j;return a.jsx(dt,{...R,label:n.formatMessage({id:"udr_transport_keys.new_transport_key.ad"}),size:"small",error:!!D.error,helperText:D.error,disabled:_!=="idle"||p!=="idle"})}}),a.jsx(Xr,{data:f})]})}),a.jsx(Ti,{children:a.jsxs(te,{direction:"row",justify:"flex-end",children:[a.jsx(Ze,{"data-testid":"udr-transport-keys-button-cancel",text:n.formatMessage({id:"udr_transport_keys.import.cancel"}),variant:"outlined",disabled:_!=="idle"||p!=="idle"||!Ue(ie.transport_keys),onClick:()=>s()}),a.jsx(Ze,{"data-testid":"udr-transport-keys-button-save",text:n.formatMessage({id:"udr_transport_keys.import.save"}),type:"submit",disabled:_!=="idle"||p!=="idle"||!Ue(ie.transport_keys)})]})})]})},e[20]=s,e[21]=f,e[22]=p,e[23]=n,e[24]=i,e[25]=d,e[26]=_,e[27]=k):k=e[27];let A;return e[28]!==y||e[29]!==x||e[30]!==k||e[31]!==C?(A=a.jsx(Wr,{initialValues:x,enableReinitialize:!0,validationSchema:C,onSubmit:y,children:k}),e[28]=y,e[29]=x,e[30]=k,e[31]=C,e[32]=A):A=e[32],A};function ETt(t,e){const r=nh[t];return r?e.strict(!0).matches(new RegExp(r.validation)):e}function RTt(t){return a.jsx(En,{value:t.name,children:t.name},t.name)}const ITt=()=>{const t=he.c(10),e=Ye(),{dialogOpen:r}=Jt();let n;t[0]!==r||t[1]!==e?(n=async()=>{r({title:e.formatMessage({id:"udr_transport_keys.toolbar.new_transport_key"}),content:DTt,closeOnBackdropClick:!1})},t[0]=r,t[1]=e,t[2]=n):n=t[2];const s=n;let i;t[3]!==e?(i=e.formatMessage({id:"common.new"}),t[3]=e,t[4]=i):i=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ge.Add,{}),t[5]=o):o=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=Ue(ie.transport_keys),t[6]=l):l=t[6];let c;return t[7]!==s||t[8]!==i?(c=a.jsx(Ze,{"data-testid":"toolbar-button-new-transport-key",text:i,startIcon:o,onClick:s,disabled:!l}),t[7]=s,t[8]=i,t[9]=c):c=t[9],c};function DTt(){return a.jsx(hme,{})}const $Tt=()=>{const t=he.c(64),e=Ye(),r=Gr(),{openConfirmDialog:n}=di(),s=On(),i=gr(),{dialogOpen:o}=Jt(),{pageSize:l,pageSizeOptions:c,changePageSize:u,changePage:d,getRowsCount:f,getPage:p}=Na();let m;t[0]!==o||t[1]!==e?(m=re=>{re&&o({title:e.formatMessage({id:"udr_transport_keys.edit_transport_key.title"}),content:()=>a.jsx(hme,{id:re}),closeOnBackdropClick:!1})},t[0]=o,t[1]=e,t[2]=m):m=t[2];const h=m;let _;t[3]!==i||t[4]!==e||t[5]!==n?(_=re=>{re&&n({text:e.formatMessage({id:"udr_transport_keys.application_servers_profiles.dialog.delete.confirm"}),onConfirm:()=>{i.submit({id:re},{action:`${$.urls.udrTransportKeys}/delete`,method:"POST",encType:"application/json"})}})},t[3]=i,t[4]=e,t[5]=n,t[6]=_):_=t[6];const g=_;let y;t[7]!==e?(y=e.formatMessage({id:"udr_transport_keys.table.header.id"}),t[7]=e,t[8]=y):y=t[8];let b;t[9]!==y?(b={key:"id",label:y,cellRender:OTt},t[9]=y,t[10]=b):b=t[10];let x;t[11]!==e?(x=e.formatMessage({id:"udr_transport_keys.table.header.cipher"}),t[11]=e,t[12]=x):x=t[12];let w;t[13]!==x?(w={key:"cipher",label:x,cellRender:LTt},t[13]=x,t[14]=w):w=t[14];let C;t[15]!==e?(C=e.formatMessage({id:"udr_transport_keys.table.header.created_at"}),t[15]=e,t[16]=C):C=t[16];let k;t[17]!==C?(k={key:"created_at",label:C,cellRender:NTt},t[17]=C,t[18]=k):k=t[18];let A;t[19]!==e?(A=e.formatMessage({id:"udr_transport_keys.table.header.modified_at"}),t[19]=e,t[20]=A):A=t[20];let P;t[21]!==A?(P={key:"modified_at",label:A,cellRender:FTt},t[21]=A,t[22]=P):P=t[22];let T;t[23]!==b||t[24]!==w||t[25]!==k||t[26]!==P?(T=[b,w,k,P],t[23]=b,t[24]=w,t[25]=k,t[26]=P,t[27]=T):T=t[27];const j=T;let R;t[28]===Symbol.for("react.memo_cache_sentinel")?(R=_l([ie.transport_keys,ie.provisioning]),t[28]=R):R=t[28];const D=s.state!=="idle"||i.state!=="idle";let O;t[29]!==h?(O=re=>{const{id:fe}=re;return h(fe)},t[29]=h,t[30]=O):O=t[30];let N;t[31]!==D||t[32]!==O?(N={...R,disabled:D,onClick:O},t[31]=D,t[32]=O,t[33]=N):N=t[33];let F;t[34]!==e?(F=e.formatMessage({id:"udr_transport_keys.actions.delete"}),t[34]=e,t[35]=F):F=t[35];let U;t[36]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(ge.Trash,{}),t[36]=U):U=t[36];let z;t[37]!==g?(z=re=>{const{id:fe}=re;return void g(fe)},t[37]=g,t[38]=z):z=t[38];let H;t[39]!==i.state||t[40]!==s.state?(H=s.state!=="idle"||i.state!=="idle"||!Ue(ie.provisioning)&&!Ue(ie.transport_keys),t[39]=i.state,t[40]=s.state,t[41]=H):H=t[41];let W;t[42]!==F||t[43]!==z||t[44]!==H?(W={label:F,icon:U,onClick:z,disabled:H},t[42]=F,t[43]=z,t[44]=H,t[45]=W):W=t[45];let K;t[46]!==N||t[47]!==W?(K=[N,W],t[46]=N,t[47]=W,t[48]=K):K=t[48];const q=K;let X;t[49]===Symbol.for("react.memo_cache_sentinel")?(X=a.jsx(Dt,{variant:"rounded",height:"100%"}),t[49]=X):X=t[49];let Q;t[50]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(Tr,{}),t[50]=Q):Q=t[50];let Y;t[51]!==d||t[52]!==u||t[53]!==j||t[54]!==i.state||t[55]!==p||t[56]!==f||t[57]!==l||t[58]!==c||t[59]!==q?(Y=re=>{const{data:fe,metadata:de}=re;return a.jsxs(a.Fragment,{children:[a.jsx(hs,{children:a.jsx(ITt,{})}),a.jsx(Br,{autoScale:!0,loading:i.state!=="idle",orderBy:"id",columns:j,data:fe,page:p(de),labelDisplayedRows:UTt,rowsCount:f(de),rowsPerPage:l,onRowsPerPageChange:u,rowsPerPageOptions:c,rowKey:"id",rowActions:q,stickyRowActions:!0,onPageChange:d(de)})]})},t[51]=d,t[52]=u,t[53]=j,t[54]=i.state,t[55]=p,t[56]=f,t[57]=l,t[58]=c,t[59]=q,t[60]=Y):Y=t[60];let Z;return t[61]!==r.udrTransportKeyList||t[62]!==Y?(Z=a.jsx(I.Suspense,{fallback:X,children:a.jsx(Qt,{resolve:r.udrTransportKeyList,errorElement:Q,children:Y})}),t[61]=r.udrTransportKeyList,t[62]=Y,t[63]=Z):Z=t[63],Z};function OTt(t){const{id:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function LTt(t){const{cipher:e}=t;return e?a.jsx(_e,{type:"body2",children:e}):a.jsx(_e,{type:"body2",children:"*"})}function NTt(t){const{created_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function FTt(t){const{modified_at:e}=t;return a.jsx(_e,{type:"body2",children:Mr(e)})}function UTt(){return""}async function BTt({request:t}){const e=await t.json(),r=await zlt(e);return xt(r)||(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function zTt({request:t}){const e=await t.json(),r=await qlt(e);return xt(r)||(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function qTt({request:t}){const{id:e}=await t.json(),r=await Vlt(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsApplicationServerAcls)),Ft(r)}async function VTt({request:t}){const e=await t.json(),r=await Hlt(e);return xt(r)?Ar():Nt(),Ft(r)}async function HTt({request:t}){const e=await t.json(),r=await Glt(e);return xt(r)?Ar():Nt(),Ft(r)}async function GTt({request:t}){const{service_indication:e,public_identity:r}=await t.json(),n=await Wlt({service_indication:e,public_identity:r});return xt(n)?Ar():Nt(),Ft(n)}async function WTt({request:t}){const e=await t.json(),r=await ect(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrImsPrivateIdentities))}async function YTt({request:t}){const e=await t.json(),r=await tct(e);return xt(r)||Nt(),Ft(r)}async function KTt({request:t}){const e=await t.json(),r=await rct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrImsPrivateIdentities))}async function QTt({request:t}){const{name:e}=await t.json(),r=await nct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrImsPrivateIdentities)return rt($.urls.udrImsPrivateIdentities);return Ft(r)}async function ZTt({request:t}){const e=await t.json(),r=await lct(e);return xt(r)||(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function XTt({request:t}){const e=await t.json(),r=await cct(e);return xt(r)||(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function JTt({request:t}){const{id:e}=await t.json(),r=await uct(e);return xt(r)?Ar():(Nt(),rt($.urls.udrImsServiceProfiles)),Ft(r)}async function e4t({request:t}){const{mcc:e,mnc:r}=await t.json(),n=await pct(e,r);return xt(n)||Nt(),Ft(n)}async function t4t({request:t}){const{mcc:e,mnc:r}=await t.json(),n=await mct(e,r);return xt(n)?Ar():Nt(),Ft(n)}async function r4t({request:t}){const e=await t.json(),r=await gct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrPolicyDataProfile))}async function n4t({request:t}){const e=await t.json(),r=await _ct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrPolicyDataProfile))}async function s4t({request:t}){const{id:e}=await t.json(),r=await vct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrPolicyDataProfile)return rt($.urls.udrPolicyDataProfile);return Ft(r)}async function i4t({request:t}){const e=await t.json(),r=await bct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrProvisionedDataProfile))}async function o4t({request:t}){const{profile:e}=await t.json(),{uuid:r,...n}=e,s=await xct(r,n);return xt(s)?Ft(s):(Nt(),rt($.urls.udrProvisionedDataProfile))}async function a4t({request:t}){const{id:e}=await t.json(),r=await Sct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrProvisionedDataProfile)return rt($.urls.udrProvisionedDataProfile);return Ft(r)}async function l4t({request:t}){const e=await t.json(),r=await kct(e);return xt(r)?Ft(r):(Nt(),rt($.urls.udrSupis))}async function c4t({request:t}){const{supi:e,formData:r}=await t.json(),n=await Mct(e,r);return xt(n)?Ft(n):(Nt(),rt($.urls.udrSupis))}async function u4t({request:t}){const{supi:e}=await t.json(),r=await Pct(e);if(xt(r))Ar();else if(Nt(),location.href!==$.urls.udrSupis)return rt($.urls.udrSupis);return Ft(r)}async function d4t({request:t}){const r=(await t.formData()).getAll("files"),n=await jct(r[0]);return Ft(n)}async function f4t({request:t}){const e=await t.json(),r=await Dct(e);return xt(r)||(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function p4t({request:t}){const e=await t.json(),r=await $ct(e);return xt(r)||(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function m4t({request:t}){const{id:e}=await t.json(),r=await Oct(e);return xt(r)?Ar():(Nt(),rt($.urls.udrTransportKeys)),Ft(r)}async function h4t({request:t}){const e=await t.json(),r=await Nct(e);return xt(r)||Nt(),Ft(r)}async function g4t(){const t=await Fct();return xt(t)?Nt(t.error.detail):Nt(),Ft(t)}async function _4t({request:t}){const e=await t.json(),r=await Bct(e);return xt(r)||Nt(),Ft(r)}async function v4t({request:t}){const e=await t.json(),r=await zct(e);return xt(r)||Nt(),Ft(r)}async function y4t({request:t}){const{id:e}=await t.json(),r=await qct(e);return xt(r)?Ar(r.error.detail):Nt(),Ft(r)}const b4t=async t=>{const e=new URL(t.request.url),r=e.searchParams.get("applicationServer"),n=e.searchParams.get("dataReferenceEq");return Wt({loaderArgs:t,deferred:!0,data:{udrImsApplicationServerAclList:Ult({applicationServer:r,dataReferenceEq:n})}})};async function x4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsApplicationServerAcl:Blt({id:e})}}):null}const S4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsInitialFilterList:Ylt({pageSize:e,paginationToken:r})}})};async function w4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsInitialFilter:Klt({id:e})}}):null}const C4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityList:Jlt({pageSize:e,paginationToken:r})}})};async function A4t(t){const{name:e}=t.params;return e&&e!=="new"?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentity:jue({name:e})}}):null}async function k4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentity:jue({name:e})}}):null}async function M4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityPrivateStatus:sct(e)}}):null}async function P4t(t){const{name:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsPrivateIdentityPublicStatus:ict(e)}}):null}const j4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrImsServiceProfileList:oct({pageSize:e,paginationToken:r})}})};async function T4t(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrImsServiceProfile:act({id:e})}}):null}const E4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPlmnList:fct({pageSize:+e,...r&&{paginationToken:r}})}})},R4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrPolicyDataProfileList:h7({pageSize:+e,...r&&{paginationToken:r}})}})},I4t=async t=>{const{id:e}=t.params;if(e&&e!=="new"){const r=hct(e);return Wt({loaderArgs:t,deferred:!0,data:{udrPolicyDataProfile:r}})}return Wt({loaderArgs:t,deferred:!1,data:{}})};function D4t(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{profiles:g7({pageSize:+e,...r&&{paginationToken:r}})}})}async function $4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt(e==="new"?{loaderArgs:t,deferred:!1,data:{}}:{loaderArgs:t,deferred:!0,data:{profile:yct(e)}})}async function O4t(t){const e=new URL(t.request.url),r=e.searchParams.get("supi_icont"),n=e.searchParams.get("supi_noticont"),s=e.searchParams.get("supi_iend"),i=e.searchParams.get("gpsi_icont"),o=e.searchParams.get("gpsi_noticont"),l=e.searchParams.get("gpsi_iend"),c=e.searchParams.get("status_eq"),{pageSize:u,paginationToken:d}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{supisData:Ect({pageSize:+u,paginationToken:d,supi_icont:r,supi_noticont:n,supi_iend:s,gpsi_icont:i,gpsi_noticont:o,gpsi_iend:l,status_eq:c})}})}async function L4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});return Wt(e==="new"?{loaderArgs:t,deferred:!1,data:{createOrEditData:KX()}}:{loaderArgs:t,deferred:!0,data:{createOrEditData:KX(e)}})}async function N4t(t){const{id:e}=t.params;if(!e)throw Li({type:mn.NOT_FOUND});const r=await Tct(e);return Ft(r)}const F4t=async t=>{const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{udrTransportKeyList:Rct({pageSize:e,paginationToken:r})}})};async function Qee(t){const{id:e}=t.params;return e?Wt({loaderArgs:t,deferred:!0,data:{udrTransportKey:Ict({id:e})}}):null}const U4t=async t=>Wt({loaderArgs:t,deferred:!0,data:{milenageCostants:Lct()}});function B4t(t){const{pageSize:e,paginationToken:r}=Fa(t);return Wt({loaderArgs:t,deferred:!0,data:{operatorKeys:Uct({pageSize:+e,...r&&{paginationToken:r}})}})}const z4t={path:"udr",handle:vr({labelIntl:"route.udr",icon:a.jsx(ge.UDR,{})}),children:[{element:a.jsx(Or,{center:!0}),children:[{path:"custom-milenage-constants",handle:vr({labelIntl:"route.udr.custom-milenage-constants",to:$.urls.udrCustomMilenageConstants}),loader:U4t,element:a.jsx(OPt,{}),children:[{path:"update",action:h4t,loader:()=>rt("..")},{path:"delete",action:g4t,loader:()=>rt("..")}]}]},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UDR,{dbCluster:!0})]},{path:"supis",handle:vr({labelIntl:"route.udr.supis",to:$.urls.udrSupis}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:O4t,element:a.jsx(STt,{})}]},{path:"upload",action:d4t,loader:()=>rt("..")},{path:"upload/async/:id",loader:N4t,element:a.jsx(ur,{to:$.urls.udrSupis,replace:!0})},{element:a.jsx(Or,{center:!0}),children:[{path:":id",loader:L4t,handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.supis.new":"route.udr.supis.id",...e!=="new"&&{captionIntl:"route.udr.supis.id.caption",captionIntlParams:{id:e}},to:`${$.urls.udrSupis}/${e}`})},element:a.jsx(_Tt,{}),children:[{path:"create",action:l4t,loader:()=>rt("..")},{path:"update",action:c4t,loader:()=>rt("..")},{path:"delete",action:u4t,loader:()=>rt("..")}]}]}]},{path:"ims-private-identities",handle:vr({labelIntl:"route.udr.ims-private-identities",to:$.urls.udrImsPrivateIdentities}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:C4t,element:a.jsx(lPt,{})},{path:"private-status/:name",loader:M4t,element:a.jsx(ur,{to:$.urls.udrImsPrivateIdentities,replace:!0})},{path:"public-status/:name",loader:P4t,element:a.jsx(ur,{to:$.urls.udrImsPrivateIdentities,replace:!0})},{action:WTt,path:"create",loader:()=>rt("..")},{action:YTt,path:"create-basic",loader:()=>rt("..")},{action:KTt,path:"update",loader:()=>rt("..")},{action:QTt,path:"delete",loader:()=>rt("..")}]},{path:":name",handle:t=>{const e=t.params.name;return vr({labelIntl:e==="new"?"route.udr.ims-private-identities.new":"route.udr.ims-private-identities.id",...e!=="new"&&{captionIntl:"route.udr.ims-private-identities.id.caption",captionIntlParams:{id:e}},to:$.urls.udrImsPrivateIdentitiesDetails.replace(":name",e)})},children:[{element:a.jsx(Or,{center:!0}),children:[{index:!0,loader:A4t,element:a.jsx(bPt,{})},{path:"application-servers-profiles",handle:t=>{const e=t.params.name;return vr({labelIntl:"route.udr.ims-private-identities.id.application-servers-profiles",to:`${$.urls.udrImsPrivateIdentitiesDetails.replace(":name",e)}/application-servers-profiles`,...e!=="new"&&{captionIntl:"route.udr.ims-private-identities.id.caption",captionIntlParams:{id:e}}})},loader:k4t,element:a.jsx(vPt,{}),children:[{action:VTt,path:"create",loader:()=>rt("..")},{action:HTt,path:"update",loader:()=>rt("..")},{action:GTt,path:"delete",loader:()=>rt("..")}]}]}]}]},{path:"provisioned-data-profile",handle:vr({labelIntl:"route.udr.provisioned-data-profile",to:$.urls.udrProvisionedDataProfile}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:D4t,element:a.jsx(Gjt,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.provisioned-data-profile.new":"route.udr.provisioned-data-profile.id",...e!=="new"&&{captionIntl:"route.udr.provisioned-data-profile.id.caption",captionIntlParams:{id:e}},to:$.urls.udrProvisionedDataProfileDetails.replace(":id",e)})},loader:$4t,element:a.jsx(Hjt,{}),children:[{path:"create",action:i4t,loader:()=>rt("..")},{path:"update",action:o4t,loader:()=>rt("..")},{path:"delete",action:a4t,loader:()=>rt("..")}]}]}]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.UDR),{path:"plmns",handle:vr({labelIntl:"route.udr.plmns",to:$.urls.udrPlmns}),loader:E4t,element:a.jsx(WPt,{}),children:[{path:"create",action:e4t,loader:()=>rt("..")},{path:"delete",action:t4t,loader:()=>rt("..")}]},{path:"ims-application-server-acls",handle:vr({labelIntl:"route.udr.ims-application-server-acls",to:$.urls.udrImsApplicationServerAcls}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:b4t,element:a.jsx(RMt,{})},{path:":id",loader:x4t,element:a.jsx(ur,{to:$.urls.udrImsApplicationServerAcls,replace:!0})},{action:BTt,path:"create",loader:()=>rt("..")},{action:zTt,path:"update",loader:()=>rt("..")},{action:qTt,path:"delete",loader:()=>rt("..")}]},{path:"ims-service-profiles",handle:vr({labelIntl:"route.udr.ims-service-profiles",to:$.urls.udrImsServiceProfiles}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:j4t,element:a.jsx(PPt,{})},{path:":id",loader:T4t,element:a.jsx(ur,{to:$.urls.udrImsServiceProfiles,replace:!0})},{action:ZTt,path:"create",loader:()=>rt("..")},{action:XTt,path:"update",loader:()=>rt("..")},{action:JTt,path:"delete",loader:()=>rt("..")}]},{path:"ims-initial-filters",handle:vr({labelIntl:"route.udr.ims-initial-filters",to:$.urls.udrImsInitialFilters}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:S4t,element:a.jsx(HMt,{})},{path:":id",loader:w4t,element:a.jsx(ur,{to:$.urls.udrImsInitialFilters,replace:!0})},{action:FMt,path:"create",loader:()=>rt("..")},{action:UMt,path:"update",loader:()=>rt("..")},{action:BMt,path:"delete",loader:()=>rt("..")}]},{path:"transport-keys",handle:vr({labelIntl:"route.udr.transport-keys",to:$.urls.udrTransportKeys}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:F4t,element:a.jsx($Tt,{})},{path:":id",loader:Qee,element:a.jsx(ur,{to:$.urls.udrTransportKeys,replace:!0})},{action:f4t,path:"create",loader:()=>rt("..")},{action:p4t,path:"update",loader:()=>rt("..")},{action:m4t,path:"delete",loader:()=>rt("..")}]},{path:"operator-codes",handle:vr({labelIntl:"route.udr.operator-codes",to:$.urls.udrOperatorCodes}),children:[{index:!0,element:a.jsx(ur,{to:"entries",replace:!0})},{path:"entries",loader:B4t,element:a.jsx(FPt,{})},{path:":id",loader:Qee,element:a.jsx(ur,{to:$.urls.udrOperatorCodes,replace:!0})},{path:"create",action:_4t,loader:()=>rt("..")},{path:"update",action:v4t,loader:()=>rt("..")},{path:"delete",action:y4t,loader:()=>rt("..")}]}]},{path:"policy-data-profile",handle:vr({labelIntl:"route.udr.policy-data-profile",to:$.urls.udrPolicyDataProfile}),children:[{element:a.jsx(Or,{fullHeight:!0}),children:[{index:!0,loader:R4t,element:a.jsx(XPt,{})}]},{element:a.jsx(Or,{center:!0}),children:[{path:":id",handle:t=>{const e=t.params.id;return vr({labelIntl:e==="new"?"route.udr.policy-data-profile.new":"route.udr.policy-data-profile.id",...e!=="new"&&{captionIntl:"route.udr.policy-data-profile.id.caption",captionIntlParams:{id:e}},to:$.urls.udrPolicyDataProfileDetails.replace(":id",e)})},loader:I4t,element:a.jsx(fjt,{}),children:[{path:"create",action:r4t,loader:()=>rt("..")},{path:"update",action:n4t,loader:()=>rt("..")},{path:"delete",action:s4t,loader:()=>rt("..")}]}]}]}]};function q4t(){const t=he.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},t[0]=e):e=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={maxWidth:"500px"},t[1]=r):r=t[1];let n;return t[2]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(gt,{sx:e,children:a.jsx(pr,{title:"Unauthorized",sx:r,children:a.jsx(Kt,{children:a.jsx(Lr,{severity:"warning",message:"You are not authorized to view any content. Check your account permissions."})})})}),t[2]=n):n=t[2],n}function V4t(){return Aae()?rt(".."):null}const H4t={path:"unauthorized",loader:V4t,element:a.jsx(q4t,{})},Zee=Pr(),G4t={path:"upf",handle:vr({labelIntl:"route.upf",icon:a.jsx(ge.UPF,{})}),children:[{index:!0,element:a.jsx(ur,{to:"status",replace:!0})},{element:a.jsx(Or,{center:!0,transparent:!0}),children:[so(ue.UPF)]},{element:a.jsx(Or,{fullHeight:!0}),children:[io(ue.UPF),{path:"status",element:a.jsx(Ao,{tabs:[{url:"pfcp",label:Zee.formatMessage({id:"route.upf.status.pfcp"})},{url:"gtpu",label:Zee.formatMessage({id:"route.upf.status.gtpu"})}]}),children:[{index:!0,element:a.jsx(ur,{to:"pfcp",replace:!0})},h8({path:"pfcp",nf:ue.UPF}),m7({path:"gtpu",nf:ue.UPF})]}]},{element:a.jsx(Or,{center:!0}),children:[p7(ue.UPF)]}]},W4t={errorElement:a.jsx(rN,{}),children:[Zae({element:a.jsx(Pze,{}),loader:dqe,path:"/",action:Dze,children:[{errorElement:a.jsx(gUe,{}),children:[{path:"site-loader",element:a.jsx(ur,{to:"/home",replace:!0}),loader:pqe},{element:a.jsx(ur,{to:"/home",replace:!0}),index:!0},Wwt,sht,Ttt,frt,prt,lnt,mnt,Yst,gnt,Vit,Mat,gut,ndt,Oft,Nft,nCt,sCt,wCt,Xkt,CMt,z4t,G4t,rht]}]}),{element:a.jsx(zW,{}),loader:vY,children:[Srt]},{element:a.jsx(zW,{profileCard:!0}),loader:vY,children:[H4t]},mqe,wrt,Crt,pht]},Y4t=J6e([W4t]),K4t=()=>{const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(a$e,{router:Y4t}),t[0]=e):e=t[0],e},gme=Ioe(),Q4t=Doe(gme);function Z4t(){const t=he.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(LPe,{locale:gme,messages:Q4t,children:a.jsx(xre,{dateAdapter:dMe,children:a.jsx(JIe,{children:a.jsxs(a.Fragment,{children:[a.jsx(yDe,{}),a.jsx(K4t,{})]})})})}),t[0]=e):e=t[0],e}const X4t=document.getElementById("root"),J4t=Age.createRoot(X4t);J4t.render(a.jsx(I.StrictMode,{children:a.jsx(Z4t,{})}));
