silgi 0.50.1 → 0.50.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.
@@ -30,61 +30,61 @@ Error generating stack: `+e.message+`
30
30
  ${e.right}px ${e.bottom}px,
31
31
  ${e.right}px ${e.top}px,
32
32
  ${e.left}px ${e.top}px
33
- )`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),hd=K.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=zu(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,J.jsx)(Ku.Provider,{value:n,children:(0,J.jsxs)(Ba,{ref:t,...r,children:[a&&o===!0&&(0,J.jsx)(md,{ref:i.context.internalBackdropRef,inert:ql(!s)}),e.children]})}):null}),gd={},_d={},vd=``;function yd(e){if(typeof document>`u`)return!1;let t=Rr(e);return gt(t).innerWidth-t.documentElement.clientWidth>0}function bd(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Rr(e),n=t.documentElement,r=t.body,i=St(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function xd(e){let t=Rr(e),n=t.documentElement,r=t.body,i=St(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Sd(e){let t=Rr(e),n=t.documentElement,r=t.body,i=gt(n),a=0,o=0,s=!1,c=Li.create();if(Ut&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,gd={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},vd=n.style.scrollBehavior,_d={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=St(n)?n:r;if(s=bd(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,gd),Object.assign(r.style,_d),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=vd)}function d(){u(),c.request(l)}return l(),i.addEventListener(`resize`,d),()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&i.removeEventListener(`resize`,d)}}var Cd=new class{lockCount=0;restore=null;timeoutLock=ft.create();timeoutUnlock=ft.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Rr(e).documentElement,n=gt(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Xr;return}this.restore=Wt||!yd(e)?xd(e):Sd(e)}};function wd(e=!0,t=null){q(()=>{if(e)return Cd.acquire(t)},[e,t])}function Td(e){let t=K.useRef(``),n=K.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:K.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Ed(e,t){let n=K.useRef(e),r=Y(t);q(()=>{n.current!==e&&r(n.current)},[e,r]),q(()=>{n.current=e},[e])}function Dd(e){let[t,n]=K.useState(null),r=Y((t,r)=>{e||n(r||(Wt?`touch`:``))});Ed(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Td(r);return K.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Od(e){let{store:t,parentContext:n,actionsRef:r}=e,i=t.useState(`open`),a=t.useState(`disablePointerDismissal`),o=t.useState(`modal`),s=t.useState(`popupElement`),{openMethod:c,triggerProps:l}=Dd(i);gc(t);let{forceUnmount:u}=_c(i,t),d=Y(e=>{let n=vi(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),f=K.useCallback(()=>{t.setOpen(!1,d(gi))},[t,d]);K.useImperativeHandle(r,()=>({unmount:u,close:f}),[u,f]);let p=Tc({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[m,h]=K.useState(0),g=m===0,_=Jc(p),v=ho(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=cn(e);if(g&&!a){let e=n;return o&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||on(e,s)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:g});wd(i&&o===!0,s);let{getReferenceProps:y,getFloatingProps:b,getTriggerProps:x}=Lc([_,v]);t.useContextCallback(`onNestedDialogOpen`,e=>{h(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0)}),K.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(m),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,m]);let S=K.useMemo(()=>y(l),[y,l]),C=K.useMemo(()=>x(l),[x,l]),w=K.useMemo(()=>b(),[b]);t.useSyncedValues({openMethod:c,activeTriggerProps:S,inactiveTriggerProps:C,popupProps:w,floatingRootContext:p,nestedOpenDialogCount:m})}var kd={...Sc,modal:X(e=>e.modal),nested:X(e=>e.nested),nestedOpenDialogCount:X(e=>e.nestedOpenDialogCount),disablePointerDismissal:X(e=>e.disablePointerDismissal),openMethod:X(e=>e.openMethod),descriptionElementId:X(e=>e.descriptionElementId),titleElementId:X(e=>e.titleElementId),viewportElement:X(e=>e.viewportElement),role:X(e=>e.role)},Ad=class extends ic{constructor(e){super(jd(e),{popupRef:K.createRef(),backdropRef:K.createRef(),internalBackdropRef:K.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new vc,onOpenChange:void 0,onOpenChangeComplete:void 0},kd)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function jd(e={}){return{...bc(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}function Md(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=zu(!0),p=!!f,m=Xe(()=>l?.store??new Ad({open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:p})).current;it(()=>{n===void 0&&m.state.open===!1&&r===!0&&m.update({open:!0,activeTriggerId:d})}),m.useControlledProp(`openProp`,n),m.useControlledProp(`triggerIdProp`,u),m.useSyncedValues({disablePointerDismissal:o,nested:p,modal:s}),m.useContextCallback(`onOpenChange`,i),m.useContextCallback(`onOpenChangeComplete`,a);let h=m.useState(`payload`);Od({store:m,actionsRef:c,parentContext:f?.store.context,onOpenChange:i,triggerIdProp:u});let g=K.useMemo(()=>({store:m}),[m]);return(0,J.jsx)(Ru.Provider,{value:g,children:typeof t==`function`?t({payload:h}):t})}var Nd=K.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=zu(),s=yl(i);return o.useSyncedValueWithCleanup(`titleElementId`,s),Aa(`h2`,e,{ref:t,props:[{id:s},a]})}),Pd=[[`path`,{d:`M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 9V13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 16.9922V17.0022`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`,key:`2`}]],Fd=[[`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Id=[[`path`,{d:`M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ld=[[`path`,{d:`M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Rd=[[`path`,{d:`M18 6L6.00081 17.9992M17.9992 18L6 6.00085`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],zd=[[`path`,{d:`M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Bd=[[`path`,{d:`M2.5 12C2.5 7.52167 2.5 5.2825 3.89124 3.89126C5.28249 2.50002 7.52166 2.50002 12 2.50002C16.4783 2.50002 18.7175 2.50002 20.1088 3.89126C21.5 5.2825 21.5 7.52167 21.5 12C21.5 16.4784 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4784 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 9.00002H21.5`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M6.99981 6.00002H7.00879`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`2`}],[`path`,{d:`M10.9998 6.00002H11.0088`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`3`}],[`path`,{d:`M17 17C17 14.2386 14.7614 12 12 12C9.23858 12 7 14.2386 7 17`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M12.707 15.293L11.2928 16.7072`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],Vd=[[`path`,{d:`M21.5 14.0784C20.3003 14.7189 18.9301 15.0821 17.4751 15.0821C12.7491 15.0821 8.91792 11.2509 8.91792 6.52485C8.91792 5.06986 9.28105 3.69968 9.92163 2.5C5.66765 3.49698 2.5 7.31513 2.5 11.8731C2.5 17.1899 6.8101 21.5 12.1269 21.5C16.6849 21.5 20.503 18.3324 21.5 14.0784Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Hd=[[`path`,{d:`M2 12H6L7.5 8L9.5 15L13 6L15.5 18L18 12H22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ud=[[`path`,{d:`M8 10.1667L12.1232 6.04344C13.2481 4.91858 13.8105 4.35614 14.4312 3.90314C15.7047 2.9737 17.1818 2.36187 18.7395 2.11858C19.4988 2 20.2942 2 21.885 2C21.9681 2 22 2.03812 22 2.11504C22 3.70584 22 4.50125 21.8814 5.26046C21.6381 6.81818 21.0263 8.29527 20.0969 9.56878C19.6439 10.1895 19.0814 10.7519 17.9566 11.8768L13.8333 16`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.341 8.09838C8.63808 8.09838 6.49778 7.73765 4.9043 8.39769C3.73671 8.88132 2.87754 10.0012 2 10.8787L5.30597 12.2955C6.18208 12.671 5.64651 13.7766 5.50147 14.5018C5.33985 15.3099 5.34886 15.3397 5.93158 15.9224L8.07758 18.0684C8.6603 18.6511 8.69008 18.6602 9.49816 18.4985C10.2234 18.3535 11.329 17.8179 11.7044 18.694L13.1213 22C13.9988 21.1225 15.1187 20.2633 15.6023 19.0957C16.2624 17.5022 15.9016 15.3619 15.9016 13.659`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 20L11 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M4 12L3 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M15 4.07996C16.2 4.25996 17.46 4.73996 18.1614 5.45996C19.0576 6.25211 19.68 7.31996 19.92 8.99996`,stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M17.94 6.06006L16.5 7.50006`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`5`}]],Wd=[[`path`,{d:`M17 17L21 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Gd=[[`path`,{d:`M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 3L9.5 21`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 7H6M5 10H6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Kd=[[`path`,{d:`M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 2V3.5M12 20.5V22M19.0708 19.0713L18.0101 18.0106M5.98926 5.98926L4.9286 4.9286M22 12H20.5M3.5 12H2M19.0713 4.92871L18.0106 5.98937M5.98975 18.0107L4.92909 19.0714`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]],qd=[[`path`,{d:`M14.4961 2.00027H9.49609C8.66767 2.00027 7.99609 2.67184 7.99609 3.50027C7.99609 4.32869 8.66767 5.00027 9.49609 5.00027H14.4961C15.3245 5.00027 15.9961 4.32869 15.9961 3.50027C15.9961 2.67184 15.3245 2.00027 14.4961 2.00027Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15.9961 3.50027C17.5496 3.54708 18.4761 3.72034 19.1174 4.36163C19.9961 5.24031 19.9961 6.6545 19.9961 9.4829L19.9961 15.9997C19.9961 18.8282 19.9961 20.2424 19.1174 21.1211C18.2387 21.9997 16.8245 21.9997 13.9961 21.9997L9.99609 21.9997C7.16767 21.9997 5.75346 21.9997 4.87478 21.1211C3.9961 20.2424 3.9961 18.8282 3.99609 15.9998L3.99611 9.48295C3.9961 6.65452 3.9961 5.2403 4.87478 4.36162C5.51606 3.72033 6.44261 3.54708 7.99599 3.50027`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M7.49609 11.0003L8.49609 12.0003L10.4961 9.50027`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M12.9961 17.0003H15.9961M12.9961 11.0003H15.9961`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M8.48621 16.8675H8.49621`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`4`}]],Jd=[[`path`,{d:`M5 14.5C5 14.5 6.5 14.5 8.5 18C8.5 18 14.0588 8.83333 19 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Yd=[[`path`,{d:`M5 14L8.5 17.5L19 6.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Xd=[[`path`,{d:`M10.3483 10H13.6517C15.6822 10 16.6974 10 16.9501 9.39139C17.2028 8.78277 16.4849 8.06648 15.0491 6.63391L13.3974 4.9859L13.3974 4.9859C12.7387 4.32863 12.4093 4 12 4C11.5907 4 11.2613 4.32864 10.6026 4.9859L8.95091 6.63391L8.95091 6.63391C7.51513 8.06649 6.79724 8.78277 7.0499 9.39139C7.30256 10 8.31781 10 10.3483 10Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.3483 14H13.6517C15.6822 14 16.6974 14 16.9501 14.6086C17.2028 15.2172 16.4849 15.9335 15.0491 17.3661L13.3974 19.0141C12.7387 19.6714 12.4093 20 12 20C11.5907 20 11.2613 19.6714 10.6026 19.0141L8.95091 17.3661C7.51513 15.9335 6.79724 15.2172 7.0499 14.6086C7.30256 14 8.31781 14 10.3483 14Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Zd=[[`path`,{d:`M13 7C13 9.20914 11.2091 11 9 11C6.79086 11 5 9.20914 5 7C5 4.79086 6.79086 3 9 3C11.2091 3 13 4.79086 13 7Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15 11C17.2091 11 19 9.20914 19 7C19 4.79086 17.2091 3 15 3`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 14H7C4.23858 14 2 16.2386 2 19C2 20.1046 2.89543 21 4 21H14C15.1046 21 16 20.1046 16 19C16 16.2386 13.7614 14 11 14Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M17 14C19.7614 14 22 16.2386 22 19C22 20.1046 21.1046 21 20 21H18.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Qd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},$d=(0,K.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:c,secondaryColor:l,disableSecondaryOpacity:u=!1,...d},f)=>{let p=n===void 0?void 0:r?Number(n)*24/Number(t):n,m=p===void 0?{}:{strokeWidth:p,stroke:`currentColor`};return(0,K.createElement)(`svg`,{ref:f,...Qd,width:t,height:t,color:c||e,className:i,...m,...d},[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!u?n.opacity:void 0,a=l?{...n.stroke===void 0?{fill:r?l:c||e}:{stroke:r?l:c||e}}:{};return(0,K.createElement)(t,{...n,...m,...a,opacity:i,key:n.key})}))});$d.displayName=`HugeiconsIcon`;function ef({...e}){return(0,J.jsx)(Md,{"data-slot":`sheet`,...e})}function tf({...e}){return(0,J.jsx)(hd,{"data-slot":`sheet-portal`,...e})}function nf({className:e,...t}){return(0,J.jsx)(Vu,{"data-slot":`sheet-overlay`,className:G(`fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,e),...t})}function rf({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,J.jsxs)(tf,{children:[(0,J.jsx)(nf,{}),(0,J.jsxs)(pd,{"data-slot":`sheet-content`,"data-side":n,className:G(`fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...i,children:[t,r&&(0,J.jsxs)(Hu,{"data-slot":`sheet-close`,render:(0,J.jsx)(_u,{variant:`ghost`,className:`absolute top-3 end-3`,size:`icon-sm`}),children:[(0,J.jsx)($d,{icon:Rd,strokeWidth:2}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function af({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sheet-header`,className:G(`flex flex-col gap-0.5 p-4`,e),...t})}function of({className:e,...t}){return(0,J.jsx)(Nd,{"data-slot":`sheet-title`,className:G(`font-heading text-base font-medium text-foreground`,e),...t})}function sf({className:e,...t}){return(0,J.jsx)(Uu,{"data-slot":`sheet-description`,className:G(`text-sm text-muted-foreground`,e),...t})}function cf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`skeleton`,className:G(`animate-pulse rounded-md bg-muted`,e),...t})}var lf=768;function uf(){let[e,t]=K.useState(void 0);return K.useEffect(()=>{let e=window.matchMedia(`(max-width: ${lf-1}px)`),n=()=>{t(window.innerWidth<lf)};return e.addEventListener(`change`,n),t(window.innerWidth<lf),()=>e.removeEventListener(`change`,n)},[]),!!e}var df=`sidebar_state`,ff=3600*24*7,pf=`16rem`,mf=`18rem`,hf=`3rem`,gf=`b`,_f=K.createContext(null);function vf(){let e=K.useContext(_f);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function yf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=uf(),[c,l]=K.useState(!1),[u,d]=K.useState(e),f=t??u,p=K.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${df}=${t}; path=/; max-age=${ff}`},[n,f]),m=K.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);K.useEffect(()=>{let e=e=>{e.key===gf&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=K.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,J.jsx)(_f.Provider,{value:g,children:(0,J.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":pf,"--sidebar-width-icon":hf,...i},className:G(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})}function bf({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,dir:a,...o}){let{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=vf();return n===`none`?(0,J.jsx)(`div`,{"data-slot":`sidebar`,className:G(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...o,children:i}):s?(0,J.jsx)(ef,{open:l,onOpenChange:u,...o,children:(0,J.jsxs)(rf,{dir:a,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":mf},side:e,children:[(0,J.jsxs)(af,{className:`sr-only`,children:[(0,J.jsx)(of,{children:`Sidebar`}),(0,J.jsx)(sf,{children:`Displays the mobile sidebar.`})]}),(0,J.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,J.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":c===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,J.jsx)(`div`,{"data-slot":`sidebar-gap`,className:G(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,J.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:G(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s`,r),...o,children:(0,J.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,children:i})})]})}function xf({className:e,onClick:t,...n}){let{toggleSidebar:r}=vf();return(0,J.jsxs)(_u,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:G(e),onClick:e=>{t?.(e),r()},...n,children:[(0,J.jsx)($d,{icon:Gd,strokeWidth:2,className:`rtl:rotate-180`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Sf({className:e,...t}){return(0,J.jsx)(`main`,{"data-slot":`sidebar-inset`,className:G(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2`,e),...t})}function Cf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:G(`flex flex-col gap-2 p-2`,e),...t})}function wf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:G(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Tf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:G(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function Ef({className:e,render:t,...n}){return nu({defaultTagName:`div`,props:ya({className:G(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e)},n),render:t,state:{slot:`sidebar-group-label`,sidebar:`group-label`}})}function Df({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:G(`w-full text-sm`,e),...t})}function Of({className:e,...t}){return(0,J.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:G(`flex w-full min-w-0 flex-col gap-0`,e),...t})}function kf({className:e,...t}){return(0,J.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:G(`group/menu-item relative`,e),...t})}var Af=ou(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function jf({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let{isMobile:s,state:c}=vf(),l=nu({defaultTagName:`button`,props:ya({className:G(Af({variant:n,size:r}),a)},o),render:i?(0,J.jsx)(Xl,{render:e}):e,state:{slot:`sidebar-menu-button`,sidebar:`menu-button`,size:r,active:t}});return i?(typeof i==`string`&&(i={children:i}),(0,J.jsxs)(Yl,{children:[l,(0,J.jsx)(Zl,{side:`right`,align:`center`,hidden:c!==`collapsed`||s,...i})]})):l}function Mf(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Nf(e){return e<1?`${e.toFixed(2)}ms`:e<1e3?`${e.toFixed(1)}ms`:`${(e/1e3).toFixed(1)}s`}function Pf(e){return e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`}function Ff(e){let t=new Date(e),n=String(t.getMilliseconds()).padStart(3,`0`);return`${t.toLocaleTimeString()}.${n}`}function If(e){let t=Date.now()-e,n=Math.floor(t/1e3);if(n<5)return`just now`;if(n<60)return`${n}s ago`;let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Lf({route:e,navigate:t,data:n,errorCount:r,requestCount:i,sessionCount:a,taskCount:o}){return(0,J.jsxs)(bf,{collapsible:`icon`,children:[(0,J.jsx)(Cf,{className:`gap-0`,children:(0,J.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1 group-data-[collapsible=icon]:justify-center`,children:[(0,J.jsx)(`div`,{className:`flex size-7 items-center justify-center rounded-md bg-primary/10 text-primary`,children:(0,J.jsx)($d,{icon:Hd,size:16})}),(0,J.jsx)(`span`,{className:`text-sm font-semibold tracking-tight group-data-[collapsible=icon]:hidden`,children:`silgi`})]})}),(0,J.jsxs)(wf,{children:[(0,J.jsxs)(Tf,{children:[(0,J.jsx)(Ef,{children:`Views`}),(0,J.jsx)(Df,{children:(0,J.jsxs)(Of,{className:`gap-0.5`,children:[(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`overview`,onClick:()=>t(`overview`),children:[(0,J.jsx)($d,{icon:Bd,size:15}),(0,J.jsx)(`span`,{children:`Overview`})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`requests`,onClick:()=>t(`requests`),children:[(0,J.jsx)($d,{icon:Ud,size:15}),(0,J.jsx)(`span`,{children:`Requests`}),i>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:i})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`errors`,onClick:()=>t(`errors`),children:[(0,J.jsx)($d,{icon:Pd,size:15}),(0,J.jsx)(`span`,{children:`Errors`}),r>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`ml-auto h-4.5 min-w-5 justify-center px-1 text-[10px] group-data-[collapsible=icon]:hidden`,children:r>99?`99+`:r})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`sessions`,onClick:()=>t(`sessions`),children:[(0,J.jsx)($d,{icon:Zd,size:15}),(0,J.jsx)(`span`,{children:`Sessions`}),a>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:a})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`tasks`,onClick:()=>t(`tasks`),children:[(0,J.jsx)($d,{icon:qd,size:15}),(0,J.jsx)(`span`,{children:`Tasks`}),o>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:o})]})})]})})]}),n&&(0,J.jsxs)(Tf,{className:`mt-auto group-data-[collapsible=icon]:hidden`,children:[(0,J.jsx)(Ef,{children:`Node`}),(0,J.jsx)(Df,{children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5 px-2 text-[11px]`,children:[(0,J.jsx)(Rf,{label:`Req/s`,value:Mf(n.requestsPerSecond)}),(0,J.jsx)(Rf,{label:`Avg`,value:Nf(n.avgLatency)}),(0,J.jsx)(Rf,{label:`Errors`,value:String(n.totalErrors),danger:n.totalErrors>0}),(0,J.jsx)(Rf,{label:`Uptime`,value:Pf(n.uptime)})]})})]})]})]})}function Rf({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`font-mono tabular-nums`,n?`font-medium text-destructive`:`text-foreground`),children:t})]})}function zf({spans:e,totalMs:t}){let n=(0,K.useMemo)(()=>Math.max(t,...e.map(e=>e.durationMs)),[e,t]),[r,i]=(0,K.useState)(null),[a,o]=(0,K.useState)(!1);function s(){o(!a),i(null)}return(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-[2rem_2.5rem_minmax(0,12rem)_1fr_4.5rem_3rem] items-center gap-2 border-b py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(`button`,{type:`button`,onClick:s,className:`cursor-pointer text-left hover:text-foreground`,title:a?`Collapse all`:`Expand all`,children:a?`▼`:`▶`}),(0,J.jsx)(`span`,{children:`kind`}),(0,J.jsx)(`span`,{children:`span`}),(0,J.jsx)(`span`,{children:`timeline`}),(0,J.jsx)(`span`,{className:`text-right`,children:`dur`}),(0,J.jsx)(`span`,{className:`text-right`,children:`%`})]}),e.map((e,o)=>{let s=n>0?e.durationMs/n*100:0,c=t>0?e.durationMs/t*100:0,l=!!e.error,u=e.durationMs>t*.5,d=Bf[e.kind]??Bf.custom,f=l?`bg-destructive/60`:d.bar,p=a||r===o;return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`grid cursor-pointer grid-cols-[2rem_2.5rem_minmax(0,12rem)_1fr_4.5rem_3rem] items-center gap-2 border-b border-dashed py-2 hover:bg-muted/20 last:border-0`,onClick:()=>i(p?null:o),children:[(0,J.jsx)(`span`,{className:`font-mono text-[10px] text-muted-foreground/60`,children:o+1}),(0,J.jsx)(Vf,{kind:e.kind}),(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`inline-block size-1.5 shrink-0 rounded-full ${d.dot}`}),(0,J.jsx)(`span`,{className:`truncate font-mono text-[11px]`,title:e.name,children:e.name})]}),(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{className:`relative h-5 overflow-hidden rounded bg-muted/20`,children:e.startOffsetMs!=null&&t>0?(0,J.jsx)(`div`,{className:G(`absolute inset-y-0 rounded`,f),style:{left:`${Math.min(e.startOffsetMs/t*100,99)}%`,width:`${Math.max(c,1.5)}%`}}):(0,J.jsx)(`div`,{className:G(`absolute inset-y-0 left-0 rounded`,f),style:{width:`${Math.max(s,2)}%`}})}),(0,J.jsxs)(Zl,{side:`top`,className:`text-xs`,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,J.jsxs)(`span`,{className:`ml-1.5 text-muted-foreground`,children:[`[`,e.kind,`]`]}),(0,J.jsx)(`span`,{className:`ml-2 tabular-nums`,children:Nf(e.durationMs)}),e.startOffsetMs!=null&&(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[`at +`,e.startOffsetMs.toFixed(1),`ms`]}),e.error&&(0,J.jsx)(`span`,{className:`ml-2 text-destructive`,children:e.error})]})]}),(0,J.jsx)(`span`,{className:G(`text-right font-mono text-[11px] tabular-nums`,l?`text-destructive`:u?`text-chart-1`:`text-muted-foreground`),children:Nf(e.durationMs)}),(0,J.jsxs)(`span`,{className:`text-right font-mono text-[10px] text-muted-foreground/60`,children:[c.toFixed(0),`%`]})]}),p&&(0,J.jsxs)(`div`,{className:`border-b bg-muted/10 px-4 py-3`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-center gap-2 text-[11px]`,children:[(0,J.jsx)(Vf,{kind:e.kind}),(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:e.name}),(0,J.jsx)(`span`,{className:`tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),e.startOffsetMs!=null&&(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`at +`,e.startOffsetMs.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,t>0?(e.durationMs/t*100).toFixed(0):0,`% of total)`]})]}),e.attributes&&Object.keys(e.attributes).length>0&&(0,J.jsx)(`div`,{className:`mb-2 flex flex-wrap gap-1.5`,children:Object.entries(e.attributes).map(([e,t])=>(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-muted/40 px-1.5 py-0.5 font-mono text-[9px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`text-foreground`,children:String(t)})]},e))}),e.input!=null&&(0,J.jsxs)(`div`,{className:`mb-2`,children:[(0,J.jsx)(`h5`,{className:`mb-1 text-[10px] font-semibold text-muted-foreground`,children:`Input`}),(0,J.jsx)(`pre`,{className:`max-h-32 overflow-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:typeof e.input==`string`?e.input:JSON.stringify(e.input,null,2)})]}),e.output!=null&&(0,J.jsxs)(`div`,{className:`mb-2`,children:[(0,J.jsx)(`h5`,{className:`mb-1 text-[10px] font-semibold text-muted-foreground`,children:`Output`}),(0,J.jsx)(`pre`,{className:`max-h-32 overflow-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:typeof e.output==`string`?e.output:JSON.stringify(e.output,null,2)})]}),e.detail&&(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.detail}),e.error&&(0,J.jsx)(`div`,{className:`mt-2 rounded-md bg-destructive/10 px-3 py-2 text-[11px] text-destructive`,children:e.error}),!e.detail&&!e.error&&!e.input&&!e.output&&!e.attributes&&(0,J.jsxs)(`p`,{className:`text-[11px] text-muted-foreground/60`,children:[`No detail captured. Use`,` `,(0,J.jsx)(`code`,{className:`rounded bg-muted px-1`,children:`ctx.trace(name, fn, { detail: "..." })`}),` to add query/URL info.`]})]})]},`${e.name}-${o}`)})]})}var Bf={db:{dot:`bg-purple-500`,bar:`bg-purple-500/50`},http:{dot:`bg-blue-500`,bar:`bg-blue-500/50`},cache:{dot:`bg-emerald-500`,bar:`bg-emerald-500/50`},queue:{dot:`bg-amber-500`,bar:`bg-amber-500/50`},email:{dot:`bg-orange-500`,bar:`bg-orange-500/50`},ai:{dot:`bg-cyan-500`,bar:`bg-cyan-500/50`},custom:{dot:`bg-zinc-400`,bar:`bg-zinc-400/40`}};function Vf({kind:e}){return(0,J.jsx)(`span`,{className:G(`rounded px-1 py-0.5 text-center font-mono text-[9px] font-bold uppercase`,{db:`bg-purple-500/15 text-purple-400`,http:`bg-blue-500/15 text-blue-400`,cache:`bg-emerald-500/15 text-emerald-400`,queue:`bg-amber-500/15 text-amber-400`,email:`bg-orange-500/15 text-orange-400`,ai:`bg-cyan-500/15 text-cyan-400`,custom:`bg-zinc-500/15 text-zinc-400`}[e]),children:e})}var Hf=`[REDACTED]`,Uf=new Set([`authorization`,`cookie`,`set-cookie`,`x-api-key`,`x-auth-token`,`proxy-authorization`]);function Wf(e){return e===`localhost`||e===`127.0.0.1`||e===`0.0.0.0`||e.endsWith(`.localhost`)}function Gf(){return typeof window<`u`?!Wf(window.location.hostname):!0}function Kf(e,t){return Gf()&&Uf.has(e.toLowerCase())?Hf:t}function qf(e){return Uf.has(e.toLowerCase())}function Jf({entry:e}){let t=Object.entries(e.headers??{}),n=e.input!==void 0&&e.input!==null,r=e.spans.length>0,i=t.length>0,a=Gf();return(0,J.jsxs)(`div`,{className:`grid xl:grid-cols-[1.6fr_1fr]`,children:[(0,J.jsxs)(`div`,{className:`xl:border-r`,children:[(0,J.jsx)(Yf,{label:`Error message`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-xs leading-relaxed text-destructive/90`,children:e.error})}),r&&(0,J.jsx)(Yf,{label:`Trace timeline — ${e.spans.length} ops, ${Nf(e.durationMs)} total`,children:(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs})}),e.stack&&(0,J.jsx)(Yf,{label:`Stack trace`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.stack})})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Yf,{label:`Metadata`,children:(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsx)(Xf,{label:`id`,value:String(e.id)}),(0,J.jsx)(Xf,{label:`status`,value:String(e.status),danger:e.status>=500}),(0,J.jsx)(Xf,{label:`code`,value:e.code,danger:!0}),(0,J.jsx)(Xf,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(Xf,{label:`spans`,value:String(e.spans.length)}),(0,J.jsx)(Xf,{label:`headers`,value:String(t.length)})]})}),n&&(0,J.jsx)(Yf,{label:`Input payload`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),i&&(0,J.jsx)(Yf,{label:`Headers`,children:(0,J.jsx)(`div`,{className:`flex flex-col`,children:t.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex gap-3 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`w-28 shrink-0 truncate font-mono text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`min-w-0 break-all font-mono text-[11px]`,children:a&&qf(e)?(0,J.jsx)(`span`,{className:`text-muted-foreground/40`,children:`[redacted]`}):t})]},e))})})]})]})}function Yf({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function Xf({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}var Zf=K.createContext(null),Qf=K.createContext(null);function $f(){let e=K.useContext(Zf);if(e===null)throw Error(ot(60));return e}function ep(){let e=K.useContext(Qf);if(e===null)throw Error(ot(61));return e}var tp=(e,t)=>Object.is(e,t);function np(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function rp(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:np(t,e,n))}function ip(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:np(e,t,n))}function ap(e,t,n){return e.filter(e=>!np(t,e,n))}function op(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function sp(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function cp(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(sp(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function lp(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return op(e)}function up(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?op(e.value):op(e)}function dp(e,t,n){function r(){return lp(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=sp(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function fp(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,J.jsx)(K.Fragment,{children:dp(r,t,n)},i)),e),[])}var pp={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:up(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?cp(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>np(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:np(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)};function mp(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,autoComplete:l,disabled:u=!1,readOnly:d=!1,required:f=!1,modal:p=!0,actionsRef:m,inputRef:h,onOpenChangeComplete:g,items:_,multiple:v=!1,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x=tp,highlightItemOnHover:S=!0,children:C}=e,{clearErrors:w}=Eu(),{setDirty:T,setTouched:E,setFocused:D,shouldValidateOnChange:O,validityData:k,setFilled:A,name:j,disabled:M,validation:N,validationMode:P}=wu(),F=ju({id:t}),I=M||u,ee=j??c,[L,R]=Au({controlled:n,default:v?r??Zr:r,name:`Select`,state:`value`}),[z,B]=Au({controlled:a,default:o,name:`Select`,state:`open`}),V=K.useRef([]),te=K.useRef([]),H=K.useRef(null),ne=K.useRef(null),re=K.useRef(0),ie=K.useRef(null),ae=K.useRef([]),oe=K.useRef(!1),se=K.useRef(!1),ce=K.useRef(null),le=K.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),ue=K.useRef(!1),{mounted:de,setMounted:fe,transitionStatus:pe}=sc(z),{openMethod:me,triggerProps:he}=Dd(z),ge=Xe(()=>new rc({id:F,labelId:void 0,modal:p,multiple:v,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x,value:L,open:z,mounted:de,transitionStatus:pe,items:_,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,_e=$s(ge,pp.activeIndex),ve=$s(ge,pp.selectedIndex),ye=$s(ge,pp.triggerElement),be=$s(ge,pp.positionerElement),xe=K.useMemo(()=>v&&Array.isArray(L)&&L.length===0?``:up(L,b),[v,L,b]),U=K.useMemo(()=>v&&Array.isArray(L)?L.map(e=>up(e,b)):up(L,b),[v,L,b]),Se=ki(ge.state.triggerElement);Mu({id:F,commit:N.commit,value:L,controlRef:Se,name:ee,getValue:()=>U});let Ce=K.useRef(L);q(()=>{L!==Ce.current&&ge.set(`forceMount`,!0)},[ge,L]),q(()=>{A(v?Array.isArray(L)&&L.length>0:L!=null)},[v,L,A]),q(function(){if(z)return;let e=ae.current;if(v){let t=Array.isArray(L)?L:[];if(t.length===0){ge.set(`selectedIndex`,null);return}let n=t[t.length-1],r=ip(e,n,x);ge.set(`selectedIndex`,r===-1?null:r);return}let t=ip(e,L,x);ge.set(`selectedIndex`,t===-1?null:t)},[v,z,L,ae,x,ge]),Ed(L,()=>{w(ee),T(L!==k.initialValue),O()?N.commit(L):N.commit(L,!0)});let we=Y((e,t)=>{if(s?.(e,t),!t.isCanceled&&(B(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(E(!0),D(!1),P===`onBlur`&&N.commit(L)),!e&&ge.state.activeIndex!==null)){let e=V.current[ge.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Te=Y(()=>{fe(!1),ge.set(`activeIndex`,null),g?.(!1)});pc({enabled:!m,open:z,ref:H,onComplete(){z||Te()}}),K.useImperativeHandle(m,()=>({unmount:Te}),[Te]);let Ee=Y((e,t)=>{i?.(e,t),!t.isCanceled&&R(e)}),De=Y(()=>{let e=ge.state.listElement||H.current;if(!e)return;let t=e.scrollTop,n=e.scrollTop+e.clientHeight,r=t>1,i=n<e.scrollHeight-1;ge.state.scrollUpArrowVisible!==r&&ge.set(`scrollUpArrowVisible`,r),ge.state.scrollDownArrowVisible!==i&&ge.set(`scrollDownArrowVisible`,i)}),Oe=Cc({open:z,onOpenChange:we,elements:{reference:ye,floating:be}}),{getReferenceProps:W,getFloatingProps:ke,getItemProps:Ae}=Lc([so(Oe,{enabled:!d&&!I,event:`mousedown`}),ho(Oe,{bubbles:!1}),Kc(Oe,{enabled:!d&&!I,listRef:V,activeIndex:_e,selectedIndex:ve,disabledIndices:Zr,onNavigate(e){e===null&&!z||ge.set(`activeIndex`,e)},focusItemOnHover:!1}),Yc(Oe,{enabled:!d&&!I&&(z||!v),listRef:te,activeIndex:_e,selectedIndex:ve,onMatch(e){z?ge.set(`activeIndex`,e):Ee(ae.current[e],vi(`none`))},onTypingChange(e){oe.current=e}})]),je=K.useMemo(()=>ya(W(),he,F?{id:F}:Qr),[W,he,F]);it(()=>{ge.update({popupProps:ke(),triggerProps:je})}),q(()=>{ge.update({id:F,modal:p,multiple:v,value:L,open:z,mounted:de,transitionStatus:pe,popupProps:ke(),triggerProps:je,items:_,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x,openMethod:me})},[ge,F,p,v,L,z,de,pe,ke,je,_,y,b,x,me]);let Me=K.useMemo(()=>({store:ge,name:ee,required:f,disabled:I,readOnly:d,multiple:v,itemToStringLabel:y,itemToStringValue:b,highlightItemOnHover:S,setValue:Ee,setOpen:we,listRef:V,popupRef:H,scrollHandlerRef:ne,handleScrollArrowVisibility:De,scrollArrowsMountedCountRef:re,getItemProps:Ae,events:Oe.context.events,valueRef:ie,valuesRef:ae,labelsRef:te,typingRef:oe,selectionRef:le,selectedItemTextRef:ce,validation:N,onOpenChangeComplete:g,keyboardActiveRef:se,alignItemWithTriggerActiveRef:ue,initialValueRef:Ce}),[ge,ee,f,I,d,v,y,b,S,Ee,we,Ae,Oe.context.events,N,g,De]),Ne=Ci(h,N.inputRef),Pe=v&&Array.isArray(L)&&L.length>0,Fe=v?void 0:ee,Ie=K.useMemo(()=>!v||!Array.isArray(L)||!ee?null:L.map(e=>{let t=up(e,b);return(0,J.jsx)(`input`,{type:`hidden`,name:ee,value:t},t)}),[v,L,ee,b]);return(0,J.jsx)(Zf.Provider,{value:Me,children:(0,J.jsxs)(Qf.Provider,{value:Oe,children:[C,(0,J.jsx)(`input`,{...N.getInputValidationProps({onFocus(){ge.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.target.value,n=vi(ri,e.nativeEvent);function r(){if(v)return;let e=ae.current.find(e=>up(e,b).toLowerCase()===t.toLowerCase());e!=null&&(T(e!==k.initialValue),Ee(e,n),O()&&N.commit(e))}ge.set(`forceMount`,!0),queueMicrotask(r)}}),id:F&&Fe==null?`${F}-hidden-input`:void 0,name:Fe,autoComplete:l,value:xe,disabled:I,required:f&&!Pe,readOnly:d,ref:Ne,style:ee?Vi:Bi,tabIndex:-1,"aria-hidden":!0}),Ie]})})}function hp(e,t){return e??t}function gp(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}var _p=2,vp=400,yp=200,bp={..._l,...Su,value:()=>null},xp=K.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{setTouched:c,setFocused:l,validationMode:u,state:d,disabled:f}=wu(),{labelId:p}=Ou(),{store:m,setOpen:h,selectionRef:g,validation:_,readOnly:v,required:y,alignItemWithTriggerActiveRef:b,disabled:x,keyboardActiveRef:S}=$f(),C=f||x||a,w=$s(m,pp.open),T=$s(m,pp.value),E=$s(m,pp.triggerProps),D=$s(m,pp.positionerElement),O=$s(m,pp.listElement),k=$s(m,pp.id),A=$s(m,pp.labelId),j=$s(m,pp.hasSelectedValue),M=!j&&w,N=$s(m,pp.hasNullItemLabel,M),P=i??k,F=hp(p,A);ju({id:P});let I=ki(D),ee=K.useRef(null),{getButtonProps:L,buttonRef:R}=fu({disabled:C,native:o}),z=Ci(t,ee,R,Y(e=>{m.set(`triggerElement`,e)})),B=pt(),V=pt(),te=pt(),H=pt();K.useEffect(()=>{if(w)return j||N?H.start(yp,()=>{g.current.allowUnselectedMouseUp=!0,te.start(yp,()=>{g.current.allowSelectedMouseUp=!0})}):te.start(vp,()=>{g.current.allowUnselectedMouseUp=!0,g.current.allowSelectedMouseUp=!0}),()=>{te.clear(),H.clear()};g.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},V.clear()},[w,j,N,g,V,te,H]);let ne=K.useMemo(()=>O?.id??mn(D)?.id,[O,D]),re=ya(E,{id:P,role:`combobox`,"aria-expanded":w?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":w?ne:void 0,"aria-labelledby":F,"aria-readonly":v||void 0,"aria-required":y||void 0,tabIndex:C?-1:0,ref:z,onFocus(e){l(!0),w&&b.current&&h(!1,vi(ri,e.nativeEvent)),B.start(0,()=>{m.set(`forceMount`,!0)})},onBlur(e){on(D,e.relatedTarget)||(c(!0),l(!1),u===`onBlur`&&_.commit(T))},onPointerMove(){S.current=!1},onKeyDown(){S.current=!0},onMouseDown(e){if(w)return;let t=Rr(e.currentTarget);function n(e){if(!ee.current)return;let t=e.target;if(on(ee.current,t)||on(I.current,t)||t===ee.current)return;let n=gp(ee.current);e.clientX>=n.left-_p&&e.clientX<=n.right+_p&&e.clientY>=n.top-_p&&e.clientY<=n.bottom+_p||h(!1,vi(pi,e))}V.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},_.getValidationProps,s,L);re.role=`combobox`;let ie={...d,open:w,disabled:C,value:T,readOnly:v,placeholder:!j};return Aa(`button`,e,{ref:[t,ee],state:ie,stateAttributesMapping:bp,props:re})}),Sp={value:()=>null},Cp=K.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,...o}=e,{store:s,valueRef:c}=$f(),l=$s(s,pp.value),u=$s(s,pp.items),d=$s(s,pp.itemToStringLabel),f=$s(s,pp.hasSelectedValue),p=!f&&a!=null&&i==null,m=$s(s,pp.hasNullItemLabel,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(!f&&a!=null&&!m?a:Array.isArray(l)?fp(l,u,d):dp(l,u,d)),Aa(`span`,e,{state:h,ref:[t,c],props:[{children:g},o],stateAttributesMapping:Sp})}),wp=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a}=$f();return Aa(`span`,e,{state:{open:$s(a,pp.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},i],stateAttributesMapping:gl})}),Tp=K.createContext(void 0),Ep=K.forwardRef(function(e,t){let{store:n}=$f(),r=$s(n,pp.mounted),i=$s(n,pp.forceMount);return r||i?(0,J.jsx)(Tp.Provider,{value:!0,children:(0,J.jsx)(Ba,{ref:t,...e})}):null}),Dp=K.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Op(){return K.useContext(Dp)}function kp(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),o=K.useRef(0),s=Xe(jp).current,c=Xe(Ap).current,[l,u]=K.useState(0),d=K.useRef(l),f=Y((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=Y(e=>{c.delete(e),d.current+=1,u(d.current)}),m=K.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Mp).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);q(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),q(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),q(()=>()=>{n.current=[]},[n]),q(()=>()=>{r&&(r.current=[])},[r]);let h=Y(e=>(s.add(e),()=>{s.delete(e)}));q(()=>{s.forEach(e=>e(m))},[s,m]);let g=K.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,J.jsx)(Dp.Provider,{value:g,children:t})}function Ap(){return new Map}function jp(){return new Set}function Mp(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var Np=K.createContext(void 0);function Pp(){let e=K.useContext(Np);if(!e)throw Error(ot(59));return e}function Fp(e,t){e&&Object.assign(e.style,t)}var Ip={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Lp={position:`fixed`},Rp=K.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=ei,..._}=e,{store:v,listRef:y,labelsRef:b,alignItemWithTriggerActiveRef:x,selectedItemTextRef:S,valuesRef:C,initialValueRef:w,popupRef:T,setValue:E}=$f(),D=ep(),O=$s(v,pp.open),k=$s(v,pp.mounted),A=$s(v,pp.modal),j=$s(v,pp.value),M=$s(v,pp.openMethod),N=$s(v,pp.positionerElement),P=$s(v,pp.triggerElement),F=$s(v,pp.isItemEqualToValue),I=$s(v,pp.transitionStatus),ee=K.useRef(null),L=K.useRef(null),[R,z]=K.useState(h),B=k&&R&&M!==`touch`;!k&&R!==h&&z(h),q(()=>{k||(pp.scrollUpArrowVisible(v.state)&&v.set(`scrollUpArrowVisible`,!1),pp.scrollDownArrowVisible(v.state)&&v.set(`scrollDownArrowVisible`,!1))},[v,k]),K.useImperativeHandle(x,()=>B),wd((B||A)&&O&&M!==`touch`,P);let V=zl({anchor:n,floatingRootContext:D,positionMethod:r,mounted:k,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??B,collisionAvoidance:g,keepMounted:!0}),te=B?`none`:V.side,H=B?Lp:V.positionerStyles,ne=K.useMemo(()=>{let e={};return O||(e.pointerEvents=`none`),{role:`presentation`,hidden:!k,style:{...H,...e}}},[O,k,H]),re={open:O,side:te,align:V.align,anchorHidden:V.anchorHidden},ie=Aa(`div`,e,{ref:[t,Y(e=>{v.set(`positionerElement`,e)})],state:re,stateAttributesMapping:vl,props:[ne,Vl(I),_]}),ae=K.useRef(0),oe=Y(e=>{if(e.size===0&&ae.current===0||C.current.length===0)return;let t=ae.current;if(ae.current=e.size,e.size===t)return;let n=vi(ri);if(t!==0&&!v.state.multiple&&j!==null&&ip(C.current,j,F)===-1){let e=w.current,t=e!=null&&ip(C.current,e,F)!==-1?e:null;E(t,n),t===null&&(v.set(`selectedIndex`,null),S.current=null)}if(t!==0&&v.state.multiple&&Array.isArray(j)){let e=e=>ip(C.current,e,F)!==-1,t=j.filter(t=>e(t));(t.length!==j.length||t.some(e=>!rp(j,e,F)))&&(E(t,n),t.length===0&&(v.set(`selectedIndex`,null),S.current=null))}if(O&&B){v.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Fp(N,e),Fp(T.current,e)}}),se=K.useMemo(()=>({...V,side:te,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:ee,scrollDownArrowRef:L}),[V,te,B,z]);return(0,J.jsx)(kp,{elementsRef:y,labelsRef:b,onMapChange:oe,children:(0,J.jsxs)(Np.Provider,{value:se,children:[k&&A&&(0,J.jsx)(md,{inert:ql(!O),cutout:P}),ie]})})});function zp(e){let t=e.currentTarget.getBoundingClientRect();return t.top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1}var Bp=`base-ui-disable-scrollbar`,Vp={className:Bp,getElement(e){return(0,J.jsx)(`style`,{nonce:e,href:Bp,precedence:`base-ui:low`,children:`.${Bp}{scrollbar-width:none}.${Bp}::-webkit-scrollbar{display:none}`})}},Hp=K.createContext(void 0);function Up(e){let t=K.useContext(Hp);if(t===void 0&&!e)throw Error(ot(69));return t}function Wp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Gp=K.createContext(void 0),Kp={disableStyleElements:!1};function qp(){return K.useContext(Gp)??Kp}var Jp=1,Yp={...vl,...dc},Xp=K.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o,popupRef:s,onOpenChangeComplete:c,setOpen:l,valueRef:u,selectedItemTextRef:d,keyboardActiveRef:f,multiple:p,handleScrollArrowVisibility:m,scrollHandlerRef:h,highlightItemOnHover:g}=$f(),{side:_,align:v,alignItemWithTriggerActive:y,setControlledAlignItemWithTrigger:b,scrollDownArrowRef:x,scrollUpArrowRef:S}=Pp(),C=Up(!0)!=null,w=ep(),{nonce:T,disableStyleElements:E}=qp(),D=pt(),O=$s(o,pp.id),k=$s(o,pp.open),A=$s(o,pp.mounted),j=$s(o,pp.popupProps),M=$s(o,pp.transitionStatus),N=$s(o,pp.triggerElement),P=$s(o,pp.positionerElement),F=$s(o,pp.listElement),I=K.useRef(0),ee=K.useRef(!1),L=K.useRef(0),R=K.useRef(!1),z=K.useRef({}),B=Ri(),V=Y(e=>{if(!P||!s.current||!R.current)return;if(ee.current||!y){m();return}let t=P.style.top===`0px`,n=P.style.bottom===`0px`,r=P.getBoundingClientRect().height,i=Rr(P),a=getComputedStyle(P),o=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),l=Zp(getComputedStyle(s.current)),u=Math.min(i.documentElement.clientHeight-o-c,l),d=e.scrollTop,f=Qp(e),p=0,h=null,g=!1,_=!1,v=e=>{P.style.height=`${e}px`},b=(t,n)=>{let i=Wp(t,0,u-r);i>0&&v(r+i),e.scrollTop=n,u-(r+i)<=Jp&&(ee.current=!0),m()};if(t){let e=f-d,t=r+e,n=Math.min(t,u);if(p=n,e<=Jp){b(e,f);return}u-n>Jp?_=!0:g=!0}else if(n){let e=d,t=r+e,n=Math.min(t,u),i=t-u;if(p=n,e<=Jp){b(e,0);return}u-n>Jp?h=0:(g=!0,d<f&&(h=d-(e-i)))}if(p=Math.ceil(p),p!==0&&v(p),_||h!=null){let t=Qp(e),n=_?t:Wp(h,0,t);Math.abs(e.scrollTop-n)>Jp&&(e.scrollTop=n)}(g||p>=u-Jp)&&(ee.current=!0),m()});K.useImperativeHandle(h,()=>V,[V]),pc({open:k,ref:s,onComplete(){k&&c?.(!0)}});let te={open:k,transitionStatus:M,side:_,align:v};q(()=>{!P||!s.current||Object.keys(z.current).length||(z.current={top:P.style.top||`0`,left:P.style.left||`0`,right:P.style.right,height:P.style.height,bottom:P.style.bottom,minHeight:P.style.minHeight,maxHeight:P.style.maxHeight,marginTop:P.style.marginTop,marginBottom:P.style.marginBottom})},[s,P]),q(()=>{k||y||(R.current=!1,ee.current=!1,I.current=0,L.current=0,Fp(P,z.current))},[k,y,P,s]),q(()=>{let e=s.current;if(!(!k||!N||!P||!e||o.state.transitionStatus===`ending`)){if(!y){R.current=!0,B.request(m),e.style.removeProperty(`--transform-origin`);return}queueMicrotask(()=>{let t=nm(e);e.style.removeProperty(`--transform-origin`);try{let t=getComputedStyle(P),n=getComputedStyle(e),r=Rr(N),i=gt(P),a=$p(N),o=em(N.getBoundingClientRect(),a),s=em(P.getBoundingClientRect(),a),c=o.left,l=o.height,f=F||e,p=f.scrollHeight,h=parseFloat(n.borderBottomWidth),g=parseFloat(t.marginTop)||10,_=parseFloat(t.marginBottom)||10,v=parseFloat(t.minHeight)||100,y=Zp(n),x=r.documentElement.clientHeight-g-_,S=r.documentElement.clientWidth,C=x-o.bottom+l,w=d.current,T=u.current,E,D=0,O=0;if(w&&T){let e=em(T.getBoundingClientRect(),a);E=em(w.getBoundingClientRect(),a);let t=e.left-c,n=E.left-s.left,r=e.top-o.top+e.height/2,i=E.top-s.top+E.height/2;D=t-n,O=i-r}let k=C+O+_+h,A=Math.min(x,k),j=x-g-_,M=k-A,L=Math.max(5,c+D),B=S-5,V=Math.max(0,L+s.width-B);P.style.left=`${L-V}px`,P.style.height=`${A}px`,P.style.maxHeight=`auto`,P.style.marginTop=`${g}px`,P.style.marginBottom=`${_}px`,e.style.height=`100%`;let te=Qp(f),H=M>=te-Jp;H&&(A=Math.min(x,s.height)-(M-te));let ne=o.top<20||o.bottom>x-20||Math.ceil(A)+Jp<Math.min(p,v),re=(i.visualViewport?.scale??1)!==1&&Ut;if(ne||re){R.current=!0,Fp(P,z.current),Fa.flushSync(()=>b(!1));return}if(H){let e=Math.max(0,x-k);P.style.top=s.height>=j?`0`:`${e}px`,P.style.height=`${A}px`,f.scrollTop=Qp(f),I.current=Math.max(v,A)}else P.style.bottom=`0`,I.current=Math.max(v,A),f.scrollTop=M;if(E){let t=s.top,n=s.height,r=E.top+E.height/2,i=Wp(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(I.current===x||A>=y)&&(ee.current=!0),m(),setTimeout(()=>{R.current=!0})}finally{t()}})}},[o,k,P,N,u,d,s,m,y,b,B,x,S,F]),K.useEffect(()=>{if(!y||!P||!k)return;let e=gt(P);function t(e){l(!1,vi(_i,e))}return e.addEventListener(`resize`,t),()=>{e.removeEventListener(`resize`,t)}},[l,y,P,k]);let H={...F?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":p||void 0,id:`${O}-list`},onKeyDown(e){f.current=!0,C&&ad.has(e.key)&&e.stopPropagation()},onMouseMove(){f.current=!1},onPointerLeave(e){if(!g||zp(e)||e.pointerType===`touch`)return;let t=e.currentTarget;D.start(0,()=>{o.set(`activeIndex`,null),t.focus({preventScroll:!0})})},onScroll(e){F||V(e.currentTarget)},...y&&{style:F?{height:`100%`}:Ip}},ne=Aa(`div`,e,{ref:[t,s],state:te,stateAttributesMapping:Yp,props:[j,H,Vl(M),{className:!F&&y?Vp.className:void 0},a]});return(0,J.jsxs)(K.Fragment,{children:[!E&&Vp.getElement(T),(0,J.jsx)(oo,{context:w,modal:!1,disabled:!A,returnFocus:i,restoreFocus:!0,children:ne})]})});function Zp(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Qp(e){return Math.max(0,e.scrollHeight-e.clientHeight)}function $p(e){return ns.getScale(e)}function em(e,t){return Xn({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}var tm=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function nm(e){let{style:t}=e,n={};for(let[e,r]of tm)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of tm){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var rm=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a,scrollHandlerRef:o}=$f(),{alignItemWithTriggerActive:s}=Pp(),c=$s(a,pp.hasScrollArrows),l=$s(a,pp.openMethod),u=$s(a,pp.multiple),d={id:`${$s(a,pp.id)}-list`,role:`listbox`,"aria-multiselectable":u||void 0,onScroll(e){o.current?.(e.currentTarget)},...s&&{style:Ip},className:c&&l!==`touch`?Vp.className:void 0};return Aa(`div`,e,{ref:[t,Y(e=>{a.set(`listElement`,e)})],props:[d,i]})}),im=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function am(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Op(),f=K.useRef(-1),[p,m]=K.useState(a??(i===im.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=K.useRef(null),g=K.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return q(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),q(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),K.useMemo(()=>({ref:g,index:p}),[p,g])}var om=K.createContext(void 0);function sm(){let e=K.useContext(om);if(!e)throw Error(ot(57));return e}var cm=K.memo(K.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,...c}=e,l=K.useRef(null),u=am({label:a,textRef:l,indexGuessBehavior:im.GuessFromOrder}),{store:d,getItemProps:f,setOpen:p,setValue:m,selectionRef:h,typingRef:g,valuesRef:_,keyboardActiveRef:v,multiple:y,highlightItemOnHover:b}=$f(),x=pt(),S=$s(d,pp.isActive,u.index),C=$s(d,pp.isSelected,u.index,i),w=$s(d,pp.isSelectedByFocus,u.index),T=$s(d,pp.isItemEqualToValue),E=u.index,D=E!==-1,O=K.useRef(null),k=ki(E);q(()=>{if(!D)return;let e=_.current;return e[E]=i,()=>{delete e[E]}},[D,E,i,_]),q(()=>{if(!D)return;let e=d.state.value,t=e;y&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&np(i,t,T)&&d.set(`selectedIndex`,E)},[D,E,y,T,d,i]);let A={disabled:o,selected:C,highlighted:S},j=f({active:S,selected:C});j.onFocus=void 0,j.id=void 0;let M=K.useRef(null),N=K.useRef(`mouse`),P=K.useRef(!1),{getButtonProps:F,buttonRef:I}=fu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function ee(e){let t=d.state.value;if(y){let n=Array.isArray(t)?t:[];m(C?ap(n,i,T):[...n,i],vi(ci,e))}else m(i,vi(ci,e)),p(!1,vi(ci,e))}let L={role:`option`,"aria-selected":C,tabIndex:S?0:-1,onFocus(){d.set(`activeIndex`,E)},onMouseEnter(){!v.current&&d.state.selectedIndex===null&&b&&d.set(`activeIndex`,E)},onMouseMove(){b&&d.set(`activeIndex`,E)},onMouseLeave(e){!b||v.current||zp(e)||x.start(0,()=>{d.state.activeIndex===E&&d.set(`activeIndex`,null)})},onTouchStart(){h.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){M.current=e.key,d.set(`activeIndex`,E),e.key===` `&&g.current&&e.preventDefault()},onClick(e){P.current=!1,!(e.type===`keydown`&&M.current===null)&&(o||e.type===`keydown`&&M.current===` `&&g.current||N.current!==`touch`&&!S||(M.current=null,ee(e.nativeEvent)))},onPointerEnter(e){N.current=e.pointerType},onPointerDown(e){N.current=e.pointerType,P.current=!0},onMouseUp(){if(o)return;if(P.current){P.current=!1;return}let e=!h.current.allowSelectedMouseUp&&C,t=!h.current.allowUnselectedMouseUp&&!C;e||t||N.current!==`touch`&&!S||O.current?.click()}},R=Aa(`div`,e,{ref:[I,t,u.ref,O],state:A,props:[j,L,c,F]}),z=K.useMemo(()=>({selected:C,indexRef:k,textRef:l,selectedByFocus:w,hasRegistered:D}),[C,k,l,w,D]);return(0,J.jsx)(om.Provider,{value:z,children:R})})),lm=K.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=sm();return n||r?(0,J.jsx)(um,{...e,ref:t}):null}),um=K.memo(K.forwardRef((e,t)=>{let{render:n,className:r,keepMounted:i,...a}=e,{selected:o}=sm(),s=K.useRef(null),{transitionStatus:c,setMounted:l}=sc(o),u=Aa(`span`,e,{ref:[t,s],state:{selected:o,transitionStatus:c},props:[{"aria-hidden":!0,children:`✔️`},a],stateAttributesMapping:dc});return pc({open:o,ref:s,onComplete(){o||l(!1)}}),u})),dm=K.memo(K.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=sm(),{selectedItemTextRef:o}=$f(),{className:s,render:c,...l}=e;return Aa(`div`,e,{ref:[K.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:l})})),fm=K.forwardRef(function(e,t){let{render:n,className:r,direction:i,keepMounted:a=!1,...o}=e,{store:s,popupRef:c,listRef:l,handleScrollArrowVisibility:u,scrollArrowsMountedCountRef:d}=$f(),{side:f,scrollDownArrowRef:p,scrollUpArrowRef:m}=Pp(),h=$s(s,i===`up`?pp.scrollUpArrowVisible:pp.scrollDownArrowVisible),g=$s(s,pp.openMethod),_=h&&g!==`touch`,v=pt(),y=i===`up`?m:p,{transitionStatus:b,setMounted:x}=sc(_);q(()=>(d.current+=1,s.state.hasScrollArrows||s.set(`hasScrollArrows`,!0),()=>{d.current=Math.max(0,d.current-1),d.current===0&&s.state.hasScrollArrows&&s.set(`hasScrollArrows`,!1)}),[s,d]),pc({open:_,ref:y,onComplete(){_||x(!1)}});let S=Aa(`div`,e,{ref:[t,y],state:{direction:i,visible:_,side:f,transitionStatus:b},props:[{"aria-hidden":!0,children:i===`up`?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||v.isStarted())return;s.set(`activeIndex`,null);function t(){let e=s.state.listElement??c.current;if(!e)return;s.set(`activeIndex`,null),u();let n=e.scrollTop===0,r=Math.round(e.scrollTop+e.clientHeight)>=e.scrollHeight;if(l.current.length===0&&(i===`up`?s.set(`scrollUpArrowVisible`,!n):s.set(`scrollDownArrowVisible`,!r)),i===`up`&&n||i===`down`&&r){v.clear();return}if((s.state.listElement||c.current)&&l.current&&l.current.length>0){let t=l.current,n=y.current?.offsetHeight||0;if(i===`up`){let r=0,i=e.scrollTop+n;for(let e=0;e<t.length;e+=1){let n=t[e];if(n&&n.offsetTop>=i){r=e;break}}let a=Math.max(0,r-1);if(a<r){let r=t[a];r&&(e.scrollTop=Math.max(0,r.offsetTop-n))}else e.scrollTop=0}else{let r=t.length-1,i=e.scrollTop+e.clientHeight-n;for(let e=0;e<t.length;e+=1){let n=t[e];if(n&&n.offsetTop+n.offsetHeight>i){r=Math.max(0,e-1);break}}let a=Math.min(t.length-1,r+1);if(a>r){let r=t[a];r&&(e.scrollTop=r.offsetTop+r.offsetHeight-e.clientHeight+n)}else e.scrollTop=e.scrollHeight-e.clientHeight}}v.start(40,t)}v.start(40,t)},onMouseLeave(){v.clear()}},o]});return _||a?S:null}),pm=K.forwardRef(function(e,t){return(0,J.jsx)(fm,{...e,ref:t,direction:`down`})}),mm=K.forwardRef(function(e,t){return(0,J.jsx)(fm,{...e,ref:t,direction:`up`})}),hm=K.createContext(void 0);function gm(){let e=K.useContext(hm);if(e===void 0)throw Error(ot(56));return e}var _m=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,[a,o]=K.useState(),s=K.useMemo(()=>({labelId:a,setLabelId:o}),[a,o]),c=Aa(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":a},i]});return(0,J.jsx)(hm.Provider,{value:s,children:c})}),vm=K.forwardRef(function(e,t){let{className:n,render:r,id:i,...a}=e,{setLabelId:o}=gm(),s=yl(i);return q(()=>{o(s)},[s,o]),Aa(`div`,e,{ref:t,props:[{id:s},a]})}),ym=mp;function bm({className:e,...t}){return(0,J.jsx)(_m,{"data-slot":`select-group`,className:G(`scroll-my-1 p-1`,e),...t})}function xm({className:e,...t}){return(0,J.jsx)(Cp,{"data-slot":`select-value`,className:G(`flex flex-1 text-start`,e),...t})}function Sm({className:e,size:t=`default`,children:n,...r}){return(0,J.jsxs)(xp,{"data-slot":`select-trigger`,"data-size":t,className:G(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pe-2 ps-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,J.jsx)(wp,{render:(0,J.jsx)($d,{icon:Xd,strokeWidth:2,className:`pointer-events-none size-4 text-muted-foreground`})})]})}function Cm({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...s}){return(0,J.jsx)(Ep,{children:(0,J.jsx)(Rp,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,J.jsxs)(Xp,{"data-slot":`select-content`,"data-align-trigger":o,className:G(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...s,children:[(0,J.jsx)(Em,{}),(0,J.jsx)(rm,{children:t}),(0,J.jsx)(Dm,{})]})})})}function wm({className:e,...t}){return(0,J.jsx)(vm,{"data-slot":`select-label`,className:G(`px-1.5 py-1 text-xs text-muted-foreground`,e),...t})}function Tm({className:e,children:t,...n}){return(0,J.jsxs)(cm,{"data-slot":`select-item`,className:G(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,J.jsx)(dm,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,J.jsx)(lm,{render:(0,J.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex size-4 items-center justify-center`}),children:(0,J.jsx)($d,{icon:Yd,strokeWidth:2,className:`pointer-events-none`})})]})}function Em({className:e,...t}){return(0,J.jsx)(mm,{"data-slot":`select-scroll-up-button`,className:G(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,J.jsx)($d,{icon:Ld,strokeWidth:2})})}function Dm({className:e,...t}){return(0,J.jsx)(pm,{"data-slot":`select-scroll-down-button`,className:G(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,J.jsx)($d,{icon:Fd,strokeWidth:2})})}function Om({copiedId:e,onCopy:t,options:n}){let[r,i]=(0,K.useState)(0),a=n.find(t=>t.id===e),o=a!=null;return(0,J.jsxs)(ym,{onValueChange:e=>{let r=n.find(t=>t.id===e);r&&(t(r.id,r.text),i(e=>e+1))},children:[(0,J.jsxs)(Sm,{size:`sm`,className:`min-w-28`,children:[(0,J.jsx)($d,{icon:o?Jd:zd,className:`size-4 text-muted-foreground`}),(0,J.jsx)(xm,{placeholder:o?`Copied ${a.label}`:`Copy export`})]}),(0,J.jsx)(Cm,{align:`end`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Export`}),n.map(e=>(0,J.jsxs)(Tm,{value:e.id,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:e.label}),e.hint?(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.hint}):null]},e.id))]})})]},r)}var km={stats:`/api/analytics/stats`,errors:`/api/analytics/errors?limit=500&sort=timestamp&order=desc`,requests:`/api/analytics/requests?limit=500&sort=timestamp&order=desc`,tasks:`/api/analytics/tasks?limit=500&sort=timestamp&order=desc`,scheduled:`/api/analytics/scheduled`,stream:`/api/analytics/stream`},Am=2e3;function jm(e=5e3){let[t,n]=(0,K.useState)(null),[r,i]=(0,K.useState)([]),[a,o]=(0,K.useState)([]),[s,c]=(0,K.useState)([]),[l,u]=(0,K.useState)([]),[d,f]=(0,K.useState)(!0),[p,m]=(0,K.useState)(null),[h,g]=(0,K.useState)(!0),[_,v]=(0,K.useState)(!1),y=(0,K.useRef)(!1),b=(0,K.useRef)(null),x=(0,K.useCallback)(async()=>{try{y.current||g(!0);let[e,t,r,a]=await Promise.all([fetch(km.stats,{cache:`no-store`}),fetch(km.errors,{cache:`no-store`}),fetch(km.requests,{cache:`no-store`}),fetch(km.tasks,{cache:`no-store`})]);if(e.status===401||t.status===401||r.status===401||a.status===401){window.location.reload();return}if(!e.ok||!t.ok||!r.ok||!a.ok)throw Error(`Failed to fetch analytics data`);let[s,l,d,f]=await Promise.all([e.json(),t.json(),r.json(),a.json()]);n(s),i(Array.isArray(l)?l:l.data??[]),o(Array.isArray(d)?d:d.data??[]),c(Array.isArray(f)?f:f.data??[]);let p=await fetch(km.scheduled,{cache:`no-store`}).catch(()=>null);p?.ok&&u(await p.json()),m(null),y.current=!0}catch{m(`Analytics verisi alinamadi. Son basarili durum korunuyor.`)}finally{g(!1)}},[]);return(0,K.useEffect)(()=>{if(!d){b.current?.close(),b.current=null,v(!1);return}x();let t=new EventSource(km.stream);b.current=t,t.addEventListener(`open`,()=>v(!0)),t.addEventListener(`request`,e=>{try{let t=JSON.parse(e.data);o(e=>[t,...e].slice(0,Am))}catch{}}),t.addEventListener(`error`,e=>{try{let t=JSON.parse(e.data);i(e=>[t,...e].slice(0,Am))}catch{v(!1)}}),t.addEventListener(`task`,e=>{try{let t=JSON.parse(e.data);c(e=>[t,...e].slice(0,Am))}catch{}}),t.addEventListener(`stats`,e=>{try{n(JSON.parse(e.data))}catch{}});let r=setInterval(async()=>{try{let e=await fetch(km.stats,{cache:`no-store`});e.ok&&n(await e.json())}catch{}},e);return()=>{t.close(),b.current=null,v(!1),clearInterval(r)}},[d,x,e]),{data:t,errors:r,requests:a,taskExecutions:s,scheduledTasks:l,autoRefresh:d,setAutoRefresh:f,error:p,isLoading:h,connected:_}}var Mm=2e3;function Nm(){let[e,t]=(0,K.useState)(null),n=(0,K.useRef)(void 0);return{copiedId:e,copy:(0,K.useCallback)((e,r)=>{navigator.clipboard.writeText(r).then(()=>{t(e),clearTimeout(n.current),n.current=setTimeout(()=>t(null),Mm)})},[])}}function Pm({navigate:e,toggleRefresh:t}){(0,K.useEffect)(()=>{function n(n){let r=n.target.tagName;if(!(r===`INPUT`||r===`TEXTAREA`||r===`SELECT`)&&!(n.metaKey||n.ctrlKey||n.altKey))switch(n.key){case`1`:e(`overview`);break;case`2`:e(`requests`);break;case`3`:e(`errors`);break;case`r`:t();break;case`/`:n.preventDefault(),document.querySelector(`input[type="search"]`)?.focus();break}}return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t])}var Fm=new Set([`overview`,`requests`,`errors`,`tasks`,`sessions`]);function Im(){let[e=`/`,t=``]=(window.location.hash.slice(1)||`/`).split(`?`,2),n=e.split(`/`).filter(Boolean).map(e=>decodeURIComponent(e)),r={},i=new URLSearchParams(t);for(let[e,t]of i.entries())r[e]=t;return n.length===0?{page:`overview`,params:r}:{page:Fm.has(n[0])?n[0]:`overview`,id:n.length>=2?n[1]:void 0,params:r}}function Lm(){let[e,t]=(0,K.useState)(Im);return(0,K.useEffect)(()=>{let e=()=>t(Im());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),{route:e,navigate:(0,K.useCallback)((e,t,n)=>{let r=Fm.has(e)?e:`overview`,i=t?`${r}/${encodeURIComponent(t)}`:r;if(n){let e=new URLSearchParams;for(let[t,r]of Object.entries(n))e.set(t,r);let t=e.toString();t&&(i+=`?${t}`)}window.location.hash=i},[])}}function Rm(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function zm(){return localStorage.getItem(`silgi-theme`)??Rm()}function Bm(e){let t=document.documentElement;t.classList.add(`theme-transition`),t.classList.toggle(`dark`,e===`dark`),setTimeout(()=>t.classList.remove(`theme-transition`),250)}function Vm(){let[e,t]=(0,K.useState)(zm);(0,K.useEffect)(()=>{Bm(e)},[e]);let n=(0,K.useCallback)(e=>{localStorage.setItem(`silgi-theme`,e),t(e)},[]);return{theme:e,setTheme:n,toggle:(0,K.useCallback)(()=>{n(e===`dark`?`light`:`dark`)},[e,n])}}function Hm(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Um(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function Wm(){return typeof window>`u`?``:window.location.origin}function Gm(e){return["```bash",`curl -L ${Um(e)} \\`,` -H 'accept: text/markdown'`,"```"].join(`
34
- `)}function Km(e,t){if(e.length===0)return``;let n=[],r=new Map;for(let t of e)r.set(t.kind,(r.get(t.kind)??0)+t.durationMs);let i=[...r.values()].reduce((e,t)=>e+t,0),a=Math.max(0,t-i),o=Math.max(t,.1);n.push(`#### Timing`),n.push(``),n.push(`| Category | Duration | % |`),n.push(`|----------|----------|---|`),n.push(`| **Total** | **${t}ms** | 100% |`);for(let[e,t]of r)n.push(`| ${e} | ${t.toFixed(1)}ms | ${(t/o*100).toFixed(0)}% |`);n.push(`| App Logic | ${a.toFixed(1)}ms | ${(a/o*100).toFixed(0)}% |`),n.push(``);for(let t=0;t<e.length;t++){let r=e[t],i=r.error?` ❌ ${r.error}`:``,a=r.startOffsetMs==null?``:` (at +${r.startOffsetMs}ms)`;n.push(`**${t+1}. [${r.kind}] ${r.name}** — ${r.durationMs}ms${a}${i}`),r.detail&&n.push("```",r.detail,"```")}return n.push(``),n.join(`
35
- `)}function qm(e,t){let n=[],r=e.status>=500?`💥`:e.status>=400?`⚠️`:`✅`;return n.push(`### ${r} ${t+1}. \`${e.procedure}\` → ${e.status} (${e.durationMs}ms)`),n.push(``),e.input!==void 0&&e.input!==null&&n.push(`#### Input`,``,"```json",Hm(e.input),"```",``),e.output!==void 0&&e.output!==null&&n.push(`#### Output`,``,"```json",Hm(e.output),"```",``),e.error&&n.push(`#### Error`,``,"```",e.error,"```",``),n.push(Km(e.spans,e.durationMs)),n.join(`
36
- `)}function Jm(e){let t=[];return t.push(`---`,``),t.push(`**Analyze this request and suggest performance optimizations:**`),t.push(`- Redundant or slow operations that could be combined?`),t.push(`- N+1 query pattern?`),t.push(`- Data that should be cached?`),t.push(`- Sequential calls that could run in parallel?`),e>100&&t.push(`- This request took ${e}ms — what is the bottleneck?`),t.join(`
37
- `)}function Ym(e){let t=[],n=new Date(e.timestamp).toISOString();t.push(`## Error in \`${e.procedure}\``),t.push(``),t.push(`**Time:** ${n} `),t.push(`**Error:** ${e.code} `),t.push(`**Status:** ${e.status} `),t.push(`**Duration:** ${e.durationMs}ms`),t.push(``),e.input!==void 0&&e.input!==null&&t.push(`### Input`,``,"```json",Hm(e.input),"```",``),e.stack&&t.push(`### Stack Trace`,``,"```",e.stack,"```",``);let r=Object.entries(e.headers??{});if(r.length>0){t.push(`### Request Headers`,``);for(let[e,n]of r)t.push(`- \`${e}\`: \`${Kf(e,n)}\``);t.push(``)}return t.push(Km(e.spans,e.durationMs)),t.push(`### Error Message`,``,"```",e.error,"```",``),t.push(Jm(e.durationMs)),t.join(`
38
- `)}function Xm(e){let t={...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)]))};return JSON.stringify(t,null,2)}function Zm(e){let t=[],n=new Date(e.timestamp).toISOString(),r=e.status>=500?`💥`:e.status>=400?`⚠️`:`✅`;t.push(`## ${r} ${e.method} ${e.path} → ${e.status} (${e.durationMs}ms)`),t.push(``),t.push(`| Field | Value |`),t.push(`|-------|-------|`),t.push(`| Request ID | \`${e.requestId}\` |`),t.push(`| Session ID | \`${e.sessionId}\` |`),t.push(`| Method | ${e.method} |`),t.push(`| URL | \`${e.url}\` |`),t.push(`| Path | \`${e.path}\` |`),t.push(`| Status | ${e.status} |`),t.push(`| Duration | ${e.durationMs}ms |`),t.push(`| Time | ${n} |`),t.push(`| IP | ${e.ip} |`),t.push(`| Procedures | ${e.procedures.length} |`),e.isBatch&&t.push(`| Batch | Yes |`),t.push(``);let i=Object.entries(e.headers??{});if(i.length>0){t.push(`### Request Headers`,``);for(let[e,n]of i)t.push(`- \`${e}\`: \`${Kf(e,n)}\``);t.push(``)}for(let n=0;n<e.procedures.length;n++)t.push(qm(e.procedures[n],n));let a=Object.entries(e.responseHeaders??{});if(a.length>0){t.push(`### Response Headers`,``);for(let[e,n]of a)t.push(`- \`${e}\`: \`${n}\``);t.push(``)}return t.push(Jm(e.durationMs)),t.join(`
39
- `)}function Qm(e){let t=[];t.push(`## Performance: ${e.method} ${e.path} → ${e.status} (${e.durationMs}ms)`),t.push(``);for(let n=0;n<e.procedures.length;n++){let r=e.procedures[n];t.push(`### ${n+1}. \`${r.procedure}\` (${r.durationMs}ms)`),t.push(``),t.push(Km(r.spans,r.durationMs))}return t.push(Jm(e.durationMs)),t.join(`
40
- `)}function $m(e){let t=encodeURIComponent(e.requestId||String(e.id));return`${Wm()}/api/analytics/requests/${t}/md`}function eh(e){return Gm($m(e))}function th(e){return`${Wm()}/api/analytics/errors/${encodeURIComponent(String(e.id))}/md`}function nh(e){return Gm(th(e))}function rh(e){let t={...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)])),responseHeaders:Object.fromEntries(Object.entries(e.responseHeaders??{}).map(([e,t])=>[e,Kf(e,t)]))};return JSON.stringify(t,null,2)}function ih(e,t){let n=[],r=[...e].toSorted((e,t)=>e.timestamp-t.timestamp),i=r[0],a=r[r.length-1],o=e.reduce((e,t)=>e+t.durationMs,0),s=e.filter(e=>e.status>=400).length,c=new Set(e.flatMap(e=>e.procedures.map(e=>e.procedure)));n.push(`## Session \`${t}\``),n.push(``),n.push(`| Field | Value |`),n.push(`|-------|-------|`),n.push(`| Requests | ${e.length} |`),n.push(`| Errors | ${s} |`),n.push(`| Total Duration | ${o.toFixed(1)}ms |`),n.push(`| Avg Duration | ${(o/e.length).toFixed(1)}ms |`),n.push(`| First Seen | ${new Date(i.timestamp).toISOString()} |`),n.push(`| Last Seen | ${new Date(a.timestamp).toISOString()} |`),n.push(`| Procedures | ${[...c].join(`, `)} |`),n.push(`| IP | ${a.ip} |`),n.push(``);for(let e=0;e<r.length;e++){let t=r[e],i=t.status>=500?`💥`:t.status>=400?`⚠️`:`✅`;n.push(`### ${i} ${e+1}. ${t.method} ${t.path} → ${t.status} (${t.durationMs}ms)`),n.push(``);for(let e of t.procedures)n.push(`- \`${e.procedure}\` — ${e.status} — ${e.durationMs}ms — ${e.spans.length} spans`);n.push(``)}return n.join(`
41
- `)}function ah(e,t){let n=e.map(e=>({...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)])),responseHeaders:Object.fromEntries(Object.entries(e.responseHeaders??{}).map(([e,t])=>[e,Kf(e,t)]))}));return JSON.stringify({sessionId:t,requests:n},null,2)}function oh(e){let t=[],n=new Date(e.timestamp).toISOString(),r=e.status===`error`?`💥`:`✅`;return t.push(`## ${r} Task \`${e.taskName||`(unnamed)`}\``),t.push(``),t.push(`| Field | Value |`),t.push(`|-------|-------|`),t.push(`| Status | ${e.status} |`),t.push(`| Trigger | ${e.trigger} |`),t.push(`| Duration | ${e.durationMs}ms |`),t.push(`| Time | ${n} |`),t.push(`| Spans | ${e.spans.length} |`),t.push(``),e.input!==void 0&&e.input!==null&&t.push(`### Input`,``,"```json",Hm(e.input),"```",``),e.output!==void 0&&e.output!==null&&t.push(`### Output`,``,"```json",Hm(e.output),"```",``),e.error&&t.push(`### Error`,``,"```",e.error,"```",``),e.spans.length>0&&t.push(Km(e.spans,e.durationMs)),t.join(`
42
- `)}function sh({errors:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Nm(),a=e.find(e=>e.id===Number(t));if(!a)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Error not found`});let o=[{id:`md-${a.id}`,label:`Markdown`,text:Ym(a),hint:`full`},{id:`md-url-${a.id}`,label:`Markdown URL`,text:th(a),hint:`/md`},{id:`curl-${a.id}`,label:`cURL`,text:nh(a),hint:`fetch md`},{id:`json-${a.id}`,label:`JSON`,text:Xm(a),hint:`redacted`}];return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`errors`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Errors`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:a.procedure}),(0,J.jsx)(cu,{variant:`destructive`,children:a.code}),(0,J.jsx)(cu,{variant:`secondary`,children:a.status}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(a.durationMs)}),a.spans.length>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[a.spans.length,` spans`]}),a.requestId&&(0,J.jsxs)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[9px] hover:bg-muted`,onClick:()=>n(`requests`,a.requestId),children:[`req:`,a.requestId.slice(0,8)]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(a.timestamp)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:o})})]}),(0,J.jsx)(Jf,{entry:a})]})}function ch({className:e,...t}){return(0,J.jsxs)(`div`,{className:G(`relative w-full min-w-0 sm:max-w-64`,e),children:[(0,J.jsx)($d,{icon:Wd,size:14,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted-foreground`}),(0,J.jsx)(Fu,{type:`search`,className:`h-8 pr-3 pl-9 text-xs shadow-none`,...t})]})}var lh=K.createContext(void 0);function uh(e=!0){let t=K.useContext(lh);if(t===void 0&&!e)throw Error(ot(25));return t}var dh=K.createContext(void 0);function fh(e){let t=K.useContext(dh);if(t===void 0&&!e)throw Error(ot(33));return t}var ph=K.createContext(void 0);function mh(e){let t=K.useContext(ph);if(t===void 0&&!e)throw Error(ot(36));return t}function hh(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=uh(!0),d=u!==void 0;return K.useMemo(()=>({id:r,role:`menuitem`,tabIndex:n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:ci})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,d&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||d&&!qt&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!d||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,a,o,s,u,d,c])}var gh={type:`regular-item`};function _h(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=K.useRef(null),{getButtonProps:d,buttonRef:f}=fu({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=hh({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=K.useCallback(e=>ya(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=Ci(u,f);return K.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var vh=K.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,...l}=e,u=am({label:a}),d=fh(!0),f=yl(i),{store:p}=mh(),m=p.useState(`isActive`,u.index),h=p.useState(`itemProps`),{getItemProps:g,itemRef:_}=_h({closeOnClick:c,disabled:s,highlighted:m,id:f,store:p,nativeButton:o,nodeId:d?.nodeId,itemMetadata:gh});return Aa(`div`,e,{state:{disabled:s,highlighted:m},props:[h,l,g],ref:[_,t,u.ref]})}),yh={...vl,...dc},bh=K.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o}=mh(),{side:s,align:c}=fh(),l=Up(!0)!=null,u=o.useState(`open`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`mounted`),m=o.useState(`instantType`),h=o.useState(`activeTriggerElement`),g=o.useState(`parent`),_=o.useState(`lastOpenChangeReason`),v=o.useState(`rootId`),y=o.useState(`floatingRootContext`),b=o.useState(`floatingTreeRoot`),x=o.useState(`closeDelay`),S=o.useState(`activeTriggerElement`),C=g.type===`context-menu`;pc({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),K.useEffect(()=>{function e(e){o.setOpen(!1,vi(e.reason,e.domEvent))}return b.events.on(`close`,e),()=>{b.events.off(`close`,e)}},[b.events,o]);let w=o.useState(`hoverEnabled`),T=o.useState(`disabled`);Pc(y,{enabled:w&&!T&&!C&&g.type!==`menubar`,closeDelay:x});let E={transitionStatus:d,side:s,align:c,open:u,nested:g.type===`menu`,instant:m},D=K.useCallback(e=>{o.set(`popupElement`,e)},[o]),O=Aa(`div`,e,{state:E,ref:[t,o.context.popupRef,D],stateAttributesMapping:yh,props:[f,{onKeyDown(e){l&&ad.has(e.key)&&e.stopPropagation()}},Vl(d),a,{"data-rootownerid":v}]}),k=g.type===void 0||C;return(h||g.type===`menubar`&&_!==`outside-press`)&&(k=!0),(0,J.jsx)(oo,{context:y,modal:C,disabled:!p,returnFocus:i===void 0?k:i,initialFocus:g.type!==`menu`,restoreFocus:!0,externalTree:g.type===`menubar`?void 0:b,previousFocusableElement:S,nextFocusableElement:g.type===void 0?o.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:g.type===void 0?o.context.beforeContentFocusGuardRef:void 0,children:O})}),xh=K.createContext(void 0);function Sh(){let e=K.useContext(xh);if(e===void 0)throw Error(ot(32));return e}var Ch=K.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=mh();return i.useState(`mounted`)||n?(0,J.jsx)(xh.Provider,{value:n,children:(0,J.jsx)(Ba,{ref:t,...r})}):null}),wh=K.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ei,...g}=e,{store:_}=mh(),v=Sh(),y=uh(!0),b=_.useState(`parent`),x=_.useState(`floatingRootContext`),S=_.useState(`floatingTreeRoot`),C=_.useState(`mounted`),w=_.useState(`open`),T=_.useState(`modal`),E=_.useState(`activeTriggerElement`),D=_.useState(`transitionStatus`),O=_.useState(`positionerElement`),k=_.useState(`instantType`),A=_.useState(`hasViewport`),j=_.useState(`lastOpenChangeReason`),M=_.useState(`floatingNodeId`),N=_.useState(`floatingParentNodeId`),P=x.useState(`domReferenceElement`),F=K.useRef(null),I=fc(O,!1,!1),ee=n,L=c,R=l,z=s,B=h;b.type===`context-menu`&&(ee=n??b.context?.anchor,z??=`start`,!o&&z!==`center`&&(R=e.alignOffset??2,L=e.sideOffset??-5));let V=o,te=z;b.type===`menu`?(V??=`inline-end`,te??=`start`,B=e.collisionAvoidance??ti):b.type===`menubar`&&(V??=`bottom`,te??=`start`);let H=b.type===`context-menu`,ne=zl({anchor:ee,floatingRootContext:x,positionMethod:y?`fixed`:r,mounted:C,side:V,sideOffset:L,align:te,alignOffset:R,arrowPadding:H?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:M,keepMounted:v,disableAnchorTracking:m,collisionAvoidance:B,shiftCrossAxis:H&&!(`side`in B&&B.side===`flip`),externalTree:S,adaptiveOrigin:A?Il:void 0}),re=K.useMemo(()=>{let e={};return w||(e.pointerEvents=`none`),{role:`presentation`,hidden:!C,style:{...ne.positionerStyles,...e}}},[w,C,ne.positionerStyles]);K.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===M&&_.set(`hoverEnabled`,!1),e.nodeId!==M&&e.parentNodeId===_.select(`floatingParentNodeId`)&&_.setOpen(!1,vi(mi)))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[_,S.events,M]),K.useEffect(()=>{if(_.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==_.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;_.setOpen(!1,vi(t))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[S.events,_]);let ie=pt();K.useEffect(()=>{w||ie.clear()},[w,ie]),K.useEffect(()=>{function e(e){if(!(!w||e.nodeId!==_.select(`floatingParentNodeId`)))if(e.target&&E&&E!==e.target){let e=_.select(`closeDelay`);e>0?ie.isStarted()||ie.start(e,()=>{_.setOpen(!1,vi(mi))}):_.setOpen(!1,vi(mi))}else ie.clear()}return S.events.on(`itemhover`,e),()=>{S.events.off(`itemhover`,e)}},[S.events,w,E,_,ie]),K.useEffect(()=>{let e={open:w,nodeId:M,parentNodeId:N,reason:_.select(`lastOpenChangeReason`)};S.events.emit(`menuopenchange`,e)},[S.events,w,_,M,N]),q(()=>{let e=P,t=F.current;if(e&&(F.current=e),t&&e&&e!==t){_.set(`instantType`,void 0);let e=new AbortController;return I(()=>{_.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[P,I,_]);let ae={open:w,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,nested:b.type===`menu`,instant:k},oe=K.useMemo(()=>({side:ne.side,align:ne.align,arrowRef:ne.arrowRef,arrowUncentered:ne.arrowUncentered,arrowStyles:ne.arrowStyles,nodeId:ne.context.nodeId}),[ne.side,ne.align,ne.arrowRef,ne.arrowUncentered,ne.arrowStyles,ne.context.nodeId]),se=Aa(`div`,e,{state:ae,stateAttributesMapping:vl,ref:[t,_.useStateSetter(`positionerElement`)],props:[re,Vl(D),g]}),ce=C&&b.type!==`menu`&&(b.type!==`menubar`&&T&&j!==`trigger-hover`||b.type===`menubar`&&b.context.modal),le=null;return b.type===`menubar`?le=b.context.contentElement:b.type===void 0&&(le=E),(0,J.jsxs)(dh.Provider,{value:oe,children:[ce&&(0,J.jsx)(md,{ref:b.type===`context-menu`||b.type===`nested-context-menu`?b.context.internalBackdropRef:null,inert:ql(!w),cutout:le}),(0,J.jsx)(Ja,{id:M,children:(0,J.jsx)(kp,{elementsRef:_.context.itemDomElements,labelsRef:_.context.itemLabels,children:se})})]})}),Th=K.createContext(null);function Eh(e){let t=K.useContext(Th);if(t===null&&!e)throw Error(ot(5));return t}var Dh={...Sc,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},Oh=class e extends ic{constructor(e){super({...kh(),...e},{positionerRef:K.createRef(),popupRef:K.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:K.createRef(),beforeContentFocusGuardRef:K.createRef(),onOpenChangeComplete:void 0,triggerElements:new vc},Dh),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=Xe(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function kh(){return{...bc(),disabled:!1,modal:!0,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Ha,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Qr,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var Ah=K.createContext(void 0);function jh(){return K.useContext(Ah)}var Mh=tt(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:u,closeParentOnEsc:d=!1,handle:f,triggerId:p,defaultTriggerId:m=null,highlightItemOnHover:h=!0}=e,g=uh(!0),_=mh(!0),v=Eh(!0),y=jh(),b=K.useMemo(()=>y&&_?{type:`menu`,store:_.store}:v?{type:`menubar`,context:v}:g&&!_?{type:`context-menu`,context:g}:{type:void 0},[g,_,v,y]),x=Oh.useStore(f?.store,{open:a,openProp:n,activeTriggerId:m,triggerIdProp:p,parent:b});it(()=>{n===void 0&&x.state.open===!1&&a===!0&&x.update({open:!0,activeTriggerId:m})}),x.useControlledProp(`openProp`,n),x.useControlledProp(`triggerIdProp`,p),x.useContextCallback(`onOpenChangeComplete`,i);let S=x.useState(`floatingTreeRoot`),C=qa(S),w=Ga();q(()=>{g&&!_?x.update({parent:{type:`context-menu`,context:g},floatingNodeId:C,floatingParentNodeId:w}):_&&x.update({floatingNodeId:C,floatingParentNodeId:w})},[g,_,C,w,x]);let T=x.useState(`open`),E=x.useState(`activeTriggerElement`),D=x.useState(`positionerElement`),O=x.useState(`hoverEnabled`),k=x.useState(`modal`),A=x.useState(`disabled`),j=x.useState(`lastOpenChangeReason`),M=x.useState(`parent`),N=x.useState(`activeIndex`),P=x.useState(`payload`),F=x.useState(`floatingParentNodeId`),I=K.useRef(null),ee=F!=null,L;x.useSyncedValues({disabled:o,modal:M.type===void 0?s:void 0,rootId:ua()});let{openMethod:R,triggerProps:z}=Dd(T);gc(x);let{forceUnmount:B}=_c(T,x,()=>{x.update({allowMouseEnter:!1,stickIfOpen:!0})}),V=K.useRef(M.type!==`context-menu`),te=pt();K.useEffect(()=>{if(T||(I.current=null),M.type===`context-menu`){if(!T){te.clear(),V.current=!1;return}te.start(500,()=>{V.current=!0})}},[te,T,M.type]),wd(T&&k&&j!==`trigger-hover`&&R!==`touch`,D),q(()=>{!T&&!O&&x.set(`hoverEnabled`,!0)},[T,O,x]);let H=K.useRef(!0),ne=pt(),re=Y((e,t)=>{let n=t.reason;if(T===e&&t.trigger===E&&j===n||(t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=E??void 0),r?.(e,t),t.isCanceled))return;let i={open:e,nativeEvent:t.event,reason:t.reason,nested:ee};L?.emit(`openchange`,i);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!H.current)return;if(!e&&N!==null){let e=x.context.itemDomElements.current[N];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(H.current=!1,ne.start(300,()=>{H.current=!0})):(H.current=!0,ne.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0&&a?.isTrusted,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};I.current=t.event??null;let l=t.trigger?.id??null;(l||e)&&(c.activeTriggerId=l,c.activeTriggerElement=t.trigger??null),x.update(c),M.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?x.set(`instantType`,`group`):o||s?x.set(`instantType`,o?`click`:`dismiss`):x.set(`instantType`,void 0)}),ie=K.useCallback(e=>{let t=vi(e);return t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},t},[x]),ae=K.useCallback(()=>{x.setOpen(!1,ie(gi))},[x,ie]);K.useImperativeHandle(u,()=>({unmount:B,close:ae}),[B,ae]);let oe;M.type===`context-menu`&&(oe=M.context),K.useImperativeHandle(oe?.positionerRef,()=>D,[D]),K.useImperativeHandle(oe?.actionsRef,()=>({setOpen:re}),[re]);let se=Tc({popupStore:x,onOpenChange:re});L=se.context.events,K.useEffect(()=>{let e=({open:e,eventDetails:t})=>re(e,t);return L.on(`setOpen`,e),()=>{L?.off(`setOpen`,e)}},[L,re]);let ce=ho(se,{enabled:!A,bubbles:{escapeKey:d&&M.type===`menu`},outsidePress(){return M.type!==`context-menu`||I.current?.type===`contextmenu`?!0:V.current},externalTree:ee?S:void 0}),le=Jc(se,{role:`menu`}),ue=jl(),de=K.useCallback(e=>{x.select(`activeIndex`)!==e&&x.set(`activeIndex`,e)},[x]),fe=Kc(se,{enabled:!A,listRef:x.context.itemDomElements,activeIndex:N,nested:M.type!==void 0,loopFocus:c,orientation:l,parentOrientation:M.type===`menubar`?M.context.orientation:void 0,rtl:ue===`rtl`,disabledIndices:Zr,onNavigate:de,openOnArrowKeyDown:M.type!==`context-menu`,externalTree:ee?S:void 0,focusItemOnHover:h}),pe=K.useCallback(e=>{x.context.typingRef.current=e},[x]),{getReferenceProps:me,getFloatingProps:he,getItemProps:ge,getTriggerProps:_e}=Lc([ce,le,fe,Yc(se,{listRef:x.context.itemLabels,elementsRef:x.context.itemDomElements,activeIndex:N,resetMs:500,onMatch:e=>{T&&e!==N&&x.set(`activeIndex`,e)},onTypingChange:pe})]),ve=K.useMemo(()=>{let e=ya(me(),{onMouseMove(){x.set(`allowMouseEnter`,!0)}},z);return delete e.role,e},[me,x,z]),ye=K.useMemo(()=>{let e=_e();if(!e)return e;let t=ya(e,z);return delete t.role,delete t[`aria-controls`],t},[_e,z]),be=K.useMemo(()=>he({onMouseMove(){x.set(`allowMouseEnter`,!0),M.type===`menu`&&x.set(`hoverEnabled`,!1)},onClick(){x.select(`hoverEnabled`)&&x.set(`hoverEnabled`,!1)},onKeyDown(e){let t=x.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}}),[he,M.type,x]),xe=K.useMemo(()=>ge(),[ge]);x.useSyncedValues({floatingRootContext:se,activeTriggerProps:ve,inactiveTriggerProps:ye,popupProps:be,itemProps:xe});let U=K.useMemo(()=>({store:x,parent:b}),[x,b]),Se=(0,J.jsx)(ph.Provider,{value:U,children:typeof t==`function`?t({payload:P}):t});return M.type===void 0||M.type===`context-menu`?(0,J.jsx)(Ya,{externalTree:S,children:Se}):Se});function Nh(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=uu(),{ref:i,index:a}=am(e),o=n===a,s=K.useRef(null),c=Ci(i,s);return{compositeProps:K.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:c,index:a}}function Ph(e){let{render:t,className:n,state:r=Qr,props:i=Zr,refs:a=Zr,metadata:o,stateAttributesMapping:s,tag:c=`div`,...l}=e,{compositeProps:u,compositeRef:d}=Nh({metadata:o});return Aa(c,e,{state:r,ref:[...a,d],props:[u,...i,l],stateAttributesMapping:s})}function Fh(e){if(bt(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Mt(e))return Fh(Ft(e))}function Ih(e){let[t,n]=K.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=K.useRef(null),i=K.useRef(null),a=K.useRef(null),o=K.useRef(null),s=K.useRef(!0),c=K.useRef(null),l=ua(),u=K.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:a,backdropRef:r,internalBackdropRef:i,positionerRef:o,allowMouseUpTriggerRef:s,initialCursorPointRef:c,rootId:l}),[t,l]);return(0,J.jsx)(lh.Provider,{value:u,children:(0,J.jsx)(ph.Provider,{value:void 0,children:(0,J.jsx)(Mh,{...e})})})}var Lh=500,Rh=K.forwardRef(function(e,t){let{render:n,className:r,...i}=e,{setAnchor:a,actionsRef:o,internalBackdropRef:s,backdropRef:c,positionerRef:l,allowMouseUpTriggerRef:u,initialCursorPointRef:d,rootId:f}=uh(!1),{store:p}=mh(!1),m=p.useState(`open`),h=p.useState(`disabled`),g=K.useRef(null),_=K.useRef(null),v=pt(),y=pt(),b=K.useRef(!1);function x(e,t,n){let r=n.type.startsWith(`touch`);d.current={x:e,y:t},a({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),b.current=!1,o.current?.setOpen(!0,vi(ii,n)),y.start(Lh,()=>{b.current=!0})}function S(e){h||(u.current=!0,_n(e),x(e.clientX,e.clientY,e.nativeEvent),Rr(g.current).addEventListener(`mouseup`,e=>{if(u.current=!1,!b.current)return;y.clear(),b.current=!1;let t=cn(e);on(l.current,t)||f&&t&&Fh(t)===f||o.current?.setOpen(!1,vi(pi,e))},{once:!0}))}function C(e){if(!h&&(u.current=!1,e.touches.length===1)){e.stopPropagation();let t=e.touches[0];_.current={x:t.clientX,y:t.clientY},v.start(Lh,()=>{_.current&&x(_.current.x,_.current.y,e.nativeEvent)})}}function w(e){if(v.isStarted()&&_.current&&e.touches.length===1){let t=e.touches[0],n=Math.abs(t.clientX-_.current.x),r=Math.abs(t.clientY-_.current.y);(n>10||r>10)&&v.clear()}}function T(){v.clear(),_.current=null}return K.useEffect(()=>{function e(e){if(h)return;let t=cn(e);(on(g.current,t)||on(s.current,t)||on(c.current,t))&&e.preventDefault()}let t=Rr(g.current);return t.addEventListener(`contextmenu`,e),()=>{t.removeEventListener(`contextmenu`,e)}},[c,h,s]),Aa(`div`,e,{state:{open:m},ref:[g,t],props:[{onContextMenu:S,onTouchStart:C,onTouchMove:w,onTouchEnd:T,onTouchCancel:T,style:{WebkitTouchCallout:`none`}},i],stateAttributesMapping:_l})});function zh({...e}){return(0,J.jsx)(Ih,{"data-slot":`context-menu`,...e})}function Bh({className:e,...t}){return(0,J.jsx)(Rh,{"data-slot":`context-menu-trigger`,className:G(`select-none`,e),...t})}function Vh({className:e,align:t=`start`,alignOffset:n=4,side:r=`inline-end`,sideOffset:i=0,...a}){return(0,J.jsx)(Ch,{children:(0,J.jsx)(wh,{className:`isolate z-50 outline-none`,align:t,alignOffset:n,side:r,sideOffset:i,children:(0,J.jsx)(bh,{"data-slot":`context-menu-content`,className:G(`z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}function Hh({className:e,inset:t,variant:n=`default`,...r}){return(0,J.jsx)(vh,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:G(`group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}var Uh=K.createContext(void 0);function Wh(e=!0){let t=K.useContext(Uh);if(t===void 0&&!e)throw Error(ot(7));return t}var Gh=K.forwardRef(function(e,t){let{className:n,defaultPressed:r=!1,disabled:i=!1,form:a,onPressedChange:o,pressed:s,render:c,type:l,value:u,nativeButton:d=!0,...f}=e,p=yl(u||void 0),m=Wh(),h=m?.value??[],g=m?void 0:r,_=(i||m?.disabled)??!1,[v,y]=Au({controlled:m?p!==void 0&&h.indexOf(p)>-1:s,default:g,name:`Toggle`,state:`pressed`}),b=Y((e,t)=>{p&&m?.setGroupValue?.(p,e,t),o?.(e,t)}),{getButtonProps:x,buttonRef:S}=fu({disabled:_,native:d}),C={disabled:_,pressed:v},w=[S,t],T=[{"aria-pressed":v,onClick(e){let t=!v,n=vi(ri,e.nativeEvent);b(t,n),!n.isCanceled&&y(t)}},f,x],E=Aa(`button`,e,{enabled:!m,state:C,ref:w,props:T});return m?(0,J.jsx)(Ph,{tag:`button`,render:c,className:n,state:C,refs:w,props:T}):E}),Kh=ou(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]`,lg:`h-9 min-w-9 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function qh(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Jh=[];function Yh(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,dense:i=!1,orientation:a=`both`,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:f,modifierKeys:p=Jh}=e,[m,h]=K.useState(0),g=n>1,_=K.useRef(null),v=Ci(_,l),y=K.useRef([]),b=K.useRef(!1),x=s??m,S=Y((e,t=!1)=>{if((c??h)(e),t){let t=y.current[e];ld(_.current,t,o,a)}}),C=Y(e=>{if(e.size===0||b.current)return;b.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&S(r),ld(_.current,n,o,a)}),w=K.useMemo(()=>({"aria-orientation":a===`both`?void 0:a,ref:v,onFocus(e){!_.current||!cd(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){let s=u?id:rd;if(!s.has(e.key)||Xh(e,p)||!_.current)return;let c=o===`rtl`,l=c?Xu:Zu,m={horizontal:l,vertical:Yu,both:l}[a],h=c?Zu:Xu,v={horizontal:h,vertical:Ju,both:h}[a];if(cd(e.target)&&!qh(e.target)){let t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??``;if(t==null||e.shiftKey||t!==n||e.key!==v&&t<r.length||e.key!==m&&t>0)return}let b=x,C=$n(y,f),w=er(y,f);if(g){let o=t||Array.from({length:y.current.length},()=>({width:1,height:1})),s=rr(o,n,i),l=s.findIndex(e=>e!=null&&!or(y,e,f)),u=s.reduce((e,t,n)=>t!=null&&!or(y,t,f)?n:e,-1);b=s[nr({current:s.map(e=>e?y.current[e]:null)},{event:e,orientation:a,loopFocus:r,cols:n,disabledIndices:ar([...f||y.current.map((e,t)=>or(y,t)?t:void 0),void 0],s),minIndex:l,maxIndex:u,prevIndex:ir(x>w?C:x,o,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:c})]}let T={horizontal:[l],vertical:[Yu],both:[l,Yu]}[a],E={horizontal:[h],vertical:[Ju],both:[h,Ju]}[a],D=g?s:{horizontal:u?ed:$u,vertical:u?nd:td,both:s}[a];u&&(e.key===`Home`?b=C:e.key===`End`&&(b=w)),b===x&&(T.includes(e.key)||E.includes(e.key))&&(b=r&&b===w&&T.includes(e.key)?C:r&&b===C&&E.includes(e.key)?w:tr(y,{startingIndex:b,decrement:E.includes(e.key),disabledIndices:f})),b!==x&&!Qn(y,b)&&(d&&e.stopPropagation(),D.has(e.key)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))}}),[n,i,o,f,y,u,x,g,t,r,v,p,S,a,d]);return K.useMemo(()=>({props:w,highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:y,disabledIndices:f,onMapChange:C,relayKeyboardEvent:w.onKeyDown}),[w,x,S,y,f,C])}function Xh(e,t){for(let n of od.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Zh(e){let{render:t,className:n,refs:r=Zr,props:i=Zr,state:a=Qr,stateAttributesMapping:o,highlightedIndex:s,onHighlightedIndexChange:c,orientation:l,dense:u,itemSizes:d,loopFocus:f,cols:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:D,relayKeyboardEvent:O}=Yh({itemSizes:d,cols:p,loopFocus:f,dense:u,orientation:l,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:jl(),disabledIndices:v,modifierKeys:y}),k=Aa(x,e,{state:a,ref:r,props:[C,...i,S],stateAttributesMapping:o}),A=K.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:O}),[w,T,b,O]);return(0,J.jsx)(lu.Provider,{value:A,children:(0,J.jsx)(kp,{elementsRef:E,onMapChange:e=>{h?.(e),D(e)},children:k})})}var Qh=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),$h={multiple(e){return e?{[Qh.multiple]:``}:null}},eg=K.forwardRef(function(e,t){let{defaultValue:n,disabled:r=!1,loopFocus:i=!0,onValueChange:a,orientation:o=`horizontal`,multiple:s=!1,value:c,className:l,render:u,...d}=e,f=Up(!0),p=K.useMemo(()=>{if(c===void 0)return n??[]},[c,n]),m=K.useMemo(()=>c!==void 0||n!==void 0,[c,n]),h=(f?.disabled??!1)||r,[g,_]=Au({controlled:c,default:p,name:`ToggleGroup`,state:`value`}),v=Y((e,t,n)=>{let r;if(s?(r=g.slice(),t?r.push(e):r.splice(g.indexOf(e),1)):r=t?[e]:[],Array.isArray(r)){if(a?.(r,n),n.isCanceled)return;_(r)}}),y={disabled:h,multiple:s,orientation:o},b=K.useMemo(()=>({disabled:h,orientation:o,setGroupValue:v,value:g,isValueInitialized:m}),[h,o,v,g,m]),x={role:`group`},S=Aa(`div`,e,{enabled:!!f,state:y,ref:t,props:[x,d],stateAttributesMapping:$h});return(0,J.jsx)(Uh.Provider,{value:b,children:f?S:(0,J.jsx)(Zh,{render:u,className:l,state:y,refs:[t],props:[x,d],stateAttributesMapping:$h,loopFocus:i,enableHomeAndEndKeys:!0})})}),tg=K.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function ng({className:e,variant:t,size:n,spacing:r=0,orientation:i=`horizontal`,children:a,...o}){return(0,J.jsx)(eg,{"data-slot":`toggle-group`,"data-variant":t,"data-size":n,"data-spacing":r,"data-orientation":i,style:{"--gap":r},className:G(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,e),...o,children:(0,J.jsx)(tg.Provider,{value:{variant:t,size:n,spacing:r,orientation:i},children:a})})}function rg({className:e,children:t,variant:n=`default`,size:r=`default`,...i}){let a=K.useContext(tg);return(0,J.jsx)(Gh,{"data-slot":`toggle-group-item`,"data-variant":a.variant||n,"data-size":a.size||r,"data-spacing":a.spacing,className:G(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t`,Kh({variant:a.variant||n,size:a.size||r}),e),...i,children:t})}function ig(e){return e.procedures.map(e=>e.procedure).join(`, `)}function ag(e,t){let n=t.query.trim().toLowerCase();return e.filter(e=>{let r=ig(e);return!(n&&!r.toLowerCase().includes(n)&&!e.path.toLowerCase().includes(n)||t.procedure!==`all`&&!e.procedures.some(e=>e.procedure===t.procedure)||t.status===`success`&&e.status>=400||t.status===`client`&&(e.status<400||e.status>=500)||t.status===`server`&&e.status<500||t.latency===`fast`&&e.durationMs>=100||t.latency===`slow`&&e.durationMs<100)})}function og(e,t){let n=t.query.trim().toLowerCase();return e.filter(e=>!(n&&!e.procedure.toLowerCase().includes(n)&&!e.code.toLowerCase().includes(n)&&!e.error.toLowerCase().includes(n)||t.procedure!==`all`&&e.procedure!==t.procedure||t.severity===`client`&&(e.status<400||e.status>=500)||t.severity===`server`&&e.status<500||t.trace===`traced`&&e.spans.length===0||t.trace===`untraced`&&e.spans.length>0))}function sg(e){return[...new Set(e)].toSorted((e,t)=>e.localeCompare(t))}function cg(e,t){switch(t){case`time`:return e.timestamp;case`procedure`:return e.procedure;case`code`:return e.code;case`status`:return e.status;case`duration`:return e.durationMs}}function lg({errors:e,navigate:t,initialProcedure:n}){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(n||`all`),[s,c]=(0,K.useState)(`all`),[l,u]=(0,K.useState)(`all`),[d,f]=(0,K.useState)(`time`),[p,m]=(0,K.useState)(!1),[h,g]=(0,K.useState)(null);(0,K.useCallback)(e=>{f(t=>(m(t===e?e=>!e:e===`procedure`||e===`code`),e))},[]);let _=(0,K.useMemo)(()=>sg(e.map(e=>e.procedure)),[e]),v=(0,K.useMemo)(()=>{let t=og(e,{query:r,procedure:a,severity:s,trace:l}).toReversed(),n=p?1:-1;return t.sort((e,t)=>{let r=cg(e,d),i=cg(t,d);return typeof r==`number`&&typeof i==`number`?n*(r-i):n*String(r).localeCompare(String(i))}),t},[e,r,a,s,l,d,p]),y=r.length>0||a!==`all`||s!==`all`||l!==`all`,b=(0,K.useCallback)(()=>{i(``),o(`all`),c(`all`),u(`all`)},[]),x=h===null?null:v[h],S=(0,K.useMemo)(()=>{let t=new Map,n=new Map,r=0,i=0;for(let a of e)t.set(a.code,(t.get(a.code)??0)+1),n.set(a.procedure,(n.get(a.procedure)??0)+1),a.status>=500?i++:r++;return{byCodes:[...t].toSorted((e,t)=>t[1]-e[1]),byProc:[...n].toSorted((e,t)=>t[1]-e[1]),clientCount:r,serverCount:i,tracedCount:e.filter(e=>e.spans.length>0).length}},[e]);return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No errors recorded`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Failures will appear here when captured.`})]}):(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-0 border-b xl:grid-cols-5`,children:[(0,J.jsx)(fg,{label:`Total errors`,value:String(e.length),danger:!0}),(0,J.jsx)(fg,{label:`Client (4xx)`,value:String(S.clientCount)}),(0,J.jsx)(fg,{label:`Server (5xx)`,value:String(S.serverCount),danger:S.serverCount>0}),(0,J.jsx)(fg,{label:`Traced`,value:String(S.tracedCount)}),(0,J.jsx)(fg,{label:`Procedures`,value:String(S.byProc.length)})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Codes`}),S.byCodes.map(([e,t])=>(0,J.jsxs)(cu,{variant:`destructive`,className:`text-[9px]`,children:[e,` `,(0,J.jsx)(`span`,{className:`ml-1 opacity-70`,children:t})]},e)),(0,J.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground ml-auto`,children:`Top`}),S.byProc.slice(0,3).map(([e,t])=>(0,J.jsxs)(`span`,{className:`font-mono text-[10px] text-muted-foreground`,children:[e,` `,(0,J.jsx)(`span`,{className:`text-destructive`,children:t})]},e))]}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsxs)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:[(0,J.jsx)(ch,{value:r,onChange:e=>i(e.target.value),placeholder:`Search errors...`,className:`sm:max-w-56`}),(0,J.jsxs)(ym,{value:a,onValueChange:e=>o(e??`all`),children:[(0,J.jsx)(Sm,{size:`sm`,className:`w-full sm:w-40`,children:(0,J.jsx)(xm,{placeholder:`All procedures`})}),(0,J.jsx)(Cm,{align:`start`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Procedure`}),(0,J.jsx)(Tm,{value:`all`,children:`All procedures`}),_.map(e=>(0,J.jsx)(Tm,{value:e,children:e},e))]})})]}),(0,J.jsxs)(ng,{value:s,onValueChange:e=>c(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(rg,{value:`all`,children:`All`}),(0,J.jsx)(rg,{value:`client`,children:`4xx`}),(0,J.jsx)(rg,{value:`server`,children:`5xx`})]}),(0,J.jsxs)(ng,{value:l,onValueChange:e=>u(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(rg,{value:`all`,children:`All`}),(0,J.jsx)(rg,{value:`traced`,children:`Traced`}),(0,J.jsx)(rg,{value:`untraced`,children:`Untraced`})]})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[v.length,` of `,e.length]}),y&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:b,children:`Clear`})]})]}),v.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching failures`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:y?`Adjust filters.`:`Waiting for errors.`}),y&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`mt-2`,onClick:b,children:`Clear filters`})]}):(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsx)(`div`,{className:G(`flex-1 overflow-y-auto`,x&&`hidden xl:block`),children:v.map((e,n)=>(0,J.jsxs)(zh,{children:[(0,J.jsx)(Bh,{asChild:!0,children:(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-start gap-3 border-b border-dashed px-5 py-2.5 hover:bg-muted/20`,h===n&&`bg-destructive/5`),onClick:()=>g(h===n?null:n),onDoubleClick:()=>t(`errors`,String(e.id)),children:[(0,J.jsx)(`span`,{className:`mt-1 size-1.5 shrink-0 rounded-full bg-destructive`}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-[11px] font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e.code}),(0,J.jsx)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:e.status})]}),(0,J.jsx)(`p`,{className:`mt-0.5 truncate text-[11px] text-muted-foreground`,children:e.error})]}),(0,J.jsxs)(`div`,{className:`shrink-0 text-right`,children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`left`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`div`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground/60`,children:Nf(e.durationMs)})]})]})}),(0,J.jsxs)(Vh,{children:[(0,J.jsx)(Hh,{onClick:()=>t(`errors`,String(e.id)),children:`View details`}),(0,J.jsx)(Hh,{onClick:()=>{fetch(`/api/analytics/hidden`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({path:e.procedure})})},className:`text-destructive`,children:`Hide path`})]})]},e.id))}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!x&&`hidden xl:flex`),children:x?(0,J.jsx)(dg,{entry:x,onClose:()=>g(null),navigate:t}):(0,J.jsx)(ug,{summary:S})})]})]})}function ug({summary:e}){return(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsx)(pg,{label:`Error codes`,children:e.byCodes.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e}),(0,J.jsx)(`span`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground`,children:t})]},e))}),(0,J.jsx)(pg,{label:`Top procedures`,children:e.byProc.slice(0,10).map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`min-w-0 truncate font-mono text-[10px] font-semibold`,children:e}),(0,J.jsx)(`span`,{className:`shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground`,children:t})]},e))}),(0,J.jsxs)(pg,{label:`Breakdown`,children:[(0,J.jsx)(mg,{label:`client (4xx)`,value:String(e.clientCount)}),(0,J.jsx)(mg,{label:`server (5xx)`,value:String(e.serverCount),danger:e.serverCount>0}),(0,J.jsx)(mg,{label:`traced`,value:String(e.tracedCount)}),(0,J.jsx)(mg,{label:`untraced`,value:String(e.byCodes.reduce((e,[,t])=>e+t,0)-e.tracedCount)})]})]})}function dg({entry:e,onClose:t,navigate:n}){let r=Object.entries(e.headers??{}),i=Gf();return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-destructive`}),(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e.code}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsx)(pg,{label:`Error`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed text-destructive/90`,children:e.error})}),e.spans.length>0&&(0,J.jsx)(pg,{label:`Spans — ${e.spans.length} ops`,children:(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs})}),e.stack&&(0,J.jsx)(pg,{label:`Stack trace`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.stack})}),e.input!==void 0&&e.input!==null&&(0,J.jsx)(pg,{label:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),(0,J.jsxs)(pg,{label:`Metadata`,children:[(0,J.jsx)(mg,{label:`status`,value:String(e.status),danger:!0}),(0,J.jsx)(mg,{label:`code`,value:e.code,danger:!0}),(0,J.jsx)(mg,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(mg,{label:`spans`,value:String(e.spans.length)}),(0,J.jsx)(mg,{label:`time`,value:Ff(e.timestamp)})]}),r.length>0&&(0,J.jsx)(pg,{label:`Headers`,children:r.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex gap-3 border-b border-dashed py-1 last:border-0`,children:[(0,J.jsx)(`span`,{className:`w-24 shrink-0 truncate font-mono text-[10px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`min-w-0 break-all font-mono text-[10px]`,children:i&&qf(e)?(0,J.jsx)(`span`,{className:`text-muted-foreground/40`,children:`[redacted]`}):t})]},e))}),(0,J.jsx)(`div`,{className:`flex gap-2 px-4 py-3`,children:e.requestId&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`flex-1`,onClick:()=>n(`requests`,e.requestId),children:`View request`})})]})]})}function fg({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-2.5 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsx)(`div`,{className:G(`mt-0.5 text-base font-semibold tabular-nums tracking-tight`,n&&`text-destructive`),children:t})]})}function pg({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function mg({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}function hg(e,t){return t===`count`||t===`errors`||t===`errorRate`?e[t]:t===`path`?0:e.latency[t]}function gg({procedures:e,navigate:t,filter:n}){let[r,i]=(0,K.useState)(`count`),[a,o]=(0,K.useState)(!1),s=(0,K.useCallback)(e=>{i(t=>(o(t===e?e=>!e:!1),e))},[]),c=(0,K.useMemo)(()=>{let t=Object.entries(e);if(n){let e=n.toLowerCase();t=t.filter(([t])=>t.toLowerCase().includes(e))}let i=a?1:-1;return t.sort((e,t)=>r===`path`?i*e[0].localeCompare(t[0]):i*(hg(e[1],r)-hg(t[1],r))),t},[e,r,a,n]),l=(0,K.useMemo)(()=>Math.max(1,...Object.values(e).map(e=>e.count)),[e]);return c.length===0?(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`No requests yet`}):(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-5 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(_g,{label:`Procedure`,sortKey:`path`,currentKey:r,asc:a,onSort:s,className:`flex-1`}),(0,J.jsx)(_g,{label:`Count`,sortKey:`count`,currentKey:r,asc:a,onSort:s,className:`w-20 text-right`}),(0,J.jsx)(`span`,{className:`hidden w-20 lg:block`}),(0,J.jsx)(_g,{label:`Errors`,sortKey:`errors`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`}),(0,J.jsx)(_g,{label:`Rate`,sortKey:`errorRate`,currentKey:r,asc:a,onSort:s,className:`w-12 text-right`}),(0,J.jsx)(_g,{label:`Avg`,sortKey:`avg`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`}),(0,J.jsx)(_g,{label:`p95`,sortKey:`p95`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`})]}),c.map(([e,n])=>{let r=n.count/l*100,i=n.errors>0;return(0,J.jsxs)(`div`,{className:G(`flex items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,t&&`cursor-pointer`),onClick:()=>t?.(`requests`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(`span`,{className:`w-20 shrink-0 text-right font-mono text-[11px] tabular-nums`,children:Mf(n.count)}),(0,J.jsx)(`div`,{className:`hidden w-20 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:`h-full rounded-full bg-primary/30`,style:{width:`${r}%`}})})}),(0,J.jsx)(`div`,{className:`w-14 shrink-0 text-right`,children:i?(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,onClick:n=>{t&&(n.stopPropagation(),t(`errors`,void 0,{procedure:e}))},children:n.errors}):(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground/40`,children:`0`})}),(0,J.jsxs)(`span`,{className:G(`w-12 shrink-0 text-right text-[11px] tabular-nums`,i?`text-destructive`:`text-muted-foreground/40`),children:[n.errorRate.toFixed(1),`%`]}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(n.latency.avg)}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(n.latency.p95)})]},e)})]})}function _g({label:e,sortKey:t,currentKey:n,asc:r,onSort:i,className:a}){return(0,J.jsxs)(`span`,{className:G(`cursor-pointer select-none`,n===t&&`text-primary`,a),onClick:()=>i(t),children:[e,n===t&&(r?` ↑`:` ↓`)]})}var vg=o(((e,t)=>{t.exports=Array.isArray})),yg=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),bg=o(((e,t)=>{var n=yg(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),xg=o(((e,t)=>{t.exports=bg().Symbol})),Sg=o(((e,t)=>{var n=xg(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Cg=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),wg=o(((e,t)=>{var n=xg(),r=Sg(),i=Cg(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Tg=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Eg=o(((e,t)=>{var n=wg(),r=Tg(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Dg=o(((e,t)=>{var n=vg(),r=Eg(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Og=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),kg=o(((e,t)=>{var n=wg(),r=Og(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Ag=o(((e,t)=>{t.exports=bg()[`__core-js_shared__`]})),jg=o(((e,t)=>{var n=Ag(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Mg=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Ng=o(((e,t)=>{var n=kg(),r=jg(),i=Og(),a=Mg(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Pg=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Fg=o(((e,t)=>{var n=Ng(),r=Pg();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Ig=o(((e,t)=>{t.exports=Fg()(Object,`create`)})),Lg=o(((e,t)=>{var n=Ig();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),Rg=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),zg=o(((e,t)=>{var n=Ig(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Bg=o(((e,t)=>{var n=Ig(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Vg=o(((e,t)=>{var n=Ig(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Hg=o(((e,t)=>{var n=Lg(),r=Rg(),i=zg(),a=Bg(),o=Vg();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ug=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Wg=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Gg=o(((e,t)=>{var n=Wg();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Kg=o(((e,t)=>{var n=Gg(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),qg=o(((e,t)=>{var n=Gg();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Jg=o(((e,t)=>{var n=Gg();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Yg=o(((e,t)=>{var n=Gg();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Xg=o(((e,t)=>{var n=Ug(),r=Kg(),i=qg(),a=Jg(),o=Yg();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Zg=o(((e,t)=>{t.exports=Fg()(bg(),`Map`)})),Qg=o(((e,t)=>{var n=Hg(),r=Xg(),i=Zg();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),$g=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),e_=o(((e,t)=>{var n=$g();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),t_=o(((e,t)=>{var n=e_();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),n_=o(((e,t)=>{var n=e_();function r(e){return n(this,e).get(e)}t.exports=r})),r_=o(((e,t)=>{var n=e_();function r(e){return n(this,e).has(e)}t.exports=r})),i_=o(((e,t)=>{var n=e_();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),a_=o(((e,t)=>{var n=Qg(),r=t_(),i=n_(),a=r_(),o=i_();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),o_=o(((e,t)=>{var n=a_(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),s_=o(((e,t)=>{var n=o_(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),c_=o(((e,t)=>{var n=s_(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),l_=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),u_=o(((e,t)=>{var n=xg(),r=l_(),i=vg(),a=Eg(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),d_=o(((e,t)=>{var n=u_();function r(e){return e==null?``:n(e)}t.exports=r})),f_=o(((e,t)=>{var n=vg(),r=Dg(),i=c_(),a=d_();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),p_=o(((e,t)=>{var n=Eg(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),m_=o(((e,t)=>{var n=f_(),r=p_();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),h_=o(((e,t)=>{var n=m_();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),g_=o(((e,t)=>{function n(e){return e==null}t.exports=n})),__=o(((e,t)=>{var n=wg(),r=vg(),i=Tg(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),v_=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),y_=o(((e,t)=>{t.exports=v_()})),b_=o(((e,t)=>{var n=wg(),r=Tg(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),x_=o(((e,t)=>{var n=b_();function r(e){return n(e)&&e!=+e}t.exports=r})),S_=l(__()),C_=l(x_()),w_=l(h_()),T_=l(b_()),E_=l(g_()),D_=function(e){return e===0?0:e>0?1:-1},O_=function(e){return(0,S_.default)(e)&&e.indexOf(`%`)===e.length-1},Z=function(e){return(0,T_.default)(e)&&!(0,C_.default)(e)},k_=function(e){return(0,E_.default)(e)},A_=function(e){return Z(e)||(0,S_.default)(e)},j_=0,M_=function(e){var t=++j_;return`${e||``}${t}`},N_=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(e)&&!(0,S_.default)(e))return n;var i;if(O_(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,C_.default)(i)&&(i=n),r&&i>t&&(i=t),i},P_=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},F_=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},I_=function(e,t){return Z(e)&&Z(t)?function(n){return e+n*(t-e)}:function(){return t}};function L_(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,w_.default)(e,t))===n})}var R_=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u].cx||0,l=e[u].cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},z_=function(e,t){return Z(e)&&Z(t)?e-t:(0,S_.default)(e)&&(0,S_.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function B_(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var V_=l(Og());function H_(e){"@babel/helpers - typeof";return H_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},H_(e)}var U_=[`viewBox`,`children`],W_=`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`),G_=[`points`,`pathLength`],K_={svg:U_,polygon:G_,polyline:G_},q_=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`),J_=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,K.isValidElement)(e)&&(n=e.props),!(0,V_.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){q_.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},Y_=function(e,t,n){return function(r){return e(t,n,r),null}},X_=function(e,t,n){if(!(0,V_.default)(e)||H_(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];q_.includes(i)&&typeof a==`function`&&(r||={},r[i]=Y_(a,t,n))}),r},Z_=l(kg()),Q_=y_(),$_=[`children`],ev=[`children`];function tv(e,t){if(e==null)return{};var n=nv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rv(e)}var iv={click:`onClick`,mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,mouseout:`onMouseOut`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,touchcancel:`onTouchCancel`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchstart:`onTouchStart`,contextmenu:`onContextMenu`,dblclick:`onDoubleClick`},av=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},ov=null,sv=null,cv=function e(t){if(t===ov&&Array.isArray(sv))return sv;var n=[];return K.Children.forEach(t,function(t){(0,E_.default)(t)||((0,Q_.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),sv=n,ov=t,n};function lv(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return av(e)}):[av(t)],cv(e).forEach(function(e){var t=(0,w_.default)(e,`type.displayName`)||(0,w_.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function uv(e,t){var n=lv(e,t);return n&&n[0]}var dv=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Z(n)||n<=0||!Z(r)||r<=0)},fv=`a.altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColormatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-url.foreignObject.g.glyph.glyphRef.hkern.image.line.lineGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.script.set.stop.style.svg.switch.symbol.text.textPath.title.tref.tspan.use.view.vkern`.split(`.`),pv=function(e){return e&&e.type&&(0,S_.default)(e.type)&&fv.indexOf(e.type)>=0},mv=function(e){return e&&rv(e)===`object`&&`clipDot`in e},hv=function(e,t,n,r){var i=K_?.[r]??[];return t.startsWith(`data-`)||!(0,Z_.default)(e)&&(r&&i.includes(t)||W_.includes(t))||n&&q_.includes(t)},Q=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,K.isValidElement)(e)&&(r=e.props),!(0,V_.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){hv(r?.[e],e,t,n)&&(i[e]=r[e])}),i},gv=function e(t,n){if(t===n)return!0;var r=K.Children.count(t);if(r!==K.Children.count(n))return!1;if(r===0)return!0;if(r===1)return _v(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!_v(a,o))return!1}return!0},_v=function(e,t){if((0,E_.default)(e)&&(0,E_.default)(t))return!0;if(!(0,E_.default)(e)&&!(0,E_.default)(t)){var n=e.props||{},r=n.children,i=tv(n,$_),a=t.props||{},o=a.children,s=tv(a,ev);return r&&o?B_(i,s)&&gv(r,o):!r&&!o?B_(i,s):!1}return!1},vv=function(e,t){var n=[],r={};return cv(e).forEach(function(e,i){if(pv(e))n.push(e);else if(e){var a=av(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},yv=function(e){var t=e&&e.type;return t&&iv[t]?iv[t]:null},bv=function(e,t){return cv(t).indexOf(e)},xv=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sv.apply(this,arguments)}function Cv(e,t){if(e==null)return{};var n=wv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Tv(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=Cv(e,xv),u=i||{width:n,height:r,x:0,y:0},f=d(`recharts-surface`,a);return K.createElement(`svg`,Sv({},Q(l,!0,`svg`),{className:f,width:n,height:r,style:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`}),K.createElement(`title`,null,s),K.createElement(`desc`,null,c),t)}var Ev=[`children`,`className`];function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dv.apply(this,arguments)}function Ov(e,t){if(e==null)return{};var n=kv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Av=K.forwardRef(function(e,t){var n=e.children,r=e.className,i=Ov(e,Ev),a=d(`recharts-layer`,r);return K.createElement(`g`,Dv({className:a},Q(i,!0),{ref:t}),n)}),jv=!1,Mv=function(e,t){var n=[...arguments].slice(2);if(jv&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,function(){return n[r++]}))}},Nv=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),Pv=o(((e,t)=>{var n=Nv();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Fv=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Iv=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),Lv=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),Rv=o(((e,t)=>{var n=Iv(),r=Fv(),i=Lv();function a(e){return r(e)?i(e):n(e)}t.exports=a})),zv=o(((e,t)=>{var n=Pv(),r=Fv(),i=Rv(),a=d_();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),Bv=o(((e,t)=>{t.exports=zv()(`toUpperCase`)}));function Vv(e){return function(){return e}}var Hv=Math.cos,Uv=Math.sin,Wv=Math.sqrt,Gv=Math.PI;Gv/2;var Kv=2*Gv,qv=Math.PI,Jv=2*qv,Yv=1e-6,Xv=Jv-Yv;function Zv(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Qv(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Zv;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var $v=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Zv:Qv(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Yv)if(!(Math.abs(u*s-c*l)>Yv)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((qv-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Yv&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Yv||Math.abs(this._y1-l)>Yv)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Jv+Jv),d>Xv?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Yv&&this._append`A${n},${n},0,${+(d>=qv)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ey(){return new $v}ey.prototype=$v.prototype;function ty(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new $v(t)}Array.prototype.slice;function ny(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ry(e){this._context=e}ry.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function iy(e){return new ry(e)}function ay(e){return e[0]}function oy(e){return e[1]}function sy(e,t){var n=Vv(!0),r=null,i=iy,a=null,o=ty(s);e=typeof e==`function`?e:e===void 0?ay:Vv(e),t=typeof t==`function`?t:t===void 0?oy:Vv(t);function s(s){var c,l=(s=ny(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Vv(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Vv(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Vv(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function cy(e,t,n){var r=null,i=Vv(!0),a=null,o=iy,s=null,c=ty(l);e=typeof e==`function`?e:e===void 0?ay:Vv(+e),t=typeof t==`function`?t:Vv(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?oy:Vv(+n);function l(l){var u,d,f,p=(l=ny(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return sy().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:Vv(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:Vv(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Vv(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:Vv(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:Vv(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:Vv(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:Vv(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var ly=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function uy(e){return new ly(e,!0)}function dy(e){return new ly(e,!1)}var fy={draw(e,t){let n=Wv(t/Gv);e.moveTo(n,0),e.arc(0,0,n,0,Kv)}},py={draw(e,t){let n=Wv(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},my=Wv(1/3),hy=my*2,gy={draw(e,t){let n=Wv(t/hy),r=n*my;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_y={draw(e,t){let n=Wv(t),r=-n/2;e.rect(r,r,n,n)}},vy=.8908130915292852,yy=Uv(Gv/10)/Uv(7*Gv/10),by=Uv(Kv/10)*yy,xy=-Hv(Kv/10)*yy,Sy={draw(e,t){let n=Wv(t*vy),r=by*n,i=xy*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Kv*t/5,o=Hv(a),s=Uv(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Cy=Wv(3),wy={draw(e,t){let n=-Wv(t/(Cy*3));e.moveTo(0,n*2),e.lineTo(-Cy*n,-n),e.lineTo(Cy*n,-n),e.closePath()}},Ty=-.5,Ey=Wv(3)/2,Dy=1/Wv(12),Oy=(Dy/2+1)*3,ky={draw(e,t){let n=Wv(t/Oy),r=n/2,i=n*Dy,a=r,o=n*Dy+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Ty*r-Ey*i,Ey*r+Ty*i),e.lineTo(Ty*a-Ey*o,Ey*a+Ty*o),e.lineTo(Ty*s-Ey*c,Ey*s+Ty*c),e.lineTo(Ty*r+Ey*i,Ty*i-Ey*r),e.lineTo(Ty*a+Ey*o,Ty*o-Ey*a),e.lineTo(Ty*s+Ey*c,Ty*c-Ey*s),e.closePath()}};function Ay(e,t){let n=null,r=ty(i);e=typeof e==`function`?e:Vv(e||fy),t=typeof t==`function`?t:Vv(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:Vv(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:Vv(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function jy(){}function My(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ny(e){this._context=e}Ny.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:My(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Py(e){return new Ny(e)}function Fy(e){this._context=e}Fy.prototype={areaStart:jy,areaEnd:jy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iy(e){return new Fy(e)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ry(e){return new Ly(e)}function zy(e){this._context=e}zy.prototype={areaStart:jy,areaEnd:jy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function By(e){return new zy(e)}function Vy(e){return e<0?-1:1}function Hy(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Vy(a)+Vy(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Uy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Wy(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Gy(e){this._context=e}Gy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wy(this,this._t0,Uy(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wy(this,Uy(this,n=Hy(this,e,t)),n);break;default:Wy(this,this._t0,n=Hy(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ky(e){this._context=new qy(e)}(Ky.prototype=Object.create(Gy.prototype)).point=function(e,t){Gy.prototype.point.call(this,t,e)};function qy(e){this._context=e}qy.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Jy(e){return new Gy(e)}function Yy(e){return new Ky(e)}function Xy(e){this._context=e}Xy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Zy(e),i=Zy(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Zy(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Qy(e){return new Xy(e)}function $y(e,t){this._context=e,this._t=t}$y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function eb(e){return new $y(e,.5)}function tb(e){return new $y(e,0)}function nb(e){return new $y(e,1)}function rb(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ib(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function ab(e,t){return e[t]}function ob(e){let t=[];return t.key=e,t}function sb(){var e=Vv([]),t=ib,n=rb,r=ab;function i(i){var a=Array.from(e.apply(this,arguments),ob),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=ny(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:Vv(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:Vv(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?ib:typeof e==`function`?e:Vv(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??rb,i):n},i}function cb(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}rb(e,t)}}function lb(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}rb(e,t)}}function ub(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,rb(e,t)}}var db=l(Bv());function fb(e){"@babel/helpers - typeof";return fb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fb(e)}var pb=[`type`,`size`,`sizeType`];function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}function hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hb(Object(n),!0).forEach(function(t){_b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _b(e,t,n){return t=vb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vb(e){var t=yb(e,`string`);return fb(t)==`symbol`?t:t+``}function yb(e,t){if(fb(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fb(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bb(e,t){if(e==null)return{};var n=xb(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xb(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Sb={symbolCircle:fy,symbolCross:py,symbolDiamond:gy,symbolSquare:_y,symbolStar:Sy,symbolTriangle:wy,symbolWye:ky},Cb=Math.PI/180,wb=function(e){return Sb[`symbol${(0,db.default)(e)}`]||fy},Tb=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Cb;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Eb=function(e,t){Sb[`symbol${(0,db.default)(e)}`]=t},Db=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=gb(gb({},bb(e,pb)),{},{type:n,size:i,sizeType:o}),c=function(){var e=wb(n);return Ay().type(e).size(Tb(i,o,n))()},l=s.className,u=s.cx,f=s.cy,p=Q(s,!0);return u===+u&&f===+f&&i===+i?K.createElement(`path`,mb({},p,{className:d(`recharts-symbols`,l),transform:`translate(${u}, ${f})`,d:c()})):null};Db.registerSymbol=Eb;function Ob(e){"@babel/helpers - typeof";return Ob=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ob(e)}function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ab(Object(n),!0).forEach(function(t){Hb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mb(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Nb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ub(r.key),r)}}function Pb(e,t,n){return t&&Nb(e.prototype,t),n&&Nb(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Fb(e,t,n){return t=zb(t),Ib(e,Rb()?Reflect.construct(t,n||[],zb(e).constructor):t.apply(e,n))}function Ib(e,t){if(t&&(Ob(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Lb(e)}function Lb(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!e})()}function zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zb(e)}function Bb(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Vb(e,t)}function Vb(e,t){return Vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vb(e,t)}function Hb(e,t,n){return t=Ub(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ub(e){var t=Wb(e,`string`);return Ob(t)==`symbol`?t:t+``}function Wb(e,t){if(Ob(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ob(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Gb=32,Kb=function(e){function t(){return Mb(this,t),Fb(this,t,arguments)}return Bb(t,e),Pb(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=Gb/2,r=Gb/6,i=Gb/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return K.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:Gb,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return K.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
33
+ )`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),hd=K.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=zu(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,J.jsx)(Ku.Provider,{value:n,children:(0,J.jsxs)(Ba,{ref:t,...r,children:[a&&o===!0&&(0,J.jsx)(md,{ref:i.context.internalBackdropRef,inert:ql(!s)}),e.children]})}):null}),gd={},_d={},vd=``;function yd(e){if(typeof document>`u`)return!1;let t=Rr(e);return gt(t).innerWidth-t.documentElement.clientWidth>0}function bd(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Rr(e),n=t.documentElement,r=t.body,i=St(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function xd(e){let t=Rr(e),n=t.documentElement,r=t.body,i=St(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Sd(e){let t=Rr(e),n=t.documentElement,r=t.body,i=gt(n),a=0,o=0,s=!1,c=Li.create();if(Ut&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,gd={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},vd=n.style.scrollBehavior,_d={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=St(n)?n:r;if(s=bd(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,gd),Object.assign(r.style,_d),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=vd)}function d(){u(),c.request(l)}return l(),i.addEventListener(`resize`,d),()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&i.removeEventListener(`resize`,d)}}var Cd=new class{lockCount=0;restore=null;timeoutLock=ft.create();timeoutUnlock=ft.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Rr(e).documentElement,n=gt(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Xr;return}this.restore=Wt||!yd(e)?xd(e):Sd(e)}};function wd(e=!0,t=null){q(()=>{if(e)return Cd.acquire(t)},[e,t])}function Td(e){let t=K.useRef(``),n=K.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:K.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Ed(e,t){let n=K.useRef(e),r=Y(t);q(()=>{n.current!==e&&r(n.current)},[e,r]),q(()=>{n.current=e},[e])}function Dd(e){let[t,n]=K.useState(null),r=Y((t,r)=>{e||n(r||(Wt?`touch`:``))});Ed(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=Td(r);return K.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}function Od(e){let{store:t,parentContext:n,actionsRef:r}=e,i=t.useState(`open`),a=t.useState(`disablePointerDismissal`),o=t.useState(`modal`),s=t.useState(`popupElement`),{openMethod:c,triggerProps:l}=Dd(i);gc(t);let{forceUnmount:u}=_c(i,t),d=Y(e=>{let n=vi(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),f=K.useCallback(()=>{t.setOpen(!1,d(gi))},[t,d]);K.useImperativeHandle(r,()=>({unmount:u,close:f}),[u,f]);let p=Tc({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[m,h]=K.useState(0),g=m===0,_=Jc(p),v=ho(p,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=cn(e);if(g&&!a){let e=n;return o&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||on(e,s)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:g});wd(i&&o===!0,s);let{getReferenceProps:y,getFloatingProps:b,getTriggerProps:x}=Lc([_,v]);t.useContextCallback(`onNestedDialogOpen`,e=>{h(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{h(0)}),K.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(m),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,m]);let S=K.useMemo(()=>y(l),[y,l]),C=K.useMemo(()=>x(l),[x,l]),w=K.useMemo(()=>b(),[b]);t.useSyncedValues({openMethod:c,activeTriggerProps:S,inactiveTriggerProps:C,popupProps:w,floatingRootContext:p,nestedOpenDialogCount:m})}var kd={...Sc,modal:X(e=>e.modal),nested:X(e=>e.nested),nestedOpenDialogCount:X(e=>e.nestedOpenDialogCount),disablePointerDismissal:X(e=>e.disablePointerDismissal),openMethod:X(e=>e.openMethod),descriptionElementId:X(e=>e.descriptionElementId),titleElementId:X(e=>e.titleElementId),viewportElement:X(e=>e.viewportElement),role:X(e=>e.role)},Ad=class extends ic{constructor(e){super(jd(e),{popupRef:K.createRef(),backdropRef:K.createRef(),internalBackdropRef:K.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new vc,onOpenChange:void 0,onOpenChangeComplete:void 0},kd)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function jd(e={}){return{...bc(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}function Md(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null}=e,f=zu(!0),p=!!f,m=Xe(()=>l?.store??new Ad({open:r,openProp:n,activeTriggerId:d,triggerIdProp:u,modal:s,disablePointerDismissal:o,nested:p})).current;it(()=>{n===void 0&&m.state.open===!1&&r===!0&&m.update({open:!0,activeTriggerId:d})}),m.useControlledProp(`openProp`,n),m.useControlledProp(`triggerIdProp`,u),m.useSyncedValues({disablePointerDismissal:o,nested:p,modal:s}),m.useContextCallback(`onOpenChange`,i),m.useContextCallback(`onOpenChangeComplete`,a);let h=m.useState(`payload`);Od({store:m,actionsRef:c,parentContext:f?.store.context,onOpenChange:i,triggerIdProp:u});let g=K.useMemo(()=>({store:m}),[m]);return(0,J.jsx)(Ru.Provider,{value:g,children:typeof t==`function`?t({payload:h}):t})}var Nd=K.forwardRef(function(e,t){let{render:n,className:r,id:i,...a}=e,{store:o}=zu(),s=yl(i);return o.useSyncedValueWithCleanup(`titleElementId`,s),Aa(`h2`,e,{ref:t,props:[{id:s},a]})}),Pd=[[`path`,{d:`M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 9V13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 16.9922V17.0022`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`,key:`2`}]],Fd=[[`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Id=[[`path`,{d:`M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ld=[[`path`,{d:`M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Rd=[[`path`,{d:`M18 6L6.00081 17.9992M17.9992 18L6 6.00085`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],zd=[[`path`,{d:`M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Bd=[[`path`,{d:`M2.5 12C2.5 7.52167 2.5 5.2825 3.89124 3.89126C5.28249 2.50002 7.52166 2.50002 12 2.50002C16.4783 2.50002 18.7175 2.50002 20.1088 3.89126C21.5 5.2825 21.5 7.52167 21.5 12C21.5 16.4784 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4784 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 9.00002H21.5`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M6.99981 6.00002H7.00879`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`2`}],[`path`,{d:`M10.9998 6.00002H11.0088`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`3`}],[`path`,{d:`M17 17C17 14.2386 14.7614 12 12 12C9.23858 12 7 14.2386 7 17`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M12.707 15.293L11.2928 16.7072`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],Vd=[[`path`,{d:`M21.5 14.0784C20.3003 14.7189 18.9301 15.0821 17.4751 15.0821C12.7491 15.0821 8.91792 11.2509 8.91792 6.52485C8.91792 5.06986 9.28105 3.69968 9.92163 2.5C5.66765 3.49698 2.5 7.31513 2.5 11.8731C2.5 17.1899 6.8101 21.5 12.1269 21.5C16.6849 21.5 20.503 18.3324 21.5 14.0784Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Hd=[[`path`,{d:`M2 12H6L7.5 8L9.5 15L13 6L15.5 18L18 12H22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ud=[[`path`,{d:`M8 10.1667L12.1232 6.04344C13.2481 4.91858 13.8105 4.35614 14.4312 3.90314C15.7047 2.9737 17.1818 2.36187 18.7395 2.11858C19.4988 2 20.2942 2 21.885 2C21.9681 2 22 2.03812 22 2.11504C22 3.70584 22 4.50125 21.8814 5.26046C21.6381 6.81818 21.0263 8.29527 20.0969 9.56878C19.6439 10.1895 19.0814 10.7519 17.9566 11.8768L13.8333 16`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.341 8.09838C8.63808 8.09838 6.49778 7.73765 4.9043 8.39769C3.73671 8.88132 2.87754 10.0012 2 10.8787L5.30597 12.2955C6.18208 12.671 5.64651 13.7766 5.50147 14.5018C5.33985 15.3099 5.34886 15.3397 5.93158 15.9224L8.07758 18.0684C8.6603 18.6511 8.69008 18.6602 9.49816 18.4985C10.2234 18.3535 11.329 17.8179 11.7044 18.694L13.1213 22C13.9988 21.1225 15.1187 20.2633 15.6023 19.0957C16.2624 17.5022 15.9016 15.3619 15.9016 13.659`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 20L11 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M4 12L3 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M15 4.07996C16.2 4.25996 17.46 4.73996 18.1614 5.45996C19.0576 6.25211 19.68 7.31996 19.92 8.99996`,stroke:`currentColor`,strokeLinecap:`square`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M17.94 6.06006L16.5 7.50006`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`5`}]],Wd=[[`path`,{d:`M17 17L21 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Gd=[[`path`,{d:`M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 3L9.5 21`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 7H6M5 10H6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Kd=[[`path`,{d:`M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 2V3.5M12 20.5V22M19.0708 19.0713L18.0101 18.0106M5.98926 5.98926L4.9286 4.9286M22 12H20.5M3.5 12H2M19.0713 4.92871L18.0106 5.98937M5.98975 18.0107L4.92909 19.0714`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]],qd=[[`path`,{d:`M14.4961 2.00027H9.49609C8.66767 2.00027 7.99609 2.67184 7.99609 3.50027C7.99609 4.32869 8.66767 5.00027 9.49609 5.00027H14.4961C15.3245 5.00027 15.9961 4.32869 15.9961 3.50027C15.9961 2.67184 15.3245 2.00027 14.4961 2.00027Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15.9961 3.50027C17.5496 3.54708 18.4761 3.72034 19.1174 4.36163C19.9961 5.24031 19.9961 6.6545 19.9961 9.4829L19.9961 15.9997C19.9961 18.8282 19.9961 20.2424 19.1174 21.1211C18.2387 21.9997 16.8245 21.9997 13.9961 21.9997L9.99609 21.9997C7.16767 21.9997 5.75346 21.9997 4.87478 21.1211C3.9961 20.2424 3.9961 18.8282 3.99609 15.9998L3.99611 9.48295C3.9961 6.65452 3.9961 5.2403 4.87478 4.36162C5.51606 3.72033 6.44261 3.54708 7.99599 3.50027`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M7.49609 11.0003L8.49609 12.0003L10.4961 9.50027`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M12.9961 17.0003H15.9961M12.9961 11.0003H15.9961`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M8.48621 16.8675H8.49621`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`4`}]],Jd=[[`path`,{d:`M5 14.5C5 14.5 6.5 14.5 8.5 18C8.5 18 14.0588 8.83333 19 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Yd=[[`path`,{d:`M5 14L8.5 17.5L19 6.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Xd=[[`path`,{d:`M10.3483 10H13.6517C15.6822 10 16.6974 10 16.9501 9.39139C17.2028 8.78277 16.4849 8.06648 15.0491 6.63391L13.3974 4.9859L13.3974 4.9859C12.7387 4.32863 12.4093 4 12 4C11.5907 4 11.2613 4.32864 10.6026 4.9859L8.95091 6.63391L8.95091 6.63391C7.51513 8.06649 6.79724 8.78277 7.0499 9.39139C7.30256 10 8.31781 10 10.3483 10Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.3483 14H13.6517C15.6822 14 16.6974 14 16.9501 14.6086C17.2028 15.2172 16.4849 15.9335 15.0491 17.3661L13.3974 19.0141C12.7387 19.6714 12.4093 20 12 20C11.5907 20 11.2613 19.6714 10.6026 19.0141L8.95091 17.3661C7.51513 15.9335 6.79724 15.2172 7.0499 14.6086C7.30256 14 8.31781 14 10.3483 14Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Zd=[[`path`,{d:`M13 7C13 9.20914 11.2091 11 9 11C6.79086 11 5 9.20914 5 7C5 4.79086 6.79086 3 9 3C11.2091 3 13 4.79086 13 7Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15 11C17.2091 11 19 9.20914 19 7C19 4.79086 17.2091 3 15 3`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 14H7C4.23858 14 2 16.2386 2 19C2 20.1046 2.89543 21 4 21H14C15.1046 21 16 20.1046 16 19C16 16.2386 13.7614 14 11 14Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M17 14C19.7614 14 22 16.2386 22 19C22 20.1046 21.1046 21 20 21H18.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Qd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},$d=(0,K.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:c,secondaryColor:l,disableSecondaryOpacity:u=!1,...d},f)=>{let p=n===void 0?void 0:r?Number(n)*24/Number(t):n,m=p===void 0?{}:{strokeWidth:p,stroke:`currentColor`};return(0,K.createElement)(`svg`,{ref:f,...Qd,width:t,height:t,color:c||e,className:i,...m,...d},[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!u?n.opacity:void 0,a=l?{...n.stroke===void 0?{fill:r?l:c||e}:{stroke:r?l:c||e}}:{};return(0,K.createElement)(t,{...n,...m,...a,opacity:i,key:n.key})}))});$d.displayName=`HugeiconsIcon`;function ef({...e}){return(0,J.jsx)(Md,{"data-slot":`sheet`,...e})}function tf({...e}){return(0,J.jsx)(hd,{"data-slot":`sheet-portal`,...e})}function nf({className:e,...t}){return(0,J.jsx)(Vu,{"data-slot":`sheet-overlay`,className:G(`fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,e),...t})}function rf({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,J.jsxs)(tf,{children:[(0,J.jsx)(nf,{}),(0,J.jsxs)(pd,{"data-slot":`sheet-content`,"data-side":n,className:G(`fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...i,children:[t,r&&(0,J.jsxs)(Hu,{"data-slot":`sheet-close`,render:(0,J.jsx)(_u,{variant:`ghost`,className:`absolute top-3 end-3`,size:`icon-sm`}),children:[(0,J.jsx)($d,{icon:Rd,strokeWidth:2}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function af({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sheet-header`,className:G(`flex flex-col gap-0.5 p-4`,e),...t})}function of({className:e,...t}){return(0,J.jsx)(Nd,{"data-slot":`sheet-title`,className:G(`font-heading text-base font-medium text-foreground`,e),...t})}function sf({className:e,...t}){return(0,J.jsx)(Uu,{"data-slot":`sheet-description`,className:G(`text-sm text-muted-foreground`,e),...t})}function cf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`skeleton`,className:G(`animate-pulse rounded-md bg-muted`,e),...t})}var lf=768;function uf(){let[e,t]=K.useState(void 0);return K.useEffect(()=>{let e=window.matchMedia(`(max-width: ${lf-1}px)`),n=()=>{t(window.innerWidth<lf)};return e.addEventListener(`change`,n),t(window.innerWidth<lf),()=>e.removeEventListener(`change`,n)},[]),!!e}var df=`sidebar_state`,ff=3600*24*7,pf=`16rem`,mf=`18rem`,hf=`3rem`,gf=`b`,_f=K.createContext(null);function vf(){let e=K.useContext(_f);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function yf({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=uf(),[c,l]=K.useState(!1),[u,d]=K.useState(e),f=t??u,p=K.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${df}=${t}; path=/; max-age=${ff}`},[n,f]),m=K.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);K.useEffect(()=>{let e=e=>{e.key===gf&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=K.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,J.jsx)(_f.Provider,{value:g,children:(0,J.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":pf,"--sidebar-width-icon":hf,...i},className:G(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})}function bf({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,dir:a,...o}){let{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=vf();return n===`none`?(0,J.jsx)(`div`,{"data-slot":`sidebar`,className:G(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...o,children:i}):s?(0,J.jsx)(ef,{open:l,onOpenChange:u,...o,children:(0,J.jsxs)(rf,{dir:a,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":mf},side:e,children:[(0,J.jsxs)(af,{className:`sr-only`,children:[(0,J.jsx)(of,{children:`Sidebar`}),(0,J.jsx)(sf,{children:`Displays the mobile sidebar.`})]}),(0,J.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,J.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":c===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,J.jsx)(`div`,{"data-slot":`sidebar-gap`,className:G(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,J.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:G(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s`,r),...o,children:(0,J.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,children:i})})]})}function xf({className:e,onClick:t,...n}){let{toggleSidebar:r}=vf();return(0,J.jsxs)(_u,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:G(e),onClick:e=>{t?.(e),r()},...n,children:[(0,J.jsx)($d,{icon:Gd,strokeWidth:2,className:`rtl:rotate-180`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Sf({className:e,...t}){return(0,J.jsx)(`main`,{"data-slot":`sidebar-inset`,className:G(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2`,e),...t})}function Cf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:G(`flex flex-col gap-2 p-2`,e),...t})}function wf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:G(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Tf({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:G(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function Ef({className:e,render:t,...n}){return nu({defaultTagName:`div`,props:ya({className:G(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e)},n),render:t,state:{slot:`sidebar-group-label`,sidebar:`group-label`}})}function Df({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:G(`w-full text-sm`,e),...t})}function Of({className:e,...t}){return(0,J.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:G(`flex w-full min-w-0 flex-col gap-0`,e),...t})}function kf({className:e,...t}){return(0,J.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:G(`group/menu-item relative`,e),...t})}var Af=ou(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function jf({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let{isMobile:s,state:c}=vf(),l=nu({defaultTagName:`button`,props:ya({className:G(Af({variant:n,size:r}),a)},o),render:i?(0,J.jsx)(Xl,{render:e}):e,state:{slot:`sidebar-menu-button`,sidebar:`menu-button`,size:r,active:t}});return i?(typeof i==`string`&&(i={children:i}),(0,J.jsxs)(Yl,{children:[l,(0,J.jsx)(Zl,{side:`right`,align:`center`,hidden:c!==`collapsed`||s,...i})]})):l}function Mf(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function Nf(e){return e<1?`${e.toFixed(2)}ms`:e<1e3?`${e.toFixed(1)}ms`:`${(e/1e3).toFixed(1)}s`}function Pf(e){return e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`}function Ff(e){let t=new Date(e),n=String(t.getMilliseconds()).padStart(3,`0`);return`${t.toLocaleTimeString()}.${n}`}function If(e){let t=Date.now()-e,n=Math.floor(t/1e3);if(n<5)return`just now`;if(n<60)return`${n}s ago`;let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function Lf({route:e,navigate:t,data:n,errorCount:r,requestCount:i,sessionCount:a,taskCount:o}){return(0,J.jsxs)(bf,{collapsible:`icon`,children:[(0,J.jsx)(Cf,{className:`gap-0`,children:(0,J.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1 group-data-[collapsible=icon]:justify-center`,children:[(0,J.jsx)(`div`,{className:`flex size-7 items-center justify-center rounded-md bg-primary/10 text-primary`,children:(0,J.jsx)($d,{icon:Hd,size:16})}),(0,J.jsx)(`span`,{className:`text-sm font-semibold tracking-tight group-data-[collapsible=icon]:hidden`,children:`silgi`})]})}),(0,J.jsxs)(wf,{children:[(0,J.jsxs)(Tf,{children:[(0,J.jsx)(Ef,{children:`Views`}),(0,J.jsx)(Df,{children:(0,J.jsxs)(Of,{className:`gap-0.5`,children:[(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`overview`,onClick:()=>t(`overview`),children:[(0,J.jsx)($d,{icon:Bd,size:15}),(0,J.jsx)(`span`,{children:`Overview`})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`requests`,onClick:()=>t(`requests`),children:[(0,J.jsx)($d,{icon:Ud,size:15}),(0,J.jsx)(`span`,{children:`Requests`}),i>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:i})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`errors`,onClick:()=>t(`errors`),children:[(0,J.jsx)($d,{icon:Pd,size:15}),(0,J.jsx)(`span`,{children:`Errors`}),r>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`ml-auto h-4.5 min-w-5 justify-center px-1 text-[10px] group-data-[collapsible=icon]:hidden`,children:r>99?`99+`:r})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`sessions`,onClick:()=>t(`sessions`),children:[(0,J.jsx)($d,{icon:Zd,size:15}),(0,J.jsx)(`span`,{children:`Sessions`}),a>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:a})]})}),(0,J.jsx)(kf,{children:(0,J.jsxs)(jf,{isActive:e.page===`tasks`,onClick:()=>t(`tasks`),children:[(0,J.jsx)($d,{icon:qd,size:15}),(0,J.jsx)(`span`,{children:`Tasks`}),o>0&&(0,J.jsx)(`span`,{className:`ml-auto font-mono text-[10px] tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden`,children:o})]})})]})})]}),n&&(0,J.jsxs)(Tf,{className:`mt-auto group-data-[collapsible=icon]:hidden`,children:[(0,J.jsx)(Ef,{children:`Node`}),(0,J.jsx)(Df,{children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-1.5 px-2 text-[11px]`,children:[(0,J.jsx)(Rf,{label:`Req/s`,value:Mf(n.requestsPerSecond)}),(0,J.jsx)(Rf,{label:`Avg`,value:Nf(n.avgLatency)}),(0,J.jsx)(Rf,{label:`Errors`,value:String(n.totalErrors),danger:n.totalErrors>0}),(0,J.jsx)(Rf,{label:`Uptime`,value:Pf(n.uptime)})]})})]})]})]})}function Rf({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`font-mono tabular-nums`,n?`font-medium text-destructive`:`text-foreground`),children:t})]})}function zf({spans:e,totalMs:t}){let n=(0,K.useMemo)(()=>Math.max(t,...e.map(e=>e.durationMs)),[e,t]),[r,i]=(0,K.useState)(null),[a,o]=(0,K.useState)(!1);function s(){o(!a),i(null)}return(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-[2rem_2.5rem_minmax(0,12rem)_1fr_4.5rem_3rem] items-center gap-2 border-b py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(`button`,{type:`button`,onClick:s,className:`cursor-pointer text-left hover:text-foreground`,title:a?`Collapse all`:`Expand all`,children:a?`▼`:`▶`}),(0,J.jsx)(`span`,{children:`kind`}),(0,J.jsx)(`span`,{children:`span`}),(0,J.jsx)(`span`,{children:`timeline`}),(0,J.jsx)(`span`,{className:`text-right`,children:`dur`}),(0,J.jsx)(`span`,{className:`text-right`,children:`%`})]}),e.map((e,o)=>{let s=n>0?e.durationMs/n*100:0,c=t>0?e.durationMs/t*100:0,l=!!e.error,u=e.durationMs>t*.5,d=Bf[e.kind]??Bf.custom,f=l?`bg-destructive/60`:d.bar,p=a||r===o;return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`grid cursor-pointer grid-cols-[2rem_2.5rem_minmax(0,12rem)_1fr_4.5rem_3rem] items-center gap-2 border-b border-dashed py-2 hover:bg-muted/20 last:border-0`,onClick:()=>i(p?null:o),children:[(0,J.jsx)(`span`,{className:`font-mono text-[10px] text-muted-foreground/60`,children:o+1}),(0,J.jsx)(Vf,{kind:e.kind}),(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`inline-block size-1.5 shrink-0 rounded-full ${d.dot}`}),(0,J.jsx)(`span`,{className:`truncate font-mono text-[11px]`,title:e.name,children:e.name})]}),(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{className:`relative h-5 overflow-hidden rounded bg-muted/20`,children:e.startOffsetMs!=null&&t>0?(0,J.jsx)(`div`,{className:G(`absolute inset-y-0 rounded`,f),style:{left:`${Math.min(e.startOffsetMs/t*100,99)}%`,width:`${Math.max(c,1.5)}%`}}):(0,J.jsx)(`div`,{className:G(`absolute inset-y-0 left-0 rounded`,f),style:{width:`${Math.max(s,2)}%`}})}),(0,J.jsxs)(Zl,{side:`top`,className:`text-xs`,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,J.jsxs)(`span`,{className:`ml-1.5 text-muted-foreground`,children:[`[`,e.kind,`]`]}),(0,J.jsx)(`span`,{className:`ml-2 tabular-nums`,children:Nf(e.durationMs)}),e.startOffsetMs!=null&&(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[`at +`,e.startOffsetMs.toFixed(1),`ms`]}),e.error&&(0,J.jsx)(`span`,{className:`ml-2 text-destructive`,children:e.error})]})]}),(0,J.jsx)(`span`,{className:G(`text-right font-mono text-[11px] tabular-nums`,l?`text-destructive`:u?`text-chart-1`:`text-muted-foreground`),children:Nf(e.durationMs)}),(0,J.jsxs)(`span`,{className:`text-right font-mono text-[10px] text-muted-foreground/60`,children:[c.toFixed(0),`%`]})]}),p&&(0,J.jsxs)(`div`,{className:`border-b bg-muted/10 px-4 py-3`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex flex-wrap items-center gap-2 text-[11px]`,children:[(0,J.jsx)(Vf,{kind:e.kind}),(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:e.name}),(0,J.jsx)(`span`,{className:`tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),e.startOffsetMs!=null&&(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`at +`,e.startOffsetMs.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,t>0?(e.durationMs/t*100).toFixed(0):0,`% of total)`]})]}),e.attributes&&Object.keys(e.attributes).length>0&&(0,J.jsx)(`div`,{className:`mb-2 flex flex-wrap gap-1.5`,children:Object.entries(e.attributes).map(([e,t])=>(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded bg-muted/40 px-1.5 py-0.5 font-mono text-[9px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`text-foreground`,children:String(t)})]},e))}),e.input!=null&&(0,J.jsxs)(`div`,{className:`mb-2`,children:[(0,J.jsx)(`h5`,{className:`mb-1 text-[10px] font-semibold text-muted-foreground`,children:`Input`}),(0,J.jsx)(`pre`,{className:`max-h-32 overflow-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:typeof e.input==`string`?e.input:JSON.stringify(e.input,null,2)})]}),e.output!=null&&(0,J.jsxs)(`div`,{className:`mb-2`,children:[(0,J.jsx)(`h5`,{className:`mb-1 text-[10px] font-semibold text-muted-foreground`,children:`Output`}),(0,J.jsx)(`pre`,{className:`max-h-32 overflow-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:typeof e.output==`string`?e.output:JSON.stringify(e.output,null,2)})]}),e.detail&&(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-background p-3 font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.detail}),e.error&&(0,J.jsx)(`div`,{className:`mt-2 rounded-md bg-destructive/10 px-3 py-2 text-[11px] text-destructive`,children:e.error}),!e.detail&&!e.error&&!e.input&&!e.output&&!e.attributes&&(0,J.jsxs)(`p`,{className:`text-[11px] text-muted-foreground/60`,children:[`No detail captured. Use`,` `,(0,J.jsx)(`code`,{className:`rounded bg-muted px-1`,children:`ctx.trace(name, fn, { detail: "..." })`}),` to add query/URL info.`]})]})]},`${e.name}-${o}`)})]})}var Bf={db:{dot:`bg-purple-500`,bar:`bg-purple-500/50`},http:{dot:`bg-blue-500`,bar:`bg-blue-500/50`},cache:{dot:`bg-emerald-500`,bar:`bg-emerald-500/50`},queue:{dot:`bg-amber-500`,bar:`bg-amber-500/50`},email:{dot:`bg-orange-500`,bar:`bg-orange-500/50`},ai:{dot:`bg-cyan-500`,bar:`bg-cyan-500/50`},custom:{dot:`bg-zinc-400`,bar:`bg-zinc-400/40`}};function Vf({kind:e}){return(0,J.jsx)(`span`,{className:G(`rounded px-1 py-0.5 text-center font-mono text-[9px] font-bold uppercase`,{db:`bg-purple-500/15 text-purple-400`,http:`bg-blue-500/15 text-blue-400`,cache:`bg-emerald-500/15 text-emerald-400`,queue:`bg-amber-500/15 text-amber-400`,email:`bg-orange-500/15 text-orange-400`,ai:`bg-cyan-500/15 text-cyan-400`,custom:`bg-zinc-500/15 text-zinc-400`}[e]),children:e})}var Hf=`[REDACTED]`,Uf=new Set([`authorization`,`cookie`,`set-cookie`,`x-api-key`,`x-auth-token`,`proxy-authorization`]);function Wf(e){return e===`localhost`||e===`127.0.0.1`||e===`0.0.0.0`||e.endsWith(`.localhost`)}function Gf(){return typeof window<`u`?!Wf(window.location.hostname):!0}function Kf(e,t){return Gf()&&Uf.has(e.toLowerCase())?Hf:t}function qf(e){return Uf.has(e.toLowerCase())}function Jf({entry:e}){let t=Object.entries(e.headers??{}),n=e.input!==void 0&&e.input!==null,r=e.spans.length>0,i=t.length>0,a=Gf();return(0,J.jsxs)(`div`,{className:`grid xl:grid-cols-[1.6fr_1fr]`,children:[(0,J.jsxs)(`div`,{className:`xl:border-r`,children:[(0,J.jsx)(Yf,{label:`Error message`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-xs leading-relaxed text-destructive/90`,children:e.error})}),r&&(0,J.jsx)(Yf,{label:`Trace timeline — ${e.spans.length} ops, ${Nf(e.durationMs)} total`,children:(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs})}),e.stack&&(0,J.jsx)(Yf,{label:`Stack trace`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.stack})})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(Yf,{label:`Metadata`,children:(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsx)(Xf,{label:`id`,value:String(e.id)}),(0,J.jsx)(Xf,{label:`status`,value:String(e.status),danger:e.status>=500}),(0,J.jsx)(Xf,{label:`code`,value:e.code,danger:!0}),(0,J.jsx)(Xf,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(Xf,{label:`spans`,value:String(e.spans.length)}),(0,J.jsx)(Xf,{label:`headers`,value:String(t.length)})]})}),n&&(0,J.jsx)(Yf,{label:`Input payload`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),i&&(0,J.jsx)(Yf,{label:`Headers`,children:(0,J.jsx)(`div`,{className:`flex flex-col`,children:t.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex gap-3 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`w-28 shrink-0 truncate font-mono text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`min-w-0 break-all font-mono text-[11px]`,children:a&&qf(e)?(0,J.jsx)(`span`,{className:`text-muted-foreground/40`,children:`[redacted]`}):t})]},e))})})]})]})}function Yf({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function Xf({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}var Zf=K.createContext(null),Qf=K.createContext(null);function $f(){let e=K.useContext(Zf);if(e===null)throw Error(ot(60));return e}function ep(){let e=K.useContext(Qf);if(e===null)throw Error(ot(61));return e}var tp=(e,t)=>Object.is(e,t);function np(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function rp(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:np(t,e,n))}function ip(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:np(e,t,n))}function ap(e,t,n){return e.filter(e=>!np(t,e,n))}function op(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function sp(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function cp(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(sp(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function lp(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return op(e)}function up(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?op(e.value):op(e)}function dp(e,t,n){function r(){return lp(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=sp(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function fp(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,J.jsx)(K.Fragment,{children:dp(r,t,n)},i)),e),[])}var pp={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:up(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?cp(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>np(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:np(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)};function mp(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,autoComplete:l,disabled:u=!1,readOnly:d=!1,required:f=!1,modal:p=!0,actionsRef:m,inputRef:h,onOpenChangeComplete:g,items:_,multiple:v=!1,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x=tp,highlightItemOnHover:S=!0,children:C}=e,{clearErrors:w}=Eu(),{setDirty:T,setTouched:E,setFocused:D,shouldValidateOnChange:O,validityData:k,setFilled:A,name:j,disabled:M,validation:N,validationMode:P}=wu(),F=ju({id:t}),I=M||u,ee=j??c,[L,R]=Au({controlled:n,default:v?r??Zr:r,name:`Select`,state:`value`}),[z,B]=Au({controlled:a,default:o,name:`Select`,state:`open`}),V=K.useRef([]),te=K.useRef([]),H=K.useRef(null),ne=K.useRef(null),re=K.useRef(0),ie=K.useRef(null),ae=K.useRef([]),oe=K.useRef(!1),se=K.useRef(!1),ce=K.useRef(null),le=K.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),ue=K.useRef(!1),{mounted:de,setMounted:fe,transitionStatus:pe}=sc(z),{openMethod:me,triggerProps:he}=Dd(z),ge=Xe(()=>new rc({id:F,labelId:void 0,modal:p,multiple:v,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x,value:L,open:z,mounted:de,transitionStatus:pe,items:_,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,_e=$s(ge,pp.activeIndex),ve=$s(ge,pp.selectedIndex),ye=$s(ge,pp.triggerElement),be=$s(ge,pp.positionerElement),xe=K.useMemo(()=>v&&Array.isArray(L)&&L.length===0?``:up(L,b),[v,L,b]),U=K.useMemo(()=>v&&Array.isArray(L)?L.map(e=>up(e,b)):up(L,b),[v,L,b]),Se=ki(ge.state.triggerElement);Mu({id:F,commit:N.commit,value:L,controlRef:Se,name:ee,getValue:()=>U});let Ce=K.useRef(L);q(()=>{L!==Ce.current&&ge.set(`forceMount`,!0)},[ge,L]),q(()=>{A(v?Array.isArray(L)&&L.length>0:L!=null)},[v,L,A]),q(function(){if(z)return;let e=ae.current;if(v){let t=Array.isArray(L)?L:[];if(t.length===0){ge.set(`selectedIndex`,null);return}let n=t[t.length-1],r=ip(e,n,x);ge.set(`selectedIndex`,r===-1?null:r);return}let t=ip(e,L,x);ge.set(`selectedIndex`,t===-1?null:t)},[v,z,L,ae,x,ge]),Ed(L,()=>{w(ee),T(L!==k.initialValue),O()?N.commit(L):N.commit(L,!0)});let we=Y((e,t)=>{if(s?.(e,t),!t.isCanceled&&(B(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(E(!0),D(!1),P===`onBlur`&&N.commit(L)),!e&&ge.state.activeIndex!==null)){let e=V.current[ge.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Te=Y(()=>{fe(!1),ge.set(`activeIndex`,null),g?.(!1)});pc({enabled:!m,open:z,ref:H,onComplete(){z||Te()}}),K.useImperativeHandle(m,()=>({unmount:Te}),[Te]);let Ee=Y((e,t)=>{i?.(e,t),!t.isCanceled&&R(e)}),De=Y(()=>{let e=ge.state.listElement||H.current;if(!e)return;let t=e.scrollTop,n=e.scrollTop+e.clientHeight,r=t>1,i=n<e.scrollHeight-1;ge.state.scrollUpArrowVisible!==r&&ge.set(`scrollUpArrowVisible`,r),ge.state.scrollDownArrowVisible!==i&&ge.set(`scrollDownArrowVisible`,i)}),Oe=Cc({open:z,onOpenChange:we,elements:{reference:ye,floating:be}}),{getReferenceProps:W,getFloatingProps:ke,getItemProps:Ae}=Lc([so(Oe,{enabled:!d&&!I,event:`mousedown`}),ho(Oe,{bubbles:!1}),Kc(Oe,{enabled:!d&&!I,listRef:V,activeIndex:_e,selectedIndex:ve,disabledIndices:Zr,onNavigate(e){e===null&&!z||ge.set(`activeIndex`,e)},focusItemOnHover:!1}),Yc(Oe,{enabled:!d&&!I&&(z||!v),listRef:te,activeIndex:_e,selectedIndex:ve,onMatch(e){z?ge.set(`activeIndex`,e):Ee(ae.current[e],vi(`none`))},onTypingChange(e){oe.current=e}})]),je=K.useMemo(()=>ya(W(),he,F?{id:F}:Qr),[W,he,F]);it(()=>{ge.update({popupProps:ke(),triggerProps:je})}),q(()=>{ge.update({id:F,modal:p,multiple:v,value:L,open:z,mounted:de,transitionStatus:pe,popupProps:ke(),triggerProps:je,items:_,itemToStringLabel:y,itemToStringValue:b,isItemEqualToValue:x,openMethod:me})},[ge,F,p,v,L,z,de,pe,ke,je,_,y,b,x,me]);let Me=K.useMemo(()=>({store:ge,name:ee,required:f,disabled:I,readOnly:d,multiple:v,itemToStringLabel:y,itemToStringValue:b,highlightItemOnHover:S,setValue:Ee,setOpen:we,listRef:V,popupRef:H,scrollHandlerRef:ne,handleScrollArrowVisibility:De,scrollArrowsMountedCountRef:re,getItemProps:Ae,events:Oe.context.events,valueRef:ie,valuesRef:ae,labelsRef:te,typingRef:oe,selectionRef:le,selectedItemTextRef:ce,validation:N,onOpenChangeComplete:g,keyboardActiveRef:se,alignItemWithTriggerActiveRef:ue,initialValueRef:Ce}),[ge,ee,f,I,d,v,y,b,S,Ee,we,Ae,Oe.context.events,N,g,De]),Ne=Ci(h,N.inputRef),Pe=v&&Array.isArray(L)&&L.length>0,Fe=v?void 0:ee,Ie=K.useMemo(()=>!v||!Array.isArray(L)||!ee?null:L.map(e=>{let t=up(e,b);return(0,J.jsx)(`input`,{type:`hidden`,name:ee,value:t},t)}),[v,L,ee,b]);return(0,J.jsx)(Zf.Provider,{value:Me,children:(0,J.jsxs)(Qf.Provider,{value:Oe,children:[C,(0,J.jsx)(`input`,{...N.getInputValidationProps({onFocus(){ge.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.target.value,n=vi(ri,e.nativeEvent);function r(){if(v)return;let e=ae.current.find(e=>up(e,b).toLowerCase()===t.toLowerCase());e!=null&&(T(e!==k.initialValue),Ee(e,n),O()&&N.commit(e))}ge.set(`forceMount`,!0),queueMicrotask(r)}}),id:F&&Fe==null?`${F}-hidden-input`:void 0,name:Fe,autoComplete:l,value:xe,disabled:I,required:f&&!Pe,readOnly:d,ref:Ne,style:ee?Vi:Bi,tabIndex:-1,"aria-hidden":!0}),Ie]})})}function hp(e,t){return e??t}function gp(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,`::before`),r=window.getComputedStyle(e,`::after`);if(!(n.content!==`none`||r.content!==`none`))return t;let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=parseFloat(r.width)||0,s=parseFloat(r.height)||0,c=Math.max(t.width,i,o),l=Math.max(t.height,a,s),u=c-t.width,d=l-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}var _p=2,vp=400,yp=200,bp={..._l,...Su,value:()=>null},xp=K.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{setTouched:c,setFocused:l,validationMode:u,state:d,disabled:f}=wu(),{labelId:p}=Ou(),{store:m,setOpen:h,selectionRef:g,validation:_,readOnly:v,required:y,alignItemWithTriggerActiveRef:b,disabled:x,keyboardActiveRef:S}=$f(),C=f||x||a,w=$s(m,pp.open),T=$s(m,pp.value),E=$s(m,pp.triggerProps),D=$s(m,pp.positionerElement),O=$s(m,pp.listElement),k=$s(m,pp.id),A=$s(m,pp.labelId),j=$s(m,pp.hasSelectedValue),M=!j&&w,N=$s(m,pp.hasNullItemLabel,M),P=i??k,F=hp(p,A);ju({id:P});let I=ki(D),ee=K.useRef(null),{getButtonProps:L,buttonRef:R}=fu({disabled:C,native:o}),z=Ci(t,ee,R,Y(e=>{m.set(`triggerElement`,e)})),B=pt(),V=pt(),te=pt(),H=pt();K.useEffect(()=>{if(w)return j||N?H.start(yp,()=>{g.current.allowUnselectedMouseUp=!0,te.start(yp,()=>{g.current.allowSelectedMouseUp=!0})}):te.start(vp,()=>{g.current.allowUnselectedMouseUp=!0,g.current.allowSelectedMouseUp=!0}),()=>{te.clear(),H.clear()};g.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},V.clear()},[w,j,N,g,V,te,H]);let ne=K.useMemo(()=>O?.id??mn(D)?.id,[O,D]),re=ya(E,{id:P,role:`combobox`,"aria-expanded":w?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":w?ne:void 0,"aria-labelledby":F,"aria-readonly":v||void 0,"aria-required":y||void 0,tabIndex:C?-1:0,ref:z,onFocus(e){l(!0),w&&b.current&&h(!1,vi(ri,e.nativeEvent)),B.start(0,()=>{m.set(`forceMount`,!0)})},onBlur(e){on(D,e.relatedTarget)||(c(!0),l(!1),u===`onBlur`&&_.commit(T))},onPointerMove(){S.current=!1},onKeyDown(){S.current=!0},onMouseDown(e){if(w)return;let t=Rr(e.currentTarget);function n(e){if(!ee.current)return;let t=e.target;if(on(ee.current,t)||on(I.current,t)||t===ee.current)return;let n=gp(ee.current);e.clientX>=n.left-_p&&e.clientX<=n.right+_p&&e.clientY>=n.top-_p&&e.clientY<=n.bottom+_p||h(!1,vi(pi,e))}V.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},_.getValidationProps,s,L);re.role=`combobox`;let ie={...d,open:w,disabled:C,value:T,readOnly:v,placeholder:!j};return Aa(`button`,e,{ref:[t,ee],state:ie,stateAttributesMapping:bp,props:re})}),Sp={value:()=>null},Cp=K.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,...o}=e,{store:s,valueRef:c}=$f(),l=$s(s,pp.value),u=$s(s,pp.items),d=$s(s,pp.itemToStringLabel),f=$s(s,pp.hasSelectedValue),p=!f&&a!=null&&i==null,m=$s(s,pp.hasNullItemLabel,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(!f&&a!=null&&!m?a:Array.isArray(l)?fp(l,u,d):dp(l,u,d)),Aa(`span`,e,{state:h,ref:[t,c],props:[{children:g},o],stateAttributesMapping:Sp})}),wp=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a}=$f();return Aa(`span`,e,{state:{open:$s(a,pp.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},i],stateAttributesMapping:gl})}),Tp=K.createContext(void 0),Ep=K.forwardRef(function(e,t){let{store:n}=$f(),r=$s(n,pp.mounted),i=$s(n,pp.forceMount);return r||i?(0,J.jsx)(Tp.Provider,{value:!0,children:(0,J.jsx)(Ba,{ref:t,...e})}):null}),Dp=K.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Op(){return K.useContext(Dp)}function kp(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),o=K.useRef(0),s=Xe(jp).current,c=Xe(Ap).current,[l,u]=K.useState(0),d=K.useRef(l),f=Y((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=Y(e=>{c.delete(e),d.current+=1,u(d.current)}),m=K.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Mp).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);q(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),q(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),q(()=>()=>{n.current=[]},[n]),q(()=>()=>{r&&(r.current=[])},[r]);let h=Y(e=>(s.add(e),()=>{s.delete(e)}));q(()=>{s.forEach(e=>e(m))},[s,m]);let g=K.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,J.jsx)(Dp.Provider,{value:g,children:t})}function Ap(){return new Map}function jp(){return new Set}function Mp(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var Np=K.createContext(void 0);function Pp(){let e=K.useContext(Np);if(!e)throw Error(ot(59));return e}function Fp(e,t){e&&Object.assign(e.style,t)}var Ip={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Lp={position:`fixed`},Rp=K.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=ei,..._}=e,{store:v,listRef:y,labelsRef:b,alignItemWithTriggerActiveRef:x,selectedItemTextRef:S,valuesRef:C,initialValueRef:w,popupRef:T,setValue:E}=$f(),D=ep(),O=$s(v,pp.open),k=$s(v,pp.mounted),A=$s(v,pp.modal),j=$s(v,pp.value),M=$s(v,pp.openMethod),N=$s(v,pp.positionerElement),P=$s(v,pp.triggerElement),F=$s(v,pp.isItemEqualToValue),I=$s(v,pp.transitionStatus),ee=K.useRef(null),L=K.useRef(null),[R,z]=K.useState(h),B=k&&R&&M!==`touch`;!k&&R!==h&&z(h),q(()=>{k||(pp.scrollUpArrowVisible(v.state)&&v.set(`scrollUpArrowVisible`,!1),pp.scrollDownArrowVisible(v.state)&&v.set(`scrollDownArrowVisible`,!1))},[v,k]),K.useImperativeHandle(x,()=>B),wd((B||A)&&O&&M!==`touch`,P);let V=zl({anchor:n,floatingRootContext:D,positionMethod:r,mounted:k,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??B,collisionAvoidance:g,keepMounted:!0}),te=B?`none`:V.side,H=B?Lp:V.positionerStyles,ne=K.useMemo(()=>{let e={};return O||(e.pointerEvents=`none`),{role:`presentation`,hidden:!k,style:{...H,...e}}},[O,k,H]),re={open:O,side:te,align:V.align,anchorHidden:V.anchorHidden},ie=Aa(`div`,e,{ref:[t,Y(e=>{v.set(`positionerElement`,e)})],state:re,stateAttributesMapping:vl,props:[ne,Vl(I),_]}),ae=K.useRef(0),oe=Y(e=>{if(e.size===0&&ae.current===0||C.current.length===0)return;let t=ae.current;if(ae.current=e.size,e.size===t)return;let n=vi(ri);if(t!==0&&!v.state.multiple&&j!==null&&ip(C.current,j,F)===-1){let e=w.current,t=e!=null&&ip(C.current,e,F)!==-1?e:null;E(t,n),t===null&&(v.set(`selectedIndex`,null),S.current=null)}if(t!==0&&v.state.multiple&&Array.isArray(j)){let e=e=>ip(C.current,e,F)!==-1,t=j.filter(t=>e(t));(t.length!==j.length||t.some(e=>!rp(j,e,F)))&&(E(t,n),t.length===0&&(v.set(`selectedIndex`,null),S.current=null))}if(O&&B){v.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Fp(N,e),Fp(T.current,e)}}),se=K.useMemo(()=>({...V,side:te,alignItemWithTriggerActive:B,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:ee,scrollDownArrowRef:L}),[V,te,B,z]);return(0,J.jsx)(kp,{elementsRef:y,labelsRef:b,onMapChange:oe,children:(0,J.jsxs)(Np.Provider,{value:se,children:[k&&A&&(0,J.jsx)(md,{inert:ql(!O),cutout:P}),ie]})})});function zp(e){let t=e.currentTarget.getBoundingClientRect();return t.top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1}var Bp=`base-ui-disable-scrollbar`,Vp={className:Bp,getElement(e){return(0,J.jsx)(`style`,{nonce:e,href:Bp,precedence:`base-ui:low`,children:`.${Bp}{scrollbar-width:none}.${Bp}::-webkit-scrollbar{display:none}`})}},Hp=K.createContext(void 0);function Up(e){let t=K.useContext(Hp);if(t===void 0&&!e)throw Error(ot(69));return t}function Wp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Gp=K.createContext(void 0),Kp={disableStyleElements:!1};function qp(){return K.useContext(Gp)??Kp}var Jp=1,Yp={...vl,...dc},Xp=K.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o,popupRef:s,onOpenChangeComplete:c,setOpen:l,valueRef:u,selectedItemTextRef:d,keyboardActiveRef:f,multiple:p,handleScrollArrowVisibility:m,scrollHandlerRef:h,highlightItemOnHover:g}=$f(),{side:_,align:v,alignItemWithTriggerActive:y,setControlledAlignItemWithTrigger:b,scrollDownArrowRef:x,scrollUpArrowRef:S}=Pp(),C=Up(!0)!=null,w=ep(),{nonce:T,disableStyleElements:E}=qp(),D=pt(),O=$s(o,pp.id),k=$s(o,pp.open),A=$s(o,pp.mounted),j=$s(o,pp.popupProps),M=$s(o,pp.transitionStatus),N=$s(o,pp.triggerElement),P=$s(o,pp.positionerElement),F=$s(o,pp.listElement),I=K.useRef(0),ee=K.useRef(!1),L=K.useRef(0),R=K.useRef(!1),z=K.useRef({}),B=Ri(),V=Y(e=>{if(!P||!s.current||!R.current)return;if(ee.current||!y){m();return}let t=P.style.top===`0px`,n=P.style.bottom===`0px`,r=P.getBoundingClientRect().height,i=Rr(P),a=getComputedStyle(P),o=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),l=Zp(getComputedStyle(s.current)),u=Math.min(i.documentElement.clientHeight-o-c,l),d=e.scrollTop,f=Qp(e),p=0,h=null,g=!1,_=!1,v=e=>{P.style.height=`${e}px`},b=(t,n)=>{let i=Wp(t,0,u-r);i>0&&v(r+i),e.scrollTop=n,u-(r+i)<=Jp&&(ee.current=!0),m()};if(t){let e=f-d,t=r+e,n=Math.min(t,u);if(p=n,e<=Jp){b(e,f);return}u-n>Jp?_=!0:g=!0}else if(n){let e=d,t=r+e,n=Math.min(t,u),i=t-u;if(p=n,e<=Jp){b(e,0);return}u-n>Jp?h=0:(g=!0,d<f&&(h=d-(e-i)))}if(p=Math.ceil(p),p!==0&&v(p),_||h!=null){let t=Qp(e),n=_?t:Wp(h,0,t);Math.abs(e.scrollTop-n)>Jp&&(e.scrollTop=n)}(g||p>=u-Jp)&&(ee.current=!0),m()});K.useImperativeHandle(h,()=>V,[V]),pc({open:k,ref:s,onComplete(){k&&c?.(!0)}});let te={open:k,transitionStatus:M,side:_,align:v};q(()=>{!P||!s.current||Object.keys(z.current).length||(z.current={top:P.style.top||`0`,left:P.style.left||`0`,right:P.style.right,height:P.style.height,bottom:P.style.bottom,minHeight:P.style.minHeight,maxHeight:P.style.maxHeight,marginTop:P.style.marginTop,marginBottom:P.style.marginBottom})},[s,P]),q(()=>{k||y||(R.current=!1,ee.current=!1,I.current=0,L.current=0,Fp(P,z.current))},[k,y,P,s]),q(()=>{let e=s.current;if(!(!k||!N||!P||!e||o.state.transitionStatus===`ending`)){if(!y){R.current=!0,B.request(m),e.style.removeProperty(`--transform-origin`);return}queueMicrotask(()=>{let t=nm(e);e.style.removeProperty(`--transform-origin`);try{let t=getComputedStyle(P),n=getComputedStyle(e),r=Rr(N),i=gt(P),a=$p(N),o=em(N.getBoundingClientRect(),a),s=em(P.getBoundingClientRect(),a),c=o.left,l=o.height,f=F||e,p=f.scrollHeight,h=parseFloat(n.borderBottomWidth),g=parseFloat(t.marginTop)||10,_=parseFloat(t.marginBottom)||10,v=parseFloat(t.minHeight)||100,y=Zp(n),x=r.documentElement.clientHeight-g-_,S=r.documentElement.clientWidth,C=x-o.bottom+l,w=d.current,T=u.current,E,D=0,O=0;if(w&&T){let e=em(T.getBoundingClientRect(),a);E=em(w.getBoundingClientRect(),a);let t=e.left-c,n=E.left-s.left,r=e.top-o.top+e.height/2,i=E.top-s.top+E.height/2;D=t-n,O=i-r}let k=C+O+_+h,A=Math.min(x,k),j=x-g-_,M=k-A,L=Math.max(5,c+D),B=S-5,V=Math.max(0,L+s.width-B);P.style.left=`${L-V}px`,P.style.height=`${A}px`,P.style.maxHeight=`auto`,P.style.marginTop=`${g}px`,P.style.marginBottom=`${_}px`,e.style.height=`100%`;let te=Qp(f),H=M>=te-Jp;H&&(A=Math.min(x,s.height)-(M-te));let ne=o.top<20||o.bottom>x-20||Math.ceil(A)+Jp<Math.min(p,v),re=(i.visualViewport?.scale??1)!==1&&Ut;if(ne||re){R.current=!0,Fp(P,z.current),Fa.flushSync(()=>b(!1));return}if(H){let e=Math.max(0,x-k);P.style.top=s.height>=j?`0`:`${e}px`,P.style.height=`${A}px`,f.scrollTop=Qp(f),I.current=Math.max(v,A)}else P.style.bottom=`0`,I.current=Math.max(v,A),f.scrollTop=M;if(E){let t=s.top,n=s.height,r=E.top+E.height/2,i=Wp(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(I.current===x||A>=y)&&(ee.current=!0),m(),setTimeout(()=>{R.current=!0})}finally{t()}})}},[o,k,P,N,u,d,s,m,y,b,B,x,S,F]),K.useEffect(()=>{if(!y||!P||!k)return;let e=gt(P);function t(e){l(!1,vi(_i,e))}return e.addEventListener(`resize`,t),()=>{e.removeEventListener(`resize`,t)}},[l,y,P,k]);let H={...F?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":p||void 0,id:`${O}-list`},onKeyDown(e){f.current=!0,C&&ad.has(e.key)&&e.stopPropagation()},onMouseMove(){f.current=!1},onPointerLeave(e){if(!g||zp(e)||e.pointerType===`touch`)return;let t=e.currentTarget;D.start(0,()=>{o.set(`activeIndex`,null),t.focus({preventScroll:!0})})},onScroll(e){F||V(e.currentTarget)},...y&&{style:F?{height:`100%`}:Ip}},ne=Aa(`div`,e,{ref:[t,s],state:te,stateAttributesMapping:Yp,props:[j,H,Vl(M),{className:!F&&y?Vp.className:void 0},a]});return(0,J.jsxs)(K.Fragment,{children:[!E&&Vp.getElement(T),(0,J.jsx)(oo,{context:w,modal:!1,disabled:!A,returnFocus:i,restoreFocus:!0,children:ne})]})});function Zp(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Qp(e){return Math.max(0,e.scrollHeight-e.clientHeight)}function $p(e){return ns.getScale(e)}function em(e,t){return Xn({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}var tm=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function nm(e){let{style:t}=e,n={};for(let[e,r]of tm)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of tm){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var rm=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,{store:a,scrollHandlerRef:o}=$f(),{alignItemWithTriggerActive:s}=Pp(),c=$s(a,pp.hasScrollArrows),l=$s(a,pp.openMethod),u=$s(a,pp.multiple),d={id:`${$s(a,pp.id)}-list`,role:`listbox`,"aria-multiselectable":u||void 0,onScroll(e){o.current?.(e.currentTarget)},...s&&{style:Ip},className:c&&l!==`touch`?Vp.className:void 0};return Aa(`div`,e,{ref:[t,Y(e=>{a.set(`listElement`,e)})],props:[d,i]})}),im=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function am(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Op(),f=K.useRef(-1),[p,m]=K.useState(a??(i===im.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=K.useRef(null),g=K.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return q(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),q(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),K.useMemo(()=>({ref:g,index:p}),[p,g])}var om=K.createContext(void 0);function sm(){let e=K.useContext(om);if(!e)throw Error(ot(57));return e}var cm=K.memo(K.forwardRef(function(e,t){let{render:n,className:r,value:i=null,label:a,disabled:o=!1,nativeButton:s=!1,...c}=e,l=K.useRef(null),u=am({label:a,textRef:l,indexGuessBehavior:im.GuessFromOrder}),{store:d,getItemProps:f,setOpen:p,setValue:m,selectionRef:h,typingRef:g,valuesRef:_,keyboardActiveRef:v,multiple:y,highlightItemOnHover:b}=$f(),x=pt(),S=$s(d,pp.isActive,u.index),C=$s(d,pp.isSelected,u.index,i),w=$s(d,pp.isSelectedByFocus,u.index),T=$s(d,pp.isItemEqualToValue),E=u.index,D=E!==-1,O=K.useRef(null),k=ki(E);q(()=>{if(!D)return;let e=_.current;return e[E]=i,()=>{delete e[E]}},[D,E,i,_]),q(()=>{if(!D)return;let e=d.state.value,t=e;y&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&np(i,t,T)&&d.set(`selectedIndex`,E)},[D,E,y,T,d,i]);let A={disabled:o,selected:C,highlighted:S},j=f({active:S,selected:C});j.onFocus=void 0,j.id=void 0;let M=K.useRef(null),N=K.useRef(`mouse`),P=K.useRef(!1),{getButtonProps:F,buttonRef:I}=fu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function ee(e){let t=d.state.value;if(y){let n=Array.isArray(t)?t:[];m(C?ap(n,i,T):[...n,i],vi(ci,e))}else m(i,vi(ci,e)),p(!1,vi(ci,e))}let L={role:`option`,"aria-selected":C,tabIndex:S?0:-1,onFocus(){d.set(`activeIndex`,E)},onMouseEnter(){!v.current&&d.state.selectedIndex===null&&b&&d.set(`activeIndex`,E)},onMouseMove(){b&&d.set(`activeIndex`,E)},onMouseLeave(e){!b||v.current||zp(e)||x.start(0,()=>{d.state.activeIndex===E&&d.set(`activeIndex`,null)})},onTouchStart(){h.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){M.current=e.key,d.set(`activeIndex`,E),e.key===` `&&g.current&&e.preventDefault()},onClick(e){P.current=!1,!(e.type===`keydown`&&M.current===null)&&(o||e.type===`keydown`&&M.current===` `&&g.current||N.current!==`touch`&&!S||(M.current=null,ee(e.nativeEvent)))},onPointerEnter(e){N.current=e.pointerType},onPointerDown(e){N.current=e.pointerType,P.current=!0},onMouseUp(){if(o)return;if(P.current){P.current=!1;return}let e=!h.current.allowSelectedMouseUp&&C,t=!h.current.allowUnselectedMouseUp&&!C;e||t||N.current!==`touch`&&!S||O.current?.click()}},R=Aa(`div`,e,{ref:[I,t,u.ref,O],state:A,props:[j,L,c,F]}),z=K.useMemo(()=>({selected:C,indexRef:k,textRef:l,selectedByFocus:w,hasRegistered:D}),[C,k,l,w,D]);return(0,J.jsx)(om.Provider,{value:z,children:R})})),lm=K.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=sm();return n||r?(0,J.jsx)(um,{...e,ref:t}):null}),um=K.memo(K.forwardRef((e,t)=>{let{render:n,className:r,keepMounted:i,...a}=e,{selected:o}=sm(),s=K.useRef(null),{transitionStatus:c,setMounted:l}=sc(o),u=Aa(`span`,e,{ref:[t,s],state:{selected:o,transitionStatus:c},props:[{"aria-hidden":!0,children:`✔️`},a],stateAttributesMapping:dc});return pc({open:o,ref:s,onComplete(){o||l(!1)}}),u})),dm=K.memo(K.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:a}=sm(),{selectedItemTextRef:o}=$f(),{className:s,render:c,...l}=e;return Aa(`div`,e,{ref:[K.useCallback(e=>{if(!e||!a)return;let t=o.current===null||!o.current.isConnected;(i||t&&n.current===0)&&(o.current=e)},[o,n,i,a]),t,r],props:l})})),fm=K.forwardRef(function(e,t){let{render:n,className:r,direction:i,keepMounted:a=!1,...o}=e,{store:s,popupRef:c,listRef:l,handleScrollArrowVisibility:u,scrollArrowsMountedCountRef:d}=$f(),{side:f,scrollDownArrowRef:p,scrollUpArrowRef:m}=Pp(),h=$s(s,i===`up`?pp.scrollUpArrowVisible:pp.scrollDownArrowVisible),g=$s(s,pp.openMethod),_=h&&g!==`touch`,v=pt(),y=i===`up`?m:p,{transitionStatus:b,setMounted:x}=sc(_);q(()=>(d.current+=1,s.state.hasScrollArrows||s.set(`hasScrollArrows`,!0),()=>{d.current=Math.max(0,d.current-1),d.current===0&&s.state.hasScrollArrows&&s.set(`hasScrollArrows`,!1)}),[s,d]),pc({open:_,ref:y,onComplete(){_||x(!1)}});let S=Aa(`div`,e,{ref:[t,y],state:{direction:i,visible:_,side:f,transitionStatus:b},props:[{"aria-hidden":!0,children:i===`up`?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||v.isStarted())return;s.set(`activeIndex`,null);function t(){let e=s.state.listElement??c.current;if(!e)return;s.set(`activeIndex`,null),u();let n=e.scrollTop===0,r=Math.round(e.scrollTop+e.clientHeight)>=e.scrollHeight;if(l.current.length===0&&(i===`up`?s.set(`scrollUpArrowVisible`,!n):s.set(`scrollDownArrowVisible`,!r)),i===`up`&&n||i===`down`&&r){v.clear();return}if((s.state.listElement||c.current)&&l.current&&l.current.length>0){let t=l.current,n=y.current?.offsetHeight||0;if(i===`up`){let r=0,i=e.scrollTop+n;for(let e=0;e<t.length;e+=1){let n=t[e];if(n&&n.offsetTop>=i){r=e;break}}let a=Math.max(0,r-1);if(a<r){let r=t[a];r&&(e.scrollTop=Math.max(0,r.offsetTop-n))}else e.scrollTop=0}else{let r=t.length-1,i=e.scrollTop+e.clientHeight-n;for(let e=0;e<t.length;e+=1){let n=t[e];if(n&&n.offsetTop+n.offsetHeight>i){r=Math.max(0,e-1);break}}let a=Math.min(t.length-1,r+1);if(a>r){let r=t[a];r&&(e.scrollTop=r.offsetTop+r.offsetHeight-e.clientHeight+n)}else e.scrollTop=e.scrollHeight-e.clientHeight}}v.start(40,t)}v.start(40,t)},onMouseLeave(){v.clear()}},o]});return _||a?S:null}),pm=K.forwardRef(function(e,t){return(0,J.jsx)(fm,{...e,ref:t,direction:`down`})}),mm=K.forwardRef(function(e,t){return(0,J.jsx)(fm,{...e,ref:t,direction:`up`})}),hm=K.createContext(void 0);function gm(){let e=K.useContext(hm);if(e===void 0)throw Error(ot(56));return e}var _m=K.forwardRef(function(e,t){let{className:n,render:r,...i}=e,[a,o]=K.useState(),s=K.useMemo(()=>({labelId:a,setLabelId:o}),[a,o]),c=Aa(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":a},i]});return(0,J.jsx)(hm.Provider,{value:s,children:c})}),vm=K.forwardRef(function(e,t){let{className:n,render:r,id:i,...a}=e,{setLabelId:o}=gm(),s=yl(i);return q(()=>{o(s)},[s,o]),Aa(`div`,e,{ref:t,props:[{id:s},a]})}),ym=mp;function bm({className:e,...t}){return(0,J.jsx)(_m,{"data-slot":`select-group`,className:G(`scroll-my-1 p-1`,e),...t})}function xm({className:e,...t}){return(0,J.jsx)(Cp,{"data-slot":`select-value`,className:G(`flex flex-1 text-start`,e),...t})}function Sm({className:e,size:t=`default`,children:n,...r}){return(0,J.jsxs)(xp,{"data-slot":`select-trigger`,"data-size":t,className:G(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pe-2 ps-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,J.jsx)(wp,{render:(0,J.jsx)($d,{icon:Xd,strokeWidth:2,className:`pointer-events-none size-4 text-muted-foreground`})})]})}function Cm({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:o=!0,...s}){return(0,J.jsx)(Ep,{children:(0,J.jsx)(Rp,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:o,className:`isolate z-50`,children:(0,J.jsxs)(Xp,{"data-slot":`select-content`,"data-align-trigger":o,className:G(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...s,children:[(0,J.jsx)(Em,{}),(0,J.jsx)(rm,{children:t}),(0,J.jsx)(Dm,{})]})})})}function wm({className:e,...t}){return(0,J.jsx)(vm,{"data-slot":`select-label`,className:G(`px-1.5 py-1 text-xs text-muted-foreground`,e),...t})}function Tm({className:e,children:t,...n}){return(0,J.jsxs)(cm,{"data-slot":`select-item`,className:G(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,J.jsx)(dm,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,J.jsx)(lm,{render:(0,J.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex size-4 items-center justify-center`}),children:(0,J.jsx)($d,{icon:Yd,strokeWidth:2,className:`pointer-events-none`})})]})}function Em({className:e,...t}){return(0,J.jsx)(mm,{"data-slot":`select-scroll-up-button`,className:G(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,J.jsx)($d,{icon:Ld,strokeWidth:2})})}function Dm({className:e,...t}){return(0,J.jsx)(pm,{"data-slot":`select-scroll-down-button`,className:G(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,J.jsx)($d,{icon:Fd,strokeWidth:2})})}function Om({copiedId:e,onCopy:t,options:n}){let[r,i]=(0,K.useState)(0),a=n.find(t=>t.id===e),o=a!=null;return(0,J.jsxs)(ym,{onValueChange:e=>{let r=n.find(t=>t.id===e);r&&(t(r.id,r.text),i(e=>e+1))},children:[(0,J.jsxs)(Sm,{size:`sm`,className:`min-w-28`,children:[(0,J.jsx)($d,{icon:o?Jd:zd,className:`size-4 text-muted-foreground`}),(0,J.jsx)(xm,{placeholder:o?`Copied ${a.label}`:`Copy export`})]}),(0,J.jsx)(Cm,{align:`end`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Export`}),n.map(e=>(0,J.jsxs)(Tm,{value:e.id,children:[(0,J.jsx)(`span`,{className:`font-medium`,children:e.label}),e.hint?(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.hint}):null]},e.id))]})})]},r)}function km(){return typeof window>`u`?`/api/analytics`:window.location.pathname.replace(/\/$/,``)}var Am=km(),jm={stats:`${Am}/stats`,errors:`${Am}/errors?limit=500&sort=timestamp&order=desc`,requests:`${Am}/requests?limit=500&sort=timestamp&order=desc`,tasks:`${Am}/tasks?limit=500&sort=timestamp&order=desc`,scheduled:`${Am}/scheduled`,stream:`${Am}/stream`},Mm=2e3;function Nm(e=5e3){let[t,n]=(0,K.useState)(null),[r,i]=(0,K.useState)([]),[a,o]=(0,K.useState)([]),[s,c]=(0,K.useState)([]),[l,u]=(0,K.useState)([]),[d,f]=(0,K.useState)(!0),[p,m]=(0,K.useState)(null),[h,g]=(0,K.useState)(!0),[_,v]=(0,K.useState)(!1),y=(0,K.useRef)(!1),b=(0,K.useRef)(null),x=(0,K.useCallback)(async()=>{try{y.current||g(!0);let[e,t,r,a]=await Promise.all([fetch(jm.stats,{cache:`no-store`}),fetch(jm.errors,{cache:`no-store`}),fetch(jm.requests,{cache:`no-store`}),fetch(jm.tasks,{cache:`no-store`})]);if(e.status===401||t.status===401||r.status===401||a.status===401){window.location.reload();return}if(!e.ok||!t.ok||!r.ok||!a.ok)throw Error(`Failed to fetch analytics data`);let[s,l,d,f]=await Promise.all([e.json(),t.json(),r.json(),a.json()]);n(s),i(Array.isArray(l)?l:l.data??[]),o(Array.isArray(d)?d:d.data??[]),c(Array.isArray(f)?f:f.data??[]);let p=await fetch(jm.scheduled,{cache:`no-store`}).catch(()=>null);p?.ok&&u(await p.json()),m(null),y.current=!0}catch{m(`Analytics verisi alinamadi. Son basarili durum korunuyor.`)}finally{g(!1)}},[]);return(0,K.useEffect)(()=>{if(!d){b.current?.close(),b.current=null,v(!1);return}x();let t=new EventSource(jm.stream);b.current=t,t.addEventListener(`open`,()=>v(!0)),t.addEventListener(`request`,e=>{try{let t=JSON.parse(e.data);o(e=>[t,...e].slice(0,Mm))}catch{}}),t.addEventListener(`error`,e=>{try{let t=JSON.parse(e.data);i(e=>[t,...e].slice(0,Mm))}catch{v(!1)}}),t.addEventListener(`task`,e=>{try{let t=JSON.parse(e.data);c(e=>[t,...e].slice(0,Mm))}catch{}}),t.addEventListener(`stats`,e=>{try{n(JSON.parse(e.data))}catch{}});let r=setInterval(async()=>{try{let e=await fetch(jm.stats,{cache:`no-store`});e.ok&&n(await e.json())}catch{}},e);return()=>{t.close(),b.current=null,v(!1),clearInterval(r)}},[d,x,e]),{data:t,errors:r,requests:a,taskExecutions:s,scheduledTasks:l,autoRefresh:d,setAutoRefresh:f,error:p,isLoading:h,connected:_}}var Pm=2e3;function Fm(){let[e,t]=(0,K.useState)(null),n=(0,K.useRef)(void 0);return{copiedId:e,copy:(0,K.useCallback)((e,r)=>{navigator.clipboard.writeText(r).then(()=>{t(e),clearTimeout(n.current),n.current=setTimeout(()=>t(null),Pm)})},[])}}function Im({navigate:e,toggleRefresh:t}){(0,K.useEffect)(()=>{function n(n){let r=n.target.tagName;if(!(r===`INPUT`||r===`TEXTAREA`||r===`SELECT`)&&!(n.metaKey||n.ctrlKey||n.altKey))switch(n.key){case`1`:e(`overview`);break;case`2`:e(`requests`);break;case`3`:e(`errors`);break;case`r`:t();break;case`/`:n.preventDefault(),document.querySelector(`input[type="search"]`)?.focus();break}}return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t])}var Lm=new Set([`overview`,`requests`,`errors`,`tasks`,`sessions`]);function Rm(){let[e=`/`,t=``]=(window.location.hash.slice(1)||`/`).split(`?`,2),n=e.split(`/`).filter(Boolean).map(e=>decodeURIComponent(e)),r={},i=new URLSearchParams(t);for(let[e,t]of i.entries())r[e]=t;return n.length===0?{page:`overview`,params:r}:{page:Lm.has(n[0])?n[0]:`overview`,id:n.length>=2?n[1]:void 0,params:r}}function zm(){let[e,t]=(0,K.useState)(Rm);return(0,K.useEffect)(()=>{let e=()=>t(Rm());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),{route:e,navigate:(0,K.useCallback)((e,t,n)=>{let r=Lm.has(e)?e:`overview`,i=t?`${r}/${encodeURIComponent(t)}`:r;if(n){let e=new URLSearchParams;for(let[t,r]of Object.entries(n))e.set(t,r);let t=e.toString();t&&(i+=`?${t}`)}window.location.hash=i},[])}}function Bm(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Vm(){return localStorage.getItem(`silgi-theme`)??Bm()}function Hm(e){let t=document.documentElement;t.classList.add(`theme-transition`),t.classList.toggle(`dark`,e===`dark`),setTimeout(()=>t.classList.remove(`theme-transition`),250)}function Um(){let[e,t]=(0,K.useState)(Vm);(0,K.useEffect)(()=>{Hm(e)},[e]);let n=(0,K.useCallback)(e=>{localStorage.setItem(`silgi-theme`,e),t(e)},[]);return{theme:e,setTheme:n,toggle:(0,K.useCallback)(()=>{n(e===`dark`?`light`:`dark`)},[e,n])}}function Wm(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Gm(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function Km(){return typeof window>`u`?``:window.location.origin+window.location.pathname.replace(/\/$/,``)}function qm(e){return["```bash",`curl -L ${Gm(e)} \\`,` -H 'accept: text/markdown'`,"```"].join(`
34
+ `)}function Jm(e,t){if(e.length===0)return``;let n=[],r=new Map;for(let t of e)r.set(t.kind,(r.get(t.kind)??0)+t.durationMs);let i=[...r.values()].reduce((e,t)=>e+t,0),a=Math.max(0,t-i),o=Math.max(t,.1);n.push(`#### Timing`),n.push(``),n.push(`| Category | Duration | % |`),n.push(`|----------|----------|---|`),n.push(`| **Total** | **${t}ms** | 100% |`);for(let[e,t]of r)n.push(`| ${e} | ${t.toFixed(1)}ms | ${(t/o*100).toFixed(0)}% |`);n.push(`| App Logic | ${a.toFixed(1)}ms | ${(a/o*100).toFixed(0)}% |`),n.push(``);for(let t=0;t<e.length;t++){let r=e[t],i=r.error?` ❌ ${r.error}`:``,a=r.startOffsetMs==null?``:` (at +${r.startOffsetMs}ms)`;n.push(`**${t+1}. [${r.kind}] ${r.name}** — ${r.durationMs}ms${a}${i}`),r.detail&&n.push("```",r.detail,"```")}return n.push(``),n.join(`
35
+ `)}function Ym(e,t){let n=[],r=e.status>=500?`💥`:e.status>=400?`⚠️`:`✅`;return n.push(`### ${r} ${t+1}. \`${e.procedure}\` → ${e.status} (${e.durationMs}ms)`),n.push(``),e.input!==void 0&&e.input!==null&&n.push(`#### Input`,``,"```json",Wm(e.input),"```",``),e.output!==void 0&&e.output!==null&&n.push(`#### Output`,``,"```json",Wm(e.output),"```",``),e.error&&n.push(`#### Error`,``,"```",e.error,"```",``),n.push(Jm(e.spans,e.durationMs)),n.join(`
36
+ `)}function Xm(e){let t=[];return t.push(`---`,``),t.push(`**Analyze this request and suggest performance optimizations:**`),t.push(`- Redundant or slow operations that could be combined?`),t.push(`- N+1 query pattern?`),t.push(`- Data that should be cached?`),t.push(`- Sequential calls that could run in parallel?`),e>100&&t.push(`- This request took ${e}ms — what is the bottleneck?`),t.join(`
37
+ `)}function Zm(e){let t=[],n=new Date(e.timestamp).toISOString();t.push(`## Error in \`${e.procedure}\``),t.push(``),t.push(`**Time:** ${n} `),t.push(`**Error:** ${e.code} `),t.push(`**Status:** ${e.status} `),t.push(`**Duration:** ${e.durationMs}ms`),t.push(``),e.input!==void 0&&e.input!==null&&t.push(`### Input`,``,"```json",Wm(e.input),"```",``),e.stack&&t.push(`### Stack Trace`,``,"```",e.stack,"```",``);let r=Object.entries(e.headers??{});if(r.length>0){t.push(`### Request Headers`,``);for(let[e,n]of r)t.push(`- \`${e}\`: \`${Kf(e,n)}\``);t.push(``)}return t.push(Jm(e.spans,e.durationMs)),t.push(`### Error Message`,``,"```",e.error,"```",``),t.push(Xm(e.durationMs)),t.join(`
38
+ `)}function Qm(e){let t={...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)]))};return JSON.stringify(t,null,2)}function $m(e){let t=[],n=new Date(e.timestamp).toISOString(),r=e.status>=500?`💥`:e.status>=400?`⚠️`:`✅`;t.push(`## ${r} ${e.method} ${e.path} → ${e.status} (${e.durationMs}ms)`),t.push(``),t.push(`| Field | Value |`),t.push(`|-------|-------|`),t.push(`| Request ID | \`${e.requestId}\` |`),t.push(`| Session ID | \`${e.sessionId}\` |`),t.push(`| Method | ${e.method} |`),t.push(`| URL | \`${e.url}\` |`),t.push(`| Path | \`${e.path}\` |`),t.push(`| Status | ${e.status} |`),t.push(`| Duration | ${e.durationMs}ms |`),t.push(`| Time | ${n} |`),t.push(`| IP | ${e.ip} |`),t.push(`| Procedures | ${e.procedures.length} |`),e.isBatch&&t.push(`| Batch | Yes |`),t.push(``);let i=Object.entries(e.headers??{});if(i.length>0){t.push(`### Request Headers`,``);for(let[e,n]of i)t.push(`- \`${e}\`: \`${Kf(e,n)}\``);t.push(``)}for(let n=0;n<e.procedures.length;n++)t.push(Ym(e.procedures[n],n));let a=Object.entries(e.responseHeaders??{});if(a.length>0){t.push(`### Response Headers`,``);for(let[e,n]of a)t.push(`- \`${e}\`: \`${n}\``);t.push(``)}return t.push(Xm(e.durationMs)),t.join(`
39
+ `)}function eh(e){let t=[];t.push(`## Performance: ${e.method} ${e.path} → ${e.status} (${e.durationMs}ms)`),t.push(``);for(let n=0;n<e.procedures.length;n++){let r=e.procedures[n];t.push(`### ${n+1}. \`${r.procedure}\` (${r.durationMs}ms)`),t.push(``),t.push(Jm(r.spans,r.durationMs))}return t.push(Xm(e.durationMs)),t.join(`
40
+ `)}function th(e){let t=encodeURIComponent(e.requestId||String(e.id));return`${Km()}/requests/${t}/md`}function nh(e){return qm(th(e))}function rh(e){return`${Km()}/errors/${encodeURIComponent(String(e.id))}/md`}function ih(e){return qm(rh(e))}function ah(e){let t={...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)])),responseHeaders:Object.fromEntries(Object.entries(e.responseHeaders??{}).map(([e,t])=>[e,Kf(e,t)]))};return JSON.stringify(t,null,2)}function oh(e,t){let n=[],r=[...e].toSorted((e,t)=>e.timestamp-t.timestamp),i=r[0],a=r[r.length-1],o=e.reduce((e,t)=>e+t.durationMs,0),s=e.filter(e=>e.status>=400).length,c=new Set(e.flatMap(e=>e.procedures.map(e=>e.procedure)));n.push(`## Session \`${t}\``),n.push(``),n.push(`| Field | Value |`),n.push(`|-------|-------|`),n.push(`| Requests | ${e.length} |`),n.push(`| Errors | ${s} |`),n.push(`| Total Duration | ${o.toFixed(1)}ms |`),n.push(`| Avg Duration | ${(o/e.length).toFixed(1)}ms |`),n.push(`| First Seen | ${new Date(i.timestamp).toISOString()} |`),n.push(`| Last Seen | ${new Date(a.timestamp).toISOString()} |`),n.push(`| Procedures | ${[...c].join(`, `)} |`),n.push(`| IP | ${a.ip} |`),n.push(``);for(let e=0;e<r.length;e++){let t=r[e],i=t.status>=500?`💥`:t.status>=400?`⚠️`:`✅`;n.push(`### ${i} ${e+1}. ${t.method} ${t.path} → ${t.status} (${t.durationMs}ms)`),n.push(``);for(let e of t.procedures)n.push(`- \`${e.procedure}\` — ${e.status} — ${e.durationMs}ms — ${e.spans.length} spans`);n.push(``)}return n.join(`
41
+ `)}function sh(e,t){let n=e.map(e=>({...e,headers:Object.fromEntries(Object.entries(e.headers??{}).map(([e,t])=>[e,Kf(e,t)])),responseHeaders:Object.fromEntries(Object.entries(e.responseHeaders??{}).map(([e,t])=>[e,Kf(e,t)]))}));return JSON.stringify({sessionId:t,requests:n},null,2)}function ch(e){let t=[],n=new Date(e.timestamp).toISOString(),r=e.status===`error`?`💥`:`✅`;return t.push(`## ${r} Task \`${e.taskName||`(unnamed)`}\``),t.push(``),t.push(`| Field | Value |`),t.push(`|-------|-------|`),t.push(`| Status | ${e.status} |`),t.push(`| Trigger | ${e.trigger} |`),t.push(`| Duration | ${e.durationMs}ms |`),t.push(`| Time | ${n} |`),t.push(`| Spans | ${e.spans.length} |`),t.push(``),e.input!==void 0&&e.input!==null&&t.push(`### Input`,``,"```json",Wm(e.input),"```",``),e.output!==void 0&&e.output!==null&&t.push(`### Output`,``,"```json",Wm(e.output),"```",``),e.error&&t.push(`### Error`,``,"```",e.error,"```",``),e.spans.length>0&&t.push(Jm(e.spans,e.durationMs)),t.join(`
42
+ `)}function lh({errors:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Fm(),a=e.find(e=>e.id===Number(t));if(!a)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Error not found`});let o=[{id:`md-${a.id}`,label:`Markdown`,text:Zm(a),hint:`full`},{id:`md-url-${a.id}`,label:`Markdown URL`,text:rh(a),hint:`/md`},{id:`curl-${a.id}`,label:`cURL`,text:ih(a),hint:`fetch md`},{id:`json-${a.id}`,label:`JSON`,text:Qm(a),hint:`redacted`}];return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`errors`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Errors`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:a.procedure}),(0,J.jsx)(cu,{variant:`destructive`,children:a.code}),(0,J.jsx)(cu,{variant:`secondary`,children:a.status}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(a.durationMs)}),a.spans.length>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[a.spans.length,` spans`]}),a.requestId&&(0,J.jsxs)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[9px] hover:bg-muted`,onClick:()=>n(`requests`,a.requestId),children:[`req:`,a.requestId.slice(0,8)]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(a.timestamp)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:o})})]}),(0,J.jsx)(Jf,{entry:a})]})}function uh({className:e,...t}){return(0,J.jsxs)(`div`,{className:G(`relative w-full min-w-0 sm:max-w-64`,e),children:[(0,J.jsx)($d,{icon:Wd,size:14,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted-foreground`}),(0,J.jsx)(Fu,{type:`search`,className:`h-8 pr-3 pl-9 text-xs shadow-none`,...t})]})}var dh=K.createContext(void 0);function fh(e=!0){let t=K.useContext(dh);if(t===void 0&&!e)throw Error(ot(25));return t}var ph=K.createContext(void 0);function mh(e){let t=K.useContext(ph);if(t===void 0&&!e)throw Error(ot(33));return t}var hh=K.createContext(void 0);function gh(e){let t=K.useContext(hh);if(t===void 0&&!e)throw Error(ot(36));return t}function _h(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=fh(!0),d=u!==void 0;return K.useMemo(()=>({id:r,role:`menuitem`,tabIndex:n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:ci})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,d&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||d&&!qt&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!d||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,a,o,s,u,d,c])}var vh={type:`regular-item`};function yh(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=K.useRef(null),{getButtonProps:d,buttonRef:f}=fu({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=_h({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=K.useCallback(e=>ya(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=Ci(u,f);return K.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var bh=K.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,...l}=e,u=am({label:a}),d=mh(!0),f=yl(i),{store:p}=gh(),m=p.useState(`isActive`,u.index),h=p.useState(`itemProps`),{getItemProps:g,itemRef:_}=yh({closeOnClick:c,disabled:s,highlighted:m,id:f,store:p,nativeButton:o,nodeId:d?.nodeId,itemMetadata:vh});return Aa(`div`,e,{state:{disabled:s,highlighted:m},props:[h,l,g],ref:[_,t,u.ref]})}),xh={...vl,...dc},Sh=K.forwardRef(function(e,t){let{render:n,className:r,finalFocus:i,...a}=e,{store:o}=gh(),{side:s,align:c}=mh(),l=Up(!0)!=null,u=o.useState(`open`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`mounted`),m=o.useState(`instantType`),h=o.useState(`activeTriggerElement`),g=o.useState(`parent`),_=o.useState(`lastOpenChangeReason`),v=o.useState(`rootId`),y=o.useState(`floatingRootContext`),b=o.useState(`floatingTreeRoot`),x=o.useState(`closeDelay`),S=o.useState(`activeTriggerElement`),C=g.type===`context-menu`;pc({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),K.useEffect(()=>{function e(e){o.setOpen(!1,vi(e.reason,e.domEvent))}return b.events.on(`close`,e),()=>{b.events.off(`close`,e)}},[b.events,o]);let w=o.useState(`hoverEnabled`),T=o.useState(`disabled`);Pc(y,{enabled:w&&!T&&!C&&g.type!==`menubar`,closeDelay:x});let E={transitionStatus:d,side:s,align:c,open:u,nested:g.type===`menu`,instant:m},D=K.useCallback(e=>{o.set(`popupElement`,e)},[o]),O=Aa(`div`,e,{state:E,ref:[t,o.context.popupRef,D],stateAttributesMapping:xh,props:[f,{onKeyDown(e){l&&ad.has(e.key)&&e.stopPropagation()}},Vl(d),a,{"data-rootownerid":v}]}),k=g.type===void 0||C;return(h||g.type===`menubar`&&_!==`outside-press`)&&(k=!0),(0,J.jsx)(oo,{context:y,modal:C,disabled:!p,returnFocus:i===void 0?k:i,initialFocus:g.type!==`menu`,restoreFocus:!0,externalTree:g.type===`menubar`?void 0:b,previousFocusableElement:S,nextFocusableElement:g.type===void 0?o.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:g.type===void 0?o.context.beforeContentFocusGuardRef:void 0,children:O})}),Ch=K.createContext(void 0);function wh(){let e=K.useContext(Ch);if(e===void 0)throw Error(ot(32));return e}var Th=K.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=gh();return i.useState(`mounted`)||n?(0,J.jsx)(Ch.Provider,{value:n,children:(0,J.jsx)(Ba,{ref:t,...r})}):null}),Eh=K.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ei,...g}=e,{store:_}=gh(),v=wh(),y=fh(!0),b=_.useState(`parent`),x=_.useState(`floatingRootContext`),S=_.useState(`floatingTreeRoot`),C=_.useState(`mounted`),w=_.useState(`open`),T=_.useState(`modal`),E=_.useState(`activeTriggerElement`),D=_.useState(`transitionStatus`),O=_.useState(`positionerElement`),k=_.useState(`instantType`),A=_.useState(`hasViewport`),j=_.useState(`lastOpenChangeReason`),M=_.useState(`floatingNodeId`),N=_.useState(`floatingParentNodeId`),P=x.useState(`domReferenceElement`),F=K.useRef(null),I=fc(O,!1,!1),ee=n,L=c,R=l,z=s,B=h;b.type===`context-menu`&&(ee=n??b.context?.anchor,z??=`start`,!o&&z!==`center`&&(R=e.alignOffset??2,L=e.sideOffset??-5));let V=o,te=z;b.type===`menu`?(V??=`inline-end`,te??=`start`,B=e.collisionAvoidance??ti):b.type===`menubar`&&(V??=`bottom`,te??=`start`);let H=b.type===`context-menu`,ne=zl({anchor:ee,floatingRootContext:x,positionMethod:y?`fixed`:r,mounted:C,side:V,sideOffset:L,align:te,alignOffset:R,arrowPadding:H?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:M,keepMounted:v,disableAnchorTracking:m,collisionAvoidance:B,shiftCrossAxis:H&&!(`side`in B&&B.side===`flip`),externalTree:S,adaptiveOrigin:A?Il:void 0}),re=K.useMemo(()=>{let e={};return w||(e.pointerEvents=`none`),{role:`presentation`,hidden:!C,style:{...ne.positionerStyles,...e}}},[w,C,ne.positionerStyles]);K.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===M&&_.set(`hoverEnabled`,!1),e.nodeId!==M&&e.parentNodeId===_.select(`floatingParentNodeId`)&&_.setOpen(!1,vi(mi)))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[_,S.events,M]),K.useEffect(()=>{if(_.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==_.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;_.setOpen(!1,vi(t))}return S.events.on(`menuopenchange`,e),()=>{S.events.off(`menuopenchange`,e)}},[S.events,_]);let ie=pt();K.useEffect(()=>{w||ie.clear()},[w,ie]),K.useEffect(()=>{function e(e){if(!(!w||e.nodeId!==_.select(`floatingParentNodeId`)))if(e.target&&E&&E!==e.target){let e=_.select(`closeDelay`);e>0?ie.isStarted()||ie.start(e,()=>{_.setOpen(!1,vi(mi))}):_.setOpen(!1,vi(mi))}else ie.clear()}return S.events.on(`itemhover`,e),()=>{S.events.off(`itemhover`,e)}},[S.events,w,E,_,ie]),K.useEffect(()=>{let e={open:w,nodeId:M,parentNodeId:N,reason:_.select(`lastOpenChangeReason`)};S.events.emit(`menuopenchange`,e)},[S.events,w,_,M,N]),q(()=>{let e=P,t=F.current;if(e&&(F.current=e),t&&e&&e!==t){_.set(`instantType`,void 0);let e=new AbortController;return I(()=>{_.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[P,I,_]);let ae={open:w,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,nested:b.type===`menu`,instant:k},oe=K.useMemo(()=>({side:ne.side,align:ne.align,arrowRef:ne.arrowRef,arrowUncentered:ne.arrowUncentered,arrowStyles:ne.arrowStyles,nodeId:ne.context.nodeId}),[ne.side,ne.align,ne.arrowRef,ne.arrowUncentered,ne.arrowStyles,ne.context.nodeId]),se=Aa(`div`,e,{state:ae,stateAttributesMapping:vl,ref:[t,_.useStateSetter(`positionerElement`)],props:[re,Vl(D),g]}),ce=C&&b.type!==`menu`&&(b.type!==`menubar`&&T&&j!==`trigger-hover`||b.type===`menubar`&&b.context.modal),le=null;return b.type===`menubar`?le=b.context.contentElement:b.type===void 0&&(le=E),(0,J.jsxs)(ph.Provider,{value:oe,children:[ce&&(0,J.jsx)(md,{ref:b.type===`context-menu`||b.type===`nested-context-menu`?b.context.internalBackdropRef:null,inert:ql(!w),cutout:le}),(0,J.jsx)(Ja,{id:M,children:(0,J.jsx)(kp,{elementsRef:_.context.itemDomElements,labelsRef:_.context.itemLabels,children:se})})]})}),Dh=K.createContext(null);function Oh(e){let t=K.useContext(Dh);if(t===null&&!e)throw Error(ot(5));return t}var kh={...Sc,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},Ah=class e extends ic{constructor(e){super({...jh(),...e},{positionerRef:K.createRef(),popupRef:K.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:K.createRef(),beforeContentFocusGuardRef:K.createRef(),onOpenChangeComplete:void 0,triggerElements:new vc},kh),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=Xe(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function jh(){return{...bc(),disabled:!1,modal:!0,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Ha,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Qr,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var Mh=K.createContext(void 0);function Nh(){return K.useContext(Mh)}var Ph=tt(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:u,closeParentOnEsc:d=!1,handle:f,triggerId:p,defaultTriggerId:m=null,highlightItemOnHover:h=!0}=e,g=fh(!0),_=gh(!0),v=Oh(!0),y=Nh(),b=K.useMemo(()=>y&&_?{type:`menu`,store:_.store}:v?{type:`menubar`,context:v}:g&&!_?{type:`context-menu`,context:g}:{type:void 0},[g,_,v,y]),x=Ah.useStore(f?.store,{open:a,openProp:n,activeTriggerId:m,triggerIdProp:p,parent:b});it(()=>{n===void 0&&x.state.open===!1&&a===!0&&x.update({open:!0,activeTriggerId:m})}),x.useControlledProp(`openProp`,n),x.useControlledProp(`triggerIdProp`,p),x.useContextCallback(`onOpenChangeComplete`,i);let S=x.useState(`floatingTreeRoot`),C=qa(S),w=Ga();q(()=>{g&&!_?x.update({parent:{type:`context-menu`,context:g},floatingNodeId:C,floatingParentNodeId:w}):_&&x.update({floatingNodeId:C,floatingParentNodeId:w})},[g,_,C,w,x]);let T=x.useState(`open`),E=x.useState(`activeTriggerElement`),D=x.useState(`positionerElement`),O=x.useState(`hoverEnabled`),k=x.useState(`modal`),A=x.useState(`disabled`),j=x.useState(`lastOpenChangeReason`),M=x.useState(`parent`),N=x.useState(`activeIndex`),P=x.useState(`payload`),F=x.useState(`floatingParentNodeId`),I=K.useRef(null),ee=F!=null,L;x.useSyncedValues({disabled:o,modal:M.type===void 0?s:void 0,rootId:ua()});let{openMethod:R,triggerProps:z}=Dd(T);gc(x);let{forceUnmount:B}=_c(T,x,()=>{x.update({allowMouseEnter:!1,stickIfOpen:!0})}),V=K.useRef(M.type!==`context-menu`),te=pt();K.useEffect(()=>{if(T||(I.current=null),M.type===`context-menu`){if(!T){te.clear(),V.current=!1;return}te.start(500,()=>{V.current=!0})}},[te,T,M.type]),wd(T&&k&&j!==`trigger-hover`&&R!==`touch`,D),q(()=>{!T&&!O&&x.set(`hoverEnabled`,!0)},[T,O,x]);let H=K.useRef(!0),ne=pt(),re=Y((e,t)=>{let n=t.reason;if(T===e&&t.trigger===E&&j===n||(t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=E??void 0),r?.(e,t),t.isCanceled))return;let i={open:e,nativeEvent:t.event,reason:t.reason,nested:ee};L?.emit(`openchange`,i);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!H.current)return;if(!e&&N!==null){let e=x.context.itemDomElements.current[N];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(H.current=!1,ne.start(300,()=>{H.current=!0})):(H.current=!0,ne.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0&&a?.isTrusted,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};I.current=t.event??null;let l=t.trigger?.id??null;(l||e)&&(c.activeTriggerId=l,c.activeTriggerElement=t.trigger??null),x.update(c),M.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?x.set(`instantType`,`group`):o||s?x.set(`instantType`,o?`click`:`dismiss`):x.set(`instantType`,void 0)}),ie=K.useCallback(e=>{let t=vi(e);return t.preventUnmountOnClose=()=>{x.set(`preventUnmountingOnClose`,!0)},t},[x]),ae=K.useCallback(()=>{x.setOpen(!1,ie(gi))},[x,ie]);K.useImperativeHandle(u,()=>({unmount:B,close:ae}),[B,ae]);let oe;M.type===`context-menu`&&(oe=M.context),K.useImperativeHandle(oe?.positionerRef,()=>D,[D]),K.useImperativeHandle(oe?.actionsRef,()=>({setOpen:re}),[re]);let se=Tc({popupStore:x,onOpenChange:re});L=se.context.events,K.useEffect(()=>{let e=({open:e,eventDetails:t})=>re(e,t);return L.on(`setOpen`,e),()=>{L?.off(`setOpen`,e)}},[L,re]);let ce=ho(se,{enabled:!A,bubbles:{escapeKey:d&&M.type===`menu`},outsidePress(){return M.type!==`context-menu`||I.current?.type===`contextmenu`?!0:V.current},externalTree:ee?S:void 0}),le=Jc(se,{role:`menu`}),ue=jl(),de=K.useCallback(e=>{x.select(`activeIndex`)!==e&&x.set(`activeIndex`,e)},[x]),fe=Kc(se,{enabled:!A,listRef:x.context.itemDomElements,activeIndex:N,nested:M.type!==void 0,loopFocus:c,orientation:l,parentOrientation:M.type===`menubar`?M.context.orientation:void 0,rtl:ue===`rtl`,disabledIndices:Zr,onNavigate:de,openOnArrowKeyDown:M.type!==`context-menu`,externalTree:ee?S:void 0,focusItemOnHover:h}),pe=K.useCallback(e=>{x.context.typingRef.current=e},[x]),{getReferenceProps:me,getFloatingProps:he,getItemProps:ge,getTriggerProps:_e}=Lc([ce,le,fe,Yc(se,{listRef:x.context.itemLabels,elementsRef:x.context.itemDomElements,activeIndex:N,resetMs:500,onMatch:e=>{T&&e!==N&&x.set(`activeIndex`,e)},onTypingChange:pe})]),ve=K.useMemo(()=>{let e=ya(me(),{onMouseMove(){x.set(`allowMouseEnter`,!0)}},z);return delete e.role,e},[me,x,z]),ye=K.useMemo(()=>{let e=_e();if(!e)return e;let t=ya(e,z);return delete t.role,delete t[`aria-controls`],t},[_e,z]),be=K.useMemo(()=>he({onMouseMove(){x.set(`allowMouseEnter`,!0),M.type===`menu`&&x.set(`hoverEnabled`,!1)},onClick(){x.select(`hoverEnabled`)&&x.set(`hoverEnabled`,!1)},onKeyDown(e){let t=x.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}}),[he,M.type,x]),xe=K.useMemo(()=>ge(),[ge]);x.useSyncedValues({floatingRootContext:se,activeTriggerProps:ve,inactiveTriggerProps:ye,popupProps:be,itemProps:xe});let U=K.useMemo(()=>({store:x,parent:b}),[x,b]),Se=(0,J.jsx)(hh.Provider,{value:U,children:typeof t==`function`?t({payload:P}):t});return M.type===void 0||M.type===`context-menu`?(0,J.jsx)(Ya,{externalTree:S,children:Se}):Se});function Fh(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=uu(),{ref:i,index:a}=am(e),o=n===a,s=K.useRef(null),c=Ci(i,s);return{compositeProps:K.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:c,index:a}}function Ih(e){let{render:t,className:n,state:r=Qr,props:i=Zr,refs:a=Zr,metadata:o,stateAttributesMapping:s,tag:c=`div`,...l}=e,{compositeProps:u,compositeRef:d}=Fh({metadata:o});return Aa(c,e,{state:r,ref:[...a,d],props:[u,...i,l],stateAttributesMapping:s})}function Lh(e){if(bt(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Mt(e))return Lh(Ft(e))}function Rh(e){let[t,n]=K.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=K.useRef(null),i=K.useRef(null),a=K.useRef(null),o=K.useRef(null),s=K.useRef(!0),c=K.useRef(null),l=ua(),u=K.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:a,backdropRef:r,internalBackdropRef:i,positionerRef:o,allowMouseUpTriggerRef:s,initialCursorPointRef:c,rootId:l}),[t,l]);return(0,J.jsx)(dh.Provider,{value:u,children:(0,J.jsx)(hh.Provider,{value:void 0,children:(0,J.jsx)(Ph,{...e})})})}var zh=500,Bh=K.forwardRef(function(e,t){let{render:n,className:r,...i}=e,{setAnchor:a,actionsRef:o,internalBackdropRef:s,backdropRef:c,positionerRef:l,allowMouseUpTriggerRef:u,initialCursorPointRef:d,rootId:f}=fh(!1),{store:p}=gh(!1),m=p.useState(`open`),h=p.useState(`disabled`),g=K.useRef(null),_=K.useRef(null),v=pt(),y=pt(),b=K.useRef(!1);function x(e,t,n){let r=n.type.startsWith(`touch`);d.current={x:e,y:t},a({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),b.current=!1,o.current?.setOpen(!0,vi(ii,n)),y.start(zh,()=>{b.current=!0})}function S(e){h||(u.current=!0,_n(e),x(e.clientX,e.clientY,e.nativeEvent),Rr(g.current).addEventListener(`mouseup`,e=>{if(u.current=!1,!b.current)return;y.clear(),b.current=!1;let t=cn(e);on(l.current,t)||f&&t&&Lh(t)===f||o.current?.setOpen(!1,vi(pi,e))},{once:!0}))}function C(e){if(!h&&(u.current=!1,e.touches.length===1)){e.stopPropagation();let t=e.touches[0];_.current={x:t.clientX,y:t.clientY},v.start(zh,()=>{_.current&&x(_.current.x,_.current.y,e.nativeEvent)})}}function w(e){if(v.isStarted()&&_.current&&e.touches.length===1){let t=e.touches[0],n=Math.abs(t.clientX-_.current.x),r=Math.abs(t.clientY-_.current.y);(n>10||r>10)&&v.clear()}}function T(){v.clear(),_.current=null}return K.useEffect(()=>{function e(e){if(h)return;let t=cn(e);(on(g.current,t)||on(s.current,t)||on(c.current,t))&&e.preventDefault()}let t=Rr(g.current);return t.addEventListener(`contextmenu`,e),()=>{t.removeEventListener(`contextmenu`,e)}},[c,h,s]),Aa(`div`,e,{state:{open:m},ref:[g,t],props:[{onContextMenu:S,onTouchStart:C,onTouchMove:w,onTouchEnd:T,onTouchCancel:T,style:{WebkitTouchCallout:`none`}},i],stateAttributesMapping:_l})});function Vh({...e}){return(0,J.jsx)(Rh,{"data-slot":`context-menu`,...e})}function Hh({className:e,...t}){return(0,J.jsx)(Bh,{"data-slot":`context-menu-trigger`,className:G(`select-none`,e),...t})}function Uh({className:e,align:t=`start`,alignOffset:n=4,side:r=`inline-end`,sideOffset:i=0,...a}){return(0,J.jsx)(Th,{children:(0,J.jsx)(Eh,{className:`isolate z-50 outline-none`,align:t,alignOffset:n,side:r,sideOffset:i,children:(0,J.jsx)(Sh,{"data-slot":`context-menu-content`,className:G(`z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...a})})})}function Wh({className:e,inset:t,variant:n=`default`,...r}){return(0,J.jsx)(bh,{"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:G(`group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}var Gh=K.createContext(void 0);function Kh(e=!0){let t=K.useContext(Gh);if(t===void 0&&!e)throw Error(ot(7));return t}var qh=K.forwardRef(function(e,t){let{className:n,defaultPressed:r=!1,disabled:i=!1,form:a,onPressedChange:o,pressed:s,render:c,type:l,value:u,nativeButton:d=!0,...f}=e,p=yl(u||void 0),m=Kh(),h=m?.value??[],g=m?void 0:r,_=(i||m?.disabled)??!1,[v,y]=Au({controlled:m?p!==void 0&&h.indexOf(p)>-1:s,default:g,name:`Toggle`,state:`pressed`}),b=Y((e,t)=>{p&&m?.setGroupValue?.(p,e,t),o?.(e,t)}),{getButtonProps:x,buttonRef:S}=fu({disabled:_,native:d}),C={disabled:_,pressed:v},w=[S,t],T=[{"aria-pressed":v,onClick(e){let t=!v,n=vi(ri,e.nativeEvent);b(t,n),!n.isCanceled&&y(t)}},f,x],E=Aa(`button`,e,{enabled:!m,state:C,ref:w,props:T});return m?(0,J.jsx)(Ih,{tag:`button`,render:c,className:n,state:C,refs:w,props:T}):E}),Jh=ou(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]`,lg:`h-9 min-w-9 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function Yh(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Xh=[];function Zh(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,dense:i=!1,orientation:a=`both`,direction:o,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d=!1,disabledIndices:f,modifierKeys:p=Xh}=e,[m,h]=K.useState(0),g=n>1,_=K.useRef(null),v=Ci(_,l),y=K.useRef([]),b=K.useRef(!1),x=s??m,S=Y((e,t=!1)=>{if((c??h)(e),t){let t=y.current[e];ld(_.current,t,o,a)}}),C=Y(e=>{if(e.size===0||b.current)return;b.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&S(r),ld(_.current,n,o,a)}),w=K.useMemo(()=>({"aria-orientation":a===`both`?void 0:a,ref:v,onFocus(e){!_.current||!cd(e.target)||e.target.setSelectionRange(0,e.target.value.length??0)},onKeyDown(e){let s=u?id:rd;if(!s.has(e.key)||Qh(e,p)||!_.current)return;let c=o===`rtl`,l=c?Xu:Zu,m={horizontal:l,vertical:Yu,both:l}[a],h=c?Zu:Xu,v={horizontal:h,vertical:Ju,both:h}[a];if(cd(e.target)&&!Yh(e.target)){let t=e.target.selectionStart,n=e.target.selectionEnd,r=e.target.value??``;if(t==null||e.shiftKey||t!==n||e.key!==v&&t<r.length||e.key!==m&&t>0)return}let b=x,C=$n(y,f),w=er(y,f);if(g){let o=t||Array.from({length:y.current.length},()=>({width:1,height:1})),s=rr(o,n,i),l=s.findIndex(e=>e!=null&&!or(y,e,f)),u=s.reduce((e,t,n)=>t!=null&&!or(y,t,f)?n:e,-1);b=s[nr({current:s.map(e=>e?y.current[e]:null)},{event:e,orientation:a,loopFocus:r,cols:n,disabledIndices:ar([...f||y.current.map((e,t)=>or(y,t)?t:void 0),void 0],s),minIndex:l,maxIndex:u,prevIndex:ir(x>w?C:x,o,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:c})]}let T={horizontal:[l],vertical:[Yu],both:[l,Yu]}[a],E={horizontal:[h],vertical:[Ju],both:[h,Ju]}[a],D=g?s:{horizontal:u?ed:$u,vertical:u?nd:td,both:s}[a];u&&(e.key===`Home`?b=C:e.key===`End`&&(b=w)),b===x&&(T.includes(e.key)||E.includes(e.key))&&(b=r&&b===w&&T.includes(e.key)?C:r&&b===C&&E.includes(e.key)?w:tr(y,{startingIndex:b,decrement:E.includes(e.key),disabledIndices:f})),b!==x&&!Qn(y,b)&&(d&&e.stopPropagation(),D.has(e.key)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))}}),[n,i,o,f,y,u,x,g,t,r,v,p,S,a,d]);return K.useMemo(()=>({props:w,highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:y,disabledIndices:f,onMapChange:C,relayKeyboardEvent:w.onKeyDown}),[w,x,S,y,f,C])}function Qh(e,t){for(let n of od.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function $h(e){let{render:t,className:n,refs:r=Zr,props:i=Zr,state:a=Qr,stateAttributesMapping:o,highlightedIndex:s,onHighlightedIndexChange:c,orientation:l,dense:u,itemSizes:d,loopFocus:f,cols:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:D,relayKeyboardEvent:O}=Zh({itemSizes:d,cols:p,loopFocus:f,dense:u,orientation:l,highlightedIndex:s,onHighlightedIndexChange:c,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:jl(),disabledIndices:v,modifierKeys:y}),k=Aa(x,e,{state:a,ref:r,props:[C,...i,S],stateAttributesMapping:o}),A=K.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:O}),[w,T,b,O]);return(0,J.jsx)(lu.Provider,{value:A,children:(0,J.jsx)(kp,{elementsRef:E,onMapChange:e=>{h?.(e),D(e)},children:k})})}var eg=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),tg={multiple(e){return e?{[eg.multiple]:``}:null}},ng=K.forwardRef(function(e,t){let{defaultValue:n,disabled:r=!1,loopFocus:i=!0,onValueChange:a,orientation:o=`horizontal`,multiple:s=!1,value:c,className:l,render:u,...d}=e,f=Up(!0),p=K.useMemo(()=>{if(c===void 0)return n??[]},[c,n]),m=K.useMemo(()=>c!==void 0||n!==void 0,[c,n]),h=(f?.disabled??!1)||r,[g,_]=Au({controlled:c,default:p,name:`ToggleGroup`,state:`value`}),v=Y((e,t,n)=>{let r;if(s?(r=g.slice(),t?r.push(e):r.splice(g.indexOf(e),1)):r=t?[e]:[],Array.isArray(r)){if(a?.(r,n),n.isCanceled)return;_(r)}}),y={disabled:h,multiple:s,orientation:o},b=K.useMemo(()=>({disabled:h,orientation:o,setGroupValue:v,value:g,isValueInitialized:m}),[h,o,v,g,m]),x={role:`group`},S=Aa(`div`,e,{enabled:!!f,state:y,ref:t,props:[x,d],stateAttributesMapping:tg});return(0,J.jsx)(Gh.Provider,{value:b,children:f?S:(0,J.jsx)($h,{render:u,className:l,state:y,refs:[t],props:[x,d],stateAttributesMapping:tg,loopFocus:i,enableHomeAndEndKeys:!0})})}),rg=K.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function ig({className:e,variant:t,size:n,spacing:r=0,orientation:i=`horizontal`,children:a,...o}){return(0,J.jsx)(ng,{"data-slot":`toggle-group`,"data-variant":t,"data-size":n,"data-spacing":r,"data-orientation":i,style:{"--gap":r},className:G(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,e),...o,children:(0,J.jsx)(rg.Provider,{value:{variant:t,size:n,spacing:r,orientation:i},children:a})})}function ag({className:e,children:t,variant:n=`default`,size:r=`default`,...i}){let a=K.useContext(rg);return(0,J.jsx)(qh,{"data-slot":`toggle-group-item`,"data-variant":a.variant||n,"data-size":a.size||r,"data-spacing":a.spacing,className:G(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-s-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-e-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-s-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-s group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t`,Jh({variant:a.variant||n,size:a.size||r}),e),...i,children:t})}function og(e){return e.procedures.map(e=>e.procedure).join(`, `)}function sg(e,t){let n=t.query.trim().toLowerCase();return e.filter(e=>{let r=og(e);return!(n&&!r.toLowerCase().includes(n)&&!e.path.toLowerCase().includes(n)||t.procedure!==`all`&&!e.procedures.some(e=>e.procedure===t.procedure)||t.status===`success`&&e.status>=400||t.status===`client`&&(e.status<400||e.status>=500)||t.status===`server`&&e.status<500||t.latency===`fast`&&e.durationMs>=100||t.latency===`slow`&&e.durationMs<100)})}function cg(e,t){let n=t.query.trim().toLowerCase();return e.filter(e=>!(n&&!e.procedure.toLowerCase().includes(n)&&!e.code.toLowerCase().includes(n)&&!e.error.toLowerCase().includes(n)||t.procedure!==`all`&&e.procedure!==t.procedure||t.severity===`client`&&(e.status<400||e.status>=500)||t.severity===`server`&&e.status<500||t.trace===`traced`&&e.spans.length===0||t.trace===`untraced`&&e.spans.length>0))}function lg(e){return[...new Set(e)].toSorted((e,t)=>e.localeCompare(t))}function ug(e,t){switch(t){case`time`:return e.timestamp;case`procedure`:return e.procedure;case`code`:return e.code;case`status`:return e.status;case`duration`:return e.durationMs}}function dg({errors:e,navigate:t,initialProcedure:n}){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(n||`all`),[s,c]=(0,K.useState)(`all`),[l,u]=(0,K.useState)(`all`),[d,f]=(0,K.useState)(`time`),[p,m]=(0,K.useState)(!1),[h,g]=(0,K.useState)(null);(0,K.useCallback)(e=>{f(t=>(m(t===e?e=>!e:e===`procedure`||e===`code`),e))},[]);let _=(0,K.useMemo)(()=>lg(e.map(e=>e.procedure)),[e]),v=(0,K.useMemo)(()=>{let t=cg(e,{query:r,procedure:a,severity:s,trace:l}).toReversed(),n=p?1:-1;return t.sort((e,t)=>{let r=ug(e,d),i=ug(t,d);return typeof r==`number`&&typeof i==`number`?n*(r-i):n*String(r).localeCompare(String(i))}),t},[e,r,a,s,l,d,p]),y=r.length>0||a!==`all`||s!==`all`||l!==`all`,b=(0,K.useCallback)(()=>{i(``),o(`all`),c(`all`),u(`all`)},[]),x=h===null?null:v[h],S=(0,K.useMemo)(()=>{let t=new Map,n=new Map,r=0,i=0;for(let a of e)t.set(a.code,(t.get(a.code)??0)+1),n.set(a.procedure,(n.get(a.procedure)??0)+1),a.status>=500?i++:r++;return{byCodes:[...t].toSorted((e,t)=>t[1]-e[1]),byProc:[...n].toSorted((e,t)=>t[1]-e[1]),clientCount:r,serverCount:i,tracedCount:e.filter(e=>e.spans.length>0).length}},[e]);return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No errors recorded`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Failures will appear here when captured.`})]}):(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-0 border-b xl:grid-cols-5`,children:[(0,J.jsx)(mg,{label:`Total errors`,value:String(e.length),danger:!0}),(0,J.jsx)(mg,{label:`Client (4xx)`,value:String(S.clientCount)}),(0,J.jsx)(mg,{label:`Server (5xx)`,value:String(S.serverCount),danger:S.serverCount>0}),(0,J.jsx)(mg,{label:`Traced`,value:String(S.tracedCount)}),(0,J.jsx)(mg,{label:`Procedures`,value:String(S.byProc.length)})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Codes`}),S.byCodes.map(([e,t])=>(0,J.jsxs)(cu,{variant:`destructive`,className:`text-[9px]`,children:[e,` `,(0,J.jsx)(`span`,{className:`ml-1 opacity-70`,children:t})]},e)),(0,J.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground ml-auto`,children:`Top`}),S.byProc.slice(0,3).map(([e,t])=>(0,J.jsxs)(`span`,{className:`font-mono text-[10px] text-muted-foreground`,children:[e,` `,(0,J.jsx)(`span`,{className:`text-destructive`,children:t})]},e))]}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsxs)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:[(0,J.jsx)(uh,{value:r,onChange:e=>i(e.target.value),placeholder:`Search errors...`,className:`sm:max-w-56`}),(0,J.jsxs)(ym,{value:a,onValueChange:e=>o(e??`all`),children:[(0,J.jsx)(Sm,{size:`sm`,className:`w-full sm:w-40`,children:(0,J.jsx)(xm,{placeholder:`All procedures`})}),(0,J.jsx)(Cm,{align:`start`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Procedure`}),(0,J.jsx)(Tm,{value:`all`,children:`All procedures`}),_.map(e=>(0,J.jsx)(Tm,{value:e,children:e},e))]})})]}),(0,J.jsxs)(ig,{value:s,onValueChange:e=>c(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(ag,{value:`all`,children:`All`}),(0,J.jsx)(ag,{value:`client`,children:`4xx`}),(0,J.jsx)(ag,{value:`server`,children:`5xx`})]}),(0,J.jsxs)(ig,{value:l,onValueChange:e=>u(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(ag,{value:`all`,children:`All`}),(0,J.jsx)(ag,{value:`traced`,children:`Traced`}),(0,J.jsx)(ag,{value:`untraced`,children:`Untraced`})]})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[v.length,` of `,e.length]}),y&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:b,children:`Clear`})]})]}),v.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching failures`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:y?`Adjust filters.`:`Waiting for errors.`}),y&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`mt-2`,onClick:b,children:`Clear filters`})]}):(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsx)(`div`,{className:G(`flex-1 overflow-y-auto`,x&&`hidden xl:block`),children:v.map((e,n)=>(0,J.jsxs)(Vh,{children:[(0,J.jsx)(Hh,{asChild:!0,children:(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-start gap-3 border-b border-dashed px-5 py-2.5 hover:bg-muted/20`,h===n&&`bg-destructive/5`),onClick:()=>g(h===n?null:n),onDoubleClick:()=>t(`errors`,String(e.id)),children:[(0,J.jsx)(`span`,{className:`mt-1 size-1.5 shrink-0 rounded-full bg-destructive`}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-[11px] font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e.code}),(0,J.jsx)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:e.status})]}),(0,J.jsx)(`p`,{className:`mt-0.5 truncate text-[11px] text-muted-foreground`,children:e.error})]}),(0,J.jsxs)(`div`,{className:`shrink-0 text-right`,children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`left`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`div`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground/60`,children:Nf(e.durationMs)})]})]})}),(0,J.jsxs)(Uh,{children:[(0,J.jsx)(Wh,{onClick:()=>t(`errors`,String(e.id)),children:`View details`}),(0,J.jsx)(Wh,{onClick:()=>{fetch(`${km()}/hidden`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({path:e.procedure})})},className:`text-destructive`,children:`Hide path`})]})]},e.id))}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!x&&`hidden xl:flex`),children:x?(0,J.jsx)(pg,{entry:x,onClose:()=>g(null),navigate:t}):(0,J.jsx)(fg,{summary:S})})]})]})}function fg({summary:e}){return(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsx)(hg,{label:`Error codes`,children:e.byCodes.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e}),(0,J.jsx)(`span`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground`,children:t})]},e))}),(0,J.jsx)(hg,{label:`Top procedures`,children:e.byProc.slice(0,10).map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`min-w-0 truncate font-mono text-[10px] font-semibold`,children:e}),(0,J.jsx)(`span`,{className:`shrink-0 font-mono text-[10px] tabular-nums text-muted-foreground`,children:t})]},e))}),(0,J.jsxs)(hg,{label:`Breakdown`,children:[(0,J.jsx)(gg,{label:`client (4xx)`,value:String(e.clientCount)}),(0,J.jsx)(gg,{label:`server (5xx)`,value:String(e.serverCount),danger:e.serverCount>0}),(0,J.jsx)(gg,{label:`traced`,value:String(e.tracedCount)}),(0,J.jsx)(gg,{label:`untraced`,value:String(e.byCodes.reduce((e,[,t])=>e+t,0)-e.tracedCount)})]})]})}function pg({entry:e,onClose:t,navigate:n}){let r=Object.entries(e.headers??{}),i=Gf();return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-destructive`}),(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:e.code}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsx)(hg,{label:`Error`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[11px] leading-relaxed text-destructive/90`,children:e.error})}),e.spans.length>0&&(0,J.jsx)(hg,{label:`Spans — ${e.spans.length} ops`,children:(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs})}),e.stack&&(0,J.jsx)(hg,{label:`Stack trace`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.stack})}),e.input!==void 0&&e.input!==null&&(0,J.jsx)(hg,{label:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),(0,J.jsxs)(hg,{label:`Metadata`,children:[(0,J.jsx)(gg,{label:`status`,value:String(e.status),danger:!0}),(0,J.jsx)(gg,{label:`code`,value:e.code,danger:!0}),(0,J.jsx)(gg,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(gg,{label:`spans`,value:String(e.spans.length)}),(0,J.jsx)(gg,{label:`time`,value:Ff(e.timestamp)})]}),r.length>0&&(0,J.jsx)(hg,{label:`Headers`,children:r.map(([e,t])=>(0,J.jsxs)(`div`,{className:`flex gap-3 border-b border-dashed py-1 last:border-0`,children:[(0,J.jsx)(`span`,{className:`w-24 shrink-0 truncate font-mono text-[10px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:`min-w-0 break-all font-mono text-[10px]`,children:i&&qf(e)?(0,J.jsx)(`span`,{className:`text-muted-foreground/40`,children:`[redacted]`}):t})]},e))}),(0,J.jsx)(`div`,{className:`flex gap-2 px-4 py-3`,children:e.requestId&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`flex-1`,onClick:()=>n(`requests`,e.requestId),children:`View request`})})]})]})}function mg({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-2.5 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsx)(`div`,{className:G(`mt-0.5 text-base font-semibold tabular-nums tracking-tight`,n&&`text-destructive`),children:t})]})}function hg({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function gg({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}function _g(e,t){return t===`count`||t===`errors`||t===`errorRate`?e[t]:t===`path`?0:e.latency[t]}function vg({procedures:e,navigate:t,filter:n}){let[r,i]=(0,K.useState)(`count`),[a,o]=(0,K.useState)(!1),s=(0,K.useCallback)(e=>{i(t=>(o(t===e?e=>!e:!1),e))},[]),c=(0,K.useMemo)(()=>{let t=Object.entries(e);if(n){let e=n.toLowerCase();t=t.filter(([t])=>t.toLowerCase().includes(e))}let i=a?1:-1;return t.sort((e,t)=>r===`path`?i*e[0].localeCompare(t[0]):i*(_g(e[1],r)-_g(t[1],r))),t},[e,r,a,n]),l=(0,K.useMemo)(()=>Math.max(1,...Object.values(e).map(e=>e.count)),[e]);return c.length===0?(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`No requests yet`}):(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-5 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(yg,{label:`Procedure`,sortKey:`path`,currentKey:r,asc:a,onSort:s,className:`flex-1`}),(0,J.jsx)(yg,{label:`Count`,sortKey:`count`,currentKey:r,asc:a,onSort:s,className:`w-20 text-right`}),(0,J.jsx)(`span`,{className:`hidden w-20 lg:block`}),(0,J.jsx)(yg,{label:`Errors`,sortKey:`errors`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`}),(0,J.jsx)(yg,{label:`Rate`,sortKey:`errorRate`,currentKey:r,asc:a,onSort:s,className:`w-12 text-right`}),(0,J.jsx)(yg,{label:`Avg`,sortKey:`avg`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`}),(0,J.jsx)(yg,{label:`p95`,sortKey:`p95`,currentKey:r,asc:a,onSort:s,className:`w-14 text-right`})]}),c.map(([e,n])=>{let r=n.count/l*100,i=n.errors>0;return(0,J.jsxs)(`div`,{className:G(`flex items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,t&&`cursor-pointer`),onClick:()=>t?.(`requests`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(`span`,{className:`w-20 shrink-0 text-right font-mono text-[11px] tabular-nums`,children:Mf(n.count)}),(0,J.jsx)(`div`,{className:`hidden w-20 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:`h-full rounded-full bg-primary/30`,style:{width:`${r}%`}})})}),(0,J.jsx)(`div`,{className:`w-14 shrink-0 text-right`,children:i?(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,onClick:n=>{t&&(n.stopPropagation(),t(`errors`,void 0,{procedure:e}))},children:n.errors}):(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground/40`,children:`0`})}),(0,J.jsxs)(`span`,{className:G(`w-12 shrink-0 text-right text-[11px] tabular-nums`,i?`text-destructive`:`text-muted-foreground/40`),children:[n.errorRate.toFixed(1),`%`]}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(n.latency.avg)}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(n.latency.p95)})]},e)})]})}function yg({label:e,sortKey:t,currentKey:n,asc:r,onSort:i,className:a}){return(0,J.jsxs)(`span`,{className:G(`cursor-pointer select-none`,n===t&&`text-primary`,a),onClick:()=>i(t),children:[e,n===t&&(r?` ↑`:` ↓`)]})}var bg=o(((e,t)=>{t.exports=Array.isArray})),xg=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Sg=o(((e,t)=>{var n=xg(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Cg=o(((e,t)=>{t.exports=Sg().Symbol})),wg=o(((e,t)=>{var n=Cg(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Tg=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Eg=o(((e,t)=>{var n=Cg(),r=wg(),i=Tg(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Dg=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Og=o(((e,t)=>{var n=Eg(),r=Dg(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),kg=o(((e,t)=>{var n=bg(),r=Og(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Ag=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),jg=o(((e,t)=>{var n=Eg(),r=Ag(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Mg=o(((e,t)=>{t.exports=Sg()[`__core-js_shared__`]})),Ng=o(((e,t)=>{var n=Mg(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Pg=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Fg=o(((e,t)=>{var n=jg(),r=Ng(),i=Ag(),a=Pg(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Ig=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Lg=o(((e,t)=>{var n=Fg(),r=Ig();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Rg=o(((e,t)=>{t.exports=Lg()(Object,`create`)})),zg=o(((e,t)=>{var n=Rg();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),Bg=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Vg=o(((e,t)=>{var n=Rg(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Hg=o(((e,t)=>{var n=Rg(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Ug=o(((e,t)=>{var n=Rg(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Wg=o(((e,t)=>{var n=zg(),r=Bg(),i=Vg(),a=Hg(),o=Ug();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Gg=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Kg=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),qg=o(((e,t)=>{var n=Kg();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Jg=o(((e,t)=>{var n=qg(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Yg=o(((e,t)=>{var n=qg();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Xg=o(((e,t)=>{var n=qg();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Zg=o(((e,t)=>{var n=qg();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Qg=o(((e,t)=>{var n=Gg(),r=Jg(),i=Yg(),a=Xg(),o=Zg();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),$g=o(((e,t)=>{t.exports=Lg()(Sg(),`Map`)})),e_=o(((e,t)=>{var n=Wg(),r=Qg(),i=$g();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),t_=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),n_=o(((e,t)=>{var n=t_();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),r_=o(((e,t)=>{var n=n_();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),i_=o(((e,t)=>{var n=n_();function r(e){return n(this,e).get(e)}t.exports=r})),a_=o(((e,t)=>{var n=n_();function r(e){return n(this,e).has(e)}t.exports=r})),o_=o(((e,t)=>{var n=n_();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),s_=o(((e,t)=>{var n=e_(),r=r_(),i=i_(),a=a_(),o=o_();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),c_=o(((e,t)=>{var n=s_(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),l_=o(((e,t)=>{var n=c_(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),u_=o(((e,t)=>{var n=l_(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),d_=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),f_=o(((e,t)=>{var n=Cg(),r=d_(),i=bg(),a=Og(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),p_=o(((e,t)=>{var n=f_();function r(e){return e==null?``:n(e)}t.exports=r})),m_=o(((e,t)=>{var n=bg(),r=kg(),i=u_(),a=p_();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),h_=o(((e,t)=>{var n=Og(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),g_=o(((e,t)=>{var n=m_(),r=h_();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),__=o(((e,t)=>{var n=g_();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),v_=o(((e,t)=>{function n(e){return e==null}t.exports=n})),y_=o(((e,t)=>{var n=Eg(),r=bg(),i=Dg(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),b_=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),x_=o(((e,t)=>{t.exports=b_()})),S_=o(((e,t)=>{var n=Eg(),r=Dg(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),C_=o(((e,t)=>{var n=S_();function r(e){return n(e)&&e!=+e}t.exports=r})),w_=l(y_()),T_=l(C_()),E_=l(__()),D_=l(S_()),O_=l(v_()),k_=function(e){return e===0?0:e>0?1:-1},A_=function(e){return(0,w_.default)(e)&&e.indexOf(`%`)===e.length-1},Z=function(e){return(0,D_.default)(e)&&!(0,T_.default)(e)},j_=function(e){return(0,O_.default)(e)},M_=function(e){return Z(e)||(0,w_.default)(e)},N_=0,P_=function(e){var t=++N_;return`${e||``}${t}`},F_=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(e)&&!(0,w_.default)(e))return n;var i;if(A_(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,T_.default)(i)&&(i=n),r&&i>t&&(i=t),i},I_=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},L_=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},R_=function(e,t){return Z(e)&&Z(t)?function(n){return e+n*(t-e)}:function(){return t}};function z_(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,E_.default)(e,t))===n})}var B_=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u].cx||0,l=e[u].cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},V_=function(e,t){return Z(e)&&Z(t)?e-t:(0,w_.default)(e)&&(0,w_.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function H_(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}var U_=l(Ag());function W_(e){"@babel/helpers - typeof";return W_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},W_(e)}var G_=[`viewBox`,`children`],K_=`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`),q_=[`points`,`pathLength`],J_={svg:G_,polygon:q_,polyline:q_},Y_=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`),X_=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,K.isValidElement)(e)&&(n=e.props),!(0,U_.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){Y_.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},Z_=function(e,t,n){return function(r){return e(t,n,r),null}},Q_=function(e,t,n){if(!(0,U_.default)(e)||W_(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];Y_.includes(i)&&typeof a==`function`&&(r||={},r[i]=Z_(a,t,n))}),r},$_=l(jg()),ev=x_(),tv=[`children`],nv=[`children`];function rv(e,t){if(e==null)return{};var n=iv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function av(e){"@babel/helpers - typeof";return av=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},av(e)}var ov={click:`onClick`,mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,mouseout:`onMouseOut`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,touchcancel:`onTouchCancel`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchstart:`onTouchStart`,contextmenu:`onContextMenu`,dblclick:`onDoubleClick`},sv=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},cv=null,lv=null,uv=function e(t){if(t===cv&&Array.isArray(lv))return lv;var n=[];return K.Children.forEach(t,function(t){(0,O_.default)(t)||((0,ev.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),lv=n,cv=t,n};function dv(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return sv(e)}):[sv(t)],uv(e).forEach(function(e){var t=(0,E_.default)(e,`type.displayName`)||(0,E_.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function fv(e,t){var n=dv(e,t);return n&&n[0]}var pv=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Z(n)||n<=0||!Z(r)||r<=0)},mv=`a.altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColormatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-url.foreignObject.g.glyph.glyphRef.hkern.image.line.lineGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.script.set.stop.style.svg.switch.symbol.text.textPath.title.tref.tspan.use.view.vkern`.split(`.`),hv=function(e){return e&&e.type&&(0,w_.default)(e.type)&&mv.indexOf(e.type)>=0},gv=function(e){return e&&av(e)===`object`&&`clipDot`in e},_v=function(e,t,n,r){var i=J_?.[r]??[];return t.startsWith(`data-`)||!(0,$_.default)(e)&&(r&&i.includes(t)||K_.includes(t))||n&&Y_.includes(t)},Q=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,K.isValidElement)(e)&&(r=e.props),!(0,U_.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){_v(r?.[e],e,t,n)&&(i[e]=r[e])}),i},vv=function e(t,n){if(t===n)return!0;var r=K.Children.count(t);if(r!==K.Children.count(n))return!1;if(r===0)return!0;if(r===1)return yv(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!yv(a,o))return!1}return!0},yv=function(e,t){if((0,O_.default)(e)&&(0,O_.default)(t))return!0;if(!(0,O_.default)(e)&&!(0,O_.default)(t)){var n=e.props||{},r=n.children,i=rv(n,tv),a=t.props||{},o=a.children,s=rv(a,nv);return r&&o?H_(i,s)&&vv(r,o):!r&&!o?H_(i,s):!1}return!1},bv=function(e,t){var n=[],r={};return uv(e).forEach(function(e,i){if(hv(e))n.push(e);else if(e){var a=sv(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},xv=function(e){var t=e&&e.type;return t&&ov[t]?ov[t]:null},Sv=function(e,t){return uv(t).indexOf(e)},Cv=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}function Tv(e,t){if(e==null)return{};var n=Ev(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ev(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dv(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,l=Tv(e,Cv),u=i||{width:n,height:r,x:0,y:0},f=d(`recharts-surface`,a);return K.createElement(`svg`,wv({},Q(l,!0,`svg`),{className:f,width:n,height:r,style:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`}),K.createElement(`title`,null,s),K.createElement(`desc`,null,c),t)}var Ov=[`children`,`className`];function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}function Av(e,t){if(e==null)return{};var n=jv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Mv=K.forwardRef(function(e,t){var n=e.children,r=e.className,i=Av(e,Ov),a=d(`recharts-layer`,r);return K.createElement(`g`,kv({className:a},Q(i,!0),{ref:t}),n)}),Nv=!1,Pv=function(e,t){var n=[...arguments].slice(2);if(Nv&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,function(){return n[r++]}))}},Fv=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),Iv=o(((e,t)=>{var n=Fv();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Lv=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Rv=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),zv=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),Bv=o(((e,t)=>{var n=Rv(),r=Lv(),i=zv();function a(e){return r(e)?i(e):n(e)}t.exports=a})),Vv=o(((e,t)=>{var n=Iv(),r=Lv(),i=Bv(),a=p_();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),Hv=o(((e,t)=>{t.exports=Vv()(`toUpperCase`)}));function Uv(e){return function(){return e}}var Wv=Math.cos,Gv=Math.sin,Kv=Math.sqrt,qv=Math.PI;qv/2;var Jv=2*qv,Yv=Math.PI,Xv=2*Yv,Zv=1e-6,Qv=Xv-Zv;function $v(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ey(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return $v;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var ty=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?$v:ey(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Zv)if(!(Math.abs(u*s-c*l)>Zv)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Yv-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Zv&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Zv||Math.abs(this._y1-l)>Zv)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Xv+Xv),d>Qv?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Zv&&this._append`A${n},${n},0,${+(d>=Yv)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ny(){return new ty}ny.prototype=ty.prototype;function ry(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ty(t)}Array.prototype.slice;function iy(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ay(e){this._context=e}ay.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function oy(e){return new ay(e)}function sy(e){return e[0]}function cy(e){return e[1]}function ly(e,t){var n=Uv(!0),r=null,i=oy,a=null,o=ry(s);e=typeof e==`function`?e:e===void 0?sy:Uv(e),t=typeof t==`function`?t:t===void 0?cy:Uv(t);function s(s){var c,l=(s=iy(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Uv(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Uv(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Uv(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function uy(e,t,n){var r=null,i=Uv(!0),a=null,o=oy,s=null,c=ry(l);e=typeof e==`function`?e:e===void 0?sy:Uv(+e),t=typeof t==`function`?t:Uv(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?cy:Uv(+n);function l(l){var u,d,f,p=(l=iy(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return ly().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:Uv(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:Uv(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Uv(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:Uv(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:Uv(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:Uv(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:Uv(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var dy=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function fy(e){return new dy(e,!0)}function py(e){return new dy(e,!1)}var my={draw(e,t){let n=Kv(t/qv);e.moveTo(n,0),e.arc(0,0,n,0,Jv)}},hy={draw(e,t){let n=Kv(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},gy=Kv(1/3),_y=gy*2,vy={draw(e,t){let n=Kv(t/_y),r=n*gy;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},yy={draw(e,t){let n=Kv(t),r=-n/2;e.rect(r,r,n,n)}},by=.8908130915292852,xy=Gv(qv/10)/Gv(7*qv/10),Sy=Gv(Jv/10)*xy,Cy=-Wv(Jv/10)*xy,wy={draw(e,t){let n=Kv(t*by),r=Sy*n,i=Cy*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Jv*t/5,o=Wv(a),s=Gv(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Ty=Kv(3),Ey={draw(e,t){let n=-Kv(t/(Ty*3));e.moveTo(0,n*2),e.lineTo(-Ty*n,-n),e.lineTo(Ty*n,-n),e.closePath()}},Dy=-.5,Oy=Kv(3)/2,ky=1/Kv(12),Ay=(ky/2+1)*3,jy={draw(e,t){let n=Kv(t/Ay),r=n/2,i=n*ky,a=r,o=n*ky+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Dy*r-Oy*i,Oy*r+Dy*i),e.lineTo(Dy*a-Oy*o,Oy*a+Dy*o),e.lineTo(Dy*s-Oy*c,Oy*s+Dy*c),e.lineTo(Dy*r+Oy*i,Dy*i-Oy*r),e.lineTo(Dy*a+Oy*o,Dy*o-Oy*a),e.lineTo(Dy*s+Oy*c,Dy*c-Oy*s),e.closePath()}};function My(e,t){let n=null,r=ry(i);e=typeof e==`function`?e:Uv(e||my),t=typeof t==`function`?t:Uv(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:Uv(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:Uv(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Ny(){}function Py(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Fy(e){this._context=e}Fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Py(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iy(e){return new Fy(e)}function Ly(e){this._context=e}Ly.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ry(e){return new Ly(e)}function zy(e){this._context=e}zy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function By(e){return new zy(e)}function Vy(e){this._context=e}Vy.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Hy(e){return new Vy(e)}function Uy(e){return e<0?-1:1}function Wy(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Uy(a)+Uy(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Gy(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ky(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function qy(e){this._context=e}qy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ky(this,this._t0,Gy(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ky(this,Gy(this,n=Wy(this,e,t)),n);break;default:Ky(this,this._t0,n=Wy(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Jy(e){this._context=new Yy(e)}(Jy.prototype=Object.create(qy.prototype)).point=function(e,t){qy.prototype.point.call(this,t,e)};function Yy(e){this._context=e}Yy.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Xy(e){return new qy(e)}function Zy(e){return new Jy(e)}function Qy(e){this._context=e}Qy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$y(e),i=$y(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $y(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function eb(e){return new Qy(e)}function tb(e,t){this._context=e,this._t=t}tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function nb(e){return new tb(e,.5)}function rb(e){return new tb(e,0)}function ib(e){return new tb(e,1)}function ab(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ob(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function sb(e,t){return e[t]}function cb(e){let t=[];return t.key=e,t}function lb(){var e=Uv([]),t=ob,n=ab,r=sb;function i(i){var a=Array.from(e.apply(this,arguments),cb),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=iy(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:Uv(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:Uv(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?ob:typeof e==`function`?e:Uv(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??ab,i):n},i}function ub(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}ab(e,t)}}function db(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}ab(e,t)}}function fb(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,ab(e,t)}}var pb=l(Hv());function mb(e){"@babel/helpers - typeof";return mb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mb(e)}var hb=[`type`,`size`,`sizeType`];function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gb.apply(this,arguments)}function _b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_b(Object(n),!0).forEach(function(t){yb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yb(e,t,n){return t=bb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(e){var t=xb(e,`string`);return mb(t)==`symbol`?t:t+``}function xb(e,t){if(mb(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mb(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sb(e,t){if(e==null)return{};var n=Cb(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cb(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wb={symbolCircle:my,symbolCross:hy,symbolDiamond:vy,symbolSquare:yy,symbolStar:wy,symbolTriangle:Ey,symbolWye:jy},Tb=Math.PI/180,Eb=function(e){return wb[`symbol${(0,pb.default)(e)}`]||my},Db=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Tb;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Ob=function(e,t){wb[`symbol${(0,pb.default)(e)}`]=t},kb=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=vb(vb({},Sb(e,hb)),{},{type:n,size:i,sizeType:o}),c=function(){var e=Eb(n);return My().type(e).size(Db(i,o,n))()},l=s.className,u=s.cx,f=s.cy,p=Q(s,!0);return u===+u&&f===+f&&i===+i?K.createElement(`path`,gb({},p,{className:d(`recharts-symbols`,l),transform:`translate(${u}, ${f})`,d:c()})):null};kb.registerSymbol=Ob;function Ab(e){"@babel/helpers - typeof";return Ab=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ab(e)}function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(this,arguments)}function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mb(Object(n),!0).forEach(function(t){Wb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pb(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Fb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Gb(r.key),r)}}function Ib(e,t,n){return t&&Fb(e.prototype,t),n&&Fb(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Lb(e,t,n){return t=Vb(t),Rb(e,Bb()?Reflect.construct(t,n||[],Vb(e).constructor):t.apply(e,n))}function Rb(e,t){if(t&&(Ab(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return zb(e)}function zb(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Bb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bb=function(){return!!e})()}function Vb(e){return Vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vb(e)}function Hb(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Ub(e,t)}function Ub(e,t){return Ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ub(e,t)}function Wb(e,t,n){return t=Gb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gb(e){var t=Kb(e,`string`);return Ab(t)==`symbol`?t:t+``}function Kb(e,t){if(Ab(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ab(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qb=32,Jb=function(e){function t(){return Pb(this,t),Lb(this,t,arguments)}return Hb(t,e),Ib(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=qb/2,r=qb/6,i=qb/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return K.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:qb,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return K.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
43
43
  A${r},${r},0,1,1,${2*i},${n}
44
- H${Gb}M${2*i},${n}
45
- A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return K.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${Gb/8}h${Gb}v${Gb*3/4}h${-Gb}z`,className:`recharts-legend-icon`});if(K.isValidElement(e.legendIcon)){var o=jb({},e);return delete o.legendIcon,K.cloneElement(e.legendIcon,o)}return K.createElement(Db,{fill:a,cx:n,cy:n,size:Gb,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,o=t.inactiveColor,s={x:0,y:0,width:Gb,height:Gb},c={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},l={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,u=d(Hb(Hb({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var f=(0,Z_.default)(t.value)?null:t.value;Mv(!(0,Z_.default)(t.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var p=t.inactive?o:t.color;return K.createElement(`li`,kb({className:u,style:c,key:`legend-item-${n}`},X_(e.props,t,n)),K.createElement(Tv,{width:r,height:r,viewBox:s,style:l},e.renderIcon(t)),K.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:p}},i?i(f,t,n):f))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return K.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(K.PureComponent);Hb(Kb,`displayName`,`Legend`),Hb(Kb,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var qb=o(((e,t)=>{var n=Xg();function r(){this.__data__=new n,this.size=0}t.exports=r})),Jb=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Yb=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Xb=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Zb=o(((e,t)=>{var n=Xg(),r=Zg(),i=a_(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Qb=o(((e,t)=>{var n=Xg(),r=qb(),i=Jb(),a=Yb(),o=Xb(),s=Zb();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),$b=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),ex=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),tx=o(((e,t)=>{var n=a_(),r=$b(),i=ex();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),nx=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),rx=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),ix=o(((e,t)=>{var n=tx(),r=nx(),i=rx(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),ax=o(((e,t)=>{t.exports=bg().Uint8Array})),ox=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),sx=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),cx=o(((e,t)=>{var n=xg(),r=ax(),i=Wg(),a=ix(),o=ox(),s=sx(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),lx=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),ux=o(((e,t)=>{var n=lx(),r=vg();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),dx=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),fx=o(((e,t)=>{function n(){return[]}t.exports=n})),px=o(((e,t)=>{var n=dx(),r=fx(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),mx=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),hx=o(((e,t)=>{var n=wg(),r=Tg(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),gx=o(((e,t)=>{var n=hx(),r=Tg(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),_x=o(((e,t)=>{function n(){return!1}t.exports=n})),vx=o(((e,t)=>{var n=bg(),r=_x(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),yx=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),bx=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),xx=o(((e,t)=>{var n=wg(),r=bx(),i=Tg(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),Sx=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Cx=o(((e,t)=>{var n=yg(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),wx=o(((e,t)=>{var n=xx(),r=Sx(),i=Cx(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Tx=o(((e,t)=>{var n=mx(),r=gx(),i=vg(),a=vx(),o=yx(),s=wx(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Ex=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Dx=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Ox=o(((e,t)=>{t.exports=Dx()(Object.keys,Object)})),kx=o(((e,t)=>{var n=Ex(),r=Ox(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Ax=o(((e,t)=>{var n=kg(),r=bx();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),jx=o(((e,t)=>{var n=Tx(),r=kx(),i=Ax();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Mx=o(((e,t)=>{var n=ux(),r=px(),i=jx();function a(e){return n(e,i,r)}t.exports=a})),Nx=o(((e,t)=>{var n=Mx(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Px=o(((e,t)=>{t.exports=Fg()(bg(),`DataView`)})),Fx=o(((e,t)=>{t.exports=Fg()(bg(),`Promise`)})),Ix=o(((e,t)=>{t.exports=Fg()(bg(),`Set`)})),Lx=o(((e,t)=>{t.exports=Fg()(bg(),`WeakMap`)})),Rx=o(((e,t)=>{var n=Px(),r=Zg(),i=Fx(),a=Ix(),o=Lx(),s=wg(),c=Mg(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),zx=o(((e,t)=>{var n=Qb(),r=ix(),i=cx(),a=Nx(),o=Rx(),s=vg(),c=vx(),l=wx(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),Bx=o(((e,t)=>{var n=zx(),r=Tg();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Vx=o(((e,t)=>{var n=Qb(),r=Bx(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Hx=o(((e,t)=>{var n=Og();function r(e){return e===e&&!n(e)}t.exports=r})),Ux=o(((e,t)=>{var n=Hx(),r=jx();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Wx=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),Gx=o(((e,t)=>{var n=Vx(),r=Ux(),i=Wx();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Kx=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),qx=o(((e,t)=>{var n=f_(),r=gx(),i=vg(),a=yx(),o=bx(),s=p_();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),Jx=o(((e,t)=>{var n=Kx(),r=qx();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Yx=o(((e,t)=>{var n=Bx(),r=h_(),i=Jx(),a=Dg(),o=Hx(),s=Wx(),c=p_(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Xx=o(((e,t)=>{function n(e){return e}t.exports=n})),Zx=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),Qx=o(((e,t)=>{var n=m_();function r(e){return function(t){return n(t,e)}}t.exports=r})),$x=o(((e,t)=>{var n=Zx(),r=Qx(),i=Dg(),a=p_();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),eS=o(((e,t)=>{var n=Gx(),r=Yx(),i=Xx(),a=vg(),o=$x();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),tS=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),nS=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),rS=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),iS=o(((e,t)=>{var n=tS(),r=nS(),i=rS();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),aS=o(((e,t)=>{var n=iS();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),oS=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),sS=o(((e,t)=>{function n(){}t.exports=n})),cS=o(((e,t)=>{var n=Ix(),r=sS(),i=sx();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),lS=o(((e,t)=>{var n=tx(),r=aS(),i=oS(),a=rx(),o=cS(),s=sx(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),uS=l(o(((e,t)=>{var n=eS(),r=lS();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i}))());function dS(e,t,n){return t===!0?(0,uS.default)(e,n):(0,Z_.default)(t)?(0,uS.default)(e,t):e}function fS(e){"@babel/helpers - typeof";return fS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fS(e)}var pS=[`ref`];function mS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mS(Object(n),!0).forEach(function(t){ES(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gS(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,DS(r.key),r)}}function vS(e,t,n){return t&&_S(e.prototype,t),n&&_S(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yS(e,t,n){return t=CS(t),bS(e,SS()?Reflect.construct(t,n||[],CS(e).constructor):t.apply(e,n))}function bS(e,t){if(t&&(fS(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return xS(e)}function xS(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function SS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SS=function(){return!!e})()}function CS(e){return CS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CS(e)}function wS(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TS(e,t)}function ES(e,t,n){return t=DS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DS(e){var t=OS(e,`string`);return fS(t)==`symbol`?t:t+``}function OS(e,t){if(fS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kS(e,t){if(e==null)return{};var n=AS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jS(e){return e.value}function MS(e,t){if(K.isValidElement(e))return K.cloneElement(e,t);if(typeof e==`function`)return K.createElement(e,t);t.ref;var n=kS(t,pS);return K.createElement(Kb,n)}var NS=1,PS=function(e){function t(){var e;gS(this,t);var n=[...arguments];return e=yS(this,t,[].concat(n)),ES(e,`lastBoundingBox`,{width:-1,height:-1}),e}return wS(t,e),vS(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>NS||Math.abs(t.height-this.lastBoundingBox.height)>NS)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?hS({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return hS(hS({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=hS(hS({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return K.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},MS(n,hS(hS({},this.props),{},{payload:dS(s,o,jS)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=hS(hS({},this.defaultProps),e.props).layout;return n===`vertical`&&Z(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(K.PureComponent);ES(PS,`displayName`,`Legend`),ES(PS,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var FS=o(((e,t)=>{var n=xg(),r=gx(),i=vg(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),IS=o(((e,t)=>{var n=lx(),r=FS();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),LS=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),RS=o(((e,t)=>{t.exports=LS()()})),zS=o(((e,t)=>{var n=RS(),r=jx();function i(e,t){return e&&n(e,t,r)}t.exports=i})),BS=o(((e,t)=>{var n=Ax();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),VS=o(((e,t)=>{var n=zS();t.exports=BS()(n)})),HS=o(((e,t)=>{var n=VS(),r=Ax();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),US=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),WS=o(((e,t)=>{var n=Eg();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),GS=o(((e,t)=>{var n=WS();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),KS=o(((e,t)=>{var n=l_(),r=m_(),i=eS(),a=HS(),o=US(),s=Sx(),c=GS(),l=Xx(),u=vg();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),qS=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),JS=o(((e,t)=>{var n=qS(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),YS=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),XS=o(((e,t)=>{var n=Fg();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),ZS=o(((e,t)=>{var n=YS(),r=XS(),i=Xx();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),QS=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),$S=o(((e,t)=>{var n=ZS();t.exports=QS()(n)})),eC=o(((e,t)=>{var n=Xx(),r=JS(),i=$S();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),tC=o(((e,t)=>{var n=Wg(),r=Ax(),i=yx(),a=Og();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),nC=l(o(((e,t)=>{var n=IS(),r=KS(),i=eC(),a=tC();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})}))());function rC(e){"@babel/helpers - typeof";return rC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rC(e)}function iC(){return iC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iC.apply(this,arguments)}function aC(e,t){return uC(e)||lC(e,t)||sC(e,t)||oC()}function oC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC(e,t){if(e){if(typeof e==`string`)return cC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cC(e,t)}}function cC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uC(e){if(Array.isArray(e))return e}function dC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dC(Object(n),!0).forEach(function(t){pC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pC(e,t,n){return t=mC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mC(e){var t=hC(e,`string`);return rC(t)==`symbol`?t:t+``}function hC(e,t){if(rC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gC(e){return Array.isArray(e)&&A_(e[0])&&A_(e[1])?e.join(` ~ `):e}var _C=function(e){var t=e.separator,n=t===void 0?` : `:t,r=e.contentStyle,i=r===void 0?{}:r,a=e.itemStyle,o=a===void 0?{}:a,s=e.labelStyle,c=s===void 0?{}:s,l=e.payload,u=e.formatter,f=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,h=e.label,g=e.labelFormatter,_=e.accessibilityLayer,v=_===void 0?!1:_,y=function(){if(l&&l.length){var e={padding:0,margin:0},t=(f?(0,nC.default)(l,f):l).map(function(e,t){if(e.type===`none`)return null;var r=fC({display:`block`,paddingTop:4,paddingBottom:4,color:e.color||`#000`},o),i=e.formatter||u||gC,a=e.value,s=e.name,c=a,d=s;if(i&&c!=null&&d!=null){var f=i(a,s,e,t,l);if(Array.isArray(f)){var p=aC(f,2);c=p[0],d=p[1]}else c=f}return K.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:r},A_(d)?K.createElement(`span`,{className:`recharts-tooltip-item-name`},d):null,A_(d)?K.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,K.createElement(`span`,{className:`recharts-tooltip-item-value`},c),K.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return K.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},b=fC({margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},i),x=fC({margin:0},c),S=!(0,E_.default)(h),C=S?h:``,w=d(`recharts-default-tooltip`,p),T=d(`recharts-tooltip-label`,m);S&&g&&l!=null&&(C=g(h,l));var E=v?{role:`status`,"aria-live":`assertive`}:{};return K.createElement(`div`,iC({className:w,style:b},E),K.createElement(`p`,{className:T,style:x},K.isValidElement(C)?C:`${C}`),y())};function vC(e){"@babel/helpers - typeof";return vC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vC(e)}function yC(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=xC(e,`string`);return vC(t)==`symbol`?t:t+``}function xC(e,t){if(vC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SC=`recharts-tooltip-wrapper`,CC={visibility:`hidden`};function wC(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return d(SC,yC(yC(yC(yC({},`${SC}-right`,Z(n)&&t&&Z(t.x)&&n>=t.x),`${SC}-left`,Z(n)&&t&&Z(t.x)&&n<t.x),`${SC}-bottom`,Z(r)&&t&&Z(t.y)&&r>=t.y),`${SC}-top`,Z(r)&&t&&Z(t.y)&&r<t.y))}function TC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Z(a[r]))return a[r];var u=n[r]-s-i,d=n[r]+i;return t[r]?o[r]?u:d:o[r]?u<c[r]?Math.max(d,c[r]):Math.max(u,c[r]):d+s>c[r]+l?Math.max(u,c[r]):Math.max(d,c[r])}function EC(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function DC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return o.height>0&&o.width>0&&n?(u=TC({allowEscapeViewBox:t,coordinate:n,key:`x`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),d=TC({allowEscapeViewBox:t,coordinate:n,key:`y`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=EC({translateX:u,translateY:d,useTranslate3d:s})):l=CC,{cssProperties:l,cssClasses:wC({translateX:u,translateY:d,coordinate:n})}}function OC(e){"@babel/helpers - typeof";return OC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OC(e)}function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kC(Object(n),!0).forEach(function(t){VC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function MC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,HC(r.key),r)}}function NC(e,t,n){return t&&MC(e.prototype,t),n&&MC(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function PC(e,t,n){return t=RC(t),FC(e,LC()?Reflect.construct(t,n||[],RC(e).constructor):t.apply(e,n))}function FC(e,t){if(t&&(OC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return IC(e)}function IC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function LC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LC=function(){return!!e})()}function RC(e){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RC(e)}function zC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&BC(e,t)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BC(e,t)}function VC(e,t,n){return t=HC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HC(e){var t=UC(e,`string`);return OC(t)==`symbol`?t:t+``}function UC(e,t){if(OC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(OC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var WC=1,GC=function(e){function t(){var e;jC(this,t);var n=[...arguments];return e=PC(this,t,[].concat(n)),VC(e,`state`,{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),VC(e,`handleKeyDown`,function(t){t.key===`Escape`&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:e.props.coordinate?.x??0,y:e.props.coordinate?.y??0}})}),e}return zC(t,e),NC(t,[{key:`updateBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>WC||Math.abs(e.height-this.state.lastBoundingBox.height)>WC)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else (this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:`componentDidMount`,value:function(){document.addEventListener(`keydown`,this.handleKeyDown),this.updateBBox()}},{key:`componentWillUnmount`,value:function(){document.removeEventListener(`keydown`,this.handleKeyDown)}},{key:`componentDidUpdate`,value:function(){this.props.active&&this.updateBBox(),this.state.dismissed&&(this.props.coordinate?.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate?.y!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.children,s=t.coordinate,c=t.hasPayload,l=t.isAnimationActive,u=t.offset,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.viewBox,h=t.wrapperStyle,g=DC({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:u,position:d,reverseDirection:f,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:m}),_=g.cssClasses,v=g.cssProperties,y=AC(AC({transition:l&&n?`transform ${i}ms ${a}`:void 0},v),{},{pointerEvents:`none`,visibility:!this.state.dismissed&&n&&c?`visible`:`hidden`,position:`absolute`,top:0,left:0},h);return K.createElement(`div`,{tabIndex:-1,className:_,style:y,ref:function(t){e.wrapperNode=t}},o)}}])}(K.PureComponent),KC={isSsr:function(){return!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)}(),get:function(e){return KC[e]},set:function(e,t){if(typeof e==`string`)KC[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){KC[t]=e[t]})}}};function qC(e){"@babel/helpers - typeof";return qC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qC(e)}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JC(Object(n),!0).forEach(function(t){ow(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ZC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,sw(r.key),r)}}function QC(e,t,n){return t&&ZC(e.prototype,t),n&&ZC(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function $C(e,t,n){return t=rw(t),ew(e,nw()?Reflect.construct(t,n||[],rw(e).constructor):t.apply(e,n))}function ew(e,t){if(t&&(qC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return tw(e)}function tw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function nw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nw=function(){return!!e})()}function rw(e){return rw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rw(e)}function iw(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&aw(e,t)}function aw(e,t){return aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aw(e,t)}function ow(e,t,n){return t=sw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sw(e){var t=cw(e,`string`);return qC(t)==`symbol`?t:t+``}function cw(e,t){if(qC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lw(e){return e.dataKey}function uw(e,t){return K.isValidElement(e)?K.cloneElement(e,t):typeof e==`function`?K.createElement(e,t):K.createElement(_C,t)}var dw=function(e){function t(){return XC(this,t),$C(this,t,arguments)}return iw(t,e),QC(t,[{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.coordinate,c=t.filterNull,l=t.isAnimationActive,u=t.offset,d=t.payload,f=t.payloadUniqBy,p=t.position,m=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,_=t.wrapperStyle,v=d??[];c&&v.length&&(v=dS(d.filter(function(t){return t.value!=null&&(t.hide!==!0||e.props.includeHidden)}),f,lw));var y=v.length>0;return K.createElement(GC,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:l,active:n,coordinate:s,hasPayload:y,offset:u,position:p,reverseDirection:m,useTranslate3d:h,viewBox:g,wrapperStyle:_},uw(o,YC(YC({},this.props),{},{payload:v})))}}])}(K.PureComponent);ow(dw,`displayName`,`Tooltip`),ow(dw,`defaultProps`,{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!KC.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var fw=o(((e,t)=>{var n=bg();t.exports=function(){return n.Date.now()}})),pw=o(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),mw=o(((e,t)=>{var n=pw(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),hw=o(((e,t)=>{var n=mw(),r=Og(),i=Eg(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),gw=o(((e,t)=>{var n=Og(),r=fw(),i=hw(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),_w=l(o(((e,t)=>{var n=gw(),r=Og(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))());function vw(e){"@babel/helpers - typeof";return vw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vw(e)}function yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yw(Object(n),!0).forEach(function(t){xw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xw(e,t,n){return t=Sw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sw(e){var t=Cw(e,`string`);return vw(t)==`symbol`?t:t+``}function Cw(e,t){if(vw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ww(e,t){return kw(e)||Ow(e,t)||Ew(e,t)||Tw()}function Tw(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ew(e,t){if(e){if(typeof e==`string`)return Dw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dw(e,t)}}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ow(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kw(e){if(Array.isArray(e))return e}var Aw=(0,K.forwardRef)(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?`100%`:a,s=e.height,c=s===void 0?`100%`:s,l=e.minWidth,u=l===void 0?0:l,f=e.minHeight,p=e.maxHeight,m=e.children,h=e.debounce,g=h===void 0?0:h,_=e.id,v=e.className,y=e.onResize,b=e.style,x=b===void 0?{}:b,S=(0,K.useRef)(null),C=(0,K.useRef)();C.current=y,(0,K.useImperativeHandle)(t,function(){return Object.defineProperty(S.current,`current`,{get:function(){return console.warn(`The usage of ref.current.current is deprecated and will no longer be supported.`),S.current},configurable:!0})});var w=ww((0,K.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,K.useCallback)(function(e,t){E(function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,K.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;D(r,i),(t=C.current)==null||t.call(C,r,i)};g>0&&(e=(0,_w.default)(e,g,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),function(){t.disconnect()}},[D,g]);var O=(0,K.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;Mv(O_(o)||O_(c),`The width(%s) and height(%s) are both fixed numbers,
48
- maybe you don't need to use a ResponsiveContainer.`,o,c),Mv(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var r=O_(o)?e:o,i=O_(c)?t:c;n&&n>0&&(r?i=r/n:i&&(r=i*n),p&&i>p&&(i=p)),Mv(r>0||i>0,`The width(%s) and height(%s) of chart should be greater than 0,
44
+ H${qb}M${2*i},${n}
45
+ A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return K.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${qb/8}h${qb}v${qb*3/4}h${-qb}z`,className:`recharts-legend-icon`});if(K.isValidElement(e.legendIcon)){var o=Nb({},e);return delete o.legendIcon,K.cloneElement(e.legendIcon,o)}return K.createElement(kb,{fill:a,cx:n,cy:n,size:qb,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,o=t.inactiveColor,s={x:0,y:0,width:qb,height:qb},c={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},l={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,u=d(Wb(Wb({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var f=(0,$_.default)(t.value)?null:t.value;Pv(!(0,$_.default)(t.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var p=t.inactive?o:t.color;return K.createElement(`li`,jb({className:u,style:c,key:`legend-item-${n}`},Q_(e.props,t,n)),K.createElement(Dv,{width:r,height:r,viewBox:s,style:l},e.renderIcon(t)),K.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:p}},i?i(f,t,n):f))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return K.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(K.PureComponent);Wb(Jb,`displayName`,`Legend`),Wb(Jb,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var Yb=o(((e,t)=>{var n=Qg();function r(){this.__data__=new n,this.size=0}t.exports=r})),Xb=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Zb=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Qb=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),$b=o(((e,t)=>{var n=Qg(),r=$g(),i=s_(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),ex=o(((e,t)=>{var n=Qg(),r=Yb(),i=Xb(),a=Zb(),o=Qb(),s=$b();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),tx=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),nx=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),rx=o(((e,t)=>{var n=s_(),r=tx(),i=nx();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),ix=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),ax=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),ox=o(((e,t)=>{var n=rx(),r=ix(),i=ax(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),sx=o(((e,t)=>{t.exports=Sg().Uint8Array})),cx=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),lx=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),ux=o(((e,t)=>{var n=Cg(),r=sx(),i=Kg(),a=ox(),o=cx(),s=lx(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),dx=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),fx=o(((e,t)=>{var n=dx(),r=bg();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),px=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),mx=o(((e,t)=>{function n(){return[]}t.exports=n})),hx=o(((e,t)=>{var n=px(),r=mx(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),gx=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),_x=o(((e,t)=>{var n=Eg(),r=Dg(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),vx=o(((e,t)=>{var n=_x(),r=Dg(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),yx=o(((e,t)=>{function n(){return!1}t.exports=n})),bx=o(((e,t)=>{var n=Sg(),r=yx(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),xx=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Sx=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Cx=o(((e,t)=>{var n=Eg(),r=Sx(),i=Dg(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),wx=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Tx=o(((e,t)=>{var n=xg(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Ex=o(((e,t)=>{var n=Cx(),r=wx(),i=Tx(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Dx=o(((e,t)=>{var n=gx(),r=vx(),i=bg(),a=bx(),o=xx(),s=Ex(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Ox=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),kx=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Ax=o(((e,t)=>{t.exports=kx()(Object.keys,Object)})),jx=o(((e,t)=>{var n=Ox(),r=Ax(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Mx=o(((e,t)=>{var n=jg(),r=Sx();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Nx=o(((e,t)=>{var n=Dx(),r=jx(),i=Mx();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Px=o(((e,t)=>{var n=fx(),r=hx(),i=Nx();function a(e){return n(e,i,r)}t.exports=a})),Fx=o(((e,t)=>{var n=Px(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Ix=o(((e,t)=>{t.exports=Lg()(Sg(),`DataView`)})),Lx=o(((e,t)=>{t.exports=Lg()(Sg(),`Promise`)})),Rx=o(((e,t)=>{t.exports=Lg()(Sg(),`Set`)})),zx=o(((e,t)=>{t.exports=Lg()(Sg(),`WeakMap`)})),Bx=o(((e,t)=>{var n=Ix(),r=$g(),i=Lx(),a=Rx(),o=zx(),s=Eg(),c=Pg(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),Vx=o(((e,t)=>{var n=ex(),r=ox(),i=ux(),a=Fx(),o=Bx(),s=bg(),c=bx(),l=Ex(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),Hx=o(((e,t)=>{var n=Vx(),r=Dg();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Ux=o(((e,t)=>{var n=ex(),r=Hx(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Wx=o(((e,t)=>{var n=Ag();function r(e){return e===e&&!n(e)}t.exports=r})),Gx=o(((e,t)=>{var n=Wx(),r=Nx();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Kx=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),qx=o(((e,t)=>{var n=Ux(),r=Gx(),i=Kx();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Jx=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Yx=o(((e,t)=>{var n=m_(),r=vx(),i=bg(),a=xx(),o=Sx(),s=h_();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),Xx=o(((e,t)=>{var n=Jx(),r=Yx();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Zx=o(((e,t)=>{var n=Hx(),r=__(),i=Xx(),a=kg(),o=Wx(),s=Kx(),c=h_(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Qx=o(((e,t)=>{function n(e){return e}t.exports=n})),$x=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),eS=o(((e,t)=>{var n=g_();function r(e){return function(t){return n(t,e)}}t.exports=r})),tS=o(((e,t)=>{var n=$x(),r=eS(),i=kg(),a=h_();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),nS=o(((e,t)=>{var n=qx(),r=Zx(),i=Qx(),a=bg(),o=tS();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),rS=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),iS=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),aS=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),oS=o(((e,t)=>{var n=rS(),r=iS(),i=aS();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),sS=o(((e,t)=>{var n=oS();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),cS=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),lS=o(((e,t)=>{function n(){}t.exports=n})),uS=o(((e,t)=>{var n=Rx(),r=lS(),i=lx();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),dS=o(((e,t)=>{var n=rx(),r=sS(),i=cS(),a=ax(),o=uS(),s=lx(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),fS=l(o(((e,t)=>{var n=nS(),r=dS();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i}))());function pS(e,t,n){return t===!0?(0,fS.default)(e,n):(0,$_.default)(t)?(0,fS.default)(e,t):e}function mS(e){"@babel/helpers - typeof";return mS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mS(e)}var hS=[`ref`];function gS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gS(Object(n),!0).forEach(function(t){OS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vS(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,kS(r.key),r)}}function bS(e,t,n){return t&&yS(e.prototype,t),n&&yS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xS(e,t,n){return t=TS(t),SS(e,wS()?Reflect.construct(t,n||[],TS(e).constructor):t.apply(e,n))}function SS(e,t){if(t&&(mS(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return CS(e)}function CS(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wS=function(){return!!e})()}function TS(e){return TS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TS(e)}function ES(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DS(e,t)}function OS(e,t,n){return t=kS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kS(e){var t=AS(e,`string`);return mS(t)==`symbol`?t:t+``}function AS(e,t){if(mS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jS(e,t){if(e==null)return{};var n=MS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NS(e){return e.value}function PS(e,t){if(K.isValidElement(e))return K.cloneElement(e,t);if(typeof e==`function`)return K.createElement(e,t);t.ref;var n=jS(t,hS);return K.createElement(Jb,n)}var FS=1,IS=function(e){function t(){var e;vS(this,t);var n=[...arguments];return e=xS(this,t,[].concat(n)),OS(e,`lastBoundingBox`,{width:-1,height:-1}),e}return ES(t,e),bS(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>FS||Math.abs(t.height-this.lastBoundingBox.height)>FS)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_S({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return _S(_S({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=_S(_S({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return K.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},PS(n,_S(_S({},this.props),{},{payload:pS(s,o,NS)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=_S(_S({},this.defaultProps),e.props).layout;return n===`vertical`&&Z(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(K.PureComponent);OS(IS,`displayName`,`Legend`),OS(IS,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var LS=o(((e,t)=>{var n=Cg(),r=vx(),i=bg(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),RS=o(((e,t)=>{var n=dx(),r=LS();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),zS=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),BS=o(((e,t)=>{t.exports=zS()()})),VS=o(((e,t)=>{var n=BS(),r=Nx();function i(e,t){return e&&n(e,t,r)}t.exports=i})),HS=o(((e,t)=>{var n=Mx();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),US=o(((e,t)=>{var n=VS();t.exports=HS()(n)})),WS=o(((e,t)=>{var n=US(),r=Mx();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),GS=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),KS=o(((e,t)=>{var n=Og();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),qS=o(((e,t)=>{var n=KS();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),JS=o(((e,t)=>{var n=d_(),r=g_(),i=nS(),a=WS(),o=GS(),s=wx(),c=qS(),l=Qx(),u=bg();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),YS=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),XS=o(((e,t)=>{var n=YS(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),ZS=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),QS=o(((e,t)=>{var n=Lg();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),$S=o(((e,t)=>{var n=ZS(),r=QS(),i=Qx();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),eC=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),tC=o(((e,t)=>{var n=$S();t.exports=eC()(n)})),nC=o(((e,t)=>{var n=Qx(),r=XS(),i=tC();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),rC=o(((e,t)=>{var n=Kg(),r=Mx(),i=xx(),a=Ag();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),iC=l(o(((e,t)=>{var n=RS(),r=JS(),i=nC(),a=rC();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})}))());function aC(e){"@babel/helpers - typeof";return aC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},aC(e)}function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}function sC(e,t){return fC(e)||dC(e,t)||lC(e,t)||cC()}function cC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lC(e,t){if(e){if(typeof e==`string`)return uC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uC(e,t)}}function uC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function fC(e){if(Array.isArray(e))return e}function pC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pC(Object(n),!0).forEach(function(t){hC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hC(e,t,n){return t=gC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gC(e){var t=_C(e,`string`);return aC(t)==`symbol`?t:t+``}function _C(e,t){if(aC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(aC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vC(e){return Array.isArray(e)&&M_(e[0])&&M_(e[1])?e.join(` ~ `):e}var yC=function(e){var t=e.separator,n=t===void 0?` : `:t,r=e.contentStyle,i=r===void 0?{}:r,a=e.itemStyle,o=a===void 0?{}:a,s=e.labelStyle,c=s===void 0?{}:s,l=e.payload,u=e.formatter,f=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,h=e.label,g=e.labelFormatter,_=e.accessibilityLayer,v=_===void 0?!1:_,y=function(){if(l&&l.length){var e={padding:0,margin:0},t=(f?(0,iC.default)(l,f):l).map(function(e,t){if(e.type===`none`)return null;var r=mC({display:`block`,paddingTop:4,paddingBottom:4,color:e.color||`#000`},o),i=e.formatter||u||vC,a=e.value,s=e.name,c=a,d=s;if(i&&c!=null&&d!=null){var f=i(a,s,e,t,l);if(Array.isArray(f)){var p=sC(f,2);c=p[0],d=p[1]}else c=f}return K.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:r},M_(d)?K.createElement(`span`,{className:`recharts-tooltip-item-name`},d):null,M_(d)?K.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,K.createElement(`span`,{className:`recharts-tooltip-item-value`},c),K.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return K.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},b=mC({margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},i),x=mC({margin:0},c),S=!(0,O_.default)(h),C=S?h:``,w=d(`recharts-default-tooltip`,p),T=d(`recharts-tooltip-label`,m);S&&g&&l!=null&&(C=g(h,l));var E=v?{role:`status`,"aria-live":`assertive`}:{};return K.createElement(`div`,oC({className:w,style:b},E),K.createElement(`p`,{className:T,style:x},K.isValidElement(C)?C:`${C}`),y())};function bC(e){"@babel/helpers - typeof";return bC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bC(e)}function xC(e,t,n){return t=SC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SC(e){var t=CC(e,`string`);return bC(t)==`symbol`?t:t+``}function CC(e,t){if(bC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wC=`recharts-tooltip-wrapper`,TC={visibility:`hidden`};function EC(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return d(wC,xC(xC(xC(xC({},`${wC}-right`,Z(n)&&t&&Z(t.x)&&n>=t.x),`${wC}-left`,Z(n)&&t&&Z(t.x)&&n<t.x),`${wC}-bottom`,Z(r)&&t&&Z(t.y)&&r>=t.y),`${wC}-top`,Z(r)&&t&&Z(t.y)&&r<t.y))}function DC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Z(a[r]))return a[r];var u=n[r]-s-i,d=n[r]+i;return t[r]?o[r]?u:d:o[r]?u<c[r]?Math.max(d,c[r]):Math.max(u,c[r]):d+s>c[r]+l?Math.max(u,c[r]):Math.max(d,c[r])}function OC(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function kC(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return o.height>0&&o.width>0&&n?(u=DC({allowEscapeViewBox:t,coordinate:n,key:`x`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),d=DC({allowEscapeViewBox:t,coordinate:n,key:`y`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=OC({translateX:u,translateY:d,useTranslate3d:s})):l=TC,{cssProperties:l,cssClasses:EC({translateX:u,translateY:d,coordinate:n})}}function AC(e){"@babel/helpers - typeof";return AC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},AC(e)}function jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jC(Object(n),!0).forEach(function(t){UC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,WC(r.key),r)}}function FC(e,t,n){return t&&PC(e.prototype,t),n&&PC(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function IC(e,t,n){return t=BC(t),LC(e,zC()?Reflect.construct(t,n||[],BC(e).constructor):t.apply(e,n))}function LC(e,t){if(t&&(AC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return RC(e)}function RC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function zC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zC=function(){return!!e})()}function BC(e){return BC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BC(e)}function VC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&HC(e,t)}function HC(e,t){return HC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HC(e,t)}function UC(e,t,n){return t=WC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WC(e){var t=GC(e,`string`);return AC(t)==`symbol`?t:t+``}function GC(e,t){if(AC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(AC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var KC=1,qC=function(e){function t(){var e;NC(this,t);var n=[...arguments];return e=IC(this,t,[].concat(n)),UC(e,`state`,{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),UC(e,`handleKeyDown`,function(t){t.key===`Escape`&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:e.props.coordinate?.x??0,y:e.props.coordinate?.y??0}})}),e}return VC(t,e),FC(t,[{key:`updateBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>KC||Math.abs(e.height-this.state.lastBoundingBox.height)>KC)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else (this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:`componentDidMount`,value:function(){document.addEventListener(`keydown`,this.handleKeyDown),this.updateBBox()}},{key:`componentWillUnmount`,value:function(){document.removeEventListener(`keydown`,this.handleKeyDown)}},{key:`componentDidUpdate`,value:function(){this.props.active&&this.updateBBox(),this.state.dismissed&&(this.props.coordinate?.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate?.y!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.children,s=t.coordinate,c=t.hasPayload,l=t.isAnimationActive,u=t.offset,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.viewBox,h=t.wrapperStyle,g=kC({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:u,position:d,reverseDirection:f,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:m}),_=g.cssClasses,v=g.cssProperties,y=MC(MC({transition:l&&n?`transform ${i}ms ${a}`:void 0},v),{},{pointerEvents:`none`,visibility:!this.state.dismissed&&n&&c?`visible`:`hidden`,position:`absolute`,top:0,left:0},h);return K.createElement(`div`,{tabIndex:-1,className:_,style:y,ref:function(t){e.wrapperNode=t}},o)}}])}(K.PureComponent),JC={isSsr:function(){return!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)}(),get:function(e){return JC[e]},set:function(e,t){if(typeof e==`string`)JC[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){JC[t]=e[t]})}}};function YC(e){"@babel/helpers - typeof";return YC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YC(e)}function XC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XC(Object(n),!0).forEach(function(t){cw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,lw(r.key),r)}}function ew(e,t,n){return t&&$C(e.prototype,t),n&&$C(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function tw(e,t,n){return t=aw(t),nw(e,iw()?Reflect.construct(t,n||[],aw(e).constructor):t.apply(e,n))}function nw(e,t){if(t&&(YC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return rw(e)}function rw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function iw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iw=function(){return!!e})()}function aw(e){return aw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aw(e)}function ow(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&sw(e,t)}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sw(e,t)}function cw(e,t,n){return t=lw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lw(e){var t=uw(e,`string`);return YC(t)==`symbol`?t:t+``}function uw(e,t){if(YC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dw(e){return e.dataKey}function fw(e,t){return K.isValidElement(e)?K.cloneElement(e,t):typeof e==`function`?K.createElement(e,t):K.createElement(yC,t)}var pw=function(e){function t(){return QC(this,t),tw(this,t,arguments)}return ow(t,e),ew(t,[{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.coordinate,c=t.filterNull,l=t.isAnimationActive,u=t.offset,d=t.payload,f=t.payloadUniqBy,p=t.position,m=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,_=t.wrapperStyle,v=d??[];c&&v.length&&(v=pS(d.filter(function(t){return t.value!=null&&(t.hide!==!0||e.props.includeHidden)}),f,dw));var y=v.length>0;return K.createElement(qC,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:l,active:n,coordinate:s,hasPayload:y,offset:u,position:p,reverseDirection:m,useTranslate3d:h,viewBox:g,wrapperStyle:_},fw(o,ZC(ZC({},this.props),{},{payload:v})))}}])}(K.PureComponent);cw(pw,`displayName`,`Tooltip`),cw(pw,`defaultProps`,{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!JC.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var mw=o(((e,t)=>{var n=Sg();t.exports=function(){return n.Date.now()}})),hw=o(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),gw=o(((e,t)=>{var n=hw(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),_w=o(((e,t)=>{var n=gw(),r=Ag(),i=Og(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),vw=o(((e,t)=>{var n=Ag(),r=mw(),i=_w(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),yw=l(o(((e,t)=>{var n=vw(),r=Ag(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))());function bw(e){"@babel/helpers - typeof";return bw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bw(e)}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xw(Object(n),!0).forEach(function(t){Cw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cw(e,t,n){return t=ww(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ww(e){var t=Tw(e,`string`);return bw(t)==`symbol`?t:t+``}function Tw(e,t){if(bw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ew(e,t){return jw(e)||Aw(e,t)||Ow(e,t)||Dw()}function Dw(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ow(e,t){if(e){if(typeof e==`string`)return kw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kw(e,t)}}function kw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aw(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function jw(e){if(Array.isArray(e))return e}var Mw=(0,K.forwardRef)(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?`100%`:a,s=e.height,c=s===void 0?`100%`:s,l=e.minWidth,u=l===void 0?0:l,f=e.minHeight,p=e.maxHeight,m=e.children,h=e.debounce,g=h===void 0?0:h,_=e.id,v=e.className,y=e.onResize,b=e.style,x=b===void 0?{}:b,S=(0,K.useRef)(null),C=(0,K.useRef)();C.current=y,(0,K.useImperativeHandle)(t,function(){return Object.defineProperty(S.current,`current`,{get:function(){return console.warn(`The usage of ref.current.current is deprecated and will no longer be supported.`),S.current},configurable:!0})});var w=Ew((0,K.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,K.useCallback)(function(e,t){E(function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,K.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;D(r,i),(t=C.current)==null||t.call(C,r,i)};g>0&&(e=(0,yw.default)(e,g,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),function(){t.disconnect()}},[D,g]);var O=(0,K.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;Pv(A_(o)||A_(c),`The width(%s) and height(%s) are both fixed numbers,
48
+ maybe you don't need to use a ResponsiveContainer.`,o,c),Pv(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var r=A_(o)?e:o,i=A_(c)?t:c;n&&n>0&&(r?i=r/n:i&&(r=i*n),p&&i>p&&(i=p)),Pv(r>0||i>0,`The width(%s) and height(%s) of chart should be greater than 0,
49
49
  please check the style of container, or the props width(%s) and height(%s),
50
50
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
51
- height and width.`,r,i,o,c,u,f,n);var a=!Array.isArray(m)&&av(m.type).endsWith(`Chart`);return K.Children.map(m,function(e){return K.isValidElement(e)?(0,K.cloneElement)(e,bw({width:r,height:i},a?{style:bw({height:`100%`,width:`100%`,maxHeight:i,maxWidth:r},e.props.style)}:{})):e})},[n,m,c,p,f,u,T,o]);return K.createElement(`div`,{id:_?`${_}`:void 0,className:d(`recharts-responsive-container`,v),style:bw(bw({},x),{},{width:o,height:c,minWidth:u,minHeight:f,maxHeight:p}),ref:S},O)}),jw=function(e){return null};jw.displayName=`Cell`;function Mw(e){"@babel/helpers - typeof";return Mw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mw(e)}function Nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nw(Object(n),!0).forEach(function(t){Fw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fw(e,t,n){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iw(e){var t=Lw(e,`string`);return Mw(t)==`symbol`?t:t+``}function Lw(e,t){if(Mw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Rw={widthCache:{},cacheCount:0},zw=2e3,Bw={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},Vw=`recharts_measurement_span`;function Hw(e){var t=Pw({},e);return Object.keys(t).forEach(function(e){t[e]||delete t[e]}),t}var Uw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||KC.isSsr)return{width:0,height:0};var n=Hw(t),r=JSON.stringify({text:e,copyStyle:n});if(Rw.widthCache[r])return Rw.widthCache[r];try{var i=document.getElementById(Vw);i||(i=document.createElement(`span`),i.setAttribute(`id`,Vw),i.setAttribute(`aria-hidden`,`true`),document.body.appendChild(i));var a=Pw(Pw({},Bw),n);Object.assign(i.style,a),i.textContent=`${e}`;var o=i.getBoundingClientRect(),s={width:o.width,height:o.height};return Rw.widthCache[r]=s,++Rw.cacheCount>zw&&(Rw.cacheCount=0,Rw.widthCache={}),s}catch{return{width:0,height:0}}},Ww=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Gw(e){"@babel/helpers - typeof";return Gw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gw(e)}function Kw(e,t){return Zw(e)||Xw(e,t)||Jw(e,t)||qw()}function qw(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
52
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jw(e,t){if(e){if(typeof e==`string`)return Yw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xw(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Zw(e){if(Array.isArray(e))return e}function Qw(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,tT(r.key),r)}}function eT(e,t,n){return t&&$w(e.prototype,t),n&&$w(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function tT(e){var t=nT(e,`string`);return Gw(t)==`symbol`?t:t+``}function nT(e,t){if(Gw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Gw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,oT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,sT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},cT=Object.keys(sT),lT=`NaN`;function uT(e,t){return e*sT[t]}var dT=function(){function e(t,n){Qw(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=``),n!==``&&!aT.test(n)&&(this.num=NaN,this.unit=``),cT.includes(n)&&(this.num=uT(t,n),this.unit=`px`)}return eT(e,[{key:`add`,value:function(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}},{key:`subtract`,value:function(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}},{key:`multiply`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}},{key:`divide`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}},{key:`toString`,value:function(){return`${this.num}${this.unit}`}},{key:`isNaN`,value:function(){return Number.isNaN(this.num)}}],[{key:`parse`,value:function(t){var n=Kw(oT.exec(t)??[],3),r=n[1],i=n[2];return new e(parseFloat(r),i??``)}}])}();function fT(e){if(e.includes(lT))return lT;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=Kw(rT.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=dT.parse(r??``),s=dT.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return lT;t=t.replace(rT,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=Kw(iT.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=dT.parse(u??``),m=dT.parse(f??``),h=d===`+`?p.add(m):p.subtract(m);if(h.isNaN())return lT;t=t.replace(iT,h.toString())}return t}var pT=/\(([^()]*)\)/;function mT(e){for(var t=e;t.includes(`(`);){var n=Kw(pT.exec(t),2)[1];t=t.replace(pT,fT(n))}return t}function hT(e){var t=e.replace(/\s+/g,``);return t=mT(t),t=fT(t),t}function gT(e){try{return hT(e)}catch{return lT}}function _T(e){var t=gT(e.slice(5,-1));return t===lT?``:t}var vT=[`x`,`y`,`lineHeight`,`capHeight`,`scaleToFit`,`textAnchor`,`verticalAnchor`,`fill`],yT=[`dx`,`dy`,`angle`,`className`,`breakAll`];function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bT.apply(this,arguments)}function xT(e,t){if(e==null)return{};var n=ST(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ST(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CT(e,t){return OT(e)||DT(e,t)||TT(e,t)||wT()}function wT(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TT(e,t){if(e){if(typeof e==`string`)return ET(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ET(e,t)}}function ET(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function DT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function OT(e){if(Array.isArray(e))return e}var kT=/[ \f\n\r\t\v\u2028\u2029]+/,AT=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return(0,E_.default)(t)||(i=n?t.toString().split(``):t.toString().split(kT)),{wordsWithComputedWidth:i.map(function(e){return{word:e,width:Uw(e,r).width}}),spaceWidth:n?0:Uw(`\xA0`,r).width}}catch{return null}},jT=function(e,t,n,r,i){var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=Z(a),u=o,d=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t){var a=t.word,o=t.width,s=e[e.length-1];if(s&&(r==null||i||s.width+o+n<Number(r)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[])},f=d(t),p=function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})};if(!l)return f;for(var m=`…`,h=function(e){var t=AT({breakAll:c,style:s,children:u.slice(0,e)+m}).wordsWithComputedWidth,n=d(t);return[n.length>a||p(n).width>Number(r),n]},g=0,_=u.length-1,v=0,y;g<=_&&v<=u.length-1;){var b=Math.floor((g+_)/2),x=CT(h(b-1),2),S=x[0],C=x[1],w=CT(h(b),1)[0];if(!S&&!w&&(g=b+1),S&&w&&(_=b-1),!S&&w){y=C;break}v++}return y||f},MT=function(e){return[{words:(0,E_.default)(e)?[]:e.toString().split(kT)}]},NT=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!KC.isSsr){var s,c,l=AT({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return MT(r);return jT({breakAll:a,children:r,maxLines:o,style:i},s,c,t,n)}return MT(r)},PT=`#808080`,FT=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.lineHeight,o=a===void 0?`1em`:a,s=e.capHeight,c=s===void 0?`0.71em`:s,l=e.scaleToFit,u=l===void 0?!1:l,f=e.textAnchor,p=f===void 0?`start`:f,m=e.verticalAnchor,h=m===void 0?`end`:m,g=e.fill,_=g===void 0?PT:g,v=xT(e,vT),y=(0,K.useMemo)(function(){return NT({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:u,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,u,v.style,v.width]),b=v.dx,x=v.dy,S=v.angle,C=v.className,w=v.breakAll,T=xT(v,yT);if(!A_(n)||!A_(i))return null;var E=n+(Z(b)?b:0),D=i+(Z(x)?x:0),O;switch(h){case`start`:O=_T(`calc(${c})`);break;case`middle`:O=_T(`calc(${(y.length-1)/2} * -${o} + (${c} / 2))`);break;default:O=_T(`calc(${y.length-1} * -${o})`);break}var k=[];if(u){var A=y[0].width,j=v.width;k.push(`scale(${(Z(j)?j/A:1)/A})`)}return S&&k.push(`rotate(${S}, ${E}, ${D})`),k.length&&(T.transform=k.join(` `)),K.createElement(`text`,bT({},Q(T,!0),{x:E,y:D,className:d(`recharts-text`,C),textAnchor:p,fill:_.includes(`url`)?PT:_}),y.map(function(e,t){var n=e.words.join(w?``:` `);return K.createElement(`tspan`,{x:E,dy:t===0?O:o,key:`${n}-${t}`},n)}))};function IT(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function RT(e){let t,n,r;e.length===2?(t=e===IT||e===LT?e:zT,n=e,r=e):(t=IT,n=(t,n)=>IT(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function zT(){return 0}function BT(e){return e===null?NaN:+e}function*VT(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var HT=RT(IT),UT=HT.right;HT.left,RT(BT).center;var WT=class extends Map{constructor(e,t=JT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(GT(this,e))}has(e){return super.has(GT(this,e))}set(e,t){return super.set(KT(this,e),t)}delete(e){return super.delete(qT(this,e))}};function GT({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function KT({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function qT({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function JT(e){return typeof e==`object`&&e?e.valueOf():e}function YT(e=IT){if(e===IT)return XT;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function XT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var ZT=Math.sqrt(50),QT=Math.sqrt(10),$T=Math.sqrt(2);function eE(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=ZT?10:a>=QT?5:a>=$T?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?eE(e,t,n*2):[s,c,l]}function tE(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?eE(t,e,n):eE(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function nE(e,t,n){return t=+t,e=+e,n=+n,eE(e,t,n)[2]}function rE(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?nE(t,e,n):nE(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function iE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function aE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function oE(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?XT:YT(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));oE(e,t,u,d,i)}let a=e[t],o=n,s=r;for(sE(e,n,t),i(e[r],a)>0&&sE(e,n,r);o<s;){for(sE(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?sE(e,n,s):(++s,sE(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sE(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function cE(e,t,n){if(e=Float64Array.from(VT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return aE(e);if(t>=1)return iE(e);var r,i=(r-1)*t,a=Math.floor(i),o=iE(oE(e,a).subarray(0,a+1));return o+(aE(e.subarray(a+1))-o)*(i-a)}}function lE(e,t,n=BT){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function uE(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function dE(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function fE(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var pE=Symbol(`implicit`);function mE(){var e=new WT,t=[],n=[],r=pE;function i(i){let a=e.get(i);if(a===void 0){if(r!==pE)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new WT;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return mE(t,n).unknown(r)},dE.apply(i,arguments),i}function hE(){var e=mE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=uE(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return hE(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},dE.apply(d(),arguments)}function gE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gE(t())},e}function _E(){return gE(hE.apply(null,arguments).paddingInner(1))}function vE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yE(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bE(){}var xE=.7,SE=1/xE,CE=`\\s*([+-]?\\d+)\\s*`,wE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,TE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,EE=/^#([0-9a-f]{3,8})$/,DE=RegExp(`^rgb\\(${CE},${CE},${CE}\\)$`),OE=RegExp(`^rgb\\(${TE},${TE},${TE}\\)$`),kE=RegExp(`^rgba\\(${CE},${CE},${CE},${wE}\\)$`),AE=RegExp(`^rgba\\(${TE},${TE},${TE},${wE}\\)$`),jE=RegExp(`^hsl\\(${wE},${TE},${TE}\\)$`),ME=RegExp(`^hsla\\(${wE},${TE},${TE},${wE}\\)$`),NE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};vE(bE,RE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PE,formatHex:PE,formatHex8:FE,formatHsl:IE,formatRgb:LE,toString:LE});function PE(){return this.rgb().formatHex()}function FE(){return this.rgb().formatHex8()}function IE(){return ZE(this).formatHsl()}function LE(){return this.rgb().formatRgb()}function RE(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=EE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?zE(t):n===3?new UE(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?BE(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?BE(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=DE.exec(e))?new UE(t[1],t[2],t[3],1):(t=OE.exec(e))?new UE(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kE.exec(e))?BE(t[1],t[2],t[3],t[4]):(t=AE.exec(e))?BE(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jE.exec(e))?XE(t[1],t[2]/100,t[3]/100,1):(t=ME.exec(e))?XE(t[1],t[2]/100,t[3]/100,t[4]):NE.hasOwnProperty(e)?zE(NE[e]):e===`transparent`?new UE(NaN,NaN,NaN,0):null}function zE(e){return new UE(e>>16&255,e>>8&255,e&255,1)}function BE(e,t,n,r){return r<=0&&(e=t=n=NaN),new UE(e,t,n,r)}function VE(e){return e instanceof bE||(e=RE(e)),e?(e=e.rgb(),new UE(e.r,e.g,e.b,e.opacity)):new UE}function HE(e,t,n,r){return arguments.length===1?VE(e):new UE(e,t,n,r??1)}function UE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vE(UE,HE,yE(bE,{brighter(e){return e=e==null?SE:SE**+e,new UE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xE:xE**+e,new UE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new UE(JE(this.r),JE(this.g),JE(this.b),qE(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:WE,formatHex:WE,formatHex8:GE,formatRgb:KE,toString:KE}));function WE(){return`#${YE(this.r)}${YE(this.g)}${YE(this.b)}`}function GE(){return`#${YE(this.r)}${YE(this.g)}${YE(this.b)}${YE((isNaN(this.opacity)?1:this.opacity)*255)}`}function KE(){let e=qE(this.opacity);return`${e===1?`rgb(`:`rgba(`}${JE(this.r)}, ${JE(this.g)}, ${JE(this.b)}${e===1?`)`:`, ${e})`}`}function qE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function JE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function YE(e){return e=JE(e),(e<16?`0`:``)+e.toString(16)}function XE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $E(e,t,n,r)}function ZE(e){if(e instanceof $E)return new $E(e.h,e.s,e.l,e.opacity);if(e instanceof bE||(e=RE(e)),!e)return new $E;if(e instanceof $E)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new $E(o,s,c,e.opacity)}function QE(e,t,n,r){return arguments.length===1?ZE(e):new $E(e,t,n,r??1)}function $E(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vE($E,QE,yE(bE,{brighter(e){return e=e==null?SE:SE**+e,new $E(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xE:xE**+e,new $E(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new UE(nD(e>=240?e-240:e+120,i,r),nD(e,i,r),nD(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new $E(eD(this.h),tD(this.s),tD(this.l),qE(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=qE(this.opacity);return`${e===1?`hsl(`:`hsla(`}${eD(this.h)}, ${tD(this.s)*100}%, ${tD(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function eD(e){return e=(e||0)%360,e<0?e+360:e}function tD(e){return Math.max(0,Math.min(1,e||0))}function nD(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var rD=e=>()=>e;function iD(e,t){return function(n){return e+n*t}}function aD(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function oD(e){return(e=+e)==1?sD:function(t,n){return n-t?aD(t,n,e):rD(isNaN(t)?n:t)}}function sD(e,t){var n=t-e;return n?iD(e,n):rD(isNaN(e)?t:e)}var cD=(function e(t){var n=oD(t);function r(e,t){var r=n((e=HE(e)).r,(t=HE(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=sD(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function lD(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function uD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=bD(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function fD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function pD(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function mD(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=bD(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var hD=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gD=new RegExp(hD.source,`g`);function _D(e){return function(){return e}}function vD(e){return function(t){return e(t)+``}}function yD(e,t){var n=hD.lastIndex=gD.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=hD.exec(e))&&(i=gD.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:pD(r,i)})),n=gD.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?vD(c[0].x):_D(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function bD(e,t){var n=typeof t,r;return t==null||n===`boolean`?rD(t):(n===`number`?pD:n===`string`?(r=RE(t))?(t=r,cD):yD:t instanceof RE?cD:t instanceof Date?fD:uD(t)?lD:Array.isArray(t)?dD:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?mD:pD)(e,t)}function xD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function SD(e,t){t===void 0&&(t=e,e=bD);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function CD(e){return function(){return e}}function wD(e){return+e}var TD=[0,1];function ED(e){return e}function DD(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:CD(isNaN(t)?NaN:.5)}function OD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function kD(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=DD(i,r),a=n(o,a)):(r=DD(r,i),a=n(a,o)),function(e){return a(r(e))}}function AD(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=DD(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=UT(e,t,1,r)-1;return a[n](i[n](t))}}function jD(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function MD(){var e=TD,t=TD,n=bD,r,i,a,o=ED,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==ED&&(o=OD(e[0],e[n-1])),s=n>2?AD:kD,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),pD))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,wD),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=xD,u()},d.clamp=function(e){return arguments.length?(o=e?!0:ED,u()):o!==ED},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function ND(){return MD()(ED,ED)}function PD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function FD(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ID(e){return e=FD(Math.abs(e)),e?e[1]:NaN}function LD(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function RD(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var zD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function BD(e){if(!(t=zD.exec(e)))throw Error(`invalid format: `+e);var t;return new VD({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}BD.prototype=VD.prototype;function VD(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}VD.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function HD(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var UD;function WD(e,t){var n=FD(e,t);if(!n)return UD=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(UD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+FD(e,Math.max(0,t+a-1))[0]}function GD(e,t){var n=FD(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var KD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:PD,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>GD(e*100,t),r:GD,s:WD,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function qD(e){return e}var JD=Array.prototype.map,YD=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function XD(e){var t=e.grouping===void 0||e.thousands===void 0?qD:LD(JD.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?qD:RD(JD.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=BD(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):KD[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=KD[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=HD(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&UD!==void 0?YD[8+UD/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(ID(t)/3)))*3,r=10**-n,i=l((e=BD(e),e.type=`f`,e),{suffix:YD[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var ZD,QD,$D;eO({thousands:`,`,grouping:[3],currency:[`$`,``]});function eO(e){return ZD=XD(e),QD=ZD.format,$D=ZD.formatPrefix,ZD}function tO(e){return Math.max(0,-ID(Math.abs(e)))}function nO(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ID(t)/3)))*3-ID(Math.abs(e)))}function rO(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ID(t)-ID(e))+1}function iO(e,t,n,r){var i=rE(e,t,n),a;switch(r=BD(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=nO(i,o))&&(r.precision=a),$D(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=rO(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=tO(i))&&(r.precision=a-(r.type===`%`)*2);break}return QD(r)}function aO(e){var t=e.domain;return e.ticks=function(e){var n=t();return tE(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return iO(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=nE(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function oO(){var e=ND();return e.copy=function(){return jD(e,oO())},dE.apply(e,arguments),aO(e)}function sO(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,wD),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return sO(e).unknown(t)},e=arguments.length?Array.from(e,wD):[0,1],aO(n)}function cO(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function lO(e){return Math.log(e)}function uO(e){return Math.exp(e)}function dO(e){return-Math.log(-e)}function fO(e){return-Math.exp(-e)}function pO(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function mO(e){return e===10?pO:e===Math.E?Math.exp:t=>e**+t}function hO(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function gO(e){return(t,n)=>-e(-t,n)}function _O(e){let t=e(lO,uO),n=t.domain,r=10,i,a;function o(){return i=hO(r),a=mO(r),n()[0]<0?(i=gO(i),a=gO(a),e(dO,fO)):e(lO,uO),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=tE(o,s,p))}else m=tE(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=BD(n)).precision==null&&(n.trim=!0),n=QD(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(cO(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function vO(){let e=_O(MD()).domain([1,10]);return e.copy=()=>jD(e,vO()).base(e.base()),dE.apply(e,arguments),e}function yO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xO(e){var t=1,n=e(yO(t),bO(t));return n.constant=function(n){return arguments.length?e(yO(t=+n),bO(t)):t},aO(n)}function SO(){var e=xO(MD());return e.copy=function(){return jD(e,SO()).constant(e.constant())},dE.apply(e,arguments)}function CO(e){return function(t){return t<0?-((-t)**+e):t**+e}}function wO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function TO(e){return e<0?-e*e:e*e}function EO(e){var t=e(ED,ED),n=1;function r(){return n===1?e(ED,ED):n===.5?e(wO,TO):e(CO(n),CO(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},aO(t)}function DO(){var e=EO(MD());return e.copy=function(){return jD(e,DO()).exponent(e.exponent())},dE.apply(e,arguments),e}function OO(){return DO.apply(null,arguments).exponent(.5)}function kO(e){return Math.sign(e)*e*e}function AO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function jO(){var e=ND(),t=[0,1],n=!1,r;function i(t){var i=AO(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(kO(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,wD)).map(kO)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return jO(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},dE.apply(i,arguments),aO(i)}function MO(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=lE(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[UT(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(IT),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return MO().domain(e).range(t).unknown(r)},dE.apply(a,arguments)}function NO(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[UT(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return NO().domain([e,t]).range(i).unknown(a)},dE.apply(aO(o),arguments)}function PO(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[UT(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return PO().domain(e).range(t).unknown(n)},dE.apply(i,arguments)}var FO=new Date,IO=new Date;function LO(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>LO(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(FO.setTime(+t),IO.setTime(+r),e(FO),e(IO),Math.floor(n(FO,IO))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var RO=LO(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);RO.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?LO(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):RO),RO.range;var zO=1e3,BO=zO*60,VO=BO*60,HO=VO*24,UO=HO*7,WO=HO*30,GO=HO*365,KO=LO(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*zO)},(e,t)=>(t-e)/zO,e=>e.getUTCSeconds());KO.range;var qO=LO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zO)},(e,t)=>{e.setTime(+e+t*BO)},(e,t)=>(t-e)/BO,e=>e.getMinutes());qO.range;var JO=LO(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*BO)},(e,t)=>(t-e)/BO,e=>e.getUTCMinutes());JO.range;var YO=LO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*zO-e.getMinutes()*BO)},(e,t)=>{e.setTime(+e+t*VO)},(e,t)=>(t-e)/VO,e=>e.getHours());YO.range;var XO=LO(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*VO)},(e,t)=>(t-e)/VO,e=>e.getUTCHours());XO.range;var ZO=LO(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BO)/HO,e=>e.getDate()-1);ZO.range;var QO=LO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/HO,e=>e.getUTCDate()-1);QO.range;var $O=LO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/HO,e=>Math.floor(e/HO));$O.range;function ek(e){return LO(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*BO)/UO)}var tk=ek(0),nk=ek(1),rk=ek(2),ik=ek(3),ak=ek(4),ok=ek(5),sk=ek(6);tk.range,nk.range,rk.range,ik.range,ak.range,ok.range,sk.range;function ck(e){return LO(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/UO)}var lk=ck(0),uk=ck(1),dk=ck(2),fk=ck(3),pk=ck(4),mk=ck(5),hk=ck(6);lk.range,uk.range,dk.range,fk.range,pk.range,mk.range,hk.range;var gk=LO(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());gk.range;var _k=LO(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_k.range;var vk=LO(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vk.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:LO(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),vk.range;var yk=LO(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yk.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:LO(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),yk.range;function bk(e,t,n,r,i,a){let o=[[KO,1,zO],[KO,5,5*zO],[KO,15,15*zO],[KO,30,30*zO],[a,1,BO],[a,5,5*BO],[a,15,15*BO],[a,30,30*BO],[i,1,VO],[i,3,3*VO],[i,6,6*VO],[i,12,12*VO],[r,1,HO],[r,2,2*HO],[n,1,UO],[t,1,WO],[t,3,3*WO],[e,1,GO]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=RT(([,,e])=>e).right(o,i);if(a===o.length)return e.every(rE(t/GO,n/GO,r));if(a===0)return RO.every(Math.max(rE(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[xk,Sk]=bk(yk,_k,lk,$O,XO,JO),[Ck,wk]=bk(vk,gk,tk,ZO,YO,qO);function Tk(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ek(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Dk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ok(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Fk(i),u=Ik(i),d=Fk(a),f=Ik(a),p=Fk(o),m=Ik(o),h=Fk(s),g=Ik(s),_=Fk(c),v=Ik(c),y={a:N,A:P,b:F,B:I,c:null,d:rA,e:rA,f:cA,g:yA,G:xA,H:iA,I:aA,j:oA,L:sA,m:lA,M:uA,p:ee,q:L,Q:WA,s:GA,S:dA,u:fA,U:pA,V:hA,w:gA,W:_A,x:null,X:null,y:vA,Y:bA,Z:SA,"%":UA},b={a:R,A:z,b:B,B:V,c:null,d:CA,e:CA,f:OA,g:zA,G:VA,H:wA,I:TA,j:EA,L:DA,m:kA,M:AA,p:te,q:H,Q:WA,s:GA,S:jA,u:MA,U:NA,V:FA,w:IA,W:LA,x:null,X:null,y:RA,Y:BA,Z:HA,"%":UA},x={a:E,A:D,b:O,B:k,c:A,d:qk,e:qk,f:$k,g:Uk,G:Hk,H:Yk,I:Yk,j:Jk,L:Qk,m:Kk,M:Xk,p:T,q:Gk,Q:tA,s:nA,S:Zk,u:Rk,U:zk,V:Bk,w:Lk,W:Vk,x:j,X:M,y:Uk,Y:Hk,Z:Wk,"%":eA};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=kk[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=Dk(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Ek(Dk(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?uk.ceil(a):uk(a),a=QO.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Tk(Dk(r.y,0,1)),o=a.getDay(),a=o>4||o===0?nk.ceil(a):nk(a),a=ZO.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?Ek(Dk(r.y,0,1)).getUTCDay():Tk(Dk(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Ek(r)):Tk(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in kk?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function ee(e){return i[+(e.getHours()>=12)]}function L(e){return 1+~~(e.getMonth()/3)}function R(e){return o[e.getUTCDay()]}function z(e){return a[e.getUTCDay()]}function B(e){return c[e.getUTCMonth()]}function V(e){return s[e.getUTCMonth()]}function te(e){return i[+(e.getUTCHours()>=12)]}function H(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var kk={"-":``,_:` `,0:`0`},Ak=/^\s*\d+/,jk=/^%/,Mk=/[\\^$*+?|[\]().{}]/g;function Nk(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Pk(e){return e.replace(Mk,`\\$&`)}function Fk(e){return RegExp(`^(?:`+e.map(Pk).join(`|`)+`)`,`i`)}function Ik(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Lk(e,t,n){var r=Ak.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Rk(e,t,n){var r=Ak.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function zk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Bk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Vk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Hk(e,t,n){var r=Ak.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Uk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wk(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Gk(e,t,n){var r=Ak.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Kk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Jk(e,t,n){var r=Ak.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Yk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Xk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zk(e,t,n){var r=Ak.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=Ak.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $k(e,t,n){var r=Ak.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function eA(e,t,n){var r=jk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tA(e,t,n){var r=Ak.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nA(e,t,n){var r=Ak.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rA(e,t){return Nk(e.getDate(),t,2)}function iA(e,t){return Nk(e.getHours(),t,2)}function aA(e,t){return Nk(e.getHours()%12||12,t,2)}function oA(e,t){return Nk(1+ZO.count(vk(e),e),t,3)}function sA(e,t){return Nk(e.getMilliseconds(),t,3)}function cA(e,t){return sA(e,t)+`000`}function lA(e,t){return Nk(e.getMonth()+1,t,2)}function uA(e,t){return Nk(e.getMinutes(),t,2)}function dA(e,t){return Nk(e.getSeconds(),t,2)}function fA(e){var t=e.getDay();return t===0?7:t}function pA(e,t){return Nk(tk.count(vk(e)-1,e),t,2)}function mA(e){var t=e.getDay();return t>=4||t===0?ak(e):ak.ceil(e)}function hA(e,t){return e=mA(e),Nk(ak.count(vk(e),e)+(vk(e).getDay()===4),t,2)}function gA(e){return e.getDay()}function _A(e,t){return Nk(nk.count(vk(e)-1,e),t,2)}function vA(e,t){return Nk(e.getFullYear()%100,t,2)}function yA(e,t){return e=mA(e),Nk(e.getFullYear()%100,t,2)}function bA(e,t){return Nk(e.getFullYear()%1e4,t,4)}function xA(e,t){var n=e.getDay();return e=n>=4||n===0?ak(e):ak.ceil(e),Nk(e.getFullYear()%1e4,t,4)}function SA(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Nk(t/60|0,`0`,2)+Nk(t%60,`0`,2)}function CA(e,t){return Nk(e.getUTCDate(),t,2)}function wA(e,t){return Nk(e.getUTCHours(),t,2)}function TA(e,t){return Nk(e.getUTCHours()%12||12,t,2)}function EA(e,t){return Nk(1+QO.count(yk(e),e),t,3)}function DA(e,t){return Nk(e.getUTCMilliseconds(),t,3)}function OA(e,t){return DA(e,t)+`000`}function kA(e,t){return Nk(e.getUTCMonth()+1,t,2)}function AA(e,t){return Nk(e.getUTCMinutes(),t,2)}function jA(e,t){return Nk(e.getUTCSeconds(),t,2)}function MA(e){var t=e.getUTCDay();return t===0?7:t}function NA(e,t){return Nk(lk.count(yk(e)-1,e),t,2)}function PA(e){var t=e.getUTCDay();return t>=4||t===0?pk(e):pk.ceil(e)}function FA(e,t){return e=PA(e),Nk(pk.count(yk(e),e)+(yk(e).getUTCDay()===4),t,2)}function IA(e){return e.getUTCDay()}function LA(e,t){return Nk(uk.count(yk(e)-1,e),t,2)}function RA(e,t){return Nk(e.getUTCFullYear()%100,t,2)}function zA(e,t){return e=PA(e),Nk(e.getUTCFullYear()%100,t,2)}function BA(e,t){return Nk(e.getUTCFullYear()%1e4,t,4)}function VA(e,t){var n=e.getUTCDay();return e=n>=4||n===0?pk(e):pk.ceil(e),Nk(e.getUTCFullYear()%1e4,t,4)}function HA(){return`+0000`}function UA(){return`%`}function WA(e){return+e}function GA(e){return Math.floor(e/1e3)}var KA,qA,JA;YA({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function YA(e){return KA=Ok(e),qA=KA.format,KA.parse,JA=KA.utcFormat,KA.utcParse,KA}function XA(e){return new Date(e)}function ZA(e){return e instanceof Date?+e:+new Date(+e)}function QA(e,t,n,r,i,a,o,s,c,l){var u=ND(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,ZA)):f().map(XA)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(cO(n,e)):u},u.copy=function(){return jD(u,QA(e,t,n,r,i,a,o,s,c,l))},u}function $A(){return dE.apply(QA(Ck,wk,vk,gk,tk,ZO,YO,qO,KO,qA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ej(){return dE.apply(QA(xk,Sk,yk,_k,lk,QO,XO,JO,KO,JA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function tj(){var e=0,t=1,n,r,i,a,o=ED,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(bD),l.rangeRound=u(xD),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function nj(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function rj(){var e=aO(tj()(ED));return e.copy=function(){return nj(e,rj())},fE.apply(e,arguments)}function ij(){var e=_O(tj()).domain([1,10]);return e.copy=function(){return nj(e,ij()).base(e.base())},fE.apply(e,arguments)}function aj(){var e=xO(tj());return e.copy=function(){return nj(e,aj()).constant(e.constant())},fE.apply(e,arguments)}function oj(){var e=EO(tj());return e.copy=function(){return nj(e,oj()).exponent(e.exponent())},fE.apply(e,arguments)}function sj(){return oj.apply(null,arguments).exponent(.5)}function cj(){var e=[],t=ED;function n(n){if(n!=null&&!isNaN(n=+n))return t((UT(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(IT),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>cE(e,r/t))},n.copy=function(){return cj(t).domain(e)},fE.apply(n,arguments)}function lj(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=ED,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=SD(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(bD),p.rangeRound=m(xD),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function uj(){var e=aO(lj()(ED));return e.copy=function(){return nj(e,uj())},fE.apply(e,arguments)}function dj(){var e=_O(lj()).domain([.1,1,10]);return e.copy=function(){return nj(e,dj()).base(e.base())},fE.apply(e,arguments)}function fj(){var e=xO(lj());return e.copy=function(){return nj(e,fj()).constant(e.constant())},fE.apply(e,arguments)}function pj(){var e=EO(lj());return e.copy=function(){return nj(e,pj()).exponent(e.exponent())},fE.apply(e,arguments)}function mj(){return pj.apply(null,arguments).exponent(.5)}var hj=s({scaleBand:()=>hE,scaleDiverging:()=>uj,scaleDivergingLog:()=>dj,scaleDivergingPow:()=>pj,scaleDivergingSqrt:()=>mj,scaleDivergingSymlog:()=>fj,scaleIdentity:()=>sO,scaleImplicit:()=>pE,scaleLinear:()=>oO,scaleLog:()=>vO,scaleOrdinal:()=>mE,scalePoint:()=>_E,scalePow:()=>DO,scaleQuantile:()=>MO,scaleQuantize:()=>NO,scaleRadial:()=>jO,scaleSequential:()=>rj,scaleSequentialLog:()=>ij,scaleSequentialPow:()=>oj,scaleSequentialQuantile:()=>cj,scaleSequentialSqrt:()=>sj,scaleSequentialSymlog:()=>aj,scaleSqrt:()=>OO,scaleSymlog:()=>SO,scaleThreshold:()=>PO,scaleTime:()=>$A,scaleUtc:()=>ej,tickFormat:()=>iO}),gj=o(((e,t)=>{var n=Eg();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),_j=o(((e,t)=>{function n(e,t){return e>t}t.exports=n})),vj=o(((e,t)=>{var n=gj(),r=_j(),i=Xx();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),yj=o(((e,t)=>{function n(e,t){return e<t}t.exports=n})),bj=o(((e,t)=>{var n=gj(),r=yj(),i=Xx();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),xj=o(((e,t)=>{var n=l_(),r=eS(),i=HS(),a=vg();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),Sj=o(((e,t)=>{var n=IS(),r=xj();function i(e,t){return n(r(e,t),1)}t.exports=i})),Cj=o(((e,t)=>{var n=Bx();function r(e,t){return n(e,t)}t.exports=r})),wj=o(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}));function Tj(e){return kj(e)||Oj(e)||Dj(e)||Ej()}function Ej(){throw TypeError(`Invalid attempt to spread non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dj(e,t){if(e){if(typeof e==`string`)return Aj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aj(e,t)}}function Oj(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function kj(e){if(Array.isArray(e))return Aj(e)}function Aj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jj=function(e){return e},Mj={"@@functional/placeholder":!0},Nj=function(e){return e===Mj},Pj=function(e){return function t(){return arguments.length===0||arguments.length===1&&Nj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Fj=function e(t,n){return t===1?n:Pj(function(){var r=[...arguments],i=r.filter(function(e){return e!==Mj}).length;return i>=t?n.apply(void 0,r):e(t-i,Pj(function(){var e=[...arguments],t=r.map(function(t){return Nj(t)?e.shift():t});return n.apply(void 0,Tj(t).concat(e))}))})},Ij=function(e){return Fj(e.length,e)},Lj=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Rj=Ij(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),zj=function(){var e=[...arguments];if(!e.length)return jj;var t=e.reverse(),n=t[0],r=t.slice(1);return function(){return r.reduce(function(e,t){return t(e)},n.apply(void 0,arguments))}},Bj=function(e){return Array.isArray(e)?e.reverse():e.split(``).reverse.join(``)},Vj=function(e){var t=null,n=null;return function(){var r=[...arguments];return t&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}},Hj=l(wj());function Uj(e){return e===0?1:Math.floor(new Hj.default(e).abs().log(10).toNumber())+1}function Wj(e,t,n){for(var r=new Hj.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var Gj={rangeStep:Wj,getDigitCount:Uj,interpolateNumber:Ij(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:Ij(function(e,t,n){var r=t-+e;return r||=1/0,(n-e)/r}),uninterpolateTruncation:Ij(function(e,t,n){var r=t-+e;return r||=1/0,Math.max(0,Math.min(1,(n-e)/r))})};function Kj(e){return Yj(e)||Jj(e)||Qj(e)||qj()}function qj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
55
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jj(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Yj(e){if(Array.isArray(e))return $j(e)}function Xj(e,t){return tM(e)||eM(e,t)||Qj(e,t)||Zj()}function Zj(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qj(e,t){if(e){if(typeof e==`string`)return $j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $j(e,t)}}function $j(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eM(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function tM(e){if(Array.isArray(e))return e}function nM(e){var t=Xj(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function rM(e,t,n){if(e.lte(0))return new Hj.default(0);var r=Gj.getDigitCount(e.toNumber()),i=new Hj.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new Hj.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?s:new Hj.default(Math.ceil(s))}function iM(e,t,n){var r=1,i=new Hj.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Hj.default(10).pow(Gj.getDigitCount(e)-1),i=new Hj.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Hj.default(Math.floor(e)))}else e===0?i=new Hj.default(Math.floor((t-1)/2)):n||(i=new Hj.default(Math.floor(e)));var o=Math.floor((t-1)/2);return zj(Rj(function(e){return i.add(new Hj.default(e-o).mul(r)).toNumber()}),Lj)(0,t)}function aM(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Hj.default(0),tickMin:new Hj.default(0),tickMax:new Hj.default(0)};var a=rM(new Hj.default(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Hj.default(0):(o=new Hj.default(e).add(t).div(2),o=o.sub(new Hj.default(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new Hj.default(t).sub(o).div(a).toNumber()),l=s+c+1;return l>n?aM(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new Hj.default(s).mul(a)),tickMax:o.add(new Hj.default(c).mul(a))})}function oM(e){var t=Xj(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=Xj(nM([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(Kj(Lj(0,i-1).map(function(){return 1/0}))):[].concat(Kj(Lj(0,i-1).map(function(){return-1/0})),[l]);return n>r?Bj(u):u}if(c===l)return iM(c,i,a);var d=aM(c,l,o,a),f=d.step,p=d.tickMin,m=d.tickMax,h=Gj.rangeStep(p,m.add(new Hj.default(.1).mul(f)),f);return n>r?Bj(h):h}function sM(e,t){var n=Xj(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Xj(nM([r,i]),2),s=o[0],c=o[1];if(s===-1/0||c===1/0)return[r,i];if(s===c)return[s];var l=Math.max(t,2),u=rM(new Hj.default(c).sub(s).div(l-1),a,0),d=[].concat(Kj(Gj.rangeStep(new Hj.default(s),new Hj.default(c).sub(new Hj.default(.99).mul(u)),u)),[c]);return r>i?Bj(d):d}var cM=Vj(oM),lM=Vj(sM),uM=!0,dM=`Invariant failed`;function fM(e,t){if(!e){if(uM)throw Error(dM);var n=typeof t==`function`?t():t,r=n?`${dM}: ${n}`:dM;throw Error(r)}}var pM=[`offset`,`layout`,`width`,`dataKey`,`data`,`dataPointFormatter`,`xAxis`,`yAxis`];function mM(e){"@babel/helpers - typeof";return mM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mM(e)}function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,t){return xM(e)||bM(e,t)||vM(e,t)||_M()}function _M(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vM(e,t){if(e){if(typeof e==`string`)return yM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yM(e,t)}}function yM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function xM(e){if(Array.isArray(e))return e}function SM(e,t){if(e==null)return{};var n=CM(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CM(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wM(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function TM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,FM(r.key),r)}}function EM(e,t,n){return t&&TM(e.prototype,t),n&&TM(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function DM(e,t,n){return t=jM(t),OM(e,AM()?Reflect.construct(t,n||[],jM(e).constructor):t.apply(e,n))}function OM(e,t){if(t&&(mM(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return kM(e)}function kM(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function AM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AM=function(){return!!e})()}function jM(e){return jM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jM(e)}function MM(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&NM(e,t)}function NM(e,t){return NM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NM(e,t)}function PM(e,t,n){return t=FM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FM(e){var t=IM(e,`string`);return mM(t)==`symbol`?t:t+``}function IM(e,t){if(mM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var LM=function(e){function t(){return wM(this,t),DM(this,t,arguments)}return MM(t,e),EM(t,[{key:`render`,value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,l=Q(SM(e,pM),!1);this.props.direction===`x`&&s.type!==`number`&&fM(!1);var u=a.map(function(e){var a=o(e,i),u=a.x,d=a.y,f=a.value,p=a.errorVal;if(!p)return null;var m=[],h,g;if(Array.isArray(p)){var _=gM(p,2);h=_[0],g=_[1]}else h=g=p;if(n===`vertical`){var v=s.scale,y=d+t,b=y+r,x=y-r,S=v(f-h),C=v(f+g);m.push({x1:C,y1:b,x2:C,y2:x}),m.push({x1:S,y1:y,x2:C,y2:y}),m.push({x1:S,y1:b,x2:S,y2:x})}else if(n===`horizontal`){var w=c.scale,T=u+t,E=T-r,D=T+r,O=w(f-h),k=w(f+g);m.push({x1:E,y1:k,x2:D,y2:k}),m.push({x1:T,y1:O,x2:T,y2:k}),m.push({x1:E,y1:O,x2:D,y2:O})}return K.createElement(Av,hM({className:`recharts-errorBar`,key:`bar-${m.map(function(e){return`${e.x1}-${e.x2}-${e.y1}-${e.y2}`})}`},l),m.map(function(e){return K.createElement(`line`,hM({},e,{key:`line-${e.x1}-${e.x2}-${e.y1}-${e.y2}`}))}))});return K.createElement(Av,{className:`recharts-errorBars`},u)}}])}(K.Component);PM(LM,`defaultProps`,{stroke:`black`,strokeWidth:1.5,width:5,offset:0,layout:`horizontal`}),PM(LM,`displayName`,`ErrorBar`);function RM(e){"@babel/helpers - typeof";return RM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RM(e)}function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zM(Object(n),!0).forEach(function(t){VM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VM(e,t,n){return t=HM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HM(e){var t=UM(e,`string`);return RM(t)==`symbol`?t:t+``}function UM(e,t){if(RM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(RM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var WM=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,a=uv(t,PS);if(!a)return null;var o=PS.defaultProps,s=o===void 0?{}:BM(BM({},o),a.props),c=a.props&&a.props.payload?a.props&&a.props.payload:i===`children`?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=n===void 0?{}:BM(BM({},n),t.props),i=r.dataKey,a=r.name,o=r.legendType;return{inactive:r.hide,dataKey:i,type:s.iconType||o||`square`,color:uN(t),value:a||i,payload:r}});return BM(BM(BM({},s),PS.getWithHeight(a,r)),{},{payload:c,item:a})},GM=l(vj()),KM=l(bj()),qM=l(Sj()),JM=l(Cj());function YM(e){"@babel/helpers - typeof";return YM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YM(e)}function XM(e){return eN(e)||$M(e)||QM(e)||ZM()}function ZM(){throw TypeError(`Invalid attempt to spread non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QM(e,t){if(e){if(typeof e==`string`)return tN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tN(e,t)}}function $M(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function eN(e){if(Array.isArray(e))return tN(e)}function tN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nN(Object(n),!0).forEach(function(t){iN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iN(e,t,n){return t=aN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aN(e){var t=oN(e,`string`);return YM(t)==`symbol`?t:t+``}function oN(e,t){if(YM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sN(e,t,n){return(0,E_.default)(e)||(0,E_.default)(t)?n:A_(t)?(0,w_.default)(e,t,n):(0,Z_.default)(t)?t(e):n}function cN(e,t,n,r){var i=(0,qM.default)(e,function(e){return sN(e,t)});if(n===`number`){var a=i.filter(function(e){return Z(e)||parseFloat(e)});return a.length?[(0,KM.default)(a),(0,GM.default)(a)]:[1/0,-1/0]}return(r?i.filter(function(e){return!(0,E_.default)(e)}):i).map(function(e){return A_(e)||e instanceof Date?e:``})}var lN=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=-1,a=t?.length??0;if(a<=1)return 0;if(r&&r.axisType===`angleAxis`&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var o=r.range,s=0;s<a;s++){var c=s>0?n[s-1].coordinate:n[a-1].coordinate,l=n[s].coordinate,u=s>=a-1?n[0].coordinate:n[s+1].coordinate,d=void 0;if(D_(l-c)!==D_(u-l)){var f=[];if(D_(u-l)===D_(o[1]-o[0])){d=u;var p=l+o[1]-o[0];f[0]=Math.min(p,(p+c)/2),f[1]=Math.max(p,(p+c)/2)}else{d=c;var m=u+o[1]-o[0];f[0]=Math.min(l,(m+l)/2),f[1]=Math.max(l,(m+l)/2)}var h=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=n[s].index;break}}else{var g=Math.min(c,u),_=Math.max(c,u);if(e>(g+l)/2&&e<=(_+l)/2){i=n[s].index;break}}}else for(var v=0;v<a;v++)if(v===0&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v>0&&v<a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v===a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2){i=t[v].index;break}return i},uN=function(e){var t,n=e.type.displayName,r=(t=e.type)!=null&&t.defaultProps?rN(rN({},e.type.defaultProps),e.props):e.props,i=r.stroke,a=r.fill,o;switch(n){case`Line`:o=i;break;case`Area`:case`Radar`:o=i&&i!==`none`?i:a;break;default:o=a;break}return o},dN=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,c=o.length;s<c;s++)for(var l=i[o[s]].stackGroups,u=Object.keys(l),d=0,f=u.length;d<f;d++){var p=l[u[d]],m=p.items,h=p.cateAxisId,g=m.filter(function(e){return av(e.type).indexOf(`Bar`)>=0});if(g&&g.length){var _=g[0].type.defaultProps,v=_===void 0?g[0].props:rN(rN({},_),g[0].props),y=v.barSize,b=v[h];a[b]||(a[b]=[]);var x=(0,E_.default)(y)?t:y;a[b].push({item:g[0],stackList:g.slice(1),barSize:(0,E_.default)(x)?void 0:N_(x,n,0)})}}return a},fN=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,a=i===void 0?[]:i,o=e.maxBarSize,s=a.length;if(s<1)return null;var c=N_(t,r,0,!0),l,u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);p+=(s-1)*c,p>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,f*=.9,p=s*f);var m={offset:((r-p)/2>>0)-c,size:0};l=a.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?f:t.barSize}},r=[].concat(XM(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var h=N_(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var _=o===+o?Math.min(g,o):g;l=a.reduce(function(e,t,n){var r=[].concat(XM(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-_)/2,size:_}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l},pN=function(e,t,n,r){var i=n.children,a=n.width,o=n.margin,s=WM({children:i,legendWidth:a-(o.left||0)-(o.right||0)});if(s){var c=r||{},l=c.width,u=c.height,d=s.align,f=s.verticalAlign,p=s.layout;if((p===`vertical`||p===`horizontal`&&f===`middle`)&&d!==`center`&&Z(e[d]))return rN(rN({},e),{},iN({},d,e[d]+(l||0)));if((p===`horizontal`||p===`vertical`&&d===`center`)&&f!==`middle`&&Z(e[f]))return rN(rN({},e),{},iN({},f,e[f]+(u||0)))}return e},mN=function(e,t,n){return(0,E_.default)(t)?!0:e===`horizontal`?t===`yAxis`:e===`vertical`||n===`x`?t===`xAxis`:n===`y`?t===`yAxis`:!0},hN=function(e,t,n,r,i){var a=t.props.children,o=lv(a,LM).filter(function(e){return mN(r,i,e.props.direction)});if(o&&o.length){var s=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=sN(t,n);if((0,E_.default)(r))return e;var i=Array.isArray(r)?[(0,KM.default)(r),(0,GM.default)(r)]:[r,r],a=s.reduce(function(e,n){var r=sN(t,n,0),a=i[0]-Math.abs(Array.isArray(r)?r[0]:r),o=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(o,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},gN=function(e,t,n,r,i){var a=t.map(function(t){return hN(e,t,n,i,r)}).filter(function(e){return!(0,E_.default)(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},_N=function(e,t,n,r,i){var a=t.map(function(t){var a=t.props.dataKey;return n===`number`&&a&&hN(e,t,a,r)||cN(e,a,n,i)});if(n===`number`)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return a.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e},[])},vN=function(e,t){return e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`},yN=function(e,t,n,r){if(r)return e.map(function(e){return e.coordinate});var i,a,o=e.map(function(e){return e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate});return i||o.push(t),a||o.push(n),o},bN=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,a=e.type,o=e.range,s=e.realScaleType===`scaleBand`?r.bandwidth()/2:2,c=(t||n)&&a===`category`&&r.bandwidth?r.bandwidth()/s:0;return c=e.axisType===`angleAxis`&&o?.length>=2?D_(o[0]-o[1])*2*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(i?i.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!(0,C_.default)(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}})},xN=new WeakMap,SN=function(e,t){if(typeof t!=`function`)return e;xN.has(e)||xN.set(e,new WeakMap);var n=xN.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},CN=function(e,t,n){var r=e.scale,i=e.type,a=e.layout,o=e.axisType;if(r===`auto`)return a===`radial`&&o===`radiusAxis`?{scale:hE(),realScaleType:`band`}:a===`radial`&&o===`angleAxis`?{scale:oO(),realScaleType:`linear`}:i===`category`&&t&&(t.indexOf(`LineChart`)>=0||t.indexOf(`AreaChart`)>=0||t.indexOf(`ComposedChart`)>=0&&!n)?{scale:_E(),realScaleType:`point`}:i===`category`?{scale:hE(),realScaleType:`band`}:{scale:oO(),realScaleType:`linear`};if((0,S_.default)(r)){var s=`scale${(0,db.default)(r)}`;return{scale:(hj[s]||_E)(),realScaleType:hj[s]?s:`point`}}return(0,Z_.default)(r)?{scale:r}:{scale:_E(),realScaleType:`point`}},wN=1e-4,TN=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-wN,a=Math.max(r[0],r[1])+wN,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},EN=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},DN=function(e,t){if(!t||t.length!==2||!Z(t[0])||!Z(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Z(e[0])||e[0]<n)&&(i[0]=n),(!Z(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},ON={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=(0,C_.default)(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},expand:cb,none:rb,silhouette:lb,wiggle:ub,positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=(0,C_.default)(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},kN=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),i=ON[n];return sb().keys(r).value(function(e,t){return+sN(e,t,0)}).order(ib).offset(i)(e)},AN=function(e,t,n,r,i,a){if(!e)return null;var o=(a?t.reverse():t).reduce(function(e,t){var i,a=(i=t.type)!=null&&i.defaultProps?rN(rN({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(a.hide)return e;var s=a[n],c=e[s]||{hasStack:!1,stackGroups:{}};if(A_(o)){var l=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[M_(`_stackId_`)]={numericAxisId:n,cateAxisId:r,items:[t]};return rN(rN({},e),{},iN({},s,c))},{});return Object.keys(o).reduce(function(t,a){var s=o[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,a){var o=s.stackGroups[a];return rN(rN({},t),{},iN({},a,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:kN(e,o.items,i)}))},{})),rN(rN({},t),{},iN({},a,s))},{})},jN=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,a=t.originalDomain,o=t.allowDecimals,s=n||t.scale;if(s!==`auto`&&s!==`linear`)return null;if(i&&r===`number`&&a&&(a[0]===`auto`||a[1]===`auto`)){var c=e.domain();if(!c.length)return null;var l=cM(c,i,o);return e.domain([(0,KM.default)(l),(0,GM.default)(l)]),{niceTicks:l}}return i&&r===`number`?{niceTicks:lM(e.domain(),i,o)}:null};function MN(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,E_.default)(i[t.dataKey])){var s=L_(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var c=sN(i,(0,E_.default)(o)?t.dataKey:o);return(0,E_.default)(c)?null:t.scale(c)}var NN=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=sN(a,t.dataKey,t.domain[o]);return(0,E_.default)(s)?null:t.scale(s)-i/2+r},PN=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},FN=function(e,t){var n,r=((n=e.type)!=null&&n.defaultProps?rN(rN({},e.type.defaultProps),e.props):e.props).stackId;if(A_(r)){var i=t[r];if(i){var a=i.items.indexOf(e);return a>=0?i.stackedData[a]:null}}return null},IN=function(e){return e.reduce(function(e,t){return[(0,KM.default)(t.concat([e[0]]).filter(Z)),(0,GM.default)(t.concat([e[1]]).filter(Z))]},[1/0,-1/0])},LN=function(e,t,n){return Object.keys(e).reduce(function(r,i){var a=e[i].stackedData.reduce(function(e,r){var i=IN(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},RN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BN=function(e,t,n){if((0,Z_.default)(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Z(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(RN.test(e[0])){var i=+RN.exec(e[0])[1];r[0]=t[0]-i}else (0,Z_.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Z(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(zN.test(e[1])){var a=+zN.exec(e[1])[1];r[1]=t[1]+a}else (0,Z_.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},VN=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,nC.default)(t,function(e){return e.coordinate}),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c.coordinate||0)-(l.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},HN=function(e,t,n){return!e||!e.length||(0,JM.default)(e,(0,w_.default)(n,`type.defaultProps.domain`))?t:e},UN=function(e,t){var n=e.type.defaultProps?rN(rN({},e.type.defaultProps),e.props):e.props,r=n.dataKey,i=n.name,a=n.unit,o=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return rN(rN({},Q(e,!1)),{},{dataKey:r,unit:a,formatter:o,name:i||r,color:uN(e),value:sN(t,r),type:s,payload:t,chartType:c,hide:l})};function WN(e){"@babel/helpers - typeof";return WN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WN(e)}function GN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GN(Object(n),!0).forEach(function(t){qN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qN(e,t,n){return t=JN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e){var t=YN(e,`string`);return WN(t)==`symbol`?t:t+``}function YN(e,t){if(WN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function XN(e,t){return tP(e)||eP(e,t)||QN(e,t)||ZN()}function ZN(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QN(e,t){if(e){if(typeof e==`string`)return $N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $N(e,t)}}function $N(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eP(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function tP(e){if(Array.isArray(e))return e}var nP=Math.PI/180,rP=function(e){return e*180/Math.PI},iP=function(e,t,n,r){return{x:e+Math.cos(-nP*r)*n,y:t+Math.sin(-nP*r)*n}},aP=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},oP=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.startAngle,c=e.endAngle,l=N_(e.cx,a,a/2),u=N_(e.cy,o,o/2),d=aP(a,o,n),f=N_(e.innerRadius,d,0),p=N_(e.outerRadius,d,d*.8);return Object.keys(t).reduce(function(e,n){var a=t[n],o=a.domain,d=a.reversed,m;if((0,E_.default)(a.range))r===`angleAxis`?m=[s,c]:r===`radiusAxis`&&(m=[f,p]),d&&(m=[m[1],m[0]]);else{m=a.range;var h=XN(m,2);s=h[0],c=h[1]}var g=CN(a,i),_=g.realScaleType,v=g.scale;v.domain(o).range(m),TN(v);var y=jN(v,KN(KN({},a),{},{realScaleType:_})),b=KN(KN(KN({},a),y),{},{range:m,radius:p,realScaleType:_,scale:v,cx:l,cy:u,innerRadius:f,outerRadius:p,startAngle:s,endAngle:c});return KN(KN({},e),{},qN({},n,b))},{})},sP=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},cP=function(e,t){var n=e.x,r=e.y,i=t.cx,a=t.cy,o=sP({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:rP(c),angleInRadian:c}},lP=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},uP=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},dP=function(e,t){var n=e.x,r=e.y,i=cP({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c)return!1;if(a===0)return!0;var l=lP(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?KN(KN({},t),{},{radius:a,angle:uP(f,t)}):null},fP=function(e){return!(0,K.isValidElement)(e)&&!(0,Z_.default)(e)&&typeof e!=`boolean`?e.className:``};function pP(e){"@babel/helpers - typeof";return pP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pP(e)}var mP=[`offset`];function hP(e){return yP(e)||vP(e)||_P(e)||gP()}function gP(){throw TypeError(`Invalid attempt to spread non-iterable instance.
60
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _P(e,t){if(e){if(typeof e==`string`)return bP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bP(e,t)}}function vP(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yP(e){if(Array.isArray(e))return bP(e)}function bP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xP(e,t){if(e==null)return{};var n=SP(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SP(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CP(Object(n),!0).forEach(function(t){TP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TP(e,t,n){return t=EP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EP(e){var t=DP(e,`string`);return pP(t)==`symbol`?t:t+``}function DP(e,t){if(pP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function OP(){return OP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OP.apply(this,arguments)}var kP=function(e){var t=e.value,n=e.formatter,r=(0,E_.default)(e.children)?t:e.children;return(0,Z_.default)(n)?n(r):r},AP=function(e,t){return D_(t-e)*Math.min(Math.abs(t-e),360)},jP=function(e,t,n){var r=e.position,i=e.viewBox,a=e.offset,o=e.className,s=i,c=s.cx,l=s.cy,u=s.innerRadius,f=s.outerRadius,p=s.startAngle,m=s.endAngle,h=s.clockWise,g=(u+f)/2,_=AP(p,m),v=_>=0?1:-1,y,b;r===`insideStart`?(y=p+v*a,b=h):r===`insideEnd`?(y=m-v*a,b=!h):r===`end`&&(y=m+v*a,b=h),b=_<=0?b:!b;var x=iP(c,l,g,y),S=iP(c,l,g,y+(b?1:-1)*359),C=`M${x.x},${x.y}
51
+ height and width.`,r,i,o,c,u,f,n);var a=!Array.isArray(m)&&sv(m.type).endsWith(`Chart`);return K.Children.map(m,function(e){return K.isValidElement(e)?(0,K.cloneElement)(e,Sw({width:r,height:i},a?{style:Sw({height:`100%`,width:`100%`,maxHeight:i,maxWidth:r},e.props.style)}:{})):e})},[n,m,c,p,f,u,T,o]);return K.createElement(`div`,{id:_?`${_}`:void 0,className:d(`recharts-responsive-container`,v),style:Sw(Sw({},x),{},{width:o,height:c,minWidth:u,minHeight:f,maxHeight:p}),ref:S},O)}),Nw=function(e){return null};Nw.displayName=`Cell`;function Pw(e){"@babel/helpers - typeof";return Pw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pw(e)}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fw(Object(n),!0).forEach(function(t){Lw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lw(e,t,n){return t=Rw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e){var t=zw(e,`string`);return Pw(t)==`symbol`?t:t+``}function zw(e,t){if(Pw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Bw={widthCache:{},cacheCount:0},Vw=2e3,Hw={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},Uw=`recharts_measurement_span`;function Ww(e){var t=Iw({},e);return Object.keys(t).forEach(function(e){t[e]||delete t[e]}),t}var Gw=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||JC.isSsr)return{width:0,height:0};var n=Ww(t),r=JSON.stringify({text:e,copyStyle:n});if(Bw.widthCache[r])return Bw.widthCache[r];try{var i=document.getElementById(Uw);i||(i=document.createElement(`span`),i.setAttribute(`id`,Uw),i.setAttribute(`aria-hidden`,`true`),document.body.appendChild(i));var a=Iw(Iw({},Hw),n);Object.assign(i.style,a),i.textContent=`${e}`;var o=i.getBoundingClientRect(),s={width:o.width,height:o.height};return Bw.widthCache[r]=s,++Bw.cacheCount>Vw&&(Bw.cacheCount=0,Bw.widthCache={}),s}catch{return{width:0,height:0}}},Kw=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function qw(e){"@babel/helpers - typeof";return qw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qw(e)}function Jw(e,t){return $w(e)||Qw(e,t)||Xw(e,t)||Yw()}function Yw(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
52
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xw(e,t){if(e){if(typeof e==`string`)return Zw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zw(e,t)}}function Zw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qw(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $w(e){if(Array.isArray(e))return e}function eT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,rT(r.key),r)}}function nT(e,t,n){return t&&tT(e.prototype,t),n&&tT(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function rT(e){var t=iT(e,`string`);return qw(t)==`symbol`?t:t+``}function iT(e,t){if(qw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var aT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,oT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,cT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,lT={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},uT=Object.keys(lT),dT=`NaN`;function fT(e,t){return e*lT[t]}var pT=function(){function e(t,n){eT(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=``),n!==``&&!sT.test(n)&&(this.num=NaN,this.unit=``),uT.includes(n)&&(this.num=fT(t,n),this.unit=`px`)}return nT(e,[{key:`add`,value:function(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}},{key:`subtract`,value:function(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}},{key:`multiply`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}},{key:`divide`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}},{key:`toString`,value:function(){return`${this.num}${this.unit}`}},{key:`isNaN`,value:function(){return Number.isNaN(this.num)}}],[{key:`parse`,value:function(t){var n=Jw(cT.exec(t)??[],3),r=n[1],i=n[2];return new e(parseFloat(r),i??``)}}])}();function mT(e){if(e.includes(dT))return dT;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=Jw(aT.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=pT.parse(r??``),s=pT.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return dT;t=t.replace(aT,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=Jw(oT.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=pT.parse(u??``),m=pT.parse(f??``),h=d===`+`?p.add(m):p.subtract(m);if(h.isNaN())return dT;t=t.replace(oT,h.toString())}return t}var hT=/\(([^()]*)\)/;function gT(e){for(var t=e;t.includes(`(`);){var n=Jw(hT.exec(t),2)[1];t=t.replace(hT,mT(n))}return t}function _T(e){var t=e.replace(/\s+/g,``);return t=gT(t),t=mT(t),t}function vT(e){try{return _T(e)}catch{return dT}}function yT(e){var t=vT(e.slice(5,-1));return t===dT?``:t}var bT=[`x`,`y`,`lineHeight`,`capHeight`,`scaleToFit`,`textAnchor`,`verticalAnchor`,`fill`],xT=[`dx`,`dy`,`angle`,`className`,`breakAll`];function ST(){return ST=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ST.apply(this,arguments)}function CT(e,t){if(e==null)return{};var n=wT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TT(e,t){return AT(e)||kT(e,t)||DT(e,t)||ET()}function ET(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DT(e,t){if(e){if(typeof e==`string`)return OT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OT(e,t)}}function OT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kT(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function AT(e){if(Array.isArray(e))return e}var jT=/[ \f\n\r\t\v\u2028\u2029]+/,MT=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return(0,O_.default)(t)||(i=n?t.toString().split(``):t.toString().split(jT)),{wordsWithComputedWidth:i.map(function(e){return{word:e,width:Gw(e,r).width}}),spaceWidth:n?0:Gw(`\xA0`,r).width}}catch{return null}},NT=function(e,t,n,r,i){var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=Z(a),u=o,d=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t){var a=t.word,o=t.width,s=e[e.length-1];if(s&&(r==null||i||s.width+o+n<Number(r)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[])},f=d(t),p=function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})};if(!l)return f;for(var m=`…`,h=function(e){var t=MT({breakAll:c,style:s,children:u.slice(0,e)+m}).wordsWithComputedWidth,n=d(t);return[n.length>a||p(n).width>Number(r),n]},g=0,_=u.length-1,v=0,y;g<=_&&v<=u.length-1;){var b=Math.floor((g+_)/2),x=TT(h(b-1),2),S=x[0],C=x[1],w=TT(h(b),1)[0];if(!S&&!w&&(g=b+1),S&&w&&(_=b-1),!S&&w){y=C;break}v++}return y||f},PT=function(e){return[{words:(0,O_.default)(e)?[]:e.toString().split(jT)}]},FT=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!JC.isSsr){var s,c,l=MT({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return PT(r);return NT({breakAll:a,children:r,maxLines:o,style:i},s,c,t,n)}return PT(r)},IT=`#808080`,LT=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.lineHeight,o=a===void 0?`1em`:a,s=e.capHeight,c=s===void 0?`0.71em`:s,l=e.scaleToFit,u=l===void 0?!1:l,f=e.textAnchor,p=f===void 0?`start`:f,m=e.verticalAnchor,h=m===void 0?`end`:m,g=e.fill,_=g===void 0?IT:g,v=CT(e,bT),y=(0,K.useMemo)(function(){return FT({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:u,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,u,v.style,v.width]),b=v.dx,x=v.dy,S=v.angle,C=v.className,w=v.breakAll,T=CT(v,xT);if(!M_(n)||!M_(i))return null;var E=n+(Z(b)?b:0),D=i+(Z(x)?x:0),O;switch(h){case`start`:O=yT(`calc(${c})`);break;case`middle`:O=yT(`calc(${(y.length-1)/2} * -${o} + (${c} / 2))`);break;default:O=yT(`calc(${y.length-1} * -${o})`);break}var k=[];if(u){var A=y[0].width,j=v.width;k.push(`scale(${(Z(j)?j/A:1)/A})`)}return S&&k.push(`rotate(${S}, ${E}, ${D})`),k.length&&(T.transform=k.join(` `)),K.createElement(`text`,ST({},Q(T,!0),{x:E,y:D,className:d(`recharts-text`,C),textAnchor:p,fill:_.includes(`url`)?IT:_}),y.map(function(e,t){var n=e.words.join(w?``:` `);return K.createElement(`tspan`,{x:E,dy:t===0?O:o,key:`${n}-${t}`},n)}))};function RT(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function BT(e){let t,n,r;e.length===2?(t=e===RT||e===zT?e:VT,n=e,r=e):(t=RT,n=(t,n)=>RT(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function VT(){return 0}function HT(e){return e===null?NaN:+e}function*UT(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var WT=BT(RT),GT=WT.right;WT.left,BT(HT).center;var KT=class extends Map{constructor(e,t=XT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(qT(this,e))}has(e){return super.has(qT(this,e))}set(e,t){return super.set(JT(this,e),t)}delete(e){return super.delete(YT(this,e))}};function qT({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function JT({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function YT({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function XT(e){return typeof e==`object`&&e?e.valueOf():e}function ZT(e=RT){if(e===RT)return QT;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function QT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var $T=Math.sqrt(50),eE=Math.sqrt(10),tE=Math.sqrt(2);function nE(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=$T?10:a>=eE?5:a>=tE?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?nE(e,t,n*2):[s,c,l]}function rE(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?nE(t,e,n):nE(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function iE(e,t,n){return t=+t,e=+e,n=+n,nE(e,t,n)[2]}function aE(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?iE(t,e,n):iE(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function oE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function sE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function cE(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?QT:ZT(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));cE(e,t,u,d,i)}let a=e[t],o=n,s=r;for(lE(e,n,t),i(e[r],a)>0&&lE(e,n,r);o<s;){for(lE(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?lE(e,n,s):(++s,lE(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function lE(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function uE(e,t,n){if(e=Float64Array.from(UT(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return sE(e);if(t>=1)return oE(e);var r,i=(r-1)*t,a=Math.floor(i),o=oE(cE(e,a).subarray(0,a+1));return o+(sE(e.subarray(a+1))-o)*(i-a)}}function dE(e,t,n=HT){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function fE(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function pE(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function mE(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var hE=Symbol(`implicit`);function gE(){var e=new KT,t=[],n=[],r=hE;function i(i){let a=e.get(i);if(a===void 0){if(r!==hE)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new KT;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return gE(t,n).unknown(r)},pE.apply(i,arguments),i}function _E(){var e=gE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=fE(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return _E(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},pE.apply(d(),arguments)}function vE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vE(t())},e}function yE(){return vE(_E.apply(null,arguments).paddingInner(1))}function bE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xE(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function SE(){}var CE=.7,wE=1/CE,TE=`\\s*([+-]?\\d+)\\s*`,EE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,DE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,OE=/^#([0-9a-f]{3,8})$/,kE=RegExp(`^rgb\\(${TE},${TE},${TE}\\)$`),AE=RegExp(`^rgb\\(${DE},${DE},${DE}\\)$`),jE=RegExp(`^rgba\\(${TE},${TE},${TE},${EE}\\)$`),ME=RegExp(`^rgba\\(${DE},${DE},${DE},${EE}\\)$`),NE=RegExp(`^hsl\\(${EE},${DE},${DE}\\)$`),PE=RegExp(`^hsla\\(${EE},${DE},${DE},${EE}\\)$`),FE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};bE(SE,BE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:IE,formatHex:IE,formatHex8:LE,formatHsl:RE,formatRgb:zE,toString:zE});function IE(){return this.rgb().formatHex()}function LE(){return this.rgb().formatHex8()}function RE(){return $E(this).formatHsl()}function zE(){return this.rgb().formatRgb()}function BE(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=OE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?VE(t):n===3?new GE(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?HE(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?HE(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kE.exec(e))?new GE(t[1],t[2],t[3],1):(t=AE.exec(e))?new GE(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jE.exec(e))?HE(t[1],t[2],t[3],t[4]):(t=ME.exec(e))?HE(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=NE.exec(e))?QE(t[1],t[2]/100,t[3]/100,1):(t=PE.exec(e))?QE(t[1],t[2]/100,t[3]/100,t[4]):FE.hasOwnProperty(e)?VE(FE[e]):e===`transparent`?new GE(NaN,NaN,NaN,0):null}function VE(e){return new GE(e>>16&255,e>>8&255,e&255,1)}function HE(e,t,n,r){return r<=0&&(e=t=n=NaN),new GE(e,t,n,r)}function UE(e){return e instanceof SE||(e=BE(e)),e?(e=e.rgb(),new GE(e.r,e.g,e.b,e.opacity)):new GE}function WE(e,t,n,r){return arguments.length===1?UE(e):new GE(e,t,n,r??1)}function GE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bE(GE,WE,xE(SE,{brighter(e){return e=e==null?wE:wE**+e,new GE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?CE:CE**+e,new GE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new GE(XE(this.r),XE(this.g),XE(this.b),YE(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:KE,formatHex:KE,formatHex8:qE,formatRgb:JE,toString:JE}));function KE(){return`#${ZE(this.r)}${ZE(this.g)}${ZE(this.b)}`}function qE(){return`#${ZE(this.r)}${ZE(this.g)}${ZE(this.b)}${ZE((isNaN(this.opacity)?1:this.opacity)*255)}`}function JE(){let e=YE(this.opacity);return`${e===1?`rgb(`:`rgba(`}${XE(this.r)}, ${XE(this.g)}, ${XE(this.b)}${e===1?`)`:`, ${e})`}`}function YE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function XE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ZE(e){return e=XE(e),(e<16?`0`:``)+e.toString(16)}function QE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tD(e,t,n,r)}function $E(e){if(e instanceof tD)return new tD(e.h,e.s,e.l,e.opacity);if(e instanceof SE||(e=BE(e)),!e)return new tD;if(e instanceof tD)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new tD(o,s,c,e.opacity)}function eD(e,t,n,r){return arguments.length===1?$E(e):new tD(e,t,n,r??1)}function tD(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bE(tD,eD,xE(SE,{brighter(e){return e=e==null?wE:wE**+e,new tD(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?CE:CE**+e,new tD(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new GE(iD(e>=240?e-240:e+120,i,r),iD(e,i,r),iD(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tD(nD(this.h),rD(this.s),rD(this.l),YE(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=YE(this.opacity);return`${e===1?`hsl(`:`hsla(`}${nD(this.h)}, ${rD(this.s)*100}%, ${rD(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function nD(e){return e=(e||0)%360,e<0?e+360:e}function rD(e){return Math.max(0,Math.min(1,e||0))}function iD(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var aD=e=>()=>e;function oD(e,t){return function(n){return e+n*t}}function sD(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function cD(e){return(e=+e)==1?lD:function(t,n){return n-t?sD(t,n,e):aD(isNaN(t)?n:t)}}function lD(e,t){var n=t-e;return n?oD(e,n):aD(isNaN(e)?t:e)}var uD=(function e(t){var n=cD(t);function r(e,t){var r=n((e=WE(e)).r,(t=WE(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=lD(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function dD(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function fD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=SD(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function mD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function hD(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function gD(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=SD(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var _D=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vD=new RegExp(_D.source,`g`);function yD(e){return function(){return e}}function bD(e){return function(t){return e(t)+``}}function xD(e,t){var n=_D.lastIndex=vD.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=_D.exec(e))&&(i=vD.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:hD(r,i)})),n=vD.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bD(c[0].x):yD(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function SD(e,t){var n=typeof t,r;return t==null||n===`boolean`?aD(t):(n===`number`?hD:n===`string`?(r=BE(t))?(t=r,uD):xD:t instanceof BE?uD:t instanceof Date?mD:fD(t)?dD:Array.isArray(t)?pD:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?gD:hD)(e,t)}function CD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function wD(e,t){t===void 0&&(t=e,e=SD);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function TD(e){return function(){return e}}function ED(e){return+e}var DD=[0,1];function OD(e){return e}function kD(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:TD(isNaN(t)?NaN:.5)}function AD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function jD(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=kD(i,r),a=n(o,a)):(r=kD(r,i),a=n(a,o)),function(e){return a(r(e))}}function MD(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=kD(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=GT(e,t,1,r)-1;return a[n](i[n](t))}}function ND(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function PD(){var e=DD,t=DD,n=SD,r,i,a,o=OD,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==OD&&(o=AD(e[0],e[n-1])),s=n>2?MD:jD,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),hD))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,ED),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=CD,u()},d.clamp=function(e){return arguments.length?(o=e?!0:OD,u()):o!==OD},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function FD(){return PD()(OD,OD)}function ID(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function LD(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function RD(e){return e=LD(Math.abs(e)),e?e[1]:NaN}function zD(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function BD(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var VD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function HD(e){if(!(t=VD.exec(e)))throw Error(`invalid format: `+e);var t;return new UD({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}HD.prototype=UD.prototype;function UD(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}UD.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function WD(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var GD;function KD(e,t){var n=LD(e,t);if(!n)return GD=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(GD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+LD(e,Math.max(0,t+a-1))[0]}function qD(e,t){var n=LD(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var JD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:ID,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>qD(e*100,t),r:qD,s:KD,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function YD(e){return e}var XD=Array.prototype.map,ZD=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function QD(e){var t=e.grouping===void 0||e.thousands===void 0?YD:zD(XD.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?YD:BD(XD.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=HD(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):JD[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=JD[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=WD(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&GD!==void 0?ZD[8+GD/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(RD(t)/3)))*3,r=10**-n,i=l((e=HD(e),e.type=`f`,e),{suffix:ZD[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var $D,eO,tO;nO({thousands:`,`,grouping:[3],currency:[`$`,``]});function nO(e){return $D=QD(e),eO=$D.format,tO=$D.formatPrefix,$D}function rO(e){return Math.max(0,-RD(Math.abs(e)))}function iO(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(RD(t)/3)))*3-RD(Math.abs(e)))}function aO(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,RD(t)-RD(e))+1}function oO(e,t,n,r){var i=aE(e,t,n),a;switch(r=HD(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=iO(i,o))&&(r.precision=a),tO(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=aO(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=rO(i))&&(r.precision=a-(r.type===`%`)*2);break}return eO(r)}function sO(e){var t=e.domain;return e.ticks=function(e){var n=t();return rE(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return oO(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=iE(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function cO(){var e=FD();return e.copy=function(){return ND(e,cO())},pE.apply(e,arguments),sO(e)}function lO(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,ED),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return lO(e).unknown(t)},e=arguments.length?Array.from(e,ED):[0,1],sO(n)}function uO(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function dO(e){return Math.log(e)}function fO(e){return Math.exp(e)}function pO(e){return-Math.log(-e)}function mO(e){return-Math.exp(-e)}function hO(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function gO(e){return e===10?hO:e===Math.E?Math.exp:t=>e**+t}function _O(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vO(e){return(t,n)=>-e(-t,n)}function yO(e){let t=e(dO,fO),n=t.domain,r=10,i,a;function o(){return i=_O(r),a=gO(r),n()[0]<0?(i=vO(i),a=vO(a),e(pO,mO)):e(dO,fO),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=rE(o,s,p))}else m=rE(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=HD(n)).precision==null&&(n.trim=!0),n=eO(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(uO(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function bO(){let e=yO(PD()).domain([1,10]);return e.copy=()=>ND(e,bO()).base(e.base()),pE.apply(e,arguments),e}function xO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function SO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function CO(e){var t=1,n=e(xO(t),SO(t));return n.constant=function(n){return arguments.length?e(xO(t=+n),SO(t)):t},sO(n)}function wO(){var e=CO(PD());return e.copy=function(){return ND(e,wO()).constant(e.constant())},pE.apply(e,arguments)}function TO(e){return function(t){return t<0?-((-t)**+e):t**+e}}function EO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function DO(e){return e<0?-e*e:e*e}function OO(e){var t=e(OD,OD),n=1;function r(){return n===1?e(OD,OD):n===.5?e(EO,DO):e(TO(n),TO(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},sO(t)}function kO(){var e=OO(PD());return e.copy=function(){return ND(e,kO()).exponent(e.exponent())},pE.apply(e,arguments),e}function AO(){return kO.apply(null,arguments).exponent(.5)}function jO(e){return Math.sign(e)*e*e}function MO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function NO(){var e=FD(),t=[0,1],n=!1,r;function i(t){var i=MO(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(jO(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,ED)).map(jO)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return NO(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},pE.apply(i,arguments),sO(i)}function PO(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=dE(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[GT(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(RT),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return PO().domain(e).range(t).unknown(r)},pE.apply(a,arguments)}function FO(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[GT(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return FO().domain([e,t]).range(i).unknown(a)},pE.apply(sO(o),arguments)}function IO(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[GT(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return IO().domain(e).range(t).unknown(n)},pE.apply(i,arguments)}var LO=new Date,RO=new Date;function zO(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>zO(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(LO.setTime(+t),RO.setTime(+r),e(LO),e(RO),Math.floor(n(LO,RO))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var BO=zO(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);BO.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zO(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):BO),BO.range;var VO=1e3,HO=VO*60,UO=HO*60,WO=UO*24,GO=WO*7,KO=WO*30,qO=WO*365,JO=zO(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*VO)},(e,t)=>(t-e)/VO,e=>e.getUTCSeconds());JO.range;var YO=zO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*VO)},(e,t)=>{e.setTime(+e+t*HO)},(e,t)=>(t-e)/HO,e=>e.getMinutes());YO.range;var XO=zO(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*HO)},(e,t)=>(t-e)/HO,e=>e.getUTCMinutes());XO.range;var ZO=zO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*VO-e.getMinutes()*HO)},(e,t)=>{e.setTime(+e+t*UO)},(e,t)=>(t-e)/UO,e=>e.getHours());ZO.range;var QO=zO(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*UO)},(e,t)=>(t-e)/UO,e=>e.getUTCHours());QO.range;var $O=zO(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HO)/WO,e=>e.getDate()-1);$O.range;var ek=zO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/WO,e=>e.getUTCDate()-1);ek.range;var tk=zO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/WO,e=>Math.floor(e/WO));tk.range;function nk(e){return zO(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*HO)/GO)}var rk=nk(0),ik=nk(1),ak=nk(2),ok=nk(3),sk=nk(4),ck=nk(5),lk=nk(6);rk.range,ik.range,ak.range,ok.range,sk.range,ck.range,lk.range;function uk(e){return zO(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/GO)}var dk=uk(0),fk=uk(1),pk=uk(2),mk=uk(3),hk=uk(4),gk=uk(5),_k=uk(6);dk.range,fk.range,pk.range,mk.range,hk.range,gk.range,_k.range;var vk=zO(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());vk.range;var yk=zO(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());yk.range;var bk=zO(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bk.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zO(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),bk.range;var xk=zO(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xk.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zO(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),xk.range;function Sk(e,t,n,r,i,a){let o=[[JO,1,VO],[JO,5,5*VO],[JO,15,15*VO],[JO,30,30*VO],[a,1,HO],[a,5,5*HO],[a,15,15*HO],[a,30,30*HO],[i,1,UO],[i,3,3*UO],[i,6,6*UO],[i,12,12*UO],[r,1,WO],[r,2,2*WO],[n,1,GO],[t,1,KO],[t,3,3*KO],[e,1,qO]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=BT(([,,e])=>e).right(o,i);if(a===o.length)return e.every(aE(t/qO,n/qO,r));if(a===0)return BO.every(Math.max(aE(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Ck,wk]=Sk(xk,yk,dk,tk,QO,XO),[Tk,Ek]=Sk(bk,vk,rk,$O,ZO,YO);function Dk(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ok(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ak(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Lk(i),u=Rk(i),d=Lk(a),f=Rk(a),p=Lk(o),m=Rk(o),h=Lk(s),g=Rk(s),_=Lk(c),v=Rk(c),y={a:N,A:P,b:F,B:I,c:null,d:aA,e:aA,f:uA,g:xA,G:CA,H:oA,I:sA,j:cA,L:lA,m:dA,M:fA,p:ee,q:L,Q:KA,s:qA,S:pA,u:mA,U:hA,V:_A,w:vA,W:yA,x:null,X:null,y:bA,Y:SA,Z:wA,"%":GA},b={a:R,A:z,b:B,B:V,c:null,d:TA,e:TA,f:AA,g:VA,G:UA,H:EA,I:DA,j:OA,L:kA,m:jA,M:MA,p:te,q:H,Q:KA,s:qA,S:NA,u:PA,U:FA,V:LA,w:RA,W:zA,x:null,X:null,y:BA,Y:HA,Z:WA,"%":GA},x={a:E,A:D,b:O,B:k,c:A,d:Yk,e:Yk,f:tA,g:Gk,G:Wk,H:Zk,I:Zk,j:Xk,L:eA,m:Jk,M:Qk,p:T,q:qk,Q:rA,s:iA,S:$k,u:Bk,U:Vk,V:Hk,w:zk,W:Uk,x:j,X:M,y:Gk,Y:Wk,Z:Kk,"%":nA};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=jk[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=kk(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Ok(kk(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?fk.ceil(a):fk(a),a=ek.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Dk(kk(r.y,0,1)),o=a.getDay(),a=o>4||o===0?ik.ceil(a):ik(a),a=$O.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?Ok(kk(r.y,0,1)).getUTCDay():Dk(kk(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Ok(r)):Dk(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in jk?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function ee(e){return i[+(e.getHours()>=12)]}function L(e){return 1+~~(e.getMonth()/3)}function R(e){return o[e.getUTCDay()]}function z(e){return a[e.getUTCDay()]}function B(e){return c[e.getUTCMonth()]}function V(e){return s[e.getUTCMonth()]}function te(e){return i[+(e.getUTCHours()>=12)]}function H(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var jk={"-":``,_:` `,0:`0`},Mk=/^\s*\d+/,Nk=/^%/,Pk=/[\\^$*+?|[\]().{}]/g;function Fk(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Ik(e){return e.replace(Pk,`\\$&`)}function Lk(e){return RegExp(`^(?:`+e.map(Ik).join(`|`)+`)`,`i`)}function Rk(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function zk(e,t,n){var r=Mk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Bk(e,t,n){var r=Mk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Vk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Uk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Wk(e,t,n){var r=Mk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Gk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kk(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function qk(e,t,n){var r=Mk.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Jk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Yk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Xk(e,t,n){var r=Mk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Zk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $k(e,t,n){var r=Mk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function eA(e,t,n){var r=Mk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tA(e,t,n){var r=Mk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nA(e,t,n){var r=Nk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rA(e,t,n){var r=Mk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function iA(e,t,n){var r=Mk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function aA(e,t){return Fk(e.getDate(),t,2)}function oA(e,t){return Fk(e.getHours(),t,2)}function sA(e,t){return Fk(e.getHours()%12||12,t,2)}function cA(e,t){return Fk(1+$O.count(bk(e),e),t,3)}function lA(e,t){return Fk(e.getMilliseconds(),t,3)}function uA(e,t){return lA(e,t)+`000`}function dA(e,t){return Fk(e.getMonth()+1,t,2)}function fA(e,t){return Fk(e.getMinutes(),t,2)}function pA(e,t){return Fk(e.getSeconds(),t,2)}function mA(e){var t=e.getDay();return t===0?7:t}function hA(e,t){return Fk(rk.count(bk(e)-1,e),t,2)}function gA(e){var t=e.getDay();return t>=4||t===0?sk(e):sk.ceil(e)}function _A(e,t){return e=gA(e),Fk(sk.count(bk(e),e)+(bk(e).getDay()===4),t,2)}function vA(e){return e.getDay()}function yA(e,t){return Fk(ik.count(bk(e)-1,e),t,2)}function bA(e,t){return Fk(e.getFullYear()%100,t,2)}function xA(e,t){return e=gA(e),Fk(e.getFullYear()%100,t,2)}function SA(e,t){return Fk(e.getFullYear()%1e4,t,4)}function CA(e,t){var n=e.getDay();return e=n>=4||n===0?sk(e):sk.ceil(e),Fk(e.getFullYear()%1e4,t,4)}function wA(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Fk(t/60|0,`0`,2)+Fk(t%60,`0`,2)}function TA(e,t){return Fk(e.getUTCDate(),t,2)}function EA(e,t){return Fk(e.getUTCHours(),t,2)}function DA(e,t){return Fk(e.getUTCHours()%12||12,t,2)}function OA(e,t){return Fk(1+ek.count(xk(e),e),t,3)}function kA(e,t){return Fk(e.getUTCMilliseconds(),t,3)}function AA(e,t){return kA(e,t)+`000`}function jA(e,t){return Fk(e.getUTCMonth()+1,t,2)}function MA(e,t){return Fk(e.getUTCMinutes(),t,2)}function NA(e,t){return Fk(e.getUTCSeconds(),t,2)}function PA(e){var t=e.getUTCDay();return t===0?7:t}function FA(e,t){return Fk(dk.count(xk(e)-1,e),t,2)}function IA(e){var t=e.getUTCDay();return t>=4||t===0?hk(e):hk.ceil(e)}function LA(e,t){return e=IA(e),Fk(hk.count(xk(e),e)+(xk(e).getUTCDay()===4),t,2)}function RA(e){return e.getUTCDay()}function zA(e,t){return Fk(fk.count(xk(e)-1,e),t,2)}function BA(e,t){return Fk(e.getUTCFullYear()%100,t,2)}function VA(e,t){return e=IA(e),Fk(e.getUTCFullYear()%100,t,2)}function HA(e,t){return Fk(e.getUTCFullYear()%1e4,t,4)}function UA(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hk(e):hk.ceil(e),Fk(e.getUTCFullYear()%1e4,t,4)}function WA(){return`+0000`}function GA(){return`%`}function KA(e){return+e}function qA(e){return Math.floor(e/1e3)}var JA,YA,XA;ZA({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function ZA(e){return JA=Ak(e),YA=JA.format,JA.parse,XA=JA.utcFormat,JA.utcParse,JA}function QA(e){return new Date(e)}function $A(e){return e instanceof Date?+e:+new Date(+e)}function ej(e,t,n,r,i,a,o,s,c,l){var u=FD(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,$A)):f().map(QA)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(uO(n,e)):u},u.copy=function(){return ND(u,ej(e,t,n,r,i,a,o,s,c,l))},u}function tj(){return pE.apply(ej(Tk,Ek,bk,vk,rk,$O,ZO,YO,JO,YA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nj(){return pE.apply(ej(Ck,wk,xk,yk,dk,ek,QO,XO,JO,XA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rj(){var e=0,t=1,n,r,i,a,o=OD,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(SD),l.rangeRound=u(CD),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function ij(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function aj(){var e=sO(rj()(OD));return e.copy=function(){return ij(e,aj())},mE.apply(e,arguments)}function oj(){var e=yO(rj()).domain([1,10]);return e.copy=function(){return ij(e,oj()).base(e.base())},mE.apply(e,arguments)}function sj(){var e=CO(rj());return e.copy=function(){return ij(e,sj()).constant(e.constant())},mE.apply(e,arguments)}function cj(){var e=OO(rj());return e.copy=function(){return ij(e,cj()).exponent(e.exponent())},mE.apply(e,arguments)}function lj(){return cj.apply(null,arguments).exponent(.5)}function uj(){var e=[],t=OD;function n(n){if(n!=null&&!isNaN(n=+n))return t((GT(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(RT),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>uE(e,r/t))},n.copy=function(){return uj(t).domain(e)},mE.apply(n,arguments)}function dj(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=OD,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=wD(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(SD),p.rangeRound=m(CD),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function fj(){var e=sO(dj()(OD));return e.copy=function(){return ij(e,fj())},mE.apply(e,arguments)}function pj(){var e=yO(dj()).domain([.1,1,10]);return e.copy=function(){return ij(e,pj()).base(e.base())},mE.apply(e,arguments)}function mj(){var e=CO(dj());return e.copy=function(){return ij(e,mj()).constant(e.constant())},mE.apply(e,arguments)}function hj(){var e=OO(dj());return e.copy=function(){return ij(e,hj()).exponent(e.exponent())},mE.apply(e,arguments)}function gj(){return hj.apply(null,arguments).exponent(.5)}var _j=s({scaleBand:()=>_E,scaleDiverging:()=>fj,scaleDivergingLog:()=>pj,scaleDivergingPow:()=>hj,scaleDivergingSqrt:()=>gj,scaleDivergingSymlog:()=>mj,scaleIdentity:()=>lO,scaleImplicit:()=>hE,scaleLinear:()=>cO,scaleLog:()=>bO,scaleOrdinal:()=>gE,scalePoint:()=>yE,scalePow:()=>kO,scaleQuantile:()=>PO,scaleQuantize:()=>FO,scaleRadial:()=>NO,scaleSequential:()=>aj,scaleSequentialLog:()=>oj,scaleSequentialPow:()=>cj,scaleSequentialQuantile:()=>uj,scaleSequentialSqrt:()=>lj,scaleSequentialSymlog:()=>sj,scaleSqrt:()=>AO,scaleSymlog:()=>wO,scaleThreshold:()=>IO,scaleTime:()=>tj,scaleUtc:()=>nj,tickFormat:()=>oO}),vj=o(((e,t)=>{var n=Og();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),yj=o(((e,t)=>{function n(e,t){return e>t}t.exports=n})),bj=o(((e,t)=>{var n=vj(),r=yj(),i=Qx();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),xj=o(((e,t)=>{function n(e,t){return e<t}t.exports=n})),Sj=o(((e,t)=>{var n=vj(),r=xj(),i=Qx();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Cj=o(((e,t)=>{var n=d_(),r=nS(),i=WS(),a=bg();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),wj=o(((e,t)=>{var n=RS(),r=Cj();function i(e,t){return n(r(e,t),1)}t.exports=i})),Tj=o(((e,t)=>{var n=Hx();function r(e,t){return n(e,t)}t.exports=r})),Ej=o(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}));function Dj(e){return jj(e)||Aj(e)||kj(e)||Oj()}function Oj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e==`string`)return Mj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mj(e,t)}}function Aj(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function jj(e){if(Array.isArray(e))return Mj(e)}function Mj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Nj=function(e){return e},Pj={"@@functional/placeholder":!0},Fj=function(e){return e===Pj},Ij=function(e){return function t(){return arguments.length===0||arguments.length===1&&Fj(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Lj=function e(t,n){return t===1?n:Ij(function(){var r=[...arguments],i=r.filter(function(e){return e!==Pj}).length;return i>=t?n.apply(void 0,r):e(t-i,Ij(function(){var e=[...arguments],t=r.map(function(t){return Fj(t)?e.shift():t});return n.apply(void 0,Dj(t).concat(e))}))})},Rj=function(e){return Lj(e.length,e)},zj=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Bj=Rj(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),Vj=function(){var e=[...arguments];if(!e.length)return Nj;var t=e.reverse(),n=t[0],r=t.slice(1);return function(){return r.reduce(function(e,t){return t(e)},n.apply(void 0,arguments))}},Hj=function(e){return Array.isArray(e)?e.reverse():e.split(``).reverse.join(``)},Uj=function(e){var t=null,n=null;return function(){var r=[...arguments];return t&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}},Wj=l(Ej());function Gj(e){return e===0?1:Math.floor(new Wj.default(e).abs().log(10).toNumber())+1}function Kj(e,t,n){for(var r=new Wj.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var qj={rangeStep:Kj,getDigitCount:Gj,interpolateNumber:Rj(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:Rj(function(e,t,n){var r=t-+e;return r||=1/0,(n-e)/r}),uninterpolateTruncation:Rj(function(e,t,n){var r=t-+e;return r||=1/0,Math.max(0,Math.min(1,(n-e)/r))})};function Jj(e){return Zj(e)||Xj(e)||eM(e)||Yj()}function Yj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xj(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Zj(e){if(Array.isArray(e))return tM(e)}function Qj(e,t){return rM(e)||nM(e,t)||eM(e,t)||$j()}function $j(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eM(e,t){if(e){if(typeof e==`string`)return tM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tM(e,t)}}function tM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nM(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function rM(e){if(Array.isArray(e))return e}function iM(e){var t=Qj(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function aM(e,t,n){if(e.lte(0))return new Wj.default(0);var r=qj.getDigitCount(e.toNumber()),i=new Wj.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new Wj.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?s:new Wj.default(Math.ceil(s))}function oM(e,t,n){var r=1,i=new Wj.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Wj.default(10).pow(qj.getDigitCount(e)-1),i=new Wj.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Wj.default(Math.floor(e)))}else e===0?i=new Wj.default(Math.floor((t-1)/2)):n||(i=new Wj.default(Math.floor(e)));var o=Math.floor((t-1)/2);return Vj(Bj(function(e){return i.add(new Wj.default(e-o).mul(r)).toNumber()}),zj)(0,t)}function sM(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Wj.default(0),tickMin:new Wj.default(0),tickMax:new Wj.default(0)};var a=aM(new Wj.default(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Wj.default(0):(o=new Wj.default(e).add(t).div(2),o=o.sub(new Wj.default(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new Wj.default(t).sub(o).div(a).toNumber()),l=s+c+1;return l>n?sM(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new Wj.default(s).mul(a)),tickMax:o.add(new Wj.default(c).mul(a))})}function cM(e){var t=Qj(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=Qj(iM([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(Jj(zj(0,i-1).map(function(){return 1/0}))):[].concat(Jj(zj(0,i-1).map(function(){return-1/0})),[l]);return n>r?Hj(u):u}if(c===l)return oM(c,i,a);var d=sM(c,l,o,a),f=d.step,p=d.tickMin,m=d.tickMax,h=qj.rangeStep(p,m.add(new Wj.default(.1).mul(f)),f);return n>r?Hj(h):h}function lM(e,t){var n=Qj(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Qj(iM([r,i]),2),s=o[0],c=o[1];if(s===-1/0||c===1/0)return[r,i];if(s===c)return[s];var l=Math.max(t,2),u=aM(new Wj.default(c).sub(s).div(l-1),a,0),d=[].concat(Jj(qj.rangeStep(new Wj.default(s),new Wj.default(c).sub(new Wj.default(.99).mul(u)),u)),[c]);return r>i?Hj(d):d}var uM=Uj(cM),dM=Uj(lM),fM=!0,pM=`Invariant failed`;function mM(e,t){if(!e){if(fM)throw Error(pM);var n=typeof t==`function`?t():t,r=n?`${pM}: ${n}`:pM;throw Error(r)}}var hM=[`offset`,`layout`,`width`,`dataKey`,`data`,`dataPointFormatter`,`xAxis`,`yAxis`];function gM(e){"@babel/helpers - typeof";return gM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gM(e)}function _M(){return _M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_M.apply(this,arguments)}function vM(e,t){return CM(e)||SM(e,t)||bM(e,t)||yM()}function yM(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bM(e,t){if(e){if(typeof e==`string`)return xM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xM(e,t)}}function xM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function SM(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CM(e){if(Array.isArray(e))return e}function wM(e,t){if(e==null)return{};var n=TM(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TM(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function EM(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function DM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,LM(r.key),r)}}function OM(e,t,n){return t&&DM(e.prototype,t),n&&DM(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function kM(e,t,n){return t=NM(t),AM(e,MM()?Reflect.construct(t,n||[],NM(e).constructor):t.apply(e,n))}function AM(e,t){if(t&&(gM(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return jM(e)}function jM(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function MM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MM=function(){return!!e})()}function NM(e){return NM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NM(e)}function PM(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&FM(e,t)}function FM(e,t){return FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FM(e,t)}function IM(e,t,n){return t=LM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e){var t=RM(e,`string`);return gM(t)==`symbol`?t:t+``}function RM(e,t){if(gM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var zM=function(e){function t(){return EM(this,t),kM(this,t,arguments)}return PM(t,e),OM(t,[{key:`render`,value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,l=Q(wM(e,hM),!1);this.props.direction===`x`&&s.type!==`number`&&mM(!1);var u=a.map(function(e){var a=o(e,i),u=a.x,d=a.y,f=a.value,p=a.errorVal;if(!p)return null;var m=[],h,g;if(Array.isArray(p)){var _=vM(p,2);h=_[0],g=_[1]}else h=g=p;if(n===`vertical`){var v=s.scale,y=d+t,b=y+r,x=y-r,S=v(f-h),C=v(f+g);m.push({x1:C,y1:b,x2:C,y2:x}),m.push({x1:S,y1:y,x2:C,y2:y}),m.push({x1:S,y1:b,x2:S,y2:x})}else if(n===`horizontal`){var w=c.scale,T=u+t,E=T-r,D=T+r,O=w(f-h),k=w(f+g);m.push({x1:E,y1:k,x2:D,y2:k}),m.push({x1:T,y1:O,x2:T,y2:k}),m.push({x1:E,y1:O,x2:D,y2:O})}return K.createElement(Mv,_M({className:`recharts-errorBar`,key:`bar-${m.map(function(e){return`${e.x1}-${e.x2}-${e.y1}-${e.y2}`})}`},l),m.map(function(e){return K.createElement(`line`,_M({},e,{key:`line-${e.x1}-${e.x2}-${e.y1}-${e.y2}`}))}))});return K.createElement(Mv,{className:`recharts-errorBars`},u)}}])}(K.Component);IM(zM,`defaultProps`,{stroke:`black`,strokeWidth:1.5,width:5,offset:0,layout:`horizontal`}),IM(zM,`displayName`,`ErrorBar`);function BM(e){"@babel/helpers - typeof";return BM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},BM(e)}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VM(Object(n),!0).forEach(function(t){UM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UM(e,t,n){return t=WM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WM(e){var t=GM(e,`string`);return BM(t)==`symbol`?t:t+``}function GM(e,t){if(BM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(BM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var KM=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,a=fv(t,IS);if(!a)return null;var o=IS.defaultProps,s=o===void 0?{}:HM(HM({},o),a.props),c=a.props&&a.props.payload?a.props&&a.props.payload:i===`children`?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=n===void 0?{}:HM(HM({},n),t.props),i=r.dataKey,a=r.name,o=r.legendType;return{inactive:r.hide,dataKey:i,type:s.iconType||o||`square`,color:fN(t),value:a||i,payload:r}});return HM(HM(HM({},s),IS.getWithHeight(a,r)),{},{payload:c,item:a})},qM=l(bj()),JM=l(Sj()),YM=l(wj()),XM=l(Tj());function ZM(e){"@babel/helpers - typeof";return ZM=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ZM(e)}function QM(e){return nN(e)||tN(e)||eN(e)||$M()}function $M(){throw TypeError(`Invalid attempt to spread non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eN(e,t){if(e){if(typeof e==`string`)return rN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rN(e,t)}}function tN(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function nN(e){if(Array.isArray(e))return rN(e)}function rN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iN(Object(n),!0).forEach(function(t){oN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oN(e,t,n){return t=sN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sN(e){var t=cN(e,`string`);return ZM(t)==`symbol`?t:t+``}function cN(e,t){if(ZM(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ZM(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lN(e,t,n){return(0,O_.default)(e)||(0,O_.default)(t)?n:M_(t)?(0,E_.default)(e,t,n):(0,$_.default)(t)?t(e):n}function uN(e,t,n,r){var i=(0,YM.default)(e,function(e){return lN(e,t)});if(n===`number`){var a=i.filter(function(e){return Z(e)||parseFloat(e)});return a.length?[(0,JM.default)(a),(0,qM.default)(a)]:[1/0,-1/0]}return(r?i.filter(function(e){return!(0,O_.default)(e)}):i).map(function(e){return M_(e)||e instanceof Date?e:``})}var dN=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=-1,a=t?.length??0;if(a<=1)return 0;if(r&&r.axisType===`angleAxis`&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var o=r.range,s=0;s<a;s++){var c=s>0?n[s-1].coordinate:n[a-1].coordinate,l=n[s].coordinate,u=s>=a-1?n[0].coordinate:n[s+1].coordinate,d=void 0;if(k_(l-c)!==k_(u-l)){var f=[];if(k_(u-l)===k_(o[1]-o[0])){d=u;var p=l+o[1]-o[0];f[0]=Math.min(p,(p+c)/2),f[1]=Math.max(p,(p+c)/2)}else{d=c;var m=u+o[1]-o[0];f[0]=Math.min(l,(m+l)/2),f[1]=Math.max(l,(m+l)/2)}var h=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=n[s].index;break}}else{var g=Math.min(c,u),_=Math.max(c,u);if(e>(g+l)/2&&e<=(_+l)/2){i=n[s].index;break}}}else for(var v=0;v<a;v++)if(v===0&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v>0&&v<a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v===a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2){i=t[v].index;break}return i},fN=function(e){var t,n=e.type.displayName,r=(t=e.type)!=null&&t.defaultProps?aN(aN({},e.type.defaultProps),e.props):e.props,i=r.stroke,a=r.fill,o;switch(n){case`Line`:o=i;break;case`Area`:case`Radar`:o=i&&i!==`none`?i:a;break;default:o=a;break}return o},pN=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,c=o.length;s<c;s++)for(var l=i[o[s]].stackGroups,u=Object.keys(l),d=0,f=u.length;d<f;d++){var p=l[u[d]],m=p.items,h=p.cateAxisId,g=m.filter(function(e){return sv(e.type).indexOf(`Bar`)>=0});if(g&&g.length){var _=g[0].type.defaultProps,v=_===void 0?g[0].props:aN(aN({},_),g[0].props),y=v.barSize,b=v[h];a[b]||(a[b]=[]);var x=(0,O_.default)(y)?t:y;a[b].push({item:g[0],stackList:g.slice(1),barSize:(0,O_.default)(x)?void 0:F_(x,n,0)})}}return a},mN=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,a=i===void 0?[]:i,o=e.maxBarSize,s=a.length;if(s<1)return null;var c=F_(t,r,0,!0),l,u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);p+=(s-1)*c,p>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,f*=.9,p=s*f);var m={offset:((r-p)/2>>0)-c,size:0};l=a.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?f:t.barSize}},r=[].concat(QM(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var h=F_(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var _=o===+o?Math.min(g,o):g;l=a.reduce(function(e,t,n){var r=[].concat(QM(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-_)/2,size:_}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l},hN=function(e,t,n,r){var i=n.children,a=n.width,o=n.margin,s=KM({children:i,legendWidth:a-(o.left||0)-(o.right||0)});if(s){var c=r||{},l=c.width,u=c.height,d=s.align,f=s.verticalAlign,p=s.layout;if((p===`vertical`||p===`horizontal`&&f===`middle`)&&d!==`center`&&Z(e[d]))return aN(aN({},e),{},oN({},d,e[d]+(l||0)));if((p===`horizontal`||p===`vertical`&&d===`center`)&&f!==`middle`&&Z(e[f]))return aN(aN({},e),{},oN({},f,e[f]+(u||0)))}return e},gN=function(e,t,n){return(0,O_.default)(t)?!0:e===`horizontal`?t===`yAxis`:e===`vertical`||n===`x`?t===`xAxis`:n===`y`?t===`yAxis`:!0},_N=function(e,t,n,r,i){var a=t.props.children,o=dv(a,zM).filter(function(e){return gN(r,i,e.props.direction)});if(o&&o.length){var s=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=lN(t,n);if((0,O_.default)(r))return e;var i=Array.isArray(r)?[(0,JM.default)(r),(0,qM.default)(r)]:[r,r],a=s.reduce(function(e,n){var r=lN(t,n,0),a=i[0]-Math.abs(Array.isArray(r)?r[0]:r),o=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(o,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},vN=function(e,t,n,r,i){var a=t.map(function(t){return _N(e,t,n,i,r)}).filter(function(e){return!(0,O_.default)(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},yN=function(e,t,n,r,i){var a=t.map(function(t){var a=t.props.dataKey;return n===`number`&&a&&_N(e,t,a,r)||uN(e,a,n,i)});if(n===`number`)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return a.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e},[])},bN=function(e,t){return e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`},xN=function(e,t,n,r){if(r)return e.map(function(e){return e.coordinate});var i,a,o=e.map(function(e){return e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate});return i||o.push(t),a||o.push(n),o},SN=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,a=e.type,o=e.range,s=e.realScaleType===`scaleBand`?r.bandwidth()/2:2,c=(t||n)&&a===`category`&&r.bandwidth?r.bandwidth()/s:0;return c=e.axisType===`angleAxis`&&o?.length>=2?k_(o[0]-o[1])*2*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(i?i.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!(0,T_.default)(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}})},CN=new WeakMap,wN=function(e,t){if(typeof t!=`function`)return e;CN.has(e)||CN.set(e,new WeakMap);var n=CN.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},TN=function(e,t,n){var r=e.scale,i=e.type,a=e.layout,o=e.axisType;if(r===`auto`)return a===`radial`&&o===`radiusAxis`?{scale:_E(),realScaleType:`band`}:a===`radial`&&o===`angleAxis`?{scale:cO(),realScaleType:`linear`}:i===`category`&&t&&(t.indexOf(`LineChart`)>=0||t.indexOf(`AreaChart`)>=0||t.indexOf(`ComposedChart`)>=0&&!n)?{scale:yE(),realScaleType:`point`}:i===`category`?{scale:_E(),realScaleType:`band`}:{scale:cO(),realScaleType:`linear`};if((0,w_.default)(r)){var s=`scale${(0,pb.default)(r)}`;return{scale:(_j[s]||yE)(),realScaleType:_j[s]?s:`point`}}return(0,$_.default)(r)?{scale:r}:{scale:yE(),realScaleType:`point`}},EN=1e-4,DN=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-EN,a=Math.max(r[0],r[1])+EN,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},ON=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},kN=function(e,t){if(!t||t.length!==2||!Z(t[0])||!Z(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Z(e[0])||e[0]<n)&&(i[0]=n),(!Z(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},AN={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=(0,T_.default)(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},expand:ub,none:ab,silhouette:db,wiggle:fb,positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=(0,T_.default)(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},jN=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),i=AN[n];return lb().keys(r).value(function(e,t){return+lN(e,t,0)}).order(ob).offset(i)(e)},MN=function(e,t,n,r,i,a){if(!e)return null;var o=(a?t.reverse():t).reduce(function(e,t){var i,a=(i=t.type)!=null&&i.defaultProps?aN(aN({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(a.hide)return e;var s=a[n],c=e[s]||{hasStack:!1,stackGroups:{}};if(M_(o)){var l=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[P_(`_stackId_`)]={numericAxisId:n,cateAxisId:r,items:[t]};return aN(aN({},e),{},oN({},s,c))},{});return Object.keys(o).reduce(function(t,a){var s=o[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,a){var o=s.stackGroups[a];return aN(aN({},t),{},oN({},a,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:jN(e,o.items,i)}))},{})),aN(aN({},t),{},oN({},a,s))},{})},NN=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,a=t.originalDomain,o=t.allowDecimals,s=n||t.scale;if(s!==`auto`&&s!==`linear`)return null;if(i&&r===`number`&&a&&(a[0]===`auto`||a[1]===`auto`)){var c=e.domain();if(!c.length)return null;var l=uM(c,i,o);return e.domain([(0,JM.default)(l),(0,qM.default)(l)]),{niceTicks:l}}return i&&r===`number`?{niceTicks:dM(e.domain(),i,o)}:null};function PN(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,O_.default)(i[t.dataKey])){var s=z_(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var c=lN(i,(0,O_.default)(o)?t.dataKey:o);return(0,O_.default)(c)?null:t.scale(c)}var FN=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=lN(a,t.dataKey,t.domain[o]);return(0,O_.default)(s)?null:t.scale(s)-i/2+r},IN=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},LN=function(e,t){var n,r=((n=e.type)!=null&&n.defaultProps?aN(aN({},e.type.defaultProps),e.props):e.props).stackId;if(M_(r)){var i=t[r];if(i){var a=i.items.indexOf(e);return a>=0?i.stackedData[a]:null}}return null},RN=function(e){return e.reduce(function(e,t){return[(0,JM.default)(t.concat([e[0]]).filter(Z)),(0,qM.default)(t.concat([e[1]]).filter(Z))]},[1/0,-1/0])},zN=function(e,t,n){return Object.keys(e).reduce(function(r,i){var a=e[i].stackedData.reduce(function(e,r){var i=RN(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},BN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,VN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HN=function(e,t,n){if((0,$_.default)(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Z(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(BN.test(e[0])){var i=+BN.exec(e[0])[1];r[0]=t[0]-i}else (0,$_.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Z(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(VN.test(e[1])){var a=+VN.exec(e[1])[1];r[1]=t[1]+a}else (0,$_.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},UN=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,iC.default)(t,function(e){return e.coordinate}),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c.coordinate||0)-(l.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},WN=function(e,t,n){return!e||!e.length||(0,XM.default)(e,(0,E_.default)(n,`type.defaultProps.domain`))?t:e},GN=function(e,t){var n=e.type.defaultProps?aN(aN({},e.type.defaultProps),e.props):e.props,r=n.dataKey,i=n.name,a=n.unit,o=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return aN(aN({},Q(e,!1)),{},{dataKey:r,unit:a,formatter:o,name:i||r,color:fN(e),value:lN(t,r),type:s,payload:t,chartType:c,hide:l})};function KN(e){"@babel/helpers - typeof";return KN=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KN(e)}function qN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qN(Object(n),!0).forEach(function(t){YN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YN(e,t,n){return t=XN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e){var t=ZN(e,`string`);return KN(t)==`symbol`?t:t+``}function ZN(e,t){if(KN(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KN(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function QN(e,t){return rP(e)||nP(e,t)||eP(e,t)||$N()}function $N(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eP(e,t){if(e){if(typeof e==`string`)return tP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tP(e,t)}}function tP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nP(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function rP(e){if(Array.isArray(e))return e}var iP=Math.PI/180,aP=function(e){return e*180/Math.PI},oP=function(e,t,n,r){return{x:e+Math.cos(-iP*r)*n,y:t+Math.sin(-iP*r)*n}},sP=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},cP=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.startAngle,c=e.endAngle,l=F_(e.cx,a,a/2),u=F_(e.cy,o,o/2),d=sP(a,o,n),f=F_(e.innerRadius,d,0),p=F_(e.outerRadius,d,d*.8);return Object.keys(t).reduce(function(e,n){var a=t[n],o=a.domain,d=a.reversed,m;if((0,O_.default)(a.range))r===`angleAxis`?m=[s,c]:r===`radiusAxis`&&(m=[f,p]),d&&(m=[m[1],m[0]]);else{m=a.range;var h=QN(m,2);s=h[0],c=h[1]}var g=TN(a,i),_=g.realScaleType,v=g.scale;v.domain(o).range(m),DN(v);var y=NN(v,JN(JN({},a),{},{realScaleType:_})),b=JN(JN(JN({},a),y),{},{range:m,radius:p,realScaleType:_,scale:v,cx:l,cy:u,innerRadius:f,outerRadius:p,startAngle:s,endAngle:c});return JN(JN({},e),{},YN({},n,b))},{})},lP=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},uP=function(e,t){var n=e.x,r=e.y,i=t.cx,a=t.cy,o=lP({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:aP(c),angleInRadian:c}},dP=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},fP=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},pP=function(e,t){var n=e.x,r=e.y,i=uP({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c)return!1;if(a===0)return!0;var l=dP(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?JN(JN({},t),{},{radius:a,angle:fP(f,t)}):null},mP=function(e){return!(0,K.isValidElement)(e)&&!(0,$_.default)(e)&&typeof e!=`boolean`?e.className:``};function hP(e){"@babel/helpers - typeof";return hP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hP(e)}var gP=[`offset`];function _P(e){return xP(e)||bP(e)||yP(e)||vP()}function vP(){throw TypeError(`Invalid attempt to spread non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yP(e,t){if(e){if(typeof e==`string`)return SP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SP(e,t)}}function bP(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xP(e){if(Array.isArray(e))return SP(e)}function SP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function CP(e,t){if(e==null)return{};var n=wP(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wP(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TP(Object(n),!0).forEach(function(t){DP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DP(e,t,n){return t=OP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OP(e){var t=kP(e,`string`);return hP(t)==`symbol`?t:t+``}function kP(e,t){if(hP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AP(){return AP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AP.apply(this,arguments)}var jP=function(e){var t=e.value,n=e.formatter,r=(0,O_.default)(e.children)?t:e.children;return(0,$_.default)(n)?n(r):r},MP=function(e,t){return k_(t-e)*Math.min(Math.abs(t-e),360)},NP=function(e,t,n){var r=e.position,i=e.viewBox,a=e.offset,o=e.className,s=i,c=s.cx,l=s.cy,u=s.innerRadius,f=s.outerRadius,p=s.startAngle,m=s.endAngle,h=s.clockWise,g=(u+f)/2,_=MP(p,m),v=_>=0?1:-1,y,b;r===`insideStart`?(y=p+v*a,b=h):r===`insideEnd`?(y=m-v*a,b=!h):r===`end`&&(y=m+v*a,b=h),b=_<=0?b:!b;var x=oP(c,l,g,y),S=oP(c,l,g,y+(b?1:-1)*359),C=`M${x.x},${x.y}
61
61
  A${g},${g},0,1,${b?0:1},
62
- ${S.x},${S.y}`,w=(0,E_.default)(e.id)?M_(`recharts-radial-line-`):e.id;return K.createElement(`text`,OP({},n,{dominantBaseline:`central`,className:d(`recharts-radial-bar-label`,o)}),K.createElement(`defs`,null,K.createElement(`path`,{id:w,d:C})),K.createElement(`textPath`,{xlinkHref:`#${w}`},t))},MP=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,a=i.cx,o=i.cy,s=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if(r===`outside`){var u=iP(a,o,c+n,l),d=u.x;return{x:d,y:u.y,textAnchor:d>=a?`start`:`end`,verticalAnchor:`middle`}}if(r===`center`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`middle`};if(r===`centerTop`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`start`};if(r===`centerBottom`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`end`};var f=iP(a,o,(s+c)/2,l);return{x:f.x,y:f.y,textAnchor:`middle`,verticalAnchor:`middle`}},NP=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,o=a.x,s=a.y,c=a.width,l=a.height,u=l>=0?1:-1,d=u*r,f=u>0?`end`:`start`,p=u>0?`start`:`end`,m=c>=0?1:-1,h=m*r,g=m>0?`end`:`start`,_=m>0?`start`:`end`;if(i===`top`)return wP(wP({},{x:o+c/2,y:s-u*r,textAnchor:`middle`,verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:c}:{});if(i===`bottom`)return wP(wP({},{x:o+c/2,y:s+l+d,textAnchor:`middle`,verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if(i===`left`){var v={x:o-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`};return wP(wP({},v),n?{width:Math.max(v.x-n.x,0),height:l}:{})}if(i===`right`){var y={x:o+c+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`};return wP(wP({},y),n?{width:Math.max(n.x+n.width-y.x,0),height:l}:{})}var b=n?{width:c,height:l}:{};return i===`insideLeft`?wP({x:o+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`},b):i===`insideRight`?wP({x:o+c-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`},b):i===`insideTop`?wP({x:o+c/2,y:s+d,textAnchor:`middle`,verticalAnchor:p},b):i===`insideBottom`?wP({x:o+c/2,y:s+l-d,textAnchor:`middle`,verticalAnchor:f},b):i===`insideTopLeft`?wP({x:o+h,y:s+d,textAnchor:_,verticalAnchor:p},b):i===`insideTopRight`?wP({x:o+c-h,y:s+d,textAnchor:g,verticalAnchor:p},b):i===`insideBottomLeft`?wP({x:o+h,y:s+l-d,textAnchor:_,verticalAnchor:f},b):i===`insideBottomRight`?wP({x:o+c-h,y:s+l-d,textAnchor:g,verticalAnchor:f},b):(0,V_.default)(i)&&(Z(i.x)||O_(i.x))&&(Z(i.y)||O_(i.y))?wP({x:o+N_(i.x,c),y:s+N_(i.y,l),textAnchor:`end`,verticalAnchor:`end`},b):wP({x:o+c/2,y:s+l/2,textAnchor:`middle`,verticalAnchor:`middle`},b)},PP=function(e){return`cx`in e&&Z(e.cx)};function FP(e){var t=e.offset,n=t===void 0?5:t,r=xP(e,mP),i=wP({offset:n},r),a=i.viewBox,o=i.position,s=i.value,c=i.children,l=i.content,u=i.className,f=u===void 0?``:u,p=i.textBreakAll;if(!a||(0,E_.default)(s)&&(0,E_.default)(c)&&!(0,K.isValidElement)(l)&&!(0,Z_.default)(l))return null;if((0,K.isValidElement)(l))return(0,K.cloneElement)(l,i);var m;if((0,Z_.default)(l)){if(m=(0,K.createElement)(l,i),(0,K.isValidElement)(m))return m}else m=kP(i);var h=PP(a),g=Q(i,!0);if(h&&(o===`insideStart`||o===`insideEnd`||o===`end`))return jP(i,m,g);var _=h?MP(i):NP(i);return K.createElement(FT,OP({className:d(`recharts-label`,f)},g,_,{breakAll:p}),m)}FP.displayName=`Label`;var IP=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,a=e.endAngle,o=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,m=e.width,h=e.height,g=e.clockWise,_=e.labelViewBox;if(_)return _;if(Z(m)&&Z(h)){if(Z(u)&&Z(d))return{x:u,y:d,width:m,height:h};if(Z(f)&&Z(p))return{x:f,y:p,width:m,height:h}}return Z(u)&&Z(d)?{x:u,y:d,width:0,height:0}:Z(t)&&Z(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:c||0,outerRadius:l||s||o||0,clockWise:g}:e.viewBox?e.viewBox:{}},LP=function(e,t){return e?e===!0?K.createElement(FP,{key:`label-implicit`,viewBox:t}):A_(e)?K.createElement(FP,{key:`label-implicit`,viewBox:t,value:e}):(0,K.isValidElement)(e)?e.type===FP?(0,K.cloneElement)(e,{key:`label-implicit`,viewBox:t}):K.createElement(FP,{key:`label-implicit`,content:e,viewBox:t}):(0,Z_.default)(e)?K.createElement(FP,{key:`label-implicit`,content:e,viewBox:t}):(0,V_.default)(e)?K.createElement(FP,OP({viewBox:t},e,{key:`label-implicit`})):null:null};FP.parseViewBox=IP,FP.renderCallByParent=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=IP(e),a=lv(r,FP).map(function(e,n){return(0,K.cloneElement)(e,{viewBox:t||i,key:`label-${n}`})});return n?[LP(e.label,t||i)].concat(hP(a)):a};var RP=l(o(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}))());function zP(e){"@babel/helpers - typeof";return zP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zP(e)}var BP=[`valueAccessor`],VP=[`data`,`dataKey`,`clockWise`,`id`,`textBreakAll`];function HP(e){return KP(e)||GP(e)||WP(e)||UP()}function UP(){throw TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WP(e,t){if(e){if(typeof e==`string`)return qP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qP(e,t)}}function GP(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function KP(e){if(Array.isArray(e))return qP(e)}function qP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JP(){return JP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JP.apply(this,arguments)}function YP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YP(Object(n),!0).forEach(function(t){ZP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZP(e,t,n){return t=QP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e){var t=$P(e,`string`);return zP(t)==`symbol`?t:t+``}function $P(e,t){if(zP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(zP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function eF(e,t){if(e==null)return{};var n=tF(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var nF=function(e){return Array.isArray(e.value)?(0,RP.default)(e.value):e.value};function rF(e){var t=e.valueAccessor,n=t===void 0?nF:t,r=eF(e,BP),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,c=r.textBreakAll,l=eF(r,VP);return!i||!i.length?null:K.createElement(Av,{className:`recharts-label-list`},i.map(function(e,t){var r=(0,E_.default)(a)?n(e,t):sN(e&&e.payload,a),i=(0,E_.default)(s)?{}:{id:`${s}-${t}`};return K.createElement(FP,JP({},Q(e,!0),l,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:FP.parseViewBox((0,E_.default)(o)?e:XP(XP({},e),{},{clockWise:o})),key:`label-${t}`,index:t}))}))}rF.displayName=`LabelList`;function iF(e,t){return e?e===!0?K.createElement(rF,{key:`labelList-implicit`,data:t}):K.isValidElement(e)||(0,Z_.default)(e)?K.createElement(rF,{key:`labelList-implicit`,data:t,content:e}):(0,V_.default)(e)?K.createElement(rF,JP({data:t},e,{key:`labelList-implicit`})):null:null}function aF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lv(r,rF).map(function(e,n){return(0,K.cloneElement)(e,{data:t,key:`labelList-${n}`})});return n?[iF(e.label,t)].concat(HP(i)):i}rF.renderCallByParent=aF;function oF(e){"@babel/helpers - typeof";return oF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oF(e)}function sF(){return sF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sF.apply(this,arguments)}function cF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cF(Object(n),!0).forEach(function(t){uF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uF(e,t,n){return t=dF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dF(e){var t=fF(e,`string`);return oF(t)==`symbol`?t:t+``}function fF(e,t){if(oF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(oF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pF=function(e,t){return D_(t-e)*Math.min(Math.abs(t-e),359.999)},mF=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/nP,d=c?i:i+a*u,f=iP(t,n,l,d),p=iP(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:iP(t,n,l*Math.cos(u*nP),m),theta:u}},hF=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=pF(a,o),c=a+s,l=iP(t,n,i,a),u=iP(t,n,i,c),d=`M ${l.x},${l.y}
62
+ ${S.x},${S.y}`,w=(0,O_.default)(e.id)?P_(`recharts-radial-line-`):e.id;return K.createElement(`text`,AP({},n,{dominantBaseline:`central`,className:d(`recharts-radial-bar-label`,o)}),K.createElement(`defs`,null,K.createElement(`path`,{id:w,d:C})),K.createElement(`textPath`,{xlinkHref:`#${w}`},t))},PP=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,a=i.cx,o=i.cy,s=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if(r===`outside`){var u=oP(a,o,c+n,l),d=u.x;return{x:d,y:u.y,textAnchor:d>=a?`start`:`end`,verticalAnchor:`middle`}}if(r===`center`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`middle`};if(r===`centerTop`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`start`};if(r===`centerBottom`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`end`};var f=oP(a,o,(s+c)/2,l);return{x:f.x,y:f.y,textAnchor:`middle`,verticalAnchor:`middle`}},FP=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,o=a.x,s=a.y,c=a.width,l=a.height,u=l>=0?1:-1,d=u*r,f=u>0?`end`:`start`,p=u>0?`start`:`end`,m=c>=0?1:-1,h=m*r,g=m>0?`end`:`start`,_=m>0?`start`:`end`;if(i===`top`)return EP(EP({},{x:o+c/2,y:s-u*r,textAnchor:`middle`,verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:c}:{});if(i===`bottom`)return EP(EP({},{x:o+c/2,y:s+l+d,textAnchor:`middle`,verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if(i===`left`){var v={x:o-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`};return EP(EP({},v),n?{width:Math.max(v.x-n.x,0),height:l}:{})}if(i===`right`){var y={x:o+c+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`};return EP(EP({},y),n?{width:Math.max(n.x+n.width-y.x,0),height:l}:{})}var b=n?{width:c,height:l}:{};return i===`insideLeft`?EP({x:o+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`},b):i===`insideRight`?EP({x:o+c-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`},b):i===`insideTop`?EP({x:o+c/2,y:s+d,textAnchor:`middle`,verticalAnchor:p},b):i===`insideBottom`?EP({x:o+c/2,y:s+l-d,textAnchor:`middle`,verticalAnchor:f},b):i===`insideTopLeft`?EP({x:o+h,y:s+d,textAnchor:_,verticalAnchor:p},b):i===`insideTopRight`?EP({x:o+c-h,y:s+d,textAnchor:g,verticalAnchor:p},b):i===`insideBottomLeft`?EP({x:o+h,y:s+l-d,textAnchor:_,verticalAnchor:f},b):i===`insideBottomRight`?EP({x:o+c-h,y:s+l-d,textAnchor:g,verticalAnchor:f},b):(0,U_.default)(i)&&(Z(i.x)||A_(i.x))&&(Z(i.y)||A_(i.y))?EP({x:o+F_(i.x,c),y:s+F_(i.y,l),textAnchor:`end`,verticalAnchor:`end`},b):EP({x:o+c/2,y:s+l/2,textAnchor:`middle`,verticalAnchor:`middle`},b)},IP=function(e){return`cx`in e&&Z(e.cx)};function LP(e){var t=e.offset,n=t===void 0?5:t,r=CP(e,gP),i=EP({offset:n},r),a=i.viewBox,o=i.position,s=i.value,c=i.children,l=i.content,u=i.className,f=u===void 0?``:u,p=i.textBreakAll;if(!a||(0,O_.default)(s)&&(0,O_.default)(c)&&!(0,K.isValidElement)(l)&&!(0,$_.default)(l))return null;if((0,K.isValidElement)(l))return(0,K.cloneElement)(l,i);var m;if((0,$_.default)(l)){if(m=(0,K.createElement)(l,i),(0,K.isValidElement)(m))return m}else m=jP(i);var h=IP(a),g=Q(i,!0);if(h&&(o===`insideStart`||o===`insideEnd`||o===`end`))return NP(i,m,g);var _=h?PP(i):FP(i);return K.createElement(LT,AP({className:d(`recharts-label`,f)},g,_,{breakAll:p}),m)}LP.displayName=`Label`;var RP=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,a=e.endAngle,o=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,m=e.width,h=e.height,g=e.clockWise,_=e.labelViewBox;if(_)return _;if(Z(m)&&Z(h)){if(Z(u)&&Z(d))return{x:u,y:d,width:m,height:h};if(Z(f)&&Z(p))return{x:f,y:p,width:m,height:h}}return Z(u)&&Z(d)?{x:u,y:d,width:0,height:0}:Z(t)&&Z(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:c||0,outerRadius:l||s||o||0,clockWise:g}:e.viewBox?e.viewBox:{}},zP=function(e,t){return e?e===!0?K.createElement(LP,{key:`label-implicit`,viewBox:t}):M_(e)?K.createElement(LP,{key:`label-implicit`,viewBox:t,value:e}):(0,K.isValidElement)(e)?e.type===LP?(0,K.cloneElement)(e,{key:`label-implicit`,viewBox:t}):K.createElement(LP,{key:`label-implicit`,content:e,viewBox:t}):(0,$_.default)(e)?K.createElement(LP,{key:`label-implicit`,content:e,viewBox:t}):(0,U_.default)(e)?K.createElement(LP,AP({viewBox:t},e,{key:`label-implicit`})):null:null};LP.parseViewBox=RP,LP.renderCallByParent=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=RP(e),a=dv(r,LP).map(function(e,n){return(0,K.cloneElement)(e,{viewBox:t||i,key:`label-${n}`})});return n?[zP(e.label,t||i)].concat(_P(a)):a};var BP=l(o(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}))());function VP(e){"@babel/helpers - typeof";return VP=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},VP(e)}var HP=[`valueAccessor`],UP=[`data`,`dataKey`,`clockWise`,`id`,`textBreakAll`];function WP(e){return JP(e)||qP(e)||KP(e)||GP()}function GP(){throw TypeError(`Invalid attempt to spread non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KP(e,t){if(e){if(typeof e==`string`)return YP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YP(e,t)}}function qP(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function JP(e){if(Array.isArray(e))return YP(e)}function YP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZP(Object(n),!0).forEach(function(t){$P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $P(e,t,n){return t=eF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e){var t=tF(e,`string`);return VP(t)==`symbol`?t:t+``}function tF(e,t){if(VP(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(VP(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nF(e,t){if(e==null)return{};var n=rF(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rF(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var iF=function(e){return Array.isArray(e.value)?(0,BP.default)(e.value):e.value};function aF(e){var t=e.valueAccessor,n=t===void 0?iF:t,r=nF(e,HP),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,c=r.textBreakAll,l=nF(r,UP);return!i||!i.length?null:K.createElement(Mv,{className:`recharts-label-list`},i.map(function(e,t){var r=(0,O_.default)(a)?n(e,t):lN(e&&e.payload,a),i=(0,O_.default)(s)?{}:{id:`${s}-${t}`};return K.createElement(LP,XP({},Q(e,!0),l,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:LP.parseViewBox((0,O_.default)(o)?e:QP(QP({},e),{},{clockWise:o})),key:`label-${t}`,index:t}))}))}aF.displayName=`LabelList`;function oF(e,t){return e?e===!0?K.createElement(aF,{key:`labelList-implicit`,data:t}):K.isValidElement(e)||(0,$_.default)(e)?K.createElement(aF,{key:`labelList-implicit`,data:t,content:e}):(0,U_.default)(e)?K.createElement(aF,XP({data:t},e,{key:`labelList-implicit`})):null:null}function sF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=dv(r,aF).map(function(e,n){return(0,K.cloneElement)(e,{data:t,key:`labelList-${n}`})});return n?[oF(e.label,t)].concat(WP(i)):i}aF.renderCallByParent=sF;function cF(e){"@babel/helpers - typeof";return cF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cF(e)}function lF(){return lF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lF.apply(this,arguments)}function uF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uF(Object(n),!0).forEach(function(t){fF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fF(e,t,n){return t=pF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pF(e){var t=mF(e,`string`);return cF(t)==`symbol`?t:t+``}function mF(e,t){if(cF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var hF=function(e,t){return k_(t-e)*Math.min(Math.abs(t-e),359.999)},gF=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/iP,d=c?i:i+a*u,f=oP(t,n,l,d),p=oP(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:oP(t,n,l*Math.cos(u*iP),m),theta:u}},_F=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=hF(a,o),c=a+s,l=oP(t,n,i,a),u=oP(t,n,i,c),d=`M ${l.x},${l.y}
64
64
  A ${i},${i},0,
65
65
  ${+(Math.abs(s)>180)},${+(a>c)},
66
66
  ${u.x},${u.y}
67
- `;if(r>0){var f=iP(t,n,r,a),p=iP(t,n,r,c);d+=`L ${p.x},${p.y}
67
+ `;if(r>0){var f=oP(t,n,r,a),p=oP(t,n,r,c);d+=`L ${p.x},${p.y}
68
68
  A ${r},${r},0,
69
69
  ${+(Math.abs(s)>180)},${+(a<=c)},
70
- ${f.x},${f.y} Z`}else d+=`L ${t},${n} Z`;return d},gF=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=D_(l-c),d=mF({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=mF({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?`M ${p.x},${p.y}
70
+ ${f.x},${f.y} Z`}else d+=`L ${t},${n} Z`;return d},vF=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=k_(l-c),d=gF({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=gF({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?`M ${p.x},${p.y}
71
71
  a${a},${a},0,0,1,${a*2},0
72
72
  a${a},${a},0,0,1,${-a*2},0
73
- `:hF({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=`M ${p.x},${p.y}
73
+ `:_F({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=`M ${p.x},${p.y}
74
74
  A${a},${a},0,0,${+(u<0)},${f.x},${f.y}
75
75
  A${i},${i},0,${+(y>180)},${+(u<0)},${g.x},${g.y}
76
76
  A${a},${a},0,0,${+(u<0)},${_.x},${_.y}
77
- `;if(r>0){var x=mF({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=mF({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=`L${D.x},${D.y}
77
+ `;if(r>0){var x=gF({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=gF({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=`L${D.x},${D.y}
78
78
  A${a},${a},0,0,${+(u<0)},${E.x},${E.y}
79
79
  A${r},${r},0,${+(k>180)},${+(u>0)},${S.x},${S.y}
80
- A${a},${a},0,0,${+(u<0)},${C.x},${C.y}Z`}else b+=`L${t},${n}Z`;return b},_F={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vF=function(e){var t=lF(lF({},_F),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(a<i||l===u)return null;var p=d(`recharts-sector`,f),m=a-i,h=N_(o,m,0,!0),g=h>0&&Math.abs(l-u)<360?gF({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):hF({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return K.createElement(`path`,sF({},Q(t,!0),{className:p,d:g,role:`img`}))};function yF(e){"@babel/helpers - typeof";return yF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yF(e)}function bF(){return bF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bF.apply(this,arguments)}function xF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xF(Object(n),!0).forEach(function(t){CF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CF(e,t,n){return t=wF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(e){var t=TF(e,`string`);return yF(t)==`symbol`?t:t+``}function TF(e,t){if(yF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var EF={curveBasisClosed:Iy,curveBasisOpen:Ry,curveBasis:Py,curveBumpX:uy,curveBumpY:dy,curveLinearClosed:By,curveLinear:iy,curveMonotoneX:Jy,curveMonotoneY:Yy,curveNatural:Qy,curveStep:eb,curveStepAfter:nb,curveStepBefore:tb},DF=function(e){return e.x===+e.x&&e.y===+e.y},OF=function(e){return e.x},kF=function(e){return e.y},AF=function(e,t){if((0,Z_.default)(e))return e;var n=`curve${(0,db.default)(e)}`;return(n===`curveMonotone`||n===`curveBump`)&&t?EF[`${n}${t===`vertical`?`Y`:`X`}`]:EF[n]||iy},jF=function(e){var t=e.type,n=t===void 0?`linear`:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?!1:s,l=AF(n,o),u=c?i.filter(function(e){return DF(e)}):i,d;if(Array.isArray(a)){var f=c?a.filter(function(e){return DF(e)}):a,p=u.map(function(e,t){return SF(SF({},e),{},{base:f[t]})});return d=o===`vertical`?cy().y(kF).x1(OF).x0(function(e){return e.base.x}):cy().x(OF).y1(kF).y0(function(e){return e.base.y}),d.defined(DF).curve(l),d(p)}return d=o===`vertical`&&Z(a)?cy().y(kF).x1(OF).x0(a):Z(a)?cy().x(OF).y1(kF).y0(a):sy().x(OF).y(kF),d.defined(DF).curve(l),d(u)},MF=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?jF(e):r;return K.createElement(`path`,bF({},Q(e,!1),J_(e),{className:d(`recharts-curve`,t),d:a,ref:i}))},NF=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),PF=o(((e,t)=>{var n=NF();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),FF=o(((e,t)=>{t.exports=PF()()})),{getOwnPropertyNames:IF,getOwnPropertySymbols:LF}=Object,{hasOwnProperty:RF}=Object.prototype;function zF(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function BF(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function VF(e){return e?.[Symbol.toStringTag]}function HF(e){return IF(e).concat(LF(e))}var UF=Object.hasOwn||((e,t)=>RF.call(e,t));function WF(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var GF=`__v`,KF=`__o`,qF=`_owner`,{getOwnPropertyDescriptor:JF,keys:YF}=Object;function XF(e,t){return e.byteLength===t.byteLength&&lI(new Uint8Array(e),new Uint8Array(t))}function ZF(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function QF(e,t){return e.byteLength===t.byteLength&&lI(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function $F(e,t){return WF(e.getTime(),t.getTime())}function eI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function tI(e,t){return e===t}function nI(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var rI=WF;function iI(e,t,n){let r=YF(e),i=r.length;if(YF(t).length!==i)return!1;for(;i-- >0;)if(!dI(e,t,n,r[i]))return!1;return!0}function aI(e,t,n){let r=HF(e),i=r.length;if(HF(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!dI(e,t,n,a)||(o=JF(e,a),s=JF(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function oI(e,t){return WF(e.valueOf(),t.valueOf())}function sI(e,t){return e.source===t.source&&e.flags===t.flags}function cI(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function lI(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function uI(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function dI(e,t,n,r){return(r===qF||r===KF||r===GF)&&(e.$$typeof||t.$$typeof)?!0:UF(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var fI=`[object ArrayBuffer]`,pI=`[object Arguments]`,mI=`[object Boolean]`,hI=`[object DataView]`,gI=`[object Date]`,_I=`[object Error]`,vI=`[object Map]`,yI=`[object Number]`,bI=`[object Object]`,xI=`[object RegExp]`,SI=`[object Set]`,CI=`[object String]`,wI={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},TI=`[object URL]`,EI=Object.prototype.toString;function DI({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=EI.call(h);if(b===gI)return r(h,g,_);if(b===xI)return u(h,g,_);if(b===vI)return o(h,g,_);if(b===SI)return d(h,g,_);if(b===bI)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===TI)return p(h,g,_);if(b===_I)return i(h,g,_);if(b===pI)return c(h,g,_);if(wI[b])return f(h,g,_);if(b===fI)return e(h,g,_);if(b===hI)return n(h,g,_);if(b===mI||b===yI||b===CI)return l(h,g,_);if(m){let e=m[b];if(!e){let t=VF(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function OI({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:XF,areArraysEqual:n?aI:ZF,areDataViewsEqual:QF,areDatesEqual:$F,areErrorsEqual:eI,areFunctionsEqual:tI,areMapsEqual:n?zF(nI,aI):nI,areNumbersEqual:rI,areObjectsEqual:n?aI:iI,arePrimitiveWrappersEqual:oI,areRegExpsEqual:sI,areSetsEqual:n?zF(cI,aI):cI,areTypedArraysEqual:n?zF(lI,aI):lI,areUrlsEqual:uI,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=BF(r.areArraysEqual),t=BF(r.areMapsEqual),n=BF(r.areObjectsEqual),i=BF(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}function kI(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function AI({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var jI=MI();MI({strict:!0}),MI({circular:!0}),MI({circular:!0,strict:!0}),MI({createInternalComparator:()=>WF}),MI({strict:!0,createInternalComparator:()=>WF}),MI({circular:!0,createInternalComparator:()=>WF}),MI({circular:!0,createInternalComparator:()=>WF,strict:!0});function MI(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=DI(OI(e));return AI({circular:t,comparator:a,createState:r,equals:n?n(a):kI(a),strict:i})}function NI(e){typeof requestAnimationFrame<`u`&&requestAnimationFrame(e)}function PI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):NI(r)})}function FI(e){"@babel/helpers - typeof";return FI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FI(e)}function II(e){return VI(e)||BI(e)||RI(e)||LI()}function LI(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
81
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RI(e,t){if(e){if(typeof e==`string`)return zI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zI(e,t)}}function zI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BI(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function VI(e){if(Array.isArray(e))return e}function HI(){var e={},t=function(){return null},n=!1,r=function r(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=II(i),o=a[0],s=a.slice(1);if(typeof o==`number`){PI(r.bind(null,s),o);return}r(o),PI(r.bind(null,s));return}FI(i)===`object`&&(e=i,t(e)),typeof i==`function`&&i()}};return{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function UI(e){"@babel/helpers - typeof";return UI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UI(e)}function WI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WI(Object(n),!0).forEach(function(t){KI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KI(e,t,n){return t=qI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qI(e){var t=JI(e,`string`);return UI(t)===`symbol`?t:String(t)}function JI(e,t){if(UI(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UI(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var YI=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})},XI=function(e){return e},ZI=function(e){return e.replace(/([A-Z])/g,function(e){return`-${e.toLowerCase()}`})},QI=function(e,t){return Object.keys(t).reduce(function(n,r){return GI(GI({},n),{},KI({},r,e(r,t[r])))},{})},$I=function(e,t,n){return e.map(function(e){return`${ZI(e)} ${t}ms ${n}`}).join(`,`)},eL=!1,tL=function(e,t,n,r,i,a,o,s){if(eL&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var c=[n,r,i,a,o,s],l=0;console.warn(t.replace(/%s/g,function(){return c[l++]}))}};function nL(e,t){return aL(e)||iL(e,t)||cL(e,t)||rL()}function rL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function aL(e){if(Array.isArray(e))return e}function oL(e){return uL(e)||lL(e)||cL(e)||sL()}function sL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cL(e,t){if(e){if(typeof e==`string`)return dL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dL(e,t)}}function lL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function uL(e){if(Array.isArray(e))return dL(e)}function dL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fL=1e-4,pL=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},mL=function(e,t){return e.map(function(e,n){return e*t**+n}).reduce(function(e,t){return e+t})},hL=function(e,t){return function(n){return mL(pL(e,t),n)}},gL=function(e,t){return function(n){var r=pL(e,t);return mL([].concat(oL(r.map(function(e,t){return e*t}).slice(1)),[0]),n)}},_L=function(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];if(e.length===1)switch(e[0]){case`linear`:t=0,n=0,r=1,i=1;break;case`ease`:t=.25,n=.1,r=.25,i=1;break;case`ease-in`:t=.42,n=0,r=1,i=1;break;case`ease-out`:t=.42,n=0,r=.58,i=1;break;case`ease-in-out`:t=0,n=0,r=.58,i=1;break;default:var a=e[0].split(`(`);if(a[0]===`cubic-bezier`&&a[1].split(`)`)[0].split(`,`).length===4){var o=nL(a[1].split(`)`)[0].split(`,`).map(function(e){return parseFloat(e)}),4);t=o[0],n=o[1],r=o[2],i=o[3]}else tL(!1,`[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s`,e)}tL([t,r,n,i].every(function(e){return typeof e==`number`&&e>=0&&e<=1}),`[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s`,e);var s=hL(t,r),c=hL(n,i),l=gL(t,r),u=function(e){return e>1?1:e<0?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=s(n)-t,a=l(n);if(Math.abs(i-t)<fL||a<fL)return c(n);n=u(n-i/a)}return c(n)};return d.isStepper=!1,d},vL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*i)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<fL&&Math.abs(a)<fL?[t,0]:[s,a]};return s.isStepper=!0,s.dt=o,s},yL=function(){var e=[...arguments],t=e[0];if(typeof t==`string`)switch(t){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return _L(t);case`spring`:return vL();default:if(t.split(`(`)[0]===`cubic-bezier`)return _L(t);tL(!1,`[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s`,e)}return typeof t==`function`?t:(tL(!1,`[configEasing]: first argument type should be function or string, instead received %s`,e),null)};function bL(e){"@babel/helpers - typeof";return bL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bL(e)}function xL(e){return wL(e)||CL(e)||ML(e)||SL()}function SL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
84
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function wL(e){if(Array.isArray(e))return NL(e)}function TL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TL(Object(n),!0).forEach(function(t){DL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DL(e,t,n){return t=OL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OL(e){var t=kL(e,`string`);return bL(t)===`symbol`?t:String(t)}function kL(e,t){if(bL(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bL(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AL(e,t){return FL(e)||PL(e,t)||ML(e,t)||jL()}function jL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
85
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ML(e,t){if(e){if(typeof e==`string`)return NL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NL(e,t)}}function NL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function PL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function FL(e){if(Array.isArray(e))return e}var IL=function(e,t,n){return e+(t-e)*n},LL=function(e){return e.from!==e.to},RL=function e(t,n,r){var i=QI(function(e,n){if(LL(n)){var r=AL(t(n.from,n.to,n.velocity),2),i=r[0],a=r[1];return EL(EL({},n),{},{from:i,velocity:a})}return n},n);return r<1?QI(function(e,t){return LL(t)?EL(EL({},t),{},{velocity:IL(t.velocity,i[e].velocity,r),from:IL(t.from,i[e].from,r)}):t},n):e(t,i,r-1)},zL=(function(e,t,n,r,i){var a=YI(e,t),o=a.reduce(function(n,r){return EL(EL({},n),{},DL({},r,[e[r],t[r]]))},{}),s=a.reduce(function(n,r){return EL(EL({},n),{},DL({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,l,u,d=function(){return null},f=function(){return QI(function(e,t){return t.from},s)},p=function(){return!Object.values(s).filter(LL).length};return d=n.isStepper?function(r){l||=r;var a=(r-l)/n.dt;s=RL(n,s,a),i(EL(EL(EL({},e),t),f(s))),l=r,p()||(c=requestAnimationFrame(d))}:function(a){u||=a;var s=(a-u)/r,l=QI(function(e,t){return IL.apply(void 0,xL(t).concat([n(s)]))},o);if(i(EL(EL(EL({},e),t),l)),s<1)c=requestAnimationFrame(d);else{var f=QI(function(e,t){return IL.apply(void 0,xL(t).concat([n(1)]))},o);i(EL(EL(EL({},e),t),f))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}}),BL=l(FF());function VL(e){"@babel/helpers - typeof";return VL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},VL(e)}var HL=[`children`,`begin`,`duration`,`attributeName`,`easing`,`isActive`,`steps`,`from`,`to`,`canBegin`,`onAnimationEnd`,`shouldReAnimate`,`onAnimationReStart`];function UL(e,t){if(e==null)return{};var n=WL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function GL(e){return YL(e)||JL(e)||qL(e)||KL()}function KL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qL(e,t){if(e){if(typeof e==`string`)return XL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XL(e,t)}}function JL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function YL(e){if(Array.isArray(e))return XL(e)}function XL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZL(Object(n),!0).forEach(function(t){$L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $L(e,t,n){return t=rR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eR(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function tR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,rR(r.key),r)}}function nR(e,t,n){return t&&tR(e.prototype,t),n&&tR(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function rR(e){var t=iR(e,`string`);return VL(t)===`symbol`?t:String(t)}function iR(e,t){if(VL(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(VL(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aR(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&oR(e,t)}function oR(e,t){return oR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oR(e,t)}function sR(e){var t=uR();return function(){var n=dR(e),r;if(t){var i=dR(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return cR(this,r)}}function cR(e,t){if(t&&(VL(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return lR(e)}function lR(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function uR(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dR(e){return dR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dR(e)}var fR=function(e){aR(n,e);var t=sR(n);function n(e,r){var i;eR(this,n),i=t.call(this,e,r);var a=i.props,o=a.isActive,s=a.attributeName,c=a.from,l=a.to,u=a.steps,d=a.children,f=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(lR(i)),i.changeStyle=i.changeStyle.bind(lR(i)),!o||f<=0)return i.state={style:{}},typeof d==`function`&&(i.state={style:l}),cR(i);if(u&&u.length)i.state={style:u[0].style};else if(c){if(typeof d==`function`)return i.state={style:c},cR(i);i.state={style:s?$L({},s,c):c}}else i.state={style:{}};return i}return nR(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,a=t.shouldReAnimate,o=t.to,s=t.from,c=this.state.style;if(r){if(!n){var l={style:i?$L({},i,o):o};this.state&&c&&(i&&c[i]!==o||!i&&c!==o)&&this.setState(l);return}if(!(jI(e.to,o)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=u||a?s:e.to;if(this.state&&c){var f={style:i?$L({},i,d):d};(i&&c[i]!==d||!i&&c!==d)&&this.setState(f)}this.runAnimation(QL(QL({},this.props),{},{from:d,begin:0}))}}}},{key:`componentWillUnmount`,value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&=(this.manager.stop(),null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:`handleStyleChange`,value:function(e){this.changeStyle(e)}},{key:`changeStyle`,value:function(e){this.mounted&&this.setState({style:e})}},{key:`runJSAnimation`,value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,a=e.easing,o=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=zL(n,r,yL(a),i,this.changeStyle);this.manager.start([c,o,function(){t.stopJSAnimation=l()},i,s])}},{key:`runStepAnimation`,value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,a=n[0],o=a.style,s=a.duration,c=s===void 0?0:s;return this.manager.start([i].concat(GL(n.reduce(function(e,r,i){if(i===0)return e;var a=r.duration,o=r.easing,s=o===void 0?`ease`:o,c=r.style,l=r.properties,u=r.onAnimationEnd,d=i>0?n[i-1]:r,f=l||Object.keys(c);if(typeof s==`function`||s===`spring`)return[].concat(GL(e),[t.runJSAnimation.bind(t,{from:d.style,to:c,duration:a,easing:s}),a]);var p=$I(f,a,s),m=QL(QL(QL({},d.style),c),{},{transition:p});return[].concat(GL(e),[m,a,u]).filter(XI)},[o,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:`runAnimation`,value:function(e){this.manager||=HI();var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,a=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),typeof a==`function`||typeof l==`function`||a===`spring`){this.runJSAnimation(e);return}if(c.length>1){this.runStepAnimation(e);return}var d=r?$L({},r,i):i,f=$I(Object.keys(d),n,a);u.start([o,t,QL(QL({},d),{},{transition:f}),n,s])}},{key:`render`,value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=UL(e,HL),a=K.Children.count(t),o=this.state.style;if(typeof t==`function`)return t(o);if(!r||a===0||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=n===void 0?{}:n,a=t.className;return(0,K.cloneElement)(e,QL(QL({},i),{},{style:QL(QL({},r),o),className:a}))};return a===1?s(K.Children.only(t)):K.createElement(`div`,null,K.Children.map(t,function(e){return s(e)}))}}]),n}(K.PureComponent);fR.displayName=`Animate`,fR.defaultProps={begin:0,duration:1e3,from:``,to:``,attributeName:``,easing:`ease`,isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},fR.propTypes={from:BL.default.oneOfType([BL.default.object,BL.default.string]),to:BL.default.oneOfType([BL.default.object,BL.default.string]),attributeName:BL.default.string,duration:BL.default.number,begin:BL.default.number,easing:BL.default.oneOfType([BL.default.string,BL.default.func]),steps:BL.default.arrayOf(BL.default.shape({duration:BL.default.number.isRequired,style:BL.default.object.isRequired,easing:BL.default.oneOfType([BL.default.oneOf([`ease`,`ease-in`,`ease-out`,`ease-in-out`,`linear`]),BL.default.func]),properties:BL.default.arrayOf(`string`),onAnimationEnd:BL.default.func})),children:BL.default.oneOfType([BL.default.node,BL.default.func]),isActive:BL.default.bool,canBegin:BL.default.bool,onAnimationEnd:BL.default.func,shouldReAnimate:BL.default.bool,onAnimationStart:BL.default.func,onAnimationReStart:BL.default.func};var pR=fR;function mR(e){"@babel/helpers - typeof";return mR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mR(e)}function hR(){return hR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hR.apply(this,arguments)}function gR(e,t){return xR(e)||bR(e,t)||vR(e,t)||_R()}function _R(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vR(e,t){if(e){if(typeof e==`string`)return yR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yR(e,t)}}function yR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bR(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function xR(e){if(Array.isArray(e))return e}function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SR(Object(n),!0).forEach(function(t){wR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wR(e,t,n){return t=TR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=ER(e,`string`);return mR(t)==`symbol`?t:t+``}function ER(e,t){if(mR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var DR=function(e,t,n,r,i){var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0,l;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,f=4;d<f;d++)u[d]=i[d]>a?a:i[d];l=`M${e},${t+o*u[0]}`,u[0]>0&&(l+=`A ${u[0]},${u[0]},0,0,${c},${e+s*u[0]},${t}`),l+=`L ${e+n-s*u[1]},${t}`,u[1]>0&&(l+=`A ${u[1]},${u[1]},0,0,${c},
80
+ A${a},${a},0,0,${+(u<0)},${C.x},${C.y}Z`}else b+=`L${t},${n}Z`;return b},yF={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},bF=function(e){var t=dF(dF({},yF),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(a<i||l===u)return null;var p=d(`recharts-sector`,f),m=a-i,h=F_(o,m,0,!0),g=h>0&&Math.abs(l-u)<360?vF({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):_F({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return K.createElement(`path`,lF({},Q(t,!0),{className:p,d:g,role:`img`}))};function xF(e){"@babel/helpers - typeof";return xF=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xF(e)}function SF(){return SF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SF.apply(this,arguments)}function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CF(Object(n),!0).forEach(function(t){TF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TF(e,t,n){return t=EF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=DF(e,`string`);return xF(t)==`symbol`?t:t+``}function DF(e,t){if(xF(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xF(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var OF={curveBasisClosed:Ry,curveBasisOpen:By,curveBasis:Iy,curveBumpX:fy,curveBumpY:py,curveLinearClosed:Hy,curveLinear:oy,curveMonotoneX:Xy,curveMonotoneY:Zy,curveNatural:eb,curveStep:nb,curveStepAfter:ib,curveStepBefore:rb},kF=function(e){return e.x===+e.x&&e.y===+e.y},AF=function(e){return e.x},jF=function(e){return e.y},MF=function(e,t){if((0,$_.default)(e))return e;var n=`curve${(0,pb.default)(e)}`;return(n===`curveMonotone`||n===`curveBump`)&&t?OF[`${n}${t===`vertical`?`Y`:`X`}`]:OF[n]||oy},NF=function(e){var t=e.type,n=t===void 0?`linear`:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?!1:s,l=MF(n,o),u=c?i.filter(function(e){return kF(e)}):i,d;if(Array.isArray(a)){var f=c?a.filter(function(e){return kF(e)}):a,p=u.map(function(e,t){return wF(wF({},e),{},{base:f[t]})});return d=o===`vertical`?uy().y(jF).x1(AF).x0(function(e){return e.base.x}):uy().x(AF).y1(jF).y0(function(e){return e.base.y}),d.defined(kF).curve(l),d(p)}return d=o===`vertical`&&Z(a)?uy().y(jF).x1(AF).x0(a):Z(a)?uy().x(AF).y1(jF).y0(a):ly().x(AF).y(jF),d.defined(kF).curve(l),d(u)},PF=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?NF(e):r;return K.createElement(`path`,SF({},Q(e,!1),X_(e),{className:d(`recharts-curve`,t),d:a,ref:i}))},FF=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),IF=o(((e,t)=>{var n=FF();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),LF=o(((e,t)=>{t.exports=IF()()})),{getOwnPropertyNames:RF,getOwnPropertySymbols:zF}=Object,{hasOwnProperty:BF}=Object.prototype;function VF(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function HF(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function UF(e){return e?.[Symbol.toStringTag]}function WF(e){return RF(e).concat(zF(e))}var GF=Object.hasOwn||((e,t)=>BF.call(e,t));function KF(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var qF=`__v`,JF=`__o`,YF=`_owner`,{getOwnPropertyDescriptor:XF,keys:ZF}=Object;function QF(e,t){return e.byteLength===t.byteLength&&dI(new Uint8Array(e),new Uint8Array(t))}function $F(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function eI(e,t){return e.byteLength===t.byteLength&&dI(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function tI(e,t){return KF(e.getTime(),t.getTime())}function nI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rI(e,t){return e===t}function iI(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var aI=KF;function oI(e,t,n){let r=ZF(e),i=r.length;if(ZF(t).length!==i)return!1;for(;i-- >0;)if(!pI(e,t,n,r[i]))return!1;return!0}function sI(e,t,n){let r=WF(e),i=r.length;if(WF(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!pI(e,t,n,a)||(o=XF(e,a),s=XF(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function cI(e,t){return KF(e.valueOf(),t.valueOf())}function lI(e,t){return e.source===t.source&&e.flags===t.flags}function uI(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function dI(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function fI(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function pI(e,t,n,r){return(r===YF||r===JF||r===qF)&&(e.$$typeof||t.$$typeof)?!0:GF(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var mI=`[object ArrayBuffer]`,hI=`[object Arguments]`,gI=`[object Boolean]`,_I=`[object DataView]`,vI=`[object Date]`,yI=`[object Error]`,bI=`[object Map]`,xI=`[object Number]`,SI=`[object Object]`,CI=`[object RegExp]`,wI=`[object Set]`,TI=`[object String]`,EI={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},DI=`[object URL]`,OI=Object.prototype.toString;function kI({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=OI.call(h);if(b===vI)return r(h,g,_);if(b===CI)return u(h,g,_);if(b===bI)return o(h,g,_);if(b===wI)return d(h,g,_);if(b===SI)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===DI)return p(h,g,_);if(b===yI)return i(h,g,_);if(b===hI)return c(h,g,_);if(EI[b])return f(h,g,_);if(b===mI)return e(h,g,_);if(b===_I)return n(h,g,_);if(b===gI||b===xI||b===TI)return l(h,g,_);if(m){let e=m[b];if(!e){let t=UF(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function AI({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:QF,areArraysEqual:n?sI:$F,areDataViewsEqual:eI,areDatesEqual:tI,areErrorsEqual:nI,areFunctionsEqual:rI,areMapsEqual:n?VF(iI,sI):iI,areNumbersEqual:aI,areObjectsEqual:n?sI:oI,arePrimitiveWrappersEqual:cI,areRegExpsEqual:lI,areSetsEqual:n?VF(uI,sI):uI,areTypedArraysEqual:n?VF(dI,sI):dI,areUrlsEqual:fI,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=HF(r.areArraysEqual),t=HF(r.areMapsEqual),n=HF(r.areObjectsEqual),i=HF(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}function jI(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function MI({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var NI=PI();PI({strict:!0}),PI({circular:!0}),PI({circular:!0,strict:!0}),PI({createInternalComparator:()=>KF}),PI({strict:!0,createInternalComparator:()=>KF}),PI({circular:!0,createInternalComparator:()=>KF}),PI({circular:!0,createInternalComparator:()=>KF,strict:!0});function PI(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=kI(AI(e));return MI({circular:t,comparator:a,createState:r,equals:n?n(a):jI(a),strict:i})}function FI(e){typeof requestAnimationFrame<`u`&&requestAnimationFrame(e)}function II(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):FI(r)})}function LI(e){"@babel/helpers - typeof";return LI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LI(e)}function RI(e){return UI(e)||HI(e)||BI(e)||zI()}function zI(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BI(e,t){if(e){if(typeof e==`string`)return VI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VI(e,t)}}function VI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HI(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function UI(e){if(Array.isArray(e))return e}function WI(){var e={},t=function(){return null},n=!1,r=function r(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=RI(i),o=a[0],s=a.slice(1);if(typeof o==`number`){II(r.bind(null,s),o);return}r(o),II(r.bind(null,s));return}LI(i)===`object`&&(e=i,t(e)),typeof i==`function`&&i()}};return{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function GI(e){"@babel/helpers - typeof";return GI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},GI(e)}function KI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KI(Object(n),!0).forEach(function(t){JI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JI(e,t,n){return t=YI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YI(e){var t=XI(e,`string`);return GI(t)===`symbol`?t:String(t)}function XI(e,t){if(GI(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(GI(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ZI=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})},QI=function(e){return e},$I=function(e){return e.replace(/([A-Z])/g,function(e){return`-${e.toLowerCase()}`})},eL=function(e,t){return Object.keys(t).reduce(function(n,r){return qI(qI({},n),{},JI({},r,e(r,t[r])))},{})},tL=function(e,t,n){return e.map(function(e){return`${$I(e)} ${t}ms ${n}`}).join(`,`)},nL=!1,rL=function(e,t,n,r,i,a,o,s){if(nL&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var c=[n,r,i,a,o,s],l=0;console.warn(t.replace(/%s/g,function(){return c[l++]}))}};function iL(e,t){return sL(e)||oL(e,t)||uL(e,t)||aL()}function aL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function sL(e){if(Array.isArray(e))return e}function cL(e){return fL(e)||dL(e)||uL(e)||lL()}function lL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uL(e,t){if(e){if(typeof e==`string`)return pL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pL(e,t)}}function dL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fL(e){if(Array.isArray(e))return pL(e)}function pL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mL=1e-4,hL=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},gL=function(e,t){return e.map(function(e,n){return e*t**+n}).reduce(function(e,t){return e+t})},_L=function(e,t){return function(n){return gL(hL(e,t),n)}},vL=function(e,t){return function(n){var r=hL(e,t);return gL([].concat(cL(r.map(function(e,t){return e*t}).slice(1)),[0]),n)}},yL=function(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];if(e.length===1)switch(e[0]){case`linear`:t=0,n=0,r=1,i=1;break;case`ease`:t=.25,n=.1,r=.25,i=1;break;case`ease-in`:t=.42,n=0,r=1,i=1;break;case`ease-out`:t=.42,n=0,r=.58,i=1;break;case`ease-in-out`:t=0,n=0,r=.58,i=1;break;default:var a=e[0].split(`(`);if(a[0]===`cubic-bezier`&&a[1].split(`)`)[0].split(`,`).length===4){var o=iL(a[1].split(`)`)[0].split(`,`).map(function(e){return parseFloat(e)}),4);t=o[0],n=o[1],r=o[2],i=o[3]}else rL(!1,`[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s`,e)}rL([t,r,n,i].every(function(e){return typeof e==`number`&&e>=0&&e<=1}),`[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s`,e);var s=_L(t,r),c=_L(n,i),l=vL(t,r),u=function(e){return e>1?1:e<0?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=s(n)-t,a=l(n);if(Math.abs(i-t)<mL||a<mL)return c(n);n=u(n-i/a)}return c(n)};return d.isStepper=!1,d},bL=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*i)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<mL&&Math.abs(a)<mL?[t,0]:[s,a]};return s.isStepper=!0,s.dt=o,s},xL=function(){var e=[...arguments],t=e[0];if(typeof t==`string`)switch(t){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return yL(t);case`spring`:return bL();default:if(t.split(`(`)[0]===`cubic-bezier`)return yL(t);rL(!1,`[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s`,e)}return typeof t==`function`?t:(rL(!1,`[configEasing]: first argument type should be function or string, instead received %s`,e),null)};function SL(e){"@babel/helpers - typeof";return SL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SL(e)}function CL(e){return EL(e)||TL(e)||PL(e)||wL()}function wL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
84
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function EL(e){if(Array.isArray(e))return FL(e)}function DL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DL(Object(n),!0).forEach(function(t){kL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kL(e,t,n){return t=AL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AL(e){var t=jL(e,`string`);return SL(t)===`symbol`?t:String(t)}function jL(e,t){if(SL(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(SL(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ML(e,t){return LL(e)||IL(e,t)||PL(e,t)||NL()}function NL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PL(e,t){if(e){if(typeof e==`string`)return FL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FL(e,t)}}function FL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function IL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function LL(e){if(Array.isArray(e))return e}var RL=function(e,t,n){return e+(t-e)*n},zL=function(e){return e.from!==e.to},BL=function e(t,n,r){var i=eL(function(e,n){if(zL(n)){var r=ML(t(n.from,n.to,n.velocity),2),i=r[0],a=r[1];return OL(OL({},n),{},{from:i,velocity:a})}return n},n);return r<1?eL(function(e,t){return zL(t)?OL(OL({},t),{},{velocity:RL(t.velocity,i[e].velocity,r),from:RL(t.from,i[e].from,r)}):t},n):e(t,i,r-1)},VL=(function(e,t,n,r,i){var a=ZI(e,t),o=a.reduce(function(n,r){return OL(OL({},n),{},kL({},r,[e[r],t[r]]))},{}),s=a.reduce(function(n,r){return OL(OL({},n),{},kL({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,l,u,d=function(){return null},f=function(){return eL(function(e,t){return t.from},s)},p=function(){return!Object.values(s).filter(zL).length};return d=n.isStepper?function(r){l||=r;var a=(r-l)/n.dt;s=BL(n,s,a),i(OL(OL(OL({},e),t),f(s))),l=r,p()||(c=requestAnimationFrame(d))}:function(a){u||=a;var s=(a-u)/r,l=eL(function(e,t){return RL.apply(void 0,CL(t).concat([n(s)]))},o);if(i(OL(OL(OL({},e),t),l)),s<1)c=requestAnimationFrame(d);else{var f=eL(function(e,t){return RL.apply(void 0,CL(t).concat([n(1)]))},o);i(OL(OL(OL({},e),t),f))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}}),HL=l(LF());function UL(e){"@babel/helpers - typeof";return UL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UL(e)}var WL=[`children`,`begin`,`duration`,`attributeName`,`easing`,`isActive`,`steps`,`from`,`to`,`canBegin`,`onAnimationEnd`,`shouldReAnimate`,`onAnimationReStart`];function GL(e,t){if(e==null)return{};var n=KL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function qL(e){return ZL(e)||XL(e)||YL(e)||JL()}function JL(){throw TypeError(`Invalid attempt to spread non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YL(e,t){if(e){if(typeof e==`string`)return QL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QL(e,t)}}function XL(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ZL(e){if(Array.isArray(e))return QL(e)}function QL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$L(Object(n),!0).forEach(function(t){tR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tR(e,t,n){return t=aR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nR(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function rR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,aR(r.key),r)}}function iR(e,t,n){return t&&rR(e.prototype,t),n&&rR(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function aR(e){var t=oR(e,`string`);return UL(t)===`symbol`?t:String(t)}function oR(e,t){if(UL(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UL(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sR(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&cR(e,t)}function cR(e,t){return cR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cR(e,t)}function lR(e){var t=fR();return function(){var n=pR(e),r;if(t){var i=pR(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return uR(this,r)}}function uR(e,t){if(t&&(UL(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return dR(e)}function dR(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function fR(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pR(e){return pR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pR(e)}var mR=function(e){sR(n,e);var t=lR(n);function n(e,r){var i;nR(this,n),i=t.call(this,e,r);var a=i.props,o=a.isActive,s=a.attributeName,c=a.from,l=a.to,u=a.steps,d=a.children,f=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(dR(i)),i.changeStyle=i.changeStyle.bind(dR(i)),!o||f<=0)return i.state={style:{}},typeof d==`function`&&(i.state={style:l}),uR(i);if(u&&u.length)i.state={style:u[0].style};else if(c){if(typeof d==`function`)return i.state={style:c},uR(i);i.state={style:s?tR({},s,c):c}}else i.state={style:{}};return i}return iR(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,a=t.shouldReAnimate,o=t.to,s=t.from,c=this.state.style;if(r){if(!n){var l={style:i?tR({},i,o):o};this.state&&c&&(i&&c[i]!==o||!i&&c!==o)&&this.setState(l);return}if(!(NI(e.to,o)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=u||a?s:e.to;if(this.state&&c){var f={style:i?tR({},i,d):d};(i&&c[i]!==d||!i&&c!==d)&&this.setState(f)}this.runAnimation(eR(eR({},this.props),{},{from:d,begin:0}))}}}},{key:`componentWillUnmount`,value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&=(this.manager.stop(),null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:`handleStyleChange`,value:function(e){this.changeStyle(e)}},{key:`changeStyle`,value:function(e){this.mounted&&this.setState({style:e})}},{key:`runJSAnimation`,value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,a=e.easing,o=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=VL(n,r,xL(a),i,this.changeStyle);this.manager.start([c,o,function(){t.stopJSAnimation=l()},i,s])}},{key:`runStepAnimation`,value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,a=n[0],o=a.style,s=a.duration,c=s===void 0?0:s;return this.manager.start([i].concat(qL(n.reduce(function(e,r,i){if(i===0)return e;var a=r.duration,o=r.easing,s=o===void 0?`ease`:o,c=r.style,l=r.properties,u=r.onAnimationEnd,d=i>0?n[i-1]:r,f=l||Object.keys(c);if(typeof s==`function`||s===`spring`)return[].concat(qL(e),[t.runJSAnimation.bind(t,{from:d.style,to:c,duration:a,easing:s}),a]);var p=tL(f,a,s),m=eR(eR(eR({},d.style),c),{},{transition:p});return[].concat(qL(e),[m,a,u]).filter(QI)},[o,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:`runAnimation`,value:function(e){this.manager||=WI();var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,a=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),typeof a==`function`||typeof l==`function`||a===`spring`){this.runJSAnimation(e);return}if(c.length>1){this.runStepAnimation(e);return}var d=r?tR({},r,i):i,f=tL(Object.keys(d),n,a);u.start([o,t,eR(eR({},d),{},{transition:f}),n,s])}},{key:`render`,value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=GL(e,WL),a=K.Children.count(t),o=this.state.style;if(typeof t==`function`)return t(o);if(!r||a===0||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=n===void 0?{}:n,a=t.className;return(0,K.cloneElement)(e,eR(eR({},i),{},{style:eR(eR({},r),o),className:a}))};return a===1?s(K.Children.only(t)):K.createElement(`div`,null,K.Children.map(t,function(e){return s(e)}))}}]),n}(K.PureComponent);mR.displayName=`Animate`,mR.defaultProps={begin:0,duration:1e3,from:``,to:``,attributeName:``,easing:`ease`,isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},mR.propTypes={from:HL.default.oneOfType([HL.default.object,HL.default.string]),to:HL.default.oneOfType([HL.default.object,HL.default.string]),attributeName:HL.default.string,duration:HL.default.number,begin:HL.default.number,easing:HL.default.oneOfType([HL.default.string,HL.default.func]),steps:HL.default.arrayOf(HL.default.shape({duration:HL.default.number.isRequired,style:HL.default.object.isRequired,easing:HL.default.oneOfType([HL.default.oneOf([`ease`,`ease-in`,`ease-out`,`ease-in-out`,`linear`]),HL.default.func]),properties:HL.default.arrayOf(`string`),onAnimationEnd:HL.default.func})),children:HL.default.oneOfType([HL.default.node,HL.default.func]),isActive:HL.default.bool,canBegin:HL.default.bool,onAnimationEnd:HL.default.func,shouldReAnimate:HL.default.bool,onAnimationStart:HL.default.func,onAnimationReStart:HL.default.func};var hR=mR;function gR(e){"@babel/helpers - typeof";return gR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gR(e)}function _R(){return _R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_R.apply(this,arguments)}function vR(e,t){return CR(e)||SR(e,t)||bR(e,t)||yR()}function yR(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bR(e,t){if(e){if(typeof e==`string`)return xR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xR(e,t)}}function xR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function SR(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CR(e){if(Array.isArray(e))return e}function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wR(Object(n),!0).forEach(function(t){ER(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ER(e,t,n){return t=DR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DR(e){var t=OR(e,`string`);return gR(t)==`symbol`?t:t+``}function OR(e,t){if(gR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kR=function(e,t,n,r,i){var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0,l;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,f=4;d<f;d++)u[d]=i[d]>a?a:i[d];l=`M${e},${t+o*u[0]}`,u[0]>0&&(l+=`A ${u[0]},${u[0]},0,0,${c},${e+s*u[0]},${t}`),l+=`L ${e+n-s*u[1]},${t}`,u[1]>0&&(l+=`A ${u[1]},${u[1]},0,0,${c},
88
88
  ${e+n},${t+o*u[1]}`),l+=`L ${e+n},${t+r-o*u[2]}`,u[2]>0&&(l+=`A ${u[2]},${u[2]},0,0,${c},
89
89
  ${e+n-s*u[2]},${t+r}`),l+=`L ${e+s*u[3]},${t+r}`,u[3]>0&&(l+=`A ${u[3]},${u[3]},0,0,${c},
90
90
  ${e},${t+r-o*u[3]}`),l+=`Z`}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);l=`M ${e},${t+o*p}
@@ -94,22 +94,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
94
94
  L ${e+n},${t+r-o*p}
95
95
  A ${p},${p},0,0,${c},${e+n-s*p},${t+r}
96
96
  L ${e+s*p},${t+r}
97
- A ${p},${p},0,0,${c},${e},${t+r-o*p} Z`}else l=`M ${e},${t} h ${n} v ${r} h ${-n} Z`;return l},OR=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,a=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var c=Math.min(i,i+o),l=Math.max(i,i+o),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=c&&n<=l&&r>=u&&r<=d}return!1},kR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},AR=function(e){var t=CR(CR({},kR),e),n=(0,K.useRef)(),r=gR((0,K.useState)(-1),2),i=r[0],a=r[1];(0,K.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.width,l=t.height,u=t.radius,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isAnimationActive,_=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||c===0||l===0)return null;var v=d(`recharts-rectangle`,f);return _?K.createElement(pR,{canBegin:i>0,from:{width:c,height:l,x:o,y:s},to:{width:c,height:l,x:o,y:s},duration:m,animationEasing:p,isActive:_},function(e){var r=e.width,a=e.height,o=e.x,s=e.y;return K.createElement(pR,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,isActive:g,easing:p},K.createElement(`path`,hR({},Q(t,!0),{className:v,d:DR(o,s,r,a,u),ref:n})))}):K.createElement(`path`,hR({},Q(t,!0),{className:v,d:DR(o,s,c,l,u)}))},jR=[`points`,`className`,`baseLinePoints`,`connectNulls`];function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MR.apply(this,arguments)}function NR(e,t){if(e==null)return{};var n=PR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function FR(e){return zR(e)||RR(e)||LR(e)||IR()}function IR(){throw TypeError(`Invalid attempt to spread non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LR(e,t){if(e){if(typeof e==`string`)return BR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BR(e,t)}}function RR(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function zR(e){if(Array.isArray(e))return BR(e)}function BR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var VR=function(e){return e&&e.x===+e.x&&e.y===+e.y},HR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(e){VR(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),VR(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},UR=function(e,t){var n=HR(e);t&&(n=[n.reduce(function(e,t){return[].concat(FR(e),FR(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return`${e}${n===0?`M`:`L`}${t.x},${t.y}`},``)}).join(``);return n.length===1?`${r}Z`:r},WR=function(e,t,n){var r=UR(e,n);return`${r.slice(-1)===`Z`?r.slice(0,-1):r}L${UR(t.reverse(),n).slice(1)}`},GR=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=NR(e,jR);if(!t||!t.length)return null;var o=d(`recharts-polygon`,n);if(r&&r.length){var s=a.stroke&&a.stroke!==`none`,c=WR(t,r,i);return K.createElement(`g`,{className:o},K.createElement(`path`,MR({},Q(a,!0),{fill:c.slice(-1)===`Z`?a.fill:`none`,stroke:`none`,d:c})),s?K.createElement(`path`,MR({},Q(a,!0),{fill:`none`,d:UR(t,i)})):null,s?K.createElement(`path`,MR({},Q(a,!0),{fill:`none`,d:UR(r,i)})):null)}var l=UR(t,i);return K.createElement(`path`,MR({},Q(a,!0),{fill:l.slice(-1)===`Z`?a.fill:`none`,className:o,d:l}))};function KR(){return KR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KR.apply(this,arguments)}var qR=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,a=d(`recharts-dot`,i);return t===+t&&n===+n&&r===+r?K.createElement(`circle`,KR({},Q(e,!1),J_(e),{className:a,cx:t,cy:n,r})):null};function JR(e){"@babel/helpers - typeof";return JR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JR(e)}var YR=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function XR(){return XR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XR.apply(this,arguments)}function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZR(Object(n),!0).forEach(function(t){$R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $R(e,t,n){return t=ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=tz(e,`string`);return JR(t)==`symbol`?t:t+``}function tz(e,t){if(JR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(JR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nz(e,t){if(e==null)return{};var n=rz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var iz=function(e,t,n,r,i,a){return`M${e},${i}v${r}M${a},${t}h${n}`},az=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,o=a===void 0?0:a,s=e.left,c=s===void 0?0:s,l=e.width,u=l===void 0?0:l,f=e.height,p=f===void 0?0:f,m=e.className,h=nz(e,YR),g=QR({x:n,y:i,top:o,left:c,width:u,height:p},h);return!Z(n)||!Z(i)||!Z(u)||!Z(p)||!Z(o)||!Z(c)?null:K.createElement(`path`,XR({},Q(g,!0),{className:d(`recharts-cross`,m),d:iz(n,i,u,p,o,c)}))},oz=o(((e,t)=>{var n=gj(),r=_j(),i=eS();function a(e,t){return e&&e.length?n(e,i(t,2),r):void 0}t.exports=a})),sz=o(((e,t)=>{var n=gj(),r=eS(),i=yj();function a(e,t){return e&&e.length?n(e,r(t,2),i):void 0}t.exports=a})),cz=l(oz()),lz=l(sz()),uz=[`cx`,`cy`,`angle`,`ticks`,`axisLine`],dz=[`ticks`,`tick`,`angle`,`tickFormatter`,`stroke`];function fz(e){"@babel/helpers - typeof";return fz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fz(e)}function pz(){return pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pz.apply(this,arguments)}function mz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mz(Object(n),!0).forEach(function(t){Oz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gz(e,t){if(e==null)return{};var n=_z(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _z(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function vz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,kz(r.key),r)}}function bz(e,t,n){return t&&yz(e.prototype,t),n&&yz(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xz(e,t,n){return t=Tz(t),Sz(e,wz()?Reflect.construct(t,n||[],Tz(e).constructor):t.apply(e,n))}function Sz(e,t){if(t&&(fz(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Cz(e)}function Cz(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wz=function(){return!!e})()}function Tz(e){return Tz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tz(e)}function Ez(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Dz(e,t)}function Dz(e,t){return Dz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dz(e,t)}function Oz(e,t,n){return t=kz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kz(e){var t=Az(e,`string`);return fz(t)==`symbol`?t:t+``}function Az(e,t){if(fz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jz=function(e){function t(){return vz(this,t),xz(this,t,arguments)}return Ez(t,e),bz(t,[{key:`getTickValueCoord`,value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,a=n.cy;return iP(i,a,t,r)}},{key:`getTickTextAnchor`,value:function(){var e=this.props.orientation,t;switch(e){case`left`:t=`end`;break;case`right`:t=`start`;break;default:t=`middle`;break}return t}},{key:`getViewBox`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=(0,cz.default)(i,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:(0,lz.default)(i,function(e){return e.coordinate||0}).coordinate||0,outerRadius:a.coordinate||0}}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,o=gz(e,uz),s=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=iP(t,n,s[0],r),l=iP(t,n,s[1],r),u=hz(hz(hz({},Q(o,!1)),{},{fill:`none`},Q(a,!1)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return K.createElement(`line`,pz({className:`recharts-polar-radius-axis-line`},u))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,o=n.tickFormatter,s=n.stroke,c=gz(n,dz),l=this.getTickTextAnchor(),u=Q(c,!1),f=Q(i,!1),p=r.map(function(n,r){var c=e.getTickValueCoord(n),p=hz(hz(hz(hz({textAnchor:l,transform:`rotate(${90-a}, ${c.x}, ${c.y})`},u),{},{stroke:`none`,fill:s},f),{},{index:r},c),{},{payload:n});return K.createElement(Av,pz({className:d(`recharts-polar-radius-axis-tick`,fP(i)),key:`tick-${n.coordinate}`},X_(e.props,n,r)),t.renderTickItem(i,p,o?o(n.value,r):n.value))});return K.createElement(Av,{className:`recharts-polar-radius-axis-ticks`},p)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return!t||!t.length?null:K.createElement(Av,{className:d(`recharts-polar-radius-axis`,this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),FP.renderCallByParent(this.props,this.getViewBox()))}}],[{key:`renderTickItem`,value:function(e,t,n){return K.isValidElement(e)?K.cloneElement(e,t):(0,Z_.default)(e)?e(t):K.createElement(FT,pz({},t,{className:`recharts-polar-radius-axis-tick-value`}),n)}}])}(K.PureComponent);Oz(jz,`displayName`,`PolarRadiusAxis`),Oz(jz,`axisType`,`radiusAxis`),Oz(jz,`defaultProps`,{type:`number`,radiusAxisId:0,cx:0,cy:0,angle:0,orientation:`right`,stroke:`#ccc`,axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:`auto`,allowDuplicatedCategory:!0});function Mz(e){"@babel/helpers - typeof";return Mz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mz(e)}function Nz(){return Nz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nz.apply(this,arguments)}function Pz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pz(Object(n),!0).forEach(function(t){Kz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Lz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,qz(r.key),r)}}function Rz(e,t,n){return t&&Lz(e.prototype,t),n&&Lz(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function zz(e,t,n){return t=Uz(t),Bz(e,Hz()?Reflect.construct(t,n||[],Uz(e).constructor):t.apply(e,n))}function Bz(e,t){if(t&&(Mz(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Vz(e)}function Vz(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hz=function(){return!!e})()}function Uz(e){return Uz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uz(e)}function Wz(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Gz(e,t)}function Gz(e,t){return Gz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gz(e,t)}function Kz(e,t,n){return t=qz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qz(e){var t=Jz(e,`string`);return Mz(t)==`symbol`?t:t+``}function Jz(e,t){if(Mz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Yz=Math.PI/180,Xz=1e-5,Zz=function(e){function t(){return Iz(this,t),zz(this,t,arguments)}return Wz(t,e),Rz(t,[{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,a=t.orientation,o=t.tickSize||8,s=iP(n,r,i,e.coordinate),c=iP(n,r,i+(a===`inner`?-1:1)*o,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:`getTickTextAnchor`,value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*Yz);return n>Xz?t===`outer`?`start`:`end`:n<-Xz?t===`outer`?`end`:`start`:`middle`}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,o=Fz(Fz({},Q(this.props,!1)),{},{fill:`none`},Q(i,!1));if(a===`circle`)return K.createElement(qR,Nz({className:`recharts-polar-angle-axis-line`},o,{cx:t,cy:n,r}));var s=this.props.ticks.map(function(e){return iP(t,n,r,e.coordinate)});return K.createElement(GR,Nz({className:`recharts-polar-angle-axis-line`},o,{points:s}))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,o=n.tickFormatter,s=n.stroke,c=Q(this.props,!1),l=Q(i,!1),u=Fz(Fz({},c),{},{fill:`none`},Q(a,!1)),f=r.map(function(n,r){var f=e.getTickLineCoord(n),p=Fz(Fz(Fz({textAnchor:e.getTickTextAnchor(n)},c),{},{stroke:`none`,fill:s},l),{},{index:r,payload:n,x:f.x2,y:f.y2});return K.createElement(Av,Nz({className:d(`recharts-polar-angle-axis-tick`,fP(i)),key:`tick-${n.coordinate}`},X_(e.props,n,r)),a&&K.createElement(`line`,Nz({className:`recharts-polar-angle-axis-tick-line`},u,f)),i&&t.renderTickItem(i,p,o?o(n.value,r):n.value))});return K.createElement(Av,{className:`recharts-polar-angle-axis-ticks`},f)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:K.createElement(Av,{className:d(`recharts-polar-angle-axis`,this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],[{key:`renderTickItem`,value:function(e,t,n){return K.isValidElement(e)?K.cloneElement(e,t):(0,Z_.default)(e)?e(t):K.createElement(FT,Nz({},t,{className:`recharts-polar-angle-axis-tick-value`}),n)}}])}(K.PureComponent);Kz(Zz,`displayName`,`PolarAngleAxis`),Kz(Zz,`axisType`,`angleAxis`),Kz(Zz,`defaultProps`,{type:`category`,angleAxisId:0,scale:`auto`,cx:0,cy:0,orientation:`outer`,axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Qz=o(((e,t)=>{t.exports=Dx()(Object.getPrototypeOf,Object)})),$z=o(((e,t)=>{var n=wg(),r=Qz(),i=Tg(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),eB=o(((e,t)=>{var n=wg(),r=Tg(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a}));function tB(e){"@babel/helpers - typeof";return tB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tB(e)}function nB(){return nB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nB.apply(this,arguments)}function rB(e,t){return cB(e)||sB(e,t)||aB(e,t)||iB()}function iB(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aB(e,t){if(e){if(typeof e==`string`)return oB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oB(e,t)}}function oB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sB(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function cB(e){if(Array.isArray(e))return e}function lB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lB(Object(n),!0).forEach(function(t){dB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dB(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=pB(e,`string`);return tB(t)==`symbol`?t:t+``}function pB(e,t){if(tB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(tB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mB=function(e,t,n,r,i){var a=n-r,o=`M ${e},${t}`;return o+=`L ${e+n},${t}`,o+=`L ${e+n-a/2},${t+i}`,o+=`L ${e+n-a/2-r},${t+i}`,o+=`L ${e},${t} Z`,o},hB={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},gB=function(e){var t=uB(uB({},hB),e),n=(0,K.useRef)(),r=rB((0,K.useState)(-1),2),i=r[0],a=r[1];(0,K.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.upperWidth,l=t.lowerWidth,u=t.height,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||u!==+u||c===0&&l===0||u===0)return null;var _=d(`recharts-trapezoid`,f);return g?K.createElement(pR,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:u,x:o,y:s},to:{upperWidth:c,lowerWidth:l,height:u,x:o,y:s},duration:m,animationEasing:p,isActive:g},function(e){var r=e.upperWidth,a=e.lowerWidth,o=e.height,s=e.x,c=e.y;return K.createElement(pR,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,easing:p},K.createElement(`path`,nB({},Q(t,!0),{className:_,d:mB(s,c,r,a,o),ref:n})))}):K.createElement(`g`,null,K.createElement(`path`,nB({},Q(t,!0),{className:_,d:mB(o,s,c,l,u)})))},_B=l($z()),vB=l(eB()),yB=[`option`,`shapeType`,`propTransformer`,`activeClassName`,`isActive`];function bB(e){"@babel/helpers - typeof";return bB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bB(e)}function xB(e,t){if(e==null)return{};var n=SB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CB(Object(n),!0).forEach(function(t){TB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TB(e,t,n){return t=EB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=DB(e,`string`);return bB(t)==`symbol`?t:t+``}function DB(e,t){if(bB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function OB(e,t){return wB(wB({},t),e)}function kB(e,t){return e===`symbols`}function AB(e){var t=e.shapeType,n=e.elementProps;switch(t){case`rectangle`:return K.createElement(AR,n);case`trapezoid`:return K.createElement(gB,n);case`sector`:return K.createElement(vF,n);case`symbols`:if(kB(t,n))return K.createElement(Db,n);break;default:return null}}function jB(e){return(0,K.isValidElement)(e)?e.props:e}function MB(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?OB:r,a=e.activeClassName,o=a===void 0?`recharts-active-shape`:a,s=e.isActive,c=xB(e,yB),l;if((0,K.isValidElement)(t))l=(0,K.cloneElement)(t,wB(wB({},c),jB(t)));else if((0,Z_.default)(t))l=t(c);else if((0,_B.default)(t)&&!(0,vB.default)(t)){var u=i(t,c);l=K.createElement(AB,{shapeType:n,elementProps:u})}else{var d=c;l=K.createElement(AB,{shapeType:n,elementProps:d})}return s?K.createElement(Av,{className:o},l):l}function NB(e,t){return t!=null&&`trapezoids`in e.props}function PB(e,t){return t!=null&&`sectors`in e.props}function FB(e,t){return t!=null&&`points`in e.props}function IB(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)==null?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)==null?void 0:r.y)||e.y===t.y;return i&&a}function LB(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function RB(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function zB(e,t){var n;return NB(e,t)?n=IB:PB(e,t)?n=LB:FB(e,t)&&(n=RB),n}function BB(e,t){var n;return NB(e,t)?n=`trapezoids`:PB(e,t)?n=`sectors`:FB(e,t)&&(n=`points`),n}function VB(e,t){if(NB(e,t)){var n;return(n=t.tooltipPayload)==null||(n=n[0])==null||(n=n.payload)==null?void 0:n.payload}if(PB(e,t)){var r;return(r=t.tooltipPayload)==null||(r=r[0])==null||(r=r.payload)==null?void 0:r.payload}return FB(e,t)?t.payload:{}}function HB(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=BB(n,t),a=VB(n,t),o=r.filter(function(e,r){var o=(0,JM.default)(a,e),s=n.props[i].filter(function(e){return zB(n,t)(e,t)}),c=r===n.props[i].indexOf(s[s.length-1]);return o&&c});return r.indexOf(o[o.length-1])}var UB;function WB(e){"@babel/helpers - typeof";return WB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WB(e)}function GB(){return GB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GB.apply(this,arguments)}function KB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KB(Object(n),!0).forEach(function(t){iV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JB(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function YB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,aV(r.key),r)}}function XB(e,t,n){return t&&YB(e.prototype,t),n&&YB(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ZB(e,t,n){return t=tV(t),QB(e,eV()?Reflect.construct(t,n||[],tV(e).constructor):t.apply(e,n))}function QB(e,t){if(t&&(WB(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return $B(e)}function $B(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function eV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eV=function(){return!!e})()}function tV(e){return tV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tV(e)}function nV(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&rV(e,t)}function rV(e,t){return rV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rV(e,t)}function iV(e,t,n){return t=aV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e){var t=oV(e,`string`);return WB(t)==`symbol`?t:t+``}function oV(e,t){if(WB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var sV=function(e){function t(e){var n;return JB(this,t),n=ZB(this,t,[e]),iV(n,`pieRef`,null),iV(n,`sectorRefs`,[]),iV(n,`id`,M_(`recharts-pie-`)),iV(n,`handleAnimationEnd`,function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),(0,Z_.default)(e)&&e()}),iV(n,`handleAnimationStart`,function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),(0,Z_.default)(e)&&e()}),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}return nV(t,e),XB(t,[{key:`isActiveIndex`,value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?t.indexOf(e)!==-1:e===t}},{key:`hasActiveIndex`,value:function(){var e=this.props.activeIndex;return Array.isArray(e)?e.length!==0:e||e===0}},{key:`renderLabels`,value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,o=n.valueKey,s=Q(this.props,!1),c=Q(r,!1),l=Q(i,!1),u=r&&r.offsetRadius||20,d=e.map(function(e,n){var d=(e.startAngle+e.endAngle)/2,f=iP(e.cx,e.cy,e.outerRadius+u,d),p=qB(qB(qB(qB({},s),e),{},{stroke:`none`},c),{},{index:n,textAnchor:t.getTextAnchor(f.x,e.cx)},f),m=qB(qB(qB(qB({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:n,points:[iP(e.cx,e.cy,e.outerRadius,d),f]}),h=a;return(0,E_.default)(a)&&(0,E_.default)(o)?h=`value`:(0,E_.default)(a)&&(h=o),K.createElement(Av,{key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${n}`},i&&t.renderLabelLineItem(i,m,`line`),t.renderLabelItem(r,p,sN(e,h)))});return K.createElement(Av,{className:`recharts-pie-labels`},d)}},{key:`renderSectorsStatically`,value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map(function(n,o){if(n?.startAngle===0&&n?.endAngle===0&&e.length!==1)return null;var s=t.isActiveIndex(o),c=a&&t.hasActiveIndex()?a:null,l=s?r:c,u=qB(qB({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return K.createElement(Av,GB({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:`recharts-pie-sector`},X_(t.props,n,o),{key:`sector-${n?.startAngle}-${n?.endAngle}-${n.midAngle}-${o}`}),K.createElement(MB,GB({option:l,isActive:s,shapeType:`sector`},u)))})}},{key:`renderSectorsWithAnimation`,value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,s=t.animationId,c=this.state,l=c.prevSectors,u=c.prevIsAnimationActive;return K.createElement(pR,{begin:i,duration:a,isActive:r,easing:o,from:{t:0},to:{t:1},key:`pie-${s}-${u}`,onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=l&&l[t],o=t>0?(0,w_.default)(e,`paddingAngle`,0):0;if(n){var s=I_(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=qB(qB({},e),{},{startAngle:a+o,endAngle:a+s(r)+o});i.push(c),a=c.endAngle}else{var u=e.endAngle,d=e.startAngle,f=I_(0,u-d)(r),p=qB(qB({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}}),K.createElement(Av,null,e.renderSectorsStatically(i))})}},{key:`attachKeyboardHandlers`,value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case`ArrowLeft`:var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case`ArrowRight`:var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case`Escape`:t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0});break;default:}}}},{key:`renderSectors`,value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return n&&t&&t.length&&(!r||!(0,JM.default)(r,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:`componentDidMount`,value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,o=t.cx,s=t.cy,c=t.innerRadius,l=t.outerRadius,u=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!Z(o)||!Z(s)||!Z(c)||!Z(l))return null;var p=d(`recharts-pie`,i);return K.createElement(Av,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),FP.renderCallByParent(this.props,null,!1),(!u||f)&&rF.renderCallByParent(this.props,r,!1))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return t.prevIsAnimationActive===e.isAnimationActive?e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors===t.curSectors?null:{curSectors:e.sectors,isAnimationFinished:!0}:{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}}},{key:`getTextAnchor`,value:function(e,t){return e>t?`start`:e<t?`end`:`middle`}},{key:`renderLabelLineItem`,value:function(e,t,n){if(K.isValidElement(e))return K.cloneElement(e,t);if((0,Z_.default)(e))return e(t);var r=d(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className);return K.createElement(MF,GB({},t,{key:n,type:`linear`,className:r}))}},{key:`renderLabelItem`,value:function(e,t,n){if(K.isValidElement(e))return K.cloneElement(e,t);var r=n;if((0,Z_.default)(e)&&(r=e(t),K.isValidElement(r)))return r;var i=d(`recharts-pie-label-text`,typeof e!=`boolean`&&!(0,Z_.default)(e)?e.className:``);return K.createElement(FT,GB({},t,{alignmentBaseline:`middle`,className:i}),r)}}])}(K.PureComponent);UB=sV,iV(sV,`displayName`,`Pie`),iV(sV,`defaultProps`,{stroke:`#fff`,fill:`#808080`,legendType:`rect`,cx:`50%`,cy:`50%`,startAngle:0,endAngle:360,innerRadius:0,outerRadius:`80%`,paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!KC.isSsr,animationBegin:400,animationDuration:1500,animationEasing:`ease`,nameKey:`name`,blendStroke:!1,rootTabIndex:0}),iV(sV,`parseDeltaAngle`,function(e,t){return D_(t-e)*Math.min(Math.abs(t-e),360)}),iV(sV,`getRealPieData`,function(e){var t=e.data,n=e.children,r=Q(e,!1),i=lv(n,jw);return t&&t.length?t.map(function(e,t){return qB(qB(qB({payload:e},r),e),i&&i[t]&&i[t].props)}):i&&i.length?i.map(function(e){return qB(qB({},r),e.props)}):[]}),iV(sV,`parseCoordinateOfPie`,function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=aP(i,a);return{cx:r+N_(e.cx,i,i/2),cy:n+N_(e.cy,a,a/2),innerRadius:N_(e.innerRadius,o,0),outerRadius:N_(e.outerRadius,o,o*.8),maxRadius:e.maxRadius||Math.sqrt(i*i+a*a)/2}}),iV(sV,`getComposedData`,function(e){var t=e.item,n=e.offset,r=t.type.defaultProps===void 0?t.props:qB(qB({},t.type.defaultProps),t.props),i=UB.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,s=r.endAngle,c=r.paddingAngle,l=r.dataKey,u=r.nameKey,d=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),m=UB.parseCoordinateOfPie(r,n),h=UB.parseDeltaAngle(o,s),g=Math.abs(h),_=l;(0,E_.default)(l)&&(0,E_.default)(d)?(Mv(!1,`Use "dataKey" to specify the value of pie,
100
- the props "valueKey" will be deprecated in 1.1.0`),_=`value`):(0,E_.default)(l)&&(Mv(!1,`Use "dataKey" to specify the value of pie,
101
- the props "valueKey" will be deprecated in 1.1.0`),_=d);var v=i.filter(function(e){return sN(e,_,0)!==0}).length,y=(g>=360?v:v-1)*c,b=g-v*p-y,x=i.reduce(function(e,t){var n=sN(t,_,0);return e+(Z(n)?n:0)},0),S;if(x>0){var C;S=i.map(function(e,t){var n=sN(e,_,0),r=sN(e,u,t),i=(Z(n)?n:0)/x,s=t?C.endAngle+D_(h)*c*(n===0?0:1):o,l=s+D_(h)*((n===0?0:p)+i*b),d=(s+l)/2,g=(m.innerRadius+m.outerRadius)/2;return C=qB(qB(qB({percent:i,cornerRadius:a,name:r,tooltipPayload:[{name:r,value:n,payload:e,dataKey:_,type:f}],midAngle:d,middleRadius:g,tooltipPosition:iP(m.cx,m.cy,g,d)},e),m),{},{value:sN(e,_),startAngle:s,endAngle:l,payload:e,paddingAngle:D_(h)*c}),C})}return qB(qB({},m),{},{sectors:S,data:i})});var cV=o(((e,t)=>{var n=Math.ceil,r=Math.max;function i(e,t,i,a){for(var o=-1,s=r(n((t-e)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=e,e+=i;return c}t.exports=i})),lV=o(((e,t)=>{var n=hw(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),uV=o(((e,t)=>{var n=cV(),r=tC(),i=lV();function a(e){return function(t,a,o){return o&&typeof o!=`number`&&r(t,a,o)&&(a=o=void 0),t=i(t),a===void 0?(a=t,t=0):a=i(a),o=o===void 0?t<a?1:-1:i(o),n(t,a,o,e)}}t.exports=a})),dV=o(((e,t)=>{t.exports=uV()()}));function fV(e){"@babel/helpers - typeof";return fV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fV(e)}function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pV(Object(n),!0).forEach(function(t){hV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hV(e,t,n){return t=gV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gV(e){var t=_V(e,`string`);return fV(t)==`symbol`?t:t+``}function _V(e,t){if(fV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var vV=[`Webkit`,`Moz`,`O`,`ms`],yV=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=vV.reduce(function(e,r){return mV(mV({},e),{},hV({},r+n,t))},{});return r[e]=t,r},bV=l(dV());function xV(e){"@babel/helpers - typeof";return xV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xV(e)}function SV(){return SV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SV.apply(this,arguments)}function CV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CV(Object(n),!0).forEach(function(t){FV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TV(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function EV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,IV(r.key),r)}}function DV(e,t,n){return t&&EV(e.prototype,t),n&&EV(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function OV(e,t,n){return t=MV(t),kV(e,jV()?Reflect.construct(t,n||[],MV(e).constructor):t.apply(e,n))}function kV(e,t){if(t&&(xV(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return AV(e)}function AV(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function jV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jV=function(){return!!e})()}function MV(e){return MV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MV(e)}function NV(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&PV(e,t)}function PV(e,t){return PV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PV(e,t)}function FV(e,t,n){return t=IV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IV(e){var t=LV(e,`string`);return xV(t)==`symbol`?t:t+``}function LV(e,t){if(xV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var RV=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,a=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=_E().domain((0,bV.default)(0,s)).range([i,i+a-o]),l=c.domain().map(function(e){return c(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}},zV=function(e){return e.changedTouches&&!!e.changedTouches.length},BV=function(e){function t(e){var n;return TV(this,t),n=OV(this,t,[e]),FV(n,`handleDrag`,function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),FV(n,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),FV(n,`handleDragEnd`,function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,i=e.startIndex;r?.({endIndex:t,startIndex:i})}),n.detachDragEndListener()}),FV(n,`handleLeaveWrapper`,function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),FV(n,`handleEnterSlideOrTraveller`,function(){n.setState({isTextActive:!0})}),FV(n,`handleLeaveSlideOrTraveller`,function(){n.setState({isTextActive:!1})}),FV(n,`handleSlideDragStart`,function(e){var t=zV(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,`startX`),endX:n.handleTravellerDragStart.bind(n,`endX`)},n.state={},n}return NV(t,e),DV(t,[{key:`componentWillUnmount`,value:function(){this.leaveTimer&&=(clearTimeout(this.leaveTimer),null),this.detachDragEndListener()}},{key:`getIndex`,value:function(e){var n=e.startX,r=e.endX,i=this.state.scaleValues,a=this.props,o=a.gap,s=a.data.length-1,c=Math.min(n,r),l=Math.max(n,r),u=t.getIndexInRange(i,c),d=t.getIndexInRange(i,l);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:`getTextOfTick`,value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=sN(n[e],i,e);return(0,Z_.default)(r)?r(a,e):a}},{key:`attachDragEndListener`,value:function(){window.addEventListener(`mouseup`,this.handleDragEnd,!0),window.addEventListener(`touchend`,this.handleDragEnd,!0),window.addEventListener(`mousemove`,this.handleDrag,!0)}},{key:`detachDragEndListener`,value:function(){window.removeEventListener(`mouseup`,this.handleDragEnd,!0),window.removeEventListener(`touchend`,this.handleDragEnd,!0),window.removeEventListener(`mousemove`,this.handleDrag,!0)}},{key:`handleSlideDrag`,value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,a=this.props,o=a.x,s=a.width,c=a.travellerWidth,l=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,o+s-c-i,o+s-c-r):f<0&&(f=Math.max(f,o-r,o-i));var p=this.getIndex({startX:r+f,endX:i+f});(p.startIndex!==l||p.endIndex!==u)&&d&&d(p),this.setState({startX:r+f,endX:i+f,slideMoveStartX:e.pageX})}},{key:`handleTravellerDragStart`,value:function(e,t){var n=zV(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:`handleTravellerMove`,value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,i=t.endX,a=t.startX,o=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,m={startX:this.state.startX,endX:this.state.endX},h=e.pageX-n;h>0?h=Math.min(h,c+l-u-o):h<0&&(h=Math.max(h,c-o)),m[r]=o+h;var g=this.getIndex(m),_=g.startIndex,v=g.endIndex,y=function(){var e=p.length-1;return r===`startX`&&(i>a?_%f===0:v%f===0)||i<a&&v===e||r===`endX`&&(i>a?v%f===0:_%f===0)||i>a&&v===e};this.setState(FV(FV({},r,o+h),`brushMoveStartX`,e.pageX),function(){d&&y()&&d(g)})}},{key:`handleTravellerMoveKeyboard`,value:function(e,t){var n=this,r=this.state,i=r.scaleValues,a=r.startX,o=r.endX,s=this.state[t],c=i.indexOf(s);if(c!==-1){var l=c+e;if(!(l===-1||l>=i.length)){var u=i[l];t===`startX`&&u>=o||t===`endX`&&u<=a||this.setState(FV({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:`renderBackground`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,o=e.stroke;return K.createElement(`rect`,{stroke:o,fill:a,x:t,y:n,width:r,height:i})}},{key:`renderPanorama`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.children,s=e.padding,c=K.Children.only(o);return c?K.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:`renderTravellerLayer`,value:function(e,n){var r=this,i=this.props,a=i.y,o=i.travellerWidth,s=i.height,c=i.traveller,l=i.ariaLabel,u=i.data,d=i.startIndex,f=i.endIndex,p=Math.max(e,this.props.x),m=wV(wV({},Q(this.props,!1)),{},{x:p,y:a,width:o,height:s}),h=l||`Min value: ${u[d]?.name}, Max value: ${u[f]?.name}`;return K.createElement(Av,{tabIndex:0,role:`slider`,"aria-label":h,"aria-valuenow":e,className:`recharts-brush-traveller`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){[`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard(e.key===`ArrowRight`?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:`col-resize`}},t.renderTraveller(c,m))}},{key:`renderSlide`,value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,o=n.travellerWidth,s=Math.min(e,t)+o,c=Math.max(Math.abs(t-e)-o,0);return K.createElement(`rect`,{className:`recharts-brush-slide`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:`move`},stroke:`none`,fill:a,fillOpacity:.2,x:s,y:r,width:c,height:i})}},{key:`renderText`,value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,o=e.stroke,s=this.state,c=s.startX,l=s.endX,u=5,d={pointerEvents:`none`,fill:o};return K.createElement(Av,{className:`recharts-brush-texts`},K.createElement(FT,SV({textAnchor:`end`,verticalAnchor:`middle`,x:Math.min(c,l)-u,y:r+i/2},d),this.getTextOfTick(t)),K.createElement(FT,SV({textAnchor:`start`,verticalAnchor:`middle`,x:Math.max(c,l)+a+u,y:r+i/2},d),this.getTextOfTick(n)))}},{key:`render`,value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,o=e.width,s=e.height,c=e.alwaysShowText,l=this.state,u=l.startX,f=l.endX,p=l.isTextActive,m=l.isSlideMoving,h=l.isTravellerMoving,g=l.isTravellerFocused;if(!t||!t.length||!Z(i)||!Z(a)||!Z(o)||!Z(s)||o<=0||s<=0)return null;var _=d(`recharts-brush`,n),v=K.Children.count(r)===1,y=yV(`userSelect`,`none`);return K.createElement(Av,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(u,f),this.renderTravellerLayer(u,`startX`),this.renderTravellerLayer(f,`endX`),(p||m||h||g||c)&&this.renderText())}}],[{key:`renderDefaultTraveller`,value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,o=Math.floor(n+i/2)-1;return K.createElement(K.Fragment,null,K.createElement(`rect`,{x:t,y:n,width:r,height:i,fill:a,stroke:`none`}),K.createElement(`line`,{x1:t+1,y1:o,x2:t+r-1,y2:o,fill:`none`,stroke:`#fff`}),K.createElement(`line`,{x1:t+1,y1:o+2,x2:t+r-1,y2:o+2,fill:`none`,stroke:`#fff`}))}},{key:`renderTraveller`,value:function(e,n){return K.isValidElement(e)?K.cloneElement(e,n):(0,Z_.default)(e)?e(n):t.renderDefaultTraveller(n)}},{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.data,r=e.width,i=e.x,a=e.travellerWidth,o=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return wV({prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r},n&&n.length?RV({data:n,width:r,x:i,travellerWidth:a,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([i,i+r-a]);var l=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:`getIndexInRange`,value:function(e,t){for(var n=e.length,r=0,i=n-1;i-r>1;){var a=Math.floor((r+i)/2);e[a]>t?i=a:r=a}return t>=e[i]?i:r}}])}(K.PureComponent);FV(BV,`displayName`,`Brush`),FV(BV,`defaultProps`,{height:40,travellerWidth:5,gap:1,fill:`#fff`,stroke:`#666`,padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var VV=o(((e,t)=>{var n=VS();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),HV=o(((e,t)=>{var n=nx(),r=eS(),i=VV(),a=vg(),o=tC();function s(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=s})),UV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r=`extendDomain`),r===t},WV=o(((e,t)=>{var n=XS();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),GV=o(((e,t)=>{var n=WV(),r=zS(),i=eS();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),KV=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}t.exports=n})),qV=o(((e,t)=>{var n=VS();function r(e,t){var r=!0;return n(e,function(e,n,i){return r=!!t(e,n,i),r}),r}t.exports=r})),JV=o(((e,t)=>{var n=KV(),r=qV(),i=eS(),a=vg(),o=tC();function s(e,t,s){var c=a(e)?n:r;return s&&o(e,t,s)&&(t=void 0),c(e,i(t,3))}t.exports=s})),YV=[`x`,`y`];function XV(e){"@babel/helpers - typeof";return XV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XV(e)}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}function QV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QV(Object(n),!0).forEach(function(t){eH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eH(e,t,n){return t=tH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tH(e){var t=nH(e,`string`);return XV(t)==`symbol`?t:t+``}function nH(e,t){if(XV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(XV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rH(e,t){if(e==null)return{};var n=iH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function aH(e,t){var n=e.x,r=e.y,i=rH(e,YV),a=`${n}`,o=parseInt(a,10),s=`${r}`,c=parseInt(s,10),l=`${t.height||i.height}`,u=parseInt(l,10),d=`${t.width||i.width}`,f=parseInt(d,10);return $V($V($V($V($V({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function oH(e){return K.createElement(MB,ZV({shapeType:`rectangle`,propTransformer:aH,activeClassName:`recharts-active-bar`},e))}var sH=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof e==`number`)return e;var i=Z(n)||k_(n);return i?e(n,r):(!i&&fM(!1),t)}},cH=[`value`,`background`],lH;function uH(e){"@babel/helpers - typeof";return uH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uH(e)}function dH(e,t){if(e==null)return{};var n=fH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pH(){return pH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pH.apply(this,arguments)}function mH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mH(Object(n),!0).forEach(function(t){EH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gH(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,DH(r.key),r)}}function vH(e,t,n){return t&&_H(e.prototype,t),n&&_H(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yH(e,t,n){return t=CH(t),bH(e,SH()?Reflect.construct(t,n||[],CH(e).constructor):t.apply(e,n))}function bH(e,t){if(t&&(uH(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return xH(e)}function xH(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function SH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SH=function(){return!!e})()}function CH(e){return CH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CH(e)}function wH(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&TH(e,t)}function TH(e,t){return TH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TH(e,t)}function EH(e,t,n){return t=DH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DH(e){var t=OH(e,`string`);return uH(t)==`symbol`?t:t+``}function OH(e,t){if(uH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kH=function(e){function t(){var e;gH(this,t);var n=[...arguments];return e=yH(this,t,[].concat(n)),EH(e,`state`,{isAnimationFinished:!1}),EH(e,`id`,M_(`recharts-bar-`)),EH(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),EH(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return wH(t,e),vH(t,[{key:`renderRectanglesStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,o=n.activeBar,s=Q(this.props,!1);return e&&e.map(function(e,n){var c=n===a,l=c?o:r,u=hH(hH(hH({},s),e),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return K.createElement(Av,pH({className:`recharts-bar-rectangle`},X_(t.props,e,n),{key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${n}`}),K.createElement(oH,u))})}},{key:`renderRectanglesWithAnimation`,value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationId,l=this.state.prevData;return K.createElement(pR,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},key:`bar-${c}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,a=n.map(function(e,t){var n=l&&l[t];if(n){var a=I_(n.x,e.x),o=I_(n.y,e.y),s=I_(n.width,e.width),c=I_(n.height,e.height);return hH(hH({},e),{},{x:a(i),y:o(i),width:s(i),height:c(i)})}if(r===`horizontal`){var u=I_(0,e.height)(i);return hH(hH({},e),{},{y:e.y+e.height-u,height:u})}var d=I_(0,e.width)(i);return hH(hH({},e),{},{width:d})});return K.createElement(Av,null,e.renderRectanglesStatically(a))})}},{key:`renderRectangles`,value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return n&&t&&t.length&&(!r||!(0,JM.default)(r,t))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(t)}},{key:`renderBackground`,value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=Q(this.props.background,!1);return n.map(function(t,n){t.value;var o=t.background,s=dH(t,cH);if(!o)return null;var c=hH(hH(hH(hH(hH({},s),{},{fill:`#eee`},o),a),X_(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return K.createElement(oH,pH({key:`background-bar-${n}`,option:e.props.background,isActive:n===i},c))})}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=lv(s,LM);if(!c)return null;var l=o===`vertical`?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:sN(e,t)}},d={clipPath:e?`url(#clipPath-${t})`:null};return K.createElement(Av,d,c.map(function(e){return K.cloneElement(e,{key:`error-bar-${t}-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,offset:l,dataPointFormatter:u})}))}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,o=e.left,s=e.top,c=e.width,l=e.height,u=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=d(`recharts-bar`,r),g=i&&i.allowDataOverflow,_=a&&a.allowDataOverflow,v=g||_,y=(0,E_.default)(p)?this.id:p;return K.createElement(Av,{className:h},g||_?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${y}`},K.createElement(`rect`,{x:g?o:o-c/2,y:_?s:s-l/2,width:g?c:c*2,height:_?l:l*2}))):null,K.createElement(Av,{className:`recharts-bar-rectangles`,clipPath:v?`url(#clipPath-${y})`:null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!u||m)&&rF.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.data===t.curData?null:{curData:e.data}:{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}}}])}(K.PureComponent);lH=kH,EH(kH,`displayName`,`Bar`),EH(kH,`defaultProps`,{xAxisId:0,yAxisId:0,legendType:`rect`,minPointSize:0,hide:!1,data:[],layout:`vertical`,activeBar:!1,isAnimationActive:!KC.isSsr,animationBegin:0,animationDuration:400,animationEasing:`ease`}),EH(kH,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=EN(r,n);if(!p)return null;var m=t.layout,h=n.type.defaultProps,g=h===void 0?n.props:hH(hH({},h),n.props),_=g.dataKey,v=g.children,y=g.minPointSize,b=m===`horizontal`?o:a,x=l?b.scale.domain():null,S=PN({numericAxis:b}),C=lv(v,jw);return hH({data:d.map(function(e,t){var r,d,f,h,g,v;l?r=DN(l[u+t],x):(r=sN(e,_),Array.isArray(r)||(r=[S,r]));var b=sH(y,lH.defaultProps.minPointSize)(r[1],t);if(m===`horizontal`){var w=[o.scale(r[0]),o.scale(r[1])],T=w[0],E=w[1];d=NN({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:e,index:t}),f=E??T??void 0,h=p.size;var D=T-E;if(g=Number.isNaN(D)?0:D,v={x:d,y:o.y,width:h,height:o.height},Math.abs(b)>0&&Math.abs(g)<Math.abs(b)){var O=D_(g||b)*(Math.abs(b)-Math.abs(g));f-=O,g+=O}}else{var k=[a.scale(r[0]),a.scale(r[1])],A=k[0],j=k[1];if(d=A,f=NN({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:e,index:t}),h=j-A,g=p.size,v={x:a.x,y:f,width:a.width,height:g},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)){var M=D_(h||b)*(Math.abs(b)-Math.abs(h));h+=M}}return hH(hH(hH({},e),{},{x:d,y:f,width:h,height:g,value:l?r:r[1],payload:e,background:v},C&&C[t]&&C[t].props),{},{tooltipPayload:[UN(n,e)],tooltipPosition:{x:d+h/2,y:f+g/2}})}),layout:m},f)});var AH=l(GV()),jH=l(JV());function MH(e){"@babel/helpers - typeof";return MH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},MH(e)}function NH(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,zH(r.key),r)}}function FH(e,t,n){return t&&PH(e.prototype,t),n&&PH(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function IH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IH(Object(n),!0).forEach(function(t){RH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RH(e,t,n){return t=zH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zH(e){var t=BH(e,`string`);return MH(t)==`symbol`?t:t+``}function BH(e,t){if(MH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(MH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var VH=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!uv(c,kH);return l.reduce(function(a,o){var c=t[o],l=c.orientation,f=c.domain,p=c.padding,m=p===void 0?{}:p,h=c.mirror,g=c.reversed,_=`${l}${h?`Mirror`:``}`,v,y,b,x,S;if(c.type===`number`&&(c.padding===`gap`||c.padding===`no-gap`)){var C=f[1]-f[0],w=1/0,T=c.categoricalDomain.sort(z_);if(T.forEach(function(e,t){t>0&&(w=Math.min((e||0)-(T[t-1]||0),w))}),Number.isFinite(w)){var E=w/C,D=c.layout===`vertical`?n.height:n.width;if(c.padding===`gap`&&(v=E*D/2),c.padding===`no-gap`){var O=N_(e.barCategoryGap,E*D),k=E*D/2;v=k-O-(k-O)/D*O}}}y=r===`xAxis`?[n.left+(m.left||0)+(v||0),n.left+n.width-(m.right||0)-(v||0)]:r===`yAxis`?s===`horizontal`?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(v||0),n.top+n.height-(m.bottom||0)-(v||0)]:c.range,g&&(y=[y[1],y[0]]);var A=CN(c,i,d),j=A.scale,M=A.realScaleType;j.domain(f).range(y),TN(j);var N=jN(j,LH(LH({},c),{},{realScaleType:M}));r===`xAxis`?(S=l===`top`&&!h||l===`bottom`&&h,b=n.left,x=u[_]-S*c.height):r===`yAxis`&&(S=l===`left`&&!h||l===`right`&&h,b=u[_]-S*c.width,x=n.top);var P=LH(LH(LH({},c),N),{},{realScaleType:M,x:b,y:x,scale:j,width:r===`xAxis`?n.width:c.width,height:r===`yAxis`?n.height:c.height});return P.bandSize=VN(P,N),!c.hide&&r===`xAxis`?u[_]+=(S?-1:1)*P.height:c.hide||(u[_]+=(S?-1:1)*P.width),LH(LH({},a),{},RH({},o,P))},{})},HH=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},UH=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return HH({x:t,y:n},{x:r,y:i})},WH=function(){function e(t){NH(this,e),this.scale=t}return FH(e,[{key:`domain`,get:function(){return this.scale.domain}},{key:`range`,get:function(){return this.scale.range}},{key:`rangeMin`,get:function(){return this.range()[0]}},{key:`rangeMax`,get:function(){return this.range()[1]}},{key:`bandwidth`,get:function(){return this.scale.bandwidth}},{key:`apply`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.bandAware,r=t.position;if(e!==void 0){if(r)switch(r){case`start`:return this.scale(e);case`middle`:var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case`end`:var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a;default:return this.scale(e)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:`isInRange`,value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],[{key:`create`,value:function(t){return new e(t)}}])}();RH(WH,`EPS`,1e-4);var GH=function(e){var t=Object.keys(e).reduce(function(t,n){return LH(LH({},t),{},RH({},n,WH.create(e[n])))},{});return LH(LH({},t),{},{apply:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;return(0,AH.default)(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return(0,jH.default)(e,function(e,n){return t[n].isInRange(e)})}})};function KH(e){return(e%180+180)%180}var qH=function(e){var t=e.width,n=e.height,r=KH(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},JH=o(((e,t)=>{var n=eS(),r=Ax(),i=jx();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),YH=o(((e,t)=>{var n=lV();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),XH=o(((e,t)=>{var n=tS(),r=eS(),i=YH(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),ZH=o(((e,t)=>{t.exports=JH()(XH())})),QH=(0,l(o_()).default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return[`l`,e.left,`t`,e.top,`w`,e.width,`h`,e.height].join(``)}),$H=l(ZH()),eU=(0,K.createContext)(void 0),tU=(0,K.createContext)(void 0),nU=(0,K.createContext)(void 0),rU=(0,K.createContext)({}),iU=(0,K.createContext)(void 0),aU=(0,K.createContext)(0),oU=(0,K.createContext)(0),sU=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,o=e.children,s=e.width,c=e.height,l=QH(i);return K.createElement(eU.Provider,{value:n},K.createElement(tU.Provider,{value:r},K.createElement(rU.Provider,{value:i},K.createElement(nU.Provider,{value:l},K.createElement(iU.Provider,{value:a},K.createElement(aU.Provider,{value:c},K.createElement(oU.Provider,{value:s},o)))))))},cU=function(){return(0,K.useContext)(iU)},lU=function(e){var t=(0,K.useContext)(eU);t??fM(!1);var n=t[e];return n??fM(!1),n},uU=function(){return P_((0,K.useContext)(eU))},dU=function(){var e=(0,K.useContext)(tU);return(0,$H.default)(e,function(e){return(0,jH.default)(e.domain,Number.isFinite)})||P_(e)},fU=function(e){var t=(0,K.useContext)(tU);t??fM(!1);var n=t[e];return n??fM(!1),n},pU=function(){return(0,K.useContext)(nU)},mU=function(){return(0,K.useContext)(rU)},hU=function(){return(0,K.useContext)(oU)},gU=function(){return(0,K.useContext)(aU)},_U=l(HV());function vU(e){"@babel/helpers - typeof";return vU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vU(e)}function yU(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function bU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,MU(r.key),r)}}function xU(e,t,n){return t&&bU(e.prototype,t),n&&bU(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function SU(e,t,n){return t=EU(t),CU(e,TU()?Reflect.construct(t,n||[],EU(e).constructor):t.apply(e,n))}function CU(e,t){if(t&&(vU(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return wU(e)}function wU(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function TU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TU=function(){return!!e})()}function EU(e){return EU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EU(e)}function DU(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&OU(e,t)}function OU(e,t){return OU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OU(e,t)}function kU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kU(Object(n),!0).forEach(function(t){jU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jU(e,t,n){return t=MU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MU(e){var t=NU(e,`string`);return vU(t)==`symbol`?t:t+``}function NU(e,t){if(vU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function PU(e,t){return zU(e)||RU(e,t)||IU(e,t)||FU()}function FU(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
102
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IU(e,t){if(e){if(typeof e==`string`)return LU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LU(e,t)}}function LU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function RU(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zU(e){if(Array.isArray(e))return e}function BU(){return BU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BU.apply(this,arguments)}var VU=function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,Z_.default)(e)?e(t):K.createElement(`line`,BU({},t,{className:`recharts-reference-line-line`}))},HU=function(e,t,n,r,i,a,o,s,c){var l=i.x,u=i.y,d=i.width,f=i.height;if(n){var p=c.y,m=e.y.apply(p,{position:a});if(UV(c,`discard`)&&!e.y.isInRange(m))return null;var h=[{x:l+d,y:m},{x:l,y:m}];return s===`left`?h.reverse():h}if(t){var g=c.x,_=e.x.apply(g,{position:a});if(UV(c,`discard`)&&!e.x.isInRange(_))return null;var v=[{x:_,y:u+f},{x:_,y:u}];return o===`top`?v.reverse():v}if(r){var y=c.segment.map(function(t){return e.apply(t,{position:a})});return UV(c,`discard`)&&(0,_U.default)(y,function(t){return!e.isInRange(t)})?null:y}return null};function UU(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,l=cU(),u=lU(i),f=fU(a),p=pU();if(!l||!p)return null;Mv(c===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var m=HU(GH({x:u.scale,y:f.scale}),A_(t),A_(n),r&&r.length===2,p,e.position,u.orientation,f.orientation,e);if(!m)return null;var h=PU(m,2),g=h[0],_=g.x,v=g.y,y=h[1],b=y.x,x=y.y,S=AU(AU({clipPath:UV(e,`hidden`)?`url(#${l})`:void 0},Q(e,!0)),{},{x1:_,y1:v,x2:b,y2:x});return K.createElement(Av,{className:d(`recharts-reference-line`,s)},VU(o,S),FP.renderCallByParent(e,UH({x1:_,y1:v,x2:b,y2:x})))}var WU=function(e){function t(){return yU(this,t),SU(this,t,arguments)}return DU(t,e),xU(t,[{key:`render`,value:function(){return K.createElement(UU,this.props)}}])}(K.Component);jU(WU,`displayName`,`ReferenceLine`),jU(WU,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`});function GU(){return GU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GU.apply(this,arguments)}function KU(e){"@babel/helpers - typeof";return KU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KU(e)}function qU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qU(Object(n),!0).forEach(function(t){aW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YU(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function XU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,oW(r.key),r)}}function ZU(e,t,n){return t&&XU(e.prototype,t),n&&XU(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function QU(e,t,n){return t=nW(t),$U(e,tW()?Reflect.construct(t,n||[],nW(e).constructor):t.apply(e,n))}function $U(e,t){if(t&&(KU(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return eW(e)}function eW(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function tW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tW=function(){return!!e})()}function nW(e){return nW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nW(e)}function rW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&iW(e,t)}function iW(e,t){return iW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iW(e,t)}function aW(e,t,n){return t=oW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oW(e){var t=sW(e,`string`);return KU(t)==`symbol`?t:t+``}function sW(e,t){if(KU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var cW=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,a=GH({x:r.scale,y:i.scale}),o=a.apply({x:t,y:n},{bandAware:!0});return UV(e,`discard`)&&!a.isInRange(o)?null:o},lW=function(e){function t(){return YU(this,t),QU(this,t,arguments)}return rW(t,e),ZU(t,[{key:`render`,value:function(){var e=this.props,n=e.x,r=e.y,i=e.r,a=e.alwaysShow,o=e.clipPathId,s=A_(n),c=A_(r);if(Mv(a===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`),!s||!c)return null;var l=cW(this.props);if(!l)return null;var u=l.x,f=l.y,p=this.props,m=p.shape,h=p.className,g=JU(JU({clipPath:UV(this.props,`hidden`)?`url(#${o})`:void 0},Q(this.props,!0)),{},{cx:u,cy:f});return K.createElement(Av,{className:d(`recharts-reference-dot`,h)},t.renderDot(m,g),FP.renderCallByParent(this.props,{x:u-i,y:f-i,width:2*i,height:2*i}))}}])}(K.Component);aW(lW,`displayName`,`ReferenceDot`),aW(lW,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#fff`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1}),aW(lW,`renderDot`,function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,Z_.default)(e)?e(t):K.createElement(qR,GU({},t,{cx:t.cx,cy:t.cy,className:`recharts-reference-dot-dot`}))});function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uW.apply(this,arguments)}function dW(e){"@babel/helpers - typeof";return dW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dW(e)}function fW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fW(Object(n),!0).forEach(function(t){wW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mW(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function hW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,TW(r.key),r)}}function gW(e,t,n){return t&&hW(e.prototype,t),n&&hW(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function _W(e,t,n){return t=xW(t),vW(e,bW()?Reflect.construct(t,n||[],xW(e).constructor):t.apply(e,n))}function vW(e,t){if(t&&(dW(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return yW(e)}function yW(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function bW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bW=function(){return!!e})()}function xW(e){return xW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xW(e)}function SW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&CW(e,t)}function CW(e,t){return CW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CW(e,t)}function wW(e,t,n){return t=TW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TW(e){var t=EW(e,`string`);return dW(t)==`symbol`?t:t+``}function EW(e,t){if(dW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var DW=function(e,t,n,r,i){var a=i.x1,o=i.x2,s=i.y1,c=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var d=GH({x:l.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:`start`}):d.x.rangeMin,y:n?d.y.apply(s,{position:`start`}):d.y.rangeMin},p={x:t?d.x.apply(o,{position:`end`}):d.x.rangeMax,y:r?d.y.apply(c,{position:`end`}):d.y.rangeMax};return UV(i,`discard`)&&(!d.isInRange(f)||!d.isInRange(p))?null:HH(f,p)},OW=function(e){function t(){return mW(this,t),_W(this,t,arguments)}return SW(t,e),gW(t,[{key:`render`,value:function(){var e=this.props,n=e.x1,r=e.x2,i=e.y1,a=e.y2,o=e.className,s=e.alwaysShow,c=e.clipPathId;Mv(s===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var l=A_(n),u=A_(r),f=A_(i),p=A_(a),m=this.props.shape;if(!l&&!u&&!f&&!p&&!m)return null;var h=DW(l,u,f,p,this.props);if(!h&&!m)return null;var g=UV(this.props,`hidden`)?`url(#${c})`:void 0;return K.createElement(Av,{className:d(`recharts-reference-area`,o)},t.renderRect(m,pW(pW({clipPath:g},Q(this.props,!0)),h)),FP.renderCallByParent(this.props,h))}}])}(K.Component);wW(OW,`displayName`,`ReferenceArea`),wW(OW,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#ccc`,fillOpacity:.5,stroke:`none`,strokeWidth:1}),wW(OW,`renderRect`,function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,Z_.default)(e)?e(t):K.createElement(AR,uW({},t,{className:`recharts-reference-area-rect`}))});function kW(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function AW(e,t,n){return qH({width:e.width+t.width,height:e.height+t.height},n)}function jW(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function MW(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function NW(e,t){return kW(e,t+1)}function PW(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:kW(r,l)};var a=c,d,f=function(){return d===void 0&&(d=n(t,a)),d},p=t.coordinate,m=c===0||MW(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function FW(e){"@babel/helpers - typeof";return FW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FW(e)}function IW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IW(Object(n),!0).forEach(function(t){RW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RW(e,t,n){return t=zW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zW(e){var t=BW(e,`string`);return FW(t)==`symbol`?t:t+``}function BW(e,t){if(FW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(FW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VW(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t],l,u=function(){return l===void 0&&(l=n(r,t)),l};if(t===o-1){var d=e*(r.coordinate+e*u()/2-c);a[t]=r=LW(LW({},r),{},{tickCoord:d>0?r.coordinate-d*e:r.coordinate})}else a[t]=r=LW(LW({},r),{},{tickCoord:r.coordinate});MW(e,r.tickCoord,u,s,c)&&(c=r.tickCoord-e*(u()/2+i),a[t]=LW(LW({},r),{},{isShow:!0}))},u=o-1;u>=0;u--)l(u);return a}function HW(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=LW(LW({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),MW(e,u.tickCoord,function(){return d},c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=LW(LW({},u),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(t){var r=o[t],a,s=function(){return a===void 0&&(a=n(r,t)),a};if(t===0){var u=e*(r.coordinate-e*s()/2-c);o[t]=r=LW(LW({},r),{},{tickCoord:u<0?r.coordinate-u*e:r.coordinate})}else o[t]=r=LW(LW({},r),{},{tickCoord:r.coordinate});MW(e,r.tickCoord,s,c,l)&&(c=r.tickCoord+e*(s()/2+i),o[t]=LW(LW({},r),{},{isShow:!0}))},h=0;h<p;h++)m(h);return o}function UW(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Z(c)||KC.isSsr)return NW(i,typeof c==`number`&&Z(c)?c:0);var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?Uw(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(e,r){var i=(0,Z_.default)(l)?l(e.value,r):e.value;return p===`width`?AW(Uw(i,{fontSize:t,letterSpacing:n}),m,d):Uw(i,{fontSize:t,letterSpacing:n})[p]},g=i.length>=2?D_(i[1].coordinate-i[0].coordinate):1,_=jW(a,g,p);return c===`equidistantPreserveStart`?PW(g,_,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?HW(g,_,h,i,o,c===`preserveStartEnd`):VW(g,_,h,i,o),f.filter(function(e){return e.isShow}))}var WW=[`viewBox`],GW=[`viewBox`],KW=[`ticks`];function qW(e){"@babel/helpers - typeof";return qW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qW(e)}function JW(){return JW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JW.apply(this,arguments)}function YW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YW(Object(n),!0).forEach(function(t){lG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZW(e,t){if(e==null)return{};var n=QW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $W(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function eG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,uG(r.key),r)}}function tG(e,t,n){return t&&eG(e.prototype,t),n&&eG(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function nG(e,t,n){return t=oG(t),rG(e,aG()?Reflect.construct(t,n||[],oG(e).constructor):t.apply(e,n))}function rG(e,t){if(t&&(qW(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return iG(e)}function iG(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function aG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aG=function(){return!!e})()}function oG(e){return oG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oG(e)}function sG(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&cG(e,t)}function cG(e,t){return cG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cG(e,t)}function lG(e,t,n){return t=uG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=dG(e,`string`);return qW(t)==`symbol`?t:t+``}function dG(e,t){if(qW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fG=function(e){function t(e){var n;return $W(this,t),n=nG(this,t,[e]),n.state={fontSize:``,letterSpacing:``},n}return sG(t,e),tG(t,[{key:`shouldComponentUpdate`,value:function(e,t){var n=e.viewBox,r=ZW(e,WW),i=this.props,a=i.viewBox,o=ZW(i,GW);return!B_(n,a)||!B_(r,o)||!B_(t,this.state)}},{key:`componentDidMount`,value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`)[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,o=t.orientation,s=t.tickSize,c=t.mirror,l=t.tickMargin,u,d,f,p,m,h,g=c?-1:1,_=e.tickSize||s,v=Z(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case`top`:u=d=e.coordinate,p=r+ +!c*a,f=p-g*_,h=f-g*l,m=v;break;case`left`:f=p=e.coordinate,d=n+ +!c*i,u=d-g*_,m=u-g*l,h=v;break;case`right`:f=p=e.coordinate,d=n+ +c*i,u=d+g*_,m=u+g*l,h=v;break;default:u=d=e.coordinate,p=r+ +c*a,f=p+g*_,h=f+g*l,m=v;break}return{line:{x1:u,y1:f,x2:d,y2:p},tick:{x:m,y:h}}}},{key:`getTickTextAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r;switch(t){case`left`:r=n?`start`:`end`;break;case`right`:r=n?`end`:`start`;break;default:r=`middle`;break}return r}},{key:`getTickVerticalAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=`end`;switch(t){case`left`:case`right`:r=`middle`;break;case`top`:r=n?`start`:`end`;break;default:r=n?`end`:`start`;break}return r}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,o=e.mirror,s=e.axisLine,c=XW(XW(XW({},Q(this.props,!1)),Q(s,!1)),{},{fill:`none`});if(a===`top`||a===`bottom`){var l=+(a===`top`&&!o||a===`bottom`&&o);c=XW(XW({},c),{},{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var u=+(a===`left`&&!o||a===`right`&&o);c=XW(XW({},c),{},{x1:t+u*r,y1:n,x2:t+u*r,y2:n+i})}return K.createElement(`line`,JW({},c,{className:d(`recharts-cartesian-axis-line`,(0,w_.default)(s,`className`))}))}},{key:`renderTicks`,value:function(e,n,r){var i=this,a=this.props,o=a.tickLine,s=a.stroke,c=a.tick,l=a.tickFormatter,u=a.unit,f=UW(XW(XW({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),h=Q(this.props,!1),g=Q(c,!1),_=XW(XW({},h),{},{fill:`none`},Q(o,!1)),v=f.map(function(e,n){var r=i.getTickLineCoord(e),a=r.line,v=r.tick,y=XW(XW(XW(XW({textAnchor:p,verticalAnchor:m},h),{},{stroke:`none`,fill:s},g),v),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:l});return K.createElement(Av,JW({className:`recharts-cartesian-axis-tick`,key:`tick-${e.value}-${e.coordinate}-${e.tickCoord}`},X_(i.props,e,n)),o&&K.createElement(`line`,JW({},_,a,{className:d(`recharts-cartesian-axis-tick-line`,(0,w_.default)(o,`className`))})),c&&t.renderTickItem(c,y,`${(0,Z_.default)(l)?l(e.value,n):e.value}${u||``}`))});return K.createElement(`g`,{className:`recharts-cartesian-axis-ticks`},v)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,o=t.className;if(t.hide)return null;var s=this.props,c=s.ticks,l=ZW(s,KW),u=c;return(0,Z_.default)(a)&&(u=c&&c.length>0?a(this.props):a(l)),r<=0||i<=0||!u||!u.length?null:K.createElement(Av,{className:d(`recharts-cartesian-axis`,o),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),FP.renderCallByParent(this.props))}}],[{key:`renderTickItem`,value:function(e,t,n){var r,i=d(t.className,`recharts-cartesian-axis-tick-value`);return r=K.isValidElement(e)?K.cloneElement(e,XW(XW({},t),{},{className:i})):(0,Z_.default)(e)?e(XW(XW({},t),{},{className:i})):K.createElement(FT,JW({},t,{className:`recharts-cartesian-axis-tick-value`}),n),r}}])}(K.Component);lG(fG,`displayName`,`CartesianAxis`),lG(fG,`defaultProps`,{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`});var pG=[`x1`,`y1`,`x2`,`y2`,`key`],mG=[`offset`];function hG(e){"@babel/helpers - typeof";return hG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hG(e)}function gG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gG(Object(n),!0).forEach(function(t){vG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vG(e,t,n){return t=yG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yG(e){var t=bG(e,`string`);return hG(t)==`symbol`?t:t+``}function bG(e,t){if(hG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xG(){return xG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xG.apply(this,arguments)}function SG(e,t){if(e==null)return{};var n=CG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wG=function(e){var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return K.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function TG(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,Z_.default)(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=Q(SG(t,pG),!1);c.offset;var l=SG(c,mG);n=K.createElement(`line`,xG({},l,{x1:r,y1:i,x2:a,y2:o,fill:`none`,key:s}))}return n}function EG(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return TG(i,_G(_G({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:`line-${a}`,index:a}))});return K.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},o)}function DG(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return TG(i,_G(_G({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:`line-${a}`,index:a}))});return K.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},o)}function OG(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length)return null;var l=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==l[0]&&l.unshift(0);var u=l.map(function(e,s){var c=l[s+1]?l[s+1]-e:i+o-e;if(c<=0)return null;var u=s%t.length;return K.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:c,width:a,stroke:`none`,fill:t[u],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return K.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function kG(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var u=l.map(function(e){return Math.round(e+a-a)}).sort(function(e,t){return e-t});a!==u[0]&&u.unshift(0);var d=u.map(function(e,t){var n=u[t+1]?u[t+1]-e:a+s-e;if(n<=0)return null;var l=t%r.length;return K.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:n,height:c,stroke:`none`,fill:r[l],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return K.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},d)}var AG=function(e,t){var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return yN(UW(_G(_G(_G({},fG.defaultProps),n),{},{ticks:bN(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},jG=function(e,t){var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return yN(UW(_G(_G(_G({},fG.defaultProps),n),{},{ticks:bN(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},MG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[]};function NG(e){var t=hU(),n=gU(),r=mU(),i=_G(_G({},e),{},{stroke:e.stroke??MG.stroke,fill:e.fill??MG.fill,horizontal:e.horizontal??MG.horizontal,horizontalFill:e.horizontalFill??MG.horizontalFill,vertical:e.vertical??MG.vertical,verticalFill:e.verticalFill??MG.verticalFill,x:Z(e.x)?e.x:r.left,y:Z(e.y)?e.y:r.top,width:Z(e.width)?e.width:r.width,height:Z(e.height)?e.height:r.height}),a=i.x,o=i.y,s=i.width,c=i.height,l=i.syncWithTicks,u=i.horizontalValues,d=i.verticalValues,f=uU(),p=dU();if(!Z(s)||s<=0||!Z(c)||c<=0||!Z(a)||a!==+a||!Z(o)||o!==+o)return null;var m=i.verticalCoordinatesGenerator||AG,h=i.horizontalCoordinatesGenerator||jG,g=i.horizontalPoints,_=i.verticalPoints;if((!g||!g.length)&&(0,Z_.default)(h)){var v=u&&u.length,y=h({yAxis:p?_G(_G({},p),{},{ticks:v?u:p.ticks}):void 0,width:t,height:n,offset:r},v?!0:l);Mv(Array.isArray(y),`horizontalCoordinatesGenerator should return Array but instead it returned [${hG(y)}]`),Array.isArray(y)&&(g=y)}if((!_||!_.length)&&(0,Z_.default)(m)){var b=d&&d.length,x=m({xAxis:f?_G(_G({},f),{},{ticks:b?d:f.ticks}):void 0,width:t,height:n,offset:r},b?!0:l);Mv(Array.isArray(x),`verticalCoordinatesGenerator should return Array but instead it returned [${hG(x)}]`),Array.isArray(x)&&(_=x)}return K.createElement(`g`,{className:`recharts-cartesian-grid`},K.createElement(wG,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),K.createElement(EG,xG({},i,{offset:r,horizontalPoints:g,xAxis:f,yAxis:p})),K.createElement(DG,xG({},i,{offset:r,verticalPoints:_,xAxis:f,yAxis:p})),K.createElement(OG,xG({},i,{horizontalPoints:g})),K.createElement(kG,xG({},i,{verticalPoints:_})))}NG.displayName=`CartesianGrid`;var PG=[`type`,`layout`,`connectNulls`,`ref`],FG=[`key`];function IG(e){"@babel/helpers - typeof";return IG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IG(e)}function LG(e,t){if(e==null)return{};var n=RG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zG.apply(this,arguments)}function BG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BG(Object(n),!0).forEach(function(t){iK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HG(e){return KG(e)||GG(e)||WG(e)||UG()}function UG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WG(e,t){if(e){if(typeof e==`string`)return qG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qG(e,t)}}function GG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function KG(e){if(Array.isArray(e))return qG(e)}function qG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function JG(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function YG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,aK(r.key),r)}}function XG(e,t,n){return t&&YG(e.prototype,t),n&&YG(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ZG(e,t,n){return t=tK(t),QG(e,eK()?Reflect.construct(t,n||[],tK(e).constructor):t.apply(e,n))}function QG(e,t){if(t&&(IG(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return $G(e)}function $G(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function eK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eK=function(){return!!e})()}function tK(e){return tK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tK(e)}function nK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&rK(e,t)}function rK(e,t){return rK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rK(e,t)}function iK(e,t,n){return t=aK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aK(e){var t=oK(e,`string`);return IG(t)==`symbol`?t:t+``}function oK(e,t){if(IG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(IG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var sK=function(e){function t(){var e;JG(this,t);var n=[...arguments];return e=ZG(this,t,[].concat(n)),iK(e,`state`,{isAnimationFinished:!0,totalLength:0}),iK(e,`generateSimpleStrokeDasharray`,function(e,t){return`${t}px ${e-t}px`}),iK(e,`getStrokeDasharray`,function(n,r,i){var a=i.reduce(function(e,t){return e+t});if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var o=Math.floor(n/a),s=n%a,c=r-n,l=[],u=0,d=0;u<i.length;d+=i[u],++u)if(d+i[u]>s){l=[].concat(HG(i.slice(0,u)),[s-d]);break}var f=l.length%2==0?[0,c]:[c];return[].concat(HG(t.repeat(i,o)),HG(l),f).map(function(e){return`${e}px`}).join(`, `)}),iK(e,`id`,M_(`recharts-line-`)),iK(e,`pathRef`,function(t){e.mainCurve=t}),iK(e,`handleAnimationEnd`,function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),iK(e,`handleAnimationStart`,function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),e}return nK(t,e),XG(t,[{key:`componentDidMount`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:`componentDidUpdate`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:`getTotalLength`,value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=lv(s,LM);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:sN(e.payload,t)}},u={clipPath:e?`url(#clipPath-${t})`:null};return K.createElement(Av,u,c.map(function(e){return K.cloneElement(e,{key:`bar-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,dataPointFormatter:l})}))}},{key:`renderDots`,value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,o=i.points,s=i.dataKey,c=Q(this.props,!1),l=Q(a,!0),u=o.map(function(e,n){var r=VG(VG(VG({key:`dot-${n}`,r:3},c),l),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:s,payload:e.payload,points:o});return t.renderDotItem(a,r)}),d={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return K.createElement(Av,zG({className:`recharts-line-dots`,key:`dots`},d),u)}},{key:`renderCurveStatically`,value:function(e,t,n,r){var i=this.props,a=i.type,o=i.layout,s=i.connectNulls;i.ref;var c=VG(VG(VG({},Q(LG(i,PG),!0)),{},{fill:`none`,className:`recharts-line-curve`,clipPath:t?`url(#clipPath-${n})`:null,points:e},r),{},{type:a,layout:o,connectNulls:s});return K.createElement(MF,zG({},c,{pathRef:this.pathRef}))}},{key:`renderCurveWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=r.animateNewValues,f=r.width,p=r.height,m=this.state,h=m.prevPoints,g=m.totalLength;return K.createElement(pR,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`line-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(h){var s=h.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(h[n]){var r=h[n],i=I_(r.x,e.x),a=I_(r.y,e.y);return VG(VG({},e),{},{x:i(o),y:a(o)})}if(d){var c=I_(f*2,e.x),l=I_(p/2,e.y);return VG(VG({},e),{},{x:c(o),y:l(o)})}return VG(VG({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(c,e,t)}var l=I_(0,g)(o),u;if(a){var m=`${a}`.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});u=n.getStrokeDasharray(l,g,m)}else u=n.generateSimpleStrokeDasharray(g,l);return n.renderCurveStatically(i,e,t,{strokeDasharray:u})})}},{key:`renderCurve`,value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,a=this.state,o=a.prevPoints,s=a.totalLength;return i&&r&&r.length&&(!o&&s>0||!(0,JM.default)(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.xAxis,o=e.yAxis,s=e.top,c=e.left,l=e.width,u=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=d(`recharts-line`,i),_=a&&a.allowDataOverflow,v=o&&o.allowDataOverflow,y=_||v,b=(0,E_.default)(p)?this.id:p,x=Q(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(mv(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return K.createElement(Av,{className:g},_||v?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${b}`},K.createElement(`rect`,{x:_?c:c-l/2,y:v?s:s-u/2,width:_?l:l*2,height:v?u:u*2})),!D&&K.createElement(`clipPath`,{id:`clipPath-dots-${b}`},K.createElement(`rect`,{x:c-O/2,y:s-O/2,width:l+O,height:u+O}))):null,!h&&this.renderCurve(y,b),this.renderErrorBar(y,b),(h||n)&&this.renderDots(y,D,b),(!f||m)&&rF.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points===t.curPoints?null:{curPoints:e.points}:{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}}},{key:`repeat`,value:function(e,t){for(var n=e.length%2==0?e:[].concat(HG(e),[0]),r=[],i=0;i<t;++i)r=[].concat(HG(r),HG(n));return r}},{key:`renderDotItem`,value:function(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,Z_.default)(e))n=e(t);else{var r=t.key,i=LG(t,FG),a=d(`recharts-line-dot`,typeof e==`boolean`?``:e.className);n=K.createElement(qR,zG({key:r},i,{className:a}))}return n}}])}(K.PureComponent);iK(sK,`displayName`,`Line`),iK(sK,`defaultProps`,{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,fill:`#fff`,points:[],isAnimationActive:!KC.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,hide:!1,label:!1}),iK(sK,`getComposedData`,function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout;return VG({points:c.map(function(e,t){var c=sN(e,o);return u===`horizontal`?{x:MN({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:(0,E_.default)(c)?null:r.scale(c),value:c,payload:e}:{x:(0,E_.default)(c)?null:n.scale(c),y:MN({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:c,payload:e}}),layout:u},l)});var cK=[`layout`,`type`,`stroke`,`connectNulls`,`isRange`,`ref`],lK=[`key`],uK;function dK(e){"@babel/helpers - typeof";return dK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dK(e)}function fK(e,t){if(e==null)return{};var n=pK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mK(){return mK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mK.apply(this,arguments)}function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hK(Object(n),!0).forEach(function(t){DK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _K(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function vK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,OK(r.key),r)}}function yK(e,t,n){return t&&vK(e.prototype,t),n&&vK(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function bK(e,t,n){return t=wK(t),xK(e,CK()?Reflect.construct(t,n||[],wK(e).constructor):t.apply(e,n))}function xK(e,t){if(t&&(dK(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return SK(e)}function SK(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function CK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CK=function(){return!!e})()}function wK(e){return wK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wK(e)}function TK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&EK(e,t)}function EK(e,t){return EK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EK(e,t)}function DK(e,t,n){return t=OK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OK(e){var t=kK(e,`string`);return dK(t)==`symbol`?t:t+``}function kK(e,t){if(dK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var AK=function(e){function t(){var e;_K(this,t);var n=[...arguments];return e=bK(this,t,[].concat(n)),DK(e,`state`,{isAnimationFinished:!0}),DK(e,`id`,M_(`recharts-area-`)),DK(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),(0,Z_.default)(t)&&t()}),DK(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),(0,Z_.default)(t)&&t()}),e}return TK(t,e),yK(t,[{key:`renderDots`,value:function(e,n,r){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var o=this.props,s=o.dot,c=o.points,l=o.dataKey,u=Q(this.props,!1),d=Q(s,!0),f=c.map(function(e,n){var r=gK(gK(gK({key:`dot-${n}`,r:3},u),d),{},{index:n,cx:e.x,cy:e.y,dataKey:l,value:e.value,payload:e.payload,points:c});return t.renderDotItem(s,r)}),p={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return K.createElement(Av,mK({className:`recharts-area-dots`},p),f)}},{key:`renderHorizontalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,o=r[r.length-1].x,s=e*Math.abs(a-o),c=(0,GM.default)(r.map(function(e){return e.y||0}));return Z(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,GM.default)(n.map(function(e){return e.y||0})),c)),Z(c)?K.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}},{key:`renderVerticalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,o=r[r.length-1].y,s=e*Math.abs(a-o),c=(0,GM.default)(r.map(function(e){return e.x||0}));return Z(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,GM.default)(n.map(function(e){return e.x||0})),c)),Z(c)?K.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}},{key:`renderClipRect`,value:function(e){return this.props.layout===`vertical`?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:`renderAreaStatically`,value:function(e,t,n,r){var i=this.props,a=i.layout,o=i.type,s=i.stroke,c=i.connectNulls,l=i.isRange;i.ref;var u=fK(i,cK);return K.createElement(Av,{clipPath:n?`url(#clipPath-${r})`:null},K.createElement(MF,mK({},Q(u,!0),{points:e,connectNulls:c,type:o,baseLine:t,layout:a,stroke:`none`,className:`recharts-area-area`})),s!==`none`&&K.createElement(MF,mK({},Q(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:e})),s!==`none`&&l&&K.createElement(MF,mK({},Q(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:t})))}},{key:`renderAreaWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=this.state,f=d.prevPoints,p=d.prevBaseLine;return K.createElement(pR,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`area-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(f){var s=f.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(f[n]){var r=f[n],i=I_(r.x,e.x),a=I_(r.y,e.y);return gK(gK({},e),{},{x:i(o),y:a(o)})}return e}),l=Z(a)&&typeof a==`number`?I_(p,a)(o):(0,E_.default)(a)||(0,C_.default)(a)?I_(p,0)(o):a.map(function(e,t){var n=Math.floor(t*s);if(p[n]){var r=p[n],i=I_(r.x,e.x),a=I_(r.y,e.y);return gK(gK({},e),{},{x:i(o),y:a(o)})}return e});return n.renderAreaStatically(c,l,e,t)}return K.createElement(Av,null,K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`animationClipPath-${t}`},n.renderClipRect(o))),K.createElement(Av,{clipPath:`url(#animationClipPath-${t})`},n.renderAreaStatically(i,a,e,t)))})}},{key:`renderArea`,value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,o=this.state,s=o.prevPoints,c=o.prevBaseLine,l=o.totalLength;return a&&r&&r.length&&(!s&&l>0||!(0,JM.default)(s,r)||!(0,JM.default)(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,o=e.left,s=e.xAxis,c=e.yAxis,l=e.width,u=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=d(`recharts-area`,i),_=s&&s.allowDataOverflow,v=c&&c.allowDataOverflow,y=_||v,b=(0,E_.default)(p)?this.id:p,x=Q(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(mv(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return K.createElement(Av,{className:g},_||v?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${b}`},K.createElement(`rect`,{x:_?o:o-l/2,y:v?a:a-u/2,width:_?l:l*2,height:v?u:u*2})),!D&&K.createElement(`clipPath`,{id:`clipPath-dots-${b}`},K.createElement(`rect`,{x:o-O/2,y:a-O/2,width:l+O,height:u+O}))):null,h?null:this.renderArea(y,b),(n||h)&&this.renderDots(y,D,b),(!f||m)&&rF.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null:{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}}}])}(K.PureComponent);uK=AK,DK(AK,`displayName`,`Area`),DK(AK,`defaultProps`,{stroke:`#3182bd`,fill:`#3182bd`,fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:`line`,connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!KC.isSsr,animationBegin:0,animationDuration:1500,animationEasing:`ease`}),DK(AK,`getBaseValue`,function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue??a;if(Z(o)&&typeof o==`number`)return o;var s=i===`horizontal`?r:n,c=s.scale.domain();if(s.type===`number`){var l=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return o===`dataMin`?u:o===`dataMax`||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return o===`dataMin`?c[0]:o===`dataMax`?c[1]:c[0]}),DK(AK,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=l&&l.length,h=uK.getBaseValue(t,n,r,i),g=p===`horizontal`,_=!1,v=d.map(function(e,t){var n;m?n=l[u+t]:(n=sN(e,c),Array.isArray(n)?_=!0:n=[h,n]);var d=n[1]==null||m&&sN(e,c)==null;return g?{x:MN({axis:r,ticks:a,bandSize:s,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:r.scale(n[1]),y:MN({axis:i,ticks:o,bandSize:s,entry:e,index:t}),value:n,payload:e}});return gK({points:v,baseLine:m||_?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?i.scale(t):null}:{x:t==null?null:r.scale(t),y:e.y}}):g?i.scale(h):r.scale(h),layout:p,isRange:_},f)}),DK(AK,`renderDotItem`,function(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,Z_.default)(e))n=e(t);else{var r=d(`recharts-area-dot`,typeof e==`boolean`?``:e.className),i=t.key,a=fK(t,lK);n=K.createElement(qR,mK({},a,{key:i,className:r}))}return n});function jK(e){"@babel/helpers - typeof";return jK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jK(e)}function MK(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function NK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,UK(r.key),r)}}function PK(e,t,n){return t&&NK(e.prototype,t),n&&NK(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function FK(e,t,n){return t=zK(t),IK(e,RK()?Reflect.construct(t,n||[],zK(e).constructor):t.apply(e,n))}function IK(e,t){if(t&&(jK(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return LK(e)}function LK(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function RK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RK=function(){return!!e})()}function zK(e){return zK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zK(e)}function BK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&VK(e,t)}function VK(e,t){return VK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VK(e,t)}function HK(e,t,n){return t=UK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UK(e){var t=WK(e,`string`);return jK(t)==`symbol`?t:t+``}function WK(e,t){if(jK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var GK=function(e){function t(){return MK(this,t),FK(this,t,arguments)}return BK(t,e),PK(t,[{key:`render`,value:function(){return null}}])}(K.Component);HK(GK,`displayName`,`ZAxis`),HK(GK,`defaultProps`,{zAxisId:0,range:[64,64],scale:`auto`,type:`number`});var KK=[`option`,`isActive`];function qK(){return qK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qK.apply(this,arguments)}function JK(e,t){if(e==null)return{};var n=YK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XK(e){var t=e.option,n=e.isActive,r=JK(e,KK);return typeof t==`string`?K.createElement(MB,qK({option:K.createElement(Db,qK({type:t},r)),isActive:n,shapeType:`symbols`},r)):K.createElement(MB,qK({option:t,isActive:n,shapeType:`symbols`},r))}function ZK(e){"@babel/helpers - typeof";return ZK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ZK(e)}function QK(){return QK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QK.apply(this,arguments)}function $K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$K(Object(n),!0).forEach(function(t){dq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function nq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fq(r.key),r)}}function rq(e,t,n){return t&&nq(e.prototype,t),n&&nq(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function iq(e,t,n){return t=cq(t),aq(e,sq()?Reflect.construct(t,n||[],cq(e).constructor):t.apply(e,n))}function aq(e,t){if(t&&(ZK(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return oq(e)}function oq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sq=function(){return!!e})()}function cq(e){return cq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cq(e)}function lq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&uq(e,t)}function uq(e,t){return uq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uq(e,t)}function dq(e,t,n){return t=fq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fq(e){var t=pq(e,`string`);return ZK(t)==`symbol`?t:t+``}function pq(e,t){if(ZK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ZK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mq=function(e){function t(){var e;tq(this,t);var n=[...arguments];return e=iq(this,t,[].concat(n)),dq(e,`state`,{isAnimationFinished:!1}),dq(e,`handleAnimationEnd`,function(){e.setState({isAnimationFinished:!0})}),dq(e,`handleAnimationStart`,function(){e.setState({isAnimationFinished:!1})}),dq(e,`id`,M_(`recharts-scatter-`)),e}return lq(t,e),rq(t,[{key:`renderSymbolsStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,a=n.activeIndex,o=Q(this.props,!1);return e.map(function(e,n){var s=a===n,c=s?i:r,l=eq(eq({},o),e);return K.createElement(Av,QK({className:`recharts-scatter-symbol`,key:`symbol-${e?.cx}-${e?.cy}-${e?.size}-${n}`},X_(t.props,e,n),{role:`img`}),K.createElement(XK,QK({option:c,isActive:s,key:`symbol-${n}`},l)))})}},{key:`renderSymbolsWithAnimation`,value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,s=t.animationId,c=this.state.prevPoints;return K.createElement(pR,{begin:i,duration:a,isActive:r,easing:o,from:{t:0},to:{t:1},key:`pie-${s}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var r=t.t,i=n.map(function(e,t){var n=c&&c[t];if(n){var i=I_(n.cx,e.cx),a=I_(n.cy,e.cy),o=I_(n.size,e.size);return eq(eq({},e),{},{cx:i(r),cy:a(r),size:o(r)})}var s=I_(0,e.size);return eq(eq({},e),{},{size:s(r)})});return K.createElement(Av,null,e.renderSymbolsStatically(i))})}},{key:`renderSymbols`,value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return n&&t&&t.length&&(!r||!(0,JM.default)(r,t))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(t)}},{key:`renderErrorBar`,value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=e.children,a=lv(i,LM);return a?a.map(function(e,i){var a=e.props,o=a.direction,s=a.dataKey;return K.cloneElement(e,{key:`${o}-${s}-${t[i]}`,data:t,xAxis:n,yAxis:r,layout:o===`x`?`vertical`:`horizontal`,dataPointFormatter:function(e,t){return{x:e.cx,y:e.cy,value:o===`x`?+e.node.x:+e.node.y,errorVal:sN(e,t)}}})}):null}},{key:`renderLine`,value:function(){var e=this.props,t=e.points,n=e.line,r=e.lineType,i=e.lineJointType,a=Q(this.props,!1),o=Q(n,!1),s,c;if(r===`joint`)s=t.map(function(e){return{x:e.cx,y:e.cy}});else if(r===`fitting`){var l=R_(t),u=l.xmin,d=l.xmax,f=l.a,p=l.b,m=function(e){return f*e+p};s=[{x:u,y:m(u)},{x:d,y:m(d)}]}var h=eq(eq(eq({},a),{},{fill:`none`,stroke:a&&a.fill},o),{},{points:s});return c=K.isValidElement(n)?K.cloneElement(n,h):(0,Z_.default)(n)?n(h):K.createElement(MF,QK({},h,{type:i})),K.createElement(Av,{className:`recharts-scatter-line`,key:`recharts-scatter-line`},c)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,i=e.className,a=e.xAxis,o=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.id,p=e.isAnimationActive;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=d(`recharts-scatter`,i),g=a&&a.allowDataOverflow,_=o&&o.allowDataOverflow,v=g||_,y=(0,E_.default)(f)?this.id:f;return K.createElement(Av,{className:h,clipPath:v?`url(#clipPath-${y})`:null},g||_?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${y}`},K.createElement(`rect`,{x:g?s:s-l/2,y:_?c:c-u/2,width:g?l:l*2,height:_?u:u*2}))):null,r&&this.renderLine(),this.renderErrorBar(),K.createElement(Av,{key:`recharts-scatter-symbols`},this.renderSymbols()),(!p||m)&&rF.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points===t.curPoints?null:{curPoints:e.points}:{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}}}])}(K.PureComponent);dq(mq,`displayName`,`Scatter`),dq(mq,`defaultProps`,{xAxisId:0,yAxisId:0,zAxisId:0,legendType:`circle`,lineType:`joint`,lineJointType:`linear`,data:[],shape:`circle`,hide:!1,isAnimationActive:!KC.isSsr,animationBegin:0,animationDuration:400,animationEasing:`linear`}),dq(mq,`getComposedData`,function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,l=i.props.tooltipType,u=lv(i.props.children,jw),d=(0,E_.default)(t.dataKey)?i.props.dataKey:t.dataKey,f=(0,E_.default)(n.dataKey)?i.props.dataKey:n.dataKey,p=r&&r.dataKey,m=r?r.range:GK.defaultProps.range,h=m&&m[0],g=t.scale.bandwidth?t.scale.bandwidth():0,_=n.scale.bandwidth?n.scale.bandwidth():0;return eq({points:a.map(function(e,a){var c=sN(e,d),m=sN(e,f),v=!(0,E_.default)(p)&&sN(e,p)||`-`,y=[{name:(0,E_.default)(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||``,value:c,payload:e,dataKey:d,type:l},{name:(0,E_.default)(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||``,value:m,payload:e,dataKey:f,type:l}];v!==`-`&&y.push({name:r.name||r.dataKey,unit:r.unit||``,value:v,payload:e,dataKey:p,type:l});var b=MN({axis:t,ticks:o,bandSize:g,entry:e,index:a,dataKey:d}),x=MN({axis:n,ticks:s,bandSize:_,entry:e,index:a,dataKey:f}),S=v===`-`?h:r.scale(v),C=Math.sqrt(Math.max(S,0)/Math.PI);return eq(eq({},e),{},{cx:b,cy:x,x:b-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:S,node:{x:c,y:m,z:v},tooltipPayload:y,tooltipPosition:{x:b,y:x},payload:e},u&&u[a]&&u[a].props)})},c)});function hq(e){"@babel/helpers - typeof";return hq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hq(e)}function gq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Dq(r.key),r)}}function vq(e,t,n){return t&&_q(e.prototype,t),n&&_q(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yq(e,t,n){return t=Cq(t),bq(e,Sq()?Reflect.construct(t,n||[],Cq(e).constructor):t.apply(e,n))}function bq(e,t){if(t&&(hq(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return xq(e)}function xq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Sq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sq=function(){return!!e})()}function Cq(e){return Cq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cq(e)}function wq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Tq(e,t)}function Tq(e,t){return Tq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tq(e,t)}function Eq(e,t,n){return t=Dq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dq(e){var t=Oq(e,`string`);return hq(t)==`symbol`?t:t+``}function Oq(e,t){if(hq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kq(){return kq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kq.apply(this,arguments)}function Aq(e){var t=e.xAxisId,n=hU(),r=gU(),i=lU(t);return i==null?null:K.createElement(fG,kq({},i,{className:d(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return bN(e,!0)}}))}var jq=function(e){function t(){return gq(this,t),yq(this,t,arguments)}return wq(t,e),vq(t,[{key:`render`,value:function(){return K.createElement(Aq,this.props)}}])}(K.Component);Eq(jq,`displayName`,`XAxis`),Eq(jq,`defaultProps`,{allowDecimals:!0,hide:!1,orientation:`bottom`,width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:`category`,padding:{left:0,right:0},allowDataOverflow:!1,scale:`auto`,reversed:!1,allowDuplicatedCategory:!0});function Mq(e){"@babel/helpers - typeof";return Mq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mq(e)}function Nq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Pq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Wq(r.key),r)}}function Fq(e,t,n){return t&&Pq(e.prototype,t),n&&Pq(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Iq(e,t,n){return t=Bq(t),Lq(e,zq()?Reflect.construct(t,n||[],Bq(e).constructor):t.apply(e,n))}function Lq(e,t){if(t&&(Mq(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Rq(e)}function Rq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function zq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zq=function(){return!!e})()}function Bq(e){return Bq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bq(e)}function Vq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Hq(e,t)}function Hq(e,t){return Hq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hq(e,t)}function Uq(e,t,n){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wq(e){var t=Gq(e,`string`);return Mq(t)==`symbol`?t:t+``}function Gq(e,t){if(Mq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Kq(){return Kq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kq.apply(this,arguments)}var qq=function(e){var t=e.yAxisId,n=hU(),r=gU(),i=fU(t);return i==null?null:K.createElement(fG,Kq({},i,{className:d(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return bN(e,!0)}}))},Jq=function(e){function t(){return Nq(this,t),Iq(this,t,arguments)}return Vq(t,e),Fq(t,[{key:`render`,value:function(){return K.createElement(qq,this.props)}}])}(K.Component);Uq(Jq,`displayName`,`YAxis`),Uq(Jq,`defaultProps`,{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:`left`,width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:`number`,padding:{top:0,bottom:0},allowDataOverflow:!1,scale:`auto`,reversed:!1});function Yq(e){return $q(e)||Qq(e)||Zq(e)||Xq()}function Xq(){throw TypeError(`Invalid attempt to spread non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zq(e,t){if(e){if(typeof e==`string`)return eJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eJ(e,t)}}function Qq(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function $q(e){if(Array.isArray(e))return eJ(e)}function eJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var tJ=function(e,t,n,r,i){var a=lv(e,WU),o=lv(e,lW),s=[].concat(Yq(a),Yq(o)),c=lv(e,OW),l=`${r}Id`,u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[l]===n&&UV(t.props,`extendDomain`)&&Z(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),c.length){var f=`${u}1`,p=`${u}2`;d=c.reduce(function(e,t){if(t.props[l]===n&&UV(t.props,`extendDomain`)&&Z(t.props[f])&&Z(t.props[p])){var r=t.props[f],i=t.props[p];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e},d)}return i&&i.length&&(d=i.reduce(function(e,t){return Z(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},nJ=new(l(o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))())).default,rJ=`recharts.syncMouseEvents`;function iJ(e){"@babel/helpers - typeof";return iJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},iJ(e)}function aJ(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,lJ(r.key),r)}}function sJ(e,t,n){return t&&oJ(e.prototype,t),n&&oJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function cJ(e,t,n){return t=lJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lJ(e){var t=uJ(e,`string`);return iJ(t)==`symbol`?t:t+``}function uJ(e,t){if(iJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(iJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var dJ=function(){function e(){aJ(this,e),cJ(this,`activeIndex`,0),cJ(this,`coordinateList`,[]),cJ(this,`layout`,`horizontal`)}return sJ(e,[{key:`setDetails`,value:function(e){var t=e.coordinateList,n=t===void 0?null:t,r=e.container,i=r===void 0?null:r,a=e.layout,o=a===void 0?null:a,s=e.offset,c=s===void 0?null:s,l=e.mouseHandlerCallback,u=l===void 0?null:l;this.coordinateList=n??this.coordinateList??[],this.container=i??this.container,this.layout=o??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=u??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:`focus`,value:function(){this.spoofMouse()}},{key:`keyboardEvent`,value:function(e){if(this.coordinateList.length!==0)switch(e.key){case`ArrowRight`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case`ArrowLeft`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break;default:break}}},{key:`setIndex`,value:function(e){this.activeIndex=e}},{key:`spoofMouse`,value:function(){if(this.layout===`horizontal`&&this.coordinateList.length!==0){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=e.height,i=this.coordinateList[this.activeIndex].coordinate,a=window?.scrollX||0,o=window?.scrollY||0,s=t+i+a,c=n+this.offset.top+r/2+o;this.mouseHandlerCallback({pageX:s,pageY:c})}}}])}();function fJ(e,t,n){if(n===`number`&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&Z(r)&&Z(i))return!0}return!1}function pJ(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function mJ(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[iP(t,n,r,i),iP(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function hJ(e,t,n){var r,i,a,o;if(e===`horizontal`)r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e===`vertical`)i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e===`centric`){var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,d=t.angle,f=iP(s,c,l,d),p=iP(s,c,u,d);r=f.x,i=f.y,a=p.x,o=p.y}else return mJ(t);return[{x:r,y:i},{x:a,y:o}]}function gJ(e){"@babel/helpers - typeof";return gJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gJ(e)}function _J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_J(Object(n),!0).forEach(function(t){yJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yJ(e,t,n){return t=bJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bJ(e){var t=xJ(e,`string`);return gJ(t)==`symbol`?t:t+``}function xJ(e,t){if(gJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function SJ(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,a=e.activePayload,o=e.offset,s=e.activeTooltipIndex,c=e.tooltipAxisBandSize,l=e.layout,u=e.chartName,f=t.props.cursor??t.type.defaultProps?.cursor;if(!t||!f||!r||!i||u!==`ScatterChart`&&n!==`axis`)return null;var p,m=MF;if(u===`ScatterChart`)p=i,m=az;else if(u===`BarChart`)p=pJ(l,i,o,c),m=AR;else if(l===`radial`){var h=mJ(i),g=h.cx,_=h.cy,v=h.radius;p={cx:g,cy:_,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},m=vF}else p={points:hJ(l,i,o)},m=MF;var y=vJ(vJ(vJ(vJ({stroke:`#ccc`,pointerEvents:`none`},o),p),Q(f,!1)),{},{payload:a,payloadIndex:s,className:d(`recharts-tooltip-cursor`,f.className)});return(0,K.isValidElement)(f)?(0,K.cloneElement)(f,y):(0,K.createElement)(m,y)}var CJ=[`item`],wJ=[`children`,`className`,`width`,`height`,`style`,`compact`,`title`,`desc`];function TJ(e){"@babel/helpers - typeof";return TJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},TJ(e)}function EJ(){return EJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EJ.apply(this,arguments)}function DJ(e,t){return AJ(e)||kJ(e,t)||GJ(e,t)||OJ()}function OJ(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kJ(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function AJ(e){if(Array.isArray(e))return e}function jJ(e,t){if(e==null)return{};var n=MJ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NJ(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function PJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ZJ(r.key),r)}}function FJ(e,t,n){return t&&PJ(e.prototype,t),n&&PJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function IJ(e,t,n){return t=BJ(t),LJ(e,zJ()?Reflect.construct(t,n||[],BJ(e).constructor):t.apply(e,n))}function LJ(e,t){if(t&&(TJ(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return RJ(e)}function RJ(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function zJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zJ=function(){return!!e})()}function BJ(e){return BJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BJ(e)}function VJ(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&HJ(e,t)}function HJ(e,t){return HJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HJ(e,t)}function UJ(e){return qJ(e)||KJ(e)||GJ(e)||WJ()}function WJ(){throw TypeError(`Invalid attempt to spread non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GJ(e,t){if(e){if(typeof e==`string`)return JJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JJ(e,t)}}function KJ(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function qJ(e){if(Array.isArray(e))return JJ(e)}function JJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YJ(Object(n),!0).forEach(function(t){XJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XJ(e,t,n){return t=ZJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZJ(e){var t=QJ(e,`string`);return TJ(t)==`symbol`?t:t+``}function QJ(e,t){if(TJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(TJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $J={xAxis:[`bottom`,`top`],yAxis:[`left`,`right`]},eY={width:`100%`,height:`100%`},tY={x:0,y:0};function nY(e){return e}var rY=function(e,t){return t===`horizontal`?e.x:t===`vertical`?e.y:t===`centric`?e.angle:e.radius},iY=function(e,t,n,r){var i=t.find(function(e){return e&&e.index===n});if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.y};if(e===`vertical`)return{x:r.x,y:i.coordinate};if(e===`centric`){var a=i.coordinate,o=r.radius;return $($($({},r),iP(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return $($($({},r),iP(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return tY},aY=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,a=(n??[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(UJ(e),UJ(n)):e},[]);return a.length>0?a:e&&e.length&&Z(r)&&Z(i)?e.slice(r,i+1):[]};function oY(e){return e===`number`?[0,`auto`]:void 0}var sY=function(e,t,n,r){var i=e.graphicalItems,a=e.tooltipAxis,o=aY(t,e);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(i,s){var c=s.props.data??t;c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1));var l=a.dataKey&&!a.allowDuplicatedCategory?L_(c===void 0?o:c,a.dataKey,r):c&&c[n]||o[n];return l?[].concat(UJ(i),[UN(s,l)]):i},[])},cY=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},a=rY(i,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=lN(a,o,c,s);if(l>=0&&c){var u=c[l]&&c[l].value;return{activeTooltipIndex:l,activeLabel:u,activePayload:sY(e,t,l,u),activeCoordinate:iY(n,o,l,i)}}return null},lY=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=e.stackOffset,f=vN(l,i);return n.reduce(function(t,n){var p=n.type.defaultProps===void 0?n.props:$($({},n.type.defaultProps),n.props),m=p.type,h=p.dataKey,g=p.allowDataOverflow,_=p.allowDuplicatedCategory,v=p.scale,y=p.ticks,b=p.includeHidden,x=p[a];if(t[x])return t;var S=aY(e.data,{graphicalItems:r.filter(function(e){return(a in e.props?e.props[a]:e.type.defaultProps?.[a])===x}),dataStartIndex:s,dataEndIndex:c}),C=S.length,w,T,E;fJ(p.domain,g,m)&&(w=BN(p.domain,null,g),f&&(m===`number`||v!==`auto`)&&(E=cN(S,h,`category`)));var D=oY(m);if(!w||w.length===0){var O=p.domain??D;if(h){if(w=cN(S,h,m),m===`category`&&f){var k=F_(w);_&&k?(T=w,w=(0,bV.default)(0,C)):_||(w=HN(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(UJ(e),[t])},[]))}else if(m===`category`)w=_?w.filter(function(e){return e!==``&&!(0,E_.default)(e)}):HN(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0||t===``||(0,E_.default)(t)?e:[].concat(UJ(e),[t])},[]);else if(m===`number`){var A=gN(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===x&&(b||!n)}),h,i,l);A&&(w=A)}f&&(m===`number`||v!==`auto`)&&(E=cN(S,h,`category`))}else w=f?(0,bV.default)(0,C):o&&o[x]&&o[x].hasStack&&m===`number`?d===`expand`?[0,1]:LN(o[x].stackGroups,s,c):_N(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps.hide;return t===x&&(b||!n)}),m,l,!0);if(m===`number`)w=tJ(u,w,x,i,y),O&&(w=BN(O,w,g));else if(m===`category`&&O){var j=O;w.every(function(e){return j.indexOf(e)>=0})&&(w=j)}}return $($({},t),{},XJ({},x,$($({},p),{},{axisType:i,domain:w,categoricalDomain:E,duplicateDomain:T,originalDomain:p.domain??D,isCategorical:f,layout:l})))},{})},uY=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=aY(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),f=d.length,p=vN(l,i),m=-1;return n.reduce(function(e,t){var h=(t.type.defaultProps===void 0?t.props:$($({},t.type.defaultProps),t.props))[a],g=oY(`number`);if(!e[h]){m++;var _;return p?_=(0,bV.default)(0,f):o&&o[h]&&o[h].hasStack?(_=LN(o[h].stackGroups,s,c),_=tJ(u,_,h,i)):(_=BN(g,_N(d,n.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===h&&!n}),`number`,l),r.defaultProps.allowDataOverflow),_=tJ(u,_,h,i)),$($({},e),{},XJ({},h,$($({axisType:i},r.defaultProps),{},{hide:!0,orientation:(0,w_.default)($J,`${i}.${m%2}`,null),domain:_,originalDomain:g,isCategorical:p,layout:l})))}return e},{})},dY=function(e,t){var n=t.axisType,r=n===void 0?`xAxis`:n,i=t.AxisComp,a=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u=`${r}Id`,d=lv(l,i),f={};return d&&d.length?f=lY(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c}):a&&a.length&&(f=uY(e,{Axis:i,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c})),f},fY=function(e){var t=P_(e),n=bN(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,nC.default)(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:VN(t,n)}},pY=function(e){var t=e.children,n=e.defaultShowTooltip,r=uv(t,BV),i=0,a=0;return e.data&&e.data.length!==0&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},mY=function(e){return!e||!e.length?!1:e.some(function(e){var t=av(e&&e.type);return t&&t.indexOf(`Bar`)>=0})},hY=function(e){return e===`horizontal`?{numericAxisName:`yAxis`,cateAxisName:`xAxis`}:e===`vertical`?{numericAxisName:`xAxis`,cateAxisName:`yAxis`}:e===`centric`?{numericAxisName:`radiusAxis`,cateAxisName:`angleAxis`}:{numericAxisName:`angleAxis`,cateAxisName:`radiusAxis`}},gY=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,a=i===void 0?{}:i,o=e.yAxisMap,s=o===void 0?{}:o,c=n.width,l=n.height,u=n.children,d=n.margin||{},f=uv(u,BV),p=uv(u,PS),m=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return!n.mirror&&!n.hide?$($({},e),{},XJ({},r,e[r]+n.width)):e},{left:d.left||0,right:d.right||0}),h=$($({},Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return!n.mirror&&!n.hide?$($({},e),{},XJ({},r,(0,w_.default)(e,`${r}`)+n.height)):e},{top:d.top||0,bottom:d.bottom||0})),m),g=h.bottom;f&&(h.bottom+=f.props.height||BV.defaultProps.height),p&&t&&(h=pN(h,r,n,t));var _=c-h.left-h.right,v=l-h.top-h.bottom;return $($({brushBottom:g},h),{},{width:Math.max(_,0),height:Math.max(v,0)})},_Y=function(e,t){if(t===`xAxis`)return e[t].width;if(t===`yAxis`)return e[t].height},vY=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,i=r===void 0?`axis`:r,a=e.validateTooltipEventTypes,o=a===void 0?[`axis`]:a,s=e.axisComponents,c=e.legendContent,l=e.formatAxisMap,u=e.defaultProps,f=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,a=t.updateId,o=t.dataStartIndex,c=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,m=hY(u),h=m.numericAxisName,g=m.cateAxisName,_=mY(n),v=[];return n.forEach(function(n,m){var y=aY(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:c}),b=n.type.defaultProps===void 0?n.props:$($({},n.type.defaultProps),n.props),x=b.dataKey,S=b.maxBarSize,C=b[`${h}Id`],w=b[`${g}Id`],T=s.reduce(function(e,n){var r=t[`${n.axisType}Map`],i=b[`${n.axisType}Id`];!(r&&r[i]||n.axisType===`zAxis`)&&fM(!1);var a=r[i];return $($({},e),{},XJ(XJ({},n.axisType,a),`${n.axisType}Ticks`,bN(a)))},{}),E=T[g],D=T[`${g}Ticks`],O=r&&r[C]&&r[C].hasStack&&FN(n,r[C].stackGroups),k=av(n.type).indexOf(`Bar`)>=0,A=VN(E,D),j=[],M=_&&dN({barSize:l,stackGroups:r,totalSize:_Y(T,g)});if(k){var N=(0,E_.default)(S)?p:S,P=VN(E,D,!0)??N??0;j=fN({barGap:d,barCategoryGap:f,bandSize:P===A?A:P,sizeList:M[w],maxBarSize:N}),P!==A&&(j=j.map(function(e){return $($({},e),{},{position:$($({},e.position),{},{offset:e.position.offset-P/2})})}))}var F=n&&n.type&&n.type.getComposedData;F&&v.push({props:$($({},F($($({},T),{},{displayedData:y,props:e,dataKey:x,item:n,bandSize:A,barPosition:j,offset:i,stackedData:O,layout:u,dataStartIndex:o,dataEndIndex:c}))),{},XJ(XJ(XJ({key:n.key||`item-${m}`},h,T[h]),g,T[g]),`animationId`,a)),childIndex:bv(n,e.children),item:n})}),v},p=function(e,r){var i=e.props,a=e.dataStartIndex,o=e.dataEndIndex,c=e.updateId;if(!dv({props:i}))return null;var u=i.children,d=i.layout,p=i.stackOffset,m=i.data,h=i.reverseStackOrder,g=hY(d),_=g.numericAxisName,v=g.cateAxisName,y=lv(u,n),b=AN(m,y,`${_}Id`,`${v}Id`,p,h),x=s.reduce(function(e,t){var n=`${t.axisType}Map`;return $($({},e),{},XJ({},n,dY(i,$($({},t),{},{graphicalItems:y,stackGroups:t.axisType===_&&b,dataStartIndex:a,dataEndIndex:o}))))},{}),S=gY($($({},x),{},{props:i,graphicalItems:y}),r?.legendBBox);Object.keys(x).forEach(function(e){x[e]=l(i,x[e],S,e.replace(`Map`,``),t)});var C=x[`${v}Map`],w=fY(C);return $($({formattedGraphicalItems:f(i,$($({},x),{},{dataStartIndex:a,dataEndIndex:o,updateId:c,graphicalItems:y,stackGroups:b,offset:S})),graphicalItems:y,offset:S,stackGroups:b},w),x)},m=function(e){function n(e){var r;return NJ(this,n),r=IJ(this,n,[e]),XJ(r,`eventEmitterSymbol`,Symbol(`rechartsEventEmitter`)),XJ(r,`accessibilityManager`,new dJ),XJ(r,`handleLegendBBoxUpdate`,function(e){if(e){var t=r.state,n=t.dataStartIndex,i=t.dataEndIndex,a=t.updateId;r.setState($({legendBBox:e},p({props:r.props,dataStartIndex:n,dataEndIndex:i,updateId:a},$($({},r.state),{},{legendBBox:e}))))}}),XJ(r,`handleReceiveSyncEvent`,function(e,t,n){if(r.props.syncId===e){if(n===r.eventEmitterSymbol&&typeof r.props.syncMethod!=`function`)return;r.applySyncEvent(t)}}),XJ(r,`handleBrushChange`,function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var i=r.state.updateId;r.setState(function(){return $({dataStartIndex:t,dataEndIndex:n},p({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:i},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),XJ(r,`handleMouseEnter`,function(e){var t=r.getMouseInfo(e);if(t){var n=$($({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseEnter;(0,Z_.default)(i)&&i(n,e)}}),XJ(r,`triggeredAfterMouseMove`,function(e){var t=r.getMouseInfo(e),n=t?$($({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseMove;(0,Z_.default)(i)&&i(n,e)}),XJ(r,`handleItemMouseEnter`,function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),XJ(r,`handleItemMouseLeave`,function(){r.setState(function(){return{isTooltipActive:!1}})}),XJ(r,`handleMouseMove`,function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),XJ(r,`handleMouseLeave`,function(e){r.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;(0,Z_.default)(n)&&n(t,e)}),XJ(r,`handleOuterEvent`,function(e){var t=yv(e),n=(0,w_.default)(r.props,`${t}`);t&&(0,Z_.default)(n)&&n((/.*touch.*/i.test(t)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))??{},e)}),XJ(r,`handleClick`,function(e){var t=r.getMouseInfo(e);if(t){var n=$($({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onClick;(0,Z_.default)(i)&&i(n,e)}}),XJ(r,`handleMouseDown`,function(e){var t=r.props.onMouseDown;(0,Z_.default)(t)&&t(r.getMouseInfo(e),e)}),XJ(r,`handleMouseUp`,function(e){var t=r.props.onMouseUp;(0,Z_.default)(t)&&t(r.getMouseInfo(e),e)}),XJ(r,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),XJ(r,`handleTouchStart`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),XJ(r,`handleTouchEnd`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),XJ(r,`handleDoubleClick`,function(e){var t=r.props.onDoubleClick;(0,Z_.default)(t)&&t(r.getMouseInfo(e),e)}),XJ(r,`handleContextMenu`,function(e){var t=r.props.onContextMenu;(0,Z_.default)(t)&&t(r.getMouseInfo(e),e)}),XJ(r,`triggerSyncEvent`,function(e){r.props.syncId!==void 0&&nJ.emit(rJ,r.props.syncId,e,r.eventEmitterSymbol)}),XJ(r,`applySyncEvent`,function(e){var t=r.props,n=t.layout,i=t.syncMethod,a=r.state.updateId,o=e.dataStartIndex,s=e.dataEndIndex;if(e.dataStartIndex!==void 0||e.dataEndIndex!==void 0)r.setState($({dataStartIndex:o,dataEndIndex:s},p({props:r.props,dataStartIndex:o,dataEndIndex:s,updateId:a},r.state)));else if(e.activeTooltipIndex!==void 0){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,d=r.state,f=d.offset,m=d.tooltipTicks;if(!f)return;if(typeof i==`function`)u=i(m,e);else if(i===`value`){u=-1;for(var h=0;h<m.length;h++)if(m[h].value===e.activeLabel){u=h;break}}var g=$($({},f),{},{x:f.left,y:f.top}),_=Math.min(c,g.x+g.width),v=Math.min(l,g.y+g.height),y=m[u]&&m[u].value,b=sY(r.state,r.props.data,u),x=m[u]?{x:n===`horizontal`?m[u].coordinate:_,y:n===`horizontal`?v:m[u].coordinate}:tY;r.setState($($({},e),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else r.setState(e)}),XJ(r,`renderCursor`,function(e){var n=r.state,i=n.isTooltipActive,a=n.activeCoordinate,o=n.activePayload,s=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,u=r.getTooltipEventType(),d=e.props.active??i,f=r.props.layout,p=e.key||`_recharts-cursor`;return K.createElement(SJ,{key:p,activeCoordinate:a,activePayload:o,activeTooltipIndex:c,chartName:t,element:e,isActive:d,layout:f,offset:s,tooltipAxisBandSize:l,tooltipEventType:u})}),XJ(r,`renderPolarAxis`,function(e,t,n){var i=(0,w_.default)(e,`type.axisType`),a=(0,w_.default)(r.state,`${i}Map`),o=e.type.defaultProps,s=o===void 0?e.props:$($({},o),e.props),c=a&&a[s[`${i}Id`]];return(0,K.cloneElement)(e,$($({},c),{},{className:d(i,c.className),key:e.key||`${t}-${n}`,ticks:bN(c,!0)}))}),XJ(r,`renderPolarGrid`,function(e){var t=e.props,n=t.radialLines,i=t.polarAngles,a=t.polarRadius,o=r.state,s=o.radiusAxisMap,c=o.angleAxisMap,l=P_(s),u=P_(c),d=u.cx,f=u.cy,p=u.innerRadius,m=u.outerRadius;return(0,K.cloneElement)(e,{polarAngles:Array.isArray(i)?i:bN(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:bN(l,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:p,outerRadius:m,key:e.key||`polar-grid`,radialLines:n})}),XJ(r,`renderLegend`,function(){var e=r.state.formattedGraphicalItems,t=r.props,n=t.children,i=t.width,a=t.height,o=r.props.margin||{},s=WM({children:n,formattedGraphicalItems:e,legendWidth:i-(o.left||0)-(o.right||0),legendContent:c});if(!s)return null;var l=s.item;return(0,K.cloneElement)(l,$($({},jJ(s,CJ)),{},{chartWidth:i,chartHeight:a,margin:o,onBBoxUpdate:r.handleLegendBBoxUpdate}))}),XJ(r,`renderTooltip`,function(){var e=r.props,t=e.children,n=e.accessibilityLayer,i=uv(t,dw);if(!i)return null;var a=r.state,o=a.isTooltipActive,s=a.activeCoordinate,c=a.activePayload,l=a.activeLabel,u=a.offset,d=i.props.active??o;return(0,K.cloneElement)(i,{viewBox:$($({},u),{},{x:u.left,y:u.top}),active:d,label:l,payload:d?c:[],coordinate:s,accessibilityLayer:n})}),XJ(r,`renderBrush`,function(e){var t=r.props,n=t.margin,i=t.data,a=r.state,o=a.offset,s=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,K.cloneElement)(e,{key:e.key||`_recharts-brush`,onChange:SN(r.handleBrushChange,e.props.onChange),data:i,x:Z(e.props.x)?e.props.x:o.left,y:Z(e.props.y)?e.props.y:o.top+o.height+o.brushBottom-(n.bottom||0),width:Z(e.props.width)?e.props.width:o.width,startIndex:s,endIndex:c,updateId:`brush-${l}`})}),XJ(r,`renderReferenceElement`,function(e,t,n){if(!e)return null;var i=r.clipPathId,a=r.state,o=a.xAxisMap,s=a.yAxisMap,c=a.offset,l=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=d===void 0?l.xAxisId:d,p=u.yAxisId,m=p===void 0?l.yAxisId:p;return(0,K.cloneElement)(e,{key:e.key||`${t}-${n}`,xAxis:o[f],yAxis:s[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})}),XJ(r,`renderActivePoints`,function(e){var t=e.item,r=e.activePoint,i=e.basePoint,a=e.childIndex,o=e.isRange,s=[],c=t.props.key,l=t.item.type.defaultProps===void 0?t.item.props:$($({},t.item.type.defaultProps),t.item.props),u=l.activeDot,d=l.dataKey,f=$($({index:a,dataKey:d,cx:r.x,cy:r.y,r:4,fill:uN(t.item),strokeWidth:2,stroke:`#fff`,payload:r.payload,value:r.value},Q(u,!1)),J_(u));return s.push(n.renderActiveDot(u,f,`${c}-activePoint-${a}`)),i?s.push(n.renderActiveDot(u,$($({},f),{},{cx:i.x,cy:i.y}),`${c}-basePoint-${a}`)):o&&s.push(null),s}),XJ(r,`renderGraphicChild`,function(e,t,n){var i=r.filterFormatItem(e,t,n);if(!i)return null;var a=r.getTooltipEventType(),o=r.state,s=o.isTooltipActive,c=o.tooltipAxis,l=o.activeTooltipIndex,u=o.activeLabel,d=r.props.children,f=uv(d,dw),p=i.props,m=p.points,h=p.isRange,g=p.baseLine,_=i.item.type.defaultProps===void 0?i.item.props:$($({},i.item.type.defaultProps),i.item.props),v=_.activeDot,y=_.hide,b=_.activeBar,x=_.activeShape,S=!!(!y&&s&&f&&(v||b||x)),C={};a!==`axis`&&f&&f.props.trigger===`click`?C={onClick:SN(r.handleItemMouseEnter,e.props.onClick)}:a!==`axis`&&(C={onMouseLeave:SN(r.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:SN(r.handleItemMouseEnter,e.props.onMouseEnter)});var w=(0,K.cloneElement)(e,$($({},i.props),C));function T(e){return typeof c.dataKey==`function`?c.dataKey(e.payload):null}if(S)if(l>=0){var E,D;if(c.dataKey&&!c.allowDuplicatedCategory){var O=typeof c.dataKey==`function`?T:`payload.${c.dataKey.toString()}`;E=L_(m,O,u),D=h&&g&&L_(g,O,u)}else E=m?.[l],D=h&&g&&g[l];if(x||b){var k=e.props.activeIndex===void 0?l:e.props.activeIndex;return[(0,K.cloneElement)(e,$($($({},i.props),C),{},{activeIndex:k})),null,null]}if(!(0,E_.default)(E))return[w].concat(UJ(r.renderActivePoints({item:i,activePoint:E,basePoint:D,childIndex:l,isRange:h})))}else{var A=(r.getItemByXY(r.state.activeCoordinate)??{graphicalItem:w}).graphicalItem,j=A.item,M=j===void 0?e:j,N=A.childIndex;return[(0,K.cloneElement)(M,$($($({},i.props),C),{},{activeIndex:N})),null,null]}return h?[w,null,null]:[w,null]}),XJ(r,`renderCustomized`,function(e,t,n){return(0,K.cloneElement)(e,$($({key:`recharts-customized-${n}`},r.props),r.state))}),XJ(r,`renderMap`,{CartesianGrid:{handler:nY,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:nY},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:nY},YAxis:{handler:nY},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId=`${e.id??M_(`recharts`)}-clip`,r.throttleTriggeredAfterMouseMove=(0,_w.default)(r.triggeredAfterMouseMove,e.throttleDelay??1e3/60),r.state={},r}return VJ(n,e),FJ(n,[{key:`componentDidMount`,value:function(){this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:this.props.margin.left??0,top:this.props.margin.top??0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:`displayDefaultTooltip`,value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,i=e.layout,a=uv(t,dw);if(a){var o=a.props.defaultIndex;if(!(typeof o!=`number`||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,c=sY(this.state,n,o,s),l=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d=i===`horizontal`?{x:l,y:u}:{y:l,x:u},f=this.state.formattedGraphicalItems.find(function(e){return e.item.type.name===`Scatter`});f&&(d=$($({},d),f.props.points[o].tooltipPosition),c=f.props.points[o].tooltipPayload);var p={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(o)}}}},{key:`getSnapshotBeforeUpdate`,value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:this.props.margin.left??0,top:this.props.margin.top??0}}),null):null}},{key:`componentDidUpdate`,value:function(e){gv([uv(e.children,dw)],[uv(this.props.children,dw)])||this.displayDefaultTooltip()}},{key:`componentWillUnmount`,value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:`getTooltipEventType`,value:function(){var e=uv(this.props.children,dw);if(e&&typeof e.props.shared==`boolean`){var t=e.props.shared?`axis`:`item`;return o.indexOf(t)>=0?t:i}return i}},{key:`getMouseInfo`,value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=Ww(n),i={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,o=this.inRange(i.chartX,i.chartY,a);if(!o)return null;var s=this.state,c=s.xAxisMap,l=s.yAxisMap,u=this.getTooltipEventType(),d=cY(this.state,this.props.data,this.props.layout,o);if(u!==`axis`&&c&&l){var f=P_(c).scale,p=P_(l).scale,m=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return $($({},i),{},{xValue:m,yValue:h},d)}return d?$($({},i),d):null}},{key:`inRange`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=this.props.layout,i=e/n,a=t/n;if(r===`horizontal`||r===`vertical`){var o=this.state.offset;return i>=o.left&&i<=o.left+o.width&&a>=o.top&&a<=o.top+o.height?{x:i,y:a}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=P_(c);return dP({x:i,y:a},u)}return null}},{key:`parseEventsOfWrapper`,value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=uv(e,dw),r={};return n&&t===`axis`&&(r=n.props.trigger===`click`?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),$($({},J_(this.props,this.handleOuterEvent)),r)}},{key:`addListener`,value:function(){nJ.on(rJ,this.handleReceiveSyncEvent)}},{key:`removeListener`,value:function(){nJ.removeListener(rJ,this.handleReceiveSyncEvent)}},{key:`filterFormatItem`,value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,a=r.length;i<a;i++){var o=r[i];if(o.item===e||o.props.key===e.key||t===av(o.item.type)&&n===o.childIndex)return o}return null}},{key:`renderClipPath`,value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return K.createElement(`defs`,null,K.createElement(`clipPath`,{id:e},K.createElement(`rect`,{x:n,y:r,height:i,width:a})))}},{key:`getXScales`,value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=DJ(t,2),r=n[0],i=n[1];return $($({},e),{},XJ({},r,i.scale))},{}):null}},{key:`getYScales`,value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=DJ(t,2),r=n[0],i=n[1];return $($({},e),{},XJ({},r,i.scale))},{}):null}},{key:`getXScaleByAxisId`,value:function(e){var t;return(t=this.state.xAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getYScaleByAxisId`,value:function(e){var t;return(t=this.state.yAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getItemByXY`,value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var i=0,a=n.length;i<a;i++){var o=n[i],s=o.props,c=o.item,l=c.type.defaultProps===void 0?c.props:$($({},c.type.defaultProps),c.props),u=av(c.type);if(u===`Bar`){var d=(s.data||[]).find(function(t){return OR(e,t)});if(d)return{graphicalItem:o,payload:d}}else if(u===`RadialBar`){var f=(s.data||[]).find(function(t){return dP(e,t)});if(f)return{graphicalItem:o,payload:f}}else if(NB(o,r)||PB(o,r)||FB(o,r)){var p=HB({graphicalItem:o,activeTooltipItem:r,itemData:l.data}),m=l.activeIndex===void 0?p:l.activeIndex;return{graphicalItem:$($({},o),{},{childIndex:m}),payload:FB(o,r)?l.data[p]:o.props.data[p]}}}return null}},{key:`render`,value:function(){var e=this;if(!dv(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,o=t.style,s=t.compact,c=t.title,l=t.desc,u=Q(jJ(t,wJ),!1);if(s)return K.createElement(sU,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(Tv,EJ({},u,{width:i,height:a,title:c,desc:l}),this.renderClipPath(),vv(n,this.renderMap)));this.props.accessibilityLayer&&(u.tabIndex=this.props.tabIndex??0,u.role=this.props.role??`application`,u.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},u.onFocus=function(){e.accessibilityManager.focus()});var f=this.parseEventsOfWrapper();return K.createElement(sU,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(`div`,EJ({className:d(`recharts-wrapper`,r),style:$({position:`relative`,cursor:`default`,width:i,height:a},o)},f,{ref:function(t){e.container=t}}),K.createElement(Tv,EJ({},u,{width:i,height:a,title:c,desc:l,style:eY}),this.renderClipPath(),vv(n,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(K.Component);XJ(m,`displayName`,t),XJ(m,`defaultProps`,$({layout:`horizontal`,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`},u)),XJ(m,`getDerivedStateFromProps`,function(e,t){var n=e.dataKey,r=e.data,i=e.children,a=e.width,o=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(t.updateId===void 0){var f=pY(e);return $($($({},f),{},{updateId:0},p($($({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!B_(l,t.prevMargin)){var m=pY(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=$($({},cY(t,r,s)),{},{updateId:t.updateId+1}),_=$($($({},m),h),g);return $($($({},_),p($({props:e},_),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(!gv(i,t.prevChildren)){var v=uv(i,BV),y=v?v.props?.startIndex??u:u,b=v?v.props?.endIndex??d:d,x=y!==u||b!==d,S=!(0,E_.default)(r)&&!x?t.updateId:t.updateId+1;return $($({updateId:S},p($($({props:e},t),{},{updateId:S,dataStartIndex:y,dataEndIndex:b}),t)),{},{prevChildren:i,dataStartIndex:y,dataEndIndex:b})}return null}),XJ(m,`renderActiveDot`,function(e,t,n){var r=(0,K.isValidElement)(e)?(0,K.cloneElement)(e,t):(0,Z_.default)(e)?e(t):K.createElement(qR,t);return K.createElement(Av,{className:`recharts-active-dot`,key:n},r)});var h=(0,K.forwardRef)(function(e,t){return K.createElement(m,EJ({},e,{ref:t}))});return h.displayName=m.displayName,h},yY=vY({chartName:`BarChart`,GraphicalChild:kH,defaultTooltipEventType:`axis`,validateTooltipEventTypes:[`axis`,`item`],axisComponents:[{axisType:`xAxis`,AxisComp:jq},{axisType:`yAxis`,AxisComp:Jq}],formatAxisMap:VH}),bY=vY({chartName:`PieChart`,GraphicalChild:sV,validateTooltipEventTypes:[`item`],defaultTooltipEventType:`item`,legendContent:`children`,axisComponents:[{axisType:`angleAxis`,AxisComp:Zz},{axisType:`radiusAxis`,AxisComp:jz}],formatAxisMap:oP,defaultProps:{layout:`centric`,startAngle:0,endAngle:360,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`}}),xY=vY({chartName:`ComposedChart`,GraphicalChild:[sK,AK,kH,mq],axisComponents:[{axisType:`xAxis`,AxisComp:jq},{axisType:`yAxis`,AxisComp:Jq},{axisType:`zAxis`,AxisComp:GK}],formatAxisMap:VH}),SY={light:``,dark:`.dark`},CY=K.createContext(null);function wY(){let e=K.useContext(CY);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function TY({id:e,className:t,children:n,config:r,...i}){let a=K.useId(),o=`chart-${e||a.replace(/:/g,``)}`;return(0,J.jsx)(CY.Provider,{value:{config:r},children:(0,J.jsxs)(`div`,{"data-slot":`chart`,"data-chart":o,className:G(`flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,t),...i,children:[(0,J.jsx)(EY,{id:o,config:r}),(0,J.jsx)(Aw,{children:n})]})})}var EY=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme||e.color);return n.length?(0,J.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(SY).map(([t,r])=>`
97
+ A ${p},${p},0,0,${c},${e},${t+r-o*p} Z`}else l=`M ${e},${t} h ${n} v ${r} h ${-n} Z`;return l},AR=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,a=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var c=Math.min(i,i+o),l=Math.max(i,i+o),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=c&&n<=l&&r>=u&&r<=d}return!1},jR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},MR=function(e){var t=TR(TR({},jR),e),n=(0,K.useRef)(),r=vR((0,K.useState)(-1),2),i=r[0],a=r[1];(0,K.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.width,l=t.height,u=t.radius,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isAnimationActive,_=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||c===0||l===0)return null;var v=d(`recharts-rectangle`,f);return _?K.createElement(hR,{canBegin:i>0,from:{width:c,height:l,x:o,y:s},to:{width:c,height:l,x:o,y:s},duration:m,animationEasing:p,isActive:_},function(e){var r=e.width,a=e.height,o=e.x,s=e.y;return K.createElement(hR,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,isActive:g,easing:p},K.createElement(`path`,_R({},Q(t,!0),{className:v,d:kR(o,s,r,a,u),ref:n})))}):K.createElement(`path`,_R({},Q(t,!0),{className:v,d:kR(o,s,c,l,u)}))},NR=[`points`,`className`,`baseLinePoints`,`connectNulls`];function PR(){return PR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PR.apply(this,arguments)}function FR(e,t){if(e==null)return{};var n=IR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LR(e){return VR(e)||BR(e)||zR(e)||RR()}function RR(){throw TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zR(e,t){if(e){if(typeof e==`string`)return HR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HR(e,t)}}function BR(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function VR(e){if(Array.isArray(e))return HR(e)}function HR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var UR=function(e){return e&&e.x===+e.x&&e.y===+e.y},WR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(e){UR(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),UR(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},GR=function(e,t){var n=WR(e);t&&(n=[n.reduce(function(e,t){return[].concat(LR(e),LR(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return`${e}${n===0?`M`:`L`}${t.x},${t.y}`},``)}).join(``);return n.length===1?`${r}Z`:r},KR=function(e,t,n){var r=GR(e,n);return`${r.slice(-1)===`Z`?r.slice(0,-1):r}L${GR(t.reverse(),n).slice(1)}`},qR=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=FR(e,NR);if(!t||!t.length)return null;var o=d(`recharts-polygon`,n);if(r&&r.length){var s=a.stroke&&a.stroke!==`none`,c=KR(t,r,i);return K.createElement(`g`,{className:o},K.createElement(`path`,PR({},Q(a,!0),{fill:c.slice(-1)===`Z`?a.fill:`none`,stroke:`none`,d:c})),s?K.createElement(`path`,PR({},Q(a,!0),{fill:`none`,d:GR(t,i)})):null,s?K.createElement(`path`,PR({},Q(a,!0),{fill:`none`,d:GR(r,i)})):null)}var l=GR(t,i);return K.createElement(`path`,PR({},Q(a,!0),{fill:l.slice(-1)===`Z`?a.fill:`none`,className:o,d:l}))};function JR(){return JR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JR.apply(this,arguments)}var YR=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,a=d(`recharts-dot`,i);return t===+t&&n===+n&&r===+r?K.createElement(`circle`,JR({},Q(e,!1),X_(e),{className:a,cx:t,cy:n,r})):null};function XR(e){"@babel/helpers - typeof";return XR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XR(e)}var ZR=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function QR(){return QR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QR.apply(this,arguments)}function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$R(Object(n),!0).forEach(function(t){tz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tz(e,t,n){return t=nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e){var t=rz(e,`string`);return XR(t)==`symbol`?t:t+``}function rz(e,t){if(XR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(XR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iz(e,t){if(e==null)return{};var n=az(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function az(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var oz=function(e,t,n,r,i,a){return`M${e},${i}v${r}M${a},${t}h${n}`},sz=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,o=a===void 0?0:a,s=e.left,c=s===void 0?0:s,l=e.width,u=l===void 0?0:l,f=e.height,p=f===void 0?0:f,m=e.className,h=iz(e,ZR),g=ez({x:n,y:i,top:o,left:c,width:u,height:p},h);return!Z(n)||!Z(i)||!Z(u)||!Z(p)||!Z(o)||!Z(c)?null:K.createElement(`path`,QR({},Q(g,!0),{className:d(`recharts-cross`,m),d:oz(n,i,u,p,o,c)}))},cz=o(((e,t)=>{var n=vj(),r=yj(),i=nS();function a(e,t){return e&&e.length?n(e,i(t,2),r):void 0}t.exports=a})),lz=o(((e,t)=>{var n=vj(),r=nS(),i=xj();function a(e,t){return e&&e.length?n(e,r(t,2),i):void 0}t.exports=a})),uz=l(cz()),dz=l(lz()),fz=[`cx`,`cy`,`angle`,`ticks`,`axisLine`],pz=[`ticks`,`tick`,`angle`,`tickFormatter`,`stroke`];function mz(e){"@babel/helpers - typeof";return mz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mz(e)}function hz(){return hz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hz.apply(this,arguments)}function gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gz(Object(n),!0).forEach(function(t){Az(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vz(e,t){if(e==null)return{};var n=yz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yz(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,jz(r.key),r)}}function Sz(e,t,n){return t&&xz(e.prototype,t),n&&xz(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Cz(e,t,n){return t=Dz(t),wz(e,Ez()?Reflect.construct(t,n||[],Dz(e).constructor):t.apply(e,n))}function wz(e,t){if(t&&(mz(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Tz(e)}function Tz(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ez(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ez=function(){return!!e})()}function Dz(e){return Dz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dz(e)}function Oz(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&kz(e,t)}function kz(e,t){return kz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kz(e,t)}function Az(e,t,n){return t=jz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jz(e){var t=Mz(e,`string`);return mz(t)==`symbol`?t:t+``}function Mz(e,t){if(mz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Nz=function(e){function t(){return bz(this,t),Cz(this,t,arguments)}return Oz(t,e),Sz(t,[{key:`getTickValueCoord`,value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,a=n.cy;return oP(i,a,t,r)}},{key:`getTickTextAnchor`,value:function(){var e=this.props.orientation,t;switch(e){case`left`:t=`end`;break;case`right`:t=`start`;break;default:t=`middle`;break}return t}},{key:`getViewBox`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=(0,uz.default)(i,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:(0,dz.default)(i,function(e){return e.coordinate||0}).coordinate||0,outerRadius:a.coordinate||0}}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,o=vz(e,fz),s=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=oP(t,n,s[0],r),l=oP(t,n,s[1],r),u=_z(_z(_z({},Q(o,!1)),{},{fill:`none`},Q(a,!1)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return K.createElement(`line`,hz({className:`recharts-polar-radius-axis-line`},u))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,o=n.tickFormatter,s=n.stroke,c=vz(n,pz),l=this.getTickTextAnchor(),u=Q(c,!1),f=Q(i,!1),p=r.map(function(n,r){var c=e.getTickValueCoord(n),p=_z(_z(_z(_z({textAnchor:l,transform:`rotate(${90-a}, ${c.x}, ${c.y})`},u),{},{stroke:`none`,fill:s},f),{},{index:r},c),{},{payload:n});return K.createElement(Mv,hz({className:d(`recharts-polar-radius-axis-tick`,mP(i)),key:`tick-${n.coordinate}`},Q_(e.props,n,r)),t.renderTickItem(i,p,o?o(n.value,r):n.value))});return K.createElement(Mv,{className:`recharts-polar-radius-axis-ticks`},p)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return!t||!t.length?null:K.createElement(Mv,{className:d(`recharts-polar-radius-axis`,this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),LP.renderCallByParent(this.props,this.getViewBox()))}}],[{key:`renderTickItem`,value:function(e,t,n){return K.isValidElement(e)?K.cloneElement(e,t):(0,$_.default)(e)?e(t):K.createElement(LT,hz({},t,{className:`recharts-polar-radius-axis-tick-value`}),n)}}])}(K.PureComponent);Az(Nz,`displayName`,`PolarRadiusAxis`),Az(Nz,`axisType`,`radiusAxis`),Az(Nz,`defaultProps`,{type:`number`,radiusAxisId:0,cx:0,cy:0,angle:0,orientation:`right`,stroke:`#ccc`,axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:`auto`,allowDuplicatedCategory:!0});function Pz(e){"@babel/helpers - typeof";return Pz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pz(e)}function Fz(){return Fz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fz.apply(this,arguments)}function Iz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Iz(Object(n),!0).forEach(function(t){Jz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rz(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function zz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Yz(r.key),r)}}function Bz(e,t,n){return t&&zz(e.prototype,t),n&&zz(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Vz(e,t,n){return t=Gz(t),Hz(e,Wz()?Reflect.construct(t,n||[],Gz(e).constructor):t.apply(e,n))}function Hz(e,t){if(t&&(Pz(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Uz(e)}function Uz(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wz=function(){return!!e})()}function Gz(e){return Gz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gz(e)}function Kz(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&qz(e,t)}function qz(e,t){return qz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qz(e,t)}function Jz(e,t,n){return t=Yz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yz(e){var t=Xz(e,`string`);return Pz(t)==`symbol`?t:t+``}function Xz(e,t){if(Pz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Zz=Math.PI/180,Qz=1e-5,$z=function(e){function t(){return Rz(this,t),Vz(this,t,arguments)}return Kz(t,e),Bz(t,[{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,a=t.orientation,o=t.tickSize||8,s=oP(n,r,i,e.coordinate),c=oP(n,r,i+(a===`inner`?-1:1)*o,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:`getTickTextAnchor`,value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*Zz);return n>Qz?t===`outer`?`start`:`end`:n<-Qz?t===`outer`?`end`:`start`:`middle`}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,o=Lz(Lz({},Q(this.props,!1)),{},{fill:`none`},Q(i,!1));if(a===`circle`)return K.createElement(YR,Fz({className:`recharts-polar-angle-axis-line`},o,{cx:t,cy:n,r}));var s=this.props.ticks.map(function(e){return oP(t,n,r,e.coordinate)});return K.createElement(qR,Fz({className:`recharts-polar-angle-axis-line`},o,{points:s}))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,o=n.tickFormatter,s=n.stroke,c=Q(this.props,!1),l=Q(i,!1),u=Lz(Lz({},c),{},{fill:`none`},Q(a,!1)),f=r.map(function(n,r){var f=e.getTickLineCoord(n),p=Lz(Lz(Lz({textAnchor:e.getTickTextAnchor(n)},c),{},{stroke:`none`,fill:s},l),{},{index:r,payload:n,x:f.x2,y:f.y2});return K.createElement(Mv,Fz({className:d(`recharts-polar-angle-axis-tick`,mP(i)),key:`tick-${n.coordinate}`},Q_(e.props,n,r)),a&&K.createElement(`line`,Fz({className:`recharts-polar-angle-axis-tick-line`},u,f)),i&&t.renderTickItem(i,p,o?o(n.value,r):n.value))});return K.createElement(Mv,{className:`recharts-polar-angle-axis-ticks`},f)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:K.createElement(Mv,{className:d(`recharts-polar-angle-axis`,this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],[{key:`renderTickItem`,value:function(e,t,n){return K.isValidElement(e)?K.cloneElement(e,t):(0,$_.default)(e)?e(t):K.createElement(LT,Fz({},t,{className:`recharts-polar-angle-axis-tick-value`}),n)}}])}(K.PureComponent);Jz($z,`displayName`,`PolarAngleAxis`),Jz($z,`axisType`,`angleAxis`),Jz($z,`defaultProps`,{type:`category`,angleAxisId:0,scale:`auto`,cx:0,cy:0,orientation:`outer`,axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var eB=o(((e,t)=>{t.exports=kx()(Object.getPrototypeOf,Object)})),tB=o(((e,t)=>{var n=Eg(),r=eB(),i=Dg(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),nB=o(((e,t)=>{var n=Eg(),r=Dg(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a}));function rB(e){"@babel/helpers - typeof";return rB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rB(e)}function iB(){return iB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iB.apply(this,arguments)}function aB(e,t){return uB(e)||lB(e,t)||sB(e,t)||oB()}function oB(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
99
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sB(e,t){if(e){if(typeof e==`string`)return cB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cB(e,t)}}function cB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lB(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uB(e){if(Array.isArray(e))return e}function dB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dB(Object(n),!0).forEach(function(t){pB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pB(e,t,n){return t=mB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mB(e){var t=hB(e,`string`);return rB(t)==`symbol`?t:t+``}function hB(e,t){if(rB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gB=function(e,t,n,r,i){var a=n-r,o=`M ${e},${t}`;return o+=`L ${e+n},${t}`,o+=`L ${e+n-a/2},${t+i}`,o+=`L ${e+n-a/2-r},${t+i}`,o+=`L ${e},${t} Z`,o},_B={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},vB=function(e){var t=fB(fB({},_B),e),n=(0,K.useRef)(),r=aB((0,K.useState)(-1),2),i=r[0],a=r[1];(0,K.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.upperWidth,l=t.lowerWidth,u=t.height,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isUpdateAnimationActive;if(o!==+o||s!==+s||c!==+c||l!==+l||u!==+u||c===0&&l===0||u===0)return null;var _=d(`recharts-trapezoid`,f);return g?K.createElement(hR,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:u,x:o,y:s},to:{upperWidth:c,lowerWidth:l,height:u,x:o,y:s},duration:m,animationEasing:p,isActive:g},function(e){var r=e.upperWidth,a=e.lowerWidth,o=e.height,s=e.x,c=e.y;return K.createElement(hR,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,easing:p},K.createElement(`path`,iB({},Q(t,!0),{className:_,d:gB(s,c,r,a,o),ref:n})))}):K.createElement(`g`,null,K.createElement(`path`,iB({},Q(t,!0),{className:_,d:gB(o,s,c,l,u)})))},yB=l(tB()),bB=l(nB()),xB=[`option`,`shapeType`,`propTransformer`,`activeClassName`,`isActive`];function SB(e){"@babel/helpers - typeof";return SB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},SB(e)}function CB(e,t){if(e==null)return{};var n=wB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wB(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TB(Object(n),!0).forEach(function(t){DB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DB(e,t,n){return t=OB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=kB(e,`string`);return SB(t)==`symbol`?t:t+``}function kB(e,t){if(SB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(SB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AB(e,t){return EB(EB({},t),e)}function jB(e,t){return e===`symbols`}function MB(e){var t=e.shapeType,n=e.elementProps;switch(t){case`rectangle`:return K.createElement(MR,n);case`trapezoid`:return K.createElement(vB,n);case`sector`:return K.createElement(bF,n);case`symbols`:if(jB(t,n))return K.createElement(kb,n);break;default:return null}}function NB(e){return(0,K.isValidElement)(e)?e.props:e}function PB(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?AB:r,a=e.activeClassName,o=a===void 0?`recharts-active-shape`:a,s=e.isActive,c=CB(e,xB),l;if((0,K.isValidElement)(t))l=(0,K.cloneElement)(t,EB(EB({},c),NB(t)));else if((0,$_.default)(t))l=t(c);else if((0,yB.default)(t)&&!(0,bB.default)(t)){var u=i(t,c);l=K.createElement(MB,{shapeType:n,elementProps:u})}else{var d=c;l=K.createElement(MB,{shapeType:n,elementProps:d})}return s?K.createElement(Mv,{className:o},l):l}function FB(e,t){return t!=null&&`trapezoids`in e.props}function IB(e,t){return t!=null&&`sectors`in e.props}function LB(e,t){return t!=null&&`points`in e.props}function RB(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)==null?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)==null?void 0:r.y)||e.y===t.y;return i&&a}function zB(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function BB(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function VB(e,t){var n;return FB(e,t)?n=RB:IB(e,t)?n=zB:LB(e,t)&&(n=BB),n}function HB(e,t){var n;return FB(e,t)?n=`trapezoids`:IB(e,t)?n=`sectors`:LB(e,t)&&(n=`points`),n}function UB(e,t){if(FB(e,t)){var n;return(n=t.tooltipPayload)==null||(n=n[0])==null||(n=n.payload)==null?void 0:n.payload}if(IB(e,t)){var r;return(r=t.tooltipPayload)==null||(r=r[0])==null||(r=r.payload)==null?void 0:r.payload}return LB(e,t)?t.payload:{}}function WB(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=HB(n,t),a=UB(n,t),o=r.filter(function(e,r){var o=(0,XM.default)(a,e),s=n.props[i].filter(function(e){return VB(n,t)(e,t)}),c=r===n.props[i].indexOf(s[s.length-1]);return o&&c});return r.indexOf(o[o.length-1])}var GB;function KB(e){"@babel/helpers - typeof";return KB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KB(e)}function qB(){return qB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qB.apply(this,arguments)}function JB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JB(Object(n),!0).forEach(function(t){oV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XB(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ZB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,sV(r.key),r)}}function QB(e,t,n){return t&&ZB(e.prototype,t),n&&ZB(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function $B(e,t,n){return t=rV(t),eV(e,nV()?Reflect.construct(t,n||[],rV(e).constructor):t.apply(e,n))}function eV(e,t){if(t&&(KB(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return tV(e)}function tV(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function nV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nV=function(){return!!e})()}function rV(e){return rV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rV(e)}function iV(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&aV(e,t)}function aV(e,t){return aV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aV(e,t)}function oV(e,t,n){return t=sV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sV(e){var t=cV(e,`string`);return KB(t)==`symbol`?t:t+``}function cV(e,t){if(KB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lV=function(e){function t(e){var n;return XB(this,t),n=$B(this,t,[e]),oV(n,`pieRef`,null),oV(n,`sectorRefs`,[]),oV(n,`id`,P_(`recharts-pie-`)),oV(n,`handleAnimationEnd`,function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),(0,$_.default)(e)&&e()}),oV(n,`handleAnimationStart`,function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),(0,$_.default)(e)&&e()}),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}return iV(t,e),QB(t,[{key:`isActiveIndex`,value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?t.indexOf(e)!==-1:e===t}},{key:`hasActiveIndex`,value:function(){var e=this.props.activeIndex;return Array.isArray(e)?e.length!==0:e||e===0}},{key:`renderLabels`,value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,o=n.valueKey,s=Q(this.props,!1),c=Q(r,!1),l=Q(i,!1),u=r&&r.offsetRadius||20,d=e.map(function(e,n){var d=(e.startAngle+e.endAngle)/2,f=oP(e.cx,e.cy,e.outerRadius+u,d),p=YB(YB(YB(YB({},s),e),{},{stroke:`none`},c),{},{index:n,textAnchor:t.getTextAnchor(f.x,e.cx)},f),m=YB(YB(YB(YB({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:n,points:[oP(e.cx,e.cy,e.outerRadius,d),f]}),h=a;return(0,O_.default)(a)&&(0,O_.default)(o)?h=`value`:(0,O_.default)(a)&&(h=o),K.createElement(Mv,{key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${n}`},i&&t.renderLabelLineItem(i,m,`line`),t.renderLabelItem(r,p,lN(e,h)))});return K.createElement(Mv,{className:`recharts-pie-labels`},d)}},{key:`renderSectorsStatically`,value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map(function(n,o){if(n?.startAngle===0&&n?.endAngle===0&&e.length!==1)return null;var s=t.isActiveIndex(o),c=a&&t.hasActiveIndex()?a:null,l=s?r:c,u=YB(YB({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return K.createElement(Mv,qB({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:`recharts-pie-sector`},Q_(t.props,n,o),{key:`sector-${n?.startAngle}-${n?.endAngle}-${n.midAngle}-${o}`}),K.createElement(PB,qB({option:l,isActive:s,shapeType:`sector`},u)))})}},{key:`renderSectorsWithAnimation`,value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,s=t.animationId,c=this.state,l=c.prevSectors,u=c.prevIsAnimationActive;return K.createElement(hR,{begin:i,duration:a,isActive:r,easing:o,from:{t:0},to:{t:1},key:`pie-${s}-${u}`,onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=l&&l[t],o=t>0?(0,E_.default)(e,`paddingAngle`,0):0;if(n){var s=R_(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=YB(YB({},e),{},{startAngle:a+o,endAngle:a+s(r)+o});i.push(c),a=c.endAngle}else{var u=e.endAngle,d=e.startAngle,f=R_(0,u-d)(r),p=YB(YB({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}}),K.createElement(Mv,null,e.renderSectorsStatically(i))})}},{key:`attachKeyboardHandlers`,value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case`ArrowLeft`:var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case`ArrowRight`:var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case`Escape`:t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0});break;default:}}}},{key:`renderSectors`,value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return n&&t&&t.length&&(!r||!(0,XM.default)(r,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:`componentDidMount`,value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,o=t.cx,s=t.cy,c=t.innerRadius,l=t.outerRadius,u=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!Z(o)||!Z(s)||!Z(c)||!Z(l))return null;var p=d(`recharts-pie`,i);return K.createElement(Mv,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),LP.renderCallByParent(this.props,null,!1),(!u||f)&&aF.renderCallByParent(this.props,r,!1))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return t.prevIsAnimationActive===e.isAnimationActive?e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors===t.curSectors?null:{curSectors:e.sectors,isAnimationFinished:!0}:{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}}},{key:`getTextAnchor`,value:function(e,t){return e>t?`start`:e<t?`end`:`middle`}},{key:`renderLabelLineItem`,value:function(e,t,n){if(K.isValidElement(e))return K.cloneElement(e,t);if((0,$_.default)(e))return e(t);var r=d(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className);return K.createElement(PF,qB({},t,{key:n,type:`linear`,className:r}))}},{key:`renderLabelItem`,value:function(e,t,n){if(K.isValidElement(e))return K.cloneElement(e,t);var r=n;if((0,$_.default)(e)&&(r=e(t),K.isValidElement(r)))return r;var i=d(`recharts-pie-label-text`,typeof e!=`boolean`&&!(0,$_.default)(e)?e.className:``);return K.createElement(LT,qB({},t,{alignmentBaseline:`middle`,className:i}),r)}}])}(K.PureComponent);GB=lV,oV(lV,`displayName`,`Pie`),oV(lV,`defaultProps`,{stroke:`#fff`,fill:`#808080`,legendType:`rect`,cx:`50%`,cy:`50%`,startAngle:0,endAngle:360,innerRadius:0,outerRadius:`80%`,paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!JC.isSsr,animationBegin:400,animationDuration:1500,animationEasing:`ease`,nameKey:`name`,blendStroke:!1,rootTabIndex:0}),oV(lV,`parseDeltaAngle`,function(e,t){return k_(t-e)*Math.min(Math.abs(t-e),360)}),oV(lV,`getRealPieData`,function(e){var t=e.data,n=e.children,r=Q(e,!1),i=dv(n,Nw);return t&&t.length?t.map(function(e,t){return YB(YB(YB({payload:e},r),e),i&&i[t]&&i[t].props)}):i&&i.length?i.map(function(e){return YB(YB({},r),e.props)}):[]}),oV(lV,`parseCoordinateOfPie`,function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=sP(i,a);return{cx:r+F_(e.cx,i,i/2),cy:n+F_(e.cy,a,a/2),innerRadius:F_(e.innerRadius,o,0),outerRadius:F_(e.outerRadius,o,o*.8),maxRadius:e.maxRadius||Math.sqrt(i*i+a*a)/2}}),oV(lV,`getComposedData`,function(e){var t=e.item,n=e.offset,r=t.type.defaultProps===void 0?t.props:YB(YB({},t.type.defaultProps),t.props),i=GB.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,s=r.endAngle,c=r.paddingAngle,l=r.dataKey,u=r.nameKey,d=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),m=GB.parseCoordinateOfPie(r,n),h=GB.parseDeltaAngle(o,s),g=Math.abs(h),_=l;(0,O_.default)(l)&&(0,O_.default)(d)?(Pv(!1,`Use "dataKey" to specify the value of pie,
100
+ the props "valueKey" will be deprecated in 1.1.0`),_=`value`):(0,O_.default)(l)&&(Pv(!1,`Use "dataKey" to specify the value of pie,
101
+ the props "valueKey" will be deprecated in 1.1.0`),_=d);var v=i.filter(function(e){return lN(e,_,0)!==0}).length,y=(g>=360?v:v-1)*c,b=g-v*p-y,x=i.reduce(function(e,t){var n=lN(t,_,0);return e+(Z(n)?n:0)},0),S;if(x>0){var C;S=i.map(function(e,t){var n=lN(e,_,0),r=lN(e,u,t),i=(Z(n)?n:0)/x,s=t?C.endAngle+k_(h)*c*(n===0?0:1):o,l=s+k_(h)*((n===0?0:p)+i*b),d=(s+l)/2,g=(m.innerRadius+m.outerRadius)/2;return C=YB(YB(YB({percent:i,cornerRadius:a,name:r,tooltipPayload:[{name:r,value:n,payload:e,dataKey:_,type:f}],midAngle:d,middleRadius:g,tooltipPosition:oP(m.cx,m.cy,g,d)},e),m),{},{value:lN(e,_),startAngle:s,endAngle:l,payload:e,paddingAngle:k_(h)*c}),C})}return YB(YB({},m),{},{sectors:S,data:i})});var uV=o(((e,t)=>{var n=Math.ceil,r=Math.max;function i(e,t,i,a){for(var o=-1,s=r(n((t-e)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=e,e+=i;return c}t.exports=i})),dV=o(((e,t)=>{var n=_w(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),fV=o(((e,t)=>{var n=uV(),r=rC(),i=dV();function a(e){return function(t,a,o){return o&&typeof o!=`number`&&r(t,a,o)&&(a=o=void 0),t=i(t),a===void 0?(a=t,t=0):a=i(a),o=o===void 0?t<a?1:-1:i(o),n(t,a,o,e)}}t.exports=a})),pV=o(((e,t)=>{t.exports=fV()()}));function mV(e){"@babel/helpers - typeof";return mV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mV(e)}function hV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hV(Object(n),!0).forEach(function(t){_V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _V(e,t,n){return t=vV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vV(e){var t=yV(e,`string`);return mV(t)==`symbol`?t:t+``}function yV(e,t){if(mV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bV=[`Webkit`,`Moz`,`O`,`ms`],xV=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=bV.reduce(function(e,r){return gV(gV({},e),{},_V({},r+n,t))},{});return r[e]=t,r},SV=l(pV());function CV(e){"@babel/helpers - typeof";return CV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},CV(e)}function wV(){return wV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wV.apply(this,arguments)}function TV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TV(Object(n),!0).forEach(function(t){LV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DV(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function OV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,RV(r.key),r)}}function kV(e,t,n){return t&&OV(e.prototype,t),n&&OV(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function AV(e,t,n){return t=PV(t),jV(e,NV()?Reflect.construct(t,n||[],PV(e).constructor):t.apply(e,n))}function jV(e,t){if(t&&(CV(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return MV(e)}function MV(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function NV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NV=function(){return!!e})()}function PV(e){return PV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PV(e)}function FV(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&IV(e,t)}function IV(e,t){return IV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IV(e,t)}function LV(e,t,n){return t=RV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RV(e){var t=zV(e,`string`);return CV(t)==`symbol`?t:t+``}function zV(e,t){if(CV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(CV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var BV=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,a=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=yE().domain((0,SV.default)(0,s)).range([i,i+a-o]),l=c.domain().map(function(e){return c(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}},VV=function(e){return e.changedTouches&&!!e.changedTouches.length},HV=function(e){function t(e){var n;return DV(this,t),n=AV(this,t,[e]),LV(n,`handleDrag`,function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),LV(n,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),LV(n,`handleDragEnd`,function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,i=e.startIndex;r?.({endIndex:t,startIndex:i})}),n.detachDragEndListener()}),LV(n,`handleLeaveWrapper`,function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),LV(n,`handleEnterSlideOrTraveller`,function(){n.setState({isTextActive:!0})}),LV(n,`handleLeaveSlideOrTraveller`,function(){n.setState({isTextActive:!1})}),LV(n,`handleSlideDragStart`,function(e){var t=VV(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,`startX`),endX:n.handleTravellerDragStart.bind(n,`endX`)},n.state={},n}return FV(t,e),kV(t,[{key:`componentWillUnmount`,value:function(){this.leaveTimer&&=(clearTimeout(this.leaveTimer),null),this.detachDragEndListener()}},{key:`getIndex`,value:function(e){var n=e.startX,r=e.endX,i=this.state.scaleValues,a=this.props,o=a.gap,s=a.data.length-1,c=Math.min(n,r),l=Math.max(n,r),u=t.getIndexInRange(i,c),d=t.getIndexInRange(i,l);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:`getTextOfTick`,value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=lN(n[e],i,e);return(0,$_.default)(r)?r(a,e):a}},{key:`attachDragEndListener`,value:function(){window.addEventListener(`mouseup`,this.handleDragEnd,!0),window.addEventListener(`touchend`,this.handleDragEnd,!0),window.addEventListener(`mousemove`,this.handleDrag,!0)}},{key:`detachDragEndListener`,value:function(){window.removeEventListener(`mouseup`,this.handleDragEnd,!0),window.removeEventListener(`touchend`,this.handleDragEnd,!0),window.removeEventListener(`mousemove`,this.handleDrag,!0)}},{key:`handleSlideDrag`,value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,a=this.props,o=a.x,s=a.width,c=a.travellerWidth,l=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,o+s-c-i,o+s-c-r):f<0&&(f=Math.max(f,o-r,o-i));var p=this.getIndex({startX:r+f,endX:i+f});(p.startIndex!==l||p.endIndex!==u)&&d&&d(p),this.setState({startX:r+f,endX:i+f,slideMoveStartX:e.pageX})}},{key:`handleTravellerDragStart`,value:function(e,t){var n=VV(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:`handleTravellerMove`,value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,i=t.endX,a=t.startX,o=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,m={startX:this.state.startX,endX:this.state.endX},h=e.pageX-n;h>0?h=Math.min(h,c+l-u-o):h<0&&(h=Math.max(h,c-o)),m[r]=o+h;var g=this.getIndex(m),_=g.startIndex,v=g.endIndex,y=function(){var e=p.length-1;return r===`startX`&&(i>a?_%f===0:v%f===0)||i<a&&v===e||r===`endX`&&(i>a?v%f===0:_%f===0)||i>a&&v===e};this.setState(LV(LV({},r,o+h),`brushMoveStartX`,e.pageX),function(){d&&y()&&d(g)})}},{key:`handleTravellerMoveKeyboard`,value:function(e,t){var n=this,r=this.state,i=r.scaleValues,a=r.startX,o=r.endX,s=this.state[t],c=i.indexOf(s);if(c!==-1){var l=c+e;if(!(l===-1||l>=i.length)){var u=i[l];t===`startX`&&u>=o||t===`endX`&&u<=a||this.setState(LV({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:`renderBackground`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,o=e.stroke;return K.createElement(`rect`,{stroke:o,fill:a,x:t,y:n,width:r,height:i})}},{key:`renderPanorama`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.children,s=e.padding,c=K.Children.only(o);return c?K.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:`renderTravellerLayer`,value:function(e,n){var r=this,i=this.props,a=i.y,o=i.travellerWidth,s=i.height,c=i.traveller,l=i.ariaLabel,u=i.data,d=i.startIndex,f=i.endIndex,p=Math.max(e,this.props.x),m=EV(EV({},Q(this.props,!1)),{},{x:p,y:a,width:o,height:s}),h=l||`Min value: ${u[d]?.name}, Max value: ${u[f]?.name}`;return K.createElement(Mv,{tabIndex:0,role:`slider`,"aria-label":h,"aria-valuenow":e,className:`recharts-brush-traveller`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){[`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard(e.key===`ArrowRight`?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:`col-resize`}},t.renderTraveller(c,m))}},{key:`renderSlide`,value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,o=n.travellerWidth,s=Math.min(e,t)+o,c=Math.max(Math.abs(t-e)-o,0);return K.createElement(`rect`,{className:`recharts-brush-slide`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:`move`},stroke:`none`,fill:a,fillOpacity:.2,x:s,y:r,width:c,height:i})}},{key:`renderText`,value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,o=e.stroke,s=this.state,c=s.startX,l=s.endX,u=5,d={pointerEvents:`none`,fill:o};return K.createElement(Mv,{className:`recharts-brush-texts`},K.createElement(LT,wV({textAnchor:`end`,verticalAnchor:`middle`,x:Math.min(c,l)-u,y:r+i/2},d),this.getTextOfTick(t)),K.createElement(LT,wV({textAnchor:`start`,verticalAnchor:`middle`,x:Math.max(c,l)+a+u,y:r+i/2},d),this.getTextOfTick(n)))}},{key:`render`,value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,o=e.width,s=e.height,c=e.alwaysShowText,l=this.state,u=l.startX,f=l.endX,p=l.isTextActive,m=l.isSlideMoving,h=l.isTravellerMoving,g=l.isTravellerFocused;if(!t||!t.length||!Z(i)||!Z(a)||!Z(o)||!Z(s)||o<=0||s<=0)return null;var _=d(`recharts-brush`,n),v=K.Children.count(r)===1,y=xV(`userSelect`,`none`);return K.createElement(Mv,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(u,f),this.renderTravellerLayer(u,`startX`),this.renderTravellerLayer(f,`endX`),(p||m||h||g||c)&&this.renderText())}}],[{key:`renderDefaultTraveller`,value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,o=Math.floor(n+i/2)-1;return K.createElement(K.Fragment,null,K.createElement(`rect`,{x:t,y:n,width:r,height:i,fill:a,stroke:`none`}),K.createElement(`line`,{x1:t+1,y1:o,x2:t+r-1,y2:o,fill:`none`,stroke:`#fff`}),K.createElement(`line`,{x1:t+1,y1:o+2,x2:t+r-1,y2:o+2,fill:`none`,stroke:`#fff`}))}},{key:`renderTraveller`,value:function(e,n){return K.isValidElement(e)?K.cloneElement(e,n):(0,$_.default)(e)?e(n):t.renderDefaultTraveller(n)}},{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.data,r=e.width,i=e.x,a=e.travellerWidth,o=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return EV({prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r},n&&n.length?BV({data:n,width:r,x:i,travellerWidth:a,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([i,i+r-a]);var l=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:`getIndexInRange`,value:function(e,t){for(var n=e.length,r=0,i=n-1;i-r>1;){var a=Math.floor((r+i)/2);e[a]>t?i=a:r=a}return t>=e[i]?i:r}}])}(K.PureComponent);LV(HV,`displayName`,`Brush`),LV(HV,`defaultProps`,{height:40,travellerWidth:5,gap:1,fill:`#fff`,stroke:`#666`,padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var UV=o(((e,t)=>{var n=US();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),WV=o(((e,t)=>{var n=ix(),r=nS(),i=UV(),a=bg(),o=rC();function s(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=s})),GV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r=`extendDomain`),r===t},KV=o(((e,t)=>{var n=QS();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),qV=o(((e,t)=>{var n=KV(),r=VS(),i=nS();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),JV=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}t.exports=n})),YV=o(((e,t)=>{var n=US();function r(e,t){var r=!0;return n(e,function(e,n,i){return r=!!t(e,n,i),r}),r}t.exports=r})),XV=o(((e,t)=>{var n=JV(),r=YV(),i=nS(),a=bg(),o=rC();function s(e,t,s){var c=a(e)?n:r;return s&&o(e,t,s)&&(t=void 0),c(e,i(t,3))}t.exports=s})),ZV=[`x`,`y`];function QV(e){"@babel/helpers - typeof";return QV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},QV(e)}function $V(){return $V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$V.apply(this,arguments)}function eH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eH(Object(n),!0).forEach(function(t){nH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nH(e,t,n){return t=rH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rH(e){var t=iH(e,`string`);return QV(t)==`symbol`?t:t+``}function iH(e,t){if(QV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(QV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aH(e,t){if(e==null)return{};var n=oH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sH(e,t){var n=e.x,r=e.y,i=aH(e,ZV),a=`${n}`,o=parseInt(a,10),s=`${r}`,c=parseInt(s,10),l=`${t.height||i.height}`,u=parseInt(l,10),d=`${t.width||i.width}`,f=parseInt(d,10);return tH(tH(tH(tH(tH({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function cH(e){return K.createElement(PB,$V({shapeType:`rectangle`,propTransformer:sH,activeClassName:`recharts-active-bar`},e))}var lH=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof e==`number`)return e;var i=Z(n)||j_(n);return i?e(n,r):(!i&&mM(!1),t)}},uH=[`value`,`background`],dH;function fH(e){"@babel/helpers - typeof";return fH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fH(e)}function pH(e,t){if(e==null)return{};var n=mH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hH(){return hH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hH.apply(this,arguments)}function gH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gH(Object(n),!0).forEach(function(t){OH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vH(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,kH(r.key),r)}}function bH(e,t,n){return t&&yH(e.prototype,t),n&&yH(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xH(e,t,n){return t=TH(t),SH(e,wH()?Reflect.construct(t,n||[],TH(e).constructor):t.apply(e,n))}function SH(e,t){if(t&&(fH(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return CH(e)}function CH(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wH=function(){return!!e})()}function TH(e){return TH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TH(e)}function EH(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&DH(e,t)}function DH(e,t){return DH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DH(e,t)}function OH(e,t,n){return t=kH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e){var t=AH(e,`string`);return fH(t)==`symbol`?t:t+``}function AH(e,t){if(fH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jH=function(e){function t(){var e;vH(this,t);var n=[...arguments];return e=xH(this,t,[].concat(n)),OH(e,`state`,{isAnimationFinished:!1}),OH(e,`id`,P_(`recharts-bar-`)),OH(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),OH(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return EH(t,e),bH(t,[{key:`renderRectanglesStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,o=n.activeBar,s=Q(this.props,!1);return e&&e.map(function(e,n){var c=n===a,l=c?o:r,u=_H(_H(_H({},s),e),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return K.createElement(Mv,hH({className:`recharts-bar-rectangle`},Q_(t.props,e,n),{key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${n}`}),K.createElement(cH,u))})}},{key:`renderRectanglesWithAnimation`,value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationId,l=this.state.prevData;return K.createElement(hR,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},key:`bar-${c}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,a=n.map(function(e,t){var n=l&&l[t];if(n){var a=R_(n.x,e.x),o=R_(n.y,e.y),s=R_(n.width,e.width),c=R_(n.height,e.height);return _H(_H({},e),{},{x:a(i),y:o(i),width:s(i),height:c(i)})}if(r===`horizontal`){var u=R_(0,e.height)(i);return _H(_H({},e),{},{y:e.y+e.height-u,height:u})}var d=R_(0,e.width)(i);return _H(_H({},e),{},{width:d})});return K.createElement(Mv,null,e.renderRectanglesStatically(a))})}},{key:`renderRectangles`,value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return n&&t&&t.length&&(!r||!(0,XM.default)(r,t))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(t)}},{key:`renderBackground`,value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=Q(this.props.background,!1);return n.map(function(t,n){t.value;var o=t.background,s=pH(t,uH);if(!o)return null;var c=_H(_H(_H(_H(_H({},s),{},{fill:`#eee`},o),a),Q_(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return K.createElement(cH,hH({key:`background-bar-${n}`,option:e.props.background,isActive:n===i},c))})}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=dv(s,zM);if(!c)return null;var l=o===`vertical`?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:lN(e,t)}},d={clipPath:e?`url(#clipPath-${t})`:null};return K.createElement(Mv,d,c.map(function(e){return K.cloneElement(e,{key:`error-bar-${t}-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,offset:l,dataPointFormatter:u})}))}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,o=e.left,s=e.top,c=e.width,l=e.height,u=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=d(`recharts-bar`,r),g=i&&i.allowDataOverflow,_=a&&a.allowDataOverflow,v=g||_,y=(0,O_.default)(p)?this.id:p;return K.createElement(Mv,{className:h},g||_?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${y}`},K.createElement(`rect`,{x:g?o:o-c/2,y:_?s:s-l/2,width:g?c:c*2,height:_?l:l*2}))):null,K.createElement(Mv,{className:`recharts-bar-rectangles`,clipPath:v?`url(#clipPath-${y})`:null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!u||m)&&aF.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.data===t.curData?null:{curData:e.data}:{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}}}])}(K.PureComponent);dH=jH,OH(jH,`displayName`,`Bar`),OH(jH,`defaultProps`,{xAxisId:0,yAxisId:0,legendType:`rect`,minPointSize:0,hide:!1,data:[],layout:`vertical`,activeBar:!1,isAnimationActive:!JC.isSsr,animationBegin:0,animationDuration:400,animationEasing:`ease`}),OH(jH,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=ON(r,n);if(!p)return null;var m=t.layout,h=n.type.defaultProps,g=h===void 0?n.props:_H(_H({},h),n.props),_=g.dataKey,v=g.children,y=g.minPointSize,b=m===`horizontal`?o:a,x=l?b.scale.domain():null,S=IN({numericAxis:b}),C=dv(v,Nw);return _H({data:d.map(function(e,t){var r,d,f,h,g,v;l?r=kN(l[u+t],x):(r=lN(e,_),Array.isArray(r)||(r=[S,r]));var b=lH(y,dH.defaultProps.minPointSize)(r[1],t);if(m===`horizontal`){var w=[o.scale(r[0]),o.scale(r[1])],T=w[0],E=w[1];d=FN({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:e,index:t}),f=E??T??void 0,h=p.size;var D=T-E;if(g=Number.isNaN(D)?0:D,v={x:d,y:o.y,width:h,height:o.height},Math.abs(b)>0&&Math.abs(g)<Math.abs(b)){var O=k_(g||b)*(Math.abs(b)-Math.abs(g));f-=O,g+=O}}else{var k=[a.scale(r[0]),a.scale(r[1])],A=k[0],j=k[1];if(d=A,f=FN({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:e,index:t}),h=j-A,g=p.size,v={x:a.x,y:f,width:a.width,height:g},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)){var M=k_(h||b)*(Math.abs(b)-Math.abs(h));h+=M}}return _H(_H(_H({},e),{},{x:d,y:f,width:h,height:g,value:l?r:r[1],payload:e,background:v},C&&C[t]&&C[t].props),{},{tooltipPayload:[GN(n,e)],tooltipPosition:{x:d+h/2,y:f+g/2}})}),layout:m},f)});var MH=l(qV()),NH=l(XV());function PH(e){"@babel/helpers - typeof";return PH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},PH(e)}function FH(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function IH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,VH(r.key),r)}}function LH(e,t,n){return t&&IH(e.prototype,t),n&&IH(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function RH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RH(Object(n),!0).forEach(function(t){BH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BH(e,t,n){return t=VH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VH(e){var t=HH(e,`string`);return PH(t)==`symbol`?t:t+``}function HH(e,t){if(PH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(PH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var UH=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!fv(c,jH);return l.reduce(function(a,o){var c=t[o],l=c.orientation,f=c.domain,p=c.padding,m=p===void 0?{}:p,h=c.mirror,g=c.reversed,_=`${l}${h?`Mirror`:``}`,v,y,b,x,S;if(c.type===`number`&&(c.padding===`gap`||c.padding===`no-gap`)){var C=f[1]-f[0],w=1/0,T=c.categoricalDomain.sort(V_);if(T.forEach(function(e,t){t>0&&(w=Math.min((e||0)-(T[t-1]||0),w))}),Number.isFinite(w)){var E=w/C,D=c.layout===`vertical`?n.height:n.width;if(c.padding===`gap`&&(v=E*D/2),c.padding===`no-gap`){var O=F_(e.barCategoryGap,E*D),k=E*D/2;v=k-O-(k-O)/D*O}}}y=r===`xAxis`?[n.left+(m.left||0)+(v||0),n.left+n.width-(m.right||0)-(v||0)]:r===`yAxis`?s===`horizontal`?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(v||0),n.top+n.height-(m.bottom||0)-(v||0)]:c.range,g&&(y=[y[1],y[0]]);var A=TN(c,i,d),j=A.scale,M=A.realScaleType;j.domain(f).range(y),DN(j);var N=NN(j,zH(zH({},c),{},{realScaleType:M}));r===`xAxis`?(S=l===`top`&&!h||l===`bottom`&&h,b=n.left,x=u[_]-S*c.height):r===`yAxis`&&(S=l===`left`&&!h||l===`right`&&h,b=u[_]-S*c.width,x=n.top);var P=zH(zH(zH({},c),N),{},{realScaleType:M,x:b,y:x,scale:j,width:r===`xAxis`?n.width:c.width,height:r===`yAxis`?n.height:c.height});return P.bandSize=UN(P,N),!c.hide&&r===`xAxis`?u[_]+=(S?-1:1)*P.height:c.hide||(u[_]+=(S?-1:1)*P.width),zH(zH({},a),{},BH({},o,P))},{})},WH=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},GH=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return WH({x:t,y:n},{x:r,y:i})},KH=function(){function e(t){FH(this,e),this.scale=t}return LH(e,[{key:`domain`,get:function(){return this.scale.domain}},{key:`range`,get:function(){return this.scale.range}},{key:`rangeMin`,get:function(){return this.range()[0]}},{key:`rangeMax`,get:function(){return this.range()[1]}},{key:`bandwidth`,get:function(){return this.scale.bandwidth}},{key:`apply`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.bandAware,r=t.position;if(e!==void 0){if(r)switch(r){case`start`:return this.scale(e);case`middle`:var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case`end`:var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a;default:return this.scale(e)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:`isInRange`,value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],[{key:`create`,value:function(t){return new e(t)}}])}();BH(KH,`EPS`,1e-4);var qH=function(e){var t=Object.keys(e).reduce(function(t,n){return zH(zH({},t),{},BH({},n,KH.create(e[n])))},{});return zH(zH({},t),{},{apply:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;return(0,MH.default)(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return(0,NH.default)(e,function(e,n){return t[n].isInRange(e)})}})};function JH(e){return(e%180+180)%180}var YH=function(e){var t=e.width,n=e.height,r=JH(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},XH=o(((e,t)=>{var n=nS(),r=Mx(),i=Nx();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),ZH=o(((e,t)=>{var n=dV();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),QH=o(((e,t)=>{var n=rS(),r=nS(),i=ZH(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),$H=o(((e,t)=>{t.exports=XH()(QH())})),eU=(0,l(c_()).default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return[`l`,e.left,`t`,e.top,`w`,e.width,`h`,e.height].join(``)}),tU=l($H()),nU=(0,K.createContext)(void 0),rU=(0,K.createContext)(void 0),iU=(0,K.createContext)(void 0),aU=(0,K.createContext)({}),oU=(0,K.createContext)(void 0),sU=(0,K.createContext)(0),cU=(0,K.createContext)(0),lU=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,o=e.children,s=e.width,c=e.height,l=eU(i);return K.createElement(nU.Provider,{value:n},K.createElement(rU.Provider,{value:r},K.createElement(aU.Provider,{value:i},K.createElement(iU.Provider,{value:l},K.createElement(oU.Provider,{value:a},K.createElement(sU.Provider,{value:c},K.createElement(cU.Provider,{value:s},o)))))))},uU=function(){return(0,K.useContext)(oU)},dU=function(e){var t=(0,K.useContext)(nU);t??mM(!1);var n=t[e];return n??mM(!1),n},fU=function(){return I_((0,K.useContext)(nU))},pU=function(){var e=(0,K.useContext)(rU);return(0,tU.default)(e,function(e){return(0,NH.default)(e.domain,Number.isFinite)})||I_(e)},mU=function(e){var t=(0,K.useContext)(rU);t??mM(!1);var n=t[e];return n??mM(!1),n},hU=function(){return(0,K.useContext)(iU)},gU=function(){return(0,K.useContext)(aU)},_U=function(){return(0,K.useContext)(cU)},vU=function(){return(0,K.useContext)(sU)},yU=l(WV());function bU(e){"@babel/helpers - typeof";return bU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bU(e)}function xU(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function SU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,PU(r.key),r)}}function CU(e,t,n){return t&&SU(e.prototype,t),n&&SU(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function wU(e,t,n){return t=OU(t),TU(e,DU()?Reflect.construct(t,n||[],OU(e).constructor):t.apply(e,n))}function TU(e,t){if(t&&(bU(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return EU(e)}function EU(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function DU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DU=function(){return!!e})()}function OU(e){return OU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OU(e)}function kU(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&AU(e,t)}function AU(e,t){return AU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AU(e,t)}function jU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jU(Object(n),!0).forEach(function(t){NU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NU(e,t,n){return t=PU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PU(e){var t=FU(e,`string`);return bU(t)==`symbol`?t:t+``}function FU(e,t){if(bU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IU(e,t){return VU(e)||BU(e,t)||RU(e,t)||LU()}function LU(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
102
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RU(e,t){if(e){if(typeof e==`string`)return zU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zU(e,t)}}function zU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BU(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function VU(e){if(Array.isArray(e))return e}function HU(){return HU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HU.apply(this,arguments)}var UU=function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,$_.default)(e)?e(t):K.createElement(`line`,HU({},t,{className:`recharts-reference-line-line`}))},WU=function(e,t,n,r,i,a,o,s,c){var l=i.x,u=i.y,d=i.width,f=i.height;if(n){var p=c.y,m=e.y.apply(p,{position:a});if(GV(c,`discard`)&&!e.y.isInRange(m))return null;var h=[{x:l+d,y:m},{x:l,y:m}];return s===`left`?h.reverse():h}if(t){var g=c.x,_=e.x.apply(g,{position:a});if(GV(c,`discard`)&&!e.x.isInRange(_))return null;var v=[{x:_,y:u+f},{x:_,y:u}];return o===`top`?v.reverse():v}if(r){var y=c.segment.map(function(t){return e.apply(t,{position:a})});return GV(c,`discard`)&&(0,yU.default)(y,function(t){return!e.isInRange(t)})?null:y}return null};function GU(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,c=e.alwaysShow,l=uU(),u=dU(i),f=mU(a),p=hU();if(!l||!p)return null;Pv(c===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var m=WU(qH({x:u.scale,y:f.scale}),M_(t),M_(n),r&&r.length===2,p,e.position,u.orientation,f.orientation,e);if(!m)return null;var h=IU(m,2),g=h[0],_=g.x,v=g.y,y=h[1],b=y.x,x=y.y,S=MU(MU({clipPath:GV(e,`hidden`)?`url(#${l})`:void 0},Q(e,!0)),{},{x1:_,y1:v,x2:b,y2:x});return K.createElement(Mv,{className:d(`recharts-reference-line`,s)},UU(o,S),LP.renderCallByParent(e,GH({x1:_,y1:v,x2:b,y2:x})))}var KU=function(e){function t(){return xU(this,t),wU(this,t,arguments)}return kU(t,e),CU(t,[{key:`render`,value:function(){return K.createElement(GU,this.props)}}])}(K.Component);NU(KU,`displayName`,`ReferenceLine`),NU(KU,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`});function qU(){return qU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qU.apply(this,arguments)}function JU(e){"@babel/helpers - typeof";return JU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JU(e)}function YU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YU(Object(n),!0).forEach(function(t){sW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZU(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function QU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,cW(r.key),r)}}function $U(e,t,n){return t&&QU(e.prototype,t),n&&QU(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function eW(e,t,n){return t=iW(t),tW(e,rW()?Reflect.construct(t,n||[],iW(e).constructor):t.apply(e,n))}function tW(e,t){if(t&&(JU(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return nW(e)}function nW(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function rW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rW=function(){return!!e})()}function iW(e){return iW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iW(e)}function aW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&oW(e,t)}function oW(e,t){return oW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oW(e,t)}function sW(e,t,n){return t=cW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cW(e){var t=lW(e,`string`);return JU(t)==`symbol`?t:t+``}function lW(e,t){if(JU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(JU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var uW=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,a=qH({x:r.scale,y:i.scale}),o=a.apply({x:t,y:n},{bandAware:!0});return GV(e,`discard`)&&!a.isInRange(o)?null:o},dW=function(e){function t(){return ZU(this,t),eW(this,t,arguments)}return aW(t,e),$U(t,[{key:`render`,value:function(){var e=this.props,n=e.x,r=e.y,i=e.r,a=e.alwaysShow,o=e.clipPathId,s=M_(n),c=M_(r);if(Pv(a===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`),!s||!c)return null;var l=uW(this.props);if(!l)return null;var u=l.x,f=l.y,p=this.props,m=p.shape,h=p.className,g=XU(XU({clipPath:GV(this.props,`hidden`)?`url(#${o})`:void 0},Q(this.props,!0)),{},{cx:u,cy:f});return K.createElement(Mv,{className:d(`recharts-reference-dot`,h)},t.renderDot(m,g),LP.renderCallByParent(this.props,{x:u-i,y:f-i,width:2*i,height:2*i}))}}])}(K.Component);sW(dW,`displayName`,`ReferenceDot`),sW(dW,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#fff`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1}),sW(dW,`renderDot`,function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,$_.default)(e)?e(t):K.createElement(YR,qU({},t,{cx:t.cx,cy:t.cy,className:`recharts-reference-dot-dot`}))});function fW(){return fW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fW.apply(this,arguments)}function pW(e){"@babel/helpers - typeof";return pW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pW(e)}function mW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mW(Object(n),!0).forEach(function(t){EW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gW(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,DW(r.key),r)}}function vW(e,t,n){return t&&_W(e.prototype,t),n&&_W(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yW(e,t,n){return t=CW(t),bW(e,SW()?Reflect.construct(t,n||[],CW(e).constructor):t.apply(e,n))}function bW(e,t){if(t&&(pW(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return xW(e)}function xW(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function SW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SW=function(){return!!e})()}function CW(e){return CW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CW(e)}function wW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&TW(e,t)}function TW(e,t){return TW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TW(e,t)}function EW(e,t,n){return t=DW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DW(e){var t=OW(e,`string`);return pW(t)==`symbol`?t:t+``}function OW(e,t){if(pW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kW=function(e,t,n,r,i){var a=i.x1,o=i.x2,s=i.y1,c=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var d=qH({x:l.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:`start`}):d.x.rangeMin,y:n?d.y.apply(s,{position:`start`}):d.y.rangeMin},p={x:t?d.x.apply(o,{position:`end`}):d.x.rangeMax,y:r?d.y.apply(c,{position:`end`}):d.y.rangeMax};return GV(i,`discard`)&&(!d.isInRange(f)||!d.isInRange(p))?null:WH(f,p)},AW=function(e){function t(){return gW(this,t),yW(this,t,arguments)}return wW(t,e),vW(t,[{key:`render`,value:function(){var e=this.props,n=e.x1,r=e.x2,i=e.y1,a=e.y2,o=e.className,s=e.alwaysShow,c=e.clipPathId;Pv(s===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var l=M_(n),u=M_(r),f=M_(i),p=M_(a),m=this.props.shape;if(!l&&!u&&!f&&!p&&!m)return null;var h=kW(l,u,f,p,this.props);if(!h&&!m)return null;var g=GV(this.props,`hidden`)?`url(#${c})`:void 0;return K.createElement(Mv,{className:d(`recharts-reference-area`,o)},t.renderRect(m,hW(hW({clipPath:g},Q(this.props,!0)),h)),LP.renderCallByParent(this.props,h))}}])}(K.Component);EW(AW,`displayName`,`ReferenceArea`),EW(AW,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#ccc`,fillOpacity:.5,stroke:`none`,strokeWidth:1}),EW(AW,`renderRect`,function(e,t){return K.isValidElement(e)?K.cloneElement(e,t):(0,$_.default)(e)?e(t):K.createElement(MR,fW({},t,{className:`recharts-reference-area-rect`}))});function jW(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function MW(e,t,n){return YH({width:e.width+t.width,height:e.height+t.height},n)}function NW(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function PW(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function FW(e,t){return jW(e,t+1)}function IW(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:jW(r,l)};var a=c,d,f=function(){return d===void 0&&(d=n(t,a)),d},p=t.coordinate,m=c===0||PW(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function LW(e){"@babel/helpers - typeof";return LW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LW(e)}function RW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RW(Object(n),!0).forEach(function(t){BW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BW(e,t,n){return t=VW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VW(e){var t=HW(e,`string`);return LW(t)==`symbol`?t:t+``}function HW(e,t){if(LW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UW(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t],l,u=function(){return l===void 0&&(l=n(r,t)),l};if(t===o-1){var d=e*(r.coordinate+e*u()/2-c);a[t]=r=zW(zW({},r),{},{tickCoord:d>0?r.coordinate-d*e:r.coordinate})}else a[t]=r=zW(zW({},r),{},{tickCoord:r.coordinate});PW(e,r.tickCoord,u,s,c)&&(c=r.tickCoord-e*(u()/2+i),a[t]=zW(zW({},r),{},{isShow:!0}))},u=o-1;u>=0;u--)l(u);return a}function WW(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=zW(zW({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),PW(e,u.tickCoord,function(){return d},c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=zW(zW({},u),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(t){var r=o[t],a,s=function(){return a===void 0&&(a=n(r,t)),a};if(t===0){var u=e*(r.coordinate-e*s()/2-c);o[t]=r=zW(zW({},r),{},{tickCoord:u<0?r.coordinate-u*e:r.coordinate})}else o[t]=r=zW(zW({},r),{},{tickCoord:r.coordinate});PW(e,r.tickCoord,s,c,l)&&(c=r.tickCoord+e*(s()/2+i),o[t]=zW(zW({},r),{},{isShow:!0}))},h=0;h<p;h++)m(h);return o}function GW(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Z(c)||JC.isSsr)return FW(i,typeof c==`number`&&Z(c)?c:0);var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?Gw(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(e,r){var i=(0,$_.default)(l)?l(e.value,r):e.value;return p===`width`?MW(Gw(i,{fontSize:t,letterSpacing:n}),m,d):Gw(i,{fontSize:t,letterSpacing:n})[p]},g=i.length>=2?k_(i[1].coordinate-i[0].coordinate):1,_=NW(a,g,p);return c===`equidistantPreserveStart`?IW(g,_,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?WW(g,_,h,i,o,c===`preserveStartEnd`):UW(g,_,h,i,o),f.filter(function(e){return e.isShow}))}var KW=[`viewBox`],qW=[`viewBox`],JW=[`ticks`];function YW(e){"@babel/helpers - typeof";return YW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YW(e)}function XW(){return XW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XW.apply(this,arguments)}function ZW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZW(Object(n),!0).forEach(function(t){dG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $W(e,t){if(e==null)return{};var n=eG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tG(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function nG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fG(r.key),r)}}function rG(e,t,n){return t&&nG(e.prototype,t),n&&nG(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function iG(e,t,n){return t=cG(t),aG(e,sG()?Reflect.construct(t,n||[],cG(e).constructor):t.apply(e,n))}function aG(e,t){if(t&&(YW(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return oG(e)}function oG(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function sG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sG=function(){return!!e})()}function cG(e){return cG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cG(e)}function lG(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&uG(e,t)}function uG(e,t){return uG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uG(e,t)}function dG(e,t,n){return t=fG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fG(e){var t=pG(e,`string`);return YW(t)==`symbol`?t:t+``}function pG(e,t){if(YW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(YW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mG=function(e){function t(e){var n;return tG(this,t),n=iG(this,t,[e]),n.state={fontSize:``,letterSpacing:``},n}return lG(t,e),rG(t,[{key:`shouldComponentUpdate`,value:function(e,t){var n=e.viewBox,r=$W(e,KW),i=this.props,a=i.viewBox,o=$W(i,qW);return!H_(n,a)||!H_(r,o)||!H_(t,this.state)}},{key:`componentDidMount`,value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`)[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,o=t.orientation,s=t.tickSize,c=t.mirror,l=t.tickMargin,u,d,f,p,m,h,g=c?-1:1,_=e.tickSize||s,v=Z(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case`top`:u=d=e.coordinate,p=r+ +!c*a,f=p-g*_,h=f-g*l,m=v;break;case`left`:f=p=e.coordinate,d=n+ +!c*i,u=d-g*_,m=u-g*l,h=v;break;case`right`:f=p=e.coordinate,d=n+ +c*i,u=d+g*_,m=u+g*l,h=v;break;default:u=d=e.coordinate,p=r+ +c*a,f=p+g*_,h=f+g*l,m=v;break}return{line:{x1:u,y1:f,x2:d,y2:p},tick:{x:m,y:h}}}},{key:`getTickTextAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r;switch(t){case`left`:r=n?`start`:`end`;break;case`right`:r=n?`end`:`start`;break;default:r=`middle`;break}return r}},{key:`getTickVerticalAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=`end`;switch(t){case`left`:case`right`:r=`middle`;break;case`top`:r=n?`start`:`end`;break;default:r=n?`end`:`start`;break}return r}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,o=e.mirror,s=e.axisLine,c=QW(QW(QW({},Q(this.props,!1)),Q(s,!1)),{},{fill:`none`});if(a===`top`||a===`bottom`){var l=+(a===`top`&&!o||a===`bottom`&&o);c=QW(QW({},c),{},{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var u=+(a===`left`&&!o||a===`right`&&o);c=QW(QW({},c),{},{x1:t+u*r,y1:n,x2:t+u*r,y2:n+i})}return K.createElement(`line`,XW({},c,{className:d(`recharts-cartesian-axis-line`,(0,E_.default)(s,`className`))}))}},{key:`renderTicks`,value:function(e,n,r){var i=this,a=this.props,o=a.tickLine,s=a.stroke,c=a.tick,l=a.tickFormatter,u=a.unit,f=GW(QW(QW({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),h=Q(this.props,!1),g=Q(c,!1),_=QW(QW({},h),{},{fill:`none`},Q(o,!1)),v=f.map(function(e,n){var r=i.getTickLineCoord(e),a=r.line,v=r.tick,y=QW(QW(QW(QW({textAnchor:p,verticalAnchor:m},h),{},{stroke:`none`,fill:s},g),v),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:l});return K.createElement(Mv,XW({className:`recharts-cartesian-axis-tick`,key:`tick-${e.value}-${e.coordinate}-${e.tickCoord}`},Q_(i.props,e,n)),o&&K.createElement(`line`,XW({},_,a,{className:d(`recharts-cartesian-axis-tick-line`,(0,E_.default)(o,`className`))})),c&&t.renderTickItem(c,y,`${(0,$_.default)(l)?l(e.value,n):e.value}${u||``}`))});return K.createElement(`g`,{className:`recharts-cartesian-axis-ticks`},v)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,o=t.className;if(t.hide)return null;var s=this.props,c=s.ticks,l=$W(s,JW),u=c;return(0,$_.default)(a)&&(u=c&&c.length>0?a(this.props):a(l)),r<=0||i<=0||!u||!u.length?null:K.createElement(Mv,{className:d(`recharts-cartesian-axis`,o),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(u,this.state.fontSize,this.state.letterSpacing),LP.renderCallByParent(this.props))}}],[{key:`renderTickItem`,value:function(e,t,n){var r,i=d(t.className,`recharts-cartesian-axis-tick-value`);return r=K.isValidElement(e)?K.cloneElement(e,QW(QW({},t),{},{className:i})):(0,$_.default)(e)?e(QW(QW({},t),{},{className:i})):K.createElement(LT,XW({},t,{className:`recharts-cartesian-axis-tick-value`}),n),r}}])}(K.Component);dG(mG,`displayName`,`CartesianAxis`),dG(mG,`defaultProps`,{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`});var hG=[`x1`,`y1`,`x2`,`y2`,`key`],gG=[`offset`];function _G(e){"@babel/helpers - typeof";return _G=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_G(e)}function vG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vG(Object(n),!0).forEach(function(t){bG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bG(e,t,n){return t=xG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xG(e){var t=SG(e,`string`);return _G(t)==`symbol`?t:t+``}function SG(e,t){if(_G(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_G(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function CG(){return CG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CG.apply(this,arguments)}function wG(e,t){if(e==null)return{};var n=TG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var EG=function(e){var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return K.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function DG(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,$_.default)(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=Q(wG(t,hG),!1);c.offset;var l=wG(c,gG);n=K.createElement(`line`,CG({},l,{x1:r,y1:i,x2:a,y2:o,fill:`none`,key:s}))}return n}function OG(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return DG(i,yG(yG({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:`line-${a}`,index:a}))});return K.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},o)}function kG(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return DG(i,yG(yG({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:`line-${a}`,index:a}))});return K.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},o)}function AG(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length)return null;var l=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==l[0]&&l.unshift(0);var u=l.map(function(e,s){var c=l[s+1]?l[s+1]-e:i+o-e;if(c<=0)return null;var u=s%t.length;return K.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:c,width:a,stroke:`none`,fill:t[u],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return K.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function jG(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var u=l.map(function(e){return Math.round(e+a-a)}).sort(function(e,t){return e-t});a!==u[0]&&u.unshift(0);var d=u.map(function(e,t){var n=u[t+1]?u[t+1]-e:a+s-e;if(n<=0)return null;var l=t%r.length;return K.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:n,height:c,stroke:`none`,fill:r[l],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return K.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},d)}var MG=function(e,t){var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return xN(GW(yG(yG(yG({},mG.defaultProps),n),{},{ticks:SN(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},NG=function(e,t){var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return xN(GW(yG(yG(yG({},mG.defaultProps),n),{},{ticks:SN(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},PG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[]};function FG(e){var t=_U(),n=vU(),r=gU(),i=yG(yG({},e),{},{stroke:e.stroke??PG.stroke,fill:e.fill??PG.fill,horizontal:e.horizontal??PG.horizontal,horizontalFill:e.horizontalFill??PG.horizontalFill,vertical:e.vertical??PG.vertical,verticalFill:e.verticalFill??PG.verticalFill,x:Z(e.x)?e.x:r.left,y:Z(e.y)?e.y:r.top,width:Z(e.width)?e.width:r.width,height:Z(e.height)?e.height:r.height}),a=i.x,o=i.y,s=i.width,c=i.height,l=i.syncWithTicks,u=i.horizontalValues,d=i.verticalValues,f=fU(),p=pU();if(!Z(s)||s<=0||!Z(c)||c<=0||!Z(a)||a!==+a||!Z(o)||o!==+o)return null;var m=i.verticalCoordinatesGenerator||MG,h=i.horizontalCoordinatesGenerator||NG,g=i.horizontalPoints,_=i.verticalPoints;if((!g||!g.length)&&(0,$_.default)(h)){var v=u&&u.length,y=h({yAxis:p?yG(yG({},p),{},{ticks:v?u:p.ticks}):void 0,width:t,height:n,offset:r},v?!0:l);Pv(Array.isArray(y),`horizontalCoordinatesGenerator should return Array but instead it returned [${_G(y)}]`),Array.isArray(y)&&(g=y)}if((!_||!_.length)&&(0,$_.default)(m)){var b=d&&d.length,x=m({xAxis:f?yG(yG({},f),{},{ticks:b?d:f.ticks}):void 0,width:t,height:n,offset:r},b?!0:l);Pv(Array.isArray(x),`verticalCoordinatesGenerator should return Array but instead it returned [${_G(x)}]`),Array.isArray(x)&&(_=x)}return K.createElement(`g`,{className:`recharts-cartesian-grid`},K.createElement(EG,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),K.createElement(OG,CG({},i,{offset:r,horizontalPoints:g,xAxis:f,yAxis:p})),K.createElement(kG,CG({},i,{offset:r,verticalPoints:_,xAxis:f,yAxis:p})),K.createElement(AG,CG({},i,{horizontalPoints:g})),K.createElement(jG,CG({},i,{verticalPoints:_})))}FG.displayName=`CartesianGrid`;var IG=[`type`,`layout`,`connectNulls`,`ref`],LG=[`key`];function RG(e){"@babel/helpers - typeof";return RG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RG(e)}function zG(e,t){if(e==null)return{};var n=BG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function VG(){return VG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VG.apply(this,arguments)}function HG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HG(Object(n),!0).forEach(function(t){oK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WG(e){return JG(e)||qG(e)||KG(e)||GG()}function GG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
103
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KG(e,t){if(e){if(typeof e==`string`)return YG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YG(e,t)}}function qG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function JG(e){if(Array.isArray(e))return YG(e)}function YG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function XG(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ZG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,sK(r.key),r)}}function QG(e,t,n){return t&&ZG(e.prototype,t),n&&ZG(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function $G(e,t,n){return t=rK(t),eK(e,nK()?Reflect.construct(t,n||[],rK(e).constructor):t.apply(e,n))}function eK(e,t){if(t&&(RG(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return tK(e)}function tK(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function nK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nK=function(){return!!e})()}function rK(e){return rK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rK(e)}function iK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&aK(e,t)}function aK(e,t){return aK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aK(e,t)}function oK(e,t,n){return t=sK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sK(e){var t=cK(e,`string`);return RG(t)==`symbol`?t:t+``}function cK(e,t){if(RG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(RG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lK=function(e){function t(){var e;XG(this,t);var n=[...arguments];return e=$G(this,t,[].concat(n)),oK(e,`state`,{isAnimationFinished:!0,totalLength:0}),oK(e,`generateSimpleStrokeDasharray`,function(e,t){return`${t}px ${e-t}px`}),oK(e,`getStrokeDasharray`,function(n,r,i){var a=i.reduce(function(e,t){return e+t});if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var o=Math.floor(n/a),s=n%a,c=r-n,l=[],u=0,d=0;u<i.length;d+=i[u],++u)if(d+i[u]>s){l=[].concat(WG(i.slice(0,u)),[s-d]);break}var f=l.length%2==0?[0,c]:[c];return[].concat(WG(t.repeat(i,o)),WG(l),f).map(function(e){return`${e}px`}).join(`, `)}),oK(e,`id`,P_(`recharts-line-`)),oK(e,`pathRef`,function(t){e.mainCurve=t}),oK(e,`handleAnimationEnd`,function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),oK(e,`handleAnimationStart`,function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),e}return iK(t,e),QG(t,[{key:`componentDidMount`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:`componentDidUpdate`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:`getTotalLength`,value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=dv(s,zM);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:lN(e.payload,t)}},u={clipPath:e?`url(#clipPath-${t})`:null};return K.createElement(Mv,u,c.map(function(e){return K.cloneElement(e,{key:`bar-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,dataPointFormatter:l})}))}},{key:`renderDots`,value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,o=i.points,s=i.dataKey,c=Q(this.props,!1),l=Q(a,!0),u=o.map(function(e,n){var r=UG(UG(UG({key:`dot-${n}`,r:3},c),l),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:s,payload:e.payload,points:o});return t.renderDotItem(a,r)}),d={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return K.createElement(Mv,VG({className:`recharts-line-dots`,key:`dots`},d),u)}},{key:`renderCurveStatically`,value:function(e,t,n,r){var i=this.props,a=i.type,o=i.layout,s=i.connectNulls;i.ref;var c=UG(UG(UG({},Q(zG(i,IG),!0)),{},{fill:`none`,className:`recharts-line-curve`,clipPath:t?`url(#clipPath-${n})`:null,points:e},r),{},{type:a,layout:o,connectNulls:s});return K.createElement(PF,VG({},c,{pathRef:this.pathRef}))}},{key:`renderCurveWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=r.animateNewValues,f=r.width,p=r.height,m=this.state,h=m.prevPoints,g=m.totalLength;return K.createElement(hR,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`line-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(h){var s=h.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(h[n]){var r=h[n],i=R_(r.x,e.x),a=R_(r.y,e.y);return UG(UG({},e),{},{x:i(o),y:a(o)})}if(d){var c=R_(f*2,e.x),l=R_(p/2,e.y);return UG(UG({},e),{},{x:c(o),y:l(o)})}return UG(UG({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(c,e,t)}var l=R_(0,g)(o),u;if(a){var m=`${a}`.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});u=n.getStrokeDasharray(l,g,m)}else u=n.generateSimpleStrokeDasharray(g,l);return n.renderCurveStatically(i,e,t,{strokeDasharray:u})})}},{key:`renderCurve`,value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,a=this.state,o=a.prevPoints,s=a.totalLength;return i&&r&&r.length&&(!o&&s>0||!(0,XM.default)(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.xAxis,o=e.yAxis,s=e.top,c=e.left,l=e.width,u=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=d(`recharts-line`,i),_=a&&a.allowDataOverflow,v=o&&o.allowDataOverflow,y=_||v,b=(0,O_.default)(p)?this.id:p,x=Q(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(gv(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return K.createElement(Mv,{className:g},_||v?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${b}`},K.createElement(`rect`,{x:_?c:c-l/2,y:v?s:s-u/2,width:_?l:l*2,height:v?u:u*2})),!D&&K.createElement(`clipPath`,{id:`clipPath-dots-${b}`},K.createElement(`rect`,{x:c-O/2,y:s-O/2,width:l+O,height:u+O}))):null,!h&&this.renderCurve(y,b),this.renderErrorBar(y,b),(h||n)&&this.renderDots(y,D,b),(!f||m)&&aF.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points===t.curPoints?null:{curPoints:e.points}:{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}}},{key:`repeat`,value:function(e,t){for(var n=e.length%2==0?e:[].concat(WG(e),[0]),r=[],i=0;i<t;++i)r=[].concat(WG(r),WG(n));return r}},{key:`renderDotItem`,value:function(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,$_.default)(e))n=e(t);else{var r=t.key,i=zG(t,LG),a=d(`recharts-line-dot`,typeof e==`boolean`?``:e.className);n=K.createElement(YR,VG({key:r},i,{className:a}))}return n}}])}(K.PureComponent);oK(lK,`displayName`,`Line`),oK(lK,`defaultProps`,{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,fill:`#fff`,points:[],isAnimationActive:!JC.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,hide:!1,label:!1}),oK(lK,`getComposedData`,function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout;return UG({points:c.map(function(e,t){var c=lN(e,o);return u===`horizontal`?{x:PN({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:(0,O_.default)(c)?null:r.scale(c),value:c,payload:e}:{x:(0,O_.default)(c)?null:n.scale(c),y:PN({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:c,payload:e}}),layout:u},l)});var uK=[`layout`,`type`,`stroke`,`connectNulls`,`isRange`,`ref`],dK=[`key`],fK;function pK(e){"@babel/helpers - typeof";return pK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pK(e)}function mK(e,t){if(e==null)return{};var n=hK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gK(){return gK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gK.apply(this,arguments)}function _K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_K(Object(n),!0).forEach(function(t){kK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yK(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function bK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,AK(r.key),r)}}function xK(e,t,n){return t&&bK(e.prototype,t),n&&bK(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function SK(e,t,n){return t=EK(t),CK(e,TK()?Reflect.construct(t,n||[],EK(e).constructor):t.apply(e,n))}function CK(e,t){if(t&&(pK(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return wK(e)}function wK(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function TK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TK=function(){return!!e})()}function EK(e){return EK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},EK(e)}function DK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&OK(e,t)}function OK(e,t){return OK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OK(e,t)}function kK(e,t,n){return t=AK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AK(e){var t=jK(e,`string`);return pK(t)==`symbol`?t:t+``}function jK(e,t){if(pK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var MK=function(e){function t(){var e;yK(this,t);var n=[...arguments];return e=SK(this,t,[].concat(n)),kK(e,`state`,{isAnimationFinished:!0}),kK(e,`id`,P_(`recharts-area-`)),kK(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),(0,$_.default)(t)&&t()}),kK(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),(0,$_.default)(t)&&t()}),e}return DK(t,e),xK(t,[{key:`renderDots`,value:function(e,n,r){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var o=this.props,s=o.dot,c=o.points,l=o.dataKey,u=Q(this.props,!1),d=Q(s,!0),f=c.map(function(e,n){var r=vK(vK(vK({key:`dot-${n}`,r:3},u),d),{},{index:n,cx:e.x,cy:e.y,dataKey:l,value:e.value,payload:e.payload,points:c});return t.renderDotItem(s,r)}),p={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return K.createElement(Mv,gK({className:`recharts-area-dots`},p),f)}},{key:`renderHorizontalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,o=r[r.length-1].x,s=e*Math.abs(a-o),c=(0,qM.default)(r.map(function(e){return e.y||0}));return Z(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,qM.default)(n.map(function(e){return e.y||0})),c)),Z(c)?K.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}},{key:`renderVerticalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,o=r[r.length-1].y,s=e*Math.abs(a-o),c=(0,qM.default)(r.map(function(e){return e.x||0}));return Z(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,qM.default)(n.map(function(e){return e.x||0})),c)),Z(c)?K.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}},{key:`renderClipRect`,value:function(e){return this.props.layout===`vertical`?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:`renderAreaStatically`,value:function(e,t,n,r){var i=this.props,a=i.layout,o=i.type,s=i.stroke,c=i.connectNulls,l=i.isRange;i.ref;var u=mK(i,uK);return K.createElement(Mv,{clipPath:n?`url(#clipPath-${r})`:null},K.createElement(PF,gK({},Q(u,!0),{points:e,connectNulls:c,type:o,baseLine:t,layout:a,stroke:`none`,className:`recharts-area-area`})),s!==`none`&&K.createElement(PF,gK({},Q(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:e})),s!==`none`&&l&&K.createElement(PF,gK({},Q(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:t})))}},{key:`renderAreaWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=this.state,f=d.prevPoints,p=d.prevBaseLine;return K.createElement(hR,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`area-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(f){var s=f.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(f[n]){var r=f[n],i=R_(r.x,e.x),a=R_(r.y,e.y);return vK(vK({},e),{},{x:i(o),y:a(o)})}return e}),l=Z(a)&&typeof a==`number`?R_(p,a)(o):(0,O_.default)(a)||(0,T_.default)(a)?R_(p,0)(o):a.map(function(e,t){var n=Math.floor(t*s);if(p[n]){var r=p[n],i=R_(r.x,e.x),a=R_(r.y,e.y);return vK(vK({},e),{},{x:i(o),y:a(o)})}return e});return n.renderAreaStatically(c,l,e,t)}return K.createElement(Mv,null,K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`animationClipPath-${t}`},n.renderClipRect(o))),K.createElement(Mv,{clipPath:`url(#animationClipPath-${t})`},n.renderAreaStatically(i,a,e,t)))})}},{key:`renderArea`,value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,o=this.state,s=o.prevPoints,c=o.prevBaseLine,l=o.totalLength;return a&&r&&r.length&&(!s&&l>0||!(0,XM.default)(s,r)||!(0,XM.default)(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,o=e.left,s=e.xAxis,c=e.yAxis,l=e.width,u=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=d(`recharts-area`,i),_=s&&s.allowDataOverflow,v=c&&c.allowDataOverflow,y=_||v,b=(0,O_.default)(p)?this.id:p,x=Q(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(gv(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return K.createElement(Mv,{className:g},_||v?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${b}`},K.createElement(`rect`,{x:_?o:o-l/2,y:v?a:a-u/2,width:_?l:l*2,height:v?u:u*2})),!D&&K.createElement(`clipPath`,{id:`clipPath-dots-${b}`},K.createElement(`rect`,{x:o-O/2,y:a-O/2,width:l+O,height:u+O}))):null,h?null:this.renderArea(y,b),(n||h)&&this.renderDots(y,D,b),(!f||m)&&aF.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null:{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}}}])}(K.PureComponent);fK=MK,kK(MK,`displayName`,`Area`),kK(MK,`defaultProps`,{stroke:`#3182bd`,fill:`#3182bd`,fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:`line`,connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!JC.isSsr,animationBegin:0,animationDuration:1500,animationEasing:`ease`}),kK(MK,`getBaseValue`,function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue??a;if(Z(o)&&typeof o==`number`)return o;var s=i===`horizontal`?r:n,c=s.scale.domain();if(s.type===`number`){var l=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return o===`dataMin`?u:o===`dataMax`||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return o===`dataMin`?c[0]:o===`dataMax`?c[1]:c[0]}),kK(MK,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=l&&l.length,h=fK.getBaseValue(t,n,r,i),g=p===`horizontal`,_=!1,v=d.map(function(e,t){var n;m?n=l[u+t]:(n=lN(e,c),Array.isArray(n)?_=!0:n=[h,n]);var d=n[1]==null||m&&lN(e,c)==null;return g?{x:PN({axis:r,ticks:a,bandSize:s,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:r.scale(n[1]),y:PN({axis:i,ticks:o,bandSize:s,entry:e,index:t}),value:n,payload:e}});return vK({points:v,baseLine:m||_?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?i.scale(t):null}:{x:t==null?null:r.scale(t),y:e.y}}):g?i.scale(h):r.scale(h),layout:p,isRange:_},f)}),kK(MK,`renderDotItem`,function(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if((0,$_.default)(e))n=e(t);else{var r=d(`recharts-area-dot`,typeof e==`boolean`?``:e.className),i=t.key,a=mK(t,dK);n=K.createElement(YR,gK({},a,{key:i,className:r}))}return n});function NK(e){"@babel/helpers - typeof";return NK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},NK(e)}function PK(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function FK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,GK(r.key),r)}}function IK(e,t,n){return t&&FK(e.prototype,t),n&&FK(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function LK(e,t,n){return t=VK(t),RK(e,BK()?Reflect.construct(t,n||[],VK(e).constructor):t.apply(e,n))}function RK(e,t){if(t&&(NK(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return zK(e)}function zK(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function BK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BK=function(){return!!e})()}function VK(e){return VK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VK(e)}function HK(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&UK(e,t)}function UK(e,t){return UK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UK(e,t)}function WK(e,t,n){return t=GK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GK(e){var t=KK(e,`string`);return NK(t)==`symbol`?t:t+``}function KK(e,t){if(NK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(NK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qK=function(e){function t(){return PK(this,t),LK(this,t,arguments)}return HK(t,e),IK(t,[{key:`render`,value:function(){return null}}])}(K.Component);WK(qK,`displayName`,`ZAxis`),WK(qK,`defaultProps`,{zAxisId:0,range:[64,64],scale:`auto`,type:`number`});var JK=[`option`,`isActive`];function YK(){return YK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YK.apply(this,arguments)}function XK(e,t){if(e==null)return{};var n=ZK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QK(e){var t=e.option,n=e.isActive,r=XK(e,JK);return typeof t==`string`?K.createElement(PB,YK({option:K.createElement(kb,YK({type:t},r)),isActive:n,shapeType:`symbols`},r)):K.createElement(PB,YK({option:t,isActive:n,shapeType:`symbols`},r))}function $K(e){"@babel/helpers - typeof";return $K=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$K(e)}function eq(){return eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eq.apply(this,arguments)}function tq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tq(Object(n),!0).forEach(function(t){pq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function iq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,mq(r.key),r)}}function aq(e,t,n){return t&&iq(e.prototype,t),n&&iq(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function oq(e,t,n){return t=uq(t),sq(e,lq()?Reflect.construct(t,n||[],uq(e).constructor):t.apply(e,n))}function sq(e,t){if(t&&($K(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cq(e)}function cq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lq=function(){return!!e})()}function uq(e){return uq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uq(e)}function dq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&fq(e,t)}function fq(e,t){return fq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fq(e,t)}function pq(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=hq(e,`string`);return $K(t)==`symbol`?t:t+``}function hq(e,t){if($K(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($K(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gq=function(e){function t(){var e;rq(this,t);var n=[...arguments];return e=oq(this,t,[].concat(n)),pq(e,`state`,{isAnimationFinished:!1}),pq(e,`handleAnimationEnd`,function(){e.setState({isAnimationFinished:!0})}),pq(e,`handleAnimationStart`,function(){e.setState({isAnimationFinished:!1})}),pq(e,`id`,P_(`recharts-scatter-`)),e}return dq(t,e),aq(t,[{key:`renderSymbolsStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,a=n.activeIndex,o=Q(this.props,!1);return e.map(function(e,n){var s=a===n,c=s?i:r,l=nq(nq({},o),e);return K.createElement(Mv,eq({className:`recharts-scatter-symbol`,key:`symbol-${e?.cx}-${e?.cy}-${e?.size}-${n}`},Q_(t.props,e,n),{role:`img`}),K.createElement(QK,eq({option:c,isActive:s,key:`symbol-${n}`},l)))})}},{key:`renderSymbolsWithAnimation`,value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,s=t.animationId,c=this.state.prevPoints;return K.createElement(hR,{begin:i,duration:a,isActive:r,easing:o,from:{t:0},to:{t:1},key:`pie-${s}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var r=t.t,i=n.map(function(e,t){var n=c&&c[t];if(n){var i=R_(n.cx,e.cx),a=R_(n.cy,e.cy),o=R_(n.size,e.size);return nq(nq({},e),{},{cx:i(r),cy:a(r),size:o(r)})}var s=R_(0,e.size);return nq(nq({},e),{},{size:s(r)})});return K.createElement(Mv,null,e.renderSymbolsStatically(i))})}},{key:`renderSymbols`,value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return n&&t&&t.length&&(!r||!(0,XM.default)(r,t))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(t)}},{key:`renderErrorBar`,value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=e.children,a=dv(i,zM);return a?a.map(function(e,i){var a=e.props,o=a.direction,s=a.dataKey;return K.cloneElement(e,{key:`${o}-${s}-${t[i]}`,data:t,xAxis:n,yAxis:r,layout:o===`x`?`vertical`:`horizontal`,dataPointFormatter:function(e,t){return{x:e.cx,y:e.cy,value:o===`x`?+e.node.x:+e.node.y,errorVal:lN(e,t)}}})}):null}},{key:`renderLine`,value:function(){var e=this.props,t=e.points,n=e.line,r=e.lineType,i=e.lineJointType,a=Q(this.props,!1),o=Q(n,!1),s,c;if(r===`joint`)s=t.map(function(e){return{x:e.cx,y:e.cy}});else if(r===`fitting`){var l=B_(t),u=l.xmin,d=l.xmax,f=l.a,p=l.b,m=function(e){return f*e+p};s=[{x:u,y:m(u)},{x:d,y:m(d)}]}var h=nq(nq(nq({},a),{},{fill:`none`,stroke:a&&a.fill},o),{},{points:s});return c=K.isValidElement(n)?K.cloneElement(n,h):(0,$_.default)(n)?n(h):K.createElement(PF,eq({},h,{type:i})),K.createElement(Mv,{className:`recharts-scatter-line`,key:`recharts-scatter-line`},c)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,i=e.className,a=e.xAxis,o=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,f=e.id,p=e.isAnimationActive;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=d(`recharts-scatter`,i),g=a&&a.allowDataOverflow,_=o&&o.allowDataOverflow,v=g||_,y=(0,O_.default)(f)?this.id:f;return K.createElement(Mv,{className:h,clipPath:v?`url(#clipPath-${y})`:null},g||_?K.createElement(`defs`,null,K.createElement(`clipPath`,{id:`clipPath-${y}`},K.createElement(`rect`,{x:g?s:s-l/2,y:_?c:c-u/2,width:g?l:l*2,height:_?u:u*2}))):null,r&&this.renderLine(),this.renderErrorBar(),K.createElement(Mv,{key:`recharts-scatter-symbols`},this.renderSymbols()),(!p||m)&&aF.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points===t.curPoints?null:{curPoints:e.points}:{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}}}])}(K.PureComponent);pq(gq,`displayName`,`Scatter`),pq(gq,`defaultProps`,{xAxisId:0,yAxisId:0,zAxisId:0,legendType:`circle`,lineType:`joint`,lineJointType:`linear`,data:[],shape:`circle`,hide:!1,isAnimationActive:!JC.isSsr,animationBegin:0,animationDuration:400,animationEasing:`linear`}),pq(gq,`getComposedData`,function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,l=i.props.tooltipType,u=dv(i.props.children,Nw),d=(0,O_.default)(t.dataKey)?i.props.dataKey:t.dataKey,f=(0,O_.default)(n.dataKey)?i.props.dataKey:n.dataKey,p=r&&r.dataKey,m=r?r.range:qK.defaultProps.range,h=m&&m[0],g=t.scale.bandwidth?t.scale.bandwidth():0,_=n.scale.bandwidth?n.scale.bandwidth():0;return nq({points:a.map(function(e,a){var c=lN(e,d),m=lN(e,f),v=!(0,O_.default)(p)&&lN(e,p)||`-`,y=[{name:(0,O_.default)(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||``,value:c,payload:e,dataKey:d,type:l},{name:(0,O_.default)(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||``,value:m,payload:e,dataKey:f,type:l}];v!==`-`&&y.push({name:r.name||r.dataKey,unit:r.unit||``,value:v,payload:e,dataKey:p,type:l});var b=PN({axis:t,ticks:o,bandSize:g,entry:e,index:a,dataKey:d}),x=PN({axis:n,ticks:s,bandSize:_,entry:e,index:a,dataKey:f}),S=v===`-`?h:r.scale(v),C=Math.sqrt(Math.max(S,0)/Math.PI);return nq(nq({},e),{},{cx:b,cy:x,x:b-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:S,node:{x:c,y:m,z:v},tooltipPayload:y,tooltipPosition:{x:b,y:x},payload:e},u&&u[a]&&u[a].props)})},c)});function _q(e){"@babel/helpers - typeof";return _q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_q(e)}function vq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,kq(r.key),r)}}function bq(e,t,n){return t&&yq(e.prototype,t),n&&yq(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xq(e,t,n){return t=Tq(t),Sq(e,wq()?Reflect.construct(t,n||[],Tq(e).constructor):t.apply(e,n))}function Sq(e,t){if(t&&(_q(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Cq(e)}function Cq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wq=function(){return!!e})()}function Tq(e){return Tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tq(e)}function Eq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Dq(e,t)}function Dq(e,t){return Dq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dq(e,t)}function Oq(e,t,n){return t=kq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kq(e){var t=Aq(e,`string`);return _q(t)==`symbol`?t:t+``}function Aq(e,t){if(_q(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_q(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jq(){return jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jq.apply(this,arguments)}function Mq(e){var t=e.xAxisId,n=_U(),r=vU(),i=dU(t);return i==null?null:K.createElement(mG,jq({},i,{className:d(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return SN(e,!0)}}))}var Nq=function(e){function t(){return vq(this,t),xq(this,t,arguments)}return Eq(t,e),bq(t,[{key:`render`,value:function(){return K.createElement(Mq,this.props)}}])}(K.Component);Oq(Nq,`displayName`,`XAxis`),Oq(Nq,`defaultProps`,{allowDecimals:!0,hide:!1,orientation:`bottom`,width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:`category`,padding:{left:0,right:0},allowDataOverflow:!1,scale:`auto`,reversed:!1,allowDuplicatedCategory:!0});function Pq(e){"@babel/helpers - typeof";return Pq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pq(e)}function Fq(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Iq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Kq(r.key),r)}}function Lq(e,t,n){return t&&Iq(e.prototype,t),n&&Iq(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Rq(e,t,n){return t=Hq(t),zq(e,Vq()?Reflect.construct(t,n||[],Hq(e).constructor):t.apply(e,n))}function zq(e,t){if(t&&(Pq(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Bq(e)}function Bq(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Vq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vq=function(){return!!e})()}function Hq(e){return Hq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hq(e)}function Uq(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Wq(e,t)}function Wq(e,t){return Wq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wq(e,t)}function Gq(e,t,n){return t=Kq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kq(e){var t=qq(e,`string`);return Pq(t)==`symbol`?t:t+``}function qq(e,t){if(Pq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jq(){return Jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jq.apply(this,arguments)}var Yq=function(e){var t=e.yAxisId,n=_U(),r=vU(),i=mU(t);return i==null?null:K.createElement(mG,Jq({},i,{className:d(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return SN(e,!0)}}))},Xq=function(e){function t(){return Fq(this,t),Rq(this,t,arguments)}return Uq(t,e),Lq(t,[{key:`render`,value:function(){return K.createElement(Yq,this.props)}}])}(K.Component);Gq(Xq,`displayName`,`YAxis`),Gq(Xq,`defaultProps`,{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:`left`,width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:`number`,padding:{top:0,bottom:0},allowDataOverflow:!1,scale:`auto`,reversed:!1});function Zq(e){return tJ(e)||eJ(e)||$q(e)||Qq()}function Qq(){throw TypeError(`Invalid attempt to spread non-iterable instance.
104
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $q(e,t){if(e){if(typeof e==`string`)return nJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nJ(e,t)}}function eJ(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tJ(e){if(Array.isArray(e))return nJ(e)}function nJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rJ=function(e,t,n,r,i){var a=dv(e,KU),o=dv(e,dW),s=[].concat(Zq(a),Zq(o)),c=dv(e,AW),l=`${r}Id`,u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[l]===n&&GV(t.props,`extendDomain`)&&Z(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),c.length){var f=`${u}1`,p=`${u}2`;d=c.reduce(function(e,t){if(t.props[l]===n&&GV(t.props,`extendDomain`)&&Z(t.props[f])&&Z(t.props[p])){var r=t.props[f],i=t.props[p];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e},d)}return i&&i.length&&(d=i.reduce(function(e,t){return Z(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},iJ=new(l(o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))())).default,aJ=`recharts.syncMouseEvents`;function oJ(e){"@babel/helpers - typeof";return oJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oJ(e)}function sJ(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function cJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,dJ(r.key),r)}}function lJ(e,t,n){return t&&cJ(e.prototype,t),n&&cJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function uJ(e,t,n){return t=dJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dJ(e){var t=fJ(e,`string`);return oJ(t)==`symbol`?t:t+``}function fJ(e,t){if(oJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(oJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pJ=function(){function e(){sJ(this,e),uJ(this,`activeIndex`,0),uJ(this,`coordinateList`,[]),uJ(this,`layout`,`horizontal`)}return lJ(e,[{key:`setDetails`,value:function(e){var t=e.coordinateList,n=t===void 0?null:t,r=e.container,i=r===void 0?null:r,a=e.layout,o=a===void 0?null:a,s=e.offset,c=s===void 0?null:s,l=e.mouseHandlerCallback,u=l===void 0?null:l;this.coordinateList=n??this.coordinateList??[],this.container=i??this.container,this.layout=o??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=u??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:`focus`,value:function(){this.spoofMouse()}},{key:`keyboardEvent`,value:function(e){if(this.coordinateList.length!==0)switch(e.key){case`ArrowRight`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case`ArrowLeft`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break;default:break}}},{key:`setIndex`,value:function(e){this.activeIndex=e}},{key:`spoofMouse`,value:function(){if(this.layout===`horizontal`&&this.coordinateList.length!==0){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=e.height,i=this.coordinateList[this.activeIndex].coordinate,a=window?.scrollX||0,o=window?.scrollY||0,s=t+i+a,c=n+this.offset.top+r/2+o;this.mouseHandlerCallback({pageX:s,pageY:c})}}}])}();function mJ(e,t,n){if(n===`number`&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&Z(r)&&Z(i))return!0}return!1}function hJ(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function gJ(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[oP(t,n,r,i),oP(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function _J(e,t,n){var r,i,a,o;if(e===`horizontal`)r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e===`vertical`)i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e===`centric`){var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,d=t.angle,f=oP(s,c,l,d),p=oP(s,c,u,d);r=f.x,i=f.y,a=p.x,o=p.y}else return gJ(t);return[{x:r,y:i},{x:a,y:o}]}function vJ(e){"@babel/helpers - typeof";return vJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vJ(e)}function yJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yJ(Object(n),!0).forEach(function(t){xJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xJ(e,t,n){return t=SJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SJ(e){var t=CJ(e,`string`);return vJ(t)==`symbol`?t:t+``}function CJ(e,t){if(vJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wJ(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,a=e.activePayload,o=e.offset,s=e.activeTooltipIndex,c=e.tooltipAxisBandSize,l=e.layout,u=e.chartName,f=t.props.cursor??t.type.defaultProps?.cursor;if(!t||!f||!r||!i||u!==`ScatterChart`&&n!==`axis`)return null;var p,m=PF;if(u===`ScatterChart`)p=i,m=sz;else if(u===`BarChart`)p=hJ(l,i,o,c),m=MR;else if(l===`radial`){var h=gJ(i),g=h.cx,_=h.cy,v=h.radius;p={cx:g,cy:_,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},m=bF}else p={points:_J(l,i,o)},m=PF;var y=bJ(bJ(bJ(bJ({stroke:`#ccc`,pointerEvents:`none`},o),p),Q(f,!1)),{},{payload:a,payloadIndex:s,className:d(`recharts-tooltip-cursor`,f.className)});return(0,K.isValidElement)(f)?(0,K.cloneElement)(f,y):(0,K.createElement)(m,y)}var TJ=[`item`],EJ=[`children`,`className`,`width`,`height`,`style`,`compact`,`title`,`desc`];function DJ(e){"@babel/helpers - typeof";return DJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DJ(e)}function OJ(){return OJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OJ.apply(this,arguments)}function kJ(e,t){return MJ(e)||jJ(e,t)||qJ(e,t)||AJ()}function AJ(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
105
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jJ(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function MJ(e){if(Array.isArray(e))return e}function NJ(e,t){if(e==null)return{};var n=PJ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function FJ(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function IJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,$J(r.key),r)}}function LJ(e,t,n){return t&&IJ(e.prototype,t),n&&IJ(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function RJ(e,t,n){return t=HJ(t),zJ(e,VJ()?Reflect.construct(t,n||[],HJ(e).constructor):t.apply(e,n))}function zJ(e,t){if(t&&(DJ(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return BJ(e)}function BJ(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function VJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VJ=function(){return!!e})()}function HJ(e){return HJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HJ(e)}function UJ(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&WJ(e,t)}function WJ(e,t){return WJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WJ(e,t)}function GJ(e){return YJ(e)||JJ(e)||qJ(e)||KJ()}function KJ(){throw TypeError(`Invalid attempt to spread non-iterable instance.
106
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qJ(e,t){if(e){if(typeof e==`string`)return XJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XJ(e,t)}}function JJ(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function YJ(e){if(Array.isArray(e))return XJ(e)}function XJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZJ(Object(n),!0).forEach(function(t){QJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QJ(e,t,n){return t=$J(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $J(e){var t=eY(e,`string`);return DJ(t)==`symbol`?t:t+``}function eY(e,t){if(DJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tY={xAxis:[`bottom`,`top`],yAxis:[`left`,`right`]},nY={width:`100%`,height:`100%`},rY={x:0,y:0};function iY(e){return e}var aY=function(e,t){return t===`horizontal`?e.x:t===`vertical`?e.y:t===`centric`?e.angle:e.radius},oY=function(e,t,n,r){var i=t.find(function(e){return e&&e.index===n});if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.y};if(e===`vertical`)return{x:r.x,y:i.coordinate};if(e===`centric`){var a=i.coordinate,o=r.radius;return $($($({},r),oP(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return $($($({},r),oP(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return rY},sY=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,a=(n??[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(GJ(e),GJ(n)):e},[]);return a.length>0?a:e&&e.length&&Z(r)&&Z(i)?e.slice(r,i+1):[]};function cY(e){return e===`number`?[0,`auto`]:void 0}var lY=function(e,t,n,r){var i=e.graphicalItems,a=e.tooltipAxis,o=sY(t,e);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(i,s){var c=s.props.data??t;c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1));var l=a.dataKey&&!a.allowDuplicatedCategory?z_(c===void 0?o:c,a.dataKey,r):c&&c[n]||o[n];return l?[].concat(GJ(i),[GN(s,l)]):i},[])},uY=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},a=aY(i,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=dN(a,o,c,s);if(l>=0&&c){var u=c[l]&&c[l].value;return{activeTooltipIndex:l,activeLabel:u,activePayload:lY(e,t,l,u),activeCoordinate:oY(n,o,l,i)}}return null},dY=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=e.stackOffset,f=bN(l,i);return n.reduce(function(t,n){var p=n.type.defaultProps===void 0?n.props:$($({},n.type.defaultProps),n.props),m=p.type,h=p.dataKey,g=p.allowDataOverflow,_=p.allowDuplicatedCategory,v=p.scale,y=p.ticks,b=p.includeHidden,x=p[a];if(t[x])return t;var S=sY(e.data,{graphicalItems:r.filter(function(e){return(a in e.props?e.props[a]:e.type.defaultProps?.[a])===x}),dataStartIndex:s,dataEndIndex:c}),C=S.length,w,T,E;mJ(p.domain,g,m)&&(w=HN(p.domain,null,g),f&&(m===`number`||v!==`auto`)&&(E=uN(S,h,`category`)));var D=cY(m);if(!w||w.length===0){var O=p.domain??D;if(h){if(w=uN(S,h,m),m===`category`&&f){var k=L_(w);_&&k?(T=w,w=(0,SV.default)(0,C)):_||(w=WN(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(GJ(e),[t])},[]))}else if(m===`category`)w=_?w.filter(function(e){return e!==``&&!(0,O_.default)(e)}):WN(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0||t===``||(0,O_.default)(t)?e:[].concat(GJ(e),[t])},[]);else if(m===`number`){var A=vN(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===x&&(b||!n)}),h,i,l);A&&(w=A)}f&&(m===`number`||v!==`auto`)&&(E=uN(S,h,`category`))}else w=f?(0,SV.default)(0,C):o&&o[x]&&o[x].hasStack&&m===`number`?d===`expand`?[0,1]:zN(o[x].stackGroups,s,c):yN(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps.hide;return t===x&&(b||!n)}),m,l,!0);if(m===`number`)w=rJ(u,w,x,i,y),O&&(w=HN(O,w,g));else if(m===`category`&&O){var j=O;w.every(function(e){return j.indexOf(e)>=0})&&(w=j)}}return $($({},t),{},QJ({},x,$($({},p),{},{axisType:i,domain:w,categoricalDomain:E,duplicateDomain:T,originalDomain:p.domain??D,isCategorical:f,layout:l})))},{})},fY=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=sY(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),f=d.length,p=bN(l,i),m=-1;return n.reduce(function(e,t){var h=(t.type.defaultProps===void 0?t.props:$($({},t.type.defaultProps),t.props))[a],g=cY(`number`);if(!e[h]){m++;var _;return p?_=(0,SV.default)(0,f):o&&o[h]&&o[h].hasStack?(_=zN(o[h].stackGroups,s,c),_=rJ(u,_,h,i)):(_=HN(g,yN(d,n.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===h&&!n}),`number`,l),r.defaultProps.allowDataOverflow),_=rJ(u,_,h,i)),$($({},e),{},QJ({},h,$($({axisType:i},r.defaultProps),{},{hide:!0,orientation:(0,E_.default)(tY,`${i}.${m%2}`,null),domain:_,originalDomain:g,isCategorical:p,layout:l})))}return e},{})},pY=function(e,t){var n=t.axisType,r=n===void 0?`xAxis`:n,i=t.AxisComp,a=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u=`${r}Id`,d=dv(l,i),f={};return d&&d.length?f=dY(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c}):a&&a.length&&(f=fY(e,{Axis:i,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c})),f},mY=function(e){var t=I_(e),n=SN(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,iC.default)(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:UN(t,n)}},hY=function(e){var t=e.children,n=e.defaultShowTooltip,r=fv(t,HV),i=0,a=0;return e.data&&e.data.length!==0&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},gY=function(e){return!e||!e.length?!1:e.some(function(e){var t=sv(e&&e.type);return t&&t.indexOf(`Bar`)>=0})},_Y=function(e){return e===`horizontal`?{numericAxisName:`yAxis`,cateAxisName:`xAxis`}:e===`vertical`?{numericAxisName:`xAxis`,cateAxisName:`yAxis`}:e===`centric`?{numericAxisName:`radiusAxis`,cateAxisName:`angleAxis`}:{numericAxisName:`angleAxis`,cateAxisName:`radiusAxis`}},vY=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,a=i===void 0?{}:i,o=e.yAxisMap,s=o===void 0?{}:o,c=n.width,l=n.height,u=n.children,d=n.margin||{},f=fv(u,HV),p=fv(u,IS),m=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return!n.mirror&&!n.hide?$($({},e),{},QJ({},r,e[r]+n.width)):e},{left:d.left||0,right:d.right||0}),h=$($({},Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return!n.mirror&&!n.hide?$($({},e),{},QJ({},r,(0,E_.default)(e,`${r}`)+n.height)):e},{top:d.top||0,bottom:d.bottom||0})),m),g=h.bottom;f&&(h.bottom+=f.props.height||HV.defaultProps.height),p&&t&&(h=hN(h,r,n,t));var _=c-h.left-h.right,v=l-h.top-h.bottom;return $($({brushBottom:g},h),{},{width:Math.max(_,0),height:Math.max(v,0)})},yY=function(e,t){if(t===`xAxis`)return e[t].width;if(t===`yAxis`)return e[t].height},bY=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,i=r===void 0?`axis`:r,a=e.validateTooltipEventTypes,o=a===void 0?[`axis`]:a,s=e.axisComponents,c=e.legendContent,l=e.formatAxisMap,u=e.defaultProps,f=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,a=t.updateId,o=t.dataStartIndex,c=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,m=_Y(u),h=m.numericAxisName,g=m.cateAxisName,_=gY(n),v=[];return n.forEach(function(n,m){var y=sY(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:c}),b=n.type.defaultProps===void 0?n.props:$($({},n.type.defaultProps),n.props),x=b.dataKey,S=b.maxBarSize,C=b[`${h}Id`],w=b[`${g}Id`],T=s.reduce(function(e,n){var r=t[`${n.axisType}Map`],i=b[`${n.axisType}Id`];!(r&&r[i]||n.axisType===`zAxis`)&&mM(!1);var a=r[i];return $($({},e),{},QJ(QJ({},n.axisType,a),`${n.axisType}Ticks`,SN(a)))},{}),E=T[g],D=T[`${g}Ticks`],O=r&&r[C]&&r[C].hasStack&&LN(n,r[C].stackGroups),k=sv(n.type).indexOf(`Bar`)>=0,A=UN(E,D),j=[],M=_&&pN({barSize:l,stackGroups:r,totalSize:yY(T,g)});if(k){var N=(0,O_.default)(S)?p:S,P=UN(E,D,!0)??N??0;j=mN({barGap:d,barCategoryGap:f,bandSize:P===A?A:P,sizeList:M[w],maxBarSize:N}),P!==A&&(j=j.map(function(e){return $($({},e),{},{position:$($({},e.position),{},{offset:e.position.offset-P/2})})}))}var F=n&&n.type&&n.type.getComposedData;F&&v.push({props:$($({},F($($({},T),{},{displayedData:y,props:e,dataKey:x,item:n,bandSize:A,barPosition:j,offset:i,stackedData:O,layout:u,dataStartIndex:o,dataEndIndex:c}))),{},QJ(QJ(QJ({key:n.key||`item-${m}`},h,T[h]),g,T[g]),`animationId`,a)),childIndex:Sv(n,e.children),item:n})}),v},p=function(e,r){var i=e.props,a=e.dataStartIndex,o=e.dataEndIndex,c=e.updateId;if(!pv({props:i}))return null;var u=i.children,d=i.layout,p=i.stackOffset,m=i.data,h=i.reverseStackOrder,g=_Y(d),_=g.numericAxisName,v=g.cateAxisName,y=dv(u,n),b=MN(m,y,`${_}Id`,`${v}Id`,p,h),x=s.reduce(function(e,t){var n=`${t.axisType}Map`;return $($({},e),{},QJ({},n,pY(i,$($({},t),{},{graphicalItems:y,stackGroups:t.axisType===_&&b,dataStartIndex:a,dataEndIndex:o}))))},{}),S=vY($($({},x),{},{props:i,graphicalItems:y}),r?.legendBBox);Object.keys(x).forEach(function(e){x[e]=l(i,x[e],S,e.replace(`Map`,``),t)});var C=x[`${v}Map`],w=mY(C);return $($({formattedGraphicalItems:f(i,$($({},x),{},{dataStartIndex:a,dataEndIndex:o,updateId:c,graphicalItems:y,stackGroups:b,offset:S})),graphicalItems:y,offset:S,stackGroups:b},w),x)},m=function(e){function n(e){var r;return FJ(this,n),r=RJ(this,n,[e]),QJ(r,`eventEmitterSymbol`,Symbol(`rechartsEventEmitter`)),QJ(r,`accessibilityManager`,new pJ),QJ(r,`handleLegendBBoxUpdate`,function(e){if(e){var t=r.state,n=t.dataStartIndex,i=t.dataEndIndex,a=t.updateId;r.setState($({legendBBox:e},p({props:r.props,dataStartIndex:n,dataEndIndex:i,updateId:a},$($({},r.state),{},{legendBBox:e}))))}}),QJ(r,`handleReceiveSyncEvent`,function(e,t,n){if(r.props.syncId===e){if(n===r.eventEmitterSymbol&&typeof r.props.syncMethod!=`function`)return;r.applySyncEvent(t)}}),QJ(r,`handleBrushChange`,function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var i=r.state.updateId;r.setState(function(){return $({dataStartIndex:t,dataEndIndex:n},p({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:i},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),QJ(r,`handleMouseEnter`,function(e){var t=r.getMouseInfo(e);if(t){var n=$($({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseEnter;(0,$_.default)(i)&&i(n,e)}}),QJ(r,`triggeredAfterMouseMove`,function(e){var t=r.getMouseInfo(e),n=t?$($({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseMove;(0,$_.default)(i)&&i(n,e)}),QJ(r,`handleItemMouseEnter`,function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),QJ(r,`handleItemMouseLeave`,function(){r.setState(function(){return{isTooltipActive:!1}})}),QJ(r,`handleMouseMove`,function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),QJ(r,`handleMouseLeave`,function(e){r.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;(0,$_.default)(n)&&n(t,e)}),QJ(r,`handleOuterEvent`,function(e){var t=xv(e),n=(0,E_.default)(r.props,`${t}`);t&&(0,$_.default)(n)&&n((/.*touch.*/i.test(t)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))??{},e)}),QJ(r,`handleClick`,function(e){var t=r.getMouseInfo(e);if(t){var n=$($({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onClick;(0,$_.default)(i)&&i(n,e)}}),QJ(r,`handleMouseDown`,function(e){var t=r.props.onMouseDown;(0,$_.default)(t)&&t(r.getMouseInfo(e),e)}),QJ(r,`handleMouseUp`,function(e){var t=r.props.onMouseUp;(0,$_.default)(t)&&t(r.getMouseInfo(e),e)}),QJ(r,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),QJ(r,`handleTouchStart`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),QJ(r,`handleTouchEnd`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),QJ(r,`handleDoubleClick`,function(e){var t=r.props.onDoubleClick;(0,$_.default)(t)&&t(r.getMouseInfo(e),e)}),QJ(r,`handleContextMenu`,function(e){var t=r.props.onContextMenu;(0,$_.default)(t)&&t(r.getMouseInfo(e),e)}),QJ(r,`triggerSyncEvent`,function(e){r.props.syncId!==void 0&&iJ.emit(aJ,r.props.syncId,e,r.eventEmitterSymbol)}),QJ(r,`applySyncEvent`,function(e){var t=r.props,n=t.layout,i=t.syncMethod,a=r.state.updateId,o=e.dataStartIndex,s=e.dataEndIndex;if(e.dataStartIndex!==void 0||e.dataEndIndex!==void 0)r.setState($({dataStartIndex:o,dataEndIndex:s},p({props:r.props,dataStartIndex:o,dataEndIndex:s,updateId:a},r.state)));else if(e.activeTooltipIndex!==void 0){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,d=r.state,f=d.offset,m=d.tooltipTicks;if(!f)return;if(typeof i==`function`)u=i(m,e);else if(i===`value`){u=-1;for(var h=0;h<m.length;h++)if(m[h].value===e.activeLabel){u=h;break}}var g=$($({},f),{},{x:f.left,y:f.top}),_=Math.min(c,g.x+g.width),v=Math.min(l,g.y+g.height),y=m[u]&&m[u].value,b=lY(r.state,r.props.data,u),x=m[u]?{x:n===`horizontal`?m[u].coordinate:_,y:n===`horizontal`?v:m[u].coordinate}:rY;r.setState($($({},e),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else r.setState(e)}),QJ(r,`renderCursor`,function(e){var n=r.state,i=n.isTooltipActive,a=n.activeCoordinate,o=n.activePayload,s=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,u=r.getTooltipEventType(),d=e.props.active??i,f=r.props.layout,p=e.key||`_recharts-cursor`;return K.createElement(wJ,{key:p,activeCoordinate:a,activePayload:o,activeTooltipIndex:c,chartName:t,element:e,isActive:d,layout:f,offset:s,tooltipAxisBandSize:l,tooltipEventType:u})}),QJ(r,`renderPolarAxis`,function(e,t,n){var i=(0,E_.default)(e,`type.axisType`),a=(0,E_.default)(r.state,`${i}Map`),o=e.type.defaultProps,s=o===void 0?e.props:$($({},o),e.props),c=a&&a[s[`${i}Id`]];return(0,K.cloneElement)(e,$($({},c),{},{className:d(i,c.className),key:e.key||`${t}-${n}`,ticks:SN(c,!0)}))}),QJ(r,`renderPolarGrid`,function(e){var t=e.props,n=t.radialLines,i=t.polarAngles,a=t.polarRadius,o=r.state,s=o.radiusAxisMap,c=o.angleAxisMap,l=I_(s),u=I_(c),d=u.cx,f=u.cy,p=u.innerRadius,m=u.outerRadius;return(0,K.cloneElement)(e,{polarAngles:Array.isArray(i)?i:SN(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:SN(l,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:p,outerRadius:m,key:e.key||`polar-grid`,radialLines:n})}),QJ(r,`renderLegend`,function(){var e=r.state.formattedGraphicalItems,t=r.props,n=t.children,i=t.width,a=t.height,o=r.props.margin||{},s=KM({children:n,formattedGraphicalItems:e,legendWidth:i-(o.left||0)-(o.right||0),legendContent:c});if(!s)return null;var l=s.item;return(0,K.cloneElement)(l,$($({},NJ(s,TJ)),{},{chartWidth:i,chartHeight:a,margin:o,onBBoxUpdate:r.handleLegendBBoxUpdate}))}),QJ(r,`renderTooltip`,function(){var e=r.props,t=e.children,n=e.accessibilityLayer,i=fv(t,pw);if(!i)return null;var a=r.state,o=a.isTooltipActive,s=a.activeCoordinate,c=a.activePayload,l=a.activeLabel,u=a.offset,d=i.props.active??o;return(0,K.cloneElement)(i,{viewBox:$($({},u),{},{x:u.left,y:u.top}),active:d,label:l,payload:d?c:[],coordinate:s,accessibilityLayer:n})}),QJ(r,`renderBrush`,function(e){var t=r.props,n=t.margin,i=t.data,a=r.state,o=a.offset,s=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,K.cloneElement)(e,{key:e.key||`_recharts-brush`,onChange:wN(r.handleBrushChange,e.props.onChange),data:i,x:Z(e.props.x)?e.props.x:o.left,y:Z(e.props.y)?e.props.y:o.top+o.height+o.brushBottom-(n.bottom||0),width:Z(e.props.width)?e.props.width:o.width,startIndex:s,endIndex:c,updateId:`brush-${l}`})}),QJ(r,`renderReferenceElement`,function(e,t,n){if(!e)return null;var i=r.clipPathId,a=r.state,o=a.xAxisMap,s=a.yAxisMap,c=a.offset,l=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=d===void 0?l.xAxisId:d,p=u.yAxisId,m=p===void 0?l.yAxisId:p;return(0,K.cloneElement)(e,{key:e.key||`${t}-${n}`,xAxis:o[f],yAxis:s[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})}),QJ(r,`renderActivePoints`,function(e){var t=e.item,r=e.activePoint,i=e.basePoint,a=e.childIndex,o=e.isRange,s=[],c=t.props.key,l=t.item.type.defaultProps===void 0?t.item.props:$($({},t.item.type.defaultProps),t.item.props),u=l.activeDot,d=l.dataKey,f=$($({index:a,dataKey:d,cx:r.x,cy:r.y,r:4,fill:fN(t.item),strokeWidth:2,stroke:`#fff`,payload:r.payload,value:r.value},Q(u,!1)),X_(u));return s.push(n.renderActiveDot(u,f,`${c}-activePoint-${a}`)),i?s.push(n.renderActiveDot(u,$($({},f),{},{cx:i.x,cy:i.y}),`${c}-basePoint-${a}`)):o&&s.push(null),s}),QJ(r,`renderGraphicChild`,function(e,t,n){var i=r.filterFormatItem(e,t,n);if(!i)return null;var a=r.getTooltipEventType(),o=r.state,s=o.isTooltipActive,c=o.tooltipAxis,l=o.activeTooltipIndex,u=o.activeLabel,d=r.props.children,f=fv(d,pw),p=i.props,m=p.points,h=p.isRange,g=p.baseLine,_=i.item.type.defaultProps===void 0?i.item.props:$($({},i.item.type.defaultProps),i.item.props),v=_.activeDot,y=_.hide,b=_.activeBar,x=_.activeShape,S=!!(!y&&s&&f&&(v||b||x)),C={};a!==`axis`&&f&&f.props.trigger===`click`?C={onClick:wN(r.handleItemMouseEnter,e.props.onClick)}:a!==`axis`&&(C={onMouseLeave:wN(r.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:wN(r.handleItemMouseEnter,e.props.onMouseEnter)});var w=(0,K.cloneElement)(e,$($({},i.props),C));function T(e){return typeof c.dataKey==`function`?c.dataKey(e.payload):null}if(S)if(l>=0){var E,D;if(c.dataKey&&!c.allowDuplicatedCategory){var O=typeof c.dataKey==`function`?T:`payload.${c.dataKey.toString()}`;E=z_(m,O,u),D=h&&g&&z_(g,O,u)}else E=m?.[l],D=h&&g&&g[l];if(x||b){var k=e.props.activeIndex===void 0?l:e.props.activeIndex;return[(0,K.cloneElement)(e,$($($({},i.props),C),{},{activeIndex:k})),null,null]}if(!(0,O_.default)(E))return[w].concat(GJ(r.renderActivePoints({item:i,activePoint:E,basePoint:D,childIndex:l,isRange:h})))}else{var A=(r.getItemByXY(r.state.activeCoordinate)??{graphicalItem:w}).graphicalItem,j=A.item,M=j===void 0?e:j,N=A.childIndex;return[(0,K.cloneElement)(M,$($($({},i.props),C),{},{activeIndex:N})),null,null]}return h?[w,null,null]:[w,null]}),QJ(r,`renderCustomized`,function(e,t,n){return(0,K.cloneElement)(e,$($({key:`recharts-customized-${n}`},r.props),r.state))}),QJ(r,`renderMap`,{CartesianGrid:{handler:iY,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:iY},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:iY},YAxis:{handler:iY},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId=`${e.id??P_(`recharts`)}-clip`,r.throttleTriggeredAfterMouseMove=(0,yw.default)(r.triggeredAfterMouseMove,e.throttleDelay??1e3/60),r.state={},r}return UJ(n,e),LJ(n,[{key:`componentDidMount`,value:function(){this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:this.props.margin.left??0,top:this.props.margin.top??0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:`displayDefaultTooltip`,value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,i=e.layout,a=fv(t,pw);if(a){var o=a.props.defaultIndex;if(!(typeof o!=`number`||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,c=lY(this.state,n,o,s),l=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d=i===`horizontal`?{x:l,y:u}:{y:l,x:u},f=this.state.formattedGraphicalItems.find(function(e){return e.item.type.name===`Scatter`});f&&(d=$($({},d),f.props.points[o].tooltipPosition),c=f.props.points[o].tooltipPayload);var p={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(o)}}}},{key:`getSnapshotBeforeUpdate`,value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:this.props.margin.left??0,top:this.props.margin.top??0}}),null):null}},{key:`componentDidUpdate`,value:function(e){vv([fv(e.children,pw)],[fv(this.props.children,pw)])||this.displayDefaultTooltip()}},{key:`componentWillUnmount`,value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:`getTooltipEventType`,value:function(){var e=fv(this.props.children,pw);if(e&&typeof e.props.shared==`boolean`){var t=e.props.shared?`axis`:`item`;return o.indexOf(t)>=0?t:i}return i}},{key:`getMouseInfo`,value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=Kw(n),i={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,o=this.inRange(i.chartX,i.chartY,a);if(!o)return null;var s=this.state,c=s.xAxisMap,l=s.yAxisMap,u=this.getTooltipEventType(),d=uY(this.state,this.props.data,this.props.layout,o);if(u!==`axis`&&c&&l){var f=I_(c).scale,p=I_(l).scale,m=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return $($({},i),{},{xValue:m,yValue:h},d)}return d?$($({},i),d):null}},{key:`inRange`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=this.props.layout,i=e/n,a=t/n;if(r===`horizontal`||r===`vertical`){var o=this.state.offset;return i>=o.left&&i<=o.left+o.width&&a>=o.top&&a<=o.top+o.height?{x:i,y:a}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=I_(c);return pP({x:i,y:a},u)}return null}},{key:`parseEventsOfWrapper`,value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=fv(e,pw),r={};return n&&t===`axis`&&(r=n.props.trigger===`click`?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),$($({},X_(this.props,this.handleOuterEvent)),r)}},{key:`addListener`,value:function(){iJ.on(aJ,this.handleReceiveSyncEvent)}},{key:`removeListener`,value:function(){iJ.removeListener(aJ,this.handleReceiveSyncEvent)}},{key:`filterFormatItem`,value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,a=r.length;i<a;i++){var o=r[i];if(o.item===e||o.props.key===e.key||t===sv(o.item.type)&&n===o.childIndex)return o}return null}},{key:`renderClipPath`,value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return K.createElement(`defs`,null,K.createElement(`clipPath`,{id:e},K.createElement(`rect`,{x:n,y:r,height:i,width:a})))}},{key:`getXScales`,value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kJ(t,2),r=n[0],i=n[1];return $($({},e),{},QJ({},r,i.scale))},{}):null}},{key:`getYScales`,value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=kJ(t,2),r=n[0],i=n[1];return $($({},e),{},QJ({},r,i.scale))},{}):null}},{key:`getXScaleByAxisId`,value:function(e){var t;return(t=this.state.xAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getYScaleByAxisId`,value:function(e){var t;return(t=this.state.yAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getItemByXY`,value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var i=0,a=n.length;i<a;i++){var o=n[i],s=o.props,c=o.item,l=c.type.defaultProps===void 0?c.props:$($({},c.type.defaultProps),c.props),u=sv(c.type);if(u===`Bar`){var d=(s.data||[]).find(function(t){return AR(e,t)});if(d)return{graphicalItem:o,payload:d}}else if(u===`RadialBar`){var f=(s.data||[]).find(function(t){return pP(e,t)});if(f)return{graphicalItem:o,payload:f}}else if(FB(o,r)||IB(o,r)||LB(o,r)){var p=WB({graphicalItem:o,activeTooltipItem:r,itemData:l.data}),m=l.activeIndex===void 0?p:l.activeIndex;return{graphicalItem:$($({},o),{},{childIndex:m}),payload:LB(o,r)?l.data[p]:o.props.data[p]}}}return null}},{key:`render`,value:function(){var e=this;if(!pv(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,o=t.style,s=t.compact,c=t.title,l=t.desc,u=Q(NJ(t,EJ),!1);if(s)return K.createElement(lU,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(Dv,OJ({},u,{width:i,height:a,title:c,desc:l}),this.renderClipPath(),bv(n,this.renderMap)));this.props.accessibilityLayer&&(u.tabIndex=this.props.tabIndex??0,u.role=this.props.role??`application`,u.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},u.onFocus=function(){e.accessibilityManager.focus()});var f=this.parseEventsOfWrapper();return K.createElement(lU,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(`div`,OJ({className:d(`recharts-wrapper`,r),style:$({position:`relative`,cursor:`default`,width:i,height:a},o)},f,{ref:function(t){e.container=t}}),K.createElement(Dv,OJ({},u,{width:i,height:a,title:c,desc:l,style:nY}),this.renderClipPath(),bv(n,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(K.Component);QJ(m,`displayName`,t),QJ(m,`defaultProps`,$({layout:`horizontal`,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`},u)),QJ(m,`getDerivedStateFromProps`,function(e,t){var n=e.dataKey,r=e.data,i=e.children,a=e.width,o=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(t.updateId===void 0){var f=hY(e);return $($($({},f),{},{updateId:0},p($($({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!H_(l,t.prevMargin)){var m=hY(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=$($({},uY(t,r,s)),{},{updateId:t.updateId+1}),_=$($($({},m),h),g);return $($($({},_),p($({props:e},_),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(!vv(i,t.prevChildren)){var v=fv(i,HV),y=v?v.props?.startIndex??u:u,b=v?v.props?.endIndex??d:d,x=y!==u||b!==d,S=!(0,O_.default)(r)&&!x?t.updateId:t.updateId+1;return $($({updateId:S},p($($({props:e},t),{},{updateId:S,dataStartIndex:y,dataEndIndex:b}),t)),{},{prevChildren:i,dataStartIndex:y,dataEndIndex:b})}return null}),QJ(m,`renderActiveDot`,function(e,t,n){var r=(0,K.isValidElement)(e)?(0,K.cloneElement)(e,t):(0,$_.default)(e)?e(t):K.createElement(YR,t);return K.createElement(Mv,{className:`recharts-active-dot`,key:n},r)});var h=(0,K.forwardRef)(function(e,t){return K.createElement(m,OJ({},e,{ref:t}))});return h.displayName=m.displayName,h},xY=bY({chartName:`BarChart`,GraphicalChild:jH,defaultTooltipEventType:`axis`,validateTooltipEventTypes:[`axis`,`item`],axisComponents:[{axisType:`xAxis`,AxisComp:Nq},{axisType:`yAxis`,AxisComp:Xq}],formatAxisMap:UH}),SY=bY({chartName:`PieChart`,GraphicalChild:lV,validateTooltipEventTypes:[`item`],defaultTooltipEventType:`item`,legendContent:`children`,axisComponents:[{axisType:`angleAxis`,AxisComp:$z},{axisType:`radiusAxis`,AxisComp:Nz}],formatAxisMap:cP,defaultProps:{layout:`centric`,startAngle:0,endAngle:360,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`}}),CY=bY({chartName:`ComposedChart`,GraphicalChild:[lK,MK,jH,gq],axisComponents:[{axisType:`xAxis`,AxisComp:Nq},{axisType:`yAxis`,AxisComp:Xq},{axisType:`zAxis`,AxisComp:qK}],formatAxisMap:UH}),wY={light:``,dark:`.dark`},TY=K.createContext(null);function EY(){let e=K.useContext(TY);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function DY({id:e,className:t,children:n,config:r,...i}){let a=K.useId(),o=`chart-${e||a.replace(/:/g,``)}`;return(0,J.jsx)(TY.Provider,{value:{config:r},children:(0,J.jsxs)(`div`,{"data-slot":`chart`,"data-chart":o,className:G(`flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,t),...i,children:[(0,J.jsx)(OY,{id:o,config:r}),(0,J.jsx)(Mw,{children:n})]})})}var OY=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme||e.color);return n.length?(0,J.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(wY).map(([t,r])=>`
107
107
  ${r} [data-chart=${e}] {
108
108
  ${n.map(([e,n])=>{let r=n.theme?.[t]||n.color;return r?` --color-${e}: ${r};`:null}).join(`
109
109
  `)}
110
110
  }
111
111
  `).join(`
112
- `)}}):null},DY=dw;function OY({active:e,payload:t,className:n,indicator:r=`dot`,hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){let{config:p}=wY(),m=K.useMemo(()=>{if(i||!t?.length)return null;let[e]=t,n=kY(p,e,`${f||e?.dataKey||e?.name||`value`}`),r=!f&&typeof o==`string`?p[o]?.label||o:n?.label;return s?(0,J.jsx)(`div`,{className:G(`font-medium`,c),children:s(r,t)}):r?(0,J.jsx)(`div`,{className:G(`font-medium`,c),children:r}):null},[o,s,t,i,c,p,f]);if(!e||!t?.length)return null;let h=t.length===1&&r!==`dot`;return(0,J.jsxs)(`div`,{className:G(`grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl`,n),children:[h?null:m,(0,J.jsx)(`div`,{className:`grid gap-1.5`,children:t.filter(e=>e.type!==`none`).map((e,t)=>{let n=kY(p,e,`${d||e.name||e.dataKey||`value`}`),i=u||e.payload.fill||e.color;return(0,J.jsx)(`div`,{className:G(`flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground`,r===`dot`&&`items-center`),children:l&&e?.value!==void 0&&e.name?l(e.value,e.name,e,t,e.payload):(0,J.jsxs)(J.Fragment,{children:[n?.icon?(0,J.jsx)(n.icon,{}):!a&&(0,J.jsx)(`div`,{className:G(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":r===`dot`,"w-1":r===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":r===`dashed`,"my-0.5":h&&r===`dashed`}),style:{"--color-bg":i,"--color-border":i}}),(0,J.jsxs)(`div`,{className:G(`flex flex-1 justify-between leading-none`,h?`items-end`:`items-center`),children:[(0,J.jsxs)(`div`,{className:`grid gap-1.5`,children:[h?m:null,(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:n?.label||e.name})]}),e.value&&(0,J.jsx)(`span`,{className:`font-mono font-medium text-foreground tabular-nums`,children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})}function kY(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}function AY(e){if(!e)return{health:{tone:`healthy`,label:`Waiting for traffic`,description:`Metrics appear as soon as the first request is traced.`},busiest:null,noisiest:null,slowest:null,procedureCount:0};let t=Object.entries(e.procedures),n=t.toSorted((e,t)=>t[1].count-e[1].count)[0],r=t.filter(([,e])=>e.errors>0).toSorted((e,t)=>t[1].errors-e[1].errors)[0],i=t.toSorted((e,t)=>t[1].latency.p95-e[1].latency.p95)[0];return{health:jY(e,t.length),busiest:n?{path:n[0],value:n[1].count,meta:`${n[1].count} total requests`}:null,noisiest:r?{path:r[0],value:r[1].errors,meta:`${r[1].errorRate.toFixed(1)}% error rate`}:null,slowest:i?{path:i[0],value:i[1].latency.p95,meta:`p95 latency hotspot`}:null,procedureCount:t.length}}function jY(e,t){return e.errorRate>=5||e.avgLatency>=250?{tone:`critical`,label:`Needs attention`,description:`${e.totalErrors} errors across ${t} procedures.`}:e.errorRate>=1||e.avgLatency>=100?{tone:`degraded`,label:`Watching closely`,description:`Traffic is flowing, but recent failures are above baseline.`}:{tone:`healthy`,label:`Stable`,description:`Latency and error rate are within a healthy range.`}}var MY={count:{label:`Requests`,color:`var(--chart-1)`},errors:{label:`Errors`,color:`var(--color-destructive)`}},NY={hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function PY({data:e,navigate:t}){let n=(0,K.useMemo)(()=>AY(e),[e]),[r,i]=(0,K.useState)(``),a=(0,K.useMemo)(()=>e?Object.entries(e.procedures):[],[e]),o=(0,K.useMemo)(()=>[...a].toSorted((e,t)=>t[1].latency.p95-e[1].latency.p95).slice(0,5),[a]),s=(0,K.useMemo)(()=>a.filter(([,e])=>e.errors>0).toSorted((e,t)=>t[1].errors-e[1].errors).slice(0,5),[a]);if(!e)return(0,J.jsxs)(`div`,{className:`p-5`,children:[(0,J.jsx)(`div`,{className:`grid grid-cols-2 gap-6 py-4 xl:grid-cols-6`,children:Array.from({length:6}).map((e,t)=>(0,J.jsx)(cf,{className:`h-12`},t))}),(0,J.jsx)(cf,{className:`mt-4 h-24`}),(0,J.jsxs)(`div`,{className:`mt-4 grid grid-cols-2 gap-4`,children:[(0,J.jsx)(cf,{className:`h-28`}),(0,J.jsx)(cf,{className:`h-28`})]})]});let c=a.length;return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-3 gap-x-0 border-b xl:grid-cols-6`,children:[(0,J.jsx)(IY,{label:`Requests`,value:Mf(e.totalRequests)}),(0,J.jsx)(IY,{label:`Throughput`,value:`${Mf(e.requestsPerSecond)}/s`}),(0,J.jsx)(IY,{label:`Errors`,value:String(e.totalErrors),sub:`${e.errorRate.toFixed(1)}%`,danger:e.totalErrors>0}),(0,J.jsx)(IY,{label:`Avg latency`,value:Nf(e.avgLatency)}),(0,J.jsx)(IY,{label:`Uptime`,value:Pf(e.uptime)}),(0,J.jsx)(IY,{label:`Health`,value:n.health.label,className:G(n.health.tone===`healthy`&&`text-emerald-600 dark:text-emerald-400`,n.health.tone===`degraded`&&`text-amber-600 dark:text-amber-400`,n.health.tone===`critical`&&`text-destructive`)})]}),(0,J.jsxs)(`div`,{className:`border-b px-5 py-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`h3`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Traffic`}),(0,J.jsxs)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:[e.timeSeries.length,`s window`]})]}),(0,J.jsx)(FY,{timeSeries:e.timeSeries})]}),(0,J.jsxs)(`div`,{className:`grid border-b xl:grid-cols-2`,children:[(0,J.jsxs)(`div`,{className:`border-b px-5 py-3 xl:border-r xl:border-b-0`,children:[(0,J.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Slowest (p95)`}),o.length===0?(0,J.jsx)(`p`,{className:`py-2 text-xs text-muted-foreground`,children:`No data yet`}):(0,J.jsx)(`div`,{className:`flex flex-col`,children:o.map(([e,n])=>{let r=o[0][1].latency.p95,i=n.latency.p95/r*100;return(0,J.jsxs)(`div`,{className:`flex cursor-pointer items-center gap-2 border-b border-dashed py-1.5 last:border-0 hover:bg-muted/20`,onClick:()=>t(`requests`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(`div`,{className:`hidden w-20 sm:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:`h-full rounded-full bg-chart-1/50`,style:{width:`${i}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground`,children:Nf(n.latency.p95)})]},e)})})]}),(0,J.jsxs)(`div`,{className:`px-5 py-3`,children:[(0,J.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Error hotspots`}),s.length===0?(0,J.jsx)(`p`,{className:`py-2 text-xs text-muted-foreground`,children:`No errors`}):(0,J.jsx)(`div`,{className:`flex flex-col`,children:s.map(([e,n])=>(0,J.jsxs)(`div`,{className:`flex cursor-pointer items-center gap-2 border-b border-dashed py-1.5 last:border-0 hover:bg-muted/20`,onClick:()=>t(`errors`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:n.errors}),(0,J.jsxs)(`span`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground`,children:[n.errorRate.toFixed(1),`%`]})]},e))})]})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-5 pt-4 pb-2`,children:[(0,J.jsx)(`h3`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Procedures`}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(ch,{value:r,onChange:e=>i(e.target.value),placeholder:`Filter...`,className:`sm:max-w-48`}),(0,J.jsxs)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:[c,` routes`]})]})]}),(0,J.jsx)(gg,{procedures:e.procedures,navigate:t,filter:r})]})]})}function FY({timeSeries:e}){let t=(0,K.useMemo)(()=>e.map(e=>({time:new Date(e.time*1e3).toLocaleTimeString([],NY),count:e.count,errors:e.errors})),[e]);return t.length===0?(0,J.jsx)(`div`,{className:`flex h-24 items-center justify-center text-xs text-muted-foreground`,children:`Waiting for data...`}):(0,J.jsx)(TY,{config:MY,className:`mt-2 h-24 w-full`,children:(0,J.jsxs)(xY,{data:t,margin:{top:0,right:0,bottom:0,left:0},children:[(0,J.jsx)(`defs`,{children:(0,J.jsxs)(`linearGradient`,{id:`fillTraffic`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,J.jsx)(`stop`,{offset:`0%`,stopColor:`var(--color-count)`,stopOpacity:.15}),(0,J.jsx)(`stop`,{offset:`100%`,stopColor:`var(--color-count)`,stopOpacity:0})]})}),(0,J.jsx)(NG,{vertical:!1,stroke:`var(--color-border)`,strokeOpacity:.3}),(0,J.jsx)(jq,{dataKey:`time`,tick:{fontSize:8},tickLine:!1,axisLine:!1,interval:`preserveStartEnd`,tickMargin:4}),(0,J.jsx)(Jq,{hide:!0}),(0,J.jsx)(DY,{content:(0,J.jsx)(OY,{})}),(0,J.jsx)(AK,{type:`monotone`,dataKey:`count`,stroke:`var(--color-count)`,fill:`url(#fillTraffic)`,strokeWidth:1.5,dot:!1,activeDot:{r:2.5,strokeWidth:1.5,fill:`var(--background)`}}),(0,J.jsx)(kH,{dataKey:`errors`,fill:`var(--color-errors)`,fillOpacity:.6,radius:[1,1,0,0],barSize:3})]})})}function IY({label:e,value:t,sub:n,danger:r,className:i}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-3 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsxs)(`div`,{className:`mt-0.5 flex items-baseline gap-1.5`,children:[(0,J.jsx)(`span`,{className:G(`text-lg font-semibold tabular-nums tracking-tight`,r&&`text-destructive`,i),children:t}),n&&(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:n})]})]})}var LY={db:`#a855f7`,redis:`#ef4444`,http:`#3b82f6`,cache:`#10b981`,queue:`#f59e0b`,email:`#f97316`,ai:`#06b6d4`,custom:`#a1a1aa`};function RY({requests:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Nm(),a=Number(t),o=e.find(e=>Number.isNaN(a)?e.requestId===t:e.id===a);if(!o)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Request not found`});let s=o.procedures.reduce((e,t)=>e+t.spans.length,0),c=[{id:`md-${o.id}`,label:`Markdown`,text:Zm(o),hint:`full`},{id:`timing-${o.id}`,label:`Timing`,text:Qm(o),hint:`perf md`},{id:`md-url-${o.id}`,label:`Markdown URL`,text:$m(o),hint:`/md`},{id:`curl-${o.id}`,label:`cURL`,text:eh(o),hint:`fetch md`},{id:`json-${o.id}`,label:`JSON`,text:rh(o),hint:`redacted`}];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`requests`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Requests`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:o.method}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:o.path}),(0,J.jsx)(cu,{variant:o.status>=400?`destructive`:`secondary`,children:o.status}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(o.durationMs)}),o.procedures.length>1&&(0,J.jsxs)(cu,{variant:`outline`,children:[`batch x `,o.procedures.length]}),s>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[s,` spans`]}),o.traceId&&(0,J.jsxs)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[9px]`,onClick:()=>n(`requests`,`trace:${o.traceId}`),children:[`trace:`,o.traceId.slice(0,8)]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(o.timestamp)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:c})})]}),(0,J.jsxs)(`div`,{className:`grid flex-1 overflow-hidden xl:grid-cols-[1.65fr_0.9fr]`,children:[(0,J.jsx)(`div`,{className:`min-w-0 xl:border-r`,children:o.procedures.map((e,t)=>(0,J.jsx)(zY,{proc:e,idx:t,totalMs:o.durationMs,totalProcs:o.procedures.length},t))}),(0,J.jsxs)(`div`,{className:`min-w-0`,children:[(0,J.jsxs)(VY,{label:`HTTP Request`,children:[(0,J.jsx)(HY,{label:`id`,value:String(o.id)}),(0,J.jsx)(HY,{label:`method`,value:o.method}),(0,J.jsx)(HY,{label:`url`,value:o.url}),(0,J.jsx)(HY,{label:`path`,value:o.path}),(0,J.jsx)(HY,{label:`status`,value:String(o.status),danger:o.status>=400}),(0,J.jsx)(HY,{label:`duration`,value:Nf(o.durationMs)}),(0,J.jsx)(HY,{label:`procedures`,value:String(o.procedures.length)}),(0,J.jsx)(HY,{label:`total spans`,value:String(s)}),(0,J.jsx)(HY,{label:`ip`,value:o.ip||`-`}),(0,J.jsx)(HY,{label:`time`,value:Ff(o.timestamp)}),o.sessionId&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:`session`}),(0,J.jsx)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[10px] hover:bg-muted`,onClick:()=>n(`sessions`,o.sessionId),children:o.sessionId.slice(0,12)})]}),o.isBatch&&(0,J.jsx)(HY,{label:`batch`,value:`yes`})]}),s>0&&(0,J.jsx)(VY,{label:`Timing breakdown`,children:(0,J.jsx)(BY,{procedures:o.procedures,totalMs:o.durationMs})}),Object.keys(o.headers??{}).length>0&&(0,J.jsx)(VY,{label:`Request headers`,children:Object.entries(o.headers).map(([e,t])=>(0,J.jsx)(HY,{label:e,value:t},e))}),o.userAgent&&(0,J.jsx)(VY,{label:`User agent`,children:(0,J.jsx)(`p`,{className:`break-all font-mono text-[11px] text-muted-foreground`,children:o.userAgent})}),Object.keys(o.responseHeaders??{}).length>0&&(0,J.jsx)(VY,{label:`Response headers`,children:Object.entries(o.responseHeaders).map(([e,t])=>(0,J.jsx)(HY,{label:e,value:t},e))})]})]})]})}function zY({proc:e,idx:t,totalMs:n,totalProcs:r}){let i=e.input!==void 0&&e.input!==null,a=e.output!==void 0&&e.output!==null;return(0,J.jsxs)(`div`,{className:G(r>1&&`border-b last:border-0`),children:[r>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/30 px-5 py-2 text-[11px]`,children:[(0,J.jsx)(`span`,{className:G(`size-1.5 rounded-full`,e.status>=400?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,e.spans.length,` spans)`]})]}),(0,J.jsx)(VY,{label:r===1?`${e.procedure} — ${e.spans.length} spans, ${Nf(e.durationMs)} total`:`Span timeline`,children:e.spans.length>0?(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No spans recorded.`})}),i&&(0,J.jsx)(VY,{label:r>1?`Input (#${t+1})`:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),a&&(0,J.jsx)(VY,{label:r>1?`Output (#${t+1})`:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.output,null,2)})}),e.error&&(0,J.jsx)(VY,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-3 py-2 font-mono text-[11px] text-destructive`,children:e.error})})]})}function BY({procedures:e,totalMs:t}){let n=(0,K.useMemo)(()=>{let n=new Map;for(let t of e)for(let e of t.spans)n.set(e.kind,(n.get(e.kind)??0)+e.durationMs);let r=[...n.values()].reduce((e,t)=>e+t,0),i=Math.max(0,t-r),a=[...n].map(([e,t])=>({name:e,value:t,fill:LY[e]??`#a1a1aa`}));return i>.1&&a.push({name:`app`,value:i,fill:`#3f3f46`}),a},[e,t]);return(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsx)(TY,{config:{value:{label:`Time`}},className:`h-24 w-24 shrink-0`,children:(0,J.jsxs)(bY,{children:[(0,J.jsx)(sV,{data:n,dataKey:`value`,nameKey:`name`,cx:`50%`,cy:`50%`,innerRadius:22,outerRadius:38,strokeWidth:1,stroke:`var(--background)`,children:n.map(e=>(0,J.jsx)(jw,{fill:e.fill},e.name))}),(0,J.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,dominantBaseline:`middle`,className:`fill-foreground text-[10px] font-semibold`,children:Nf(t)}),(0,J.jsx)(DY,{content:({active:e,payload:n})=>{if(!e||!n?.[0])return null;let r=n[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`span`,{className:`font-semibold`,children:r.name}),(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[r.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`ml-1 text-muted-foreground`,children:[`(`,(r.value/t*100).toFixed(0),`%)`]})]})}})]})}),(0,J.jsx)(`div`,{className:`flex flex-col gap-1`,children:n.map(e=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[10px]`,children:[(0,J.jsx)(`div`,{className:`size-2 shrink-0 rounded-full`,style:{backgroundColor:e.fill}}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.name}),(0,J.jsxs)(`span`,{className:`font-mono tabular-nums`,children:[e.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground/50`,children:[(e.value/t*100).toFixed(0),`%`]})]},e.name))})]})}function VY({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function HY({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}var UY={duration:{label:`Duration`,color:`var(--chart-1)`}};function WY({requests:e,navigate:t,initialProcedure:n}){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(n||`all`),[s,c]=(0,K.useState)(`all`),[l,u]=(0,K.useState)(`all`),[d,f]=(0,K.useState)(`time`),[p,m]=(0,K.useState)(!1),[h,g]=(0,K.useState)(null),_=(0,K.useCallback)(e=>{f(t=>(m(t===e?e=>!e:e===`procedure`),e))},[]),v=(0,K.useMemo)(()=>sg(e.flatMap(e=>e.procedures.map(e=>e.procedure))),[e]),y=(0,K.useMemo)(()=>{let t=ag(e,{query:r,procedure:a,status:s,latency:l}).toReversed(),n=p?1:-1;return t.sort((e,t)=>{switch(d){case`time`:return n*(e.timestamp-t.timestamp);case`procedure`:return n*(e.procedures[0]?.procedure??``).localeCompare(t.procedures[0]?.procedure??``);case`status`:return n*(e.status-t.status);case`duration`:return n*(e.durationMs-t.durationMs);case`spans`:return n*(e.procedures.reduce((e,t)=>e+t.spans.length,0)-t.procedures.reduce((e,t)=>e+t.spans.length,0))}}),t},[e,r,a,s,l,d,p]),b=r.length>0||a!==`all`||s!==`all`||l!==`all`,x=(0,K.useCallback)(()=>{i(``),o(`all`),c(`all`),u(`all`)},[]),S=(0,K.useMemo)(()=>Math.max(...y.map(e=>e.durationMs),.1),[y]),C=h===null?null:y[h];return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No traced requests yet`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Requests appear once the collector sees traffic.`})]}):(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsxs)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:[(0,J.jsx)(ch,{value:r,onChange:e=>i(e.target.value),placeholder:`Search procedures...`,className:`sm:max-w-56`}),(0,J.jsxs)(ym,{value:a,onValueChange:e=>o(e??`all`),children:[(0,J.jsx)(Sm,{size:`sm`,className:`w-full sm:w-40`,children:(0,J.jsx)(xm,{placeholder:`All procedures`})}),(0,J.jsx)(Cm,{align:`start`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Procedure`}),(0,J.jsx)(Tm,{value:`all`,children:`All procedures`}),v.map(e=>(0,J.jsx)(Tm,{value:e,children:e},e))]})})]}),(0,J.jsxs)(ng,{value:s,onValueChange:e=>c(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(rg,{value:`all`,children:`All`}),(0,J.jsx)(rg,{value:`success`,children:`2xx`}),(0,J.jsx)(rg,{value:`client`,children:`4xx`}),(0,J.jsx)(rg,{value:`server`,children:`5xx`})]}),(0,J.jsxs)(ng,{value:l,onValueChange:e=>u(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(rg,{value:`all`,children:`All`}),(0,J.jsx)(rg,{value:`fast`,children:`Fast`}),(0,J.jsx)(rg,{value:`slow`,children:`Slow`})]})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[y.length,` of `,e.length]}),b&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:x,children:`Clear`})]})]}),y.length>0&&(0,J.jsx)(`div`,{className:`border-b px-5`,children:(0,J.jsx)(TY,{config:UY,className:`h-10 w-full`,children:(0,J.jsxs)(yY,{data:y.map((e,t)=>({i:t,d:e.durationMs,err:e.status>=400})),margin:{top:4,right:0,bottom:0,left:0},barGap:1,children:[(0,J.jsx)(DY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let n=y[t[0].payload.i];return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:n.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsxs)(`div`,{className:`text-muted-foreground`,children:[Nf(n.durationMs),` · `,n.status]})]})}}),(0,J.jsx)(kH,{dataKey:`d`,radius:[2,2,0,0],cursor:`pointer`,onClick:(e,t)=>g(h===t?null:t),children:y.map((e,t)=>(0,J.jsx)(jw,{fill:e.status>=400?`var(--color-destructive)`:`var(--chart-1)`,fillOpacity:h===t?1:e.status>=400?.6:.3},t))})]})})}),y.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching requests`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:b?`Adjust filters.`:`Waiting for traffic.`}),b&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`mt-2`,onClick:x,children:`Clear filters`})]}):(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsxs)(`div`,{className:G(`flex-1 overflow-y-auto`,C&&`hidden xl:block`),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-5 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(KY,{label:`Time`,sortKey:`time`,currentKey:d,asc:p,onSort:_,className:`w-14`}),(0,J.jsx)(`span`,{className:`w-2`}),(0,J.jsx)(`span`,{className:`w-8`,children:`Method`}),(0,J.jsx)(KY,{label:`Procedure`,sortKey:`procedure`,currentKey:d,asc:p,onSort:_,className:`flex-1`}),(0,J.jsx)(KY,{label:`Status`,sortKey:`status`,currentKey:d,asc:p,onSort:_,className:`w-12`}),(0,J.jsx)(`span`,{className:`hidden w-28 lg:block`,children:`Waterfall`}),(0,J.jsx)(KY,{label:`Duration`,sortKey:`duration`,currentKey:d,asc:p,onSort:_,className:`w-14 text-right`}),(0,J.jsx)(KY,{label:`Spans`,sortKey:`spans`,currentKey:d,asc:p,onSort:_,className:`w-8 text-right`}),(0,J.jsx)(`span`,{className:`w-16`,children:`Session`})]}),y.map((e,n)=>{let r=e.procedures.reduce((e,t)=>e+t.spans.length,0),i=e.status>=400,a=e.durationMs/S*100;return(0,J.jsxs)(zh,{children:[(0,J.jsx)(Bh,{asChild:!0,children:(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,h===n&&`bg-primary/5`),onClick:()=>g(h===n?null:n),onDoubleClick:()=>t(`requests`,String(e.id)),children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,i?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 font-mono text-[10px] text-muted-foreground`,children:e.method}),(0,J.jsxs)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:[e.procedures.map(e=>e.procedure).join(`, `),e.isBatch&&(0,J.jsx)(cu,{variant:`outline`,className:`ml-1.5 text-[9px]`,children:`batch`})]}),(0,J.jsx)(cu,{variant:i?`destructive`:`secondary`,className:`w-12 justify-center text-[9px]`,children:e.status}),(0,J.jsx)(`div`,{className:`hidden w-28 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:G(`h-full rounded-full`,i?`bg-destructive/50`:`bg-primary/40`),style:{width:`${Math.max(a,2)}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 text-right font-mono text-[9px] text-muted-foreground/50`,children:r||``}),(0,J.jsx)(cu,{variant:`outline`,className:`w-16 cursor-pointer justify-center font-mono text-[9px] hover:bg-muted`,onClick:n=>{n.stopPropagation(),t(`sessions`,e.sessionId)},children:e.sessionId?.slice(0,8)??`-`})]})}),(0,J.jsxs)(Vh,{children:[(0,J.jsx)(Hh,{onClick:()=>t(`requests`,String(e.id)),children:`View details`}),(0,J.jsx)(Hh,{onClick:()=>t(`sessions`,e.sessionId),children:`View session`}),(0,J.jsx)(Hh,{onClick:()=>{fetch(`/api/analytics/hidden`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({path:e.path})})},className:`text-destructive`,children:`Hide path`}),e.traceId&&(0,J.jsx)(Hh,{onClick:()=>t(`requests`,`trace:${e.traceId}`),children:`View trace`})]})]},e.id)})]}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!C&&`hidden xl:flex`),children:C?(0,J.jsx)(GY,{req:C,onClose:()=>g(null),navigate:t}):(0,J.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:`Select a request to view details`})})]})]})}function GY({req:e,onClose:t,navigate:n}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,e.status>=400?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[e.procedures.map((t,n)=>(0,J.jsxs)(`div`,{children:[e.procedures.length>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/20 px-4 py-1.5 text-[11px]`,children:[(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:t.procedure}),(0,J.jsx)(cu,{variant:t.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:t.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(t.durationMs)})]}),t.spans.length>0&&(0,J.jsx)(qY,{label:`Spans`,children:(0,J.jsx)(zf,{spans:t.spans,totalMs:t.durationMs})}),t.input!==void 0&&t.input!==null&&(0,J.jsx)(qY,{label:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.input,null,2)})}),t.output!==void 0&&t.output!==null&&(0,J.jsx)(qY,{label:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-36 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.output,null,2)})}),t.error&&(0,J.jsx)(qY,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-2.5 py-2 font-mono text-[10px] text-destructive`,children:t.error})})]},n)),(0,J.jsxs)(qY,{label:`Request`,children:[(0,J.jsx)(JY,{label:`method`,value:e.method}),(0,J.jsx)(JY,{label:`path`,value:e.path}),(0,J.jsx)(JY,{label:`status`,value:String(e.status),danger:e.status>=400}),(0,J.jsx)(JY,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(JY,{label:`time`,value:Ff(e.timestamp)}),(0,J.jsx)(JY,{label:`ip`,value:e.ip||`-`})]}),(0,J.jsx)(`div`,{className:`px-4 py-3`,children:(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`w-full`,onClick:()=>n(`requests`,String(e.id)),children:`Open full detail`})})]})]})}function KY({label:e,sortKey:t,currentKey:n,asc:r,onSort:i,className:a}){return(0,J.jsxs)(`span`,{className:G(`cursor-pointer select-none`,n===t&&`text-primary`,a),onClick:()=>i(t),children:[e,n===t&&(r?` ↑`:` ↓`)]})}function qY({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function JY({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}var YY={db:`#a855f7`,redis:`#ef4444`,http:`#3b82f6`,cache:`#10b981`,queue:`#f59e0b`,email:`#f97316`,ai:`#06b6d4`,custom:`#a1a1aa`},XY={duration:{label:`Duration`,color:`var(--chart-1)`}};function ZY({requests:e,sessionId:t,navigate:n}){let{copiedId:r,copy:i}=Nm(),[a,o]=(0,K.useState)(null),s=(0,K.useMemo)(()=>e.filter(e=>e.sessionId===t).sort((e,t)=>t.timestamp-e.timestamp),[e,t]),c=(0,K.useMemo)(()=>[...s].toReversed(),[s]);if(s.length===0)return(0,J.jsxs)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:[`No requests found for session `,t]});let l=c[0],u=c[c.length-1],d=u.timestamp+u.durationMs-l.timestamp,f=s.reduce((e,t)=>e+t.durationMs,0),p=s.filter(e=>e.status>=400).length,m=s.flatMap(e=>e.procedures.flatMap(e=>e.spans)),h=[...new Set(s.flatMap(e=>e.procedures.map(e=>e.procedure)))].toSorted(),g=Math.max(...s.map(e=>e.durationMs),.1),_=[{id:`md-${t}`,label:`Markdown`,text:ih(s,t),hint:`summary`},{id:`json-${t}`,label:`JSON`,text:ah(s,t),hint:`redacted`}],v=new Map;for(let e of m)v.set(e.kind,(v.get(e.kind)??0)+e.durationMs);let y=Math.max(0,f-[...v.values()].reduce((e,t)=>e+t,0)),b=new Map;for(let e of s){let t=e.status<300?`2xx`:e.status<400?`3xx`:e.status<500?`4xx`:`5xx`;b.set(t,(b.get(t)??0)+1)}let x=a===null?null:s[a];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`sessions`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Sessions`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`text-sm font-semibold`,children:`Session`}),(0,J.jsx)(cu,{variant:`secondary`,className:`font-mono text-[10px]`,children:t.slice(0,13)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:_})})]}),(0,J.jsxs)(`div`,{className:`grid grid-cols-3 gap-x-0 border-b xl:grid-cols-6`,children:[(0,J.jsx)(rX,{label:`Requests`,value:String(s.length)}),(0,J.jsx)(rX,{label:`Errors`,value:String(p),danger:p>0}),(0,J.jsx)(rX,{label:`Avg latency`,value:Nf(f/s.length)}),(0,J.jsx)(rX,{label:`Total CPU`,value:Nf(f)}),(0,J.jsx)(rX,{label:`Duration`,value:Nf(d)}),(0,J.jsx)(rX,{label:`Spans`,value:String(m.length)})]}),(0,J.jsx)(tX,{requests:c,totalRequests:s.length,selectedIdx:a,onSelect:e=>o(e===null?null:s.length-1-e)}),(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsx)(`div`,{className:G(`flex-1 overflow-y-auto`,x&&`hidden xl:block`),children:s.map((e,t)=>(0,J.jsx)(QY,{req:e,isSelected:a===t,maxDuration:g,onClick:()=>o(a===t?null:t)},e.id))}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!x&&`hidden xl:flex`),children:x?(0,J.jsx)($Y,{req:x,onClose:()=>o(null),onOpenFull:()=>n(`requests`,String(x.id))}):(0,J.jsx)(eX,{sessionId:t,first:l,last:u,wallClockMs:d,totalMs:f,sessionRequests:s,errorCount:p,byStatus:b,byKind:v,appMs:y,uniqueProcedures:h})})]})]})}function QY({req:e,isSelected:t,maxDuration:n,onClick:r}){let i=e.procedures.reduce((e,t)=>e+t.spans.length,0),a=e.status>=400,o=e.durationMs/n*100;return(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,t&&`bg-primary/5`),onClick:r,children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,a?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 font-mono text-[10px] text-muted-foreground`,children:e.method}),(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:a?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`div`,{className:`hidden w-28 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:G(`h-full rounded-full`,a?`bg-destructive/50`:`bg-primary/40`),style:{width:`${Math.max(o,2)}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`span`,{className:`w-4 shrink-0 text-right font-mono text-[9px] text-muted-foreground/50`,children:i||``})]})}function $Y({req:e,onClose:t,onOpenFull:n}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[e.procedures.map((t,n)=>(0,J.jsxs)(`div`,{children:[e.procedures.length>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/20 px-4 py-1.5 text-[11px]`,children:[(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:t.procedure}),(0,J.jsx)(cu,{variant:t.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:t.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(t.durationMs)})]}),t.spans.length>0&&(0,J.jsx)(iX,{label:`Spans`,children:(0,J.jsx)(zf,{spans:t.spans,totalMs:t.durationMs})}),t.input!==void 0&&t.input!==null&&(0,J.jsx)(iX,{label:e.procedures.length>1?`Input — ${t.procedure}`:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.input,null,2)})}),t.output!==void 0&&t.output!==null&&(0,J.jsx)(iX,{label:e.procedures.length>1?`Output — ${t.procedure}`:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-36 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.output,null,2)})}),t.error&&(0,J.jsx)(iX,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-2.5 py-2 font-mono text-[10px] text-destructive`,children:t.error})})]},n)),(0,J.jsxs)(iX,{label:`Request`,children:[(0,J.jsx)(aX,{label:`method`,value:e.method}),(0,J.jsx)(aX,{label:`path`,value:e.path}),(0,J.jsx)(aX,{label:`status`,value:String(e.status),danger:e.status>=400}),(0,J.jsx)(aX,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(aX,{label:`time`,value:Ff(e.timestamp)}),(0,J.jsx)(aX,{label:`ip`,value:e.ip||`-`})]}),(0,J.jsx)(`div`,{className:`px-4 py-3`,children:(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`w-full`,onClick:n,children:`Open full detail`})})]})]})}function eX({sessionId:e,first:t,last:n,wallClockMs:r,totalMs:i,sessionRequests:a,errorCount:o,byStatus:s,byKind:c,appMs:l,uniqueProcedures:u}){return(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsxs)(iX,{label:`Session`,children:[(0,J.jsx)(aX,{label:`session id`,value:e}),(0,J.jsx)(aX,{label:`first seen`,value:Ff(t.timestamp)}),(0,J.jsx)(aX,{label:`last seen`,value:Ff(n.timestamp)}),(0,J.jsx)(aX,{label:`wall clock`,value:Nf(r)}),(0,J.jsx)(aX,{label:`total cpu`,value:Nf(i)}),(0,J.jsx)(aX,{label:`requests`,value:String(a.length)}),(0,J.jsx)(aX,{label:`errors`,value:String(o),danger:o>0}),(0,J.jsx)(aX,{label:`avg latency`,value:Nf(i/a.length)}),(0,J.jsx)(aX,{label:`ip`,value:n.ip||`-`}),(0,J.jsx)(aX,{label:`user agent`,value:n.userAgent?.slice(0,80)||`-`})]}),(0,J.jsx)(iX,{label:`Status`,children:(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:[...s].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>(0,J.jsxs)(cu,{variant:e===`4xx`||e===`5xx`?`destructive`:`secondary`,className:`text-[10px]`,children:[e,` `,(0,J.jsx)(`span`,{className:`ml-1 opacity-70`,children:t})]},e))})}),c.size>0&&(0,J.jsx)(iX,{label:`Time by category`,children:(0,J.jsx)(nX,{byKind:c,appMs:l,totalMs:i})}),(0,J.jsx)(iX,{label:`Procedures`,children:u.map(e=>{let t=a.flatMap(t=>t.procedures.filter(t=>t.procedure===e)),n=t.length,r=t.reduce((e,t)=>e+t.durationMs,0)/n,i=t.filter(e=>e.status>=400).length;return(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-[10px] font-semibold`,children:e}),i>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:i})]}),(0,J.jsxs)(`div`,{className:`flex shrink-0 gap-2 text-[10px] tabular-nums text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`x`,n]}),(0,J.jsx)(`span`,{className:`font-mono`,children:Nf(r)})]})]},e)})})]})}function tX({requests:e,totalRequests:t,selectedIdx:n,onSelect:r}){let i=(0,K.useMemo)(()=>e.map((e,t)=>({index:t,procedure:e.procedures.map(e=>e.procedure).join(`, `),duration:e.durationMs,status:e.status,isError:e.status>=400})),[e]),a=n===null?null:t-1-n,o=(0,K.useCallback)((e,i)=>{r(n===t-1-i?null:i)},[t,n,r]);return(0,J.jsx)(`div`,{className:`border-b px-5`,children:(0,J.jsx)(TY,{config:XY,className:`h-12 w-full`,children:(0,J.jsxs)(yY,{data:i,margin:{top:4,right:0,bottom:0,left:0},barGap:1,children:[(0,J.jsx)(DY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let n=t[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:n.procedure}),(0,J.jsxs)(`div`,{className:`text-muted-foreground`,children:[Nf(n.duration),` · `,n.status]})]})}}),(0,J.jsx)(kH,{dataKey:`duration`,radius:[2,2,0,0],cursor:`pointer`,onClick:o,children:i.map((e,t)=>(0,J.jsx)(jw,{fill:e.isError?`var(--color-destructive)`:`var(--chart-1)`,fillOpacity:a===t?1:e.isError?.6:.3},e.index))})]})})})}function nX({byKind:e,appMs:t,totalMs:n}){let r=(0,K.useMemo)(()=>{let n=[...e].map(([e,t])=>({name:e,value:t,fill:YY[e]??`#a1a1aa`}));return t>.1&&n.push({name:`app`,value:t,fill:`#3f3f46`}),n},[e,t]);return(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsx)(TY,{config:{value:{label:`Time`}},className:`h-24 w-24 shrink-0`,children:(0,J.jsxs)(bY,{children:[(0,J.jsx)(sV,{data:r,dataKey:`value`,nameKey:`name`,cx:`50%`,cy:`50%`,innerRadius:22,outerRadius:38,strokeWidth:1,stroke:`var(--background)`,children:r.map(e=>(0,J.jsx)(jw,{fill:e.fill},e.name))}),(0,J.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,dominantBaseline:`middle`,className:`fill-foreground text-[10px] font-semibold`,children:Nf(n)}),(0,J.jsx)(DY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let r=t[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`span`,{className:`font-semibold`,children:r.name}),(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[r.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`ml-1 text-muted-foreground`,children:[`(`,(r.value/n*100).toFixed(0),`%)`]})]})}})]})}),(0,J.jsx)(`div`,{className:`flex flex-col gap-1`,children:r.map(e=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[10px]`,children:[(0,J.jsx)(`div`,{className:`size-2 shrink-0 rounded-full`,style:{backgroundColor:e.fill}}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.name}),(0,J.jsxs)(`span`,{className:`font-mono tabular-nums`,children:[e.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground/50`,children:[(e.value/n*100).toFixed(0),`%`]})]},e.name))})]})}function rX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-2.5 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsx)(`div`,{className:G(`mt-0.5 text-base font-semibold tabular-nums tracking-tight`,n&&`text-destructive`),children:t})]})}function iX({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function aX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}function oX({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,J.jsx)(`table`,{"data-slot":`table`,className:G(`w-full caption-bottom text-sm`,e),...t})})}function sX({className:e,...t}){return(0,J.jsx)(`thead`,{"data-slot":`table-header`,className:G(`[&_tr]:border-b`,e),...t})}function cX({className:e,...t}){return(0,J.jsx)(`tbody`,{"data-slot":`table-body`,className:G(`[&_tr:last-child]:border-0`,e),...t})}function lX({className:e,...t}){return(0,J.jsx)(`tr`,{"data-slot":`table-row`,className:G(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function uX({className:e,...t}){return(0,J.jsx)(`th`,{"data-slot":`table-head`,className:G(`h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0`,e),...t})}function dX({className:e,...t}){return(0,J.jsx)(`td`,{"data-slot":`table-cell`,className:G(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0`,e),...t})}function fX({requests:e,navigate:t}){let[n,r]=(0,K.useState)(``),[i,a]=(0,K.useState)(`time`),[o,s]=(0,K.useState)(!1),c=(0,K.useCallback)(e=>{a(t=>(s(t===e?e=>!e:!1),e))},[]),l=(0,K.useMemo)(()=>{let t=new Map;for(let n of e){if(!n.sessionId)continue;let e=t.get(n.sessionId);e?e.push(n):t.set(n.sessionId,[n])}let r=[];for(let[e,n]of t){let t=n.toSorted((e,t)=>e.timestamp-t.timestamp),i=n.reduce((e,t)=>e+t.durationMs,0),a=n.filter(e=>e.status>=400).length,o=[...new Set(n.flatMap(e=>e.procedures.map(e=>e.procedure)))];r.push({sessionId:e,requestCount:n.length,errorCount:a,totalMs:i,avgMs:i/n.length,firstTimestamp:t[0].timestamp,lastTimestamp:t[t.length-1].timestamp,procedures:o,ip:t[t.length-1].ip,userAgent:t[t.length-1].userAgent})}if(n){let e=n.toLowerCase();r=r.filter(t=>t.sessionId.toLowerCase().includes(e)||t.procedures.some(t=>t.toLowerCase().includes(e))||t.ip.includes(e))}let a=o?1:-1;return r.sort((e,t)=>{switch(i){case`time`:return a*(e.lastTimestamp-t.lastTimestamp);case`requests`:return a*(e.requestCount-t.requestCount);case`errors`:return a*(e.errorCount-t.errorCount);case`duration`:return a*(e.totalMs-t.totalMs);case`avg`:return a*(e.avgMs-t.avgMs)}}),r},[e,n,i,o]),u=(0,K.useMemo)(()=>{let t=new Set;for(let n of e)n.sessionId&&t.add(n.sessionId);return t.size},[e]);return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No sessions yet`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Sessions appear when requests with session IDs are captured.`})]}):(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsx)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:(0,J.jsx)(ch,{value:n,onChange:e=>r(e.target.value),placeholder:`Search sessions...`,className:`sm:max-w-56`})}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[l.length,` of `,u,` sessions`]}),n&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:()=>r(``),children:`Clear`})]})]}),l.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching sessions`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Adjust your search to find sessions.`})]}):(0,J.jsxs)(oX,{children:[(0,J.jsx)(sX,{children:(0,J.jsxs)(lX,{children:[(0,J.jsx)(uX,{className:`px-3 py-2 text-[11px]`,children:`Session`}),[[`time`,`Last seen`],[`requests`,`Requests`],[`errors`,`Errors`],[`duration`,`Total`],[`avg`,`Avg`]].map(([e,t])=>(0,J.jsxs)(uX,{onClick:()=>c(e),className:G(`cursor-pointer select-none px-3 py-2 text-[11px]`,(e===`requests`||e===`errors`||e===`duration`||e===`avg`)&&`text-right`,i===e&&`text-primary`),children:[t,i===e&&(o?` ↑`:` ↓`)]},e)),(0,J.jsx)(uX,{className:`px-3 py-2 text-[11px]`,children:`Procedures`})]})}),(0,J.jsx)(cX,{children:l.map(e=>(0,J.jsxs)(lX,{onClick:()=>t(`sessions`,e.sessionId),className:`cursor-pointer`,children:[(0,J.jsx)(dX,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:`secondary`,className:`font-mono text-[10px]`,children:e.sessionId.slice(0,12)})}),(0,J.jsx)(dX,{className:`px-3 py-2 whitespace-nowrap text-xs tabular-nums text-muted-foreground`,children:(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{className:`cursor-default`,children:If(e.lastTimestamp)}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.lastTimestamp)})]})}),(0,J.jsx)(dX,{className:`px-3 py-2 text-right text-xs tabular-nums`,children:e.requestCount}),(0,J.jsx)(dX,{className:`px-3 py-2 text-right`,children:e.errorCount>0?(0,J.jsx)(cu,{variant:`destructive`,className:`text-[10px]`,children:e.errorCount}):(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`0`})}),(0,J.jsx)(dX,{className:`px-3 py-2 text-right text-xs tabular-nums text-muted-foreground`,children:Nf(e.totalMs)}),(0,J.jsx)(dX,{className:`px-3 py-2 text-right text-xs tabular-nums text-muted-foreground`,children:Nf(e.avgMs)}),(0,J.jsx)(dX,{className:`max-w-[240px] px-3 py-2 truncate text-xs text-muted-foreground`,children:e.procedures.join(`, `)})]},e.sessionId))})]})]})}function pX({taskExecutions:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Nm(),a=e.find(e=>e.id===Number(t));if(!a)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Task execution not found`});let o=[{id:`md-${a.id}`,label:`Markdown`,text:oh(a),hint:`summary`},{id:`json-${a.id}`,label:`JSON`,text:JSON.stringify(a,null,2),hint:`raw`}];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`tasks`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Tasks`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:a.taskName||`(unnamed)`}),(0,J.jsx)(cu,{variant:a.status===`success`?`default`:`destructive`,children:a.status}),(0,J.jsx)(cu,{variant:`outline`,children:a.trigger}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(a.durationMs)}),a.spans?.length>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[a.spans.length,` spans`]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(a.timestamp)}),(0,J.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`(`,If(a.timestamp),`)`]}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:o})})]}),(0,J.jsxs)(`div`,{className:`grid flex-1 overflow-hidden xl:grid-cols-[1.2fr_0.8fr]`,children:[(0,J.jsxs)(`div`,{className:`min-w-0 xl:border-r`,children:[a.spans?.length>0&&(0,J.jsx)(mX,{label:`Span timeline — ${a.spans.length} spans, ${Nf(a.durationMs)} total`,children:(0,J.jsx)(zf,{spans:a.spans,totalMs:a.durationMs})}),(0,J.jsx)(mX,{label:`Input`,children:a.input!==void 0&&a.input!==null?(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(a.input,null,2)}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No input`})}),(0,J.jsx)(mX,{label:`Output`,children:a.output!==void 0&&a.output!==null?(0,J.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(a.output,null,2)}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No output`})}),a.error&&(0,J.jsx)(mX,{label:`Error`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-destructive/10 p-3 font-mono text-[11px] leading-relaxed text-destructive`,children:a.error})})]}),(0,J.jsxs)(`div`,{className:`min-w-0`,children:[(0,J.jsxs)(mX,{label:`Execution`,children:[(0,J.jsx)(hX,{label:`id`,value:String(a.id)}),(0,J.jsx)(hX,{label:`task`,value:a.taskName||`(unnamed)`}),(0,J.jsx)(hX,{label:`trigger`,value:a.trigger}),(0,J.jsx)(hX,{label:`status`,value:a.status,danger:a.status===`error`}),(0,J.jsx)(hX,{label:`duration`,value:Nf(a.durationMs)}),(0,J.jsx)(hX,{label:`time`,value:Ff(a.timestamp)}),(0,J.jsx)(hX,{label:`relative`,value:If(a.timestamp)})]}),a.input!==void 0&&a.input!==null&&(0,J.jsx)(mX,{label:`Input summary`,children:typeof a.input==`object`?Object.entries(a.input).map(([e,t])=>(0,J.jsx)(hX,{label:e,value:typeof t==`string`?t:JSON.stringify(t)},e)):(0,J.jsx)(hX,{label:`value`,value:String(a.input)})})]})]})]})}function mX({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function hX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}function gX({data:e,taskExecutions:t,scheduledTasks:n,navigate:r}){let[i,a]=(0,K.useState)(`all`),o=e?.tasks,s=(0,K.useMemo)(()=>Object.entries(o?.tasks??{}).sort((e,t)=>t[1].runs-e[1].runs),[o]),c=(0,K.useMemo)(()=>{let e=[...t].toReversed();return i===`all`?e:e.filter(e=>e.status===i)},[t,i]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-6 p-4 md:p-6`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-4`,children:[(0,J.jsx)(_X,{label:`Total runs`,value:o?.totalRuns??0}),(0,J.jsx)(_X,{label:`Errors`,value:o?.totalErrors??0,danger:!!o?.totalErrors}),(0,J.jsx)(_X,{label:`Task types`,value:s.length}),(0,J.jsx)(_X,{label:`Scheduled`,value:n.length})]}),n.length>0&&(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Scheduled (cron)`}),(0,J.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-2 lg:grid-cols-3`,children:n.map(e=>(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`font-mono text-xs font-medium`,children:e.name}),(0,J.jsx)(cu,{variant:`outline`,className:`text-[10px] font-mono`,children:e.cron})]}),e.description&&(0,J.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,children:e.description}),(0,J.jsxs)(`div`,{className:`mt-2 flex gap-4 text-[11px] text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`Runs: `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.runs})]}),(0,J.jsxs)(`span`,{className:G(e.errors>0&&`text-destructive`),children:[`Errors: `,(0,J.jsx)(`span`,{className:`font-mono`,children:e.errors})]})]}),(0,J.jsxs)(`div`,{className:`mt-1 flex gap-4 text-[11px] text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`Last:`,` `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.lastRun?If(e.lastRun):`—`})]}),(0,J.jsxs)(`span`,{children:[`Next:`,` `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.nextRun?If(e.nextRun).replace(` ago`,``):`—`})]})]})]},e.name+e.cron))})]}),s.length>0&&(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Tasks`}),(0,J.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`border-b bg-muted/40 text-left text-xs text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Name`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Runs`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Errors`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Avg`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Last run`})]})}),(0,J.jsx)(`tbody`,{children:s.map(([e,t])=>(0,J.jsxs)(`tr`,{className:`border-b last:border-0 hover:bg-muted/20`,children:[(0,J.jsx)(`td`,{className:`px-3 py-2 font-mono text-xs`,children:e}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums`,children:t.runs}),(0,J.jsx)(`td`,{className:G(`px-3 py-2 text-right font-mono tabular-nums`,t.errors>0&&`text-destructive font-medium`),children:t.errors}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:Nf(t.avgDurationMs)}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right text-muted-foreground`,children:t.lastRun?If(t.lastRun):`—`})]},e))})]})})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,J.jsx)(`h3`,{className:`text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Execution history`}),(0,J.jsx)(`div`,{className:`flex gap-1`,children:[`all`,`success`,`error`].map(e=>(0,J.jsx)(`button`,{onClick:()=>a(e),className:G(`rounded-md px-2 py-0.5 text-[11px] font-medium transition-colors`,i===e?`bg-primary text-primary-foreground`:`text-muted-foreground hover:bg-muted`),children:e===`all`?`All`:e===`success`?`Success`:`Errors`},e))})]}),c.length===0?(0,J.jsx)(`div`,{className:`flex h-32 items-center justify-center rounded-lg border border-dashed text-sm text-muted-foreground`,children:`No task executions yet`}):(0,J.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`border-b bg-muted/40 text-left text-xs text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Task`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Trigger`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Status`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Spans`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Duration`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Time`})]})}),(0,J.jsx)(`tbody`,{children:c.slice(0,100).map(e=>(0,J.jsxs)(`tr`,{onClick:()=>r(`tasks`,String(e.id)),className:`cursor-pointer border-b last:border-0 hover:bg-muted/20 transition-colors`,children:[(0,J.jsx)(`td`,{className:`px-3 py-2 font-mono text-xs`,children:e.taskName||`(unnamed)`}),(0,J.jsx)(`td`,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:`outline`,className:`text-[10px] font-normal`,children:e.trigger})}),(0,J.jsx)(`td`,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:e.status===`success`?`default`:`destructive`,className:`text-[10px]`,children:e.status})}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:e.spans?.length||0}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right text-muted-foreground text-xs`,children:Ff(e.timestamp)})]},e.id))})]})})]})]})}function _X({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,J.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground`,children:e}),(0,J.jsx)(`p`,{className:G(`mt-1 text-xl font-semibold tabular-nums`,n&&`text-destructive`),children:typeof t==`number`?t.toLocaleString():t})]})}function vX(){let e=jm(),{route:t,navigate:n}=Lm(),{theme:r,toggle:i}=Vm();Pm({navigate:n,toggleRefresh:()=>e.setAutoRefresh(!e.autoRefresh)});let a=new Set(e.requests.map(e=>e.sessionId).filter(Boolean)).size,o=e.data?.tasks?.totalRuns??0;return(0,J.jsxs)(yf,{defaultOpen:!1,children:[(0,J.jsx)(Lf,{route:t,navigate:n,data:e.data,errorCount:e.errors.length,requestCount:e.requests.length,sessionCount:a,taskCount:o}),(0,J.jsxs)(Sf,{className:`overflow-hidden`,children:[(0,J.jsxs)(`header`,{className:`sticky top-0 z-10 flex h-11 items-center justify-between gap-3 border-b bg-background/95 px-3 backdrop-blur md:px-4`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,J.jsx)(xf,{}),(0,J.jsx)(Lu,{orientation:`vertical`,className:`h-4`}),(0,J.jsx)(`span`,{className:`text-[11px] font-semibold tracking-[0.3em] text-muted-foreground uppercase`,children:`Silgi Analytics`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsxs)(_u,{variant:e.autoRefresh?`secondary`:`outline`,size:`xs`,onClick:()=>e.setAutoRefresh(!e.autoRefresh),children:[(0,J.jsx)(`span`,{"data-icon":`inline-start`,className:G(`size-1.5 rounded-full`,e.connected?`bg-emerald-500 animate-pulse`:e.autoRefresh?`bg-amber-500`:`bg-muted-foreground/40`)}),e.connected?`Live`:e.autoRefresh?`Connecting...`:`Paused`]}),e.errors.length>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`text-[10px]`,children:e.errors.length}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:i,children:(0,J.jsx)($d,{icon:r===`dark`?Kd:Vd})})]})]}),(0,J.jsxs)(`main`,{className:`flex-1 overflow-auto`,children:[e.error&&(0,J.jsx)(`div`,{className:`border-b border-amber-500/30 bg-amber-500/10 px-4 py-2 text-xs text-amber-900 dark:text-amber-200`,children:e.error}),e.isLoading&&!e.data&&e.requests.length===0&&e.errors.length===0&&(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Analytics yukleniyor...`}),t.page===`overview`&&(0,J.jsx)(PY,{data:e.data,navigate:n}),t.page===`errors`&&!t.id&&(0,J.jsx)(lg,{errors:e.errors,navigate:n,initialProcedure:t.params.procedure}),t.page===`errors`&&t.id&&(0,J.jsx)(sh,{errors:e.errors,id:t.id,navigate:n}),t.page===`requests`&&!t.id&&(0,J.jsx)(WY,{requests:e.requests,navigate:n,initialProcedure:t.params.procedure}),t.page===`requests`&&t.id&&(0,J.jsx)(RY,{requests:e.requests,id:t.id,navigate:n}),t.page===`tasks`&&!t.id&&(0,J.jsx)(gX,{data:e.data,taskExecutions:e.taskExecutions,scheduledTasks:e.scheduledTasks,navigate:n}),t.page===`tasks`&&t.id&&(0,J.jsx)(pX,{taskExecutions:e.taskExecutions,id:t.id,navigate:n}),t.page===`sessions`&&!t.id&&(0,J.jsx)(fX,{requests:e.requests,navigate:n}),t.page===`sessions`&&t.id&&(0,J.jsx)(ZY,{requests:e.requests,sessionId:t.id,navigate:n})]})]})]})}(0,ru.createRoot)(document.getElementById(`root`)).render((0,J.jsx)(K.StrictMode,{children:(0,J.jsx)(Jl,{children:(0,J.jsx)(vX,{})})}));</script>
112
+ `)}}):null},kY=pw;function AY({active:e,payload:t,className:n,indicator:r=`dot`,hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){let{config:p}=EY(),m=K.useMemo(()=>{if(i||!t?.length)return null;let[e]=t,n=jY(p,e,`${f||e?.dataKey||e?.name||`value`}`),r=!f&&typeof o==`string`?p[o]?.label||o:n?.label;return s?(0,J.jsx)(`div`,{className:G(`font-medium`,c),children:s(r,t)}):r?(0,J.jsx)(`div`,{className:G(`font-medium`,c),children:r}):null},[o,s,t,i,c,p,f]);if(!e||!t?.length)return null;let h=t.length===1&&r!==`dot`;return(0,J.jsxs)(`div`,{className:G(`grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl`,n),children:[h?null:m,(0,J.jsx)(`div`,{className:`grid gap-1.5`,children:t.filter(e=>e.type!==`none`).map((e,t)=>{let n=jY(p,e,`${d||e.name||e.dataKey||`value`}`),i=u||e.payload.fill||e.color;return(0,J.jsx)(`div`,{className:G(`flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground`,r===`dot`&&`items-center`),children:l&&e?.value!==void 0&&e.name?l(e.value,e.name,e,t,e.payload):(0,J.jsxs)(J.Fragment,{children:[n?.icon?(0,J.jsx)(n.icon,{}):!a&&(0,J.jsx)(`div`,{className:G(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":r===`dot`,"w-1":r===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":r===`dashed`,"my-0.5":h&&r===`dashed`}),style:{"--color-bg":i,"--color-border":i}}),(0,J.jsxs)(`div`,{className:G(`flex flex-1 justify-between leading-none`,h?`items-end`:`items-center`),children:[(0,J.jsxs)(`div`,{className:`grid gap-1.5`,children:[h?m:null,(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:n?.label||e.name})]}),e.value&&(0,J.jsx)(`span`,{className:`font-mono font-medium text-foreground tabular-nums`,children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})}function jY(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}function MY(e){if(!e)return{health:{tone:`healthy`,label:`Waiting for traffic`,description:`Metrics appear as soon as the first request is traced.`},busiest:null,noisiest:null,slowest:null,procedureCount:0};let t=Object.entries(e.procedures),n=t.toSorted((e,t)=>t[1].count-e[1].count)[0],r=t.filter(([,e])=>e.errors>0).toSorted((e,t)=>t[1].errors-e[1].errors)[0],i=t.toSorted((e,t)=>t[1].latency.p95-e[1].latency.p95)[0];return{health:NY(e,t.length),busiest:n?{path:n[0],value:n[1].count,meta:`${n[1].count} total requests`}:null,noisiest:r?{path:r[0],value:r[1].errors,meta:`${r[1].errorRate.toFixed(1)}% error rate`}:null,slowest:i?{path:i[0],value:i[1].latency.p95,meta:`p95 latency hotspot`}:null,procedureCount:t.length}}function NY(e,t){return e.errorRate>=5||e.avgLatency>=250?{tone:`critical`,label:`Needs attention`,description:`${e.totalErrors} errors across ${t} procedures.`}:e.errorRate>=1||e.avgLatency>=100?{tone:`degraded`,label:`Watching closely`,description:`Traffic is flowing, but recent failures are above baseline.`}:{tone:`healthy`,label:`Stable`,description:`Latency and error rate are within a healthy range.`}}var PY={count:{label:`Requests`,color:`var(--chart-1)`},errors:{label:`Errors`,color:`var(--color-destructive)`}},FY={hour:`2-digit`,minute:`2-digit`,second:`2-digit`};function IY({data:e,navigate:t}){let n=(0,K.useMemo)(()=>MY(e),[e]),[r,i]=(0,K.useState)(``),a=(0,K.useMemo)(()=>e?Object.entries(e.procedures):[],[e]),o=(0,K.useMemo)(()=>[...a].toSorted((e,t)=>t[1].latency.p95-e[1].latency.p95).slice(0,5),[a]),s=(0,K.useMemo)(()=>a.filter(([,e])=>e.errors>0).toSorted((e,t)=>t[1].errors-e[1].errors).slice(0,5),[a]);if(!e)return(0,J.jsxs)(`div`,{className:`p-5`,children:[(0,J.jsx)(`div`,{className:`grid grid-cols-2 gap-6 py-4 xl:grid-cols-6`,children:Array.from({length:6}).map((e,t)=>(0,J.jsx)(cf,{className:`h-12`},t))}),(0,J.jsx)(cf,{className:`mt-4 h-24`}),(0,J.jsxs)(`div`,{className:`mt-4 grid grid-cols-2 gap-4`,children:[(0,J.jsx)(cf,{className:`h-28`}),(0,J.jsx)(cf,{className:`h-28`})]})]});let c=a.length;return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-3 gap-x-0 border-b xl:grid-cols-6`,children:[(0,J.jsx)(RY,{label:`Requests`,value:Mf(e.totalRequests)}),(0,J.jsx)(RY,{label:`Throughput`,value:`${Mf(e.requestsPerSecond)}/s`}),(0,J.jsx)(RY,{label:`Errors`,value:String(e.totalErrors),sub:`${e.errorRate.toFixed(1)}%`,danger:e.totalErrors>0}),(0,J.jsx)(RY,{label:`Avg latency`,value:Nf(e.avgLatency)}),(0,J.jsx)(RY,{label:`Uptime`,value:Pf(e.uptime)}),(0,J.jsx)(RY,{label:`Health`,value:n.health.label,className:G(n.health.tone===`healthy`&&`text-emerald-600 dark:text-emerald-400`,n.health.tone===`degraded`&&`text-amber-600 dark:text-amber-400`,n.health.tone===`critical`&&`text-destructive`)})]}),(0,J.jsxs)(`div`,{className:`border-b px-5 py-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`h3`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Traffic`}),(0,J.jsxs)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:[e.timeSeries.length,`s window`]})]}),(0,J.jsx)(LY,{timeSeries:e.timeSeries})]}),(0,J.jsxs)(`div`,{className:`grid border-b xl:grid-cols-2`,children:[(0,J.jsxs)(`div`,{className:`border-b px-5 py-3 xl:border-r xl:border-b-0`,children:[(0,J.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Slowest (p95)`}),o.length===0?(0,J.jsx)(`p`,{className:`py-2 text-xs text-muted-foreground`,children:`No data yet`}):(0,J.jsx)(`div`,{className:`flex flex-col`,children:o.map(([e,n])=>{let r=o[0][1].latency.p95,i=n.latency.p95/r*100;return(0,J.jsxs)(`div`,{className:`flex cursor-pointer items-center gap-2 border-b border-dashed py-1.5 last:border-0 hover:bg-muted/20`,onClick:()=>t(`requests`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(`div`,{className:`hidden w-20 sm:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:`h-full rounded-full bg-chart-1/50`,style:{width:`${i}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[10px] tabular-nums text-muted-foreground`,children:Nf(n.latency.p95)})]},e)})})]}),(0,J.jsxs)(`div`,{className:`px-5 py-3`,children:[(0,J.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Error hotspots`}),s.length===0?(0,J.jsx)(`p`,{className:`py-2 text-xs text-muted-foreground`,children:`No errors`}):(0,J.jsx)(`div`,{className:`flex flex-col`,children:s.map(([e,n])=>(0,J.jsxs)(`div`,{className:`flex cursor-pointer items-center gap-2 border-b border-dashed py-1.5 last:border-0 hover:bg-muted/20`,onClick:()=>t(`errors`,void 0,{procedure:e}),children:[(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e}),(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:n.errors}),(0,J.jsxs)(`span`,{className:`font-mono text-[10px] tabular-nums text-muted-foreground`,children:[n.errorRate.toFixed(1),`%`]})]},e))})]})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-5 pt-4 pb-2`,children:[(0,J.jsx)(`h3`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:`Procedures`}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(uh,{value:r,onChange:e=>i(e.target.value),placeholder:`Filter...`,className:`sm:max-w-48`}),(0,J.jsxs)(`span`,{className:`text-[10px] tabular-nums text-muted-foreground`,children:[c,` routes`]})]})]}),(0,J.jsx)(vg,{procedures:e.procedures,navigate:t,filter:r})]})]})}function LY({timeSeries:e}){let t=(0,K.useMemo)(()=>e.map(e=>({time:new Date(e.time*1e3).toLocaleTimeString([],FY),count:e.count,errors:e.errors})),[e]);return t.length===0?(0,J.jsx)(`div`,{className:`flex h-24 items-center justify-center text-xs text-muted-foreground`,children:`Waiting for data...`}):(0,J.jsx)(DY,{config:PY,className:`mt-2 h-24 w-full`,children:(0,J.jsxs)(CY,{data:t,margin:{top:0,right:0,bottom:0,left:0},children:[(0,J.jsx)(`defs`,{children:(0,J.jsxs)(`linearGradient`,{id:`fillTraffic`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,J.jsx)(`stop`,{offset:`0%`,stopColor:`var(--color-count)`,stopOpacity:.15}),(0,J.jsx)(`stop`,{offset:`100%`,stopColor:`var(--color-count)`,stopOpacity:0})]})}),(0,J.jsx)(FG,{vertical:!1,stroke:`var(--color-border)`,strokeOpacity:.3}),(0,J.jsx)(Nq,{dataKey:`time`,tick:{fontSize:8},tickLine:!1,axisLine:!1,interval:`preserveStartEnd`,tickMargin:4}),(0,J.jsx)(Xq,{hide:!0}),(0,J.jsx)(kY,{content:(0,J.jsx)(AY,{})}),(0,J.jsx)(MK,{type:`monotone`,dataKey:`count`,stroke:`var(--color-count)`,fill:`url(#fillTraffic)`,strokeWidth:1.5,dot:!1,activeDot:{r:2.5,strokeWidth:1.5,fill:`var(--background)`}}),(0,J.jsx)(jH,{dataKey:`errors`,fill:`var(--color-errors)`,fillOpacity:.6,radius:[1,1,0,0],barSize:3})]})})}function RY({label:e,value:t,sub:n,danger:r,className:i}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-3 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsxs)(`div`,{className:`mt-0.5 flex items-baseline gap-1.5`,children:[(0,J.jsx)(`span`,{className:G(`text-lg font-semibold tabular-nums tracking-tight`,r&&`text-destructive`,i),children:t}),n&&(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:n})]})]})}var zY={db:`#a855f7`,redis:`#ef4444`,http:`#3b82f6`,cache:`#10b981`,queue:`#f59e0b`,email:`#f97316`,ai:`#06b6d4`,custom:`#a1a1aa`};function BY({requests:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Fm(),a=Number(t),o=e.find(e=>Number.isNaN(a)?e.requestId===t:e.id===a);if(!o)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Request not found`});let s=o.procedures.reduce((e,t)=>e+t.spans.length,0),c=[{id:`md-${o.id}`,label:`Markdown`,text:$m(o),hint:`full`},{id:`timing-${o.id}`,label:`Timing`,text:eh(o),hint:`perf md`},{id:`md-url-${o.id}`,label:`Markdown URL`,text:th(o),hint:`/md`},{id:`curl-${o.id}`,label:`cURL`,text:nh(o),hint:`fetch md`},{id:`json-${o.id}`,label:`JSON`,text:ah(o),hint:`redacted`}];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`requests`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Requests`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:o.method}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:o.path}),(0,J.jsx)(cu,{variant:o.status>=400?`destructive`:`secondary`,children:o.status}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(o.durationMs)}),o.procedures.length>1&&(0,J.jsxs)(cu,{variant:`outline`,children:[`batch x `,o.procedures.length]}),s>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[s,` spans`]}),o.traceId&&(0,J.jsxs)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[9px]`,onClick:()=>n(`requests`,`trace:${o.traceId}`),children:[`trace:`,o.traceId.slice(0,8)]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(o.timestamp)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:c})})]}),(0,J.jsxs)(`div`,{className:`grid flex-1 overflow-hidden xl:grid-cols-[1.65fr_0.9fr]`,children:[(0,J.jsx)(`div`,{className:`min-w-0 xl:border-r`,children:o.procedures.map((e,t)=>(0,J.jsx)(VY,{proc:e,idx:t,totalMs:o.durationMs,totalProcs:o.procedures.length},t))}),(0,J.jsxs)(`div`,{className:`min-w-0`,children:[(0,J.jsxs)(UY,{label:`HTTP Request`,children:[(0,J.jsx)(WY,{label:`id`,value:String(o.id)}),(0,J.jsx)(WY,{label:`method`,value:o.method}),(0,J.jsx)(WY,{label:`url`,value:o.url}),(0,J.jsx)(WY,{label:`path`,value:o.path}),(0,J.jsx)(WY,{label:`status`,value:String(o.status),danger:o.status>=400}),(0,J.jsx)(WY,{label:`duration`,value:Nf(o.durationMs)}),(0,J.jsx)(WY,{label:`procedures`,value:String(o.procedures.length)}),(0,J.jsx)(WY,{label:`total spans`,value:String(s)}),(0,J.jsx)(WY,{label:`ip`,value:o.ip||`-`}),(0,J.jsx)(WY,{label:`time`,value:Ff(o.timestamp)}),o.sessionId&&(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:`session`}),(0,J.jsx)(cu,{variant:`outline`,className:`cursor-pointer font-mono text-[10px] hover:bg-muted`,onClick:()=>n(`sessions`,o.sessionId),children:o.sessionId.slice(0,12)})]}),o.isBatch&&(0,J.jsx)(WY,{label:`batch`,value:`yes`})]}),s>0&&(0,J.jsx)(UY,{label:`Timing breakdown`,children:(0,J.jsx)(HY,{procedures:o.procedures,totalMs:o.durationMs})}),Object.keys(o.headers??{}).length>0&&(0,J.jsx)(UY,{label:`Request headers`,children:Object.entries(o.headers).map(([e,t])=>(0,J.jsx)(WY,{label:e,value:t},e))}),o.userAgent&&(0,J.jsx)(UY,{label:`User agent`,children:(0,J.jsx)(`p`,{className:`break-all font-mono text-[11px] text-muted-foreground`,children:o.userAgent})}),Object.keys(o.responseHeaders??{}).length>0&&(0,J.jsx)(UY,{label:`Response headers`,children:Object.entries(o.responseHeaders).map(([e,t])=>(0,J.jsx)(WY,{label:e,value:t},e))})]})]})]})}function VY({proc:e,idx:t,totalMs:n,totalProcs:r}){let i=e.input!==void 0&&e.input!==null,a=e.output!==void 0&&e.output!==null;return(0,J.jsxs)(`div`,{className:G(r>1&&`border-b last:border-0`),children:[r>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/30 px-5 py-2 text-[11px]`,children:[(0,J.jsx)(`span`,{className:G(`size-1.5 rounded-full`,e.status>=400?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:e.procedure}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,e.spans.length,` spans)`]})]}),(0,J.jsx)(UY,{label:r===1?`${e.procedure} — ${e.spans.length} spans, ${Nf(e.durationMs)} total`:`Span timeline`,children:e.spans.length>0?(0,J.jsx)(zf,{spans:e.spans,totalMs:e.durationMs}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No spans recorded.`})}),i&&(0,J.jsx)(UY,{label:r>1?`Input (#${t+1})`:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.input,null,2)})}),a&&(0,J.jsx)(UY,{label:r>1?`Output (#${t+1})`:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(e.output,null,2)})}),e.error&&(0,J.jsx)(UY,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-3 py-2 font-mono text-[11px] text-destructive`,children:e.error})})]})}function HY({procedures:e,totalMs:t}){let n=(0,K.useMemo)(()=>{let n=new Map;for(let t of e)for(let e of t.spans)n.set(e.kind,(n.get(e.kind)??0)+e.durationMs);let r=[...n.values()].reduce((e,t)=>e+t,0),i=Math.max(0,t-r),a=[...n].map(([e,t])=>({name:e,value:t,fill:zY[e]??`#a1a1aa`}));return i>.1&&a.push({name:`app`,value:i,fill:`#3f3f46`}),a},[e,t]);return(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsx)(DY,{config:{value:{label:`Time`}},className:`h-24 w-24 shrink-0`,children:(0,J.jsxs)(SY,{children:[(0,J.jsx)(lV,{data:n,dataKey:`value`,nameKey:`name`,cx:`50%`,cy:`50%`,innerRadius:22,outerRadius:38,strokeWidth:1,stroke:`var(--background)`,children:n.map(e=>(0,J.jsx)(Nw,{fill:e.fill},e.name))}),(0,J.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,dominantBaseline:`middle`,className:`fill-foreground text-[10px] font-semibold`,children:Nf(t)}),(0,J.jsx)(kY,{content:({active:e,payload:n})=>{if(!e||!n?.[0])return null;let r=n[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`span`,{className:`font-semibold`,children:r.name}),(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[r.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`ml-1 text-muted-foreground`,children:[`(`,(r.value/t*100).toFixed(0),`%)`]})]})}})]})}),(0,J.jsx)(`div`,{className:`flex flex-col gap-1`,children:n.map(e=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[10px]`,children:[(0,J.jsx)(`div`,{className:`size-2 shrink-0 rounded-full`,style:{backgroundColor:e.fill}}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.name}),(0,J.jsxs)(`span`,{className:`font-mono tabular-nums`,children:[e.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground/50`,children:[(e.value/t*100).toFixed(0),`%`]})]},e.name))})]})}function UY({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function WY({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}var GY={duration:{label:`Duration`,color:`var(--chart-1)`}};function KY({requests:e,navigate:t,initialProcedure:n}){let[r,i]=(0,K.useState)(``),[a,o]=(0,K.useState)(n||`all`),[s,c]=(0,K.useState)(`all`),[l,u]=(0,K.useState)(`all`),[d,f]=(0,K.useState)(`time`),[p,m]=(0,K.useState)(!1),[h,g]=(0,K.useState)(null),_=(0,K.useCallback)(e=>{f(t=>(m(t===e?e=>!e:e===`procedure`),e))},[]),v=(0,K.useMemo)(()=>lg(e.flatMap(e=>e.procedures.map(e=>e.procedure))),[e]),y=(0,K.useMemo)(()=>{let t=sg(e,{query:r,procedure:a,status:s,latency:l}).toReversed(),n=p?1:-1;return t.sort((e,t)=>{switch(d){case`time`:return n*(e.timestamp-t.timestamp);case`procedure`:return n*(e.procedures[0]?.procedure??``).localeCompare(t.procedures[0]?.procedure??``);case`status`:return n*(e.status-t.status);case`duration`:return n*(e.durationMs-t.durationMs);case`spans`:return n*(e.procedures.reduce((e,t)=>e+t.spans.length,0)-t.procedures.reduce((e,t)=>e+t.spans.length,0))}}),t},[e,r,a,s,l,d,p]),b=r.length>0||a!==`all`||s!==`all`||l!==`all`,x=(0,K.useCallback)(()=>{i(``),o(`all`),c(`all`),u(`all`)},[]),S=(0,K.useMemo)(()=>Math.max(...y.map(e=>e.durationMs),.1),[y]),C=h===null?null:y[h];return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No traced requests yet`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Requests appear once the collector sees traffic.`})]}):(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsxs)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:[(0,J.jsx)(uh,{value:r,onChange:e=>i(e.target.value),placeholder:`Search procedures...`,className:`sm:max-w-56`}),(0,J.jsxs)(ym,{value:a,onValueChange:e=>o(e??`all`),children:[(0,J.jsx)(Sm,{size:`sm`,className:`w-full sm:w-40`,children:(0,J.jsx)(xm,{placeholder:`All procedures`})}),(0,J.jsx)(Cm,{align:`start`,children:(0,J.jsxs)(bm,{children:[(0,J.jsx)(wm,{children:`Procedure`}),(0,J.jsx)(Tm,{value:`all`,children:`All procedures`}),v.map(e=>(0,J.jsx)(Tm,{value:e,children:e},e))]})})]}),(0,J.jsxs)(ig,{value:s,onValueChange:e=>c(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(ag,{value:`all`,children:`All`}),(0,J.jsx)(ag,{value:`success`,children:`2xx`}),(0,J.jsx)(ag,{value:`client`,children:`4xx`}),(0,J.jsx)(ag,{value:`server`,children:`5xx`})]}),(0,J.jsxs)(ig,{value:l,onValueChange:e=>u(e||`all`),variant:`outline`,size:`sm`,spacing:1,children:[(0,J.jsx)(ag,{value:`all`,children:`All`}),(0,J.jsx)(ag,{value:`fast`,children:`Fast`}),(0,J.jsx)(ag,{value:`slow`,children:`Slow`})]})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[y.length,` of `,e.length]}),b&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:x,children:`Clear`})]})]}),y.length>0&&(0,J.jsx)(`div`,{className:`border-b px-5`,children:(0,J.jsx)(DY,{config:GY,className:`h-10 w-full`,children:(0,J.jsxs)(xY,{data:y.map((e,t)=>({i:t,d:e.durationMs,err:e.status>=400})),margin:{top:4,right:0,bottom:0,left:0},barGap:1,children:[(0,J.jsx)(kY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let n=y[t[0].payload.i];return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:n.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsxs)(`div`,{className:`text-muted-foreground`,children:[Nf(n.durationMs),` · `,n.status]})]})}}),(0,J.jsx)(jH,{dataKey:`d`,radius:[2,2,0,0],cursor:`pointer`,onClick:(e,t)=>g(h===t?null:t),children:y.map((e,t)=>(0,J.jsx)(Nw,{fill:e.status>=400?`var(--color-destructive)`:`var(--chart-1)`,fillOpacity:h===t?1:e.status>=400?.6:.3},t))})]})})}),y.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching requests`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:b?`Adjust filters.`:`Waiting for traffic.`}),b&&(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`mt-2`,onClick:x,children:`Clear filters`})]}):(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsxs)(`div`,{className:G(`flex-1 overflow-y-auto`,C&&`hidden xl:block`),children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-5 py-1.5 text-[10px] uppercase tracking-wider text-muted-foreground`,children:[(0,J.jsx)(JY,{label:`Time`,sortKey:`time`,currentKey:d,asc:p,onSort:_,className:`w-14`}),(0,J.jsx)(`span`,{className:`w-2`}),(0,J.jsx)(`span`,{className:`w-8`,children:`Method`}),(0,J.jsx)(JY,{label:`Procedure`,sortKey:`procedure`,currentKey:d,asc:p,onSort:_,className:`flex-1`}),(0,J.jsx)(JY,{label:`Status`,sortKey:`status`,currentKey:d,asc:p,onSort:_,className:`w-12`}),(0,J.jsx)(`span`,{className:`hidden w-28 lg:block`,children:`Waterfall`}),(0,J.jsx)(JY,{label:`Duration`,sortKey:`duration`,currentKey:d,asc:p,onSort:_,className:`w-14 text-right`}),(0,J.jsx)(JY,{label:`Spans`,sortKey:`spans`,currentKey:d,asc:p,onSort:_,className:`w-8 text-right`}),(0,J.jsx)(`span`,{className:`w-16`,children:`Session`})]}),y.map((e,n)=>{let r=e.procedures.reduce((e,t)=>e+t.spans.length,0),i=e.status>=400,a=e.durationMs/S*100;return(0,J.jsxs)(Vh,{children:[(0,J.jsx)(Hh,{asChild:!0,children:(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,h===n&&`bg-primary/5`),onClick:()=>g(h===n?null:n),onDoubleClick:()=>t(`requests`,String(e.id)),children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,i?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 font-mono text-[10px] text-muted-foreground`,children:e.method}),(0,J.jsxs)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:[e.procedures.map(e=>e.procedure).join(`, `),e.isBatch&&(0,J.jsx)(cu,{variant:`outline`,className:`ml-1.5 text-[9px]`,children:`batch`})]}),(0,J.jsx)(cu,{variant:i?`destructive`:`secondary`,className:`w-12 justify-center text-[9px]`,children:e.status}),(0,J.jsx)(`div`,{className:`hidden w-28 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:G(`h-full rounded-full`,i?`bg-destructive/50`:`bg-primary/40`),style:{width:`${Math.max(a,2)}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 text-right font-mono text-[9px] text-muted-foreground/50`,children:r||``}),(0,J.jsx)(cu,{variant:`outline`,className:`w-16 cursor-pointer justify-center font-mono text-[9px] hover:bg-muted`,onClick:n=>{n.stopPropagation(),t(`sessions`,e.sessionId)},children:e.sessionId?.slice(0,8)??`-`})]})}),(0,J.jsxs)(Uh,{children:[(0,J.jsx)(Wh,{onClick:()=>t(`requests`,String(e.id)),children:`View details`}),(0,J.jsx)(Wh,{onClick:()=>t(`sessions`,e.sessionId),children:`View session`}),(0,J.jsx)(Wh,{onClick:()=>{fetch(`${km()}/hidden`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({path:e.path})})},className:`text-destructive`,children:`Hide path`}),e.traceId&&(0,J.jsx)(Wh,{onClick:()=>t(`requests`,`trace:${e.traceId}`),children:`View trace`})]})]},e.id)})]}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!C&&`hidden xl:flex`),children:C?(0,J.jsx)(qY,{req:C,onClose:()=>g(null),navigate:t}):(0,J.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:`Select a request to view details`})})]})]})}function qY({req:e,onClose:t,navigate:n}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,e.status>=400?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[e.procedures.map((t,n)=>(0,J.jsxs)(`div`,{children:[e.procedures.length>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/20 px-4 py-1.5 text-[11px]`,children:[(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:t.procedure}),(0,J.jsx)(cu,{variant:t.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:t.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(t.durationMs)})]}),t.spans.length>0&&(0,J.jsx)(YY,{label:`Spans`,children:(0,J.jsx)(zf,{spans:t.spans,totalMs:t.durationMs})}),t.input!==void 0&&t.input!==null&&(0,J.jsx)(YY,{label:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.input,null,2)})}),t.output!==void 0&&t.output!==null&&(0,J.jsx)(YY,{label:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-36 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.output,null,2)})}),t.error&&(0,J.jsx)(YY,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-2.5 py-2 font-mono text-[10px] text-destructive`,children:t.error})})]},n)),(0,J.jsxs)(YY,{label:`Request`,children:[(0,J.jsx)(XY,{label:`method`,value:e.method}),(0,J.jsx)(XY,{label:`path`,value:e.path}),(0,J.jsx)(XY,{label:`status`,value:String(e.status),danger:e.status>=400}),(0,J.jsx)(XY,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(XY,{label:`time`,value:Ff(e.timestamp)}),(0,J.jsx)(XY,{label:`ip`,value:e.ip||`-`})]}),(0,J.jsx)(`div`,{className:`px-4 py-3`,children:(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`w-full`,onClick:()=>n(`requests`,String(e.id)),children:`Open full detail`})})]})]})}function JY({label:e,sortKey:t,currentKey:n,asc:r,onSort:i,className:a}){return(0,J.jsxs)(`span`,{className:G(`cursor-pointer select-none`,n===t&&`text-primary`,a),onClick:()=>i(t),children:[e,n===t&&(r?` ↑`:` ↓`)]})}function YY({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function XY({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}var ZY={db:`#a855f7`,redis:`#ef4444`,http:`#3b82f6`,cache:`#10b981`,queue:`#f59e0b`,email:`#f97316`,ai:`#06b6d4`,custom:`#a1a1aa`},QY={duration:{label:`Duration`,color:`var(--chart-1)`}};function $Y({requests:e,sessionId:t,navigate:n}){let{copiedId:r,copy:i}=Fm(),[a,o]=(0,K.useState)(null),s=(0,K.useMemo)(()=>e.filter(e=>e.sessionId===t).sort((e,t)=>t.timestamp-e.timestamp),[e,t]),c=(0,K.useMemo)(()=>[...s].toReversed(),[s]);if(s.length===0)return(0,J.jsxs)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:[`No requests found for session `,t]});let l=c[0],u=c[c.length-1],d=u.timestamp+u.durationMs-l.timestamp,f=s.reduce((e,t)=>e+t.durationMs,0),p=s.filter(e=>e.status>=400).length,m=s.flatMap(e=>e.procedures.flatMap(e=>e.spans)),h=[...new Set(s.flatMap(e=>e.procedures.map(e=>e.procedure)))].toSorted(),g=Math.max(...s.map(e=>e.durationMs),.1),_=[{id:`md-${t}`,label:`Markdown`,text:oh(s,t),hint:`summary`},{id:`json-${t}`,label:`JSON`,text:sh(s,t),hint:`redacted`}],v=new Map;for(let e of m)v.set(e.kind,(v.get(e.kind)??0)+e.durationMs);let y=Math.max(0,f-[...v.values()].reduce((e,t)=>e+t,0)),b=new Map;for(let e of s){let t=e.status<300?`2xx`:e.status<400?`3xx`:e.status<500?`4xx`:`5xx`;b.set(t,(b.get(t)??0)+1)}let x=a===null?null:s[a];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`sessions`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Sessions`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`text-sm font-semibold`,children:`Session`}),(0,J.jsx)(cu,{variant:`secondary`,className:`font-mono text-[10px]`,children:t.slice(0,13)}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:_})})]}),(0,J.jsxs)(`div`,{className:`grid grid-cols-3 gap-x-0 border-b xl:grid-cols-6`,children:[(0,J.jsx)(aX,{label:`Requests`,value:String(s.length)}),(0,J.jsx)(aX,{label:`Errors`,value:String(p),danger:p>0}),(0,J.jsx)(aX,{label:`Avg latency`,value:Nf(f/s.length)}),(0,J.jsx)(aX,{label:`Total CPU`,value:Nf(f)}),(0,J.jsx)(aX,{label:`Duration`,value:Nf(d)}),(0,J.jsx)(aX,{label:`Spans`,value:String(m.length)})]}),(0,J.jsx)(rX,{requests:c,totalRequests:s.length,selectedIdx:a,onSelect:e=>o(e===null?null:s.length-1-e)}),(0,J.jsxs)(`div`,{className:`flex flex-1 overflow-hidden`,children:[(0,J.jsx)(`div`,{className:G(`flex-1 overflow-y-auto`,x&&`hidden xl:block`),children:s.map((e,t)=>(0,J.jsx)(eX,{req:e,isSelected:a===t,maxDuration:g,onClick:()=>o(a===t?null:t)},e.id))}),(0,J.jsx)(`div`,{className:G(`flex w-full flex-col border-l xl:w-[420px] xl:shrink-0`,!x&&`hidden xl:flex`),children:x?(0,J.jsx)(tX,{req:x,onClose:()=>o(null),onOpenFull:()=>n(`requests`,String(x.id))}):(0,J.jsx)(nX,{sessionId:t,first:l,last:u,wallClockMs:d,totalMs:f,sessionRequests:s,errorCount:p,byStatus:b,byKind:v,appMs:y,uniqueProcedures:h})})]})]})}function eX({req:e,isSelected:t,maxDuration:n,onClick:r}){let i=e.procedures.reduce((e,t)=>e+t.spans.length,0),a=e.status>=400,o=e.durationMs/n*100;return(0,J.jsxs)(`div`,{className:G(`flex cursor-pointer items-center gap-2 border-b border-dashed px-5 py-2 hover:bg-muted/20`,t&&`bg-primary/5`),onClick:r,children:[(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{asChild:!0,children:(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-[11px] tabular-nums text-muted-foreground`,children:If(e.timestamp)})}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.timestamp)})]}),(0,J.jsx)(`span`,{className:G(`size-1.5 shrink-0 rounded-full`,a?`bg-destructive`:`bg-emerald-500`)}),(0,J.jsx)(`span`,{className:`w-8 shrink-0 font-mono text-[10px] text-muted-foreground`,children:e.method}),(0,J.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:a?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`div`,{className:`hidden w-28 lg:block`,children:(0,J.jsx)(`div`,{className:`h-1.5 w-full rounded-full bg-muted`,children:(0,J.jsx)(`div`,{className:G(`h-full rounded-full`,a?`bg-destructive/50`:`bg-primary/40`),style:{width:`${Math.max(o,2)}%`}})})}),(0,J.jsx)(`span`,{className:`w-14 shrink-0 text-right font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`span`,{className:`w-4 shrink-0 text-right font-mono text-[9px] text-muted-foreground/50`,children:i||``})]})}function tX({req:e,onClose:t,onOpenFull:n}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-4 py-2`,children:[(0,J.jsx)(`span`,{className:`flex-1 truncate font-mono text-[11px] font-semibold`,children:e.procedures.map(e=>e.procedure).join(`, `)}),(0,J.jsx)(cu,{variant:e.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:e.status}),(0,J.jsx)(`span`,{className:`font-mono text-[11px] tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:t,children:(0,J.jsx)($d,{icon:Rd,size:14})})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[e.procedures.map((t,n)=>(0,J.jsxs)(`div`,{children:[e.procedures.length>1&&(0,J.jsxs)(`div`,{className:`flex items-center gap-2 border-b bg-muted/20 px-4 py-1.5 text-[11px]`,children:[(0,J.jsx)(`span`,{className:`font-mono font-semibold`,children:t.procedure}),(0,J.jsx)(cu,{variant:t.status>=400?`destructive`:`secondary`,className:`text-[9px]`,children:t.status}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Nf(t.durationMs)})]}),t.spans.length>0&&(0,J.jsx)(oX,{label:`Spans`,children:(0,J.jsx)(zf,{spans:t.spans,totalMs:t.durationMs})}),t.input!==void 0&&t.input!==null&&(0,J.jsx)(oX,{label:e.procedures.length>1?`Input — ${t.procedure}`:`Input`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.input,null,2)})}),t.output!==void 0&&t.output!==null&&(0,J.jsx)(oX,{label:e.procedures.length>1?`Output — ${t.procedure}`:`Output`,children:(0,J.jsx)(`pre`,{className:`max-h-36 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-2.5 font-mono text-[10px] leading-relaxed`,children:JSON.stringify(t.output,null,2)})}),t.error&&(0,J.jsx)(oX,{label:`Error`,children:(0,J.jsx)(`div`,{className:`rounded-md bg-destructive/10 px-2.5 py-2 font-mono text-[10px] text-destructive`,children:t.error})})]},n)),(0,J.jsxs)(oX,{label:`Request`,children:[(0,J.jsx)(sX,{label:`method`,value:e.method}),(0,J.jsx)(sX,{label:`path`,value:e.path}),(0,J.jsx)(sX,{label:`status`,value:String(e.status),danger:e.status>=400}),(0,J.jsx)(sX,{label:`duration`,value:Nf(e.durationMs)}),(0,J.jsx)(sX,{label:`time`,value:Ff(e.timestamp)}),(0,J.jsx)(sX,{label:`ip`,value:e.ip||`-`})]}),(0,J.jsx)(`div`,{className:`px-4 py-3`,children:(0,J.jsx)(_u,{variant:`outline`,size:`xs`,className:`w-full`,onClick:n,children:`Open full detail`})})]})]})}function nX({sessionId:e,first:t,last:n,wallClockMs:r,totalMs:i,sessionRequests:a,errorCount:o,byStatus:s,byKind:c,appMs:l,uniqueProcedures:u}){return(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,J.jsxs)(oX,{label:`Session`,children:[(0,J.jsx)(sX,{label:`session id`,value:e}),(0,J.jsx)(sX,{label:`first seen`,value:Ff(t.timestamp)}),(0,J.jsx)(sX,{label:`last seen`,value:Ff(n.timestamp)}),(0,J.jsx)(sX,{label:`wall clock`,value:Nf(r)}),(0,J.jsx)(sX,{label:`total cpu`,value:Nf(i)}),(0,J.jsx)(sX,{label:`requests`,value:String(a.length)}),(0,J.jsx)(sX,{label:`errors`,value:String(o),danger:o>0}),(0,J.jsx)(sX,{label:`avg latency`,value:Nf(i/a.length)}),(0,J.jsx)(sX,{label:`ip`,value:n.ip||`-`}),(0,J.jsx)(sX,{label:`user agent`,value:n.userAgent?.slice(0,80)||`-`})]}),(0,J.jsx)(oX,{label:`Status`,children:(0,J.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:[...s].toSorted((e,t)=>e[0].localeCompare(t[0])).map(([e,t])=>(0,J.jsxs)(cu,{variant:e===`4xx`||e===`5xx`?`destructive`:`secondary`,className:`text-[10px]`,children:[e,` `,(0,J.jsx)(`span`,{className:`ml-1 opacity-70`,children:t})]},e))})}),c.size>0&&(0,J.jsx)(oX,{label:`Time by category`,children:(0,J.jsx)(iX,{byKind:c,appMs:l,totalMs:i})}),(0,J.jsx)(oX,{label:`Procedures`,children:u.map(e=>{let t=a.flatMap(t=>t.procedures.filter(t=>t.procedure===e)),n=t.length,r=t.reduce((e,t)=>e+t.durationMs,0)/n,i=t.filter(e=>e.status>=400).length;return(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-2 border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-[10px] font-semibold`,children:e}),i>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`text-[9px]`,children:i})]}),(0,J.jsxs)(`div`,{className:`flex shrink-0 gap-2 text-[10px] tabular-nums text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`x`,n]}),(0,J.jsx)(`span`,{className:`font-mono`,children:Nf(r)})]})]},e)})})]})}function rX({requests:e,totalRequests:t,selectedIdx:n,onSelect:r}){let i=(0,K.useMemo)(()=>e.map((e,t)=>({index:t,procedure:e.procedures.map(e=>e.procedure).join(`, `),duration:e.durationMs,status:e.status,isError:e.status>=400})),[e]),a=n===null?null:t-1-n,o=(0,K.useCallback)((e,i)=>{r(n===t-1-i?null:i)},[t,n,r]);return(0,J.jsx)(`div`,{className:`border-b px-5`,children:(0,J.jsx)(DY,{config:QY,className:`h-12 w-full`,children:(0,J.jsxs)(xY,{data:i,margin:{top:4,right:0,bottom:0,left:0},barGap:1,children:[(0,J.jsx)(kY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let n=t[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`div`,{className:`font-semibold`,children:n.procedure}),(0,J.jsxs)(`div`,{className:`text-muted-foreground`,children:[Nf(n.duration),` · `,n.status]})]})}}),(0,J.jsx)(jH,{dataKey:`duration`,radius:[2,2,0,0],cursor:`pointer`,onClick:o,children:i.map((e,t)=>(0,J.jsx)(Nw,{fill:e.isError?`var(--color-destructive)`:`var(--chart-1)`,fillOpacity:a===t?1:e.isError?.6:.3},e.index))})]})})})}function iX({byKind:e,appMs:t,totalMs:n}){let r=(0,K.useMemo)(()=>{let n=[...e].map(([e,t])=>({name:e,value:t,fill:ZY[e]??`#a1a1aa`}));return t>.1&&n.push({name:`app`,value:t,fill:`#3f3f46`}),n},[e,t]);return(0,J.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,J.jsx)(DY,{config:{value:{label:`Time`}},className:`h-24 w-24 shrink-0`,children:(0,J.jsxs)(SY,{children:[(0,J.jsx)(lV,{data:r,dataKey:`value`,nameKey:`name`,cx:`50%`,cy:`50%`,innerRadius:22,outerRadius:38,strokeWidth:1,stroke:`var(--background)`,children:r.map(e=>(0,J.jsx)(Nw,{fill:e.fill},e.name))}),(0,J.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,dominantBaseline:`middle`,className:`fill-foreground text-[10px] font-semibold`,children:Nf(n)}),(0,J.jsx)(kY,{content:({active:e,payload:t})=>{if(!e||!t?.[0])return null;let r=t[0].payload;return(0,J.jsxs)(`div`,{className:`rounded-md border bg-background px-2.5 py-1.5 text-xs shadow-sm`,children:[(0,J.jsx)(`span`,{className:`font-semibold`,children:r.name}),(0,J.jsxs)(`span`,{className:`ml-2 text-muted-foreground`,children:[r.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`ml-1 text-muted-foreground`,children:[`(`,(r.value/n*100).toFixed(0),`%)`]})]})}})]})}),(0,J.jsx)(`div`,{className:`flex flex-col gap-1`,children:r.map(e=>(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[10px]`,children:[(0,J.jsx)(`div`,{className:`size-2 shrink-0 rounded-full`,style:{backgroundColor:e.fill}}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e.name}),(0,J.jsxs)(`span`,{className:`font-mono tabular-nums`,children:[e.value.toFixed(1),`ms`]}),(0,J.jsxs)(`span`,{className:`text-muted-foreground/50`,children:[(e.value/n*100).toFixed(0),`%`]})]},e.name))})]})}function aX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`border-r px-4 py-2.5 last:border-r-0`,children:[(0,J.jsx)(`div`,{className:`text-[10px] font-semibold text-muted-foreground`,children:e}),(0,J.jsx)(`div`,{className:G(`mt-0.5 text-base font-semibold tabular-nums tracking-tight`,n&&`text-destructive`),children:t})]})}function oX({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-4 py-3 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),t]})}function sX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between py-1 text-[10px]`,children:[(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono`,n&&`text-destructive`),children:t})]})}function cX({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,J.jsx)(`table`,{"data-slot":`table`,className:G(`w-full caption-bottom text-sm`,e),...t})})}function lX({className:e,...t}){return(0,J.jsx)(`thead`,{"data-slot":`table-header`,className:G(`[&_tr]:border-b`,e),...t})}function uX({className:e,...t}){return(0,J.jsx)(`tbody`,{"data-slot":`table-body`,className:G(`[&_tr:last-child]:border-0`,e),...t})}function dX({className:e,...t}){return(0,J.jsx)(`tr`,{"data-slot":`table-row`,className:G(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function fX({className:e,...t}){return(0,J.jsx)(`th`,{"data-slot":`table-head`,className:G(`h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0`,e),...t})}function pX({className:e,...t}){return(0,J.jsx)(`td`,{"data-slot":`table-cell`,className:G(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0`,e),...t})}function mX({requests:e,navigate:t}){let[n,r]=(0,K.useState)(``),[i,a]=(0,K.useState)(`time`),[o,s]=(0,K.useState)(!1),c=(0,K.useCallback)(e=>{a(t=>(s(t===e?e=>!e:!1),e))},[]),l=(0,K.useMemo)(()=>{let t=new Map;for(let n of e){if(!n.sessionId)continue;let e=t.get(n.sessionId);e?e.push(n):t.set(n.sessionId,[n])}let r=[];for(let[e,n]of t){let t=n.toSorted((e,t)=>e.timestamp-t.timestamp),i=n.reduce((e,t)=>e+t.durationMs,0),a=n.filter(e=>e.status>=400).length,o=[...new Set(n.flatMap(e=>e.procedures.map(e=>e.procedure)))];r.push({sessionId:e,requestCount:n.length,errorCount:a,totalMs:i,avgMs:i/n.length,firstTimestamp:t[0].timestamp,lastTimestamp:t[t.length-1].timestamp,procedures:o,ip:t[t.length-1].ip,userAgent:t[t.length-1].userAgent})}if(n){let e=n.toLowerCase();r=r.filter(t=>t.sessionId.toLowerCase().includes(e)||t.procedures.some(t=>t.toLowerCase().includes(e))||t.ip.includes(e))}let a=o?1:-1;return r.sort((e,t)=>{switch(i){case`time`:return a*(e.lastTimestamp-t.lastTimestamp);case`requests`:return a*(e.requestCount-t.requestCount);case`errors`:return a*(e.errorCount-t.errorCount);case`duration`:return a*(e.totalMs-t.totalMs);case`avg`:return a*(e.avgMs-t.avgMs)}}),r},[e,n,i,o]),u=(0,K.useMemo)(()=>{let t=new Set;for(let n of e)n.sessionId&&t.add(n.sessionId);return t.size},[e]);return e.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-60 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No sessions yet`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Sessions appear when requests with session IDs are captured.`})]}):(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-2 border-b px-4 py-3 lg:flex-row lg:items-center lg:justify-between`,children:[(0,J.jsx)(`div`,{className:`flex flex-1 flex-wrap items-center gap-2`,children:(0,J.jsx)(uh,{value:n,onChange:e=>r(e.target.value),placeholder:`Search sessions...`,className:`sm:max-w-56`})}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[l.length,` of `,u,` sessions`]}),n&&(0,J.jsx)(_u,{variant:`ghost`,size:`xs`,onClick:()=>r(``),children:`Clear`})]})]}),l.length===0?(0,J.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-1 text-center`,children:[(0,J.jsx)(`p`,{className:`text-sm font-semibold`,children:`No matching sessions`}),(0,J.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Adjust your search to find sessions.`})]}):(0,J.jsxs)(cX,{children:[(0,J.jsx)(lX,{children:(0,J.jsxs)(dX,{children:[(0,J.jsx)(fX,{className:`px-3 py-2 text-[11px]`,children:`Session`}),[[`time`,`Last seen`],[`requests`,`Requests`],[`errors`,`Errors`],[`duration`,`Total`],[`avg`,`Avg`]].map(([e,t])=>(0,J.jsxs)(fX,{onClick:()=>c(e),className:G(`cursor-pointer select-none px-3 py-2 text-[11px]`,(e===`requests`||e===`errors`||e===`duration`||e===`avg`)&&`text-right`,i===e&&`text-primary`),children:[t,i===e&&(o?` ↑`:` ↓`)]},e)),(0,J.jsx)(fX,{className:`px-3 py-2 text-[11px]`,children:`Procedures`})]})}),(0,J.jsx)(uX,{children:l.map(e=>(0,J.jsxs)(dX,{onClick:()=>t(`sessions`,e.sessionId),className:`cursor-pointer`,children:[(0,J.jsx)(pX,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:`secondary`,className:`font-mono text-[10px]`,children:e.sessionId.slice(0,12)})}),(0,J.jsx)(pX,{className:`px-3 py-2 whitespace-nowrap text-xs tabular-nums text-muted-foreground`,children:(0,J.jsxs)(Yl,{children:[(0,J.jsx)(Xl,{className:`cursor-default`,children:If(e.lastTimestamp)}),(0,J.jsx)(Zl,{side:`right`,className:`text-xs`,children:Ff(e.lastTimestamp)})]})}),(0,J.jsx)(pX,{className:`px-3 py-2 text-right text-xs tabular-nums`,children:e.requestCount}),(0,J.jsx)(pX,{className:`px-3 py-2 text-right`,children:e.errorCount>0?(0,J.jsx)(cu,{variant:`destructive`,className:`text-[10px]`,children:e.errorCount}):(0,J.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`0`})}),(0,J.jsx)(pX,{className:`px-3 py-2 text-right text-xs tabular-nums text-muted-foreground`,children:Nf(e.totalMs)}),(0,J.jsx)(pX,{className:`px-3 py-2 text-right text-xs tabular-nums text-muted-foreground`,children:Nf(e.avgMs)}),(0,J.jsx)(pX,{className:`max-w-[240px] px-3 py-2 truncate text-xs text-muted-foreground`,children:e.procedures.join(`, `)})]},e.sessionId))})]})]})}function hX({taskExecutions:e,id:t,navigate:n}){let{copiedId:r,copy:i}=Fm(),a=e.find(e=>e.id===Number(t));if(!a)return(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Task execution not found`});let o=[{id:`md-${a.id}`,label:`Markdown`,text:ch(a),hint:`summary`},{id:`json-${a.id}`,label:`JSON`,text:JSON.stringify(a,null,2),hint:`raw`}];return(0,J.jsxs)(`div`,{className:`flex min-h-full flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b px-5 py-3`,children:[(0,J.jsxs)(_u,{variant:`ghost`,size:`xs`,onClick:()=>n(`tasks`),children:[(0,J.jsx)($d,{icon:Id,"data-icon":`inline-start`}),`Tasks`]}),(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`/`}),(0,J.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:a.taskName||`(unnamed)`}),(0,J.jsx)(cu,{variant:a.status===`success`?`default`:`destructive`,children:a.status}),(0,J.jsx)(cu,{variant:`outline`,children:a.trigger}),(0,J.jsx)(cu,{variant:`secondary`,children:Nf(a.durationMs)}),a.spans?.length>0&&(0,J.jsxs)(cu,{variant:`secondary`,children:[a.spans.length,` spans`]}),(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:Ff(a.timestamp)}),(0,J.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`(`,If(a.timestamp),`)`]}),(0,J.jsx)(`div`,{className:`ml-auto`,children:(0,J.jsx)(Om,{copiedId:r,onCopy:i,options:o})})]}),(0,J.jsxs)(`div`,{className:`grid flex-1 overflow-hidden xl:grid-cols-[1.2fr_0.8fr]`,children:[(0,J.jsxs)(`div`,{className:`min-w-0 xl:border-r`,children:[a.spans?.length>0&&(0,J.jsx)(gX,{label:`Span timeline — ${a.spans.length} spans, ${Nf(a.durationMs)} total`,children:(0,J.jsx)(zf,{spans:a.spans,totalMs:a.durationMs})}),(0,J.jsx)(gX,{label:`Input`,children:a.input!==void 0&&a.input!==null?(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(a.input,null,2)}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No input`})}),(0,J.jsx)(gX,{label:`Output`,children:a.output!==void 0&&a.output!==null?(0,J.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap rounded-md bg-muted/30 p-3 font-mono text-[11px] leading-relaxed`,children:JSON.stringify(a.output,null,2)}):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No output`})}),a.error&&(0,J.jsx)(gX,{label:`Error`,children:(0,J.jsx)(`pre`,{className:`overflow-x-auto whitespace-pre-wrap rounded-md bg-destructive/10 p-3 font-mono text-[11px] leading-relaxed text-destructive`,children:a.error})})]}),(0,J.jsxs)(`div`,{className:`min-w-0`,children:[(0,J.jsxs)(gX,{label:`Execution`,children:[(0,J.jsx)(_X,{label:`id`,value:String(a.id)}),(0,J.jsx)(_X,{label:`task`,value:a.taskName||`(unnamed)`}),(0,J.jsx)(_X,{label:`trigger`,value:a.trigger}),(0,J.jsx)(_X,{label:`status`,value:a.status,danger:a.status===`error`}),(0,J.jsx)(_X,{label:`duration`,value:Nf(a.durationMs)}),(0,J.jsx)(_X,{label:`time`,value:Ff(a.timestamp)}),(0,J.jsx)(_X,{label:`relative`,value:If(a.timestamp)})]}),a.input!==void 0&&a.input!==null&&(0,J.jsx)(gX,{label:`Input summary`,children:typeof a.input==`object`?Object.entries(a.input).map(([e,t])=>(0,J.jsx)(_X,{label:e,value:typeof t==`string`?t:JSON.stringify(t)},e)):(0,J.jsx)(_X,{label:`value`,value:String(a.input)})})]})]})]})}function gX({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`border-b px-5 py-4 last:border-b-0`,children:[(0,J.jsx)(`h4`,{className:`mb-3 text-[11px] font-semibold text-muted-foreground`,children:e}),t]})}function _X({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b border-dashed py-1.5 last:border-0`,children:[(0,J.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e}),(0,J.jsx)(`span`,{className:G(`max-w-[60%] truncate font-mono text-[11px]`,n&&`text-destructive`),children:t})]})}function vX({data:e,taskExecutions:t,scheduledTasks:n,navigate:r}){let[i,a]=(0,K.useState)(`all`),o=e?.tasks,s=(0,K.useMemo)(()=>Object.entries(o?.tasks??{}).sort((e,t)=>t[1].runs-e[1].runs),[o]),c=(0,K.useMemo)(()=>{let e=[...t].toReversed();return i===`all`?e:e.filter(e=>e.status===i)},[t,i]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-6 p-4 md:p-6`,children:[(0,J.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-4`,children:[(0,J.jsx)(yX,{label:`Total runs`,value:o?.totalRuns??0}),(0,J.jsx)(yX,{label:`Errors`,value:o?.totalErrors??0,danger:!!o?.totalErrors}),(0,J.jsx)(yX,{label:`Task types`,value:s.length}),(0,J.jsx)(yX,{label:`Scheduled`,value:n.length})]}),n.length>0&&(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Scheduled (cron)`}),(0,J.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-2 lg:grid-cols-3`,children:n.map(e=>(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`span`,{className:`font-mono text-xs font-medium`,children:e.name}),(0,J.jsx)(cu,{variant:`outline`,className:`text-[10px] font-mono`,children:e.cron})]}),e.description&&(0,J.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,children:e.description}),(0,J.jsxs)(`div`,{className:`mt-2 flex gap-4 text-[11px] text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`Runs: `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.runs})]}),(0,J.jsxs)(`span`,{className:G(e.errors>0&&`text-destructive`),children:[`Errors: `,(0,J.jsx)(`span`,{className:`font-mono`,children:e.errors})]})]}),(0,J.jsxs)(`div`,{className:`mt-1 flex gap-4 text-[11px] text-muted-foreground`,children:[(0,J.jsxs)(`span`,{children:[`Last:`,` `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.lastRun?If(e.lastRun):`—`})]}),(0,J.jsxs)(`span`,{children:[`Next:`,` `,(0,J.jsx)(`span`,{className:`font-mono text-foreground`,children:e.nextRun?If(e.nextRun).replace(` ago`,``):`—`})]})]})]},e.name+e.cron))})]}),s.length>0&&(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Tasks`}),(0,J.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`border-b bg-muted/40 text-left text-xs text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Name`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Runs`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Errors`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Avg`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Last run`})]})}),(0,J.jsx)(`tbody`,{children:s.map(([e,t])=>(0,J.jsxs)(`tr`,{className:`border-b last:border-0 hover:bg-muted/20`,children:[(0,J.jsx)(`td`,{className:`px-3 py-2 font-mono text-xs`,children:e}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums`,children:t.runs}),(0,J.jsx)(`td`,{className:G(`px-3 py-2 text-right font-mono tabular-nums`,t.errors>0&&`text-destructive font-medium`),children:t.errors}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:Nf(t.avgDurationMs)}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right text-muted-foreground`,children:t.lastRun?If(t.lastRun):`—`})]},e))})]})})]}),(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,J.jsx)(`h3`,{className:`text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:`Execution history`}),(0,J.jsx)(`div`,{className:`flex gap-1`,children:[`all`,`success`,`error`].map(e=>(0,J.jsx)(`button`,{onClick:()=>a(e),className:G(`rounded-md px-2 py-0.5 text-[11px] font-medium transition-colors`,i===e?`bg-primary text-primary-foreground`:`text-muted-foreground hover:bg-muted`),children:e===`all`?`All`:e===`success`?`Success`:`Errors`},e))})]}),c.length===0?(0,J.jsx)(`div`,{className:`flex h-32 items-center justify-center rounded-lg border border-dashed text-sm text-muted-foreground`,children:`No task executions yet`}):(0,J.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`border-b bg-muted/40 text-left text-xs text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Task`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Trigger`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Status`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Spans`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Duration`}),(0,J.jsx)(`th`,{className:`px-3 py-2 font-medium text-right`,children:`Time`})]})}),(0,J.jsx)(`tbody`,{children:c.slice(0,100).map(e=>(0,J.jsxs)(`tr`,{onClick:()=>r(`tasks`,String(e.id)),className:`cursor-pointer border-b last:border-0 hover:bg-muted/20 transition-colors`,children:[(0,J.jsx)(`td`,{className:`px-3 py-2 font-mono text-xs`,children:e.taskName||`(unnamed)`}),(0,J.jsx)(`td`,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:`outline`,className:`text-[10px] font-normal`,children:e.trigger})}),(0,J.jsx)(`td`,{className:`px-3 py-2`,children:(0,J.jsx)(cu,{variant:e.status===`success`?`default`:`destructive`,className:`text-[10px]`,children:e.status})}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:e.spans?.length||0}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right font-mono tabular-nums text-muted-foreground`,children:Nf(e.durationMs)}),(0,J.jsx)(`td`,{className:`px-3 py-2 text-right text-muted-foreground text-xs`,children:Ff(e.timestamp)})]},e.id))})]})})]})]})}function yX({label:e,value:t,danger:n}){return(0,J.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,J.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground`,children:e}),(0,J.jsx)(`p`,{className:G(`mt-1 text-xl font-semibold tabular-nums`,n&&`text-destructive`),children:typeof t==`number`?t.toLocaleString():t})]})}function bX(){let e=Nm(),{route:t,navigate:n}=zm(),{theme:r,toggle:i}=Um();Im({navigate:n,toggleRefresh:()=>e.setAutoRefresh(!e.autoRefresh)});let a=new Set(e.requests.map(e=>e.sessionId).filter(Boolean)).size,o=e.data?.tasks?.totalRuns??0;return(0,J.jsxs)(yf,{defaultOpen:!1,children:[(0,J.jsx)(Lf,{route:t,navigate:n,data:e.data,errorCount:e.errors.length,requestCount:e.requests.length,sessionCount:a,taskCount:o}),(0,J.jsxs)(Sf,{className:`overflow-hidden`,children:[(0,J.jsxs)(`header`,{className:`sticky top-0 z-10 flex h-11 items-center justify-between gap-3 border-b bg-background/95 px-3 backdrop-blur md:px-4`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,J.jsx)(xf,{}),(0,J.jsx)(Lu,{orientation:`vertical`,className:`h-4`}),(0,J.jsx)(`span`,{className:`text-[11px] font-semibold tracking-[0.3em] text-muted-foreground uppercase`,children:`Silgi Analytics`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,J.jsxs)(_u,{variant:e.autoRefresh?`secondary`:`outline`,size:`xs`,onClick:()=>e.setAutoRefresh(!e.autoRefresh),children:[(0,J.jsx)(`span`,{"data-icon":`inline-start`,className:G(`size-1.5 rounded-full`,e.connected?`bg-emerald-500 animate-pulse`:e.autoRefresh?`bg-amber-500`:`bg-muted-foreground/40`)}),e.connected?`Live`:e.autoRefresh?`Connecting...`:`Paused`]}),e.errors.length>0&&(0,J.jsx)(cu,{variant:`destructive`,className:`text-[10px]`,children:e.errors.length}),(0,J.jsx)(_u,{variant:`ghost`,size:`icon-sm`,onClick:i,children:(0,J.jsx)($d,{icon:r===`dark`?Kd:Vd})})]})]}),(0,J.jsxs)(`main`,{className:`flex-1 overflow-auto`,children:[e.error&&(0,J.jsx)(`div`,{className:`border-b border-amber-500/30 bg-amber-500/10 px-4 py-2 text-xs text-amber-900 dark:text-amber-200`,children:e.error}),e.isLoading&&!e.data&&e.requests.length===0&&e.errors.length===0&&(0,J.jsx)(`div`,{className:`flex min-h-40 items-center justify-center text-sm text-muted-foreground`,children:`Analytics yukleniyor...`}),t.page===`overview`&&(0,J.jsx)(IY,{data:e.data,navigate:n}),t.page===`errors`&&!t.id&&(0,J.jsx)(dg,{errors:e.errors,navigate:n,initialProcedure:t.params.procedure}),t.page===`errors`&&t.id&&(0,J.jsx)(lh,{errors:e.errors,id:t.id,navigate:n}),t.page===`requests`&&!t.id&&(0,J.jsx)(KY,{requests:e.requests,navigate:n,initialProcedure:t.params.procedure}),t.page===`requests`&&t.id&&(0,J.jsx)(BY,{requests:e.requests,id:t.id,navigate:n}),t.page===`tasks`&&!t.id&&(0,J.jsx)(vX,{data:e.data,taskExecutions:e.taskExecutions,scheduledTasks:e.scheduledTasks,navigate:n}),t.page===`tasks`&&t.id&&(0,J.jsx)(hX,{taskExecutions:e.taskExecutions,id:t.id,navigate:n}),t.page===`sessions`&&!t.id&&(0,J.jsx)(mX,{requests:e.requests,navigate:n}),t.page===`sessions`&&t.id&&(0,J.jsx)($Y,{requests:e.requests,sessionId:t.id,navigate:n})]})]})]})}(0,ru.createRoot)(document.getElementById(`root`)).render((0,J.jsx)(K.StrictMode,{children:(0,J.jsx)(Jl,{children:(0,J.jsx)(bX,{})})}));</script>
113
113
  <style rel="stylesheet" crossorigin>/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
114
114
  @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-900:oklch(41.4% .112 45.904);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:calc(var(--radius) * .8);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xs:4px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Geist Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;--default-mono-font-family:var(--font-mono);--color-border:var(--border);--color-destructive:var(--destructive)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}html{min-height:100%;font-family:Geist Variable,ui-sans-serif,system-ui,-apple-system,sans-serif}html.theme-transition,html.theme-transition *,html.theme-transition :before,html.theme-transition :after{transition:background-color .2s,border-color .2s,color .15s!important}body{background-color:var(--background);color:var(--foreground);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;margin:0}#root{min-height:100vh}::selection{background-color:oklch(79.5% .135 80/.25)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:oklch(50% 0 0/.3);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:oklch(50% 0 0/.5)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.start-1\/2{inset-inline-start:50%}.end{inset-inline-end:var(--spacing)}.end-1{inset-inline-end:calc(var(--spacing) * 1)}.end-2{inset-inline-end:calc(var(--spacing) * 2)}.end-3{inset-inline-end:calc(var(--spacing) * 3)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-3\.5{top:calc(var(--spacing) * 3.5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-3{left:calc(var(--spacing) * 3)}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.my-1{margin-block:calc(var(--spacing) * 1)}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-auto{margin-top:auto}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-full{width:100%;height:100%}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-4{height:calc(var(--spacing) * 4)}.h-4\.5{height:calc(var(--spacing) * 4.5)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-24{height:calc(var(--spacing) * 24)}.h-28{height:calc(var(--spacing) * 28)}.h-32{height:calc(var(--spacing) * 32)}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--available-height\){max-height:var(--available-height)}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-36{max-height:calc(var(--spacing) * 36)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-64{max-height:calc(var(--spacing) * 64)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-60{min-height:calc(var(--spacing) * 60)}.min-h-full{min-height:100%}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing) * 0)}.w-1{width:calc(var(--spacing) * 1)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-\[60\%\]{max-width:60%}.max-w-\[240px\]{max-width:240px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-7{min-width:calc(var(--spacing) * 7)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-28{min-width:calc(var(--spacing) * 28)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-36{min-width:calc(var(--spacing) * 36)}.min-w-\[96px\]{min-width:96px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%-2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[2rem_2\.5rem_minmax\(0\,12rem\)_1fr_4\.5rem_3rem\]{grid-template-columns:2rem 2.5rem minmax(0,12rem) 1fr 4.5rem 3rem}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[--spacing\(var\(--gap\)\)\]{gap:calc(var(--spacing) * var(--gap))}.gap-x-0{column-gap:calc(var(--spacing) * 0)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-4xl{border-radius:calc(var(--radius) * 2.6)}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-\[min\(var\(--radius-md\)\,10px\)\]{border-radius:min(var(--radius-md), 10px)}.rounded-\[min\(var\(--radius-md\)\,12px\)\]{border-radius:min(var(--radius-md), 12px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) * .8)}.rounded-xl{border-radius:calc(var(--radius) * 1.4)}.rounded-t-xl{border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}.rounded-b-xl{border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\(--color-border\){border-color:var(--color-border)}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/30{border-color:color-mix(in oklab, var(--color-amber-500) 30%, transparent)}}.border-border,.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--border) 50%, transparent)}}.border-input{border-color:var(--input)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.bg-\(--color-bg\){background-color:var(--color-bg)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/10{background-color:color-mix(in oklab, var(--color-amber-500) 10%, transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/15{background-color:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.bg-amber-500\/50{background-color:#f99c0080}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/50{background-color:color-mix(in oklab, var(--color-amber-500) 50%, transparent)}}.bg-background,.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/95{background-color:color-mix(in oklab, var(--background) 95%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/15{background-color:#3080ff26}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/15{background-color:color-mix(in oklab, var(--color-blue-500) 15%, transparent)}}.bg-blue-500\/50{background-color:#3080ff80}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/50{background-color:color-mix(in oklab, var(--color-blue-500) 50%, transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-chart-1\/50{background-color:var(--chart-1)}@supports (color:color-mix(in lab, red, red)){.bg-chart-1\/50{background-color:color-mix(in oklab, var(--chart-1) 50%, transparent)}}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-cyan-500\/15{background-color:#00b7d726}@supports (color:color-mix(in lab, red, red)){.bg-cyan-500\/15{background-color:color-mix(in oklab, var(--color-cyan-500) 15%, transparent)}}.bg-cyan-500\/50{background-color:#00b7d780}@supports (color:color-mix(in lab, red, red)){.bg-cyan-500\/50{background-color:color-mix(in oklab, var(--color-cyan-500) 50%, transparent)}}.bg-destructive,.bg-destructive\/5{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/5{background-color:color-mix(in oklab, var(--destructive) 5%, transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-destructive\/50{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/50{background-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.bg-destructive\/60{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/60{background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/15{background-color:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.bg-emerald-500\/50{background-color:#00bb7f80}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/50{background-color:color-mix(in oklab, var(--color-emerald-500) 50%, transparent)}}.bg-foreground{background-color:var(--foreground)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/40{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/40{background-color:color-mix(in oklab, var(--muted-foreground) 40%, transparent)}}.bg-muted\/10{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/10{background-color:color-mix(in oklab, var(--muted) 10%, transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/20{background-color:color-mix(in oklab, var(--muted) 20%, transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--muted) 30%, transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/40{background-color:color-mix(in oklab, var(--muted) 40%, transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/15{background-color:color-mix(in oklab, var(--color-orange-500) 15%, transparent)}}.bg-orange-500\/50{background-color:#fe6e0080}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/50{background-color:color-mix(in oklab, var(--color-orange-500) 50%, transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/5{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/5{background-color:color-mix(in oklab, var(--primary) 5%, transparent)}}.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--primary) 10%, transparent)}}.bg-primary\/30{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/30{background-color:color-mix(in oklab, var(--primary) 30%, transparent)}}.bg-primary\/40{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/40{background-color:color-mix(in oklab, var(--primary) 40%, transparent)}}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-500\/15{background-color:#ac4bff26}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\/15{background-color:color-mix(in oklab, var(--color-purple-500) 15%, transparent)}}.bg-purple-500\/50{background-color:#ac4bff80}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\/50{background-color:color-mix(in oklab, var(--color-purple-500) 50%, transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.bg-zinc-400{background-color:var(--color-zinc-400)}.bg-zinc-400\/40{background-color:#9f9fa966}@supports (color:color-mix(in lab, red, red)){.bg-zinc-400\/40{background-color:color-mix(in oklab, var(--color-zinc-400) 40%, transparent)}}.bg-zinc-500\/15{background-color:#71717b26}@supports (color:color-mix(in lab, red, red)){.bg-zinc-500\/15{background-color:color-mix(in oklab, var(--color-zinc-500) 15%, transparent)}}.bg-clip-padding{background-clip:padding-box}.fill-foreground{fill:var(--foreground)}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.ps-1\.5{padding-inline-start:calc(var(--spacing) * 1.5)}.ps-1\.5\!{padding-inline-start:calc(var(--spacing) * 1.5)!important}.ps-2\.5{padding-inline-start:calc(var(--spacing) * 2.5)}.pe-1\.5\!{padding-inline-end:calc(var(--spacing) * 1.5)!important}.pe-2{padding-inline-end:calc(var(--spacing) * 2)}.pe-8{padding-inline-end:calc(var(--spacing) * 8)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-heading{font-family:Geist Variable,ui-sans-serif,system-ui,-apple-system,sans-serif}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.3em\]{--tw-tracking:.3em;letter-spacing:.3em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-600{color:var(--color-amber-600)}.text-amber-900{color:var(--color-amber-900)}.text-background{color:var(--background)}.text-blue-400{color:var(--color-blue-400)}.text-card-foreground{color:var(--card-foreground)}.text-chart-1{color:var(--chart-1)}.text-cyan-400{color:var(--color-cyan-400)}.text-destructive,.text-destructive\/90{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.text-destructive\/90{color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground,.text-foreground\/60{color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/60{color:color-mix(in oklab, var(--foreground) 60%, transparent)}}.text-muted-foreground,.text-muted-foreground\/40{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/40{color:color-mix(in oklab, var(--muted-foreground) 40%, transparent)}}.text-muted-foreground\/50{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/50{color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/60{color:color-mix(in oklab, var(--muted-foreground) 60%, transparent)}}.text-orange-400{color:var(--color-orange-400)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-400{color:var(--color-purple-400)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--sidebar-foreground) 70%, transparent)}}.text-zinc-400{color:var(--color-zinc-400)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-focus\/context-menu-item\:text-accent-foreground:is(:where(.group\/context-menu-item):focus *),.group-focus\/dropdown-menu-item\:text-accent-foreground:is(:where(.group\/dropdown-menu-item):focus *){color:var(--accent-foreground)}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pe-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-inline-end:calc(var(--spacing) * 8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:justify-center:is(:where(.group)[data-collapsible=icon] *){justify-content:center}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-e:is(:where(.group)[data-side=left] *){border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-s:is(:where(.group)[data-side=right] *){border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.group-data-\[size\=sm\]\/card\:p-3:is(:where(.group\/card)[data-size=sm] *){padding:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/card\:px-3:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 3)}.group-data-\[size\=sm\]\/card\:text-sm:is(:where(.group\/card)[data-size=sm] *){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.group-data-\[spacing\=0\]\/toggle-group\:rounded-none:is(:where(.group\/toggle-group)[data-spacing="0"] *){border-radius:0}.group-data-\[spacing\=0\]\/toggle-group\:px-2:is(:where(.group\/toggle-group)[data-spacing="0"] *){padding-inline:calc(var(--spacing) * 2)}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-1:is(:where(.group)[data-variant=floating] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=floating\]\:ring-sidebar-border:is(:where(.group)[data-variant=floating] *){--tw-ring-color:var(--sidebar-border)}.group-data-\[variant\=line\]\/tabs-list\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *){background-color:#0000}.group-data-horizontal\/tabs\:h-8:is(:where(.group\/tabs):where([data-orientation=horizontal]) *){height:calc(var(--spacing) * 8)}.group-data-vertical\/tabs\:h-fit:is(:where(.group\/tabs):where([data-orientation=vertical]) *){height:fit-content}.group-data-vertical\/tabs\:w-full:is(:where(.group\/tabs):where([data-orientation=vertical]) *){width:100%}.group-data-vertical\/tabs\:flex-col:is(:where(.group\/tabs):where([data-orientation=vertical]) *){flex-direction:column}.group-data-vertical\/tabs\:justify-start:is(:where(.group\/tabs):where([data-orientation=vertical]) *){justify-content:flex-start}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.peer-data-active\/menu-button\:text-sidebar-accent-foreground:is(:is(:where(.peer\/menu-button):where([data-state=active]),:where(.peer\/menu-button):where([data-active]:not([data-active=false])))~*){color:var(--sidebar-accent-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-6::file-selector-button{height:calc(var(--spacing) * 6)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:start-1\/2:after{content:var(--tw-content);inset-inline-start:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:bg-foreground:after{content:var(--tw-content);background-color:var(--foreground)}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-data-\[collapsible\=offcanvas\]\:after\:start-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);inset-inline-start:100%}.group-data-horizontal\/tabs\:after\:inset-x-0:is(:where(.group\/tabs):where([data-orientation=horizontal]) *):after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 0)}.group-data-horizontal\/tabs\:after\:bottom-\[-5px\]:is(:where(.group\/tabs):where([data-orientation=horizontal]) *):after{content:var(--tw-content);bottom:-5px}.group-data-horizontal\/tabs\:after\:h-0\.5:is(:where(.group\/tabs):where([data-orientation=horizontal]) *):after{content:var(--tw-content);height:calc(var(--spacing) * .5)}.group-data-vertical\/tabs\:after\:inset-y-0:is(:where(.group\/tabs):where([data-orientation=vertical]) *):after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.group-data-vertical\/tabs\:after\:-end-1:is(:where(.group\/tabs):where([data-orientation=vertical]) *):after{content:var(--tw-content);inset-inline-end:calc(var(--spacing) * -1)}.group-data-vertical\/tabs\:after\:w-0\.5:is(:where(.group\/tabs):where([data-orientation=vertical]) *):after{content:var(--tw-content);width:calc(var(--spacing) * .5)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/20:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/20:hover{background-color:color-mix(in oklab, var(--muted) 20%, transparent)}}.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus,:is(.focus\:\*\*\:text-accent-foreground:focus *),:is(.not-data-\[variant\=destructive\]\:focus\:\*\*\:text-accent-foreground:not([data-variant=destructive]):focus *){color:var(--accent-foreground)}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-3:focus-visible,.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.active\:not-aria-\[haspopup\]\:translate-y-px:active:not([aria-haspopup]){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-input\/50:disabled{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.disabled\:bg-input\/50:disabled{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}:where([data-slot=button-group]) .in-data-\[slot\=button-group\]\:rounded-lg{border-radius:var(--radius)}.has-data-\[icon\=inline-end\]\:pe-1\.5:has([data-icon=inline-end]){padding-inline-end:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pe-2:has([data-icon=inline-end]){padding-inline-end:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:ps-1\.5:has([data-icon=inline-start]){padding-inline-start:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:ps-2:has([data-icon=inline-start]){padding-inline-start:calc(var(--spacing) * 2)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-data-\[slot\=card-footer\]\:pb-0:has([data-slot=card-footer]){padding-bottom:calc(var(--spacing) * 0)}.has-data-\[slot\=kbd\]\:pe-1\.5:has([data-slot=kbd]){padding-inline-end:calc(var(--spacing) * 1.5)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-expanded\:opacity-100[aria-expanded=true]{opacity:1}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-3[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.aria-pressed\:bg-muted[aria-pressed=true]{background-color:var(--muted)}.data-ending-style\:opacity-0[data-ending-style]{opacity:0}.data-inset\:ps-7[data-inset]{padding-inline-start:calc(var(--spacing) * 7)}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-popup-open\:bg-accent[data-popup-open]{background-color:var(--accent)}.data-popup-open\:text-accent-foreground[data-popup-open]{color:var(--accent-foreground)}.data-starting-style\:opacity-0[data-starting-style]{opacity:0}.data-\[align-trigger\=true\]\:animate-none[data-align-trigger=true]{animation:none}.data-\[side\=bottom\]\:inset-x-0[data-side=bottom]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:calc(var(--spacing) * 1)}.data-\[side\=bottom\]\:bottom-0[data-side=bottom]{bottom:calc(var(--spacing) * 0)}.data-\[side\=bottom\]\:h-auto[data-side=bottom]{height:auto}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=bottom\]\:data-ending-style\:translate-y-\[2\.5rem\][data-side=bottom][data-ending-style],.data-\[side\=bottom\]\:data-starting-style\:translate-y-\[2\.5rem\][data-side=bottom][data-starting-style]{--tw-translate-y:2.5rem;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=inline-end\]\:-start-1[data-side=inline-end]{inset-inline-start:calc(var(--spacing) * -1)}.data-\[side\=inline-end\]\:top-1\/2\![data-side=inline-end]{top:50%!important}.data-\[side\=inline-end\]\:-translate-y-1\/2[data-side=inline-end]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=inline-end\]\:slide-in-from-start-2[data-side=inline-end]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=inline-end\]\:slide-in-from-start-2[data-side=inline-end]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=inline-start\]\:-end-1[data-side=inline-start]{inset-inline-end:calc(var(--spacing) * -1)}.data-\[side\=inline-start\]\:top-1\/2\![data-side=inline-start]{top:50%!important}.data-\[side\=inline-start\]\:-translate-y-1\/2[data-side=inline-start]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=inline-start\]\:slide-in-from-end-2[data-side=inline-start]:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=inline-start\]\:slide-in-from-end-2[data-side=inline-start]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:inset-y-0[data-side=left]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=left\]\:top-1\/2\![data-side=left]{top:50%!important}.data-\[side\=left\]\:-right-1[data-side=left]{right:calc(var(--spacing) * -1)}.data-\[side\=left\]\:left-0[data-side=left]{left:calc(var(--spacing) * 0)}.data-\[side\=left\]\:h-full[data-side=left]{height:100%}.data-\[side\=left\]\:w-3\/4[data-side=left]{width:75%}.data-\[side\=left\]\:-translate-y-1\/2[data-side=left]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:border-e[data-side=left]{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\][data-side=left]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width) * -1)}.data-\[side\=left\]\:data-ending-style\:translate-x-\[-2\.5rem\][data-side=left][data-ending-style],.data-\[side\=left\]\:data-starting-style\:translate-x-\[-2\.5rem\][data-side=left][data-starting-style]{--tw-translate-x:-2.5rem;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:inset-y-0[data-side=right]{inset-block:calc(var(--spacing) * 0)}.data-\[side\=right\]\:top-1\/2\![data-side=right]{top:50%!important}.data-\[side\=right\]\:right-0[data-side=right]{right:calc(var(--spacing) * 0)}.data-\[side\=right\]\:-left-1[data-side=right]{left:calc(var(--spacing) * -1)}.data-\[side\=right\]\:h-full[data-side=right]{height:100%}.data-\[side\=right\]\:w-3\/4[data-side=right]{width:75%}.data-\[side\=right\]\:-translate-y-1\/2[data-side=right]{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:border-s[data-side=right]{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\][data-side=right]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width) * -1)}.data-\[side\=right\]\:data-ending-style\:translate-x-\[2\.5rem\][data-side=right][data-ending-style],.data-\[side\=right\]\:data-starting-style\:translate-x-\[2\.5rem\][data-side=right][data-starting-style]{--tw-translate-x:2.5rem;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:inset-x-0[data-side=top]{inset-inline:calc(var(--spacing) * 0)}.data-\[side\=top\]\:top-0[data-side=top]{top:calc(var(--spacing) * 0)}.data-\[side\=top\]\:-bottom-2\.5[data-side=top]{bottom:calc(var(--spacing) * -2.5)}.data-\[side\=top\]\:h-auto[data-side=top]{height:auto}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[side\=top\]\:data-ending-style\:translate-y-\[-2\.5rem\][data-side=top][data-ending-style],.data-\[side\=top\]\:data-starting-style\:translate-y-\[-2\.5rem\][data-side=top][data-starting-style]{--tw-translate-y:-2.5rem;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[size\=default\]\:h-8[data-size=default]{height:calc(var(--spacing) * 8)}.data-\[size\=md\]\:text-sm[data-size=md]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.data-\[size\=sm\]\:h-7[data-size=sm]{height:calc(var(--spacing) * 7)}.data-\[size\=sm\]\:gap-3[data-size=sm]{gap:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:rounded-\[min\(var\(--radius-md\)\,10px\)\][data-size=sm]{border-radius:min(var(--radius-md), 10px)}.data-\[size\=sm\]\:py-3[data-size=sm]{padding-block:calc(var(--spacing) * 3)}.data-\[size\=sm\]\:text-xs[data-size=sm]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.data-\[size\=sm\]\:has-data-\[slot\=card-footer\]\:pb-0[data-size=sm]:has([data-slot=card-footer]){padding-bottom:calc(var(--spacing) * 0)}:is(.\*\*\:data-\[slot\=kbd\]\:relative *)[data-slot=kbd]{position:relative}:is(.\*\*\:data-\[slot\=kbd\]\:isolate *)[data-slot=kbd]{isolation:isolate}:is(.\*\*\:data-\[slot\=kbd\]\:z-50 *)[data-slot=kbd]{z-index:50}:is(.\*\*\:data-\[slot\=kbd\]\:rounded-sm *)[data-slot=kbd]{border-radius:calc(var(--radius) * .6)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-1\.5>*)[data-slot=select-value]{gap:calc(var(--spacing) * 1.5)}.group-data-horizontal\/toggle-group\:data-\[spacing\=0\]\:first\:rounded-s-lg:is(:where(.group\/toggle-group):where([data-orientation=horizontal]) *)[data-spacing="0"]:first-child{border-start-start-radius:var(--radius);border-end-start-radius:var(--radius)}.group-data-vertical\/toggle-group\:data-\[spacing\=0\]\:first\:rounded-t-lg:is(:where(.group\/toggle-group):where([data-orientation=vertical]) *)[data-spacing="0"]:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.group-data-horizontal\/toggle-group\:data-\[spacing\=0\]\:last\:rounded-e-lg:is(:where(.group\/toggle-group):where([data-orientation=horizontal]) *)[data-spacing="0"]:last-child{border-start-end-radius:var(--radius);border-end-end-radius:var(--radius)}.group-data-vertical\/toggle-group\:data-\[spacing\=0\]\:last\:rounded-b-lg:is(:where(.group\/toggle-group):where([data-orientation=vertical]) *)[data-spacing="0"]:last-child{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.data-\[state\=delayed-open\]\:animate-in[data-state=delayed-open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=delayed-open\]\:fade-in-0[data-state=delayed-open]{--tw-enter-opacity:0}.data-\[state\=delayed-open\]\:zoom-in-95[data-state=delayed-open]{--tw-enter-scale:.95}.data-\[state\=on\]\:bg-muted[data-state=on],.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=line\]\:rounded-none[data-variant=line]{border-radius:0}.group-data-horizontal\/toggle-group\:data-\[spacing\=0\]\:data-\[variant\=outline\]\:border-s-0:is(:where(.group\/toggle-group):where([data-orientation=horizontal]) *)[data-spacing="0"][data-variant=outline]{border-inline-start-style:var(--tw-border-style);border-inline-start-width:0}.group-data-vertical\/toggle-group\:data-\[spacing\=0\]\:data-\[variant\=outline\]\:border-t-0:is(:where(.group\/toggle-group):where([data-orientation=vertical]) *)[data-spacing="0"][data-variant=outline]{border-top-style:var(--tw-border-style);border-top-width:0}.group-data-horizontal\/toggle-group\:data-\[spacing\=0\]\:data-\[variant\=outline\]\:first\:border-s:is(:where(.group\/toggle-group):where([data-orientation=horizontal]) *)[data-spacing="0"][data-variant=outline]:first-child{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.group-data-vertical\/toggle-group\:data-\[spacing\=0\]\:data-\[variant\=outline\]\:first\:border-t:is(:where(.group\/toggle-group):where([data-orientation=vertical]) *)[data-spacing="0"][data-variant=outline]:first-child{border-top-style:var(--tw-border-style);border-top-width:1px}@supports ((-webkit-backdrop-filter:var(--tw)) or (backdrop-filter:var(--tw))){.supports-backdrop-filter\:backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}}@media (width>=40rem){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:max-w-48{max-width:calc(var(--spacing) * 48)}.sm\:max-w-56{max-width:calc(var(--spacing) * 56)}.sm\:max-w-64{max-width:calc(var(--spacing) * 64)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.data-\[side\=left\]\:sm\:max-w-sm[data-side=left],.data-\[side\=right\]\:sm\:max-w-sm[data-side=right]{max-width:var(--container-sm)}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ms-0:is(:where(.peer)[data-variant=inset]~*){margin-inline-start:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) * 1.4)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ms-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-inline-start:calc(var(--spacing) * 2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:block{display:block}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:justify-between{justify-content:space-between}}@media (width>=80rem){.xl\:block{display:block}.xl\:flex{display:flex}.xl\:w-\[420px\]{width:420px}.xl\:shrink-0{flex-shrink:0}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-\[1\.2fr_0\.8fr\]{grid-template-columns:1.2fr .8fr}.xl\:grid-cols-\[1\.6fr_1fr\]{grid-template-columns:1.6fr 1fr}.xl\:grid-cols-\[1\.65fr_0\.9fr\]{grid-template-columns:1.65fr .9fr}.xl\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.xl\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}.ltr\:-translate-x-1\/2:where(:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=ltr],[dir=ltr] *),.rtl\:-translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-px:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\:group-data-\[collapsible\=offcanvas\]\:-translate-x-0:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *):is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}:where([data-side=left]) .rtl\:in-data-\[side\=left\]\:cursor-e-resize:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){cursor:e-resize}:where([data-side=right]) .rtl\:in-data-\[side\=right\]\:cursor-w-resize:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){cursor:w-resize}.rtl\:data-\[side\=left\]\:data-ending-style\:-translate-x-\[-2\.5rem\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-side=left][data-ending-style],.rtl\:data-\[side\=left\]\:data-starting-style\:-translate-x-\[-2\.5rem\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-side=left][data-starting-style]{--tw-translate-x:calc(-2.5rem * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:data-\[side\=right\]\:data-ending-style\:-translate-x-\[2\.5rem\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-side=right][data-ending-style],.rtl\:data-\[side\=right\]\:data-starting-style\:-translate-x-\[2\.5rem\]:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *)[data-side=right][data-starting-style]{--tw-translate-x:calc(2.5rem * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/20:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-emerald-400:is(.dark *){color:var(--color-emerald-400)}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}@media (hover:hover){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}.dark\:hover\:text-foreground:is(.dark *):hover{color:var(--foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:disabled\:bg-input\/80:is(.dark *):disabled{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:disabled\:bg-input\/80:is(.dark *):disabled{background-color:color-mix(in oklab, var(--input) 80%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-open\:animate-in:where([data-state=open]),.data-open\:animate-in:where([data-open]:not([data-open=false])){animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:bg-accent:where([data-state=open]),.data-open\:bg-accent:where([data-open]:not([data-open=false])){background-color:var(--accent)}.data-open\:text-accent-foreground:where([data-state=open]),.data-open\:text-accent-foreground:where([data-open]:not([data-open=false])){color:var(--accent-foreground)}.data-open\:fade-in-0:where([data-state=open]),.data-open\:fade-in-0:where([data-open]:not([data-open=false])){--tw-enter-opacity:0}.data-open\:zoom-in-95:where([data-state=open]),.data-open\:zoom-in-95:where([data-open]:not([data-open=false])){--tw-enter-scale:.95}@media (hover:hover){:is(.data-open\:hover\:bg-sidebar-accent:where([data-state=open]),.data-open\:hover\:bg-sidebar-accent:where([data-open]:not([data-open=false]))):hover{background-color:var(--sidebar-accent)}:is(.data-open\:hover\:text-sidebar-accent-foreground:where([data-state=open]),.data-open\:hover\:text-sidebar-accent-foreground:where([data-open]:not([data-open=false]))):hover{color:var(--sidebar-accent-foreground)}}.data-closed\:animate-out:where([data-state=closed]),.data-closed\:animate-out:where([data-closed]:not([data-closed=false])){animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:overflow-hidden:where([data-state=closed]),.data-closed\:overflow-hidden:where([data-closed]:not([data-closed=false])){overflow:hidden}.data-closed\:fade-out-0:where([data-state=closed]),.data-closed\:fade-out-0:where([data-closed]:not([data-closed=false])){--tw-exit-opacity:0}.data-closed\:zoom-out-95:where([data-state=closed]),.data-closed\:zoom-out-95:where([data-closed]:not([data-closed=false])){--tw-exit-scale:.95}.data-disabled\:pointer-events-none:where([data-disabled=true]),.data-disabled\:pointer-events-none:where([data-disabled]:not([data-disabled=false])){pointer-events:none}.data-disabled\:opacity-50:where([data-disabled=true]),.data-disabled\:opacity-50:where([data-disabled]:not([data-disabled=false])){opacity:.5}.data-active\:bg-background:where([data-state=active]),.data-active\:bg-background:where([data-active]:not([data-active=false])){background-color:var(--background)}.data-active\:bg-sidebar-accent:where([data-state=active]),.data-active\:bg-sidebar-accent:where([data-active]:not([data-active=false])){background-color:var(--sidebar-accent)}.data-active\:font-medium:where([data-state=active]),.data-active\:font-medium:where([data-active]:not([data-active=false])){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-active\:text-foreground:where([data-state=active]),.data-active\:text-foreground:where([data-active]:not([data-active=false])){color:var(--foreground)}.data-active\:text-sidebar-accent-foreground:where([data-state=active]),.data-active\:text-sidebar-accent-foreground:where([data-active]:not([data-active=false])){color:var(--sidebar-accent-foreground)}.group-data-\[variant\=default\]\/tabs-list\:data-active\:shadow-sm:is(:where(.group\/tabs-list)[data-variant=default] *):where([data-state=active]),.group-data-\[variant\=default\]\/tabs-list\:data-active\:shadow-sm:is(:where(.group\/tabs-list)[data-variant=default] *):where([data-active]:not([data-active=false])){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:data-active\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-state=active]),.group-data-\[variant\=line\]\/tabs-list\:data-active\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-active]:not([data-active=false])){background-color:#0000}.group-data-\[variant\=line\]\/tabs-list\:data-active\:shadow-none:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-state=active]),.group-data-\[variant\=line\]\/tabs-list\:data-active\:shadow-none:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-active]:not([data-active=false])){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.group-data-\[variant\=line\]\/tabs-list\:data-active\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-state=active]),.group-data-\[variant\=line\]\/tabs-list\:data-active\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant=line] *):where([data-active]:not([data-active=false]))):after{content:var(--tw-content);opacity:1}.dark\:data-active\:border-input:is(.dark *):where([data-state=active]),.dark\:data-active\:border-input:is(.dark *):where([data-active]:not([data-active=false])){border-color:var(--input)}.dark\:data-active\:bg-input\/30:is(.dark *):where([data-state=active]),.dark\:data-active\:bg-input\/30:is(.dark *):where([data-active]:not([data-active=false])){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-active\:bg-input\/30:is(.dark *):where([data-state=active]),.dark\:data-active\:bg-input\/30:is(.dark *):where([data-active]:not([data-active=false])){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:data-active\:text-foreground:is(.dark *):where([data-state=active]),.dark\:data-active\:text-foreground:is(.dark *):where([data-active]:not([data-active=false])){color:var(--foreground)}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-active\:border-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *):where([data-state=active]),.dark\:group-data-\[variant\=line\]\/tabs-list\:data-active\:border-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *):where([data-active]:not([data-active=false])){border-color:#0000}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-active\:bg-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *):where([data-state=active]),.dark\:group-data-\[variant\=line\]\/tabs-list\:data-active\:bg-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *):where([data-active]:not([data-active=false])){background-color:#0000}.data-horizontal\:h-2\.5:where([data-orientation=horizontal]){height:calc(var(--spacing) * 2.5)}.data-horizontal\:h-px:where([data-orientation=horizontal]){height:1px}.data-horizontal\:w-full:where([data-orientation=horizontal]){width:100%}.data-horizontal\:flex-col:where([data-orientation=horizontal]){flex-direction:column}.data-horizontal\:border-t:where([data-orientation=horizontal]){border-top-style:var(--tw-border-style);border-top-width:1px}.data-horizontal\:border-t-transparent:where([data-orientation=horizontal]){border-top-color:#0000}.data-vertical\:h-full:where([data-orientation=vertical]){height:100%}.data-vertical\:w-2\.5:where([data-orientation=vertical]){width:calc(var(--spacing) * 2.5)}.data-vertical\:w-px:where([data-orientation=vertical]){width:1px}.data-vertical\:flex-col:where([data-orientation=vertical]){flex-direction:column}.data-vertical\:items-stretch:where([data-orientation=vertical]){align-items:stretch}.data-vertical\:self-stretch:where([data-orientation=vertical]){align-self:stretch}.data-vertical\:border-s:where([data-orientation=vertical]){border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.data-vertical\:border-s-transparent:where([data-orientation=vertical]){border-inline-start-color:#0000}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--muted-foreground)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--muted)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing) * 0)}.\[\.border-b\]\:pb-4.border-b{padding-bottom:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-3:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 3)}:is(.\*\:\[a\]\:underline>*):is(a){text-decoration-line:underline}:is(.\*\:\[a\]\:underline-offset-3>*):is(a){text-underline-offset:3px}@media (hover:hover){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-destructive\/20:is(a):hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.\[a\]\:hover\:bg-muted:is(a):hover{background-color:var(--muted)}.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-primary\/80:is(a):hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.\[a\]\:hover\:bg-secondary\/80:is(a):hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.\[a\]\:hover\:text-muted-foreground:is(a):hover{color:var(--muted-foreground)}:is(.\*\:\[a\]\:hover\:text-foreground>*):is(a):hover{color:var(--foreground)}}:is(.\*\:\[img\:first-child\]\:rounded-t-xl>*):is(img:first-child){border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}:is(.\*\:\[img\:last-child\]\:rounded-b-xl>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.focus\:\*\:\[svg\]\:text-accent-foreground:focus>*):is(svg){color:var(--accent-foreground)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3\!>svg{width:calc(var(--spacing) * 3)!important;height:calc(var(--spacing) * 3)!important}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-end-2{inset-inline-end:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=left][data-state=collapsed] .rtl\:\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){cursor:w-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-start-2{inset-inline-start:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right][data-state=collapsed] .rtl\:\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){cursor:e-resize}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,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)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,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)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(data:font/woff2;base64,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)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(98.5% 0 0);--foreground:oklch(14% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14% 0 0);--primary:oklch(58% .16 65);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(96.5% 0 0);--secondary-foreground:oklch(20% 0 0);--muted:oklch(96.5% 0 0);--muted-foreground:oklch(50% 0 0);--accent:oklch(96.5% 0 0);--accent-foreground:oklch(20% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(91.8% 0 0);--input:oklch(91.8% 0 0);--ring:oklch(58% .16 65);--chart-1:oklch(65% .16 75);--chart-2:oklch(57.7% .245 27.325);--chart-3:oklch(58% .15 155);--chart-4:oklch(55% .12 250);--chart-5:oklch(62% .1 320);--radius:.5rem;--sidebar:oklch(98% 0 0);--sidebar-foreground:oklch(14% 0 0);--sidebar-primary:oklch(58% .16 65);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(96.5% 0 0);--sidebar-accent-foreground:oklch(20% 0 0);--sidebar-border:oklch(91.8% 0 0);--sidebar-ring:oklch(58% .16 65)}.dark{--background:oklch(11.5% 0 0);--foreground:oklch(93.5% 0 0);--card:oklch(15.5% .004 265);--card-foreground:oklch(93.5% 0 0);--popover:oklch(15.5% .004 265);--popover-foreground:oklch(93.5% 0 0);--primary:oklch(79.5% .135 80);--primary-foreground:oklch(16% .04 75);--secondary:oklch(21.5% .004 265);--secondary-foreground:oklch(93.5% 0 0);--muted:oklch(19.5% .004 265);--muted-foreground:oklch(54.5% 0 0);--accent:oklch(19.5% .004 265);--accent-foreground:oklch(93.5% 0 0);--destructive:oklch(65% .21 25);--border:oklch(100% 0 0/.08);--input:oklch(100% 0 0/.12);--ring:oklch(79.5% .135 80);--chart-1:oklch(79.5% .135 80);--chart-2:oklch(65% .21 25);--chart-3:oklch(68% .13 160);--chart-4:oklch(60% .15 280);--chart-5:oklch(65% .12 330);--sidebar:oklch(13.5% .004 265);--sidebar-foreground:oklch(93.5% 0 0);--sidebar-primary:oklch(79.5% .135 80);--sidebar-primary-foreground:oklch(16% .04 75);--sidebar-accent:oklch(19.5% .005 265);--sidebar-accent-foreground:oklch(93.5% 0 0);--sidebar-border:oklch(100% 0 0/.08);--sidebar-ring:oklch(54.5% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
115
115
  /*$vite$:1*/</style>