diff --git a/locust/webui/dist/assets/index-8515c9b5.js b/locust/webui/dist/assets/index-e569e7ff.js similarity index 98% rename from locust/webui/dist/assets/index-8515c9b5.js rename to locust/webui/dist/assets/index-e569e7ff.js index 665fd44854..e197ed50c6 100644 --- a/locust/webui/dist/assets/index-8515c9b5.js +++ b/locust/webui/dist/assets/index-e569e7ff.js @@ -155,7 +155,7 @@ ${W.current.stack} `&&(C.value+=" ");const A=w.boxSizing,T=mg(w.paddingBottom)+mg(w.paddingTop),M=mg(w.borderBottomWidth)+mg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let P=k;a&&(P=Math.max(Number(a)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const L=P+(A==="border-box"?T+M:0),z=Math.abs(P-k)<=1;return{outerHeightStyle:L,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();GR(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();GR(_)||Ff.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=Sv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Na(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),So(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return D.jsxs(O.Fragment,{children:[D.jsx("textarea",$({value:s,onChange:S,ref:f,rows:a,style:$({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:$({},Mne.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function qs({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Ine=O.createContext(void 0),DM=Ine;function Po(){return O.useContext(DM)}function nG(e){return D.jsx(JJ,$({},e,{defaultTheme:lx,themeId:bu}))}function HR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ky(e,t=!1){return e&&(HR(e.value)&&e.value!==""||t&&HR(e.defaultValue)&&e.defaultValue!=="")}function Pne(e){return e.startAdornment}function Dne(e){return Be("MuiInputBase",e)}const Rne=Ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Mf=Rne,Lne=["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"],cx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},fx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ene=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Ve(v,Dne,t)},dx=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>$({},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",[`&.${Mf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),hx=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Mf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),One=D.jsx(nG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nne=O.forwardRef(function(t,r){var n;const i=He({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:P,readOnly:L,renderSuffix:z,rows:V,slotProps:N={},slots:F={},startAdornment:E,type:G="text",value:j}=i,B=me(i,Lne),U=y.value!=null?y.value:j,{current:X}=O.useRef(U!=null),W=O.useRef(),ee=O.useCallback(Ce=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Po(),J=qs({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,O.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const de=Q&&Q.onFilled,he=Q&&Q.onEmpty,Pe=O.useCallback(Ce=>{Ky(Ce)?de&&de():he&&he()},[de,he]);So(()=>{X&&Pe({value:U})},[U,Pe,X]);const Xe=Ce=>{if(J.disabled){Ce.stopPropagation();return}M&&M(Ce),y.onFocus&&y.onFocus(Ce),Q&&Q.onFocus?Q.onFocus(Ce):re(!0)},Ue=Ce=>{C&&C(Ce),y.onBlur&&y.onBlur(Ce),Q&&Q.onBlur?Q.onBlur(Ce):re(!1)},ot=(Ce,...pe)=>{if(!X){const Vt=Ce.target||W.current;if(Vt==null)throw new Error(Ls(1));Pe({value:Vt.value})}y.onChange&&y.onChange(Ce,...pe),A&&A(Ce,...pe)};O.useEffect(()=>{Pe(W.current)},[]);const st=Ce=>{W.current&&Ce.currentTarget===Ce.target&&W.current.focus(),T&&T(Ce)};let kt=m,$e=y;b&&kt==="input"&&(V?$e=$({type:void 0,minRows:V,maxRows:V},$e):$e=$({type:void 0,maxRows:S,minRows:_},$e),kt=kne);const It=Ce=>{Pe(Ce.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!E)},[Q,E]);const qt=$({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:E,type:G}),Pt=Ene(qt),K=F.root||u.Root||dx,ue=N.root||c.root||{},Re=F.input||u.Input||hx;return $e=$({},$e,(n=N.input)!=null?n:c.input),D.jsxs(O.Fragment,{children:[!h&&One,D.jsxs(K,$({},ue,!Af(K)&&{ownerState:$({},qt,ue.ownerState)},{ref:r,onClick:st},B,{className:ye(Pt.root,ue.className,l,L&&"MuiInputBase-readOnly"),children:[E,D.jsx(DM.Provider,{value:null,children:D.jsx(Re,$({ownerState:qt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:It,name:w,placeholder:P,readOnly:L,required:J.required,rows:V,value:U,onKeyDown:k,onKeyUp:I,type:G},$e,!Af(Re)&&{as:kt,ownerState:$({},qt,$e.ownerState)},{ref:te,className:ye(Pt.input,$e.className,L&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:ot,onFocus:Xe}))}),p,z?z($({},J,{startAdornment:E})):null]}))]})}),RM=Nne;function zne(e){return Be("MuiInput",e)}const Bne=$({},Mf,Ge("MuiInput",["root","underline","input"])),_d=Bne;function $ne(e){return Be("MuiOutlinedInput",e)}const Fne=$({},Mf,Ge("MuiOutlinedInput",["root","notchedOutline","input"])),No=Fne;function Vne(e){return Be("MuiFilledInput",e)}const Gne=$({},Mf,Ge("MuiFilledInput",["root","underline","input"])),Qs=Gne,Hne=Mi(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jne={entering:{opacity:1},entered:{opacity:1}},Une=O.forwardRef(function(t,r){const n=Hf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=kM}=t,x=me(t,Wne),S=O.useRef(null),_=Mr(S,s.ref,r),b=P=>L=>{if(P){const z=S.current;L===void 0?P(z):P(z,L)}},w=b(d),C=b((P,L)=>{ZV(P);const z=Tf({style:g,timeout:m,easing:l},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",z),P.style.transition=n.transitions.create("opacity",z),c&&c(P,L)}),A=b(f),T=b(v),M=b(P=>{const L=Tf({style:g,timeout:m,easing:l},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",L),P.style.transition=n.transitions.create("opacity",L),h&&h(P)}),k=b(p),I=P=>{a&&a(S.current,P)};return D.jsx(y,$({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:k,onExiting:T,addEndListener:I,timeout:m},x,{children:(P,L)=>O.cloneElement(s,$({style:$({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},jne[P],g,s.props.style),ref:_},L))}))}),qne=Une;function Yne(e){return Be("MuiBackdrop",e)}Ge("MuiBackdrop",["root","invisible"]);const Xne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zne=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},Yne,t)},Kne=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$({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"})),Qne=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=qne,transitionDuration:m}=o,y=me(o,Xne),x=$({},o,{component:u,invisible:d}),S=Zne(x),_=(n=p.root)!=null?n:f.root;return D.jsx(g,$({in:h,timeout:m},y,{children:D.jsx(Kne,$({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:ye(S.root,l,_==null?void 0:_.className),ownerState:$({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),Jne=Qne,eie=AM(),tie=nee({themeId:bu,defaultTheme:eie,defaultClassName:"MuiBox-root",generateClassName:dM.generate}),it=tie;function rie(e){return Be("MuiButton",e)}const nie=Ge("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"]),yg=nie,iie=O.createContext({}),aie=iie,oie=O.createContext(void 0),sie=oie,lie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uie=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=Ve(s,rie,o);return $({},o,l)},iG=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),cie=le(Eu,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},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":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{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})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yg.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yg.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${or(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yg.disabled}`]:{boxShadow:"none"}}),fie=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},iG(e))),die=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},iG(e))),hie=O.forwardRef(function(t,r){const n=O.useContext(aie),i=O.useContext(sie),a=fM(n,t),o=He({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=me(o,lie),b=$({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=uie(b),C=y&&D.jsx(fie,{className:w.startIcon,ownerState:b,children:y}),A=p&&D.jsx(die,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return D.jsxs(cie,$({ownerState:b,className:ye(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),qa=hie;function pie(e){return Be("PrivateSwitchBase",e)}Ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vie=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],gie=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return Ve(a,pie,t)},mie=le(Eu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),yie=le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xie=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=me(t,vie),[A,T]=Ip({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Po(),k=F=>{y&&y(F),M&&M.onFocus&&M.onFocus(F)},I=F=>{g&&g(F),M&&M.onBlur&&M.onBlur(F)},P=F=>{if(F.nativeEvent.defaultPrevented)return;const E=F.target.checked;T(E),m&&m(F,E)};let L=l;M&&typeof L>"u"&&(L=M.disabled);const z=b==="checkbox"||b==="radio",V=$({},t,{checked:A,disabled:L,disableFocusRipple:u,edge:c}),N=gie(V);return D.jsxs(mie,$({component:"span",className:ye(N.root,o),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:V,ref:r},C,{children:[D.jsx(yie,$({autoFocus:n,checked:i,defaultChecked:s,className:N.input,disabled:L,id:z?d:void 0,name:v,onChange:P,readOnly:x,ref:p,required:S,ownerState:V,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),A?a:f]}))}),aG=xie,Sie=Mi(D.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"),bie=Mi(D.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"),_ie=Mi(D.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 wie(e){return Be("MuiCheckbox",e)}const Cie=Ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),YS=Cie,Tie=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Aie=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Ve(a,wie,t);return $({},t,o)},Mie=le(aG,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${YS.checked}, &.${YS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${YS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),kie=D.jsx(bie,{}),Iie=D.jsx(Sie,{}),Pie=D.jsx(_ie,{}),Die=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiCheckbox"}),{checkedIcon:o=kie,color:s="primary",icon:l=Iie,indeterminate:u=!1,indeterminateIcon:c=Pie,inputProps:f,size:d="medium",className:h}=a,p=me(a,Tie),v=u?c:l,g=u?c:o,m=$({},a,{color:s,indeterminate:u,size:d}),y=Aie(m);return D.jsx(Mie,$({type:"checkbox",inputProps:$({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:ye(y.root,h)},p,{classes:y}))}),XC=Die,Rie=Pee({createStyledComponent:le("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),jf=Rie,Lie=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Eie=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Oie=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=$({html:Lie(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},Eie(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function LM(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return D.jsxs(O.Fragment,{children:[D.jsx(nG,{styles:i=>Oie(i,n)}),r]})}function Nie(e){return Be("MuiModal",e)}Ge("MuiModal",["root","hidden","backdrop"]);const zie=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Bie=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Nie,n)},$ie=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Fie=le(Jne,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vie=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=He({name:"MuiModal",props:t}),{BackdropComponent:c=Fie,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:k,slotProps:I,slots:P}=u,L=me(u,zie),z=$({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:V,getBackdropProps:N,getTransitionProps:F,portalRef:E,isTopModal:G,exited:j,hasTransition:B}=Tne($({},z,{rootRef:r})),U=$({},z,{exited:j}),X=Bie(U),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:de,onExited:he}=F();W.onEnter=de,W.onExited=he}const ee=(n=(i=P==null?void 0:P.root)!=null?i:m.Root)!=null?n:$ie,te=(a=(o=P==null?void 0:P.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=I==null?void 0:I.root)!=null?s:y.root,re=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,Q=za({elementType:ee,externalSlotProps:ie,externalForwardedProps:L,getSlotProps:V,additionalProps:{ref:r,as:g},ownerState:U,className:ye(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!U.open&&U.exited&&(X==null?void 0:X.hidden))}),J=za({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:de=>N($({},de,{onClick:he=>{M&&M(he),de!=null&&de.onClick&&de.onClick(he)}})),className:ye(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:U});return!T&&!k&&(!B||j)?null:D.jsx(gne,{ref:E,container:v,disablePortal:b,children:D.jsxs(ee,$({},Q,{children:[!A&&c?D.jsx(te,$({},J)):null,D.jsx(pne,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,W)})]}))})}),oG=Vie;function Gie(e){return Be("MuiDivider",e)}Ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Hie=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Wie=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ve({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Gie,n)},jie=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:or(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Uie=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),sG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,Hie),v=$({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=Wie(v);return D.jsx(jie,$({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?D.jsx(Uie,{className:g.wrapper,ownerState:v,children:a}):null}))});sG.muiSkipListHighlight=!0;const wd=sG,qie=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Yie=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},Vne,t);return $({},t,i)},Xie=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Qs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Qs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qs.disabled}, .${Qs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Zie=le(hx,{name:"MuiFilledInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),lG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,qie),m=$({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Yie(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?kn(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Xie,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Zie;return D.jsx(RM,$({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});lG.muiName="Input";const uG=lG;function Kie(e){return Be("MuiFormControl",e)}Ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qie=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Jie=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Ve(i,Kie,t)},eae=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),tae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=me(n,Qie),y=$({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Jie(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{if(!zh(P,["Input","Select"]))return;const L=zh(P,["Select"])?P.props.input:P;L&&Pne(L.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{zh(P,["Input","Select"])&&(Ky(P.props,!0)||Ky(P.props.inputProps,!0))&&(I=!0)}),I}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return D.jsx(DM.Provider,{value:k,children:D.jsx(eae,$({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),cG=tae,rae=Bee({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>He({props:e,name:"MuiStack"})}),fG=rae;function nae(e){return Be("MuiFormControlLabel",e)}const iae=Ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ch=iae,aae=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],oae=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ve(o,nae,t)},sae=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),lae=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),uae=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=me(a,aae),g=Po(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(x[A]=a[A])});const S=qs({props:a,muiFormControl:g,states:["error"]}),_=$({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=oae(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==qe&&!c&&(C=D.jsx(qe,$({component:"span"},w,{className:ye(b.label,w==null?void 0:w.className),children:C}))),D.jsxs(sae,$({className:ye(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?D.jsxs(fG,{direction:"row",alignItems:"center",children:[C,D.jsxs(lae,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))}),dG=uae;function cae(e){return Be("MuiFormGroup",e)}Ge("MuiFormGroup",["root","row","error"]);const fae=["className","row"],dae=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},cae,t)},hae=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),pae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=me(n,fae),s=Po(),l=qs({props:n,muiFormControl:s,states:["error"]}),u=$({},n,{row:a,error:l.error}),c=dae(u);return D.jsx(hae,$({className:ye(c.root,i),ownerState:u,ref:r},o))}),hG=pae;function vae(e){return Be("MuiFormHelperText",e)}const gae=Ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),WR=gae;var jR;const mae=["children","className","component","disabled","error","filled","focused","margin","required","variant"],yae=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ve(u,vae,t)},xae=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Sae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,mae),l=Po(),u=qs({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=$({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=yae(c);return D.jsx(xae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?jR||(jR=D.jsx("span",{className:"notranslate",children:"​"})):i}))}),bae=Sae;function _ae(e){return Be("MuiFormLabel",e)}const wae=Ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vh=wae,Cae=["children","className","color","component","disabled","error","filled","focused","required"],Tae=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ve(l,_ae,t)},Aae=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Vh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),Mae=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),kae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,Cae),l=Po(),u=qs({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=$({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Tae(c);return D.jsxs(Aae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&D.jsxs(Mae,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Iae=kae,Pae=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ZC(e){return`scale(${e}, ${e**2})`}const Dae={entering:{opacity:1,transform:ZC(1)},entered:{opacity:1,transform:"none"}},XS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pG=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=kM}=t,m=me(t,Pae),y=O.useRef(),x=O.useRef(),S=Hf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=L=>z=>{if(L){const V=_.current;z===void 0?L(V):L(V,z)}},C=w(c),A=w((L,z)=>{ZV(L);const{duration:V,delay:N,easing:F}=Tf({style:p,timeout:v,easing:o},{mode:"enter"});let E;v==="auto"?(E=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=E):E=V,L.style.transition=[S.transitions.create("opacity",{duration:E,delay:N}),S.transitions.create("transform",{duration:XS?E:E*.666,delay:N,easing:F})].join(","),l&&l(L,z)}),T=w(u),M=w(h),k=w(L=>{const{duration:z,delay:V,easing:N}=Tf({style:p,timeout:v,easing:o},{mode:"exit"});let F;v==="auto"?(F=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=F):F=z,L.style.transition=[S.transitions.create("opacity",{duration:F,delay:V}),S.transitions.create("transform",{duration:XS?F:F*.666,delay:XS?V:V||F*.333,easing:N})].join(","),L.style.opacity=0,L.style.transform=ZC(.75),f&&f(L)}),I=w(d),P=L=>{v==="auto"&&(y.current=setTimeout(L,x.current||0)),n&&n(_.current,L)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),D.jsx(g,$({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:P,timeout:v==="auto"?null:v},m,{children:(L,z)=>O.cloneElement(a,$({style:$({opacity:0,transform:ZC(.75),visibility:L==="exited"&&!s?"hidden":void 0},Dae[L],p,a.props.style),ref:b},z))}))});pG.muiSupportAuto=!0;const Rae=pG,Lae=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Eae=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},zne,t);return $({},t,i)},Oae=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Nae=le(hx,{name:"MuiInput",slot:"Input",overridesResolver:fx})({}),vG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=me(s,Lae),y=Eae(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?kn(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Oae,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Nae;return D.jsx(RM,$({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});vG.muiName="Input";const gG=vG;function zae(e){return Be("MuiInputLabel",e)}Ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Bae=["disableAnimation","margin","shrink","variant","className"],$ae=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=Ve(l,zae,t);return $({},t,u)},Fae=le(Iae,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Vh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Vae=O.forwardRef(function(t,r){const n=He({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,Bae),l=Po();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=qs({props:n,muiFormControl:l,states:["size","variant","required"]}),f=$({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=$ae(f);return D.jsx(Fae,$({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))}),EM=Vae;function Gae(e){return Be("MuiLink",e)}const Hae=Ge("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wae=Hae,mG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jae=e=>mG[e]||e,Uae=({theme:e,ownerState:t})=>{const r=jae(t.color),n=Cf(e,`palette.${r}`,!1)||t.color,i=Cf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:or(n,.4)},qae=Uae,Yae=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Xae=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ve(a,Gae,t)},Zae=le(qe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:qae({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Wae.focusVisible}`]:{outline:"auto"}})),Kae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,Yae),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=cM(),[y,x]=O.useState(!1),S=Mr(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=$({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=Xae(w);return D.jsx(Zae,$({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(mG).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),on=Kae,Qae=O.createContext({}),Gh=Qae;function Jae(e){return Be("MuiList",e)}Ge("MuiList",["root","padding","dense","subheader"]);const eoe=["children","className","component","dense","disablePadding","subheader"],toe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ve({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Jae,t)},roe=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),noe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,eoe),f=O.useMemo(()=>({dense:s}),[s]),d=$({},n,{component:o,dense:s,disablePadding:l}),h=toe(d);return D.jsx(Gh.Provider,{value:f,children:D.jsxs(roe,$({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),yG=noe;function ioe(e){return Be("MuiListItem",e)}const aoe=Ge("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Ac=aoe,ooe=Ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),soe=ooe;function loe(e){return Be("MuiListItemSecondaryAction",e)}Ge("MuiListItemSecondaryAction",["root","disableGutters"]);const uoe=["className"],coe=e=>{const{disableGutters:t,classes:r}=e;return Ve({root:["root",t&&"disableGutters"]},loe,r)},foe=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),xG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,uoe),o=O.useContext(Gh),s=$({},n,{disableGutters:o.disableGutters}),l=coe(s);return D.jsx(foe,$({className:ye(l.root,i),ownerState:s,ref:r},a))});xG.muiName="ListItemSecondaryAction";const doe=xG,hoe=["className"],poe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],voe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},goe=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ve({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},ioe,n)},moe=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:voe})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${soe.root}`]:{paddingRight:48}},{[`&.${Ac.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ac.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ac.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ac.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ac.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),yoe=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xoe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,hoe),A=me(n,poe),T=O.useContext(Gh),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),k=O.useRef(null);So(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),P=I.length&&zh(I[I.length-1],["ListItemSecondaryAction"]),L=$({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P,selected:_}),z=goe(L),V=Mr(k,r),N=w.root||c.Root||moe,F=b.root||f.root||{},E=$({className:ye(z.root,F.className,l),disabled:v},A);let G=u||"li";return o&&(E.component=u||"div",E.focusVisibleClassName=ye(Ac.focusVisible,x),G=Eu),P?(G=!E.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":E.component==="li"&&(E.component="div")),D.jsx(Gh.Provider,{value:M,children:D.jsxs(yoe,$({as:d,className:ye(z.container,h),ref:V,ownerState:L},C,{children:[D.jsx(N,$({},F,!Af(N)&&{as:G,ownerState:$({},L,F.ownerState)},E,{children:I})),I.pop()]}))})):D.jsx(Gh.Provider,{value:M,children:D.jsxs(N,$({},F,{as:G,ref:V},!Af(N)&&{ownerState:$({},L,F.ownerState)},E,{children:[I,S&&D.jsx(doe,{children:S})]}))})}),tc=xoe,Soe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ZS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function UR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function SG(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Cd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!SG(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const boe=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,Soe),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});So(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=ln(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Cd(S,b,u,l,ZS);else if(_==="ArrowUp")x.preventDefault(),Cd(S,b,u,l,UR);else if(_==="Home")x.preventDefault(),Cd(S,null,u,l,ZS);else if(_==="End")x.preventDefault(),Cd(S,null,u,l,UR);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&SG(b,w);w.previousKeyMatched&&(T||Cd(S,b,!1,l,ZS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Mr(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return D.jsx(yG,$({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),_oe=boe;function woe(e){return Be("MuiPopover",e)}Ge("MuiPopover",["root","paper"]);const Coe=["onEntering"],Toe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Aoe=["slotProps"];function qR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function YR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function XR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function KS(e){return typeof e=="function"?e():e}const Moe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},woe,t)},koe=le(oG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bG=le(Wf,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ioe=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Rae,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Coe),M=me(o,Toe),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),P=Mr(I,k.ref),L=$({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Moe(L),V=O.useCallback(()=>{if(f==="anchorPosition")return c;const de=KS(l),Pe=(de&&de.nodeType===1?de:ln(I.current).body).getBoundingClientRect();return{top:Pe.top+qR(Pe,u.vertical),left:Pe.left+YR(Pe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(de=>({vertical:qR(de,_.vertical),horizontal:YR(de,_.horizontal)}),[_.horizontal,_.vertical]),F=O.useCallback(de=>{const he={width:de.offsetWidth,height:de.offsetHeight},Pe=N(he);if(f==="none")return{top:null,left:null,transformOrigin:XR(Pe)};const Xe=V();let Ue=Xe.top-Pe.vertical,ot=Xe.left-Pe.horizontal;const st=Ue+he.height,kt=ot+he.width,$e=Na(KS(l)),It=$e.innerHeight-g,qt=$e.innerWidth-g;if(g!==null&&UeIt){const Pt=st-It;Ue-=Pt,Pe.vertical+=Pt}if(g!==null&&otqt){const Pt=kt-qt;ot-=Pt,Pe.horizontal+=Pt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(ot)}px`,transformOrigin:XR(Pe)}},[l,f,V,N,g]),[E,G]=O.useState(m),j=O.useCallback(()=>{const de=I.current;if(!de)return;const he=F(de);he.top!==null&&(de.style.top=he.top),he.left!==null&&(de.style.left=he.left),de.style.transformOrigin=he.transformOrigin,G(!0)},[F]);O.useEffect(()=>(A&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[l,A,j]);const B=(de,he)=>{C&&C(de,he),j()},U=()=>{G(!1)};O.useEffect(()=>{m&&j()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{j()}}:null,[m,j]),O.useEffect(()=>{if(!m)return;const de=Sv(()=>{j()}),he=Na(l);return he.addEventListener("resize",de),()=>{de.clear(),he.removeEventListener("resize",de)}},[l,m,j]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?ln(KS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:koe,te=(a=x==null?void 0:x.paper)!=null?a:bG,ie=za({elementType:te,externalSlotProps:$({},k,{style:E?k.style:$({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:P},ownerState:L,className:ye(z.paper,k==null?void 0:k.className)}),re=za({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:L,className:ye(z.root,h)}),{slotProps:Q}=re,J=me(re,Aoe);return D.jsx(ee,$({},J,!Af(ee)&&{slotProps:Q,disableScrollLock:A},{children:D.jsx(b,$({appear:!0,in:m,onEntering:B,onExited:U,timeout:X},T,{children:D.jsx(te,$({},ie,{children:d}))}))}))}),_G=Ioe;function Poe(e){return Be("MuiMenu",e)}Ge("MuiMenu",["root","paper","list"]);const Doe=["onEntering"],Roe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Loe={vertical:"top",horizontal:"right"},Eoe={vertical:"top",horizontal:"left"},Ooe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},Poe,t)},Noe=le(_G,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zoe=le(bG,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Boe=le(_oe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$oe=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=me(a.TransitionProps,Doe),_=me(a,Roe),b=Hf(),w=b.direction==="rtl",C=$({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Ooe(C),T=o&&!u&&d,M=O.useRef(null),k=(F,E)=>{M.current&&M.current.adjustStyleForScrollbar(F,b),g&&g(F,E)},I=F=>{F.key==="Tab"&&(F.preventDefault(),f&&f(F,"tabKeyDown"))};let P=-1;O.Children.map(s,(F,E)=>{O.isValidElement(F)&&(F.props.disabled||(m==="selectedMenu"&&F.props.selected||P===-1)&&(P=E))});const L=(n=y.paper)!=null?n:zoe,z=(i=x.paper)!=null?i:h,V=za({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=za({elementType:L,externalSlotProps:z,ownerState:C,className:A.paper});return D.jsx(Noe,$({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Loe:Eoe,slots:{paper:L,root:y.root},slotProps:{root:V,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:$({onEntering:k},S),ownerState:C},_,{classes:p,children:D.jsx(Boe,$({onKeyDown:I,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:T,variant:m},c,{className:ye(A.list,c.className),children:s}))}))}),Foe=$oe;function Voe(e){return Be("MuiNativeSelect",e)}const Goe=Ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OM=Goe,Hoe=["className","disabled","error","IconComponent","inputRef","variant"],Woe=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ve(s,Voe,t)},wG=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${OM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),joe=le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ua,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${OM.multiple}`]:t.multiple}]}})(wG),CG=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${OM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Uoe=le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(CG),qoe=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,Hoe),c=$({},t,{disabled:i,variant:l,error:a}),f=Woe(c);return D.jsxs(O.Fragment,{children:[D.jsx(joe,$({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:D.jsx(Uoe,{as:o,ownerState:c,className:f.icon})]})}),Yoe=qoe;var ZR;const Xoe=["children","classes","className","label","notched"],Zoe=le("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Koe=le("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Qoe(e){const{className:t,label:r,notched:n}=e,i=me(e,Xoe),a=r!=null&&r!=="",o=$({},e,{notched:n,withLabel:a});return D.jsx(Zoe,$({"aria-hidden":!0,className:t,ownerState:o},i,{children:D.jsx(Koe,{ownerState:o,children:a?D.jsx("span",{children:r}):ZR||(ZR=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const Joe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ese=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$ne,t);return $({},t,n)},tse=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${No.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${No.focused} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${No.error} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${No.disabled} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),rse=le(Qoe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),nse=le(hx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),TG=O.forwardRef(function(t,r){var n,i,a,o,s;const l=He({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=me(l,Joe),y=ese(l),x=Po(),S=qs({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=$({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:tse,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:nse;return D.jsx(RM,$({slots:{root:b,input:w},renderSuffix:C=>D.jsx(rse,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=D.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:$({},y,{notchedOutline:null})}))});TG.muiName="Input";const AG=TG;function ise(e){return Be("MuiSelect",e)}const ase=Ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Td=ase;var KR;const ose=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],sse=le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Td.select}`]:t.select},{[`&.${Td.select}`]:t[r.variant]},{[`&.${Td.error}`]:t.error},{[`&.${Td.multiple}`]:t.multiple}]}})(wG,{[`&.${Td.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lse=le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(CG),use=le("input",{shouldForwardProp:e=>cte(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function QR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function cse(e){return e==null||typeof e=="string"&&!e.trim()}const fse=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ve(s,ise,t)},dse=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:P,value:L,variant:z="standard"}=t,V=me(t,ose),[N,F]=Ip({controlled:L,default:f,name:"Select"}),[E,G]=Ip({controlled:T,default:c,name:"Select"}),j=O.useRef(null),B=O.useRef(null),[U,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Ae=>{B.current=Ae,Ae&&X(Ae)},[]),Q=U==null?void 0:U.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:j.current,value:N}),[N]),O.useEffect(()=>{c&&E&&U&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[U,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Ae=ln(B.current).getElementById(m);if(Ae){const ct=()=>{getSelection().isCollapsed&&B.current.focus()};return Ae.addEventListener("click",ct),()=>{Ae.removeEventListener("click",ct)}}},[m]);const J=(Ae,ct)=>{Ae?A&&A(ct):w&&w(ct),W||(te(s?null:Q.clientWidth),G(Ae))},de=Ae=>{Ae.button===0&&(Ae.preventDefault(),B.current.focus(),J(!0,Ae))},he=Ae=>{J(!1,Ae)},Pe=O.Children.toArray(l),Xe=Ae=>{const ct=Pe.find(Rt=>Rt.props.value===Ae.target.value);ct!==void 0&&(F(ct.props.value),b&&b(Ae,ct))},Ue=Ae=>ct=>{let Rt;if(ct.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const ve=N.indexOf(Ae.props.value);ve===-1?Rt.push(Ae.props.value):Rt.splice(ve,1)}else Rt=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ct),N!==Rt&&(F(Rt),b)){const ve=ct.nativeEvent||ct,De=new ve.constructor(ve.type,ve);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Ae)}x||J(!1,ct)}},ot=Ae=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),J(!0,Ae))},st=U!==null&&E,kt=Ae=>{!st&&_&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:N,name:S}}),_(Ae))};delete V["aria-invalid"];let $e,It;const qt=[];let Pt=!1;(Ky({value:N})||h)&&(k?$e=k(N):Pt=!0);const K=Pe.map(Ae=>{if(!O.isValidElement(Ae))return null;let ct;if(x){if(!Array.isArray(N))throw new Error(Ls(2));ct=N.some(Rt=>QR(Rt,Ae.props.value)),ct&&Pt&&qt.push(Ae.props.children)}else ct=QR(N,Ae.props.value),ct&&Pt&&(It=Ae.props.children);return O.cloneElement(Ae,{"aria-selected":ct?"true":"false",onClick:Ue(Ae),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Rt)},role:"option",selected:ct,value:void 0,"data-value":Ae.props.value})});Pt&&(x?qt.length===0?$e=null:$e=qt.reduce((Ae,ct,Rt)=>(Ae.push(ct),Rt{const{classes:t}=e;return t},NM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ua(e)&&e!=="variant",slot:"Root"},mse=le(gG,NM)(""),yse=le(AG,NM)(""),xse=le(uG,NM)(""),MG=O.forwardRef(function(t,r){const n=He({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Hne,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,pse),T=y?Yoe:hse,M=Po(),k=qs({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,P=$({},n,{variant:I,classes:o}),L=gse(P),z=me(L,vse),V=d||{standard:D.jsx(mse,{ownerState:P}),outlined:D.jsx(yse,{label:p,ownerState:P}),filled:D.jsx(xse,{ownerState:P})}[I],N=Mr(r,V.ref);return D.jsx(O.Fragment,{children:O.cloneElement(V,$({inputComponent:T,inputProps:$({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:$({id:f},w)},h,{classes:h?kn(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:N,className:ye(V.props.className,s,L.root)},!d&&{variant:I},A))})});MG.muiName="Select";const kG=MG;function Sse(e){return Be("MuiSwitch",e)}const bse=Ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),en=bse,_se=["className","color","edge","size","sx"],wse=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ve(s,Sse,t);return $({},t,l)},Cse=le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${en.thumb}`]:{width:16,height:16},[`& .${en.switchBase}`]:{padding:4,[`&.${en.checked}`]:{transform:"translateX(16px)"}}})),Tse=le(aG,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${en.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${en.checked}`]:{transform:"translateX(20px)"},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${en.checked} + .${en.track}`]:{opacity:.5},[`&.${en.disabled} + .${en.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${en.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${en.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ep(e.palette[t.color].main,.62):Lp(e.palette[t.color].main,.55)}`}},[`&.${en.checked} + .${en.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Ase=le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Mse=le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),kse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=me(n,_se),c=$({},n,{color:a,edge:o,size:s}),f=wse(c),d=D.jsx(Mse,{className:f.thumb,ownerState:c});return D.jsxs(Cse,{className:ye(f.root,i),sx:l,ownerState:c,children:[D.jsx(Tse,$({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:$({},f,{root:f.switchBase})})),D.jsx(Ase,{className:f.track,ownerState:c})]})}),Ise=kse;function Pse(e){return Be("MuiTab",e)}const Dse=Ge("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Js=Dse,Rse=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Lse=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ve(u,Pse,t)},Ese=le(Eu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Js.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Js.selected}`]:{opacity:1},[`&.${Js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Ose=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=me(n,Rse),_=$({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Lse(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:ye(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return D.jsxs(Ese,$({focusRipple:!o,className:ye(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?D.jsxs(O.Fragment,{children:[w,f]}):D.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Nse=Ose,zse=O.createContext(),IG=zse;function Bse(e){return Be("MuiTable",e)}Ge("MuiTable",["root","stickyHeader"]);const $se=["className","component","padding","size","stickyHeader"],Fse=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},Bse,t)},Vse=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),JR="table",Gse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTable"}),{className:i,component:a=JR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,$se),c=$({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Fse(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return D.jsx(IG.Provider,{value:d,children:D.jsx(Vse,$({as:a,role:a===JR?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),PG=Gse,Hse=O.createContext(),px=Hse;function Wse(e){return Be("MuiTableBody",e)}Ge("MuiTableBody",["root"]);const jse=["className","component"],Use=e=>{const{classes:t}=e;return Ve({root:["root"]},Wse,t)},qse=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Yse={variant:"body"},eL="tbody",Xse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableBody"}),{className:i,component:a=eL}=n,o=me(n,jse),s=$({},n,{component:a}),l=Use(s);return D.jsx(px.Provider,{value:Yse,children:D.jsx(qse,$({className:ye(l.root,i),as:a,ref:r,role:a===eL?null:"rowgroup",ownerState:s},o))})}),DG=Xse;function Zse(e){return Be("MuiTableCell",e)}const Kse=Ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Qse=Kse,Jse=["align","className","component","padding","scope","size","sortDirection","variant"],ele=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return Ve(s,Zse,t)},tle=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid ${e.palette.mode==="light"?Ep(or(e.palette.divider,1),.88):Lp(or(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Qse.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),rle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,Jse),h=O.useContext(IG),p=O.useContext(px),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=$({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=ele(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),D.jsx(tle,$({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),zl=rle;function nle(e){return Be("MuiTableContainer",e)}Ge("MuiTableContainer",["root"]);const ile=["className","component"],ale=e=>{const{classes:t}=e;return Ve({root:["root"]},nle,t)},ole=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),sle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,ile),s=$({},n,{component:a}),l=ale(s);return D.jsx(ole,$({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))}),RG=sle;function lle(e){return Be("MuiTableHead",e)}Ge("MuiTableHead",["root"]);const ule=["className","component"],cle=e=>{const{classes:t}=e;return Ve({root:["root"]},lle,t)},fle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dle={variant:"head"},tL="thead",hle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:a=tL}=n,o=me(n,ule),s=$({},n,{component:a}),l=cle(s);return D.jsx(px.Provider,{value:dle,children:D.jsx(fle,$({as:a,className:ye(l.root,i),ref:r,role:a===tL?null:"rowgroup",ownerState:s},o))})}),LG=hle;function ple(e){return Be("MuiToolbar",e)}Ge("MuiToolbar",["root","gutters","regular","dense"]);const vle=["className","component","disableGutters","variant"],gle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},ple,t)},mle=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),yle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,vle),u=$({},n,{component:a,disableGutters:o,variant:s}),c=gle(u);return D.jsx(mle,$({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),xle=yle,Sle=Mi(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ble=Mi(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function _le(e){return Be("MuiTableRow",e)}const wle=Ge("MuiTableRow",["root","selected","hover","head","footer"]),rL=wle,Cle=["className","component","hover","selected"],Tle=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ve({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},_le,t)},Ale=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${rL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),nL="tr",Mle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:a=nL,hover:o=!1,selected:s=!1}=n,l=me(n,Cle),u=O.useContext(px),c=$({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Tle(c);return D.jsx(Ale,$({as:a,ref:r,className:ye(f.root,i),role:a===nL?null:"row",ownerState:c},l))}),Qy=Mle;function kle(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Ile(e,t,r,n={},i=()=>{}){const{ease:a=kle,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Ple=["onChange"],Dle={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Rle(e){const{onChange:t}=e,r=me(e,Ple),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return So(()=>{const o=Sv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Na(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),D.jsx("div",$({style:Dle,ref:i},r))}function Lle(e){return Be("MuiTabScrollButton",e)}const Ele=Ge("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ole=Ele,Nle=["className","slots","slotProps","direction","orientation","disabled"],zle=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},Lle,t)},Ble=le(Eu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Ole.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),$le=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,Nle),d=Hf().direction==="rtl",h=$({isRtl:d},a),p=zle(h),v=(n=s.StartScrollButtonIcon)!=null?n:Sle,g=(i=s.EndScrollButtonIcon)!=null?i:ble,m=za({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=za({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return D.jsx(Ble,$({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?D.jsx(v,$({},m)):D.jsx(g,$({},y))}))}),Fle=$le;function Vle(e){return Be("MuiTabs",e)}const Gle=Ge("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),QS=Gle,Hle=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],iL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,aL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Wle=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ve({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Vle,l)},jle=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${QS.scrollButtons}`]:t.scrollButtons},{[`& .${QS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${QS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Ule=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),qle=le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Yle=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Xle=le(Rle)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oL={},Zle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=Hf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=Fle,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,k=me(n,Hle),I=T==="scrollable",P=g==="vertical",L=P?"scrollTop":"scrollLeft",z=P?"top":"left",V=P?"bottom":"right",N=P?"clientHeight":"clientWidth",F=P?"height":"width",E=$({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:P,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!P,scrollableY:I&&P,centered:u&&!I,scrollButtonsHideMobile:!h}),G=Wle(E),j=za({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),B=za({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[U,X]=O.useState(!1),[W,ee]=O.useState(oL),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,de]=O.useState(!1),[he,Pe]=O.useState({overflow:"hidden",scrollbarWidth:0}),Xe=new Map,Ue=O.useRef(null),ot=O.useRef(null),st=()=>{const ve=Ue.current;let De;if(ve){const yt=ve.getBoundingClientRect();De={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollLeftNormalized:iQ(ve,i.direction),scrollWidth:ve.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let Ze;if(ve&&A!==!1){const yt=ot.current.children;if(yt.length>0){const Fr=yt[Xe.get(A)];Ze=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:Ze}},kt=_a(()=>{const{tabsMeta:ve,tabMeta:De}=st();let Ze=0,yt;if(P)yt="top",De&&ve&&(Ze=De.top-ve.top+ve.scrollTop);else if(yt=a?"right":"left",De&&ve){const Eo=a?ve.scrollLeftNormalized+ve.clientWidth-ve.scrollWidth:ve.scrollLeft;Ze=(a?-1:1)*(De[yt]-ve[yt]+Eo)}const Fr={[yt]:Ze,[F]:De?De[F]:0};if(isNaN(W[yt])||isNaN(W[F]))ee(Fr);else{const Eo=Math.abs(W[yt]-Fr[yt]),Xv=Math.abs(W[F]-Fr[F]);(Eo>=1||Xv>=1)&&ee(Fr)}}),$e=(ve,{animation:De=!0}={})=>{De?Ile(L,Ue.current,ve,{duration:i.transitions.duration.standard}):Ue.current[L]=ve},It=ve=>{let De=Ue.current[L];P?De+=ve:(De+=ve*(a?-1:1),De*=a&&SV()==="reverse"?-1:1),$e(De)},qt=()=>{const ve=Ue.current[N];let De=0;const Ze=Array.from(ot.current.children);for(let yt=0;ytve){yt===0&&(De=ve);break}De+=Fr[N]}return De},Pt=()=>{It(-1*qt())},K=()=>{It(qt())},ue=O.useCallback(ve=>{Pe({overflow:null,scrollbarWidth:ve})},[]),Re=()=>{const ve={};ve.scrollbarSizeListener=I?D.jsx(Xle,{onChange:ue,className:ye(G.scrollableX,G.hideScrollbar)}):null;const Ze=I&&(y==="auto"&&(te||re)||y===!0);return ve.scrollButtonStart=Ze?D.jsx(m,$({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:g,direction:a?"right":"left",onClick:Pt,disabled:!te},w,{className:ye(G.scrollButtons,w.className)})):null,ve.scrollButtonEnd=Ze?D.jsx(m,$({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:ye(G.scrollButtons,w.className)})):null,ve},Ce=_a(ve=>{const{tabsMeta:De,tabMeta:Ze}=st();if(!(!Ze||!De)){if(Ze[z]De[V]){const yt=De[L]+(Ze[V]-De[V]);$e(yt,{animation:ve})}}}),pe=_a(()=>{I&&y!==!1&&de(!J)});O.useEffect(()=>{const ve=Sv(()=>{Ue.current&&kt()}),De=Na(Ue.current);De.addEventListener("resize",ve);let Ze;return typeof ResizeObserver<"u"&&(Ze=new ResizeObserver(ve),Array.from(ot.current.children).forEach(yt=>{Ze.observe(yt)})),()=>{ve.clear(),De.removeEventListener("resize",ve),Ze&&Ze.disconnect()}},[kt]),O.useEffect(()=>{const ve=Array.from(ot.current.children),De=ve.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const Ze=ve[0],yt=ve[De-1],Fr={root:Ue.current,threshold:.99},Eo=oS=>{ie(!oS[0].isIntersecting)},Xv=new IntersectionObserver(Eo,Fr);Xv.observe(Ze);const iq=oS=>{Q(!oS[0].isIntersecting)},xP=new IntersectionObserver(iq,Fr);return xP.observe(yt),()=>{Xv.disconnect(),xP.disconnect()}}},[I,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{kt()}),O.useEffect(()=>{Ce(oL!==W)},[Ce,W]),O.useImperativeHandle(l,()=>({updateIndicator:kt,updateScrollButtons:pe}),[kt,pe]);const Vt=D.jsx(Yle,$({},b,{className:ye(G.indicator,b.className),ownerState:E,style:$({},W,b.style)}));let br=0;const Ae=O.Children.map(c,ve=>{if(!O.isValidElement(ve))return null;const De=ve.props.value===void 0?br:ve.props.value;Xe.set(De,br);const Ze=De===A;return br+=1,O.cloneElement(ve,$({fullWidth:T==="fullWidth",indicator:Ze&&!U&&Vt,selected:Ze,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},br===1&&A===!1&&!ve.props.tabIndex?{tabIndex:0}:{}))}),ct=ve=>{const De=ot.current,Ze=ln(De).activeElement;if(Ze.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Eo=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Eo="ArrowLeft"),ve.key){case Fr:ve.preventDefault(),xg(De,Ze,aL);break;case Eo:ve.preventDefault(),xg(De,Ze,iL);break;case"Home":ve.preventDefault(),xg(De,null,iL);break;case"End":ve.preventDefault(),xg(De,null,aL);break}},Rt=Re();return D.jsxs(jle,$({className:ye(G.root,f),ownerState:E,ref:r,as:d},k,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,D.jsxs(Ule,{className:G.scroller,ownerState:E,style:{overflow:he.overflow,[P?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-he.scrollbarWidth},ref:Ue,children:[D.jsx(qle,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:E,onKeyDown:ct,ref:ot,role:"tablist",children:Ae}),U&&Vt]}),Rt.scrollButtonEnd]}))}),Kle=Zle;function Qle(e){return Be("MuiTextField",e)}Ge("MuiTextField",["root"]);const Jle=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],eue={standard:gG,filled:uG,outlined:AG},tue=e=>{const{classes:t}=e;return Ve({root:["root"]},Qle,t)},rue=le(cG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nue=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:k,required:I=!1,rows:P,select:L=!1,SelectProps:z,type:V,value:N,variant:F="outlined"}=n,E=me(n,Jle),G=$({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:L,variant:F}),j=tue(G),B={};F==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),L&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const U=yV(v),X=p&&U?`${U}-helper-text`:void 0,W=S&&U?`${U}-label`:void 0,ee=eue[F],te=D.jsx(ee,$({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:P,maxRows:_,minRows:b,type:V,value:N,id:U,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:k,inputProps:m},B,y));return D.jsxs(rue,$({className:ye(j.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:F,ownerState:G},E,{children:[S!=null&&S!==""&&D.jsx(EM,$({htmlFor:U,id:W},g,{children:S})),L?D.jsx(kG,$({"aria-describedby":X,id:U,labelId:W,value:N,input:te},z,{children:o})):te,p&&D.jsx(bae,$({id:X},d,{children:p}))]}))}),wa=nue;var zM={},EG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(EG);var Ou=EG.exports,JS={};const iue=oq(xte);var sL;function Nu(){return sL||(sL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=iue}(JS)),JS}var aue=Ou;Object.defineProperty(zM,"__esModule",{value:!0});var OG=zM.default=void 0,oue=aue(Nu()),sue=D,lue=(0,oue.default)((0,sue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");OG=zM.default=lue;var BM={},uue=Ou;Object.defineProperty(BM,"__esModule",{value:!0});var NG=BM.default=void 0,cue=uue(Nu()),fue=D,due=(0,cue.default)((0,fue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");NG=BM.default=due;const Si={DARK:"dark",LIGHT:"light"},zG=localStorage.theme===Si.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Si.DARK:Si.LIGHT,Ys=eM,hue=hV;function ql(e){const t=hue();return O.useCallback(r=>{t(e(r))},[e,t])}const pue={isDarkMode:!1},BG=ci({name:"theme",initialState:pue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),vue=BG.actions,$G=BG.reducer;function FG(){const e=Ys(({theme:{isDarkMode:n}})=>n),t=ql(vue.setIsDarkMode);O.useEffect(()=>{t(zG===Si.DARK)},[]);const r=()=>{localStorage.theme=e?Si.LIGHT:Si.DARK,t(!e)};return D.jsx(Cv,{color:"inherit",onClick:r,children:e?D.jsx(NG,{}):D.jsx(OG,{})})}const $M=e=>AM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function gue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=eM(({theme:a})=>a.isDarkMode),i=O.useMemo(()=>$M(n?Si.DARK:Si.LIGHT),[n]);return D.jsxs(MM,{theme:i,children:[D.jsx(LM,{}),D.jsx(it,{sx:{position:"absolute",top:4,right:4},children:D.jsx(FG,{})}),D.jsxs(it,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[D.jsxs(it,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[D.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),D.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),r&&D.jsx("form",{action:r,children:D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[D.jsx(wa,{label:"Username",name:"username"}),D.jsx(wa,{label:"Password",name:"password",type:"password"}),t&&D.jsx(Wre,{severity:"error",children:t}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&D.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:o,iconUrl:s},l)=>D.jsxs(Cv,{href:o,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[D.jsx("img",{height:"32",src:s}),D.jsx(qe,{height:"32",variant:"button",children:a})]},`auth-provider-${l}`))})]})]})}var FM={},mue=Ou;Object.defineProperty(FM,"__esModule",{value:!0});var VG=FM.default=void 0,yue=mue(Nu()),xue=D,Sue=(0,yue.default)((0,xue.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");VG=FM.default=Sue;function vx({open:e,onClose:t,children:r}){return D.jsx(oG,{onClose:t,open:e,children:D.jsxs(it,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[D.jsx(Cv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:D.jsx(VG,{})}),r]})})}function bue(){const[e,t]=O.useState(!1),r=Ys(({swarm:n})=>n.version);return D.jsxs(D.Fragment,{children:[D.jsx(it,{sx:{display:"flex",justifyContent:"flex-end"},children:D.jsx(qa,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),D.jsxs(vx,{onClose:()=>t(!1),open:e,children:[D.jsxs("div",{children:[D.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"About"}),D.jsxs(qe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",D.jsx(on,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),D.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",D.jsx(on,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",D.jsx(on,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),D.jsxs(qe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",D.jsx(on,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),D.jsxs("div",{children:[D.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Version"}),D.jsx(on,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),D.jsxs("div",{children:[D.jsx(qe,{component:"h2",mb:1,variant:"h4",children:"Links"}),D.jsx(qe,{component:"p",variant:"subtitle1",children:D.jsx(on,{href:"https://github.com/locustio/locust",children:"GitHub"})}),D.jsx(qe,{component:"p",variant:"subtitle1",children:D.jsx(on,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function _ue(){return D.jsx(jf,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:D.jsx(bue,{})})}function wue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return D.jsxs(it,{sx:{display:"flex",columnGap:2},children:[D.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[D.jsx(qe,{variant:"button",children:"Host"}),D.jsx(qe,{children:r})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[D.jsx(qe,{variant:"button",children:"Status"}),D.jsx(qe,{variant:"button",children:t})]}),(t===mi.RUNNING||t===mi.SPAWNING)&&D.jsxs(D.Fragment,{children:[D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(qe,{variant:"button",children:"Users"}),D.jsx(qe,{variant:"button",children:a})]})]}),e&&D.jsxs(D.Fragment,{children:[D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(qe,{variant:"button",children:"Workers"}),D.jsx(qe,{variant:"button",children:o})]})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(qe,{variant:"button",children:"RPS"}),D.jsx(qe,{variant:"button",children:n})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(qe,{variant:"button",children:"Failures"}),D.jsx(qe,{variant:"button",children:`${i}%`})]})]})}const Cue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Tue=Ln(Cue)(wue),Aue="input, select, textarea",Mue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function VM({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(Aue)].reduce((o,s)=>({...o,[s.name]:Mue(s)}),{});t(a)},[t]);return D.jsx("form",{onSubmit:r,children:e})}var Jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function zue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var fL=Rs;function WG(e,t){if(e===t||!(fL(e)&&fL(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},$ue=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function hL(e){if(!Rs(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===dL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return r0(t,null,function(){var _,b,w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X,W,ee,te,ie,re,Q,J,de,he,Pe,Xe,Ue,ot,st,kt;return Jy(this,function($e){switch($e.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,L=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,F=N===void 0?v??"json":N,E=k.validateStatus,G=E===void 0?g??Bue:E,j=k.timeout,B=j===void 0?p:j,U=uL(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Ca(ir({},m),{signal:_}),U),L=new Headers(hL(L)),W=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=$e.sent()||L,ee=function(It){return typeof It=="object"&&(Rs(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(hL(V)),I+=te+ie),I=Oue(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},de=!1,he=B&&setTimeout(function(){de=!0,S.abort()},B),$e.label=2;case 2:return $e.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=$e.sent(),[3,6];case 4:return Pe=$e.sent(),[2,{error:{status:de?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return he&&clearTimeout(he),[7];case 6:Xe=J.clone(),M.response=Xe,ot="",$e.label=7;case 7:return $e.trys.push([7,9,,10]),[4,Promise.all([y(J,F).then(function(It){return Ue=It},function(It){return st=It}),Xe.text().then(function(It){return ot=It},function(){})])];case 8:if($e.sent(),st)throw st;return[3,10];case 9:return kt=$e.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ot,error:String(kt)},meta:M}];case 10:return[2,G(J,Ue)?{data:Ue,meta:M}:{error:{status:J.status,data:Ue},meta:M}]}})})};function y(x,S){return r0(this,null,function(){var _;return Jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var pL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),GM=Mn("__rtkq/focused"),jG=Mn("__rtkq/unfocused"),HM=Mn("__rtkq/online"),UG=Mn("__rtkq/offline"),Ba;(function(e){e.query="query",e.mutation="mutation"})(Ba||(Ba={}));function qG(e){return e.type===Ba.query}function Vue(e){return e.type===Ba.mutation}function YG(e,t,r,n,i,a){return Gue(e)?e(t,r,n,i).map(KC).map(a):Array.isArray(e)?e.map(KC).map(a):[]}function Gue(e){return typeof e=="function"}function KC(e){return typeof e=="string"?{type:e}:e}function eb(e){return e!=null}var Op=Symbol("forceQueryFn"),QC=function(e){return typeof e[Op]=="function"};function Hue(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return e0(e0([],S(o)),S(s)).filter(eb)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(eb)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(eb)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Op,L=A[P];return function(z,V){var N,F,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:E},N[Op]=L,N)),j=i.endpoints[S].select(w),B=z(G),U=j(V()),X=B.requestId,W=B.abort,ee=U.requestId!==X,te=(F=o.get(z))==null?void 0:F[E],ie=function(){return j(V())},re=Object.assign(L?B.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:E,abort:W,unwrap:function(){return r0(this,null,function(){var J;return Jy(this,function(de){switch(de.label){case 0:return[4,re];case 1:if(J=de.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(z)||{};Q[E]=re,o.set(z,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),L=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(j){return{data:j}}).catch(function(j){return{error:j}}),F=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(N,{arg:P.arg,requestId:L,abort:z,unwrap:V,unsubscribe:F,reset:F}),G=s.get(M)||{};return s.set(M,G),G[L]=E,E.then(function(){delete G[L],Object.keys(G).length||s.delete(M)}),T&&(G[T]=E,E.then(function(){G[T]===E&&(delete G[T],Object.keys(G).length||s.delete(M))})),E}}}}function vL(e){return e}function Wue(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Ki(T.data)){var k=B4(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Op]=function(){return{data:_}},w)))}},c=function(x,S){return r0(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=vL,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Op]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(de){return n(de,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new pL(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[lh]=!0,B)])];case 8:if(N=J.sent(),F=N,!(F instanceof pL))return[3,12];E=vL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,E(F.value,F.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(U={baseQueryMeta:F.meta},U[lh]=!0,U)])];case 11:return j=J.sent(),F=j,[3,12];case 12:throw typeof process<"u",console.error(F),F;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=HD(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return QC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||qG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=HD(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Nh(K2(x),m(S)),matchFulfilled:Nh(Lu(x),m(S)),matchRejected:Nh(Mp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function XG(e,t,r,n){return YG(r[e.meta.arg.endpointName][t],Lu(e)?e.payload:void 0,T1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function gL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function jue(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Mn(t+"/resetApiState"),d=ci({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:VS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=OD(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=QC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!QC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,L=C.baseQueryMeta,z=C.requestId,V=yv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?WG(Zi(T.data)?EX(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A({getStats:e.query({query:()=>"stats/requests",transformResponse:Wc}),getTasks:e.query({query:()=>"tasks",transformResponse:Wc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Wc}),getLogs:e.query({query:()=>"logs",transformResponse:Wc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:zK(tR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:tR(t)})})})}),{useGetStatsQuery:wce,useGetTasksQuery:Cce,useGetExceptionsQuery:Tce,useGetLogsQuery:Ace,useStartSwarmMutation:KG,useUpdateUserSettingsMutation:Mce}=i0;function kce({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=KG(),i=a=>{e(),n(a)};return D.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[D.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),D.jsx(VM,{onSubmit:i,children:D.jsxs(it,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[D.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const Ice=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Pce=Ln(Ice)(kce);function Dce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(Pce,{onSubmit:()=>t(!1)})})]})}var WM={},Rce=Ou;Object.defineProperty(WM,"__esModule",{value:!0});var jM=WM.default=void 0,Lce=Rce(Nu()),Ece=D,Oce=(0,Lce.default)((0,Ece.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");jM=WM.default=Oce;function UM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return D.jsxs(cG,{sx:a,children:[D.jsx(EM,{htmlFor:t,shrink:!0,children:e}),D.jsx(kG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>D.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Nce({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=gV(e),o=n?`${a} (${n})`:a;return r?D.jsx(UM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?D.jsx(dG,{control:D.jsx(XC,{defaultChecked:t}),label:o,name:e}):D.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function zce({extraOptions:e}){return D.jsxs(JV,{children:[D.jsx(tG,{expandIcon:D.jsx(jM,{}),children:D.jsx(qe,{children:"Custom parameters"})}),D.jsx(eG,{children:D.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>D.jsx(Nce,{label:t,...r},`valid-parameter-${n}`))})})]})}var qM={},Bce=Ou;Object.defineProperty(qM,"__esModule",{value:!0});var QG=qM.default=void 0,$ce=Bce(Nu()),Fce=D,Vce=(0,$ce.default)((0,Fce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");QG=qM.default=Vce;function Tv(e,{payload:t}){return NK(e,t)}const Gce=Ra,JG=ci({name:"swarm",initialState:Gce,reducers:{setSwarm:Tv}}),YM=JG.actions,Hce=JG.reducer;function Wce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return D.jsx(VM,{onSubmit:r,children:D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[D.jsx(qe,{children:`${t.userClassName} Settings`}),D.jsx(UM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>D.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:gV(a),name:a},`user-to-edit-${a}`)),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function jce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Mce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return D.jsxs(D.Fragment,{children:[D.jsx(it,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:D.jsxs(it,{sx:{maxHeight:"30vh",overflow:"auto"},children:[D.jsx(EM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),D.jsx(hG,{children:D.jsx(RG,{component:Wf,children:D.jsxs(PG,{children:[D.jsx(LG,{children:D.jsx(Qy,{children:D.jsx(zl,{colSpan:4,padding:"checkbox",children:D.jsx(XC,{checked:p>0&&h===p,indeterminate:h>0&&hD.jsxs(Qy,{hover:!0,children:[D.jsx(zl,{onClick:d(g),padding:"checkbox",children:D.jsx(XC,{checked:r.includes(g)})}),D.jsx(zl,{children:g}),D.jsx(zl,{children:D.jsx(qe,{variant:"subtitle2",children:m.host})}),D.jsx(zl,{align:"right",children:D.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:D.jsx(QG,{})})})]},`user-class-${g}`))})]})})})]})}),D.jsx(vx,{onClose:()=>s(!1),open:o,children:l&&D.jsx(Wce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Uce={setSwarm:YM.setSwarm},qce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Yce=Ln(qce,Uce)(jce);function Xce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=KG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return D.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[D.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&D.jsx(it,{marginBottom:2,marginTop:2,children:D.jsx(Yce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),D.jsx(VM,{onSubmit:p,children:D.jsxs(it,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&D.jsx(UM,{label:"Shape Class",name:"shapeClass",options:e}),D.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),D.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),D.jsxs(JV,{children:[D.jsx(tG,{expandIcon:D.jsx(jM,{}),children:D.jsx(qe,{children:"Advanced options"})}),D.jsx(eG,{children:D.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!OK(n)&&D.jsx(zce,{extraOptions:n}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const Zce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Kce={setSwarm:YM.setSwarm},e6=Ln(Zce,Kce)(Xce);function Qce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(e6,{})})]})}function Jce(){const e=()=>{fetch("stats/reset")};return D.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function efe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return D.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function tfe(){const e=Ys(({swarm:t})=>t.state);return e===mi.READY?null:e===mi.STOPPED?D.jsx(Qce,{}):D.jsxs(it,{sx:{display:"flex",columnGap:2},children:[D.jsx(Dce,{}),D.jsx(efe,{}),D.jsx(Jce,{})]})}function rfe(){return D.jsx(nne,{position:"static",children:D.jsx(jf,{maxWidth:"xl",children:D.jsxs(xle,{sx:{display:"flex",justifyContent:"space-between"},children:[D.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[D.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),D.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),D.jsxs(it,{sx:{display:"flex",columnGap:6},children:[D.jsx(Tue,{}),D.jsx(tfe,{}),D.jsx(FG,{})]})]})})})}function nfe({children:e}){return D.jsxs(D.Fragment,{children:[D.jsxs(it,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[D.jsx(rfe,{}),D.jsx("main",{children:e})]}),D.jsx(_ue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const ife={},t6=ci({name:"notification",initialState:ife,reducers:{setNotification:Tv}}),r6=t6.actions,afe=t6.reducer;function ofe(e,{key:t,shouldNotify:r}){const n=ql(r6.setNotification),i=Ys(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{Cc(e)>0&&Cc(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Cc(e))},[e])}const sfe={logs:[]},n6=ci({name:"logViewer",initialState:sfe,reducers:{setLogs:Tv}}),lfe=n6.actions,ufe=n6.reducer,cfe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function ffe(){const e=Ys(({swarm:o})=>o),t=ql(lfe.setLogs),{data:r,refetch:n}=Ace(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(cfe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),ofe(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var XM={},dfe=Ou;Object.defineProperty(XM,"__esModule",{value:!0});var i6=XM.default=void 0,hfe=dfe(Nu()),AL=D,pfe=(0,hfe.default)([(0,AL.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,AL.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");i6=XM.default=pfe;function vfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const gfe=/[ \t\n\f\r]/g;function mfe(e){return typeof e=="object"?e.type==="text"?ML(e.value):!1:ML(e)}function ML(e){return e.replace(gfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function a6(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&_fe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(IL,Afe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!IL.test(a)){let o=a.replace(wfe,Tfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZM}return new i(n,t)}function Tfe(e){return"-"+e.toLowerCase()}function Afe(e){return e.charAt(1).toUpperCase()}const Mfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kfe=a6([l6,s6,f6,d6,Sfe],"html"),h6=a6([l6,s6,f6,d6,bfe],"svg");function Ife(e){return e.join(" ").trim()}var KM={exports:{}},PL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Pfe=/\n/g,Dfe=/^\s*/,Rfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lfe=/^:\s*/,Efe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ofe=/^[;\s]*/,Nfe=/^\s+|\s+$/g,zfe=` + See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return e0(e0([],S(o)),S(s)).filter(eb)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(eb)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(eb)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Op,L=A[P];return function(z,V){var N,F,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:E},N[Op]=L,N)),j=i.endpoints[S].select(w),B=z(G),U=j(V()),X=B.requestId,W=B.abort,ee=U.requestId!==X,te=(F=o.get(z))==null?void 0:F[E],ie=function(){return j(V())},re=Object.assign(L?B.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:E,abort:W,unwrap:function(){return r0(this,null,function(){var J;return Jy(this,function(de){switch(de.label){case 0:return[4,re];case 1:if(J=de.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(z)||{};Q[E]=re,o.set(z,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),L=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(j){return{data:j}}).catch(function(j){return{error:j}}),F=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(N,{arg:P.arg,requestId:L,abort:z,unwrap:V,unsubscribe:F,reset:F}),G=s.get(M)||{};return s.set(M,G),G[L]=E,E.then(function(){delete G[L],Object.keys(G).length||s.delete(M)}),T&&(G[T]=E,E.then(function(){G[T]===E&&(delete G[T],Object.keys(G).length||s.delete(M))})),E}}}}function vL(e){return e}function Wue(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Ki(T.data)){var k=B4(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Op]=function(){return{data:_}},w)))}},c=function(x,S){return r0(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=vL,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Op]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(de){return n(de,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new pL(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[lh]=!0,B)])];case 8:if(N=J.sent(),F=N,!(F instanceof pL))return[3,12];E=vL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,E(F.value,F.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(U={baseQueryMeta:F.meta},U[lh]=!0,U)])];case 11:return j=J.sent(),F=j,[3,12];case 12:throw typeof process<"u",console.error(F),F;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=HD(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return QC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||qG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=HD(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Nh(K2(x),m(S)),matchFulfilled:Nh(Lu(x),m(S)),matchRejected:Nh(Mp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function XG(e,t,r,n){return YG(r[e.meta.arg.endpointName][t],Lu(e)?e.payload:void 0,T1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function gL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function jue(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Mn(t+"/resetApiState"),d=ci({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:VS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=OD(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=QC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!QC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,L=C.baseQueryMeta,z=C.requestId,V=yv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?WG(Zi(T.data)?EX(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A({getStats:e.query({query:()=>"stats/requests",transformResponse:Wc}),getTasks:e.query({query:()=>"tasks",transformResponse:Wc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Wc}),getLogs:e.query({query:()=>"logs",transformResponse:Wc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:zK(tR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:tR(t)})})})}),{useGetStatsQuery:wce,useGetTasksQuery:Cce,useGetExceptionsQuery:Tce,useGetLogsQuery:Ace,useStartSwarmMutation:KG,useUpdateUserSettingsMutation:Mce}=i0;function kce({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=KG(),i=a=>{e(),n(a)};return D.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[D.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),D.jsx(VM,{onSubmit:i,children:D.jsxs(it,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[D.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const Ice=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Pce=Ln(Ice)(kce);function Dce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(Pce,{onSubmit:()=>t(!1)})})]})}var WM={},Rce=Ou;Object.defineProperty(WM,"__esModule",{value:!0});var jM=WM.default=void 0,Lce=Rce(Nu()),Ece=D,Oce=(0,Lce.default)((0,Ece.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");jM=WM.default=Oce;function UM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return D.jsxs(cG,{sx:a,children:[D.jsx(EM,{htmlFor:t,shrink:!0,children:e}),D.jsx(kG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>D.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Nce({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=gV(e),o=n?`${a} (${n})`:a;return r?D.jsx(UM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?D.jsx(dG,{control:D.jsx(XC,{defaultChecked:t}),label:o,name:e}):D.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function zce({extraOptions:e}){return D.jsxs(JV,{children:[D.jsx(tG,{expandIcon:D.jsx(jM,{}),children:D.jsx(qe,{children:"Custom parameters"})}),D.jsx(eG,{children:D.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>D.jsx(Nce,{label:t,...r},`valid-parameter-${n}`))})})]})}var qM={},Bce=Ou;Object.defineProperty(qM,"__esModule",{value:!0});var QG=qM.default=void 0,$ce=Bce(Nu()),Fce=D,Vce=(0,$ce.default)((0,Fce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");QG=qM.default=Vce;function Tv(e,{payload:t}){return NK(e,t)}const Gce=Ra,JG=ci({name:"swarm",initialState:Gce,reducers:{setSwarm:Tv}}),YM=JG.actions,Hce=JG.reducer;function Wce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return D.jsx(VM,{onSubmit:r,children:D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[D.jsx(qe,{children:`${t.userClassName} Settings`}),D.jsx(UM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>D.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:gV(a),name:a},`user-to-edit-${a}`)),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function jce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Mce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return D.jsxs(D.Fragment,{children:[D.jsx(it,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:D.jsxs(it,{sx:{maxHeight:"30vh",overflow:"auto"},children:[D.jsx(EM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),D.jsx(hG,{children:D.jsx(RG,{component:Wf,children:D.jsxs(PG,{children:[D.jsx(LG,{children:D.jsx(Qy,{children:D.jsx(zl,{colSpan:4,padding:"checkbox",children:D.jsx(XC,{checked:p>0&&h===p,indeterminate:h>0&&hD.jsxs(Qy,{hover:!0,children:[D.jsx(zl,{onClick:d(g),padding:"checkbox",children:D.jsx(XC,{checked:r.includes(g)})}),D.jsx(zl,{children:g}),D.jsx(zl,{children:D.jsx(qe,{variant:"subtitle2",children:m.host})}),D.jsx(zl,{align:"right",children:D.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:D.jsx(QG,{})})})]},`user-class-${g}`))})]})})})]})}),D.jsx(vx,{onClose:()=>s(!1),open:o,children:l&&D.jsx(Wce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Uce={setSwarm:YM.setSwarm},qce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Yce=Ln(qce,Uce)(jce);function Xce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=KG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return D.jsxs(jf,{maxWidth:"md",sx:{my:2},children:[D.jsx(qe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&D.jsx(it,{marginBottom:2,marginTop:2,children:D.jsx(Yce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),D.jsx(VM,{onSubmit:p,children:D.jsxs(it,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&D.jsx(UM,{label:"Shape Class",name:"shapeClass",options:e}),D.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),D.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),D.jsxs(JV,{children:[D.jsx(tG,{expandIcon:D.jsx(jM,{}),children:D.jsx(qe,{children:"Advanced options"})}),D.jsx(eG,{children:D.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!OK(n)&&D.jsx(zce,{extraOptions:n}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const Zce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Kce={setSwarm:YM.setSwarm},e6=Ln(Zce,Kce)(Xce);function Qce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(e6,{})})]})}function Jce(){const e=()=>{fetch("stats/reset")};return D.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function efe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return D.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function tfe(){const e=Ys(({swarm:t})=>t.state);return e===mi.READY?null:D.jsxs(it,{sx:{display:"flex",columnGap:2},children:[e===mi.STOPPED?D.jsx(Qce,{}):D.jsxs(D.Fragment,{children:[D.jsx(Dce,{}),D.jsx(efe,{})]}),D.jsx(Jce,{})]})}function rfe(){return D.jsx(nne,{position:"static",children:D.jsx(jf,{maxWidth:"xl",children:D.jsxs(xle,{sx:{display:"flex",justifyContent:"space-between"},children:[D.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[D.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),D.jsx(qe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),D.jsxs(it,{sx:{display:"flex",columnGap:6},children:[D.jsx(Tue,{}),D.jsx(tfe,{}),D.jsx(FG,{})]})]})})})}function nfe({children:e}){return D.jsxs(D.Fragment,{children:[D.jsxs(it,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[D.jsx(rfe,{}),D.jsx("main",{children:e})]}),D.jsx(_ue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const ife={},t6=ci({name:"notification",initialState:ife,reducers:{setNotification:Tv}}),r6=t6.actions,afe=t6.reducer;function ofe(e,{key:t,shouldNotify:r}){const n=ql(r6.setNotification),i=Ys(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{Cc(e)>0&&Cc(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Cc(e))},[e])}const sfe={logs:[]},n6=ci({name:"logViewer",initialState:sfe,reducers:{setLogs:Tv}}),lfe=n6.actions,ufe=n6.reducer,cfe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function ffe(){const e=Ys(({swarm:o})=>o),t=ql(lfe.setLogs),{data:r,refetch:n}=Ace(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(cfe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),ofe(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var XM={},dfe=Ou;Object.defineProperty(XM,"__esModule",{value:!0});var i6=XM.default=void 0,hfe=dfe(Nu()),AL=D,pfe=(0,hfe.default)([(0,AL.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,AL.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");i6=XM.default=pfe;function vfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const gfe=/[ \t\n\f\r]/g;function mfe(e){return typeof e=="object"?e.type==="text"?ML(e.value):!1:ML(e)}function ML(e){return e.replace(gfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function a6(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&_fe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(IL,Afe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!IL.test(a)){let o=a.replace(wfe,Tfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ZM}return new i(n,t)}function Tfe(e){return"-"+e.toLowerCase()}function Afe(e){return e.charAt(1).toUpperCase()}const Mfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},kfe=a6([l6,s6,f6,d6,Sfe],"html"),h6=a6([l6,s6,f6,d6,bfe],"svg");function Ife(e){return e.join(" ").trim()}var KM={exports:{}},PL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Pfe=/\n/g,Dfe=/^\s*/,Rfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lfe=/^:\s*/,Efe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ofe=/^[;\s]*/,Nfe=/^\s+|\s+$/g,zfe=` `,DL="/",RL="*",Bl="",Bfe="comment",$fe="declaration",Ffe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Pfe);v&&(r+=v.length);var g=p.lastIndexOf(zfe);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Dfe)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(DL!=e.charAt(0)||RL!=e.charAt(1))){for(var v=2;Bl!=e.charAt(v)&&(RL!=e.charAt(v)||DL!=e.charAt(v+1));)++v;if(v+=2,Bl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Bfe,comment:g})}}function d(){var p=a(),v=l(Rfe);if(v){if(f(),!l(Lfe))return s("property missing ':'");var g=l(Efe),m=p({type:$fe,property:LL(v[0].replace(PL,Bl)),value:g?LL(g[0].replace(PL,Bl)):Bl});return l(Ofe),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function LL(e){return e?e.replace(Nfe,Bl):Bl}var Vfe=Ffe;function p6(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Vfe(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Wfe(e){const t=QM(e),r=v6(e);if(t&&r)return{start:t,end:r}}function Hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?EL(e.position):"start"in e||"end"in e?EL(e):"line"in e||"column"in e?tT(e):""}function tT(e){return OL(e&&e.line)+":"+OL(e&&e.column)}function EL(e){return tT(e&&e.start)+"-"+tT(e&&e.end)}function OL(e){return e&&typeof e=="number"?e:1}class pn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Hh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}pn.prototype.file="";pn.prototype.name="";pn.prototype.reason="";pn.prototype.message="";pn.prototype.stack="";pn.prototype.column=void 0;pn.prototype.line=void 0;pn.prototype.ancestors=void 0;pn.prototype.cause=void 0;pn.prototype.fatal=void 0;pn.prototype.place=void 0;pn.prototype.ruleId=void 0;pn.prototype.source=void 0;const JM={}.hasOwnProperty,jfe=new Map,Ufe=/[A-Z]/g,qfe=/-([a-z])/g,Yfe=new Set(["table","tbody","thead","tfoot","tr"]),Xfe=new Set(["td","th"]);function Zfe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Qfe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Kfe(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?h6:kfe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=m6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function m6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=h6,e.schema=i),e.ancestors.push(t);let a=Jfe(e,t);const o=ede(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Yfe.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!mfe(l):!0})),JM.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Kfe(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Qfe(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=QM(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Jfe(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:jfe;for(;++n-1&&e.test(String.fromCharCode(r))}}const dde={'"':"quot","&":"amp","<":"lt",">":"gt"};function hde(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dde[r]+";"}}function pde(e,t){const r=hde(Bu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Bu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const vde={};function gde(e,t){const r=t||vde,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return x6(e,n,i)}function x6(e,t,r){if(mde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return NL(e.children,t,r)}return Array.isArray(e)?NL(e,t,r):""}function NL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?($a(e,e.length,0,t),e):t}const BL={}.hasOwnProperty;function yde(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function sf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return mt(l)?(e.enter(r),s(l)):t(l)}function s(l){return mt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Tde(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function FL(e){if(e===null||In(e)||fde(e))return 1;if(cde(e))return 2}function tk(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);VL(f,-l),VL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=fi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=fi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=fi(u,tk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=fi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=fi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,$a(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&mt(b)?Nt(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||je(b)?e.check(GL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||je(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),mt(L)?Nt(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L)}function k(L){return L===s?(b.enter("codeFencedFenceSequence"),I(L)):C(L)}function I(L){return L===s?(A++,b.consume(L),I):A>=o?(b.exit("codeFencedFenceSequence"),mt(L)?Nt(b,P,"whitespace")(L):P(L)):C(L)}function P(L){return L===null||je(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function zde(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const ob={name:"codeIndented",tokenize:$de},Bde={tokenize:Fde,partial:!0};function $de(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):je(u)?e.attempt(Bde,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Fde(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):je(o)?i(o):r(o)}}const Vde={name:"codeText",tokenize:Wde,resolve:Gde,previous:Hde};function Gde(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function T6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||rT(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||je(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||In(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!mt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function M6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Wh(e,t){let r;return n;function n(i){return je(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):mt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Kde={name:"definition",tokenize:Jde},Qde={tokenize:ehe,partial:!0};function Jde(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return A6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=sf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return In(h)?Wh(e,u)(h):u(h)}function u(h){return T6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Qde,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function ehe(e,t,r){return n;function n(s){return In(s)?Wh(e,i)(s):r(s)}function i(s){return M6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return mt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||je(s)?t(s):r(s)}}const the={name:"hardBreakEscape",tokenize:rhe};function rhe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return je(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const nhe={name:"headingAtx",tokenize:ahe,resolve:ihe};function ihe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},$a(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ahe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||In(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):mt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||In(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const ohe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WL=["pre","script","style","textarea"],she={name:"htmlFlow",tokenize:fhe,resolveTo:che,concrete:!0},lhe={tokenize:hhe,partial:!0},uhe={tokenize:dhe,partial:!0};function che(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fhe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:E):ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):ya(B)?(e.consume(B),i=4,n.interrupt?t:E):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:E):r(B)}function p(B){const U="CDATA[";return B===U.charCodeAt(s++)?(e.consume(B),s===U.length?n.interrupt?t:k:p):r(B)}function v(B){return ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||In(B)){const U=B===47,X=o.toLowerCase();return!U&&!a&&WL.includes(X)?(i=1,n.interrupt?t(B):k(B)):ohe.includes(o.toLowerCase())?(i=6,U?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Vn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return mt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||ya(B)?(e.consume(B),S):mt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Vn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):mt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):mt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||je(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||In(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||mt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||je(B)?k(B):mt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),E):B===93&&i===5?(e.consume(B),F):je(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lhe,j,I)(B)):B===null||je(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(uhe,P,j)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),L}function L(B){return B===null||je(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),E):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const U=o.toLowerCase();return WL.includes(U)?(e.consume(B),G):k(B)}return ya(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function F(B){return B===93?(e.consume(B),E):k(B)}function E(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),E):k(B)}function G(B){return B===null||je(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),G)}function j(B){return e.exit("htmlFlow"),t(B)}}function dhe(e,t,r){const n=this;return i;function i(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function hhe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gx,t,r)}}const phe={name:"htmlText",tokenize:vhe};function vhe(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):ya(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):ya(E)?(e.consume(E),y):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):je(E)?(o=f,V(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?z(E):E===45?d(E):f(E)}function p(E){const G="CDATA[";return E===G.charCodeAt(a++)?(e.consume(E),a===G.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):je(E)?(o=v,V(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),m):v(E)}function m(E){return E===62?z(E):E===93?(e.consume(E),m):v(E)}function y(E){return E===null||E===62?z(E):je(E)?(o=y,V(E)):(e.consume(E),y)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):je(E)?(o=x,V(E)):(e.consume(E),x)}function S(E){return E===62?z(E):x(E)}function _(E){return ya(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Vn(E)?(e.consume(E),b):w(E)}function w(E){return je(E)?(o=w,V(E)):mt(E)?(e.consume(E),w):z(E)}function C(E){return E===45||Vn(E)?(e.consume(E),C):E===47||E===62||In(E)?A(E):r(E)}function A(E){return E===47?(e.consume(E),z):E===58||E===95||ya(E)?(e.consume(E),T):je(E)?(o=A,V(E)):mt(E)?(e.consume(E),A):z(E)}function T(E){return E===45||E===46||E===58||E===95||Vn(E)?(e.consume(E),T):M(E)}function M(E){return E===61?(e.consume(E),k):je(E)?(o=M,V(E)):mt(E)?(e.consume(E),M):A(E)}function k(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,I):je(E)?(o=k,V(E)):mt(E)?(e.consume(E),k):(e.consume(E),P)}function I(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):je(E)?(o=I,V(E)):(e.consume(E),I)}function P(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||In(E)?A(E):(e.consume(E),P)}function L(E){return E===47||E===62||In(E)?A(E):r(E)}function z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function V(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),N}function N(E){return mt(E)?Nt(e,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):F(E)}function F(E){return e.enter("htmlTextData"),o(E)}}const rk={name:"labelEnd",tokenize:bhe,resolveTo:She,resolveAll:xhe},ghe={tokenize:_he},mhe={tokenize:whe},yhe={tokenize:Che};function xhe(e){let t=-1;for(;++t=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),mt(u)?Nt(e,s,"whitespace")(u):s(u))}}const mn={name:"list",tokenize:Lhe,continuation:{tokenize:Ehe},exit:Nhe},Dhe={tokenize:zhe,partial:!0},Rhe={tokenize:Ohe,partial:!0};function Lhe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:nT(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return nT(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(gx,n.interrupt?r:c,e.attempt(Dhe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return mt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ehe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(gx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!mt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Rhe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(mn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ohe(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Nhe(e){e.exit(this.containerState.type)}function zhe(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!mt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const jL={name:"setextUnderline",tokenize:$he,resolveTo:Bhe};function Bhe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function $he(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),mt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Fhe={tokenize:Vhe};function Vhe(e){const t=this,r=e.attempt(gx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ude,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Ghe={resolveAll:I6()},Hhe=k6("string"),Whe=k6("text");function k6(e){return{tokenize:t,resolveAll:I6(e==="text"?jhe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Yhe(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||qL).call(Re,void 0,Vt[0])}for(ue.position={start:Bo(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Bo(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe Locust - +
diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index 24bb3fc727..91a663e8c2 100644 --- a/locust/webui/dist/index.html +++ b/locust/webui/dist/index.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/src/components/StateButtons/StateButtons.tsx b/locust/webui/src/components/StateButtons/StateButtons.tsx index b8ab431f37..6a2312659c 100644 --- a/locust/webui/src/components/StateButtons/StateButtons.tsx +++ b/locust/webui/src/components/StateButtons/StateButtons.tsx @@ -14,12 +14,16 @@ export default function StateButtons() { return null; } - return swarmState === SWARM_STATE.STOPPED ? ( - - ) : ( + return ( - - + {swarmState === SWARM_STATE.STOPPED ? ( + + ) : ( + <> + + + + )} ); diff --git a/locust/webui/src/components/StateButtons/tests/StateButtons.test.tsx b/locust/webui/src/components/StateButtons/tests/StateButtons.test.tsx index b71048a1c3..a7008a8196 100644 --- a/locust/webui/src/components/StateButtons/tests/StateButtons.test.tsx +++ b/locust/webui/src/components/StateButtons/tests/StateButtons.test.tsx @@ -21,9 +21,9 @@ describe('StateButtons', () => { }); expect(queryByText('New')).toBeTruthy(); + expect(queryByText('Reset')).toBeTruthy(); expect(queryByText('Edit')).toBeFalsy(); expect(queryByText('Stop')).toBeFalsy(); - expect(queryByText('Reset')).toBeFalsy(); }); test('renders EditButton, StopButton, and ResetButton when swarm state is RUNNING', () => {