shapewall 0.7.3 → 0.9.0

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.
Files changed (105) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +7 -3
  3. package/bin/shapewall.js +2 -1
  4. package/dist/agent/package-lock.json +130 -72
  5. package/dist/client/assets/BoardChat-BawjlTc7.js +27 -0
  6. package/dist/client/assets/{BuzzDialog-DwEAN6va.js → BuzzDialog-DnjF36OB.js} +1 -1
  7. package/dist/client/assets/ChecksPanel-DRFcFhCj.js +1 -0
  8. package/dist/client/assets/{History-Cp4QRJti.js → History-FzpzGmXZ.js} +1 -1
  9. package/dist/client/assets/LocalSettings-BGFl4VKr.js +1 -0
  10. package/dist/client/assets/{Management-B-x1faV8.js → Management-BGdmGtby.js} +1 -1
  11. package/dist/client/assets/QuickConnect-CiVmxi0l.js +1 -0
  12. package/dist/client/assets/{ShareDialog-CdLdd6WQ.js → ShareDialog-D0tmOGcQ.js} +2 -2
  13. package/dist/client/assets/{app-update-dialog-BneaJeqQ.js → app-update-dialog-BQxVHa5e.js} +1 -1
  14. package/dist/client/assets/{circle-x-D5MkDLJk.js → circle-x-Dxsku6s6.js} +1 -1
  15. package/dist/client/assets/error-reports-sdk-COuSIAQO.js +15 -0
  16. package/dist/client/assets/index-B_m65HWT.css +2 -0
  17. package/dist/client/assets/index-C1ZwriJU.js +37 -0
  18. package/dist/client/assets/{play--xrZ7VCR.js → play-vJhLsLhL.js} +1 -1
  19. package/dist/client/assets/{refresh-cw-B-npxKae.js → refresh-cw-TbGHlgDq.js} +1 -1
  20. package/dist/client/assets/ui-CogdFhRH.js +41 -0
  21. package/dist/client/build-info.json +1 -1
  22. package/dist/client/index.html +3 -3
  23. package/dist/client/sw.js +2 -2
  24. package/dist/console/assets/{LocalAccountsApp-uKpz8EwR.js → LocalAccountsApp-ntQzkgTS.js} +1 -1
  25. package/dist/console/assets/{LocalConsole-XeqnTeRB.js → LocalConsole-Rg-MTvSJ.js} +2 -2
  26. package/dist/console/assets/{LocalUsage-Br3Ddp7_.js → LocalUsage-BGCSfmBU.js} +1 -1
  27. package/dist/console/assets/{app-update-dialog-h11DnNZi.js → app-update-dialog-CEhV7th4.js} +1 -1
  28. package/dist/console/assets/app-version-BiMzvHaD.js +1 -0
  29. package/dist/console/assets/console-BD5_Gha1.js +11 -0
  30. package/dist/console/assets/console-PWt8SxrJ.css +2 -0
  31. package/dist/console/assets/error-reports-sdk-COuSIAQO.js +15 -0
  32. package/dist/console/assets/local-agents-UprGVyLj.js +6 -0
  33. package/dist/console/assets/minus-Cnq0kKnu.js +1 -0
  34. package/dist/console/assets/{tailnet-DJGcztR5.js → tailnet-Cqtbptzq.js} +2 -2
  35. package/dist/console/assets/theme-CB-cwoG6.js +1 -0
  36. package/dist/console/assets/ui-HgfwUo3E.js +41 -0
  37. package/dist/console/assets/{usage-fzmilDTS.js → usage-BCIwgDP9.js} +2 -2
  38. package/dist/console/assets/{usage-DjmUlnXL.js → usage-CeY6XnGX.js} +1 -1
  39. package/dist/console/build-info.json +1 -1
  40. package/dist/console/console.html +8 -8
  41. package/docs/README.md +64 -0
  42. package/docs/agent-hardening.md +3 -3
  43. package/docs/agent-recipes.md +3 -3
  44. package/docs/agent-workflow.md +6 -4
  45. package/docs/agents.md +25 -16
  46. package/docs/architecture.md +9 -2
  47. package/docs/config.md +53 -25
  48. package/docs/deployment.md +19 -3
  49. package/docs/github.md +1 -1
  50. package/docs/hosted.md +265 -70
  51. package/docs/local-accounts.md +1 -1
  52. package/docs/performance.md +3 -2
  53. package/docs/pull-requests.md +1 -1
  54. package/docs/starter-agent.md +4 -4
  55. package/docs/where-to-run.md +1 -1
  56. package/package.json +5 -2
  57. package/src/agent/backends/acp.js +39 -9
  58. package/src/capture/capture.js +35 -5
  59. package/src/capture/destination.js +67 -0
  60. package/src/capture/load-errors.js +82 -0
  61. package/src/checks/cli.js +41 -5
  62. package/src/cli/args.js +1 -0
  63. package/src/cli/capture.js +5 -0
  64. package/src/cli/comments.js +41 -3
  65. package/src/cli/help.js +4 -1
  66. package/src/cli/init.js +8 -4
  67. package/src/cli/misc.js +3 -3
  68. package/src/cli/serve.js +37 -6
  69. package/src/comment-fields.js +5 -0
  70. package/src/comments-cli.js +26 -5
  71. package/src/config-keys.js +191 -0
  72. package/src/config-reload.js +4 -1
  73. package/src/config.js +33 -2
  74. package/src/doctor.js +188 -39
  75. package/src/error-scrub.js +135 -0
  76. package/src/error-tracking.js +105 -0
  77. package/src/feedback.js +36 -2
  78. package/src/hosted/app.js +9 -3
  79. package/src/hosted/auth.js +14 -8
  80. package/src/hosted/board-routes.js +6 -6
  81. package/src/hosted/db.js +50 -0
  82. package/src/hosted/pages.js +16 -7
  83. package/src/hosted/server.js +4 -0
  84. package/src/hosted/token-api.js +17 -1
  85. package/src/hosted/usage-shape.js +1 -1
  86. package/src/missing-package.js +11 -0
  87. package/src/ports.js +35 -0
  88. package/src/serve-state.js +16 -0
  89. package/src/server/app.js +18 -14
  90. package/src/server/local-console.js +7 -3
  91. package/src/watch.js +6 -0
  92. package/dist/client/assets/BoardChat-BVbIXN0v.js +0 -27
  93. package/dist/client/assets/ChecksPanel-BJmSzge1.js +0 -1
  94. package/dist/client/assets/LocalSettings-Bt52or8s.js +0 -1
  95. package/dist/client/assets/QuickConnect-C6sW-MA7.js +0 -1
  96. package/dist/client/assets/index-C-pM8Kf2.js +0 -37
  97. package/dist/client/assets/index-C2_XIPRO.css +0 -2
  98. package/dist/client/assets/ui-2lMx-4bc.js +0 -41
  99. package/dist/console/assets/app-version-IdaEWb4n.js +0 -1
  100. package/dist/console/assets/console-BDuWmrw9.js +0 -11
  101. package/dist/console/assets/console-BGRSS8Ru.css +0 -2
  102. package/dist/console/assets/local-agents-BkSN9lXJ.js +0 -6
  103. package/dist/console/assets/minus-887msXez.js +0 -1
  104. package/dist/console/assets/theme-CPfJOmcz.js +0 -1
  105. package/dist/console/assets/ui-DnyJhoQU.js +0 -41
@@ -1,4 +1,4 @@
1
- import{At as e,Bt as t,Dt as n,It as r,J as i,Lt as a,N as o,Pt as s,Rt as c,S as l,U as u,Vt as d,X as f,Y as p,_t as m,at as h,it as g,kt as _,l as v,nt as y,ot as b,rt as x,st as S,t as C,zt as w}from"./ui-DnyJhoQU.js";import{Ct as T,Et as E,N as D,St as O,Tt as k,a as A,ht as j,i as M,p as N}from"./theme-CPfJOmcz.js";import{t as ee}from"./minus-887msXez.js";var te={name:`arrow-down-right`,size:24,node:[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]};te.node;var ne=r(te),re={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};re.node;var ie=r(re),ae={name:`clipboard-copy`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]};ae.node;var oe=r(ae),se={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};se.node;var ce=r(se),le={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};le.node;var ue=r(le),de={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};de.node;var fe=r(de),pe={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};pe.node;var me=r(pe),he={name:`table-2`,size:24,node:[[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};he.node;var ge=r(he),P=d(c()),_e=d(a()),ve=[`agent`,`project`,`person`,`kind`,`model`,`outcome`],ye=[`calls`,`tokens`,`input`,`output`,`cached`,`duration`,`cost`],be=[`day`,`week`,`month`],xe=[`chat`,`review`,`fix`,`push`],Se={completed:[`answered`,`fix_ready`,`done`,`resolved`,`branch-ready`],needs_person:[`needs-human`],failed:[`failed`,`error`,`interrupted`],stopped:[`stopped`],other:[`released`,`removed`,`stale`,`revoked`,`expired`,`inactive`]},Ce=[`completed`,`needs_person`,`failed`,`stopped`,`other`,`running`],we={completed:`Completed`,needs_person:`Needs a person`,failed:`Failed`,stopped:`Stopped`,other:`Let go`,running:`Running`};function Te(e){if(!e)return`running`;for(let[t,n]of Object.entries(Se))if(n.includes(e))return t;return`other`}var Ee={answered:`Answered`,fix_ready:`Fix ready`,done:`Done`,resolved:`Resolved`,"branch-ready":`Branch ready`,"needs-human":`Needs a person`,failed:`Failed`,error:`Failed`,interrupted:`Interrupted`,stopped:`Stopped`,released:`Released`,removed:`Comment removed`,stale:`Taken again`,revoked:`Agent revoked`,expired:`Agent expired`,inactive:`Agent inactive`},De={chat:`Chat`,review:`Comment answer`,fix:`Fix`,push:`Push`},Oe={agent:`Agent`,project:`Project`,person:`Person`,kind:`Kind`,model:`Model`,outcome:`Outcome`},ke={calls:`Turns`,tokens:`Tokens`,input:`Input tokens`,output:`Output tokens`,cached:`Cached tokens`,duration:`Time`,cost:`Reported cost`},Ae={tokens:!0,input:!0,output:!0,cached:!0,cost:!0},je=Object.keys({signin:[`signed_in`,`signed_out`,`sign_in_failed`,`recovery_failed`,`account_created`,`passkey_added`,`passkey_removed`,`recovery_codes_created`,`session_revoked`,`sessions_revoked`,`tailnet_linked`,`tailnet_unlinked`],members:[`invite_created`,`invite_revoked`,`invite_accepted`,`member_role_changed`,`member_removed`,`member_left`,`member_grants_revoked`,`tailnet_visitor_dismissed`],settings:[`workspace_created`,`workspace_renamed`,`share_links_enabled`,`share_links_disabled`,`agent_policy_changed`,`usage_retention_changed`,`usage_layout_default_set`,`usage_layout_default_removed`,`project_made_public`,`project_made_private`,`step_up_changed`],projects:[`project_created`,`project_deleted`,`board_removed`,`push_committed`],sharing:[`share_created`,`share_revoked`,`share_opened`,`share_passcode_failed`,`guest_commented`,`guest_replied`,`guest_ended`],tokens:[`token_created`,`token_renamed`,`token_revoked`],agents:[`agent_created`,`agent_connected`,`agent_first_seen`,`agent_renamed`,`agent_identity_changed`,`agent_default_changed`,`agent_audience_changed`,`agent_approval_rule_changed`,`agent_edit_mode_changed`,`agent_revoked`,`agent_queue_released`,`agent_link_connected`,`agent_link_disconnected`],approvals:[`agent_permission_asked`,`agent_permission_approved`,`agent_permission_denied`,`agent_permission_auto`,`agent_permission_expired`,`agent_permission_not_taken`,`agent_command_approved`,`agent_command_denied`,`comment_vouched`],work:[`agent_turn_started`,`agent_turn_stopped`,`agent_fix_branch_ready`,`agent_branch_pushed`,`agent_pull_request_opened`,`chat_thread_created`,`chat_thread_deleted`,`chat_thread_agent_changed`],comments:[`comment_resolved`,`comment_deleted`],exports:[`workspace_exported`,`audit_exported`,`usage_exported`,`access_exported`]}),Me={signin:`Sign-in and passkeys`,members:`Members and invites`,settings:`Settings`,projects:`Projects and pushes`,sharing:`Share links and guests`,tokens:`API tokens`,agents:`Agents`,approvals:`Approvals`,work:`Agent work`,comments:`Comments`,exports:`Exports`},Ne=`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 Pe(e){return typeof e==`string`&&Ne.includes(e)}var Fe=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 Ie(e){return typeof e==`string`&&Fe.has(e)}function Le(e){return typeof e==`string`&&e.startsWith(`data-`)}function Re(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Ie(n)||Le(n))&&(t[n]=e[n]);return t}function ze(e){if(e==null)return null;if((0,P.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return Re(t)}return typeof e==`object`&&!Array.isArray(e)?Re(e):null}function Be(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Ie(n)||Le(n)||Pe(n))&&(t[n]=e[n]);return t}function Ve(e){return e==null?null:(0,P.isValidElement)(e)?Be(e.props):typeof e==`object`&&!Array.isArray(e)?Be(e):null}var He=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Ue(){return Ue=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},Ue.apply(null,arguments)}function We(e,t){if(e==null)return{};var n,r,i=Ge(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 Ge(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 Ke=(0,P.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=We(e,He),d=a||{width:r,height:i,x:0,y:0},f=_(`recharts-surface`,o);return P.createElement(`svg`,Ue({},Be(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),P.createElement(`title`,null,c),P.createElement(`desc`,null,l),n)}),qe=[`children`,`className`];function Je(){return Je=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},Je.apply(null,arguments)}function Ye(e,t){if(e==null)return{};var n,r,i=Xe(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 Xe(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 Ze=P.forwardRef((e,t)=>{var n=e.children,r=e.className,i=Ye(e,qe),a=_(`recharts-layer`,r);return P.createElement(`g`,Je({className:a},Be(i),{ref:t}),n)});function Qe(e){return e===`__proto__`}var $e=Object.prototype.hasOwnProperty;function et(e,t){return $e.call(e,t)}var tt=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function nt(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:tt.test(e);default:return!1}}function rt(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function it(e){return typeof e==`symbol`||e instanceof Symbol}function at(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=at(e[n]);return t}if(it(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ot(e){return e==null?``:at(e)}function st(e){if(Array.isArray(e))return e.map(rt);if(typeof e==`symbol`)return[e];e=ot(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function ct(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(Qe(t))return n;let r=e[t];return r===void 0?nt(t)&&!et(e,t)?ct(e,st(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=rt(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return lt(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),Qe(t))return n;let r=e[t];return r===void 0?n:r}}}function lt(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||Qe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var ut=4;function dt(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function ft(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+dt(i)+n},``)}var pt=e=>e===0?0:e>0?1:-1,mt=e=>typeof e==`number`&&e!=+e,ht=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!mt(e),gt=e=>F(e)||typeof e==`string`,_t=0,vt=e=>{var t=++_t;return`${e||``}${t}`},yt=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(!F(e)&&typeof e!=`string`)return n;var i;if(ht(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return mt(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},bt=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 I(e,t,n){return F(e)&&F(t)?dt(e+n*(t-e)):t}function xt(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):ct(e,t))===n)}var L=e=>e==null,St=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ct(e){return e!=null}function wt(){}function Tt(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 Et(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Et(Object(n),!0).forEach(function(t){Ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ot(e,t,n){return(t=kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e){var t=At(e,`string`);return typeof t==`symbol`?t:t+``}function At(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 jt=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Tt(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`?Dt({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Dt({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Dt({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Dt({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Dt({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Dt({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Dt({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Dt({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||ht(n.x))&&(F(n.y)||ht(n.y))?Dt({x:c+yt(n.x,g),y:l+yt(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Dt({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Mt=[`top`,`left`,`right`,`bottom`];function Nt(e){return e==null?!1:typeof e==`object`||Mt.includes(e)}var Pt=(0,P.createContext)(null),Ft=Math.PI,It=2*Ft,Lt=1e-6,Rt=It-Lt;function zt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Bt(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return zt;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]}}function Vt(e,t,n,r){return e===n&&t===r}function Ht(e){let t=Math.floor(e);if(!(t<=15))return Vt;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var Ut=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?zt:Bt(e),this._equal=e==null?Vt:Ht(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>Lt){if(!(Math.abs(u*s-c*l)>Lt)||!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((Ft-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Lt&&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;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Lt||Math.abs(this._y1-l)>Lt)&&this._append`L${c},${l}`,n){if(d<0&&(d=d%It+It),d>Rt)this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`;else if(d>Lt){let a=e+n*Math.cos(i),o=t+n*Math.sin(i);if(d>=Ft&&this._equal(c,l,a,o)){d/=2;let i=r+d;this._append`A${n},${n},0,${+(d>=Ft)},${u},${e+n*Math.cos(i)},${t+n*Math.sin(i)}`}this._append`A${n},${n},0,${+(d>=Ft)},${u},${this._x1=a},${this._y1=o}`}}}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._}};Ut.prototype;function R(e){return function(){return e}}var Wt=Math.cos,Gt=Math.sin,Kt=Math.sqrt,qt=1e-12,Jt=Math.PI;Jt/2;var Yt=2*Jt;function Xt(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 Ut(t)}Array.prototype.slice;function Zt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Qt(e){this._context=e}Qt.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 $t(e){return new Qt(e)}function en(e){return e[0]}function tn(e){return e[1]}function nn(e,t){var n=R(!0),r=null,i=$t,a=null,o=Xt(s);e=typeof e==`function`?e:e===void 0?en:R(e),t=typeof t==`function`?t:t===void 0?tn:R(t);function s(s){var c,l=(s=Zt(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:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!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 rn(e,t,n){var r=null,i=R(!0),a=null,o=$t,s=null,c=Xt(l);e=typeof e==`function`?e:e===void 0?en:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?tn:R(+n);function l(l){var u,d,f,p=(l=Zt(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 nn().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+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:R(!!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}on($t);function an(e){this._curve=e}an.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function on(e){function t(t){return new an(e(t))}return t._curve=e,t}var sn=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 cn(e){return new sn(e,!0)}function ln(e){return new sn(e,!1)}Kt(3),Kt(1/3)*2;var un=Gt(Jt/10)/Gt(7*Jt/10);Gt(Yt/10)*un,-Wt(Yt/10)*un,Kt(3),Kt(3),Kt(3)/2,(1/Kt(12)/2+1)*3;function dn(){}function fn(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 pn(e){this._context=e}pn.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:fn(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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mn(e){return new pn(e)}function hn(e){this._context=e}hn.prototype={areaStart:dn,areaEnd:dn,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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gn(e){return new hn(e)}function _n(e){this._context=e}_n.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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vn(e){return new _n(e)}function yn(e,t){this._basis=new pn(e),this._beta=t}yn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},(function e(t){function n(e){return t===1?new pn(e):new yn(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function bn(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function xn(e,t){this._context=e,this._k=(1-t)/6}xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bn(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new xn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Sn(e,t){this._context=e,this._k=(1-t)/6}Sn.prototype={areaStart:dn,areaEnd:dn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new Sn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Cn(e,t){this._context=e,this._k=(1-t)/6}Cn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new Cn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function wn(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>qt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>qt){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Tn(e,t){this._context=e,this._alpha=t}Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}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;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Tn(e,t):new xn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function En(e,t){this._context=e,this._alpha=t}En.prototype={areaStart:dn,areaEnd:dn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new En(e,t):new Sn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Dn(e,t){this._context=e,this._alpha=t}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Dn(e,t):new Cn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function On(e){this._context=e}On.prototype={areaStart:dn,areaEnd:dn,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 kn(e){return new On(e)}function An(e){return e<0?-1:1}function jn(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(An(a)+An(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mn(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nn(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 Pn(e){this._context=e}Pn.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:Nn(this,this._t0,Mn(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,Nn(this,Mn(this,n=jn(this,e,t)),n);break;default:Nn(this,this._t0,n=jn(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Fn(e){this._context=new In(e)}(Fn.prototype=Object.create(Pn.prototype)).point=function(e,t){Pn.prototype.point.call(this,t,e)};function In(e){this._context=e}In.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 Ln(e){return new Pn(e)}function Rn(e){return new Fn(e)}function zn(e){this._context=e}zn.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=Bn(e),i=Bn(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 Bn(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 Vn(e){return new zn(e)}function Hn(e,t){this._context=e,this._t=t}Hn.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 Un(e){return new Hn(e,.5)}function Wn(e){return new Hn(e,0)}function Gn(e){return new Hn(e,1)}function Kn(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 qn(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Jn(e,t){return e[t]}function Yn(e){let t=[];return t.key=e,t}function Xn(){var e=R([]),t=qn,n=Kn,r=Jn;function i(i){var a=Array.from(e.apply(this,arguments),Yn),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=Zt(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:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?qn:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Kn,i):n},i}function Zn(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}Kn(e,t)}}function Qn(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}Kn(e,t)}}function $n(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,Kn(e,t)}}var er=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,tr=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,P.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Pe(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},nr=(e,t,n)=>r=>(e(t,n,r),null),rr=(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];Pe(i)&&typeof a==`function`&&(r||={},r[i]=nr(a,t,n))}),r};function ir(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 ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ir(Object(n),!0).forEach(function(t){or(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function or(e,t,n){return(t=sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(e){var t=cr(e,`string`);return typeof t==`symbol`?t:t+``}function cr(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 lr(e,t){var n=ar({},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 ur(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 dr(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function fr(e){return e}function pr(e){return Number.isSafeInteger(e)&&e>=0}function mr(e){return e!=null&&typeof e!=`function`&&pr(e.length)}function hr(e){return function(t){return ct(t,e)}}function gr(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function _r(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var vr=`[object RegExp]`,yr=`[object String]`,br=`[object Number]`,xr=`[object Boolean]`,Sr=`[object Arguments]`,Cr=`[object Symbol]`,wr=`[object Date]`,Tr=`[object Map]`,Er=`[object Set]`,Dr=`[object Array]`,Or=`[object Function]`,kr=`[object ArrayBuffer]`,Ar=`[object Object]`,jr=`[object Error]`,Mr=`[object DataView]`,Nr=`[object Uint8Array]`,Pr=`[object Uint8ClampedArray]`,Fr=`[object Uint16Array]`,Ir=`[object Uint32Array]`,Lr=`[object BigUint64Array]`,Rr=`[object Int8Array]`,zr=`[object Int16Array]`,Br=`[object Int32Array]`,Vr=`[object BigInt64Array]`,Hr=`[object Float32Array]`,Ur=`[object Float64Array]`;function Wr(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Gr(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Kr(e,t,n){return typeof n==`function`?qr(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?qr(t,r,e,s,!1):!!c},new Map,!0):Kr(e,t,()=>void 0)}function qr(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Jr(e,t,n,r,i);case`function`:return Object.keys(t).length>0?qr(e,Object.assign({},t),n,r,i):Wr(e,t);default:return Gr(e)&&i?typeof t!=`string`||t===``:Wr(e,t)}}function Jr(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Xr(e,t,n,r);if(t instanceof Map)return Yr(e,t,n,r);if(t instanceof Set)return Zr(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)gr(e)&&(e=Object(e));else{if(_r(t)===`[object Error]`)return _r(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=_r(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(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 Yr(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 Xr(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 Zr(e,t,n,r){return t.size===0||e instanceof Set&&Xr([...e],[...t],n,r)}function Qr(e,t){return Kr(e,t,()=>void 0)}function $r(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var ei=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function ti(e){return ei.Buffer!==void 0&&ei.Buffer.isBuffer(e)}function ni(e){return ti(e)}function ri(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ii(e){return ri(e)}function ai(e,t){return oi(e,void 0,e,new Map,t)}function oi(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(gr(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]=oi(e[a],a,n,r,i);return et(e,`index`)&&(t.index=e.index),et(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;return r.set(e,t),e.forEach((e,a)=>{t.set(a,oi(e,a,n,r,i))}),t}if(e instanceof Set){let t=new Set;return r.set(e,t),e.forEach(e=>{t.add(oi(e,void 0,n,r,i))}),t}if(ni(e))return e.subarray();if(ii(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=oi(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),si(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),si(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),si(t,e,n,r,i),t}let a=_r(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case br:case yr:case xr:{let t=new e.constructor(e.valueOf());return r.set(e,t),si(t,e,n,r,i),t}case Sr:{let t={};return r.set(e,t),si(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&ci(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),si(t,e,n,r,i),t}return e}function si(e,t,n,r,i){let a=[...Object.keys(t),...$r(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=oi(t[s],s,n,r,i))}}function ci(e){switch(e){case Sr:case Dr:case kr:case Mr:case xr:case wr:case Hr:case Ur:case Rr:case zr:case Br:case Tr:case br:case Ar:case vr:case Er:case yr:case Cr:case Nr:case Pr:case Fr:case Ir:return!0;default:return!1}}function li(e){return ai(e)}function ui(e){return e=li(e),t=>Qr(t,e)}var di=/^(?:0|[1-9]\d*)$/;function fi(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 di.test(e)}}function pi(e){return typeof e==`object`&&!!e&&_r(e)===`[object Arguments]`}function mi(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&nt(t)&&!(t in Object(e))?st(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=rt(n[e]);if((r==null||!et(r,t))&&!((Array.isArray(r)||pi(r))&&fi(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function hi(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=rt(e)}return t=li(t),function(n){let r=ct(n,e);return r===void 0?mi(n,e):t===void 0?r===void 0:Qr(r,t)}}function gi(e){if(e==null)return fr;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?hi(e[0],e[1]):ui(e);default:return hr(e)}}function _i(e){return e===0?0:e}function vi(e,t=fr){return mr(e)?ur(Array.from(e),dr(gi(t),1)).map(_i):[]}function yi(e,t,n){return t===!0?vi(e,n):typeof t==`function`?vi(e,t):e}var bi=w((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),xi=w(((e,t)=>{t.exports=bi()})),Si=w((e=>{var t=c(),n=xi();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),c!==void 0&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return c!==void 0&&c(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,c]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ci=w(((e,t)=>{t.exports=Si()})),wi=Ci(),Ti=(0,P.createContext)(null),Ei=e=>e,z=()=>{var e=(0,P.useContext)(Ti);return e?e.store.dispatch:Ei},Di=()=>{},Oi=()=>Di,ki=(e,t)=>e===t;function B(e){var t=(0,P.useContext)(Ti),n=(0,P.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Di,[t,e]);return(0,wi.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Oi,t?t.store.getState:Di,t?t.store.getState:Di,n,ki)}function Ai(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function ji(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 Mi=e=>Array.isArray(e)?e:[e];function Ni(e){let t=Array.isArray(e[0])?e[0]:e;return ji(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Pi(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Fi=class{constructor(e){this.value=e}deref(){return this.value}},Ii=typeof WeakRef>`u`?Fi:WeakRef,Li=0,Ri=1;function zi(){return{s:Li,v:void 0,o:null,p:null}}function Bi(e){return e instanceof Ii?e.deref():e}function Vi(e,t={}){let n=zi(),{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=zi(),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=zi(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Ri)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Bi(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Ii(c):c}return s.s=Ri,s.v=c,c}return o.clearCache=()=>{n=zi(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Hi(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()),Ai(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Vi,argsMemoizeOptions:u=[]}={...n,...a},d=Mi(c),f=Mi(u),p=Ni(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Pi(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 V=Hi(Vi);function Ui(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 Wi(e,t,n){return Gr(n)&&(typeof t==`number`&&mr(n)&&fi(t)&&t<n.length||typeof t==`string`&&t in n)?Wr(n[t],e):!1}function Gi(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function Ki(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var qi=(e,t,n)=>{if(e!==t){let r=Ki(e),i=Ki(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},Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yi=/^\w*$/;function Xi(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||it(e)?!0:typeof e==`string`&&(Yi.test(e)||!Ji.test(e))||t!=null&&et(t,e)}function Zi(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=mr(e)?Array.from(e):Gi(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,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?et(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Xi(e)?e:{key:e,path:st(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=qi(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Qi(e,...t){let n=t.length;return n>1&&Wi(e,t[0],t[1])?t=[]:n>2&&Wi(t[0],t[1],t[2])&&(t=[t[0]]),Zi(e,Ui(t),[`asc`])}var $i=e=>e.legend.settings,ea=e=>e.legend.size;V([e=>e.legend.payload,$i],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Qi(r,n):r});function ta(e,t){return oa(e)||aa(e,t)||ra(e,t)||na()}function na(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{At as e,Bt as t,Dt as n,It as r,J as i,Lt as a,N as o,Pt as s,Rt as c,S as l,U as u,Vt as d,X as f,Y as p,_t as m,at as h,it as g,kt as _,l as v,nt as y,ot as b,rt as x,st as S,t as C,zt as w}from"./ui-HgfwUo3E.js";import{Ct as T,Et as E,N as D,St as O,Tt as k,a as A,ht as j,i as M,p as N}from"./theme-CB-cwoG6.js";import{t as ee}from"./minus-Cnq0kKnu.js";var te={name:`arrow-down-right`,size:24,node:[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]};te.node;var ne=r(te),re={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};re.node;var ie=r(re),ae={name:`clipboard-copy`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]};ae.node;var oe=r(ae),se={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};se.node;var ce=r(se),le={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};le.node;var ue=r(le),de={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};de.node;var fe=r(de),pe={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};pe.node;var me=r(pe),he={name:`table-2`,size:24,node:[[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]};he.node;var ge=r(he),P=d(c()),_e=d(a()),ve=[`agent`,`project`,`person`,`kind`,`model`,`outcome`],ye=[`calls`,`tokens`,`input`,`output`,`cached`,`duration`,`cost`],be=[`day`,`week`,`month`],xe=[`chat`,`review`,`fix`,`push`],Se={completed:[`answered`,`fix_ready`,`done`,`resolved`,`branch-ready`],needs_person:[`needs-human`],failed:[`failed`,`error`,`interrupted`],stopped:[`stopped`],other:[`released`,`removed`,`stale`,`revoked`,`expired`,`inactive`]},Ce=[`completed`,`needs_person`,`failed`,`stopped`,`other`,`running`],we={completed:`Completed`,needs_person:`Needs a person`,failed:`Failed`,stopped:`Stopped`,other:`Let go`,running:`Running`};function Te(e){if(!e)return`running`;for(let[t,n]of Object.entries(Se))if(n.includes(e))return t;return`other`}var Ee={answered:`Answered`,fix_ready:`Fix ready`,done:`Done`,resolved:`Resolved`,"branch-ready":`Branch ready`,"needs-human":`Needs a person`,failed:`Failed`,error:`Failed`,interrupted:`Interrupted`,stopped:`Stopped`,released:`Released`,removed:`Comment removed`,stale:`Taken again`,revoked:`Agent revoked`,expired:`Agent expired`,inactive:`Agent inactive`},De={chat:`Chat`,review:`Comment answer`,fix:`Fix`,push:`Push`},Oe={agent:`Agent`,project:`Project`,person:`Person`,kind:`Kind`,model:`Model`,outcome:`Outcome`},ke={calls:`Turns`,tokens:`Tokens`,input:`Input tokens`,output:`Output tokens`,cached:`Cached tokens`,duration:`Time`,cost:`Reported cost`},Ae={tokens:!0,input:!0,output:!0,cached:!0,cost:!0},je=Object.keys({signin:[`signed_in`,`signed_out`,`sign_in_failed`,`recovery_failed`,`account_created`,`passkey_added`,`passkey_removed`,`recovery_codes_created`,`session_revoked`,`sessions_revoked`,`tailnet_linked`,`tailnet_unlinked`],members:[`invite_created`,`invite_revoked`,`invite_accepted`,`member_role_changed`,`member_removed`,`member_left`,`member_grants_revoked`,`tailnet_visitor_dismissed`],settings:[`workspace_created`,`workspace_renamed`,`share_links_enabled`,`share_links_disabled`,`agent_policy_changed`,`usage_retention_changed`,`usage_layout_default_set`,`usage_layout_default_removed`,`project_made_public`,`project_made_private`,`step_up_changed`],projects:[`project_created`,`project_deleted`,`board_removed`,`push_committed`],sharing:[`share_created`,`share_revoked`,`share_opened`,`share_passcode_failed`,`guest_commented`,`guest_replied`,`guest_ended`],tokens:[`token_created`,`token_renamed`,`token_revoked`],agents:[`agent_created`,`agent_connected`,`agent_first_seen`,`agent_renamed`,`agent_identity_changed`,`agent_default_changed`,`agent_audience_changed`,`agent_approval_rule_changed`,`agent_edit_mode_changed`,`agent_revoked`,`agent_queue_released`,`agent_link_connected`,`agent_link_disconnected`],approvals:[`agent_permission_asked`,`agent_permission_approved`,`agent_permission_denied`,`agent_permission_auto`,`agent_permission_expired`,`agent_permission_not_taken`,`agent_command_approved`,`agent_command_denied`,`comment_vouched`],work:[`agent_turn_started`,`agent_turn_stopped`,`agent_fix_branch_ready`,`agent_branch_pushed`,`agent_pull_request_opened`,`chat_thread_created`,`chat_thread_deleted`,`chat_thread_agent_changed`],comments:[`comment_resolved`,`comment_reopened`,`comment_deleted`],exports:[`workspace_exported`,`audit_exported`,`usage_exported`,`access_exported`]}),Me={signin:`Sign-in and passkeys`,members:`Members and invites`,settings:`Settings`,projects:`Projects and pushes`,sharing:`Share links and guests`,tokens:`API tokens`,agents:`Agents`,approvals:`Approvals`,work:`Agent work`,comments:`Comments`,exports:`Exports`},Ne=`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 Pe(e){return typeof e==`string`&&Ne.includes(e)}var Fe=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 Ie(e){return typeof e==`string`&&Fe.has(e)}function Le(e){return typeof e==`string`&&e.startsWith(`data-`)}function Re(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Ie(n)||Le(n))&&(t[n]=e[n]);return t}function ze(e){if(e==null)return null;if((0,P.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return Re(t)}return typeof e==`object`&&!Array.isArray(e)?Re(e):null}function Be(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Ie(n)||Le(n)||Pe(n))&&(t[n]=e[n]);return t}function Ve(e){return e==null?null:(0,P.isValidElement)(e)?Be(e.props):typeof e==`object`&&!Array.isArray(e)?Be(e):null}var He=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Ue(){return Ue=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},Ue.apply(null,arguments)}function We(e,t){if(e==null)return{};var n,r,i=Ge(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 Ge(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 Ke=(0,P.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=We(e,He),d=a||{width:r,height:i,x:0,y:0},f=_(`recharts-surface`,o);return P.createElement(`svg`,Ue({},Be(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),P.createElement(`title`,null,c),P.createElement(`desc`,null,l),n)}),qe=[`children`,`className`];function Je(){return Je=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},Je.apply(null,arguments)}function Ye(e,t){if(e==null)return{};var n,r,i=Xe(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 Xe(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 Ze=P.forwardRef((e,t)=>{var n=e.children,r=e.className,i=Ye(e,qe),a=_(`recharts-layer`,r);return P.createElement(`g`,Je({className:a},Be(i),{ref:t}),n)});function Qe(e){return e===`__proto__`}var $e=Object.prototype.hasOwnProperty;function et(e,t){return $e.call(e,t)}var tt=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function nt(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:tt.test(e);default:return!1}}function rt(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function it(e){return typeof e==`symbol`||e instanceof Symbol}function at(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=at(e[n]);return t}if(it(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ot(e){return e==null?``:at(e)}function st(e){if(Array.isArray(e))return e.map(rt);if(typeof e==`symbol`)return[e];e=ot(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function ct(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(Qe(t))return n;let r=e[t];return r===void 0?nt(t)&&!et(e,t)?ct(e,st(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=rt(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return lt(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),Qe(t))return n;let r=e[t];return r===void 0?n:r}}}function lt(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||Qe(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var ut=4;function dt(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function ft(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+dt(i)+n},``)}var pt=e=>e===0?0:e>0?1:-1,mt=e=>typeof e==`number`&&e!=+e,ht=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!mt(e),gt=e=>F(e)||typeof e==`string`,_t=0,vt=e=>{var t=++_t;return`${e||``}${t}`},yt=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(!F(e)&&typeof e!=`string`)return n;var i;if(ht(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return mt(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},bt=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 I(e,t,n){return F(e)&&F(t)?dt(e+n*(t-e)):t}function xt(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):ct(e,t))===n)}var L=e=>e==null,St=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Ct(e){return e!=null}function wt(){}function Tt(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 Et(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Et(Object(n),!0).forEach(function(t){Ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ot(e,t,n){return(t=kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kt(e){var t=At(e,`string`);return typeof t==`symbol`?t:t+``}function At(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 jt=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Tt(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`?Dt({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Dt({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Dt({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Dt({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Dt({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Dt({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Dt({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Dt({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||ht(n.x))&&(F(n.y)||ht(n.y))?Dt({x:c+yt(n.x,g),y:l+yt(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Dt({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Mt=[`top`,`left`,`right`,`bottom`];function Nt(e){return e==null?!1:typeof e==`object`||Mt.includes(e)}var Pt=(0,P.createContext)(null),Ft=Math.PI,It=2*Ft,Lt=1e-6,Rt=It-Lt;function zt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Bt(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return zt;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]}}function Vt(e,t,n,r){return e===n&&t===r}function Ht(e){let t=Math.floor(e);if(!(t<=15))return Vt;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var Ut=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?zt:Bt(e),this._equal=e==null?Vt:Ht(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>Lt){if(!(Math.abs(u*s-c*l)>Lt)||!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((Ft-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Lt&&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;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Lt||Math.abs(this._y1-l)>Lt)&&this._append`L${c},${l}`,n){if(d<0&&(d=d%It+It),d>Rt)this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`;else if(d>Lt){let a=e+n*Math.cos(i),o=t+n*Math.sin(i);if(d>=Ft&&this._equal(c,l,a,o)){d/=2;let i=r+d;this._append`A${n},${n},0,${+(d>=Ft)},${u},${e+n*Math.cos(i)},${t+n*Math.sin(i)}`}this._append`A${n},${n},0,${+(d>=Ft)},${u},${this._x1=a},${this._y1=o}`}}}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._}};Ut.prototype;function R(e){return function(){return e}}var Wt=Math.cos,Gt=Math.sin,Kt=Math.sqrt,qt=1e-12,Jt=Math.PI;Jt/2;var Yt=2*Jt;function Xt(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 Ut(t)}Array.prototype.slice;function Zt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Qt(e){this._context=e}Qt.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 $t(e){return new Qt(e)}function en(e){return e[0]}function tn(e){return e[1]}function nn(e,t){var n=R(!0),r=null,i=$t,a=null,o=Xt(s);e=typeof e==`function`?e:e===void 0?en:R(e),t=typeof t==`function`?t:t===void 0?tn:R(t);function s(s){var c,l=(s=Zt(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:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!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 rn(e,t,n){var r=null,i=R(!0),a=null,o=$t,s=null,c=Xt(l);e=typeof e==`function`?e:e===void 0?en:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?tn:R(+n);function l(l){var u,d,f,p=(l=Zt(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 nn().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+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:R(!!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}on($t);function an(e){this._curve=e}an.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function on(e){function t(t){return new an(e(t))}return t._curve=e,t}var sn=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 cn(e){return new sn(e,!0)}function ln(e){return new sn(e,!1)}Kt(3),Kt(1/3)*2;var un=Gt(Jt/10)/Gt(7*Jt/10);Gt(Yt/10)*un,-Wt(Yt/10)*un,Kt(3),Kt(3),Kt(3)/2,(1/Kt(12)/2+1)*3;function dn(){}function fn(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 pn(e){this._context=e}pn.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:fn(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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mn(e){return new pn(e)}function hn(e){this._context=e}hn.prototype={areaStart:dn,areaEnd:dn,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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gn(e){return new hn(e)}function _n(e){this._context=e}_n.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:fn(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vn(e){return new _n(e)}function yn(e,t){this._basis=new pn(e),this._beta=t}yn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},(function e(t){function n(e){return t===1?new pn(e):new yn(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function bn(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function xn(e,t){this._context=e,this._k=(1-t)/6}xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bn(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new xn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Sn(e,t){this._context=e,this._k=(1-t)/6}Sn.prototype={areaStart:dn,areaEnd:dn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new Sn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Cn(e,t){this._context=e,this._k=(1-t)/6}Cn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bn(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new Cn(e,t)}return n.tension=function(t){return e(+t)},n})(0);function wn(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>qt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>qt){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Tn(e,t){this._context=e,this._alpha=t}Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}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;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Tn(e,t):new xn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function En(e,t){this._context=e,this._alpha=t}En.prototype={areaStart:dn,areaEnd:dn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new En(e,t):new Sn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Dn(e,t){this._context=e,this._alpha=t}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wn(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Dn(e,t):new Cn(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function On(e){this._context=e}On.prototype={areaStart:dn,areaEnd:dn,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 kn(e){return new On(e)}function An(e){return e<0?-1:1}function jn(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(An(a)+An(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mn(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nn(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 Pn(e){this._context=e}Pn.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:Nn(this,this._t0,Mn(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,Nn(this,Mn(this,n=jn(this,e,t)),n);break;default:Nn(this,this._t0,n=jn(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Fn(e){this._context=new In(e)}(Fn.prototype=Object.create(Pn.prototype)).point=function(e,t){Pn.prototype.point.call(this,t,e)};function In(e){this._context=e}In.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 Ln(e){return new Pn(e)}function Rn(e){return new Fn(e)}function zn(e){this._context=e}zn.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=Bn(e),i=Bn(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 Bn(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 Vn(e){return new zn(e)}function Hn(e,t){this._context=e,this._t=t}Hn.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 Un(e){return new Hn(e,.5)}function Wn(e){return new Hn(e,0)}function Gn(e){return new Hn(e,1)}function Kn(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 qn(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Jn(e,t){return e[t]}function Yn(e){let t=[];return t.key=e,t}function Xn(){var e=R([]),t=qn,n=Kn,r=Jn;function i(i){var a=Array.from(e.apply(this,arguments),Yn),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=Zt(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:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?qn:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Kn,i):n},i}function Zn(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}Kn(e,t)}}function Qn(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}Kn(e,t)}}function $n(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,Kn(e,t)}}var er=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,tr=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,P.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Pe(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},nr=(e,t,n)=>r=>(e(t,n,r),null),rr=(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];Pe(i)&&typeof a==`function`&&(r||={},r[i]=nr(a,t,n))}),r};function ir(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 ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ir(Object(n),!0).forEach(function(t){or(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function or(e,t,n){return(t=sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(e){var t=cr(e,`string`);return typeof t==`symbol`?t:t+``}function cr(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 lr(e,t){var n=ar({},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 ur(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 dr(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function fr(e){return e}function pr(e){return Number.isSafeInteger(e)&&e>=0}function mr(e){return e!=null&&typeof e!=`function`&&pr(e.length)}function hr(e){return function(t){return ct(t,e)}}function gr(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function _r(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var vr=`[object RegExp]`,yr=`[object String]`,br=`[object Number]`,xr=`[object Boolean]`,Sr=`[object Arguments]`,Cr=`[object Symbol]`,wr=`[object Date]`,Tr=`[object Map]`,Er=`[object Set]`,Dr=`[object Array]`,Or=`[object Function]`,kr=`[object ArrayBuffer]`,Ar=`[object Object]`,jr=`[object Error]`,Mr=`[object DataView]`,Nr=`[object Uint8Array]`,Pr=`[object Uint8ClampedArray]`,Fr=`[object Uint16Array]`,Ir=`[object Uint32Array]`,Lr=`[object BigUint64Array]`,Rr=`[object Int8Array]`,zr=`[object Int16Array]`,Br=`[object Int32Array]`,Vr=`[object BigInt64Array]`,Hr=`[object Float32Array]`,Ur=`[object Float64Array]`;function Wr(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Gr(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Kr(e,t,n){return typeof n==`function`?qr(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?qr(t,r,e,s,!1):!!c},new Map,!0):Kr(e,t,()=>void 0)}function qr(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Jr(e,t,n,r,i);case`function`:return Object.keys(t).length>0?qr(e,Object.assign({},t),n,r,i):Wr(e,t);default:return Gr(e)&&i?typeof t!=`string`||t===``:Wr(e,t)}}function Jr(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Xr(e,t,n,r);if(t instanceof Map)return Yr(e,t,n,r);if(t instanceof Set)return Zr(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)gr(e)&&(e=Object(e));else{if(_r(t)===`[object Error]`)return _r(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=_r(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(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 Yr(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 Xr(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 Zr(e,t,n,r){return t.size===0||e instanceof Set&&Xr([...e],[...t],n,r)}function Qr(e,t){return Kr(e,t,()=>void 0)}function $r(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var ei=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function ti(e){return ei.Buffer!==void 0&&ei.Buffer.isBuffer(e)}function ni(e){return ti(e)}function ri(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ii(e){return ri(e)}function ai(e,t){return oi(e,void 0,e,new Map,t)}function oi(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(gr(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]=oi(e[a],a,n,r,i);return et(e,`index`)&&(t.index=e.index),et(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;return r.set(e,t),e.forEach((e,a)=>{t.set(a,oi(e,a,n,r,i))}),t}if(e instanceof Set){let t=new Set;return r.set(e,t),e.forEach(e=>{t.add(oi(e,void 0,n,r,i))}),t}if(ni(e))return e.subarray();if(ii(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=oi(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),si(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),si(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),si(t,e,n,r,i),t}let a=_r(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case br:case yr:case xr:{let t=new e.constructor(e.valueOf());return r.set(e,t),si(t,e,n,r,i),t}case Sr:{let t={};return r.set(e,t),si(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&ci(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),si(t,e,n,r,i),t}return e}function si(e,t,n,r,i){let a=[...Object.keys(t),...$r(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=oi(t[s],s,n,r,i))}}function ci(e){switch(e){case Sr:case Dr:case kr:case Mr:case xr:case wr:case Hr:case Ur:case Rr:case zr:case Br:case Tr:case br:case Ar:case vr:case Er:case yr:case Cr:case Nr:case Pr:case Fr:case Ir:return!0;default:return!1}}function li(e){return ai(e)}function ui(e){return e=li(e),t=>Qr(t,e)}var di=/^(?:0|[1-9]\d*)$/;function fi(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 di.test(e)}}function pi(e){return typeof e==`object`&&!!e&&_r(e)===`[object Arguments]`}function mi(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&nt(t)&&!(t in Object(e))?st(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=rt(n[e]);if((r==null||!et(r,t))&&!((Array.isArray(r)||pi(r))&&fi(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function hi(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=rt(e)}return t=li(t),function(n){let r=ct(n,e);return r===void 0?mi(n,e):t===void 0?r===void 0:Qr(r,t)}}function gi(e){if(e==null)return fr;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?hi(e[0],e[1]):ui(e);default:return hr(e)}}function _i(e){return e===0?0:e}function vi(e,t=fr){return mr(e)?ur(Array.from(e),dr(gi(t),1)).map(_i):[]}function yi(e,t,n){return t===!0?vi(e,n):typeof t==`function`?vi(e,t):e}var bi=w((e=>{var t=c();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),xi=w(((e,t)=>{t.exports=bi()})),Si=w((e=>{var t=c(),n=xi();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),c!==void 0&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return c!==void 0&&c(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,c]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ci=w(((e,t)=>{t.exports=Si()})),wi=Ci(),Ti=(0,P.createContext)(null),Ei=e=>e,z=()=>{var e=(0,P.useContext)(Ti);return e?e.store.dispatch:Ei},Di=()=>{},Oi=()=>Di,ki=(e,t)=>e===t;function B(e){var t=(0,P.useContext)(Ti),n=(0,P.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Di,[t,e]);return(0,wi.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Oi,t?t.store.getState:Di,t?t.store.getState:Di,n,ki)}function Ai(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function ji(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 Mi=e=>Array.isArray(e)?e:[e];function Ni(e){let t=Array.isArray(e[0])?e[0]:e;return ji(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Pi(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Fi=class{constructor(e){this.value=e}deref(){return this.value}},Ii=typeof WeakRef>`u`?Fi:WeakRef,Li=0,Ri=1;function zi(){return{s:Li,v:void 0,o:null,p:null}}function Bi(e){return e instanceof Ii?e.deref():e}function Vi(e,t={}){let n=zi(),{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=zi(),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=zi(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Ri)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Bi(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Ii(c):c}return s.s=Ri,s.v=c,c}return o.clearCache=()=>{n=zi(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Hi(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()),Ai(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Vi,argsMemoizeOptions:u=[]}={...n,...a},d=Mi(c),f=Mi(u),p=Ni(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Pi(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 V=Hi(Vi);function Ui(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 Wi(e,t,n){return Gr(n)&&(typeof t==`number`&&mr(n)&&fi(t)&&t<n.length||typeof t==`string`&&t in n)?Wr(n[t],e):!1}function Gi(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function Ki(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var qi=(e,t,n)=>{if(e!==t){let r=Ki(e),i=Ki(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},Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yi=/^\w*$/;function Xi(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||it(e)?!0:typeof e==`string`&&(Yi.test(e)||!Ji.test(e))||t!=null&&et(t,e)}function Zi(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=mr(e)?Array.from(e):Gi(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,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?et(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Xi(e)?e:{key:e,path:st(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=qi(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Qi(e,...t){let n=t.length;return n>1&&Wi(e,t[0],t[1])?t=[]:n>2&&Wi(t[0],t[1],t[2])&&(t=[t[0]]),Zi(e,Ui(t),[`asc`])}var $i=e=>e.legend.settings,ea=e=>e.legend.size;V([e=>e.legend.payload,$i],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Qi(r,n):r});function ta(e,t){return oa(e)||aa(e,t)||ra(e,t)||na()}function na(){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 ra(e,t){if(e){if(typeof e==`string`)return ia(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)?ia(e,t):void 0}}function ia(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 aa(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 oa(e){if(Array.isArray(e))return e}var sa=1;function ca(e,t){return Math.abs(e.height-t.height)>sa||Math.abs(e.left-t.left)>sa||Math.abs(e.top-t.top)>sa||Math.abs(e.width-t.width)>sa}function la(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function ua(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=ta((0,P.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,P.useRef)(null),a=(0,P.useRef)(n);a.current=n;var o=(0,P.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=la(e);if(ca(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=la(e);ca(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,P.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function da(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 fa=typeof Symbol==`function`&&Symbol.observable||`@@observable`,pa=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ma={INIT:`@@redux/INIT${pa()}`,REPLACE:`@@redux/REPLACE${pa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pa()}`};function ha(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 ga(e,t,n){if(typeof e!=`function`)throw Error(da(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(da(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(da(1));return n(ga)(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(da(3));return i}function d(e){if(typeof e!=`function`)throw Error(da(4));if(c)throw Error(da(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(da(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ha(e))throw Error(da(7));if(e.type===void 0)throw Error(da(8));if(typeof e.type!=`string`)throw Error(da(17));if(c)throw Error(da(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(da(10));r=e,f({type:ma.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(da(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[fa](){return this}}}return f({type:ma.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[fa]:m}}function _a(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:ma.INIT})===void 0)throw Error(da(12));if(n(void 0,{type:ma.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(da(13))})}function va(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{_a(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(da(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function ya(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ba(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(da(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ya(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function xa(e){return ha(e)&&`type`in e&&typeof e.type==`string`}var Sa=Symbol.for(`immer-nothing`),Ca=Symbol.for(`immer-draftable`),wa=Symbol.for(`immer-state`);function Ta(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ea=Object,Da=Ea.getPrototypeOf,Oa=`constructor`,ka=`prototype`,Aa=`configurable`,ja=`enumerable`,Ma=`writable`,Na=`value`,Pa=e=>!!e&&!!e[wa];function Fa(e){return e?Ra(e)||Ga(e)||!!e[Ca]||!!e[Oa]?.[Ca]||Ka(e)||qa(e):!1}var Ia=Ea[ka][Oa].toString(),La=new WeakMap;function Ra(e){if(!e||!Ja(e))return!1;let t=Da(e);if(t===null||t===Ea[ka])return!0;let n=Ea.hasOwnProperty.call(t,Oa)&&t[Oa];if(n===Object)return!0;if(!Ya(n))return!1;let r=La.get(n);return r===void 0&&(r=Function.toString.call(n),La.set(n,r)),r===Ia}function za(e,t,n=!0){Ba(e)===0?(n?Reflect.ownKeys(e):Ea.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ba(e){let t=e[wa];return t?t.type_:Ga(e)?1:Ka(e)?2:qa(e)?3:0}var Va=(e,t,n=Ba(e))=>n===2?e.has(t):Ea[ka].hasOwnProperty.call(e,t),Ha=(e,t,n=Ba(e))=>n===2?e.get(t):e[t],Ua=(e,t,n,r=Ba(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Wa(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ga=Array.isArray,Ka=e=>e instanceof Map,qa=e=>e instanceof Set,Ja=e=>typeof e==`object`,Ya=e=>typeof e==`function`,Xa=e=>typeof e==`boolean`;function Za(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Qa=e=>e.copy_||e.base_,$a=e=>e.modified_?e.copy_:e.base_;function eo(e,t){if(Ka(e))return new Map(e);if(qa(e))return new Set(e);if(Ga(e))return Array[ka].slice.call(e);let n=Ra(e);if(t===!0||t===`class_only`&&!n){let t=Ea.getOwnPropertyDescriptors(e);delete t[wa];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ma]===!1&&(a[Ma]=!0,a[Aa]=!0),(a.get||a.set)&&(t[i]={[Aa]:!0,[Ma]:!0,[ja]:a[ja],[Na]:e[i]})}return Ea.create(Da(e),t)}{let t=Da(e);if(t!==null&&n)return{...e};let r=Ea.create(t);return Ea.assign(r,e)}}function to(e,t=!1){return io(e)||Pa(e)||!Fa(e)||(Ba(e)>1&&Ea.defineProperties(e,{set:ro,add:ro,clear:ro,delete:ro}),Ea.freeze(e),t&&za(e,(e,t)=>{to(t,!0)},!1)),e}function no(){Ta(2)}var ro={[Na]:no};function io(e){return e===null||!Ja(e)||Ea.isFrozen(e)}var ao=`MapSet`,oo=`Patches`,so=`ArrayMethods`,co={};function lo(e){let t=co[e];return t||Ta(0,e),t}var uo=e=>!!co[e],fo,po=()=>fo,mo=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:uo(ao)?lo(ao):void 0,arrayMethodsPlugin_:uo(so)?lo(so):void 0});function ho(e,t){t&&(e.patchPlugin_=lo(oo),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function go(e){_o(e),e.drafts_.forEach(yo),e.drafts_=null}function _o(e){e===fo&&(fo=e.parent_)}var vo=e=>fo=mo(fo,e);function yo(e){let t=e[wa];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bo(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[wa].modified_&&(go(t),Ta(4)),Fa(e)&&(e=xo(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[wa].base_,e,t)}else e=xo(t,n);return So(t,e,!0),go(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Sa?void 0:e}function xo(e,t){if(io(t))return t;let n=t[wa];if(!n)return Ao(t,e.handledSet_,e);if(!wo(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);Oo(n,e)}return n.copy_}function So(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&to(t,n)}function Co(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wo=(e,t)=>e.scope_===t,To=[];function Eo(e,t,n,r){let i=Qa(e),a=e.type_;if(r!==void 0&&Ha(i,r,a)===t){Ua(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;za(i,(e,n)=>{if(Pa(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??To;for(let e of o)Ua(i,e,n,a)}function Do(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!wo(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=$a(i);Eo(e,i.draft_??i,a,n),Oo(i,r)})}function Oo(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)}Co(e)}}function ko(e,t,n){let{scope_:r}=e;if(Pa(n)){let i=n[wa];wo(i,r)&&i.callbacks_.push(function(){zo(e),Eo(e,n,$a(i),t)})}else Fa(n)&&e.callbacks_.push(function(){let i=Qa(e);e.type_===3?i.has(n)&&Ao(n,r.handledSet_,r):Ha(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ao(Ha(e.copy_,t,e.type_),r.handledSet_,r)})}function Ao(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Pa(e)||t.has(e)||!Fa(e)||io(e)||(t.add(e),za(e,(r,i)=>{if(Pa(i)){let t=i[wa];wo(t,n)&&(Ua(e,r,$a(t),e.type_),Co(t))}else Fa(i)&&Ao(i,t,n)})),e}function jo(e,t){let n=Ga(e),r={type_:+!!n,scope_:t?t.scope_:po(),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=Mo;n&&(i=[r],a=No);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Mo={get(e,t){if(t===wa)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=Qa(e);if(!Va(i,t,e.type_))return Io(e,i,t);let a=i[t];if(e.finalized_||!Fa(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Za(t))return a;if(a===Po(e.base_,t)||Fo(e,t,a)){zo(e);let n=e.type_===1?+t:t,r=Vo(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Qa(e)},ownKeys(e){return Reflect.ownKeys(Qa(e))},set(e,t,n){let r=Lo(Qa(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Po(Qa(e),t),i=r?.[wa];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Wa(n,r)&&(n!==void 0||Va(e.base_,t,e.type_)))return!0;zo(e),Ro(e)}return e.copy_[t]===n&&(n!==void 0||Va(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),ko(e,t,n)),!0},deleteProperty(e,t){return zo(e),Po(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ro(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Qa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ma]:!0,[Aa]:e.type_!==1||t!==`length`,[ja]:r[ja],[Na]:n[t]}},defineProperty(){Ta(11)},getPrototypeOf(e){return Da(e.base_)},setPrototypeOf(){Ta(12)}},No={};for(let e in Mo){let t=Mo[e];No[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}No.deleteProperty=function(e,t){return No.set.call(this,e,t,void 0)},No.set=function(e,t,n){return Mo.set.call(this,e[0],t,n,e[0])};function Po(e,t){let n=e[wa];return(n?Qa(n):e)[t]}function Fo(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||!Fa(n)||n[wa]?!1:e.baseRefs_.has(n)}function Io(e,t,n){let r=Lo(t,n);return r?Na in r?r[Na]:r.get?.call(e.draft_):void 0}function Lo(e,t){if(!(t in e))return;let n=Da(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Da(n)}}function Ro(e){e.modified_||(e.modified_=!0,e.parent_&&Ro(e.parent_))}function zo(e){e.copy_||=(e.assigned_=new Map,eo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Bo=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ya(e)&&!Ya(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ya(t)||Ta(6),n!==void 0&&!Ya(n)&&Ta(7);let r;if(Fa(e)){let i=vo(this),a=Vo(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?go(i):_o(i)}return ho(i,n),bo(r,i)}if(!e||!Ja(e)){if(r=t(e),r===void 0&&(r=e),r===Sa&&(r=void 0),this.autoFreeze_&&to(r,!0),n){let t=[],i=[];lo(oo).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Ta(1,e)},this.produceWithPatches=(e,t)=>{if(Ya(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]},Xa(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze);let t=e?.useStrictShallowCopy;(Xa(t)||t===`class_only`)&&this.setUseStrictShallowCopy(t),Xa(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Fa(e)||Ta(8),Pa(e)&&(e=Ho(e));let t=vo(this),n=Vo(t,e,void 0);return n[wa].isManual_=!0,_o(t),n}finishDraft(e,t){let n=e&&e[wa];n&&n.isManual_||Ta(9);let{scope_:r}=n;return ho(r,t),bo(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=lo(oo).applyPatches_;return Pa(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Vo(e,t,n,r){let[i,a]=Ka(t)?lo(ao).proxyMap_(t,n):qa(t)?lo(ao).proxySet_(t,n):jo(t,n);return(n?.scope_??po()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Do(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 Ho(e){return Pa(e)||Ta(10,e),Uo(e)}function Uo(e){if(!Fa(e)||io(e))return e;let t=e[wa],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eo(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=eo(e,!0);let i=n;return qa(n)&&(n=new Set),za(i,(e,t)=>{Ua(n,e,Uo(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var Wo=new Bo().produce,H=e=>e;function Go(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Ko=Go(),qo=Go,Jo=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?ya:ya.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Yo(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(rc(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=>t!=null&&t.type===e&&xa(t),n}var Xo=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 Zo(e){return Fa(e)?Wo(e,()=>{}):e}function Qo(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function $o(e){return typeof e==`boolean`}var es=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Xo;return t&&($o(t)?a.push(Ko):a.push(qo(t.extraArgument))),a},ts=`RTK_autoBatch`,U=()=>e=>({payload:e,meta:{[ts]:!0}}),ns=e=>t=>{setTimeout(t,e)},rs=(e,t,n)=>r=>{let i=!1,a,o,s=()=>{i||(i=!0,t?.(a),clearTimeout(o),r())};a=e(s),o=setTimeout(s,n)},is=(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?rs(window.requestAnimationFrame,window.cancelAnimationFrame,100):ns(10):e.type===`callback`?e.queueNotification:ns(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?.[ts],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},as=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Xo(e);return n&&r.push(is(typeof n==`object`?n:void 0)),r};function os(e){let t=es(),{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(ha(n))c=va(n);else throw Error(rc(1));let l;l=typeof r==`function`?r(t):t();let u=ya;i&&(u=Jo({trace:!1,...typeof i==`object`&&i}));let d=as(ba(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return ga(c,o,p)}function ss(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(rc(28));if(r in t)throw Error(rc(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 cs(e){return typeof e==`function`}function ls(e,t){let[n,r,i]=ss(t),a;if(cs(e))a=()=>Zo(e());else{let t=Zo(e);a=()=>t}function o(e,t,n){if(Pa(e)){let r=t(e,n);return r===void 0?e:r}if(Fa(e))return Wo(e,e=>t(e,n));{let r=t(e,n);if(r===void 0){if(e===null)return e;throw Error(rc(9))}return r}}function s(e=a(),t){let s=n[t.type],c;for(let{matcher:e,reducer:n}of r)e(t)&&n&&(c??=[]).push(n);if(!s&&!c)return i?o(e,i,t):e;if(s&&(e=o(e,s,t)),c)for(let n of c)e=o(e,n,t);return e}return s.getInitialState=a,s}var us=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,ds=(e=21)=>{let t=``,n=e;for(;n--;)t+=us[Math.random()*64|0];return t},fs=Symbol.for(`rtk-slice-createasyncthunk`);function ps(e,t){return`${e}/${t}`}function ms({creators:e}={}){let t=e?.asyncThunk?.[fs];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(rc(11));let i=(typeof e.reducers==`function`?e.reducers(_s()):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(rc(12));if(n in o.sliceCaseReducersByType)throw Error(rc(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:ps(n,r),createNotation:typeof e.reducers==`function`};ys(a)?xs(o,a,s,t):vs(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?ss(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ls(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=Qo(d,r,m)),i}function i(t=l){return Qo(Qo(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=hs(a,t,()=>Qo(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 hs(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 gs=ms();function _s(){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 vs({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!bs(r))throw Error(rc(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Yo(e,o):Yo(e))}function ys(e){return e._reducerDefinitionType===`asyncThunk`}function bs(e){return e._reducerDefinitionType===`reducerWithPrepare`}function xs({type:e,reducerName:t},n,r,i){if(!i)throw Error(rc(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||Ss,pending:s||Ss,rejected:c||Ss,settled:l||Ss})}function Ss(){}var Cs=`task`,ws=`listener`,Ts=`completed`,Es=`cancelled`,Ds=`task-${Es}`,Os=`task-${Ts}`,ks=`${ws}-${Es}`,As=`${ws}-${Ts}`,js=class{code;name=`TaskAbortError`;message;constructor(e){this.code=e,this.message=`${Cs} ${Es} (reason: ${e})`}},Ms=(e,t)=>{if(typeof e!=`function`)throw TypeError(rc(32))},Ns=()=>{},Ps=(e,t=Ns)=>(e.catch(t),e),Fs=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Is=e=>{if(e.aborted)throw new js(e.reason)};function Ls(e,t){let n=Ns;return new Promise((r,i)=>{let a=()=>i(new js(e.reason));e.aborted?a():(n=Fs(e,a),t.finally(()=>n()).then(r,i))}).finally(()=>{n=Ns})}var Rs=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof js?`cancelled`:`rejected`,error:e}}finally{t?.()}},zs=e=>t=>Ps(Ls(e,t).then(t=>(Is(e),t))),Bs=e=>{let t=zs(e);return e=>{let n;return Ps(t(new Promise(t=>{n=setTimeout(t,e)})).finally(()=>clearTimeout(n)))}},{assign:Vs}=Object,Hs={},Us=`listenerMiddleware`,Ws=(e,t)=>{let n=t=>Fs(e,()=>t.abort(e.reason));return(r,i)=>{Ms(r,`taskExecutor`);let a=new AbortController;n(a);let o=Rs(async()=>{Is(e),Is(a.signal);let t=await r({pause:zs(a.signal),delay:Bs(a.signal),signal:a.signal});return Is(a.signal),t},()=>a.abort(Os));return i?.autoJoin&&t.push(o.catch(Ns)),{result:zs(e)(o),cancel(){a.abort(Ds)}}}},Gs=(e,t)=>{let n=async(n,r)=>{Is(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()}})],o;r!=null&&a.push(new Promise(e=>{o=setTimeout(e,r,null)}));try{let e=await Ls(t,Promise.race(a));return Is(t),e}finally{clearTimeout(o),i()}};return((e,t)=>Ps(n(e,t)))},Ks=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Yo(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(rc(21));return Ms(a,`options.listener`),{predicate:i,type:t,effect:a}},qs=Vs(e=>{let{type:t,predicate:n,effect:r}=Ks(e);return{id:ds(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(rc(22))}}},{withTypes:()=>qs}),Js=(e,t)=>{let{type:n,effect:r,predicate:i}=Ks(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ys=e=>{e.pending.forEach(e=>{e.abort(ks)})},Xs=(e,t)=>()=>{for(let e of t.keys())Ys(e);e.clear()},Zs=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Qs=Vs(Yo(`${Us}/add`),{withTypes:()=>Qs}),$s=Yo(`${Us}/removeAll`),ec=Vs(Yo(`${Us}/remove`),{withTypes:()=>ec}),tc=(...e)=>{console.error(`${Us}/error`,...e)},nc=(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=tc}=e;Ms(o,`onError`);let s,c=()=>{if(!s){let e=Array.from(t.values()),n=new Set,r=!1;for(let t of e)typeof t.type==`string`?n.add(t.type):r=!0;s={entries:e,types:n,anyType:r}}return s},l=e=>{t.has(e.id)||(t.set(e.id,e),s=void 0)},u=e=>(e.unsubscribe=()=>{t.delete(e.id)&&(s=void 0)},l(e),t=>{e.unsubscribe(),t?.cancelActive&&Ys(e)}),d=(e=>{let n=Js(t,e)??qs(e);return u(n)});Vs(d,{withTypes:()=>d});let f=e=>{let n=Js(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ys(n)),!!n};Vs(f,{withTypes:()=>f});let p=async(e,t,n,s)=>{let c=new AbortController,u=Gs(d,c.signal),f=[];try{e.pending.add(c),r(e),await Promise.resolve(e.effect(t,Vs({},n,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:Bs(c.signal),pause:zs(c.signal),extra:a,signal:c.signal,fork:Ws(c.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{l(e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(e.abort(ks),n.delete(e))})},cancel:()=>{c.abort(ks),e.pending.delete(c)},throwIfCancelled:()=>{Is(c.signal)}})))}catch(e){e instanceof js||Zs(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),c.abort(As),i(e),e.pending.delete(c)}},m=Xs(t,n),h=()=>{m(),s=void 0};return{middleware:e=>t=>n=>{if(!xa(n))return t(n);if(Qs.match(n))return d(n.payload);if($s.match(n)){h();return}if(ec.match(n))return f(n.payload);let r=e.getState(),i=()=>{if(r===Hs)throw Error(rc(23));return r},a;try{a=t(n);let{entries:s,types:l,anyType:u}=c();if(u||l.has(n.type)){let t=e.getState();for(let a of s){if(typeof a.type==`string`&&a.type!==n.type)continue;let s=!1;try{s=a.predicate(n,t,r)}catch(e){s=!1,Zs(o,e,{raisedBy:`predicate`})}s&&p(a,n,e,i)}}}finally{r=Hs}return a},startListening:d,stopListening:f,clearListeners:h}};function rc(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 ic=gs({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}}}),ac=ic.actions,oc=ac.setMargin,sc=ac.setLayout,cc=ac.setChartSize,lc=ac.setScale,uc=ic.reducer;function dc(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function W(e){return Number.isFinite(e)}function fc(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pc(Object(n),!0).forEach(function(t){hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hc(e,t,n){return(t=gc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gc(e){var t=_c(e,`string`);return typeof t==`symbol`?t:t+``}function _c(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 G(e,t,n){return L(e)||L(t)?n:gt(t)?ct(e,t,n):typeof t==`function`?t(e):n}var vc=(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(Nt(c)){if(c===`top`&&F(e.top))return mc(mc({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&F(e.bottom))return mc(mc({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&F(e.left))return mc(mc({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&F(e.right))return mc(mc({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&F(e[a]))return mc(mc({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&F(e[o]))return mc(mc({},e),{},{[o]:e[o]+(i||0)})}return e},yc=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,bc=(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},xc=(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?pt(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 W(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Ct):c&&l?l.map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ct):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Ct):o.domain().map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Ct)},Sc=(e,t)=>{if(!t||t.length!==2||!F(t[0])||!F(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(!F(e[0])||e[0]<n)&&(i[0]=n),(!F(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Cc={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=mt(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Zn,none:Kn,silhouette:Qn,wiggle:$n,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=mt(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},wc=(e,t,n)=>{var r=Cc[n]??Kn,i=Xn().keys(t).value((e,t)=>Number(G(e,t,0))).order(qn).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=G(e[i],t[r],0);Array.isArray(a)&&a.length===2&&F(a[0])&&F(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function Tc(e){return e==null?void 0:String(e)}function Ec(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&&!L(i[t.dataKey])){var s=xt(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=G(i,L(o)?t.dataKey:o),l=t.scale.map(c);return F(l)?l:null}var Dc=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=G(a,t.dataKey,t.scale.domain()[o]);if(L(s))return null;var c=t.scale.map(s);return F(c)?c-i/2+r:null},Oc=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]},kc=e=>{var t=e.flat(2).filter(F);return[Math.min(...t),Math.max(...t)]},Ac=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],jc=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return Ac(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=kc(dc(r,t,n));return!W(i[0])||!W(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]))},Mc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Pc=(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=Qi(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 Fc(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return mc(mc({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ic(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Lc=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Rc=(e,t)=>t===`centric`?e.angle:e.radius,zc=e=>e.layout.width,Bc=e=>e.layout.height,Vc=e=>e.layout.scale,Hc=e=>e.layout.margin,Uc=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Wc=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Gc=`data-recharts-item-index`;function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kc(Object(n),!0).forEach(function(t){Jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jc(e,t,n){return(t=Yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e){var t=Xc(e,`string`);return typeof t==`symbol`?t:t+``}function Xc(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 Zc=e=>e.brush.height;function Qc(e){return Wc(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function $c(e){return Wc(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function el(e){return Uc(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function tl(e){return Uc(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var nl=V([zc,Bc,Hc,Zc,Qc,$c,el,tl,$i,ea],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=qc(qc({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=vc(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return qc(qc({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),rl=V(nl,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),il=V(zc,Bc,(e,t)=>({x:0,y:0,width:e,height:t})),al=(0,P.createContext)(null),ol=()=>(0,P.useContext)(al)!=null,sl=e=>{var t=e.children;return P.createElement(al.Provider,{value:!0},t)},cl=e=>e.brush,ll=V([cl,nl,Hc],(e,t,n)=>({height:e.height,x:F(e.x)?e.x:t.left,y:F(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:F(e.width)?e.width:t.width}));function ul(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 dl(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=ul(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)?((r||i)&&(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 fl(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return dl(e,t,{leading:r,maxWait:t,trailing:i})}var pl=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++]))}}},ml={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},hl=(e,t,n)=>{var r=n.width,i=r===void 0?ml.width:r,a=n.height,o=a===void 0?ml.height:a,s=n.aspect,c=n.maxHeight,l=ht(i)?e:Number(i),u=ht(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}},gl={width:0,height:0,overflow:`visible`},_l={width:0,overflowX:`visible`},vl={height:0,overflowY:`visible`},yl={},bl=e=>{var t=e.width,n=e.height,r=ht(t),i=ht(n);return r&&i?gl:r?_l:i?vl:yl};function xl(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=ml.width,a=ml.height):i===void 0?i=r&&r>0?void 0:ml.width:a===void 0&&(a=r&&r>0?void 0:ml.height),{width:i,height:a}}var Sl=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function Cl(){return Cl=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},Cl.apply(null,arguments)}function wl(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 Tl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wl(Object(n),!0).forEach(function(t){El(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function El(e,t,n){return(t=Dl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dl(e){var t=Ol(e,`string`);return typeof t==`symbol`?t:t+``}function Ol(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 kl(e,t){return Pl(e)||Nl(e,t)||jl(e,t)||Al()}function Al(){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 jl(e,t){if(e){if(typeof e==`string`)return Ml(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)?Ml(e,t):void 0}}function Ml(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 Nl(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 Pl(e){if(Array.isArray(e))return e}function Fl(e,t){if(e==null)return{};var n,r,i=Il(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 Il(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 Ll=(0,P.createContext)(ml.initialDimension);function Rl(e){return fc(e.width)&&fc(e.height)}function zl(e){var t=e.children,n=e.width,r=e.height,i=(0,P.useMemo)(()=>({width:n,height:r}),[n,r]);return Rl(i)?P.createElement(Ll.Provider,{value:i},t):null}var Bl=()=>(0,P.useContext)(Ll),Vl=(0,P.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?ml.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?ml.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,f=e.debounce,p=f===void 0?ml.debounce:f,m=e.id,h=e.className,g=e.onResize,v=e.style,y=v===void 0?{}:v,b=Fl(e,Sl),x=(0,P.useRef)(null),S=(0,P.useRef)();S.current=g,(0,P.useImperativeHandle)(t,()=>x.current);var C=kl((0,P.useState)({containerWidth:i.width,containerHeight:i.height}),2),w=C[0],T=C[1],E=(0,P.useCallback)((e,t)=>{T(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,P.useEffect)(()=>{if(x.current==null||typeof ResizeObserver>`u`)return wt;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;E(i,a),(t=S.current)==null||t.call(S,i,a)}};p>0&&(e=fl(e,p,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=x.current.getBoundingClientRect(),r=n.width,i=n.height;return E(r,i),t.observe(x.current),()=>{t.disconnect()}},[E,p]);var D=w.containerWidth,O=w.containerHeight;pl(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var k=hl(D,O,{width:a,height:o,aspect:n,maxHeight:u}),A=k.calculatedWidth,j=k.calculatedHeight;return pl(D<0||O<0||A!=null&&A>0||j!=null&&j>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 +1 @@
1
- {"version":"0.7.3","revision":"1fa7cf04a23ab6ceb361310ffd417d7425604dc0"}
1
+ {"version":"0.9.0","revision":"0b45aa284bdc8ef617e543c686d1df03cddd980c"}
@@ -12,14 +12,14 @@
12
12
  <title>Shapewall</title>
13
13
  <!-- Saved light/dark mode and theme, before the first paint (see src/lib/theme.js). -->
14
14
  <script src="/_console/theme-boot.js"></script>
15
- <script type="module" crossorigin src="/_console/assets/console-BDuWmrw9.js"></script>
16
- <link rel="modulepreload" crossorigin href="/_console/assets/ui-DnyJhoQU.js">
17
- <link rel="modulepreload" crossorigin href="/_console/assets/theme-CPfJOmcz.js">
18
- <link rel="modulepreload" crossorigin href="/_console/assets/app-version-IdaEWb4n.js">
19
- <link rel="modulepreload" crossorigin href="/_console/assets/local-agents-BkSN9lXJ.js">
20
- <link rel="modulepreload" crossorigin href="/_console/assets/minus-887msXez.js">
21
- <link rel="modulepreload" crossorigin href="/_console/assets/tailnet-DJGcztR5.js">
22
- <link rel="stylesheet" crossorigin href="/_console/assets/console-BGRSS8Ru.css">
15
+ <script type="module" crossorigin src="/_console/assets/console-BD5_Gha1.js"></script>
16
+ <link rel="modulepreload" crossorigin href="/_console/assets/ui-HgfwUo3E.js">
17
+ <link rel="modulepreload" crossorigin href="/_console/assets/theme-CB-cwoG6.js">
18
+ <link rel="modulepreload" crossorigin href="/_console/assets/app-version-BiMzvHaD.js">
19
+ <link rel="modulepreload" crossorigin href="/_console/assets/local-agents-UprGVyLj.js">
20
+ <link rel="modulepreload" crossorigin href="/_console/assets/minus-Cnq0kKnu.js">
21
+ <link rel="modulepreload" crossorigin href="/_console/assets/tailnet-Cqtbptzq.js">
22
+ <link rel="stylesheet" crossorigin href="/_console/assets/console-PWt8SxrJ.css">
23
23
  </head>
24
24
  <body>
25
25
  <div id="root"></div>
package/docs/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Shapewall guides
2
+
3
+ Every file in this folder is listed below. Most of them are the text the website shows: [shapewall.com/docs](https://shapewall.com/docs)
4
+ reads them from here, so there is one source and no second copy to keep in step. The groups below are that sidebar's groups. The last
5
+ two are for people changing the code and are not on the website.
6
+
7
+ Five guides exist only on the website, because they are written for the site rather than for the repository:
8
+
9
+ - [Getting started](https://shapewall.com/docs/getting-started): install, write a config, capture, open the board.
10
+ - [CLI reference](https://shapewall.com/docs/cli): every command and flag. The same help text is in this repository's
11
+ [README](../README.md#cli), so a reader who never leaves the repository is not stuck.
12
+ - [FAQ](https://shapewall.com/docs/faq): single-page apps, signed-in pages, where the data lives, teams, licenses.
13
+ - [Security model](https://shapewall.com/docs/security): why captured HTML can never run code.
14
+ - [Before, after and staging](https://shapewall.com/docs/compare): resolved comments before and after, variants, staging against
15
+ production.
16
+
17
+ ## Start here
18
+
19
+ [config.md](config.md) is the only guide of this group that lives here: every key in `shapewall.config.json`, from pages and viewports
20
+ to actions, setup, signed-in pages, boards, CI and the environment variables. Getting started and the CLI reference are on the website,
21
+ above.
22
+
23
+ ## Workflows
24
+
25
+ | Guide | What it covers |
26
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
27
+ | [agent-workflow.md](agent-workflow.md) | The three ways to hand comments to a coding agent: JSON, `shapewall watch`, the MCP server. |
28
+ | [agent-recipes.md](agent-recipes.md) | Copy-paste commands for Claude Code, Codex, goose, Ollama and chat bots. |
29
+ | [agents.md](agents.md) | The board's chat panel: connect a model or an agent CLI, work on a branch, images and voice. |
30
+ | [starter-agent.md](starter-agent.md) | `shapewall agent`: one comment at a time in a container, with a trigger gate, budgets and a branch. |
31
+ | [journeys.md](journeys.md) | Link arrows drawn from the real links between pages, and named paths you step through. |
32
+ | [pull-requests.md](pull-requests.md) | Capture every page on each pull request and keep one comment up to date with what changed. |
33
+ | [page-checks.md](page-checks.md) | `shapewall checks`: reliability, SEO and social images against the original site, and the panel. |
34
+ | [performance.md](performance.md) | `shapewall audit`: local Lighthouse runs, measurement profiles, budgets and report history. |
35
+ | [interaction-audits.md](interaction-audits.md) | `shapewall checks flow` and `checks accessibility`: the flow file, supported actions, axe snapshots. |
36
+
37
+ ## Run it
38
+
39
+ | Guide | What it covers |
40
+ | ------------------------------------------ | -------------------------------------------------------------------------------------------------- |
41
+ | [where-to-run.md](where-to-run.md) | Local board or hosted server: who can reach each, and where the work happens. |
42
+ | [deployment.md](deployment.md) | Run the board, share it behind an authenticating proxy, export a static copy, capture on CI. |
43
+ | [capture-warnings.md](capture-warnings.md) | Reading the network summary beside a screenshot, and the pacing settings that slow a capture down. |
44
+ | [local-accounts.md](local-accounts.md) | The optional local owner account: passkeys, recovery codes, sessions, profile images. |
45
+ | [updates.md](updates.md) | Which version is running, updating a clone or a project install, the optional update helper. |
46
+ | [hosted.md](hosted.md) | Operating a team server: accounts, workspaces, roles, quotas, retention, backups, restore. |
47
+ | [agent-hardening.md](agent-hardening.md) | Prompt injection through comments, the built-in defenses, least privilege, a sandbox checklist. |
48
+
49
+ ## Integrations
50
+
51
+ | Guide | What it covers |
52
+ | ------------------------------------ | ---------------------------------------------------------------------------------- |
53
+ | [github.md](github.md) | A comment as a GitHub issue, the pull requests that fix it, resolving on merge. |
54
+ | [notifications.md](notifications.md) | Comment events to a signed webhook, Slack, Discord or email, with mentions routed. |
55
+ | [buzz.md](buzz.md) | Optional bridge to coding agents that already sit in a self-hosted Buzz channel. |
56
+
57
+ ## Contributor docs (this repository only)
58
+
59
+ These two are not user guides and are not on the website. They describe how the code is put together, for anyone changing it.
60
+
61
+ | Guide | What it covers |
62
+ | ------------------------------------ | ------------------------------------------------------------------------------------------------------ |
63
+ | [architecture.md](architecture.md) | The three parts and the files they share: capture, live HTML and its limits, anchors, the board. |
64
+ | [design-system.md](design-system.md) | The board's UI kit in `client/src/components/ui/`: components, tokens and the rules for a new control. |
@@ -6,8 +6,8 @@ There is a printable one-page checklist at the end ([Checklist](#checklist)), an
6
6
 
7
7
  ## Who this is for
8
8
 
9
- You connect an agent to a board: the chat panel (an OpenAI-compatible endpoint or an agent CLI over ACP, [agents.md](agents.md)),
10
- `shapewall watch --exec`, `shapewall mcp`, or a script that reads `shapewall comments --json` ([agent-workflow.md](agent-workflow.md)).
9
+ You connect an agent to a board: the chat panel (an OpenAI-compatible endpoint or an agent CLI over ACP, [Chat with an agent](agents.md)),
10
+ `shapewall watch --exec`, `shapewall mcp`, or a script that reads `shapewall comments --json` ([The agent workflow](agent-workflow.md)).
11
11
 
12
12
  If the board is yours alone, on your machine, the risk is small and most of this guide is optional. It matters once **other people can
13
13
  write text the agent reads**: a board shared with your team, a hosted project with members, a share link with comments on, a public site
@@ -481,7 +481,7 @@ Keep the Shapewall token outside the agent's container: a process running as the
481
481
  The sandboxed starter agent (`shapewall agent run|watch|doctor`) is built for exactly this, and is the recommended way to put an agent
482
482
  on a shared board: a container with only a fresh checkout mounted, an egress allow list, model calls relayed through the host so the
483
483
  key never enters the container, fixed tools, per-command shell approval, budgets, a per-board list of members who may dispatch work,
484
- and output as a branch. `shapewall agent doctor` checks each wall on your machine. Setup and threat model: [starter-agent.md](starter-agent.md).
484
+ and output as a branch. `shapewall agent doctor` checks each wall on your machine. Setup and threat model: [Sandboxed starter agent](starter-agent.md).
485
485
 
486
486
  ## Keys and tokens
487
487
 
@@ -13,7 +13,7 @@ row that matches how you work, copy the commands, and change the project path.
13
13
 
14
14
  All of them read the same thing: open comments as JSON, with the page, the element (selector and text) and the screenshot the comment was
15
15
  made on. Comment text is **untrusted** (anyone who can comment wrote it): every recipe below tells the agent to treat it as a request
16
- about the UI, never as instructions, and gives the agent no more than it needs. See [agent-hardening.md](agent-hardening.md).
16
+ about the UI, never as instructions, and gives the agent no more than it needs. See [Agent hardening](agent-hardening.md).
17
17
 
18
18
  The commands assume `shapewall` is installed in the project (`npm install --save-dev shapewall`), so `npx shapewall`
19
19
  runs that copy, and that you are in the folder with `shapewall.config.json`.
@@ -176,7 +176,7 @@ npx shapewall agent run --comment 12 --model-timeout 300
176
176
  ```
177
177
 
178
178
  A local model can take minutes to load on the first call; `--model-timeout` (or `starterAgent.modelTimeoutSeconds`) gives it longer. The
179
- `capture` tool is offered only when the site is reachable from the sandbox. See [starter-agent.md](starter-agent.md).
179
+ `capture` tool is offered only when the site is reachable from the sandbox. See [Sandboxed starter agent](starter-agent.md).
180
180
 
181
181
  ## A chat-app bot
182
182
 
@@ -207,4 +207,4 @@ whatever the caller said; nothing attests them. Do not act on a name alone, and
207
207
  `starterAgent.trusted`**: everything the bot relays is a stranger's text, and `comments add --author review-bot` would make each of those
208
208
  comments dispatch the starter agent without a trusted person standing behind it. Leave relayed comments under the bot's name (or the
209
209
  default `agent`, which the starter agent never acts on) so they wait until a trusted member replies with `@agent`
210
- ([starter-agent.md](starter-agent.md)).
210
+ ([Sandboxed starter agent](starter-agent.md)).
@@ -1,6 +1,6 @@
1
1
  # Working with a coding agent
2
2
 
3
- Shapewall does not include a model (the board chat only talks to one you connect, see [agents.md](agents.md)). It produces feedback in a shape that any coding agent (or a person) can act on, keeps
3
+ Shapewall does not include a model (the board chat only talks to one you connect, see [Chat with an agent](agents.md)). It produces feedback in a shape that any coding agent (or a person) can act on, keeps
4
4
  track of which comments an agent has taken, and makes checking the result cheap. There are three ways to connect an agent, from simplest
5
5
  to most automatic:
6
6
 
@@ -133,7 +133,7 @@ is resolved: the board, `comments resolve`, the API or the MCP `resolve_comment`
133
133
 
134
134
  ### API
135
135
 
136
- The board server has the same operations (JSON bodies, see [deployment.md](deployment.md) for the write protections):
136
+ The board server has the same operations (JSON bodies, see [Deployment and self-hosting](deployment.md) for the write protections):
137
137
 
138
138
  | Route | Body | Returns |
139
139
  | ------------------------------------------------- | ---------------------------------------------------------- | ----------------------------- |
@@ -196,7 +196,9 @@ were `queued` or `working` when a previous watcher stopped are listed at start a
196
196
  one out again.
197
197
 
198
198
  - **Without `--exec`** each comment is printed as one line, `{"board":"site","comment":{...}}` with the item shape above, and stays
199
- `queued`. Progress goes to stderr, so stdout can be piped.
199
+ `queued`: printing it is handing it out. Nothing moves it on by itself, so whatever reads the lines sets the status
200
+ (`shapewall comments status ID working`, then `done` or `needs-human`, or `clear` to hand it out again); the watcher says so on
201
+ stderr when it starts. To read comments without taking them, use `--no-claim`. Progress goes to stderr, so stdout can be piped.
200
202
  - **With `--exec`** the comment is set `working`, the command runs in the config's folder, and afterwards the status becomes `done` (exit 0 after the command replied to the comment) or `needs-human` with a reply from `shapewall` (other exit codes, a timeout, the watch stopping, or a silent exit 0 with no reply and no status). With `--remote` and no `--pass-token` the command cannot reply, so there exit 0 alone means `done`. If the command set the status
201
203
  itself (say, `needs-human` with a question) or resolved the comment, that is kept. The command gets:
202
204
  - the item JSON on **stdin** (`{ board, comment }`), and the same in the file `$SHAPEWALL_COMMENT_FILE`;
@@ -303,7 +305,7 @@ in, or takes `--config FILE`. `--read-only` offers only the reading tools; `--no
303
305
 
304
306
  `journey` keeps comments on the pages of one journey (from the config or made on the board), on any of its branches, and their
305
307
  variants; an unknown journey is an error. `list_journeys` returns each journey's `steps` as written (a fork is
306
- `{ branches: [{ id, label, steps, end? }] }`, see [journeys.md](journeys.md#branches)), `pages` and `paths`, so an agent can check every
308
+ `{ branches: [{ id, label, steps, end? }] }`, see [Journeys and links](journeys.md#branches)), `pages` and `paths`, so an agent can check every
307
309
  branch of a flow after a change (`shapewall journeys --json` prints the same). The crop is up to 900 x 700 px with the pin as central as the edges allow. The server's instructions tell the agent the
308
310
  same loop as above and that comment text is untrusted.
309
311