@nebula.js/stardust 3.1.0-alpha.4 → 3.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stardust.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v3.1.0-alpha.4
2
+ * @nebula.js/stardust v3.1.0-alpha.5
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -102,7 +102,7 @@ var vt=Re,yt=ht;function bt(e){for(var t="https://reactjs.org/docs/error-decoder
102
102
  animation-iteration-count: infinite;
103
103
  animation-delay: 200ms;
104
104
  }
105
- `),Vy.rippleVisible,Jy,550,(({theme:e})=>e.transitions.easing.easeInOut),Vy.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vy.child,Vy.childLeaving,eb,550,(({theme:e})=>e.transitions.easing.easeInOut),Vy.childPulsate,tb,(({theme:e})=>e.transitions.easing.easeInOut)),ob=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=bf(n,Gy),[l,s]=Re.useState([]),c=Re.useRef(0),u=Re.useRef(null);Re.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=Re.useRef(!1),p=Re.useRef(null),f=Re.useRef(null),h=Re.useRef(null);Re.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=Re.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,pm.jsx(rb,{classes:{ripple:Wv(o.ripple,Vy.ripple),rippleVisible:Wv(o.rippleVisible,Vy.rippleVisible),ripplePulsate:Wv(o.ripplePulsate,Vy.ripplePulsate),child:Wv(o.child,Vy.child),childLeaving:Wv(o.childLeaving,Vy.childLeaving),childPulsate:Wv(o.childPulsate,Vy.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=Re.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=Re.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=Re.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return Re.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),pm.jsx(nb,yf({className:Wv(Vy.root,o.root,a),ref:h},i,{children:pm.jsx(Hy,{component:null,exit:!0,children:l})}))}));var ab=ob;function ib(e){return gf("MuiButtonBase",e)}var lb=vf("MuiButtonBase",["root","disabled","focusVisible"]);const sb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],cb=Fv("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ub=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:L,tabIndex:R=0,TouchRippleProps:O,touchRippleRef:I,type:_}=n,T=bf(n,sb),P=Re.useRef(null),N=Re.useRef(null),M=Yp(N,I),{isFocusVisibleRef:z,onFocus:A,onBlur:q,ref:D}=sf(),[j,F]=Re.useState(!1);s&&j&&F(!1),Re.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[$,B]=Re.useState(!1);Re.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!s;function U(e,t,n=u){return Qp((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}Re.useEffect((()=>{j&&d&&!c&&$&&N.current.pulsate()}),[c,d,j,$]);const H=U("start",S),V=U("stop",m),G=U("stop",g),K=U("stop",E),Z=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),X=U("start",L),Q=U("stop",C),Y=U("stop",k),J=U("stop",(e=>{q(e),!1===z.current&&F(!1),f&&f(e)}),!1),ee=Qp((e=>{P.current||(P.current=e.currentTarget),A(e),!0===z.current&&(F(!0),y&&y(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Re.useRef(!1),re=Qp((e=>{d&&!ne.current&&j&&N.current&&" "===e.key&&(ne.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=Qp((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(ne.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const ie={};"button"===ae?(ie.type=void 0===_?"button":_,ie.disabled=s):(T.href||T.to||(ie.role="button"),s&&(ie["aria-disabled"]=s));const le=Yp(t,D,P),se=yf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:R,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=pf({root:["root",t&&"disabled",n&&"focusVisible"]},ib,o);return n&&r&&(a.root+=` ${r}`),a})(se);return pm.jsxs(cb,yf({as:ae,className:Wv(ce.root,i),ownerState:se,onBlur:J,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:H,onMouseLeave:Z,onMouseUp:K,onDragLeave:G,onTouchEnd:Q,onTouchMove:Y,onTouchStart:X,ref:le,tabIndex:s?-1:R,type:_},ie,T,{children:[a,W?pm.jsx(ab,yf({ref:M,center:o},O)):null]}))}));var db=ub;function pb(e){return gf("MuiButton",e)}var fb=vf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var hb=Re.createContext({});const mb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gb=e=>yf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),vb=Fv(db,{shouldForwardProp:e=>Dv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return yf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":yf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":yf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fb.focusVisible}`]:yf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fb.disabled}`]:yf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${tv(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fb.disabled}`]:{boxShadow:"none"}})),yb=Fv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>yf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gb(e)))),bb=Fv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>yf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gb(e)))),xb=Re.forwardRef((function(e,t){const n=Re.useContext(hb),r=qv({props:df(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,y=bf(r,mb),b=yf({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return yf({},i,pf({root:["root",a,`${a}${Up(t)}`,`size${Up(o)}`,`${a}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},pb,i))})(b),S=m&&pm.jsx(yb,{className:x.startIcon,ownerState:b,children:m}),w=d&&pm.jsx(bb,{className:x.endIcon,ownerState:b,children:d});return pm.jsxs(vb,yf({ownerState:b,className:Wv(n.className,x.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:Wv(x.focusVisible,p),ref:t,type:g},y,{classes:x,children:[S,o,w]}))}));var Sb=xb,wb={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Eb="#009845",Cb="#3F8AB3",kb="#ffffff",Lb="#404040",Rb="#333333",Ob="#1A1A1A",Ib={mode:"light",palette:{primary:{main:Lb,contrastText:kb},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Lb,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Lb,hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:kb,default:kb,lightest:kb,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Cb,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Eb,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:kb,alternativeContrastText:Lb,excludedContrastText:Lb},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},_b={mode:"dark",palette:{primary:{main:Rb,contrastText:kb},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:kb,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:kb,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Lb,lighter:Rb,darker:"#262626",darkest:Ob},custom:{focusBorder:Cb,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Eb,alternative:Rb,excluded:Ob,mainContrastText:kb,alternativeContrastText:kb,excludedContrastText:kb},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Tb={},Pb=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(fb.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(fb.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(fb.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(fb.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Nb(e){let t=Ib,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=_b));const r=JSON.stringify(t);if(Tb[r])return Tb[r];const o={palette:i(i({type:t.mode},wb.palette),t.palette),typography:i({},wb.typography),shadows:wb.shadows,props:i({},wb.props),shape:i({},wb.shape)};return Tb[r]=Mv(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=yf({},bf(e,av),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Ig(e.spacing);const s=Rg(e.breakpoints||{}),c=l.spacing;l.mixins=yf({gutters:(e={})=>yf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:yf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=bf(o,iv),f=d||u||"light";return l.palette=yf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:Pb(o)}))),Tb[r].name=n,Tb[r]}hf.configure((e=>"njs-".concat("d2af","-").concat(e.replace("Mui",""))));var Mb=ct.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),zb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},a=()=>{const[,e]=Re.useState(n);return Re.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[Ab,qb]=zb({}),[Db,jb]=zb({}),[Fb,$b]=zb({}),[Bb,Wb]=zb({}),[Ub,Hb]=zb({}),[,Vb]=zb({}),Gb=e=>{let{type:t,value:n}=e;const r=Vb.get(n.id);Vb.set(n.id,{});const o=()=>{jb.clear(n.id),Hb.set(n.id,{}),Hb.dispatch(!0)},a=()=>{n.removeListener("changed",o),qb.clear(n.id),jb.clear(n.id),$b.clear(n.id),Wb.clear(n.id),Hb.clear(n.id),Vb.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[Kb,Zb]=zb({},Gb),Xb=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function Qb(e,t){const n=e?"".concat(e.id):null,[r]=Ab(),[o,a]=Re.useReducer(Xb,n?r.get(n):null),[i]=Ub(),[l]=Db();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return Re.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function Yb(e){return Qb(e,"getLayout")}function Jb(e){return Qb(e,"getAppLayout")}function ex(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Kb(),[o]=Fb(),[a,i]=Re.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return Re.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const a=await l;r.set(n,a),i(a)})()}),[t,...c]),[a]}const tx={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function nx(e){return ex(tx,e)}function rx(e){const[t]=nx(e),[n]=Yb(t),[r]=Jb(e),[o,a]=Re.useState(null);return Re.useEffect((()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)}),[r,t,n]),Re.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}const[ox,ax]=zb({}),[ix,lx]=zb({}),[sx,cx]=zb({}),[ux,dx]=zb({});function px(e){if(!e.session)return[];const[t,n,r]=rx(e),[o]=ox(),a=e?e.id:null;let i=o.get(a);return Re.useEffect((()=>{e&&n&&r&&t&&!i&&(i=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=dx.get(o);t&&(await t.endSelections(e),dx.clear(o),cx.get(t.id).emit("deactivated"))},i={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===dx.get(o))return;a(r),dx.set(o,e);const i=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(i),dx.set(o,e)}catch(e){6003!==e.code||n?dx.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:a};lx.set(o,i);const l={model:t,isInModal:()=>!!dx.get(o),isModal:e=>e?dx.get(o)===e:!!dx.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>i.end().then((()=>t.forward())),back:()=>i.end().then((()=>t.back())),clear:()=>i.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return i.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,currentSelectionsLayout:r,navState:t}),o.set(a,i),o.dispatch(!0))}),[e,n,r,t]),[i,t]}const fx=Re.forwardRef(((e,t)=>{let{initialContext:n,app:r}=e;const[o]=px(r),[a,i]=Re.useState(n),[l,s]=Re.useState(),{theme:c}=Re.useMemo((()=>({theme:Nb(l)})),[l]),[u,d]=Re.useState([]);return Re.useImperativeHandle(t,(()=>({addComponent(e){d([...u,e])},removeComponent(e){const t=u.indexOf(e);-1!==t&&(u.splice(t,1),d([...u]))},setMuiThemeName:s,setContext:i,getAppSelections:()=>o}))),ct.createElement(Em,{injectFirst:!0},ct.createElement(ov,{theme:c},ct.createElement(Mb.Provider,{value:a},u)))}));function hx(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=ct.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","3.1.0-alpha.4"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),bp.render(ct.createElement(fx,{ref:a,app:n,initialContext:r}),i,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,a.current.addComponent(e)})()},remove(e){(async()=>{await o,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,a.current.setContext(e)})()},getAppSelections:async()=>(await o,a.current.getAppSelections())},a,o]}function mx(e){return gf("MuiSvgIcon",e)}vf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],vx=Fv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(l=i.pxToRem)?void 0:l.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),yx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=bf(n,gx),f=yf({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return pf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},mx,r)})(f);return pm.jsxs(vx,yf({as:i,className:Wv(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?pm.jsx("title",{children:u}):null]}))}));yx.muiName="SvgIcon";var bx=yx;function xx(e,t){function n(n,r){return pm.jsx(bx,yf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=bx.muiName,Re.memo(Re.forwardRef(n))}const Sx=e=>e.scrollTop;function wx(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function Ex(e){return gf("MuiPaper",e)}vf("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Cx=["className","component","elevation","square","variant"],kx=Fv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return yf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&yf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${tv("#fff",$v(t.elevation))}, ${tv("#fff",$v(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Lx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=bf(n,Cx),c=yf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return pf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ex,o)})(c);return pm.jsx(kx,yf({as:o,ownerState:c,className:Wv(u.root,r),ref:t},s))}));var Rx=Lx;function Ox(e){return gf("MuiIconButton",e)}var Ix=vf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const _x=["edge","children","className","color","disabled","disableFocusRipple","size"],Tx=Fv(db,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>yf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return yf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&yf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":yf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ix.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Px=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=bf(n,_x),d=yf({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return pf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(a)}`]},Ox,t)})(d);return pm.jsx(Tx,yf({className:Wv(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var Nx=Px;function Mx(e){return gf("MuiTypography",e)}vf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ax=Fv("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>yf({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),qx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Dx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiTypography"}),r=(e=>Dx[e]||e)(n.color),o=Eg(yf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=qx}=o,f=bf(o,zx),h=yf({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||qx[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return pf({root:["root",a,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Mx,i)})(h);return pm.jsx(Ax,yf({as:m,ref:t,ownerState:h,className:Wv(g.root,i)},f))}));var Fx=jx;function $x({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Bx=Re.createContext(void 0);function Wx(){return Re.useContext(Bx)}function Ux(e){return pm.jsx(Cm,yf({},e,{defaultTheme:zv}))}function Hx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vx(e){return gf("MuiInputBase",e)}var Gx=vf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Kx=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Zx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xx=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qx=Fv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zx})((({theme:e,ownerState:t})=>yf({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&yf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Yx=Fv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=yf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return yf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gx.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Gx.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Jx=pm.jsx(Ux,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),eS=Re.forwardRef((function(e,t){var n;const r=qv({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:L,onKeyDown:R,onKeyUp:O,placeholder:I,readOnly:_,renderSuffix:T,rows:P,slotProps:N={},slots:M={},startAdornment:z,type:A="text",value:q}=r,D=bf(r,Kx),j=null!=v.value?v.value:q,{current:F}=Re.useRef(null!=j),$=Re.useRef(),B=Re.useCallback((e=>{}),[]),W=Yp($,y,v.ref,B),[U,H]=Re.useState(!1),V=Wx(),G=$x({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=V?V.focused:U,Re.useEffect((()=>{!V&&d&&U&&(H(!1),E&&E())}),[V,d,U,E]);const K=V&&V.onFilled,Z=V&&V.onEmpty,X=Re.useCallback((e=>{!function(e,t=!1){return e&&(Hx(e.value)&&""!==e.value||t&&Hx(e.defaultValue)&&""!==e.defaultValue)}(e)?Z&&Z():K&&K()}),[K,Z]);Xp((()=>{F&&X({value:j})}),[j,X,F]);Re.useEffect((()=>{X($.current)}),[]);let Q=g,Y=v;S&&"input"===Q&&(Y=yf(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:b,minRows:x},Y),Q=Cy);Re.useEffect((()=>{V&&V.setAdornedStart(Boolean(z))}),[V,z]);const J=yf({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:V,fullWidth:h,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:z,type:A}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return pf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},Vx,t)})(J),te=M.root||s.Root||Qx,ne=N.root||c.root||{},re=M.input||s.Input||Yx;return Y=yf({},Y,null!=(n=N.input)?n:c.input),pm.jsxs(Re.Fragment,{children:[!p&&Jx,pm.jsxs(te,yf({},ne,!Hv(te)&&{ownerState:yf({},J,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},D,{className:Wv(ee.root,ne.className,l),children:[z,pm.jsx(Bx.Provider,{value:null,children:pm.jsx(re,yf({ownerState:J,"aria-invalid":G.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:G.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:I,readOnly:_,required:G.required,rows:P,value:j,onKeyDown:R,onKeyUp:O,type:A},Y,!Hv(re)&&{as:Q,ownerState:yf({},J,Y.ownerState)},{ref:W,className:Wv(ee.input,Y.className),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||$.current;if(null==t)throw new Error(Cp(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):H(!0))}}))}),f,T?T(yf({},G,{startAdornment:z})):null]}))]})}));var tS=eS;function nS(e){return gf("MuiOutlinedInput",e)}var rS=yf({},Gx,vf("MuiOutlinedInput",["root","notchedOutline","input"]));const oS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],aS={entering:{opacity:1},entered:{opacity:1}},iS=Re.forwardRef((function(e,t){const n=Av(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Dy}=e,y=bf(e,oS),b=Re.useRef(null),x=Yp(b,i.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Sx(e);const r=wx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),L=S((e=>{const t=wx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),R=S(f);return pm.jsx(v,yf({appear:a,in:s,nodeRef:b,onEnter:E,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:k,addEndListener:e=>{o&&o(b.current,e)},timeout:g},y,{children:(e,t)=>Re.cloneElement(i,yf({style:yf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},aS[e],m,i.props.style),ref:x},t))}))}));var lS=iS;function sS(e){return gf("MuiBackdrop",e)}vf("MuiBackdrop",["root","invisible"]);const cS=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],uS=Fv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>yf({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),dS=Re.forwardRef((function(e,t){var n,r,o;const a=qv({props:e,name:"MuiBackdrop"}),{children:i,component:l="div",components:s={},componentsProps:c={},className:u,invisible:d=!1,open:p,slotProps:f={},slots:h={},transitionDuration:m,TransitionComponent:g=lS}=a,v=bf(a,cS),y=yf({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return pf({root:["root",n&&"invisible"]},sS,t)})(y),x=null!=(n=f.root)?n:c.root;return pm.jsx(g,yf({in:p,timeout:m},v,{children:pm.jsx(uS,yf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:s.Root)?r:l,className:Wv(b.root,u,null==x?void 0:x.className),ownerState:yf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var pS=dS;var fS=e=>!e||!Hv(e);function hS(e){return gf("MuiBadge",e)}var mS=vf("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const gS=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],vS=Fv("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yS=Fv("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>yf({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),bS=Re.forwardRef((function(e,t){var n,r,o,a,i,l;const s=qv({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d="span",components:p={},componentsProps:f={},overlap:h="rectangular",color:m="default",invisible:g=!1,max:v,badgeContent:y,slots:b,slotProps:x,showZero:S=!1,variant:w="standard"}=s,E=bf(s,gS),C=uf({anchorOrigin:c,color:m,overlap:h,variant:w});let k=g;!1===g&&(0===y&&!S||null==y&&"dot"!==w)&&(k=!0);const{color:L=m,overlap:R=h,anchorOrigin:O=c,variant:I=w}=k?C:s,_=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return pf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},hS,i)})(yf({},s,{anchorOrigin:O,invisible:k,color:L,overlap:R,variant:I}));let T;"dot"!==I&&(T=y&&Number(y)>v?`${v}+`:y);const P=null!=(n=null!=(r=null==b?void 0:b.root)?r:p.Root)?n:vS,N=null!=(o=null!=(a=null==b?void 0:b.badge)?a:p.Badge)?o:yS,M=null!=(i=null==x?void 0:x.root)?i:f.root,z=null!=(l=null==x?void 0:x.badge)?l:f.badge;return pm.jsx(ry,yf({invisible:g,badgeContent:T,showZero:S,max:v},E,{slots:{root:P,badge:N},className:Wv(null==M?void 0:M.className,_.root,u),slotProps:{root:yf({},M,fS(P)&&{as:d,ownerState:yf({},null==M?void 0:M.ownerState,{anchorOrigin:O,color:L,overlap:R,variant:I})}),badge:yf({},z,{className:Wv(_.badge,null==z?void 0:z.className)},fS(N)&&{ownerState:yf({},null==z?void 0:z.ownerState,{anchorOrigin:O,color:L,overlap:R,variant:I})})},ref:t}))}));var xS=bS;const SS=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=km("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xg),a=Re.forwardRef((function(e,a){const i=jg(t),l=Eg(e),{className:s,component:c="div"}=l,u=Sg(l,Fg);return pm.jsx(o,Lm({as:c,ref:a,className:kg(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:Mv(),defaultClassName:"MuiBox-root",generateClassName:hf.generate});var wS=SS;function ES(e){return gf("PrivateSwitchBase",e)}vf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const CS=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kS=Fv(db)((({ownerState:e})=>yf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),LS=Fv("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RS=Re.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b,tabIndex:x,type:S,value:w}=e,E=bf(e,CS),[C,k]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Re.useRef(void 0!==e),[a,i]=Re.useState(t);return[o?e:a,Re.useCallback((e=>{o||i(e)}),[])]}({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Wx();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=yf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},ES,t)})(I);return pm.jsxs(kS,yf({component:"span",className:Wv(_.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[pm.jsx(LS,yf({autoFocus:n,checked:r,defaultChecked:i,className:_.input,disabled:R,id:O&&d,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var OS=RS,IS=xx(pm.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_S=xx(pm.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TS=xx(pm.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function PS(e){return gf("MuiCheckbox",e)}var NS=vf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const MS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],zS=Fv(OS,{shouldForwardProp:e=>Dv(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>yf({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${NS.checked}, &.${NS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${NS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),AS=pm.jsx(_S,{}),qS=pm.jsx(IS,{}),DS=pm.jsx(TS,{}),jS=Re.forwardRef((function(e,t){var n,r;const o=qv({props:e,name:"MuiCheckbox"}),{checkedIcon:a=AS,color:i="primary",icon:l=qS,indeterminate:s=!1,indeterminateIcon:c=DS,inputProps:u,size:d="medium",className:p}=o,f=bf(o,MS),h=s?c:l,m=s?c:a,g=yf({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return yf({},t,pf({root:["root",n&&"indeterminate",`color${Up(r)}`]},PS,t))})(g);return pm.jsx(zS,yf({type:"checkbox",inputProps:yf({"data-indeterminate":s},u),icon:Re.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:Re.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:Wv(v.root,p)},f,{classes:v}))}));var FS=jS;function $S(e){return gf("MuiCircularProgress",e)}vf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const BS=["className","color","disableShrink","size","style","thickness","value","variant"];let WS,US,HS,VS,GS=e=>e;const KS=44,ZS=om(WS||(WS=GS`
105
+ `),Vy.rippleVisible,Jy,550,(({theme:e})=>e.transitions.easing.easeInOut),Vy.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vy.child,Vy.childLeaving,eb,550,(({theme:e})=>e.transitions.easing.easeInOut),Vy.childPulsate,tb,(({theme:e})=>e.transitions.easing.easeInOut)),ob=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=bf(n,Gy),[l,s]=Re.useState([]),c=Re.useRef(0),u=Re.useRef(null);Re.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=Re.useRef(!1),p=Re.useRef(null),f=Re.useRef(null),h=Re.useRef(null);Re.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=Re.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,pm.jsx(rb,{classes:{ripple:Wv(o.ripple,Vy.ripple),rippleVisible:Wv(o.rippleVisible,Vy.rippleVisible),ripplePulsate:Wv(o.ripplePulsate,Vy.ripplePulsate),child:Wv(o.child,Vy.child),childLeaving:Wv(o.childLeaving,Vy.childLeaving),childPulsate:Wv(o.childPulsate,Vy.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=Re.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=Re.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=Re.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return Re.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),pm.jsx(nb,yf({className:Wv(Vy.root,o.root,a),ref:h},i,{children:pm.jsx(Hy,{component:null,exit:!0,children:l})}))}));var ab=ob;function ib(e){return gf("MuiButtonBase",e)}var lb=vf("MuiButtonBase",["root","disabled","focusVisible"]);const sb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],cb=Fv("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${lb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ub=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:L,tabIndex:R=0,TouchRippleProps:O,touchRippleRef:I,type:_}=n,T=bf(n,sb),P=Re.useRef(null),N=Re.useRef(null),M=Yp(N,I),{isFocusVisibleRef:z,onFocus:A,onBlur:q,ref:D}=sf(),[j,F]=Re.useState(!1);s&&j&&F(!1),Re.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[$,B]=Re.useState(!1);Re.useEffect((()=>{B(!0)}),[]);const W=$&&!c&&!s;function U(e,t,n=u){return Qp((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}Re.useEffect((()=>{j&&d&&!c&&$&&N.current.pulsate()}),[c,d,j,$]);const H=U("start",S),V=U("stop",m),G=U("stop",g),K=U("stop",E),Z=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),X=U("start",L),Q=U("stop",C),Y=U("stop",k),J=U("stop",(e=>{q(e),!1===z.current&&F(!1),f&&f(e)}),!1),ee=Qp((e=>{P.current||(P.current=e.currentTarget),A(e),!0===z.current&&(F(!0),y&&y(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Re.useRef(!1),re=Qp((e=>{d&&!ne.current&&j&&N.current&&" "===e.key&&(ne.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=Qp((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(ne.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const ie={};"button"===ae?(ie.type=void 0===_?"button":_,ie.disabled=s):(T.href||T.to||(ie.role="button"),s&&(ie["aria-disabled"]=s));const le=Yp(t,D,P),se=yf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:R,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=pf({root:["root",t&&"disabled",n&&"focusVisible"]},ib,o);return n&&r&&(a.root+=` ${r}`),a})(se);return pm.jsxs(cb,yf({as:ae,className:Wv(ce.root,i),ownerState:se,onBlur:J,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:H,onMouseLeave:Z,onMouseUp:K,onDragLeave:G,onTouchEnd:Q,onTouchMove:Y,onTouchStart:X,ref:le,tabIndex:s?-1:R,type:_},ie,T,{children:[a,W?pm.jsx(ab,yf({ref:M,center:o},O)):null]}))}));var db=ub;function pb(e){return gf("MuiButton",e)}var fb=vf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var hb=Re.createContext({});const mb=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gb=e=>yf({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),vb=Fv(db,{shouldForwardProp:e=>Dv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return yf({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":yf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":yf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fb.focusVisible}`]:yf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fb.disabled}`]:yf({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${tv(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fb.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fb.disabled}`]:{boxShadow:"none"}})),yb=Fv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>yf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gb(e)))),bb=Fv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>yf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gb(e)))),xb=Re.forwardRef((function(e,t){const n=Re.useContext(hb),r=qv({props:df(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,y=bf(r,mb),b=yf({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return yf({},i,pf({root:["root",a,`${a}${Up(t)}`,`size${Up(o)}`,`${a}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},pb,i))})(b),S=m&&pm.jsx(yb,{className:x.startIcon,ownerState:b,children:m}),w=d&&pm.jsx(bb,{className:x.endIcon,ownerState:b,children:d});return pm.jsxs(vb,yf({ownerState:b,className:Wv(n.className,x.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:Wv(x.focusVisible,p),ref:t,type:g},y,{classes:x,children:[S,o,w]}))}));var Sb=xb,wb={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Eb="#009845",Cb="#3F8AB3",kb="#ffffff",Lb="#404040",Rb="#333333",Ob="#1A1A1A",Ib={mode:"light",palette:{primary:{main:Lb,contrastText:kb},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Lb,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Lb,hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:kb,default:kb,lightest:kb,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Cb,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Eb,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:kb,alternativeContrastText:Lb,excludedContrastText:Lb},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},_b={mode:"dark",palette:{primary:{main:Rb,contrastText:kb},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:kb,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:kb,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Lb,lighter:Rb,darker:"#262626",darkest:Ob},custom:{focusBorder:Cb,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Eb,alternative:Rb,excluded:Ob,mainContrastText:kb,alternativeContrastText:kb,excludedContrastText:kb},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Tb={},Pb=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(fb.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(fb.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(fb.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(fb.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Nb(e){let t=Ib,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=_b));const r=JSON.stringify(t);if(Tb[r])return Tb[r];const o={palette:i(i({type:t.mode},wb.palette),t.palette),typography:i({},wb.typography),shadows:wb.shadows,props:i({},wb.props),shape:i({},wb.shape)};return Tb[r]=Mv(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=yf({},bf(e,av),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Ig(e.spacing);const s=Rg(e.breakpoints||{}),c=l.spacing;l.mixins=yf({gutters:(e={})=>yf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:yf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=bf(o,iv),f=d||u||"light";return l.palette=yf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:Pb(o)}))),Tb[r].name=n,Tb[r]}hf.configure((e=>"njs-".concat("f26d","-").concat(e.replace("Mui",""))));var Mb=ct.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),zb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},a=()=>{const[,e]=Re.useState(n);return Re.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[Ab,qb]=zb({}),[Db,jb]=zb({}),[Fb,$b]=zb({}),[Bb,Wb]=zb({}),[Ub,Hb]=zb({}),[,Vb]=zb({}),Gb=e=>{let{type:t,value:n}=e;const r=Vb.get(n.id);Vb.set(n.id,{});const o=()=>{jb.clear(n.id),Hb.set(n.id,{}),Hb.dispatch(!0)},a=()=>{n.removeListener("changed",o),qb.clear(n.id),jb.clear(n.id),$b.clear(n.id),Wb.clear(n.id),Hb.clear(n.id),Vb.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[Kb,Zb]=zb({},Gb),Xb=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function Qb(e,t){const n=e?"".concat(e.id):null,[r]=Ab(),[o,a]=Re.useReducer(Xb,n?r.get(n):null),[i]=Ub(),[l]=Db();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return Re.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function Yb(e){return Qb(e,"getLayout")}function Jb(e){return Qb(e,"getAppLayout")}function ex(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Kb(),[o]=Fb(),[a,i]=Re.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return Re.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const a=await l;r.set(n,a),i(a)})()}),[t,...c]),[a]}const tx={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function nx(e){return ex(tx,e)}function rx(e){const[t]=nx(e),[n]=Yb(t),[r]=Jb(e),[o,a]=Re.useState(null);return Re.useEffect((()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)}),[r,t,n]),Re.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}const[ox,ax]=zb({}),[ix,lx]=zb({}),[sx,cx]=zb({}),[ux,dx]=zb({});function px(e){if(!e.session)return[];const[t,n,r]=rx(e),[o]=ox(),a=e?e.id:null;let i=o.get(a);return Re.useEffect((()=>{e&&n&&r&&t&&!i&&(i=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=dx.get(o);t&&(await t.endSelections(e),dx.clear(o),cx.get(t.id).emit("deactivated"))},i={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===dx.get(o))return;a(r),dx.set(o,e);const i=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(i),dx.set(o,e)}catch(e){6003!==e.code||n?dx.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:a};lx.set(o,i);const l={model:t,isInModal:()=>!!dx.get(o),isModal:e=>e?dx.get(o)===e:!!dx.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>i.end().then((()=>t.forward())),back:()=>i.end().then((()=>t.back())),clear:()=>i.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return i.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,currentSelectionsLayout:r,navState:t}),o.set(a,i),o.dispatch(!0))}),[e,n,r,t]),[i,t]}const fx=Re.forwardRef(((e,t)=>{let{initialContext:n,app:r}=e;const[o]=px(r),[a,i]=Re.useState(n),[l,s]=Re.useState(),{theme:c}=Re.useMemo((()=>({theme:Nb(l)})),[l]),[u,d]=Re.useState([]);return Re.useImperativeHandle(t,(()=>({addComponent(e){d([...u,e])},removeComponent(e){const t=u.indexOf(e);-1!==t&&(u.splice(t,1),d([...u]))},setMuiThemeName:s,setContext:i,getAppSelections:()=>o}))),ct.createElement(Em,{injectFirst:!0},ct.createElement(ov,{theme:c},ct.createElement(Mb.Provider,{value:a},u)))}));function hx(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=ct.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","3.1.0-alpha.5"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),bp.render(ct.createElement(fx,{ref:a,app:n,initialContext:r}),i,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,a.current.addComponent(e)})()},remove(e){(async()=>{await o,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,a.current.setContext(e)})()},getAppSelections:async()=>(await o,a.current.getAppSelections())},a,o]}function mx(e){return gf("MuiSvgIcon",e)}vf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],vx=Fv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(l=i.pxToRem)?void 0:l.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),yx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=bf(n,gx),f=yf({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return pf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},mx,r)})(f);return pm.jsxs(vx,yf({as:i,className:Wv(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?pm.jsx("title",{children:u}):null]}))}));yx.muiName="SvgIcon";var bx=yx;function xx(e,t){function n(n,r){return pm.jsx(bx,yf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=bx.muiName,Re.memo(Re.forwardRef(n))}const Sx=e=>e.scrollTop;function wx(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function Ex(e){return gf("MuiPaper",e)}vf("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Cx=["className","component","elevation","square","variant"],kx=Fv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return yf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&yf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${tv("#fff",$v(t.elevation))}, ${tv("#fff",$v(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Lx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=bf(n,Cx),c=yf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return pf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ex,o)})(c);return pm.jsx(kx,yf({as:o,ownerState:c,className:Wv(u.root,r),ref:t},s))}));var Rx=Lx;function Ox(e){return gf("MuiIconButton",e)}var Ix=vf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const _x=["edge","children","className","color","disabled","disableFocusRipple","size"],Tx=Fv(db,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>yf({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return yf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&yf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":yf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ix.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Px=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=bf(n,_x),d=yf({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return pf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(a)}`]},Ox,t)})(d);return pm.jsx(Tx,yf({className:Wv(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var Nx=Px;function Mx(e){return gf("MuiTypography",e)}vf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ax=Fv("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>yf({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),qx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Dx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jx=Re.forwardRef((function(e,t){const n=qv({props:e,name:"MuiTypography"}),r=(e=>Dx[e]||e)(n.color),o=Eg(yf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=qx}=o,f=bf(o,zx),h=yf({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||qx[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return pf({root:["root",a,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Mx,i)})(h);return pm.jsx(Ax,yf({as:m,ref:t,ownerState:h,className:Wv(g.root,i)},f))}));var Fx=jx;function $x({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Bx=Re.createContext(void 0);function Wx(){return Re.useContext(Bx)}function Ux(e){return pm.jsx(Cm,yf({},e,{defaultTheme:zv}))}function Hx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vx(e){return gf("MuiInputBase",e)}var Gx=vf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Kx=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Zx=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xx=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Qx=Fv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zx})((({theme:e,ownerState:t})=>yf({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Gx.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&yf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Yx=Fv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xx})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=yf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return yf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gx.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Gx.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Jx=pm.jsx(Ux,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),eS=Re.forwardRef((function(e,t){var n;const r=qv({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:y,maxRows:b,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:L,onKeyDown:R,onKeyUp:O,placeholder:I,readOnly:_,renderSuffix:T,rows:P,slotProps:N={},slots:M={},startAdornment:z,type:A="text",value:q}=r,D=bf(r,Kx),j=null!=v.value?v.value:q,{current:F}=Re.useRef(null!=j),$=Re.useRef(),B=Re.useCallback((e=>{}),[]),W=Yp($,y,v.ref,B),[U,H]=Re.useState(!1),V=Wx(),G=$x({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=V?V.focused:U,Re.useEffect((()=>{!V&&d&&U&&(H(!1),E&&E())}),[V,d,U,E]);const K=V&&V.onFilled,Z=V&&V.onEmpty,X=Re.useCallback((e=>{!function(e,t=!1){return e&&(Hx(e.value)&&""!==e.value||t&&Hx(e.defaultValue)&&""!==e.defaultValue)}(e)?Z&&Z():K&&K()}),[K,Z]);Xp((()=>{F&&X({value:j})}),[j,X,F]);Re.useEffect((()=>{X($.current)}),[]);let Q=g,Y=v;S&&"input"===Q&&(Y=yf(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:b,minRows:x},Y),Q=Cy);Re.useEffect((()=>{V&&V.setAdornedStart(Boolean(z))}),[V,z]);const J=yf({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:V,fullWidth:h,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:z,type:A}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return pf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},Vx,t)})(J),te=M.root||s.Root||Qx,ne=N.root||c.root||{},re=M.input||s.Input||Yx;return Y=yf({},Y,null!=(n=N.input)?n:c.input),pm.jsxs(Re.Fragment,{children:[!p&&Jx,pm.jsxs(te,yf({},ne,!Hv(te)&&{ownerState:yf({},J,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},D,{className:Wv(ee.root,ne.className,l),children:[z,pm.jsx(Bx.Provider,{value:null,children:pm.jsx(re,yf({ownerState:J,"aria-invalid":G.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:G.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:I,readOnly:_,required:G.required,rows:P,value:j,onKeyDown:R,onKeyUp:O,type:A},Y,!Hv(re)&&{as:Q,ownerState:yf({},J,Y.ownerState)},{ref:W,className:Wv(ee.input,Y.className),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||$.current;if(null==t)throw new Error(Cp(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):H(!0))}}))}),f,T?T(yf({},G,{startAdornment:z})):null]}))]})}));var tS=eS;function nS(e){return gf("MuiOutlinedInput",e)}var rS=yf({},Gx,vf("MuiOutlinedInput",["root","notchedOutline","input"]));const oS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],aS={entering:{opacity:1},entered:{opacity:1}},iS=Re.forwardRef((function(e,t){const n=Av(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Dy}=e,y=bf(e,oS),b=Re.useRef(null),x=Yp(b,i.ref,t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Sx(e);const r=wx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),L=S((e=>{const t=wx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),R=S(f);return pm.jsx(v,yf({appear:a,in:s,nodeRef:b,onEnter:E,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:k,addEndListener:e=>{o&&o(b.current,e)},timeout:g},y,{children:(e,t)=>Re.cloneElement(i,yf({style:yf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},aS[e],m,i.props.style),ref:x},t))}))}));var lS=iS;function sS(e){return gf("MuiBackdrop",e)}vf("MuiBackdrop",["root","invisible"]);const cS=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],uS=Fv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>yf({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),dS=Re.forwardRef((function(e,t){var n,r,o;const a=qv({props:e,name:"MuiBackdrop"}),{children:i,component:l="div",components:s={},componentsProps:c={},className:u,invisible:d=!1,open:p,slotProps:f={},slots:h={},transitionDuration:m,TransitionComponent:g=lS}=a,v=bf(a,cS),y=yf({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return pf({root:["root",n&&"invisible"]},sS,t)})(y),x=null!=(n=f.root)?n:c.root;return pm.jsx(g,yf({in:p,timeout:m},v,{children:pm.jsx(uS,yf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:s.Root)?r:l,className:Wv(b.root,u,null==x?void 0:x.className),ownerState:yf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var pS=dS;var fS=e=>!e||!Hv(e);function hS(e){return gf("MuiBadge",e)}var mS=vf("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const gS=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],vS=Fv("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yS=Fv("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>yf({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${mS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),bS=Re.forwardRef((function(e,t){var n,r,o,a,i,l;const s=qv({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d="span",components:p={},componentsProps:f={},overlap:h="rectangular",color:m="default",invisible:g=!1,max:v,badgeContent:y,slots:b,slotProps:x,showZero:S=!1,variant:w="standard"}=s,E=bf(s,gS),C=uf({anchorOrigin:c,color:m,overlap:h,variant:w});let k=g;!1===g&&(0===y&&!S||null==y&&"dot"!==w)&&(k=!0);const{color:L=m,overlap:R=h,anchorOrigin:O=c,variant:I=w}=k?C:s,_=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return pf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},hS,i)})(yf({},s,{anchorOrigin:O,invisible:k,color:L,overlap:R,variant:I}));let T;"dot"!==I&&(T=y&&Number(y)>v?`${v}+`:y);const P=null!=(n=null!=(r=null==b?void 0:b.root)?r:p.Root)?n:vS,N=null!=(o=null!=(a=null==b?void 0:b.badge)?a:p.Badge)?o:yS,M=null!=(i=null==x?void 0:x.root)?i:f.root,z=null!=(l=null==x?void 0:x.badge)?l:f.badge;return pm.jsx(ry,yf({invisible:g,badgeContent:T,showZero:S,max:v},E,{slots:{root:P,badge:N},className:Wv(null==M?void 0:M.className,_.root,u),slotProps:{root:yf({},M,fS(P)&&{as:d,ownerState:yf({},null==M?void 0:M.ownerState,{anchorOrigin:O,color:L,overlap:R,variant:I})}),badge:yf({},z,{className:Wv(_.badge,null==z?void 0:z.className)},fS(N)&&{ownerState:yf({},null==z?void 0:z.ownerState,{anchorOrigin:O,color:L,overlap:R,variant:I})})},ref:t}))}));var xS=bS;const SS=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=km("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xg),a=Re.forwardRef((function(e,a){const i=jg(t),l=Eg(e),{className:s,component:c="div"}=l,u=Sg(l,Fg);return pm.jsx(o,Lm({as:c,ref:a,className:kg(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:Mv(),defaultClassName:"MuiBox-root",generateClassName:hf.generate});var wS=SS;function ES(e){return gf("PrivateSwitchBase",e)}vf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const CS=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kS=Fv(db)((({ownerState:e})=>yf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),LS=Fv("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RS=Re.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b,tabIndex:x,type:S,value:w}=e,E=bf(e,CS),[C,k]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Re.useRef(void 0!==e),[a,i]=Re.useState(t);return[o?e:a,Re.useCallback((e=>{o||i(e)}),[])]}({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Wx();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=yf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},ES,t)})(I);return pm.jsxs(kS,yf({component:"span",className:Wv(_.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[pm.jsx(LS,yf({autoFocus:n,checked:r,defaultChecked:i,className:_.input,disabled:R,id:O&&d,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var OS=RS,IS=xx(pm.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_S=xx(pm.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TS=xx(pm.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function PS(e){return gf("MuiCheckbox",e)}var NS=vf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const MS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],zS=Fv(OS,{shouldForwardProp:e=>Dv(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>yf({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${NS.checked}, &.${NS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${NS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),AS=pm.jsx(_S,{}),qS=pm.jsx(IS,{}),DS=pm.jsx(TS,{}),jS=Re.forwardRef((function(e,t){var n,r;const o=qv({props:e,name:"MuiCheckbox"}),{checkedIcon:a=AS,color:i="primary",icon:l=qS,indeterminate:s=!1,indeterminateIcon:c=DS,inputProps:u,size:d="medium",className:p}=o,f=bf(o,MS),h=s?c:l,m=s?c:a,g=yf({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return yf({},t,pf({root:["root",n&&"indeterminate",`color${Up(r)}`]},PS,t))})(g);return pm.jsx(zS,yf({type:"checkbox",inputProps:yf({"data-indeterminate":s},u),icon:Re.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:Re.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:Wv(v.root,p)},f,{classes:v}))}));var FS=jS;function $S(e){return gf("MuiCircularProgress",e)}vf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const BS=["className","color","disableShrink","size","style","thickness","value","variant"];let WS,US,HS,VS,GS=e=>e;const KS=44,ZS=om(WS||(WS=GS`
106
106
  0% {
107
107
  transform: rotate(0deg);
108
108
  }