diff --git a/jhub_apps/static/js/index.js b/jhub_apps/static/js/index.js index 690de435..c721b43f 100644 --- a/jhub_apps/static/js/index.js +++ b/jhub_apps/static/js/index.js @@ -154,7 +154,7 @@ Error generating stack: `+s.message+` `),ck)),pk=_("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vk=_("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=_p` animation: ${0} 1.4s ease-in-out infinite; `),uk)),eg=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,lk),y=b({},r,{color:s,disableShrink:i,size:a,thickness:c,value:u,variant:d}),h=fk(y),A={},x={},m={};if(d==="determinate"){const v=2*Math.PI*((es-c)/2);A.strokeDasharray=v.toFixed(3),m["aria-valuenow"]=Math.round(u),A.strokeDashoffset=`${((100-u)/100*v).toFixed(3)}px`,x.transform="rotate(-90deg)"}return f.jsx(dk,b({className:le(h.root,o),style:b({width:a,height:a},x,l),ownerState:y,ref:n,role:"progressbar"},m,p,{children:f.jsx(pk,{className:h.svg,ownerState:y,viewBox:`${es/2} ${es/2} ${es} ${es}`,children:f.jsx(vk,{className:h.circle,style:A,ownerState:y,cx:es,cy:es,r:(es-c)/2,fill:"none",strokeWidth:c})})}))}),hk=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),mk=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}}),Ak=(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:hk(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},mk(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 Pk(e){const t=Re({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return f.jsxs(g.Fragment,{children:[f.jsx(q2,{styles:o=>Ak(o,r)}),n]})}function gk(e){return De("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const yk=["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"],bk=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gk,r)},xk=_("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"})),wk=_(U2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tg=g.forwardRef(function(t,n){var r,o,s,i,a,l;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=wk,BackdropProps:d,className:p,closeAfterTransition:y=!1,children:h,container:A,component:x,components:m={},componentsProps:v={},disableAutoFocus:P=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:H=!1,disablePortal:z=!1,disableRestoreFocus:j=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:S=!1,onBackdropClick:I,open:R,slotProps:M,slots:W}=c,N=ce(c,yk),Z=b({},c,{closeAfterTransition:y,disableAutoFocus:P,disableEnforceFocus:w,disableEscapeKeyDown:H,disablePortal:z,disableRestoreFocus:j,disableScrollLock:O,hideBackdrop:C,keepMounted:S}),{getRootProps:J,getBackdropProps:T,getTransitionProps:B,portalRef:K,isTopModal:fe,exited:E,hasTransition:ee}=uS(b({},Z,{rootRef:n})),G=b({},Z,{exited:E}),ie=bk(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:xk,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=Xs({elementType:me,externalSlotProps:se,externalForwardedProps:N,getSlotProps:J,additionalProps:{ref:n,as:x},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=Xs({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(E2,{ref:K,container:A,disablePortal:z,children:f.jsxs(me,b({},He,{children:[!C&&u?f.jsx(ue,b({},we)):null,f.jsx(eS,{disableEnforceFocus:w,disableAutoFocus:P,disableRestoreFocus:j,isEnabled:fe,open:R,children:g.cloneElement(h,re)})]}))})});function Hk(e){return De("MuiDialog",e)}const mh=Se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$2=g.createContext({}),jk=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zk=_(U2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ok=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,Hk,t)},Ck=_(tg,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Dk=_("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"}})),Sk=_(Ar,{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%"}})),Kl=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=yr(),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:x,onClose:m,open:v,PaperComponent:P=Ar,PaperProps:w={},scroll:H="paper",TransitionComponent:z=G2,transitionDuration:j=s,TransitionProps:O}=r,C=ce(r,jk),S=b({},r,{disableEscapeKeyDown:p,fullScreen:y,fullWidth:h,maxWidth:A,scroll:H}),I=Ok(S),R=g.useRef(),M=J=>{R.current=J.target===J.currentTarget},W=J=>{R.current&&(R.current=null,x&&x(J),m&&m(J,"backdropClick"))},N=wo(a),Z=g.useMemo(()=>({titleId:N}),[N]);return f.jsx(Ck,b({className:le(I.root,d),closeAfterTransition:!0,components:{Backdrop:zk},componentsProps:{backdrop:b({transitionDuration:j,as:l},c)},disableEscapeKeyDown:p,onClose:m,open:v,ref:n,onClick:W,ownerState:S},C,{children:f.jsx(z,b({appear:!0,in:v,timeout:j,role:"presentation"},O,{children:f.jsx(Dk,{className:le(I.container),onMouseDown:M,ownerState:S,children:f.jsx(Sk,b({as:P,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":N},w,{className:le(I.paper,w.className),ownerState:S,children:f.jsx($2.Provider,{value:Z,children:u})}))})}))}))});function Tk(e){return De("MuiDialogContent",e)}Se("MuiDialogContent",["root","dividers"]);function Rk(e){return De("MuiDialogTitle",e)}const kk=Se("MuiDialogTitle",["root"]),Ek=["className","dividers"],Mk=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Tk,t)},Lk=_("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}`}:{[`.${kk.root} + &`]:{paddingTop:0}})),nf=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=ce(r,Ek),a=b({},r,{dividers:s}),l=Mk(a);return f.jsx(Lk,b({className:le(l.root,o),ownerState:a,ref:n},i))}),Xk=["className","id"],Nk=e=>{const{classes:t}=e;return Te({root:["root"]},Rk,t)},Bk=_(Qe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),rf=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=ce(r,Xk),a=r,l=Nk(a),{titleId:c=s}=g.useContext($2);return f.jsx(Bk,b({component:"h2",className:le(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c},i))});function Vk(e){return De("MuiDivider",e)}const Jb=Se("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ik=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Wk=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"]},Vk,r)},Jk=_("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%"}})),Fk=_("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)`})),$a=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,Ik),A=b({},r,{absolute:o,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:y}),x=Wk(A);return f.jsx(Jk,b({as:a,className:le(x.root,i),role:d,ref:n,ownerState:A},h,{children:s?f.jsx(Fk,{className:x.wrapper,ownerState:A,children:s}):null}))});$a.muiSkipListHighlight=!0;const Yk=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qk(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=xo(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 Zk(e){return typeof e=="function"?e():e}function of(e,t,n){const r=Zk(n),o=qk(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Gk=g.forwardRef(function(t,n){const r=yr(),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:x,onExited:m,onExiting:v,style:P,timeout:w=s,TransitionComponent:H=no}=t,z=ce(t,Yk),j=g.useRef(null),O=Ht(l.ref,j,n),C=T=>B=>{T&&(B===void 0?T(j.current):T(j.current,B))},S=C((T,B)=>{of(u,T,c),FP(T),y&&y(T,B)}),I=C((T,B)=>{const K=Ga({timeout:w,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=C(h),M=C(v),W=C(T=>{const B=Ga({timeout:w,style:P,easing:d},{mode:"exit"});T.style.webkitTransition=r.transitions.create("-webkit-transform",B),T.style.transition=r.transitions.create("transform",B),of(u,T,c),x&&x(T)}),N=C(T=>{T.style.webkitTransition="",T.style.transition="",m&&m(T)}),Z=T=>{i&&i(j.current,T)},J=g.useCallback(()=>{j.current&&of(u,j.current,c)},[u,c]);return g.useEffect(()=>{if(p||u==="down"||u==="right")return;const T=dp(()=>{j.current&&of(u,j.current,c)}),B=xo(j.current);return B.addEventListener("resize",T),()=>{T.clear(),B.removeEventListener("resize",T)}},[u,p,c]),g.useEffect(()=>{p||J()},[p,J]),f.jsx(H,b({nodeRef:j,onEnter:S,onEntered:R,onEntering:I,onExit:W,onExited:N,onExiting:M,addEndListener:Z,appear:a,in:p,timeout:w},z,{children:(T,B)=>g.cloneElement(l,b({ref:O,style:b({visibility:T==="exited"&&!p?"hidden":void 0},P,l.props.style)},B))}))});function Uk(e){return De("MuiDrawer",e)}Se("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qk=["BackdropProps"],Kk=["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]},_k=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,Uk,t)},$k=_(tg,{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"}),eE=_(Ar,{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 tE(e){return["left","right"].indexOf(e)!==-1}function nE(e,t){return e.direction==="rtl"&&tE(t)?t9[t]:t}const rE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=yr(),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:x,TransitionComponent:m=Gk,transitionDuration:v=s,variant:P="temporary"}=r,w=ce(r.ModalProps,Qk),H=ce(r,Kk),z=g.useRef(!1);g.useEffect(()=>{z.current=!0},[]);const j=nE(o,i),C=b({},r,{anchor:i,elevation:u,open:h,variant:P},H),S=_k(C),I=f.jsx(eE,b({elevation:P==="temporary"?u:0,square:!0},A,{className:le(S.paper,A.className),ownerState:C,children:l}));if(P==="permanent")return f.jsx(Fb,b({className:le(S.root,S.docked,c),ownerState:C,ref:n},H,{children:I}));const R=f.jsx(m,b({in:h,direction:t9[j],timeout:v,appear:z.current},x,{children:I}));return P==="persistent"?f.jsx(Fb,b({className:le(S.root,S.docked,c),ownerState:C,ref:n},H,{children:R})):f.jsx($k,b({BackdropProps:b({},a,p,{transitionDuration:v}),className:le(S.root,S.modal,c),open:h,ownerState:C,onClose:y,hideBackdrop:d,ref:n},H,w,{children:R}))}),oE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sE=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},$T,t);return b({},t,o)},iE=_(Up,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zp(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}},[`&.${ur.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${ur.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"},[`&.${ur.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ur.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(.${ur.disabled}, .${ur.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ur.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}))}),aE=_(Qp,{name:"MuiFilledInput",slot:"Input",overridesResolver:Gp})(({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})),ng=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,x=ce(a,oE),m=b({},a,{fullWidth:u,inputComponent:d,multiline:p,type:A}),v=sE(a),P={root:{ownerState:m},input:{ownerState:m}},w=y??c?Gn(P,y??c):P,H=(r=(o=h.root)!=null?o:l.Root)!=null?r:iE,z=(s=(i=h.input)!=null?i:l.Input)!=null?s:aE;return f.jsx(Kp,b({slots:{root:H,input:z},componentsProps:w,fullWidth:u,inputComponent:d,multiline:p,ref:n,type:A},x,{classes:v}))});ng.muiName="Input";function lE(e){return De("MuiFormControl",e)}Se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cE=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],uE=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return Te(o,lE,t)},fE=_("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%"})),ko=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:x="outlined"}=r,m=ce(r,cE),v=b({},r,{color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:y,required:h,size:A,variant:x}),P=uE(v),[w,H]=g.useState(()=>{let M=!1;return o&&g.Children.forEach(o,W=>{if(!ic(W,["Input","Select"]))return;const N=ic(W,["Select"])?W.props.input:W;N&&qT(N.props)&&(M=!0)}),M}),[z,j]=g.useState(()=>{let M=!1;return o&&g.Children.forEach(o,W=>{ic(W,["Input","Select"])&&(yd(W.props,!0)||yd(W.props.inputProps,!0))&&(M=!0)}),M}),[O,C]=g.useState(!1);l&&O&&C(!1);const S=u!==void 0&&!l?u:O;let I;const R=g.useMemo(()=>({adornedStart:w,setAdornedStart:H,color:i,disabled:l,error:c,filled:z,focused:S,fullWidth:d,hiddenLabel:p,size:A,onBlur:()=>{C(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{C(!0)},registerEffect:I,required:h,variant:x}),[w,i,l,c,z,S,d,p,I,h,A,x]);return f.jsx(qp.Provider,{value:R,children:f.jsx(fE,b({as:a,ownerState:v,className:le(P.root,s),ref:n},m,{children:o}))})}),jo=rz({createStyledComponent:_("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})});function dE(e){return De("MuiFormControlLabel",e)}const _l=Se("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],vE=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,dE,t)},hE=_("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_l.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,[`&.${_l.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},{[`& .${_l.label}`]:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),mE=_("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}})),oi=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,pE),x=zo(),m=(r=c??l.props.disabled)!=null?r:x==null?void 0:x.disabled,v=y??l.props.required,P={disabled:m,required:v};["checked","name","onChange","value","inputRef"].forEach(C=>{typeof l.props[C]>"u"&&typeof s[C]<"u"&&(P[C]=s[C])});const w=Js({props:s,muiFormControl:x,states:["error"]}),H=b({},s,{disabled:m,labelPlacement:p,required:v,error:w.error}),z=vE(H),j=(o=h.typography)!=null?o:a.typography;let O=d;return O!=null&&O.type!==Qe&&!u&&(O=f.jsx(Qe,b({component:"span"},j,{className:le(z.label,j==null?void 0:j.className),children:O}))),f.jsxs(hE,b({className:le(z.root,i),ownerState:H,ref:n},A,{children:[g.cloneElement(l,P),v?f.jsxs(jo,{display:"block",children:[O,f.jsxs(mE,{ownerState:H,"aria-hidden":!0,className:z.asterisk,children:[" ","*"]})]}):O]}))});function AE(e){return De("MuiFormGroup",e)}Se("MuiFormGroup",["root","row","error"]);const PE=["className","row"],gE=e=>{const{classes:t,row:n,error:r}=e;return Te({root:["root",n&&"row",r&&"error"]},AE,t)},yE=_("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"})),bE=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,i=ce(r,PE),a=zo(),l=Js({props:r,muiFormControl:a,states:["error"]}),c=b({},r,{row:s,error:l.error}),u=gE(c);return f.jsx(yE,b({className:le(u.root,o),ownerState:c,ref:n},i))});function xE(e){return De("MuiFormHelperText",e)}const Yb=Se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var qb;const wE=["children","className","component","disabled","error","filled","focused","margin","required","variant"],HE=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,xE,t)},jE=_("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})),Ef=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,a=ce(r,wE),l=zo(),c=Js({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=HE(u);return f.jsx(jE,b({as:i,ownerState:u,className:le(d.root,s),ref:n},a,{children:o===" "?qb||(qb=f.jsx("span",{className:"notranslate",children:"​"})):o}))});function zE(e){return De("MuiFormLabel",e)}const gc=Se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),OE=["children","className","color","component","disabled","error","filled","focused","required"],CE=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,zE,t)},DE=_("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",[`&.${gc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${gc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gc.error}`]:{color:(e.vars||e).palette.error.main}})),SE=_("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${gc.error}`]:{color:(e.vars||e).palette.error.main}})),Mf=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,a=ce(r,OE),l=zo(),c=Js({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=CE(u);return f.jsxs(DE,b({as:i,ownerState:u,className:le(d.root,s),ref:n},a,{children:[o,c.required&&f.jsxs(SE,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Zb=g.createContext();function TE(e){return De("MuiGrid",e)}const RE=[0,1,2,3,4,5,6,7,8,9,10],kE=["column-reverse","column","row-reverse","row"],EE=["nowrap","wrap-reverse","wrap"],Dl=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qc=Se("MuiGrid",["root","container","item","zeroMinWidth",...RE.map(e=>`spacing-xs-${e}`),...kE.map(e=>`direction-xs-${e}`),...EE.map(e=>`wrap-xs-${e}`),...Dl.map(e=>`grid-xs-${e}`),...Dl.map(e=>`grid-sm-${e}`),...Dl.map(e=>`grid-md-${e}`),...Dl.map(e=>`grid-lg-${e}`),...Dl.map(e=>`grid-xl-${e}`)]),ME=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ba(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function LE({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=pi({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} + ${ba(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 XE({theme:e,ownerState:t}){const n=pi({values:t.direction,breakpoints:e.breakpoints.values});return or({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Qc.item}`]={maxWidth:"none"}),o})}function n9({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 NE({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=pi({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=n9({breakpoints:e.breakpoints.values,values:s})),o=or({theme:e},s,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{marginTop:`-${ba(u)}`,[`& > .${Qc.item}`]:{paddingTop:ba(u)}}:(c=i)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Qc.item}`]:{paddingTop:0}}})}return o}function BE({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=pi({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=n9({breakpoints:e.breakpoints.values,values:s})),o=or({theme:e},s,(a,l)=>{var c;const u=e.spacing(a);return u!=="0px"?{width:`calc(100% + ${ba(u)})`,marginLeft:`-${ba(u)}`,[`& > .${Qc.item}`]:{paddingLeft:ba(u)}}:(c=i)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Qc.item}`]:{paddingLeft:0}}})}return o}function VE(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 IE=_("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=VE(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}),XE,NE,BE,LE);function WE(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 JE=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=WE(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,TE,t)},bo=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiGrid"}),{breakpoints:o}=yr(),s=cp(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:x=!1}=s,m=ce(s,ME),v=y||h,P=l||h,w=g.useContext(Zb),H=u?a||12:w,z={},j=b({},m);o.keys.forEach(S=>{m[S]!=null&&(z[S]=m[S],delete j[S])});const O=b({},s,{columns:H,container:u,direction:d,item:p,rowSpacing:v,columnSpacing:P,wrap:A,zeroMinWidth:x,spacing:h},z,{breakpoints:o.keys}),C=JE(O);return f.jsx(Zb.Provider,{value:H,children:f.jsx(IE,b({ownerState:O,className:le(C.root,i),as:c,ref:n},j))})}),FE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fm(e){return`scale(${e}, ${e**2})`}const YE={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),Kc=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:x=no}=t,m=ce(t,FE),v=$s(),P=g.useRef(),w=yr(),H=g.useRef(null),z=Ht(H,s.ref,n),j=N=>Z=>{if(N){const J=H.current;Z===void 0?N(J):N(J,Z)}},O=j(u),C=j((N,Z)=>{FP(N);const{duration:J,delay:T,easing:B}=Ga({style:h,timeout:A,easing:i},{mode:"enter"});let K;A==="auto"?(K=w.transitions.getAutoHeightDuration(N.clientHeight),P.current=K):K=J,N.style.transition=[w.transitions.create("opacity",{duration:K,delay:T}),w.transitions.create("transform",{duration:Ah?K:K*.666,delay:T,easing:B})].join(","),l&&l(N,Z)}),S=j(c),I=j(y),R=j(N=>{const{duration:Z,delay:J,easing:T}=Ga({style:h,timeout:A,easing:i},{mode:"exit"});let B;A==="auto"?(B=w.transitions.getAutoHeightDuration(N.clientHeight),P.current=B):B=Z,N.style.transition=[w.transitions.create("opacity",{duration:B,delay:J}),w.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=j(p),W=N=>{A==="auto"&&v.start(P.current||0,N),r&&r(H.current,N)};return f.jsx(x,b({appear:o,in:a,nodeRef:H,onEnter:C,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},YE[N],h,s.props.style),ref:z},Z))}))});Kc.muiSupportAuto=!0;function qE(e,t,n,r,o){const[s,i]=g.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return sr(()=>{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 r9=g.useSyncExternalStore;function ZE(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 r9(l,a,i)}function GE(e,t={}){const n=ap(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:a=!1}=y0({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(r9!==void 0?ZE:qE)(l,o,s,i,a)}const UE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],QE=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},KT,t);return b({},t,o)},KE=_(Up,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zp(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"},[`&.${fs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fs.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(.${fs.disabled}, .${fs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${fs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),_E=_(Qp,{name:"MuiInput",slot:"Input",overridesResolver:Gp})({}),rg=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:x="text"}=a,m=ce(a,UE),v=QE(a),w={root:{ownerState:{disableUnderline:l}}},H=h??u?Gn(h??u,w):w,z=(r=(o=A.root)!=null?o:c.Root)!=null?r:KE,j=(s=(i=A.input)!=null?i:c.Input)!=null?s:_E;return f.jsx(Kp,b({slots:{root:z,input:j},slotProps:H,fullWidth:d,inputComponent:p,multiline:y,ref:n,type:x},m,{classes:v}))});rg.muiName="Input";function $E(e){return De("MuiInputAdornment",e)}const Gb=Se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ub;const e6=["children","className","component","disablePointerEvents","disableTypography","position","variant"],t6=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},n6=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,$E,t)},r6=_("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:t6})(({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"})),og=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,e6),p=zo()||{};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=n6(h);return f.jsx(qp.Provider,{value:null,children:f.jsx(r6,b({as:i,ownerState:h,className:le(A.root,s),ref:n},d,{children:typeof o=="string"&&!l?f.jsx(Qe,{color:"text.secondary",children:o}):f.jsxs(g.Fragment,{children:[c==="start"?Ub||(Ub=f.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function o6(e){return De("MuiInputLabel",e)}Se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const s6=["disableAnimation","margin","shrink","variant","className"],i6=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,o6,t);return b({},t,c)},a6=_(Mf,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gc.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)"}))),Ym=g.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,a=ce(r,s6),l=zo();let c=s;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Js({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=i6(d);return f.jsx(a6,b({"data-shrink":c,ownerState:d,ref:n,className:le(p.root,i)},a,{classes:p}))});function l6(e){return De("MuiLink",e)}const c6=Se("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),o9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},u6=e=>o9[e]||e,f6=({theme:e,ownerState:t})=>{const n=u6(t.color),r=Na(e,`palette.${n}`,!1)||t.color,o=Na(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ze(r,.4)},d6=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],p6=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,l6,t)},v6=_(Qe,{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:f6({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"},[`&.${c6.focusVisible}`]:{outline:"auto"}})),$l=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,d6),{isFocusVisibleRef:h,onBlur:A,onFocus:x,ref:m}=vp(),[v,P]=g.useState(!1),w=Ht(n,m),H=C=>{A(C),h.current===!1&&P(!1),a&&a(C)},z=C=>{x(C),h.current===!0&&P(!0),l&&l(C)},j=b({},r,{color:s,component:i,focusVisible:v,underline:u,variant:d}),O=p6(j);return f.jsx(v6,b({color:s,className:le(O.root,o),classes:c,component:i,onBlur:H,onFocus:z,ref:w,ownerState:j,variant:d,sx:[...Object.keys(o9).includes(s)?[]:[{color:s}],...Array.isArray(p)?p:[p]]},y))}),$r=g.createContext({});function h6(e){return De("MuiList",e)}Se("MuiList",["root","padding","dense","subheader"]);const m6=["children","className","component","dense","disablePadding","subheader"],A6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},h6,t)},P6=_("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})),qm=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,m6),d=g.useMemo(()=>({dense:a}),[a]),p=b({},r,{component:i,dense:a,disablePadding:l}),y=A6(p);return f.jsx($r.Provider,{value:d,children:f.jsxs(P6,b({as:i,className:le(y.root,s),ref:n,ownerState:p},u,{children:[c,o]}))})});function g6(e){return De("MuiListItem",e)}const Qi=Se("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function y6(e){return De("MuiListItemButton",e)}const Ki=Se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),b6=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],x6=(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]},w6=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"]},y6,n);return b({},n,c)},H6=_(Ns,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:x6})(({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"}},[`&.${Ki.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ki.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)}},[`&.${Ki.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)}},[`&.${Ki.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ki.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})),s9=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,b6),A=g.useContext($r),x=g.useMemo(()=>({dense:l||A.dense||!1,alignItems:o,disableGutters:c}),[o,A.dense,l,c]),m=g.useRef(null);sr(()=>{s&&m.current&&m.current.focus()},[s]);const v=b({},r,{alignItems:o,dense:x.dense,disableGutters:c,divider:u,selected:p}),P=w6(v),w=Ht(m,n);return f.jsx($r.Provider,{value:x,children:f.jsx(H6,b({ref:w,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}))})});function j6(e){return De("MuiListItemSecondaryAction",e)}Se("MuiListItemSecondaryAction",["root","disableGutters"]);const z6=["className"],O6=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},j6,n)},C6=_("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})),i9=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=ce(r,z6),i=g.useContext($r),a=b({},r,{disableGutters:i.disableGutters}),l=O6(a);return f.jsx(C6,b({className:le(l.root,o),ownerState:a,ref:n},s))});i9.muiName="ListItemSecondaryAction";const D6=["className"],S6=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T6=(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]},R6=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"]},g6,r)},k6=_("div",{name:"MuiListItem",slot:"Root",overridesResolver:T6})(({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&&{[`& > .${Ki.root}`]:{paddingRight:48}},{[`&.${Qi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qi.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)}},[`&.${Qi.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"}},[`&.${Qi.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})),E6=_("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Sl=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:x=!1,disablePadding:m=!1,divider:v=!1,focusVisibleClassName:P,secondaryAction:w,selected:H=!1,slotProps:z={},slots:j={}}=r,O=ce(r.ContainerProps,D6),C=ce(r,S6),S=g.useContext($r),I=g.useMemo(()=>({dense:h||S.dense||!1,alignItems:o,disableGutters:x}),[o,S.dense,h,x]),R=g.useRef(null);sr(()=>{s&&R.current&&R.current.focus()},[s]);const M=g.Children.toArray(a),W=M.length&&ic(M[M.length-1],["ListItemSecondaryAction"]),N=b({},r,{alignItems:o,autoFocus:s,button:i,dense:I.dense,disabled:A,disableGutters:x,disablePadding:m,divider:v,hasSecondaryAction:W,selected:H}),Z=R6(N),J=Ht(R,n),T=j.root||u.Root||k6,B=z.root||d.root||{},K=b({className:le(Z.root,B.className,l),disabled:A},C);let fe=c||"li";return i&&(K.component=c||"div",K.focusVisibleClassName=le(Qi.focusVisible,P),fe=Ns),W?(fe=!K.component&&!c?"div":fe,p==="li"&&(fe==="li"?fe="div":K.component==="li"&&(K.component="div")),f.jsx($r.Provider,{value:I,children:f.jsxs(E6,b({as:p,className:le(Z.container,y),ref:J,ownerState:N},O,{children:[f.jsx(T,b({},B,!Oi(T)&&{as:fe,ownerState:b({},N,B.ownerState)},K,{children:M})),M.pop()]}))})):f.jsx($r.Provider,{value:I,children:f.jsxs(T,b({},B,{as:fe,ref:J},!Oi(T)&&{ownerState:b({},N,B.ownerState)},K,{children:[M,w&&f.jsx(i9,{children:w})]}))})});function M6(e){return De("MuiListItemIcon",e)}const Qb=Se("MuiListItemIcon",["root","alignItemsFlexStart"]),L6=["className"],X6=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},M6,n)},N6=_("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})),B6=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=ce(r,L6),i=g.useContext($r),a=b({},r,{alignItems:i.alignItems}),l=X6(a);return f.jsx(N6,b({className:le(l.root,o),ownerState:a,ref:n},s))});function V6(e){return De("MuiListItemText",e)}const bd=Se("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),I6=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],W6=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"]},V6,t)},J6=_("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bd.primary}`]:t.primary},{[`& .${bd.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})),fa=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,I6),{dense:y}=g.useContext($r);let h=l??o,A=u;const x=b({},r,{disableTypography:i,inset:a,primary:!!h,secondary:!!A,dense:y}),m=W6(x);return h!=null&&h.type!==Qe&&!i&&(h=f.jsx(Qe,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!==Qe&&!i&&(A=f.jsx(Qe,b({variant:"body2",className:m.secondary,color:"text.secondary",display:"block"},d,{children:A}))),f.jsxs(J6,b({className:le(m.root,s),ownerState:x,ref:n},p,{children:[h,A]}))}),F6=["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 a9(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 Tl(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")||!a9(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const Y6=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,F6),y=g.useRef(null),h=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sr(()=>{o&&y.current.focus()},[o]),g.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,w)=>{const H=!y.current.style.width;if(P.clientHeight{const w=y.current,H=P.key,z=ln(w).activeElement;if(H==="ArrowDown")P.preventDefault(),Tl(w,z,c,l,Ph);else if(H==="ArrowUp")P.preventDefault(),Tl(w,z,c,l,Kb);else if(H==="Home")P.preventDefault(),Tl(w,null,c,l,Ph);else if(H==="End")P.preventDefault(),Tl(w,null,c,l,Kb);else if(H.length===1){const j=h.current,O=H.toLowerCase(),C=performance.now();j.keys.length>0&&(C-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&O!==j.keys[0]&&(j.repeating=!1)),j.lastTime=C,j.keys.push(O);const S=z&&!j.repeating&&a9(z,j);j.previousKeyMatched&&(S||Tl(w,z,!1,l,Ph,j))?P.preventDefault():j.previousKeyMatched=!1}u&&u(P)},x=Ht(y,n);let m=-1;g.Children.forEach(i,(P,w)=>{if(!g.isValidElement(P)){m===w&&(m+=1,m>=i.length&&(m=-1));return}P.props.disabled||(d==="selectedMenu"&&P.props.selected||m===-1)&&(m=w),m===w&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const v=g.Children.map(i,(P,w)=>{if(w===m){const H={};return s&&(H.autoFocus=!0),P.props.tabIndex===void 0&&d==="selectedMenu"&&(H.tabIndex=0),g.cloneElement(P,H)}return P});return f.jsx(qm,b({role:"menu",ref:x,className:a,onKeyDown:A,tabIndex:o?0:-1},p,{children:v}))});function q6(e){return De("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const Z6=["onEntering"],G6=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],U6=["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 Q6=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},q6,t)},K6=_(tg,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l9=_(Ar,{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}),_6=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:x=16,open:m,PaperProps:v={},slots:P,slotProps:w,transformOrigin:H={vertical:"top",horizontal:"left"},TransitionComponent:z=Kc,transitionDuration:j="auto",TransitionProps:{onEntering:O}={},disableScrollLock:C=!1}=i,S=ce(i.TransitionProps,Z6),I=ce(i,G6),R=(r=w==null?void 0:w.paper)!=null?r:v,M=g.useRef(),W=Ht(M,R.ref),N=b({},i,{anchorOrigin:c,anchorReference:d,elevation:A,marginThreshold:x,externalPaperSlotProps:R,transformOrigin:H,TransitionComponent:z,transitionDuration:j,TransitionProps:S}),Z=Q6(N),J=g.useCallback(()=>{if(d==="anchorPosition")return u;const be=gh(l),Ee=(be&&be.nodeType===1?be:ln(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,H.vertical),horizontal:$b(be,H.horizontal)}),[H.horizontal,H.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,D=ge.left-Ee.horizontal;const V=nt+Ie.height,Y=D+Ie.width,F=xo(gh(l)),U=F.innerHeight-x,Q=F.innerWidth-x;if(x!==null&&ntU){const oe=V-U;nt-=oe,Ee.vertical+=oe}if(x!==null&&DQ){const oe=Y-Q;D-=oe,Ee.horizontal+=oe}return{top:`${Math.round(nt)}px`,left:`${Math.round(D)}px`,transformOrigin:ex(Ee)}},[l,d,J,T,x]),[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(()=>(C&&window.addEventListener("scroll",E),()=>window.removeEventListener("scroll",E)),[l,C,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=dp(()=>{E()}),Ie=xo(l);return Ie.addEventListener("resize",be),()=>{be.clear(),Ie.removeEventListener("resize",be)}},[l,m,E]);let ie=j;j==="auto"&&!z.muiSupportAuto&&(ie=void 0);const re=h||(l?ln(gh(l)).body:void 0),me=(o=P==null?void 0:P.root)!=null?o:K6,ue=(s=P==null?void 0:P.paper)!=null?s:l9,se=Xs({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=Xs({elementType:me,externalSlotProps:(w==null?void 0:w.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,U6);return f.jsx(me,b({},we,!Oi(me)&&{slotProps:He,disableScrollLock:C},{children:f.jsx(z,b({appear:!0,in:m,onEntering:ee,onExited:G,timeout:ie},S,{children:f.jsx(ue,b({},se,{children:p}))}))}))});function $6(e){return De("MuiMenu",e)}Se("MuiMenu",["root","paper","list"]);const eM=["onEntering"],tM=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nM={vertical:"top",horizontal:"right"},rM={vertical:"top",horizontal:"left"},oM=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},$6,t)},sM=_(_6,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iM=_(l9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aM=_(Y6,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_c=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:x}={},variant:m="selectedMenu",slots:v={},slotProps:P={}}=s,w=ce(s.TransitionProps,eM),H=ce(s,tM),z=yr(),j=z.direction==="rtl",O=b({},s,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:x,PaperProps:y,transitionDuration:A,TransitionProps:w,variant:m}),C=oM(O),S=i&&!c&&p,I=g.useRef(null),R=(B,K)=>{I.current&&I.current.adjustStyleForScrollbar(B,z),x&&x(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:iM,Z=(o=P.paper)!=null?o:y,J=Xs({elementType:v.root,externalSlotProps:P.root,ownerState:O,className:[C.root,l]}),T=Xs({elementType:N,externalSlotProps:Z,ownerState:O,className:C.paper});return f.jsx(sM,b({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:j?"right":"left"},transformOrigin:j?nM:rM,slots:{paper:N,root:v.root},slotProps:{root:J,paper:T},open:p,ref:n,transitionDuration:A,TransitionProps:b({onEntering:R},w),ownerState:O},H,{classes:h,children:f.jsx(aM,b({onKeyDown:M,actions:I,autoFocus:i&&(W===-1||c),autoFocusItem:S,variant:m},u,{className:le(C.list,u.className),children:a}))}))});function lM(e){return De("MuiMenuItem",e)}const Rl=Se("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],uM=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},fM=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"]},lM,i);return b({},i,l)},dM=_(Ns,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:uM})(({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"}},[`&.${Rl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ze(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rl.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)}},[`&.${Rl.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)}},[`&.${Rl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jb.inset}`]:{marginLeft:52},[`& .${bd.root}`]:{marginTop:0,marginBottom:0},[`& .${bd.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"}}))),ho=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,cM),h=g.useContext($r),A=g.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),x=g.useRef(null);sr(()=>{o&&x.current&&x.current.focus()},[o]);const m=b({},r,{dense:A.dense,divider:a,disableGutters:l}),v=fM(r),P=Ht(x,n);let w;return r.disabled||(w=d!==void 0?d:-1),f.jsx($r.Provider,{value:A,children:f.jsx(dM,b({ref:P,role:u,tabIndex:w,component:s,focusVisibleClassName:le(v.focusVisible,c),className:le(v.root,p)},y,{ownerState:m,classes:v}))})});function pM(e){return De("MuiNativeSelect",e)}const sg=Se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vM=["className","disabled","error","IconComponent","inputRef","variant"],hM=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,pM,t)},c9=({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"},[`&.${sg.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}}),mM=_("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${sg.multiple}`]:t.multiple}]}})(c9),u9=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),AM=_("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]}})(u9),PM=g.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard"}=t,c=ce(t,vM),u=b({},t,{disabled:o,variant:l,error:s}),d=hM(u);return f.jsxs(g.Fragment,{children:[f.jsx(mM,b({ownerState:u,className:le(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:f.jsx(AM,{as:i,ownerState:u,className:d.icon})]})});var tx;const gM=["children","classes","className","label","notched"],yM=_("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%"}),bM=_("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 xM(e){const{className:t,label:n,notched:r}=e,o=ce(e,gM),s=n!=null&&n!=="",i=b({},e,{notched:r,withLabel:s});return f.jsx(yM,b({"aria-hidden":!0,className:t,ownerState:i},o,{children:f.jsx(bM,{ownerState:i,children:s?f.jsx("span",{children:n}):tx||(tx=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const wM=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],HM=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_T,t);return b({},t,r)},jM=_(Up,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zp})(({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 .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${io.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${io.focused} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${io.error} .${io.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${io.disabled} .${io.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"}))}),zM=_(xM,{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}}),OM=_(Qp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Gp})(({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})),ig=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:x="text"}=l,m=ce(l,wM),v=HM(l),P=zo(),w=Js({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),H=b({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:P,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:y,size:w.size,type:x}),z=(r=(o=A.root)!=null?o:c.Root)!=null?r:jM,j=(s=(i=A.input)!=null?i:c.Input)!=null?s:OM;return f.jsx(Kp,b({slots:{root:z,input:j},renderSuffix:O=>f.jsx(zM,{ownerState:H,className:v.notchedOutline,label:p!=null&&p!==""&&w.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:x},m,{classes:b({},v,{notchedOutline:null})}))});ig.muiName="Input";const CM=yn(f.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),DM=yn(f.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),SM=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"),TM=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"),RM=_("span",{shouldForwardProp:pn})({position:"relative",display:"flex"}),kM=_(SM)({transform:"scale(1)"}),EM=_(TM)(({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 f9(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=b({},e,{checked:t});return f.jsxs(RM,{className:n.root,ownerState:o,children:[f.jsx(kM,{fontSize:r,className:n.background,ownerState:o}),f.jsx(EM,{fontSize:r,className:n.dot,ownerState:o})]})}const d9=g.createContext(void 0);function MM(){return g.useContext(d9)}function LM(e){return De("MuiRadio",e)}const nx=Se("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),XM=["checked","checkedIcon","color","icon","name","onChange","size","className"],NM=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,LM,t))},BM=_($P,{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 VM(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const rx=f.jsx(f9,{checked:!0}),ox=f.jsx(f9,{}),Zm=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,XM),A=b({},s,{color:l,size:p}),x=NM(A),m=MM();let v=i;const P=Yf(d,m&&m.onChange);let w=u;return m&&(typeof v>"u"&&(v=VM(m.value,s.value)),typeof w>"u"&&(w=m.name)),f.jsx(BM,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:x,name:w,checked:v,onChange:P,ref:n,className:le(x.root,y)},h))}),IM=["actions","children","defaultValue","name","onChange","value"],Gm=g.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:s,name:i,onChange:a,value:l}=t,c=ce(t,IM),u=g.useRef(null),[d,p]=Wo({controlled:l,default:s,name:"RadioGroup"});g.useImperativeHandle(r,()=>({focus:()=>{let x=u.current.querySelector("input:not(:disabled):checked");x||(x=u.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const y=Ht(n,u),h=wo(i),A=g.useMemo(()=>({name:h,onChange(x){p(x.target.value),a&&a(x,x.target.value)},value:d}),[h,a,p,d]);return f.jsx(d9.Provider,{value:A,children:f.jsx(bE,b({role:"radiogroup",ref:y},c,{children:o}))})});function WM(e){return De("MuiSelect",e)}const kl=Se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sx;const JM=["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"],FM=_("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${kl.select}`]:t.select},{[`&.${kl.select}`]:t[n.variant]},{[`&.${kl.error}`]:t.error},{[`&.${kl.multiple}`]:t.multiple}]}})(c9,{[`&.${kl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),YM=_("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]}})(u9),qM=_("input",{shouldForwardProp:e=>Oz(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 ZM(e){return e==null||typeof e=="string"&&!e.trim()}const GM=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,WM,t)},UM=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:x,labelId:m,MenuProps:v={},multiple:P,name:w,onBlur:H,onChange:z,onClose:j,onFocus:O,onOpen:C,open:S,readOnly:I,renderValue:R,SelectDisplayProps:M={},tabIndex:W,value:N,variant:Z="standard"}=t,J=ce(t,JM),[T,B]=Wo({controlled:N,default:d,name:"Select"}),[K,fe]=Wo({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,x),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=ln(ee.current).getElementById(m);if(je){const Ue=()=>{getSelection().isCollapsed&&ee.current.focus()};return je.addEventListener("click",Ue),()=>{je.removeEventListener("click",Ue)}}},[m]);const we=(je,Ue)=>{je?C&&C(Ue):j&&j(Ue),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 Ue=Ee.find(X=>X.props.value===je.target.value);Ue!==void 0&&(B(Ue.props.value),z&&z(je,Ue))},nt=je=>Ue=>{let X;if(Ue.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(Ue),T!==X&&(B(X),z)){const L=Ue.nativeEvent||Ue,ae=new L.constructor(L.type,L);Object.defineProperty(ae,"target",{writable:!0,value:{value:X,name:w}}),z(ae,je)}P||we(!1,Ue)}},D=je=>{I||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),we(!0,je))},V=G!==null&&K,Y=je=>{!V&&H&&(Object.defineProperty(je,"target",{writable:!0,value:{value:T,name:w}}),H(je))};delete J["aria-invalid"];let F,U;const Q=[];let oe=!1;(yd({value:T})||y)&&(R?F=R(T):oe=!0);const ke=Ee.map(je=>{if(!g.isValidElement(je))return null;let Ue;if(P){if(!Array.isArray(T))throw new Error(Es(2));Ue=T.some(X=>ix(X,je.props.value)),Ue&&oe&&Q.push(je.props.children)}else Ue=ix(T,je.props.value),Ue&&oe&&(U=je.props.children);return g.cloneElement(je,{"aria-selected":Ue?"true":"false",onClick:nt(je),onKeyUp:X=>{X.key===" "&&X.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(X)},role:"option",selected:Ue,value:void 0,"data-value":je.props.value})});oe&&(P?Q.length===0?F=null:F=Q.reduce((je,Ue,X)=>(je.push(Ue),X{const{classes:t}=e;return t},ag={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pn(e)&&e!=="variant",slot:"Root"},$M=_(rg,ag)(""),eL=_(ig,ag)(""),tL=_(ng,ag)(""),$c=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=Z2,id:d,input:p,inputProps:y,label:h,labelId:A,MenuProps:x,multiple:m=!1,native:v=!1,onClose:P,onOpen:w,open:H,renderValue:z,SelectDisplayProps:j,variant:O="outlined"}=r,C=ce(r,QM),S=v?PM:UM,I=zo(),R=Js({props:r,muiFormControl:I,states:["variant","error"]}),M=R.variant||O,W=b({},r,{variant:M,classes:i}),N=_M(W),Z=ce(N,KM),J=p||{standard:f.jsx($M,{ownerState:W}),outlined:f.jsx(eL,{label:h,ownerState:W}),filled:f.jsx(tL,{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:x,onClose:P,onOpen:w,open:H,renderValue:z,SelectDisplayProps:b({id:d},j)},y,{classes:y?Gn(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},C))})});$c.muiName="Select";function nL(e){return De("MuiSnackbarContent",e)}Se("MuiSnackbarContent",["root","message","action"]);const rL=["action","className","message","role"],oL=e=>{const{classes:t}=e;return Te({root:["root"],action:["action"],message:["message"]},nL,t)},sL=_(Ar,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=zj(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}})}),iL=_("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),aL=_("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lL=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,rL),c=r,u=oL(c);return f.jsxs(sL,b({role:a,square:!0,elevation:6,className:le(u.root,s),ownerState:c,ref:n},l,{children:[f.jsx(iL,{className:u.message,ownerState:c,children:i}),o?f.jsx(aL,{className:u.action,ownerState:c,children:o}):null]}))});function cL(e){return De("MuiSnackbar",e)}Se("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const uL=["onEnter","onExited"],fL=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dL=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${te(n.vertical)}${te(n.horizontal)}`]};return Te(r,cL,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"})})}),pL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSnackbar"}),o=yr(),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:x,TransitionComponent:m=Kc,transitionDuration:v=s,TransitionProps:{onEnter:P,onExited:w}={}}=r,H=ce(r.TransitionProps,uL),z=ce(r,fL),j=b({},r,{anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:m,transitionDuration:v}),O=dL(j),{getRootProps:C,onClickAway:S}=zT(b({},j)),[I,R]=g.useState(!0),M=Xs({elementType:ax,getSlotProps:C,externalForwardedProps:z,ownerState:j,additionalProps:{ref:n},className:[O.root,d]}),W=Z=>{R(!0),w&&w(Z)},N=(Z,J)=>{R(!1),P&&P(Z,J)};return!x&&I?null:f.jsx(k2,b({onClickAway:S},p,{children:f.jsx(ax,b({},M,{children:f.jsx(m,b({appear:!0,in:x,timeout:v,direction:a==="top"?"down":"up",onEnter:N,onExited:W},H,{children:u||f.jsx(lL,b({message:A,action:i},y))}))}))}))});function vL(e){return De("MuiTooltip",e)}const ws=Se("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),hL=["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 mL(e){return Math.round(e*1e5)/1e5}const AL=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,vL,t)},PL=_(Yp,{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"] .${ws.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ws.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ws.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"] .${ws.arrow}`]:b({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),gL=_("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:`${mL(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ws.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"})),[`.${ws.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"})),[`.${ws.popper}[data-popper-placement*="top"] &`]:b({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ws.popper}[data-popper-placement*="bottom"] &`]:b({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),yL=_("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 sf=!1;const lx=new pu;let El={x:0,y:0};function af(e,t){return n=>{t&&t(n),e(n)}}const lg=g.forwardRef(function(t,n){var r,o,s,i,a,l,c,u,d,p,y,h,A,x,m,v,P,w,H;const z=Re({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:O,components:C={},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=Kc,TransitionProps:be}=z,Ie=ce(z,hL),Ee=g.isValidElement(O)?O:f.jsx("span",{children:O}),ge=yr(),nt=ge.direction==="rtl",[D,V]=g.useState(),[Y,F]=g.useState(null),U=g.useRef(!1),Q=W||B,oe=$s(),ke=$s(),Fe=$s(),Ge=$s(),[Le,he]=Wo({controlled:ie,default:!1,name:"Tooltip",state:"open"});let Ke=Le;const mt=wo(K),jt=g.useRef(),je=On(()=>{jt.current!==void 0&&(document.body.style.WebkitUserSelect=jt.current,jt.current=void 0),Ge.clear()});g.useEffect(()=>je,[je]);const Ue=Ye=>{lx.clear(),sf=!0,he(!0),G&&!Ke&&G(Ye)},X=On(Ye=>{lx.start(800+fe,()=>{sf=!1}),he(!1),ee&&Ke&&ee(Ye),oe.start(ge.transitions.duration.shortest,()=>{U.current=!1})}),L=Ye=>{U.current&&Ye.type!=="touchstart"||(D&&D.removeAttribute("title"),ke.clear(),Fe.clear(),Z||sf&&J?ke.start(sf?J:Z,()=>{Ue(Ye)}):Ue(Ye))},ae=Ye=>{ke.clear(),Fe.start(fe,()=>{X(Ye)})},{isFocusVisibleRef:Ae,onBlur:ve,onFocus:xe,ref:Me}=vp(),[,Ne]=g.useState(!1),Xe=Ye=>{ve(Ye),Ae.current===!1&&(Ne(!1),ae(Ye))},qe=Ye=>{D||V(Ye.currentTarget),xe(Ye),Ae.current===!0&&(Ne(!0),L(Ye))},ft=Ye=>{U.current=!0;const bn=Ee.props;bn.onTouchStart&&bn.onTouchStart(Ye)},Nt=L,Ot=ae,hn=Ye=>{ft(Ye),Fe.clear(),oe.clear(),je(),jt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ge.start(T,()=>{document.body.style.WebkitUserSelect=jt.current,L(Ye)})},Ut=Ye=>{Ee.props.onTouchEnd&&Ee.props.onTouchEnd(Ye),je(),Fe.start(E,()=>{X(Ye)})};g.useEffect(()=>{if(!Ke)return;function Ye(bn){(bn.key==="Escape"||bn.key==="Esc")&&X(bn)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[X,Ke]);const Ct=Ht(Ee.ref,Me,V,n);!He&&He!==0&&(Ke=!1);const bt=g.useRef(),nn=Ye=>{const bn=Ee.props;bn.onMouseMove&&bn.onMouseMove(Ye),El={x:Ye.clientX,y:Ye.clientY},bt.current&&bt.current.update()},Vn={},qs=typeof He=="string";I?(Vn.title=!Ke&&qs&&!M?He:null,Vn["aria-describedby"]=Ke?mt:null):(Vn["aria-label"]=qs?He:null,Vn["aria-labelledby"]=Ke&&!qs?mt:null);const Dn=b({},Vn,Ie,Ee.props,{className:le(Ie.className,Ee.props.className),onTouchStart:ft,ref:Ct},B?{onMouseMove:nn}:{}),Do={};N||(Dn.onTouchStart=hn,Dn.onTouchEnd=Ut),M||(Dn.onMouseOver=af(Nt,Dn.onMouseOver),Dn.onMouseLeave=af(Ot,Dn.onMouseLeave),Q||(Do.onMouseOver=Nt,Do.onMouseLeave=Ot)),R||(Dn.onFocus=af(qe,Dn.onFocus),Dn.onBlur=af(Xe,Dn.onBlur),Q||(Do.onFocus=qe,Do.onBlur=Xe));const Xi=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]),Br=b({},z,{isRtl:nt,arrow:j,disableInteractive:Q,placement:re,PopperComponentProp:me,touch:U.current}),Vr=AL(Br),So=(r=(o=de.popper)!=null?o:C.Popper)!=null?r:PL,ne=(s=(i=(a=de.transition)!=null?a:C.Transition)!=null?i:we)!=null?s:Kc,q=(l=(c=de.tooltip)!=null?c:C.Tooltip)!=null?l:gL,Pe=(u=(d=de.arrow)!=null?d:C.Arrow)!=null?u:yL,Be=Ql(So,b({},ue,(p=se.popper)!=null?p:S.popper,{className:le(Vr.popper,ue==null?void 0:ue.className,(y=(h=se.popper)!=null?h:S.popper)==null?void 0:y.className)}),Br),pt=Ql(ne,b({},be,(A=se.transition)!=null?A:S.transition),Br),Bt=Ql(q,b({},(x=se.tooltip)!=null?x:S.tooltip,{className:le(Vr.tooltip,(m=(v=se.tooltip)!=null?v:S.tooltip)==null?void 0:m.className)}),Br),qt=Ql(Pe,b({},(P=se.arrow)!=null?P:S.arrow,{className:le(Vr.arrow,(w=(H=se.arrow)!=null?H:S.arrow)==null?void 0:w.className)}),Br);return f.jsxs(g.Fragment,{children:[g.cloneElement(Ee,Dn),f.jsx(So,b({as:me??Yp,placement:re,anchorEl:B?{getBoundingClientRect:()=>({top:El.y,left:El.x,right:El.x,bottom:El.y,width:0,height:0})}:D,popperRef:bt,open:D?Ke:!1,id:mt,transition:!0},Do,Be,{popperOptions:Xi,children:({TransitionProps:Ye})=>f.jsx(ne,b({timeout:ge.transitions.duration.shorter},Ye,pt,{children:f.jsxs(q,b({},Bt,{children:[He,j?f.jsx(Pe,b({},qt,{ref:F})):null]}))}))}))]})});function bL(e){return De("MuiSwitch",e)}const Sn=Se("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xL=["className","color","edge","size","sx"],wL=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,bL,t);return b({},t,l)},HL=_("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)"}}})),jL=_($P,{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"?Va(e.palette[t.color].main,.62):Ba(e.palette[t.color].main,.55)}`}},[`&.${Sn.checked} + .${Sn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),zL=_("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}`})),OL=_("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%"})),p9=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,xL),u=b({},r,{color:s,edge:i,size:a}),d=wL(u),p=f.jsx(OL,{className:d.thumb,ownerState:u});return f.jsxs(HL,{className:le(d.root,o),sx:l,ownerState:u,children:[f.jsx(jL,b({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},c,{classes:b({},d,{root:d.switchBase})})),f.jsx(zL,{className:d.track,ownerState:u})]})}),v9=g.createContext();function CL(e){return De("MuiTable",e)}Se("MuiTable",["root","stickyHeader"]);const DL=["className","component","padding","size","stickyHeader"],SL=e=>{const{classes:t,stickyHeader:n}=e;return Te({root:["root",n&&"stickyHeader"]},CL,t)},TL=_("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",h9=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,DL),u=b({},r,{component:s,padding:i,size:a,stickyHeader:l}),d=SL(u),p=g.useMemo(()=>({padding:i,size:a,stickyHeader:l}),[i,a,l]);return f.jsx(v9.Provider,{value:p,children:f.jsx(TL,b({as:s,role:s===cx?null:"table",ref:n,className:le(d.root,o),ownerState:u},c))})}),bu=g.createContext();function RL(e){return De("MuiTableBody",e)}Se("MuiTableBody",["root"]);const kL=["className","component"],EL=e=>{const{classes:t}=e;return Te({root:["root"]},RL,t)},ML=_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),LL={variant:"body"},ux="tbody",m9=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableBody"}),{className:o,component:s=ux}=r,i=ce(r,kL),a=b({},r,{component:s}),l=EL(a);return f.jsx(bu.Provider,{value:LL,children:f.jsx(ML,b({className:le(l.root,o),as:s,ref:n,role:s===ux?null:"rowgroup",ownerState:a},i))})});function XL(e){return De("MuiTableCell",e)}const NL=Se("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),BL=["align","className","component","padding","scope","size","sortDirection","variant"],VL=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,XL,t)},IL=_("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"?Va(Ze(e.palette.divider,1),.88):Ba(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",[`&.${NL.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})),kn=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,BL),y=g.useContext(v9),h=g.useContext(bu),A=h&&h.variant==="head";let x;i?x=i:x=A?"th":"td";let m=l;x==="td"?m=void 0:!m&&A&&(m="col");const v=d||h&&h.variant,P=b({},r,{align:o,component:x,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}),w=VL(P);let H=null;return u&&(H=u==="asc"?"ascending":"descending"),f.jsx(IL,b({as:x,ref:n,className:le(w.root,s),"aria-sort":H,scope:m,ownerState:P},p))});function WL(e){return De("MuiTableContainer",e)}Se("MuiTableContainer",["root"]);const JL=["className","component"],FL=e=>{const{classes:t}=e;return Te({root:["root"]},WL,t)},YL=_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),A9=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,i=ce(r,JL),a=b({},r,{component:s}),l=FL(a);return f.jsx(YL,b({ref:n,as:s,className:le(l.root,o),ownerState:a},i))});function qL(e){return De("MuiTableFooter",e)}Se("MuiTableFooter",["root"]);const ZL=["className","component"],GL=e=>{const{classes:t}=e;return Te({root:["root"]},qL,t)},UL=_("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),QL={variant:"footer"},fx="tfoot",KL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableFooter"}),{className:o,component:s=fx}=r,i=ce(r,ZL),a=b({},r,{component:s}),l=GL(a);return f.jsx(bu.Provider,{value:QL,children:f.jsx(UL,b({as:s,className:le(l.root,o),ref:n,role:s===fx?null:"rowgroup",ownerState:a},i))})});function _L(e){return De("MuiTableHead",e)}Se("MuiTableHead",["root"]);const $L=["className","component"],eX=e=>{const{classes:t}=e;return Te({root:["root"]},_L,t)},tX=_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nX={variant:"head"},dx="thead",rX=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableHead"}),{className:o,component:s=dx}=r,i=ce(r,$L),a=b({},r,{component:s}),l=eX(a);return f.jsx(bu.Provider,{value:nX,children:f.jsx(tX,b({as:s,className:le(l.root,o),ref:n,role:s===dx?null:"rowgroup",ownerState:a},i))})});function oX(e){return De("MuiToolbar",e)}Se("MuiToolbar",["root","gutters","regular","dense"]);const sX=["className","component","disableGutters","variant"],iX=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},oX,t)},aX=_("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),P9=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,sX),c=b({},r,{component:s,disableGutters:i,variant:a}),u=iX(c);return f.jsx(aX,b({as:s,className:le(u.root,o),ref:n,ownerState:c},l))}),lX=yn(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),cX=yn(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),uX=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],fX=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:x,page:m,rowsPerPage:v,showFirstButton:P,showLastButton:w,slots:H={},slotProps:z={}}=t,j=ce(t,uX),O=yr(),C=se=>{x(se,0)},S=se=>{x(se,m-1)},I=se=>{x(se,m+1)},R=se=>{x(se,Math.max(0,Math.ceil(p/v)-1))},M=(r=H.firstButton)!=null?r:Zn,W=(o=H.lastButton)!=null?o:Zn,N=(s=H.nextButton)!=null?s:Zn,Z=(i=H.previousButton)!=null?i:Zn,J=(a=H.firstButtonIcon)!=null?a:CM,T=(l=H.lastButtonIcon)!=null?l:DM,B=(c=H.nextButtonIcon)!=null?c:cX,K=(u=H.previousButtonIcon)!=null?u:lX,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},j,{children:[P&&f.jsx(fe,b({onClick:C,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))})),w&&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))}))]}))});function dX(e){return De("MuiTablePagination",e)}const yc=Se("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var px;const pX=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],vX=_(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}})),hX=_(P9,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>b({[`& .${yc.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},[`& .${yc.actions}`]:{flexShrink:0,marginLeft:20}})),mX=_("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),AX=_("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>b({},e.typography.body2,{flexShrink:0})),PX=_($c,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>b({[`& .${yc.selectIcon}`]:t.selectIcon,[`& .${yc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),gX=_(ho,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),yX=_("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>b({},e.typography.body2,{flexShrink:0}));function bX({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function xX(e){return`Go to ${e} page`}const wX=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"]},dX,t)},HX=g.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=fX,backIconButtonProps:i,className:a,colSpan:l,component:c=kn,count:u,disabled:d=!1,getItemAriaLabel:p=xX,labelDisplayedRows:y=bX,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:A,onPageChange:x,onRowsPerPageChange:m,page:v,rowsPerPage:P,rowsPerPageOptions:w=[10,25,50,100],SelectProps:H={},showFirstButton:z=!1,showLastButton:j=!1,slotProps:O={},slots:C={}}=o,S=ce(o,pX),I=o,R=wX(I),M=(r=O==null?void 0:O.select)!=null?r:H,W=M.native?"option":gX;let N;(c===kn||c==="td")&&(N=l||1e3);const Z=wo(M.id),J=wo(M.labelId),T=()=>u===-1?(v+1)*P:P===-1?u:Math.min(u,(v+1)*P);return f.jsx(vX,b({colSpan:N,ref:n,as:c,ownerState:I,className:le(R.root,a)},S,{children:f.jsxs(hX,{className:R.toolbar,children:[f.jsx(mX,{className:R.spacer}),w.length>1&&f.jsx(AX,{className:R.selectLabel,id:J,children:h}),w.length>1&&f.jsx(PX,b({variant:"standard"},!M.variant&&{input:px||(px=f.jsx(Kp,{}))},{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:w.map(B=>g.createElement(W,b({},!Oi(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(yX,{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:x,page:v,rowsPerPage:P,showFirstButton:z,showLastButton:j,slotProps:O.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))});function jX(e){return De("MuiTableRow",e)}const vx=Se("MuiTableRow",["root","selected","hover","head","footer"]),zX=["className","component","hover","selected"],OX=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"]},jX,t)},CX=_("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",xd=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,zX),c=g.useContext(bu),u=b({},r,{component:s,hover:i,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=OX(u);return f.jsx(CX,b({as:s,ref:n,className:le(d.root,o),role:s===hx?null:"row",ownerState:u},l))});function DX(e){return De("MuiTextField",e)}Se("MuiTextField",["root"]);const SX=["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"],TX={standard:rg,filled:ng,outlined:ig},RX=e=>{const{classes:t}=e;return Te({root:["root"]},DX,t)},kX=_(ko,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ks=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:x,inputProps:m,InputProps:v,inputRef:P,label:w,maxRows:H,minRows:z,multiline:j=!1,name:O,onBlur:C,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,SX),fe=b({},r,{autoFocus:s,color:l,disabled:u,error:d,fullWidth:y,multiline:j,required:M,select:N,variant:B}),E=RX(fe),ee={};B==="outlined"&&(x&&typeof x.shrink<"u"&&(ee.notched=x.shrink),ee.label=w),N&&((!Z||!Z.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const G=wo(A),ie=h&&G?`${G}-helper-text`:void 0,re=w&&G?`${G}-label`:void 0,me=TX[B],ue=f.jsx(me,b({"aria-describedby":ie,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:j,name:O,rows:W,maxRows:H,minRows:z,type:J,value:T,id:G,inputRef:P,onBlur:C,onChange:S,onFocus:I,placeholder:R,inputProps:m},ee,v));return f.jsxs(kX,b({className:le(E.root,a),disabled:u,error:d,fullWidth:y,ref:n,required:M,color:l,variant:B,ownerState:fe},K,{children:[w!=null&&w!==""&&f.jsx(Ym,b({htmlFor:G,id:re},x,{children:w})),N?f.jsx($c,b({"aria-describedby":ie,id:G,labelId:re,value:T,input:ue},Z,{children:i})):ue,h&&f.jsx(Ef,b({id:ie},p,{children:h}))]}))}),$t="/hub",$p="/services/japps",cg=["Environments"],EX=["Any","Owned by me","Shared with me"],MX=["Recently modified","Name: A-Z","Name: Z-A"],LX=["Running","Ready","Pending","Unknown"],ug="startAppId";var fl=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(){}},el=typeof window>"u"||"Deno"in globalThis;function Hr(){}function XX(e,t){return typeof e=="function"?e(t):e}function Um(e){return typeof e=="number"&&e>=0&&e!==1/0}function g9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xa(e,t){return typeof e=="function"?e(t):e}function Ur(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!==fg(i,t.options))return!1}else if(!eu(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(Di(t.options.mutationKey)!==Di(s))return!1}else if(!eu(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Di)(e)}function Di(e){return JSON.stringify(e,(t,n)=>Qm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function eu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!eu(e[n],t[n])):!1}function y9(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?y9(e,t):t}function BX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function VX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var b9=Symbol();function x9(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===b9?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ii,ps,Ha,Cw,IX=(Cw=class extends fl{constructor(){super();We(this,ii);We(this,ps);We(this,Ha);ze(this,Ha,t=>{if(!el&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,ps)||this.setEventListener(k(this,Ha))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ps))==null||t.call(this),ze(this,ps,void 0))}setEventListener(t){var n;ze(this,Ha,t),(n=k(this,ps))==null||n.call(this),ze(this,ps,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ii)!==t&&(ze(this,ii,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ii)=="boolean"?k(this,ii):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ii=new WeakMap,ps=new WeakMap,Ha=new WeakMap,Cw),dg=new IX,ja,vs,za,Dw,WX=(Dw=class extends fl{constructor(){super();We(this,ja,!0);We(this,vs);We(this,za);ze(this,za,t=>{if(!el&&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,vs)||this.setEventListener(k(this,za))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,vs))==null||t.call(this),ze(this,vs,void 0))}setEventListener(t){var n;ze(this,za,t),(n=k(this,vs))==null||n.call(this),ze(this,vs,t(this.setOnline.bind(this)))}setOnline(t){k(this,ja)!==t&&(ze(this,ja,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,ja)}},ja=new WeakMap,vs=new WeakMap,za=new WeakMap,Dw),Hd=new WX;function JX(e){return Math.min(1e3*2**e,3e4)}function w9(e){return(e??"online")==="online"?Hd.isOnline():!0}var H9=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yh(e){return e instanceof H9}function j9(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 H9(m)),(v=e.abort)==null||v.call(e))},c=()=>{t=!0},u=()=>{t=!1},d=()=>dg.isFocused()&&(e.networkMode==="always"||Hd.isOnline())&&e.canRun(),p=()=>w9(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)}),x=()=>{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 w=e.retry??(el?0:3),H=e.retryDelay??JX,z=typeof H=="function"?H(n,P):H,j=w===!0||typeof w=="number"&&nd()?void 0:A()).then(()=>{t?h(P):x()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?x():A().then(x),a)}}function FX(){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 sn=FX(),ai,Sw,z9=(Sw=class{constructor(){We(this,ai)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Um(this.gcTime)&&ze(this,ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(el?1/0:5*60*1e3))}clearGcTimeout(){k(this,ai)&&(clearTimeout(k(this,ai)),ze(this,ai,void 0))}},ai=new WeakMap,Sw),Oa,Ca,wr,jn,ou,li,qr,Eo,Tw,YX=(Tw=class extends z9{constructor(t){super();We(this,qr);We(this,Oa);We(this,Ca);We(this,wr);We(this,jn);We(this,ou);We(this,li);ze(this,li,!1),ze(this,ou,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,wr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Oa,qX(this.options)),this.state=t.state??k(this,Oa),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,ou),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,wr).remove(this)}setData(t,n){const r=Km(this.state.data,t,this.options);return et(this,qr,Eo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,qr,Eo).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(Hr).catch(Hr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Oa))}isActive(){return this.observers.some(t=>Ur(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||!g9(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,wr).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,li)?k(this,jn).cancel({revert:!0}):k(this,jn).cancelRetry()),this.scheduleGc()),k(this,wr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,qr,Eo).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,li,!0),r.signal)})},s=()=>{const d=x9(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),ze(this,li,!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,Ca,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&et(this,qr,Eo).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||et(this,qr,Eo).call(this,{type:"error",error:d}),yh(d)||((y=(p=k(this,wr).config).onError)==null||y.call(p,d,this),(A=(h=k(this,wr).config).onSettled)==null||A.call(h,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,jn,j9({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}try{this.setData(d)}catch(x){a(x);return}(y=(p=k(this,wr).config).onSuccess)==null||y.call(p,d,this),(A=(h=k(this,wr).config).onSettled)==null||A.call(h,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(d,p)=>{et(this,qr,Eo).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{et(this,qr,Eo).call(this,{type:"pause"})},onContinue:()=>{et(this,qr,Eo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),k(this,jn).start()}},Oa=new WeakMap,Ca=new WeakMap,wr=new WeakMap,jn=new WeakMap,ou=new WeakMap,li=new WeakMap,qr=new WeakSet,Eo=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,...O9(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,Ca)?{...k(this,Ca),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),sn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,wr).notify({query:this,type:"updated",action:t})})},Tw);function O9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qX(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 ao,Rw,ZX=(Rw=class extends fl{constructor(t={}){super();We(this,ao);this.config=t,ze(this,ao,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??fg(o,n);let i=this.get(s);return i||(i=new YX({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){k(this,ao).has(t.queryHash)||(k(this,ao).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,ao).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,ao).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){sn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,ao).get(t)}getAll(){return[...k(this,ao).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){sn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){sn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){sn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ao=new WeakMap,Rw),lo,Tn,ci,co,rs,kw,GX=(kw=class extends z9{constructor(t){super();We(this,co);We(this,lo);We(this,Tn);We(this,ci);this.mutationId=t.mutationId,ze(this,Tn,t.mutationCache),ze(this,lo,[]),this.state=t.state||C9(),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,lo).includes(t)||(k(this,lo).push(t),this.clearGcTimeout(),k(this,Tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,lo,k(this,lo).filter(n=>n!==t)),this.scheduleGc(),k(this,Tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,lo).length||(this.state.status==="pending"?this.scheduleGc():k(this,Tn).remove(this))}continue(){var t;return((t=k(this,ci))==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,x,m,v,P,w,H,z,j;ze(this,ci,j9({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{et(this,co,rs).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{et(this,co,rs).call(this,{type:"pause"})},onContinue:()=>{et(this,co,rs).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,ci).canStart();try{if(!n){et(this,co,rs).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 C=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));C!==this.state.context&&et(this,co,rs).call(this,{type:"pending",context:C,variables:t,isPaused:r})}const O=await k(this,ci).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)),et(this,co,rs).call(this,{type:"success",data:O}),O}catch(O){try{throw await((m=(x=k(this,Tn).config).onError)==null?void 0:m.call(x,O,t,this.state.context,this)),await((P=(v=this.options).onError)==null?void 0:P.call(v,O,t,this.state.context)),await((H=(w=k(this,Tn).config).onSettled)==null?void 0:H.call(w,void 0,O,this.state.variables,this.state.context,this)),await((j=(z=this.options).onSettled)==null?void 0:j.call(z,void 0,O,t,this.state.context)),O}finally{et(this,co,rs).call(this,{type:"error",error:O})}}finally{k(this,Tn).runNext(this)}}},lo=new WeakMap,Tn=new WeakMap,ci=new WeakMap,co=new WeakSet,rs=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),sn.batch(()=>{k(this,lo).forEach(r=>{r.onMutationUpdate(t)}),k(this,Tn).notify({mutation:this,type:"updated",action:t})})},kw);function C9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ar,su,Ew,UX=(Ew=class extends fl{constructor(t={}){super();We(this,ar);We(this,su);this.config=t,ze(this,ar,new Map),ze(this,su,Date.now())}build(t,n,r){const o=new GX({mutationCache:this,mutationId:++Ru(this,su)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=lf(t),r=k(this,ar).get(n)??[];r.push(t),k(this,ar).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=lf(t);if(k(this,ar).has(n)){const o=(r=k(this,ar).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?k(this,ar).delete(n):k(this,ar).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,ar).get(lf(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,ar).get(lf(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){sn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,ar).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){sn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return sn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Hr))))}},ar=new WeakMap,su=new WeakMap,Ew);function lf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function QX(e){return{onFetch:(t,n)=>{const r=async()=>{var h,A,x,m,v;const o=t.options,s=(x=(A=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:A.fetchMore)==null?void 0:x.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=x9(t.options,t.fetchOptions),p=async(P,w,H)=>{if(c)return Promise.reject();if(w==null&&P.pages.length)return Promise.resolve(P);const z={queryKey:t.queryKey,pageParam:w,direction:H?"backward":"forward",meta:t.options.meta};u(z);const j=await d(z),{maxPages:O}=t.options,C=H?VX:BX;return{pages:C(P.pages,j,O),pageParams:C(P.pageParams,w,O)}};let y;if(s&&i.length){const P=s==="backward",w=P?KX:yx,H={pages:i,pageParams:a},z=w(o,H);y=await p(H,z,P)}else{y=await p(l,a[0]??o.initialPageParam);const P=e??i.length;for(let w=1;w{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 KX(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,hs,ms,Da,Sa,As,Ta,Ra,Mw,_X=(Mw=class{constructor(e={}){We(this,Wt);We(this,hs);We(this,ms);We(this,Da);We(this,Sa);We(this,As);We(this,Ta);We(this,Ra);ze(this,Wt,e.queryCache||new ZX),ze(this,hs,e.mutationCache||new UX),ze(this,ms,e.defaultOptions||{}),ze(this,Da,new Map),ze(this,Sa,new Map),ze(this,As,0)}mount(){Ru(this,As)._++,k(this,As)===1&&(ze(this,Ta,dg.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onFocus())})),ze(this,Ra,Hd.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onOnline())})))}unmount(){var e,t;Ru(this,As)._--,k(this,As)===0&&((e=k(this,Ta))==null||e.call(this),ze(this,Ta,void 0),(t=k(this,Ra))==null||t.call(this),ze(this,Ra,void 0))}isFetching(e){return k(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,hs).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(xa(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=XX(t,s);if(i!==void 0)return k(this,Wt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return sn.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);sn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Wt),r={type:"active",...e};return sn.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=sn.batch(()=>k(this,Wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Hr).catch(Hr)}invalidateQueries(e={},t={}){return sn.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=sn.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(Hr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Hr)}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(xa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Hr).catch(Hr)}fetchInfiniteQuery(e){return e.behavior=QX(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Hr).catch(Hr)}resumePausedMutations(){return Hd.isOnline()?k(this,hs).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Wt)}getMutationCache(){return k(this,hs)}getDefaultOptions(){return k(this,ms)}setDefaultOptions(e){ze(this,ms,e)}setQueryDefaults(e,t){k(this,Da).set(Di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Da).values()];let n={};return t.forEach(r=>{eu(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,Sa).set(Di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Sa).values()];let n={};return t.forEach(r=>{eu(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,ms).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fg(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===b9&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,ms).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Wt).clear(),k(this,hs).clear()}},Wt=new WeakMap,hs=new WeakMap,ms=new WeakMap,Da=new WeakMap,Sa=new WeakMap,As=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Mw),Wn,it,iu,Rn,ui,ka,uo,au,Ea,Ma,fi,di,Ps,La,At,ec,_m,$m,eA,tA,nA,rA,oA,D9,Lw,$X=(Lw=class extends fl{constructor(t,n){super();We(this,At);We(this,Wn);We(this,it);We(this,iu);We(this,Rn);We(this,ui);We(this,ka);We(this,uo);We(this,au);We(this,Ea);We(this,Ma);We(this,fi);We(this,di);We(this,Ps);We(this,La,new Set);this.options=n,ze(this,Wn,t),ze(this,uo,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)?et(this,At,ec).call(this):this.updateResult(),et(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,et(this,At,nA).call(this),et(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 Ur(this.options.enabled,k(this,it))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");et(this,At,oA).call(this),k(this,it).setOptions(this.options),r._defaulted&&!wd(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)&&et(this,At,ec).call(this),this.updateResult(n),s&&(k(this,it)!==o||Ur(this.options.enabled,k(this,it))!==Ur(r.enabled,k(this,it))||xa(this.options.staleTime,k(this,it))!==xa(r.staleTime,k(this,it)))&&et(this,At,_m).call(this);const i=et(this,At,$m).call(this);s&&(k(this,it)!==o||Ur(this.options.enabled,k(this,it))!==Ur(r.enabled,k(this,it))||i!==k(this,Ps))&&et(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 tN(this,r)&&(ze(this,Rn,r),ze(this,ka,this.options),ze(this,ui,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,La).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 et(this,At,ec).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rn)))}createResult(t,n){var j;const r=k(this,it),o=this.options,s=k(this,Rn),i=k(this,ui),a=k(this,ka),c=t!==r?t.state:k(this,iu),{state:u}=t;let d={...u},p=!1,y;if(n._optimisticResults){const O=this.hasListeners(),C=!O&&bx(t,n),S=O&&xx(t,r,n,o);(C||S)&&(d={...d,...O9(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:A,status:x}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(i==null?void 0:i.data)&&n.select===k(this,au))y=k(this,Ea);else try{ze(this,au,n.select),y=n.select(d.data),y=Km(s==null?void 0:s.data,y,n),ze(this,Ea,y),ze(this,uo,null)}catch(O){ze(this,uo,O)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&x==="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((j=k(this,Ma))==null?void 0:j.state.data,k(this,Ma)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),ze(this,uo,null)}catch(C){ze(this,uo,C)}O!==void 0&&(x="success",y=Km(s==null?void 0:s.data,O,n),p=!0)}k(this,uo)&&(h=k(this,uo),y=k(this,Ea),A=Date.now(),x="error");const m=d.fetchStatus==="fetching",v=x==="pending",P=x==="error",w=v&&m,H=y!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:v,isSuccess:x==="success",isError:P,isInitialLoading:w,isLoading:w,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&&!H,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&H,isStale:pg(t,n),refetch:this.refetch}}updateResult(t){const n=k(this,Rn),r=this.createResult(k(this,it),this.options);if(ze(this,ui,k(this,it).state),ze(this,ka,this.options),k(this,ui).data!==void 0&&ze(this,Ma,k(this,it)),wd(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,La).size)return!0;const l=new Set(a??k(this,La));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),et(this,At,D9).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,At,tA).call(this)}},Wn=new WeakMap,it=new WeakMap,iu=new WeakMap,Rn=new WeakMap,ui=new WeakMap,ka=new WeakMap,uo=new WeakMap,au=new WeakMap,Ea=new WeakMap,Ma=new WeakMap,fi=new WeakMap,di=new WeakMap,Ps=new WeakMap,La=new WeakMap,At=new WeakSet,ec=function(t){et(this,At,oA).call(this);let n=k(this,it).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Hr)),n},_m=function(){et(this,At,nA).call(this);const t=xa(this.options.staleTime,k(this,it));if(el||k(this,Rn).isStale||!Um(t))return;const r=g9(k(this,Rn).dataUpdatedAt,t)+1;ze(this,fi,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){et(this,At,rA).call(this),ze(this,Ps,t),!(el||Ur(this.options.enabled,k(this,it))===!1||!Um(k(this,Ps))||k(this,Ps)===0)&&ze(this,di,setInterval(()=>{(this.options.refetchIntervalInBackground||dg.isFocused())&&et(this,At,ec).call(this)},k(this,Ps)))},tA=function(){et(this,At,_m).call(this),et(this,At,eA).call(this,et(this,At,$m).call(this))},nA=function(){k(this,fi)&&(clearTimeout(k(this,fi)),ze(this,fi,void 0))},rA=function(){k(this,di)&&(clearInterval(k(this,di)),ze(this,di,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,iu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},D9=function(t){sn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Rn))}),k(this,Wn).getQueryCache().notify({query:k(this,it),type:"observerResultsUpdated"})})},Lw);function eN(e,t){return Ur(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bx(e,t){return eN(e,t)||e.state.data!==void 0&&sA(e,t,t.refetchOnMount)}function sA(e,t,n){if(Ur(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pg(e,t)}return!1}function xx(e,t,n,r){return(e!==t||Ur(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pg(e,n)}function pg(e,t){return Ur(t.enabled,e)!==!1&&e.isStaleByTime(xa(t.staleTime,e))}function tN(e,t){return!wd(e.getCurrentResult(),t)}var gs,ys,Jn,Xo,Fo,Lf,iA,Xw,nN=(Xw=class extends fl{constructor(n,r){super();We(this,Fo);We(this,gs);We(this,ys);We(this,Jn);We(this,Xo);ze(this,gs,n),this.setOptions(r),this.bindMethods(),et(this,Fo,Lf).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,gs).defaultMutationOptions(n),wd(this.options,r)||k(this,gs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Di(r.mutationKey)!==Di(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){et(this,Fo,Lf).call(this),et(this,Fo,iA).call(this,n)}getCurrentResult(){return k(this,ys)}reset(){var n;(n=k(this,Jn))==null||n.removeObserver(this),ze(this,Jn,void 0),et(this,Fo,Lf).call(this),et(this,Fo,iA).call(this)}mutate(n,r){var o;return ze(this,Xo,r),(o=k(this,Jn))==null||o.removeObserver(this),ze(this,Jn,k(this,gs).getMutationCache().build(k(this,gs),this.options)),k(this,Jn).addObserver(this),k(this,Jn).execute(n)}},gs=new WeakMap,ys=new WeakMap,Jn=new WeakMap,Xo=new WeakMap,Fo=new WeakSet,Lf=function(){var r;const n=((r=k(this,Jn))==null?void 0:r.state)??C9();ze(this,ys,{...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){sn.batch(()=>{var r,o,s,i,a,l,c,u;if(k(this,Xo)&&this.hasListeners()){const d=k(this,ys).variables,p=k(this,ys).context;(n==null?void 0:n.type)==="success"?((o=(r=k(this,Xo)).onSuccess)==null||o.call(r,n.data,d,p),(i=(s=k(this,Xo)).onSettled)==null||i.call(s,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=k(this,Xo)).onError)==null||l.call(a,n.error,d,p),(u=(c=k(this,Xo)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(k(this,ys))})})},Xw),S9=g.createContext(void 0),ev=e=>{const t=g.useContext(S9);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rN=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(S9.Provider,{value:e,children:t})),T9=g.createContext(!1),oN=()=>g.useContext(T9);T9.Provider;function sN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iN=g.createContext(sN()),aN=()=>g.useContext(iN);function R9(e,t){return typeof e=="function"?e(...t):!!e}function lN(){}var cN=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},uN=e=>{g.useEffect(()=>{e.clearReset()},[e])},fN=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&R9(n,[e.error,r]),dN=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},pN=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,vN=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hN(e,t,n){var c,u,d,p;const r=ev(),o=oN(),s=aN(),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",dN(i),cN(i,s),uN(s);const[a]=g.useState(()=>new t(r,i)),l=a.getOptimisticResult(i);if(g.useSyncExternalStore(g.useCallback(y=>{const h=o?()=>{}:a.subscribe(sn.batchCalls(y));return a.updateResult(),h},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),g.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),pN(i,l))throw vN(i,a,s);if(fN({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 hN(e,$X)}function tl(e,t){const n=ev(),[r]=g.useState(()=>new nN(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(i=>r.subscribe(sn.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((i,a)=>{r.mutate(i,a).catch(lN)},[r]);if(o.error&&R9(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}var aA={},wx=Wp;aA.createRoot=wx.createRoot,aA.hydrateRoot=wx.hydrateRoot;/** + ${e.palette.mode==="light"?Va(Ze(e.palette.divider,1),.88):Ba(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",[`&.${NL.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})),kn=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,BL),y=g.useContext(v9),h=g.useContext(bu),A=h&&h.variant==="head";let x;i?x=i:x=A?"th":"td";let m=l;x==="td"?m=void 0:!m&&A&&(m="col");const v=d||h&&h.variant,P=b({},r,{align:o,component:x,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}),w=VL(P);let H=null;return u&&(H=u==="asc"?"ascending":"descending"),f.jsx(IL,b({as:x,ref:n,className:le(w.root,s),"aria-sort":H,scope:m,ownerState:P},p))});function WL(e){return De("MuiTableContainer",e)}Se("MuiTableContainer",["root"]);const JL=["className","component"],FL=e=>{const{classes:t}=e;return Te({root:["root"]},WL,t)},YL=_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),A9=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,i=ce(r,JL),a=b({},r,{component:s}),l=FL(a);return f.jsx(YL,b({ref:n,as:s,className:le(l.root,o),ownerState:a},i))});function qL(e){return De("MuiTableFooter",e)}Se("MuiTableFooter",["root"]);const ZL=["className","component"],GL=e=>{const{classes:t}=e;return Te({root:["root"]},qL,t)},UL=_("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),QL={variant:"footer"},fx="tfoot",KL=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableFooter"}),{className:o,component:s=fx}=r,i=ce(r,ZL),a=b({},r,{component:s}),l=GL(a);return f.jsx(bu.Provider,{value:QL,children:f.jsx(UL,b({as:s,className:le(l.root,o),ref:n,role:s===fx?null:"rowgroup",ownerState:a},i))})});function _L(e){return De("MuiTableHead",e)}Se("MuiTableHead",["root"]);const $L=["className","component"],eX=e=>{const{classes:t}=e;return Te({root:["root"]},_L,t)},tX=_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nX={variant:"head"},dx="thead",rX=g.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableHead"}),{className:o,component:s=dx}=r,i=ce(r,$L),a=b({},r,{component:s}),l=eX(a);return f.jsx(bu.Provider,{value:nX,children:f.jsx(tX,b({as:s,className:le(l.root,o),ref:n,role:s===dx?null:"rowgroup",ownerState:a},i))})});function oX(e){return De("MuiToolbar",e)}Se("MuiToolbar",["root","gutters","regular","dense"]);const sX=["className","component","disableGutters","variant"],iX=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},oX,t)},aX=_("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),P9=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,sX),c=b({},r,{component:s,disableGutters:i,variant:a}),u=iX(c);return f.jsx(aX,b({as:s,className:le(u.root,o),ref:n,ownerState:c},l))}),lX=yn(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),cX=yn(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),uX=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],fX=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:x,page:m,rowsPerPage:v,showFirstButton:P,showLastButton:w,slots:H={},slotProps:z={}}=t,j=ce(t,uX),O=yr(),C=se=>{x(se,0)},S=se=>{x(se,m-1)},I=se=>{x(se,m+1)},R=se=>{x(se,Math.max(0,Math.ceil(p/v)-1))},M=(r=H.firstButton)!=null?r:Zn,W=(o=H.lastButton)!=null?o:Zn,N=(s=H.nextButton)!=null?s:Zn,Z=(i=H.previousButton)!=null?i:Zn,J=(a=H.firstButtonIcon)!=null?a:CM,T=(l=H.lastButtonIcon)!=null?l:DM,B=(c=H.nextButtonIcon)!=null?c:cX,K=(u=H.previousButtonIcon)!=null?u:lX,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},j,{children:[P&&f.jsx(fe,b({onClick:C,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))})),w&&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))}))]}))});function dX(e){return De("MuiTablePagination",e)}const yc=Se("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var px;const pX=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],vX=_(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}})),hX=_(P9,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>b({[`& .${yc.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},[`& .${yc.actions}`]:{flexShrink:0,marginLeft:20}})),mX=_("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),AX=_("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>b({},e.typography.body2,{flexShrink:0})),PX=_($c,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>b({[`& .${yc.selectIcon}`]:t.selectIcon,[`& .${yc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),gX=_(ho,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),yX=_("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>b({},e.typography.body2,{flexShrink:0}));function bX({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function xX(e){return`Go to ${e} page`}const wX=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"]},dX,t)},HX=g.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=fX,backIconButtonProps:i,className:a,colSpan:l,component:c=kn,count:u,disabled:d=!1,getItemAriaLabel:p=xX,labelDisplayedRows:y=bX,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:A,onPageChange:x,onRowsPerPageChange:m,page:v,rowsPerPage:P,rowsPerPageOptions:w=[10,25,50,100],SelectProps:H={},showFirstButton:z=!1,showLastButton:j=!1,slotProps:O={},slots:C={}}=o,S=ce(o,pX),I=o,R=wX(I),M=(r=O==null?void 0:O.select)!=null?r:H,W=M.native?"option":gX;let N;(c===kn||c==="td")&&(N=l||1e3);const Z=wo(M.id),J=wo(M.labelId),T=()=>u===-1?(v+1)*P:P===-1?u:Math.min(u,(v+1)*P);return f.jsx(vX,b({colSpan:N,ref:n,as:c,ownerState:I,className:le(R.root,a)},S,{children:f.jsxs(hX,{className:R.toolbar,children:[f.jsx(mX,{className:R.spacer}),w.length>1&&f.jsx(AX,{className:R.selectLabel,id:J,children:h}),w.length>1&&f.jsx(PX,b({variant:"standard"},!M.variant&&{input:px||(px=f.jsx(Kp,{}))},{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:w.map(B=>g.createElement(W,b({},!Oi(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(yX,{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:x,page:v,rowsPerPage:P,showFirstButton:z,showLastButton:j,slotProps:O.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))});function jX(e){return De("MuiTableRow",e)}const vx=Se("MuiTableRow",["root","selected","hover","head","footer"]),zX=["className","component","hover","selected"],OX=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"]},jX,t)},CX=_("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",xd=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,zX),c=g.useContext(bu),u=b({},r,{component:s,hover:i,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=OX(u);return f.jsx(CX,b({as:s,ref:n,className:le(d.root,o),role:s===hx?null:"row",ownerState:u},l))});function DX(e){return De("MuiTextField",e)}Se("MuiTextField",["root"]);const SX=["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"],TX={standard:rg,filled:ng,outlined:ig},RX=e=>{const{classes:t}=e;return Te({root:["root"]},DX,t)},kX=_(ko,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ks=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:x,inputProps:m,InputProps:v,inputRef:P,label:w,maxRows:H,minRows:z,multiline:j=!1,name:O,onBlur:C,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,SX),fe=b({},r,{autoFocus:s,color:l,disabled:u,error:d,fullWidth:y,multiline:j,required:M,select:N,variant:B}),E=RX(fe),ee={};B==="outlined"&&(x&&typeof x.shrink<"u"&&(ee.notched=x.shrink),ee.label=w),N&&((!Z||!Z.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const G=wo(A),ie=h&&G?`${G}-helper-text`:void 0,re=w&&G?`${G}-label`:void 0,me=TX[B],ue=f.jsx(me,b({"aria-describedby":ie,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:j,name:O,rows:W,maxRows:H,minRows:z,type:J,value:T,id:G,inputRef:P,onBlur:C,onChange:S,onFocus:I,placeholder:R,inputProps:m},ee,v));return f.jsxs(kX,b({className:le(E.root,a),disabled:u,error:d,fullWidth:y,ref:n,required:M,color:l,variant:B,ownerState:fe},K,{children:[w!=null&&w!==""&&f.jsx(Ym,b({htmlFor:G,id:re},x,{children:w})),N?f.jsx($c,b({"aria-describedby":ie,id:G,labelId:re,value:T,input:ue},Z,{children:i})):ue,h&&f.jsx(Ef,b({id:ie},p,{children:h}))]}))}),$t="/hub",$p="/services/japps",cg=["Environments"],EX=["Any","Owned by me","Shared with me"],MX=["Recently modified","Name: A-Z","Name: Z-A"],LX=["Running","Ready","Pending","Unknown"],ug="startAppId";var fl=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(){}},el=typeof window>"u"||"Deno"in globalThis;function Hr(){}function XX(e,t){return typeof e=="function"?e(t):e}function Um(e){return typeof e=="number"&&e>=0&&e!==1/0}function g9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xa(e,t){return typeof e=="function"?e(t):e}function Ur(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!==fg(i,t.options))return!1}else if(!eu(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(Di(t.options.mutationKey)!==Di(s))return!1}else if(!eu(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fg(e,t){return((t==null?void 0:t.queryKeyHashFn)||Di)(e)}function Di(e){return JSON.stringify(e,(t,n)=>Qm(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function eu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!eu(e[n],t[n])):!1}function y9(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?y9(e,t):t}function BX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function VX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var b9=Symbol();function x9(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===b9?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ii,ps,Ha,Cw,IX=(Cw=class extends fl{constructor(){super();We(this,ii);We(this,ps);We(this,Ha);ze(this,Ha,t=>{if(!el&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,ps)||this.setEventListener(k(this,Ha))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ps))==null||t.call(this),ze(this,ps,void 0))}setEventListener(t){var n;ze(this,Ha,t),(n=k(this,ps))==null||n.call(this),ze(this,ps,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ii)!==t&&(ze(this,ii,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ii)=="boolean"?k(this,ii):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ii=new WeakMap,ps=new WeakMap,Ha=new WeakMap,Cw),dg=new IX,ja,vs,za,Dw,WX=(Dw=class extends fl{constructor(){super();We(this,ja,!0);We(this,vs);We(this,za);ze(this,za,t=>{if(!el&&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,vs)||this.setEventListener(k(this,za))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,vs))==null||t.call(this),ze(this,vs,void 0))}setEventListener(t){var n;ze(this,za,t),(n=k(this,vs))==null||n.call(this),ze(this,vs,t(this.setOnline.bind(this)))}setOnline(t){k(this,ja)!==t&&(ze(this,ja,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,ja)}},ja=new WeakMap,vs=new WeakMap,za=new WeakMap,Dw),Hd=new WX;function JX(e){return Math.min(1e3*2**e,3e4)}function w9(e){return(e??"online")==="online"?Hd.isOnline():!0}var H9=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yh(e){return e instanceof H9}function j9(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 H9(m)),(v=e.abort)==null||v.call(e))},c=()=>{t=!0},u=()=>{t=!1},d=()=>dg.isFocused()&&(e.networkMode==="always"||Hd.isOnline())&&e.canRun(),p=()=>w9(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)}),x=()=>{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 w=e.retry??(el?0:3),H=e.retryDelay??JX,z=typeof H=="function"?H(n,P):H,j=w===!0||typeof w=="number"&&nd()?void 0:A()).then(()=>{t?h(P):x()})})};return{promise:a,cancel:l,continue:()=>(o==null||o(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?x():A().then(x),a)}}function FX(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var sn=FX(),ai,Sw,z9=(Sw=class{constructor(){We(this,ai)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Um(this.gcTime)&&ze(this,ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(el?1/0:5*60*1e3))}clearGcTimeout(){k(this,ai)&&(clearTimeout(k(this,ai)),ze(this,ai,void 0))}},ai=new WeakMap,Sw),Oa,Ca,wr,jn,ou,li,qr,Eo,Tw,YX=(Tw=class extends z9{constructor(t){super();We(this,qr);We(this,Oa);We(this,Ca);We(this,wr);We(this,jn);We(this,ou);We(this,li);ze(this,li,!1),ze(this,ou,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,wr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Oa,qX(this.options)),this.state=t.state??k(this,Oa),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,ou),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,wr).remove(this)}setData(t,n){const r=Km(this.state.data,t,this.options);return et(this,qr,Eo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,qr,Eo).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(Hr).catch(Hr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Oa))}isActive(){return this.observers.some(t=>Ur(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||!g9(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,wr).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,li)?k(this,jn).cancel({revert:!0}):k(this,jn).cancelRetry()),this.scheduleGc()),k(this,wr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,qr,Eo).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,li,!0),r.signal)})},s=()=>{const d=x9(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),ze(this,li,!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,Ca,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&et(this,qr,Eo).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||et(this,qr,Eo).call(this,{type:"error",error:d}),yh(d)||((y=(p=k(this,wr).config).onError)==null||y.call(p,d,this),(A=(h=k(this,wr).config).onSettled)==null||A.call(h,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,jn,j9({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}try{this.setData(d)}catch(x){a(x);return}(y=(p=k(this,wr).config).onSuccess)==null||y.call(p,d,this),(A=(h=k(this,wr).config).onSettled)==null||A.call(h,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(d,p)=>{et(this,qr,Eo).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{et(this,qr,Eo).call(this,{type:"pause"})},onContinue:()=>{et(this,qr,Eo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),k(this,jn).start()}},Oa=new WeakMap,Ca=new WeakMap,wr=new WeakMap,jn=new WeakMap,ou=new WeakMap,li=new WeakMap,qr=new WeakSet,Eo=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,...O9(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,Ca)?{...k(this,Ca),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),sn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,wr).notify({query:this,type:"updated",action:t})})},Tw);function O9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:w9(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qX(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 ao,Rw,ZX=(Rw=class extends fl{constructor(t={}){super();We(this,ao);this.config=t,ze(this,ao,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??fg(o,n);let i=this.get(s);return i||(i=new YX({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){k(this,ao).has(t.queryHash)||(k(this,ao).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,ao).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,ao).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){sn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,ao).get(t)}getAll(){return[...k(this,ao).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){sn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){sn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){sn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ao=new WeakMap,Rw),lo,Tn,ci,co,rs,kw,GX=(kw=class extends z9{constructor(t){super();We(this,co);We(this,lo);We(this,Tn);We(this,ci);this.mutationId=t.mutationId,ze(this,Tn,t.mutationCache),ze(this,lo,[]),this.state=t.state||C9(),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,lo).includes(t)||(k(this,lo).push(t),this.clearGcTimeout(),k(this,Tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,lo,k(this,lo).filter(n=>n!==t)),this.scheduleGc(),k(this,Tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,lo).length||(this.state.status==="pending"?this.scheduleGc():k(this,Tn).remove(this))}continue(){var t;return((t=k(this,ci))==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,x,m,v,P,w,H,z,j;ze(this,ci,j9({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{et(this,co,rs).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{et(this,co,rs).call(this,{type:"pause"})},onContinue:()=>{et(this,co,rs).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,ci).canStart();try{if(!n){et(this,co,rs).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 C=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));C!==this.state.context&&et(this,co,rs).call(this,{type:"pending",context:C,variables:t,isPaused:r})}const O=await k(this,ci).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)),et(this,co,rs).call(this,{type:"success",data:O}),O}catch(O){try{throw await((m=(x=k(this,Tn).config).onError)==null?void 0:m.call(x,O,t,this.state.context,this)),await((P=(v=this.options).onError)==null?void 0:P.call(v,O,t,this.state.context)),await((H=(w=k(this,Tn).config).onSettled)==null?void 0:H.call(w,void 0,O,this.state.variables,this.state.context,this)),await((j=(z=this.options).onSettled)==null?void 0:j.call(z,void 0,O,t,this.state.context)),O}finally{et(this,co,rs).call(this,{type:"error",error:O})}}finally{k(this,Tn).runNext(this)}}},lo=new WeakMap,Tn=new WeakMap,ci=new WeakMap,co=new WeakSet,rs=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),sn.batch(()=>{k(this,lo).forEach(r=>{r.onMutationUpdate(t)}),k(this,Tn).notify({mutation:this,type:"updated",action:t})})},kw);function C9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ar,su,Ew,UX=(Ew=class extends fl{constructor(t={}){super();We(this,ar);We(this,su);this.config=t,ze(this,ar,new Map),ze(this,su,Date.now())}build(t,n,r){const o=new GX({mutationCache:this,mutationId:++Ru(this,su)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=lf(t),r=k(this,ar).get(n)??[];r.push(t),k(this,ar).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=lf(t);if(k(this,ar).has(n)){const o=(r=k(this,ar).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?k(this,ar).delete(n):k(this,ar).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,ar).get(lf(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,ar).get(lf(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){sn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,ar).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){sn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return sn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Hr))))}},ar=new WeakMap,su=new WeakMap,Ew);function lf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function QX(e){return{onFetch:(t,n)=>{const r=async()=>{var h,A,x,m,v;const o=t.options,s=(x=(A=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:A.fetchMore)==null?void 0:x.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=x9(t.options,t.fetchOptions),p=async(P,w,H)=>{if(c)return Promise.reject();if(w==null&&P.pages.length)return Promise.resolve(P);const z={queryKey:t.queryKey,pageParam:w,direction:H?"backward":"forward",meta:t.options.meta};u(z);const j=await d(z),{maxPages:O}=t.options,C=H?VX:BX;return{pages:C(P.pages,j,O),pageParams:C(P.pageParams,w,O)}};let y;if(s&&i.length){const P=s==="backward",w=P?KX:yx,H={pages:i,pageParams:a},z=w(o,H);y=await p(H,z,P)}else{y=await p(l,a[0]??o.initialPageParam);const P=e??i.length;for(let w=1;w{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 KX(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,hs,ms,Da,Sa,As,Ta,Ra,Mw,_X=(Mw=class{constructor(e={}){We(this,Wt);We(this,hs);We(this,ms);We(this,Da);We(this,Sa);We(this,As);We(this,Ta);We(this,Ra);ze(this,Wt,e.queryCache||new ZX),ze(this,hs,e.mutationCache||new UX),ze(this,ms,e.defaultOptions||{}),ze(this,Da,new Map),ze(this,Sa,new Map),ze(this,As,0)}mount(){Ru(this,As)._++,k(this,As)===1&&(ze(this,Ta,dg.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onFocus())})),ze(this,Ra,Hd.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Wt).onOnline())})))}unmount(){var e,t;Ru(this,As)._--,k(this,As)===0&&((e=k(this,Ta))==null||e.call(this),ze(this,Ta,void 0),(t=k(this,Ra))==null||t.call(this),ze(this,Ra,void 0))}isFetching(e){return k(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,hs).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(xa(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=XX(t,s);if(i!==void 0)return k(this,Wt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return sn.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);sn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Wt),r={type:"active",...e};return sn.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=sn.batch(()=>k(this,Wt).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Hr).catch(Hr)}invalidateQueries(e={},t={}){return sn.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=sn.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(Hr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Hr)}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(xa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Hr).catch(Hr)}fetchInfiniteQuery(e){return e.behavior=QX(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Hr).catch(Hr)}resumePausedMutations(){return Hd.isOnline()?k(this,hs).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Wt)}getMutationCache(){return k(this,hs)}getDefaultOptions(){return k(this,ms)}setDefaultOptions(e){ze(this,ms,e)}setQueryDefaults(e,t){k(this,Da).set(Di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Da).values()];let n={};return t.forEach(r=>{eu(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,Sa).set(Di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Sa).values()];let n={};return t.forEach(r=>{eu(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,ms).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fg(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===b9&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,ms).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Wt).clear(),k(this,hs).clear()}},Wt=new WeakMap,hs=new WeakMap,ms=new WeakMap,Da=new WeakMap,Sa=new WeakMap,As=new WeakMap,Ta=new WeakMap,Ra=new WeakMap,Mw),Wn,it,iu,Rn,ui,ka,uo,au,Ea,Ma,fi,di,Ps,La,At,ec,_m,$m,eA,tA,nA,rA,oA,D9,Lw,$X=(Lw=class extends fl{constructor(t,n){super();We(this,At);We(this,Wn);We(this,it);We(this,iu);We(this,Rn);We(this,ui);We(this,ka);We(this,uo);We(this,au);We(this,Ea);We(this,Ma);We(this,fi);We(this,di);We(this,Ps);We(this,La,new Set);this.options=n,ze(this,Wn,t),ze(this,uo,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)?et(this,At,ec).call(this):this.updateResult(),et(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,et(this,At,nA).call(this),et(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 Ur(this.options.enabled,k(this,it))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");et(this,At,oA).call(this),k(this,it).setOptions(this.options),r._defaulted&&!wd(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)&&et(this,At,ec).call(this),this.updateResult(n),s&&(k(this,it)!==o||Ur(this.options.enabled,k(this,it))!==Ur(r.enabled,k(this,it))||xa(this.options.staleTime,k(this,it))!==xa(r.staleTime,k(this,it)))&&et(this,At,_m).call(this);const i=et(this,At,$m).call(this);s&&(k(this,it)!==o||Ur(this.options.enabled,k(this,it))!==Ur(r.enabled,k(this,it))||i!==k(this,Ps))&&et(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 tN(this,r)&&(ze(this,Rn,r),ze(this,ka,this.options),ze(this,ui,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,La).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 et(this,At,ec).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Rn)))}createResult(t,n){var j;const r=k(this,it),o=this.options,s=k(this,Rn),i=k(this,ui),a=k(this,ka),c=t!==r?t.state:k(this,iu),{state:u}=t;let d={...u},p=!1,y;if(n._optimisticResults){const O=this.hasListeners(),C=!O&&bx(t,n),S=O&&xx(t,r,n,o);(C||S)&&(d={...d,...O9(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:A,status:x}=d;if(n.select&&d.data!==void 0)if(s&&d.data===(i==null?void 0:i.data)&&n.select===k(this,au))y=k(this,Ea);else try{ze(this,au,n.select),y=n.select(d.data),y=Km(s==null?void 0:s.data,y,n),ze(this,Ea,y),ze(this,uo,null)}catch(O){ze(this,uo,O)}else y=d.data;if(n.placeholderData!==void 0&&y===void 0&&x==="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((j=k(this,Ma))==null?void 0:j.state.data,k(this,Ma)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),ze(this,uo,null)}catch(C){ze(this,uo,C)}O!==void 0&&(x="success",y=Km(s==null?void 0:s.data,O,n),p=!0)}k(this,uo)&&(h=k(this,uo),y=k(this,Ea),A=Date.now(),x="error");const m=d.fetchStatus==="fetching",v=x==="pending",P=x==="error",w=v&&m,H=y!==void 0;return{status:x,fetchStatus:d.fetchStatus,isPending:v,isSuccess:x==="success",isError:P,isInitialLoading:w,isLoading:w,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&&!H,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:P&&H,isStale:pg(t,n),refetch:this.refetch}}updateResult(t){const n=k(this,Rn),r=this.createResult(k(this,it),this.options);if(ze(this,ui,k(this,it).state),ze(this,ka,this.options),k(this,ui).data!==void 0&&ze(this,Ma,k(this,it)),wd(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,La).size)return!0;const l=new Set(a??k(this,La));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),et(this,At,D9).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,At,tA).call(this)}},Wn=new WeakMap,it=new WeakMap,iu=new WeakMap,Rn=new WeakMap,ui=new WeakMap,ka=new WeakMap,uo=new WeakMap,au=new WeakMap,Ea=new WeakMap,Ma=new WeakMap,fi=new WeakMap,di=new WeakMap,Ps=new WeakMap,La=new WeakMap,At=new WeakSet,ec=function(t){et(this,At,oA).call(this);let n=k(this,it).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Hr)),n},_m=function(){et(this,At,nA).call(this);const t=xa(this.options.staleTime,k(this,it));if(el||k(this,Rn).isStale||!Um(t))return;const r=g9(k(this,Rn).dataUpdatedAt,t)+1;ze(this,fi,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){et(this,At,rA).call(this),ze(this,Ps,t),!(el||Ur(this.options.enabled,k(this,it))===!1||!Um(k(this,Ps))||k(this,Ps)===0)&&ze(this,di,setInterval(()=>{(this.options.refetchIntervalInBackground||dg.isFocused())&&et(this,At,ec).call(this)},k(this,Ps)))},tA=function(){et(this,At,_m).call(this),et(this,At,eA).call(this,et(this,At,$m).call(this))},nA=function(){k(this,fi)&&(clearTimeout(k(this,fi)),ze(this,fi,void 0))},rA=function(){k(this,di)&&(clearInterval(k(this,di)),ze(this,di,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,iu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},D9=function(t){sn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,Rn))}),k(this,Wn).getQueryCache().notify({query:k(this,it),type:"observerResultsUpdated"})})},Lw);function eN(e,t){return Ur(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function bx(e,t){return eN(e,t)||e.state.data!==void 0&&sA(e,t,t.refetchOnMount)}function sA(e,t,n){if(Ur(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pg(e,t)}return!1}function xx(e,t,n,r){return(e!==t||Ur(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pg(e,n)}function pg(e,t){return Ur(t.enabled,e)!==!1&&e.isStaleByTime(xa(t.staleTime,e))}function tN(e,t){return!wd(e.getCurrentResult(),t)}var gs,ys,Jn,Xo,Fo,Lf,iA,Xw,nN=(Xw=class extends fl{constructor(n,r){super();We(this,Fo);We(this,gs);We(this,ys);We(this,Jn);We(this,Xo);ze(this,gs,n),this.setOptions(r),this.bindMethods(),et(this,Fo,Lf).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,gs).defaultMutationOptions(n),wd(this.options,r)||k(this,gs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Jn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Di(r.mutationKey)!==Di(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){et(this,Fo,Lf).call(this),et(this,Fo,iA).call(this,n)}getCurrentResult(){return k(this,ys)}reset(){var n;(n=k(this,Jn))==null||n.removeObserver(this),ze(this,Jn,void 0),et(this,Fo,Lf).call(this),et(this,Fo,iA).call(this)}mutate(n,r){var o;return ze(this,Xo,r),(o=k(this,Jn))==null||o.removeObserver(this),ze(this,Jn,k(this,gs).getMutationCache().build(k(this,gs),this.options)),k(this,Jn).addObserver(this),k(this,Jn).execute(n)}},gs=new WeakMap,ys=new WeakMap,Jn=new WeakMap,Xo=new WeakMap,Fo=new WeakSet,Lf=function(){var r;const n=((r=k(this,Jn))==null?void 0:r.state)??C9();ze(this,ys,{...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){sn.batch(()=>{var r,o,s,i,a,l,c,u;if(k(this,Xo)&&this.hasListeners()){const d=k(this,ys).variables,p=k(this,ys).context;(n==null?void 0:n.type)==="success"?((o=(r=k(this,Xo)).onSuccess)==null||o.call(r,n.data,d,p),(i=(s=k(this,Xo)).onSettled)==null||i.call(s,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=k(this,Xo)).onError)==null||l.call(a,n.error,d,p),(u=(c=k(this,Xo)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(k(this,ys))})})},Xw),S9=g.createContext(void 0),ev=e=>{const t=g.useContext(S9);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rN=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(S9.Provider,{value:e,children:t})),T9=g.createContext(!1),oN=()=>g.useContext(T9);T9.Provider;function sN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var iN=g.createContext(sN()),aN=()=>g.useContext(iN);function R9(e,t){return typeof e=="function"?e(...t):!!e}function lN(){}var cN=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},uN=e=>{g.useEffect(()=>{e.clearReset()},[e])},fN=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&R9(n,[e.error,r]),dN=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},pN=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,vN=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hN(e,t,n){var c,u,d,p;const r=ev(),o=oN(),s=aN(),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",dN(i),cN(i,s),uN(s);const[a]=g.useState(()=>new t(r,i)),l=a.getOptimisticResult(i);if(g.useSyncExternalStore(g.useCallback(y=>{const h=o?()=>{}:a.subscribe(sn.batchCalls(y));return a.updateResult(),h},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),g.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),pN(i,l))throw vN(i,a,s);if(fN({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 hN(e,$X)}function tl(e,t){const n=ev(),[r]=g.useState(()=>new nN(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const o=g.useSyncExternalStore(g.useCallback(i=>r.subscribe(sn.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((i,a)=>{r.mutate(i,a).catch(lN)},[r]);if(o.error&&R9(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}var aA={},wx=Wp;aA.createRoot=wx.createRoot,aA.hydrateRoot=wx.hydrateRoot;/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. diff --git a/ui/package-lock.json b/ui/package-lock.json index f60531db..f1f3c61c 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.53.2", + "@tanstack/react-query": "5.55.4", "axios": "1.7.7", "axios-mock-adapter": "2.0.0", "classnames": "^2.5.1", @@ -24,7 +24,7 @@ "recoil": "0.7.7" }, "devDependencies": { - "@eslint/js": "^9.9.1", + "@eslint/js": "^9.10.0", "@stylistic/eslint-plugin-ts": "^2.7.2", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -33,16 +33,16 @@ "@types/react-dom": "18.2.7", "@vitejs/plugin-react": "4.3.1", "@vitest/coverage-v8": "^2.0.5", - "eslint": "^9.9.1", - "eslint-plugin-react": "^7.35.0", + "eslint": "^9.10.0", + "eslint-plugin-react": "^7.35.2", "husky": "^9.1.5", "prettier": "3.3.3", "prettier-plugin-organize-imports": "4.0.0", - "sass": "1.77.8", + "sass": "1.78.0", "tsconfig-paths": "4.2.0", "typescript": "5.5.4", - "typescript-eslint": "^8.3.0", - "vite": "5.4.2", + "typescript-eslint": "^8.4.0", + "vite": "5.4.3", "vite-plugin-environment": "1.1.3", "vite-plugin-eslint": "1.8.1", "vite-tsconfig-paths": "5.0.1", @@ -968,9 +968,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.9.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.9.1.tgz", - "integrity": "sha512-xIDQRsfg5hNBqHz04H1R3scSVwmI+KUbqjsQKHKQ1DAUSaUjYPReZZmS/5PNiKu1fUvzDd6H7DEDKACSEhu+TQ==", + "version": "9.10.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.10.0.tgz", + "integrity": "sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -985,6 +985,18 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@eslint/plugin-kit": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.1.0.tgz", + "integrity": "sha512-autAXT203ixhqei9xt+qkYOvY8l6LAFIdT2UXc/RPNeUVfqRF1BV94GTJyVPFKT8nFM6MyVJhjLj9E8JWvf5zQ==", + "dev": true, + "dependencies": { + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@floating-ui/core": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.0.tgz", @@ -1790,20 +1802,20 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.53.2", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.53.2.tgz", - "integrity": "sha512-gCsABpRrYfLsmwcQ0JCE5I3LOQ9KYrDDSnseUDP3T7ukV8E7+lhlHDJS4Gegt1TSZCsxKhc1J5A7TkF5ePjDUQ==", + "version": "5.55.4", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.55.4.tgz", + "integrity": "sha512-uoRqNnRfzOH4OMIoxj8E2+Us89UIGXfau981qYJWsNMkFS1GXR4UIyzUTVGq4N7SDLHgFPpo6IOazqUV5gkMZA==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.53.2", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.53.2.tgz", - "integrity": "sha512-ZxG/rspElkfqg2LElnNtsNgPtiCZ4Wl2XY43bATQqPvNgyrhzbCFzCjDwSQy9fJhSiDVALSlxYS8YOIiToqQmg==", + "version": "5.55.4", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.55.4.tgz", + "integrity": "sha512-e3uX5XkLD9oTV66/VsVpkYz3Ds/ps/Yk+V5d89xthAbtNIKKBEm4FdNb9yISFzGEGezUzVO68qmfmiSrtScvsg==", "dependencies": { - "@tanstack/query-core": "5.53.2" + "@tanstack/query-core": "5.55.4" }, "funding": { "type": "github", @@ -2177,16 +2189,16 @@ "integrity": "sha512-Vlktnchmkylvc9SnwwwozTv04L/e1NykF5vgoQ0XTmI8DD+wxfjQuHuvHS3p0r2jz2x2ghPs2h1FVeDirIteWA==" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.3.0.tgz", - "integrity": "sha512-FLAIn63G5KH+adZosDYiutqkOkYEx0nvcwNNfJAf+c7Ae/H35qWwTYvPZUKFj5AS+WfHG/WJJfWnDnyNUlp8UA==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.4.0.tgz", + "integrity": "sha512-rg8LGdv7ri3oAlenMACk9e+AR4wUV0yrrG+XKsGKOK0EVgeEDqurkXMPILG2836fW4ibokTB5v4b6Z9+GYQDEw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.3.0", - "@typescript-eslint/type-utils": "8.3.0", - "@typescript-eslint/utils": "8.3.0", - "@typescript-eslint/visitor-keys": "8.3.0", + "@typescript-eslint/scope-manager": "8.4.0", + "@typescript-eslint/type-utils": "8.4.0", + "@typescript-eslint/utils": "8.4.0", + "@typescript-eslint/visitor-keys": "8.4.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -2210,15 +2222,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.3.0.tgz", - "integrity": "sha512-h53RhVyLu6AtpUzVCYLPhZGL5jzTD9fZL+SYf/+hYOx2bDkyQXztXSc4tbvKYHzfMXExMLiL9CWqJmVz6+78IQ==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.4.0.tgz", + "integrity": "sha512-NHgWmKSgJk5K9N16GIhQ4jSobBoJwrmURaLErad0qlLjrpP5bECYg+wxVTGlGZmJbU03jj/dfnb6V9bw+5icsA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.3.0", - "@typescript-eslint/types": "8.3.0", - "@typescript-eslint/typescript-estree": "8.3.0", - "@typescript-eslint/visitor-keys": "8.3.0", + "@typescript-eslint/scope-manager": "8.4.0", + "@typescript-eslint/types": "8.4.0", + "@typescript-eslint/typescript-estree": "8.4.0", + "@typescript-eslint/visitor-keys": "8.4.0", "debug": "^4.3.4" }, "engines": { @@ -2238,13 +2250,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.3.0.tgz", - "integrity": "sha512-mz2X8WcN2nVu5Hodku+IR8GgCOl4C0G/Z1ruaWN4dgec64kDBabuXyPAr+/RgJtumv8EEkqIzf3X2U5DUKB2eg==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.4.0.tgz", + "integrity": "sha512-n2jFxLeY0JmKfUqy3P70rs6vdoPjHK8P/w+zJcV3fk0b0BwRXC/zxRTEnAsgYT7MwdQDt/ZEbtdzdVC+hcpF0A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.3.0", - "@typescript-eslint/visitor-keys": "8.3.0" + "@typescript-eslint/types": "8.4.0", + "@typescript-eslint/visitor-keys": "8.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2255,13 +2267,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.3.0.tgz", - "integrity": "sha512-wrV6qh//nLbfXZQoj32EXKmwHf4b7L+xXLrP3FZ0GOUU72gSvLjeWUl5J5Ue5IwRxIV1TfF73j/eaBapxx99Lg==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.4.0.tgz", + "integrity": "sha512-pu2PAmNrl9KX6TtirVOrbLPLwDmASpZhK/XU7WvoKoCUkdtq9zF7qQ7gna0GBZFN0hci0vHaSusiL2WpsQk37A==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.3.0", - "@typescript-eslint/utils": "8.3.0", + "@typescript-eslint/typescript-estree": "8.4.0", + "@typescript-eslint/utils": "8.4.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -2279,9 +2291,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.3.0.tgz", - "integrity": "sha512-y6sSEeK+facMaAyixM36dQ5NVXTnKWunfD1Ft4xraYqxP0lC0POJmIaL/mw72CUMqjY9qfyVfXafMeaUj0noWw==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.4.0.tgz", + "integrity": "sha512-T1RB3KQdskh9t3v/qv7niK6P8yvn7ja1mS7QK7XfRVL6wtZ8/mFs/FHf4fKvTA0rKnqnYxl/uHFNbnEt0phgbw==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2292,13 +2304,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.3.0.tgz", - "integrity": "sha512-Mq7FTHl0R36EmWlCJWojIC1qn/ZWo2YiWYc1XVtasJ7FIgjo0MVv9rZWXEE7IK2CGrtwe1dVOxWwqXUdNgfRCA==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.4.0.tgz", + "integrity": "sha512-kJ2OIP4dQw5gdI4uXsaxUZHRwWAGpREJ9Zq6D5L0BweyOrWsL6Sz0YcAZGWhvKnH7fm1J5YFE1JrQL0c9dd53A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.3.0", - "@typescript-eslint/visitor-keys": "8.3.0", + "@typescript-eslint/types": "8.4.0", + "@typescript-eslint/visitor-keys": "8.4.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -2356,15 +2368,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.3.0.tgz", - "integrity": "sha512-F77WwqxIi/qGkIGOGXNBLV7nykwfjLsdauRB/DOFPdv6LTF3BHHkBpq81/b5iMPSF055oO2BiivDJV4ChvNtXA==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.4.0.tgz", + "integrity": "sha512-swULW8n1IKLjRAgciCkTCafyTHHfwVQFt8DovmaF69sKbOxTSFMmIZaSHjqO9i/RV0wIblaawhzvtva8Nmm7lQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.3.0", - "@typescript-eslint/types": "8.3.0", - "@typescript-eslint/typescript-estree": "8.3.0" + "@typescript-eslint/scope-manager": "8.4.0", + "@typescript-eslint/types": "8.4.0", + "@typescript-eslint/typescript-estree": "8.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2378,12 +2390,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.3.0.tgz", - "integrity": "sha512-RmZwrTbQ9QveF15m/Cl28n0LXD6ea2CjkhH5rQ55ewz3H24w+AMCJHPVYaZ8/0HoG8Z3cLLFFycRXxeO2tz9FA==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.4.0.tgz", + "integrity": "sha512-zTQD6WLNTre1hj5wp09nBIDiOc2U5r/qmzo7wxPn4ZgAjHql09EofqhF9WF+fZHzL5aCyaIpPcT2hyxl73kr9A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.3.0", + "@typescript-eslint/types": "8.4.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -3675,16 +3687,17 @@ } }, "node_modules/eslint": { - "version": "9.9.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.9.1.tgz", - "integrity": "sha512-dHvhrbfr4xFQ9/dq+jcVneZMyRYLjggWjk6RVsIiHsP8Rz6yZ8LvZ//iU4TrZF+SXWG+JkNF2OyiZRvzgRDqMg==", + "version": "9.10.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.10.0.tgz", + "integrity": "sha512-Y4D0IgtBZfOcOUAIQTSXBKoNGfY0REGqHJG6+Q81vNippW5YlKjHFj4soMxamKK1NXHUWuBZTLdU3Km+L/pcHw==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.11.0", "@eslint/config-array": "^0.18.0", "@eslint/eslintrc": "^3.1.0", - "@eslint/js": "9.9.1", + "@eslint/js": "9.10.0", + "@eslint/plugin-kit": "^0.1.0", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", @@ -3707,7 +3720,6 @@ "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", @@ -3734,9 +3746,9 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.35.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.35.0.tgz", - "integrity": "sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==", + "version": "7.35.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.35.2.tgz", + "integrity": "sha512-Rbj2R9zwP2GYNcIak4xoAMV57hrBh3hTaR0k7hVjwCQgryE/pw5px4b13EYjduOI0hfXyZhwBxaGpOTbWSGzKQ==", "dev": true, "dependencies": { "array-includes": "^3.1.8", @@ -5818,9 +5830,9 @@ } }, "node_modules/postcss": { - "version": "8.4.41", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", - "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", + "version": "8.4.45", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.45.tgz", + "integrity": "sha512-7KTLTdzdZZYscUc65XmjFiB73vBhBfbPztCYdUNvlaso9PrzjzcmjqBPR0lNGkcVlcO4BjiO5rK/qNz+XAen1Q==", "dev": true, "funding": [ { @@ -6326,9 +6338,9 @@ "peer": true }, "node_modules/sass": { - "version": "1.77.8", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.8.tgz", - "integrity": "sha512-4UHg6prsrycW20fqLGPShtEvo/WyHRVRHwOP4DzkUrObWoWI05QBSfzU71TVB7PFaL104TwNaHpjlWXAZbQiNQ==", + "version": "1.78.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.78.0.tgz", + "integrity": "sha512-AaIqGSrjo5lA2Yg7RvFZrlXDBCp3nV4XP73GrLGvdRWWwk+8H3l0SDvq/5bA4eF+0RFPLuWUk3E+P1U/YqnpsQ==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -7010,14 +7022,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.3.0.tgz", - "integrity": "sha512-EvWjwWLwwKDIJuBjk2I6UkV8KEQcwZ0VM10nR1rIunRDIP67QJTZAHBXTX0HW/oI1H10YESF8yWie8fRQxjvFA==", + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.4.0.tgz", + "integrity": "sha512-67qoc3zQZe3CAkO0ua17+7aCLI0dU+sSQd1eKPGq06QE4rfQjstVXR6woHO5qQvGUa550NfGckT4tzh3b3c8Pw==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "8.3.0", - "@typescript-eslint/parser": "8.3.0", - "@typescript-eslint/utils": "8.3.0" + "@typescript-eslint/eslint-plugin": "8.4.0", + "@typescript-eslint/parser": "8.4.0", + "@typescript-eslint/utils": "8.4.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -7118,13 +7130,13 @@ } }, "node_modules/vite": { - "version": "5.4.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.2.tgz", - "integrity": "sha512-dDrQTRHp5C1fTFzcSaMxjk6vdpKvT+2/mIdE07Gw2ykehT49O0z/VHS3zZ8iV/Gh8BJJKHWOe5RjaNrW5xf/GA==", + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.3.tgz", + "integrity": "sha512-IH+nl64eq9lJjFqU+/yrRnrHPVTlgy42/+IzbOdaFDVlyLgI/wDlf+FCobXLX1cT0X5+7LMyH1mIy2xJdLfo8Q==", "dev": true, "dependencies": { "esbuild": "^0.21.3", - "postcss": "^8.4.41", + "postcss": "^8.4.43", "rollup": "^4.20.0" }, "bin": { diff --git a/ui/package.json b/ui/package.json index c5155532..dde2dc3b 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.53.2", + "@tanstack/react-query": "5.55.4", "axios": "1.7.7", "axios-mock-adapter": "2.0.0", "classnames": "^2.5.1", @@ -33,7 +33,7 @@ "recoil": "0.7.7" }, "devDependencies": { - "@eslint/js": "^9.9.1", + "@eslint/js": "^9.10.0", "@stylistic/eslint-plugin-ts": "^2.7.2", "@testing-library/jest-dom": "6.5.0", "@testing-library/react": "16.0.1", @@ -42,16 +42,16 @@ "@types/react-dom": "18.2.7", "@vitejs/plugin-react": "4.3.1", "@vitest/coverage-v8": "^2.0.5", - "eslint": "^9.9.1", - "eslint-plugin-react": "^7.35.0", + "eslint": "^9.10.0", + "eslint-plugin-react": "^7.35.2", "husky": "^9.1.5", "prettier": "3.3.3", "prettier-plugin-organize-imports": "4.0.0", - "sass": "1.77.8", + "sass": "1.78.0", "tsconfig-paths": "4.2.0", "typescript": "5.5.4", - "typescript-eslint": "^8.3.0", - "vite": "5.4.2", + "typescript-eslint": "^8.4.0", + "vite": "5.4.3", "vite-plugin-environment": "1.1.3", "vite-plugin-eslint": "1.8.1", "vite-tsconfig-paths": "5.0.1",