back-testing-react 1.0.2 → 1.0.3

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.
@@ -120,4 +120,4 @@ function Nr(e,t){const r=cr(e,t);return"production"!==process.env.NODE_ENV?(...t
120
120
  animation-delay: 200ms;
121
121
  }
122
122
  `,Hs=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a,...l}=i,[c,u]=s.useState([]),h=s.useRef(0),d=s.useRef(null);s.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[c]);const p=s.useRef(!1),f=no(),m=s.useRef(null),_=s.useRef(null),g=s.useCallback((t=>{const{pulsate:r,rippleX:i,rippleY:n,rippleSize:s,cb:a}=t;u((t=>[...t,e.jsx(qs,{classes:{ripple:rn(o.ripple,Vs.ripple),rippleVisible:rn(o.rippleVisible,Vs.rippleVisible),ripplePulsate:rn(o.ripplePulsate,Vs.ripplePulsate),child:rn(o.child,Vs.child),childLeaving:rn(o.childLeaving,Vs.childLeaving),childPulsate:rn(o.childPulsate,Vs.childPulsate)},timeout:550,pulsate:r,rippleX:i,rippleY:n,rippleSize:s},h.current)])),h.current+=1,d.current=a}),[o]),y=s.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:i=!1,center:o=n||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const a=s?null:_.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,h;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(o)h=Math.sqrt((2*l.width**2+l.height**2)/3),h%2==0&&(h+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;h=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:i,rippleX:c,rippleY:u,rippleSize:h,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:i,rippleX:c,rippleY:u,rippleSize:h,cb:r})}),[n,g,f]),x=s.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=s.useCallback(((e,t)=>{if(f.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{v(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return s.useImperativeHandle(r,(()=>({pulsate:x,start:y,stop:v})),[x,y,v]),e.jsx(Gs,{className:rn(Vs.root,o.root,a),ref:_,...l,children:e.jsx(Ds,{component:null,exit:!0,children:c})})}));function Ws(e){return on("MuiButtonBase",e)}"production"!==process.env.NODE_ENV&&(Hs.propTypes={center:Fr.bool,classes:Fr.object,className:Fr.string});const Zs=sn("MuiButtonBase",["root","disabled","focusVisible"]),Xs=ss("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"},[`&.${Zs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ys=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:h=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:f,LinkComponent:m="a",onBlur:_,onClick:g,onContextMenu:y,onDragLeave:x,onFocus:v,onFocusVisible:b,onKeyDown:w,onKeyUp:T,onMouseDown:S,onMouseLeave:E,onMouseUp:M,onTouchEnd:A,onTouchMove:C,onTouchStart:I,tabIndex:P=0,TouchRippleProps:R,touchRippleRef:z,type:D,...L}=i,k=s.useRef(null),O=Fs.use(),B=Qn(O.ref,z),[F,N]=s.useState(!1);u&&F&&N(!1),s.useImperativeHandle(n,(()=>({focusVisible:()=>{N(!0),k.current.focus()}})),[]);const V=O.shouldMount&&!h&&!u;function j(e,t,r=d){return Kn((i=>{t&&t(i);return r||O[e](i),!0}))}s.useEffect((()=>{F&&p&&!h&&O.pulsate()}),[h,p,F,O]);const U=j("start",S),$=j("stop",y),G=j("stop",x),q=j("stop",M),H=j("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),W=j("start",I),Z=j("stop",A),X=j("stop",C),Y=j("stop",(e=>{oo(e.target)||N(!1),_&&_(e)}),!1),J=Kn((e=>{k.current||(k.current=e.currentTarget),oo(e.target)&&(N(!0),b&&b(e)),v&&v(e)})),K=()=>{const e=k.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},Q=Kn((e=>{p&&!e.repeat&&F&&" "===e.key&&O.stop(e,(()=>{O.start(e)})),e.target===e.currentTarget&&K()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&K()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))})),ee=Kn((e=>{p&&" "===e.key&&F&&!e.defaultPrevented&&O.stop(e,(()=>{O.pulsate(e)})),T&&T(e),g&&e.target===e.currentTarget&&K()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let te=c;"button"===te&&(L.href||L.to)&&(te=m);const re={};"button"===te?(re.type=void 0===D?"button":D,re.disabled=u):(L.href||L.to||(re.role="button"),u&&(re["aria-disabled"]=u));const ie=Qn(r,k),ne={...i,centerRipple:o,component:c,disabled:u,disableRipple:h,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:F},oe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:n}=e,o=uo({root:["root",t&&"disabled",r&&"focusVisible"]},Ws,n);return r&&i&&(o.root+=` ${i}`),o})(ne);return e.jsxs(Xs,{as:te,className:rn(oe.root,l),ownerState:ne,onBlur:Y,onClick:g,onContextMenu:$,onFocus:J,onKeyDown:Q,onKeyUp:ee,onMouseDown:U,onMouseLeave:H,onMouseUp:q,onDragLeave:G,onTouchEnd:Z,onTouchMove:X,onTouchStart:W,ref:ie,tabIndex:u?-1:P,type:D,...re,...L,children:[a,V?e.jsx(Hs,{ref:B,center:o,...R}):null]})}));function Js(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}function Ks(e){return on("MuiTypography",e)}"production"!==process.env.NODE_ENV&&(Ys.propTypes={action:Hn,centerRipple:Fr.bool,children:Fr.node,classes:Fr.object,className:Fr.string,component:$n,disabled:Fr.bool,disableRipple:Fr.bool,disableTouchRipple:Fr.bool,focusRipple:Fr.bool,focusVisibleClassName:Fr.string,href:Fr.any,LinkComponent:Fr.elementType,onBlur:Fr.func,onClick:Fr.func,onContextMenu:Fr.func,onDragLeave:Fr.func,onFocus:Fr.func,onFocusVisible:Fr.func,onKeyDown:Fr.func,onKeyUp:Fr.func,onMouseDown:Fr.func,onMouseLeave:Fr.func,onMouseUp:Fr.func,onTouchEnd:Fr.func,onTouchMove:Fr.func,onTouchStart:Fr.func,sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),tabIndex:Fr.number,TouchRippleProps:Fr.object,touchRippleRef:Fr.oneOfType([Fr.func,Fr.shape({current:Fr.shape({pulsate:Fr.func.isRequired,start:Fr.func.isRequired,stop:Fr.func.isRequired})})]),type:Fr.oneOfType([Fr.oneOf(["button","reset","submit"]),Fr.string])}),sn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qs={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ea=Ki,ta=ss("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Qr(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(as((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(Js()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${Qr(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),ra={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ia=s.forwardRef((function(t,r){const{color:i,...n}=ls({props:t,name:"MuiTypography"}),o=ea({...n,...!Qs[i]&&{color:i}}),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:h=!1,variant:d="body1",variantMapping:p=ra,...f}=o,m={...o,align:s,color:i,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:h,variant:d,variantMapping:p},_=l||(h?"p":p[d]||ra[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:n,variant:o,classes:s}=e;return uo({root:["root",o,"inherit"!==e.align&&`align${Qr(t)}`,r&&"gutterBottom",i&&"noWrap",n&&"paragraph"]},Ks,s)})(m);return e.jsx(ta,{as:_,ref:r,className:rn(g.root,a),...f,ownerState:m,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...f.style}})}));"production"!==process.env.NODE_ENV&&(ia.propTypes={align:Fr.oneOf(["center","inherit","justify","left","right"]),children:Fr.node,classes:Fr.object,className:Fr.string,color:Fr.oneOfType([Fr.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),Fr.string]),component:Fr.elementType,gutterBottom:Fr.bool,noWrap:Fr.bool,paragraph:Fr.bool,style:Fr.object,sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),variant:Fr.oneOfType([Fr.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Fr.string]),variantMapping:Fr.object});var na="top",oa="bottom",sa="right",aa="left",la="auto",ca=[na,oa,sa,aa],ua="start",ha="end",da="viewport",pa="popper",fa=ca.reduce((function(e,t){return e.concat([t+"-"+ua,t+"-"+ha])}),[]),ma=[].concat(ca,[la]).reduce((function(e,t){return e.concat([t,t+"-"+ua,t+"-"+ha])}),[]),_a=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ga(e){return e?(e.nodeName||"").toLowerCase():null}function ya(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){return e instanceof ya(e).Element||e instanceof Element}function va(e){return e instanceof ya(e).HTMLElement||e instanceof HTMLElement}function ba(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ya(e).ShadowRoot||e instanceof ShadowRoot)}var wa={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},i=t.attributes[e]||{},n=t.elements[e];va(n)&&ga(n)&&(Object.assign(n.style,r),Object.keys(i).forEach((function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var i=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});va(i)&&ga(i)&&(Object.assign(i.style,o),Object.keys(n).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ta(e){return e.split("-")[0]}var Sa=Math.max,Ea=Math.min,Ma=Math.round;function Aa(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ca(){return!/^((?!chrome|android).)*safari/i.test(Aa())}function Ia(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var i=e.getBoundingClientRect(),n=1,o=1;t&&va(e)&&(n=e.offsetWidth>0&&Ma(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ma(i.height)/e.offsetHeight||1);var s=(xa(e)?ya(e):window).visualViewport,a=!Ca()&&r,l=(i.left+(a&&s?s.offsetLeft:0))/n,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/n,h=i.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Pa(e){var t=Ia(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Ra(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ba(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function za(e){return ya(e).getComputedStyle(e)}function Da(e){return["table","td","th"].indexOf(ga(e))>=0}function La(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function ka(e){return"html"===ga(e)?e:e.assignedSlot||e.parentNode||(ba(e)?e.host:null)||La(e)}function Oa(e){return va(e)&&"fixed"!==za(e).position?e.offsetParent:null}function Ba(e){for(var t=ya(e),r=Oa(e);r&&Da(r)&&"static"===za(r).position;)r=Oa(r);return r&&("html"===ga(r)||"body"===ga(r)&&"static"===za(r).position)?t:r||function(e){var t=/firefox/i.test(Aa());if(/Trident/i.test(Aa())&&va(e)&&"fixed"===za(e).position)return null;var r=ka(e);for(ba(r)&&(r=r.host);va(r)&&["html","body"].indexOf(ga(r))<0;){var i=za(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||t}function Fa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Na(e,t,r){return Sa(e,Ea(t,r))}function Va(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ja(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var Ua={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,i=e.name,n=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,a=Ta(r.placement),l=Fa(a),c=[aa,sa].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return Va("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ja(e,ca))}(n.padding,r),h=Pa(o),d="y"===l?na:aa,p="y"===l?oa:sa,f=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],_=Ba(o),g=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,y=f/2-m/2,x=u[d],v=g-h[c]-u[p],b=g/2-h[c]/2+y,w=Na(x,b,v),T=l;r.modifiersData[i]=((t={})[T]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,r=e.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ra(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $a(e){return e.split("-")[1]}var Ga={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qa(e){var t,r=e.popper,i=e.popperRect,n=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=s.x,p=void 0===d?0:d,f=s.y,m=void 0===f?0:f,_="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=aa,v=na,b=window;if(c){var w=Ba(r),T="clientHeight",S="clientWidth";if(w===ya(r)&&"static"!==za(w=La(r)).position&&"absolute"===a&&(T="scrollHeight",S="scrollWidth"),n===na||(n===aa||n===sa)&&o===ha)v=oa,m-=(h&&w===b&&b.visualViewport?b.visualViewport.height:w[T])-i.height,m*=l?1:-1;if(n===aa||(n===na||n===oa)&&o===ha)x=sa,p-=(h&&w===b&&b.visualViewport?b.visualViewport.width:w[S])-i.width,p*=l?1:-1}var E,M=Object.assign({position:a},c&&Ga),A=!0===u?function(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:Ma(r*n)/n||0,y:Ma(i*n)/n||0}}({x:p,y:m},ya(r)):{x:p,y:m};return p=A.x,m=A.y,l?Object.assign({},M,((E={})[v]=y?"0":"",E[x]=g?"0":"",E.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},M,((t={})[v]=y?m+"px":"",t[x]=g?p+"px":"",t.transform="",t))}var Ha={passive:!0};var Wa={left:"right",right:"left",bottom:"top",top:"bottom"};function Za(e){return e.replace(/left|right|bottom|top/g,(function(e){return Wa[e]}))}var Xa={start:"end",end:"start"};function Ya(e){return e.replace(/start|end/g,(function(e){return Xa[e]}))}function Ja(e){var t=ya(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ka(e){return Ia(La(e)).left+Ja(e).scrollLeft}function Qa(e){var t=za(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function el(e){return["html","body","#document"].indexOf(ga(e))>=0?e.ownerDocument.body:va(e)&&Qa(e)?e:el(ka(e))}function tl(e,t){var r;void 0===t&&(t=[]);var i=el(e),n=i===(null==(r=e.ownerDocument)?void 0:r.body),o=ya(i),s=n?[o].concat(o.visualViewport||[],Qa(i)?i:[]):i,a=t.concat(s);return n?a:a.concat(tl(ka(s)))}function rl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function il(e,t,r){return t===da?rl(function(e,t){var r=ya(e),i=La(e),n=r.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(n){o=n.width,s=n.height;var c=Ca();(c||!c&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:s,x:a+Ka(e),y:l}}(e,r)):xa(t)?function(e,t){var r=Ia(e,!1,"fixed"===t);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}(t,r):rl(function(e){var t,r=La(e),i=Ja(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=Sa(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Sa(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Ka(e),l=-i.scrollTop;return"rtl"===za(n||r).direction&&(a+=Sa(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(La(e)))}function nl(e,t,r,i){var n="clippingParents"===t?function(e){var t=tl(ka(e)),r=["absolute","fixed"].indexOf(za(e).position)>=0&&va(e)?Ba(e):e;return xa(r)?t.filter((function(e){return xa(e)&&Ra(e,r)&&"body"!==ga(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),s=o[0],a=o.reduce((function(t,r){var n=il(e,r,i);return t.top=Sa(n.top,t.top),t.right=Ea(n.right,t.right),t.bottom=Ea(n.bottom,t.bottom),t.left=Sa(n.left,t.left),t}),il(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ol(e){var t,r=e.reference,i=e.element,n=e.placement,o=n?Ta(n):null,s=n?$a(n):null,a=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2;switch(o){case na:t={x:a,y:r.y-i.height};break;case oa:t={x:a,y:r.y+r.height};break;case sa:t={x:r.x+r.width,y:l};break;case aa:t={x:r.x-i.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?Fa(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case ua:t[c]=t[c]-(r[u]/2-i[u]/2);break;case ha:t[c]=t[c]+(r[u]/2-i[u]/2)}}return t}function sl(e,t){void 0===t&&(t={});var r=t,i=r.placement,n=void 0===i?e.placement:i,o=r.strategy,s=void 0===o?e.strategy:o,a=r.boundary,l=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?da:c,h=r.elementContext,d=void 0===h?pa:h,p=r.altBoundary,f=void 0!==p&&p,m=r.padding,_=void 0===m?0:m,g=Va("number"!=typeof _?_:ja(_,ca)),y=d===pa?"reference":pa,x=e.rects.popper,v=e.elements[f?y:d],b=nl(xa(v)?v:v.contextElement||La(e.elements.popper),l,u,s),w=Ia(e.elements.reference),T=ol({reference:w,element:x,strategy:"absolute",placement:n}),S=rl(Object.assign({},x,T)),E=d===pa?S:w,M={top:b.top-E.top+g.top,bottom:E.bottom-b.bottom+g.bottom,left:b.left-E.left+g.left,right:E.right-b.right+g.right},A=e.modifiersData.offset;if(d===pa&&A){var C=A[n];Object.keys(M).forEach((function(e){var t=[sa,oa].indexOf(e)>=0?1:-1,r=[na,oa].indexOf(e)>=0?"y":"x";M[e]+=C[r]*t}))}return M}function al(e,t){void 0===t&&(t={});var r=t,i=r.placement,n=r.boundary,o=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?ma:l,u=$a(i),h=u?a?fa:fa.filter((function(e){return $a(e)===u})):ca,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var p=d.reduce((function(t,r){return t[r]=sl(e,{placement:r,boundary:n,rootBoundary:o,padding:s})[Ta(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var ll={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,o=void 0===n||n,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,h=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,f=void 0===p||p,m=r.allowedAutoPlacements,_=t.options.placement,g=Ta(_),y=l||(g===_||!f?[Za(_)]:function(e){if(Ta(e)===la)return[];var t=Za(e);return[Ya(e),t,Ya(t)]}(_)),x=[_].concat(y).reduce((function(e,r){return e.concat(Ta(r)===la?al(t,{placement:r,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):r)}),[]),v=t.rects.reference,b=t.rects.popper,w=new Map,T=!0,S=x[0],E=0;E<x.length;E++){var M=x[E],A=Ta(M),C=$a(M)===ua,I=[na,oa].indexOf(A)>=0,P=I?"width":"height",R=sl(t,{placement:M,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),z=I?C?sa:aa:C?oa:na;v[P]>b[P]&&(z=Za(z));var D=Za(z),L=[];if(o&&L.push(R[A]<=0),a&&L.push(R[z]<=0,R[D]<=0),L.every((function(e){return e}))){S=M,T=!1;break}w.set(M,L)}if(T)for(var k=function(e){var t=x.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},O=f?3:1;O>0;O--){if("break"===k(O))break}t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function cl(e,t,r){return void 0===r&&(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 ul(e){return[na,sa,oa,aa].some((function(t){return e[t]>=0}))}var hl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,i=e.name,n=r.offset,o=void 0===n?[0,0]:n,s=ma.reduce((function(e,r){return e[r]=function(e,t,r){var i=Ta(e),n=[aa,na].indexOf(i)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=o[0],a=o[1];return s=s||0,a=(a||0)*n,[aa,sa].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(r,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var dl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,o=void 0===n||n,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,h=r.padding,d=r.tether,p=void 0===d||d,f=r.tetherOffset,m=void 0===f?0:f,_=sl(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),g=Ta(t.placement),y=$a(t.placement),x=!y,v=Fa(g),b="x"===v?"y":"x",w=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,M="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(o){var I,P="y"===v?na:aa,R="y"===v?oa:sa,z="y"===v?"height":"width",D=w[v],L=D+_[P],k=D-_[R],O=p?-S[z]/2:0,B=y===ua?T[z]:S[z],F=y===ua?-S[z]:-T[z],N=t.elements.arrow,V=p&&N?Pa(N):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=j[P],$=j[R],G=Na(0,T[z],V[z]),q=x?T[z]/2-O-G-U-M.mainAxis:B-G-U-M.mainAxis,H=x?-T[z]/2+O+G+$+M.mainAxis:F+G+$+M.mainAxis,W=t.elements.arrow&&Ba(t.elements.arrow),Z=W?"y"===v?W.clientTop||0:W.clientLeft||0:0,X=null!=(I=null==A?void 0:A[v])?I:0,Y=D+H-X,J=Na(p?Ea(L,D+q-X-Z):L,D,p?Sa(k,Y):k);w[v]=J,C[v]=J-D}if(a){var K,Q="x"===v?na:aa,ee="x"===v?oa:sa,te=w[b],re="y"===b?"height":"width",ie=te+_[Q],ne=te-_[ee],oe=-1!==[na,aa].indexOf(g),se=null!=(K=null==A?void 0:A[b])?K:0,ae=oe?ie:te-T[re]-S[re]-se+M.altAxis,le=oe?te+T[re]+S[re]-se-M.altAxis:ne,ce=p&&oe?function(e,t,r){var i=Na(e,t,r);return i>r?r:i}(ae,te,le):Na(p?ae:ie,te,p?le:ne);w[b]=ce,C[b]=ce-te}t.modifiersData[i]=C}},requiresIfExists:["offset"]};function pl(e,t,r){void 0===r&&(r=!1);var i=va(t),n=va(t)&&function(e){var t=e.getBoundingClientRect(),r=Ma(t.width)/e.offsetWidth||1,i=Ma(t.height)/e.offsetHeight||1;return 1!==r||1!==i}(t),o=La(t),s=Ia(e,n,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&(("body"!==ga(t)||Qa(o))&&(a=function(e){return e!==ya(e)&&va(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ja(e);var t}(t)),va(t)?((l=Ia(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ka(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function fl(e){var t=new Map,r=new Set,i=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var i=t.get(e);i&&n(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),i}var ml={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gl(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,i=void 0===r?[]:r,n=t.defaultOptions,o=void 0===n?ml:n;return function(e,t,r){void 0===r&&(r=o);var n,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ml,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n="function"==typeof r?r(a.options):r;h(),a.options=Object.assign({},o,a.options,n),a.scrollParents={reference:xa(e)?tl(e):e.contextElement?tl(e.contextElement):[],popper:tl(t)};var s,c,d=function(e){var t=fl(e);return _a.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,i=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var o=n({state:a,name:t,instance:u,options:i}),s=function(){};l.push(o||s)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,r=e.popper;if(_l(t,r)){a.rects={reference:pl(t,Ba(r),"fixed"===a.options.strategy),popper:Pa(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var n=a.orderedModifiers[i],o=n.fn,s=n.options,l=void 0===s?{}:s,h=n.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(n=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(n())}))}))),s}),destroy:function(){h(),c=!0}};if(!_l(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var yl=gl({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,o=void 0===n||n,s=i.resize,a=void 0===s||s,l=ya(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,Ha)})),a&&l.addEventListener("resize",r.update,Ha),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Ha)})),a&&l.removeEventListener("resize",r.update,Ha)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ol({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=void 0===i||i,o=r.adaptive,s=void 0===o||o,a=r.roundOffsets,l=void 0===a||a,c={placement:Ta(t.placement),variation:$a(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},wa,hl,ll,dl,Ua,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,s=sl(t,{elementContext:"reference"}),a=sl(t,{altBoundary:!0}),l=cl(s,i),c=cl(a,n,o),u=ul(l),h=ul(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]});const xl=s.forwardRef((function(t,r){const{children:i,container:n,disablePortal:o=!1}=t,[l,c]=s.useState(null),u=Qn(s.isValidElement(i)?mo(i):null,r);if(En((()=>{o||c(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),En((()=>{if(l&&!o)return Zn(r,l),()=>{Zn(r,null)}}),[r,l,o]),o){if(s.isValidElement(i)){const e={ref:u};return s.cloneElement(i,e)}return e.jsx(s.Fragment,{children:i})}return e.jsx(s.Fragment,{children:l?a.createPortal(i,l):l})}));function vl(e){return on("MuiPopper",e)}function bl(e){return"function"==typeof e?e():e}function wl(e){return void 0!==e.nodeType}"production"!==process.env.NODE_ENV&&(xl.propTypes={children:Fr.node,container:Fr.oneOfType([qn,Fr.func]),disablePortal:Fr.bool}),"production"!==process.env.NODE_ENV&&(xl.propTypes=function(e){return"production"===process.env.NODE_ENV?e:{...e,[Gn]:t=>{const r=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}(xl.propTypes)),sn("MuiPopper",["root"]);const Tl={},Sl=s.forwardRef((function(t,r){const{anchorEl:i,children:n,direction:o,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:h,popperRef:d,slotProps:p={},slots:f={},TransitionProps:m,ownerState:_,...g}=t,y=s.useRef(null),x=Qn(y,r),v=s.useRef(null),b=Qn(v,d),w=s.useRef(b);En((()=>{w.current=b}),[b]),s.useImperativeHandle(d,(()=>v.current),[]);const T=function(e,t){if("ltr"===t)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}}(u,o),[S,E]=s.useState(T),[M,A]=s.useState(bl(i));s.useEffect((()=>{v.current&&v.current.forceUpdate()})),s.useEffect((()=>{i&&A(bl(i))}),[i]),En((()=>{if(!M||!c)return;if("production"!==process.env.NODE_ENV&&M&&wl(M)&&1===M.nodeType){const e=M.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const t=yl(M,y.current,{placement:T,...h,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}}),[M,a,l,c,h,T]);const C={placement:S};null!==m&&(C.TransitionProps=m);const I=(e=>{const{classes:t}=e;return uo({root:["root"]},vl,t)})(t),P=f.root??"div",R=function(e){const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:n=!1,...o}=e,s=n?{}:function(e,t){return"function"==typeof e?e(t,void 0):e}(r,i),{props:a,internalRef:l}=fo({...o,externalSlotProps:s});return ho(t,{...a,ref:Qn(l,s?.ref,e.additionalProps?.ref)},i)}({elementType:P,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:I.root});return e.jsx(P,{...R,children:"function"==typeof n?n(C):n})})),El=s.forwardRef((function(t,r){const{anchorEl:i,children:n,container:o,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:h,placement:d="bottom",popperOptions:p=Tl,popperRef:f,style:m,transition:_=!1,slotProps:g={},slots:y={},...x}=t,[v,b]=s.useState(!0);if(!c&&!h&&(!_||v))return null;let w;if(o)w=o;else if(i){const e=bl(i);w=e&&wl(e)?Wn(e).body:Wn(null).body}const T=h||!c||_&&!v?void 0:"none",S=_?{in:h,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0;return e.jsx(xl,{disablePortal:l,container:w,children:e.jsx(Sl,{anchorEl:i,direction:a,disablePortal:l,modifiers:u,ref:r,open:_?!v:h,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:y,...x,style:{position:"fixed",top:0,left:0,display:T,...m},TransitionProps:S,children:n})})}));"production"!==process.env.NODE_ENV&&(El.propTypes={anchorEl:Vn(Fr.oneOfType([qn,Fr.object,Fr.func]),(e=>{if(e.open){const t=bl(e.anchorEl);if(t&&wl(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||!wl(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join("\n"))}return null})),children:Fr.oneOfType([Fr.node,Fr.func]),container:Fr.oneOfType([qn,Fr.func]),direction:Fr.oneOf(["ltr","rtl"]),disablePortal:Fr.bool,keepMounted:Fr.bool,modifiers:Fr.arrayOf(Fr.shape({data:Fr.object,effect:Fr.func,enabled:Fr.bool,fn:Fr.func,name:Fr.any,options:Fr.object,phase:Fr.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Fr.arrayOf(Fr.string),requiresIfExists:Fr.arrayOf(Fr.string)})),open:Fr.bool.isRequired,placement:Fr.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Fr.shape({modifiers:Fr.array,onFirstUpdate:Fr.func,placement:Fr.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Fr.oneOf(["absolute","fixed"])}),popperRef:Hn,slotProps:Fr.shape({root:Fr.oneOfType([Fr.func,Fr.object])}),slots:Fr.shape({root:Fr.elementType}),transition:Fr.bool});const Ml=ss(El,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Al=s.forwardRef((function(t,r){const i=go(),n=ls({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:h,modifiers:d,open:p,placement:f,popperOptions:m,popperRef:_,transition:g,slots:y,slotProps:x,...v}=n,b=y?.root??a?.Root,w={anchorEl:o,container:c,disablePortal:u,keepMounted:h,modifiers:d,open:p,placement:f,popperOptions:m,popperRef:_,transition:g,...v};return e.jsx(Ml,{as:s,direction:i?"rtl":"ltr",slots:{root:b},slotProps:x??l,...w,ref:r})}));"production"!==process.env.NODE_ENV&&(Al.propTypes={anchorEl:Fr.oneOfType([qn,Fr.object,Fr.func]),children:Fr.oneOfType([Fr.node,Fr.func]),component:Fr.elementType,components:Fr.shape({Root:Fr.elementType}),componentsProps:Fr.shape({root:Fr.oneOfType([Fr.func,Fr.object])}),container:Fr.oneOfType([qn,Fr.func]),disablePortal:Fr.bool,keepMounted:Fr.bool,modifiers:Fr.arrayOf(Fr.shape({data:Fr.object,effect:Fr.func,enabled:Fr.bool,fn:Fr.func,name:Fr.any,options:Fr.object,phase:Fr.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:Fr.arrayOf(Fr.string),requiresIfExists:Fr.arrayOf(Fr.string)})),open:Fr.bool.isRequired,placement:Fr.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:Fr.shape({modifiers:Fr.array,onFirstUpdate:Fr.func,placement:Fr.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:Fr.oneOf(["absolute","fixed"])}),popperRef:Hn,slotProps:Fr.shape({root:Fr.oneOfType([Fr.func,Fr.object])}),slots:Fr.shape({root:Fr.elementType}),sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),transition:Fr.bool});const Cl=sn("MuiBox",["root"]),Il=is(),Pl=function(t={}){const{themeId:r,defaultTheme:i,defaultClassName:n="MuiBox-root",generateClassName:o}=t,a=Nr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Hi);return s.forwardRef((function(t,s){const l=Ji(i),{className:c,component:u="div",...h}=Ki(t);return e.jsx(a,{as:u,ref:s,className:rn(c,o?o(n):n),theme:r&&l[r]||l,...h})}))}({themeId:pe,defaultTheme:Il,defaultClassName:Cl.root,generateClassName:en.generate});function Rl(e){return on("MuiCard",e)}"production"!==process.env.NODE_ENV&&(Pl.propTypes={children:Fr.node,component:Fr.elementType,sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object])}),sn("MuiCard",["root"]);const zl=ss(Bs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),Dl=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiCard"}),{className:n,raised:o=!1,...s}=i,a={...i,raised:o},l=(e=>{const{classes:t}=e;return uo({root:["root"]},Rl,t)})(a);return e.jsx(zl,{className:rn(l.root,n),elevation:o?8:void 0,ref:r,ownerState:a,...s})}));function Ll(e){return on("MuiCardContent",e)}"production"!==process.env.NODE_ENV&&(Dl.propTypes={children:Fr.node,classes:Fr.object,className:Fr.string,raised:Vn(Fr.bool,(e=>e.raised&&"outlined"===e.variant?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null)),sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object])}),sn("MuiCardContent",["root"]);const kl=ss("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Ol=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiCardContent"}),{className:n,component:o="div",...s}=i,a={...i,component:o},l=(e=>{const{classes:t}=e;return uo({root:["root"]},Ll,t)})(a);return e.jsx(kl,{as:o,className:rn(l.root,n),ownerState:a,ref:r,...s})}));function Bl(e){return`scale(${e}, ${e**2})`}"production"!==process.env.NODE_ENV&&(Ol.propTypes={children:Fr.node,classes:Fr.object,className:Fr.string,component:Fr.elementType,sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object])});const Fl={entering:{opacity:1,transform:Bl(1)},entered:{opacity:1,transform:"none"}},Nl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vl=s.forwardRef((function(t,r){const{addEndListener:i,appear:n=!0,children:o,easing:a,in:l,onEnter:c,onEntered:u,onEntering:h,onExit:d,onExited:p,onExiting:f,style:m,timeout:_="auto",TransitionComponent:g=As,...y}=t,x=no(),v=s.useRef(),b=os(),w=s.useRef(null),T=Qn(w,mo(o),r),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},E=S(h),M=S(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:r,delay:i,easing:n}=Ls({style:m,timeout:_,easing:a},{mode:"enter"});let o;"auto"===_?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=r,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:i}),b.transitions.create("transform",{duration:Nl?o:.666*o,delay:i,easing:n})].join(","),c&&c(e,t)})),A=S(u),C=S(f),I=S((e=>{const{duration:t,delay:r,easing:i}=Ls({style:m,timeout:_,easing:a},{mode:"exit"});let n;"auto"===_?(n=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=n):n=t,e.style.transition=[b.transitions.create("opacity",{duration:n,delay:r}),b.transitions.create("transform",{duration:Nl?n:.666*n,delay:Nl?r:r||.333*n,easing:i})].join(","),e.style.opacity=0,e.style.transform=Bl(.75),d&&d(e)})),P=S(p);return e.jsx(g,{appear:n,in:l,nodeRef:w,onEnter:M,onEntered:A,onEntering:E,onExit:I,onExited:P,onExiting:C,addEndListener:e=>{"auto"===_&&x.start(v.current||0,e),i&&i(w.current,e)},timeout:"auto"===_?null:_,...y,children:(e,t)=>s.cloneElement(o,{style:{opacity:0,transform:Bl(.75),visibility:"exited"!==e||l?void 0:"hidden",...Fl[e],...m,...o.props.style},ref:T,...t})})}));function jl(e){return on("MuiTooltip",e)}"production"!==process.env.NODE_ENV&&(Vl.propTypes={addEndListener:Fr.func,appear:Fr.bool,children:Un.isRequired,easing:Fr.oneOfType([Fr.shape({enter:Fr.string,exit:Fr.string}),Fr.string]),in:Fr.bool,onEnter:Fr.func,onEntered:Fr.func,onEntering:Fr.func,onExit:Fr.func,onExited:Fr.func,onExiting:Fr.func,style:Fr.object,timeout:Fr.oneOfType([Fr.oneOf(["auto"]),Fr.number,Fr.shape({appear:Fr.number,enter:Fr.number,exit:Fr.number})])}),Vl&&(Vl.muiSupportAuto=!0);const Ul=sn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const $l=ss(Al,{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]}})(as((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ul.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ul.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ul.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ul.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ul.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Ul.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ul.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Ul.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),Gl=ss("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${Qr(r.placement.split("-")[0])}`]]}})(as((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dn(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,[`.${Ul.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ul.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ul.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ul.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Ul.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ul.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Ul.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ul.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Ul.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ul.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Ul.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ul.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ul.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Ul.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),ql=ss("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(as((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Dn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let Hl=!1;const Wl=new io;let Zl={x:0,y:0};function Xl(e,t){return(r,...i)=>{t&&t(r,...i),e(r,...i)}}const Yl=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiTooltip"}),{arrow:n=!1,children:o,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:h=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:m=100,enterNextDelay:_=0,enterTouchDelay:g=700,followCursor:y=!1,id:x,leaveDelay:v=0,leaveTouchDelay:b=1500,onClose:w,onOpen:T,open:S,placement:E="bottom",PopperComponent:M,PopperProps:A={},slotProps:C={},slots:I={},title:P,TransitionComponent:R=Vl,TransitionProps:z,...D}=i,L=s.isValidElement(o)?o:e.jsx("span",{children:o}),k=os(),O=go(),[B,F]=s.useState(),[N,V]=s.useState(null),j=s.useRef(!1),U=p||y,$=no(),G=no(),q=no(),H=no(),[W,Z]=function({controlled:e,default:t,name:r,state:i="value"}){const{current:n}=s.useRef(void 0!==e),[o,a]=s.useState(t),l=n?e:o;if("production"!==process.env.NODE_ENV){s.useEffect((()=>{n!==(void 0!==e)&&console.error([`MUI: A component is changing the ${n?"":"un"}controlled ${i} state of ${r} to be ${n?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[i,r,e]);const{current:o}=s.useRef(t);s.useEffect((()=>{n||Object.is(o,t)||console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"))}),[JSON.stringify(t)])}return[l,s.useCallback((e=>{n||a(e)}),[])]}({controlled:S,default:!1,name:"Tooltip",state:"open"});let X=W;if("production"!==process.env.NODE_ENV){const{current:e}=s.useRef(void 0!==S);s.useEffect((()=>{B&&B.disabled&&!e&&""!==P&&"button"===B.tagName.toLowerCase()&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))}),[P,B,e])}const Y=Jn(x),J=s.useRef(),K=Kn((()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),H.clear()}));s.useEffect((()=>K),[K]);const Q=e=>{Wl.clear(),Hl=!0,Z(!0),T&&!X&&T(e)},ee=Kn((e=>{Wl.start(800+v,(()=>{Hl=!1})),Z(!1),w&&X&&w(e),$.start(k.transitions.duration.shortest,(()=>{j.current=!1}))})),te=e=>{j.current&&"touchstart"!==e.type||(B&&B.removeAttribute("title"),G.clear(),q.clear(),m||Hl&&_?G.start(Hl?_:m,(()=>{Q(e)})):Q(e))},re=e=>{G.clear(),q.start(v,(()=>{ee(e)}))},[,ie]=s.useState(!1),ne=e=>{oo(e.target)||(ie(!1),re(e))},oe=e=>{B||F(e.currentTarget),oo(e.target)&&(ie(!0),te(e))},se=e=>{j.current=!0;const t=L.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{se(e),q.clear(),$.clear(),K(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",H.start(g,(()=>{document.body.style.WebkitUserSelect=J.current,te(e)}))},le=e=>{L.props.onTouchEnd&&L.props.onTouchEnd(e),K(),q.start(b,(()=>{ee(e)}))};s.useEffect((()=>{if(X)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}}),[ee,X]);const ce=Qn(mo(L),F,r);P||0===P||(X=!1);const ue=s.useRef(),he={},de="string"==typeof P;u?(he.title=X||!de||d?null:P,he["aria-describedby"]=X?Y:null):(he["aria-label"]=de?P:null,he["aria-labelledby"]=X&&!de?Y:null);const pe={...he,...D,...L.props,className:rn(D.className,L.props.className),onTouchStart:se,ref:ce,...y?{onMouseMove:e=>{const t=L.props;t.onMouseMove&&t.onMouseMove(e),Zl={x:e.clientX,y:e.clientY},ue.current&&ue.current.update()}}:{}};"production"!==process.env.NODE_ENV&&(pe["data-mui-internal-clone-element"]=!0,s.useEffect((()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join("\n"))}),[B]));const fe={};f||(pe.onTouchStart=ae,pe.onTouchEnd=le),d||(pe.onMouseOver=Xl(te,pe.onMouseOver),pe.onMouseLeave=Xl(re,pe.onMouseLeave),U||(fe.onMouseOver=te,fe.onMouseLeave=re)),h||(pe.onFocus=Xl(oe,pe.onFocus),pe.onBlur=Xl(ne,pe.onBlur),U||(fe.onFocus=oe,fe.onBlur=ne)),"production"!==process.env.NODE_ENV&&L.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${L.props.title}\` or the Tooltip component.`].join("\n"));const me=s.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(N),options:{element:N,padding:4}}];return A.popperOptions?.modifiers&&(e=e.concat(A.popperOptions.modifiers)),{...A.popperOptions,modifiers:e}}),[N,A]),_e={...i,isRtl:O,arrow:n,disableInteractive:U,placement:E,PopperComponentProp:M,touch:j.current},ge=(e=>{const{classes:t,disableInteractive:r,arrow:i,touch:n,placement:o}=e;return uo({popper:["popper",!r&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",n&&"touch",`tooltipPlacement${Qr(o.split("-")[0])}`],arrow:["arrow"]},jl,t)})(_e),ye=I.popper??l.Popper??$l,xe=I.transition??l.Transition??R??Vl,ve=I.tooltip??l.Tooltip??Gl,be=I.arrow??l.Arrow??ql,we=ho(ye,{...A,...C.popper??c.popper,className:rn(ge.popper,A?.className,(C.popper??c.popper)?.className)},_e),Te=ho(xe,{...z,...C.transition??c.transition},_e),Se=ho(ve,{...C.tooltip??c.tooltip,className:rn(ge.tooltip,(C.tooltip??c.tooltip)?.className)},_e),Ee=ho(be,{...C.arrow??c.arrow,className:rn(ge.arrow,(C.arrow??c.arrow)?.className)},_e);return e.jsxs(s.Fragment,{children:[s.cloneElement(L,pe),e.jsx(ye,{as:M??Al,placement:E,anchorEl:y?{getBoundingClientRect:()=>({top:Zl.y,left:Zl.x,right:Zl.x,bottom:Zl.y,width:0,height:0})}:B,popperRef:ue,open:!!B&&X,id:Y,transition:!0,...fe,...we,popperOptions:me,children:({TransitionProps:t})=>e.jsx(xe,{timeout:k.transitions.duration.shorter,...t,...Te,children:e.jsxs(ve,{...Se,children:[P,n?e.jsx(be,{...Ee,ref:V}):null]})})})]})}));function Jl(e){return on("MuiToggleButton",e)}"production"!==process.env.NODE_ENV&&(Yl.propTypes={arrow:Fr.bool,children:Un.isRequired,classes:Fr.object,className:Fr.string,components:Fr.shape({Arrow:Fr.elementType,Popper:Fr.elementType,Tooltip:Fr.elementType,Transition:Fr.elementType}),componentsProps:Fr.shape({arrow:Fr.object,popper:Fr.object,tooltip:Fr.object,transition:Fr.object}),describeChild:Fr.bool,disableFocusListener:Fr.bool,disableHoverListener:Fr.bool,disableInteractive:Fr.bool,disableTouchListener:Fr.bool,enterDelay:Fr.number,enterNextDelay:Fr.number,enterTouchDelay:Fr.number,followCursor:Fr.bool,id:Fr.string,leaveDelay:Fr.number,leaveTouchDelay:Fr.number,onClose:Fr.func,onOpen:Fr.func,open:Fr.bool,placement:Fr.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:Fr.elementType,PopperProps:Fr.object,slotProps:Fr.shape({arrow:Fr.object,popper:Fr.object,tooltip:Fr.object,transition:Fr.object}),slots:Fr.shape({arrow:Fr.elementType,popper:Fr.elementType,tooltip:Fr.elementType,transition:Fr.elementType}),sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),title:Fr.node,TransitionComponent:Fr.elementType,TransitionProps:Fr.object});const Kl=sn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Ql=s.createContext({});"production"!==process.env.NODE_ENV&&(Ql.displayName="ToggleButtonGroupContext");const ec=s.createContext(void 0);function tc(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}"production"!==process.env.NODE_ENV&&(ec.displayName="ToggleButtonGroupButtonContext");const rc=ss(Ys,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${Qr(r.size)}`]]}})(as((({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Kl.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Kl.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dn(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Js()).map((([t])=>({props:{color:t},style:{[`&.${Kl.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dn(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette[t].main,e.palette.action.selectedOpacity)}}}}}))),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]})))),ic=s.forwardRef((function(t,r){const{value:i,...n}=s.useContext(Ql),o=s.useContext(ec),a=ls({props:Sn({...n,selected:tc(t.value,i)},t),name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:h=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:f,onClick:m,selected:_,size:g="medium",value:y,...x}=a,v={...a,color:u,disabled:h,disableFocusRipple:d,fullWidth:p,size:g},b=(e=>{const{classes:t,fullWidth:r,selected:i,disabled:n,size:o,color:s}=e;return uo({root:["root",i&&"selected",n&&"disabled",r&&"fullWidth",`size${Qr(o)}`,s]},Jl,t)})(v),w=o||"";return e.jsx(rc,{className:rn(n.className,b.root,c,w),disabled:h,focusRipple:!d,ref:r,onClick:e=>{m&&(m(e,y),e.defaultPrevented)||f&&f(e,y)},onChange:f,value:y,ownerState:v,"aria-pressed":_,...x,children:l})}));function nc(e){return on("MuiToggleButtonGroup",e)}"production"!==process.env.NODE_ENV&&(ic.propTypes={children:Fr.node,classes:Fr.object,className:Fr.string,color:Fr.oneOfType([Fr.oneOf(["standard","primary","secondary","error","info","success","warning"]),Fr.string]),disabled:Fr.bool,disableFocusRipple:Fr.bool,disableRipple:Fr.bool,fullWidth:Fr.bool,onChange:Fr.func,onClick:Fr.func,selected:Fr.bool,size:Fr.oneOfType([Fr.oneOf(["small","medium","large"]),Fr.string]),sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),value:Fr.any.isRequired});const oc=sn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),sc=ss("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${oc.grouped}`]:t.grouped},{[`& .${oc.grouped}`]:t[`grouped${Qr(r.orientation)}`]},{[`& .${oc.firstButton}`]:t.firstButton},{[`& .${oc.lastButton}`]:t.lastButton},{[`& .${oc.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})(as((({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${oc.grouped}`]:{[`&.${oc.selected} + .${oc.grouped}.${oc.selected}`]:{borderTop:0,marginTop:0}},[`& .${oc.firstButton},& .${oc.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${oc.lastButton},& .${oc.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${oc.lastButton}.${Kl.disabled},& .${oc.middleButton}.${Kl.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${oc.grouped}`]:{[`&.${oc.selected} + .${oc.grouped}.${oc.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${oc.firstButton},& .${oc.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${oc.lastButton},& .${oc.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${oc.lastButton}.${Kl.disabled},& .${oc.middleButton}.${Kl.disabled}`]:{borderLeft:"1px solid transparent"}}}]})))),ac=s.forwardRef((function(t,r){const i=ls({props:t,name:"MuiToggleButtonGroup"}),{children:n,className:o,color:a="standard",disabled:l=!1,exclusive:c=!1,fullWidth:u=!1,onChange:h,orientation:d="horizontal",size:p="medium",value:f,...m}=i,_={...i,disabled:l,fullWidth:u,orientation:d,size:p},g=(e=>{const{classes:t,orientation:r,fullWidth:i,disabled:n}=e;return uo({root:["root",r,i&&"fullWidth"],grouped:["grouped",`grouped${Qr(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},nc,t)})(_),y=s.useCallback(((e,t)=>{if(!h)return;const r=f&&f.indexOf(t);let i;f&&r>=0?(i=f.slice(),i.splice(r,1)):i=f?f.concat(t):[t],h(e,i)}),[h,f]),x=s.useCallback(((e,t)=>{h&&h(e,f===t?null:t)}),[h,f]),v=s.useMemo((()=>({className:g.grouped,onChange:c?x:y,value:f,size:p,fullWidth:u,color:a,disabled:l})),[g.grouped,c,x,y,f,p,u,a,l]),b=function(e){return s.Children.toArray(e).filter((e=>s.isValidElement(e)))}(n),w=b.length,T=e=>{const t=0===e,r=e===w-1;return t&&r?"":t?g.firstButton:r?g.lastButton:g.middleButton};return e.jsx(sc,{role:"group",className:rn(g.root,o),ref:r,ownerState:_,...m,children:e.jsx(Ql.Provider,{value:v,children:b.map(((t,r)=>("production"!==process.env.NODE_ENV&&ms.isFragment(t)&&console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.jsx(ec.Provider,{value:T(r),children:t},r))))})})}));"production"!==process.env.NODE_ENV&&(ac.propTypes={children:Fr.node,classes:Fr.object,className:Fr.string,color:Fr.oneOfType([Fr.oneOf(["standard","primary","secondary","error","info","success","warning"]),Fr.string]),disabled:Fr.bool,exclusive:Fr.bool,fullWidth:Fr.bool,onChange:Fr.func,orientation:Fr.oneOf(["horizontal","vertical"]),size:Fr.oneOfType([Fr.oneOf(["small","medium","large"]),Fr.string]),sx:Fr.oneOfType([Fr.arrayOf(Fr.oneOfType([Fr.func,Fr.object,Fr.bool])),Fr.func,Fr.object]),value:Fr.any});m(".legend{\r\n --legend-font-size: 10px;\r\n --legend-padding: 5px;\r\n width: 250px;\r\n height: 20px;\r\n position:absolute;\r\n z-index:10;\r\n background-color: white;\r\n padding: 0;\r\n display:inline-flex;\r\n border-radius:3px;\r\n box-shadow: 2px 2px 6px gray;\r\n}\r\n\r\n.legend > .item-container {\r\n display:inline-flex;\r\n padding:0;\r\n position:absolute;\r\n top: 5px;\r\n left: 5px;\r\n}\r\n\r\n.legend > .item-container:hover > item {\r\n opacity: 0.2;\r\n}\r\n\r\n.legend > .item-container > .item {\r\n height: var(--legend-font-size);\r\n width:30px;\r\n display:inline-flex;\r\n padding:0;\r\n}\r\n\r\n.legend > .item-container > .item:hover {\r\n opacity: 1 !important;\r\n}");var lc=function(t){return e.jsx("div",{className:t.className+" legend",children:e.jsxs("div",{className:"item-container",children:[e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Category 5"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(5)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Category 4"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(4)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Category 3"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(3)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Category 2"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(2)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Category 1"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(1)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Tropical Storm"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(0)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Tropical Depression"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(-1)}})}),e.jsx(Yl,{title:e.jsx("span",{style:{fontSize:"1.25em",padding:"2px"},children:"Tropical Expression"}),children:e.jsx("span",{className:"item",style:{backgroundColor:p(-2)}})})]})})};m(".storm-legend{\r\n top: 80px;\r\n}");var cc=function(t){return e.jsx("div",{children:e.jsx(Dl,{className:t.className+" storm-legend",variant:"outlined",sx:{overflow:"auto",position:"absolute",zIndex:10,right:20,backgroundColor:"rgba(255,255,255,0.6)",maxHeight:"calc(calc(100% - 80px) / 2)"},children:e.jsxs(Ol,{children:[e.jsx(ia,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:16,fontWeight:700,pb:1},children:"Storm Legend"}),e.jsx(Pl,{children:t.stormTracks&&t.stormTracks.map((function(t){return e.jsxs(ia,{variant:"body2",children:[e.jsx("span",{style:{width:"20px",height:"20px",backgroundColor:t.color,display:"inline-block",marginRight:"10px",marginLeft:"10px"}}),e.jsx("span",{style:{position:"relative",height:"25px",top:-5,display:"inline-block"},children:t.name})]},t.name+t.year)}))})]})})})},uc=t.forwardRef((function(r,i){var s=t.useRef(void 0),a=t.useRef(void 0),m=t.useState(!1),_=m[0],g=m[1],y=t.useState(new v.Marker),x=y[0],b=y[1],w=t.useState(void 0),T=w[0],S=w[1],E=t.useState(n.CAT_INTENSITY),M=E[0],A=E[1],z=t.useState([]),D=z[0],L=z[1];function k(e,t,i,n,o,s,a){if(null!=r.ciacRadius&&null!=r.ciacRadius&&null!=r.location&&null!=r.location){var l=[r.location.longitude,r.location.latitude],c=function(e,t,r){var i=e;return{radius:t,latitude:i[1],longitude:i[0],payouts:r}}(l,1e3,e),u=function(e,t,r){var i=e;return{code:t,latitude:i[1],longitude:i[0],payouts:r}}(l,t,i),h=function(e,t,r,i){var n=e;return{shapes:[{type:"__circle",latitude:n[1],longitude:n[0],radius:t}],includeNotNamedStorms:r,payouts:i}}(l,r.ciacRadius,o,n);(function(e,t){return I(void 0,void 0,void 0,(function(){var r;return P(this,(function(i){switch(i.label){case 0:return r="https://api-uat.nms3939.com"+R.endpoints.backTesting.payouts,[4,fetch(r,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":t},body:JSON.stringify(e)})];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}}))}))})({includeZeroPayouts:s,limit:a,latitude:r.location.latitude,longitude:r.location.longitude,proxy:c,anemometer:u,ciac:h},r.apiAccessToken).then((function(e){var t=e.payouts.map((function(e,t){return e.color=f(t),e}));L(t),null!=r.onCalculatePayouts&&r.onCalculatePayouts(t)}),(function(e){throw console.error(e),Error(e)}))}}t.useImperativeHandle(i,(function(){return{calculatePayouts:function(e,t,r,i,n,o,s){k(e,t,r,i,n,o,s)}}}));var O=function(e){if(s&&s.current){var t=s.current.getSource(u);if(t){var r=t._data.features.map((function(t){var r,i,n,o,s,a,l,c,u,h,d;return{type:t.type,geometry:t.geometry,properties:{view:e,muted:null===(r=t.properties)||void 0===r?void 0:r.muted,name:null===(i=t.properties)||void 0===i?void 0:i.name,year:null===(n=t.properties)||void 0===n?void 0:n.year,windspeed:null===(o=t.properties)||void 0===o?void 0:o.windspeed,category:null===(s=t.properties)||void 0===s?void 0:s.category,time:null===(a=t.properties)||void 0===a?void 0:a.time,latitude:null===(l=t.properties)||void 0===l?void 0:l.latitude,longitude:null===(c=t.properties)||void 0===c?void 0:c.longitude,location:null===(u=t.properties)||void 0===u?void 0:u.location,checked:null===(h=t.properties)||void 0===h?void 0:h.checked,color:null===(d=t.properties)||void 0===d?void 0:d.color}}}));t.setData({type:"FeatureCollection",features:r})}var i=s.current.getSource(h);if(i){r=i._data.features.map((function(t){var r,i,n,o,s,a;return{type:t.type,geometry:t.geometry,properties:{view:e,muted:null===(r=t.properties)||void 0===r?void 0:r.muted,name:null===(i=t.properties)||void 0===i?void 0:i.name,year:null===(n=t.properties)||void 0===n?void 0:n.year,category:null===(o=t.properties)||void 0===o?void 0:o.category,checked:null===(s=t.properties)||void 0===s?void 0:s.checked,color:null===(a=t.properties)||void 0===a?void 0:a.color}}}));i.setData({type:"FeatureCollection",features:r})}}};function B(e,t){if(s&&s.current){var r=0,i=e.map((function(e){var i=f(r);return r+=1,e.stormTrack.map((function(e){return{type:"Feature",geometry:e.LOCATION,properties:{view:t,muted:!1,checked:!0,name:e.NAME,year:e.SEASON,windspeed:e.USA_WIND,category:e.USA_SSHS,time:e.ISO_TIME,latitude:e.LOCATION.coordinates.at(1),longitude:e.LOCATION.coordinates.at(0),location:e.LOCATION,color:i}}}))})),n=i.map((function(e){return function(e){for(var t,r,i,n,o,s,a,l=[],c=1;c<e.length;c++){var u=((null===(t=e[c].properties)||void 0===t?void 0:t.category)+(null===(r=e[c-1].properties)||void 0===r?void 0:r.category))/2,h=e[c-1].geometry.coordinates,d=e[c].geometry.coordinates;if(h[0]<0||d[0]<0){var p=F(h[0],360),f=F(d[0],360);h[0]=p,d[0]=f}l.push({type:"Feature",geometry:{type:"LineString",coordinates:[h,d]},properties:{name:null===(i=e[c].properties)||void 0===i?void 0:i.name,year:null===(n=e[c].properties)||void 0===n?void 0:n.year,category:u,muted:null===(o=e[c].properties)||void 0===o?void 0:o.muted,checked:!0,view:null===(s=e[c].properties)||void 0===s?void 0:s.view,color:null===(a=e[c].properties)||void 0===a?void 0:a.color}})}return l}(e)})),o=s.current.getSource(u);o&&o.setData({type:"FeatureCollection",features:i.flat()});var a=s.current.getSource(h);a&&a.setData({type:"FeatureCollection",features:n.flat()})}}function F(e,t){return(e%t+t)%t}return t.useEffect((function(){return v.accessToken=r.mapAccessToken,s.current=new v.Map({container:a.current,style:"mapbox://styles/adubu001/cm23vizjd00gk01qk59q062mj",pitchWithRotate:!1,dragRotate:!1,touchZoomRotate:!1,center:r.location?[r.location.longitude,r.location.latitude]:l,zoom:8}),s.current.on("load",(function(){var e,t,r,i,a,l,f,m,_;g(!0),null===(e=s.current)||void 0===e||e.addSource(c,{type:"geojson",data:{type:"FeatureCollection",features:[]}}),null===(t=s.current)||void 0===t||t.addSource(u,{type:"geojson",data:{type:"FeatureCollection",features:[]}}),null===(r=s.current)||void 0===r||r.addSource(h,{type:"geojson",data:{type:"FeatureCollection",features:[]}}),null===(i=s.current)||void 0===i||i.addLayer({id:"__ciac_layer",type:"fill",source:c,paint:{"fill-color":"#105397","fill-opacity":.35}}),null===(a=s.current)||void 0===a||a.addLayer({id:"outline",type:"line",source:c,paint:{"line-color":"#105397","line-width":2}}),null===(l=s.current)||void 0===l||l.addLayer({id:"__tropical_storm_tracks_layer",type:"line",source:h,paint:{"line-color":["match",["concat",["get","view"],["get","muted"]],n.CAT_INTENSITY+"false",["interpolate",["linear"],["get","category"],-5,o.COLOR_TROPICAL_EXPRESSION,-4,o.COLOR_TROPICAL_EXPRESSION,-3,o.COLOR_TROPICAL_EXPRESSION,-2,o.COLOR_TROPICAL_EXPRESSION,-1,o.COLOR_TROPICAL_DEPRESSION,0,o.COLOR_TROPICAL_STORM,1,o.COLOR_CAT_1,2,o.COLOR_CAT_2,3,o.COLOR_CAT_3,4,o.COLOR_CAT_4,5,o.COLOR_CAT_5],n.STORMS+"false",["get","color"],"rgba(255,255,255,0.2)"],"line-width":4}}),null===(f=s.current)||void 0===f||f.addLayer({id:d,type:"circle",source:u,paint:{"circle-stroke-color":["match",["concat","",["get","muted"]],"false","#000","rgba(0,0,0,0.2)"],"circle-stroke-width":1,"circle-color":["match",["concat",["get","view"],["get","category"],["get","muted"]],n.CAT_INTENSITY+"-5false",o.COLOR_TROPICAL_EXPRESSION,n.CAT_INTENSITY+"-4false",o.COLOR_TROPICAL_EXPRESSION,n.CAT_INTENSITY+"-3false",o.COLOR_TROPICAL_EXPRESSION,n.CAT_INTENSITY+"-2false",o.COLOR_TROPICAL_EXPRESSION,n.CAT_INTENSITY+"-1false",o.COLOR_TROPICAL_DEPRESSION,n.CAT_INTENSITY+"0false",o.COLOR_TROPICAL_STORM,n.CAT_INTENSITY+"1false",o.COLOR_CAT_1,n.CAT_INTENSITY+"2false",o.COLOR_CAT_2,n.CAT_INTENSITY+"3false",o.COLOR_CAT_3,n.CAT_INTENSITY+"4false",o.COLOR_CAT_4,n.CAT_INTENSITY+"5false",o.COLOR_CAT_5,n.STORMS+"-5false",["get","color"],n.STORMS+"-4false",["get","color"],n.STORMS+"-3false",["get","color"],n.STORMS+"-2false",["get","color"],n.STORMS+"-1false",["get","color"],n.STORMS+"0false",["get","color"],n.STORMS+"1false",["get","color"],n.STORMS+"2false",["get","color"],n.STORMS+"3false",["get","color"],n.STORMS+"4false",["get","color"],n.STORMS+"5false",["get","color"],o.COLOR_MUTED],"circle-radius":5}});var y=new v.Popup({closeButton:!1,closeOnClick:!0,closeOnMove:!0});null===(m=s.current)||void 0===m||m.on("mouseenter",d,(function(e){if(s.current){s.current.getCanvas().style.cursor="pointer";var t=e.features[0].geometry.coordinates.slice(),r=e.features[0].properties,i="";for(i+="<strong>".concat(r.name," ").concat(r.year,"</strong>"),i+='<span style="border-radius:3px;margin-left:5px;padding:3px 10px;color:white;background-color:'.concat(p(r.category),'">').concat(function(e){switch(e){case 5:case 4:case 3:case 2:case 1:return"Category ".concat(e);case 0:return"Tropical Storm";case-1:return"Tropical Depression";case-2:case-3:case-4:case-5:return"Tropical Expression";case-10:return"N/A";default:return""}}(r.category),"</span>"),i+='<div style="width:150px">'.concat((n=r.time,new Date(Date.parse(n)).toLocaleDateString("en-us",{day:"numeric",year:"numeric",month:"short",hour:"numeric",minute:"numeric",timeZone:"UTC"})),"</div><p>"),i+='<div><strong>Windspeed: </strong><span">'.concat(r.windspeed," MPH</span></div>"),i+='<div><strong>LatLng: </strong><span">('.concat(r.latitude,"°, ").concat(r.longitude,"°)</span></div>"),i+="</p>";Math.abs(e.lngLat.lng-t[0])>180;)t[0]+=e.lngLat.lng>t[0]?360:-360;y.setLngLat(t).setHTML(i).addTo(s.current),y.on("mouseleave",(function(){s.current&&(s.current.getCanvas().style.cursor=""),y.remove()}))}var n})),null===(_=s.current)||void 0===_||_.on("mouseleave",d,(function(){s.current&&(s.current.getCanvas().style.cursor=""),y.remove()}))})),function(){var e;return null===(e=s.current)||void 0===e?void 0:e.remove()}}),[]),t.useEffect((function(){if(_)if(null!=r.location&&null!=r.location){if(null==s?void 0:s.current){var e=[r.location.longitude,r.location.latitude];b(x.remove().setLngLat(e).addTo(s.current)),s.current.flyTo({center:e,essential:!0})}}else b(x.remove())}),[r.location,s,_]),t.useEffect((function(){if(_)if(null!=r.ciacRadius&&null!=r.ciacRadius&&null!=r.location&&null!=r.location){if(null==s?void 0:s.current){var e,t=C([r.location.longitude,r.location.latitude],r.ciacRadius,{steps:200,units:"miles"});S(T),(e=s.current.getSource(c))&&(console.log("draw circle"),e.setData({type:"FeatureCollection",features:[t]}))}}else console.log("skip circle"),(null==s?void 0:s.current)&&(S(void 0),(e=s.current.getSource(c))&&e.setData({type:"FeatureCollection",features:[]}))}),[r.ciacRadius,r.location,s,_]),t.useEffect((function(){_&&B(D,M)}),[_,D,M]),t.useEffect((function(){_&&r.location&&r.limit&&r.proxyPayouts&&r.anemometerCode&&r.anemometerPayouts&&r.ciacRadius&&r.ciacRadius&&s&&k(r.proxyPayouts,r.anemometerCode,r.anemometerPayouts,r.ciacPayouts,!1,!1,r.limit)}),[r.location,r.limit,r.proxyPayouts,r.anemometerCode,r.anemometerPayouts,r.ciacRadius,r.ciacRadius,s,_]),e.jsxs("div",{className:"map__wrapper",children:[M==n.CAT_INTENSITY&&e.jsx(lc,{className:"cat__legend"}),e.jsxs(ac,{className:"map__views",color:"primary",value:M,exclusive:!0,onChange:function(e,t){null!==t&&A(t),O(t),null!=r.onViewChange&&r.onViewChange(t)},"aria-label":"Platform",sx:{backgroundColor:"white",zIndex:10},children:[e.jsx(ic,{value:n.CAT_INTENSITY,children:"CAT Strength View"}),e.jsx(ic,{value:n.STORMS,children:"Storms View"})]}),M==n.STORMS&&e.jsx(cc,{stormTracks:D}),e.jsx("div",{ref:a,className:"map__container"})]})}));exports.BackTestingCatLegend=lc,exports.BackTestingMap=uc,exports.BackTestingStormLegend=cc;
123
- //# sourceMappingURL=index.map
123
+ //# sourceMappingURL=index.js.map