locust 2.31.4.dev44__py3-none-any.whl → 2.31.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,7 +139,7 @@ ${j.current.stack}
139
139
  }
140
140
  `),gi.rippleVisible,_re,IT,({theme:e})=>e.transitions.easing.easeInOut,gi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,gi.child,gi.childLeaving,wre,IT,({theme:e})=>e.transitions.easing.easeInOut,gi.childPulsate,Cre,({theme:e})=>e.transitions.easing.easeInOut),Mre=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ge(n,Sre),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:T}=S;u(A=>[...A,P.jsx(Are,{classes:{ripple:ye(a.ripple,gi.ripple),rippleVisible:ye(a.rippleVisible,gi.rippleVisible),ripplePulsate:ye(a.ripplePulsate,gi.ripplePulsate),child:ye(a.child,gi.child),childLeaving:ye(a.childLeaving,gi.childLeaving),childPulsate:ye(a.childPulsate,gi.childPulsate)},timeout:IT,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=T},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:T=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const A=T?null:v.current,M=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,R;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:E,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(E-M.left),I=Math.round(N-M.top)}if(C)R=Math.sqrt((2*M.width**2+M.height**2)/3),R%2===0&&(R+=1);else{const E=Math.max(Math.abs((A?A.clientWidth:0)-k),k)*2+2,N=Math.max(Math.abs((A?A.clientHeight:0)-I),I)*2+2;R=Math.sqrt(E**2+N**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:R,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},bre)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:R,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),P.jsx(Tre,B({className:ye(gi.root,a.root,o),ref:v},s,{children:P.jsx(dk,{component:null,exit:!0,children:l})}))});function kre(e){return ze("MuiButtonBase",e)}const Ire=Fe("MuiButtonBase",["root","disabled","focusVisible"]),Pre=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Dre=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Be({root:["root",t&&"disabled",r&&"focusVisible"]},kre,i);return r&&n&&(o.root+=` ${n}`),o},Rre=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ire.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xu=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:T,onTouchMove:A,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:R,type:E}=n,N=ge(n,Pre),$=O.useRef(null),z=O.useRef(null),V=lr(z,R),{isFocusVisibleRef:L,onFocus:G,onBlur:H,ref:F}=vx(),[Y,J]=O.useState(!1);u&&Y&&J(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{J(!0),$.current.focus()}}),[]);const[j,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const Q=j&&!c&&!u;O.useEffect(()=>{Y&&d&&!c&&j&&z.current.pulsate()},[c,d,Y,j]);function te(he,pt,Jt=f){return ea(_e=>(pt&&pt(_e),!Jt&&z.current&&z.current[he](_e),!0))}const ae=te("start",b),K=te("stop",g),ne=te("stop",m),me=te("stop",C),pe=te("stop",he=>{Y&&he.preventDefault(),w&&w(he)}),Me=te("start",M),je=te("stop",T),Ue=te("stop",A),rt=te("stop",he=>{H(he),L.current===!1&&J(!1),p&&p(he)},!1),ot=ea(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(J(!0),x&&x(he)),y&&y(he)}),st=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Xe=O.useRef(!1),Gt=ea(he=>{d&&!Xe.current&&Y&&z.current&&he.key===" "&&(Xe.current=!0,z.current.stop(he,()=>{z.current.start(he)})),he.target===he.currentTarget&&st()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&st()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Tt=ea(he=>{d&&he.key===" "&&z.current&&Y&&!he.defaultPrevented&&(Xe.current=!1,z.current.stop(he,()=>{z.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&st()&&he.key===" "&&!he.defaultPrevented&&v(he)});let lt=l;lt==="button"&&(N.href||N.to)&&(lt=h);const X={};lt==="button"?(X.type=E===void 0?"button":E,X.disabled=u):(!N.href&&!N.to&&(X.role="button"),u&&(X["aria-disabled"]=u));const ie=lr(r,F,$),Pe=B({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:Y}),be=Dre(Pe);return P.jsxs(Rre,B({as:lt,className:ye(be.root,s),ownerState:Pe,onBlur:rt,onClick:v,onContextMenu:K,onFocus:ot,onKeyDown:Gt,onKeyUp:Tt,onMouseDown:ae,onMouseLeave:pe,onMouseUp:me,onDragLeave:ne,onTouchEnd:je,onTouchMove:Ue,onTouchStart:Me,ref:ie,tabIndex:u?-1:k,type:E},X,N,{children:[o,Q?P.jsx(Mre,B({ref:V,center:a},I)):null]}))});function Ere(e){return ze("MuiAccordionSummary",e)}const lf=Fe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Lre=["children","className","expandIcon","focusVisibleClassName","onClick"],Ore=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Be({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Ere,t)},Nre=le(Xu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return B({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${lf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${lf.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${lf.expanded}`]:{minHeight:64}})}),zre=le("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>B({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${lf.expanded}`]:{margin:"20px 0"}})),Bre=le("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${lf.expanded}`]:{transform:"rotate(180deg)"}})),vk=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ge(n,Lre),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(Y6),p=m=>{h&&h(m),l&&l(m)},v=B({},n,{expanded:d,disabled:c,disableGutters:f}),g=Ore(v);return P.jsxs(Nre,B({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:ye(g.root,a),focusVisibleClassName:ye(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[P.jsx(zre,{className:g.content,ownerState:v,children:i}),o&&P.jsx(Bre,{className:g.expandIconWrapper,ownerState:v,children:o})]}))});function Fre(e){return ze("MuiAlert",e)}const AE=Fe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function $re(e){return ze("MuiIconButton",e)}const Vre=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Gre=["edge","children","className","color","disabled","disableFocusRipple","size"],Hre=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return Be(o,$re,t)},Wre=le(Xu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>B({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:qt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return B({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&B({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":B({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:qt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Vre.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),eg=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=ge(n,Gre),d=B({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Hre(d);return P.jsx(Wre,B({className:ye(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),jre=Ni(P.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ure=Ni(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Yre=Ni(P.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Xre=Ni(P.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),qre=Ni(P.jsx("path",{d:"M19 6.41L17.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"),Zre=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Kre=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Be(a,Fre,i)},Qre=le(il,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?iv:av,n=e.palette.mode==="light"?av:iv,i=t.color||t.severity;return B({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${AE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${AE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&B({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),Jre=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ene=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ME=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),kE={success:P.jsx(jre,{fontSize:"inherit"}),warning:P.jsx(Ure,{fontSize:"inherit"}),error:P.jsx(Yre,{fontSize:"inherit"}),info:P.jsx(Xre,{fontSize:"inherit"})},tne=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=$e({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:p,components:v={},componentsProps:g={},icon:m,iconMapping:y=kE,onClose:x,role:S="alert",severity:_="success",slotProps:b={},slots:w={},variant:C="standard"}=u,T=ge(u,Zre),A=B({},u,{color:p,severity:_,variant:C}),M=Kre(A),k=(n=(i=w.closeButton)!=null?i:v.CloseButton)!=null?n:eg,I=(a=(o=w.closeIcon)!=null?o:v.CloseIcon)!=null?a:qre,R=(s=b.closeButton)!=null?s:g.closeButton,E=(l=b.closeIcon)!=null?l:g.closeIcon;return P.jsxs(Qre,B({role:S,elevation:0,ownerState:A,className:ye(M.root,d),ref:r},T,{children:[m!==!1?P.jsx(Jre,{ownerState:A,className:M.icon,children:m||y[_]||kE[_]}):null,P.jsx(ene,{ownerState:A,className:M.message,children:f}),c!=null?P.jsx(ME,{ownerState:A,className:M.action,children:c}):null,c==null&&x?P.jsx(ME,{ownerState:A,className:M.action,children:P.jsx(k,B({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},R,{children:P.jsx(I,B({fontSize:"small"},E))}))}):null]}))});function rne(e){return ze("MuiTypography",e)}Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nne=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ine=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,rne,o)},ane=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>B({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),IE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},one={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sne=e=>one[e]||e,dt=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTypography"}),i=sne(n.color),a=sk(B({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=IE}=a,p=ge(a,nne),v=B({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||IE[d])||"span",m=ine(v);return P.jsx(ane,B({as:g,ref:r,ownerState:v,className:ye(m.root,s)},p))});function lne(e){return ze("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const une=["className","color","enableColorOnDark","position"],cne=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return Be(i,lne,n)},Qg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,fne=le(il,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return B({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&B({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&B({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&B({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Qg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Qg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Qg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Qg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),dne=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ge(n,une),u=B({},n,{color:a,position:s,enableColorOnDark:o}),c=cne(u);return P.jsx(fne,B({square:!0,component:"header",ownerState:u,elevation:4,className:ye(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function Hf(e){return typeof e=="string"}function Eh(e,t,r){return e===void 0||Hf(e)?t:B({},t,{ownerState:B({},t.ownerState,r)})}const hne={disableDefaultClasses:!1},pne=O.createContext(hne);function vne(e){const{disableDefaultClasses:t}=O.useContext(pne);return r=>t?"":e(r)}function X6(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function gne(e,t,r){return typeof e=="function"?e(t,r):e}function PE(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function mne(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=ye(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=B({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=B({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=X6(B({},i,n)),s=PE(n),l=PE(i),u=t(o),c=ye(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=B({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=B({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const yne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function da(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ge(e,yne),s=a?{}:gne(n,i),{props:l,internalRef:u}=mne(B({},o,{externalSlotProps:s})),c=lr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Eh(r,B({},l,{ref:c}),i)}const xne=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function bne(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function _ne(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||bne(e))}function wne(e){const t=[],r=[];return Array.from(e.querySelectorAll(xne)).forEach((n,i)=>{const a=Sne(n);a===-1||!_ne(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Cne(){return!0}function Tne(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=wne,isEnabled:o=Cne,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=lr(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=zr(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=zr(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var T,A;const M=!!((T=g.current)!=null&&T.shiftKey&&((A=g.current)==null?void 0:A.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return P.jsxs(O.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Ln="top",Ri="bottom",Ei="right",On="left",gk="auto",tg=[Ln,Ri,Ei,On],Wf="start",ov="end",Ane="clippingParents",q6="viewport",jd="popper",Mne="reference",DE=tg.reduce(function(e,t){return e.concat([t+"-"+Wf,t+"-"+ov])},[]),Z6=[].concat(tg,[gk]).reduce(function(e,t){return e.concat([t,t+"-"+Wf,t+"-"+ov])},[]),kne="beforeRead",Ine="read",Pne="afterRead",Dne="beforeMain",Rne="main",Ene="afterMain",Lne="beforeWrite",One="write",Nne="afterWrite",zne=[kne,Ine,Pne,Dne,Rne,Ene,Lne,One,Nne];function Qa(e){return e?(e.nodeName||"").toLowerCase():null}function ni(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zu(e){var t=ni(e).Element;return e instanceof t||e instanceof Element}function ki(e){var t=ni(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mk(e){if(typeof ShadowRoot>"u")return!1;var t=ni(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bne(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!ki(a)||!Qa(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function Fne(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!ki(i)||!Qa(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const $ne={name:"applyStyles",enabled:!0,phase:"write",fn:Bne,effect:Fne,requires:["computeStyles"]};function ja(e){return e.split("-")[0]}var gu=Math.max,D0=Math.min,jf=Math.round;function PT(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function K6(){return!/^((?!chrome|android).)*safari/i.test(PT())}function Uf(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&ki(e)&&(i=e.offsetWidth>0&&jf(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&jf(n.height)/e.offsetHeight||1);var o=zu(e)?ni(e):window,s=o.visualViewport,l=!K6()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function yk(e){var t=Uf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Q6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&mk(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Oo(e){return ni(e).getComputedStyle(e)}function Vne(e){return["table","td","th"].indexOf(Qa(e))>=0}function al(e){return((zu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vx(e){return Qa(e)==="html"?e:e.assignedSlot||e.parentNode||(mk(e)?e.host:null)||al(e)}function RE(e){return!ki(e)||Oo(e).position==="fixed"?null:e.offsetParent}function Gne(e){var t=/firefox/i.test(PT()),r=/Trident/i.test(PT());if(r&&ki(e)){var n=Oo(e);if(n.position==="fixed")return null}var i=Vx(e);for(mk(i)&&(i=i.host);ki(i)&&["html","body"].indexOf(Qa(i))<0;){var a=Oo(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function rg(e){for(var t=ni(e),r=RE(e);r&&Vne(r)&&Oo(r).position==="static";)r=RE(r);return r&&(Qa(r)==="html"||Qa(r)==="body"&&Oo(r).position==="static")?t:r||Gne(e)||t}function xk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lp(e,t,r){return gu(e,D0(t,r))}function Hne(e,t,r){var n=lp(e,t,r);return n>r?r:n}function J6(){return{top:0,right:0,bottom:0,left:0}}function eG(e){return Object.assign({},J6(),e)}function tG(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Wne=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,eG(typeof t!="number"?t:tG(t,tg))};function jne(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=ja(r.placement),l=xk(s),u=[On,Ei].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=Wne(i.padding,r),d=yk(a),h=l==="y"?Ln:On,p=l==="y"?Ri:Ei,v=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=rg(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-g/2,S=f[h],_=y-d[c]-f[p],b=y/2-d[c]/2+x,w=lp(S,b,_),C=l;r.modifiersData[n]=(t={},t[C]=w,t.centerOffset=w-b,t)}}function Une(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Q6(t.elements.popper,i)&&(t.elements.arrow=i))}const Yne={name:"arrow",enabled:!0,phase:"main",fn:jne,effect:Une,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yf(e){return e.split("-")[1]}var Xne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qne(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:jf(r*i)/i||0,y:jf(n*i)/i||0}}function EE(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),x=On,S=Ln,_=window;if(u){var b=rg(r),w="clientHeight",C="clientWidth";if(b===ni(r)&&(b=al(r),Oo(b).position!=="static"&&s==="absolute"&&(w="scrollHeight",C="scrollWidth")),b=b,i===Ln||(i===On||i===Ei)&&a===ov){S=Ri;var T=f&&b===_&&_.visualViewport?_.visualViewport.height:b[w];v-=T-n.height,v*=l?1:-1}if(i===On||(i===Ln||i===Ri)&&a===ov){x=Ei;var A=f&&b===_&&_.visualViewport?_.visualViewport.width:b[C];h-=A-n.width,h*=l?1:-1}}var M=Object.assign({position:s},u&&Xne),k=c===!0?qne({x:h,y:v},ni(r)):{x:h,y:v};if(h=k.x,v=k.y,l){var I;return Object.assign({},M,(I={},I[S]=y?"0":"",I[x]=m?"0":"",I.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",I))}return Object.assign({},M,(t={},t[S]=y?v+"px":"",t[x]=m?h+"px":"",t.transform="",t))}function Zne(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:ja(t.placement),variation:Yf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,EE(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,EE(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zne,data:{}};var Jg={passive:!0};function Qne(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=ni(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,Jg)}),s&&l.addEventListener("resize",r.update,Jg),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Jg)}),s&&l.removeEventListener("resize",r.update,Jg)}}const Jne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qne,data:{}};var eie={left:"right",right:"left",bottom:"top",top:"bottom"};function ky(e){return e.replace(/left|right|bottom|top/g,function(t){return eie[t]})}var tie={start:"end",end:"start"};function LE(e){return e.replace(/start|end/g,function(t){return tie[t]})}function Sk(e){var t=ni(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bk(e){return Uf(al(e)).left+Sk(e).scrollLeft}function rie(e,t){var r=ni(e),n=al(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=K6();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+bk(e),y:l}}function nie(e){var t,r=al(e),n=Sk(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=gu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=gu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bk(e),l=-n.scrollTop;return Oo(i||r).direction==="rtl"&&(s+=gu(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function _k(e){var t=Oo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function rG(e){return["html","body","#document"].indexOf(Qa(e))>=0?e.ownerDocument.body:ki(e)&&_k(e)?e:rG(Vx(e))}function up(e,t){var r;t===void 0&&(t=[]);var n=rG(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=ni(n),o=i?[a].concat(a.visualViewport||[],_k(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(up(Vx(o)))}function DT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iie(e,t){var r=Uf(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function OE(e,t,r){return t===q6?DT(rie(e,r)):zu(t)?iie(t,r):DT(nie(al(e)))}function aie(e){var t=up(Vx(e)),r=["absolute","fixed"].indexOf(Oo(e).position)>=0,n=r&&ki(e)?rg(e):e;return zu(n)?t.filter(function(i){return zu(i)&&Q6(i,n)&&Qa(i)!=="body"}):[]}function oie(e,t,r,n){var i=t==="clippingParents"?aie(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(l,u){var c=OE(e,u,n);return l.top=gu(c.top,l.top),l.right=D0(c.right,l.right),l.bottom=D0(c.bottom,l.bottom),l.left=gu(c.left,l.left),l},OE(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function nG(e){var t=e.reference,r=e.element,n=e.placement,i=n?ja(n):null,a=n?Yf(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Ln:l={x:o,y:t.y-r.height};break;case Ri:l={x:o,y:t.y+t.height};break;case Ei:l={x:t.x+t.width,y:s};break;case On:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?xk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Wf:l[u]=l[u]-(t[c]/2-r[c]/2);break;case ov:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function sv(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?Ane:s,u=r.rootBoundary,c=u===void 0?q6:u,f=r.elementContext,d=f===void 0?jd:f,h=r.altBoundary,p=h===void 0?!1:h,v=r.padding,g=v===void 0?0:v,m=eG(typeof g!="number"?g:tG(g,tg)),y=d===jd?Mne:jd,x=e.rects.popper,S=e.elements[p?y:d],_=oie(zu(S)?S:S.contextElement||al(e.elements.popper),l,c,o),b=Uf(e.elements.reference),w=nG({reference:b,element:x,strategy:"absolute",placement:i}),C=DT(Object.assign({},x,w)),T=d===jd?C:b,A={top:_.top-T.top+m.top,bottom:T.bottom-_.bottom+m.bottom,left:_.left-T.left+m.left,right:T.right-_.right+m.right},M=e.modifiersData.offset;if(d===jd&&M){var k=M[i];Object.keys(A).forEach(function(I){var R=[Ei,Ri].indexOf(I)>=0?1:-1,E=[Ln,Ri].indexOf(I)>=0?"y":"x";A[I]+=k[E]*R})}return A}function sie(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Z6:l,c=Yf(n),f=c?s?DE:DE.filter(function(p){return Yf(p)===c}):tg,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=sv(e,{placement:v,boundary:i,rootBoundary:a,padding:o})[ja(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function lie(e){if(ja(e)===gk)return[];var t=ky(e);return[LE(e),t,LE(t)]}function uie(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,v=r.allowedAutoPlacements,g=t.options.placement,m=ja(g),y=m===g,x=l||(y||!p?[ky(g)]:lie(g)),S=[g].concat(x).reduce(function(Y,J){return Y.concat(ja(J)===gk?sie(t,{placement:J,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):J)},[]),_=t.rects.reference,b=t.rects.popper,w=new Map,C=!0,T=S[0],A=0;A<S.length;A++){var M=S[A],k=ja(M),I=Yf(M)===Wf,R=[Ln,Ri].indexOf(k)>=0,E=R?"width":"height",N=sv(t,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),$=R?I?Ei:On:I?Ri:Ln;_[E]>b[E]&&($=ky($));var z=ky($),V=[];if(a&&V.push(N[k]<=0),s&&V.push(N[$]<=0,N[z]<=0),V.every(function(Y){return Y})){T=M,C=!1;break}w.set(M,V)}if(C)for(var L=p?3:1,G=function(J){var j=S.find(function(ee){var Q=w.get(ee);if(Q)return Q.slice(0,J).every(function(te){return te})});if(j)return T=j,"break"},H=L;H>0;H--){var F=G(H);if(F==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}const cie={name:"flip",enabled:!0,phase:"main",fn:uie,requiresIfExists:["offset"],data:{_skip:!1}};function NE(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function zE(e){return[Ln,Ei,Ri,On].some(function(t){return e[t]>=0})}function fie(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=sv(t,{elementContext:"reference"}),s=sv(t,{altBoundary:!0}),l=NE(o,n),u=NE(s,i,a),c=zE(l),f=zE(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const die={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fie};function hie(e,t,r){var n=ja(e),i=[On,Ln].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[On,Ei].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function pie(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=Z6.reduce(function(c,f){return c[f]=hie(f,t.rects,a),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}const vie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pie};function gie(e){var t=e.state,r=e.name;t.modifiersData[r]=nG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const mie={name:"popperOffsets",enabled:!0,phase:"read",fn:gie,data:{}};function yie(e){return e==="x"?"y":"x"}function xie(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,p=r.tetherOffset,v=p===void 0?0:p,g=sv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=ja(t.placement),y=Yf(t.placement),x=!y,S=xk(m),_=yie(S),b=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(b){if(a){var I,R=S==="y"?Ln:On,E=S==="y"?Ri:Ei,N=S==="y"?"height":"width",$=b[S],z=$+g[R],V=$-g[E],L=h?-C[N]/2:0,G=y===Wf?w[N]:C[N],H=y===Wf?-C[N]:-w[N],F=t.elements.arrow,Y=h&&F?yk(F):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J6(),j=J[R],ee=J[E],Q=lp(0,w[N],Y[N]),te=x?w[N]/2-L-Q-j-A.mainAxis:G-Q-j-A.mainAxis,ae=x?-w[N]/2+L+Q+ee+A.mainAxis:H+Q+ee+A.mainAxis,K=t.elements.arrow&&rg(t.elements.arrow),ne=K?S==="y"?K.clientTop||0:K.clientLeft||0:0,me=(I=M==null?void 0:M[S])!=null?I:0,pe=$+te-me-ne,Me=$+ae-me,je=lp(h?D0(z,pe):z,$,h?gu(V,Me):V);b[S]=je,k[S]=je-$}if(s){var Ue,rt=S==="x"?Ln:On,ot=S==="x"?Ri:Ei,st=b[_],Xe=_==="y"?"height":"width",Gt=st+g[rt],Tt=st-g[ot],lt=[Ln,On].indexOf(m)!==-1,X=(Ue=M==null?void 0:M[_])!=null?Ue:0,ie=lt?Gt:st-w[Xe]-C[Xe]-X+A.altAxis,Pe=lt?st+w[Xe]+C[Xe]-X-A.altAxis:Tt,be=h&&lt?Hne(ie,st,Pe):lp(h?ie:Gt,st,h?Pe:Tt);b[_]=be,k[_]=be-st}t.modifiersData[n]=k}}const Sie={name:"preventOverflow",enabled:!0,phase:"main",fn:xie,requiresIfExists:["offset"]};function bie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _ie(e){return e===ni(e)||!ki(e)?Sk(e):bie(e)}function wie(e){var t=e.getBoundingClientRect(),r=jf(t.width)/e.offsetWidth||1,n=jf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Cie(e,t,r){r===void 0&&(r=!1);var n=ki(t),i=ki(t)&&wie(t),a=al(t),o=Uf(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Qa(t)!=="body"||_k(a))&&(s=_ie(t)),ki(t)?(l=Uf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=bk(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Tie(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Aie(e){var t=Tie(e);return zne.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Mie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kie(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var BE={placement:"bottom",modifiers:[],strategy:"absolute"};function FE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Iie(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?BE:i;return function(s,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},BE,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(m){var y=typeof m=="function"?m(c.options):m;v(),c.options=Object.assign({},a,c.options,y),c.scrollParents={reference:zu(s)?up(s):s.contextElement?up(s.contextElement):[],popper:up(l)};var x=Aie(kie([].concat(n,c.options.modifiers)));return c.orderedModifiers=x.filter(function(S){return S.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var m=c.elements,y=m.reference,x=m.popper;if(FE(y,x)){c.rects={reference:Cie(y,rg(x),c.options.strategy==="fixed"),popper:yk(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var _=c.orderedModifiers[S],b=_.fn,w=_.options,C=w===void 0?{}:w,T=_.name;typeof b=="function"&&(c=b({state:c,options:C,name:T,instance:h})||c)}}}},update:Mie(function(){return new Promise(function(g){h.forceUpdate(),g(c)})}),destroy:function(){v(),d=!0}};if(!FE(s,l))return h;h.setOptions(u).then(function(g){!d&&u.onFirstUpdate&&u.onFirstUpdate(g)});function p(){c.orderedModifiers.forEach(function(g){var m=g.name,y=g.options,x=y===void 0?{}:y,S=g.effect;if(typeof S=="function"){var _=S({state:c,name:m,instance:h,options:x}),b=function(){};f.push(_||b)}})}function v(){f.forEach(function(g){return g()}),f=[]}return h}}var Pie=[Jne,mie,Kne,$ne,vie,cie,Sie,Yne,die],Die=Iie({defaultModifiers:Pie});function Rie(e){return typeof e=="function"?e():e}const iG=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=lr(O.isValidElement(n)?n.ref:null,r);if(ca(()=>{a||s(Rie(i)||document.body)},[i,a]),ca(()=>{if(o&&!a)return M0(r,o),()=>{M0(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return P.jsx(O.Fragment,{children:n})}return P.jsx(O.Fragment,{children:o&&J1.createPortal(n,o)})});function Eie(e){return ze("MuiPopper",e)}Fe("MuiPopper",["root"]);const Lie=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Oie=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Nie(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function RT(e){return typeof e=="function"?e():e}function zie(e){return e.nodeType!==void 0}const Bie=()=>Be({root:["root"]},vne(Eie)),Fie={},$ie=O.forwardRef(function(t,r){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:p={},TransitionProps:v}=t,g=ge(t,Lie),m=O.useRef(null),y=lr(m,r),x=O.useRef(null),S=lr(x,d),_=O.useRef(S);ca(()=>{_.current=S},[S]),O.useImperativeHandle(d,()=>x.current,[]);const b=Nie(c,o),[w,C]=O.useState(b),[T,A]=O.useState(RT(i));O.useEffect(()=>{x.current&&x.current.forceUpdate()}),O.useEffect(()=>{i&&A(RT(i))},[i]),ca(()=>{if(!T||!u)return;const E=z=>{C(z.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{E(z)}}];l!=null&&(N=N.concat(l)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const $=Die(T,m.current,B({placement:b},f,{modifiers:N}));return _.current($),()=>{$.destroy(),_.current(null)}},[T,s,l,u,f,b]);const M={placement:w};v!==null&&(M.TransitionProps=v);const k=Bie(),I=(n=p.root)!=null?n:"div",R=da({elementType:I,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:k.root});return P.jsx(I,B({},R,{children:typeof a=="function"?a(M):a}))}),Vie=O.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=Fie,popperRef:h,style:p,transition:v=!1,slotProps:g={},slots:m={}}=t,y=ge(t,Oie),[x,S]=O.useState(!0),_=()=>{S(!1)},b=()=>{S(!0)};if(!l&&!c&&(!v||x))return null;let w;if(a)w=a;else if(n){const A=RT(n);w=A&&zie(A)?zr(A).body:zr(null).body}const C=!c&&l&&(!v||x)?"none":void 0,T=v?{in:c,onEnter:_,onExited:b}:void 0;return P.jsx(iG,{disablePortal:s,container:w,children:P.jsx($ie,B({anchorEl:n,direction:o,disablePortal:s,modifiers:u,ref:r,open:v?!x:c,placement:f,popperOptions:d,popperRef:h,slotProps:g,slots:m},y,{style:B({position:"fixed",top:0,left:0,display:C},p),TransitionProps:T,children:i}))})});function Gie(e){const t=zr(e);return t.body===e?Ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $E(e){return parseInt(Ka(e).getComputedStyle(e).paddingRight,10)||0}function Hie(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function VE(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Hie(o);s&&l&&cp(o,i)})}function Mb(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Wie(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Gie(n)){const o=d6(zr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${$E(n)+o}px`;const s=zr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${$E(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=zr(n).body;else{const o=n.parentElement,s=Ka(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function jie(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Uie{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&cp(t.modalRef,!1);const i=jie(r);VE(r,t.mount,t.modalRef,i,!0);const a=Mb(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Mb(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Wie(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Mb(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&cp(t.modalRef,r),VE(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&cp(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Yie(e){return typeof e=="function"?e():e}function Xie(e){return e?e.props.hasOwnProperty("in"):!1}const qie=new Uie;function Zie(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=qie,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=lr(p,f),[g,m]=O.useState(!c),y=Xie(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>zr(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=ea(()=>{const N=Yie(t)||S().body;i.add(_(),N),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),T=ea(N=>{h.current=N,N&&(c&&C()?b():p.current&&cp(p.current,x))}),A=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{A()},[A]),O.useEffect(()=>{c?w():(!y||!a)&&A()},[c,A,y,a,w]);const M=N=>$=>{var z;(z=N.onKeyDown)==null||z.call(N,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},k=N=>$=>{var z;(z=N.onClick)==null||z.call(N,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(N={})=>{const $=X6(e);delete $.onTransitionEnter,delete $.onTransitionExited;const z=B({},$,N);return B({role:"presentation"},z,{onKeyDown:M(z),ref:v})},getBackdropProps:(N={})=>{const $=N;return B({"aria-hidden":!0},$,{onClick:k($),open:c})},getTransitionProps:()=>{const N=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&A()};return{onEnter:bT(N,l==null?void 0:l.props.onEnter),onExited:bT($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:T,isTopModal:C,exited:g,hasTransition:y}}const Kie=["onChange","maxRows","minRows","style","value"];function em(e){return parseInt(e,10)||0}const Qie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Jie=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ge(t,Kie),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=lr(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Ka(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===`
141
141
  `&&(C.value+=" ");const T=w.boxSizing,A=em(w.paddingBottom)+em(w.paddingTop),M=em(w.borderBottomWidth)+em(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let R=k;a&&(R=Math.max(Number(a)*I,R)),i&&(R=Math.min(Number(i)*I,R)),R=Math.max(R,I);const E=R+(T==="border-box"?A+M:0),N=Math.abs(R-k)<=1;return{outerHeightStyle:E,overflow:N}},[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();GE(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();GE(_)||J1.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=qv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,T=Ka(C);return T.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),T.removeEventListener("resize",b),w&&w.disconnect()}}),ca(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return P.jsxs(O.Fragment,{children:[P.jsx("textarea",B({value:s,onChange:S,ref:f,rows:a,style:B({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:B({},Qie.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),eae=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tae=le(Vie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aG=O.forwardRef(function(t,r){var n;const i=ok(),a=$e({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:v,popperOptions:g,popperRef:m,transition:y,slots:x,slotProps:S}=a,_=ge(a,eae),b=(n=x==null?void 0:x.root)!=null?n:l==null?void 0:l.Root,w=B({anchorEl:o,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:v,popperOptions:g,popperRef:m,transition:y},_);return P.jsx(tae,B({as:s,direction:i==null?void 0:i.direction,slots:{root:b},slotProps:S??u},w,{ref:r}))});function ol({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 wk=O.createContext(void 0);function jo(){return O.useContext(wk)}function oG(e){return P.jsx(Lee,B({},e,{defaultTheme:Fx,themeId:Lu}))}function HE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function R0(e,t=!1){return e&&(HE(e.value)&&e.value!==""||t&&HE(e.defaultValue)&&e.defaultValue!=="")}function rae(e){return e.startAdornment}function nae(e){return ze("MuiInputBase",e)}const Xf=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),iae=["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"],Gx=(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]},Hx=(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]},aae=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 Be(v,nae,t)},Wx=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gx})(({theme:e,ownerState:t})=>B({},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",[`&.${Xf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&B({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),jx=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=B({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 B({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] + .${Xf.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},[`&.${Xf.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"})}),oae=P.jsx(oG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sae=O.forwardRef(function(t,r){var n;const i=$e({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:T,onClick:A,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:R,readOnly:E,renderSuffix:N,rows:$,slotProps:z={},slots:V={},startAdornment:L,type:G="text",value:H}=i,F=ge(i,iae),Y=y.value!=null?y.value:H,{current:J}=O.useRef(Y!=null),j=O.useRef(),ee=O.useCallback(be=>{},[]),Q=lr(j,x,y.ref,ee),[te,ae]=O.useState(!1),K=jo(),ne=ol({props:i,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=K?K.focused:te,O.useEffect(()=>{!K&&d&&te&&(ae(!1),C&&C())},[K,d,te,C]);const me=K&&K.onFilled,pe=K&&K.onEmpty,Me=O.useCallback(be=>{R0(be)?me&&me():pe&&pe()},[me,pe]);ca(()=>{J&&Me({value:Y})},[Y,Me,J]);const je=be=>{if(ne.disabled){be.stopPropagation();return}M&&M(be),y.onFocus&&y.onFocus(be),K&&K.onFocus?K.onFocus(be):ae(!0)},Ue=be=>{C&&C(be),y.onBlur&&y.onBlur(be),K&&K.onBlur?K.onBlur(be):ae(!1)},rt=(be,...he)=>{if(!J){const pt=be.target||j.current;if(pt==null)throw new Error(Us(1));Me({value:pt.value})}y.onChange&&y.onChange(be,...he),T&&T(be,...he)};O.useEffect(()=>{Me(j.current)},[]);const ot=be=>{j.current&&be.currentTarget===be.target&&j.current.focus(),A&&A(be)};let st=m,Xe=y;b&&st==="input"&&($?Xe=B({type:void 0,minRows:$,maxRows:$},Xe):Xe=B({type:void 0,maxRows:S,minRows:_},Xe),st=Jie);const Gt=be=>{Me(be.animationName==="mui-auto-fill-cancel"?j.current:{value:"x"})};O.useEffect(()=>{K&&K.setAdornedStart(!!L)},[K,L]);const Tt=B({},i,{color:ne.color||"primary",disabled:ne.disabled,endAdornment:p,error:ne.error,focused:ne.focused,formControl:K,fullWidth:v,hiddenLabel:ne.hiddenLabel,multiline:b,size:ne.size,startAdornment:L,type:G}),lt=aae(Tt),X=V.root||u.Root||Wx,ie=z.root||c.root||{},Pe=V.input||u.Input||jx;return Xe=B({},Xe,(n=z.input)!=null?n:c.input),P.jsxs(O.Fragment,{children:[!h&&oae,P.jsxs(X,B({},ie,!Hf(X)&&{ownerState:B({},Tt,ie.ownerState)},{ref:r,onClick:ot},F,{className:ye(lt.root,ie.className,l,E&&"MuiInputBase-readOnly"),children:[L,P.jsx(wk.Provider,{value:null,children:P.jsx(Pe,B({ownerState:Tt,"aria-invalid":ne.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:ne.disabled,id:g,onAnimationStart:Gt,name:w,placeholder:R,readOnly:E,required:ne.required,rows:$,value:Y,onKeyDown:k,onKeyUp:I,type:G},Xe,!Hf(Pe)&&{as:st,ownerState:B({},Tt,Xe.ownerState)},{ref:Q,className:ye(lt.input,Xe.className,E&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:rt,onFocus:je}))}),p,N?N(B({},ne,{startAdornment:L})):null]}))]})}),Ck=sae;function lae(e){return ze("MuiInput",e)}const Ud=B({},Xf,Fe("MuiInput",["root","underline","input"]));function uae(e){return ze("MuiOutlinedInput",e)}const Zo=B({},Xf,Fe("MuiOutlinedInput",["root","notchedOutline","input"]));function cae(e){return ze("MuiFilledInput",e)}const cl=B({},Xf,Fe("MuiFilledInput",["root","underline","input"])),fae=Ni(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dae=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hae={entering:{opacity:1},entered:{opacity:1}},pae=O.forwardRef(function(t,r){const n=Yu(),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=va}=t,x=ge(t,dae),S=O.useRef(null),_=lr(S,s.ref,r),b=R=>E=>{if(R){const N=S.current;E===void 0?R(N):R(N,E)}},w=b(d),C=b((R,E)=>{j6(R);const N=Gf({style:g,timeout:m,easing:l},{mode:"enter"});R.style.webkitTransition=n.transitions.create("opacity",N),R.style.transition=n.transitions.create("opacity",N),c&&c(R,E)}),T=b(f),A=b(v),M=b(R=>{const E=Gf({style:g,timeout:m,easing:l},{mode:"exit"});R.style.webkitTransition=n.transitions.create("opacity",E),R.style.transition=n.transitions.create("opacity",E),h&&h(R)}),k=b(p),I=R=>{a&&a(S.current,R)};return P.jsx(y,B({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:T,onEntering:w,onExit:M,onExited:k,onExiting:A,addEndListener:I,timeout:m},x,{children:(R,E)=>O.cloneElement(s,B({style:B({opacity:0,visibility:R==="exited"&&!u?"hidden":void 0},hae[R],g,s.props.style),ref:_},E))}))});function vae(e){return ze("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const gae=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mae=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},vae,t)},yae=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>B({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"})),xae=O.forwardRef(function(t,r){var n,i,a;const o=$e({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=pae,transitionDuration:m}=o,y=ge(o,gae),x=B({},o,{component:u,invisible:d}),S=mae(x),_=(n=p.root)!=null?n:f.root;return P.jsx(g,B({in:h,timeout:m},y,{children:P.jsx(yae,B({"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:B({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),Sae=ck(),Pt=Bee({themeId:Lu,defaultTheme:Sae,defaultClassName:"MuiBox-root",generateClassName:UM.generate});function bae(e){return ze("MuiButton",e)}const tm=Fe("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"]),_ae=O.createContext({}),wae=O.createContext(void 0),Cae=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Tae=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=Be(s,bae,o);return B({},o,l)},sG=e=>B({},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}}),Aae=le(Xu,{shouldForwardProp:e=>ao(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 B({},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":B({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qt(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})`:qt(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})`:qt(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":B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tm.focusVisible}`]:B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tm.disabled}`]:B({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 ${qt(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"},[`&.${tm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tm.disabled}`]:{boxShadow:"none"}}),Mae=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},sG(e))),kae=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},sG(e))),oo=O.forwardRef(function(t,r){const n=O.useContext(_ae),i=O.useContext(wae),a=jM(n,t),o=$e({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,_=ge(o,Cae),b=B({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=Tae(b),C=y&&P.jsx(Mae,{className:w.startIcon,ownerState:b,children:y}),T=p&&P.jsx(kae,{className:w.endIcon,ownerState:b,children:p}),A=i||"";return P.jsxs(Aae,B({ownerState:b,className:ye(n.className,w.root,c,A),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,T]}))});function Iae(e){return ze("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Pae=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dae=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 Be(a,Iae,t)},Rae=le(Xu)(({ownerState:e})=>B({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Eae=le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lG=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=ge(t,Pae),[T,A]=Ff({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=jo(),k=V=>{y&&y(V),M&&M.onFocus&&M.onFocus(V)},I=V=>{g&&g(V),M&&M.onBlur&&M.onBlur(V)},R=V=>{if(V.nativeEvent.defaultPrevented)return;const L=V.target.checked;A(L),m&&m(V,L)};let E=l;M&&typeof E>"u"&&(E=M.disabled);const N=b==="checkbox"||b==="radio",$=B({},t,{checked:T,disabled:E,disableFocusRipple:u,edge:c}),z=Dae($);return P.jsxs(Rae,B({component:"span",className:ye(z.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:$,ref:r},C,{children:[P.jsx(Eae,B({autoFocus:n,checked:i,defaultChecked:s,className:z.input,disabled:E,id:N?d:void 0,name:v,onChange:R,readOnly:x,ref:p,required:S,ownerState:$,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),T?a:f]}))}),Lae=Ni(P.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"),Oae=Ni(P.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"),Nae=Ni(P.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 zae(e){return ze("MuiCheckbox",e)}const kb=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Bae=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Fae=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Be(a,zae,t);return B({},t,o)},$ae=le(lG,{shouldForwardProp:e=>ao(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})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:qt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kb.checked}, &.${kb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Vae=P.jsx(Oae,{}),Gae=P.jsx(Lae,{}),Hae=P.jsx(Nae,{}),ET=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Vae,color:s="primary",icon:l=Gae,indeterminate:u=!1,indeterminateIcon:c=Hae,inputProps:f,size:d="medium",className:h}=a,p=ge(a,Bae),v=u?c:l,g=u?c:o,m=B({},a,{color:s,indeterminate:u,size:d}),y=Fae(m);return P.jsx($ae,B({type:"checkbox",inputProps:B({"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}))}),ng=ute({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=>$e({props:e,name:"MuiContainer"})}),Wae=(e,t)=>B({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),jae=e=>B({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Uae=(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=B({html:Wae(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:B({margin:0},jae(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 uG(e){const t=$e({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return P.jsxs(O.Fragment,{children:[P.jsx(oG,{styles:i=>Uae(i,n)}),r]})}function Yae(e){return ze("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const Xae=["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"],qae=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Yae,n)},Zae=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})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kae=le(xae,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),cG=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=$e({name:"MuiModal",props:t}),{BackdropComponent:c=Kae,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:T=!1,keepMounted:A=!1,onBackdropClick:M,open:k,slotProps:I,slots:R}=u,E=ge(u,Xae),N=B({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:T,keepMounted:A}),{getRootProps:$,getBackdropProps:z,getTransitionProps:V,portalRef:L,isTopModal:G,exited:H,hasTransition:F}=Zie(B({},N,{rootRef:r})),Y=B({},N,{exited:H}),J=qae(Y),j={};if(p.props.tabIndex===void 0&&(j.tabIndex="-1"),F){const{onEnter:me,onExited:pe}=V();j.onEnter=me,j.onExited=pe}const ee=(n=(i=R==null?void 0:R.root)!=null?i:m.Root)!=null?n:Zae,Q=(a=(o=R==null?void 0:R.backdrop)!=null?o:m.Backdrop)!=null?a:c,te=(s=I==null?void 0:I.root)!=null?s:y.root,ae=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,K=da({elementType:ee,externalSlotProps:te,externalForwardedProps:E,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:Y,className:ye(d,te==null?void 0:te.className,J==null?void 0:J.root,!Y.open&&Y.exited&&(J==null?void 0:J.hidden))}),ne=da({elementType:Q,externalSlotProps:ae,additionalProps:f,getSlotProps:me=>z(B({},me,{onClick:pe=>{M&&M(pe),me!=null&&me.onClick&&me.onClick(pe)}})),className:ye(ae==null?void 0:ae.className,f==null?void 0:f.className,J==null?void 0:J.backdrop),ownerState:Y});return!A&&!k&&(!F||H)?null:P.jsx(iG,{ref:L,container:v,disablePortal:b,children:P.jsxs(ee,B({},K,{children:[!T&&c?P.jsx(Q,B({},ne)):null,P.jsx(Tne,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,j)})]}))})});function Qae(e){return ze("MuiDivider",e)}Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Jae=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],eoe=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Be({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"]},Qae,n)},toe=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})=>B({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:qt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>B({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>B({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),roe=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})=>B({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),$c=O.forwardRef(function(t,r){const n=$e({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=ge(n,Jae),v=B({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=eoe(v);return P.jsx(toe,B({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?P.jsx(roe,{className:g.wrapper,ownerState:v,children:a}):null}))});$c.muiSkipListHighlight=!0;const noe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ioe=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},cae,t);return B({},t,i)},aoe=le(Wx,{shouldForwardProp:e=>ao(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gx(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 B({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}},[`&.${cl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${cl.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"},[`&.${cl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cl.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(.${cl.disabled}, .${cl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&B({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),ooe=le(jx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>B({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.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})),Tk=O.forwardRef(function(t,r){var n,i,a,o;const s=$e({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=ge(s,noe),m=B({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=ioe(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?En(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:aoe,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:ooe;return P.jsx(Ck,B({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});Tk.muiName="Input";function soe(e){return ze("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const loe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],uoe=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Be(i,soe,t)},coe=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>B({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),fG=O.forwardRef(function(t,r){const n=$e({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=ge(n,loe),y=B({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=uoe(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,R=>{if(!ap(R,["Input","Select"]))return;const E=ap(R,["Select"])?R.props.input:R;E&&rae(E.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,R=>{ap(R,["Input","Select"])&&(R0(R.props,!0)||R0(R.props.inputProps,!0))&&(I=!0)}),I}),[C,T]=O.useState(!1);l&&C&&T(!1);const A=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:A,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{T(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{T(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,A,f,d,M,p,v,g]);return P.jsx(wk.Provider,{value:k,children:P.jsx(coe,B({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),dG=mte({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$e({props:e,name:"MuiStack"})});function foe(e){return ze("MuiFormControlLabel",e)}const Lh=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),doe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],hoe=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 Be(o,foe,t)},poe=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lh.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>B({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lh.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},{[`& .${Lh.label}`]:{[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),voe=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),hG=O.forwardRef(function(t,r){var n,i;const a=$e({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=ge(a,doe),g=jo(),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(T=>{typeof l.props[T]>"u"&&typeof a[T]<"u"&&(x[T]=a[T])});const S=ol({props:a,muiFormControl:g,states:["error"]}),_=B({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=hoe(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==dt&&!c&&(C=P.jsx(dt,B({component:"span"},w,{className:ye(b.label,w==null?void 0:w.className),children:C}))),P.jsxs(poe,B({className:ye(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?P.jsxs(dG,{direction:"row",alignItems:"center",children:[C,P.jsxs(voe,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))});function goe(e){return ze("MuiFormGroup",e)}Fe("MuiFormGroup",["root","row","error"]);const moe=["className","row"],yoe=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},goe,t)},xoe=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>B({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),pG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=ge(n,moe),s=jo(),l=ol({props:n,muiFormControl:s,states:["error"]}),u=B({},n,{row:a,error:l.error}),c=yoe(u);return P.jsx(xoe,B({className:ye(c.root,i),ownerState:u,ref:r},o))});function Soe(e){return ze("MuiFormHelperText",e)}const WE=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var jE;const boe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_oe=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 Be(u,Soe,t)},woe=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})=>B({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${WE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${WE.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Coe=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ge(n,boe),l=jo(),u=ol({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=B({},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=_oe(c);return P.jsx(woe,B({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?jE||(jE=P.jsx("span",{className:"notranslate",children:"​"})):i}))});function Toe(e){return ze("MuiFormLabel",e)}const fp=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Aoe=["children","className","color","component","disabled","error","filled","focused","required"],Moe=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 Be(l,Toe,t)},koe=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${fp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fp.error}`]:{color:(e.vars||e).palette.error.main}})),Ioe=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${fp.error}`]:{color:(e.vars||e).palette.error.main}})),Poe=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ge(n,Aoe),l=jo(),u=ol({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=B({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Moe(c);return P.jsxs(koe,B({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&P.jsxs(Ioe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Doe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function LT(e){return`scale(${e}, ${e**2})`}const Roe={entering:{opacity:1,transform:LT(1)},entered:{opacity:1,transform:"none"}},Ib=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),E0=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=va}=t,m=ge(t,Doe),y=O.useRef(),x=O.useRef(),S=Yu(),_=O.useRef(null),b=lr(_,a.ref,r),w=E=>N=>{if(E){const $=_.current;N===void 0?E($):E($,N)}},C=w(c),T=w((E,N)=>{j6(E);const{duration:$,delay:z,easing:V}=Gf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(E.clientHeight),x.current=L):L=$,E.style.transition=[S.transitions.create("opacity",{duration:L,delay:z}),S.transitions.create("transform",{duration:Ib?L:L*.666,delay:z,easing:V})].join(","),l&&l(E,N)}),A=w(u),M=w(h),k=w(E=>{const{duration:N,delay:$,easing:z}=Gf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(E.clientHeight),x.current=V):V=N,E.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:Ib?V:V*.666,delay:Ib?$:$||V*.333,easing:z})].join(","),E.style.opacity=0,E.style.transform=LT(.75),f&&f(E)}),I=w(d),R=E=>{v==="auto"&&(y.current=setTimeout(E,x.current||0)),n&&n(_.current,E)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),P.jsx(g,B({appear:i,in:s,nodeRef:_,onEnter:T,onEntered:A,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:R,timeout:v==="auto"?null:v},m,{children:(E,N)=>O.cloneElement(a,B({style:B({opacity:0,transform:LT(.75),visibility:E==="exited"&&!s?"hidden":void 0},Roe[E],p,a.props.style),ref:b},N))}))});E0.muiSupportAuto=!0;const Eoe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Loe=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},lae,t);return B({},t,i)},Ooe=le(Wx,{shouldForwardProp:e=>ao(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gx(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})`),B({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ud.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ud.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(.${Ud.disabled}, .${Ud.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ud.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Noe=le(jx,{name:"MuiInput",slot:"Input",overridesResolver:Hx})({}),Ak=O.forwardRef(function(t,r){var n,i,a,o;const s=$e({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=ge(s,Eoe),y=Loe(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?En(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Ooe,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Noe;return P.jsx(Ck,B({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});Ak.muiName="Input";function zoe(e){return ze("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Boe=["disableAnimation","margin","shrink","variant","className"],Foe=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=Be(l,zoe,t);return B({},t,u)},$oe=le(Poe,{shouldForwardProp:e=>ao(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${fp.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})=>B({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&B({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&B({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&B({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Mk=O.forwardRef(function(t,r){const n=$e({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ge(n,Boe),l=jo();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=ol({props:n,muiFormControl:l,states:["size","variant","required"]}),f=B({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Foe(f);return P.jsx($oe,B({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))});function Voe(e){return ze("MuiLink",e)}const Goe=Fe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),vG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Hoe=e=>vG[e]||e,Woe=({theme:e,ownerState:t})=>{const r=Hoe(t.color),n=Vf(e,`palette.${r}`,!1)||t.color,i=Vf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:qt(n,.4)},joe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Uoe=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Be(a,Voe,t)},Yoe=le(dt,{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})=>B({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&B({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Woe({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"},[`&.${Goe.focusVisible}`]:{outline:"auto"}})),Yr=O.forwardRef(function(t,r){const n=$e({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=ge(n,joe),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=vx(),[y,x]=O.useState(!1),S=lr(r,m),_=T=>{v(T),p.current===!1&&x(!1),s&&s(T)},b=T=>{g(T),p.current===!0&&x(!0),l&&l(T)},w=B({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=Uoe(w);return P.jsx(Yoe,B({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(vG).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),dp=O.createContext({});function Xoe(e){return ze("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const qoe=["children","className","component","dense","disablePadding","subheader"],Zoe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Xoe,t)},Koe=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})=>B({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),gG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ge(n,qoe),f=O.useMemo(()=>({dense:s}),[s]),d=B({},n,{component:o,dense:s,disablePadding:l}),h=Zoe(d);return P.jsx(dp.Provider,{value:f,children:P.jsxs(Koe,B({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function Qoe(e){return ze("MuiListItem",e)}const Vc=Fe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Joe=Fe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function ese(e){return ze("MuiListItemSecondaryAction",e)}Fe("MuiListItemSecondaryAction",["root","disableGutters"]);const tse=["className"],rse=e=>{const{disableGutters:t,classes:r}=e;return Be({root:["root",t&&"disableGutters"]},ese,r)},nse=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>B({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),mG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ge(n,tse),o=O.useContext(dp),s=B({},n,{disableGutters:o.disableGutters}),l=rse(s);return P.jsx(nse,B({className:ye(l.root,i),ownerState:s,ref:r},a))});mG.muiName="ListItemSecondaryAction";const ise=["className"],ase=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ose=(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]},sse=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Be({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Qoe,n)},lse=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:ose})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&B({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Joe.root}`]:{paddingRight:48}},{[`&.${Vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vc.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"}},[`&.${Vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qt(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})`:qt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),use=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),pc=O.forwardRef(function(t,r){const n=$e({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=ge(n.ContainerProps,ise),T=ge(n,ase),A=O.useContext(dp),M=O.useMemo(()=>({dense:p||A.dense||!1,alignItems:i,disableGutters:g}),[i,A.dense,p,g]),k=O.useRef(null);ca(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),R=I.length&&ap(I[I.length-1],["ListItemSecondaryAction"]),E=B({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:R,selected:_}),N=sse(E),$=lr(k,r),z=w.root||c.Root||lse,V=b.root||f.root||{},L=B({className:ye(N.root,V.className,l),disabled:v},T);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=ye(Vc.focusVisible,x),G=Xu),R?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),P.jsx(dp.Provider,{value:M,children:P.jsxs(use,B({as:d,className:ye(N.container,h),ref:$,ownerState:E},C,{children:[P.jsx(z,B({},V,!Hf(z)&&{as:G,ownerState:B({},E,V.ownerState)},L,{children:I})),I.pop()]}))})):P.jsx(dp.Provider,{value:M,children:P.jsxs(z,B({},V,{as:G,ref:$},!Hf(z)&&{ownerState:B({},E,V.ownerState)},L,{children:[I,S&&P.jsx(mG,{children:S})]}))})}),cse=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pb(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function UE(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yG(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 Yd(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")||!yG(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const fse=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=ge(t,cse),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ca(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&_){const b=`${d6(zr(x))}px`;h.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=b,h.current.style.width=`calc(100% + ${b})`}return h.current}}),[]);const v=x=>{const S=h.current,_=x.key,b=zr(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Yd(S,b,u,l,Pb);else if(_==="ArrowUp")x.preventDefault(),Yd(S,b,u,l,UE);else if(_==="Home")x.preventDefault(),Yd(S,null,u,l,Pb);else if(_==="End")x.preventDefault(),Yd(S,null,u,l,UE);else if(_.length===1){const w=p.current,C=_.toLowerCase(),T=performance.now();w.keys.length>0&&(T-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=T,w.keys.push(C);const A=b&&!w.repeating&&yG(b,w);w.previousKeyMatched&&(A||Yd(S,b,!1,l,Pb,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=lr(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 P.jsx(gG,B({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))});function dse(e){return ze("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);const hse=["onEntering"],pse=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vse=["slotProps"];function YE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function XE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Db(e){return typeof e=="function"?e():e}const gse=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},dse,t)},mse=le(cG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xG=le(il,{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}),SG=O.forwardRef(function(t,r){var n,i,a;const o=$e({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=E0,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:T=!1}=o,A=ge(o.TransitionProps,hse),M=ge(o,pse),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),R=lr(I,k.ref),E=B({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:A}),N=gse(E),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const me=Db(l),Me=(me&&me.nodeType===1?me:zr(I.current).body).getBoundingClientRect();return{top:Me.top+YE(Me,u.vertical),left:Me.left+XE(Me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),z=O.useCallback(me=>({vertical:YE(me,_.vertical),horizontal:XE(me,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(me=>{const pe={width:me.offsetWidth,height:me.offsetHeight},Me=z(pe);if(f==="none")return{top:null,left:null,transformOrigin:qE(Me)};const je=$();let Ue=je.top-Me.vertical,rt=je.left-Me.horizontal;const ot=Ue+pe.height,st=rt+pe.width,Xe=Ka(Db(l)),Gt=Xe.innerHeight-g,Tt=Xe.innerWidth-g;if(g!==null&&Ue<g){const lt=Ue-g;Ue-=lt,Me.vertical+=lt}else if(g!==null&&ot>Gt){const lt=ot-Gt;Ue-=lt,Me.vertical+=lt}if(g!==null&&rt<g){const lt=rt-g;rt-=lt,Me.horizontal+=lt}else if(st>Tt){const lt=st-Tt;rt-=lt,Me.horizontal+=lt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(rt)}px`,transformOrigin:qE(Me)}},[l,f,$,z,g]),[L,G]=O.useState(m),H=O.useCallback(()=>{const me=I.current;if(!me)return;const pe=V(me);pe.top!==null&&(me.style.top=pe.top),pe.left!==null&&(me.style.left=pe.left),me.style.transformOrigin=pe.transformOrigin,G(!0)},[V]);O.useEffect(()=>(T&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[l,T,H]);const F=(me,pe)=>{C&&C(me,pe),H()},Y=()=>{G(!1)};O.useEffect(()=>{m&&H()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{H()}}:null,[m,H]),O.useEffect(()=>{if(!m)return;const me=qv(()=>{H()}),pe=Ka(l);return pe.addEventListener("resize",me),()=>{me.clear(),pe.removeEventListener("resize",me)}},[l,m,H]);let J=w;w==="auto"&&!b.muiSupportAuto&&(J=void 0);const j=p||(l?zr(Db(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:mse,Q=(a=x==null?void 0:x.paper)!=null?a:xG,te=da({elementType:Q,externalSlotProps:B({},k,{style:L?k.style:B({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:R},ownerState:E,className:ye(N.paper,k==null?void 0:k.className)}),ae=da({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:j,open:m},ownerState:E,className:ye(N.root,h)}),{slotProps:K}=ae,ne=ge(ae,vse);return P.jsx(ee,B({},ne,!Hf(ee)&&{slotProps:K,disableScrollLock:T},{children:P.jsx(b,B({appear:!0,in:m,onEntering:F,onExited:Y,timeout:J},A,{children:P.jsx(Q,B({},te,{children:d}))}))}))});function yse(e){return ze("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const xse=["onEntering"],Sse=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],bse={vertical:"top",horizontal:"right"},_se={vertical:"top",horizontal:"left"},wse=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},yse,t)},Cse=le(SG,{shouldForwardProp:e=>ao(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tse=le(xG,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ase=le(fse,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Mse=O.forwardRef(function(t,r){var n,i;const a=$e({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=ge(a.TransitionProps,xse),_=ge(a,Sse),b=Yu(),w=b.direction==="rtl",C=B({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),T=wse(C),A=o&&!u&&d,M=O.useRef(null),k=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},I=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let R=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||R===-1)&&(R=L))});const E=(n=y.paper)!=null?n:Tse,N=(i=x.paper)!=null?i:h,$=da({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[T.root,l]}),z=da({elementType:E,externalSlotProps:N,ownerState:C,className:T.paper});return P.jsx(Cse,B({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?bse:_se,slots:{paper:E,root:y.root},slotProps:{root:$,paper:z},open:d,ref:r,transitionDuration:v,TransitionProps:B({onEntering:k},S),ownerState:C},_,{classes:p,children:P.jsx(Ase,B({onKeyDown:I,actions:M,autoFocus:o&&(R===-1||u),autoFocusItem:A,variant:m},c,{className:ye(T.list,c.className),children:s}))}))});function kse(e){return ze("MuiNativeSelect",e)}const kk=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ise=["className","disabled","error","IconComponent","inputRef","variant"],Pse=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 Be(s,kse,t)},bG=({ownerState:e,theme:t})=>B({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":B({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${kk.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}}),Dse=le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ao,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${kk.multiple}`]:t.multiple}]}})(bG),_G=({ownerState:e,theme:t})=>B({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Rse=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]}})(_G),Ese=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ge(t,Ise),c=B({},t,{disabled:i,variant:l,error:a}),f=Pse(c);return P.jsxs(O.Fragment,{children:[P.jsx(Dse,B({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:P.jsx(Rse,{as:o,ownerState:c,className:f.icon})]})});var ZE;const Lse=["children","classes","className","label","notched"],Ose=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%"}),Nse=le("legend")(({ownerState:e,theme:t})=>B({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&B({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zse(e){const{className:t,label:r,notched:n}=e,i=ge(e,Lse),a=r!=null&&r!=="",o=B({},e,{notched:n,withLabel:a});return P.jsx(Ose,B({"aria-hidden":!0,className:t,ownerState:o},i,{children:P.jsx(Nse,{ownerState:o,children:a?P.jsx("span",{children:r}):ZE||(ZE=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const Bse=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Fse=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},uae,t);return B({},t,n)},$se=le(Wx,{shouldForwardProp:e=>ao(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return B({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Zo.focused} .${Zo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zo.error} .${Zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zo.disabled} .${Zo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&B({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Vse=le(zse,{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}}),Gse=le(jx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>B({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ik=O.forwardRef(function(t,r){var n,i,a,o,s;const l=$e({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=ge(l,Bse),y=Fse(l),x=jo(),S=ol({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=B({},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:$se,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Gse;return P.jsx(Ck,B({slots:{root:b,input:w},renderSuffix:C=>P.jsx(Vse,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=P.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:B({},y,{notchedOutline:null})}))});Ik.muiName="Input";function Hse(e){return ze("MuiSelect",e)}const Xd=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var KE;const Wse=["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"],jse=le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Xd.select}`]:t.select},{[`&.${Xd.select}`]:t[r.variant]},{[`&.${Xd.error}`]:t.error},{[`&.${Xd.multiple}`]:t.multiple}]}})(bG,{[`&.${Xd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Use=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]}})(_G),Yse=le("input",{shouldForwardProp:e=>$te(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 QE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xse(e){return e==null||typeof e=="string"&&!e.trim()}const qse=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 Be(s,Hse,t)},Zse=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:T,open:A,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:R,value:E,variant:N="standard"}=t,$=ge(t,Wse),[z,V]=Ff({controlled:E,default:f,name:"Select"}),[L,G]=Ff({controlled:A,default:c,name:"Select"}),H=O.useRef(null),F=O.useRef(null),[Y,J]=O.useState(null),{current:j}=O.useRef(A!=null),[ee,Q]=O.useState(),te=lr(r,g),ae=O.useCallback(_e=>{F.current=_e,_e&&J(_e)},[]),K=Y==null?void 0:Y.parentNode;O.useImperativeHandle(te,()=>({focus:()=>{F.current.focus()},node:H.current,value:z}),[z]),O.useEffect(()=>{c&&L&&Y&&!j&&(Q(s?null:K.clientWidth),F.current.focus())},[Y,s]),O.useEffect(()=>{o&&F.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const _e=zr(F.current).getElementById(m);if(_e){const it=()=>{getSelection().isCollapsed&&F.current.focus()};return _e.addEventListener("click",it),()=>{_e.removeEventListener("click",it)}}},[m]);const ne=(_e,it)=>{_e?T&&T(it):w&&w(it),j||(Q(s?null:K.clientWidth),G(_e))},me=_e=>{_e.button===0&&(_e.preventDefault(),F.current.focus(),ne(!0,_e))},pe=_e=>{ne(!1,_e)},Me=O.Children.toArray(l),je=_e=>{const it=Me.find(At=>At.props.value===_e.target.value);it!==void 0&&(V(it.props.value),b&&b(_e,it))},Ue=_e=>it=>{let At;if(it.currentTarget.hasAttribute("tabindex")){if(x){At=Array.isArray(z)?z.slice():[];const de=z.indexOf(_e.props.value);de===-1?At.push(_e.props.value):At.splice(de,1)}else At=_e.props.value;if(_e.props.onClick&&_e.props.onClick(it),z!==At&&(V(At),b)){const de=it.nativeEvent||it,De=new de.constructor(de.type,de);Object.defineProperty(De,"target",{writable:!0,value:{value:At,name:S}}),b(De,_e)}x||ne(!1,it)}},rt=_e=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(_e.key)!==-1&&(_e.preventDefault(),ne(!0,_e))},ot=Y!==null&&L,st=_e=>{!ot&&_&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:z,name:S}}),_(_e))};delete $["aria-invalid"];let Xe,Gt;const Tt=[];let lt=!1;(R0({value:z})||h)&&(k?Xe=k(z):lt=!0);const X=Me.map(_e=>{if(!O.isValidElement(_e))return null;let it;if(x){if(!Array.isArray(z))throw new Error(Us(2));it=z.some(At=>QE(At,_e.props.value)),it&&lt&&Tt.push(_e.props.children)}else it=QE(z,_e.props.value),it&&lt&&(Gt=_e.props.children);return O.cloneElement(_e,{"aria-selected":it?"true":"false",onClick:Ue(_e),onKeyUp:At=>{At.key===" "&&At.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(At)},role:"option",selected:it,value:void 0,"data-value":_e.props.value})});lt&&(x?Tt.length===0?Xe=null:Xe=Tt.reduce((_e,it,At)=>(_e.push(it),At<Tt.length-1&&_e.push(", "),_e),[]):Xe=Gt);let ie=ee;!s&&j&&Y&&(ie=K.clientWidth);let Pe;typeof R<"u"?Pe=R:Pe=d?null:0;const be=I.id||(S?`mui-component-select-${S}`:void 0),he=B({},t,{variant:N,value:z,open:ot,error:p}),pt=qse(he),Jt=B({},y.PaperProps,(n=y.slotProps)==null?void 0:n.paper);return P.jsxs(O.Fragment,{children:[P.jsx(jse,B({ref:ae,tabIndex:Pe,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[m,be].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:rt,onMouseDown:d||M?null:me,onBlur:st,onFocus:C},I,{ownerState:he,className:ye(I.className,pt.select,u),id:be,children:Xse(Xe)?KE||(KE=P.jsx("span",{className:"notranslate",children:"​"})):Xe})),P.jsx(Yse,B({"aria-invalid":p,value:Array.isArray(z)?z.join(","):z,name:S,ref:H,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:d,className:pt.nativeInput,autoFocus:o,ownerState:he},$)),P.jsx(Use,{as:v,className:pt.icon,ownerState:he}),P.jsx(Mse,B({id:`menu-${S||""}`,anchorEl:K,open:ot,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:B({"aria-labelledby":m,role:"listbox",disableListWrap:!0},y.MenuListProps),slotProps:{paper:B({},Jt,{style:B({minWidth:ie},Jt!=null?Jt.style:null)})},children:X}))]})}),Kse=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Qse=["root"],Jse=e=>{const{classes:t}=e;return t},Pk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ao(e)&&e!=="variant",slot:"Root"},ele=le(Ak,Pk)(""),tle=le(Ik,Pk)(""),rle=le(Tk,Pk)(""),Dk=O.forwardRef(function(t,r){const n=$e({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=fae,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,T=ge(n,Kse),A=y?Ese:Zse,M=jo(),k=ol({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,R=B({},n,{variant:I,classes:o}),E=Jse(R),N=ge(E,Qse),$=d||{standard:P.jsx(ele,{ownerState:R}),outlined:P.jsx(tle,{label:p,ownerState:R}),filled:P.jsx(rle,{ownerState:R})}[I],z=lr(r,$.ref);return P.jsx(O.Fragment,{children:O.cloneElement($,B({inputComponent:A,inputProps:B({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:B({id:f},w)},h,{classes:h?En(N,h.classes):N},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:z,className:ye($.props.className,s,E.root)},!d&&{variant:I},T))})});Dk.muiName="Select";function nle(e){return ze("MuiTooltip",e)}const Ss=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ile=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function ale(e){return Math.round(e*1e5)/1e5}const ole=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${xe(a.split("-")[0])}`],arrow:["arrow"]};return Be(o,nle,t)},sle=le(aG,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>B({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ss.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ss.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ss.arrow}`]:B({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ss.arrow}`]:B({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),lle=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>B({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:qt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${ale(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ss.popper}[data-popper-placement*="left"] &`]:B({transformOrigin:"right center"},t.isRtl?B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):B({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ss.popper}[data-popper-placement*="right"] &`]:B({transformOrigin:"left center"},t.isRtl?B({marginRight:"14px"},t.touch&&{marginRight:"24px"}):B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ss.popper}[data-popper-placement*="top"] &`]:B({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ss.popper}[data-popper-placement*="bottom"] &`]:B({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),ule=le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:qt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let rm=!1,Rb=null,qd={x:0,y:0};function nm(e,t){return r=>{t&&t(r),e(r)}}const cle=O.forwardRef(function(t,r){var n,i,a,o,s,l,u,c,f,d,h,p,v,g,m,y,x,S,_;const b=$e({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:C,components:T={},componentsProps:A={},describeChild:M=!1,disableFocusListener:k=!1,disableHoverListener:I=!1,disableInteractive:R=!1,disableTouchListener:E=!1,enterDelay:N=100,enterNextDelay:$=0,enterTouchDelay:z=700,followCursor:V=!1,id:L,leaveDelay:G=0,leaveTouchDelay:H=1500,onClose:F,onOpen:Y,open:J,placement:j="bottom",PopperComponent:ee,PopperProps:Q={},slotProps:te={},slots:ae={},title:K,TransitionComponent:ne=E0,TransitionProps:me}=b,pe=ge(b,ile),Me=O.isValidElement(C)?C:P.jsx("span",{children:C}),je=Yu(),Ue=je.direction==="rtl",[rt,ot]=O.useState(),[st,Xe]=O.useState(null),Gt=O.useRef(!1),Tt=R||V,lt=O.useRef(),X=O.useRef(),ie=O.useRef(),Pe=O.useRef(),[be,he]=Ff({controlled:J,default:!1,name:"Tooltip",state:"open"});let pt=be;const Jt=WM(L),_e=O.useRef(),it=O.useCallback(()=>{_e.current!==void 0&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),clearTimeout(Pe.current)},[]);O.useEffect(()=>()=>{clearTimeout(lt.current),clearTimeout(X.current),clearTimeout(ie.current),it()},[it]);const At=ct=>{clearTimeout(Rb),rm=!0,he(!0),Y&&!pt&&Y(ct)},de=ea(ct=>{clearTimeout(Rb),Rb=setTimeout(()=>{rm=!1},800+G),he(!1),F&&pt&&F(ct),clearTimeout(lt.current),lt.current=setTimeout(()=>{Gt.current=!1},je.transitions.duration.shortest)}),De=ct=>{Gt.current&&ct.type!=="touchstart"||(rt&&rt.removeAttribute("title"),clearTimeout(X.current),clearTimeout(ie.current),N||rm&&$?X.current=setTimeout(()=>{At(ct)},rm?$:N):At(ct))},qe=ct=>{clearTimeout(X.current),clearTimeout(ie.current),ie.current=setTimeout(()=>{de(ct)},G)},{isFocusVisibleRef:mt,onBlur:Cr,onFocus:ya,ref:oc}=vx(),[,Ig]=O.useState(!1),Id=ct=>{Cr(ct),mt.current===!1&&(Ig(!1),qe(ct))},sc=ct=>{rt||ot(ct.currentTarget),ya(ct),mt.current===!0&&(Ig(!0),De(ct))},fD=ct=>{Gt.current=!0;const Vn=Me.props;Vn.onTouchStart&&Vn.onTouchStart(ct)},dD=De,hD=qe,AY=ct=>{fD(ct),clearTimeout(ie.current),clearTimeout(lt.current),it(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=_e.current,De(ct)},z)},MY=ct=>{Me.props.onTouchEnd&&Me.props.onTouchEnd(ct),it(),clearTimeout(ie.current),ie.current=setTimeout(()=>{de(ct)},H)};O.useEffect(()=>{if(!pt)return;function ct(Vn){(Vn.key==="Escape"||Vn.key==="Esc")&&de(Vn)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[de,pt]);const kY=lr(Me.ref,oc,ot,r);!K&&K!==0&&(pt=!1);const VS=O.useRef(),IY=ct=>{const Vn=Me.props;Vn.onMouseMove&&Vn.onMouseMove(ct),qd={x:ct.clientX,y:ct.clientY},VS.current&&VS.current.update()},Pd={},GS=typeof K=="string";M?(Pd.title=!pt&&GS&&!I?K:null,Pd["aria-describedby"]=pt?Jt:null):(Pd["aria-label"]=GS?K:null,Pd["aria-labelledby"]=pt&&!GS?Jt:null);const Gi=B({},Pd,pe,Me.props,{className:ye(pe.className,Me.props.className),onTouchStart:fD,ref:kY},V?{onMouseMove:IY}:{}),Dd={};E||(Gi.onTouchStart=AY,Gi.onTouchEnd=MY),I||(Gi.onMouseOver=nm(dD,Gi.onMouseOver),Gi.onMouseLeave=nm(hD,Gi.onMouseLeave),Tt||(Dd.onMouseOver=dD,Dd.onMouseLeave=hD)),k||(Gi.onFocus=nm(sc,Gi.onFocus),Gi.onBlur=nm(Id,Gi.onBlur),Tt||(Dd.onFocus=sc,Dd.onBlur=Id));const PY=O.useMemo(()=>{var ct;let Vn=[{name:"arrow",enabled:!!st,options:{element:st,padding:4}}];return(ct=Q.popperOptions)!=null&&ct.modifiers&&(Vn=Vn.concat(Q.popperOptions.modifiers)),B({},Q.popperOptions,{modifiers:Vn})},[st,Q]),Rd=B({},b,{isRtl:Ue,arrow:w,disableInteractive:Tt,placement:j,PopperComponentProp:ee,touch:Gt.current}),HS=ole(Rd),pD=(n=(i=ae.popper)!=null?i:T.Popper)!=null?n:sle,vD=(a=(o=(s=ae.transition)!=null?s:T.Transition)!=null?o:ne)!=null?a:E0,gD=(l=(u=ae.tooltip)!=null?u:T.Tooltip)!=null?l:lle,mD=(c=(f=ae.arrow)!=null?f:T.Arrow)!=null?c:ule,DY=Eh(pD,B({},Q,(d=te.popper)!=null?d:A.popper,{className:ye(HS.popper,Q==null?void 0:Q.className,(h=(p=te.popper)!=null?p:A.popper)==null?void 0:h.className)}),Rd),RY=Eh(vD,B({},me,(v=te.transition)!=null?v:A.transition),Rd),EY=Eh(gD,B({},(g=te.tooltip)!=null?g:A.tooltip,{className:ye(HS.tooltip,(m=(y=te.tooltip)!=null?y:A.tooltip)==null?void 0:m.className)}),Rd),LY=Eh(mD,B({},(x=te.arrow)!=null?x:A.arrow,{className:ye(HS.arrow,(S=(_=te.arrow)!=null?_:A.arrow)==null?void 0:S.className)}),Rd);return P.jsxs(O.Fragment,{children:[O.cloneElement(Me,Gi),P.jsx(pD,B({as:ee??aG,placement:j,anchorEl:V?{getBoundingClientRect:()=>({top:qd.y,left:qd.x,right:qd.x,bottom:qd.y,width:0,height:0})}:rt,popperRef:VS,open:rt?pt:!1,id:Jt,transition:!0},Dd,DY,{popperOptions:PY,children:({TransitionProps:ct})=>P.jsx(vD,B({timeout:je.transitions.duration.shorter},ct,RY,{children:P.jsxs(gD,B({},EY,{children:[K,w?P.jsx(mD,B({},LY,{ref:Xe})):null]}))}))}))]})});function fle(e){return ze("MuiSwitch",e)}const nn=Fe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),dle=["className","color","edge","size","sx"],hle=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=Be(s,fle,t);return B({},t,l)},ple=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})=>B({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${nn.thumb}`]:{width:16,height:16},[`& .${nn.switchBase}`]:{padding:4,[`&.${nn.checked}`]:{transform:"translateX(16px)"}}})),vle=le(lG,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${nn.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}),[`&.${nn.checked}`]:{transform:"translateX(20px)"},[`&.${nn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${nn.checked} + .${nn.track}`]:{opacity:.5},[`&.${nn.disabled} + .${nn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${nn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>B({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:qt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${nn.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})`:qt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?av(e.palette[t.color].main,.62):iv(e.palette[t.color].main,.55)}`}},[`&.${nn.checked} + .${nn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),gle=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}`})),mle=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%"})),yle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=ge(n,dle),c=B({},n,{color:a,edge:o,size:s}),f=hle(c),d=P.jsx(mle,{className:f.thumb,ownerState:c});return P.jsxs(ple,{className:ye(f.root,i),sx:l,ownerState:c,children:[P.jsx(vle,B({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:B({},f,{root:f.switchBase})})),P.jsx(gle,{className:f.track,ownerState:c})]})});function xle(e){return ze("MuiTab",e)}const fl=Fe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Sle=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ble=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 Be(u,xle,t)},_le=le(Xu,{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})=>B({},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,[`& > .${fl.iconWrapper}`]:B({},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,[`&.${fl.selected}`]:{opacity:1},[`&.${fl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fl.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)})),wle=O.forwardRef(function(t,r){const n=$e({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=ge(n,Sle),_=B({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=ble(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:ye(b.iconWrapper,l.props.className)}):l,C=A=>{!v&&d&&d(A,y),h&&h(A)},T=A=>{g&&!v&&d&&d(A,y),p&&p(A)};return P.jsxs(_le,B({focusRipple:!o,className:ye(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:T,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?P.jsxs(O.Fragment,{children:[w,f]}):P.jsxs(O.Fragment,{children:[f,w]}),c]}))}),wG=O.createContext();function Cle(e){return ze("MuiTable",e)}Fe("MuiTable",["root","stickyHeader"]);const Tle=["className","component","padding","size","stickyHeader"],Ale=e=>{const{classes:t,stickyHeader:r}=e;return Be({root:["root",r&&"stickyHeader"]},Cle,t)},Mle=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>B({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":B({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),JE="table",CG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTable"}),{className:i,component:a=JE,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ge(n,Tle),c=B({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Ale(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return P.jsx(wG.Provider,{value:d,children:P.jsx(Mle,B({as:a,role:a===JE?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),Ux=O.createContext();function kle(e){return ze("MuiTableBody",e)}Fe("MuiTableBody",["root"]);const Ile=["className","component"],Ple=e=>{const{classes:t}=e;return Be({root:["root"]},kle,t)},Dle=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Rle={variant:"body"},eL="tbody",TG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableBody"}),{className:i,component:a=eL}=n,o=ge(n,Ile),s=B({},n,{component:a}),l=Ple(s);return P.jsx(Ux.Provider,{value:Rle,children:P.jsx(Dle,B({className:ye(l.root,i),as:a,ref:r,role:a===eL?null:"rowgroup",ownerState:s},o))})});function Ele(e){return ze("MuiTableCell",e)}const Lle=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ole=["align","className","component","padding","scope","size","sortDirection","variant"],Nle=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 Be(s,Ele,t)},zle=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})=>B({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
142
- ${e.palette.mode==="light"?av(qt(e.palette.divider,1),.88):iv(qt(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",[`&.${Lle.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})),ql=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ge(n,Ole),h=O.useContext(wG),p=O.useContext(Ux),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=B({},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=Nle(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),P.jsx(zle,B({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))});function Ble(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const Fle=["className","component"],$le=e=>{const{classes:t}=e;return Be({root:["root"]},Ble,t)},Vle=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),AG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ge(n,Fle),s=B({},n,{component:a}),l=$le(s);return P.jsx(Vle,B({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))});function Gle(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const Hle=["className","component"],Wle=e=>{const{classes:t}=e;return Be({root:["root"]},Gle,t)},jle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Ule={variant:"head"},tL="thead",MG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableHead"}),{className:i,component:a=tL}=n,o=ge(n,Hle),s=B({},n,{component:a}),l=Wle(s);return P.jsx(Ux.Provider,{value:Ule,children:P.jsx(jle,B({as:a,className:ye(l.root,i),ref:r,role:a===tL?null:"rowgroup",ownerState:s},o))})});function Yle(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const Xle=["className","component","disableGutters","variant"],qle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Be({root:["root",!r&&"gutters",n]},Yle,t)},Zle=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})=>B({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Kle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ge(n,Xle),u=B({},n,{component:a,disableGutters:o,variant:s}),c=qle(u);return P.jsx(Zle,B({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),Qle=Ni(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Jle=Ni(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function eue(e){return ze("MuiTableRow",e)}const rL=Fe("MuiTableRow",["root","selected","hover","head","footer"]),tue=["className","component","hover","selected"],rue=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Be({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},eue,t)},nue=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})`:qt(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}))`:qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),nL="tr",L0=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableRow"}),{className:i,component:a=nL,hover:o=!1,selected:s=!1}=n,l=ge(n,tue),u=O.useContext(Ux),c=B({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=rue(c);return P.jsx(nue,B({as:a,ref:r,className:ye(f.root,i),role:a===nL?null:"row",ownerState:c},l))});function iue(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function aue(e,t,r,n={},i=()=>{}){const{ease:a=iue,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 oue=["onChange"],sue={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lue(e){const{onChange:t}=e,r=ge(e,oue),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ca(()=>{const o=qv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Ka(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),P.jsx("div",B({style:sue,ref:i},r))}function uue(e){return ze("MuiTabScrollButton",e)}const cue=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fue=["className","slots","slotProps","direction","orientation","disabled"],due=e=>{const{classes:t,orientation:r,disabled:n}=e;return Be({root:["root",r,n&&"disabled"]},uue,t)},hue=le(Xu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${cue.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),pue=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ge(a,fue),d=Yu().direction==="rtl",h=B({isRtl:d},a),p=due(h),v=(n=s.StartScrollButtonIcon)!=null?n:Qle,g=(i=s.EndScrollButtonIcon)!=null?i:Jle,m=da({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=da({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(hue,B({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(v,B({},m)):P.jsx(g,B({},y))}))});function vue(e){return ze("MuiTabs",e)}const Eb=Fe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gue=["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,im=(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}}},mue=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Be({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"]},vue,l)},yue=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Eb.scrollButtons}`]:t.scrollButtons},{[`& .${Eb.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Eb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xue=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})=>B({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"})),Sue=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})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),bue=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({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})),_ue=le(lue)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oL={},wue=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTabs"}),i=Yu(),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=pue,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:M=!1}=n,k=ge(n,gue),I=A==="scrollable",R=g==="vertical",E=R?"scrollTop":"scrollLeft",N=R?"top":"left",$=R?"bottom":"right",z=R?"clientHeight":"clientWidth",V=R?"height":"width",L=B({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:R,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!R,scrollableY:I&&R,centered:u&&!I,scrollButtonsHideMobile:!h}),G=mue(L),H=da({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),F=da({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[Y,J]=O.useState(!1),[j,ee]=O.useState(oL),[Q,te]=O.useState(!1),[ae,K]=O.useState(!1),[ne,me]=O.useState(!1),[pe,Me]=O.useState({overflow:"hidden",scrollbarWidth:0}),je=new Map,Ue=O.useRef(null),rt=O.useRef(null),ot=()=>{const de=Ue.current;let De;if(de){const mt=de.getBoundingClientRect();De={clientWidth:de.clientWidth,scrollLeft:de.scrollLeft,scrollTop:de.scrollTop,scrollLeftNormalized:LQ(de,i.direction),scrollWidth:de.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let qe;if(de&&T!==!1){const mt=rt.current.children;if(mt.length>0){const Cr=mt[je.get(T)];qe=Cr?Cr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},st=ea(()=>{const{tabsMeta:de,tabMeta:De}=ot();let qe=0,mt;if(R)mt="top",De&&de&&(qe=De.top-de.top+de.scrollTop);else if(mt=a?"right":"left",De&&de){const ya=a?de.scrollLeftNormalized+de.clientWidth-de.scrollWidth:de.scrollLeft;qe=(a?-1:1)*(De[mt]-de[mt]+ya)}const Cr={[mt]:qe,[V]:De?De[V]:0};if(isNaN(j[mt])||isNaN(j[V]))ee(Cr);else{const ya=Math.abs(j[mt]-Cr[mt]),oc=Math.abs(j[V]-Cr[V]);(ya>=1||oc>=1)&&ee(Cr)}}),Xe=(de,{animation:De=!0}={})=>{De?aue(E,Ue.current,de,{duration:i.transitions.duration.standard}):Ue.current[E]=de},Gt=de=>{let De=Ue.current[E];R?De+=de:(De+=de*(a?-1:1),De*=a&&h6()==="reverse"?-1:1),Xe(De)},Tt=()=>{const de=Ue.current[z];let De=0;const qe=Array.from(rt.current.children);for(let mt=0;mt<qe.length;mt+=1){const Cr=qe[mt];if(De+Cr[z]>de){mt===0&&(De=de);break}De+=Cr[z]}return De},lt=()=>{Gt(-1*Tt())},X=()=>{Gt(Tt())},ie=O.useCallback(de=>{Me({overflow:null,scrollbarWidth:de})},[]),Pe=()=>{const de={};de.scrollbarSizeListener=I?P.jsx(_ue,{onChange:ie,className:ye(G.scrollableX,G.hideScrollbar)}):null;const qe=I&&(y==="auto"&&(Q||ae)||y===!0);return de.scrollButtonStart=qe?P.jsx(m,B({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:H},orientation:g,direction:a?"right":"left",onClick:lt,disabled:!Q},w,{className:ye(G.scrollButtons,w.className)})):null,de.scrollButtonEnd=qe?P.jsx(m,B({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:g,direction:a?"left":"right",onClick:X,disabled:!ae},w,{className:ye(G.scrollButtons,w.className)})):null,de},be=ea(de=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[N]<De[N]){const mt=De[E]+(qe[N]-De[N]);Xe(mt,{animation:de})}else if(qe[$]>De[$]){const mt=De[E]+(qe[$]-De[$]);Xe(mt,{animation:de})}}}),he=ea(()=>{I&&y!==!1&&me(!ne)});O.useEffect(()=>{const de=qv(()=>{Ue.current&&st()}),De=Ka(Ue.current);De.addEventListener("resize",de);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(de),Array.from(rt.current.children).forEach(mt=>{qe.observe(mt)})),()=>{de.clear(),De.removeEventListener("resize",de),qe&&qe.disconnect()}},[st]),O.useEffect(()=>{const de=Array.from(rt.current.children),De=de.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const qe=de[0],mt=de[De-1],Cr={root:Ue.current,threshold:.99},ya=sc=>{te(!sc[0].isIntersecting)},oc=new IntersectionObserver(ya,Cr);oc.observe(qe);const Ig=sc=>{K(!sc[0].isIntersecting)},Id=new IntersectionObserver(Ig,Cr);return Id.observe(mt),()=>{oc.disconnect(),Id.disconnect()}}},[I,y,ne,c==null?void 0:c.length]),O.useEffect(()=>{J(!0)},[]),O.useEffect(()=>{st()}),O.useEffect(()=>{be(oL!==j)},[be,j]),O.useImperativeHandle(l,()=>({updateIndicator:st,updateScrollButtons:he}),[st,he]);const pt=P.jsx(bue,B({},b,{className:ye(G.indicator,b.className),ownerState:L,style:B({},j,b.style)}));let Jt=0;const _e=O.Children.map(c,de=>{if(!O.isValidElement(de))return null;const De=de.props.value===void 0?Jt:de.props.value;je.set(De,Jt);const qe=De===T;return Jt+=1,O.cloneElement(de,B({fullWidth:A==="fullWidth",indicator:qe&&!Y&&pt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Jt===1&&T===!1&&!de.props.tabIndex?{tabIndex:0}:{}))}),it=de=>{const De=rt.current,qe=zr(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let Cr=g==="horizontal"?"ArrowLeft":"ArrowUp",ya=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Cr="ArrowRight",ya="ArrowLeft"),de.key){case Cr:de.preventDefault(),im(De,qe,aL);break;case ya:de.preventDefault(),im(De,qe,iL);break;case"Home":de.preventDefault(),im(De,null,iL);break;case"End":de.preventDefault(),im(De,null,aL);break}},At=Pe();return P.jsxs(yue,B({className:ye(G.root,f),ownerState:L,ref:r,as:d},k,{children:[At.scrollButtonStart,At.scrollbarSizeListener,P.jsxs(xue,{className:G.scroller,ownerState:L,style:{overflow:pe.overflow,[R?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-pe.scrollbarWidth},ref:Ue,children:[P.jsx(Sue,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:it,ref:rt,role:"tablist",children:_e}),Y&&pt]}),At.scrollButtonEnd]}))});function Cue(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const Tue=["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"],Aue={standard:Ak,filled:Tk,outlined:Ik},Mue=e=>{const{classes:t}=e;return Be({root:["root"]},Cue,t)},kue=le(fG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),za=O.forwardRef(function(t,r){const n=$e({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:T,onChange:A,onFocus:M,placeholder:k,required:I=!1,rows:R,select:E=!1,SelectProps:N,type:$,value:z,variant:V="outlined"}=n,L=ge(n,Tue),G=B({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:E,variant:V}),H=Mue(G),F={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(F.notched=g.shrink),F.label=S),E&&((!N||!N.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const Y=WM(v),J=p&&Y?`${Y}-helper-text`:void 0,j=S&&Y?`${Y}-label`:void 0,ee=Aue[V],Q=P.jsx(ee,B({"aria-describedby":J,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:R,maxRows:_,minRows:b,type:$,value:z,id:Y,inputRef:x,onBlur:T,onChange:A,onFocus:M,placeholder:k,inputProps:m},F,y));return P.jsxs(kue,B({className:ye(H.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&P.jsx(Mk,B({htmlFor:Y,id:j},g,{children:S})),E?P.jsx(Dk,B({"aria-describedby":J,id:Y,labelId:j,value:z,input:Q},N,{children:o})):Q,p&&P.jsx(Coe,B({id:J},d,{children:p}))]}))});function kG(){return P.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("title",{children:"Locust"}),P.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),P.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),P.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),P.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}var Rk={},IG={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})(IG);var qu=IG.exports,Lb={};const Iue=BY(Yte);var sL;function Zu(){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}(Lb)),Lb}var Pue=qu;Object.defineProperty(Rk,"__esModule",{value:!0});var PG=Rk.default=void 0,Due=Pue(Zu()),Rue=P,Eue=(0,Due.default)((0,Rue.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");PG=Rk.default=Eue;var Ek={},Lue=qu;Object.defineProperty(Ek,"__esModule",{value:!0});var DG=Ek.default=void 0,Oue=Lue(Zu()),Nue=P,zue=(0,Oue.default)((0,Nue.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");DG=Ek.default=zue;const Ua={DARK:"dark",LIGHT:"light"},Bue=localStorage.theme===Ua.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ua.DARK:Ua.LIGHT,zi=KV,Fue=o6;function So(e,t){const r=Fue();return O.useCallback(n=>{r(e(n))},[e,r])}const $ue={isDarkMode:!1},RG=xi({name:"theme",initialState:$ue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Vue=RG.actions,EG=RG.reducer;function LG(){const e=zi(({theme:{isDarkMode:n}})=>n),t=So(Vue.setIsDarkMode);O.useEffect(()=>{t(Bue===Ua.DARK)},[]);const r=()=>{localStorage.theme=e?Ua.LIGHT:Ua.DARK,t(!e)};return P.jsx(eg,{color:"inherit",onClick:r,children:e?P.jsx(DG,{}):P.jsx(PG,{})})}const Gue=e=>ck({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function OG(){const e=zi(({theme:{isDarkMode:r}})=>r);return O.useMemo(()=>Gue(e?Ua.DARK:Ua.LIGHT),[e])}function Hue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=OG();return P.jsxs(H6,{theme:n,children:[P.jsx(uG,{}),P.jsx(Pt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(LG,{})}),P.jsxs(Pt,{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:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(kG,{})}),r&&P.jsx("form",{action:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(za,{label:"Username",name:"username"}),P.jsx(za,{label:"Password",name:"password",type:"password"}),t&&P.jsx(tne,{severity:"error",children:t}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:i,callbackUrl:a,iconUrl:o},s)=>P.jsxs(eg,{href:a,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:o}),P.jsx(dt,{height:"32",variant:"button",children:i})]},`auth-provider-${s}`))})]})]})}var Lk={},Wue=qu;Object.defineProperty(Lk,"__esModule",{value:!0});var NG=Lk.default=void 0,jue=Wue(Zu()),Uue=P,Yue=(0,jue.default)((0,Uue.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");NG=Lk.default=Yue;function Yx({open:e,onClose:t,children:r}){return P.jsx(cG,{onClose:t,open:e,children:P.jsxs(Pt,{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:[P.jsx(eg,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(NG,{})}),r]})})}function Xue(){const[e,t]=O.useState(!1),r=zi(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(oo,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(Yx,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(dt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(Yr,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(Yr,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(Yr,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(Yr,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(Yr,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(Yr,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function que(){return P.jsx(ng,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(Xue,{})})}const zG=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Zue(e,t){return{...e,...t}}const Kue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Xx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Zr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ya=window.templateArgs?sf(window.templateArgs):{};var vF;Ya.isReport&&{...Ya,charts:(vF=Ya.history)==null||vF.reduce((e,{currentResponseTimePercentiles:t,...r})=>Xx(e,{...t,...r}),{})};function Que({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return P.jsxs(Pt,{sx:{display:"flex",columnGap:2},children:[P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Host"}),P.jsx(cle,{title:r,children:P.jsx(dt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"400px"},children:r})})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Status"}),P.jsx(dt,{variant:"button",children:t})]}),(t===Zr.RUNNING||t===Zr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Users"}),P.jsx(dt,{noWrap:!0,variant:"button",children:a})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Workers"}),P.jsx(dt,{noWrap:!0,variant:"button",children:o})]})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"RPS"}),P.jsx(dt,{noWrap:!0,variant:"button",children:n})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Failures"}),P.jsx(dt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Jue=({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}),ece=$n(Jue)(Que),tce="input, select, textarea",rce=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 Ok({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(tce)].reduce((o,s)=>({...o,[s.name]:rce(s)}),{});t(a)},[t]);return P.jsx("form",{onSubmit:r,children:e})}var BG=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(BG||{});function nce(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function ice(e){return new RegExp("(^|:)//").test(e)}var ace=e=>e.replace(/\/$/,""),oce=e=>e.replace(/^\//,"");function sce(e,t){if(!e)return t;if(!t)return e;if(ice(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=ace(e),t=oce(t),`${e}${r}${t}`}var lL=e=>[].concat(...e);function lce(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function uce(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var uL=Za;function FG(e,t){if(e===t||!(uL(e)&&uL(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const a=Array.isArray(t)?[]:{};for(const o of r)a[o]=FG(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var cL=(...e)=>fetch(...e),cce=e=>e.status>=200&&e.status<=299,fce=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function fL(e){if(!Za(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function dce({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=cL,paramsSerializer:n,isJsonContentType:i=fce,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===cL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:p,getState:v,extra:g,endpoint:m,forced:y,type:x}=h;let S,{url:_,headers:b=new Headers(c.headers),params:w=void 0,responseHandler:C=l??"json",validateStatus:T=u??cce,timeout:A=s,...M}=typeof d=="string"?{url:d}:d,k={...c,signal:p,...M};b=new Headers(fL(b)),k.headers=await t(b,{getState:v,extra:g,endpoint:m,forced:y,type:x})||b;const I=H=>typeof H=="object"&&(Za(H)||Array.isArray(H)||typeof H.toJSON=="function");if(!k.headers.has("content-type")&&I(k.body)&&k.headers.set("content-type",a),I(k.body)&&i(k.headers)&&(k.body=JSON.stringify(k.body,o)),w){const H=~_.indexOf("?")?"&":"?",F=n?n(w):new URLSearchParams(fL(w));_+=H+F}_=sce(e,_);const R=new Request(_,k);S={request:new Request(_,k)};let N,$=!1,z=A&&setTimeout(()=>{$=!0,h.abort()},A);try{N=await r(R)}catch(H){return{error:{status:$?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(H)},meta:S}}finally{z&&clearTimeout(z)}const V=N.clone();S.response=V;let L,G="";try{let H;if(await Promise.all([f(N,C).then(F=>L=F,F=>H=F),V.text().then(F=>G=F,()=>{})]),H)throw H}catch(H){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:G,error:String(H)},meta:S}}return T(N,L)?{data:L,meta:S}:{error:{status:N.status,data:L},meta:S}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const p=await d.text();return p.length?JSON.parse(p):null}return d.text()}}var dL=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nk=cn("__rtkq/focused"),$G=cn("__rtkq/unfocused"),zk=cn("__rtkq/online"),VG=cn("__rtkq/offline");function GG(e){return e.type==="query"}function hce(e){return e.type==="mutation"}function Bk(e,t,r,n,i,a){return pce(e)?e(t,r,n,i).map(OT).map(a):Array.isArray(e)?e.map(OT).map(a):[]}function pce(e){return typeof e=="function"}function OT(e){return typeof e=="string"?{type:e}:e}function hL(e){return e!=null}function bf(e){let t=0;for(const r in e)t++;return t}function vce(e,t){return e.catch(t)}var lv=Symbol("forceQueryFn"),NT=e=>typeof e[lv]=="function";function gce({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:p,buildInitiateMutation:v,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(g,m){return y=>{var _;const x=i.endpointDefinitions[g],S=e({queryArgs:m,endpointDefinition:x,endpointName:g});return(_=a.get(y))==null?void 0:_[S]}}function f(g,m){return y=>{var x;return(x=o.get(y))==null?void 0:x[m]}}function d(){return g=>Object.values(a.get(g)||{}).filter(hL)}function h(){return g=>Object.values(o.get(g)||{}).filter(hL)}function p(g,m){const y=(x,{subscribe:S=!0,forceRefetch:_,subscriptionOptions:b,[lv]:w,...C}={})=>(T,A)=>{var H;const M=e({queryArgs:x,endpointDefinition:m,endpointName:g}),k=t({...C,type:"query",subscribe:S,forceRefetch:_,subscriptionOptions:b,endpointName:g,originalArgs:x,queryCacheKey:M,[lv]:w}),I=n.endpoints[g].select(x),R=T(k),E=I(A()),{requestId:N,abort:$}=R,z=E.requestId!==N,V=(H=a.get(T))==null?void 0:H[M],L=()=>I(A()),G=Object.assign(w?R.then(L):z&&!V?Promise.resolve(E):Promise.all([V,R]).then(L),{arg:x,requestId:N,subscriptionOptions:b,queryCacheKey:M,abort:$,async unwrap(){const F=await G;if(F.isError)throw F.error;return F.data},refetch:()=>T(y(x,{subscribe:!1,forceRefetch:!0})),unsubscribe(){S&&T(s({queryCacheKey:M,requestId:N}))},updateSubscriptionOptions(F){G.subscriptionOptions=F,T(u({endpointName:g,requestId:N,queryCacheKey:M,options:F}))}});if(!V&&!z&&!w){const F=a.get(T)||{};F[M]=G,a.set(T,F),G.then(()=>{delete F[M],bf(F)||a.delete(T)})}return G};return y}function v(g){return(m,{track:y=!0,fixedCacheKey:x}={})=>(S,_)=>{const b=r({type:"mutation",endpointName:g,originalArgs:m,track:y,fixedCacheKey:x}),w=S(b),{requestId:C,abort:T,unwrap:A}=w,M=vce(w.unwrap().then(E=>({data:E})),E=>({error:E})),k=()=>{S(l({requestId:C,fixedCacheKey:x}))},I=Object.assign(M,{arg:w.arg,requestId:C,abort:T,unwrap:A,reset:k}),R=o.get(S)||{};return o.set(S,R),R[C]=I,I.then(()=>{delete R[C],bf(R)||o.delete(S)}),x&&(R[x]=I,I.then(()=>{R[x]===I&&(delete R[x],bf(R)||o.delete(S))})),I}}}function pL(e){return e}function mce({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(y,x,S,_)=>(b,w)=>{const C=r[y],T=n({queryArgs:x,endpointDefinition:C,endpointName:y});if(b(i.internalActions.queryResultPatched({queryCacheKey:T,patches:S})),!_)return;const A=i.endpoints[y].select(x)(w()),M=Bk(C.providesTags,A.data,void 0,x,{},a);b(i.internalActions.updateProvidedBy({queryCacheKey:T,providedTags:M}))},s=(y,x,S,_=!0)=>(b,w)=>{const T=i.endpoints[y].select(x)(w());let A={patches:[],inversePatches:[],undo:()=>b(i.util.patchQueryData(y,x,A.inversePatches,_))};if(T.status==="uninitialized")return A;let M;if("data"in T)if(ua(T.data)){const[k,I,R]=BV(T.data,S);A.patches.push(...I),A.inversePatches.push(...R),M=k}else M=S(T.data),A.patches.push({op:"replace",path:[],value:M}),A.inversePatches.push({op:"replace",path:[],value:T.data});return A.patches.length===0||b(i.util.patchQueryData(y,x,A.patches,_)),A},l=(y,x,S)=>_=>_(i.endpoints[y].initiate(x,{subscribe:!1,forceRefetch:!0,[lv]:()=>({data:S})})),u=async(y,{signal:x,abort:S,rejectWithValue:_,fulfillWithValue:b,dispatch:w,getState:C,extra:T})=>{const A=r[y.endpointName];try{let M=pL,k;const I={signal:x,abort:S,dispatch:w,getState:C,extra:T,endpoint:y.endpointName,type:y.type,forced:y.type==="query"?c(y,C()):void 0},R=y.type==="query"?y[lv]:void 0;if(R?k=R():A.query?(k=await t(A.query(y.originalArgs),I,A.extraOptions),A.transformResponse&&(M=A.transformResponse)):k=await A.queryFn(y.originalArgs,I,A.extraOptions,E=>t(E,I,A.extraOptions)),typeof process<"u",k.error)throw new dL(k.error,k.meta);return b(await M(k.data,k.meta,y.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta,[of]:!0})}catch(M){let k=M;if(k instanceof dL){let I=pL;A.query&&A.transformErrorResponse&&(I=A.transformErrorResponse);try{return _(await I(k.value,k.meta,y.originalArgs),{baseQueryMeta:k.meta,[of]:!0})}catch(R){k=R}}throw typeof process<"u",console.error(k),k}};function c(y,x){var C,T,A;const S=(T=(C=x[e])==null?void 0:C.queries)==null?void 0:T[y.queryCacheKey],_=(A=x[e])==null?void 0:A.config.refetchOnMountOrArgChange,b=S==null?void 0:S.fulfilledTimeStamp,w=y.forceRefetch??(y.subscribe&&_);return w?w===!0||(Number(new Date)-Number(b))/1e3>=w:!1}const f=BR(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[of]:!0}},condition(y,{getState:x}){var A,M,k;const S=x(),_=(M=(A=S[e])==null?void 0:A.queries)==null?void 0:M[y.queryCacheKey],b=_==null?void 0:_.fulfilledTimeStamp,w=y.originalArgs,C=_==null?void 0:_.originalArgs,T=r[y.endpointName];return NT(y)?!0:(_==null?void 0:_.status)==="pending"?!1:c(y,S)||GG(T)&&((k=T==null?void 0:T.forceRefetch)!=null&&k.call(T,{currentArg:w,previousArg:C,endpointState:_,state:S}))?!0:!b},dispatchConditionRejection:!0}),d=BR(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[of]:!0}}}),h=y=>"force"in y,p=y=>"ifOlderThan"in y,v=(y,x,S)=>(_,b)=>{const w=h(S)&&S.force,C=p(S)&&S.ifOlderThan,T=(M=!0)=>{const k={forceRefetch:M,isPrefetch:!0};return i.endpoints[y].initiate(x,k)},A=i.endpoints[y].select(x)(b());if(w)_(T());else if(C){const M=A==null?void 0:A.fulfilledTimeStamp;if(!M){_(T());return}(Number(new Date)-Number(new Date(M)))/1e3>=C&&_(T())}else _(T(!1))};function g(y){return x=>{var S,_;return((_=(S=x==null?void 0:x.meta)==null?void 0:S.arg)==null?void 0:_.endpointName)===y}}function m(y,x){return{matchPending:ip(NM(y),g(x)),matchFulfilled:ip(js(y),g(x)),matchRejected:ip(Bf(y),g(x))}}return{queryThunk:f,mutationThunk:d,prefetch:v,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:m}}function HG(e,t,r,n){return Bk(r[e.meta.arg.endpointName][t],js(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function am(e,t,r){const n=e[t];n&&r(n)}function uv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function vL(e,t,r){const n=e[uv(t)];n&&r(n)}var Zd={};function yce({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=cn(`${e}/resetApiState`),c=xi({name:`${e}/queries`,initialState:Zd,reducers:{removeQueryResult:{reducer(x,{payload:{queryCacheKey:S}}){delete x[S]},prepare:Vd()},queryResultPatched:{reducer(x,{payload:{queryCacheKey:S,patches:_}}){am(x,S,b=>{b.data=RR(b.data,_.concat())})},prepare:Vd()}},extraReducers(x){x.addCase(t.pending,(S,{meta:_,meta:{arg:b}})=>{var C;const w=NT(b);S[C=b.queryCacheKey]??(S[C]={status:"uninitialized",endpointName:b.endpointName}),am(S,b.queryCacheKey,T=>{T.status="pending",T.requestId=w&&T.requestId?T.requestId:_.requestId,b.originalArgs!==void 0&&(T.originalArgs=b.originalArgs),T.startedTimeStamp=_.startedTimeStamp})}).addCase(t.fulfilled,(S,{meta:_,payload:b})=>{am(S,_.arg.queryCacheKey,w=>{if(w.requestId!==_.requestId&&!NT(_.arg))return;const{merge:C}=n[_.arg.endpointName];if(w.status="fulfilled",C)if(w.data!==void 0){const{fulfilledTimeStamp:T,arg:A,baseQueryMeta:M,requestId:k}=_;let I=Uv(w.data,R=>C(R,b,{arg:A.originalArgs,baseQueryMeta:M,fulfilledTimeStamp:T,requestId:k}));w.data=I}else w.data=b;else w.data=n[_.arg.endpointName].structuralSharing??!0?FG(la(w.data)?yZ(w.data):w.data,b):b;delete w.error,w.fulfilledTimeStamp=_.fulfilledTimeStamp})}).addCase(t.rejected,(S,{meta:{condition:_,arg:b,requestId:w},error:C,payload:T})=>{am(S,b.queryCacheKey,A=>{if(!_){if(A.requestId!==w)return;A.status="rejected",A.error=T??C}})}).addMatcher(o,(S,_)=>{const{queries:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&(S[w]=C)})}}),f=xi({name:`${e}/mutations`,initialState:Zd,reducers:{removeMutationResult:{reducer(x,{payload:S}){const _=uv(S);_ in x&&delete x[_]},prepare:Vd()}},extraReducers(x){x.addCase(r.pending,(S,{meta:_,meta:{requestId:b,arg:w,startedTimeStamp:C}})=>{w.track&&(S[uv(_)]={requestId:b,status:"pending",endpointName:w.endpointName,startedTimeStamp:C})}).addCase(r.fulfilled,(S,{payload:_,meta:b})=>{b.arg.track&&vL(S,b,w=>{w.requestId===b.requestId&&(w.status="fulfilled",w.data=_,w.fulfilledTimeStamp=b.fulfilledTimeStamp)})}).addCase(r.rejected,(S,{payload:_,error:b,meta:w})=>{w.arg.track&&vL(S,w,C=>{C.requestId===w.requestId&&(C.status="rejected",C.error=_??b)})}).addMatcher(o,(S,_)=>{const{mutations:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&w!==(C==null?void 0:C.requestId)&&(S[w]=C)})}}),d=xi({name:`${e}/invalidation`,initialState:Zd,reducers:{updateProvidedBy:{reducer(x,S){var w,C;const{queryCacheKey:_,providedTags:b}=S.payload;for(const T of Object.values(x))for(const A of Object.values(T)){const M=A.indexOf(_);M!==-1&&A.splice(M,1)}for(const{type:T,id:A}of b){const M=(w=x[T]??(x[T]={}))[C=A||"__internal_without_id"]??(w[C]=[]);M.includes(_)||M.push(_)}},prepare:Vd()}},extraReducers(x){x.addCase(c.actions.removeQueryResult,(S,{payload:{queryCacheKey:_}})=>{for(const b of Object.values(S))for(const w of Object.values(b)){const C=w.indexOf(_);C!==-1&&w.splice(C,1)}}).addMatcher(o,(S,_)=>{var w,C;const{provided:b}=a(_);for(const[T,A]of Object.entries(b))for(const[M,k]of Object.entries(A)){const I=(w=S[T]??(S[T]={}))[C=M||"__internal_without_id"]??(w[C]=[]);for(const R of k)I.includes(R)||I.push(R)}}).addMatcher(Eo(js(t),nx(t)),(S,_)=>{const b=HG(_,"providesTags",n,s),{queryCacheKey:w}=_.meta.arg;d.caseReducers.updateProvidedBy(S,d.actions.updateProvidedBy({queryCacheKey:w,providedTags:b}))})}}),h=xi({name:`${e}/subscriptions`,initialState:Zd,reducers:{updateSubscriptionOptions(x,S){},unsubscribeQueryResult(x,S){},internal_getRTKQSubscriptions(){}}}),p=xi({name:`${e}/internalSubscriptions`,initialState:Zd,reducers:{subscriptionsUpdated:{reducer(x,S){return RR(x,S.payload)},prepare:Vd()}}}),v=xi({name:`${e}/config`,initialState:{online:lce(),focused:uce(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(x,{payload:S}){x.middlewareRegistered=x.middlewareRegistered==="conflict"||i!==S?"conflict":!0}},extraReducers:x=>{x.addCase(zk,S=>{S.online=!0}).addCase(VG,S=>{S.online=!1}).addCase(Nk,S=>{S.focused=!0}).addCase($G,S=>{S.focused=!1}).addMatcher(o,S=>({...S}))}}),g=ex({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:p.reducer,config:v.reducer}),m=(x,S)=>g(u.match(S)?void 0:x,S),y={...v.actions,...c.actions,...h.actions,...p.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:m,actions:y}}var au=Symbol.for("RTKQ/skipToken"),WG={status:"uninitialized"},gL=Uv(WG,()=>{}),mL=Uv(WG,()=>{});function xce({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>gL,i=f=>mL;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...nce(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const p=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===au?n:m=>{var y,x;return((x=(y=o(m))==null?void 0:y.queries)==null?void 0:x[p])??gL},a)}}function l(){return f=>{let d;return typeof f=="object"?d=uv(f)??au:d=f,r(d===au?i:v=>{var g,m;return((m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])??mL},a)}}function u(f,d){const h=f[t],p=new Set;for(const v of d.map(OT)){const g=h.provided[v.type];if(!g)continue;let m=(v.id!==void 0?g[v.id]:lL(Object.values(g)))??[];for(const y of m)p.add(y)}return lL(Array.from(p.values()).map(v=>{const g=h.queries[v];return g?[{queryCacheKey:v,endpointName:g.endpointName,originalArgs:g.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var vc=WeakMap?new WeakMap:void 0,yL=({endpointName:e,queryArgs:t})=>{let r="";const n=vc==null?void 0:vc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Za(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Za(t)&&(vc==null||vc.set(t,i)),r=i}return`${e}(${r})`};function Sce(...e){return function(r){const n=Jp(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=yL;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:yL({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:OM(),extractRehydrationInfo:n,hasRehydrationInfo:Jp(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Kr(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function bce(e){for(let t in e)return!1;return!0}var _ce=2147483647/1e3-1,wce=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=Eo(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!bce(h)}const u={},c=(d,h,p)=>{var v;if(s(d)){const g=h.getState()[e],{queryCacheKey:m}=o.match(d)?d.payload:d.meta.arg;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(d))for(const[g,m]of Object.entries(u))m&&clearTimeout(m),delete u[g];if(n.hasRehydrationInfo(d)){const g=h.getState()[e],{queries:m}=n.extractRehydrationInfo(d);for(const[y,x]of Object.entries(m))f(y,x==null?void 0:x.endpointName,h,g.config)}};function f(d,h,p,v){const g=n.endpointDefinitions[h],m=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(m===1/0)return;const y=Math.max(0,Math.min(m,_ce));if(!l(d)){const x=u[d];x&&clearTimeout(x),u[d]=setTimeout(()=>{l(d)||p.dispatch(a({queryCacheKey:d})),delete u[d]},y*1e3)}}return c},Cce=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=Eo(js(n),nx(n)),f=Eo(js(n,i),Bf(n,i));let d=[];const h=(g,m)=>{c(g)?v(HG(g,"invalidatesTags",r,o),m):f(g)?v([],m):a.util.invalidateTags.match(g)&&v(Bk(g.payload,void 0,void 0,void 0,void 0,o),m)};function p(g){var m,y;for(const x in g.queries)if(((m=g.queries[x])==null?void 0:m.status)==="pending")return!0;for(const x in g.mutations)if(((y=g.mutations[x])==null?void 0:y.status)==="pending")return!0;return!1}function v(g,m){const y=m.getState(),x=y[e];if(d.push(...g),x.config.invalidationBehavior==="delayed"&&p(x))return;const S=d;if(d=[],S.length===0)return;const _=a.util.selectInvalidatedBy(y,S);t.batch(()=>{const b=Array.from(_.values());for(const{queryCacheKey:w}of b){const C=x.queries[w],T=l.currentSubscriptions[w]??{};C&&(bf(T)===0?m.dispatch(u({queryCacheKey:w})):C.status!=="uninitialized"&&m.dispatch(s(C,w)))}})}return h},Tce=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const p=h.getState()[e],v=p.queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:y}=f(g);if(!Number.isFinite(m))return;const x=a[d];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);const S=Date.now()+m;a[d]={nextPollTimestamp:S,pollingInterval:m,timeout:setTimeout(()=>{(p.config.focused||!y)&&h.dispatch(n(v,d)),s({queryCacheKey:d},h)},m)}}function l({queryCacheKey:d},h){const v=h.getState()[e].queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m}=f(g);if(!Number.isFinite(m)){u(d);return}const y=a[d],x=Date.now()+m;(!y||x<y.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,p=Number.POSITIVE_INFINITY;for(let v in d)d[v].pollingInterval&&(p=Math.min(d[v].pollingInterval,p),h=d[v].skipPollingIfUnfocused||h);return{lowestPollingInterval:p,skipPollingIfUnfocused:h}}return o},Ace=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{Nk.match(l)&&s(u,"refetchOnFocus"),zk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const p=f[h],v=d[h];if(!v||!p)continue;(Object.values(v).some(m=>m[u]===!0)||Object.values(v).every(m=>m[u]===void 0)&&c.config[u])&&(bf(v)===0?l.dispatch(a({queryCacheKey:h})):p.status!=="uninitialized"&&l.dispatch(n(p,h)))}})}return o},xL=new Error("Promise never resolved before cacheEntryRemoved."),Mce=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=yT(n),s=yT(i),l=js(n,i),u={},c=(h,p,v)=>{const g=f(h);if(n.pending.match(h)){const m=v[t].queries[g],y=p.getState()[t].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(i.pending.match(h))p.getState()[t].mutations[g]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId);else if(l(h)){const m=u[g];m!=null&&m.valueResolved&&(m.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const m=u[g];m&&(delete u[g],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[m,y]of Object.entries(u))delete u[m],y.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?uv(h.payload):""}function d(h,p,v,g,m){const y=r.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(!x)return;let S={};const _=new Promise(M=>{S.cacheEntryRemoved=M}),b=Promise.race([new Promise(M=>{S.valueResolved=M}),_.then(()=>{throw xL})]);b.catch(()=>{}),u[v]=S;const w=e.endpoints[h].select(y.type==="query"?p:v),C=g.dispatch((M,k,I)=>I),T={...g,getCacheEntry:()=>w(g.getState()),requestId:m,extra:C,updateCachedData:y.type==="query"?M=>g.dispatch(e.util.updateQueryData(h,p,M)):void 0,cacheDataLoaded:b,cacheEntryRemoved:_},A=x(p,T);Promise.resolve(A).catch(M=>{if(M!==xL)throw M})}return c},kce=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=NM(r,n),a=Bf(r,n),o=js(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:p,originalArgs:v}}=u.meta,g=t.endpointDefinitions[p],m=g==null?void 0:g.onQueryStarted;if(m){const y={},x=new Promise((w,C)=>{y.resolve=w,y.reject=C});x.catch(()=>{}),s[h]=y;const S=e.endpoints[p].select(g.type==="query"?v:h),_=c.dispatch((w,C,T)=>T),b={...c,getCacheEntry:()=>S(c.getState()),requestId:h,extra:_,updateCachedData:g.type==="query"?w=>c.dispatch(e.util.updateQueryData(p,v,w)):void 0,queryFulfilled:x};m(v,b)}}else if(o(u)){const{requestId:h,baseQueryMeta:p}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:p}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:p,baseQueryMeta:v}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!p,meta:v}),delete s[h]}}},Ice=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Pce=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,p)=>{var g,m,y;if(o.match(p)){const{queryCacheKey:x,requestId:S,options:_}=p.payload;return(g=h==null?void 0:h[x])!=null&&g[S]&&(h[x][S]=_),!0}if(s.match(p)){const{queryCacheKey:x,requestId:S}=p.payload;return h[x]&&delete h[x][S],!0}if(e.internalActions.removeQueryResult.match(p))return delete h[p.payload.queryCacheKey],!0;if(t.pending.match(p)){const{meta:{arg:x,requestId:S}}=p,_=h[m=x.queryCacheKey]??(h[m]={});return _[`${S}_running`]={},x.subscribe&&(_[S]=x.subscriptionOptions??_[S]??{}),!0}let v=!1;if(t.fulfilled.match(p)||t.rejected.match(p)){const x=h[p.meta.arg.queryCacheKey]||{},S=`${p.meta.requestId}_running`;v||(v=!!x[S]),delete x[S]}if(t.rejected.match(p)){const{meta:{condition:x,arg:S,requestId:_}}=p;if(x&&S.subscribe){const b=h[y=S.queryCacheKey]??(h[y]={});b[_]=S.subscriptionOptions??b[_]??{},v=!0}}return v},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const v=u()[h]??{};return bf(v)},isRequestSubscribed:(h,p)=>{var g;const v=u();return!!((g=v==null?void 0:v[h])!=null&&g[p])}};return(h,p)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const v=l(r.currentSubscriptions,h);let g=!0;if(v){a||(a=setTimeout(()=>{const x=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,S]=BV(i,()=>x);p.next(e.internalActions.subscriptionsUpdated(S)),i=x,a=null},500));const m=typeof h.type=="string"&&!!h.type.startsWith(n),y=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;g=!m&&!y}return[g,!1]}};function Dce(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:cn(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[Ice,wce,Cce,Tce,Mce,kce];return{middleware:f=>{let d=!1;const p={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},v=l.map(y=>y(p)),g=Pce(p),m=Ace(p);return y=>x=>{if(!DV(x))return y(x);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const S={...f,next:y},_=f.getState(),[b,w]=g(x,S,_);let C;if(b?C=y(x):C=w,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(let T of v)T(x,S,_);return C}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Ko(e,...t){return Object.assign(e,...t)}var SL=Symbol(),Rce=({createSelector:e=LM}={})=>({name:SL,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){MZ();const d=z=>(typeof process<"u",z);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:zk,onOffline:VG,onFocus:Nk,onFocusLost:$G},util:{}});const{queryThunk:h,mutationThunk:p,patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,buildMatchThunkActions:x}=mce({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:S,actions:_}=yce({context:f,queryThunk:h,mutationThunk:p,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Ko(t.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:_.resetApiState}),Ko(t.internalActions,_);const{middleware:b,actions:w}=Dce({reducerPath:i,context:f,queryThunk:h,mutationThunk:p,api:t,assertTagType:d});Ko(t.util,w),Ko(t,{reducer:S,middleware:b});const{buildQuerySelector:C,buildMutationSelector:T,selectInvalidatedBy:A,selectCachedArgsForQuery:M}=xce({serializeQueryArgs:a,reducerPath:i,createSelector:e});Ko(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:M});const{buildInitiateQuery:k,buildInitiateMutation:I,getRunningMutationThunk:R,getRunningMutationsThunk:E,getRunningQueriesThunk:N,getRunningQueryThunk:$}=gce({queryThunk:h,mutationThunk:p,api:t,serializeQueryArgs:a,context:f});return Ko(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:E,getRunningQueryThunk:$,getRunningQueriesThunk:N}),{name:SL,injectEndpoint(z,V){var G;const L=t;(G=L.endpoints)[z]??(G[z]={}),GG(V)?Ko(L.endpoints[z],{name:z,select:C(z,V),initiate:k(z,V)},x(h,z)):hce(V)&&Ko(L.endpoints[z],{name:z,select:T(),initiate:I(z)},x(p,z))}}}});function Ece(e){return e.type==="query"}function Lce(e){return e.type==="mutation"}function om(e,...t){return Object.assign(e,...t)}function Ob(e){return e.replace(e[0],e[0].toUpperCase())}var gc=WeakMap?new WeakMap:void 0,Oce=({endpointName:e,queryArgs:t})=>{let r="";const n=gc==null?void 0:gc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Za(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Za(t)&&(gc==null||gc.set(t,i)),r=i}return`${e}(${r})`},Nb=Symbol();function bL(e,t,r,n){const i=O.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=O.useRef(i);return O.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function zb(e){const t=O.useRef(e);return O.useEffect(()=>{Bs(t.current,e)||(t.current=e)},[e]),Bs(t.current,e)?t.current:e}var Nce=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zce=Nce(),Bce=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Fce=Bce(),$ce=()=>zce||Fce?O.useLayoutEffect:O.useEffect,Vce=$ce(),Gce=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:BG.pending}:e;function Hce({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?p=>p():O.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(p,v,g){if(v!=null&&v.endpointName&&p.isUninitialized){const{endpointName:b}=v,w=l.endpointDefinitions[b];s({queryArgs:v.originalArgs,endpointDefinition:w,endpointName:b})===s({queryArgs:g,endpointDefinition:w,endpointName:b})&&(v=void 0)}let m=p.isSuccess?p.data:v==null?void 0:v.data;m===void 0&&(m=p.data);const y=m!==void 0,x=p.isLoading,S=(!v||v.isLoading||v.isUninitialized)&&!y&&x,_=p.isSuccess||x&&y;return{...p,data:m,currentData:p.data,isFetching:x,isLoading:S,isSuccess:_}}function f(p,v){const g=r(),m=zb(v);return O.useCallback((y,x)=>g(e.util.prefetch(p,y,{...m,...x})),[p,g,m])}function d(p){const v=(y,{refetchOnReconnect:x,refetchOnFocus:S,refetchOnMountOrArgChange:_,skip:b=!1,pollingInterval:w=0,skipPollingIfUnfocused:C=!1}={})=>{const{initiate:T}=e.endpoints[p],A=r(),M=O.useRef(void 0);if(!M.current){const L=A(e.internalActions.internal_getRTKQSubscriptions());M.current=L}const k=bL(b?au:y,Oce,l.endpointDefinitions[p],p),I=zb({refetchOnReconnect:x,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:C}),R=O.useRef(!1),E=O.useRef(void 0);let{queryCacheKey:N,requestId:$}=E.current||{},z=!1;N&&$&&(z=M.current.isRequestSubscribed(N,$));const V=!z&&R.current;return u(()=>{R.current=z}),u(()=>{V&&(E.current=void 0)},[V]),u(()=>{var H;const L=E.current;if(typeof process<"u",k===au){L==null||L.unsubscribe(),E.current=void 0;return}const G=(H=E.current)==null?void 0:H.subscriptionOptions;if(!L||L.arg!==k){L==null||L.unsubscribe();const F=A(T(k,{subscriptionOptions:I,forceRefetch:_}));E.current=F}else I!==G&&L.updateSubscriptionOptions(I)},[A,T,_,k,I,V]),O.useEffect(()=>()=>{var L;(L=E.current)==null||L.unsubscribe(),E.current=void 0},[]),O.useMemo(()=>({refetch:()=>{var L;if(!E.current)throw new Error(Kr(38));return(L=E.current)==null?void 0:L.refetch()}}),[])},g=({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S=0,skipPollingIfUnfocused:_=!1}={})=>{const{initiate:b}=e.endpoints[p],w=r(),[C,T]=O.useState(Nb),A=O.useRef(void 0),M=zb({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S,skipPollingIfUnfocused:_});u(()=>{var E,N;const R=(E=A.current)==null?void 0:E.subscriptionOptions;M!==R&&((N=A.current)==null||N.updateSubscriptionOptions(M))},[M]);const k=O.useRef(M);u(()=>{k.current=M},[M]);const I=O.useCallback(function(R,E=!1){let N;return t(()=>{var $;($=A.current)==null||$.unsubscribe(),A.current=N=w(b(R,{subscriptionOptions:k.current,forceRefetch:!E})),T(R)}),N},[w,b]);return O.useEffect(()=>()=>{var R;(R=A==null?void 0:A.current)==null||R.unsubscribe()},[]),O.useEffect(()=>{C!==Nb&&!A.current&&I(C,!0)},[C,I]),O.useMemo(()=>[I,C],[I,C])},m=(y,{skip:x=!1,selectFromResult:S}={})=>{const{select:_}=e.endpoints[p],b=bL(x?au:y,s,l.endpointDefinitions[p],p),w=O.useRef(void 0),C=O.useMemo(()=>o([_(b),(I,R)=>R,I=>b],c,{memoizeOptions:{resultEqualityCheck:Bs}}),[_,b]),T=O.useMemo(()=>S?o([C],S,{devModeChecks:{identityFunctionCheck:"never"}}):C,[C,S]),A=n(I=>T(I,w.current),Bs),M=i(),k=C(M.getState(),w.current);return Vce(()=>{w.current=k},[k]),A};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery(y){const[x,S]=g(y),_=m(S,{...y,skip:S===Nb}),b=O.useMemo(()=>({lastArg:S}),[S]);return O.useMemo(()=>[x,_,b],[x,_,b])},useQuery(y,x){const S=v(y,x),_=m(y,{selectFromResult:y===au||x!=null&&x.skip?void 0:Gce,...x}),{data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}=_;return O.useDebugValue({data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}),O.useMemo(()=>({..._,...S}),[_,S])}}}function h(p){return({selectFromResult:v,fixedCacheKey:g}={})=>{const{select:m,initiate:y}=e.endpoints[p],x=r(),[S,_]=O.useState();O.useEffect(()=>()=>{S!=null&&S.arg.fixedCacheKey||S==null||S.reset()},[S]);const b=O.useCallback(function(G){const H=x(y(G,{fixedCacheKey:g}));return _(H),H},[x,y,g]),{requestId:w}=S||{},C=O.useMemo(()=>m({fixedCacheKey:g,requestId:S==null?void 0:S.requestId}),[g,S,m]),T=O.useMemo(()=>v?o([C],v):C,[v,C]),A=n(T,Bs),M=g==null?S==null?void 0:S.arg.originalArgs:void 0,k=O.useCallback(()=>{t(()=>{S&&_(void 0),g&&x(e.internalActions.removeMutationResult({requestId:w,fixedCacheKey:g}))})},[x,g,S,w]),{endpointName:I,data:R,status:E,isLoading:N,isSuccess:$,isError:z,error:V}=A;O.useDebugValue({endpointName:I,data:R,status:E,isLoading:N,isSuccess:$,isError:z,error:V});const L=O.useMemo(()=>({...A,originalArgs:M,reset:k}),[A,M,k]);return O.useMemo(()=>[b,L],[b,L])}}}var Wce=Symbol(),jce=({batch:e=gQ,hooks:t={useDispatch:o6,useSelector:KV,useStore:a6},createSelector:r=LM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Wce,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=Hce({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return om(l,{usePrefetch:f}),om(s,{batch:e}),{injectEndpoint(d,h){if(Ece(h)){const{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}=u(d);om(l.endpoints[d],{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}),a[`use${Ob(d)}Query`]=p,a[`useLazy${Ob(d)}Query`]=v}else if(Lce(h)){const p=c(d);om(l.endpoints[d],{useMutation:p}),a[`use${Ob(d)}Mutation`]=p}}}}}),Uce=Sce(Rce(),jce());const O0=Uce({baseQuery:dce(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:sf}),getTasks:e.query({query:()=>"tasks",transformResponse:sf}),getExceptions:e.query({query:()=>"exceptions",transformResponse:sf}),getLogs:e.query({query:()=>"logs",transformResponse:sf}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Kue(XR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:XR(t)})})})}),{useGetStatsQuery:Yce,useGetTasksQuery:Xce,useGetExceptionsQuery:qce,useGetLogsQuery:Zce,useStartSwarmMutation:jG,useUpdateUserSettingsMutation:Kce}=O0;function ig(e,{payload:t}){return Zue(e,t)}const Qce=Ya,UG=xi({name:"swarm",initialState:Qce,reducers:{setSwarm:ig}}),qx=UG.actions,Jce=UG.reducer;function efe({onSubmit:e,userCount:t,spawnRate:r,setSwarm:n}){const[i]=jG(),a=o=>{e(),i(o),n(o)};return P.jsxs(ng,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),P.jsx(Ok,{onSubmit:a,children:P.jsxs(Pt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(za,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(za,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const tfe=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),rfe={setSwarm:qx.setSwarm},nfe=$n(tfe,rfe)(efe);function ife(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(oo,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(nfe,{onSubmit:()=>t(!1)})})]})}var Fk={},afe=qu;Object.defineProperty(Fk,"__esModule",{value:!0});var Zx=Fk.default=void 0,ofe=afe(Zu()),sfe=P,lfe=(0,ofe.default)((0,sfe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Zx=Fk.default=lfe;function $k({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a,...o}){return P.jsxs(fG,{sx:a,children:[P.jsx(Mk,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dk,{...o,defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((s,l)=>P.jsx("option",{value:s,children:s},`option-${s}-${l}`))})]})}function ufe({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=u6(e),o=n?`${a} (${n})`:a;return r?P.jsx($k,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?P.jsx(hG,{control:P.jsx(ET,{defaultChecked:t}),label:o,name:e}):P.jsx(za,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function cfe({extraOptions:e}){return P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Custom parameters"})}),P.jsx(pk,{children:P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>P.jsx(ufe,{label:t,...r},`valid-parameter-${n}`))})})]})}var Vk={},ffe=qu;Object.defineProperty(Vk,"__esModule",{value:!0});var YG=Vk.default=void 0,dfe=ffe(Zu()),hfe=P,pfe=(0,dfe.default)((0,hfe.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");YG=Vk.default=pfe;function vfe({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(Ok,{onSubmit:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(dt,{children:`${t.userClassName} Settings`}),P.jsx($k,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>P.jsx(za,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:u6(a),name:a},`user-to-edit-${a}`)),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function gfe({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Kce(),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 P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(Pt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Mk,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(pG,{children:P.jsx(AG,{component:il,children:P.jsxs(CG,{children:[P.jsx(MG,{children:P.jsx(L0,{children:P.jsx(ql,{colSpan:4,padding:"checkbox",children:P.jsx(ET,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),P.jsx(TG,{children:Object.entries(a).map(([g,m])=>P.jsxs(L0,{hover:!0,children:[P.jsx(ql,{onClick:d(g),padding:"checkbox",children:P.jsx(ET,{checked:r.includes(g)})}),P.jsx(ql,{children:g}),P.jsx(ql,{children:P.jsx(dt,{variant:"subtitle2",children:m.host})}),P.jsx(ql,{align:"right",children:P.jsx(eg,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:P.jsx(YG,{})})})]},`user-class-${g}`))})]})})})]})}),P.jsx(Yx,{onClose:()=>s(!1),open:o,children:l&&P.jsx(vfe,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const mfe={setSwarm:qx.setSwarm},yfe=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),xfe=$n(yfe,mfe)(gfe);function Sfe({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=jG(),[d,h]=O.useState(t),p=v=>{l({state:Zr.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 P.jsxs(ng,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&P.jsx(Pt,{marginBottom:2,marginTop:2,children:P.jsx(xfe,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),P.jsx(Ok,{onSubmit:p,children:P.jsxs(Pt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&P.jsx($k,{label:"Shape Class",name:"shapeClass",options:e}),P.jsx(za,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(za,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),P.jsx(za,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Advanced options"})}),P.jsx(pk,{children:P.jsx(za,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!zG(n)&&P.jsx(cfe,{extraOptions:n}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const bfe=({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}),_fe={setSwarm:qx.setSwarm},XG=$n(bfe,_fe)(Sfe);function wfe(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(oo,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(XG,{})})]})}function Cfe(){const e=()=>{fetch("stats/reset")};return P.jsx(oo,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Tfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return P.jsx(oo,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Afe(){const e=zi(({swarm:t})=>t.state);return e===Zr.READY?null:P.jsxs(Pt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Zr.STOPPED?P.jsx(wfe,{}):P.jsxs(P.Fragment,{children:[P.jsx(ife,{}),P.jsx(Tfe,{})]}),P.jsx(Cfe,{})]})}function Mfe(){return P.jsx(dne,{position:"static",children:P.jsx(ng,{maxWidth:"xl",children:P.jsxs(Kle,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(Yr,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(kG,{})}),P.jsxs(Pt,{sx:{display:"flex",columnGap:6},children:[P.jsx(ece,{}),P.jsx(Afe,{}),P.jsx(LG,{})]})]})})})}function kfe({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(Pt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(Mfe,{}),P.jsx("main",{children:e})]}),P.jsx(que,{})]})}const qG=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),ZG="logViewer";function cv(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=O.useRef(e);O.useEffect(()=>{i.current=e},[e]),O.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const Ife={},KG=xi({name:"notification",initialState:Ife,reducers:{setNotification:ig}}),QG=KG.actions,Pfe=KG.reducer;function Dfe(e,{key:t,shouldNotify:r}){const n=So(QG.setNotification),i=zi(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const Rfe={master:[],workers:{}},JG=xi({name:"logViewer",initialState:Rfe,reducers:{setLogs:ig}}),Efe=JG.actions,Lfe=JG.reducer,eH=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?eH(r):r),[]),Ofe={master:[],workers:{}};function Nfe(){const e=zi(({swarm:l})=>l),t=So(Efe.setLogs),{data:r,refetch:n}=Zce(),i=r||Ofe,a=O.useMemo(()=>eH(Object.values(i.workers)),[i.workers]),o=O.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=O.useCallback(l=>o.slice(localStorage[l]).some(qG),[o]);return cv(n,5e3,{shouldRunInterval:e.state===Zr.SPAWNING||e.state==Zr.RUNNING}),Dfe(o,{key:ZG,shouldNotify:s}),O.useEffect(()=>{t(i)},[i]),i}var Gk={},zfe=qu;Object.defineProperty(Gk,"__esModule",{value:!0});var Hk=Gk.default=void 0,Bfe=zfe(Zu()),_L=P,Ffe=(0,Bfe.default)([(0,_L.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,_L.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");Hk=Gk.default=Ffe;function $fe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Vfe=/[ \t\n\f\r]/g;function Gfe(e){return typeof e=="object"?e.type==="text"?wL(e.value):!1:wL(e)}function wL(e){return e.replace(Vfe,"")===""}class ag{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}ag.prototype.property={};ag.prototype.normal={};ag.prototype.space=null;function tH(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new ag(r,n,t)}function zT(e){return e.toLowerCase()}class Bi{constructor(t,r){this.property=t,this.attribute=r}}Bi.prototype.space=null;Bi.prototype.boolean=!1;Bi.prototype.booleanish=!1;Bi.prototype.overloadedBoolean=!1;Bi.prototype.number=!1;Bi.prototype.commaSeparated=!1;Bi.prototype.spaceSeparated=!1;Bi.prototype.commaOrSpaceSeparated=!1;Bi.prototype.mustUseProperty=!1;Bi.prototype.defined=!1;let Hfe=0;const et=Ku(),fr=Ku(),rH=Ku(),ue=Ku(),Bt=Ku(),_f=Ku(),Hn=Ku();function Ku(){return 2**++Hfe}const BT=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:fr,commaOrSpaceSeparated:Hn,commaSeparated:_f,number:ue,overloadedBoolean:rH,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),Bb=Object.keys(BT);class Wk extends Bi{constructor(t,r,n,i){let a=-1;if(super(t,r),CL(this,"space",i),typeof n=="number")for(;++a<Bb.length;){const o=Bb[a];CL(this,Bb[a],(n&BT[o])===BT[o])}}}Wk.prototype.defined=!0;function CL(e,t,r){r&&(e[t]=r)}const Wfe={}.hasOwnProperty;function cd(e){const t={},r={};let n;for(n in e.properties)if(Wfe.call(e.properties,n)){const i=e.properties[n],a=new Wk(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[zT(n)]=n,r[zT(a.attribute)]=n}return new ag(t,r,e.space)}const nH=cd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),iH=cd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function aH(e,t){return t in e?e[t]:t}function oH(e,t){return aH(e,t.toLowerCase())}const sH=cd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:oH,properties:{xmlns:null,xmlnsXLink:null}}),lH=cd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fr,ariaAutoComplete:null,ariaBusy:fr,ariaChecked:fr,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:fr,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:fr,ariaFlowTo:Bt,ariaGrabbed:fr,ariaHasPopup:null,ariaHidden:fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:ue,ariaLive:null,ariaModal:fr,ariaMultiLine:fr,ariaMultiSelectable:fr,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:fr,ariaReadOnly:fr,ariaRelevant:null,ariaRequired:fr,ariaRoleDescription:Bt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:fr,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null}}),jfe=cd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oH,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_f,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Bt,autoFocus:et,autoPlay:et,blocking:Bt,capture:et,charSet:null,checked:et,cite:null,className:Bt,cols:ue,colSpan:null,content:null,contentEditable:fr,controls:et,controlsList:Bt,coords:ue|_f,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:rH,draggable:fr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Bt,height:ue,hidden:et,high:ue,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:et,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:et,optimum:ue,pattern:null,ping:Bt,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Bt,required:et,reversed:et,rows:ue,rowSpan:ue,sandbox:Bt,scope:null,scoped:et,seamless:et,selected:et,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:fr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:fr,width:ue,wrap:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:fr,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:ue,security:null,unselectable:null}}),Ufe=cd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:aH,properties:{about:Hn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:Bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_f,g2:_f,glyphName:_f,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yfe=/^data[-\w.:]+$/i,TL=/-[a-z]/g,Xfe=/[A-Z]/g;function qfe(e,t){const r=zT(t);let n=t,i=Bi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Yfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(TL,Kfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!TL.test(a)){let o=a.replace(Xfe,Zfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Wk}return new i(n,t)}function Zfe(e){return"-"+e.toLowerCase()}function Kfe(e){return e.charAt(1).toUpperCase()}const Qfe={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"},Jfe=tH([iH,nH,sH,lH,jfe],"html"),uH=tH([iH,nH,sH,lH,Ufe],"svg");function ede(e){return e.join(" ").trim()}var jk={exports:{}},AL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tde=/\n/g,rde=/^\s*/,nde=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ide=/^:\s*/,ade=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ode=/^[;\s]*/,sde=/^\s+|\s+$/g,lde=`
142
+ ${e.palette.mode==="light"?av(qt(e.palette.divider,1),.88):iv(qt(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",[`&.${Lle.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})),ql=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ge(n,Ole),h=O.useContext(wG),p=O.useContext(Ux),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=B({},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=Nle(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),P.jsx(zle,B({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))});function Ble(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const Fle=["className","component"],$le=e=>{const{classes:t}=e;return Be({root:["root"]},Ble,t)},Vle=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),AG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ge(n,Fle),s=B({},n,{component:a}),l=$le(s);return P.jsx(Vle,B({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))});function Gle(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const Hle=["className","component"],Wle=e=>{const{classes:t}=e;return Be({root:["root"]},Gle,t)},jle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Ule={variant:"head"},tL="thead",MG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableHead"}),{className:i,component:a=tL}=n,o=ge(n,Hle),s=B({},n,{component:a}),l=Wle(s);return P.jsx(Ux.Provider,{value:Ule,children:P.jsx(jle,B({as:a,className:ye(l.root,i),ref:r,role:a===tL?null:"rowgroup",ownerState:s},o))})});function Yle(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const Xle=["className","component","disableGutters","variant"],qle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Be({root:["root",!r&&"gutters",n]},Yle,t)},Zle=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})=>B({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Kle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ge(n,Xle),u=B({},n,{component:a,disableGutters:o,variant:s}),c=qle(u);return P.jsx(Zle,B({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),Qle=Ni(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Jle=Ni(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function eue(e){return ze("MuiTableRow",e)}const rL=Fe("MuiTableRow",["root","selected","hover","head","footer"]),tue=["className","component","hover","selected"],rue=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Be({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},eue,t)},nue=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})`:qt(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}))`:qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),nL="tr",L0=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableRow"}),{className:i,component:a=nL,hover:o=!1,selected:s=!1}=n,l=ge(n,tue),u=O.useContext(Ux),c=B({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=rue(c);return P.jsx(nue,B({as:a,ref:r,className:ye(f.root,i),role:a===nL?null:"row",ownerState:c},l))});function iue(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function aue(e,t,r,n={},i=()=>{}){const{ease:a=iue,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 oue=["onChange"],sue={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function lue(e){const{onChange:t}=e,r=ge(e,oue),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ca(()=>{const o=qv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Ka(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),P.jsx("div",B({style:sue,ref:i},r))}function uue(e){return ze("MuiTabScrollButton",e)}const cue=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fue=["className","slots","slotProps","direction","orientation","disabled"],due=e=>{const{classes:t,orientation:r,disabled:n}=e;return Be({root:["root",r,n&&"disabled"]},uue,t)},hue=le(Xu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${cue.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),pue=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ge(a,fue),d=Yu().direction==="rtl",h=B({isRtl:d},a),p=due(h),v=(n=s.StartScrollButtonIcon)!=null?n:Qle,g=(i=s.EndScrollButtonIcon)!=null?i:Jle,m=da({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=da({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(hue,B({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(v,B({},m)):P.jsx(g,B({},y))}))});function vue(e){return ze("MuiTabs",e)}const Eb=Fe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gue=["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,im=(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}}},mue=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Be({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"]},vue,l)},yue=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Eb.scrollButtons}`]:t.scrollButtons},{[`& .${Eb.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Eb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xue=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})=>B({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"})),Sue=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})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),bue=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({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})),_ue=le(lue)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oL={},wue=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTabs"}),i=Yu(),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=pue,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:M=!1}=n,k=ge(n,gue),I=A==="scrollable",R=g==="vertical",E=R?"scrollTop":"scrollLeft",N=R?"top":"left",$=R?"bottom":"right",z=R?"clientHeight":"clientWidth",V=R?"height":"width",L=B({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:R,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!R,scrollableY:I&&R,centered:u&&!I,scrollButtonsHideMobile:!h}),G=mue(L),H=da({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),F=da({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[Y,J]=O.useState(!1),[j,ee]=O.useState(oL),[Q,te]=O.useState(!1),[ae,K]=O.useState(!1),[ne,me]=O.useState(!1),[pe,Me]=O.useState({overflow:"hidden",scrollbarWidth:0}),je=new Map,Ue=O.useRef(null),rt=O.useRef(null),ot=()=>{const de=Ue.current;let De;if(de){const mt=de.getBoundingClientRect();De={clientWidth:de.clientWidth,scrollLeft:de.scrollLeft,scrollTop:de.scrollTop,scrollLeftNormalized:LQ(de,i.direction),scrollWidth:de.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let qe;if(de&&T!==!1){const mt=rt.current.children;if(mt.length>0){const Cr=mt[je.get(T)];qe=Cr?Cr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},st=ea(()=>{const{tabsMeta:de,tabMeta:De}=ot();let qe=0,mt;if(R)mt="top",De&&de&&(qe=De.top-de.top+de.scrollTop);else if(mt=a?"right":"left",De&&de){const ya=a?de.scrollLeftNormalized+de.clientWidth-de.scrollWidth:de.scrollLeft;qe=(a?-1:1)*(De[mt]-de[mt]+ya)}const Cr={[mt]:qe,[V]:De?De[V]:0};if(isNaN(j[mt])||isNaN(j[V]))ee(Cr);else{const ya=Math.abs(j[mt]-Cr[mt]),oc=Math.abs(j[V]-Cr[V]);(ya>=1||oc>=1)&&ee(Cr)}}),Xe=(de,{animation:De=!0}={})=>{De?aue(E,Ue.current,de,{duration:i.transitions.duration.standard}):Ue.current[E]=de},Gt=de=>{let De=Ue.current[E];R?De+=de:(De+=de*(a?-1:1),De*=a&&h6()==="reverse"?-1:1),Xe(De)},Tt=()=>{const de=Ue.current[z];let De=0;const qe=Array.from(rt.current.children);for(let mt=0;mt<qe.length;mt+=1){const Cr=qe[mt];if(De+Cr[z]>de){mt===0&&(De=de);break}De+=Cr[z]}return De},lt=()=>{Gt(-1*Tt())},X=()=>{Gt(Tt())},ie=O.useCallback(de=>{Me({overflow:null,scrollbarWidth:de})},[]),Pe=()=>{const de={};de.scrollbarSizeListener=I?P.jsx(_ue,{onChange:ie,className:ye(G.scrollableX,G.hideScrollbar)}):null;const qe=I&&(y==="auto"&&(Q||ae)||y===!0);return de.scrollButtonStart=qe?P.jsx(m,B({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:H},orientation:g,direction:a?"right":"left",onClick:lt,disabled:!Q},w,{className:ye(G.scrollButtons,w.className)})):null,de.scrollButtonEnd=qe?P.jsx(m,B({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:g,direction:a?"left":"right",onClick:X,disabled:!ae},w,{className:ye(G.scrollButtons,w.className)})):null,de},be=ea(de=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[N]<De[N]){const mt=De[E]+(qe[N]-De[N]);Xe(mt,{animation:de})}else if(qe[$]>De[$]){const mt=De[E]+(qe[$]-De[$]);Xe(mt,{animation:de})}}}),he=ea(()=>{I&&y!==!1&&me(!ne)});O.useEffect(()=>{const de=qv(()=>{Ue.current&&st()}),De=Ka(Ue.current);De.addEventListener("resize",de);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(de),Array.from(rt.current.children).forEach(mt=>{qe.observe(mt)})),()=>{de.clear(),De.removeEventListener("resize",de),qe&&qe.disconnect()}},[st]),O.useEffect(()=>{const de=Array.from(rt.current.children),De=de.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const qe=de[0],mt=de[De-1],Cr={root:Ue.current,threshold:.99},ya=sc=>{te(!sc[0].isIntersecting)},oc=new IntersectionObserver(ya,Cr);oc.observe(qe);const Ig=sc=>{K(!sc[0].isIntersecting)},Id=new IntersectionObserver(Ig,Cr);return Id.observe(mt),()=>{oc.disconnect(),Id.disconnect()}}},[I,y,ne,c==null?void 0:c.length]),O.useEffect(()=>{J(!0)},[]),O.useEffect(()=>{st()}),O.useEffect(()=>{be(oL!==j)},[be,j]),O.useImperativeHandle(l,()=>({updateIndicator:st,updateScrollButtons:he}),[st,he]);const pt=P.jsx(bue,B({},b,{className:ye(G.indicator,b.className),ownerState:L,style:B({},j,b.style)}));let Jt=0;const _e=O.Children.map(c,de=>{if(!O.isValidElement(de))return null;const De=de.props.value===void 0?Jt:de.props.value;je.set(De,Jt);const qe=De===T;return Jt+=1,O.cloneElement(de,B({fullWidth:A==="fullWidth",indicator:qe&&!Y&&pt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Jt===1&&T===!1&&!de.props.tabIndex?{tabIndex:0}:{}))}),it=de=>{const De=rt.current,qe=zr(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let Cr=g==="horizontal"?"ArrowLeft":"ArrowUp",ya=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Cr="ArrowRight",ya="ArrowLeft"),de.key){case Cr:de.preventDefault(),im(De,qe,aL);break;case ya:de.preventDefault(),im(De,qe,iL);break;case"Home":de.preventDefault(),im(De,null,iL);break;case"End":de.preventDefault(),im(De,null,aL);break}},At=Pe();return P.jsxs(yue,B({className:ye(G.root,f),ownerState:L,ref:r,as:d},k,{children:[At.scrollButtonStart,At.scrollbarSizeListener,P.jsxs(xue,{className:G.scroller,ownerState:L,style:{overflow:pe.overflow,[R?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-pe.scrollbarWidth},ref:Ue,children:[P.jsx(Sue,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:it,ref:rt,role:"tablist",children:_e}),Y&&pt]}),At.scrollButtonEnd]}))});function Cue(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const Tue=["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"],Aue={standard:Ak,filled:Tk,outlined:Ik},Mue=e=>{const{classes:t}=e;return Be({root:["root"]},Cue,t)},kue=le(fG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),za=O.forwardRef(function(t,r){const n=$e({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:T,onChange:A,onFocus:M,placeholder:k,required:I=!1,rows:R,select:E=!1,SelectProps:N,type:$,value:z,variant:V="outlined"}=n,L=ge(n,Tue),G=B({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:E,variant:V}),H=Mue(G),F={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(F.notched=g.shrink),F.label=S),E&&((!N||!N.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const Y=WM(v),J=p&&Y?`${Y}-helper-text`:void 0,j=S&&Y?`${Y}-label`:void 0,ee=Aue[V],Q=P.jsx(ee,B({"aria-describedby":J,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:R,maxRows:_,minRows:b,type:$,value:z,id:Y,inputRef:x,onBlur:T,onChange:A,onFocus:M,placeholder:k,inputProps:m},F,y));return P.jsxs(kue,B({className:ye(H.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&P.jsx(Mk,B({htmlFor:Y,id:j},g,{children:S})),E?P.jsx(Dk,B({"aria-describedby":J,id:Y,labelId:j,value:z,input:Q},N,{children:o})):Q,p&&P.jsx(Coe,B({id:J},d,{children:p}))]}))});function kG(){return P.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("title",{children:"Locust"}),P.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),P.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),P.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),P.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}var Rk={},IG={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})(IG);var qu=IG.exports,Lb={};const Iue=BY(Yte);var sL;function Zu(){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}(Lb)),Lb}var Pue=qu;Object.defineProperty(Rk,"__esModule",{value:!0});var PG=Rk.default=void 0,Due=Pue(Zu()),Rue=P,Eue=(0,Due.default)((0,Rue.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");PG=Rk.default=Eue;var Ek={},Lue=qu;Object.defineProperty(Ek,"__esModule",{value:!0});var DG=Ek.default=void 0,Oue=Lue(Zu()),Nue=P,zue=(0,Oue.default)((0,Nue.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");DG=Ek.default=zue;const Ua={DARK:"dark",LIGHT:"light"},Bue=localStorage.theme===Ua.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ua.DARK:Ua.LIGHT,zi=KV,Fue=o6;function So(e,t){const r=Fue();return O.useCallback(n=>{r(e(n))},[e,r])}const $ue={isDarkMode:!1},RG=xi({name:"theme",initialState:$ue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Vue=RG.actions,EG=RG.reducer;function LG(){const e=zi(({theme:{isDarkMode:n}})=>n),t=So(Vue.setIsDarkMode);O.useEffect(()=>{t(Bue===Ua.DARK)},[]);const r=()=>{localStorage.theme=e?Ua.LIGHT:Ua.DARK,t(!e)};return P.jsx(eg,{color:"inherit",onClick:r,children:e?P.jsx(DG,{}):P.jsx(PG,{})})}const Gue=e=>ck({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function OG(){const e=zi(({theme:{isDarkMode:r}})=>r);return O.useMemo(()=>Gue(e?Ua.DARK:Ua.LIGHT),[e])}function Hue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=OG();return P.jsxs(H6,{theme:n,children:[P.jsx(uG,{}),P.jsx(Pt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(LG,{})}),P.jsxs(Pt,{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:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(kG,{})}),r&&P.jsx("form",{action:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(za,{label:"Username",name:"username"}),P.jsx(za,{label:"Password",name:"password",type:"password"}),t&&P.jsx(tne,{severity:"error",children:t}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:i,callbackUrl:a,iconUrl:o},s)=>P.jsxs(eg,{href:a,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:o}),P.jsx(dt,{height:"32",variant:"button",children:i})]},`auth-provider-${s}`))})]})]})}var Lk={},Wue=qu;Object.defineProperty(Lk,"__esModule",{value:!0});var NG=Lk.default=void 0,jue=Wue(Zu()),Uue=P,Yue=(0,jue.default)((0,Uue.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");NG=Lk.default=Yue;function Yx({open:e,onClose:t,children:r}){return P.jsx(cG,{onClose:t,open:e,children:P.jsxs(Pt,{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:[P.jsx(eg,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(NG,{})}),r]})})}function Xue(){const[e,t]=O.useState(!1),r=zi(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(oo,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(Yx,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(dt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(Yr,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(Yr,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(Yr,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(Yr,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(Yr,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(Yr,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Yr,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function que(){return P.jsx(ng,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(Xue,{})})}const zG=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Zue(e,t){return{...e,...t}}const Kue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Xx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Zr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ya=window.templateArgs?sf(window.templateArgs):{};var vF;Ya.isReport&&{...Ya,charts:(vF=Ya.history)==null||vF.reduce((e,{currentResponseTimePercentiles:t,...r})=>Xx(e,{...t,...r}),{})};function Que({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return P.jsxs(Pt,{sx:{display:"flex",columnGap:2},children:[P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Host"}),P.jsx(cle,{title:r,children:P.jsx(dt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"400px"},children:r})})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Status"}),P.jsx(dt,{variant:"button",children:t})]}),(t===Zr.RUNNING||t===Zr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Users"}),P.jsx(dt,{noWrap:!0,variant:"button",children:a})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Workers"}),P.jsx(dt,{noWrap:!0,variant:"button",children:o})]})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"RPS"}),P.jsx(dt,{noWrap:!0,variant:"button",children:n})]}),P.jsx($c,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Failures"}),P.jsx(dt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Jue=({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}),ece=$n(Jue)(Que),tce="input, select, textarea",rce=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 Ok({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(tce)].reduce((o,s)=>({...o,[s.name]:rce(s)}),{});t(a)},[t]);return P.jsx("form",{onSubmit:r,children:e})}var BG=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(BG||{});function nce(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function ice(e){return new RegExp("(^|:)//").test(e)}var ace=e=>e.replace(/\/$/,""),oce=e=>e.replace(/^\//,"");function sce(e,t){if(!e)return t;if(!t)return e;if(ice(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=ace(e),t=oce(t),`${e}${r}${t}`}var lL=e=>[].concat(...e);function lce(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function uce(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var uL=Za;function FG(e,t){if(e===t||!(uL(e)&&uL(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const a=Array.isArray(t)?[]:{};for(const o of r)a[o]=FG(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var cL=(...e)=>fetch(...e),cce=e=>e.status>=200&&e.status<=299,fce=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function fL(e){if(!Za(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function dce({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=cL,paramsSerializer:n,isJsonContentType:i=fce,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===cL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:p,getState:v,extra:g,endpoint:m,forced:y,type:x}=h;let S,{url:_,headers:b=new Headers(c.headers),params:w=void 0,responseHandler:C=l??"json",validateStatus:T=u??cce,timeout:A=s,...M}=typeof d=="string"?{url:d}:d,k={...c,signal:p,...M};b=new Headers(fL(b)),k.headers=await t(b,{getState:v,extra:g,endpoint:m,forced:y,type:x})||b;const I=H=>typeof H=="object"&&(Za(H)||Array.isArray(H)||typeof H.toJSON=="function");if(!k.headers.has("content-type")&&I(k.body)&&k.headers.set("content-type",a),I(k.body)&&i(k.headers)&&(k.body=JSON.stringify(k.body,o)),w){const H=~_.indexOf("?")?"&":"?",F=n?n(w):new URLSearchParams(fL(w));_+=H+F}_=sce(e,_);const R=new Request(_,k);S={request:new Request(_,k)};let N,$=!1,z=A&&setTimeout(()=>{$=!0,h.abort()},A);try{N=await r(R)}catch(H){return{error:{status:$?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(H)},meta:S}}finally{z&&clearTimeout(z)}const V=N.clone();S.response=V;let L,G="";try{let H;if(await Promise.all([f(N,C).then(F=>L=F,F=>H=F),V.text().then(F=>G=F,()=>{})]),H)throw H}catch(H){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:G,error:String(H)},meta:S}}return T(N,L)?{data:L,meta:S}:{error:{status:N.status,data:L},meta:S}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const p=await d.text();return p.length?JSON.parse(p):null}return d.text()}}var dL=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nk=cn("__rtkq/focused"),$G=cn("__rtkq/unfocused"),zk=cn("__rtkq/online"),VG=cn("__rtkq/offline");function GG(e){return e.type==="query"}function hce(e){return e.type==="mutation"}function Bk(e,t,r,n,i,a){return pce(e)?e(t,r,n,i).map(OT).map(a):Array.isArray(e)?e.map(OT).map(a):[]}function pce(e){return typeof e=="function"}function OT(e){return typeof e=="string"?{type:e}:e}function hL(e){return e!=null}function bf(e){let t=0;for(const r in e)t++;return t}function vce(e,t){return e.catch(t)}var lv=Symbol("forceQueryFn"),NT=e=>typeof e[lv]=="function";function gce({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:p,buildInitiateMutation:v,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(g,m){return y=>{var _;const x=i.endpointDefinitions[g],S=e({queryArgs:m,endpointDefinition:x,endpointName:g});return(_=a.get(y))==null?void 0:_[S]}}function f(g,m){return y=>{var x;return(x=o.get(y))==null?void 0:x[m]}}function d(){return g=>Object.values(a.get(g)||{}).filter(hL)}function h(){return g=>Object.values(o.get(g)||{}).filter(hL)}function p(g,m){const y=(x,{subscribe:S=!0,forceRefetch:_,subscriptionOptions:b,[lv]:w,...C}={})=>(T,A)=>{var H;const M=e({queryArgs:x,endpointDefinition:m,endpointName:g}),k=t({...C,type:"query",subscribe:S,forceRefetch:_,subscriptionOptions:b,endpointName:g,originalArgs:x,queryCacheKey:M,[lv]:w}),I=n.endpoints[g].select(x),R=T(k),E=I(A()),{requestId:N,abort:$}=R,z=E.requestId!==N,V=(H=a.get(T))==null?void 0:H[M],L=()=>I(A()),G=Object.assign(w?R.then(L):z&&!V?Promise.resolve(E):Promise.all([V,R]).then(L),{arg:x,requestId:N,subscriptionOptions:b,queryCacheKey:M,abort:$,async unwrap(){const F=await G;if(F.isError)throw F.error;return F.data},refetch:()=>T(y(x,{subscribe:!1,forceRefetch:!0})),unsubscribe(){S&&T(s({queryCacheKey:M,requestId:N}))},updateSubscriptionOptions(F){G.subscriptionOptions=F,T(u({endpointName:g,requestId:N,queryCacheKey:M,options:F}))}});if(!V&&!z&&!w){const F=a.get(T)||{};F[M]=G,a.set(T,F),G.then(()=>{delete F[M],bf(F)||a.delete(T)})}return G};return y}function v(g){return(m,{track:y=!0,fixedCacheKey:x}={})=>(S,_)=>{const b=r({type:"mutation",endpointName:g,originalArgs:m,track:y,fixedCacheKey:x}),w=S(b),{requestId:C,abort:T,unwrap:A}=w,M=vce(w.unwrap().then(E=>({data:E})),E=>({error:E})),k=()=>{S(l({requestId:C,fixedCacheKey:x}))},I=Object.assign(M,{arg:w.arg,requestId:C,abort:T,unwrap:A,reset:k}),R=o.get(S)||{};return o.set(S,R),R[C]=I,I.then(()=>{delete R[C],bf(R)||o.delete(S)}),x&&(R[x]=I,I.then(()=>{R[x]===I&&(delete R[x],bf(R)||o.delete(S))})),I}}}function pL(e){return e}function mce({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(y,x,S,_)=>(b,w)=>{const C=r[y],T=n({queryArgs:x,endpointDefinition:C,endpointName:y});if(b(i.internalActions.queryResultPatched({queryCacheKey:T,patches:S})),!_)return;const A=i.endpoints[y].select(x)(w()),M=Bk(C.providesTags,A.data,void 0,x,{},a);b(i.internalActions.updateProvidedBy({queryCacheKey:T,providedTags:M}))},s=(y,x,S,_=!0)=>(b,w)=>{const T=i.endpoints[y].select(x)(w());let A={patches:[],inversePatches:[],undo:()=>b(i.util.patchQueryData(y,x,A.inversePatches,_))};if(T.status==="uninitialized")return A;let M;if("data"in T)if(ua(T.data)){const[k,I,R]=BV(T.data,S);A.patches.push(...I),A.inversePatches.push(...R),M=k}else M=S(T.data),A.patches.push({op:"replace",path:[],value:M}),A.inversePatches.push({op:"replace",path:[],value:T.data});return A.patches.length===0||b(i.util.patchQueryData(y,x,A.patches,_)),A},l=(y,x,S)=>_=>_(i.endpoints[y].initiate(x,{subscribe:!1,forceRefetch:!0,[lv]:()=>({data:S})})),u=async(y,{signal:x,abort:S,rejectWithValue:_,fulfillWithValue:b,dispatch:w,getState:C,extra:T})=>{const A=r[y.endpointName];try{let M=pL,k;const I={signal:x,abort:S,dispatch:w,getState:C,extra:T,endpoint:y.endpointName,type:y.type,forced:y.type==="query"?c(y,C()):void 0},R=y.type==="query"?y[lv]:void 0;if(R?k=R():A.query?(k=await t(A.query(y.originalArgs),I,A.extraOptions),A.transformResponse&&(M=A.transformResponse)):k=await A.queryFn(y.originalArgs,I,A.extraOptions,E=>t(E,I,A.extraOptions)),typeof process<"u",k.error)throw new dL(k.error,k.meta);return b(await M(k.data,k.meta,y.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta,[of]:!0})}catch(M){let k=M;if(k instanceof dL){let I=pL;A.query&&A.transformErrorResponse&&(I=A.transformErrorResponse);try{return _(await I(k.value,k.meta,y.originalArgs),{baseQueryMeta:k.meta,[of]:!0})}catch(R){k=R}}throw typeof process<"u",console.error(k),k}};function c(y,x){var C,T,A;const S=(T=(C=x[e])==null?void 0:C.queries)==null?void 0:T[y.queryCacheKey],_=(A=x[e])==null?void 0:A.config.refetchOnMountOrArgChange,b=S==null?void 0:S.fulfilledTimeStamp,w=y.forceRefetch??(y.subscribe&&_);return w?w===!0||(Number(new Date)-Number(b))/1e3>=w:!1}const f=BR(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[of]:!0}},condition(y,{getState:x}){var A,M,k;const S=x(),_=(M=(A=S[e])==null?void 0:A.queries)==null?void 0:M[y.queryCacheKey],b=_==null?void 0:_.fulfilledTimeStamp,w=y.originalArgs,C=_==null?void 0:_.originalArgs,T=r[y.endpointName];return NT(y)?!0:(_==null?void 0:_.status)==="pending"?!1:c(y,S)||GG(T)&&((k=T==null?void 0:T.forceRefetch)!=null&&k.call(T,{currentArg:w,previousArg:C,endpointState:_,state:S}))?!0:!b},dispatchConditionRejection:!0}),d=BR(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[of]:!0}}}),h=y=>"force"in y,p=y=>"ifOlderThan"in y,v=(y,x,S)=>(_,b)=>{const w=h(S)&&S.force,C=p(S)&&S.ifOlderThan,T=(M=!0)=>{const k={forceRefetch:M,isPrefetch:!0};return i.endpoints[y].initiate(x,k)},A=i.endpoints[y].select(x)(b());if(w)_(T());else if(C){const M=A==null?void 0:A.fulfilledTimeStamp;if(!M){_(T());return}(Number(new Date)-Number(new Date(M)))/1e3>=C&&_(T())}else _(T(!1))};function g(y){return x=>{var S,_;return((_=(S=x==null?void 0:x.meta)==null?void 0:S.arg)==null?void 0:_.endpointName)===y}}function m(y,x){return{matchPending:ip(NM(y),g(x)),matchFulfilled:ip(js(y),g(x)),matchRejected:ip(Bf(y),g(x))}}return{queryThunk:f,mutationThunk:d,prefetch:v,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:m}}function HG(e,t,r,n){return Bk(r[e.meta.arg.endpointName][t],js(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function am(e,t,r){const n=e[t];n&&r(n)}function uv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function vL(e,t,r){const n=e[uv(t)];n&&r(n)}var Zd={};function yce({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=cn(`${e}/resetApiState`),c=xi({name:`${e}/queries`,initialState:Zd,reducers:{removeQueryResult:{reducer(x,{payload:{queryCacheKey:S}}){delete x[S]},prepare:Vd()},queryResultPatched:{reducer(x,{payload:{queryCacheKey:S,patches:_}}){am(x,S,b=>{b.data=RR(b.data,_.concat())})},prepare:Vd()}},extraReducers(x){x.addCase(t.pending,(S,{meta:_,meta:{arg:b}})=>{var C;const w=NT(b);S[C=b.queryCacheKey]??(S[C]={status:"uninitialized",endpointName:b.endpointName}),am(S,b.queryCacheKey,T=>{T.status="pending",T.requestId=w&&T.requestId?T.requestId:_.requestId,b.originalArgs!==void 0&&(T.originalArgs=b.originalArgs),T.startedTimeStamp=_.startedTimeStamp})}).addCase(t.fulfilled,(S,{meta:_,payload:b})=>{am(S,_.arg.queryCacheKey,w=>{if(w.requestId!==_.requestId&&!NT(_.arg))return;const{merge:C}=n[_.arg.endpointName];if(w.status="fulfilled",C)if(w.data!==void 0){const{fulfilledTimeStamp:T,arg:A,baseQueryMeta:M,requestId:k}=_;let I=Uv(w.data,R=>C(R,b,{arg:A.originalArgs,baseQueryMeta:M,fulfilledTimeStamp:T,requestId:k}));w.data=I}else w.data=b;else w.data=n[_.arg.endpointName].structuralSharing??!0?FG(la(w.data)?yZ(w.data):w.data,b):b;delete w.error,w.fulfilledTimeStamp=_.fulfilledTimeStamp})}).addCase(t.rejected,(S,{meta:{condition:_,arg:b,requestId:w},error:C,payload:T})=>{am(S,b.queryCacheKey,A=>{if(!_){if(A.requestId!==w)return;A.status="rejected",A.error=T??C}})}).addMatcher(o,(S,_)=>{const{queries:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&(S[w]=C)})}}),f=xi({name:`${e}/mutations`,initialState:Zd,reducers:{removeMutationResult:{reducer(x,{payload:S}){const _=uv(S);_ in x&&delete x[_]},prepare:Vd()}},extraReducers(x){x.addCase(r.pending,(S,{meta:_,meta:{requestId:b,arg:w,startedTimeStamp:C}})=>{w.track&&(S[uv(_)]={requestId:b,status:"pending",endpointName:w.endpointName,startedTimeStamp:C})}).addCase(r.fulfilled,(S,{payload:_,meta:b})=>{b.arg.track&&vL(S,b,w=>{w.requestId===b.requestId&&(w.status="fulfilled",w.data=_,w.fulfilledTimeStamp=b.fulfilledTimeStamp)})}).addCase(r.rejected,(S,{payload:_,error:b,meta:w})=>{w.arg.track&&vL(S,w,C=>{C.requestId===w.requestId&&(C.status="rejected",C.error=_??b)})}).addMatcher(o,(S,_)=>{const{mutations:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&w!==(C==null?void 0:C.requestId)&&(S[w]=C)})}}),d=xi({name:`${e}/invalidation`,initialState:Zd,reducers:{updateProvidedBy:{reducer(x,S){var w,C;const{queryCacheKey:_,providedTags:b}=S.payload;for(const T of Object.values(x))for(const A of Object.values(T)){const M=A.indexOf(_);M!==-1&&A.splice(M,1)}for(const{type:T,id:A}of b){const M=(w=x[T]??(x[T]={}))[C=A||"__internal_without_id"]??(w[C]=[]);M.includes(_)||M.push(_)}},prepare:Vd()}},extraReducers(x){x.addCase(c.actions.removeQueryResult,(S,{payload:{queryCacheKey:_}})=>{for(const b of Object.values(S))for(const w of Object.values(b)){const C=w.indexOf(_);C!==-1&&w.splice(C,1)}}).addMatcher(o,(S,_)=>{var w,C;const{provided:b}=a(_);for(const[T,A]of Object.entries(b))for(const[M,k]of Object.entries(A)){const I=(w=S[T]??(S[T]={}))[C=M||"__internal_without_id"]??(w[C]=[]);for(const R of k)I.includes(R)||I.push(R)}}).addMatcher(Eo(js(t),nx(t)),(S,_)=>{const b=HG(_,"providesTags",n,s),{queryCacheKey:w}=_.meta.arg;d.caseReducers.updateProvidedBy(S,d.actions.updateProvidedBy({queryCacheKey:w,providedTags:b}))})}}),h=xi({name:`${e}/subscriptions`,initialState:Zd,reducers:{updateSubscriptionOptions(x,S){},unsubscribeQueryResult(x,S){},internal_getRTKQSubscriptions(){}}}),p=xi({name:`${e}/internalSubscriptions`,initialState:Zd,reducers:{subscriptionsUpdated:{reducer(x,S){return RR(x,S.payload)},prepare:Vd()}}}),v=xi({name:`${e}/config`,initialState:{online:lce(),focused:uce(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(x,{payload:S}){x.middlewareRegistered=x.middlewareRegistered==="conflict"||i!==S?"conflict":!0}},extraReducers:x=>{x.addCase(zk,S=>{S.online=!0}).addCase(VG,S=>{S.online=!1}).addCase(Nk,S=>{S.focused=!0}).addCase($G,S=>{S.focused=!1}).addMatcher(o,S=>({...S}))}}),g=ex({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:p.reducer,config:v.reducer}),m=(x,S)=>g(u.match(S)?void 0:x,S),y={...v.actions,...c.actions,...h.actions,...p.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:m,actions:y}}var au=Symbol.for("RTKQ/skipToken"),WG={status:"uninitialized"},gL=Uv(WG,()=>{}),mL=Uv(WG,()=>{});function xce({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>gL,i=f=>mL;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...nce(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const p=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===au?n:m=>{var y,x;return((x=(y=o(m))==null?void 0:y.queries)==null?void 0:x[p])??gL},a)}}function l(){return f=>{let d;return typeof f=="object"?d=uv(f)??au:d=f,r(d===au?i:v=>{var g,m;return((m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])??mL},a)}}function u(f,d){const h=f[t],p=new Set;for(const v of d.map(OT)){const g=h.provided[v.type];if(!g)continue;let m=(v.id!==void 0?g[v.id]:lL(Object.values(g)))??[];for(const y of m)p.add(y)}return lL(Array.from(p.values()).map(v=>{const g=h.queries[v];return g?[{queryCacheKey:v,endpointName:g.endpointName,originalArgs:g.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var vc=WeakMap?new WeakMap:void 0,yL=({endpointName:e,queryArgs:t})=>{let r="";const n=vc==null?void 0:vc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Za(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Za(t)&&(vc==null||vc.set(t,i)),r=i}return`${e}(${r})`};function Sce(...e){return function(r){const n=Jp(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=yL;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:yL({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:OM(),extractRehydrationInfo:n,hasRehydrationInfo:Jp(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Kr(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function bce(e){for(let t in e)return!1;return!0}var _ce=2147483647/1e3-1,wce=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=Eo(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!bce(h)}const u={},c=(d,h,p)=>{var v;if(s(d)){const g=h.getState()[e],{queryCacheKey:m}=o.match(d)?d.payload:d.meta.arg;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(d))for(const[g,m]of Object.entries(u))m&&clearTimeout(m),delete u[g];if(n.hasRehydrationInfo(d)){const g=h.getState()[e],{queries:m}=n.extractRehydrationInfo(d);for(const[y,x]of Object.entries(m))f(y,x==null?void 0:x.endpointName,h,g.config)}};function f(d,h,p,v){const g=n.endpointDefinitions[h],m=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(m===1/0)return;const y=Math.max(0,Math.min(m,_ce));if(!l(d)){const x=u[d];x&&clearTimeout(x),u[d]=setTimeout(()=>{l(d)||p.dispatch(a({queryCacheKey:d})),delete u[d]},y*1e3)}}return c},Cce=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=Eo(js(n),nx(n)),f=Eo(js(n,i),Bf(n,i));let d=[];const h=(g,m)=>{c(g)?v(HG(g,"invalidatesTags",r,o),m):f(g)?v([],m):a.util.invalidateTags.match(g)&&v(Bk(g.payload,void 0,void 0,void 0,void 0,o),m)};function p(g){var m,y;for(const x in g.queries)if(((m=g.queries[x])==null?void 0:m.status)==="pending")return!0;for(const x in g.mutations)if(((y=g.mutations[x])==null?void 0:y.status)==="pending")return!0;return!1}function v(g,m){const y=m.getState(),x=y[e];if(d.push(...g),x.config.invalidationBehavior==="delayed"&&p(x))return;const S=d;if(d=[],S.length===0)return;const _=a.util.selectInvalidatedBy(y,S);t.batch(()=>{const b=Array.from(_.values());for(const{queryCacheKey:w}of b){const C=x.queries[w],T=l.currentSubscriptions[w]??{};C&&(bf(T)===0?m.dispatch(u({queryCacheKey:w})):C.status!=="uninitialized"&&m.dispatch(s(C,w)))}})}return h},Tce=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const p=h.getState()[e],v=p.queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:y}=f(g);if(!Number.isFinite(m))return;const x=a[d];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);const S=Date.now()+m;a[d]={nextPollTimestamp:S,pollingInterval:m,timeout:setTimeout(()=>{(p.config.focused||!y)&&h.dispatch(n(v,d)),s({queryCacheKey:d},h)},m)}}function l({queryCacheKey:d},h){const v=h.getState()[e].queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m}=f(g);if(!Number.isFinite(m)){u(d);return}const y=a[d],x=Date.now()+m;(!y||x<y.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,p=Number.POSITIVE_INFINITY;for(let v in d)d[v].pollingInterval&&(p=Math.min(d[v].pollingInterval,p),h=d[v].skipPollingIfUnfocused||h);return{lowestPollingInterval:p,skipPollingIfUnfocused:h}}return o},Ace=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{Nk.match(l)&&s(u,"refetchOnFocus"),zk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const p=f[h],v=d[h];if(!v||!p)continue;(Object.values(v).some(m=>m[u]===!0)||Object.values(v).every(m=>m[u]===void 0)&&c.config[u])&&(bf(v)===0?l.dispatch(a({queryCacheKey:h})):p.status!=="uninitialized"&&l.dispatch(n(p,h)))}})}return o},xL=new Error("Promise never resolved before cacheEntryRemoved."),Mce=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=yT(n),s=yT(i),l=js(n,i),u={},c=(h,p,v)=>{const g=f(h);if(n.pending.match(h)){const m=v[t].queries[g],y=p.getState()[t].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(i.pending.match(h))p.getState()[t].mutations[g]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId);else if(l(h)){const m=u[g];m!=null&&m.valueResolved&&(m.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const m=u[g];m&&(delete u[g],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[m,y]of Object.entries(u))delete u[m],y.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?uv(h.payload):""}function d(h,p,v,g,m){const y=r.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(!x)return;let S={};const _=new Promise(M=>{S.cacheEntryRemoved=M}),b=Promise.race([new Promise(M=>{S.valueResolved=M}),_.then(()=>{throw xL})]);b.catch(()=>{}),u[v]=S;const w=e.endpoints[h].select(y.type==="query"?p:v),C=g.dispatch((M,k,I)=>I),T={...g,getCacheEntry:()=>w(g.getState()),requestId:m,extra:C,updateCachedData:y.type==="query"?M=>g.dispatch(e.util.updateQueryData(h,p,M)):void 0,cacheDataLoaded:b,cacheEntryRemoved:_},A=x(p,T);Promise.resolve(A).catch(M=>{if(M!==xL)throw M})}return c},kce=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=NM(r,n),a=Bf(r,n),o=js(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:p,originalArgs:v}}=u.meta,g=t.endpointDefinitions[p],m=g==null?void 0:g.onQueryStarted;if(m){const y={},x=new Promise((w,C)=>{y.resolve=w,y.reject=C});x.catch(()=>{}),s[h]=y;const S=e.endpoints[p].select(g.type==="query"?v:h),_=c.dispatch((w,C,T)=>T),b={...c,getCacheEntry:()=>S(c.getState()),requestId:h,extra:_,updateCachedData:g.type==="query"?w=>c.dispatch(e.util.updateQueryData(p,v,w)):void 0,queryFulfilled:x};m(v,b)}}else if(o(u)){const{requestId:h,baseQueryMeta:p}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:p}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:p,baseQueryMeta:v}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!p,meta:v}),delete s[h]}}},Ice=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Pce=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,p)=>{var g,m,y;if(o.match(p)){const{queryCacheKey:x,requestId:S,options:_}=p.payload;return(g=h==null?void 0:h[x])!=null&&g[S]&&(h[x][S]=_),!0}if(s.match(p)){const{queryCacheKey:x,requestId:S}=p.payload;return h[x]&&delete h[x][S],!0}if(e.internalActions.removeQueryResult.match(p))return delete h[p.payload.queryCacheKey],!0;if(t.pending.match(p)){const{meta:{arg:x,requestId:S}}=p,_=h[m=x.queryCacheKey]??(h[m]={});return _[`${S}_running`]={},x.subscribe&&(_[S]=x.subscriptionOptions??_[S]??{}),!0}let v=!1;if(t.fulfilled.match(p)||t.rejected.match(p)){const x=h[p.meta.arg.queryCacheKey]||{},S=`${p.meta.requestId}_running`;v||(v=!!x[S]),delete x[S]}if(t.rejected.match(p)){const{meta:{condition:x,arg:S,requestId:_}}=p;if(x&&S.subscribe){const b=h[y=S.queryCacheKey]??(h[y]={});b[_]=S.subscriptionOptions??b[_]??{},v=!0}}return v},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const v=u()[h]??{};return bf(v)},isRequestSubscribed:(h,p)=>{var g;const v=u();return!!((g=v==null?void 0:v[h])!=null&&g[p])}};return(h,p)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const v=l(r.currentSubscriptions,h);let g=!0;if(v){a||(a=setTimeout(()=>{const x=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,S]=BV(i,()=>x);p.next(e.internalActions.subscriptionsUpdated(S)),i=x,a=null},500));const m=typeof h.type=="string"&&!!h.type.startsWith(n),y=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;g=!m&&!y}return[g,!1]}};function Dce(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:cn(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[Ice,wce,Cce,Tce,Mce,kce];return{middleware:f=>{let d=!1;const p={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},v=l.map(y=>y(p)),g=Pce(p),m=Ace(p);return y=>x=>{if(!DV(x))return y(x);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const S={...f,next:y},_=f.getState(),[b,w]=g(x,S,_);let C;if(b?C=y(x):C=w,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(let T of v)T(x,S,_);return C}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Ko(e,...t){return Object.assign(e,...t)}var SL=Symbol(),Rce=({createSelector:e=LM}={})=>({name:SL,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){MZ();const d=z=>(typeof process<"u",z);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:zk,onOffline:VG,onFocus:Nk,onFocusLost:$G},util:{}});const{queryThunk:h,mutationThunk:p,patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,buildMatchThunkActions:x}=mce({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:S,actions:_}=yce({context:f,queryThunk:h,mutationThunk:p,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Ko(t.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:_.resetApiState}),Ko(t.internalActions,_);const{middleware:b,actions:w}=Dce({reducerPath:i,context:f,queryThunk:h,mutationThunk:p,api:t,assertTagType:d});Ko(t.util,w),Ko(t,{reducer:S,middleware:b});const{buildQuerySelector:C,buildMutationSelector:T,selectInvalidatedBy:A,selectCachedArgsForQuery:M}=xce({serializeQueryArgs:a,reducerPath:i,createSelector:e});Ko(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:M});const{buildInitiateQuery:k,buildInitiateMutation:I,getRunningMutationThunk:R,getRunningMutationsThunk:E,getRunningQueriesThunk:N,getRunningQueryThunk:$}=gce({queryThunk:h,mutationThunk:p,api:t,serializeQueryArgs:a,context:f});return Ko(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:E,getRunningQueryThunk:$,getRunningQueriesThunk:N}),{name:SL,injectEndpoint(z,V){var G;const L=t;(G=L.endpoints)[z]??(G[z]={}),GG(V)?Ko(L.endpoints[z],{name:z,select:C(z,V),initiate:k(z,V)},x(h,z)):hce(V)&&Ko(L.endpoints[z],{name:z,select:T(),initiate:I(z)},x(p,z))}}}});function Ece(e){return e.type==="query"}function Lce(e){return e.type==="mutation"}function om(e,...t){return Object.assign(e,...t)}function Ob(e){return e.replace(e[0],e[0].toUpperCase())}var gc=WeakMap?new WeakMap:void 0,Oce=({endpointName:e,queryArgs:t})=>{let r="";const n=gc==null?void 0:gc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=Za(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));Za(t)&&(gc==null||gc.set(t,i)),r=i}return`${e}(${r})`},Nb=Symbol();function bL(e,t,r,n){const i=O.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=O.useRef(i);return O.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function zb(e){const t=O.useRef(e);return O.useEffect(()=>{Bs(t.current,e)||(t.current=e)},[e]),Bs(t.current,e)?t.current:e}var Nce=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zce=Nce(),Bce=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Fce=Bce(),$ce=()=>zce||Fce?O.useLayoutEffect:O.useEffect,Vce=$ce(),Gce=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:BG.pending}:e;function Hce({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?p=>p():O.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(p,v,g){if(v!=null&&v.endpointName&&p.isUninitialized){const{endpointName:b}=v,w=l.endpointDefinitions[b];s({queryArgs:v.originalArgs,endpointDefinition:w,endpointName:b})===s({queryArgs:g,endpointDefinition:w,endpointName:b})&&(v=void 0)}let m=p.isSuccess?p.data:v==null?void 0:v.data;m===void 0&&(m=p.data);const y=m!==void 0,x=p.isLoading,S=(!v||v.isLoading||v.isUninitialized)&&!y&&x,_=p.isSuccess||x&&y;return{...p,data:m,currentData:p.data,isFetching:x,isLoading:S,isSuccess:_}}function f(p,v){const g=r(),m=zb(v);return O.useCallback((y,x)=>g(e.util.prefetch(p,y,{...m,...x})),[p,g,m])}function d(p){const v=(y,{refetchOnReconnect:x,refetchOnFocus:S,refetchOnMountOrArgChange:_,skip:b=!1,pollingInterval:w=0,skipPollingIfUnfocused:C=!1}={})=>{const{initiate:T}=e.endpoints[p],A=r(),M=O.useRef(void 0);if(!M.current){const L=A(e.internalActions.internal_getRTKQSubscriptions());M.current=L}const k=bL(b?au:y,Oce,l.endpointDefinitions[p],p),I=zb({refetchOnReconnect:x,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:C}),R=O.useRef(!1),E=O.useRef(void 0);let{queryCacheKey:N,requestId:$}=E.current||{},z=!1;N&&$&&(z=M.current.isRequestSubscribed(N,$));const V=!z&&R.current;return u(()=>{R.current=z}),u(()=>{V&&(E.current=void 0)},[V]),u(()=>{var H;const L=E.current;if(typeof process<"u",k===au){L==null||L.unsubscribe(),E.current=void 0;return}const G=(H=E.current)==null?void 0:H.subscriptionOptions;if(!L||L.arg!==k){L==null||L.unsubscribe();const F=A(T(k,{subscriptionOptions:I,forceRefetch:_}));E.current=F}else I!==G&&L.updateSubscriptionOptions(I)},[A,T,_,k,I,V]),O.useEffect(()=>()=>{var L;(L=E.current)==null||L.unsubscribe(),E.current=void 0},[]),O.useMemo(()=>({refetch:()=>{var L;if(!E.current)throw new Error(Kr(38));return(L=E.current)==null?void 0:L.refetch()}}),[])},g=({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S=0,skipPollingIfUnfocused:_=!1}={})=>{const{initiate:b}=e.endpoints[p],w=r(),[C,T]=O.useState(Nb),A=O.useRef(void 0),M=zb({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S,skipPollingIfUnfocused:_});u(()=>{var E,N;const R=(E=A.current)==null?void 0:E.subscriptionOptions;M!==R&&((N=A.current)==null||N.updateSubscriptionOptions(M))},[M]);const k=O.useRef(M);u(()=>{k.current=M},[M]);const I=O.useCallback(function(R,E=!1){let N;return t(()=>{var $;($=A.current)==null||$.unsubscribe(),A.current=N=w(b(R,{subscriptionOptions:k.current,forceRefetch:!E})),T(R)}),N},[w,b]);return O.useEffect(()=>()=>{var R;(R=A==null?void 0:A.current)==null||R.unsubscribe()},[]),O.useEffect(()=>{C!==Nb&&!A.current&&I(C,!0)},[C,I]),O.useMemo(()=>[I,C],[I,C])},m=(y,{skip:x=!1,selectFromResult:S}={})=>{const{select:_}=e.endpoints[p],b=bL(x?au:y,s,l.endpointDefinitions[p],p),w=O.useRef(void 0),C=O.useMemo(()=>o([_(b),(I,R)=>R,I=>b],c,{memoizeOptions:{resultEqualityCheck:Bs}}),[_,b]),T=O.useMemo(()=>S?o([C],S,{devModeChecks:{identityFunctionCheck:"never"}}):C,[C,S]),A=n(I=>T(I,w.current),Bs),M=i(),k=C(M.getState(),w.current);return Vce(()=>{w.current=k},[k]),A};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery(y){const[x,S]=g(y),_=m(S,{...y,skip:S===Nb}),b=O.useMemo(()=>({lastArg:S}),[S]);return O.useMemo(()=>[x,_,b],[x,_,b])},useQuery(y,x){const S=v(y,x),_=m(y,{selectFromResult:y===au||x!=null&&x.skip?void 0:Gce,...x}),{data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}=_;return O.useDebugValue({data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}),O.useMemo(()=>({..._,...S}),[_,S])}}}function h(p){return({selectFromResult:v,fixedCacheKey:g}={})=>{const{select:m,initiate:y}=e.endpoints[p],x=r(),[S,_]=O.useState();O.useEffect(()=>()=>{S!=null&&S.arg.fixedCacheKey||S==null||S.reset()},[S]);const b=O.useCallback(function(G){const H=x(y(G,{fixedCacheKey:g}));return _(H),H},[x,y,g]),{requestId:w}=S||{},C=O.useMemo(()=>m({fixedCacheKey:g,requestId:S==null?void 0:S.requestId}),[g,S,m]),T=O.useMemo(()=>v?o([C],v):C,[v,C]),A=n(T,Bs),M=g==null?S==null?void 0:S.arg.originalArgs:void 0,k=O.useCallback(()=>{t(()=>{S&&_(void 0),g&&x(e.internalActions.removeMutationResult({requestId:w,fixedCacheKey:g}))})},[x,g,S,w]),{endpointName:I,data:R,status:E,isLoading:N,isSuccess:$,isError:z,error:V}=A;O.useDebugValue({endpointName:I,data:R,status:E,isLoading:N,isSuccess:$,isError:z,error:V});const L=O.useMemo(()=>({...A,originalArgs:M,reset:k}),[A,M,k]);return O.useMemo(()=>[b,L],[b,L])}}}var Wce=Symbol(),jce=({batch:e=gQ,hooks:t={useDispatch:o6,useSelector:KV,useStore:a6},createSelector:r=LM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Wce,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=Hce({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return om(l,{usePrefetch:f}),om(s,{batch:e}),{injectEndpoint(d,h){if(Ece(h)){const{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}=u(d);om(l.endpoints[d],{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}),a[`use${Ob(d)}Query`]=p,a[`useLazy${Ob(d)}Query`]=v}else if(Lce(h)){const p=c(d);om(l.endpoints[d],{useMutation:p}),a[`use${Ob(d)}Mutation`]=p}}}}}),Uce=Sce(Rce(),jce());const O0=Uce({baseQuery:dce(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:sf}),getTasks:e.query({query:()=>"tasks",transformResponse:sf}),getExceptions:e.query({query:()=>"exceptions",transformResponse:sf}),getLogs:e.query({query:()=>"logs",transformResponse:sf}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Kue(XR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:XR(t)})})})}),{useGetStatsQuery:Yce,useGetTasksQuery:Xce,useGetExceptionsQuery:qce,useGetLogsQuery:Zce,useStartSwarmMutation:jG,useUpdateUserSettingsMutation:Kce}=O0;function ig(e,{payload:t}){return Zue(e,t)}const Qce=Ya,UG=xi({name:"swarm",initialState:Qce,reducers:{setSwarm:ig}}),qx=UG.actions,Jce=UG.reducer;function efe({onSubmit:e,userCount:t,spawnRate:r,setSwarm:n}){const[i]=jG(),a=o=>{e(),i(o),n(o)};return P.jsxs(ng,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),P.jsx(Ok,{onSubmit:a,children:P.jsxs(Pt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(za,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(za,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const tfe=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),rfe={setSwarm:qx.setSwarm},nfe=$n(tfe,rfe)(efe);function ife(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(oo,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(nfe,{onSubmit:()=>t(!1)})})]})}var Fk={},afe=qu;Object.defineProperty(Fk,"__esModule",{value:!0});var Zx=Fk.default=void 0,ofe=afe(Zu()),sfe=P,lfe=(0,ofe.default)((0,sfe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Zx=Fk.default=lfe;function $k({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return P.jsxs(fG,{size:a,sx:o,children:[P.jsx(Mk,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dk,{...s,defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,u)=>P.jsx("option",{value:l,children:l},`option-${l}-${u}`))})]})}function ufe({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=u6(e),o=n?`${a} (${n})`:a;return r?P.jsx($k,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?P.jsx(hG,{control:P.jsx(ET,{defaultChecked:t}),label:o,name:e}):P.jsx(za,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function cfe({extraOptions:e}){return P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Custom parameters"})}),P.jsx(pk,{children:P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>P.jsx(ufe,{label:t,...r},`valid-parameter-${n}`))})})]})}var Vk={},ffe=qu;Object.defineProperty(Vk,"__esModule",{value:!0});var YG=Vk.default=void 0,dfe=ffe(Zu()),hfe=P,pfe=(0,dfe.default)((0,hfe.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");YG=Vk.default=pfe;function vfe({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(Ok,{onSubmit:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(dt,{children:`${t.userClassName} Settings`}),P.jsx($k,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>P.jsx(za,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:u6(a),name:a},`user-to-edit-${a}`)),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function gfe({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Kce(),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 P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(Pt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Mk,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(pG,{children:P.jsx(AG,{component:il,children:P.jsxs(CG,{children:[P.jsx(MG,{children:P.jsx(L0,{children:P.jsx(ql,{colSpan:4,padding:"checkbox",children:P.jsx(ET,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),P.jsx(TG,{children:Object.entries(a).map(([g,m])=>P.jsxs(L0,{hover:!0,children:[P.jsx(ql,{onClick:d(g),padding:"checkbox",children:P.jsx(ET,{checked:r.includes(g)})}),P.jsx(ql,{children:g}),P.jsx(ql,{children:P.jsx(dt,{variant:"subtitle2",children:m.host})}),P.jsx(ql,{align:"right",children:P.jsx(eg,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:P.jsx(YG,{})})})]},`user-class-${g}`))})]})})})]})}),P.jsx(Yx,{onClose:()=>s(!1),open:o,children:l&&P.jsx(vfe,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const mfe={setSwarm:qx.setSwarm},yfe=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),xfe=$n(yfe,mfe)(gfe);function Sfe({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=jG(),[d,h]=O.useState(t),p=v=>{l({state:Zr.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 P.jsxs(ng,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&P.jsx(Pt,{marginBottom:2,marginTop:2,children:P.jsx(xfe,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),P.jsx(Ok,{onSubmit:p,children:P.jsxs(Pt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&P.jsx($k,{label:"Shape Class",name:"shapeClass",options:e}),P.jsx(za,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(za,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),P.jsx(za,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Advanced options"})}),P.jsx(pk,{children:P.jsx(za,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!zG(n)&&P.jsx(cfe,{extraOptions:n}),P.jsx(oo,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const bfe=({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}),_fe={setSwarm:qx.setSwarm},XG=$n(bfe,_fe)(Sfe);function wfe(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(oo,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(XG,{})})]})}function Cfe(){const e=()=>{fetch("stats/reset")};return P.jsx(oo,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Tfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return P.jsx(oo,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Afe(){const e=zi(({swarm:t})=>t.state);return e===Zr.READY?null:P.jsxs(Pt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Zr.STOPPED?P.jsx(wfe,{}):P.jsxs(P.Fragment,{children:[P.jsx(ife,{}),P.jsx(Tfe,{})]}),P.jsx(Cfe,{})]})}function Mfe(){return P.jsx(dne,{position:"static",children:P.jsx(ng,{maxWidth:"xl",children:P.jsxs(Kle,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(Yr,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(kG,{})}),P.jsxs(Pt,{sx:{display:"flex",columnGap:6},children:[P.jsx(ece,{}),P.jsx(Afe,{}),P.jsx(LG,{})]})]})})})}function kfe({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(Pt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(Mfe,{}),P.jsx("main",{children:e})]}),P.jsx(que,{})]})}const qG=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),ZG="logViewer";function cv(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=O.useRef(e);O.useEffect(()=>{i.current=e},[e]),O.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const Ife={},KG=xi({name:"notification",initialState:Ife,reducers:{setNotification:ig}}),QG=KG.actions,Pfe=KG.reducer;function Dfe(e,{key:t,shouldNotify:r}){const n=So(QG.setNotification),i=zi(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const Rfe={master:[],workers:{}},JG=xi({name:"logViewer",initialState:Rfe,reducers:{setLogs:ig}}),Efe=JG.actions,Lfe=JG.reducer,eH=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?eH(r):r),[]),Ofe={master:[],workers:{}};function Nfe(){const e=zi(({swarm:l})=>l),t=So(Efe.setLogs),{data:r,refetch:n}=Zce(),i=r||Ofe,a=O.useMemo(()=>eH(Object.values(i.workers)),[i.workers]),o=O.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=O.useCallback(l=>o.slice(localStorage[l]).some(qG),[o]);return cv(n,5e3,{shouldRunInterval:e.state===Zr.SPAWNING||e.state==Zr.RUNNING}),Dfe(o,{key:ZG,shouldNotify:s}),O.useEffect(()=>{t(i)},[i]),i}var Gk={},zfe=qu;Object.defineProperty(Gk,"__esModule",{value:!0});var Hk=Gk.default=void 0,Bfe=zfe(Zu()),_L=P,Ffe=(0,Bfe.default)([(0,_L.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,_L.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");Hk=Gk.default=Ffe;function $fe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Vfe=/[ \t\n\f\r]/g;function Gfe(e){return typeof e=="object"?e.type==="text"?wL(e.value):!1:wL(e)}function wL(e){return e.replace(Vfe,"")===""}class ag{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}ag.prototype.property={};ag.prototype.normal={};ag.prototype.space=null;function tH(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new ag(r,n,t)}function zT(e){return e.toLowerCase()}class Bi{constructor(t,r){this.property=t,this.attribute=r}}Bi.prototype.space=null;Bi.prototype.boolean=!1;Bi.prototype.booleanish=!1;Bi.prototype.overloadedBoolean=!1;Bi.prototype.number=!1;Bi.prototype.commaSeparated=!1;Bi.prototype.spaceSeparated=!1;Bi.prototype.commaOrSpaceSeparated=!1;Bi.prototype.mustUseProperty=!1;Bi.prototype.defined=!1;let Hfe=0;const et=Ku(),fr=Ku(),rH=Ku(),ue=Ku(),Bt=Ku(),_f=Ku(),Hn=Ku();function Ku(){return 2**++Hfe}const BT=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:fr,commaOrSpaceSeparated:Hn,commaSeparated:_f,number:ue,overloadedBoolean:rH,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),Bb=Object.keys(BT);class Wk extends Bi{constructor(t,r,n,i){let a=-1;if(super(t,r),CL(this,"space",i),typeof n=="number")for(;++a<Bb.length;){const o=Bb[a];CL(this,Bb[a],(n&BT[o])===BT[o])}}}Wk.prototype.defined=!0;function CL(e,t,r){r&&(e[t]=r)}const Wfe={}.hasOwnProperty;function cd(e){const t={},r={};let n;for(n in e.properties)if(Wfe.call(e.properties,n)){const i=e.properties[n],a=new Wk(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[zT(n)]=n,r[zT(a.attribute)]=n}return new ag(t,r,e.space)}const nH=cd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),iH=cd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function aH(e,t){return t in e?e[t]:t}function oH(e,t){return aH(e,t.toLowerCase())}const sH=cd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:oH,properties:{xmlns:null,xmlnsXLink:null}}),lH=cd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fr,ariaAutoComplete:null,ariaBusy:fr,ariaChecked:fr,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:fr,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:fr,ariaFlowTo:Bt,ariaGrabbed:fr,ariaHasPopup:null,ariaHidden:fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:ue,ariaLive:null,ariaModal:fr,ariaMultiLine:fr,ariaMultiSelectable:fr,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:fr,ariaReadOnly:fr,ariaRelevant:null,ariaRequired:fr,ariaRoleDescription:Bt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:fr,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null}}),jfe=cd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:oH,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_f,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Bt,autoFocus:et,autoPlay:et,blocking:Bt,capture:et,charSet:null,checked:et,cite:null,className:Bt,cols:ue,colSpan:null,content:null,contentEditable:fr,controls:et,controlsList:Bt,coords:ue|_f,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:rH,draggable:fr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Bt,height:ue,hidden:et,high:ue,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:et,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:et,optimum:ue,pattern:null,ping:Bt,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Bt,required:et,reversed:et,rows:ue,rowSpan:ue,sandbox:Bt,scope:null,scoped:et,seamless:et,selected:et,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:fr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:fr,width:ue,wrap:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:fr,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:ue,security:null,unselectable:null}}),Ufe=cd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:aH,properties:{about:Hn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:Bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_f,g2:_f,glyphName:_f,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yfe=/^data[-\w.:]+$/i,TL=/-[a-z]/g,Xfe=/[A-Z]/g;function qfe(e,t){const r=zT(t);let n=t,i=Bi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Yfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(TL,Kfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!TL.test(a)){let o=a.replace(Xfe,Zfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Wk}return new i(n,t)}function Zfe(e){return"-"+e.toLowerCase()}function Kfe(e){return e.charAt(1).toUpperCase()}const Qfe={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"},Jfe=tH([iH,nH,sH,lH,jfe],"html"),uH=tH([iH,nH,sH,lH,Ufe],"svg");function ede(e){return e.join(" ").trim()}var jk={exports:{}},AL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tde=/\n/g,rde=/^\s*/,nde=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ide=/^:\s*/,ade=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ode=/^[;\s]*/,sde=/^\s+|\s+$/g,lde=`
143
143
  `,ML="/",kL="*",Zl="",ude="comment",cde="declaration",fde=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(tde);v&&(r+=v.length);var g=p.lastIndexOf(lde);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(rde)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(ML!=e.charAt(0)||kL!=e.charAt(1))){for(var v=2;Zl!=e.charAt(v)&&(kL!=e.charAt(v)||ML!=e.charAt(v+1));)++v;if(v+=2,Zl===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:ude,comment:g})}}function d(){var p=a(),v=l(nde);if(v){if(f(),!l(ide))return s("property missing ':'");var g=l(ade),m=p({type:cde,property:IL(v[0].replace(AL,Zl)),value:g?IL(g[0].replace(AL,Zl)):Zl});return l(ode),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 IL(e){return e?e.replace(sde,Zl):Zl}var dde=fde;function cH(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=dde(e),a=typeof t=="function",o,s,l=0,u=i.length;l<u;l++)n=i[l],o=n.property,s=n.value,a?t(o,s,n):s&&(r||(r={}),r[o]=s);return r}jk.exports=cH;jk.exports.default=cH;var hde=jk.exports;const pde=N1(hde),fH=dH("end"),Uk=dH("start");function dH(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&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 vde(e){const t=Uk(e),r=fH(e);if(t&&r)return{start:t,end:r}}function hp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?PL(e.position):"start"in e||"end"in e?PL(e):"line"in e||"column"in e?FT(e):""}function FT(e){return DL(e&&e.line)+":"+DL(e&&e.column)}function PL(e){return FT(e&&e.start)+"-"+FT(e&&e.end)}function DL(e){return e&&typeof e=="number"?e:1}class xn 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=hp(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}}xn.prototype.file="";xn.prototype.name="";xn.prototype.reason="";xn.prototype.message="";xn.prototype.stack="";xn.prototype.column=void 0;xn.prototype.line=void 0;xn.prototype.ancestors=void 0;xn.prototype.cause=void 0;xn.prototype.fatal=void 0;xn.prototype.place=void 0;xn.prototype.ruleId=void 0;xn.prototype.source=void 0;const Yk={}.hasOwnProperty,gde=new Map,mde=/[A-Z]/g,yde=/-([a-z])/g,xde=new Set(["table","tbody","thead","tfoot","tr"]),Sde=new Set(["td","th"]);function bde(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=wde(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=_de(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"?uH:Jfe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=hH(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function hH(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=uH,e.schema=i),e.ancestors.push(t);let a=Cde(e,t);const o=Tde(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&xde.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Gfe(l):!0})),Yk.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 _de(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 wde(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=Uk(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 Cde(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:gde;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=hH(e,a,o);s!==void 0&&r.push(s)}return r}function Tde(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&Yk.call(r.properties,i)){const o=Ade(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&Sde.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function Ade(e,t,r,n){const i=qfe(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?$fe(n):ede(n)),i.property==="style"){let a=typeof n=="object"?n:Mde(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=kde(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Qfe[i.property]||i.property:i.attribute,n]}}function Mde(e,t,r){const n={};try{pde(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new xn("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(yde,Pde)),n[s]=o}}function kde(e){const t={};let r;for(r in e)Yk.call(e,r)&&(t[Ide(r)]=e[r]);return t}function Ide(e){let t=e.replace(mde,Dde);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Pde(e,t){return t.toUpperCase()}function Dde(e){return"-"+e.toLowerCase()}const Fb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Rde={};function Ede(e,t){const r=Rde,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return pH(e,n,i)}function pH(e,t,r){if(Lde(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 RL(e.children,t,r)}return Array.isArray(e)?RL(e,t,r):""}function RL(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=pH(e[i],t,r);return n.join("")}function Lde(e){return!!(e&&typeof e=="object")}const EL=document.createElement("i");function Xk(e){const t="&"+e+";";EL.innerHTML=t;const r=EL.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Ja(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?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);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Si(e,t){return e.length>0?(Ja(e,e.length,0,t),e):t}const LL={}.hasOwnProperty;function Ode(e){const t={};let r=-1;for(;++r<e.length;)Nde(t,e[r]);return t}function Nde(e,t){let r;for(r in t){const i=(LL.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){LL.call(i,o)||(i[o]=[]);const s=a[o];zde(i[o],Array.isArray(s)?s:s?[s]:[])}}}function zde(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ja(e,0,0,n)}function vH(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&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 wf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bde=sl(new RegExp("\\p{P}","u")),La=sl(/[A-Za-z]/),Xn=sl(/[\dA-Za-z]/),Fde=sl(/[#-'*+\--9=?A-Z^-~]/);function $T(e){return e!==null&&(e<32||e===127)}const VT=sl(/\d/),$de=sl(/[\dA-Fa-f]/),gH=sl(/[!-/:-@[-`{-~]/);function We(e){return e!==null&&e<-2}function Nn(e){return e!==null&&(e<0||e===32)}function wt(e){return e===-2||e===-1||e===32}function Vde(e){return gH(e)||Bde(e)}const Gde=sl(/\s/);function sl(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function fd(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Xn(e.charCodeAt(r+1))&&Xn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&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)}function $t(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return wt(l)?(e.enter(r),s(l)):t(l)}function s(l){return wt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const Hde={tokenize:Wde};function Wde(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),$t(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return We(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const jde={tokenize:Ude},OL={tokenize:Yde};function Ude(e){const t=this,r=[];let n=0,i,a,o;return s;function s(x){if(n<r.length){const S=r[n];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(x)}return u(x)}function l(x){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let _=S,b;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){b=t.events[_][1].end;break}m(n);let w=S;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},b),w++;return Ja(t.events,_+1,0,t.events.slice(S)),t.events.length=w,u(x)}return s(x)}function u(x){if(n===r.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(OL,c,f)(x)}function c(x){return i&&y(),m(n),d(x)}function f(x){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(x)}function d(x){return t.containerState={},e.attempt(OL,h,p)(x)}function h(x){return n++,r.push([t.currentConstruct,t.containerState]),d(x)}function p(x){if(x===null){i&&y(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(x)}function v(x){if(x===null){g(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return We(x)?(e.consume(x),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(x),v)}function g(x,S){const _=t.sliceStream(x);if(S&&_.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(_),t.parser.lazy[x.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const w=t.events.length;let C=w,T,A;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(T){A=t.events[C][1].end;break}T=!0}for(m(n),b=w;b<t.events.length;)t.events[b][1].end=Object.assign({},A),b++;Ja(t.events,C+1,0,t.events.slice(w)),t.events.length=b}}function m(x){let S=r.length;for(;S-- >x;){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 Yde(e,t,r){return $t(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function NL(e){if(e===null||Nn(e)||Gde(e))return 1;if(Vde(e))return 2}function qk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const GT={name:"attention",tokenize:qde,resolveAll:Xde};function Xde(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&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);zL(f,-l),zL(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=Si(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Si(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Si(u,qk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Si(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=Si(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ja(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function qde(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=NL(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=NL(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function zL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zde={name:"autolink",tokenize:Kde};function Kde(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return La(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Xn(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Xn(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||$T(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Fde(h)?(e.consume(h),u):r(h)}function c(h){return Xn(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Xn(h))&&n++<63){const p=h===45?d:f;return e.consume(h),p}return r(h)}}const Kx={tokenize:Qde,partial:!0};function Qde(e,t,r){return n;function n(a){return wt(a)?$t(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||We(a)?t(a):r(a)}}const mH={name:"blockQuote",tokenize:Jde,continuation:{tokenize:ehe},exit:the};function Jde(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return wt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ehe(e,t,r){const n=this;return i;function i(o){return wt(o)?$t(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(mH,t,r)(o)}}function the(e){e.exit("blockQuote")}const yH={name:"characterEscape",tokenize:rhe};function rhe(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return gH(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const xH={name:"characterReference",tokenize:nhe};function nhe(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Xn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=$de,c):(e.enter("characterReferenceValue"),a=7,o=VT,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Xn&&!Xk(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const BL={tokenize:ahe,partial:!0},FL={name:"codeFenced",tokenize:ihe,concrete:!0};function ihe(e,t,r){const n=this,i={tokenize:_,partial:!0};let a=0,o=0,s;return l;function l(b){return u(b)}function u(b){const w=n.events[n.events.length-1];return a=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===s?(o++,e.consume(b),c):o<3?r(b):(e.exit("codeFencedFenceSequence"),wt(b)?$t(e,f,"whitespace")(b):f(b))}function f(b){return b===null||We(b)?(e.exit("codeFencedFence"),n.interrupt?t(b):e.check(BL,v,S)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||We(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):wt(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$t(e,h,"whitespace")(b)):b===96&&b===s?r(b):(e.consume(b),d)}function h(b){return b===null||We(b)?f(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||We(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(b)):b===96&&b===s?r(b):(e.consume(b),p)}function v(b){return e.attempt(i,S,g)(b)}function g(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return a>0&&wt(b)?$t(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||We(b)?e.check(BL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||We(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let T=0;return A;function A(E){return b.enter("lineEnding"),b.consume(E),b.exit("lineEnding"),M}function M(E){return b.enter("codeFencedFence"),wt(E)?$t(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):k(E)}function k(E){return E===s?(b.enter("codeFencedFenceSequence"),I(E)):C(E)}function I(E){return E===s?(T++,b.consume(E),I):T>=o?(b.exit("codeFencedFenceSequence"),wt(E)?$t(b,R,"whitespace")(E):R(E)):C(E)}function R(E){return E===null||We(E)?(b.exit("codeFencedFence"),w(E)):C(E)}}}function ahe(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 $b={name:"codeIndented",tokenize:she},ohe={tokenize:lhe,partial:!0};function she(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),$t(e,a,"linePrefix",5)(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):We(u)?e.attempt(ohe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||We(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function lhe(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):We(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$t(e,a,"linePrefix",5)(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):We(o)?i(o):r(o)}}const uhe={name:"codeText",tokenize:dhe,resolve:che,previous:fhe};function che(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<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function fhe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dhe(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):We(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||We(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function SH(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,hhe(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),Ja(e,i,r-i+1,s))}}return!u}function hhe(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,p=0,v=0;const g=[v];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,g.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const m=s.slice(g[d],g[d+1]),y=a.pop();l.unshift([y,y+m.length-1]),Ja(e,y,2,m)}for(d=-1;++d<l.length;)u[p+l[d][0]]=p+l[d][1],p+=l[d][1]-l[d][0]-1;return u}const phe={tokenize:mhe,resolve:ghe},vhe={tokenize:yhe,partial:!0};function ghe(e){return SH(e),e}function mhe(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):We(s)?e.check(vhe,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function yhe(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$t(e,a,"linePrefix")}function a(o){if(o===null||We(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function bH(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||$T(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||We(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||Nn(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c<u&&m===40?(e.consume(m),c++,v):m===41?(e.consume(m),c--,v):m===null||m===32||m===40||$T(m)?r(m):(e.consume(m),m===92?g:v)}function g(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function _H(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||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):We(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||We(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!wt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function wH(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):We(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$t(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||We(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 pp(e,t){let r;return n;function n(i){return We(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):wt(i)?$t(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const xhe={name:"definition",tokenize:bhe},She={tokenize:_he,partial:!0};function bhe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return _H.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=wf(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 Nn(h)?pp(e,u)(h):u(h)}function u(h){return bH(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(She,f,f)(h)}function f(h){return wt(h)?$t(e,d,"whitespace")(h):d(h)}function d(h){return h===null||We(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function _he(e,t,r){return n;function n(s){return Nn(s)?pp(e,i)(s):r(s)}function i(s){return wH(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return wt(s)?$t(e,o,"whitespace")(s):o(s)}function o(s){return s===null||We(s)?t(s):r(s)}}const whe={name:"hardBreakEscape",tokenize:Che};function Che(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return We(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const The={name:"headingAtx",tokenize:Mhe,resolve:Ahe};function Ahe(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"},Ja(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Mhe(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||Nn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||We(c)?(e.exit("atxHeading"),t(c)):wt(c)?$t(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||Nn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const khe=["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"],$L=["pre","script","style","textarea"],Ihe={name:"htmlFlow",tokenize:Ehe,resolveTo:Rhe,concrete:!0},Phe={tokenize:Ohe,partial:!0},Dhe={tokenize:Lhe,partial:!0};function Rhe(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 Ehe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(F){return c(F)}function c(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),f}function f(F){return F===33?(e.consume(F),d):F===47?(e.consume(F),a=!0,v):F===63?(e.consume(F),i=3,n.interrupt?t:L):La(F)?(e.consume(F),o=String.fromCharCode(F),g):r(F)}function d(F){return F===45?(e.consume(F),i=2,h):F===91?(e.consume(F),i=5,s=0,p):La(F)?(e.consume(F),i=4,n.interrupt?t:L):r(F)}function h(F){return F===45?(e.consume(F),n.interrupt?t:L):r(F)}function p(F){const Y="CDATA[";return F===Y.charCodeAt(s++)?(e.consume(F),s===Y.length?n.interrupt?t:k:p):r(F)}function v(F){return La(F)?(e.consume(F),o=String.fromCharCode(F),g):r(F)}function g(F){if(F===null||F===47||F===62||Nn(F)){const Y=F===47,J=o.toLowerCase();return!Y&&!a&&$L.includes(J)?(i=1,n.interrupt?t(F):k(F)):khe.includes(o.toLowerCase())?(i=6,Y?(e.consume(F),m):n.interrupt?t(F):k(F)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(F):a?y(F):x(F))}return F===45||Xn(F)?(e.consume(F),o+=String.fromCharCode(F),g):r(F)}function m(F){return F===62?(e.consume(F),n.interrupt?t:k):r(F)}function y(F){return wt(F)?(e.consume(F),y):A(F)}function x(F){return F===47?(e.consume(F),A):F===58||F===95||La(F)?(e.consume(F),S):wt(F)?(e.consume(F),x):A(F)}function S(F){return F===45||F===46||F===58||F===95||Xn(F)?(e.consume(F),S):_(F)}function _(F){return F===61?(e.consume(F),b):wt(F)?(e.consume(F),_):x(F)}function b(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),l=F,w):wt(F)?(e.consume(F),b):C(F)}function w(F){return F===l?(e.consume(F),l=null,T):F===null||We(F)?r(F):(e.consume(F),w)}function C(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Nn(F)?_(F):(e.consume(F),C)}function T(F){return F===47||F===62||wt(F)?x(F):r(F)}function A(F){return F===62?(e.consume(F),M):r(F)}function M(F){return F===null||We(F)?k(F):wt(F)?(e.consume(F),M):r(F)}function k(F){return F===45&&i===2?(e.consume(F),N):F===60&&i===1?(e.consume(F),$):F===62&&i===4?(e.consume(F),G):F===63&&i===3?(e.consume(F),L):F===93&&i===5?(e.consume(F),V):We(F)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Phe,H,I)(F)):F===null||We(F)?(e.exit("htmlFlowData"),I(F)):(e.consume(F),k)}function I(F){return e.check(Dhe,R,H)(F)}function R(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),E}function E(F){return F===null||We(F)?I(F):(e.enter("htmlFlowData"),k(F))}function N(F){return F===45?(e.consume(F),L):k(F)}function $(F){return F===47?(e.consume(F),o="",z):k(F)}function z(F){if(F===62){const Y=o.toLowerCase();return $L.includes(Y)?(e.consume(F),G):k(F)}return La(F)&&o.length<8?(e.consume(F),o+=String.fromCharCode(F),z):k(F)}function V(F){return F===93?(e.consume(F),L):k(F)}function L(F){return F===62?(e.consume(F),G):F===45&&i===2?(e.consume(F),L):k(F)}function G(F){return F===null||We(F)?(e.exit("htmlFlowData"),H(F)):(e.consume(F),G)}function H(F){return e.exit("htmlFlow"),t(F)}}function Lhe(e,t,r){const n=this;return i;function i(o){return We(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 Ohe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kx,t,r)}}const Nhe={name:"htmlText",tokenize:zhe};function zhe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):La(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):La(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):We(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?N(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):We(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?N(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?N(L):We(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):We(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?N(L):x(L)}function _(L){return La(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Xn(L)?(e.consume(L),b):w(L)}function w(L){return We(L)?(o=w,$(L)):wt(L)?(e.consume(L),w):N(L)}function C(L){return L===45||Xn(L)?(e.consume(L),C):L===47||L===62||Nn(L)?T(L):r(L)}function T(L){return L===47?(e.consume(L),N):L===58||L===95||La(L)?(e.consume(L),A):We(L)?(o=T,$(L)):wt(L)?(e.consume(L),T):N(L)}function A(L){return L===45||L===46||L===58||L===95||Xn(L)?(e.consume(L),A):M(L)}function M(L){return L===61?(e.consume(L),k):We(L)?(o=M,$(L)):wt(L)?(e.consume(L),M):T(L)}function k(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,I):We(L)?(o=k,$(L)):wt(L)?(e.consume(L),k):(e.consume(L),R)}function I(L){return L===i?(e.consume(L),i=void 0,E):L===null?r(L):We(L)?(o=I,$(L)):(e.consume(L),I)}function R(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||Nn(L)?T(L):(e.consume(L),R)}function E(L){return L===47||L===62||Nn(L)?T(L):r(L)}function N(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),z}function z(L){return wt(L)?$t(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const Zk={name:"labelEnd",tokenize:Hhe,resolveTo:Ghe,resolveAll:Vhe},Bhe={tokenize:Whe},Fhe={tokenize:jhe},$he={tokenize:Uhe};function Vhe(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function Ghe(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=Si(s,e.slice(a+1,a+n+3)),s=Si(s,[["enter",c,t]]),s=Si(s,qk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Si(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Si(s,e.slice(o+1)),s=Si(s,[["exit",l,t]]),Ja(e,a,e.length,s),e}function Hhe(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(wf(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(Bhe,c,o?c:f)(d):d===91?e.attempt(Fhe,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt($he,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function Whe(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Nn(f)?pp(e,a)(f):a(f)}function a(f){return f===41?c(f):bH(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Nn(f)?pp(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?wH(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Nn(f)?pp(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function jhe(e,t,r){const n=this;return i;function i(s){return _H.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(wf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function Uhe(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Yhe={name:"labelStartImage",tokenize:Xhe,resolveAll:Zk.resolveAll};function Xhe(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const qhe={name:"labelStartLink",tokenize:Zhe,resolveAll:Zk.resolveAll};function Zhe(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Vb={name:"lineEnding",tokenize:Khe};function Khe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$t(e,t,"linePrefix")}}const Iy={name:"thematicBreak",tokenize:Qhe};function Qhe(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||We(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),wt(u)?$t(e,s,"whitespace")(u):s(u))}}const wn={name:"list",tokenize:tpe,continuation:{tokenize:rpe},exit:ipe},Jhe={tokenize:ape,partial:!0},epe={tokenize:npe,partial:!0};function tpe(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:VT(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(Iy,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 VT(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(Kx,n.interrupt?r:c,e.attempt(Jhe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return wt(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 rpe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Kx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,$t(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!wt(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(epe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,$t(e,e.attempt(wn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function npe(e,t,r){const n=this;return $t(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 ipe(e){e.exit(this.containerState.type)}function ape(e,t,r){const n=this;return $t(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!wt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const VL={name:"setextUnderline",tokenize:spe,resolveTo:ope};function ope(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 spe(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"),wt(u)?$t(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||We(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const lpe={tokenize:upe};function upe(e){const t=this,r=e.attempt(Kx,n,e.attempt(this.parser.constructs.flowInitial,i,$t(e,e.attempt(this.parser.constructs.flow,i,e.attempt(phe,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 cpe={resolveAll:TH()},fpe=CH("string"),dpe=CH("text");function CH(e){return{tokenize:t,resolveAll:TH(e==="text"?hpe: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<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function TH(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function hpe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function ppe(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:y,enter:x,exit:S,attempt:w(_),check:w(b),interrupt:w(b,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:p,defineSkip:v,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(M){return o=Si(o,M),g(),o[o.length-1]!==null?[]:(C(t,0),u.events=qk(a,u.events,u),u.events)}function d(M,k){return gpe(h(M),k)}function h(M){return vpe(o,M)}function p(){const{line:M,column:k,offset:I,_index:R,_bufferIndex:E}=n;return{line:M,column:k,offset:I,_index:R,_bufferIndex:E}}function v(M){i[M.line]=M.column,A()}function g(){let M;for(;n._index<o.length;){const k=o[n._index];if(typeof k=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<k.length;)m(k.charCodeAt(n._bufferIndex));else m(k)}}function m(M){c=c(M)}function y(M){We(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,A()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=M}function x(M,k){const I=k||{};return I.type=M,I.start=p(),u.events.push(["enter",I,u]),s.push(I),I}function S(M){const k=s.pop();return k.end=p(),u.events.push(["exit",k,u]),k}function _(M,k){C(M,k.from)}function b(M,k){k.restore()}function w(M,k){return I;function I(R,E,N){let $,z,V,L;return Array.isArray(R)?H(R):"tokenize"in R?H([R]):G(R);function G(j){return ee;function ee(Q){const te=Q!==null&&j[Q],ae=Q!==null&&j.null,K=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return H(K)(Q)}}function H(j){return $=j,z=0,j.length===0?N:F(j[z])}function F(j){return ee;function ee(Q){return L=T(),V=j,j.partial||(u.currentConstruct=j),j.name&&u.parser.constructs.disable.null.includes(j.name)?J():j.tokenize.call(k?Object.assign(Object.create(u),k):u,l,Y,J)(Q)}}function Y(j){return M(V,L),E}function J(j){return L.restore(),++z<$.length?F($[z]):N}}}function C(M,k){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Ja(u.events,k,u.events.length-k,M.resolve(u.events.slice(k),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function T(){const M=p(),k=u.previous,I=u.currentConstruct,R=u.events.length,E=Array.from(s);return{restore:N,from:R};function N(){n=M,u.previous=k,u.currentConstruct=I,u.events.length=R,s=E,A()}}function A(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function vpe(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-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 gpe(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
144
144
  `;break}case-3:{o=`\r
145
145
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const mpe={42:wn,43:wn,45:wn,48:wn,49:wn,50:wn,51:wn,52:wn,53:wn,54:wn,55:wn,56:wn,57:wn,62:mH},ype={91:xhe},xpe={[-2]:$b,[-1]:$b,32:$b},Spe={35:The,42:Iy,45:[VL,Iy],60:Ihe,61:VL,95:Iy,96:FL,126:FL},bpe={38:xH,92:yH},_pe={[-5]:Vb,[-4]:Vb,[-3]:Vb,33:Yhe,38:xH,42:GT,60:[Zde,Nhe],91:qhe,92:[whe,yH],93:Zk,95:GT,96:uhe},wpe={null:[GT,cpe]},Cpe={null:[42,95]},Tpe={null:[]},Ape=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Cpe,contentInitial:ype,disable:Tpe,document:mpe,flow:Spe,flowInitial:xpe,insideSpan:wpe,string:bpe,text:_pe},Symbol.toStringTag,{value:"Module"}));function Mpe(e){const r=Ode([Ape,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Hde),document:i(jde),flow:i(lpe),string:i(fpe),text:i(dpe)};return n;function i(a){return o;function o(s){return ppe(n,a,s)}}}function kpe(e){for(;!SH(e););return e}const GL=/[\0\t\n\r]/g;function Ipe(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(GL.lastIndex=f,u=GL.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ppe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dpe(e){return e.replace(Ppe,Rpe)}function Rpe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return vH(r.slice(a?2:1),a?16:10)}return Xk(r)||e}const AH={}.hasOwnProperty;function Epe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Lpe(r)(kpe(Mpe(r).document().write(Ipe()(e,t,!0))))}function Lpe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(rt),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(pe),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ae),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ae,o),codeText:a(K,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ne),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(me),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(je,o),htmlFlowData:T,htmlText:a(je,o),htmlTextData:T,image:a(Ue),label:o,link:a(rt),listItem:a(st),listItemValue:d,listOrdered:a(ot,f),listUnordered:a(ot),paragraph:a(Xe),reference:F,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(pe),strong:a(Gt),thematicBreak:a(lt)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:Q,autolinkProtocol:ee,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:j,codeFenced:l(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(m),codeText:l(E),codeTextData:A,data:A,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(I),htmlFlowData:A,htmlText:l(R),htmlTextData:A,image:l($),label:V,labelText:z,lineEnding:M,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:L,resourceTitleString:G,resource:H,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:b,strong:l(),thematicBreak:l()}};MH(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(X){let ie={type:"root",children:[]};const Pe={stack:[ie],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},be=[];let he=-1;for(;++he<X.length;)if(X[he][1].type==="listOrdered"||X[he][1].type==="listUnordered")if(X[he][0]==="enter")be.push(he);else{const pt=be.pop();he=i(X,pt,he)}for(he=-1;++he<X.length;){const pt=t[X[he][0]];AH.call(pt,X[he][1].type)&&pt[X[he][1].type].call(Object.assign({sliceSerialize:X[he][2].sliceSerialize},Pe),X[he][1])}if(Pe.tokenStack.length>0){const pt=Pe.tokenStack[Pe.tokenStack.length-1];(pt[1]||HL).call(Pe,void 0,pt[0])}for(ie.position={start:Qo(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Qo(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)ie=t.transforms[he](ie)||ie;return ie}function i(X,ie,Pe){let be=ie-1,he=-1,pt=!1,Jt,_e,it,At;for(;++be<=Pe;){const de=X[be];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?he++:he--,At=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(Jt&&!At&&!he&&!it&&(it=be),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!he&&de[0]==="enter"&&de[1].type==="listItemPrefix"||he===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(Jt){let De=be;for(_e=void 0;De--;){const qe=X[De];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;_e&&(X[_e][1].type="lineEndingBlank",pt=!0),qe[1].type="lineEnding",_e=De}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}it&&(!_e||it<_e)&&(Jt._spread=!0),Jt.end=Object.assign({},_e?X[_e][1].start:de[1].end),X.splice(_e||be,0,["exit",Jt,de[2]]),be++,Pe++}if(de[1].type==="listItemPrefix"){const De={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};Jt=De,X.splice(be,0,["enter",De,de[2]]),be++,Pe++,it=void 0,At=!0}}}return X[ie][1]._spread=pt,Pe}function a(X,ie){return Pe;function Pe(be){s.call(this,X(be),be),ie&&ie.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(X,ie,Pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ie,Pe]),X.position={start:Qo(ie.start),end:void 0}}function l(X){return ie;function ie(Pe){X&&X.call(this,Pe),u.call(this,Pe)}}function u(X,ie){const Pe=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==X.type&&(ie?ie.call(this,X,be[0]):(be[1]||HL).call(this,X,be[0]));else throw new Error("Cannot close `"+X.type+"` ("+hp({start:X.start,end:X.end})+"): it’s not open");Pe.position.end=Qo(X.end)}function c(){return Ede(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(X){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function h(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=X}function p(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=X}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X.replace(/(\r?\n|\r)$/g,"")}function y(X){const ie=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=ie,Pe.identifier=wf(this.sliceSerialize(X)).toLowerCase()}function x(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.title=X}function S(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.url=X}function _(X){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Pe=this.sliceSerialize(X).length;ie.depth=Pe}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function w(X){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function T(X){const Pe=this.stack[this.stack.length-1].children;let be=Pe[Pe.length-1];(!be||be.type!=="text")&&(be=Tt(),be.position={start:Qo(X.start),end:void 0},Pe.push(be)),this.stack.push(be)}function A(X){const ie=this.stack.pop();ie.value+=this.sliceSerialize(X),ie.position.end=Qo(X.end)}function M(X){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Pe=ie.children[ie.children.length-1];Pe.position.end=Qo(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(T.call(this,X),A.call(this,X))}function k(){this.data.atHardBreak=!0}function I(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function R(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function E(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function N(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ie,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ie,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(X){const ie=this.sliceSerialize(X),Pe=this.stack[this.stack.length-2];Pe.label=Dpe(ie),Pe.identifier=wf(ie).toLowerCase()}function V(){const X=this.stack[this.stack.length-1],ie=this.resume(),Pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Pe.type==="link"){const be=X.children;Pe.children=be}else Pe.alt=ie}function L(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.url=X}function G(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.title=X}function H(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function Y(X){const ie=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=ie,Pe.identifier=wf(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function J(X){this.data.characterReferenceType=X.type}function j(X){const ie=this.sliceSerialize(X),Pe=this.data.characterReferenceType;let be;Pe?(be=vH(ie,Pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=Xk(ie);const he=this.stack.pop();he.value+=be,he.position.end=Qo(X.end)}function ee(X){A.call(this,X);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(X)}function Q(X){A.call(this,X);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(X)}function te(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function je(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function rt(){return{type:"link",title:null,url:"",children:[]}}function ot(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function st(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Xe(){return{type:"paragraph",children:[]}}function Gt(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function lt(){return{type:"thematicBreak"}}}function Qo(e){return{line:e.line,column:e.column,offset:e.offset}}function MH(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?MH(e,n):Ope(e,n)}}function Ope(e,t){let r;for(r in t)if(AH.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function HL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hp({start:t.start,end:t.end})+") is still open")}function Npe(e){const t=this;t.parser=r;function r(n){return Epe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zpe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Bpe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
@@ -224,11 +224,11 @@ PERFORMANCE OF THIS SOFTWARE.
224
224
 
225
225
  `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ie(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=_h([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new H_;m.marker=y.makeTooltipMarker("item",Gu(m.color),h);var x=ZN(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?r5(_?U({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ie(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(oe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ae(l),l.content=Tn(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=r.positionDefault,p=_h(f,this._tooltipModel,h?{position:h}:null),v=p.get("content"),g=Math.random()+"",m=new H_;this._showOrMove(p,function(){var y=Ae(p.get("formatterParams")||{});this._showTooltipContent(p,v,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=yS(m.axisValue,h,g)),h=D8(h,i,!0)}else if(Se(d)){var x=ce(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Se(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=re(n[0],u),a=re(n[1],c);else if(Ce(n)){var v=n;v.width=f[0],v.height=f[1];var g=vr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=XRe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=URe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=f4(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=f4(h)?f[1]/2:h==="bottom"?f[1]:0),qU(r)){var m=YRe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ye.node||!n.getDom()||(wv(this,"_updatePosition"),this._tooltipContent.dispose(),SA("itemTooltip",n))},t.type="tooltip",t}(Vt);function _h(e,t,r){var n=t.ecModel,i;r?(i=new ht(r,n,n),i=new ht(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ht&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new ht(o,i,n)))}return i}function c4(e,t){return e.dispatchAction||ce(t.dispatchAction,t)}function URe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function YRe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function XRe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function f4(e){return e==="center"||e==="middle"}function qRe(e,t,r){var n=yI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=cg(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function ZRe(e){Ge(kg),e.registerComponentModel(RRe),e.registerComponentView(jRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ir),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ir)}var KRe=["rect","polygon","keep","clear"];function QRe(e,t){var r=St(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),JRe(s),t&&!s.length&&s.push.apply(s,KRe)}}function JRe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var d4=D;function h4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function AA(e,t,r){var n={};return d4(t,function(a){var o=n[a]=i();d4(e[a],function(s,l){if(br.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new br(u),l==="opacity"&&(u=Ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new br(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function JU(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&h4(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&h4(t[i])?e[i]=Ae(t[i]):delete e[i]})}function eEe(e,t,r,n,i,a){var o={};D(e,function(f){var d=br.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return XI(r,s,f)}function u(f,d){S9(r,s,f,d)}r.each(c);function c(f,d){s=f;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;m<y;m++){var x=g[m];v[x]&&v[x].applyVisual(f,l,u)}}}function tEe(e,t,r,n){var i={};return D(e,function(a){var o=br.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(_){return XI(s,f,_)}function c(_,b){S9(s,f,_,b)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=n!=null?d.get(l,f):f,v=r(p),g=t[v],m=i[v],y=0,x=m.length;y<x;y++){var S=m[y];g[S]&&g[S].applyVisual(p,u,c)}}}}}function rEe(e){var t=e.brushType,r={point:function(n){return p4[t].point(n,r,e)},rect:function(n){return p4[t].rect(n,r,e)}};return r}var p4={lineX:v4(0),lineY:v4(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Kl(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Kl(n,i,a)||Kl(n,i+o,a)||Kl(n,i,a+s)||Kl(n,i+o,a+s)||Ne.create(e).contain(l[0],l[1])||$h(i,a,i+o,a,n)||$h(i,a,i,a+s,n)||$h(i+o,a,i+o,a+s,n)||$h(i,a+s,i+o,a+s,n))return!0}}};function v4(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return wh(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),wh(s[0],o)||wh(s[1],o)||wh(o[0],s)||wh(o[1],s)}}}}function wh(e,t){return t[0]<=e&&e<=t[1]}var g4=["inBrush","outOfBrush"],aC="__ecBrushSelect",MA="__ecInBrushSelectEvent";function eY(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new rD(t.option,e);r.setInputRanges(t.areas,e)})}function nEe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),eY(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ae(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=Z(o.areas,function(_){var b=sEe[_.brushType],w=we({boundingRect:b?b(_):void 0},_);return w.selectors=rEe(w),w}),g=AA(o.option,g4,function(_){_.mappingMethod="fixed"});q(c)&&D(c,function(_){f[_]=1});function m(_){return c==="all"||!!f[_]}function y(_){return!!_.length}e.eachSeries(function(_,b){var w=h[b]=[];_.subType==="parallel"?x(_,b):S(_,b,w)});function x(_,b){var w=_.coordinateSystem;p=p||w.hasAxisBrushed(),m(b)&&w.eachActiveState(_.getData(),function(C,T){C==="active"&&(d[T]=1)})}function S(_,b,w){if(!(!_.brushSelector||oEe(o,b))&&(D(v,function(T){o.brushTargetManager.controlSeries(T,_,e)&&w.push(T),p=p||y(w)}),m(b)&&y(w))){var C=_.getData();C.each(function(T){m4(_,w,C,T)&&(d[T]=1)})}}e.eachSeries(function(_,b){var w={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(w);var C=h[b],T=_.getData(),A=m(b)?function(M){return d[M]?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return m4(_,C,T,M)?(w.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(b)?p:y(C))&&eEe(g4,g,T,A)})}),iEe(t,i,a,n,r)}function iEe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[MA]){a[aC]||(a[aC]=aEe);var o=Td(a,aC,r,t);o(e,n)}}}function aEe(e,t){if(!e.isDisposed()){var r=e.getZr();r[MA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[MA]=!1}}function m4(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function oEe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(q(r)?Ve(r,t)<0:t!==r)}var sEe={rect:function(e){return y4(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&y4(t)}};function y4(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var lEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new DP(n.getZr())).on("brush",ce(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){eY(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ae(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ae(i),$from:n})},t.type="brush",t}(Vt),uEe="#ddd",cEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&JU(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:uEe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return x4(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=x4(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ze);function x4(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new ht(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var fEe=["rect","polygon","lineX","lineY","keep","clear"],dEe=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:fEe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(_i);function hEe(e){e.registerComponentView(lEe),e.registerComponentModel(cEe),e.registerPreprocessor(QRe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,nEe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ir),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ir),Uc("brush",dEe)}var pEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ze),vEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Re(r.get("textBaseline"),r.get("textVerticalAlign")),c=new tt({style:Dt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new tt({style:Dt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){r1(p,"_"+r.get("target"))}),v&&h.on("click",function(){r1(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=vr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Qe({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Vt);function gEe(e){e.registerComponentModel(pEe),e.registerComponentView(vEe)}var S4=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=pr(vd(u),""),d;Ce(u)?(d=Ae(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new fn([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ze),tY=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=ul(S4.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(S4);cr(tY,TS.prototype);var mEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Vt),yEe=function(e){W(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ma),oC=Math.PI,b4=Je(),xEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return wr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=bEe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":oe(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:oC/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*oC/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),T=0,A=f;_==="left"||_==="bottom"?(b&&(y=[0,0],T+=g),w&&(x=[T,0],T+=g),C&&(S=[A-p,0],A-=g)):(b&&(y=[A-p,0],A-=g),w&&(x=[0,0],T+=g),C&&(S=[A-p,0],A-=g));var M=[T,A];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Qn(),l=o.x,u=o.y+o.height;to(s,s,[-l,-u]),Ju(s,s,-oC/2),to(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=SEe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new yEe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new ke;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new xr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:U({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new xr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:we({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ce(o._changeTimeline,o,u.value)},g=_4(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),bu(g);var m=Ie(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new tt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ce(o._changeTimeline,o,f),silent:!1,style:Dt(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=Dt(p),m.ensureState("progress").style=Dt(v),n.add(m),bu(m),b4(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ce(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ce(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ce(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=ha(Re(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=_Ee(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),bu(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ce(u._handlePointerDrag,u),f.ondragend=ce(u._handlePointerDragend,u),w4(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){w4(f,u._progressLine,s,i,a)}};this._currentPointer=_4(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Ai(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return oa(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",b4(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(mEe);function SEe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new DS({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new nP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Vo}}function bEe(e,t){return vr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function _Ee(e,t,r,n){var i=n.style,a=vg(e.get(["controlStyle",t]),n||{},new Ne(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function _4(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=ur(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Oe({rectHover:!0,z2:100},n,!0);var u=Ad(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=tc(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function w4(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function wEe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),we({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function CEe(e){var t=e&&e.timeline;q(t)||(t=t?[t]:[]),D(t,function(r){r&&TEe(r)})}function TEe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),C4(e),eu(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});eu(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!eu(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(i){Ce(i)&&!q(i)&&(!eu(i,"value")&&eu(i,"name")&&(i.value=i.name),C4(i))})}function C4(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};D(n,function(o,s){!a[s]&&!eu(i,s)&&(i[s]=o)}),r.label&&!eu(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function eu(e,t){return e.hasOwnProperty(t)}function AEe(e){e.registerComponentModel(tY),e.registerComponentView(xEe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),wEe(e),e.registerPreprocessor(CEe)}function aD(e,t){if(!e)return!1;for(var r=q(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function sy(e){Bu(e,"label",["show"])}var ly=Je(),Ho=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ye.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ly(s)[o];if(!l||!l.data){ly(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&sy(l),D(l.data,function(c){c instanceof Array?(sy(c[0]),sy(c[1])):sy(c)}),u=this.createMarkerModelFromSeries(l,this,n),U(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ly(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return wr("section",{header:this.name,blocks:[wr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=TS.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return ly(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Ze);cr(Ho,TS.prototype);var MEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ho);function kA(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function kEe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function uy(e,t,r,n,i,a){var o=[],s=Qs(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=oD(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),d=Ba(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var sC={min:Ee(uy,"min"),max:Ee(uy,"max"),average:Ee(uy,"average"),median:Ee(uy,"median")};function zv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!kEe(t)&&!q(t.coord)&&q(i)){var a=rY(t,r,n,e);if(t=Ae(t),t.type&&sC[t.type]&&a.baseAxis&&a.valueAxis){var o=Ve(i,a.baseAxis.dim),s=Ve(i,a.valueAxis.dim),l=sC[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)sC[u[c]]&&(u[c]=oD(r,r.mapDimension(i[c]),u[c]));return t}}function rY(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(IEe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function IEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Bv(e,t){return e&&e.containData&&t.coord&&!kA(t)?e.containData(t.coord):!0}function PEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!kA(t)&&!kA(r)?e.containZone(t.coord,r.coord):!0}function nY(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Vs(o,t[a])}:function(r,n,i,a){return Vs(r.value,t[a])}}function oD(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var lC=Je(),sD=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){lC(s).keep=!1}),n.eachSeries(function(s){var l=Ho.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!lC(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){lC(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=Ho.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?UW(l):TI(l))})}})},t.type="marker",t}(Vt);function T4(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=re(a.get("x"),r.getWidth()),l=re(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var DEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ho.getMarkerModelFromSeries(a,"markPoint");o&&(T4(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new bg),f=REe(o,r,n);n.setData(f),T4(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Se(p)||Se(v)||Se(g)||Se(m)){var x=n.getRawValue(d),S=n.getDataParams(d);Se(p)&&(p=p(x,S)),Se(v)&&(v=v(x,S)),Se(g)&&(g=g(x,S)),Se(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=mg(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(sD);function REe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return U(U({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new fn(n,r),a=Z(r.get("data"),Ee(zv,t));e&&(a=yt(a,Ee(Bv,e)));var o=nY(!!e,n);return i.initData(a,null,o),i}function EEe(e){e.registerComponentModel(MEe),e.registerComponentView(DEe),e.registerPreprocessor(function(t){aD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var LEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ho),cy=Je(),OEe=function(e,t,r,n){var i=e.getData(),a;if(q(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Mr(n.yAxis,n.xAxis);else{var u=rY(n,i,t,e);s=u.valueAxis;var c=q9(i,u.valueDataDim);l=oD(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Ae(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&nt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[zv(e,a[0]),zv(e,a[1]),U({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function k1(e){return!isNaN(e)&&!isFinite(e)}function A4(e,t,r,n){var i=1-e,a=n.dimensions[e];return k1(t[i])&&k1(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function NEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(A4(1,r,n,e)||A4(0,r,n,e)))return!0}return Bv(e,t[0])&&Bv(e,t[1])}function uC(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=re(o.get("x"),i.getWidth()),u=re(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(nc(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;k1(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):k1(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var zEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ho.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=cy(o).from,u=cy(o).to;l.each(function(c){uC(l,c,!0,a,i),uC(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new PP);this.group.add(c.group);var f=BEe(o,r,n),d=f.from,h=f.to,p=f.line;cy(n).from=d,cy(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);uC(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=mg(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Re(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Re(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Re(w.get("symbolSize"),g[b?0:1]),symbol:Re(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(sD);function BEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return U(U({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new fn(n,r),a=new fn(n,r),o=new fn([],r),s=Z(r.get("data"),Ee(OEe,t,e,r));e&&(s=yt(s,Ee(NEe,e)));var l=nY(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function FEe(e){e.registerComponentModel(LEe),e.registerComponentView(zEe),e.registerPreprocessor(function(t){aD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var $Ee=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ho),fy=Je(),VEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=zv(e,i),s=zv(e,a),l=o.coord,u=s.coord;l[0]=Mr(l[0],-1/0),l[1]=Mr(l[1],-1/0),u[0]=Mr(u[0],1/0),u[1]=Mr(u[1],1/0);var c=sI([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function I1(e){return!isNaN(e)&&!isFinite(e)}function M4(e,t,r,n){var i=1-e;return I1(t[i])&&I1(r[i])}function GEe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return nc(e,"cartesian2d")?r&&n&&(M4(1,r,n)||M4(0,r,n))?!0:PEe(e,i,a):Bv(e,i)||Bv(e,a)}function k4(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=re(o.get(r[0]),i.getWidth()),u=re(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(nc(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);I1(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):I1(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var I4=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],HEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ho.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(I4,function(f){return k4(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ke});this.group.add(c.group),this.markKeep(c);var f=WEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(I4,function(C){return k4(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];Ai(y),Ai(x);var S=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),_=!S;f.setItemLayout(d,{points:h,allClipped:_});var b=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=mg(l,"color");b.fill||(b.fill=w,oe(b.fill)&&(b.fill=W0(b.fill,.4))),b.stroke||(b.stroke=w),f.setItemVisual(d,"style",b)}),f.diff(fy(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new gn({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=fy(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?at(p,{shape:{points:v.points}},n,d):p=new gn({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=fy(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Vr(d,_r(p),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:oe(v.fill)?W0(v.fill,1):"#000"}),$r(d,p),Yt(d,null,null,p.get(["emphasis","disabled"])),Ie(d).dataModel=n}),fy(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(sD);function WEe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=Z(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return U(U({},f),{name:u,ordinalMeta:null})});i=Z(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new fn(i,r)}else i=[{name:"value",type:"float"}],n=new fn(i,r);var s=Z(r.get("data"),Ee(VEe,t,e,r));e&&(s=yt(s,Ee(GEe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return Vs(h,i[d])}:function(u,c,f,d){return Vs(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function jEe(e){e.registerComponentModel($Ee),e.registerComponentView(HEe),e.registerPreprocessor(function(t){aD(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var UEe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},IA=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),q(n)&&D(n,function(a,o){oe(a)&&(a={type:a}),n[o]=Oe(a,UEe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&mI(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ve(),s=Z(a,function(l){return(oe(l)||nt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ht(l,this,this.ecModel))},this);this._data=yt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;D(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ve(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Ze),Oc=Ee,PA=D,dy=ke,iY=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new dy),this.group.add(this._selectorGroup=new dy),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=vr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=vr(we({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UU(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),PA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
226
226
  `)){var g=new dy;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",Oc(P4,v,null,a,d)).on("mouseover",Oc(DA,m.name,null,a,d)).on("mouseout",Oc(RA,m.name,null,a,d)),i.ssr&&b.eachChild(function(w){var C=Ie(w);C.seriesIndex=m.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var T=C.indexOfName(v),A=C.getItemVisual(T,"style"),M=C.getItemVisual(T,"legendIcon"),k=Jn(A.fill);k&&k[3]===0&&(k[3]=.2,A=U(U({},A),{fill:Ao(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},A,M,f,a);I.on("click",Oc(P4,null,v,a,d)).on("mouseover",Oc(DA,null,v,a,d)).on("mouseout",Oc(RA,null,v,a,d)),i.ssr&&I.eachChild(function(R){var E=Ie(R);E.seriesIndex=w.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();PA(r,function(u){var c=u.type,f=new tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Vr(f,{normal:d,emphasis:h},{defaultText:u.title}),bu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=YEe(c,a,l,u,h,g,d),_=new dy,b=a.getModel("textStyle");if(Se(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(XEe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,T=s,A=o.get("formatter"),M=n;oe(A)&&A?M=A.replace("{name}",n??""):Se(A)&&(M=A(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new tt({style:Dt(b,{text:M,x:C,y:v/2,fill:k,align:T,verticalAlign:"middle"},{inheritColor:k})}));var I=new Qe({shape:_.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&yd({el:I,componentModel:o,itemName:n,itemTooltipOption:R.option}),_.add(I),_.eachChild(function(E){E.silent=!0}),I.silent=!f,this.getContentGroup().add(_),bu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wu("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Vt);function YEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),PA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Jf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function XEe(e){var t=e.icon||"roundRect",r=ur(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function P4(e,t,r,n){RA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),DA(e,t,r,n)}function aY(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function DA(e,t,r,n){aY(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function RA(e,t,r,n){aY(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function qEe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Ch(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
227
- `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ZEe(e){e.registerAction("legendToggleSelect","legendselectchanged",Ee(Ch,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ee(Ch,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ee(Ch,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ee(Ch,"select")),e.registerAction("legendUnSelect","legendunselected",Ee(Ch,"unSelect"))}function oY(e){e.registerComponentModel(IA),e.registerComponentView(iY),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,qEe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ZEe(e)}var KEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=_d(r);e.prototype.init.call(this,r,n,i),D4(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),D4(this,this.option,r)},t.type="legend.scroll",t.defaultOption=ul(IA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(IA);function D4(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ks(t,r,{type:"box",ignoreSize:!!i})}var R4=ke,cC=["width","height"],fC=["x","y"],QEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new R4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new R4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=q(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new tt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=vg(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ce(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=cC[u],f=fC[u],d=cC[1-u],h=fC[1-u];o&&wu("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Ae(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[f]-=x}y[c]+=v[c]+p,g[1-u]+=y[h]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[h]=Math.min(y[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;wu(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),wu("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Re(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=cC[o],l=fC[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function _(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(iY);function JEe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function eLe(e){Ge(oY),e.registerComponentModel(KEe),e.registerComponentView(QEe),JEe(e)}function tLe(e){Ge(oY),Ge(eLe)}var rLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=ul(Nv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Nv),lD=Je();function nLe(e,t,r){lD(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function iLe(e,t){for(var r=lD(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||sY(r,o))}}}function sY(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function aLe(e,t){var r={model:t,containsPoint:Ee(sLe,t),dispatchAction:Ee(oLe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Ag(e.getZr());return D(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function oLe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sLe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function lLe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function uLe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=lD(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=HU(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,aLe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){sY(i,a);return}var c=lLe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Td(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var cLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),nLe(i,r,{pan:ce(dC.pan,this),zoom:ce(dC.zoom,this),scrollMove:ce(dC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){iLe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(JP),dC={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=hC[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ac(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:E4(function(e,t,r,n,i,a){var o=hC[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:E4(function(e,t,r,n,i,a){var o=hC[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function E4(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(ac(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var hC={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function lY(e){eD(e),e.registerComponentModel(rLe),e.registerComponentView(cLe),uLe(e)}var fLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ul(Nv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Nv),Th=Qe,L4=7,dLe=1,pC=30,hLe=7,Ah="horizontal",O4="vertical",pLe=5,vLe=["line","bar","candlestick","scatter"],gLe={easing:"cubicOut",duration:100,delay:0},mLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Td(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wv(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ke;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?hLe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ah?{right:s.width-o.x-o.width,top:s.height-pC-L4-a,width:o.width,height:pC}:{right:L4,top:o.y,width:pC,height:o.height},u=_d(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=vr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===O4&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ah&&!o?{scaleY:l?1:-1,scaleX:1}:i===Ah&&o?{scaleY:l?1:-1,scaleX:-1}:i===O4&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(T,A){if(x>0&&A%x){y+=m;return}var M=T==null||isNaN(T)||T==="",k=M?0:gt(T,f,h,!0);M&&!S&&A?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(T){var A=_.getModel(T?"selectedDataBackground":"dataBackground"),M=new ke,k=new gn({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Sn({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&Ve(vLe,u.get("type"))<0)){var c=a.getComponent(Is(o),s).axis,f=yLe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Th({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dLe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!a1[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=ur(S,-1,0,2,2,null,!0);_.attr({cursor:N4(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=re(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),bu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var T=l.getModel("textStyle");r.add(a[x]=new tt({silent:!0,invisible:!0,style:Dt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=d;if(f){var p=re(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=ur(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:N4(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[gt(r[0],[0,100],n,!0),gt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ac(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?gt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ai([gt(a[0],o,l,!0),gt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Ai(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Qe,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ai(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=_u(i.handles[p].parent,this.group),g=gS(p===0?"right":"left",v),m=this._handleWidth/2+pLe,y=oa([d[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===Ah?"middle":g,align:o===Ah?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(a)?a(r,s):oe(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,No(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=oa([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ai([gt(i.x,o,s,!0),gt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(No(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?gLe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=HU(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(JP);function yLe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function N4(e){return e==="vertical"?"ns-resize":"ew-resize"}function uY(e){e.registerComponentModel(fLe),e.registerComponentView(mLe),eD(e)}function xLe(e){Ge(lY),Ge(uY)}var cY={get:function(e,t,r){var n=Ae((SLe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},SLe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},z4=br.mapVisual,bLe=br.eachVisual,_Le=q,B4=D,wLe=Ai,CLe=gt,P1=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&JU(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=AA(this.option.controller,n,r),this.targetVisuals=AA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=St(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],q(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=wLe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){_Le(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},B4(p,function(g,m){if(br.isValidType(m)){var y=cY.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";B4(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Ae(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Ae(h)||(s?y[0]:[y[0],y[0]])),x.symbol=z4(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;bLe(S,function(b){b>_&&(_=b)}),x.symbolSize=z4(S,function(b){return CLe(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ze),F4=[20,140],TLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=F4[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=F4[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Ai((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=$4(this,"outOfRange",this.getExtent()),i=$4(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ul(P1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(P1);function $4(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var fY=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=bd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Qe({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=br.prepareVisualTypes(f);return D(d,function(h){var p=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),br.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;wS(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(Vt),V4=[["left","right","width"],["top","bottom","height"]];function dY(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=V4[o],l=[0,null,10],u={},c=0;c<3;c++)u[V4[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=vr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function Ky(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Aa=gt,ALe=D,G4=Math.min,vC=Math.max,MLe=12,kLe=6,ILe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=ce(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ce(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new tt({style:Dt(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=dY(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new ke;u.add(c),c.add(i.outOfRange=H4()),c.add(i.inRange=H4(null,s?j4(this._orient):null,ce(this._dragHandle,this,"all",!1),ce(this._dragHandle,this,"all",!0))),c.setClipPath(new Qe({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=vC(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=ce(this._dragHandle,this,i,!1),u=ce(this._dragHandle,this,i,!0),c=ha(r.get("handleSize"),a[0]),f=ur(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=j4(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){No(m.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),lu(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,p=new tt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){No(m.event)},ondragend:u,style:Dt(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=ha(r.get("indicatorSize"),i[0]),l=ur(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Pr){var c=l.style;l.useStyle(U({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new tt({silent:!0,invisible:!0,style:Dt(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:kLe)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():W4(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Aa(n[0],i,a,!0),Aa(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];ac(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Aa(a[0],o,s,!0),Aa(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new hg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new ke(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();ALe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Aa(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=oa(i.handleLabelPoints[c],_u(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=Aa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=oa(c.indicatorLabelPoint,_u(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,T),x.animateTo(C,T)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=G4(vC(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=G4(vC(o[0],r),o[1]);var l=PLe(i,s,o),u=[r-l,r+l],c=Aa(r,o,s,!0),f=[Aa(u[0],o,s,!0),Aa(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||W4(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Pye(d,h);this._dispatchHighDown("downplay",Ky(p[0],i)),this._dispatchHighDown("highlight",Ky(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(cu(r.target,function(l){var u=Ie(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ky(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=_u(n,a?null:this.group);return q(r)?oa(r,o,i):gS(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(fY);function H4(e,t,r,n){return new gn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){No(i.event)},ondragend:n})}function PLe(e,t,r){var n=MLe/2,i=e.get("hoverLinkDataSize");return i&&(n=Aa(i,t,r,!0)/2),n}function W4(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function j4(e){return e==="vertical"?"ns-resize":"ew-resize"}var DLe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},RLe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},ELe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(tEe(n.stateList,n.targetVisuals,ce(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(ce(LLe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function LLe(e,t,r,n){for(var i=t.targetVisuals[n],a=br.prepareVisualTypes(i),o={color:mg(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var U4=D;function OLe(e){var t=e&&e.visualMap;q(t)||(t=t?[t]:[]),U4(t,function(r){if(r){Nc(r,"splitList")&&!Nc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&q(n)&&U4(n,function(i){Ce(i)&&(Nc(i,"start")&&!Nc(i,"min")&&(i.min=i.start),Nc(i,"end")&&!Nc(i,"max")&&(i.max=i.end))})}})}function Nc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Y4=!1;function hY(e){Y4||(Y4=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(DLe,RLe),D(ELe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OLe))}function pY(e){e.registerComponentModel(TLe),e.registerComponentView(ILe),hY(e)}var NLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],zLe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ae(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Ae(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=br.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=cY.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ae(r)},t.prototype.getValueState=function(r){var n=br.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=br.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=ul(P1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(P1),zLe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),GO(e),D(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),X4(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){Ce(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=br.retrieveVisuals(r),e.push(i)},this),X4(t,e),GO(e),D(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function X4(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var BLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Mr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new ke;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),wu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ky(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return dY(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new ke,l=this.visualMapModel.textStyleModel;s.add(new tt({style:Dt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(ur(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ae(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(fY);function vY(e){e.registerComponentModel(NLe),e.registerComponentView(BLe),hY(e)}function FLe(e){Ge(pY),Ge(vY)}var $Le={label:{enabled:!0},decal:{show:!1}},q4=Je(),VLe={};function GLe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ae($Le);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),q4(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=R2(d.ecModel,d.name,VLe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=q4(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=R2(d.ecModel,w,g,m),T=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(T,C))})}function S(_,b){var w=_?U(U({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=we(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var x=[],S=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,T){if(T<v){var A=void 0,M=C.get("name"),k=M?"withName":"withoutName";A=d>1?f.get(["series","multiple",k]):f.get(["series","single",k]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var R=f.get(["data","partialData"]);A+=o(R,{displayCnt:h})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),N=f.get(["data","separator","end"]),$=[],z=0;z<I.count();z++)if(z<h){var V=I.getName(z),L=I.getValues(z),G=f.get(["data",V?"withName":"withoutName"]);$.push(o(G,{name:V,value:L.join(E)}))}A+=$.join(E)+N,x.push(A)}});var _=f.getModel(["series","multiple","separator"]),b=_.get("middle"),w=_.get("end");g+=x.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!oe(u))return u;var f=u;return D(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function HLe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function WLe(e){e.registerPreprocessor(HLe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,GLe)}var Z4={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jLe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Zge(t)?t:null;if(r==null){var n="";ft(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),ULe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),YLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),XLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),qLe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),ZLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function uD(e,t){if(e===!0||e===!1){var r=new ULe;return r.value=e,r}var n="";return gY(e)||ft(n),e.and?K4("and",e,t):e.or?K4("or",e,t):e.not?KLe(e,t):QLe(e,t)}function K4(e,t,r){var n=t[e],i="";q(n)||ft(i),n.length||ft(i);var a=e==="and"?new YLe:new XLe;return a.children=Z(n,function(o){return uD(o,r)}),a.children.length||ft(i),a}function KLe(e,t){var r=e.not,n="";gY(r)||ft(n);var i=new qLe;return i.child=uD(r,t),i.child||ft(n),i}function QLe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Ke(e),o=e.parser,s=o?K8(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=fe(Z4,u)?Z4[u]:u,f=e[u],d=s?s(f):f,h=zxe(c,d)||c==="reg"&&new jLe(d);h||ft(r),i.push(h)}}i.length||ft(r);var p=new ZLe;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function gY(e){return Ce(e)&&!Jr(e)}var JLe=function(){function e(t,r){this._cond=uD(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function eOe(e,t){return new JLe(e,t)}var tOe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=eOe(e.config,{valueGetterAttrMap:ve({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;fe(s,"dimension")||ft(l);var c=t.getDimensionInfo(u);return c||ft(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},rOe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=St(r);i.length||ft(n);var a=[];D(i,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&ft(n),d!=="asc"&&d!=="desc"&&ft(n),p&&p!=="min"&&p!=="max"){var v="";ft(v)}if(d!=="asc"&&d!=="desc"){var g="";ft(g)}var m=t.getDimensionInfo(f);m||ft(n);var y=h?K8(h):null;h&&!y&&ft(n),a.push({dimIdx:m.index,parser:y,comparator:new J8(d,p)})});var o=t.sourceFormat;o!==en&&o!==Vi&&ft(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function nOe(e){e.registerTransform(tOe),e.registerTransform(rOe)}var iOe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new n9(this),e5(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),e5(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:qa},t}(Ze),aOe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Vt);function oOe(e){e.registerComponentModel(iOe),e.registerComponentView(aOe)}var Ca=io.CMD;function df(e,t){return Math.abs(e-t)<1e-5}function EA(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(I,R){i&&i.length>2&&n.push(i),i=[I,R]}function c(I,R,E,N){df(I,E)&&df(R,N)||i.push(I,R,E,N,E,N)}function f(I,R,E,N,$,z){var V=Math.abs(R-I),L=Math.tan(V/4)*4/3,G=R<I?-1:1,H=Math.cos(I),F=Math.sin(I),Y=Math.cos(R),J=Math.sin(R),j=H*$+E,ee=F*z+N,Q=Y*$+E,te=J*z+N,ae=$*L*G,K=z*L*G;i.push(j-ae*F,ee+K*H,Q+ae*J,te-K*Y,Q,te)}for(var d,h,p,v,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===Ca.L||m===Ca.C||m===Ca.Q)&&(i=[s,l])),m){case Ca.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Ca.L:d=t[g++],h=t[g++],c(a,o,d,h),a=d,o=h;break;case Ca.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ca.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(d-a),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),a=p,o=v;break;case Ca.A:var x=t[g++],S=t[g++],_=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var T=!t[g++];d=Math.cos(w)*_+x,h=Math.sin(w)*b+S,y?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(C)*_+x,o=Math.sin(C)*b+S;for(var A=(T?-1:1)*Math.PI/2,M=w;T?M>C:M<C;M+=A){var k=T?Math.max(M+A,C):Math.min(M+A,C);f(M,k,x,S,_,b)}break;case Ca.R:s=a=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Ca.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function LA(e,t,r,n,i,a,o,s,l,u){if(df(e,r)&&df(t,n)&&df(i,o)&&df(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x<f&&S<f){l.push(o,s);return}var _=d*v+h*g,b=-d*m-h*y,w=x-_*_,C=S-b*b;if(w<f&&_>=0&&C<f&&b>=0){l.push(o,s);return}var T=[],A=[];qs(e,r,i,o,.5,T),qs(t,n,a,s,.5,A),LA(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),LA(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function sOe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],p=a[u++],v=a[u++];LA(s,l,c,f,d,h,p,v,o,t),s=p,l=v}n.push(o)}return n}function mY(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Q4(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=mY([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=a+d*h,g.endAngle=a+d*(h+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function lOe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=mY([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function J4(e,t,r,n){return e*n-r*t}function uOe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=J4(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-a,v=J4(h,p,c,f)/d;return v<0||v>1?null:new Le(v*l+e,v*u+t)}function cOe(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function zc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function fOe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=uOe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:cOe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],a=u.idx+1;a<=c.idx;a++)zc(p,e[a].slice());zc(p,h),zc(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)zc(v,e[a%n].slice());return zc(v,d),zc(v,h),[{points:p},{points:v}]}function eF(e){var t=e.points,r=[],n=[];cS(t,r,n);var i=new Ne(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Le,c=new Le;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),fOe(t,u,c)}function D1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);D1(e,a[0],i,n),D1(e,a[1],r-i,n)}return n}function dOe(e,t){for(var r=[],n=0;n<t;n++)r.push(MI(e));return r}function hOe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function pOe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function vOe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":lOe(n,t,r),i=Qe;break;case"sector":Q4(n,t,r),i=vn;break;case"circle":Q4({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=vn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(sOe(e.getUpdatedPathProxy(),o),function(m){return pOe(m)}),l=s.length;if(l===0)D1(eF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Z(s,function(m){var y=[],x=[];cS(m,y,x);var S=(x[1]-y[1])*(x[0]-y[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(D1(eF,{points:h.poly},p,r),d-=p)}}i=gn;break}if(!i)return dOe(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),hOe(e,g),v.push(g)}return v}function gOe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],y=o[h++],x=o[h++],S=o[h++],_=o[h++];if(d<=0){f.push(g,m,y,x,S,_);continue}for(var b=Math.min(d,c-1)+1,w=1;w<=b;w++){var C=w/b;qs(p,g,y,S,C,i),qs(v,m,x,_,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}d-=b-1}return o===e?[f,t]:[e,f]}function tF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function mOe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=gOe(l,u),c=r[0],f=r[1],n=c,i=f):(f=tF(i||l,l),c=l):(c=tF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function rF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function yOe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-p,x=m-v;f+=y*y+x*x}f<a&&(a=f,o=u)}return o}function xOe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function SOe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=rF(s),c=rF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;a&&(s=xOe(s));for(var m=yOe(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var S=(m+x)%y+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),T=0,x=0;x<s.length;x+=2){var A=f[x],M=f[x+1],k=l[x]-c[0],I=l[x+1]-c[1],R=k*C-I*w,E=k*w+I*C;v[x]=R,v[x+1]=E;var N=R-A,$=E-M;T+=N*N+$*$}if(T<p){p=T,h=b;for(var z=0;z<v.length;z++)d[z]=v[z]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function R1(e){return e.__isCombineMorphing}var yY="__mOriginal_";function E1(e,t,r){var n=yY+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Ip(e,t){var r=yY+t;e[r]&&(e[t]=e[r],e[r]=null)}function nF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function xY(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=mOe(EA(r),EA(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&nF(a,s),l&&nF(o,l),E1(t,"updateTransform",{replace:u}),t.transform=null;var c=SOe(a,o,10,Math.PI),f=[];E1(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,S=m.rotation*h,_=m.fromCp,b=m.toCp,w=Math.sin(S),C=Math.cos(S);Ey(v,_,b,h);for(var T=0;T<y.length;T+=2){var A=y[T],M=y[T+1],k=x[T],I=x[T+1],R=A*p+k*h,E=M*p+I*h;f[T]=R*C-E*w+v[0],f[T+1]=R*w+E*C+v[1]}var N=f[0],$=f[1];d.moveTo(N,$);for(var T=2;T<y.length;){var k=f[T++],I=f[T++],z=f[T++],V=f[T++],L=f[T++],G=f[T++];N===k&&$===I&&z===L&&V===G?d.lineTo(L,G):d.bezierCurveTo(k,I,z,V,L,G),N=L,$=G}}}})}function cD(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;xY(e,t),t.__morphT=0;function a(){Ip(t,"buildPath"),Ip(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},we({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function bOe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function L1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:bOe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function SY(e){return vOe(e.path,e.count)}function OA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _Oe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];R1(w)?i(w.childrenRef()):w instanceof He&&n.push(w)}}i(e);var a=n.length;if(!a)return OA();var o=r.dividePath||SY,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),OA();n=L1(n),s=L1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new bo,d=0;d<a;d++){var h=n[d],p=s[d];p.parent=t,p.copyTransform(f),c||xY(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}E1(t,"addSelfToZr",{after:function(_){v(_)}}),E1(t,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ip(t,"addSelfToZr"),Ip(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?we({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:x},r):r;cD(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},we({during:function(_){for(var b=0;b<m;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<e.length;_++)Ip(e[_],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function wOe(e,t,r){var n=t.length,i=[],a=r.dividePath||SY;function o(h){for(var p=0;p<h.length;p++){var v=h[p];R1(v)?o(v.childrenRef()):v instanceof He&&i.push(v)}}if(R1(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(MI(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),OA()}i=L1(i),t=L1(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?we({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;cD(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function iF(e){return q(e[0])}function aF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var COe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=MI(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function gC(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=md("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;iF(e)&&(u=e,c=t),iF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,T=y?w:b[0];if(R1(C))f({many:[C],one:T},!0,x,S,!0);else{var A=s?we({delay:s(x,S)},l):l;cD(C,T,A),a(C,T,C,T,A)}}else for(var M=we({dividePath:COe[r],individualDelay:s&&function($,z,V,L){return s($+x,S)}},l),k=y?_Oe(b,w,M):wOe(w,b,M),I=k.fromIndividuals,R=k.toIndividuals,E=I.length,N=0;N<E;N++){var A=s?we({delay:s(N,E)},l):l;a(I[N],R[N],y?b[N]:m.one,y?m.one:b[N],A)}}for(var d=u?u===e:e.length>t.length,h=u?aF(c,u):aF(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Yl(e){if(!e)return[];if(q(e)){for(var t=[],r=0;r<e.length;r++)t.push(Yl(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof He&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var bY=1e4,TOe=0,oF=1,sF=2,AOe=Je();function MOe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function kOe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function lF(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=MOe(e,i);if(a){var o=kOe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function uF(e){var t=[];return D(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>bY))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:lF(n,o,i,!1),childGroupId:lF(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function mC(e,t,r){e.traverse(function(n){n instanceof He&&zt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function yC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Bc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function IOe(e,t,r){var n=md("update",r,t);n&&e.traverse(function(i){if(i instanceof Li){var a=S1e(i);a&&i.animateFrom({style:a},n)}})}function POe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function _Y(e,t,r){var n=uF(e),i=uF(t);function a(x,S,_,b,w){(_||x)&&S.animateFrom({style:_&&_!==x?U(U({},_.style),x.style):x.style},w)}var o=!1,s=TOe,l=ve(),u=ve();n.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=oF;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=sF;break}}function h(x,S){return function(_){var b=_.data,w=_.dataIndex;return S?b.getId(w):x?s===oF?_.childGroupId:_.groupId:s===sF?_.childGroupId:_.groupId}}var p=POe(n,i),v={};if(!p)for(var c=0;c<i.length;c++){var g=i[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(v[m.id]=!0)}function y(x,S){var _=n[S],b=i[x],w=b.data.hostModel,C=_.data.getItemGraphicEl(_.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(C===T){T&&IOe(T,b.dataIndex,w);return}C&&v[C.id]||T&&(Bc(T),C?(Bc(C),yC(C),o=!0,gC(Yl(C),Yl(T),b.divide,w,x,a)):mC(T,w,x))}new $o(n,i,h(!0,p),h(!1,p),null,"multiple").update(y).updateManyToOne(function(x,S){var _=i[x],b=_.data,w=b.hostModel,C=b.getItemGraphicEl(_.dataIndex),T=yt(Z(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==C&&!v[A.id]});C&&(Bc(C),T.length?(D(T,function(A){Bc(A),yC(A)}),o=!0,gC(Yl(T),Yl(C),_.divide,w,x,a)):mC(C,w,_.dataIndex))}).updateOneToMany(function(x,S){var _=n[S],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&v[b.id])){var w=yt(Z(x,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==b}),C=i[x[0]].data.hostModel;w.length&&(D(w,function(T){return Bc(T)}),b?(Bc(b),yC(b),o=!0,gC(Yl(b),Yl(w),_.divide,C,x[0],a)):D(w,function(T){return mC(T,C,x[0])}))}}).updateManyToMany(function(x,S){new $o(S,x,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,b){y(x[_],S[b])}).execute()}).execute(),o&&D(t,function(x){var S=x.data,_=S.hostModel,b=_&&r.getViewOfSeriesModel(_),w=md("update",_,0);b&&_.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof He&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function cF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function fF(e){return q(e)?e.sort().join(","):e}function vs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function DOe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=cF(a),c=fF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=cF(a),u=fF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:vs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:vs(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:vs(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:vs(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:vs(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:vs(s)})}}}}),r}function dF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function ROe(e,t,r,n){var i=[],a=[];D(St(e.from),function(o){var s=dF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:vs(t.oldData[s]),groupIdDim:o.dimension})}),D(St(e.to),function(o){var s=dF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:vs(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&_Y(i,a,n)}function EOe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(St(n.seriesTransition),function(i){D(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Wy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=AOe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)D(St(a),function(h){ROe(h,i,n,r)});else{var o=DOe(i,n);D(o.keys(),function(h){var p=o.get(h);_Y(p.oldSeries,p.newSeries,r)})}D(n.updatedSeries,function(h){h[Wy]&&(h[Wy]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<bY&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Ge([Gwe]);Ge([zwe]);Ge([lCe,wCe,ECe,dTe,wTe,u2e,z2e,SAe,GAe,XAe,nMe,KMe,_ke,Eke,qke,Jke,uIe,gIe,MIe,EIe,HIe,APe]);Ge(jPe);Ge(yDe);Ge(S7);Ge(DDe);Ge(aU);Ge(ODe);Ge(WDe);Ge(DRe);Ge(ZRe);Ge(kg);Ge(hEe);Ge(gEe);Ge(AEe);Ge(EEe);Ge(FEe);Ge(jEe);Ge(tLe);Ge(xLe);Ge(lY);Ge(uY);Ge(FLe);Ge(pY);Ge(vY);Ge(WLe);Ge(nOe);Ge(oOe);Ge(EOe);Ge(nwe);const O1={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},LOe=e=>!isNaN(new Date(e).getTime()),OOe=e=>e&&LOe(e)?new Date(e).toLocaleString():"",wY=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),hF={type:"value",boundaryGap:[0,"5%"]},NOe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(hF).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...hF,...t?{name:t}:{}},zOe=e=>{const t=new Date(e);return[qb(t.getHours(),2),qb(t.getMinutes(),2),qb(t.getSeconds(),2)].join(":")},BOe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,FOe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})=>({title:{text:t},dataZoom:[{type:"inside",start:0,end:100}],tooltip:{trigger:"axis",formatter:l=>Array.isArray(l)&&l.length>0&&l.some(u=>!!u.value)?l.reduce((u,{axisValue:c,color:f,seriesName:d,value:h},p)=>`
227
+ `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ZEe(e){e.registerAction("legendToggleSelect","legendselectchanged",Ee(Ch,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ee(Ch,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ee(Ch,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ee(Ch,"select")),e.registerAction("legendUnSelect","legendunselected",Ee(Ch,"unSelect"))}function oY(e){e.registerComponentModel(IA),e.registerComponentView(iY),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,qEe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ZEe(e)}var KEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=_d(r);e.prototype.init.call(this,r,n,i),D4(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),D4(this,this.option,r)},t.type="legend.scroll",t.defaultOption=ul(IA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(IA);function D4(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ks(t,r,{type:"box",ignoreSize:!!i})}var R4=ke,cC=["width","height"],fC=["x","y"],QEe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new R4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new R4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=q(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new tt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=vg(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ce(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=cC[u],f=fC[u],d=cC[1-u],h=fC[1-u];o&&wu("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Ae(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[f]-=x}y[c]+=v[c]+p,g[1-u]+=y[h]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[h]=Math.min(y[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;wu(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),wu("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Re(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=cC[o],l=fC[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function _(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(iY);function JEe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function eLe(e){Ge(oY),e.registerComponentModel(KEe),e.registerComponentView(QEe),JEe(e)}function tLe(e){Ge(oY),Ge(eLe)}var rLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=ul(Nv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Nv),lD=Je();function nLe(e,t,r){lD(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function iLe(e,t){for(var r=lD(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||sY(r,o))}}}function sY(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function aLe(e,t){var r={model:t,containsPoint:Ee(sLe,t),dispatchAction:Ee(oLe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Ag(e.getZr());return D(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function oLe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sLe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function lLe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function uLe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=lD(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=HU(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,aLe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){sY(i,a);return}var c=lLe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Td(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var cLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),nLe(i,r,{pan:ce(dC.pan,this),zoom:ce(dC.zoom,this),scrollMove:ce(dC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){iLe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(JP),dC={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=hC[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ac(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:E4(function(e,t,r,n,i,a){var o=hC[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:E4(function(e,t,r,n,i,a){var o=hC[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function E4(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(ac(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var hC={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function lY(e){eD(e),e.registerComponentModel(rLe),e.registerComponentView(cLe),uLe(e)}var fLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ul(Nv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Nv),Th=Qe,L4=7,dLe=1,pC=30,hLe=7,Ah="horizontal",O4="vertical",pLe=5,vLe=["line","bar","candlestick","scatter"],gLe={easing:"cubicOut",duration:100,delay:0},mLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Td(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){wv(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ke;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?hLe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ah?{right:s.width-o.x-o.width,top:s.height-pC-L4-a,width:o.width,height:pC}:{right:L4,top:o.y,width:pC,height:o.height},u=_d(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=vr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===O4&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ah&&!o?{scaleY:l?1:-1,scaleX:1}:i===Ah&&o?{scaleY:l?1:-1,scaleX:-1}:i===O4&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(T,A){if(x>0&&A%x){y+=m;return}var M=T==null||isNaN(T)||T==="",k=M?0:gt(T,f,h,!0);M&&!S&&A?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(T){var A=_.getModel(T?"selectedDataBackground":"dataBackground"),M=new ke,k=new gn({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Sn({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&Ve(vLe,u.get("type"))<0)){var c=a.getComponent(Is(o),s).axis,f=yLe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Th({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dLe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!a1[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=ur(S,-1,0,2,2,null,!0);_.attr({cursor:N4(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=re(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),bu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var T=l.getModel("textStyle");r.add(a[x]=new tt({silent:!0,invisible:!0,style:Dt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=d;if(f){var p=re(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=ur(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:N4(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[gt(r[0],[0,100],n,!0),gt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ac(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?gt(s.minSpan,l,o,!0):null,s.maxSpan!=null?gt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ai([gt(a[0],o,l,!0),gt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Ai(i.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Qe,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ai(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=_u(i.handles[p].parent,this.group),g=gS(p===0?"right":"left",v),m=this._handleWidth/2+pLe,y=oa([d[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===Ah?"middle":g,align:o===Ah?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(a)?a(r,s):oe(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,No(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=oa([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ai([gt(i.x,o,s,!0),gt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(No(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?gLe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=HU(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(JP);function yLe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function N4(e){return e==="vertical"?"ns-resize":"ew-resize"}function uY(e){e.registerComponentModel(fLe),e.registerComponentView(mLe),eD(e)}function xLe(e){Ge(lY),Ge(uY)}var cY={get:function(e,t,r){var n=Ae((SLe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},SLe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},z4=br.mapVisual,bLe=br.eachVisual,_Le=q,B4=D,wLe=Ai,CLe=gt,P1=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&JU(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=AA(this.option.controller,n,r),this.targetVisuals=AA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=St(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],q(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=wLe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){_Le(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},B4(p,function(g,m){if(br.isValidType(m)){var y=cY.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";B4(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Ae(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Ae(h)||(s?y[0]:[y[0],y[0]])),x.symbol=z4(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;bLe(S,function(b){b>_&&(_=b)}),x.symbolSize=z4(S,function(b){return CLe(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ze),F4=[20,140],TLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=F4[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=F4[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Ai((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=$4(this,"outOfRange",this.getExtent()),i=$4(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ul(P1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(P1);function $4(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var fY=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=bd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Qe({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=br.prepareVisualTypes(f);return D(d,function(h){var p=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),br.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;wS(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(Vt),V4=[["left","right","width"],["top","bottom","height"]];function dY(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=V4[o],l=[0,null,10],u={},c=0;c<3;c++)u[V4[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=vr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function Ky(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Aa=gt,ALe=D,G4=Math.min,vC=Math.max,MLe=12,kLe=6,ILe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=ce(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ce(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new tt({style:Dt(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=dY(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new ke;u.add(c),c.add(i.outOfRange=H4()),c.add(i.inRange=H4(null,s?j4(this._orient):null,ce(this._dragHandle,this,"all",!1),ce(this._dragHandle,this,"all",!0))),c.setClipPath(new Qe({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=vC(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=ce(this._dragHandle,this,i,!1),u=ce(this._dragHandle,this,i,!0),c=ha(r.get("handleSize"),a[0]),f=ur(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=j4(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){No(m.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),lu(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,p=new tt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){No(m.event)},ondragend:u,style:Dt(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=ha(r.get("indicatorSize"),i[0]),l=ur(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Pr){var c=l.style;l.useStyle(U({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new tt({silent:!0,invisible:!0,style:Dt(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:kLe)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():W4(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Aa(n[0],i,a,!0),Aa(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];ac(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Aa(a[0],o,s,!0),Aa(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new hg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new ke(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();ALe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Aa(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=oa(i.handleLabelPoints[c],_u(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=Aa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=oa(c.indicatorLabelPoint,_u(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,T),x.animateTo(C,T)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=G4(vC(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=G4(vC(o[0],r),o[1]);var l=PLe(i,s,o),u=[r-l,r+l],c=Aa(r,o,s,!0),f=[Aa(u[0],o,s,!0),Aa(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||W4(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Pye(d,h);this._dispatchHighDown("downplay",Ky(p[0],i)),this._dispatchHighDown("highlight",Ky(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(cu(r.target,function(l){var u=Ie(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ky(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=_u(n,a?null:this.group);return q(r)?oa(r,o,i):gS(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(fY);function H4(e,t,r,n){return new gn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){No(i.event)},ondragend:n})}function PLe(e,t,r){var n=MLe/2,i=e.get("hoverLinkDataSize");return i&&(n=Aa(i,t,r,!0)/2),n}function W4(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function j4(e){return e==="vertical"?"ns-resize":"ew-resize"}var DLe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},RLe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},ELe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(tEe(n.stateList,n.targetVisuals,ce(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(ce(LLe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function LLe(e,t,r,n){for(var i=t.targetVisuals[n],a=br.prepareVisualTypes(i),o={color:mg(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var U4=D;function OLe(e){var t=e&&e.visualMap;q(t)||(t=t?[t]:[]),U4(t,function(r){if(r){Nc(r,"splitList")&&!Nc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&q(n)&&U4(n,function(i){Ce(i)&&(Nc(i,"start")&&!Nc(i,"min")&&(i.min=i.start),Nc(i,"end")&&!Nc(i,"max")&&(i.max=i.end))})}})}function Nc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Y4=!1;function hY(e){Y4||(Y4=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(DLe,RLe),D(ELe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OLe))}function pY(e){e.registerComponentModel(TLe),e.registerComponentView(ILe),hY(e)}var NLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],zLe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Ae(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Ae(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=br.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=cY.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ae(r)},t.prototype.getValueState=function(r){var n=br.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=br.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=ul(P1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(P1),zLe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),GO(e),D(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),X4(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){Ce(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=br.retrieveVisuals(r),e.push(i)},this),X4(t,e),GO(e),D(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function X4(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var BLe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Mr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),D(c.viewPieceList,function(h){var p=h.piece,v=new ke;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),wu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ky(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return dY(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new ke,l=this.visualMapModel.textStyleModel;s.add(new tt({style:Dt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(ur(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Ae(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(fY);function vY(e){e.registerComponentModel(NLe),e.registerComponentView(BLe),hY(e)}function FLe(e){Ge(pY),Ge(vY)}var $Le={label:{enabled:!0},decal:{show:!1}},q4=Je(),VLe={};function GLe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ae($Le);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),q4(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=R2(d.ecModel,d.name,VLe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=q4(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=R2(d.ecModel,w,g,m),T=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(T,C))})}function S(_,b){var w=_?U(U({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=we(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}else g=f.get(["general","withoutTitle"]);var x=[],S=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,T){if(T<v){var A=void 0,M=C.get("name"),k=M?"withName":"withoutName";A=d>1?f.get(["series","multiple",k]):f.get(["series","single",k]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var R=f.get(["data","partialData"]);A+=o(R,{displayCnt:h})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),N=f.get(["data","separator","end"]),$=[],z=0;z<I.count();z++)if(z<h){var V=I.getName(z),L=I.getValues(z),G=f.get(["data",V?"withName":"withoutName"]);$.push(o(G,{name:V,value:L.join(E)}))}A+=$.join(E)+N,x.push(A)}});var _=f.getModel(["series","multiple","separator"]),b=_.get("middle"),w=_.get("end");g+=x.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!oe(u))return u;var f=u;return D(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function HLe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function WLe(e){e.registerPreprocessor(HLe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,GLe)}var Z4={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jLe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Zge(t)?t:null;if(r==null){var n="";ft(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),ULe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),YLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),XLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),qLe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),ZLe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function uD(e,t){if(e===!0||e===!1){var r=new ULe;return r.value=e,r}var n="";return gY(e)||ft(n),e.and?K4("and",e,t):e.or?K4("or",e,t):e.not?KLe(e,t):QLe(e,t)}function K4(e,t,r){var n=t[e],i="";q(n)||ft(i),n.length||ft(i);var a=e==="and"?new YLe:new XLe;return a.children=Z(n,function(o){return uD(o,r)}),a.children.length||ft(i),a}function KLe(e,t){var r=e.not,n="";gY(r)||ft(n);var i=new qLe;return i.child=uD(r,t),i.child||ft(n),i}function QLe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Ke(e),o=e.parser,s=o?K8(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=fe(Z4,u)?Z4[u]:u,f=e[u],d=s?s(f):f,h=zxe(c,d)||c==="reg"&&new jLe(d);h||ft(r),i.push(h)}}i.length||ft(r);var p=new ZLe;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function gY(e){return Ce(e)&&!Jr(e)}var JLe=function(){function e(t,r){this._cond=uD(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function eOe(e,t){return new JLe(e,t)}var tOe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=eOe(e.config,{valueGetterAttrMap:ve({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;fe(s,"dimension")||ft(l);var c=t.getDimensionInfo(u);return c||ft(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},rOe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=St(r);i.length||ft(n);var a=[];D(i,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&ft(n),d!=="asc"&&d!=="desc"&&ft(n),p&&p!=="min"&&p!=="max"){var v="";ft(v)}if(d!=="asc"&&d!=="desc"){var g="";ft(g)}var m=t.getDimensionInfo(f);m||ft(n);var y=h?K8(h):null;h&&!y&&ft(n),a.push({dimIdx:m.index,parser:y,comparator:new J8(d,p)})});var o=t.sourceFormat;o!==en&&o!==Vi&&ft(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function nOe(e){e.registerTransform(tOe),e.registerTransform(rOe)}var iOe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new n9(this),e5(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),e5(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:qa},t}(Ze),aOe=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Vt);function oOe(e){e.registerComponentModel(iOe),e.registerComponentView(aOe)}var Ca=io.CMD;function df(e,t){return Math.abs(e-t)<1e-5}function EA(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(I,R){i&&i.length>2&&n.push(i),i=[I,R]}function c(I,R,E,N){df(I,E)&&df(R,N)||i.push(I,R,E,N,E,N)}function f(I,R,E,N,$,z){var V=Math.abs(R-I),L=Math.tan(V/4)*4/3,G=R<I?-1:1,H=Math.cos(I),F=Math.sin(I),Y=Math.cos(R),J=Math.sin(R),j=H*$+E,ee=F*z+N,Q=Y*$+E,te=J*z+N,ae=$*L*G,K=z*L*G;i.push(j-ae*F,ee+K*H,Q+ae*J,te-K*Y,Q,te)}for(var d,h,p,v,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===Ca.L||m===Ca.C||m===Ca.Q)&&(i=[s,l])),m){case Ca.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Ca.L:d=t[g++],h=t[g++],c(a,o,d,h),a=d,o=h;break;case Ca.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ca.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(d-a),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),a=p,o=v;break;case Ca.A:var x=t[g++],S=t[g++],_=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var T=!t[g++];d=Math.cos(w)*_+x,h=Math.sin(w)*b+S,y?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(C)*_+x,o=Math.sin(C)*b+S;for(var A=(T?-1:1)*Math.PI/2,M=w;T?M>C:M<C;M+=A){var k=T?Math.max(M+A,C):Math.min(M+A,C);f(M,k,x,S,_,b)}break;case Ca.R:s=a=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Ca.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function LA(e,t,r,n,i,a,o,s,l,u){if(df(e,r)&&df(t,n)&&df(i,o)&&df(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x<f&&S<f){l.push(o,s);return}var _=d*v+h*g,b=-d*m-h*y,w=x-_*_,C=S-b*b;if(w<f&&_>=0&&C<f&&b>=0){l.push(o,s);return}var T=[],A=[];qs(e,r,i,o,.5,T),qs(t,n,a,s,.5,A),LA(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),LA(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function sOe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],p=a[u++],v=a[u++];LA(s,l,c,f,d,h,p,v,o,t),s=p,l=v}n.push(o)}return n}function mY(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Q4(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=mY([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=a+d*h,g.endAngle=a+d*(h+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function lOe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=mY([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function J4(e,t,r,n){return e*n-r*t}function uOe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=J4(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-a,v=J4(h,p,c,f)/d;return v<0||v>1?null:new Le(v*l+e,v*u+t)}function cOe(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function zc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function fOe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=uOe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:cOe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],a=u.idx+1;a<=c.idx;a++)zc(p,e[a].slice());zc(p,h),zc(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)zc(v,e[a%n].slice());return zc(v,d),zc(v,h),[{points:p},{points:v}]}function eF(e){var t=e.points,r=[],n=[];cS(t,r,n);var i=new Ne(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Le,c=new Le;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),fOe(t,u,c)}function D1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);D1(e,a[0],i,n),D1(e,a[1],r-i,n)}return n}function dOe(e,t){for(var r=[],n=0;n<t;n++)r.push(MI(e));return r}function hOe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function pOe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function vOe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":lOe(n,t,r),i=Qe;break;case"sector":Q4(n,t,r),i=vn;break;case"circle":Q4({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=vn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(sOe(e.getUpdatedPathProxy(),o),function(m){return pOe(m)}),l=s.length;if(l===0)D1(eF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Z(s,function(m){var y=[],x=[];cS(m,y,x);var S=(x[1]-y[1])*(x[0]-y[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(D1(eF,{points:h.poly},p,r),d-=p)}}i=gn;break}if(!i)return dOe(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),hOe(e,g),v.push(g)}return v}function gOe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],y=o[h++],x=o[h++],S=o[h++],_=o[h++];if(d<=0){f.push(g,m,y,x,S,_);continue}for(var b=Math.min(d,c-1)+1,w=1;w<=b;w++){var C=w/b;qs(p,g,y,S,C,i),qs(v,m,x,_,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}d-=b-1}return o===e?[f,t]:[e,f]}function tF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function mOe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=gOe(l,u),c=r[0],f=r[1],n=c,i=f):(f=tF(i||l,l),c=l):(c=tF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function rF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function yOe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-p,x=m-v;f+=y*y+x*x}f<a&&(a=f,o=u)}return o}function xOe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function SOe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=rF(s),c=rF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;a&&(s=xOe(s));for(var m=yOe(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var S=(m+x)%y+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}f[0]=s[m]-u[0],f[1]=s[m+1]-u[1];for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),T=0,x=0;x<s.length;x+=2){var A=f[x],M=f[x+1],k=l[x]-c[0],I=l[x+1]-c[1],R=k*C-I*w,E=k*w+I*C;v[x]=R,v[x+1]=E;var N=R-A,$=E-M;T+=N*N+$*$}if(T<p){p=T,h=b;for(var z=0;z<v.length;z++)d[z]=v[z]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function R1(e){return e.__isCombineMorphing}var yY="__mOriginal_";function E1(e,t,r){var n=yY+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Ip(e,t){var r=yY+t;e[r]&&(e[t]=e[r],e[r]=null)}function nF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function xY(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=mOe(EA(r),EA(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&nF(a,s),l&&nF(o,l),E1(t,"updateTransform",{replace:u}),t.transform=null;var c=SOe(a,o,10,Math.PI),f=[];E1(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,S=m.rotation*h,_=m.fromCp,b=m.toCp,w=Math.sin(S),C=Math.cos(S);Ey(v,_,b,h);for(var T=0;T<y.length;T+=2){var A=y[T],M=y[T+1],k=x[T],I=x[T+1],R=A*p+k*h,E=M*p+I*h;f[T]=R*C-E*w+v[0],f[T+1]=R*w+E*C+v[1]}var N=f[0],$=f[1];d.moveTo(N,$);for(var T=2;T<y.length;){var k=f[T++],I=f[T++],z=f[T++],V=f[T++],L=f[T++],G=f[T++];N===k&&$===I&&z===L&&V===G?d.lineTo(L,G):d.bezierCurveTo(k,I,z,V,L,G),N=L,$=G}}}})}function cD(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;xY(e,t),t.__morphT=0;function a(){Ip(t,"buildPath"),Ip(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},we({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function bOe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function L1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:bOe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function SY(e){return vOe(e.path,e.count)}function OA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _Oe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];R1(w)?i(w.childrenRef()):w instanceof He&&n.push(w)}}i(e);var a=n.length;if(!a)return OA();var o=r.dividePath||SY,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),OA();n=L1(n),s=L1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new bo,d=0;d<a;d++){var h=n[d],p=s[d];p.parent=t,p.copyTransform(f),c||xY(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}E1(t,"addSelfToZr",{after:function(_){v(_)}}),E1(t,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ip(t,"addSelfToZr"),Ip(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?we({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:x},r):r;cD(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},we({during:function(_){for(var b=0;b<m;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<e.length;_++)Ip(e[_],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function wOe(e,t,r){var n=t.length,i=[],a=r.dividePath||SY;function o(h){for(var p=0;p<h.length;p++){var v=h[p];R1(v)?o(v.childrenRef()):v instanceof He&&i.push(v)}}if(R1(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(MI(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),OA()}i=L1(i),t=L1(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?we({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;cD(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function iF(e){return q(e[0])}function aF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var COe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=MI(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function gC(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=md("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;iF(e)&&(u=e,c=t),iF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,T=y?w:b[0];if(R1(C))f({many:[C],one:T},!0,x,S,!0);else{var A=s?we({delay:s(x,S)},l):l;cD(C,T,A),a(C,T,C,T,A)}}else for(var M=we({dividePath:COe[r],individualDelay:s&&function($,z,V,L){return s($+x,S)}},l),k=y?_Oe(b,w,M):wOe(w,b,M),I=k.fromIndividuals,R=k.toIndividuals,E=I.length,N=0;N<E;N++){var A=s?we({delay:s(N,E)},l):l;a(I[N],R[N],y?b[N]:m.one,y?m.one:b[N],A)}}for(var d=u?u===e:e.length>t.length,h=u?aF(c,u):aF(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Yl(e){if(!e)return[];if(q(e)){for(var t=[],r=0;r<e.length;r++)t.push(Yl(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof He&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var bY=1e4,TOe=0,oF=1,sF=2,AOe=Je();function MOe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function kOe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function lF(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=MOe(e,i);if(a){var o=kOe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function uF(e){var t=[];return D(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>bY))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:lF(n,o,i,!1),childGroupId:lF(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function mC(e,t,r){e.traverse(function(n){n instanceof He&&zt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function yC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Bc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function IOe(e,t,r){var n=md("update",r,t);n&&e.traverse(function(i){if(i instanceof Li){var a=S1e(i);a&&i.animateFrom({style:a},n)}})}function POe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function _Y(e,t,r){var n=uF(e),i=uF(t);function a(x,S,_,b,w){(_||x)&&S.animateFrom({style:_&&_!==x?U(U({},_.style),x.style):x.style},w)}var o=!1,s=TOe,l=ve(),u=ve();n.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=oF;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=sF;break}}function h(x,S){return function(_){var b=_.data,w=_.dataIndex;return S?b.getId(w):x?s===oF?_.childGroupId:_.groupId:s===sF?_.childGroupId:_.groupId}}var p=POe(n,i),v={};if(!p)for(var c=0;c<i.length;c++){var g=i[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(v[m.id]=!0)}function y(x,S){var _=n[S],b=i[x],w=b.data.hostModel,C=_.data.getItemGraphicEl(_.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(C===T){T&&IOe(T,b.dataIndex,w);return}C&&v[C.id]||T&&(Bc(T),C?(Bc(C),yC(C),o=!0,gC(Yl(C),Yl(T),b.divide,w,x,a)):mC(T,w,x))}new $o(n,i,h(!0,p),h(!1,p),null,"multiple").update(y).updateManyToOne(function(x,S){var _=i[x],b=_.data,w=b.hostModel,C=b.getItemGraphicEl(_.dataIndex),T=yt(Z(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==C&&!v[A.id]});C&&(Bc(C),T.length?(D(T,function(A){Bc(A),yC(A)}),o=!0,gC(Yl(T),Yl(C),_.divide,w,x,a)):mC(C,w,_.dataIndex))}).updateOneToMany(function(x,S){var _=n[S],b=_.data.getItemGraphicEl(_.dataIndex);if(!(b&&v[b.id])){var w=yt(Z(x,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==b}),C=i[x[0]].data.hostModel;w.length&&(D(w,function(T){return Bc(T)}),b?(Bc(b),yC(b),o=!0,gC(Yl(b),Yl(w),_.divide,C,x[0],a)):D(w,function(T){return mC(T,C,x[0])}))}}).updateManyToMany(function(x,S){new $o(S,x,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return i[_].data.getId(i[_].dataIndex)}).update(function(_,b){y(x[_],S[b])}).execute()}).execute(),o&&D(t,function(x){var S=x.data,_=S.hostModel,b=_&&r.getViewOfSeriesModel(_),w=md("update",_,0);b&&_.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof He&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function cF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function fF(e){return q(e)?e.sort().join(","):e}function vs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function DOe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=cF(a),c=fF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=cF(a),u=fF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:vs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:vs(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:vs(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:vs(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:vs(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:vs(s)})}}}}),r}function dF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function ROe(e,t,r,n){var i=[],a=[];D(St(e.from),function(o){var s=dF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:vs(t.oldData[s]),groupIdDim:o.dimension})}),D(St(e.to),function(o){var s=dF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:vs(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&_Y(i,a,n)}function EOe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(St(n.seriesTransition),function(i){D(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Wy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=AOe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)D(St(a),function(h){ROe(h,i,n,r)});else{var o=DOe(i,n);D(o.keys(),function(h){var p=o.get(h);_Y(p.oldSeries,p.newSeries,r)})}D(n.updatedSeries,function(h){h[Wy]&&(h[Wy]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<bY&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Ge([Gwe]);Ge([zwe]);Ge([lCe,wCe,ECe,dTe,wTe,u2e,z2e,SAe,GAe,XAe,nMe,KMe,_ke,Eke,qke,Jke,uIe,gIe,MIe,EIe,HIe,APe]);Ge(jPe);Ge(yDe);Ge(S7);Ge(DDe);Ge(aU);Ge(ODe);Ge(WDe);Ge(DRe);Ge(ZRe);Ge(kg);Ge(hEe);Ge(gEe);Ge(AEe);Ge(EEe);Ge(FEe);Ge(jEe);Ge(tLe);Ge(xLe);Ge(lY);Ge(uY);Ge(FLe);Ge(pY);Ge(vY);Ge(WLe);Ge(nOe);Ge(oOe);Ge(EOe);Ge(nwe);const O1={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},LOe=e=>!isNaN(new Date(e).getTime()),OOe=e=>e&&LOe(e)?new Date(e).toLocaleString():"",wY=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),hF={type:"value",boundaryGap:[0,"5%"]},NOe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(hF).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...hF,...t?{name:t}:{}},zOe=e=>{const t=new Date(e);return[qb(t.getHours(),2),qb(t.getMinutes(),2),qb(t.getSeconds(),2)].join(":")},BOe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,FOe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})=>({title:{text:t},tooltip:{trigger:"axis",formatter:l=>Array.isArray(l)&&l.length>0&&l.some(u=>!!u.value)?l.reduce((u,{axisValue:c,color:f,seriesName:d,value:h},p)=>`
228
228
  ${p===0?OOe(c):""}
229
229
  ${u}
230
230
  <br>
231
231
  <span style="color:${f};">
232
232
  ${d}:&nbsp${BOe({chartValueFormatter:i,value:h})}
233
233
  </span>
234
- `,""):"No data",borderWidth:0},xAxis:{type:"time",startValue:e.time[0],axisLabel:{formatter:zOe}},grid:{left:60,right:40},yAxis:NOe({splitAxis:a,yAxisLabels:o}),series:wY({charts:e,lines:r,scatterplot:s}),color:n,toolbox:{right:10,feature:{dataZoom:{show:!0,title:{zoom:"Zoom Select",back:"Zoom Reset"}},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),$Oe=(e,t)=>({symbol:"none",label:{formatter:r=>`Run #${r.dataIndex+1}`,padding:[0,0,8,0]},lineStyle:{color:t?O1.DARK.axisColor:O1.LIGHT.axisColor},data:(e.markers||[]).map(r=>({xAxis:r}))}),VOe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,end:i}]=r,a=n>0&&i<100;e.setOption({dataZoom:[{type:"inside",start:n,end:i},{type:"slider",show:a,start:n,end:i}]})};function GOe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s}){const[l,u]=O.useState(null),c=zi(({theme:{isDarkMode:d}})=>d),f=O.useRef(null);return O.useEffect(()=>{if(!f.current)return;const d=Tbe(f.current);d.setOption(FOe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),d.on("datazoom",VOe(d));const h=()=>d.resize();return window.addEventListener("resize",h),d.group="swarmCharts",Abe("swarmCharts"),u(d),()=>{Mbe(d),window.removeEventListener("resize",h)}},[f]),O.useEffect(()=>{const d=r.every(({key:h})=>!!e[h]);l&&d&&l.setOption({series:r.map(({key:h,yAxisIndex:p,...v},g)=>({...v,data:e[h],...a?{yAxisIndex:p||g}:{},...g===0?{markLine:$Oe(e,c)}:{}}))})},[e,l,r,c]),O.useEffect(()=>{if(l){const{textColor:d,axisColor:h,backgroundColor:p,splitLine:v}=c?O1.DARK:O1.LIGHT;l.setOption({backgroundColor:p,textStyle:{color:d},title:{textStyle:{color:d}},legend:{icon:"circle",inactiveColor:d,textStyle:{color:d}},tooltip:{backgroundColor:p,textStyle:{color:d}},xAxis:{axisLine:{lineStyle:{color:h}}},yAxis:{axisLine:{lineStyle:{color:h}},splitLine:{lineStyle:{color:v}}}})}},[l,c]),O.useEffect(()=>{l&&l.setOption({series:wY({charts:e,lines:r,scatterplot:s})})},[r]),P.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}const HOe=Ya.percentilesToChart?Ya.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],WOe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],jOe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:HOe,colors:WOe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function UOe({charts:e}){return P.jsx("div",{children:jOe.map((t,r)=>P.jsx(GOe,{...t,charts:e},`swarm-chart-${r}`))})}const YOe=({ui:{charts:e}})=>({charts:e}),XOe=$n(YOe)(UOe);function qOe(e){return(e*100).toFixed(1)+"%"}function NA({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${qOe(r)} ${t}`,n&&P.jsx(NA,{classRatio:n})]},`nested-ratio-${t}`))})}function ZOe({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(NA,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(NA,{classRatio:t})]})]})}const KOe=({ui:{ratios:e}})=>({ratios:e}),QOe=$n(KOe)(ZOe),JOe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:xQ}];function eNe({workers:e=[]}){return P.jsx(sg,{defaultSortKey:"id",rows:e,structure:JOe})}const tNe=({ui:{workers:e}})=>({workers:e}),rNe=$n(tNe)(eNe),ls={stats:{component:Ege,key:"stats",title:"Statistics"},charts:{component:XOe,key:"charts",title:"Charts"},failures:{component:gge,key:"failures",title:"Failures"},exceptions:{component:dge,key:"exceptions",title:"Exceptions"},ratios:{component:QOe,key:"ratios",title:"Current Ratio"},reports:{component:_ge,key:"reports",title:"Download Data"},logs:{component:xge,key:ZG,title:"Logs"},workers:{component:rNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}},nNe=[ls.stats,ls.charts,ls.failures,ls.exceptions,ls.ratios,ls.reports,ls.logs,ls.workers],iNe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},aNe=()=>window.location.search?yQ(window.location.search):null,oNe={query:aNe()},CY=xi({name:"url",initialState:oNe,reducers:{setUrl:ig}}),sNe=CY.actions,lNe=CY.reducer;function uNe({hasNotification:e,title:t}){return P.jsxs(Pt,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(Hk,{color:"secondary"}),P.jsx("span",{children:t})]})}function cNe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),iNe({tab:c}),n({query:{tab:c}}),o(u)};return O.useEffect(()=>{o(e)},[e]),P.jsxs(ng,{maxWidth:"xl",children:[P.jsx(Pt,{sx:{mb:2},children:P.jsx(wue,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>P.jsx(wle,{label:P.jsx(uNe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=lge},u)=>a===u&&P.jsx(l,{},`tabpabel-${u}`))]})}const fNe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...nNe,...r||i||[]]).filter(({shouldDisplayTab:u})=>!u||u&&u(e)),l=a&&a.tab?s.findIndex(({key:u})=>u===a.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},dNe={setNotification:QG.setNotification,setUrl:sNe.setUrl},hNe=$n(fNe,dNe)(cNe);var gF;const pNe={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(gF=Ya.history)==null?void 0:gF.reduce(Xx,{}),ratios:{},userCount:0};var mF;const vNe=(mF=Ya.percentilesToChart)==null?void 0:mF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),gNe=e=>Xx(e,{...vNe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),TY=xi({name:"ui",initialState:pNe,reducers:{setUi:ig,updateCharts:(e,{payload:t})=>({...e,charts:Xx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...gNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Pp=TY.actions,mNe=TY.reducer,yNe=ex({[O0.reducerPath]:O0.reducer,logViewer:Lfe,notification:Pfe,swarm:Jce,theme:EG,ui:mNe,url:lNe}),xNe=HV({reducer:yNe,middleware:e=>e().concat(O0.middleware)});function SNe(){const{data:e,refetch:t}=Xce(),r=So(Pp.setUi),n=zi(({swarm:a})=>a.state),i=n===Zr.SPAWNING||n==Zr.RUNNING;O.useEffect(()=>{e&&r({ratios:e})},[e]),cv(t,5e3,{shouldRunInterval:i})}const pF=2e3;function bNe(){const e=So(qx.setSwarm),t=So(Pp.setUi),r=So(Pp.updateCharts),n=So(Pp.updateChartMarkers),i=zi(({swarm:h})=>h),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Yce(),f=i.state===Zr.SPAWNING||i.state==Zr.RUNNING,d=()=>{if(!u)return;const{currentResponseTimePercentiles:h,extendedStats:p,stats:v,errors:g,totalRps:m,totalFailPerSec:y,failRatio:x,workers:S,userCount:_,totalAvgResponseTime:b}=u,w=new Date().toISOString();s&&(l(!1),n(w));const C=Oh(m,2),T=Oh(y,2),A=Oh(x*100),k={...Object.entries(h).reduce((I,[R,E])=>({...I,[R]:[w,E]}),{}),currentRps:[w,C],currentFailPerSec:[w,T],totalAvgResponseTime:[w,Oh(b,2)],userCount:[w,_],time:w};t({extendedStats:p,stats:v,errors:g,totalRps:C,failRatio:A,workers:S,userCount:_}),r(k)};O.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||d(),o.current=!0)},[u]),cv(d,pF,{shouldRunInterval:!!u&&f}),cv(c,pF,{shouldRunInterval:f}),O.useEffect(()=>{i.state===Zr.RUNNING&&a.current===Zr.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function _Ne(){const{data:e,refetch:t}=qce(),r=So(Pp.setUi),n=zi(({swarm:a})=>a.state),i=n===Zr.SPAWNING||n==Zr.RUNNING;O.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),cv(t,5e3,{shouldRunInterval:i})}function wNe({swarmState:e,tabs:t,extendedTabs:r}){bNe(),_Ne(),SNe(),Nfe();const n=OG();return P.jsxs(H6,{theme:n,children:[P.jsx(uG,{}),P.jsx(kfe,{children:e===Zr.READY?P.jsx(XG,{}):P.jsx(hNe,{extendedTabs:r,tabs:t})})]})}const CNe=({swarm:{state:e}})=>({swarmState:e}),TNe=$n(CNe)(wNe);function ANe(){if(qR){const e=HV({reducer:ex({theme:EG})});return P.jsx(YR,{store:e,children:P.jsx(Hue,{...qR})})}else return P.jsx(YR,{store:xNe,children:P.jsx(TNe,{})})}function MNe({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const kNe=xC.createRoot(document.getElementById("root"));kNe.render(P.jsx(fZ,{fallbackRender:MNe,children:P.jsx(ANe,{})}));
234
+ `,""):"No data",borderWidth:0},xAxis:{type:"time",startValue:(e.time||[""])[0],axisLabel:{formatter:zOe}},grid:{left:60,right:40},yAxis:NOe({splitAxis:a,yAxisLabels:o}),series:wY({charts:e,lines:r,scatterplot:s}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),$Oe=(e,t)=>({symbol:"none",label:{formatter:r=>`Run #${r.dataIndex+1}`,padding:[0,0,8,0]},lineStyle:{color:t?O1.DARK.axisColor:O1.LIGHT.axisColor},data:(e.markers||[]).map(r=>({xAxis:r}))}),VOe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:o}]})};function GOe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s}){const[l,u]=O.useState(null),c=zi(({theme:{isDarkMode:d}})=>d),f=O.useRef(null);return O.useEffect(()=>{if(!f.current)return;const d=Tbe(f.current);d.setOption(FOe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),d.on("datazoom",VOe(d));const h=()=>d.resize();return window.addEventListener("resize",h),d.group="swarmCharts",Abe("swarmCharts"),u(d),()=>{Mbe(d),window.removeEventListener("resize",h)}},[f]),O.useEffect(()=>{const d=r.every(({key:h})=>!!e[h]);l&&d&&l.setOption({series:r.map(({key:h,yAxisIndex:p,...v},g)=>({...v,data:e[h],...a?{yAxisIndex:p||g}:{},...g===0?{markLine:$Oe(e,c)}:{}}))})},[e,l,r,c]),O.useEffect(()=>{if(l){const{textColor:d,axisColor:h,backgroundColor:p,splitLine:v}=c?O1.DARK:O1.LIGHT;l.setOption({backgroundColor:p,textStyle:{color:d},title:{textStyle:{color:d}},legend:{icon:"circle",inactiveColor:d,textStyle:{color:d}},tooltip:{backgroundColor:p,textStyle:{color:d}},xAxis:{axisLine:{lineStyle:{color:h}}},yAxis:{axisLine:{lineStyle:{color:h}},splitLine:{lineStyle:{color:v}}}})}},[l,c]),O.useEffect(()=>{l&&l.setOption({series:wY({charts:e,lines:r,scatterplot:s})})},[r]),P.jsx("div",{ref:f,style:{width:"100%",height:"300px"}})}const HOe=Ya.percentilesToChart?Ya.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],WOe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],jOe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:HOe,colors:WOe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function UOe({charts:e}){return P.jsx("div",{children:jOe.map((t,r)=>P.jsx(GOe,{...t,charts:e},`swarm-chart-${r}`))})}const YOe=({ui:{charts:e}})=>({charts:e}),XOe=$n(YOe)(UOe);function qOe(e){return(e*100).toFixed(1)+"%"}function NA({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${qOe(r)} ${t}`,n&&P.jsx(NA,{classRatio:n})]},`nested-ratio-${t}`))})}function ZOe({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(NA,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(NA,{classRatio:t})]})]})}const KOe=({ui:{ratios:e}})=>({ratios:e}),QOe=$n(KOe)(ZOe),JOe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:xQ}];function eNe({workers:e=[]}){return P.jsx(sg,{defaultSortKey:"id",rows:e,structure:JOe})}const tNe=({ui:{workers:e}})=>({workers:e}),rNe=$n(tNe)(eNe),ls={stats:{component:Ege,key:"stats",title:"Statistics"},charts:{component:XOe,key:"charts",title:"Charts"},failures:{component:gge,key:"failures",title:"Failures"},exceptions:{component:dge,key:"exceptions",title:"Exceptions"},ratios:{component:QOe,key:"ratios",title:"Current Ratio"},reports:{component:_ge,key:"reports",title:"Download Data"},logs:{component:xge,key:ZG,title:"Logs"},workers:{component:rNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}},nNe=[ls.stats,ls.charts,ls.failures,ls.exceptions,ls.ratios,ls.reports,ls.logs,ls.workers],iNe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},aNe=()=>window.location.search?yQ(window.location.search):null,oNe={query:aNe()},CY=xi({name:"url",initialState:oNe,reducers:{setUrl:ig}}),sNe=CY.actions,lNe=CY.reducer;function uNe({hasNotification:e,title:t}){return P.jsxs(Pt,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(Hk,{color:"secondary"}),P.jsx("span",{children:t})]})}function cNe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),iNe({tab:c}),n({query:{tab:c}}),o(u)};return O.useEffect(()=>{o(e)},[e]),P.jsxs(ng,{maxWidth:"xl",children:[P.jsx(Pt,{sx:{mb:2},children:P.jsx(wue,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>P.jsx(wle,{label:P.jsx(uNe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=lge},u)=>a===u&&P.jsx(l,{},`tabpabel-${u}`))]})}const fNe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...nNe,...r||i||[]]).filter(({shouldDisplayTab:u})=>!u||u&&u(e)),l=a&&a.tab?s.findIndex(({key:u})=>u===a.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},dNe={setNotification:QG.setNotification,setUrl:sNe.setUrl},hNe=$n(fNe,dNe)(cNe);var gF;const pNe={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(gF=Ya.history)==null?void 0:gF.reduce(Xx,{}),ratios:{},userCount:0};var mF;const vNe=(mF=Ya.percentilesToChart)==null?void 0:mF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),gNe=e=>Xx(e,{...vNe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),TY=xi({name:"ui",initialState:pNe,reducers:{setUi:ig,updateCharts:(e,{payload:t})=>({...e,charts:Xx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...gNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),Pp=TY.actions,mNe=TY.reducer,yNe=ex({[O0.reducerPath]:O0.reducer,logViewer:Lfe,notification:Pfe,swarm:Jce,theme:EG,ui:mNe,url:lNe}),xNe=HV({reducer:yNe,middleware:e=>e().concat(O0.middleware)});function SNe(){const{data:e,refetch:t}=Xce(),r=So(Pp.setUi),n=zi(({swarm:a})=>a.state),i=n===Zr.SPAWNING||n==Zr.RUNNING;O.useEffect(()=>{e&&r({ratios:e})},[e]),cv(t,5e3,{shouldRunInterval:i})}const pF=2e3;function bNe(){const e=So(qx.setSwarm),t=So(Pp.setUi),r=So(Pp.updateCharts),n=So(Pp.updateChartMarkers),i=zi(({swarm:d})=>d),a=O.useRef(i.state),[o,s]=O.useState(!1),{data:l,refetch:u}=Yce(),c=i.state===Zr.SPAWNING||i.state==Zr.RUNNING,f=()=>{if(!l)return;const{currentResponseTimePercentiles:d,extendedStats:h,stats:p,errors:v,totalRps:g,totalFailPerSec:m,failRatio:y,workers:x,userCount:S,totalAvgResponseTime:_}=l,b=new Date().toISOString();o&&(s(!1),n(b));const w=Oh(g,2),C=Oh(m,2),T=Oh(y*100),M={...Object.entries(d).reduce((k,[I,R])=>({...k,[I]:[b,R]}),{}),currentRps:[b,w],currentFailPerSec:[b,C],totalAvgResponseTime:[b,Oh(_,2)],userCount:[b,S],time:b};t({extendedStats:h,stats:p,errors:v,totalRps:w,failRatio:T,workers:x,userCount:S}),r(M)};O.useEffect(()=>{l&&e({state:l.state})},[l&&l.state]),cv(f,pF,{shouldRunInterval:!!l&&c}),cv(u,pF,{shouldRunInterval:c}),O.useEffect(()=>{i.state===Zr.RUNNING&&a.current===Zr.STOPPED&&s(!0),a.current=i.state},[i.state,a])}function _Ne(){const{data:e,refetch:t}=qce(),r=So(Pp.setUi),n=zi(({swarm:a})=>a.state),i=n===Zr.SPAWNING||n==Zr.RUNNING;O.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),cv(t,5e3,{shouldRunInterval:i})}function wNe({swarmState:e,tabs:t,extendedTabs:r}){bNe(),_Ne(),SNe(),Nfe();const n=OG();return P.jsxs(H6,{theme:n,children:[P.jsx(uG,{}),P.jsx(kfe,{children:e===Zr.READY?P.jsx(XG,{}):P.jsx(hNe,{extendedTabs:r,tabs:t})})]})}const CNe=({swarm:{state:e}})=>({swarmState:e}),TNe=$n(CNe)(wNe);function ANe(){if(qR){const e=HV({reducer:ex({theme:EG})});return P.jsx(YR,{store:e,children:P.jsx(Hue,{...qR})})}else return P.jsx(YR,{store:xNe,children:P.jsx(TNe,{})})}function MNe({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const kNe=xC.createRoot(document.getElementById("root"));kNe.render(P.jsx(fZ,{fallbackRender:MNe,children:P.jsx(ANe,{})}));