ryco-cli 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.cjs +2 -2
- package/dist/bin.mjs +2 -2
- package/dist/client/assets/{AccountSettings-Cey-16wq.js → AccountSettings-F4ZOTHid.js} +1 -1
- package/dist/client/assets/AiFocusSettings-DwIYKKIc.js +1 -0
- package/dist/client/assets/BranchToolbar.logic-B2jdtYEs.js +1 -0
- package/dist/client/assets/ChatRightPanel-CxA4EQ1O.js +27 -0
- package/dist/client/assets/{ChatThreadRouteView-tEo-zoCf.js → ChatThreadRouteView-BJ6OSbWZ.js} +1 -1
- package/dist/client/assets/CommandPaletteDialog-DywhkOKa.js +1 -0
- package/dist/client/assets/{ConnectionsSettings-B0-Hkwof.js → ConnectionsSettings-B8t9Z17K.js} +2 -2
- package/dist/client/assets/DiagnosticsSettings-Bt7j-SXg.js +2 -0
- package/dist/client/assets/{DraftChatThreadRouteView-BU2IGTR6.js → DraftChatThreadRouteView-BzcBT-YW.js} +1 -1
- package/dist/client/assets/{HostedConnectionControls-Cux_sRCM.js → HostedConnectionControls-DLrwfgKF.js} +1 -1
- package/dist/client/assets/{HostedHubRoot-CyySCdJV.js → HostedHubRoot-eqwMpBq5.js} +1 -1
- package/dist/client/assets/{HostedNativeAuthorizationRoute-490iDXmk.js → HostedNativeAuthorizationRoute-C11yMgF7.js} +1 -1
- package/dist/client/assets/{HostedRelayTrustNotice-CcDOAwgS.js → HostedRelayTrustNotice-CMrrvMuJ.js} +1 -1
- package/dist/client/assets/{IntegrationsSettingsPanel-BFTAvxtn.js → IntegrationsSettingsPanel-rkW9RyYH.js} +1 -1
- package/dist/client/assets/{KeybindingsSettings-VYgbhiZF.js → KeybindingsSettings-CjU5J7hU.js} +1 -1
- package/dist/client/assets/{McpServersSettings-DSDCjoTn.js → McpServersSettings-D-Gq3vgy.js} +2 -2
- package/dist/client/assets/{NewWorktreeDialog-C65Aifeb.js → NewWorktreeDialog-C4D-dD0C.js} +2 -2
- package/dist/client/assets/{NoActiveThreadState-DehHNgAp.js → NoActiveThreadState-z_FeP4Al.js} +1 -1
- package/dist/client/assets/{NodeSecuritySettings-DW9GJ-kU.js → NodeSecuritySettings-CMjnKY0w.js} +1 -1
- package/dist/client/assets/OpinionatedPluginsSettings-D9INVQf7.js +1 -0
- package/dist/client/assets/{PhoneGetAppInterstitial-CbyVrtDn.js → PhoneGetAppInterstitial-B8iVzT22.js} +1 -1
- package/dist/client/assets/{PhoneHome-c0j_TBEC.js → PhoneHome-BonZTgK7.js} +1 -1
- package/dist/client/assets/{PhoneSettingsSurface-5LFRIx_5.js → PhoneSettingsSurface-B-6LoBMV.js} +1 -1
- package/dist/client/assets/{ProjectFavicon-CeVJCQCy.js → ProjectFavicon-CxXx07Sa.js} +1 -1
- package/dist/client/assets/{ProviderModelPicker-MFRYAv_3.js → ProviderModelPicker-M_Ezjlmq.js} +1 -1
- package/dist/client/assets/{ProvidersSettingsPanel-FYBEqSr_.js → ProvidersSettingsPanel-CtTyCMP0.js} +1 -1
- package/dist/client/assets/RootAppShell-DJfVW8Xa.js +6 -0
- package/dist/client/assets/{SettingsDialog-CpwoqGS8.js → SettingsDialog-ClIbtJ2y.js} +1 -1
- package/dist/client/assets/{SettingsPanels-COWRB29-.js → SettingsPanels-DshjYQGk.js} +3 -3
- package/dist/client/assets/{SourceControlSettings-DvBNelcO.js → SourceControlSettings-C_GMp7qk.js} +1 -1
- package/dist/client/assets/{StatisticsPage-DxAKqvVX.js → StatisticsPage-CDukahZF.js} +1 -1
- package/dist/client/assets/{StatisticsPanel-C0xGLlMA.js → StatisticsPanel-BTdaxoVf.js} +1 -1
- package/dist/client/assets/{ThreadStatusIndicators-CIOM98q2.js → ThreadStatusIndicators-D_6jI6us.js} +0 -0
- package/dist/client/assets/{ThreadTerminalDrawer-DRelLlEP.js → ThreadTerminalDrawer-C2B3Ry66.js} +3 -3
- package/dist/client/assets/{ThreadWorkspacePanel-CktVSliZ.js → ThreadWorkspacePanel-D8gR7mQC.js} +6 -6
- package/dist/client/assets/{WorkItemsTab-CahU_t_S.js → WorkItemsTab-QQXGM1BH.js} +5 -5
- package/dist/client/assets/{branding-B7DcCXjn.js → branding-BS9Iv2ln.js} +1 -1
- package/dist/client/assets/{capabilities-B1FHGoov.js → capabilities-tpmeGBtr.js} +1 -1
- package/dist/client/assets/{desktopUpdateAtoms-CPlZiFRm.js → desktopUpdateAtoms-BpN7gP0v.js} +1 -1
- package/dist/client/assets/desktopWorkspace-CIvAIvMt.js +1 -0
- package/dist/client/assets/{device-CHdXzvhB.js → device-B3lHunk1.js} +1 -1
- package/dist/client/assets/{editorPreferences-B4GvqMiF.js → editorPreferences-DiUypD3L.js} +1 -1
- package/dist/client/assets/{index-Gre6bNC8.js → index-C536LXZ6.js} +1 -1
- package/dist/client/assets/main-BjfqengQ.js +9 -0
- package/dist/client/assets/{projectPaths-D6fHIU1b.js → projectPaths-3WDk4ziK.js} +1 -1
- package/dist/client/assets/{providerIconUtils-DiDJeNtT.js → providerIconUtils-DLRASbiu.js} +1 -1
- package/dist/client/assets/{runtime-CPM0EUhb.js → runtime-CYtynKGT.js} +1 -1
- package/dist/client/assets/{session-logic-BalPN1Sc.js → session-logic-DfaSS3p9.js} +1 -1
- package/dist/client/assets/{sidebarProjectFolders-bhNsO9Z_.js → sidebarProjectFolders-DKxZsoOv.js} +2 -2
- package/dist/client/assets/storeSelectors-BeLJe5C1.js +1 -0
- package/dist/client/assets/{threadPinning-BLqwZebi.js → threadPinning-UKIVw0OX.js} +1 -1
- package/dist/client/assets/{threadPriorityRefreshRuntime-BoNAlBXK.js → threadPriorityRefreshRuntime-BbiIUPfh.js} +1 -1
- package/dist/client/assets/types-BeLJe5C1.js +1 -0
- package/dist/client/assets/{useAtlassian-CoHKzu-e.js → useAtlassian-BTWMzLgJ.js} +0 -0
- package/dist/client/assets/useHandleNewThread-9FAjhuhK.js +1 -0
- package/dist/client/assets/{usePhoneThreadActions-BIDUSWSI.js → usePhoneThreadActions-B7yDFO2l.js} +1 -1
- package/dist/client/assets/{useStatistics-B91973jb.js → useStatistics-C9g3i7bQ.js} +1 -1
- package/dist/client/assets/{useThreadActions-BCH01d6u.js → useThreadActions-CouKkjbt.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AiFocusSettings-CaHQXDaQ.js +0 -1
- package/dist/client/assets/BranchToolbar.logic-DILAA3Cz.js +0 -1
- package/dist/client/assets/ChatRightPanel-D-AL07IU.js +0 -27
- package/dist/client/assets/CommandPaletteDialog-s7yf5Y2S.js +0 -1
- package/dist/client/assets/DiagnosticsSettings-DX5LH9Bt.js +0 -2
- package/dist/client/assets/OpinionatedPluginsSettings-DbxPOokL.js +0 -1
- package/dist/client/assets/RootAppShell-5HrP6N8H.js +0 -6
- package/dist/client/assets/desktopWorkspace-DEZ30LlY.js +0 -1
- package/dist/client/assets/main-Dz0zookE.js +0 -9
- package/dist/client/assets/storeSelectors-Cf2WDMfx.js +0 -1
- package/dist/client/assets/types-Cf2WDMfx.js +0 -1
- package/dist/client/assets/useHandleNewThread-Bw460iXT.js +0 -1
package/dist/client/assets/{usePhoneThreadActions-BIDUSWSI.js → usePhoneThreadActions-B7yDFO2l.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{h as t}from"./env-Bcq9YR3B.js";import{
|
|
1
|
+
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{h as t}from"./env-Bcq9YR3B.js";import{R as n,zn as r}from"./runtime-CYtynKGT.js";import{It as i}from"./composerDraftStore-TYv9j3vY.js";import{n as a}from"./useHandleNewThread-9FAjhuhK.js";import{t as o}from"./useRouter-CcIDS3PN.js";import{i as s}from"./uiStateStore-DzUrk2GS.js";import{c,l}from"./WorkItemsTab-QQXGM1BH.js";import{t as u}from"./button-DG8WqjNn.js";import{t as d}from"./useThreadActions-CouKkjbt.js";import{g as f}from"./sidebar-CFGg5Tkr.js";import{a as p,c as m,i as h,o as g,s as _,t as v}from"./dialog-BNmFD6Nh.js";import{a as y,i as b,n as x,o as S,s as C,t as w}from"./MobileSheet-BDvnUC5W.js";var T=e(),E=i();function D(e){let t=(0,T.c)(22),{open:n,onOpenChange:r,title:i,items:a,onAction:o,leadingSections:s}=e,c;t[0]===i?c=t[1]:(c=(0,E.jsx)(S,{children:i}),t[0]=i,t[1]=c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,E.jsx)(x,{className:`sr-only`,children:`Thread actions`}),t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=(0,E.jsxs)(b,{children:[c,l]}),t[3]=c,t[4]=u);let d;if(t[5]!==a||t[6]!==o||t[7]!==r){let e;t[9]!==o||t[10]!==r?(e=e=>(0,E.jsx)(C,{label:e.label,destructive:e.destructive===!0,onClick:()=>{r(!1),o(e.id)}},e.id),t[9]=o,t[10]=r,t[11]=e):e=t[11],d=a.map(e),t[5]=a,t[6]=o,t[7]=r,t[8]=d}else d=t[8];let f;t[12]===d?f=t[13]:(f=(0,E.jsx)(`div`,{role:`group`,"aria-label":`Thread actions`,className:`space-y-0.5`,children:d}),t[12]=d,t[13]=f);let p;t[14]!==s||t[15]!==f?(p=(0,E.jsxs)(y,{children:[s,f]}),t[14]=s,t[15]=f,t[16]=p):p=t[16];let m;return t[17]!==r||t[18]!==n||t[19]!==u||t[20]!==p?(m=(0,E.jsxs)(w,{open:n,onOpenChange:r,label:`Thread actions`,children:[u,p]}),t[17]=r,t[18]=n,t[19]=u,t[20]=p,t[21]=m):m=t[21],m}function O(e){let n=(0,T.c)(32),{renamingThreadKey:r,originalTitle:i,renamingTitle:a,setRenamingTitle:o,commitRename:s,cancelRename:c}=e,l;n[0]===r?l=n[1]:(l=r?t(r):null,n[0]=r,n[1]=l);let d=l;if(!d)return null;let f;n[2]!==s||n[3]!==i||n[4]!==a||n[5]!==d?(f=()=>{s(d,a,i)},n[2]=s,n[3]=i,n[4]=a,n[5]=d,n[6]=f):f=n[6];let y=f,b;n[7]===c?b=n[8]:(b=e=>{e||c()},n[7]=c,n[8]=b);let x;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,E.jsx)(p,{children:(0,E.jsx)(m,{children:`Rename thread`})}),n[9]=x):x=n[9];let S;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,E.jsx)(`label`,{htmlFor:`phone-thread-rename-title`,className:`sr-only`,children:`Thread title`}),n[10]=S):S=n[10];let C;n[11]===o?C=n[12]:(C=e=>o(e.currentTarget.value),n[11]=o,n[12]=C);let w;n[13]===y?w=n[14]:(w=e=>{e.key===`Enter`&&(e.preventDefault(),y())},n[13]=y,n[14]=w);let D;n[15]!==a||n[16]!==C||n[17]!==w?(D=(0,E.jsxs)(g,{children:[S,(0,E.jsx)(`input`,{id:`phone-thread-rename-title`,autoFocus:!0,value:a,maxLength:500,onChange:C,onKeyDown:w,className:`h-11 w-full rounded-lg border border-input bg-background px-3 text-base outline-none focus-visible:ring-2 focus-visible:ring-ring`})]}),n[15]=a,n[16]=C,n[17]=w,n[18]=D):D=n[18];let O;n[19]===c?O=n[20]:(O=(0,E.jsx)(u,{variant:`outline`,className:`phone:min-h-11`,onClick:c,children:`Cancel`}),n[19]=c,n[20]=O);let k;n[21]===y?k=n[22]:(k=(0,E.jsx)(u,{className:`phone:min-h-11`,onClick:y,children:`Rename`}),n[21]=y,n[22]=k);let A;n[23]!==k||n[24]!==O?(A=(0,E.jsxs)(h,{children:[O,k]}),n[23]=k,n[24]=O,n[25]=A):A=n[25];let j;n[26]!==A||n[27]!==D?(j=(0,E.jsxs)(_,{children:[x,D,A]}),n[26]=A,n[27]=D,n[28]=j):j=n[28];let M;return n[29]!==j||n[30]!==b?(M=(0,E.jsx)(v,{open:!0,onOpenChange:b,children:j}),n[29]=j,n[30]=b,n[31]=M):M=n[31],M}function k(e){let t=(0,T.c)(23),i=o(),{isMobile:u,setOpenMobile:p}=f(),m=r(B),h=r(z),g=r(R),_=r(L),{archiveThread:v,deleteThread:y}=d(),{handleNewThread:b}=a(),x=s(I),S=n(F),C=n(P),w=n(N),E=n(M),D=n(j),O=n(A),{copyThreadIdToClipboard:k,copyPathToClipboard:V}=l(),H;return t[0]!==h||t[1]!==m||t[2]!==g||t[3]!==v||t[4]!==w||t[5]!==V||t[6]!==k||t[7]!==_||t[8]!==y||t[9]!==b||t[10]!==u||t[11]!==x||t[12]!==e.memberProjectByScopedKey||t[13]!==e.projectCwd||t[14]!==e.sidebarThreadByKeyRef||t[15]!==C||t[16]!==E||t[17]!==i||t[18]!==O||t[19]!==p||t[20]!==D||t[21]!==S?(H={router:i,isMobile:u,setOpenMobile:p,clearSelection:w,setSelectionAnchor:D,toggleThreadSelection:S,rangeSelectTo:C,removeFromSelection:E,selectedThreadCount:O,appSettingsConfirmThreadDelete:m,appSettingsConfirmThreadArchive:h,appSettingsConfirmThreadUnpin:g,defaultThreadEnvMode:_,deleteThread:y,archiveThread:v,handleNewThread:b,markThreadUnread:x,copyPathToClipboard:V,copyThreadIdToClipboard:k,sidebarThreadByKeyRef:e.sidebarThreadByKeyRef,memberProjectByScopedKey:e.memberProjectByScopedKey,projectCwd:e.projectCwd},t[0]=h,t[1]=m,t[2]=g,t[3]=v,t[4]=w,t[5]=V,t[6]=k,t[7]=_,t[8]=y,t[9]=b,t[10]=u,t[11]=x,t[12]=e.memberProjectByScopedKey,t[13]=e.projectCwd,t[14]=e.sidebarThreadByKeyRef,t[15]=C,t[16]=E,t[17]=i,t[18]=O,t[19]=p,t[20]=D,t[21]=S,t[22]=H):H=t[22],c(H)}function A(e){return e.selectedThreadKeys.size}function j(e){return e.setAnchor}function M(e){return e.removeFromSelection}function N(e){return e.clearSelection}function P(e){return e.rangeSelectTo}function F(e){return e.toggleThread}function I(e){return e.markThreadUnread}function L(e){return e.defaultThreadEnvMode}function R(e){return e.confirmThreadUnpin}function z(e){return e.confirmThreadArchive}function B(e){return e.confirmThreadDelete}export{D as n,O as r,k as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./react-SIfiwpqq.js";import{t as i}from"./compiler-runtime-qmuS0Svy.js";import{at as a,it as o}from"./src-DmPIm3ie.js";import{xn as s}from"./runtime-CPM0EUhb.js";import{It as c}from"./composerDraftStore-TYv9j3vY.js";import{Zn as l}from"./usePopupViewport-8F-J1h5f.js";import{f as u}from"./useRenderElement-DchFnsR8.js";import{t as d}from"./arrow-up-right-DGeet8e6.js";import{d as f,t as p}from"./utils-CV2fJJxC.js";import{t as m}from"./react-dom-x9LNwWQc.js";import{a as h,i as g,o as _,s as v,t as y}from"./select-CZukJlTn.js";var b=u(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),x=e(r()),S=l(),C=e(m());function w(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function T(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var E=e=>Array.isArray(e)?e:[e];function D(e){let t=Array.isArray(e[0])?e[0]:e;return T(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function O(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var k=class{constructor(e){this.value=e}deref(){return this.value}},A=typeof WeakRef>`u`?k:WeakRef,j=0,M=1;function N(){return{s:j,v:void 0,o:null,p:null}}function ee(e){return e instanceof A?e.deref():e}function te(e,t={}){let n=N(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=N(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=N(),e.set(n,t)):t=r}}let s=t,c;if(t.s===M)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=ee(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new A(c):c}return s.s=M,s.v=c,c}return o.clearCache=()=>{n=N(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ne(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),w(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=te,argsMemoizeOptions:u=[]}={...n,...a},d=E(c),f=E(u),p=D(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=O(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var P=ne(te),re=`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(`.`);function ie(e){return typeof e==`string`&&re.includes(e)}var ae=new Set(`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(`.`));function oe(e){return typeof e==`string`&&ae.has(e)}function se(e){return typeof e==`string`&&e.startsWith(`data-`)}function ce(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oe(n)||se(n))&&(t[n]=e[n]);return t}function le(e){if(e==null)return null;if((0,x.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ce(t)}return typeof e==`object`&&!Array.isArray(e)?ce(e):null}function ue(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oe(n)||se(n)||ie(n))&&(t[n]=e[n]);return t}function de(e){return e==null?null:(0,x.isValidElement)(e)?ue(e.props):typeof e==`object`&&!Array.isArray(e)?ue(e):null}var fe=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(null,arguments)}function me(e,t){if(e==null)return{};var n,r,i=he(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function he(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ge=(0,x.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=me(e,fe),d=a||{width:r,height:i,x:0,y:0},p=f(`recharts-surface`,o);return x.createElement(`svg`,pe({},ue(u),{className:p,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),x.createElement(`title`,null,c),x.createElement(`desc`,null,l),n)}),_e=[`children`,`className`];function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve.apply(null,arguments)}function ye(e,t){if(e==null)return{};var n,r,i=be(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var F=x.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ye(e,_e),a=f(`recharts-layer`,r);return x.createElement(`g`,ve({className:a},ue(i),{ref:t}),n)});function xe(e){return e===`__proto__`}var Se=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function Ce(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:Se.test(e);default:return!1}}function we(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Te(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Te).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ee(e){if(Array.isArray(e))return e.map(we);if(typeof e==`symbol`)return[e];e=Te(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function De(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(xe(t))return n;let r=e[t];return r===void 0?Ce(t)&&!Object.hasOwn(e,t)?De(e,Ee(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=we(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Oe(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),xe(t))return n;let r=e[t];return r===void 0?n:r}}}function Oe(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||xe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var ke=4;function Ae(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function je(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Ae(i)+n},``)}var Me=e=>e===0?0:e>0?1:-1,Ne=e=>typeof e==`number`&&e!=+e,Pe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,I=e=>(typeof e==`number`||e instanceof Number)&&!Ne(e),Fe=e=>I(e)||typeof e==`string`,Ie=0,Le=e=>{var t=++Ie;return`${e||``}${t}`},Re=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];if(!I(e)&&typeof e!=`string`)return n;var i;if(Pe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Ne(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},ze=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function L(e,t,n){return I(e)&&I(t)?Ae(e+n*(t-e)):t}function Be(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):De(e,t))===n)}var R=e=>e==null,Ve=e=>R(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function He(e){return e!=null}function Ue(){}function We(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function Ge(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ge(Object(n),!0).forEach(function(t){qe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qe(e,t,n){return(t=Je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e){var t=Ye(e,`string`);return typeof t==`symbol`?t:t+``}function Ye(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Xe=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=We(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Ke({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Ke({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Ke({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Ke({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Ke({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Ke({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Ke({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Ke({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(I(n.x)||Pe(n.x))&&(I(n.y)||Pe(n.y))?Ke({x:c+Re(n.x,g),y:l+Re(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Ke({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ze=[`top`,`left`,`right`,`bottom`];function Qe(e){return e==null?!1:typeof e==`object`||Ze.includes(e)}var $e=(0,x.createContext)(null);function et(e){return function(){return e}}var tt=Math.PI,nt=2*tt,rt=1e-6,it=nt-rt;function at(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ot(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return at;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 st=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?at:ot(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>rt){if(!(Math.abs(u*s-c*l)>rt)||!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((tt-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>rt&&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)>rt||Math.abs(this._y1-l)>rt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%nt+nt),d>it?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>rt&&this._append`A${n},${n},0,${+(d>=tt)},${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._}};st.prototype;function ct(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 st(t)}Array.prototype.slice;function lt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ut(e){this._context=e}ut.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)}}};function dt(e){return new ut(e)}function ft(e){return e[0]}function pt(e){return e[1]}function mt(e,t){var n=et(!0),r=null,i=dt,a=null,o=ct(s);e=typeof e==`function`?e:e===void 0?ft:et(e),t=typeof t==`function`?t:t===void 0?pt:et(t);function s(s){var c,l=(s=lt(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:et(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:et(!!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 ht(e,t,n){var r=null,i=et(!0),a=null,o=dt,s=null,c=ct(l);e=typeof e==`function`?e:e===void 0?ft:et(+e),t=typeof t==`function`?t:et(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?pt:et(+n);function l(l){var u,d,f,p=(l=lt(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 mt().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:et(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:et(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:et(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:et(+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:et(!!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 gt=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)}this._x0=e,this._y0=t}};function _t(e){return new gt(e,!0)}function vt(e){return new gt(e,!1)}function yt(){}function bt(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 xt(e){this._context=e}xt.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:bt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function St(e){return new xt(e)}function Ct(e){this._context=e}Ct.prototype={areaStart:yt,areaEnd:yt,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)}},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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wt(e){return new Ct(e)}function Tt(e){this._context=e}Tt.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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Et(e){return new Tt(e)}function Dt(e){this._context=e}Dt.prototype={areaStart:yt,areaEnd:yt,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 Ot(e){return new Dt(e)}function kt(e){return e<0?-1:1}function At(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(kt(a)+kt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function jt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mt(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 Nt(e){this._context=e}Nt.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:Mt(this,this._t0,jt(this,this._t0))}(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,Mt(this,jt(this,n=At(this,e,t)),n);break;default:Mt(this,this._t0,n=At(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Pt(e){this._context=new Ft(e)}(Pt.prototype=Object.create(Nt.prototype)).point=function(e,t){Nt.prototype.point.call(this,t,e)};function Ft(e){this._context=e}Ft.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 It(e){return new Nt(e)}function Lt(e){return new Pt(e)}function Rt(e){this._context=e}Rt.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=zt(e),i=zt(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 zt(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 Bt(e){return new Rt(e)}function Vt(e,t){this._context=e,this._t=t}Vt.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)}}this._x=e,this._y=t}};function Ht(e){return new Vt(e,.5)}function Ut(e){return new Vt(e,0)}function Wt(e){return new Vt(e,1)}function Gt(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 Kt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function qt(e,t){return e[t]}function Jt(e){let t=[];return t.key=e,t}function Yt(){var e=et([]),t=Kt,n=Gt,r=qt;function i(i){var a=Array.from(e.apply(this,arguments),Jt),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=lt(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:et(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:et(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Kt:typeof e==`function`?e:et(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Gt,i):n},i}function Xt(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}Gt(e,t)}}function Zt(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}Gt(e,t)}}function Qt(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,Gt(e,t)}}var $t=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,en=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,x.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{ie(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},tn=(e,t,n)=>r=>(e(t,n,r),null),nn=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];ie(i)&&typeof a==`function`&&(r||={},r[i]=tn(a,t,n))}),r};function rn(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?rn(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function on(e,t,n){return(t=sn(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 typeof t==`symbol`?t:t+``}function cn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ln(e,t){var n=an({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function un(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function dn(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function fn(e){return e}function pn(e){return function(t){return De(t,e)}}function mn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function hn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function _n(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var vn=`[object RegExp]`,yn=`[object String]`,bn=`[object Number]`,xn=`[object Boolean]`,Sn=`[object Arguments]`,Cn=`[object Symbol]`,wn=`[object Date]`,Tn=`[object Map]`,En=`[object Set]`,Dn=`[object Array]`,On=`[object Function]`,kn=`[object ArrayBuffer]`,An=`[object Object]`,jn=`[object Error]`,Mn=`[object DataView]`,Nn=`[object Uint8Array]`,Pn=`[object Uint8ClampedArray]`,Fn=`[object Uint16Array]`,In=`[object Uint32Array]`,Ln=`[object BigUint64Array]`,Rn=`[object Int8Array]`,zn=`[object Int16Array]`,Bn=`[object Int32Array]`,Vn=`[object BigInt64Array]`,Hn=`[object Float32Array]`,Un=`[object Float64Array]`,Wn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Gn(e){return Wn.Buffer!==void 0&&Wn.Buffer.isBuffer(e)}function Kn(e,t){return qn(e,void 0,e,new Map,t)}function qn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(mn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=qn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,qn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(qn(a,void 0,n,r,i));return t}if(Gn(e))return e.subarray();if(hn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=qn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Jn(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof e==`object`&&Yn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Jn(t,e,n,r,i),t}return e}function Jn(e,t,n=e,r,i){let a=[...Object.keys(t),...gn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=qn(t[s],s,n,r,i))}}function Yn(e){switch(_n(e)){case Sn:case Dn:case kn:case Mn:case xn:case wn:case Hn:case Un:case Rn:case zn:case Bn:case Tn:case bn:case An:case vn:case En:case yn:case Cn:case Nn:case Pn:case Fn:case In:return!0;default:return!1}}function Xn(e){return qn(e,void 0,e,new Map,void 0)}function Zn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Qn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function $n(e,t,n){return typeof n==`function`?er(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?er(t,r,e,s,!1):!!c},new Map,!0):$n(e,t,()=>void 0)}function er(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return tr(e,t,n,r);case`function`:return Object.keys(t).length>0?er(e,{...t},n,r,i):Zn(e,t);default:return Qn(e)&&i?typeof t!=`string`||t===``:Zn(e,t)}}function tr(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return rr(e,t,n,r);if(t instanceof Map)return nr(e,t,n,r);if(t instanceof Set)return ir(e,t,n,r);let i=Object.keys(t);if(e==null||mn(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!mn(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function nr(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function rr(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function ir(e,t,n,r){return t.size===0||e instanceof Set&&rr([...e],[...t],n,r)}function ar(e,t){return $n(e,t,()=>void 0)}function or(e){return e=Xn(e),t=>ar(t,e)}function sr(e,t){return Kn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(_n(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Jn(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case bn:case yn:case xn:{let t=new e.constructor(e?.valueOf());return Jn(t,e),t}case Sn:{let t={};return Jn(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function cr(e){return sr(e)}var lr=/^(?:0|[1-9]\d*)$/;function ur(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return lr.test(e)}}function dr(e){return typeof e==`object`&&!!e&&_n(e)===`[object Arguments]`}function fr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ce(t)&&!(t in Object(e))?Ee(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||dr(r))&&ur(t)&&t<r.length))return!1;r=r[t]}return!0}function pr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=we(e)}return t=cr(t),function(n){let r=De(n,e);return r===void 0?fr(n,e):t===void 0?r===void 0:ar(r,t)}}function mr(e){if(e==null)return fn;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?pr(e[0],e[1]):or(e);case`string`:case`symbol`:case`number`:return pn(e)}}function hr(e){return Number.isSafeInteger(e)&&e>=0}function gr(e){return e!=null&&typeof e!=`function`&&hr(e.length)}function _r(e){return typeof e==`object`&&!!e}function vr(e){return _r(e)&&gr(e)}function yr(e,t=fn){return vr(e)?un(Array.from(e),dn(mr(t),1)):[]}function br(e,t,n){return t===!0?yr(e,n):typeof t==`function`?yr(e,t):e}var xr=(0,x.createContext)(null),Sr=e=>e,z=()=>{var e=(0,x.useContext)(xr);return e?e.store.dispatch:Sr},Cr=()=>{},wr=()=>Cr,Tr=(e,t)=>e===t;function B(e){var t=(0,x.useContext)(xr),n=(0,x.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Cr,[t,e]);return(0,S.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:wr,t?t.store.getState:Cr,t?t.store.getState:Cr,n,Tr)}function Er(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Dr(e,t,n){return Qn(n)&&(typeof t==`number`&&gr(n)&&ur(t)&&t<n.length||typeof t==`string`&&t in n)?Zn(n[t],e):!1}function Or(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var kr=(e,t,n)=>{if(e!==t){let r=Or(e),i=Or(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function Ar(e){return typeof e==`symbol`||e instanceof Symbol}var jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mr=/^\w*$/;function Nr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||Ar(e)?!0:typeof e==`string`&&(Mr.test(e)||!jr.test(e))||t!=null&&Object.hasOwn(t,e)}function Pr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Nr(e)?e:{key:e,path:Ee(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=kr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Fr(e,...t){let n=t.length;return n>1&&Dr(e,t[0],t[1])?t=[]:n>2&&Dr(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,Er(t),[`asc`])}var Ir=e=>e.legend.settings,Lr=e=>e.legend.size;P([e=>e.legend.payload,Ir],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Fr(r,n):r});function Rr(e,t){return Ur(e)||Hr(e,t)||Br(e,t)||zr()}function zr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./react-SIfiwpqq.js";import{t as i}from"./compiler-runtime-qmuS0Svy.js";import{at as a,it as o}from"./src-DmPIm3ie.js";import{Sn as s}from"./runtime-CYtynKGT.js";import{It as c}from"./composerDraftStore-TYv9j3vY.js";import{Zn as l}from"./usePopupViewport-8F-J1h5f.js";import{f as u}from"./useRenderElement-DchFnsR8.js";import{t as d}from"./arrow-up-right-DGeet8e6.js";import{d as f,t as p}from"./utils-CV2fJJxC.js";import{t as m}from"./react-dom-x9LNwWQc.js";import{a as h,i as g,o as _,s as v,t as y}from"./select-CZukJlTn.js";var b=u(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),x=e(r()),S=l(),C=e(m());function w(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function T(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var E=e=>Array.isArray(e)?e:[e];function D(e){let t=Array.isArray(e[0])?e[0]:e;return T(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function O(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var k=class{constructor(e){this.value=e}deref(){return this.value}},A=typeof WeakRef>`u`?k:WeakRef,j=0,M=1;function N(){return{s:j,v:void 0,o:null,p:null}}function ee(e){return e instanceof A?e.deref():e}function te(e,t={}){let n=N(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=N(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=N(),e.set(n,t)):t=r}}let s=t,c;if(t.s===M)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=ee(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new A(c):c}return s.s=M,s.v=c,c}return o.clearCache=()=>{n=N(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ne(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),w(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=te,argsMemoizeOptions:u=[]}={...n,...a},d=E(c),f=E(u),p=D(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=O(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var P=ne(te),re=`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(`.`);function ie(e){return typeof e==`string`&&re.includes(e)}var ae=new Set(`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(`.`));function oe(e){return typeof e==`string`&&ae.has(e)}function se(e){return typeof e==`string`&&e.startsWith(`data-`)}function ce(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oe(n)||se(n))&&(t[n]=e[n]);return t}function le(e){if(e==null)return null;if((0,x.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return ce(t)}return typeof e==`object`&&!Array.isArray(e)?ce(e):null}function ue(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oe(n)||se(n)||ie(n))&&(t[n]=e[n]);return t}function de(e){return e==null?null:(0,x.isValidElement)(e)?ue(e.props):typeof e==`object`&&!Array.isArray(e)?ue(e):null}var fe=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(null,arguments)}function me(e,t){if(e==null)return{};var n,r,i=he(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function he(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ge=(0,x.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=me(e,fe),d=a||{width:r,height:i,x:0,y:0},p=f(`recharts-surface`,o);return x.createElement(`svg`,pe({},ue(u),{className:p,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),x.createElement(`title`,null,c),x.createElement(`desc`,null,l),n)}),_e=[`children`,`className`];function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve.apply(null,arguments)}function ye(e,t){if(e==null)return{};var n,r,i=be(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var F=x.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ye(e,_e),a=f(`recharts-layer`,r);return x.createElement(`g`,ve({className:a},ue(i),{ref:t}),n)});function xe(e){return e===`__proto__`}var Se=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function Ce(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:Se.test(e);default:return!1}}function we(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Te(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Te).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ee(e){if(Array.isArray(e))return e.map(we);if(typeof e==`symbol`)return[e];e=Te(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function De(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(xe(t))return n;let r=e[t];return r===void 0?Ce(t)&&!Object.hasOwn(e,t)?De(e,Ee(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=we(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Oe(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),xe(t))return n;let r=e[t];return r===void 0?n:r}}}function Oe(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||xe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var ke=4;function Ae(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function je(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Ae(i)+n},``)}var Me=e=>e===0?0:e>0?1:-1,Ne=e=>typeof e==`number`&&e!=+e,Pe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,I=e=>(typeof e==`number`||e instanceof Number)&&!Ne(e),Fe=e=>I(e)||typeof e==`string`,Ie=0,Le=e=>{var t=++Ie;return`${e||``}${t}`},Re=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];if(!I(e)&&typeof e!=`string`)return n;var i;if(Pe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Ne(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},ze=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function L(e,t,n){return I(e)&&I(t)?Ae(e+n*(t-e)):t}function Be(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):De(e,t))===n)}var R=e=>e==null,Ve=e=>R(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function He(e){return e!=null}function Ue(){}function We(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function Ge(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ge(Object(n),!0).forEach(function(t){qe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qe(e,t,n){return(t=Je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e){var t=Ye(e,`string`);return typeof t==`symbol`?t:t+``}function Ye(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Xe=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=We(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Ke({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Ke({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Ke({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Ke({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Ke({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Ke({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Ke({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Ke({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(I(n.x)||Pe(n.x))&&(I(n.y)||Pe(n.y))?Ke({x:c+Re(n.x,g),y:l+Re(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Ke({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ze=[`top`,`left`,`right`,`bottom`];function Qe(e){return e==null?!1:typeof e==`object`||Ze.includes(e)}var $e=(0,x.createContext)(null);function et(e){return function(){return e}}var tt=Math.PI,nt=2*tt,rt=1e-6,it=nt-rt;function at(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ot(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return at;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 st=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?at:ot(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>rt){if(!(Math.abs(u*s-c*l)>rt)||!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((tt-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>rt&&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)>rt||Math.abs(this._y1-l)>rt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%nt+nt),d>it?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>rt&&this._append`A${n},${n},0,${+(d>=tt)},${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._}};st.prototype;function ct(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 st(t)}Array.prototype.slice;function lt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ut(e){this._context=e}ut.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)}}};function dt(e){return new ut(e)}function ft(e){return e[0]}function pt(e){return e[1]}function mt(e,t){var n=et(!0),r=null,i=dt,a=null,o=ct(s);e=typeof e==`function`?e:e===void 0?ft:et(e),t=typeof t==`function`?t:t===void 0?pt:et(t);function s(s){var c,l=(s=lt(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:et(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:et(!!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 ht(e,t,n){var r=null,i=et(!0),a=null,o=dt,s=null,c=ct(l);e=typeof e==`function`?e:e===void 0?ft:et(+e),t=typeof t==`function`?t:et(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?pt:et(+n);function l(l){var u,d,f,p=(l=lt(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 mt().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:et(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:et(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:et(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:et(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:et(+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:et(!!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 gt=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)}this._x0=e,this._y0=t}};function _t(e){return new gt(e,!0)}function vt(e){return new gt(e,!1)}function yt(){}function bt(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 xt(e){this._context=e}xt.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:bt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function St(e){return new xt(e)}function Ct(e){this._context=e}Ct.prototype={areaStart:yt,areaEnd:yt,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)}},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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wt(e){return new Ct(e)}function Tt(e){this._context=e}Tt.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:bt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Et(e){return new Tt(e)}function Dt(e){this._context=e}Dt.prototype={areaStart:yt,areaEnd:yt,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 Ot(e){return new Dt(e)}function kt(e){return e<0?-1:1}function At(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(kt(a)+kt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function jt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mt(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 Nt(e){this._context=e}Nt.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:Mt(this,this._t0,jt(this,this._t0))}(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,Mt(this,jt(this,n=At(this,e,t)),n);break;default:Mt(this,this._t0,n=At(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Pt(e){this._context=new Ft(e)}(Pt.prototype=Object.create(Nt.prototype)).point=function(e,t){Nt.prototype.point.call(this,t,e)};function Ft(e){this._context=e}Ft.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 It(e){return new Nt(e)}function Lt(e){return new Pt(e)}function Rt(e){this._context=e}Rt.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=zt(e),i=zt(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 zt(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 Bt(e){return new Rt(e)}function Vt(e,t){this._context=e,this._t=t}Vt.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)}}this._x=e,this._y=t}};function Ht(e){return new Vt(e,.5)}function Ut(e){return new Vt(e,0)}function Wt(e){return new Vt(e,1)}function Gt(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 Kt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function qt(e,t){return e[t]}function Jt(e){let t=[];return t.key=e,t}function Yt(){var e=et([]),t=Kt,n=Gt,r=qt;function i(i){var a=Array.from(e.apply(this,arguments),Jt),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=lt(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:et(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:et(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Kt:typeof e==`function`?e:et(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Gt,i):n},i}function Xt(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}Gt(e,t)}}function Zt(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}Gt(e,t)}}function Qt(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,Gt(e,t)}}var $t=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,en=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,x.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{ie(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},tn=(e,t,n)=>r=>(e(t,n,r),null),nn=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];ie(i)&&typeof a==`function`&&(r||={},r[i]=tn(a,t,n))}),r};function rn(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?rn(Object(n),!0).forEach(function(t){on(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function on(e,t,n){return(t=sn(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 typeof t==`symbol`?t:t+``}function cn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ln(e,t){var n=an({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function un(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function dn(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function fn(e){return e}function pn(e){return function(t){return De(t,e)}}function mn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function hn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function _n(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var vn=`[object RegExp]`,yn=`[object String]`,bn=`[object Number]`,xn=`[object Boolean]`,Sn=`[object Arguments]`,Cn=`[object Symbol]`,wn=`[object Date]`,Tn=`[object Map]`,En=`[object Set]`,Dn=`[object Array]`,On=`[object Function]`,kn=`[object ArrayBuffer]`,An=`[object Object]`,jn=`[object Error]`,Mn=`[object DataView]`,Nn=`[object Uint8Array]`,Pn=`[object Uint8ClampedArray]`,Fn=`[object Uint16Array]`,In=`[object Uint32Array]`,Ln=`[object BigUint64Array]`,Rn=`[object Int8Array]`,zn=`[object Int16Array]`,Bn=`[object Int32Array]`,Vn=`[object BigInt64Array]`,Hn=`[object Float32Array]`,Un=`[object Float64Array]`,Wn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Gn(e){return Wn.Buffer!==void 0&&Wn.Buffer.isBuffer(e)}function Kn(e,t){return qn(e,void 0,e,new Map,t)}function qn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(mn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=qn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,qn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(qn(a,void 0,n,r,i));return t}if(Gn(e))return e.subarray();if(hn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=qn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Jn(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Jn(t,e,n,r,i),t}if(typeof e==`object`&&Yn(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Jn(t,e,n,r,i),t}return e}function Jn(e,t,n=e,r,i){let a=[...Object.keys(t),...gn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=qn(t[s],s,n,r,i))}}function Yn(e){switch(_n(e)){case Sn:case Dn:case kn:case Mn:case xn:case wn:case Hn:case Un:case Rn:case zn:case Bn:case Tn:case bn:case An:case vn:case En:case yn:case Cn:case Nn:case Pn:case Fn:case In:return!0;default:return!1}}function Xn(e){return qn(e,void 0,e,new Map,void 0)}function Zn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Qn(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function $n(e,t,n){return typeof n==`function`?er(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?er(t,r,e,s,!1):!!c},new Map,!0):$n(e,t,()=>void 0)}function er(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return tr(e,t,n,r);case`function`:return Object.keys(t).length>0?er(e,{...t},n,r,i):Zn(e,t);default:return Qn(e)&&i?typeof t!=`string`||t===``:Zn(e,t)}}function tr(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return rr(e,t,n,r);if(t instanceof Map)return nr(e,t,n,r);if(t instanceof Set)return ir(e,t,n,r);let i=Object.keys(t);if(e==null||mn(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!mn(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function nr(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function rr(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function ir(e,t,n,r){return t.size===0||e instanceof Set&&rr([...e],[...t],n,r)}function ar(e,t){return $n(e,t,()=>void 0)}function or(e){return e=Xn(e),t=>ar(t,e)}function sr(e,t){return Kn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(_n(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Jn(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case bn:case yn:case xn:{let t=new e.constructor(e?.valueOf());return Jn(t,e),t}case Sn:{let t={};return Jn(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function cr(e){return sr(e)}var lr=/^(?:0|[1-9]\d*)$/;function ur(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return lr.test(e)}}function dr(e){return typeof e==`object`&&!!e&&_n(e)===`[object Arguments]`}function fr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ce(t)&&!(t in Object(e))?Ee(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||dr(r))&&ur(t)&&t<r.length))return!1;r=r[t]}return!0}function pr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=we(e)}return t=cr(t),function(n){let r=De(n,e);return r===void 0?fr(n,e):t===void 0?r===void 0:ar(r,t)}}function mr(e){if(e==null)return fn;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?pr(e[0],e[1]):or(e);case`string`:case`symbol`:case`number`:return pn(e)}}function hr(e){return Number.isSafeInteger(e)&&e>=0}function gr(e){return e!=null&&typeof e!=`function`&&hr(e.length)}function _r(e){return typeof e==`object`&&!!e}function vr(e){return _r(e)&&gr(e)}function yr(e,t=fn){return vr(e)?un(Array.from(e),dn(mr(t),1)):[]}function br(e,t,n){return t===!0?yr(e,n):typeof t==`function`?yr(e,t):e}var xr=(0,x.createContext)(null),Sr=e=>e,z=()=>{var e=(0,x.useContext)(xr);return e?e.store.dispatch:Sr},Cr=()=>{},wr=()=>Cr,Tr=(e,t)=>e===t;function B(e){var t=(0,x.useContext)(xr),n=(0,x.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Cr,[t,e]);return(0,S.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:wr,t?t.store.getState:Cr,t?t.store.getState:Cr,n,Tr)}function Er(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Dr(e,t,n){return Qn(n)&&(typeof t==`number`&&gr(n)&&ur(t)&&t<n.length||typeof t==`string`&&t in n)?Zn(n[t],e):!1}function Or(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var kr=(e,t,n)=>{if(e!==t){let r=Or(e),i=Or(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function Ar(e){return typeof e==`symbol`||e instanceof Symbol}var jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mr=/^\w*$/;function Nr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||Ar(e)?!0:typeof e==`string`&&(Mr.test(e)||!jr.test(e))||t!=null&&Object.hasOwn(t,e)}function Pr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Nr(e)?e:{key:e,path:Ee(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=kr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Fr(e,...t){let n=t.length;return n>1&&Dr(e,t[0],t[1])?t=[]:n>2&&Dr(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,Er(t),[`asc`])}var Ir=e=>e.legend.settings,Lr=e=>e.legend.size;P([e=>e.legend.payload,Ir],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Fr(r,n):r});function Rr(e,t){return Ur(e)||Hr(e,t)||Br(e,t)||zr()}function zr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
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 Vr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vr(e,t):void 0}}function Vr(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 Hr(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 Ur(e){if(Array.isArray(e))return e}var Wr=1;function Gr(e,t){return Math.abs(e.height-t.height)>Wr||Math.abs(e.left-t.left)>Wr||Math.abs(e.top-t.top)>Wr||Math.abs(e.width-t.width)>Wr}function Kr(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function qr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Rr((0,x.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,x.useRef)(null),a=(0,x.useRef)(n);a.current=n;var o=(0,x.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=Kr(e);if(Gr(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=Kr(e);Gr(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,x.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function Jr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Yr=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Xr=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Zr={INIT:`@@redux/INIT${Xr()}`,REPLACE:`@@redux/REPLACE${Xr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xr()}`};function Qr(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function $r(e,t,n){if(typeof e!=`function`)throw Error(Jr(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Jr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Jr(1));return n($r)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Jr(3));return i}function d(e){if(typeof e!=`function`)throw Error(Jr(4));if(c)throw Error(Jr(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Jr(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Qr(e))throw Error(Jr(7));if(e.type===void 0)throw Error(Jr(8));if(typeof e.type!=`string`)throw Error(Jr(17));if(c)throw Error(Jr(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Jr(10));r=e,f({type:Zr.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Jr(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Yr](){return this}}}return f({type:Zr.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Yr]:m}}function ei(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Zr.INIT})===void 0)throw Error(Jr(12));if(n(void 0,{type:Zr.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Jr(13))})}function ti(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{ei(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Jr(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function ni(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ri(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Jr(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ni(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function ii(e){return Qr(e)&&`type`in e&&typeof e.type==`string`}var ai=Symbol.for(`immer-nothing`),oi=Symbol.for(`immer-draftable`),si=Symbol.for(`immer-state`);function ci(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var li=Object,ui=li.getPrototypeOf,di=`constructor`,fi=`prototype`,pi=`configurable`,mi=`enumerable`,hi=`writable`,gi=`value`,_i=e=>!!e&&!!e[si];function vi(e){return e?xi(e)||Oi(e)||!!e[oi]||!!e[di]?.[oi]||ki(e)||Ai(e):!1}var yi=li[fi][di].toString(),bi=new WeakMap;function xi(e){if(!e||!ji(e))return!1;let t=ui(e);if(t===null||t===li[fi])return!0;let n=li.hasOwnProperty.call(t,di)&&t[di];if(n===Object)return!0;if(!Mi(n))return!1;let r=bi.get(n);return r===void 0&&(r=Function.toString.call(n),bi.set(n,r)),r===yi}function Si(e,t,n=!0){Ci(e)===0?(n?Reflect.ownKeys(e):li.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ci(e){let t=e[si];return t?t.type_:Oi(e)?1:ki(e)?2:Ai(e)?3:0}var wi=(e,t,n=Ci(e))=>n===2?e.has(t):li[fi].hasOwnProperty.call(e,t),Ti=(e,t,n=Ci(e))=>n===2?e.get(t):e[t],Ei=(e,t,n,r=Ci(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Di(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Oi=Array.isArray,ki=e=>e instanceof Map,Ai=e=>e instanceof Set,ji=e=>typeof e==`object`,Mi=e=>typeof e==`function`,Ni=e=>typeof e==`boolean`;function Pi(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Fi=e=>e.copy_||e.base_,Ii=e=>e.modified_?e.copy_:e.base_;function Li(e,t){if(ki(e))return new Map(e);if(Ai(e))return new Set(e);if(Oi(e))return Array[fi].slice.call(e);let n=xi(e);if(t===!0||t===`class_only`&&!n){let t=li.getOwnPropertyDescriptors(e);delete t[si];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[hi]===!1&&(a[hi]=!0,a[pi]=!0),(a.get||a.set)&&(t[i]={[pi]:!0,[hi]:!0,[mi]:a[mi],[gi]:e[i]})}return li.create(ui(e),t)}{let t=ui(e);if(t!==null&&n)return{...e};let r=li.create(t);return li.assign(r,e)}}function Ri(e,t=!1){return Vi(e)||_i(e)||!vi(e)?e:(Ci(e)>1&&li.defineProperties(e,{set:Bi,add:Bi,clear:Bi,delete:Bi}),li.freeze(e),t&&Si(e,(e,t)=>{Ri(t,!0)},!1),e)}function zi(){ci(2)}var Bi={[gi]:zi};function Vi(e){return e===null||!ji(e)||li.isFrozen(e)}var Hi=`MapSet`,Ui=`Patches`,Wi=`ArrayMethods`,Gi={};function Ki(e){let t=Gi[e];return t||ci(0,e),t}var qi=e=>!!Gi[e],Ji,Yi=()=>Ji,Xi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qi(Hi)?Ki(Hi):void 0,arrayMethodsPlugin_:qi(Wi)?Ki(Wi):void 0});function Zi(e,t){t&&(e.patchPlugin_=Ki(Ui),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Qi(e){$i(e),e.drafts_.forEach(ta),e.drafts_=null}function $i(e){e===Ji&&(Ji=e.parent_)}var ea=e=>Ji=Xi(Ji,e);function ta(e){let t=e[si];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function na(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[si].modified_&&(Qi(t),ci(4)),vi(e)&&(e=ra(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[si].base_,e,t)}else e=ra(t,n);return ia(t,e,!0),Qi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ai?void 0:e}function ra(e,t){if(Vi(t))return t;let n=t[si];if(!n)return fa(t,e.handledSet_,e);if(!oa(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ua(n,e)}return n.copy_}function ia(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ri(t,n)}function aa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var oa=(e,t)=>e.scope_===t,sa=[];function ca(e,t,n,r){let i=Fi(e),a=e.type_;if(r!==void 0&&Ti(i,r,a)===t){Ei(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Si(i,(e,n)=>{if(_i(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??sa;for(let e of o)Ei(i,e,n,a)}function la(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!oa(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Ii(i);ca(e,i.draft_??i,a,n),ua(i,r)})}function ua(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}aa(e)}}function da(e,t,n){let{scope_:r}=e;if(_i(n)){let i=n[si];oa(i,r)&&i.callbacks_.push(function(){xa(e),ca(e,n,Ii(i),t)})}else vi(n)&&e.callbacks_.push(function(){let i=Fi(e);e.type_===3?i.has(n)&&fa(n,r.handledSet_,r):Ti(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&fa(Ti(e.copy_,t,e.type_),r.handledSet_,r)})}function fa(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||_i(e)||t.has(e)||!vi(e)||Vi(e)?e:(t.add(e),Si(e,(r,i)=>{if(_i(i)){let t=i[si];oa(t,n)&&(Ei(e,r,Ii(t),e.type_),aa(t))}else vi(i)&&fa(i,t,n)}),e)}function pa(e,t){let n=Oi(e),r={type_:+!!n,scope_:t?t.scope_:Yi(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=ma;n&&(i=[r],a=ha);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var ma={get(e,t){if(t===si)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Fi(e);if(!wi(i,t,e.type_))return va(e,i,t);let a=i[t];if(e.finalized_||!vi(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Pi(t))return a;if(a===ga(e.base_,t)||_a(e,t,a)){xa(e);let n=e.type_===1?+t:t,r=Ca(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Fi(e)},ownKeys(e){return Reflect.ownKeys(Fi(e))},set(e,t,n){let r=ya(Fi(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=ga(Fi(e),t),i=r?.[si];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Di(n,r)&&(n!==void 0||wi(e.base_,t,e.type_)))return!0;xa(e),ba(e)}return e.copy_[t]===n&&(n!==void 0||wi(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),da(e,t,n),!0)},deleteProperty(e,t){return xa(e),ga(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ba(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Fi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[hi]:!0,[pi]:e.type_!==1||t!==`length`,[mi]:r[mi],[gi]:n[t]}},defineProperty(){ci(11)},getPrototypeOf(e){return ui(e.base_)},setPrototypeOf(){ci(12)}},ha={};for(let e in ma){let t=ma[e];ha[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}ha.deleteProperty=function(e,t){return ha.set.call(this,e,t,void 0)},ha.set=function(e,t,n){return ma.set.call(this,e[0],t,n,e[0])};function ga(e,t){let n=e[si];return(n?Fi(n):e)[t]}function _a(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!vi(n)||n[si]?!1:e.baseRefs_.has(n)}function va(e,t,n){let r=ya(t,n);return r?gi in r?r[gi]:r.get?.call(e.draft_):void 0}function ya(e,t){if(!(t in e))return;let n=ui(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ui(n)}}function ba(e){e.modified_||(e.modified_=!0,e.parent_&&ba(e.parent_))}function xa(e){e.copy_||=(e.assigned_=new Map,Li(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Sa=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Mi(e)&&!Mi(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Mi(t)||ci(6),n!==void 0&&!Mi(n)&&ci(7);let r;if(vi(e)){let i=ea(this),a=Ca(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Qi(i):$i(i)}return Zi(i,n),na(r,i)}if(!e||!ji(e)){if(r=t(e),r===void 0&&(r=e),r===ai&&(r=void 0),this.autoFreeze_&&Ri(r,!0),n){let t=[],i=[];Ki(Ui).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}ci(1,e)},this.produceWithPatches=(e,t)=>{if(Mi(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Ni(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ni(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ni(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){vi(e)||ci(8),_i(e)&&(e=wa(e));let t=ea(this),n=Ca(t,e,void 0);return n[si].isManual_=!0,$i(t),n}finishDraft(e,t){let n=e&&e[si];(!n||!n.isManual_)&&ci(9);let{scope_:r}=n;return Zi(r,t),na(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Ki(Ui).applyPatches_;return _i(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ca(e,t,n,r){let[i,a]=ki(t)?Ki(Hi).proxyMap_(t,n):Ai(t)?Ki(Hi).proxySet_(t,n):pa(t,n);return(n?.scope_??Yi()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?la(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function wa(e){return _i(e)||ci(10,e),Ta(e)}function Ta(e){if(!vi(e)||Vi(e))return e;let t=e[si],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Li(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Li(e,!0);return Si(n,(e,t)=>{Ei(n,e,Ta(t))},r),t&&(t.finalized_=!1),n}var Ea=new Sa().produce,V=e=>e;function Da(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Oa=Da(),ka=Da,Aa=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?ni:ni.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ja(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Bo(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>ii(t)&&t.type===e,n}var Ma=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Na(e){return vi(e)?Ea(e,()=>{}):e}function Pa(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Fa(e){return typeof e==`boolean`}var Ia=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ma;return t&&(Fa(t)?a.push(Oa):a.push(ka(t.extraArgument))),a},La=`RTK_autoBatch`,H=()=>e=>({payload:e,meta:{[La]:!0}}),Ra=e=>t=>{setTimeout(t,e)},za=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Ba=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?za(window.requestAnimationFrame,100):Ra(10):e.type===`callback`?e.queueNotification:Ra(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[La],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Va=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ma(e);return n&&r.push(Ba(typeof n==`object`?n:void 0)),r};function Ha(e){let t=Ia(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(Qr(n))c=ti(n);else throw Error(Bo(1));let l;l=typeof r==`function`?r(t):t();let u=ni;i&&(u=Aa({trace:!1,...typeof i==`object`&&i}));let d=Va(ri(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return $r(c,o,p)}function Ua(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Bo(28));if(r in t)throw Error(Bo(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Wa(e){return typeof e==`function`}function Ga(e,t){let[n,r,i]=Ua(t),a;if(Wa(e))a=()=>Na(e());else{let t=Na(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(_i(e)){let r=n(e,t);return r===void 0?e:r}if(vi(e))return Ea(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}}return e},e)}return o.getInitialState=a,o}var Ka=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,qa=(e=21)=>{let t=``,n=e;for(;n--;)t+=Ka[Math.random()*64|0];return t},Ja=Symbol.for(`rtk-slice-createasyncthunk`);function Ya(e,t){return`${e}/${t}`}function Xa({creators:e}={}){let t=e?.asyncThunk?.[Ja];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Bo(11));let i=(typeof e.reducers==`function`?e.reducers($a()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Bo(12));if(n in o.sliceCaseReducersByType)throw Error(Bo(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Ya(n,r),createNotation:typeof e.reducers==`function`};to(a)?ro(o,a,s,t):eo(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Ua(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Ga(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Pa(d,r,m)),i}function i(t=l){return Pa(Pa(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Za(a,t,()=>Pa(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Za(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Qa=Xa();function $a(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function eo({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!no(r))throw Error(Bo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ja(e,o):ja(e))}function to(e){return e._reducerDefinitionType===`asyncThunk`}function no(e){return e._reducerDefinitionType===`reducerWithPrepare`}function ro({type:e,reducerName:t},n,r,i){if(!i)throw Error(Bo(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||io,pending:s||io,rejected:c||io,settled:l||io})}function io(){}var ao=`task`,oo=`listener`,so=`completed`,co=`cancelled`,lo=`task-${co}`,uo=`task-${so}`,fo=`${oo}-${co}`,po=`${oo}-${so}`,mo=class{constructor(e){this.code=e,this.message=`${ao} ${co} (reason: ${e})`}code;name=`TaskAbortError`;message},ho=(e,t)=>{if(typeof e!=`function`)throw TypeError(Bo(32))},go=()=>{},_o=(e,t=go)=>(e.catch(t),e),vo=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),yo=e=>{if(e.aborted)throw new mo(e.reason)};function bo(e,t){let n=go;return new Promise((r,i)=>{let a=()=>i(new mo(e.reason));if(e.aborted){a();return}n=vo(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=go})}var xo=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof mo?`cancelled`:`rejected`,error:e}}finally{t?.()}},So=e=>t=>_o(bo(e,t).then(t=>(yo(e),t))),Co=e=>{let t=So(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:wo}=Object,To={},Eo=`listenerMiddleware`,Do=(e,t)=>{let n=t=>vo(e,()=>t.abort(e.reason));return(r,i)=>{ho(r,`taskExecutor`);let a=new AbortController;n(a);let o=xo(async()=>{yo(e),yo(a.signal);let t=await r({pause:So(a.signal),delay:Co(a.signal),signal:a.signal});return yo(a.signal),t},()=>a.abort(uo));return i?.autoJoin&&t.push(o.catch(go)),{result:So(e)(o),cancel(){a.abort(lo)}}}},Oo=(e,t)=>{let n=async(n,r)=>{yo(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await bo(t,Promise.race(a));return yo(t),e}finally{i()}};return((e,t)=>_o(n(e,t)))},ko=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=ja(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Bo(21));return ho(a,`options.listener`),{predicate:i,type:t,effect:a}},Ao=wo(e=>{let{type:t,predicate:n,effect:r}=ko(e);return{id:qa(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Bo(22))}}},{withTypes:()=>Ao}),jo=(e,t)=>{let{type:n,effect:r,predicate:i}=ko(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Mo=e=>{e.pending.forEach(e=>{e.abort(fo)})},No=(e,t)=>()=>{for(let e of t.keys())Mo(e);e.clear()},Po=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Fo=wo(ja(`${Eo}/add`),{withTypes:()=>Fo}),Io=ja(`${Eo}/removeAll`),Lo=wo(ja(`${Eo}/remove`),{withTypes:()=>Lo}),Ro=(...e)=>{console.error(`${Eo}/error`,...e)},zo=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Ro}=e;ho(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Mo(e)}),c=(e=>{let n=jo(t,e)??Ao(e);return s(n)});wo(c,{withTypes:()=>c});let l=e=>{let n=jo(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Mo(n)),!!n};wo(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Oo(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,wo({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Co(u.signal),pause:So(u.signal),extra:a,signal:u.signal,fork:Do(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(fo),n.delete(e))})},cancel:()=>{u.abort(fo),e.pending.delete(u)},throwIfCancelled:()=>{yo(u.signal)}})))}catch(e){e instanceof mo||Po(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(po),i(e),e.pending.delete(u)}},d=No(t,n);return{middleware:e=>n=>r=>{if(!ii(r))return n(r);if(Fo.match(r))return c(r.payload);if(Io.match(r)){d();return}if(Lo.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===To)throw Error(Bo(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Po(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=To}return s},startListening:c,stopListening:l,clearListeners:d}};function Bo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vo=Qa({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),Ho=Vo.actions,Uo=Ho.setMargin,Wo=Ho.setLayout,Go=Ho.setChartSize,Ko=Ho.setScale,qo=Vo.reducer;function Jo(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function U(e){return Number.isFinite(e)}function Yo(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Xo(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e,t,n){return(t=$o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e){var t=es(e,`string`);return typeof t==`symbol`?t:t+``}function es(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function W(e,t,n){return R(e)||R(t)?n:Fe(t)?De(e,t,n):typeof t==`function`?t(e):n}var ts=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(Qe(c)){if(c===`top`&&I(e.top))return Zo(Zo({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&I(e.bottom))return Zo(Zo({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&I(e.left))return Zo(Zo({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&I(e.right))return Zo(Zo({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&I(e[a]))return Zo(Zo({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&I(e[o]))return Zo(Zo({},e),{},{[o]:e[o]+(i||0)})}return e},ns=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,rs=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},is=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Me(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return U(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(He):c&&l?l.map((e,t)=>{var n=o.map(e);return U(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(He):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return U(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(He):o.domain().map((e,t)=>{var n=o.map(e);return U(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(He)},as=(e,t)=>{if(!t||t.length!==2||!I(t[0])||!I(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(!I(e[0])||e[0]<n)&&(i[0]=n),(!I(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},os={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=Ne(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Xt,none:Gt,silhouette:Zt,wiggle:Qt,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=Ne(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},ss=(e,t,n)=>{var r=os[n]??Gt,i=Yt().keys(t).value((e,t)=>Number(W(e,t,0))).order(Kt).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=W(e[i],t[r],0);Array.isArray(a)&&a.length===2&&I(a[0])&&I(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function cs(e){return e==null?void 0:String(e)}function ls(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&&!R(i[t.dataKey])){var s=Be(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=W(i,R(o)?t.dataKey:o),l=t.scale.map(c);return I(l)?l:null}var us=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=W(a,t.dataKey,t.scale.domain()[o]);if(R(s))return null;var c=t.scale.map(s);return I(c)?c-i/2+r:null},ds=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]},fs=e=>{var t=e.flat(2).filter(I);return[Math.min(...t),Math.max(...t)]},ps=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],ms=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return ps(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=fs(Jo(r,t,n));return!U(i[0])||!U(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},hs=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gs=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_s=(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=Fr(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function vs(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return Zo(Zo({},t),{},{dataKey:n,payload:r,value:i,name:a})}function ys(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var bs=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},xs=(e,t)=>t===`centric`?e.angle:e.radius,Ss=e=>e.layout.width,Cs=e=>e.layout.height,ws=e=>e.layout.scale,Ts=e=>e.layout.margin,Es=P(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ds=P(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Os=`data-recharts-item-index`,ks=`data-recharts-item-id`;function As(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 js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?As(Object(n),!0).forEach(function(t){Ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(e,t,n){return(t=Ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ns(e){var t=Ps(e,`string`);return typeof t==`symbol`?t:t+``}function Ps(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Fs=e=>e.brush.height;function Is(e){return Ds(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Ls(e){return Ds(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Rs(e){return Es(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function zs(e){return Es(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var Bs=P([Ss,Cs,Ts,Fs,Is,Ls,Rs,zs,Ir,Lr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=js(js({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=ts(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return js(js({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Vs=P(Bs,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Hs=P(Ss,Cs,(e,t)=>({x:0,y:0,width:e,height:t})),Us=(0,x.createContext)(null),Ws=()=>(0,x.useContext)(Us)!=null,Gs=e=>e.brush,Ks=P([Gs,Bs,Ts],(e,t,n)=>({height:e.height,x:I(e.x)?e.x:t.left,y:I(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:I(e.width)?e.width:t.width}));function qs(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Js(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=qs(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Ys(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return Js(e,t,{leading:r,maxWait:t,trailing:i})}var Xs=function(e,t){var n=[...arguments].slice(2);if(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,()=>n[r++]))}}},Zs={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Qs=(e,t,n)=>{var r=n.width,i=r===void 0?Zs.width:r,a=n.height,o=a===void 0?Zs.height:a,s=n.aspect,c=n.maxHeight,l=Pe(i)?e:Number(i),u=Pe(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},$s={width:0,height:0,overflow:`visible`},ec={width:0,overflowX:`visible`},tc={height:0,overflowY:`visible`},nc={},rc=e=>{var t=e.width,n=e.height,r=Pe(t),i=Pe(n);return r&&i?$s:r?ec:i?tc:nc};function ic(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=Zs.width,a=Zs.height):i===void 0?i=r&&r>0?void 0:Zs.width:a===void 0&&(a=r&&r>0?void 0:Zs.height),{width:i,height:a}}var ac=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(null,arguments)}function sc(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 cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sc(Object(n),!0).forEach(function(t){lc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lc(e,t,n){return(t=uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e){var t=dc(e,`string`);return typeof t==`symbol`?t:t+``}function dc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fc(e,t){return _c(e)||gc(e,t)||mc(e,t)||pc()}function pc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mc(e,t){if(e){if(typeof e==`string`)return hc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(e,t):void 0}}function hc(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 gc(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 _c(e){if(Array.isArray(e))return e}function vc(e,t){if(e==null)return{};var n,r,i=yc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bc=(0,x.createContext)(Zs.initialDimension);function xc(e){return Yo(e.width)&&Yo(e.height)}function Sc(e){var t=e.children,n=e.width,r=e.height,i=(0,x.useMemo)(()=>({width:n,height:r}),[n,r]);return xc(i)?x.createElement(bc.Provider,{value:i},t):null}var Cc=()=>(0,x.useContext)(bc),wc=(0,x.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?Zs.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?Zs.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,p=e.debounce,m=p===void 0?Zs.debounce:p,h=e.id,g=e.className,_=e.onResize,v=e.style,y=v===void 0?{}:v,b=vc(e,ac),S=(0,x.useRef)(null),C=(0,x.useRef)();C.current=_,(0,x.useImperativeHandle)(t,()=>S.current);var w=fc((0,x.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,x.useCallback)((e,t)=>{E(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,x.useEffect)(()=>{if(S.current==null||typeof ResizeObserver>`u`)return Ue;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;D(i,a),(t=C.current)==null||t.call(C,i,a)}};m>0&&(e=Ys(e,m,{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),()=>{t.disconnect()}},[D,m]);var O=T.containerWidth,k=T.containerHeight;Xs(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var A=Qs(O,k,{width:a,height:o,aspect:n,maxHeight:u}),j=A.calculatedWidth,M=A.calculatedHeight;return Xs(O<0||k<0||j!=null&&j>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
4
4
|
please check the style of container, or the props width(%s) and height(%s),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{_ as n,g as r,h as i}from"./env-Bcq9YR3B.js";import{
|
|
1
|
+
import{i as e,t}from"./react-SIfiwpqq.js";import{_ as n,g as r,h as i}from"./env-Bcq9YR3B.js";import{Cn as a,Ct as o,Jt as s,Wt as c,Yt as l,gn as u,zn as d}from"./runtime-CYtynKGT.js";import{i as f}from"./composerDraftStore-TYv9j3vY.js";import{c as p,l as m}from"./useSwipeDismiss-D22_vuiH.js";import{T as h,n as g}from"./useHandleNewThread-9FAjhuhK.js";import{t as _}from"./useRouter-CcIDS3PN.js";import{i as v}from"./toast-C-0Ft2jD.js";import{i as y}from"./utils-CV2fJJxC.js";import{t as b}from"./toastHelpers-CSQRKo4F.js";var x=e(t(),1);function S(){let e=d(e=>e.sidebarThreadSortOrder),t=d(e=>e.confirmThreadDelete),S=f(e=>e.clearDraftThread),C=f(e=>e.clearProjectDraftThreadById),w=o(e=>e.clearTerminalState),T=_(),{handleNewThread:E}=g(),D=(0,x.useRef)(E);D.current=E;let O=(0,x.useCallback)(e=>{let t=l.getState(),n=c(t,e);return n?{thread:n,threadRef:e}:null},[]),k=(0,x.useCallback)(()=>{let e=T.state.matches[T.state.matches.length-1]?.params??{};return m(e)},[T]),A=(0,x.useCallback)(async e=>{let t=u(e.environmentId);if(!t)return;let n=O(e);if(!n)return;let{thread:i,threadRef:a}=n;if(i.session?.status===`running`&&i.session.activeTurnId!=null)throw Error(`Cannot archive a running thread.`);await t.orchestration.dispatchCommand({type:`thread.archive`,commandId:y(),threadId:a.threadId});let o=k();o?.threadId===a.threadId&&o.environmentId===a.environmentId&&await D.current(r(i.environmentId,i.projectId))},[k,O]),j=(0,x.useCallback)(async e=>{let t=u(e.environmentId);t&&await t.orchestration.dispatchCommand({type:`thread.unarchive`,commandId:y(),threadId:e.threadId})},[]),M=(0,x.useCallback)(async(t,a={})=>{let o=u(t.environmentId);if(!o)return;let d=O(t);if(!d)return;let{thread:f,threadRef:m}=d,g=s(l.getState(),m.environmentId),_=a.deletedThreadKeys&&a.deletedThreadKeys.size>0?new Set([...a.deletedThreadKeys].flatMap(e=>{let t=i(e);return t&&t.environmentId===m.environmentId?[t.threadId]:[]})):void 0,x=k(),E=x?.threadId===m.threadId&&x.environmentId===m.environmentId,D=h({threads:g,deletedThreadId:m.threadId,deletedThreadIds:_??new Set,sortOrder:e}),A=o.orchestration.dispatchCommand({type:`thread.delete`,commandId:y(),threadId:m.threadId});if(a.optimistic){A.catch(e=>{v.add(b({type:`error`,title:`Failed to delete thread`,description:e instanceof Error?e.message:`An error occurred.`}))});let e=null;if(E){if(D){let t=c(l.getState(),n(m.environmentId,D));e=t?{kind:`fallback`,ref:n(t.environmentId,t.id)}:{kind:`home`}}else e={kind:`home`}}let t=()=>{l.getState().removeThread(m),S(m),C(r(m.environmentId,f.projectId),m),w(m)};e?(e.kind===`fallback`?T.navigate({to:`/$environmentId/$threadId`,params:p(e.ref),replace:!0}):T.navigate({to:`/`,replace:!0}),requestAnimationFrame(()=>{setTimeout(t,0)})):t();return}if(await A,S(m),C(r(m.environmentId,f.projectId),m),w(m),E){if(D){let e=c(l.getState(),n(m.environmentId,D));if(e){await T.navigate({to:`/$environmentId/$threadId`,params:p(n(e.environmentId,e.id)),replace:!0});return}}await T.navigate({to:`/`,replace:!0})}},[S,C,w,k,T,O,e]);return{archiveThread:A,unarchiveThread:j,deleteThread:M,confirmAndDeleteThread:(0,x.useCallback)(async e=>{if(!u(e.environmentId))return;let n=a(),r=O(e);if(!r)return;let{thread:i}=r;t&&n&&!await n.dialogs.confirm([`Delete thread "${i.title}"?`,`This permanently clears conversation history for this thread.`].join(`
|
|
2
2
|
`))||await M(e)},[t,M,O])}}export{S as t};
|
package/dist/client/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{C as r,Fr as i}from"./src-DmPIm3ie.js";import{Rn as a,Vn as o,bn as s,f as c,l,v as u,y as d,zn as f}from"./runtime-CPM0EUhb.js";import{kt as p,n as ee}from"./primary-CiDY2oUi.js";import{Ct as m,It as h,U as g,V as _,X as v,q as y}from"./composerDraftStore-TYv9j3vY.js";import{i as te}from"./threadPriorityRefreshRuntime-BoNAlBXK.js";import{a as ne,i as b}from"./toast-C-0Ft2jD.js";import{t as x}from"./refresh-cw-DopCMrtR.js";import{t as S}from"./sparkles-CAf3oJ5S.js";import{t as C}from"./ProviderModelPicker-MFRYAv_3.js";import{t as re}from"./switch-BZjA7VT9.js";import{t as w}from"./button-DG8WqjNn.js";import{t as T}from"./toastHelpers-CSQRKo4F.js";import{a as ie,i as E,o as ae,s as oe,t as se}from"./select-CZukJlTn.js";import"./providerInstances-vd2eZtHx.js";import{i as D,n as ce,r as O}from"./settingsLayout-CHJT5wtl.js";var le=[`Thread titles`,`Project or repository names`,`Branch names`,`Bucketed creation and activity age`,`Running, approval, input, queue, failure, and delivery state`,`Pull request or linked issue title and state`,`Up to 600 characters from the latest user request`],k=[{value:0,label:`Manual only`},{value:3e5,label:`Every 5 minutes`},{value:6e5,label:`Every 10 minutes`},{value:18e5,label:`Every 30 minutes`},{value:36e5,label:`Every hour`},{value:216e5,label:`Every 6 hours`},{value:864e5,label:`Every 24 hours`}];function A(e){return{...e.enabled===void 0?{}:{aiFocusEnabled:e.enabled},...e.refreshIntervalMs===void 0?{}:{aiFocusRefreshIntervalMs:e.refreshIntervalMs}}}function j(e){return e.map(e=>{let t=e.serverConfig,n=t?.environment.capabilities.threadPriorityRanking===!0,r=t?.settings.inboxPriorityModelSelection??null,i=t?r??t.settings.textGenerationModelSelection:null,a=i===null?null:t?.providers.find(e=>e.instanceId===i.instanceId)??null;return{...e,supported:n,inherited:r===null,effectiveModelSelection:i,effectiveProvider:a}})}function M(e,t){let n=e.find(e=>e.instanceId===t);return!!(n&&n.enabled&&n.installed&&n.availability!==`unavailable`&&n.status!==`disabled`&&n.status!==`error`)}function N(e){if(e.selection!==null&&!M(e.serverConfig.providers,e.selection.instanceId))throw Error(`That provider instance is not available on this environment.`);return{inboxPriorityModelSelection:e.selection}}var P=n(),F=e(t(),1),I=h();function L(e){return e instanceof Error?e.message:`An unexpected error occurred.`}function ue(){let e=(0,P.c)(2),[t,n]=(0,F.useState)(R),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>u(()=>{n(l())}),i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,F.useEffect)(r,i),t}function R(){return l()}function z({row:e}){let[t,n]=(0,F.useState)(!1),i=e.serverConfig;if(!i||!e.effectiveModelSelection)return null;let a={...i.settings,...r},o=e.effectiveModelSelection,s=v(y(i.providers)),c=_(a,i.providers,o.instanceId,o.model),l=async t=>{n(!0);try{let n=N({serverConfig:i,selection:t});await d(e.environmentId,n)}catch(t){b.add(T({type:`error`,title:`Could not update ${e.label}`,description:L(t)}))}finally{n(!1)}};return(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,I.jsx)(C,{activeInstanceId:o.instanceId,model:o.model,lockedProvider:null,instanceEntries:s,modelOptionsByInstance:c,compact:!0,disabled:t||!e.connected,...e.connected?{}:{disabledReason:`Connect this environment to change its model.`},onInstanceModelChange:(e,t)=>{l(g({...a,textGenerationModelSelection:m(e,t)},i.providers))}}),e.inherited?null:(0,I.jsx)(w,{size:`xs`,variant:`ghost`,disabled:t||!e.connected,onClick:()=>void l(null),children:`Use text model`})]})}function B(e){let t=(0,P.c)(6),{row:n}=e,r=n.effectiveProvider?.displayName??n.effectiveProvider?.driver??null,i=n.connected?n.supported?n.inherited?`Inherits the text-generation model${r?` (${r})`:``}.`:`Uses a separate model for Inbox ranking.`:`This node version does not support AI Focus ranking. Other supported nodes still work.`:`Offline — ranking waits for an existing connection.`,a;t[0]===n?a=t[1]:(a=n.supported?(0,I.jsx)(z,{row:n}):void 0,t[0]=n,t[1]=a);let o;return t[2]!==n.label||t[3]!==i||t[4]!==a?(o=(0,I.jsx)(O,{title:n.label,description:i,control:a}),t[2]=n.label,t[3]=i,t[4]=a,t[5]=o):o=t[5],o}function V(){let e=(0,P.c)(48),t=a(),{updateSettings:n}=f(),r=o(),c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=ee(),e[0]=c):c=e[0];let l=c,u=s(he),d=ue(),[p,m]=(0,F.useState)(!1);l?.environmentId,l?.label;let h;if(e[1]!==d||e[2]!==r||e[3]!==u){let t=new Map;l?.environmentId&&t.set(l.environmentId,{label:l.label,config:r});for(let e of d){if(t.has(e.environmentId))continue;let n=u[e.environmentId];t.set(e.environmentId,{label:n?.descriptor?.label??e.knownEnvironment.label,config:n?.serverConfig??null})}for(let[e,n]of Object.entries(u)){let r=i.make(e);t.has(r)||t.set(r,{label:n.descriptor?.label??`Saved environment`,config:n.serverConfig})}h=j([...t].map(me)),e[1]=d,e[2]=r,e[3]=u,e[4]=h}else h=e[4];let g=h,_;e[5]===g?_=e[6]:(_=async()=>{m(!0);let e=await te(),t=e.failures;t.length>0?b.add(T({type:`error`,title:`AI Focus refresh failed`,description:t.map(e=>{let{environmentId:t,error:n}=e;return`${g.find(e=>e.environmentId===t)?.label??`Environment`}: ${L(n)}`}).join(` · `)})):b.add(T({type:`success`,title:e.attempted.length>0?`AI Focus refreshed`:`No connected supported nodes`,description:e.attempted.length>0?`Updated ${e.succeeded.length} environment${e.succeeded.length===1?``:`s`}.`:`Connect a supported node to rank its Inbox.`})),m(!1)},e[5]=g,e[6]=_);let v=_,y;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,I.jsx)(S,{className:`size-3.5`}),e[7]=y):y=e[7];let C;e[8]===n?C=e[9]:(C=e=>n(A({enabled:e})),e[8]=n,e[9]=C);let E;e[10]!==t.aiFocusEnabled||e[11]!==C?(E=(0,I.jsx)(O,{title:`Prioritize the Inbox`,description:`Create a Focus section from pinned, actionable, and model-ranked threads. Focused threads are removed from Active, never duplicated.`,control:(0,I.jsx)(re,{"aria-label":`Enable AI Focus`,checked:t.aiFocusEnabled,onCheckedChange:C})}),e[10]=t.aiFocusEnabled,e[11]=C,e[12]=E):E=e[12];let M=String(t.aiFocusRefreshIntervalMs),N;e[13]===n?N=e[14]:(N=e=>{let t=Number(e);n(A({refreshIntervalMs:t}))},e[13]=n,e[14]=N);let R;e[15]===t.aiFocusRefreshIntervalMs?R=e[16]:(R=k.find(e=>e.value===t.aiFocusRefreshIntervalMs)?.label??`Every 10 minutes`,e[15]=t.aiFocusRefreshIntervalMs,e[16]=R);let z;e[17]===R?z=e[18]:(z=(0,I.jsx)(ae,{className:`w-48`,"aria-label":`AI Focus refresh interval`,children:(0,I.jsx)(oe,{children:R})}),e[17]=R,e[18]=z);let B;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,I.jsx)(ie,{align:`end`,alignItemWithTrigger:!1,children:k.map(pe)}),e[19]=B):B=e[19];let V;e[20]!==M||e[21]!==N||e[22]!==z?(V=(0,I.jsxs)(se,{value:M,onValueChange:N,children:[z,B]}),e[20]=M,e[21]=N,e[22]=z,e[23]=V):V=e[23];let H;e[24]===v?H=e[25]:(H=()=>void v(),e[24]=v,e[25]=H);let U=p?`size-4 animate-spin`:`size-4`,W;e[26]===U?W=e[27]:(W=(0,I.jsx)(x,{className:U}),e[26]=U,e[27]=W);let G;e[28]!==p||e[29]!==H||e[30]!==W?(G=(0,I.jsx)(w,{size:`icon-sm`,variant:`outline`,"aria-label":`Refresh AI Focus now`,disabled:p,onClick:H,children:W}),e[28]=p,e[29]=H,e[30]=W,e[31]=G):G=e[31];let K;e[32]!==V||e[33]!==G?(K=(0,I.jsx)(O,{title:`Refresh rankings`,description:`Automatic checks use only nodes that are already connected. Manual-only never starts a connection.`,control:(0,I.jsxs)(`div`,{className:`flex items-center gap-2`,children:[V,G]})}),e[32]=V,e[33]=G,e[34]=K):K=e[34];let q;e[35]!==K||e[36]!==E?(q=(0,I.jsxs)(D,{title:`AI Focus`,icon:y,children:[E,K]}),e[35]=K,e[36]=E,e[37]=q):q=e[37];let J;e[38]===g?J=e[39]:(J=g.length>0?g.map(fe):(0,I.jsx)(O,{title:`No environments available`,description:`Connect a node to configure its Inbox ranking model.`}),e[38]=g,e[39]=J);let Y;e[40]===J?Y=e[41]:(Y=(0,I.jsx)(D,{title:`Models`,children:J}),e[40]=J,e[41]=Y);let X;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,I.jsx)(ne,{className:`size-3.5`}),e[42]=X):X=e[42];let Z;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,I.jsx)(`p`,{className:`mb-3 text-xs text-muted-foreground`,children:`Ranking sends only this bounded metadata from each environment. It does not send full chat history, file contents, or message responses.`}),e[43]=Z):Z=e[43];let Q;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,I.jsx)(D,{title:`Data sent to the selected model`,icon:X,children:(0,I.jsxs)(`div`,{className:`px-5 py-4`,children:[Z,(0,I.jsx)(`ul`,{className:`grid gap-1.5 text-xs text-foreground/80 sm:grid-cols-2`,children:le.map(de)})]})}),e[44]=Q):Q=e[44];let $;return e[45]!==q||e[46]!==Y?($=(0,I.jsxs)(ce,{children:[q,Y,Q]}),e[45]=q,e[46]=Y,e[47]=$):$=e[47],$}function de(e){return(0,I.jsxs)(`li`,{className:`flex gap-2`,children:[(0,I.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground`,children:`•`}),(0,I.jsx)(`span`,{children:e})]},e)}function fe(e){return(0,I.jsx)(B,{row:e},e.environmentId)}function pe(e){return(0,I.jsx)(E,{hideIndicator:!0,value:String(e.value),children:e.label},e.value)}function me(e){let[t,n]=e;return{environmentId:t,label:n.label,connected:c(t)!==null&&p(t).phase===`connected`,serverConfig:n.config}}function he(e){return e.byId}export{V as AiFocusSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import"./env-Bcq9YR3B.js";import{li as r}from"./src-DmPIm3ie.js";import{Zn as i,an as a,cn as o,dn as s,f as c,fn as l,gn as u,in as d,ln as f,on as p,pn as m,rn as h,un as g,v as _}from"./runtime-CPM0EUhb.js";import{d as v,f as y}from"./ThreadStatusIndicators-CIOM98q2.js";var b=n(),x=e(t(),1);function S(e){let t=(0,b.c)(13),n=s(e),{environmentId:r,cwd:a,query:c,enabled:u,limit:m,staleTime:h}=e,g,_;t[0]!==a||t[1]!==r||t[2]!==m?(g=()=>{if(r===null||a===null)return;let e={environmentId:r,cwd:a,...m===void 0?{}:{limit:m}};return l(e),()=>o(e)},_=[r,a,m],t[0]=a,t[1]=r,t[2]=m,t[3]=g,t[4]=_):(g=t[3],_=t[4]),(0,x.useEffect)(g,_);let v,y;t[5]!==a||t[6]!==u||t[7]!==r||t[8]!==m||t[9]!==c||t[10]!==h?(v=()=>{f({environmentId:r,cwd:a,query:c,...u===void 0?{}:{enabled:u},...m===void 0?{}:{limit:m},...h===void 0?{}:{staleTime:h}})},y=[r,a,c,u,m,h],t[5]=a,t[6]=u,t[7]=r,t[8]=m,t[9]=c,t[10]=h,t[11]=v,t[12]=y):(v=t[11],y=t[12]),(0,x.useEffect)(v,y);let S=i(p(n));return n===null?d:S}function C(e){let t=g(e),n=(0,x.useSyncExternalStore)(_,()=>e.environmentId===null?null:c(e.environmentId),()=>null),r=(0,x.useRef)(e);r.current=e,(0,x.useEffect)(()=>{let e=r.current,t=e.environmentId===null?void 0:u(e.environmentId,n?.client??null);return m(e,t??null)},[t,n]);let o=i(a(t));return t===null?h:o}function w(e){let t=e.trim().replace(/\.git$/i,``).replace(/\/+$/,``);if(!t||/^[a-z]:[\\/]/i.test(t)||t.startsWith(`\\\\`))return null;if(!t.includes(`://`)){let e=/^(?:[^@/]+@)?([^:/]+):(.+)$/.exec(t);return e?.[1]&&e[2]?`https://${e[1]}/${e[2].replace(/^\/+/,``)}`:null}try{let e=new URL(t.replace(/^(ssh|git|http):\/\//i,`https://`).replace(/^ssh:/i,`https:`));return!e.hostname||e.pathname===`/`||e.pathname===``?null:`https://${e.hostname}${e.pathname}`}catch{return null}}function T(e){if(!e)return null;let t=[e.locator?.remoteUrl,...(e.remotes??[]).map(e=>e.url)];for(let e of t){if(!e)continue;let t=w(e);if(t)return t}return null}r([`local`,`worktree`]);function E(e){let t=y(e.runtimeLabel),n=y(e.savedLabel);return e.isPrimary?[t,n].find(e=>e?!v(e):!1)??`This device`:t??n??e.environmentId}function D(e){let{activeWorktreePath:t,hasServerThread:n,draftThreadEnvMode:r}=e;return n?t?`worktree`:`local`:t?`local`:r===`worktree`?`worktree`:`local`}function O(e){let{nextWorktreePath:t,currentWorktreePath:n,effectiveEnvMode:r}=e;return t||r===`worktree`&&!n?`worktree`:`local`}function k(e){let{envMode:t,activeWorktreePath:n,activeThreadBranch:r,currentGitBranch:i}=e;return t===`worktree`&&!n?r??i:i??r}function A(e){let{activeProjectCwd:t,activeWorktreePath:n,refName:r}=e;if(r.worktreePath)return{checkoutCwd:r.worktreePath,nextWorktreePath:r.worktreePath===t?null:r.worktreePath,reuseExistingWorktree:!0};let i=n!==null&&r.isDefault?null:n;return{checkoutCwd:i??t,nextWorktreePath:i,reuseExistingWorktree:!1}}function j(e){let{itemValue:t,normalizedQuery:n,createBranchItemValue:r,checkoutPullRequestItemValue:i}=e;if(n.length===0||r&&t===r||i&&t===i)return!0;let a=e.searchTextByItemValue?.get(t);return a===void 0?t.toLowerCase().includes(n):a.toLowerCase().includes(n)}export{D as a,C as c,O as i,S as l,A as n,E as o,k as r,j as s,T as t};
|