diff --git a/jhub_apps/static/js/index.js b/jhub_apps/static/js/index.js index e8729c64..dd5b887a 100644 --- a/jhub_apps/static/js/index.js +++ b/jhub_apps/static/js/index.js @@ -154,7 +154,7 @@ Error generating stack: `+s.message+` `),aE)),fE=_("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),dE=_("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>b({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&WA(Wb||(Wb=Kp` animation: ${0} 1.4s ease-in-out infinite; `),lE)),pE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,p=ce(r,iE),y=b({},r,{color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d}),h=cE(y),A={},w={},m={};if(d==="determinate"){const v=2*Math.PI*(($o-c)/2);A.strokeDasharray=v.toFixed(3),m["aria-valuenow"]=Math.round(u),A.strokeDashoffset=`${((100-u)/100*v).toFixed(3)}px`,w.transform="rotate(-90deg)"}return f.jsx(uE,b({className:le(h.root,o),style:b({width:a,height:a},w,l),ownerState:y,ref:n,role:"progressbar"},m,p,{children:f.jsx(fE,{className:h.svg,ownerState:y,viewBox:`${$o/2} ${$o/2} ${$o} ${$o}`,children:f.jsx(dE,{className:h.circle,style:A,ownerState:y,cx:$o,cy:$o,r:($o-c)/2,fill:"none",strokeWidth:c})})}))}),tg=pE,vE=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),hE=e=>b({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),mE=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,a])=>{var l;r[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=b({html:vE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},hE(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const s=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return s&&(o=[o,s]),o};function AE(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return f.jsxs(g.Fragment,{children:[f.jsx(Y2,{styles:o=>mE(o,r)}),n]})}function PE(e){return De("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const gE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],yE=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PE,r)},bE=_("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),xE=_(G2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wE=g.forwardRef(function(t,n){var r,o,s,i,a,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=xE,BackdropProps:d,className:p,closeAfterTransition:y=!1,children:h,container:A,component:w,components:m={},componentsProps:v={},disableAutoFocus:P=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:j=!1,disablePortal:z=!1,disableRestoreFocus:H=!1,disableScrollLock:O=!1,hideBackdrop:D=!1,keepMounted:S=!1,onBackdropClick:I,open:R,slotProps:M,slots:W}=c,N=ce(c,gE),Z=b({},c,{closeAfterTransition:y,disableAutoFocus:P,disableEnforceFocus:x,disableEscapeKeyDown:j,disablePortal:z,disableRestoreFocus:H,disableScrollLock:O,hideBackdrop:D,keepMounted:S}),{getRootProps:J,getBackdropProps:T,getTransitionProps:B,portalRef:K,isTopModal:fe,exited:E,hasTransition:ee}=LS(b({},Z,{rootRef:n})),G=b({},Z,{exited:E}),ie=yE(G),re={};if(h.props.tabIndex===void 0&&(re.tabIndex="-1"),ee){const{onEnter:be,onExited:Ie}=B();re.onEnter=be,re.onExited=Ie}const me=(r=(o=W==null?void 0:W.root)!=null?o:m.Root)!=null?r:bE,ue=(s=(i=W==null?void 0:W.backdrop)!=null?i:m.Backdrop)!=null?s:u,se=(a=M==null?void 0:M.root)!=null?a:v.root,de=(l=M==null?void 0:M.backdrop)!=null?l:v.backdrop,He=Ls({elementType:me,externalSlotProps:se,externalForwardedProps:N,getSlotProps:J,additionalProps:{ref:n,as:w},ownerState:G,className:le(p,se==null?void 0:se.className,ie==null?void 0:ie.root,!G.open&&G.exited&&(ie==null?void 0:ie.hidden))}),we=Ls({elementType:ue,externalSlotProps:de,additionalProps:d,getSlotProps:be=>T(b({},be,{onClick:Ie=>{I&&I(Ie),be!=null&&be.onClick&&be.onClick(Ie)}})),className:le(de==null?void 0:de.className,d==null?void 0:d.className,ie==null?void 0:ie.backdrop),ownerState:G});return!S&&!R&&(!ee||E)?null:f.jsx(k2,{ref:K,container:A,disablePortal:z,children:f.jsxs(me,b({},He,{children:[!D&&u?f.jsx(ue,b({},we)):null,f.jsx(zS,{disableEnforceFocus:x,disableAutoFocus:P,disableRestoreFocus:H,isEnabled:fe,open:R,children:g.cloneElement(h,re)})]}))})}),ng=wE;function HE(e){return De("MuiDialog",e)}const jE=Se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),mh=jE,zE=g.createContext({}),_2=zE,OE=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],CE=_(G2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),DE=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Te(i,HE,t)},SE=_(ng,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),TE=_("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(n.scroll)}`]]}})(({ownerState:e})=>b({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),RE=_(vr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>b({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${mh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${mh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${mh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),kE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=Ar(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:y=!1,fullWidth:h=!1,maxWidth:A="sm",onBackdropClick:w,onClose:m,open:v,PaperComponent:P=vr,PaperProps:x={},scroll:j="paper",TransitionComponent:z=Z2,transitionDuration:H=s,TransitionProps:O}=r,D=ce(r,OE),S=b({},r,{disableEscapeKeyDown:p,fullScreen:y,fullWidth:h,maxWidth:A,scroll:j}),I=DE(S),R=g.useRef(),M=J=>{R.current=J.target===J.currentTarget},W=J=>{R.current&&(R.current=null,w&&w(J),m&&m(J,"backdropClick"))},N=xo(a),Z=g.useMemo(()=>({titleId:N}),[N]);return f.jsx(SE,b({className:le(I.root,d),closeAfterTransition:!0,components:{Backdrop:CE},componentsProps:{backdrop:b({transitionDuration:H,as:l},c)},disableEscapeKeyDown:p,onClose:m,open:v,ref:n,onClick:W,ownerState:S},D,{children:f.jsx(z,b({appear:!0,in:v,timeout:H,role:"presentation"},O,{children:f.jsx(TE,{className:le(I.container),onMouseDown:M,ownerState:S,children:f.jsx(RE,b({as:P,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":N},x,{className:le(I.paper,x.className),ownerState:S,children:f.jsx(_2.Provider,{value:Z,children:u})}))})}))}))}),Gl=kE;function EE(e){return De("MuiDialogContent",e)}Se("MuiDialogContent",["root","dividers"]);function ME(e){return De("MuiDialogTitle",e)}const LE=Se("MuiDialogTitle",["root"]),XE=LE,NE=["className","dividers"],BE=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},EE,t)},VE=_("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>b({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${XE.root} + &`]:{paddingTop:0}})),IE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=ce(r,NE),a=b({},r,{dividers:s}),l=BE(a);return f.jsx(VE,b({className:le(l.root,o),ownerState:a,ref:n},i))}),Ku=IE,WE=["className","id"],JE=e=>{const{classes:t}=e;return Te({root:["root"]},ME,t)},FE=_(Ue,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),YE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=ce(r,WE),a=r,l=JE(a),{titleId:c=s}=g.useContext(_2);return f.jsx(FE,b({component:"h2",className:le(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c},i))}),_u=YE;function qE(e){return De("MuiDivider",e)}const ZE=Se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Jb=ZE,GE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],UE=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:a,variant:l}=e;return Te({root:["root",t&&"absolute",l,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",a==="right"&&i!=="vertical"&&"textAlignRight",a==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},qE,r)},QE=_("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>b({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ze(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>b({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>b({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>b({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>b({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),KE=_("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>b({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),$2=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:a=s?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:p="center",variant:y="fullWidth"}=r,h=ce(r,GE),A=b({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:y}),w=UE(A);return f.jsx(QE,b({as:a,className:le(w.root,i),role:d,ref:n,ownerState:A},h,{children:s?f.jsx(KE,{className:w.wrapper,ownerState:A,children:s}):null}))});$2.muiSkipListHighlight=!0;const Zc=$2,_E=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function $E(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=bo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=s.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${s.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${s.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function e6(e){return typeof e=="function"?e():e}function $u(e,t,n){const r=e6(n),o=$E(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const t6=g.forwardRef(function(t,n){const r=Ar(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,container:c,direction:u="down",easing:d=o,in:p,onEnter:y,onEntered:h,onEntering:A,onExit:w,onExited:m,onExiting:v,style:P,timeout:x=s,TransitionComponent:j=WP}=t,z=ce(t,_E),H=g.useRef(null),O=Ht(l.ref,H,n),D=T=>B=>{T&&(B===void 0?T(H.current):T(H.current,B))},S=D((T,B)=>{$u(u,T,c),YP(T),y&&y(T,B)}),I=D((T,B)=>{const K=qa({timeout:x,style:P,easing:d},{mode:"enter"});T.style.webkitTransition=r.transitions.create("-webkit-transform",b({},K)),T.style.transition=r.transitions.create("transform",b({},K)),T.style.webkitTransform="none",T.style.transform="none",A&&A(T,B)}),R=D(h),M=D(v),W=D(T=>{const B=qa({timeout:x,style:P,easing:d},{mode:"exit"});T.style.webkitTransition=r.transitions.create("-webkit-transform",B),T.style.transition=r.transitions.create("transform",B),$u(u,T,c),w&&w(T)}),N=D(T=>{T.style.webkitTransition="",T.style.transition="",m&&m(T)}),Z=T=>{i&&i(H.current,T)},J=g.useCallback(()=>{H.current&&$u(u,H.current,c)},[u,c]);return g.useEffect(()=>{if(p||u==="down"||u==="right")return;const T=fp(()=>{H.current&&$u(u,H.current,c)}),B=bo(H.current);return B.addEventListener("resize",T),()=>{T.clear(),B.removeEventListener("resize",T)}},[u,p,c]),g.useEffect(()=>{p||J()},[p,J]),f.jsx(j,b({nodeRef:H,onEnter:S,onEntered:R,onEntering:I,onExit:W,onExited:N,onExiting:M,addEndListener:Z,appear:a,in:p,timeout:x},z,{children:(T,B)=>g.cloneElement(l,b({ref:O,style:b({visibility:T==="exited"&&!p?"hidden":void 0},P,l.props.style)},B))}))}),n6=t6;function r6(e){return De("MuiDrawer",e)}Se("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const o6=["BackdropProps"],s6=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],e9=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},i6=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${te(n)}`,r!=="temporary"&&`paperAnchorDocked${te(n)}`]};return Te(o,r6,t)},a6=_(ng,{name:"MuiDrawer",slot:"Root",overridesResolver:e9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Fb=_("div",{shouldForwardProp:pn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:e9})({flex:"0 0 auto"}),l6=_(vr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${te(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${te(n.anchor)}`]]}})(({theme:e,ownerState:t})=>b({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),t9={left:"right",right:"left",top:"down",bottom:"up"};function c6(e){return["left","right"].indexOf(e)!==-1}function u6(e,t){return e.direction==="rtl"&&c6(t)?t9[t]:t}const f6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=Ar(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:a,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:y,open:h=!1,PaperProps:A={},SlideProps:w,TransitionComponent:m=n6,transitionDuration:v=s,variant:P="temporary"}=r,x=ce(r.ModalProps,o6),j=ce(r,s6),z=g.useRef(!1);g.useEffect(()=>{z.current=!0},[]);const H=u6(o,i),D=b({},r,{anchor:i,elevation:u,open:h,variant:P},j),S=i6(D),I=f.jsx(l6,b({elevation:P==="temporary"?u:0,square:!0},A,{className:le(S.paper,A.className),ownerState:D,children:l}));if(P==="permanent")return f.jsx(Fb,b({className:le(S.root,S.docked,c),ownerState:D,ref:n},j,{children:I}));const R=f.jsx(m,b({in:h,direction:t9[H],timeout:v,appear:z.current},w,{children:I}));return P==="persistent"?f.jsx(Fb,b({className:le(S.root,S.docked,c),ownerState:D,ref:n},j,{children:R})):f.jsx(a6,b({BackdropProps:b({},a,p,{transitionDuration:v}),className:le(S.root,S.modal,c),open:h,ownerState:D,onClose:y,hideBackdrop:d,ref:n},j,x,{children:R}))}),d6=f6,p6=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v6=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},ER,t);return b({},t,o)},h6=_(Gp,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return b({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${lr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${lr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lr.disabled}, .${lr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),m6=_(Up,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zp})(({theme:e,ownerState:t})=>b({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),n9=g.forwardRef(function(t,n){var r,o,s,i;const a=Re({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:y,slots:h={},type:A="text"}=a,w=ce(a,p6),m=b({},a,{fullWidth:u,inputComponent:d,multiline:p,type:A}),v=v6(a),P={root:{ownerState:m},input:{ownerState:m}},x=y??c?Zn(P,y??c):P,j=(r=(o=h.root)!=null?o:l.Root)!=null?r:h6,z=(s=(i=h.input)!=null?i:l.Input)!=null?s:m6;return f.jsx(Qp,b({slots:{root:j,input:z},componentsProps:x,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:A},w,{classes:v}))});n9.muiName="Input";const r9=n9;function A6(e){return De("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const P6=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],g6=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return Te(o,A6,t)},y6=_("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),b6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:y="none",required:h=!1,size:A="medium",variant:w="outlined"}=r,m=ce(r,P6),v=b({},r,{color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:y,required:h,size:A,variant:w}),P=g6(v),[x,j]=g.useState(()=>{let M=!1;return o&&g.Children.forEach(o,W=>{if(!rc(W,["Input","Select"]))return;const N=rc(W,["Select"])?W.props.input:W;N&&wR(N.props)&&(M=!0)}),M}),[z,H]=g.useState(()=>{let M=!1;return o&&g.Children.forEach(o,W=>{rc(W,["Input","Select"])&&(md(W.props,!0)||md(W.props.inputProps,!0))&&(M=!0)}),M}),[O,D]=g.useState(!1);l&&O&&D(!1);const S=u!==void 0&&!l?u:O;let I;const R=g.useMemo(()=>({adornedStart:x,setAdornedStart:j,color:i,disabled:l,error:c,filled:z,focused:S,fullWidth:d,hiddenLabel:p,size:A,onBlur:()=>{D(!1)},onEmpty:()=>{H(!1)},onFilled:()=>{H(!0)},onFocus:()=>{D(!0)},registerEffect:I,required:h,variant:w}),[x,i,l,c,z,S,d,p,I,h,A,w]);return f.jsx(Yp.Provider,{value:R,children:f.jsx(y6,b({as:a,ownerState:v,className:le(P.root,s),ref:n},m,{children:o}))})}),Ro=b6,x6=Pz({createStyledComponent:_("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})}),Ho=x6;function w6(e){return De("MuiFormControlLabel",e)}const H6=Se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Ul=H6,j6=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],z6=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${te(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Te(i,w6,t)},O6=_("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ul.label}`]:t.label},t.root,t[`labelPlacement${te(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ul.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ul.label}`]:{[`&.${Ul.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),C6=_("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ul.error}`]:{color:(e.vars||e).palette.error.main}})),D6=g.forwardRef(function(t,n){var r,o;const s=Re({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:y,slotProps:h={}}=s,A=ce(s,j6),w=jo(),m=(r=c??l.props.disabled)!=null?r:w==null?void 0:w.disabled,v=y??l.props.required,P={disabled:m,required:v};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof s[D]<"u"&&(P[D]=s[D])});const x=Ws({props:s,muiFormControl:w,states:["error"]}),j=b({},s,{disabled:m,labelPlacement:p,required:v,error:x.error}),z=z6(j),H=(o=h.typography)!=null?o:a.typography;let O=d;return O!=null&&O.type!==Ue&&!u&&(O=f.jsx(Ue,b({component:"span"},H,{className:le(z.label,H==null?void 0:H.className),children:O}))),f.jsxs(O6,b({className:le(z.root,i),ownerState:j,ref:n},A,{children:[g.cloneElement(l,P),v?f.jsxs(Ho,{display:"block",children:[O,f.jsxs(C6,{ownerState:j,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]}):O]}))}),ri=D6;function S6(e){return De("MuiFormGroup",e)}Se("MuiFormGroup",["root","row","error"]);const T6=["className","row"],R6=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},S6,t)},k6=_("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>b({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),E6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,i=ce(r,T6),a=jo(),l=Ws({props:r,muiFormControl:a,states:["error"]}),c=b({},r,{row:s,error:l.error}),u=R6(c);return f.jsx(k6,b({className:le(u.root,o),ownerState:c,ref:n},i))}),M6=E6;function L6(e){return De("MuiFormHelperText",e)}const X6=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Yb=X6;var qb;const N6=["children","className","component","disabled","error","filled","focused","margin","required","variant"],B6=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${te(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return Te(c,L6,t)},V6=_("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Yb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yb.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),I6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,a=ce(r,N6),l=jo(),c=Ws({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=b({},r,{component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=B6(u);return f.jsx(V6,b({as:i,ownerState:u,className:le(d.root,s),ref:n},a,{children:o===" "?qb||(qb=f.jsx("span",{className:"notranslate",children:"​"})):o}))}),Df=I6;function W6(e){return De("MuiFormLabel",e)}const J6=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mc=J6,F6=["children","className","color","component","disabled","error","filled","focused","required"],Y6=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${te(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return Te(l,W6,t)},q6=_("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${mc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mc.error}`]:{color:(e.vars||e).palette.error.main}})),Z6=_("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${mc.error}`]:{color:(e.vars||e).palette.error.main}})),G6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,a=ce(r,F6),l=jo(),c=Ws({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=b({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=Y6(u);return f.jsxs(q6,b({as:i,ownerState:u,className:le(d.root,s),ref:n},a,{children:[o,c.required&&f.jsxs(Z6,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Sf=G6,U6=g.createContext(),Zb=U6;function Q6(e){return De("MuiGrid",e)}const K6=[0,1,2,3,4,5,6,7,8,9,10],_6=["column-reverse","column","row-reverse","row"],$6=["nowrap","wrap-reverse","wrap"],zl=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Gc=Se("MuiGrid",["root","container","item","zeroMinWidth",...K6.map(e=>`spacing-xs-${e}`),..._6.map(e=>`direction-xs-${e}`),...$6.map(e=>`wrap-xs-${e}`),...zl.map(e=>`grid-xs-${e}`),...zl.map(e=>`grid-sm-${e}`),...zl.map(e=>`grid-md-${e}`),...zl.map(e=>`grid-lg-${e}`),...zl.map(e=>`grid-xl-${e}`)]),eM=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ga(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function tM({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=di({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof i=="object"?i[o]:i;if(a==null)return r;const l=`${Math.round(n/a*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${ga(u)})`;c={flexBasis:d,maxWidth:d}}}s=b({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function nM({theme:e,ownerState:t}){const n=di({values:t.direction,breakpoints:e.breakpoints.values});return tr({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Gc.item}`]={maxWidth:"none"}),o})}function o9({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function rM({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=di({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=o9({breakpoints:e.breakpoints.values,values:s})),o=tr({theme:e},s,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{marginTop:`-${ga(u)}`,[`& > .${Gc.item}`]:{paddingTop:ga(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Gc.item}`]:{paddingTop:0}}})}return o}function oM({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=di({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=o9({breakpoints:e.breakpoints.values,values:s})),o=tr({theme:e},s,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{width:`calc(100% + ${ga(u)})`,marginLeft:`-${ga(u)}`,[`& > .${Gc.item}`]:{paddingLeft:ga(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Gc.item}`]:{paddingLeft:0}}})}return o}function sM(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const iM=_("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=sM(i,c,t));const d=[];return c.forEach(p=>{const y=n[p];y&&d.push(t[`grid-${p}-${String(y)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>b({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),nM,rM,oM,tM);function aM(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const lM=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=aM(s,l));const u=[];l.forEach(p=>{const y=e[p];y&&u.push(`grid-${p}-${String(y)}`)});const d={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return Te(d,Q6,t)},cM=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiGrid"}),{breakpoints:o}=Ar(),s=lp(r),{className:i,columns:a,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:y,spacing:h=0,wrap:A="wrap",zeroMinWidth:w=!1}=s,m=ce(s,eM),v=y||h,P=l||h,x=g.useContext(Zb),j=u?a||12:x,z={},H=b({},m);o.keys.forEach(S=>{m[S]!=null&&(z[S]=m[S],delete H[S])});const O=b({},s,{columns:j,container:u,direction:d,item:p,rowSpacing:v,columnSpacing:P,wrap:A,zeroMinWidth:w,spacing:h},z,{breakpoints:o.keys}),D=lM(O);return f.jsx(Zb.Provider,{value:j,children:f.jsx(iM,b({ownerState:O,className:le(D.root,i),as:c,ref:n},H))})}),yo=cM,uM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fm(e){return`scale(${e}, ${e**2})`}const fM={entering:{opacity:1,transform:Fm(1)},entered:{opacity:1,transform:"none"}},Ah=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),s9=g.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:y,style:h,timeout:A="auto",TransitionComponent:w=WP}=t,m=ce(t,uM),v=_s(),P=g.useRef(),x=Ar(),j=g.useRef(null),z=Ht(j,s.ref,n),H=N=>Z=>{if(N){const J=j.current;Z===void 0?N(J):N(J,Z)}},O=H(u),D=H((N,Z)=>{YP(N);const{duration:J,delay:T,easing:B}=qa({style:h,timeout:A,easing:i},{mode:"enter"});let K;A==="auto"?(K=x.transitions.getAutoHeightDuration(N.clientHeight),P.current=K):K=J,N.style.transition=[x.transitions.create("opacity",{duration:K,delay:T}),x.transitions.create("transform",{duration:Ah?K:K*.666,delay:T,easing:B})].join(","),l&&l(N,Z)}),S=H(c),I=H(y),R=H(N=>{const{duration:Z,delay:J,easing:T}=qa({style:h,timeout:A,easing:i},{mode:"exit"});let B;A==="auto"?(B=x.transitions.getAutoHeightDuration(N.clientHeight),P.current=B):B=Z,N.style.transition=[x.transitions.create("opacity",{duration:B,delay:J}),x.transitions.create("transform",{duration:Ah?B:B*.666,delay:Ah?J:J||B*.333,easing:T})].join(","),N.style.opacity=0,N.style.transform=Fm(.75),d&&d(N)}),M=H(p),W=N=>{A==="auto"&&v.start(P.current||0,N),r&&r(j.current,N)};return f.jsx(w,b({appear:o,in:a,nodeRef:j,onEnter:D,onEntered:S,onEntering:O,onExit:R,onExited:M,onExiting:I,addEndListener:W,timeout:A==="auto"?null:A},m,{children:(N,Z)=>g.cloneElement(s,b({style:b({opacity:0,transform:Fm(.75),visibility:N==="exited"&&!a?"hidden":void 0},fM[N],h,s.props.style),ref:z},Z))}))});s9.muiSupportAuto=!0;const Ad=s9;function dM(e,t,n,r,o){const[s,i]=g.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return nr(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&i(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),s}const i9=g.useSyncExternalStore;function pM(e,t,n,r,o){const s=g.useCallback(()=>t,[t]),i=g.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=g.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[s,n,e]);return i9(l,a,i)}function vM(e,t={}){const n=ip(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:a=!1}=gw({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(i9!==void 0?pM:dM)(l,o,s,i,a)}const hM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],mM=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},SR,t);return b({},t,o)},AM=_(Gp,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),b({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${us.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${us.disabled}, .${us.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${us.disabled}:before`]:{borderBottomStyle:"dotted"}})}),PM=_(Up,{name:"MuiInput",slot:"Input",overridesResolver:Zp})({}),a9=g.forwardRef(function(t,n){var r,o,s,i;const a=Re({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:y=!1,slotProps:h,slots:A={},type:w="text"}=a,m=ce(a,hM),v=mM(a),x={root:{ownerState:{disableUnderline:l}}},j=h??u?Zn(h??u,x):x,z=(r=(o=A.root)!=null?o:c.Root)!=null?r:AM,H=(s=(i=A.input)!=null?i:c.Input)!=null?s:PM;return f.jsx(Qp,b({slots:{root:z,input:H},slotProps:j,fullWidth:d,inputComponent:p,multiline:y,ref:n,type:w},m,{classes:v}))});a9.muiName="Input";const l9=a9;function gM(e){return De("MuiInputAdornment",e)}const yM=Se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Gb=yM;var Ub;const bM=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xM=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},wM=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${te(o)}`,i,r&&"hiddenLabel",s&&`size${te(s)}`]};return Te(a,gM,t)},HM=_("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xM})(({theme:e,ownerState:t})=>b({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Gb.positionStart}&:not(.${Gb.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jM=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=r,d=ce(r,bM),p=jo()||{};let y=u;u&&p.variant,p&&!y&&(y=p.variant);const h=b({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:y}),A=wM(h);return f.jsx(Yp.Provider,{value:null,children:f.jsx(HM,b({as:i,ownerState:h,className:le(A.root,s),ref:n},d,{children:typeof o=="string"&&!l?f.jsx(Ue,{color:"text.secondary",children:o}):f.jsxs(g.Fragment,{children:[c==="start"?Ub||(Ub=f.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),rg=jM;function zM(e){return De("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const OM=["disableAnimation","margin","shrink","variant","className"],CM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${te(r)}`,i],asterisk:[a&&"asterisk"]},c=Te(l,zM,t);return b({},t,c)},DM=_(Sf,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>b({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&b({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&b({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&b({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),SM=g.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,a=ce(r,OM),l=jo();let c=s;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Ws({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=b({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=CM(d);return f.jsx(DM,b({"data-shrink":c,ownerState:d,ref:n,className:le(p.root,i)},a,{classes:p}))}),Ym=SM;function TM(e){return De("MuiLink",e)}const RM=Se("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),kM=RM,c9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},EM=e=>c9[e]||e,MM=({theme:e,ownerState:t})=>{const n=EM(t.color),r=La(e,`palette.${n}`,!1)||t.color,o=La(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ze(r,.4)},LM=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],XM=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${te(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Te(s,TM,t)},NM=_(Ue,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${te(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>b({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&b({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:MM({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kM.focusVisible}`]:{outline:"auto"}})),BM=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=r,y=ce(r,LM),{isFocusVisibleRef:h,onBlur:A,onFocus:w,ref:m}=pp(),[v,P]=g.useState(!1),x=Ht(n,m),j=D=>{A(D),h.current===!1&&P(!1),a&&a(D)},z=D=>{w(D),h.current===!0&&P(!0),l&&l(D)},H=b({},r,{color:s,component:i,focusVisible:v,underline:u,variant:d}),O=XM(H);return f.jsx(NM,b({color:s,className:le(O.root,o),classes:c,component:i,onBlur:j,onFocus:z,ref:x,ownerState:H,variant:d,sx:[...Object.keys(c9).includes(s)?[]:[{color:s}],...Array.isArray(p)?p:[p]]},y))}),Ql=BM,VM=g.createContext({}),Qr=VM;function IM(e){return De("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const WM=["children","className","component","dense","disablePadding","subheader"],JM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},IM,t)},FM=_("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),YM=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=ce(r,WM),d=g.useMemo(()=>({dense:a}),[a]),p=b({},r,{component:i,dense:a,disablePadding:l}),y=JM(p);return f.jsx(Qr.Provider,{value:d,children:f.jsxs(FM,b({as:i,className:le(y.root,s),ref:n,ownerState:p},u,{children:[c,o]}))})}),qm=YM;function qM(e){return De("MuiListItem",e)}const ZM=Se("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Gi=ZM;function GM(e){return De("MuiListItemButton",e)}const UM=Se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ui=UM,QM=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],KM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_M=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,c=Te({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},GM,n);return b({},n,c)},$M=_(Xs,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:KM})(({theme:e,ownerState:t})=>b({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ui.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ui.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ui.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ui.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ui.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),eL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:y}=r,h=ce(r,QM),A=g.useContext(Qr),w=g.useMemo(()=>({dense:l||A.dense||!1,alignItems:o,disableGutters:c}),[o,A.dense,l,c]),m=g.useRef(null);nr(()=>{s&&m.current&&m.current.focus()},[s]);const v=b({},r,{alignItems:o,dense:w.dense,disableGutters:c,divider:u,selected:p}),P=_M(v),x=Ht(m,n);return f.jsx(Qr.Provider,{value:w,children:f.jsx($M,b({ref:x,href:h.href||h.to,component:(h.href||h.to)&&i==="div"?"button":i,focusVisibleClassName:le(P.focusVisible,d),ownerState:v,className:le(P.root,y)},h,{classes:P,children:a}))})}),u9=eL;function tL(e){return De("MuiListItemSecondaryAction",e)}Se("MuiListItemSecondaryAction",["root","disableGutters"]);const nL=["className"],rL=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},tL,n)},oL=_("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>b({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),f9=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ce(r,nL),i=g.useContext(Qr),a=b({},r,{disableGutters:i.disableGutters}),l=rL(a);return f.jsx(oL,b({className:le(l.root,o),ownerState:a,ref:n},s))});f9.muiName="ListItemSecondaryAction";const sL=f9,iL=["className"],aL=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},cL=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return Te({root:["root",o&&"dense",!i&&"gutters",!a&&"padding",l&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},qM,r)},uL=_("div",{name:"MuiListItem",slot:"Root",overridesResolver:lL})(({theme:e,ownerState:t})=>b({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&b({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ui.root}`]:{paddingRight:48}},{[`&.${Gi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),fL=_("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:i=!1,children:a,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:y}={},dense:h=!1,disabled:A=!1,disableGutters:w=!1,disablePadding:m=!1,divider:v=!1,focusVisibleClassName:P,secondaryAction:x,selected:j=!1,slotProps:z={},slots:H={}}=r,O=ce(r.ContainerProps,iL),D=ce(r,aL),S=g.useContext(Qr),I=g.useMemo(()=>({dense:h||S.dense||!1,alignItems:o,disableGutters:w}),[o,S.dense,h,w]),R=g.useRef(null);nr(()=>{s&&R.current&&R.current.focus()},[s]);const M=g.Children.toArray(a),W=M.length&&rc(M[M.length-1],["ListItemSecondaryAction"]),N=b({},r,{alignItems:o,autoFocus:s,button:i,dense:I.dense,disabled:A,disableGutters:w,disablePadding:m,divider:v,hasSecondaryAction:W,selected:j}),Z=cL(N),J=Ht(R,n),T=H.root||u.Root||uL,B=z.root||d.root||{},K=b({className:le(Z.root,B.className,l),disabled:A},D);let fe=c||"li";return i&&(K.component=c||"div",K.focusVisibleClassName=le(Gi.focusVisible,P),fe=Xs),W?(fe=!K.component&&!c?"div":fe,p==="li"&&(fe==="li"?fe="div":K.component==="li"&&(K.component="div")),f.jsx(Qr.Provider,{value:I,children:f.jsxs(fL,b({as:p,className:le(Z.container,y),ref:J,ownerState:N},O,{children:[f.jsx(T,b({},B,!ji(T)&&{as:fe,ownerState:b({},N,B.ownerState)},K,{children:M})),M.pop()]}))})):f.jsx(Qr.Provider,{value:I,children:f.jsxs(T,b({},B,{as:fe,ref:J},!ji(T)&&{ownerState:b({},N,B.ownerState)},K,{children:[M,x&&f.jsx(sL,{children:x})]}))})}),Ol=dL;function pL(e){return De("MuiListItemIcon",e)}const vL=Se("MuiListItemIcon",["root","alignItemsFlexStart"]),Qb=vL,hL=["className"],mL=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pL,n)},AL=_("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>b({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),PL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ce(r,hL),i=g.useContext(Qr),a=b({},r,{alignItems:i.alignItems}),l=mL(a);return f.jsx(AL,b({className:le(l.root,o),ownerState:a,ref:n},s))}),gL=PL;function yL(e){return De("MuiListItemText",e)}const bL=Se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Pd=bL,xL=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],wL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Te({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},yL,t)},HL=_("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pd.primary}`]:t.primary},{[`& .${Pd.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>b({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),jL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,p=ce(r,xL),{dense:y}=g.useContext(Qr);let h=l??o,A=u;const w=b({},r,{disableTypography:i,inset:a,primary:!!h,secondary:!!A,dense:y}),m=wL(w);return h!=null&&h.type!==Ue&&!i&&(h=f.jsx(Ue,b({variant:y?"body2":"body1",className:m.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:h}))),A!=null&&A.type!==Ue&&!i&&(A=f.jsx(Ue,b({variant:"body2",className:m.secondary,color:"text.secondary",display:"block"},d,{children:A}))),f.jsxs(HL,b({className:le(m.root,s),ownerState:w,ref:n},p,{children:[h,A]}))}),ca=jL,zL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ph(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Kb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function d9(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Cl(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!d9(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const OL=g.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,p=ce(t,zL),y=g.useRef(null),h=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nr(()=>{o&&y.current.focus()},[o]),g.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,x)=>{const j=!y.current.style.width;if(P.clientHeight{const x=y.current,j=P.key,z=an(x).activeElement;if(j==="ArrowDown")P.preventDefault(),Cl(x,z,c,l,Ph);else if(j==="ArrowUp")P.preventDefault(),Cl(x,z,c,l,Kb);else if(j==="Home")P.preventDefault(),Cl(x,null,c,l,Ph);else if(j==="End")P.preventDefault(),Cl(x,null,c,l,Kb);else if(j.length===1){const H=h.current,O=j.toLowerCase(),D=performance.now();H.keys.length>0&&(D-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&O!==H.keys[0]&&(H.repeating=!1)),H.lastTime=D,H.keys.push(O);const S=z&&!H.repeating&&d9(z,H);H.previousKeyMatched&&(S||Cl(x,z,!1,l,Ph,H))?P.preventDefault():H.previousKeyMatched=!1}u&&u(P)},w=Ht(y,n);let m=-1;g.Children.forEach(i,(P,x)=>{if(!g.isValidElement(P)){m===x&&(m+=1,m>=i.length&&(m=-1));return}P.props.disabled||(d==="selectedMenu"&&P.props.selected||m===-1)&&(m=x),m===x&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const v=g.Children.map(i,(P,x)=>{if(x===m){const j={};return s&&(j.autoFocus=!0),P.props.tabIndex===void 0&&d==="selectedMenu"&&(j.tabIndex=0),g.cloneElement(P,j)}return P});return f.jsx(qm,b({role:"menu",ref:w,className:a,onKeyDown:A,tabIndex:o?0:-1},p,{children:v}))}),CL=OL;function DL(e){return De("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const SL=["onEntering"],TL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],RL=["slotProps"];function _b(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $b(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ex(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gh(e){return typeof e=="function"?e():e}const kL=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},DL,t)},EL=_(ng,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),p9=_(vr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ML=g.forwardRef(function(t,n){var r,o,s;const i=Re({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:y,container:h,elevation:A=8,marginThreshold:w=16,open:m,PaperProps:v={},slots:P,slotProps:x,transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:z=Ad,transitionDuration:H="auto",TransitionProps:{onEntering:O}={},disableScrollLock:D=!1}=i,S=ce(i.TransitionProps,SL),I=ce(i,TL),R=(r=x==null?void 0:x.paper)!=null?r:v,M=g.useRef(),W=Ht(M,R.ref),N=b({},i,{anchorOrigin:c,anchorReference:d,elevation:A,marginThreshold:w,externalPaperSlotProps:R,transformOrigin:j,TransitionComponent:z,transitionDuration:H,TransitionProps:S}),Z=kL(N),J=g.useCallback(()=>{if(d==="anchorPosition")return u;const be=gh(l),Ee=(be&&be.nodeType===1?be:an(M.current).body).getBoundingClientRect();return{top:Ee.top+_b(Ee,c.vertical),left:Ee.left+$b(Ee,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),T=g.useCallback(be=>({vertical:_b(be,j.vertical),horizontal:$b(be,j.horizontal)}),[j.horizontal,j.vertical]),B=g.useCallback(be=>{const Ie={width:be.offsetWidth,height:be.offsetHeight},Ee=T(Ie);if(d==="none")return{top:null,left:null,transformOrigin:ex(Ee)};const ge=J();let nt=ge.top-Ee.vertical,C=ge.left-Ee.horizontal;const V=nt+Ie.height,Y=C+Ie.width,F=bo(gh(l)),Q=F.innerHeight-w,U=F.innerWidth-w;if(w!==null&&ntQ){const oe=V-Q;nt-=oe,Ee.vertical+=oe}if(w!==null&&CU){const oe=Y-U;C-=oe,Ee.horizontal+=oe}return{top:`${Math.round(nt)}px`,left:`${Math.round(C)}px`,transformOrigin:ex(Ee)}},[l,d,J,T,w]),[K,fe]=g.useState(m),E=g.useCallback(()=>{const be=M.current;if(!be)return;const Ie=B(be);Ie.top!==null&&(be.style.top=Ie.top),Ie.left!==null&&(be.style.left=Ie.left),be.style.transformOrigin=Ie.transformOrigin,fe(!0)},[B]);g.useEffect(()=>(D&&window.addEventListener("scroll",E),()=>window.removeEventListener("scroll",E)),[l,D,E]);const ee=(be,Ie)=>{O&&O(be,Ie),E()},G=()=>{fe(!1)};g.useEffect(()=>{m&&E()}),g.useImperativeHandle(a,()=>m?{updatePosition:()=>{E()}}:null,[m,E]),g.useEffect(()=>{if(!m)return;const be=fp(()=>{E()}),Ie=bo(l);return Ie.addEventListener("resize",be),()=>{be.clear(),Ie.removeEventListener("resize",be)}},[l,m,E]);let ie=H;H==="auto"&&!z.muiSupportAuto&&(ie=void 0);const re=h||(l?an(gh(l)).body:void 0),me=(o=P==null?void 0:P.root)!=null?o:EL,ue=(s=P==null?void 0:P.paper)!=null?s:p9,se=Ls({elementType:ue,externalSlotProps:b({},R,{style:K?R.style:b({},R.style,{opacity:0})}),additionalProps:{elevation:A,ref:W},ownerState:N,className:le(Z.paper,R==null?void 0:R.className)}),de=Ls({elementType:me,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:m},ownerState:N,className:le(Z.root,y)}),{slotProps:He}=de,we=ce(de,RL);return f.jsx(me,b({},we,!ji(me)&&{slotProps:He,disableScrollLock:D},{children:f.jsx(z,b({appear:!0,in:m,onEntering:ee,onExited:G,timeout:ie},S,{children:f.jsx(ue,b({},se,{children:p}))}))}))}),LL=ML;function XL(e){return De("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const NL=["onEntering"],BL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],VL={vertical:"top",horizontal:"right"},IL={vertical:"top",horizontal:"left"},WL=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},XL,t)},JL=_(LL,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FL=_(p9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),YL=_(CL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qL=g.forwardRef(function(t,n){var r,o;const s=Re({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:y={},PopoverClasses:h,transitionDuration:A="auto",TransitionProps:{onEntering:w}={},variant:m="selectedMenu",slots:v={},slotProps:P={}}=s,x=ce(s.TransitionProps,NL),j=ce(s,BL),z=Ar(),H=z.direction==="rtl",O=b({},s,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:y,transitionDuration:A,TransitionProps:x,variant:m}),D=WL(O),S=i&&!c&&p,I=g.useRef(null),R=(B,K)=>{I.current&&I.current.adjustStyleForScrollbar(B,z),w&&w(B,K)},M=B=>{B.key==="Tab"&&(B.preventDefault(),d&&d(B,"tabKeyDown"))};let W=-1;g.Children.map(a,(B,K)=>{g.isValidElement(B)&&(B.props.disabled||(m==="selectedMenu"&&B.props.selected||W===-1)&&(W=K))});const N=(r=v.paper)!=null?r:FL,Z=(o=P.paper)!=null?o:y,J=Ls({elementType:v.root,externalSlotProps:P.root,ownerState:O,className:[D.root,l]}),T=Ls({elementType:N,externalSlotProps:Z,ownerState:O,className:D.paper});return f.jsx(JL,b({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:H?"right":"left"},transformOrigin:H?VL:IL,slots:{paper:N,root:v.root},slotProps:{root:J,paper:T},open:p,ref:n,transitionDuration:A,TransitionProps:b({onEntering:R},x),ownerState:O},j,{classes:h,children:f.jsx(YL,b({onKeyDown:M,actions:I,autoFocus:i&&(W===-1||c),autoFocusItem:S,variant:m},u,{className:le(D.list,u.className),children:a}))}))}),Uc=qL;function ZL(e){return De("MuiMenuItem",e)}const GL=Se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Dl=GL,UL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],QL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},KL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,l=Te({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},ZL,i);return b({},i,l)},_L=_(Xs,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:QL})(({theme:e,ownerState:t})=>b({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Dl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jb.inset}`]:{marginLeft:52},[`& .${Pd.root}`]:{marginTop:0,marginBottom:0},[`& .${Pd.inset}`]:{paddingLeft:36},[`& .${Qb.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&b({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qb.root} svg`]:{fontSize:"1.25rem"}}))),$L=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=r,y=ce(r,UL),h=g.useContext(Qr),A=g.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),w=g.useRef(null);nr(()=>{o&&w.current&&w.current.focus()},[o]);const m=b({},r,{dense:A.dense,divider:a,disableGutters:l}),v=KL(r),P=Ht(w,n);let x;return r.disabled||(x=d!==void 0?d:-1),f.jsx(Qr.Provider,{value:A,children:f.jsx(_L,b({ref:P,role:u,tabIndex:x,component:s,focusVisibleClassName:le(v.focusVisible,c),className:le(v.root,p)},y,{ownerState:m,classes:v}))})}),vo=$L;function eX(e){return De("MuiNativeSelect",e)}const tX=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),og=tX,nX=["className","disabled","error","IconComponent","inputRef","variant"],rX=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"]};return Te(a,eX,t)},v9=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${og.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),oX=_("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${og.multiple}`]:t.multiple}]}})(v9),h9=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${og.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),sX=_("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(h9),iX=g.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard"}=t,c=ce(t,nX),u=b({},t,{disabled:o,variant:l,error:s}),d=rX(u);return f.jsxs(g.Fragment,{children:[f.jsx(oX,b({ownerState:u,className:le(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(sX,{as:i,ownerState:u,className:d.icon})]})}),aX=iX;var tx;const lX=["children","classes","className","label","notched"],cX=_("fieldset",{shouldForwardProp:pn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),uX=_("legend",{shouldForwardProp:pn})(({ownerState:e,theme:t})=>b({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&b({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function fX(e){const{className:t,label:n,notched:r}=e,o=ce(e,lX),s=n!=null&&n!=="",i=b({},e,{notched:r,withLabel:s});return f.jsx(cX,b({"aria-hidden":!0,className:t,ownerState:i},o,{children:f.jsx(uX,{ownerState:i,children:s?f.jsx("span",{children:n}):tx||(tx=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const dX=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pX=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RR,t);return b({},t,r)},vX=_(Gp,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oo.disabled} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),hX=_(fX,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mX=_(Up,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zp})(({theme:e,ownerState:t})=>b({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),m9=g.forwardRef(function(t,n){var r,o,s,i,a;const l=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:y=!1,notched:h,slots:A={},type:w="text"}=l,m=ce(l,dX),v=pX(l),P=jo(),x=Ws({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),j=b({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:P,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:y,size:x.size,type:w}),z=(r=(o=A.root)!=null?o:c.Root)!=null?r:vX,H=(s=(i=A.input)!=null?i:c.Input)!=null?s:mX;return f.jsx(Qp,b({slots:{root:z,input:H},renderSuffix:O=>f.jsx(hX,{ownerState:j,className:v.notchedOutline,label:p!=null&&p!==""&&x.required?a||(a=f.jsxs(g.Fragment,{children:[p," ","*"]})):p,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:u,inputComponent:d,multiline:y,ref:n,type:w},m,{classes:b({},v,{notchedOutline:null})}))});m9.muiName="Input";const A9=m9,AX=yn(f.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),PX=yn(f.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),gX=yn(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yX=yn(f.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),bX=_("span",{shouldForwardProp:pn})({position:"relative",display:"flex"}),xX=_(gX)({transform:"scale(1)"}),wX=_(yX)(({theme:e,ownerState:t})=>b({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function P9(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=b({},e,{checked:t});return f.jsxs(bX,{className:n.root,ownerState:o,children:[f.jsx(xX,{fontSize:r,className:n.background,ownerState:o}),f.jsx(wX,{fontSize:r,className:n.dot,ownerState:o})]})}const HX=g.createContext(void 0),g9=HX;function jX(){return g.useContext(g9)}function zX(e){return De("MuiRadio",e)}const nx=Se("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),OX=["checked","checkedIcon","color","icon","name","onChange","size","className"],CX=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${te(n)}`,r!=="medium"&&`size${te(r)}`]};return b({},t,Te(o,zX,t))},DX=_(eg,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${te(n.size)}`],t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ze(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${nx.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${nx.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function SX(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const rx=f.jsx(P9,{checked:!0}),ox=f.jsx(P9,{}),TX=g.forwardRef(function(t,n){var r,o;const s=Re({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=rx,color:l="primary",icon:c=ox,name:u,onChange:d,size:p="medium",className:y}=s,h=ce(s,OX),A=b({},s,{color:l,size:p}),w=CX(A),m=jX();let v=i;const P=If(d,m&&m.onChange);let x=u;return m&&(typeof v>"u"&&(v=SX(m.value,s.value)),typeof x>"u"&&(x=m.name)),f.jsx(DX,b({type:"radio",icon:g.cloneElement(c,{fontSize:(r=ox.props.fontSize)!=null?r:p}),checkedIcon:g.cloneElement(a,{fontSize:(o=rx.props.fontSize)!=null?o:p}),ownerState:A,classes:w,name:x,checked:v,onChange:P,ref:n,className:le(w.root,y)},h))}),Zm=TX,RX=["actions","children","defaultValue","name","onChange","value"],kX=g.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:s,name:i,onChange:a,value:l}=t,c=ce(t,RX),u=g.useRef(null),[d,p]=Vo({controlled:l,default:s,name:"RadioGroup"});g.useImperativeHandle(r,()=>({focus:()=>{let w=u.current.querySelector("input:not(:disabled):checked");w||(w=u.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const y=Ht(n,u),h=xo(i),A=g.useMemo(()=>({name:h,onChange(w){p(w.target.value),a&&a(w,w.target.value)},value:d}),[h,a,p,d]);return f.jsx(g9.Provider,{value:A,children:f.jsx(M6,b({role:"radiogroup",ref:y},c,{children:o}))})}),Gm=kX;function EX(e){return De("MuiSelect",e)}const Sl=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sx;const MX=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],LX=_("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sl.select}`]:t.select},{[`&.${Sl.select}`]:t[n.variant]},{[`&.${Sl.error}`]:t.error},{[`&.${Sl.multiple}`]:t.multiple}]}})(v9,{[`&.${Sl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XX=_("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(h9),NX=_("input",{shouldForwardProp:e=>Fz(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ix(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function BX(e){return e==null||typeof e=="string"&&!e.trim()}const VX=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(a,EX,t)},IX=g.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:y,error:h=!1,IconComponent:A,inputRef:w,labelId:m,MenuProps:v={},multiple:P,name:x,onBlur:j,onChange:z,onClose:H,onFocus:O,onOpen:D,open:S,readOnly:I,renderValue:R,SelectDisplayProps:M={},tabIndex:W,value:N,variant:Z="standard"}=t,J=ce(t,MX),[T,B]=Vo({controlled:N,default:d,name:"Select"}),[K,fe]=Vo({controlled:S,default:u,name:"Select"}),E=g.useRef(null),ee=g.useRef(null),[G,ie]=g.useState(null),{current:re}=g.useRef(S!=null),[me,ue]=g.useState(),se=Ht(n,w),de=g.useCallback(je=>{ee.current=je,je&&ie(je)},[]),He=G==null?void 0:G.parentNode;g.useImperativeHandle(se,()=>({focus:()=>{ee.current.focus()},node:E.current,value:T}),[T]),g.useEffect(()=>{u&&K&&G&&!re&&(ue(a?null:He.clientWidth),ee.current.focus())},[G,a]),g.useEffect(()=>{i&&ee.current.focus()},[i]),g.useEffect(()=>{if(!m)return;const je=an(ee.current).getElementById(m);if(je){const Ge=()=>{getSelection().isCollapsed&&ee.current.focus()};return je.addEventListener("click",Ge),()=>{je.removeEventListener("click",Ge)}}},[m]);const we=(je,Ge)=>{je?D&&D(Ge):H&&H(Ge),re||(ue(a?null:He.clientWidth),fe(je))},be=je=>{je.button===0&&(je.preventDefault(),ee.current.focus(),we(!0,je))},Ie=je=>{we(!1,je)},Ee=g.Children.toArray(l),ge=je=>{const Ge=Ee.find(X=>X.props.value===je.target.value);Ge!==void 0&&(B(Ge.props.value),z&&z(je,Ge))},nt=je=>Ge=>{let X;if(Ge.currentTarget.hasAttribute("tabindex")){if(P){X=Array.isArray(T)?T.slice():[];const L=T.indexOf(je.props.value);L===-1?X.push(je.props.value):X.splice(L,1)}else X=je.props.value;if(je.props.onClick&&je.props.onClick(Ge),T!==X&&(B(X),z)){const L=Ge.nativeEvent||Ge,ae=new L.constructor(L.type,L);Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:x}}),z(ae,je)}P||we(!1,Ge)}},C=je=>{I||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),we(!0,je))},V=G!==null&&K,Y=je=>{!V&&j&&(Object.defineProperty(je,"target",{writable:!0,value:{value:T,name:x}}),j(je))};delete J["aria-invalid"];let F,Q;const U=[];let oe=!1;(md({value:T})||y)&&(R?F=R(T):oe=!0);const ke=Ee.map(je=>{if(!g.isValidElement(je))return null;let Ge;if(P){if(!Array.isArray(T))throw new Error(ks(2));Ge=T.some(X=>ix(X,je.props.value)),Ge&&oe&&U.push(je.props.children)}else Ge=ix(T,je.props.value),Ge&&oe&&(Q=je.props.children);return g.cloneElement(je,{"aria-selected":Ge?"true":"false",onClick:nt(je),onKeyUp:X=>{X.key===" "&&X.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(X)},role:"option",selected:Ge,value:void 0,"data-value":je.props.value})});oe&&(P?U.length===0?F=null:F=U.reduce((je,Ge,X)=>(je.push(Ge),X{const{classes:t}=e;return t},sg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pn(e)&&e!=="variant",slot:"Root"},qX=_(l9,sg)(""),ZX=_(A9,sg)(""),GX=_(r9,sg)(""),y9=g.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=q2,id:d,input:p,inputProps:y,label:h,labelId:A,MenuProps:w,multiple:m=!1,native:v=!1,onClose:P,onOpen:x,open:j,renderValue:z,SelectDisplayProps:H,variant:O="outlined"}=r,D=ce(r,JX),S=v?aX:WX,I=jo(),R=Ws({props:r,muiFormControl:I,states:["variant","error"]}),M=R.variant||O,W=b({},r,{variant:M,classes:i}),N=YX(W),Z=ce(N,FX),J=p||{standard:f.jsx(qX,{ownerState:W}),outlined:f.jsx(ZX,{label:h,ownerState:W}),filled:f.jsx(GX,{ownerState:W})}[M],T=Ht(n,J.ref);return f.jsx(g.Fragment,{children:g.cloneElement(J,b({inputComponent:S,inputProps:b({children:s,error:R.error,IconComponent:u,variant:M,type:void 0,multiple:m},v?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:A,MenuProps:w,onClose:P,onOpen:x,open:j,renderValue:z,SelectDisplayProps:b({id:d},H)},y,{classes:y?Zn(Z,y.classes):Z},p?p.props.inputProps:{})},(m&&v||c)&&M==="outlined"?{notched:!0}:{},{ref:T,className:le(J.props.className,a,N.root)},!p&&{variant:M},D))})});y9.muiName="Select";const gd=y9;function UX(e){return De("MuiSnackbarContent",e)}Se("MuiSnackbarContent",["root","message","action"]);const QX=["action","className","message","role"],KX=e=>{const{classes:t}=e;return Te({root:["root"],action:["action"],message:["message"]},UX,t)},_X=_(vr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Vj(e.palette.background.default,t);return b({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),$X=_("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),eN=_("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),tN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:i,role:a="alert"}=r,l=ce(r,QX),c=r,u=KX(c);return f.jsxs(_X,b({role:a,square:!0,elevation:6,className:le(u.root,s),ownerState:c,ref:n},l,{children:[f.jsx($X,{className:u.message,ownerState:c,children:i}),o?f.jsx(eN,{className:u.action,ownerState:c,children:o}):null]}))}),nN=tN;function rN(e){return De("MuiSnackbar",e)}Se("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const oN=["onEnter","onExited"],sN=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],iN=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${te(n.vertical)}${te(n.horizontal)}`]};return Te(r,rN,t)},ax=_("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${te(n.anchorOrigin.vertical)}${te(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return b({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:b({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),aN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=Ar(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:y,disableWindowBlurListener:h=!1,message:A,open:w,TransitionComponent:m=Ad,transitionDuration:v=s,TransitionProps:{onEnter:P,onExited:x}={}}=r,j=ce(r.TransitionProps,oN),z=ce(r,sN),H=b({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:m,transitionDuration:v}),O=iN(H),{getRootProps:D,onClickAway:S}=_T(b({},H)),[I,R]=g.useState(!0),M=Ls({elementType:ax,getSlotProps:D,externalForwardedProps:z,ownerState:H,additionalProps:{ref:n},className:[O.root,d]}),W=Z=>{R(!0),x&&x(Z)},N=(Z,J)=>{R(!1),P&&P(Z,J)};return!w&&I?null:f.jsx(R2,b({onClickAway:S},p,{children:f.jsx(ax,b({},M,{children:f.jsx(m,b({appear:!0,in:w,timeout:v,direction:a==="top"?"down":"up",onEnter:N,onExited:W},j,{children:u||f.jsx(nN,b({message:A,action:i},y))}))}))}))}),lN=aN;function cN(e){return De("MuiTooltip",e)}const uN=Se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bs=uN,fN=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function dN(e){return Math.round(e*1e5)/1e5}const pN=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${te(s.split("-")[0])}`],arrow:["arrow"]};return Te(i,cN,t)},vN=_(Fp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>b({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${bs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${bs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${bs.arrow}`]:b({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${bs.arrow}`]:b({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),hN=_("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${te(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>b({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ze(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${dN(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bs.popper}[data-popper-placement*="left"] &`]:b({transformOrigin:"right center"},t.isRtl?b({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):b({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${bs.popper}[data-popper-placement*="right"] &`]:b({transformOrigin:"left center"},t.isRtl?b({marginRight:"14px"},t.touch&&{marginRight:"24px"}):b({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${bs.popper}[data-popper-placement*="top"] &`]:b({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${bs.popper}[data-popper-placement*="bottom"] &`]:b({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mN=_("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ze(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ef=!1;const lx=new cu;let Tl={x:0,y:0};function tf(e,t){return n=>{t&&t(n),e(n)}}const AN=g.forwardRef(function(t,n){var r,o,s,i,a,l,c,u,d,p,y,h,A,w,m,v,P,x,j;const z=Re({props:t,name:"MuiTooltip"}),{arrow:H=!1,children:O,components:D={},componentsProps:S={},describeChild:I=!1,disableFocusListener:R=!1,disableHoverListener:M=!1,disableInteractive:W=!1,disableTouchListener:N=!1,enterDelay:Z=100,enterNextDelay:J=0,enterTouchDelay:T=700,followCursor:B=!1,id:K,leaveDelay:fe=0,leaveTouchDelay:E=1500,onClose:ee,onOpen:G,open:ie,placement:re="bottom",PopperComponent:me,PopperProps:ue={},slotProps:se={},slots:de={},title:He,TransitionComponent:we=Ad,TransitionProps:be}=z,Ie=ce(z,fN),Ee=g.isValidElement(O)?O:f.jsx("span",{children:O}),ge=Ar(),nt=ge.direction==="rtl",[C,V]=g.useState(),[Y,F]=g.useState(null),Q=g.useRef(!1),U=W||B,oe=_s(),ke=_s(),Je=_s(),tt=_s(),[Xe,he]=Vo({controlled:ie,default:!1,name:"Tooltip",state:"open"});let Qe=Xe;const mt=xo(K),jt=g.useRef(),je=On(()=>{jt.current!==void 0&&(document.body.style.WebkitUserSelect=jt.current,jt.current=void 0),tt.clear()});g.useEffect(()=>je,[je]);const Ge=Ye=>{lx.clear(),ef=!0,he(!0),G&&!Qe&&G(Ye)},X=On(Ye=>{lx.start(800+fe,()=>{ef=!1}),he(!1),ee&&Qe&&ee(Ye),oe.start(ge.transitions.duration.shortest,()=>{Q.current=!1})}),L=Ye=>{Q.current&&Ye.type!=="touchstart"||(C&&C.removeAttribute("title"),ke.clear(),Je.clear(),Z||ef&&J?ke.start(ef?J:Z,()=>{Ge(Ye)}):Ge(Ye))},ae=Ye=>{ke.clear(),Je.start(fe,()=>{X(Ye)})},{isFocusVisibleRef:Ae,onBlur:ve,onFocus:xe,ref:Me}=pp(),[,Ne]=g.useState(!1),Le=Ye=>{ve(Ye),Ae.current===!1&&(Ne(!1),ae(Ye))},qe=Ye=>{C||V(Ye.currentTarget),xe(Ye),Ae.current===!0&&(Ne(!0),L(Ye))},ft=Ye=>{Q.current=!0;const bn=Ee.props;bn.onTouchStart&&bn.onTouchStart(Ye)},Nt=L,Ot=ae,hn=Ye=>{ft(Ye),Je.clear(),oe.clear(),je(),jt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",tt.start(T,()=>{document.body.style.WebkitUserSelect=jt.current,L(Ye)})},Ut=Ye=>{Ee.props.onTouchEnd&&Ee.props.onTouchEnd(Ye),je(),Je.start(E,()=>{X(Ye)})};g.useEffect(()=>{if(!Qe)return;function Ye(bn){(bn.key==="Escape"||bn.key==="Esc")&&X(bn)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[X,Qe]);const Ct=Ht(Ee.ref,Me,V,n);!He&&He!==0&&(Qe=!1);const bt=g.useRef(),tn=Ye=>{const bn=Ee.props;bn.onMouseMove&&bn.onMouseMove(Ye),Tl={x:Ye.clientX,y:Ye.clientY},bt.current&&bt.current.update()},Vn={},Ys=typeof He=="string";I?(Vn.title=!Qe&&Ys&&!M?He:null,Vn["aria-describedby"]=Qe?mt:null):(Vn["aria-label"]=Ys?He:null,Vn["aria-labelledby"]=Qe&&!Ys?mt:null);const Dn=b({},Vn,Ie,Ee.props,{className:le(Ie.className,Ee.props.className),onTouchStart:ft,ref:Ct},B?{onMouseMove:tn}:{}),Co={};N||(Dn.onTouchStart=hn,Dn.onTouchEnd=Ut),M||(Dn.onMouseOver=tf(Nt,Dn.onMouseOver),Dn.onMouseLeave=tf(Ot,Dn.onMouseLeave),U||(Co.onMouseOver=Nt,Co.onMouseLeave=Ot)),R||(Dn.onFocus=tf(qe,Dn.onFocus),Dn.onBlur=tf(Le,Dn.onBlur),U||(Co.onFocus=qe,Co.onBlur=Le));const Mi=g.useMemo(()=>{var Ye;let bn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(Ye=ue.popperOptions)!=null&&Ye.modifiers&&(bn=bn.concat(ue.popperOptions.modifiers)),b({},ue.popperOptions,{modifiers:bn})},[Y,ue]),Lr=b({},z,{isRtl:nt,arrow:H,disableInteractive:U,placement:re,PopperComponentProp:me,touch:Q.current}),Xr=pN(Lr),Do=(r=(o=de.popper)!=null?o:D.Popper)!=null?r:vN,ne=(s=(i=(a=de.transition)!=null?a:D.Transition)!=null?i:we)!=null?s:Ad,q=(l=(c=de.tooltip)!=null?c:D.Tooltip)!=null?l:hN,Pe=(u=(d=de.arrow)!=null?d:D.Arrow)!=null?u:mN,Be=Zl(Do,b({},ue,(p=se.popper)!=null?p:S.popper,{className:le(Xr.popper,ue==null?void 0:ue.className,(y=(h=se.popper)!=null?h:S.popper)==null?void 0:y.className)}),Lr),pt=Zl(ne,b({},be,(A=se.transition)!=null?A:S.transition),Lr),Bt=Zl(q,b({},(w=se.tooltip)!=null?w:S.tooltip,{className:le(Xr.tooltip,(m=(v=se.tooltip)!=null?v:S.tooltip)==null?void 0:m.className)}),Lr),qt=Zl(Pe,b({},(P=se.arrow)!=null?P:S.arrow,{className:le(Xr.arrow,(x=(j=se.arrow)!=null?j:S.arrow)==null?void 0:x.className)}),Lr);return f.jsxs(g.Fragment,{children:[g.cloneElement(Ee,Dn),f.jsx(Do,b({as:me??Fp,placement:re,anchorEl:B?{getBoundingClientRect:()=>({top:Tl.y,left:Tl.x,right:Tl.x,bottom:Tl.y,width:0,height:0})}:C,popperRef:bt,open:C?Qe:!1,id:mt,transition:!0},Co,Be,{popperOptions:Mi,children:({TransitionProps:Ye})=>f.jsx(ne,b({timeout:ge.transitions.duration.shorter},Ye,pt,{children:f.jsxs(q,b({},Bt,{children:[He,H?f.jsx(Pe,b({},qt,{ref:F})):null]}))}))}))]})}),ig=AN;function PN(e){return De("MuiSwitch",e)}const gN=Se("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Sn=gN,yN=["className","color","edge","size","sx"],bN=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,a={root:["root",n&&`edge${te(n)}`,`size${te(r)}`],switchBase:["switchBase",`color${te(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Te(a,PN,t);return b({},t,l)},xN=_("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({ownerState:e})=>b({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Sn.thumb}`]:{width:16,height:16},[`& .${Sn.switchBase}`]:{padding:4,[`&.${Sn.checked}`]:{transform:"translateX(16px)"}}})),wN=_(eg,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Sn.input}`]:t.input},n.color!=="default"&&t[`color${te(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Sn.checked}`]:{transform:"translateX(20px)"},[`&.${Sn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Sn.checked} + .${Sn.track}`]:{opacity:.5},[`&.${Sn.disabled} + .${Sn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Sn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>b({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Sn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Na(e.palette[t.color].main,.62):Xa(e.palette[t.color].main,.55)}`}},[`&.${Sn.checked} + .${Sn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),HN=_("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),jN=_("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),zN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:a="medium",sx:l}=r,c=ce(r,yN),u=b({},r,{color:s,edge:i,size:a}),d=bN(u),p=f.jsx(jN,{className:d.thumb,ownerState:u});return f.jsxs(xN,{className:le(d.root,o),sx:l,ownerState:u,children:[f.jsx(wN,b({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:b({},d,{root:d.switchBase})})),f.jsx(HN,{className:d.track,ownerState:u})]})}),b9=zN,ON=g.createContext(),x9=ON;function CN(e){return De("MuiTable",e)}Se("MuiTable",["root","stickyHeader"]);const DN=["className","component","padding","size","stickyHeader"],SN=e=>{const{classes:t,stickyHeader:n}=e;return Te({root:["root",n&&"stickyHeader"]},CN,t)},TN=_("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>b({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":b({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),cx="table",RN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTable"}),{className:o,component:s=cx,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,c=ce(r,DN),u=b({},r,{component:s,padding:i,size:a,stickyHeader:l}),d=SN(u),p=g.useMemo(()=>({padding:i,size:a,stickyHeader:l}),[i,a,l]);return f.jsx(x9.Provider,{value:p,children:f.jsx(TN,b({as:s,role:s===cx?null:"table",ref:n,className:le(d.root,o),ownerState:u},c))})}),w9=RN,kN=g.createContext(),Au=kN;function EN(e){return De("MuiTableBody",e)}Se("MuiTableBody",["root"]);const MN=["className","component"],LN=e=>{const{classes:t}=e;return Te({root:["root"]},EN,t)},XN=_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),NN={variant:"body"},ux="tbody",BN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableBody"}),{className:o,component:s=ux}=r,i=ce(r,MN),a=b({},r,{component:s}),l=LN(a);return f.jsx(Au.Provider,{value:NN,children:f.jsx(XN,b({className:le(l.root,o),as:s,ref:n,role:s===ux?null:"rowgroup",ownerState:a},i))})}),H9=BN;function VN(e){return De("MuiTableCell",e)}const IN=Se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WN=IN,JN=["align","className","component","padding","scope","size","sortDirection","variant"],FN=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,a={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${te(r)}`,o!=="normal"&&`padding${te(o)}`,`size${te(s)}`]};return Te(a,VN,t)},YN=_("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${te(n.size)}`],n.padding!=="normal"&&t[`padding${te(n.padding)}`],n.align!=="inherit"&&t[`align${te(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>b({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Na(Ze(e.palette.divider,1),.88):Xa(Ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${WN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),qN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:a,scope:l,size:c,sortDirection:u,variant:d}=r,p=ce(r,JN),y=g.useContext(x9),h=g.useContext(Au),A=h&&h.variant==="head";let w;i?w=i:w=A?"th":"td";let m=l;w==="td"?m=void 0:!m&&A&&(m="col");const v=d||h&&h.variant,P=b({},r,{align:o,component:w,padding:a||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:v==="head"&&y&&y.stickyHeader,variant:v}),x=FN(P);let j=null;return u&&(j=u==="asc"?"ascending":"descending"),f.jsx(YN,b({as:w,ref:n,className:le(x.root,s),"aria-sort":j,scope:m,ownerState:P},p))}),kn=qN;function ZN(e){return De("MuiTableContainer",e)}Se("MuiTableContainer",["root"]);const GN=["className","component"],UN=e=>{const{classes:t}=e;return Te({root:["root"]},ZN,t)},QN=_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),KN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,i=ce(r,GN),a=b({},r,{component:s}),l=UN(a);return f.jsx(QN,b({ref:n,as:s,className:le(l.root,o),ownerState:a},i))}),j9=KN;function _N(e){return De("MuiTableFooter",e)}Se("MuiTableFooter",["root"]);const $N=["className","component"],eB=e=>{const{classes:t}=e;return Te({root:["root"]},_N,t)},tB=_("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),nB={variant:"footer"},fx="tfoot",rB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableFooter"}),{className:o,component:s=fx}=r,i=ce(r,$N),a=b({},r,{component:s}),l=eB(a);return f.jsx(Au.Provider,{value:nB,children:f.jsx(tB,b({as:s,className:le(l.root,o),ref:n,role:s===fx?null:"rowgroup",ownerState:a},i))})}),oB=rB;function sB(e){return De("MuiTableHead",e)}Se("MuiTableHead",["root"]);const iB=["className","component"],aB=e=>{const{classes:t}=e;return Te({root:["root"]},sB,t)},lB=_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cB={variant:"head"},dx="thead",uB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableHead"}),{className:o,component:s=dx}=r,i=ce(r,iB),a=b({},r,{component:s}),l=aB(a);return f.jsx(Au.Provider,{value:cB,children:f.jsx(lB,b({as:s,className:le(l.root,o),ref:n,role:s===dx?null:"rowgroup",ownerState:a},i))})}),fB=uB;function dB(e){return De("MuiToolbar",e)}Se("MuiToolbar",["root","gutters","regular","dense"]);const pB=["className","component","disableGutters","variant"],vB=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},dB,t)},hB=_("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>b({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),mB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:a="regular"}=r,l=ce(r,pB),c=b({},r,{component:s,disableGutters:i,variant:a}),u=vB(c);return f.jsx(hB,b({as:s,className:le(u.root,o),ref:n,ownerState:c},l))}),z9=mB,AB=yn(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PB=yn(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),gB=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],yB=g.forwardRef(function(t,n){var r,o,s,i,a,l,c,u;const{backIconButtonProps:d,count:p,disabled:y=!1,getItemAriaLabel:h,nextIconButtonProps:A,onPageChange:w,page:m,rowsPerPage:v,showFirstButton:P,showLastButton:x,slots:j={},slotProps:z={}}=t,H=ce(t,gB),O=Ar(),D=se=>{w(se,0)},S=se=>{w(se,m-1)},I=se=>{w(se,m+1)},R=se=>{w(se,Math.max(0,Math.ceil(p/v)-1))},M=(r=j.firstButton)!=null?r:qn,W=(o=j.lastButton)!=null?o:qn,N=(s=j.nextButton)!=null?s:qn,Z=(i=j.previousButton)!=null?i:qn,J=(a=j.firstButtonIcon)!=null?a:AX,T=(l=j.lastButtonIcon)!=null?l:PX,B=(c=j.nextButtonIcon)!=null?c:PB,K=(u=j.previousButtonIcon)!=null?u:AB,fe=O.direction==="rtl"?W:M,E=O.direction==="rtl"?N:Z,ee=O.direction==="rtl"?Z:N,G=O.direction==="rtl"?M:W,ie=O.direction==="rtl"?z.lastButton:z.firstButton,re=O.direction==="rtl"?z.nextButton:z.previousButton,me=O.direction==="rtl"?z.previousButton:z.nextButton,ue=O.direction==="rtl"?z.firstButton:z.lastButton;return f.jsxs("div",b({ref:n},H,{children:[P&&f.jsx(fe,b({onClick:D,disabled:y||m===0,"aria-label":h("first",m),title:h("first",m)},ie,{children:O.direction==="rtl"?f.jsx(T,b({},z.lastButtonIcon)):f.jsx(J,b({},z.firstButtonIcon))})),f.jsx(E,b({onClick:S,disabled:y||m===0,color:"inherit","aria-label":h("previous",m),title:h("previous",m)},re??d,{children:O.direction==="rtl"?f.jsx(B,b({},z.nextButtonIcon)):f.jsx(K,b({},z.previousButtonIcon))})),f.jsx(ee,b({onClick:I,disabled:y||(p!==-1?m>=Math.ceil(p/v)-1:!1),color:"inherit","aria-label":h("next",m),title:h("next",m)},me??A,{children:O.direction==="rtl"?f.jsx(K,b({},z.previousButtonIcon)):f.jsx(B,b({},z.nextButtonIcon))})),x&&f.jsx(G,b({onClick:R,disabled:y||m>=Math.ceil(p/v)-1,"aria-label":h("last",m),title:h("last",m)},ue,{children:O.direction==="rtl"?f.jsx(J,b({},z.firstButtonIcon)):f.jsx(T,b({},z.lastButtonIcon))}))]}))}),bB=yB;function xB(e){return De("MuiTablePagination",e)}const wB=Se("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ac=wB;var px;const HB=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],jB=_(kn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),zB=_(z9,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>b({[`& .${Ac.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ac.actions}`]:{flexShrink:0,marginLeft:20}})),OB=_("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),CB=_("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>b({},e.typography.body2,{flexShrink:0})),DB=_(gd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>b({[`& .${Ac.selectIcon}`]:t.selectIcon,[`& .${Ac.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ac.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),SB=_(vo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),TB=_("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>b({},e.typography.body2,{flexShrink:0}));function RB({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function kB(e){return`Go to ${e} page`}const EB=e=>{const{classes:t}=e;return Te({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xB,t)},MB=g.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=bB,backIconButtonProps:i,className:a,colSpan:l,component:c=kn,count:u,disabled:d=!1,getItemAriaLabel:p=kB,labelDisplayedRows:y=RB,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:A,onPageChange:w,onRowsPerPageChange:m,page:v,rowsPerPage:P,rowsPerPageOptions:x=[10,25,50,100],SelectProps:j={},showFirstButton:z=!1,showLastButton:H=!1,slotProps:O={},slots:D={}}=o,S=ce(o,HB),I=o,R=EB(I),M=(r=O==null?void 0:O.select)!=null?r:j,W=M.native?"option":SB;let N;(c===kn||c==="td")&&(N=l||1e3);const Z=xo(M.id),J=xo(M.labelId),T=()=>u===-1?(v+1)*P:P===-1?u:Math.min(u,(v+1)*P);return f.jsx(jB,b({colSpan:N,ref:n,as:c,ownerState:I,className:le(R.root,a)},S,{children:f.jsxs(zB,{className:R.toolbar,children:[f.jsx(OB,{className:R.spacer}),x.length>1&&f.jsx(CB,{className:R.selectLabel,id:J,children:h}),x.length>1&&f.jsx(DB,b({variant:"standard"},!M.variant&&{input:px||(px=f.jsx(Qp,{}))},{value:P,onChange:m,id:Z,labelId:J},M,{classes:b({},M.classes,{root:le(R.input,R.selectRoot,(M.classes||{}).root),select:le(R.select,(M.classes||{}).select),icon:le(R.selectIcon,(M.classes||{}).icon)}),disabled:d,children:x.map(B=>g.createElement(W,b({},!ji(W)&&{ownerState:I},{className:R.menuItem,key:B.label?B.label:B,value:B.value?B.value:B}),B.label?B.label:B))})),f.jsx(TB,{className:R.displayedRows,children:y({from:u===0?0:v*P+1,to:T(),count:u===-1?-1:u,page:v})}),f.jsx(s,{className:R.actions,backIconButtonProps:i,count:u,nextIconButtonProps:A,onPageChange:w,page:v,rowsPerPage:P,showFirstButton:z,showLastButton:H,slotProps:O.actions,slots:D.actions,getItemAriaLabel:p,disabled:d})]})}))}),LB=MB;function XB(e){return De("MuiTableRow",e)}const NB=Se("MuiTableRow",["root","selected","hover","head","footer"]),vx=NB,BB=["className","component","hover","selected"],VB=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Te({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},XB,t)},IB=_("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${vx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),hx="tr",WB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableRow"}),{className:o,component:s=hx,hover:i=!1,selected:a=!1}=r,l=ce(r,BB),c=g.useContext(Au),u=b({},r,{component:s,hover:i,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=VB(u);return f.jsx(IB,b({as:s,ref:n,className:le(d.root,o),role:s===hx?null:"row",ownerState:u},l))}),yd=WB;function JB(e){return De("MuiTextField",e)}Se("MuiTextField",["root"]);const FB=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],YB={standard:l9,filled:r9,outlined:A9},qB=e=>{const{classes:t}=e;return Te({root:["root"]},JB,t)},ZB=_(Ro,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:h,id:A,InputLabelProps:w,inputProps:m,InputProps:v,inputRef:P,label:x,maxRows:j,minRows:z,multiline:H=!1,name:O,onBlur:D,onChange:S,onFocus:I,placeholder:R,required:M=!1,rows:W,select:N=!1,SelectProps:Z,type:J,value:T,variant:B="outlined"}=r,K=ce(r,FB),fe=b({},r,{autoFocus:s,color:l,disabled:u,error:d,fullWidth:y,multiline:H,required:M,select:N,variant:B}),E=qB(fe),ee={};B==="outlined"&&(w&&typeof w.shrink<"u"&&(ee.notched=w.shrink),ee.label=x),N&&((!Z||!Z.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const G=xo(A),ie=h&&G?`${G}-helper-text`:void 0,re=x&&G?`${G}-label`:void 0,me=YB[B],ue=f.jsx(me,b({"aria-describedby":ie,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:H,name:O,rows:W,maxRows:j,minRows:z,type:J,value:T,id:G,inputRef:P,onBlur:D,onChange:S,onFocus:I,placeholder:R,inputProps:m},ee,v));return f.jsxs(ZB,b({className:le(E.root,a),disabled:u,error:d,fullWidth:y,ref:n,required:M,color:l,variant:B,ownerState:fe},K,{children:[x!=null&&x!==""&&f.jsx(Ym,b({htmlFor:G,id:re},w,{children:x})),N?f.jsx(gd,b({"aria-describedby":ie,id:G,labelId:re,value:T,input:ue},Z,{children:i})):ue,h&&f.jsx(Df,b({id:ie},p,{children:h}))]}))}),Rs=GB,$t="/hub",_p="/services/japps",ag=["Environments"],UB=["Any","Owned by me","Shared with me"],QB=["Recently modified","Name: A-Z","Name: Z-A"],KB=["Running","Ready","Pending","Unknown"],lg="startAppId";var ll=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ka=typeof window>"u"||"Deno"in globalThis;function br(){}function _B(e,t){return typeof e=="function"?e(t):e}function Um(e){return typeof e=="number"&&e>=0&&e!==1/0}function O9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ya(e,t){return typeof e=="function"?e(t):e}function qr(e,t){return typeof e=="function"?e(t):e}function mx(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==cg(i,t.options))return!1}else if(!Qc(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Ax(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Oi(t.options.mutationKey)!==Oi(s))return!1}else if(!Qc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function cg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Oi)(e)}function Oi(e){return JSON.stringify(e,(t,n)=>Qm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Qc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qc(e[n],t[n])):!1}function C9(e,t){if(e===t)return e;const n=Px(e)&&Px(t);if(n||Qm(e)&&Qm(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function Km(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?C9(e,t):t}function eV(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var D9=Symbol(),S9=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===D9?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,si,fs,xa,O1,nV=(O1=class extends ll{constructor(){super();We(this,si);We(this,fs);We(this,xa);ze(this,xa,t=>{if(!Ka&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,fs)||this.setEventListener(k(this,xa))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,fs))==null||t.call(this),ze(this,fs,void 0))}setEventListener(t){var n;ze(this,xa,t),(n=k(this,fs))==null||n.call(this),ze(this,fs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,si)!==t&&(ze(this,si,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,si)=="boolean"?k(this,si):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},si=new WeakMap,fs=new WeakMap,xa=new WeakMap,O1),ug=new nV,wa,ds,Ha,C1,rV=(C1=class extends ll{constructor(){super();We(this,wa,!0);We(this,ds);We(this,Ha);ze(this,Ha,t=>{if(!Ka&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,ds)||this.setEventListener(k(this,Ha))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ds))==null||t.call(this),ze(this,ds,void 0))}setEventListener(t){var n;ze(this,Ha,t),(n=k(this,ds))==null||n.call(this),ze(this,ds,t(this.setOnline.bind(this)))}setOnline(t){k(this,wa)!==t&&(ze(this,wa,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,wa)}},wa=new WeakMap,ds=new WeakMap,Ha=new WeakMap,C1),xd=new rV;function oV(e){return Math.min(1e3*2**e,3e4)}function T9(e){return(e??"online")==="online"?xd.isOnline():!0}var R9=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yh(e){return e instanceof R9}function k9(e){let t=!1,n=0,r=!1,o,s,i;const a=new Promise((m,v)=>{s=m,i=v}),l=m=>{var v;r||(h(new R9(m)),(v=e.abort)==null||v.call(e))},c=()=>{t=!0},u=()=>{t=!1},d=()=>ug.isFocused()&&(e.networkMode==="always"||xd.isOnline())&&e.canRun(),p=()=>T9(e.networkMode)&&e.canRun(),y=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),o==null||o(),s(m))},h=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),o==null||o(),i(m))},A=()=>new Promise(m=>{var v;o=P=>{(r||d())&&m(P)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(P){m=Promise.reject(P)}Promise.resolve(m).then(y).catch(P=>{var O;if(r)return;const x=e.retry??(Ka?0:3),j=e.retryDelay??oV,z=typeof j=="function"?j(n,P):j,H=x===!0||typeof x=="number"&&nd()?void 0:A()).then(()=>{t?h(P):w()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?w():A().then(w),a)}}function sV(){let e=[],t=0,n=p=>{p()},r=p=>{p()},o=p=>setTimeout(p,0);const s=p=>{o=p},i=p=>{let y;t++;try{y=p()}finally{t--,t||c()}return y},a=p=>{t?e.push(p):o(()=>{n(p)})},l=p=>(...y)=>{a(()=>{p(...y)})},c=()=>{const p=e;e=[],p.length&&o(()=>{r(()=>{p.forEach(y=>{n(y)})})})};return{batch:i,batchCalls:l,schedule:a,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:s}}var on=sV(),ii,D1,E9=(D1=class{constructor(){We(this,ii)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Um(this.gcTime)&&ze(this,ii,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ka?1/0:5*60*1e3))}clearGcTimeout(){k(this,ii)&&(clearTimeout(k(this,ii)),ze(this,ii,void 0))}},ii=new WeakMap,D1),ja,za,yr,jn,eu,ai,Jr,ko,S1,iV=(S1=class extends E9{constructor(t){super();We(this,Jr);We(this,ja);We(this,za);We(this,yr);We(this,jn);We(this,eu);We(this,ai);ze(this,ai,!1),ze(this,eu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,yr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,ja,t.state||aV(this.options)),this.state=k(this,ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,jn))==null?void 0:t.promise}setOptions(t){this.options={...k(this,eu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,yr).remove(this)}setData(t,n){const r=Km(this.state.data,t,this.options);return $e(this,Jr,ko).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,Jr,ko).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,jn))==null?void 0:r.promise;return(o=k(this,jn))==null||o.cancel(t),n?n.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,ja))}isActive(){return this.observers.some(t=>qr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!O9(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,jn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,jn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,jn)&&(k(this,ai)?k(this,jn).cancel({revert:!0}):k(this,jn).cancelRetry()),this.scheduleGc()),k(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,Jr,ko).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,jn))return k(this,jn).continueRetry(),k(this,jn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(ze(this,ai,!0),r.signal)})},s=()=>{const d=S9(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),ze(this,ai,!1),this.options.persister?this.options.persister(d,p,this):d(p)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(l=this.options.behavior)==null||l.onFetch(i,this),ze(this,za,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&$e(this,Jr,ko).call(this,{type:"fetch",meta:(u=i.fetchOptions)==null?void 0:u.meta});const a=d=>{var p,y,h,A;yh(d)&&d.silent||$e(this,Jr,ko).call(this,{type:"error",error:d}),yh(d)||((y=(p=k(this,yr).config).onError)==null||y.call(p,d,this),(A=(h=k(this,yr).config).onSettled)==null||A.call(h,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,jn,k9({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var p,y,h,A;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(y=(p=k(this,yr).config).onSuccess)==null||y.call(p,d,this),(A=(h=k(this,yr).config).onSettled)==null||A.call(h,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(d,p)=>{$e(this,Jr,ko).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{$e(this,Jr,ko).call(this,{type:"pause"})},onContinue:()=>{$e(this,Jr,ko).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),k(this,jn).start()}},ja=new WeakMap,za=new WeakMap,yr=new WeakMap,jn=new WeakMap,eu=new WeakMap,ai=new WeakMap,Jr=new WeakSet,ko=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...M9(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return yh(o)&&o.revert&&k(this,za)?{...k(this,za),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),on.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,yr).notify({query:this,type:"updated",action:t})})},S1);function M9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var so,T1,lV=(T1=class extends ll{constructor(t={}){super();We(this,so);this.config=t,ze(this,so,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??cg(o,n);let i=this.get(s);return i||(i=new iV({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){k(this,so).has(t.queryHash)||(k(this,so).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,so).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,so).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){on.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,so).get(t)}getAll(){return[...k(this,so).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mx(t,r)):n}notify(t){on.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){on.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){on.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},so=new WeakMap,T1),io,Tn,li,ao,ns,R1,cV=(R1=class extends E9{constructor(t){super();We(this,ao);We(this,io);We(this,Tn);We(this,li);this.mutationId=t.mutationId,ze(this,Tn,t.mutationCache),ze(this,io,[]),this.state=t.state||L9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,io).includes(t)||(k(this,io).push(t),this.clearGcTimeout(),k(this,Tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,io,k(this,io).filter(n=>n!==t)),this.scheduleGc(),k(this,Tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,io).length||(this.state.status==="pending"?this.scheduleGc():k(this,Tn).remove(this))}continue(){var t;return((t=k(this,li))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,a,l,c,u,d,p,y,h,A,w,m,v,P,x,j,z,H;ze(this,li,k9({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,D)=>{$e(this,ao,ns).call(this,{type:"failed",failureCount:O,error:D})},onPause:()=>{$e(this,ao,ns).call(this,{type:"pause"})},onContinue:()=>{$e(this,ao,ns).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Tn).canRun(this)}));const n=this.state.status==="pending",r=!k(this,li).canStart();try{if(!n){$e(this,ao,ns).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=k(this,Tn).config).onMutate)==null?void 0:s.call(o,t,this));const D=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));D!==this.state.context&&$e(this,ao,ns).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const O=await k(this,li).start();return await((c=(l=k(this,Tn).config).onSuccess)==null?void 0:c.call(l,O,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,O,t,this.state.context)),await((y=(p=k(this,Tn).config).onSettled)==null?void 0:y.call(p,O,null,this.state.variables,this.state.context,this)),await((A=(h=this.options).onSettled)==null?void 0:A.call(h,O,null,t,this.state.context)),$e(this,ao,ns).call(this,{type:"success",data:O}),O}catch(O){try{throw await((m=(w=k(this,Tn).config).onError)==null?void 0:m.call(w,O,t,this.state.context,this)),await((P=(v=this.options).onError)==null?void 0:P.call(v,O,t,this.state.context)),await((j=(x=k(this,Tn).config).onSettled)==null?void 0:j.call(x,void 0,O,this.state.variables,this.state.context,this)),await((H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,O,t,this.state.context)),O}finally{$e(this,ao,ns).call(this,{type:"error",error:O})}}finally{k(this,Tn).runNext(this)}}},io=new WeakMap,Tn=new WeakMap,li=new WeakMap,ao=new WeakSet,ns=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),on.batch(()=>{k(this,io).forEach(r=>{r.onMutationUpdate(t)}),k(this,Tn).notify({mutation:this,type:"updated",action:t})})},R1);function L9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var or,tu,k1,uV=(k1=class extends ll{constructor(t={}){super();We(this,or);We(this,tu);this.config=t,ze(this,or,new Map),ze(this,tu,Date.now())}build(t,n,r){const o=new cV({mutationCache:this,mutationId:++Ou(this,tu)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=nf(t),r=k(this,or).get(n)??[];r.push(t),k(this,or).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=nf(t);if(k(this,or).has(n)){const o=(r=k(this,or).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?k(this,or).delete(n):k(this,or).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,or).get(nf(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,or).get(nf(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){on.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,or).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ax(n,r))}findAll(t={}){return this.getAll().filter(n=>Ax(t,n))}notify(t){on.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return on.batch(()=>Promise.all(t.map(n=>n.continue().catch(br))))}},or=new WeakMap,tu=new WeakMap,k1);function nf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fV(e){return{onFetch:(t,n)=>{const r=async()=>{var h,A,w,m,v;const o=t.options,s=(w=(A=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:A.fetchMore)==null?void 0:w.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],a=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},d=S9(t.options,t.fetchOptions),p=async(P,x,j)=>{if(c)return Promise.reject();if(x==null&&P.pages.length)return Promise.resolve(P);const z={queryKey:t.queryKey,pageParam:x,direction:j?"backward":"forward",meta:t.options.meta};u(z);const H=await d(z),{maxPages:O}=t.options,D=j?tV:eV;return{pages:D(P.pages,H,O),pageParams:D(P.pageParams,x,O)}};let y;if(s&&i.length){const P=s==="backward",x=P?dV:yx,j={pages:i,pageParams:a},z=x(o,j);y=await p(j,z,P)}else{y=await p(l,a[0]??o.initialPageParam);const P=e??i.length;for(let x=1;x{var o,s;return(s=(o=t.options).persister)==null?void 0:s.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function yx(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function dV(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Wt,ps,vs,Oa,Ca,hs,Da,Sa,E1,pV=(E1=class{constructor(e={}){We(this,Wt);We(this,ps);We(this,vs);We(this,Oa);We(this,Ca);We(this,hs);We(this,Da);We(this,Sa);ze(this,Wt,e.queryCache||new lV),ze(this,ps,e.mutationCache||new uV),ze(this,vs,e.defaultOptions||{}),ze(this,Oa,new Map),ze(this,Ca,new Map),ze(this,hs,0)}mount(){Ou(this,hs)._++,k(this,hs)===1&&(ze(this,Da,ug.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onFocus())})),ze(this,Sa,xd.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onOnline())})))}unmount(){var e,t;Ou(this,hs)._--,k(this,hs)===0&&((e=k(this,Da))==null||e.call(this),ze(this,Da,void 0),(t=k(this,Sa))==null||t.call(this),ze(this,Sa,void 0))}isFetching(e){return k(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Wt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=k(this,Wt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ya(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,Wt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Wt).get(r.queryHash),s=o==null?void 0:o.state.data,i=_B(t,s);if(i!==void 0)return k(this,Wt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return on.batch(()=>k(this,Wt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Wt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Wt);on.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Wt),r={type:"active",...e};return on.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=on.batch(()=>k(this,Wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(e={},t={}){return on.batch(()=>{if(k(this,Wt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=on.batch(()=>k(this,Wt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(br)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Wt).build(this,t);return n.isStaleByTime(ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}fetchInfiniteQuery(e){return e.behavior=fV(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}resumePausedMutations(){return xd.isOnline()?k(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Wt)}getMutationCache(){return k(this,ps)}getDefaultOptions(){return k(this,vs)}setDefaultOptions(e){ze(this,vs,e)}setQueryDefaults(e,t){k(this,Oa).set(Oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Oa).values()];let n={};return t.forEach(r=>{Qc(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,Ca).set(Oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ca).values()];let n={};return t.forEach(r=>{Qc(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,vs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===D9&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,vs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Wt).clear(),k(this,ps).clear()}},Wt=new WeakMap,ps=new WeakMap,vs=new WeakMap,Oa=new WeakMap,Ca=new WeakMap,hs=new WeakMap,Da=new WeakMap,Sa=new WeakMap,E1),Wn,it,nu,Rn,ci,Ta,lo,ru,Ra,ka,ui,fi,ms,Ea,At,Kl,_m,$m,eA,tA,nA,rA,oA,X9,M1,vV=(M1=class extends ll{constructor(t,n){super();We(this,At);We(this,Wn);We(this,it);We(this,nu);We(this,Rn);We(this,ci);We(this,Ta);We(this,lo);We(this,ru);We(this,Ra);We(this,ka);We(this,ui);We(this,fi);We(this,ms);We(this,Ea,new Set);this.options=n,ze(this,Wn,t),ze(this,lo,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,it).addObserver(this),bx(k(this,it),this.options)?$e(this,At,Kl).call(this):this.updateResult(),$e(this,At,tA).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sA(k(this,it),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sA(k(this,it),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,At,nA).call(this),$e(this,At,rA).call(this),k(this,it).removeObserver(this)}setOptions(t,n){const r=this.options,o=k(this,it);if(this.options=k(this,Wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qr(this.options.enabled,k(this,it))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,At,oA).call(this),k(this,it).setOptions(this.options),r._defaulted&&!bd(this.options,r)&&k(this,Wn).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,it),observer:this});const s=this.hasListeners();s&&xx(k(this,it),o,this.options,r)&&$e(this,At,Kl).call(this),this.updateResult(n),s&&(k(this,it)!==o||qr(this.options.enabled,k(this,it))!==qr(r.enabled,k(this,it))||ya(this.options.staleTime,k(this,it))!==ya(r.staleTime,k(this,it)))&&$e(this,At,_m).call(this);const i=$e(this,At,$m).call(this);s&&(k(this,it)!==o||qr(this.options.enabled,k(this,it))!==qr(r.enabled,k(this,it))||i!==k(this,ms))&&$e(this,At,eA).call(this,i)}getOptimisticResult(t){const n=k(this,Wn).getQueryCache().build(k(this,Wn),t),r=this.createResult(n,t);return mV(this,r)&&(ze(this,Rn,r),ze(this,Ta,this.options),ze(this,ci,k(this,it).state)),r}getCurrentResult(){return k(this,Rn)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){k(this,Ea).add(t)}getCurrentQuery(){return k(this,it)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Wn).defaultQueryOptions(t),r=k(this,Wn).getQueryCache().build(k(this,Wn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $e(this,At,Kl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rn)))}createResult(t,n){var H;const r=k(this,it),o=this.options,s=k(this,Rn),i=k(this,ci),a=k(this,Ta),c=t!==r?t.state:k(this,nu),{state:u}=t;let d={...u},p=!1,y;if(n._optimisticResults){const O=this.hasListeners(),D=!O&&bx(t,n),S=O&&xx(t,r,n,o);(D||S)&&(d={...d,...M9(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:A,status:w}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(i==null?void 0:i.data)&&n.select===k(this,ru))y=k(this,Ra);else try{ze(this,ru,n.select),y=n.select(d.data),y=Km(s==null?void 0:s.data,y,n),ze(this,Ra,y),ze(this,lo,null)}catch(O){ze(this,lo,O)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&w==="pending"){let O;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=s.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((H=k(this,ka))==null?void 0:H.state.data,k(this,ka)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),ze(this,lo,null)}catch(D){ze(this,lo,D)}O!==void 0&&(w="success",y=Km(s==null?void 0:s.data,O,n),p=!0)}k(this,lo)&&(h=k(this,lo),y=k(this,Ra),A=Date.now(),w="error");const m=d.fetchStatus==="fetching",v=w==="pending",P=w==="error",x=v&&m,j=y!==void 0;return{status:w,fetchStatus:d.fetchStatus,isPending:v,isSuccess:w==="success",isError:P,isInitialLoading:x,isLoading:x,data:y,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:A,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:P&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&j,isStale:fg(t,n),refetch:this.refetch}}updateResult(t){const n=k(this,Rn),r=this.createResult(k(this,it),this.options);if(ze(this,ci,k(this,it).state),ze(this,Ta,this.options),k(this,ci).data!==void 0&&ze(this,ka,k(this,it)),bd(r,n))return;ze(this,Rn,r);const o={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!k(this,Ea).size)return!0;const l=new Set(a??k(this,Ea));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,Rn)).some(c=>{const u=c;return k(this,Rn)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&s()&&(o.listeners=!0),$e(this,At,X9).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,At,tA).call(this)}},Wn=new WeakMap,it=new WeakMap,nu=new WeakMap,Rn=new WeakMap,ci=new WeakMap,Ta=new WeakMap,lo=new WeakMap,ru=new WeakMap,Ra=new WeakMap,ka=new WeakMap,ui=new WeakMap,fi=new WeakMap,ms=new WeakMap,Ea=new WeakMap,At=new WeakSet,Kl=function(t){$e(this,At,oA).call(this);let n=k(this,it).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(br)),n},_m=function(){$e(this,At,nA).call(this);const t=ya(this.options.staleTime,k(this,it));if(Ka||k(this,Rn).isStale||!Um(t))return;const r=O9(k(this,Rn).dataUpdatedAt,t)+1;ze(this,ui,setTimeout(()=>{k(this,Rn).isStale||this.updateResult()},r))},$m=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,it)):this.options.refetchInterval)??!1},eA=function(t){$e(this,At,rA).call(this),ze(this,ms,t),!(Ka||qr(this.options.enabled,k(this,it))===!1||!Um(k(this,ms))||k(this,ms)===0)&&ze(this,fi,setInterval(()=>{(this.options.refetchIntervalInBackground||ug.isFocused())&&$e(this,At,Kl).call(this)},k(this,ms)))},tA=function(){$e(this,At,_m).call(this),$e(this,At,eA).call(this,$e(this,At,$m).call(this))},nA=function(){k(this,ui)&&(clearTimeout(k(this,ui)),ze(this,ui,void 0))},rA=function(){k(this,fi)&&(clearInterval(k(this,fi)),ze(this,fi,void 0))},oA=function(){const t=k(this,Wn).getQueryCache().build(k(this,Wn),this.options);if(t===k(this,it))return;const n=k(this,it);ze(this,it,t),ze(this,nu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},X9=function(t){on.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Rn))}),k(this,Wn).getQueryCache().notify({query:k(this,it),type:"observerResultsUpdated"})})},M1);function hV(e,t){return qr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bx(e,t){return hV(e,t)||e.state.data!==void 0&&sA(e,t,t.refetchOnMount)}function sA(e,t,n){if(qr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&fg(e,t)}return!1}function xx(e,t,n,r){return(e!==t||qr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fg(e,n)}function fg(e,t){return qr(t.enabled,e)!==!1&&e.isStaleByTime(ya(t.staleTime,e))}function mV(e,t){return!bd(e.getCurrentResult(),t)}var As,Ps,Jn,Lo,Wo,Tf,iA,L1,AV=(L1=class extends ll{constructor(n,r){super();We(this,Wo);We(this,As);We(this,Ps);We(this,Jn);We(this,Lo);ze(this,As,n),this.setOptions(r),this.bindMethods(),$e(this,Wo,Tf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=k(this,As).defaultMutationOptions(n),bd(this.options,r)||k(this,As).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Oi(r.mutationKey)!==Oi(this.options.mutationKey)?this.reset():((o=k(this,Jn))==null?void 0:o.state.status)==="pending"&&k(this,Jn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,Jn))==null||n.removeObserver(this)}onMutationUpdate(n){$e(this,Wo,Tf).call(this),$e(this,Wo,iA).call(this,n)}getCurrentResult(){return k(this,Ps)}reset(){var n;(n=k(this,Jn))==null||n.removeObserver(this),ze(this,Jn,void 0),$e(this,Wo,Tf).call(this),$e(this,Wo,iA).call(this)}mutate(n,r){var o;return ze(this,Lo,r),(o=k(this,Jn))==null||o.removeObserver(this),ze(this,Jn,k(this,As).getMutationCache().build(k(this,As),this.options)),k(this,Jn).addObserver(this),k(this,Jn).execute(n)}},As=new WeakMap,Ps=new WeakMap,Jn=new WeakMap,Lo=new WeakMap,Wo=new WeakSet,Tf=function(){var r;const n=((r=k(this,Jn))==null?void 0:r.state)??L9();ze(this,Ps,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},iA=function(n){on.batch(()=>{var r,o,s,i,a,l,c,u;if(k(this,Lo)&&this.hasListeners()){const d=k(this,Ps).variables,p=k(this,Ps).context;(n==null?void 0:n.type)==="success"?((o=(r=k(this,Lo)).onSuccess)==null||o.call(r,n.data,d,p),(i=(s=k(this,Lo)).onSettled)==null||i.call(s,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=k(this,Lo)).onError)==null||l.call(a,n.error,d,p),(u=(c=k(this,Lo)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(k(this,Ps))})})},L1),N9=g.createContext(void 0),$p=e=>{const t=g.useContext(N9);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PV=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(N9.Provider,{value:e,children:t})),B9=g.createContext(!1),gV=()=>g.useContext(B9);B9.Provider;function yV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bV=g.createContext(yV()),xV=()=>g.useContext(bV);function V9(e,t){return typeof e=="function"?e(...t):!!e}function wV(){}var HV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},jV=e=>{g.useEffect(()=>{e.clearReset()},[e])},zV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&V9(n,[e.error,r]),OV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},CV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,DV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function SV(e,t,n){var c,u,d,p;const r=$p(n),o=gV(),s=xV(),i=r.defaultQueryOptions(e);(u=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||u.call(c,i),i._optimisticResults=o?"isRestoring":"optimistic",OV(i),HV(i,s),jV(s);const[a]=g.useState(()=>new t(r,i)),l=a.getOptimisticResult(i);if(g.useSyncExternalStore(g.useCallback(y=>{const h=o?()=>{}:a.subscribe(on.batchCalls(y));return a.updateResult(),h},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),g.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),CV(i,l))throw DV(i,a,s);if(zV({result:l,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw l.error;return(p=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||p.call(d,i,l),i.notifyOnChangeProps?l:a.trackResult(l)}function Ln(e,t){return SV(e,vV,t)}function _a(e,t){const n=$p(t),[r]=g.useState(()=>new AV(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(i=>r.subscribe(on.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((i,a)=>{r.mutate(i,a).catch(wV)},[r]);if(o.error&&V9(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}var aA={},wx=Ip;aA.createRoot=wx.createRoot,aA.hydrateRoot=wx.hydrateRoot;/** + ${e.palette.mode==="light"?Na(Ze(e.palette.divider,1),.88):Xa(Ze(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${WN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),qN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:a,scope:l,size:c,sortDirection:u,variant:d}=r,p=ce(r,JN),y=g.useContext(x9),h=g.useContext(Au),A=h&&h.variant==="head";let w;i?w=i:w=A?"th":"td";let m=l;w==="td"?m=void 0:!m&&A&&(m="col");const v=d||h&&h.variant,P=b({},r,{align:o,component:w,padding:a||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:v==="head"&&y&&y.stickyHeader,variant:v}),x=FN(P);let j=null;return u&&(j=u==="asc"?"ascending":"descending"),f.jsx(YN,b({as:w,ref:n,className:le(x.root,s),"aria-sort":j,scope:m,ownerState:P},p))}),kn=qN;function ZN(e){return De("MuiTableContainer",e)}Se("MuiTableContainer",["root"]);const GN=["className","component"],UN=e=>{const{classes:t}=e;return Te({root:["root"]},ZN,t)},QN=_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),KN=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,i=ce(r,GN),a=b({},r,{component:s}),l=UN(a);return f.jsx(QN,b({ref:n,as:s,className:le(l.root,o),ownerState:a},i))}),j9=KN;function _N(e){return De("MuiTableFooter",e)}Se("MuiTableFooter",["root"]);const $N=["className","component"],eB=e=>{const{classes:t}=e;return Te({root:["root"]},_N,t)},tB=_("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),nB={variant:"footer"},fx="tfoot",rB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableFooter"}),{className:o,component:s=fx}=r,i=ce(r,$N),a=b({},r,{component:s}),l=eB(a);return f.jsx(Au.Provider,{value:nB,children:f.jsx(tB,b({as:s,className:le(l.root,o),ref:n,role:s===fx?null:"rowgroup",ownerState:a},i))})}),oB=rB;function sB(e){return De("MuiTableHead",e)}Se("MuiTableHead",["root"]);const iB=["className","component"],aB=e=>{const{classes:t}=e;return Te({root:["root"]},sB,t)},lB=_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cB={variant:"head"},dx="thead",uB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableHead"}),{className:o,component:s=dx}=r,i=ce(r,iB),a=b({},r,{component:s}),l=aB(a);return f.jsx(Au.Provider,{value:cB,children:f.jsx(lB,b({as:s,className:le(l.root,o),ref:n,role:s===dx?null:"rowgroup",ownerState:a},i))})}),fB=uB;function dB(e){return De("MuiToolbar",e)}Se("MuiToolbar",["root","gutters","regular","dense"]);const pB=["className","component","disableGutters","variant"],vB=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},dB,t)},hB=_("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>b({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),mB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:a="regular"}=r,l=ce(r,pB),c=b({},r,{component:s,disableGutters:i,variant:a}),u=vB(c);return f.jsx(hB,b({as:s,className:le(u.root,o),ref:n,ownerState:c},l))}),z9=mB,AB=yn(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PB=yn(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),gB=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],yB=g.forwardRef(function(t,n){var r,o,s,i,a,l,c,u;const{backIconButtonProps:d,count:p,disabled:y=!1,getItemAriaLabel:h,nextIconButtonProps:A,onPageChange:w,page:m,rowsPerPage:v,showFirstButton:P,showLastButton:x,slots:j={},slotProps:z={}}=t,H=ce(t,gB),O=Ar(),D=se=>{w(se,0)},S=se=>{w(se,m-1)},I=se=>{w(se,m+1)},R=se=>{w(se,Math.max(0,Math.ceil(p/v)-1))},M=(r=j.firstButton)!=null?r:qn,W=(o=j.lastButton)!=null?o:qn,N=(s=j.nextButton)!=null?s:qn,Z=(i=j.previousButton)!=null?i:qn,J=(a=j.firstButtonIcon)!=null?a:AX,T=(l=j.lastButtonIcon)!=null?l:PX,B=(c=j.nextButtonIcon)!=null?c:PB,K=(u=j.previousButtonIcon)!=null?u:AB,fe=O.direction==="rtl"?W:M,E=O.direction==="rtl"?N:Z,ee=O.direction==="rtl"?Z:N,G=O.direction==="rtl"?M:W,ie=O.direction==="rtl"?z.lastButton:z.firstButton,re=O.direction==="rtl"?z.nextButton:z.previousButton,me=O.direction==="rtl"?z.previousButton:z.nextButton,ue=O.direction==="rtl"?z.firstButton:z.lastButton;return f.jsxs("div",b({ref:n},H,{children:[P&&f.jsx(fe,b({onClick:D,disabled:y||m===0,"aria-label":h("first",m),title:h("first",m)},ie,{children:O.direction==="rtl"?f.jsx(T,b({},z.lastButtonIcon)):f.jsx(J,b({},z.firstButtonIcon))})),f.jsx(E,b({onClick:S,disabled:y||m===0,color:"inherit","aria-label":h("previous",m),title:h("previous",m)},re??d,{children:O.direction==="rtl"?f.jsx(B,b({},z.nextButtonIcon)):f.jsx(K,b({},z.previousButtonIcon))})),f.jsx(ee,b({onClick:I,disabled:y||(p!==-1?m>=Math.ceil(p/v)-1:!1),color:"inherit","aria-label":h("next",m),title:h("next",m)},me??A,{children:O.direction==="rtl"?f.jsx(K,b({},z.previousButtonIcon)):f.jsx(B,b({},z.nextButtonIcon))})),x&&f.jsx(G,b({onClick:R,disabled:y||m>=Math.ceil(p/v)-1,"aria-label":h("last",m),title:h("last",m)},ue,{children:O.direction==="rtl"?f.jsx(J,b({},z.firstButtonIcon)):f.jsx(T,b({},z.lastButtonIcon))}))]}))}),bB=yB;function xB(e){return De("MuiTablePagination",e)}const wB=Se("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ac=wB;var px;const HB=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],jB=_(kn,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),zB=_(z9,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>b({[`& .${Ac.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ac.actions}`]:{flexShrink:0,marginLeft:20}})),OB=_("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),CB=_("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>b({},e.typography.body2,{flexShrink:0})),DB=_(gd,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>b({[`& .${Ac.selectIcon}`]:t.selectIcon,[`& .${Ac.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ac.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),SB=_(vo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),TB=_("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>b({},e.typography.body2,{flexShrink:0}));function RB({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function kB(e){return`Go to ${e} page`}const EB=e=>{const{classes:t}=e;return Te({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xB,t)},MB=g.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=bB,backIconButtonProps:i,className:a,colSpan:l,component:c=kn,count:u,disabled:d=!1,getItemAriaLabel:p=kB,labelDisplayedRows:y=RB,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:A,onPageChange:w,onRowsPerPageChange:m,page:v,rowsPerPage:P,rowsPerPageOptions:x=[10,25,50,100],SelectProps:j={},showFirstButton:z=!1,showLastButton:H=!1,slotProps:O={},slots:D={}}=o,S=ce(o,HB),I=o,R=EB(I),M=(r=O==null?void 0:O.select)!=null?r:j,W=M.native?"option":SB;let N;(c===kn||c==="td")&&(N=l||1e3);const Z=xo(M.id),J=xo(M.labelId),T=()=>u===-1?(v+1)*P:P===-1?u:Math.min(u,(v+1)*P);return f.jsx(jB,b({colSpan:N,ref:n,as:c,ownerState:I,className:le(R.root,a)},S,{children:f.jsxs(zB,{className:R.toolbar,children:[f.jsx(OB,{className:R.spacer}),x.length>1&&f.jsx(CB,{className:R.selectLabel,id:J,children:h}),x.length>1&&f.jsx(DB,b({variant:"standard"},!M.variant&&{input:px||(px=f.jsx(Qp,{}))},{value:P,onChange:m,id:Z,labelId:J},M,{classes:b({},M.classes,{root:le(R.input,R.selectRoot,(M.classes||{}).root),select:le(R.select,(M.classes||{}).select),icon:le(R.selectIcon,(M.classes||{}).icon)}),disabled:d,children:x.map(B=>g.createElement(W,b({},!ji(W)&&{ownerState:I},{className:R.menuItem,key:B.label?B.label:B,value:B.value?B.value:B}),B.label?B.label:B))})),f.jsx(TB,{className:R.displayedRows,children:y({from:u===0?0:v*P+1,to:T(),count:u===-1?-1:u,page:v})}),f.jsx(s,{className:R.actions,backIconButtonProps:i,count:u,nextIconButtonProps:A,onPageChange:w,page:v,rowsPerPage:P,showFirstButton:z,showLastButton:H,slotProps:O.actions,slots:D.actions,getItemAriaLabel:p,disabled:d})]})}))}),LB=MB;function XB(e){return De("MuiTableRow",e)}const NB=Se("MuiTableRow",["root","selected","hover","head","footer"]),vx=NB,BB=["className","component","hover","selected"],VB=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Te({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},XB,t)},IB=_("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${vx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),hx="tr",WB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableRow"}),{className:o,component:s=hx,hover:i=!1,selected:a=!1}=r,l=ce(r,BB),c=g.useContext(Au),u=b({},r,{component:s,hover:i,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=VB(u);return f.jsx(IB,b({as:s,ref:n,className:le(d.root,o),role:s===hx?null:"row",ownerState:u},l))}),yd=WB;function JB(e){return De("MuiTextField",e)}Se("MuiTextField",["root"]);const FB=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],YB={standard:l9,filled:r9,outlined:A9},qB=e=>{const{classes:t}=e;return Te({root:["root"]},JB,t)},ZB=_(Ro,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GB=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:p,fullWidth:y=!1,helperText:h,id:A,InputLabelProps:w,inputProps:m,InputProps:v,inputRef:P,label:x,maxRows:j,minRows:z,multiline:H=!1,name:O,onBlur:D,onChange:S,onFocus:I,placeholder:R,required:M=!1,rows:W,select:N=!1,SelectProps:Z,type:J,value:T,variant:B="outlined"}=r,K=ce(r,FB),fe=b({},r,{autoFocus:s,color:l,disabled:u,error:d,fullWidth:y,multiline:H,required:M,select:N,variant:B}),E=qB(fe),ee={};B==="outlined"&&(w&&typeof w.shrink<"u"&&(ee.notched=w.shrink),ee.label=x),N&&((!Z||!Z.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const G=xo(A),ie=h&&G?`${G}-helper-text`:void 0,re=x&&G?`${G}-label`:void 0,me=YB[B],ue=f.jsx(me,b({"aria-describedby":ie,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:H,name:O,rows:W,maxRows:j,minRows:z,type:J,value:T,id:G,inputRef:P,onBlur:D,onChange:S,onFocus:I,placeholder:R,inputProps:m},ee,v));return f.jsxs(ZB,b({className:le(E.root,a),disabled:u,error:d,fullWidth:y,ref:n,required:M,color:l,variant:B,ownerState:fe},K,{children:[x!=null&&x!==""&&f.jsx(Ym,b({htmlFor:G,id:re},w,{children:x})),N?f.jsx(gd,b({"aria-describedby":ie,id:G,labelId:re,value:T,input:ue},Z,{children:i})):ue,h&&f.jsx(Df,b({id:ie},p,{children:h}))]}))}),Rs=GB,$t="/hub",_p="/services/japps",ag=["Environments"],UB=["Any","Owned by me","Shared with me"],QB=["Recently modified","Name: A-Z","Name: Z-A"],KB=["Running","Ready","Pending","Unknown"],lg="startAppId";var ll=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ka=typeof window>"u"||"Deno"in globalThis;function br(){}function _B(e,t){return typeof e=="function"?e(t):e}function Um(e){return typeof e=="number"&&e>=0&&e!==1/0}function O9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ya(e,t){return typeof e=="function"?e(t):e}function qr(e,t){return typeof e=="function"?e(t):e}function mx(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==cg(i,t.options))return!1}else if(!Qc(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Ax(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Oi(t.options.mutationKey)!==Oi(s))return!1}else if(!Qc(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function cg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Oi)(e)}function Oi(e){return JSON.stringify(e,(t,n)=>Qm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Qc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qc(e[n],t[n])):!1}function C9(e,t){if(e===t)return e;const n=Px(e)&&Px(t);if(n||Qm(e)&&Qm(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function Km(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?C9(e,t):t}function eV(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function tV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var D9=Symbol();function S9(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===D9?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var si,fs,xa,O1,nV=(O1=class extends ll{constructor(){super();We(this,si);We(this,fs);We(this,xa);ze(this,xa,t=>{if(!Ka&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,fs)||this.setEventListener(k(this,xa))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,fs))==null||t.call(this),ze(this,fs,void 0))}setEventListener(t){var n;ze(this,xa,t),(n=k(this,fs))==null||n.call(this),ze(this,fs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,si)!==t&&(ze(this,si,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,si)=="boolean"?k(this,si):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},si=new WeakMap,fs=new WeakMap,xa=new WeakMap,O1),ug=new nV,wa,ds,Ha,C1,rV=(C1=class extends ll{constructor(){super();We(this,wa,!0);We(this,ds);We(this,Ha);ze(this,Ha,t=>{if(!Ka&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,ds)||this.setEventListener(k(this,Ha))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ds))==null||t.call(this),ze(this,ds,void 0))}setEventListener(t){var n;ze(this,Ha,t),(n=k(this,ds))==null||n.call(this),ze(this,ds,t(this.setOnline.bind(this)))}setOnline(t){k(this,wa)!==t&&(ze(this,wa,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,wa)}},wa=new WeakMap,ds=new WeakMap,Ha=new WeakMap,C1),xd=new rV;function oV(e){return Math.min(1e3*2**e,3e4)}function T9(e){return(e??"online")==="online"?xd.isOnline():!0}var R9=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yh(e){return e instanceof R9}function k9(e){let t=!1,n=0,r=!1,o,s,i;const a=new Promise((m,v)=>{s=m,i=v}),l=m=>{var v;r||(h(new R9(m)),(v=e.abort)==null||v.call(e))},c=()=>{t=!0},u=()=>{t=!1},d=()=>ug.isFocused()&&(e.networkMode==="always"||xd.isOnline())&&e.canRun(),p=()=>T9(e.networkMode)&&e.canRun(),y=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),o==null||o(),s(m))},h=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),o==null||o(),i(m))},A=()=>new Promise(m=>{var v;o=P=>{(r||d())&&m(P)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),w=()=>{if(r)return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(P){m=Promise.reject(P)}Promise.resolve(m).then(y).catch(P=>{var O;if(r)return;const x=e.retry??(Ka?0:3),j=e.retryDelay??oV,z=typeof j=="function"?j(n,P):j,H=x===!0||typeof x=="number"&&nd()?void 0:A()).then(()=>{t?h(P):w()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?w():A().then(w),a)}}function sV(){let e=[],t=0,n=p=>{p()},r=p=>{p()},o=p=>setTimeout(p,0);const s=p=>{o=p},i=p=>{let y;t++;try{y=p()}finally{t--,t||c()}return y},a=p=>{t?e.push(p):o(()=>{n(p)})},l=p=>(...y)=>{a(()=>{p(...y)})},c=()=>{const p=e;e=[],p.length&&o(()=>{r(()=>{p.forEach(y=>{n(y)})})})};return{batch:i,batchCalls:l,schedule:a,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:s}}var on=sV(),ii,D1,E9=(D1=class{constructor(){We(this,ii)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Um(this.gcTime)&&ze(this,ii,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ka?1/0:5*60*1e3))}clearGcTimeout(){k(this,ii)&&(clearTimeout(k(this,ii)),ze(this,ii,void 0))}},ii=new WeakMap,D1),ja,za,yr,jn,eu,ai,Jr,ko,S1,iV=(S1=class extends E9{constructor(t){super();We(this,Jr);We(this,ja);We(this,za);We(this,yr);We(this,jn);We(this,eu);We(this,ai);ze(this,ai,!1),ze(this,eu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,yr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,ja,t.state||aV(this.options)),this.state=k(this,ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,jn))==null?void 0:t.promise}setOptions(t){this.options={...k(this,eu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,yr).remove(this)}setData(t,n){const r=Km(this.state.data,t,this.options);return $e(this,Jr,ko).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,Jr,ko).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=k(this,jn))==null?void 0:r.promise;return(o=k(this,jn))==null||o.cancel(t),n?n.then(br).catch(br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,ja))}isActive(){return this.observers.some(t=>qr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!O9(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,jn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,jn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,jn)&&(k(this,ai)?k(this,jn).cancel({revert:!0}):k(this,jn).cancelRetry()),this.scheduleGc()),k(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,Jr,ko).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,jn))return k(this,jn).continueRetry(),k(this,jn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(ze(this,ai,!0),r.signal)})},s=()=>{const d=S9(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),ze(this,ai,!1),this.options.persister?this.options.persister(d,p,this):d(p)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(l=this.options.behavior)==null||l.onFetch(i,this),ze(this,za,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&$e(this,Jr,ko).call(this,{type:"fetch",meta:(u=i.fetchOptions)==null?void 0:u.meta});const a=d=>{var p,y,h,A;yh(d)&&d.silent||$e(this,Jr,ko).call(this,{type:"error",error:d}),yh(d)||((y=(p=k(this,yr).config).onError)==null||y.call(p,d,this),(A=(h=k(this,yr).config).onSettled)==null||A.call(h,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,jn,k9({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var p,y,h,A;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(y=(p=k(this,yr).config).onSuccess)==null||y.call(p,d,this),(A=(h=k(this,yr).config).onSettled)==null||A.call(h,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(d,p)=>{$e(this,Jr,ko).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{$e(this,Jr,ko).call(this,{type:"pause"})},onContinue:()=>{$e(this,Jr,ko).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),k(this,jn).start()}},ja=new WeakMap,za=new WeakMap,yr=new WeakMap,jn=new WeakMap,eu=new WeakMap,ai=new WeakMap,Jr=new WeakSet,ko=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...M9(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return yh(o)&&o.revert&&k(this,za)?{...k(this,za),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),on.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,yr).notify({query:this,type:"updated",action:t})})},S1);function M9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function aV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var so,T1,lV=(T1=class extends ll{constructor(t={}){super();We(this,so);this.config=t,ze(this,so,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??cg(o,n);let i=this.get(s);return i||(i=new iV({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){k(this,so).has(t.queryHash)||(k(this,so).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,so).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,so).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){on.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,so).get(t)}getAll(){return[...k(this,so).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mx(t,r)):n}notify(t){on.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){on.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){on.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},so=new WeakMap,T1),io,Tn,li,ao,ns,R1,cV=(R1=class extends E9{constructor(t){super();We(this,ao);We(this,io);We(this,Tn);We(this,li);this.mutationId=t.mutationId,ze(this,Tn,t.mutationCache),ze(this,io,[]),this.state=t.state||L9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,io).includes(t)||(k(this,io).push(t),this.clearGcTimeout(),k(this,Tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,io,k(this,io).filter(n=>n!==t)),this.scheduleGc(),k(this,Tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,io).length||(this.state.status==="pending"?this.scheduleGc():k(this,Tn).remove(this))}continue(){var t;return((t=k(this,li))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,a,l,c,u,d,p,y,h,A,w,m,v,P,x,j,z,H;ze(this,li,k9({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,D)=>{$e(this,ao,ns).call(this,{type:"failed",failureCount:O,error:D})},onPause:()=>{$e(this,ao,ns).call(this,{type:"pause"})},onContinue:()=>{$e(this,ao,ns).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Tn).canRun(this)}));const n=this.state.status==="pending",r=!k(this,li).canStart();try{if(!n){$e(this,ao,ns).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=k(this,Tn).config).onMutate)==null?void 0:s.call(o,t,this));const D=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));D!==this.state.context&&$e(this,ao,ns).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const O=await k(this,li).start();return await((c=(l=k(this,Tn).config).onSuccess)==null?void 0:c.call(l,O,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,O,t,this.state.context)),await((y=(p=k(this,Tn).config).onSettled)==null?void 0:y.call(p,O,null,this.state.variables,this.state.context,this)),await((A=(h=this.options).onSettled)==null?void 0:A.call(h,O,null,t,this.state.context)),$e(this,ao,ns).call(this,{type:"success",data:O}),O}catch(O){try{throw await((m=(w=k(this,Tn).config).onError)==null?void 0:m.call(w,O,t,this.state.context,this)),await((P=(v=this.options).onError)==null?void 0:P.call(v,O,t,this.state.context)),await((j=(x=k(this,Tn).config).onSettled)==null?void 0:j.call(x,void 0,O,this.state.variables,this.state.context,this)),await((H=(z=this.options).onSettled)==null?void 0:H.call(z,void 0,O,t,this.state.context)),O}finally{$e(this,ao,ns).call(this,{type:"error",error:O})}}finally{k(this,Tn).runNext(this)}}},io=new WeakMap,Tn=new WeakMap,li=new WeakMap,ao=new WeakSet,ns=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),on.batch(()=>{k(this,io).forEach(r=>{r.onMutationUpdate(t)}),k(this,Tn).notify({mutation:this,type:"updated",action:t})})},R1);function L9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var or,tu,k1,uV=(k1=class extends ll{constructor(t={}){super();We(this,or);We(this,tu);this.config=t,ze(this,or,new Map),ze(this,tu,Date.now())}build(t,n,r){const o=new cV({mutationCache:this,mutationId:++Ou(this,tu)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=nf(t),r=k(this,or).get(n)??[];r.push(t),k(this,or).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=nf(t);if(k(this,or).has(n)){const o=(r=k(this,or).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?k(this,or).delete(n):k(this,or).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,or).get(nf(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,or).get(nf(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){on.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,or).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ax(n,r))}findAll(t={}){return this.getAll().filter(n=>Ax(t,n))}notify(t){on.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return on.batch(()=>Promise.all(t.map(n=>n.continue().catch(br))))}},or=new WeakMap,tu=new WeakMap,k1);function nf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fV(e){return{onFetch:(t,n)=>{const r=async()=>{var h,A,w,m,v;const o=t.options,s=(w=(A=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:A.fetchMore)==null?void 0:w.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],a=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},d=S9(t.options,t.fetchOptions),p=async(P,x,j)=>{if(c)return Promise.reject();if(x==null&&P.pages.length)return Promise.resolve(P);const z={queryKey:t.queryKey,pageParam:x,direction:j?"backward":"forward",meta:t.options.meta};u(z);const H=await d(z),{maxPages:O}=t.options,D=j?tV:eV;return{pages:D(P.pages,H,O),pageParams:D(P.pageParams,x,O)}};let y;if(s&&i.length){const P=s==="backward",x=P?dV:yx,j={pages:i,pageParams:a},z=x(o,j);y=await p(j,z,P)}else{y=await p(l,a[0]??o.initialPageParam);const P=e??i.length;for(let x=1;x{var o,s;return(s=(o=t.options).persister)==null?void 0:s.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function yx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function dV(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Wt,ps,vs,Oa,Ca,hs,Da,Sa,E1,pV=(E1=class{constructor(e={}){We(this,Wt);We(this,ps);We(this,vs);We(this,Oa);We(this,Ca);We(this,hs);We(this,Da);We(this,Sa);ze(this,Wt,e.queryCache||new lV),ze(this,ps,e.mutationCache||new uV),ze(this,vs,e.defaultOptions||{}),ze(this,Oa,new Map),ze(this,Ca,new Map),ze(this,hs,0)}mount(){Ou(this,hs)._++,k(this,hs)===1&&(ze(this,Da,ug.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onFocus())})),ze(this,Sa,xd.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onOnline())})))}unmount(){var e,t;Ou(this,hs)._--,k(this,hs)===0&&((e=k(this,Da))==null||e.call(this),ze(this,Da,void 0),(t=k(this,Sa))==null||t.call(this),ze(this,Sa,void 0))}isFetching(e){return k(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Wt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=k(this,Wt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ya(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,Wt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=k(this,Wt).get(r.queryHash),s=o==null?void 0:o.state.data,i=_B(t,s);if(i!==void 0)return k(this,Wt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return on.batch(()=>k(this,Wt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Wt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Wt);on.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Wt),r={type:"active",...e};return on.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=on.batch(()=>k(this,Wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(br).catch(br)}invalidateQueries(e={},t={}){return on.batch(()=>{if(k(this,Wt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=on.batch(()=>k(this,Wt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(br)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Wt).build(this,t);return n.isStaleByTime(ya(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(br).catch(br)}fetchInfiniteQuery(e){return e.behavior=fV(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(br).catch(br)}resumePausedMutations(){return xd.isOnline()?k(this,ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Wt)}getMutationCache(){return k(this,ps)}getDefaultOptions(){return k(this,vs)}setDefaultOptions(e){ze(this,vs,e)}setQueryDefaults(e,t){k(this,Oa).set(Oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Oa).values()];let n={};return t.forEach(r=>{Qc(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,Ca).set(Oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Ca).values()];let n={};return t.forEach(r=>{Qc(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,vs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=cg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===D9&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,vs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Wt).clear(),k(this,ps).clear()}},Wt=new WeakMap,ps=new WeakMap,vs=new WeakMap,Oa=new WeakMap,Ca=new WeakMap,hs=new WeakMap,Da=new WeakMap,Sa=new WeakMap,E1),Wn,it,nu,Rn,ci,Ta,lo,ru,Ra,ka,ui,fi,ms,Ea,At,Kl,_m,$m,eA,tA,nA,rA,oA,X9,M1,vV=(M1=class extends ll{constructor(t,n){super();We(this,At);We(this,Wn);We(this,it);We(this,nu);We(this,Rn);We(this,ci);We(this,Ta);We(this,lo);We(this,ru);We(this,Ra);We(this,ka);We(this,ui);We(this,fi);We(this,ms);We(this,Ea,new Set);this.options=n,ze(this,Wn,t),ze(this,lo,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,it).addObserver(this),bx(k(this,it),this.options)?$e(this,At,Kl).call(this):this.updateResult(),$e(this,At,tA).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sA(k(this,it),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sA(k(this,it),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,At,nA).call(this),$e(this,At,rA).call(this),k(this,it).removeObserver(this)}setOptions(t,n){const r=this.options,o=k(this,it);if(this.options=k(this,Wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qr(this.options.enabled,k(this,it))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,At,oA).call(this),k(this,it).setOptions(this.options),r._defaulted&&!bd(this.options,r)&&k(this,Wn).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,it),observer:this});const s=this.hasListeners();s&&xx(k(this,it),o,this.options,r)&&$e(this,At,Kl).call(this),this.updateResult(n),s&&(k(this,it)!==o||qr(this.options.enabled,k(this,it))!==qr(r.enabled,k(this,it))||ya(this.options.staleTime,k(this,it))!==ya(r.staleTime,k(this,it)))&&$e(this,At,_m).call(this);const i=$e(this,At,$m).call(this);s&&(k(this,it)!==o||qr(this.options.enabled,k(this,it))!==qr(r.enabled,k(this,it))||i!==k(this,ms))&&$e(this,At,eA).call(this,i)}getOptimisticResult(t){const n=k(this,Wn).getQueryCache().build(k(this,Wn),t),r=this.createResult(n,t);return mV(this,r)&&(ze(this,Rn,r),ze(this,Ta,this.options),ze(this,ci,k(this,it).state)),r}getCurrentResult(){return k(this,Rn)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){k(this,Ea).add(t)}getCurrentQuery(){return k(this,it)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Wn).defaultQueryOptions(t),r=k(this,Wn).getQueryCache().build(k(this,Wn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return $e(this,At,Kl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rn)))}createResult(t,n){var H;const r=k(this,it),o=this.options,s=k(this,Rn),i=k(this,ci),a=k(this,Ta),c=t!==r?t.state:k(this,nu),{state:u}=t;let d={...u},p=!1,y;if(n._optimisticResults){const O=this.hasListeners(),D=!O&&bx(t,n),S=O&&xx(t,r,n,o);(D||S)&&(d={...d,...M9(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:A,status:w}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(i==null?void 0:i.data)&&n.select===k(this,ru))y=k(this,Ra);else try{ze(this,ru,n.select),y=n.select(d.data),y=Km(s==null?void 0:s.data,y,n),ze(this,Ra,y),ze(this,lo,null)}catch(O){ze(this,lo,O)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&w==="pending"){let O;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=s.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((H=k(this,ka))==null?void 0:H.state.data,k(this,ka)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),ze(this,lo,null)}catch(D){ze(this,lo,D)}O!==void 0&&(w="success",y=Km(s==null?void 0:s.data,O,n),p=!0)}k(this,lo)&&(h=k(this,lo),y=k(this,Ra),A=Date.now(),w="error");const m=d.fetchStatus==="fetching",v=w==="pending",P=w==="error",x=v&&m,j=y!==void 0;return{status:w,fetchStatus:d.fetchStatus,isPending:v,isSuccess:w==="success",isError:P,isInitialLoading:x,isLoading:x,data:y,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:A,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:P&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&j,isStale:fg(t,n),refetch:this.refetch}}updateResult(t){const n=k(this,Rn),r=this.createResult(k(this,it),this.options);if(ze(this,ci,k(this,it).state),ze(this,Ta,this.options),k(this,ci).data!==void 0&&ze(this,ka,k(this,it)),bd(r,n))return;ze(this,Rn,r);const o={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!k(this,Ea).size)return!0;const l=new Set(a??k(this,Ea));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,Rn)).some(c=>{const u=c;return k(this,Rn)[u]!==n[u]&&l.has(u)})};(t==null?void 0:t.listeners)!==!1&&s()&&(o.listeners=!0),$e(this,At,X9).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,At,tA).call(this)}},Wn=new WeakMap,it=new WeakMap,nu=new WeakMap,Rn=new WeakMap,ci=new WeakMap,Ta=new WeakMap,lo=new WeakMap,ru=new WeakMap,Ra=new WeakMap,ka=new WeakMap,ui=new WeakMap,fi=new WeakMap,ms=new WeakMap,Ea=new WeakMap,At=new WeakSet,Kl=function(t){$e(this,At,oA).call(this);let n=k(this,it).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(br)),n},_m=function(){$e(this,At,nA).call(this);const t=ya(this.options.staleTime,k(this,it));if(Ka||k(this,Rn).isStale||!Um(t))return;const r=O9(k(this,Rn).dataUpdatedAt,t)+1;ze(this,ui,setTimeout(()=>{k(this,Rn).isStale||this.updateResult()},r))},$m=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,it)):this.options.refetchInterval)??!1},eA=function(t){$e(this,At,rA).call(this),ze(this,ms,t),!(Ka||qr(this.options.enabled,k(this,it))===!1||!Um(k(this,ms))||k(this,ms)===0)&&ze(this,fi,setInterval(()=>{(this.options.refetchIntervalInBackground||ug.isFocused())&&$e(this,At,Kl).call(this)},k(this,ms)))},tA=function(){$e(this,At,_m).call(this),$e(this,At,eA).call(this,$e(this,At,$m).call(this))},nA=function(){k(this,ui)&&(clearTimeout(k(this,ui)),ze(this,ui,void 0))},rA=function(){k(this,fi)&&(clearInterval(k(this,fi)),ze(this,fi,void 0))},oA=function(){const t=k(this,Wn).getQueryCache().build(k(this,Wn),this.options);if(t===k(this,it))return;const n=k(this,it);ze(this,it,t),ze(this,nu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},X9=function(t){on.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Rn))}),k(this,Wn).getQueryCache().notify({query:k(this,it),type:"observerResultsUpdated"})})},M1);function hV(e,t){return qr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bx(e,t){return hV(e,t)||e.state.data!==void 0&&sA(e,t,t.refetchOnMount)}function sA(e,t,n){if(qr(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&fg(e,t)}return!1}function xx(e,t,n,r){return(e!==t||qr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fg(e,n)}function fg(e,t){return qr(t.enabled,e)!==!1&&e.isStaleByTime(ya(t.staleTime,e))}function mV(e,t){return!bd(e.getCurrentResult(),t)}var As,Ps,Jn,Lo,Wo,Tf,iA,L1,AV=(L1=class extends ll{constructor(n,r){super();We(this,Wo);We(this,As);We(this,Ps);We(this,Jn);We(this,Lo);ze(this,As,n),this.setOptions(r),this.bindMethods(),$e(this,Wo,Tf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=k(this,As).defaultMutationOptions(n),bd(this.options,r)||k(this,As).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Oi(r.mutationKey)!==Oi(this.options.mutationKey)?this.reset():((o=k(this,Jn))==null?void 0:o.state.status)==="pending"&&k(this,Jn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=k(this,Jn))==null||n.removeObserver(this)}onMutationUpdate(n){$e(this,Wo,Tf).call(this),$e(this,Wo,iA).call(this,n)}getCurrentResult(){return k(this,Ps)}reset(){var n;(n=k(this,Jn))==null||n.removeObserver(this),ze(this,Jn,void 0),$e(this,Wo,Tf).call(this),$e(this,Wo,iA).call(this)}mutate(n,r){var o;return ze(this,Lo,r),(o=k(this,Jn))==null||o.removeObserver(this),ze(this,Jn,k(this,As).getMutationCache().build(k(this,As),this.options)),k(this,Jn).addObserver(this),k(this,Jn).execute(n)}},As=new WeakMap,Ps=new WeakMap,Jn=new WeakMap,Lo=new WeakMap,Wo=new WeakSet,Tf=function(){var r;const n=((r=k(this,Jn))==null?void 0:r.state)??L9();ze(this,Ps,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},iA=function(n){on.batch(()=>{var r,o,s,i,a,l,c,u;if(k(this,Lo)&&this.hasListeners()){const d=k(this,Ps).variables,p=k(this,Ps).context;(n==null?void 0:n.type)==="success"?((o=(r=k(this,Lo)).onSuccess)==null||o.call(r,n.data,d,p),(i=(s=k(this,Lo)).onSettled)==null||i.call(s,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=k(this,Lo)).onError)==null||l.call(a,n.error,d,p),(u=(c=k(this,Lo)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(k(this,Ps))})})},L1),N9=g.createContext(void 0),$p=e=>{const t=g.useContext(N9);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PV=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(N9.Provider,{value:e,children:t})),B9=g.createContext(!1),gV=()=>g.useContext(B9);B9.Provider;function yV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bV=g.createContext(yV()),xV=()=>g.useContext(bV);function V9(e,t){return typeof e=="function"?e(...t):!!e}function wV(){}var HV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},jV=e=>{g.useEffect(()=>{e.clearReset()},[e])},zV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&V9(n,[e.error,r]),OV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},CV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,DV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function SV(e,t,n){var c,u,d,p;const r=$p(n),o=gV(),s=xV(),i=r.defaultQueryOptions(e);(u=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||u.call(c,i),i._optimisticResults=o?"isRestoring":"optimistic",OV(i),HV(i,s),jV(s);const[a]=g.useState(()=>new t(r,i)),l=a.getOptimisticResult(i);if(g.useSyncExternalStore(g.useCallback(y=>{const h=o?()=>{}:a.subscribe(on.batchCalls(y));return a.updateResult(),h},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),g.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),CV(i,l))throw DV(i,a,s);if(zV({result:l,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw l.error;return(p=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||p.call(d,i,l),i.notifyOnChangeProps?l:a.trackResult(l)}function Ln(e,t){return SV(e,vV,t)}function _a(e,t){const n=$p(t),[r]=g.useState(()=>new AV(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(i=>r.subscribe(on.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((i,a)=>{r.mutate(i,a).catch(wV)},[r]);if(o.error&&V9(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}var aA={},wx=Ip;aA.createRoot=wx.createRoot,aA.hydrateRoot=wx.hydrateRoot;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. diff --git a/ui/package-lock.json b/ui/package-lock.json index 2721896d..8d465825 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -13,7 +13,7 @@ "@mui/icons-material": "^5.15.15", "@mui/lab": "^5.0.0-alpha.170", "@mui/material": "5.15.10", - "@tanstack/react-query": "5.51.1", + "@tanstack/react-query": "5.51.11", "axios": "1.7.2", "axios-mock-adapter": "1.22.0", "classnames": "^2.5.1", @@ -4056,20 +4056,20 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.51.1", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.51.1.tgz", - "integrity": "sha512-fJBMQMpo8/KSsWW5ratJR5+IFr7YNJ3K2kfP9l5XObYHsgfVy1w3FJUWU4FT2fj7+JMaEg33zOcNDBo0LMwHnw==", + "version": "5.51.9", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.51.9.tgz", + "integrity": "sha512-HsAwaY5J19MD18ykZDS3aVVh+bAt0i7m6uQlFC2b77DLV9djo+xEN7MWQAQQTR8IM+7r/zbozTQ7P0xr0bHuew==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.51.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.51.1.tgz", - "integrity": "sha512-s47HKFnQ4HOJAHoIiXcpna/roMMPZJPy6fJ6p4ZNVn8+/onlLBEDd1+xc8OnDuwgvecqkZD7Z2mnSRbcWefrKw==", + "version": "5.51.11", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.51.11.tgz", + "integrity": "sha512-4Kq2x0XpDlpvSnaLG+8pHNH60zEc3mBvb3B2tOMDjcPCi/o+Du3p/9qpPLwJOTliVxxPJAP27fuIhLrsRdCr7A==", "dependencies": { - "@tanstack/query-core": "5.51.1" + "@tanstack/query-core": "5.51.9" }, "funding": { "type": "github", diff --git a/ui/package.json b/ui/package.json index 2f9ab5af..681707c7 100644 --- a/ui/package.json +++ b/ui/package.json @@ -22,7 +22,7 @@ "@mui/icons-material": "^5.15.15", "@mui/lab": "^5.0.0-alpha.170", "@mui/material": "5.15.10", - "@tanstack/react-query": "5.51.1", + "@tanstack/react-query": "5.51.11", "axios": "1.7.2", "axios-mock-adapter": "1.22.0", "classnames": "^2.5.1",