railwatch 0.6.1 → 0.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/app/frontend/components/app-content.tsx +26 -0
- data/app/frontend/components/app-logo-icon.tsx +23 -0
- data/app/frontend/components/app-logo.tsx +14 -0
- data/app/frontend/components/app-shell.tsx +38 -0
- data/app/frontend/components/app-sidebar-header.tsx +54 -0
- data/app/frontend/components/app-sidebar.tsx +94 -0
- data/app/frontend/components/app-wordmark.tsx +29 -0
- data/app/frontend/components/breadcrumbs.tsx +46 -0
- data/app/frontend/components/icon.tsx +16 -0
- data/app/frontend/components/input-error.tsx +18 -0
- data/app/frontend/components/nav-footer.tsx +46 -0
- data/app/frontend/components/nav-main.tsx +41 -0
- data/app/frontend/components/nav-user.tsx +50 -0
- data/app/frontend/components/railwatch/chart-hover.tsx +34 -0
- data/app/frontend/components/railwatch/chart-panel.tsx +170 -0
- data/app/frontend/components/railwatch/code.tsx +28 -0
- data/app/frontend/components/railwatch/command-palette.tsx +132 -0
- data/app/frontend/components/railwatch/copy-block.tsx +52 -0
- data/app/frontend/components/railwatch/copy-id.tsx +49 -0
- data/app/frontend/components/railwatch/cursor-load-more.tsx +39 -0
- data/app/frontend/components/railwatch/data-table.tsx +195 -0
- data/app/frontend/components/railwatch/digit-roll.tsx +312 -0
- data/app/frontend/components/railwatch/empty-state.tsx +159 -0
- data/app/frontend/components/railwatch/env-nav.tsx +130 -0
- data/app/frontend/components/railwatch/env-switcher.tsx +145 -0
- data/app/frontend/components/railwatch/filter-bar.tsx +153 -0
- data/app/frontend/components/railwatch/flamegraph.tsx +324 -0
- data/app/frontend/components/railwatch/frames.tsx +295 -0
- data/app/frontend/components/railwatch/json-viewer.tsx +159 -0
- data/app/frontend/components/railwatch/live-dot.tsx +78 -0
- data/app/frontend/components/railwatch/live-toggle.tsx +76 -0
- data/app/frontend/components/railwatch/metric-chart.tsx +112 -0
- data/app/frontend/components/railwatch/mobile-page-switcher.tsx +89 -0
- data/app/frontend/components/railwatch/onboarding.tsx +91 -0
- data/app/frontend/components/railwatch/origin-identity.tsx +84 -0
- data/app/frontend/components/railwatch/page-header.tsx +42 -0
- data/app/frontend/components/railwatch/percentile-picker.tsx +18 -0
- data/app/frontend/components/railwatch/relative-time.tsx +18 -0
- data/app/frontend/components/railwatch/saved-views.tsx +232 -0
- data/app/frontend/components/railwatch/segmented.tsx +64 -0
- data/app/frontend/components/railwatch/series-chart.tsx +400 -0
- data/app/frontend/components/railwatch/shortcuts-dialog.tsx +89 -0
- data/app/frontend/components/railwatch/signal-toast.tsx +121 -0
- data/app/frontend/components/railwatch/sort-header.tsx +37 -0
- data/app/frontend/components/railwatch/source-link.tsx +57 -0
- data/app/frontend/components/railwatch/sparkline-cell.tsx +14 -0
- data/app/frontend/components/railwatch/sql-block.tsx +116 -0
- data/app/frontend/components/railwatch/stat.tsx +173 -0
- data/app/frontend/components/railwatch/status-badge.tsx +79 -0
- data/app/frontend/components/railwatch/step-picker.tsx +57 -0
- data/app/frontend/components/railwatch/timeline.tsx +405 -0
- data/app/frontend/components/railwatch/utilisation-bar.tsx +44 -0
- data/app/frontend/components/railwatch/window-picker.tsx +147 -0
- data/app/frontend/components/ui/avatar.tsx +51 -0
- data/app/frontend/components/ui/badge.tsx +46 -0
- data/app/frontend/components/ui/breadcrumb.tsx +109 -0
- data/app/frontend/components/ui/button.tsx +60 -0
- data/app/frontend/components/ui/card.tsx +92 -0
- data/app/frontend/components/ui/chart.tsx +374 -0
- data/app/frontend/components/ui/checkbox.tsx +32 -0
- data/app/frontend/components/ui/collapsible.tsx +31 -0
- data/app/frontend/components/ui/command.tsx +182 -0
- data/app/frontend/components/ui/dialog.tsx +158 -0
- data/app/frontend/components/ui/dropdown-menu.tsx +255 -0
- data/app/frontend/components/ui/hover-card.tsx +42 -0
- data/app/frontend/components/ui/input.tsx +21 -0
- data/app/frontend/components/ui/label.tsx +24 -0
- data/app/frontend/components/ui/popover.tsx +87 -0
- data/app/frontend/components/ui/select.tsx +185 -0
- data/app/frontend/components/ui/separator.tsx +28 -0
- data/app/frontend/components/ui/sheet.tsx +137 -0
- data/app/frontend/components/ui/sidebar.tsx +726 -0
- data/app/frontend/components/ui/skeleton.tsx +13 -0
- data/app/frontend/components/ui/sonner.tsx +41 -0
- data/app/frontend/components/ui/table.tsx +114 -0
- data/app/frontend/components/ui/tabs.tsx +91 -0
- data/app/frontend/components/ui/textarea.tsx +18 -0
- data/app/frontend/components/ui/tooltip.tsx +61 -0
- data/app/frontend/components/user-info.tsx +32 -0
- data/app/frontend/components/user-menu-content.tsx +94 -0
- data/app/frontend/entrypoints/application.css +244 -0
- data/app/frontend/entrypoints/inertia.tsx +95 -0
- data/app/frontend/fonts/CommitMono-Bold.woff2 +0 -0
- data/app/frontend/fonts/CommitMono-Regular.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Black.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Bold.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Medium.woff2 +0 -0
- data/app/frontend/fonts/Roboto-Regular.woff2 +0 -0
- data/app/frontend/hooks/use-appearance.tsx +67 -0
- data/app/frontend/hooks/use-clipboard.ts +32 -0
- data/app/frontend/hooks/use-flash.tsx +23 -0
- data/app/frontend/hooks/use-hotkeys.ts +63 -0
- data/app/frontend/hooks/use-initials.tsx +15 -0
- data/app/frontend/hooks/use-live.ts +179 -0
- data/app/frontend/hooks/use-mobile-navigation.ts +8 -0
- data/app/frontend/hooks/use-mobile.ts +21 -0
- data/app/frontend/hooks/use-percentile.ts +24 -0
- data/app/frontend/hooks/use-reduced-motion.ts +25 -0
- data/app/frontend/hooks/use-row-nav.ts +106 -0
- data/app/frontend/hooks/use-step.ts +27 -0
- data/app/frontend/hooks/use-ticker.ts +12 -0
- data/app/frontend/hooks/use-window.ts +58 -0
- data/app/frontend/layouts/app/app-sidebar-layout.tsx +107 -0
- data/app/frontend/layouts/app-layout.tsx +21 -0
- data/app/frontend/layouts/env-layout.tsx +53 -0
- data/app/frontend/layouts/persistent-layout.tsx +18 -0
- data/app/frontend/lib/cable.ts +10 -0
- data/app/frontend/lib/env-pages.ts +236 -0
- data/app/frontend/lib/execution-path.ts +55 -0
- data/app/frontend/lib/explain.ts +50 -0
- data/app/frontend/lib/filter.ts +25 -0
- data/app/frontend/lib/flamegraph.ts +155 -0
- data/app/frontend/lib/format.ts +71 -0
- data/app/frontend/lib/keyboard.ts +18 -0
- data/app/frontend/lib/source-link.ts +217 -0
- data/app/frontend/lib/utils.ts +6 -0
- data/app/frontend/pages/alerts/index.tsx +171 -0
- data/app/frontend/pages/broadcasts/index.tsx +171 -0
- data/app/frontend/pages/cache_events/index.tsx +127 -0
- data/app/frontend/pages/commands/index.tsx +143 -0
- data/app/frontend/pages/deploys/index.tsx +94 -0
- data/app/frontend/pages/deploys/show.tsx +309 -0
- data/app/frontend/pages/deprecations/index.tsx +176 -0
- data/app/frontend/pages/exceptions/index.tsx +271 -0
- data/app/frontend/pages/executions/show.tsx +821 -0
- data/app/frontend/pages/issues/index.tsx +399 -0
- data/app/frontend/pages/issues/show.tsx +1367 -0
- data/app/frontend/pages/jobs/index.tsx +381 -0
- data/app/frontend/pages/jobs/klass.tsx +215 -0
- data/app/frontend/pages/llm_calls/index.tsx +664 -0
- data/app/frontend/pages/logs/index.tsx +303 -0
- data/app/frontend/pages/mails/index.tsx +218 -0
- data/app/frontend/pages/notifications/index.tsx +161 -0
- data/app/frontend/pages/outgoing_requests/index.tsx +309 -0
- data/app/frontend/pages/overview/show.tsx +333 -0
- data/app/frontend/pages/people/index.tsx +102 -0
- data/app/frontend/pages/people/show.tsx +149 -0
- data/app/frontend/pages/processes/index.tsx +335 -0
- data/app/frontend/pages/profiles/index.tsx +110 -0
- data/app/frontend/pages/profiles/show.tsx +105 -0
- data/app/frontend/pages/queries/index.tsx +492 -0
- data/app/frontend/pages/queries/show.tsx +276 -0
- data/app/frontend/pages/releases/index.tsx +190 -0
- data/app/frontend/pages/releases/release-health.tsx +68 -0
- data/app/frontend/pages/releases/release-path.ts +25 -0
- data/app/frontend/pages/releases/show.tsx +262 -0
- data/app/frontend/pages/requests/index.tsx +235 -0
- data/app/frontend/pages/requests/route.tsx +159 -0
- data/app/frontend/pages/scheduled_tasks/index.tsx +220 -0
- data/app/frontend/pages/spans/index.tsx +229 -0
- data/app/frontend/pages/spans/show.tsx +220 -0
- data/app/frontend/pages/storage_ops/index.tsx +150 -0
- data/app/frontend/pages/tenants/index.tsx +236 -0
- data/app/frontend/pages/tenants/show.tsx +477 -0
- data/app/frontend/pages/tenants/tenant-path.ts +26 -0
- data/app/frontend/pages/thresholds/index.tsx +414 -0
- data/app/frontend/pages/traces/show.tsx +208 -0
- data/app/frontend/pages/transactions/index.tsx +220 -0
- data/app/frontend/pages/view_renders/index.tsx +241 -0
- data/app/frontend/pages/visits/index.tsx +321 -0
- data/app/frontend/public/icon.png +0 -0
- data/app/frontend/public/icon.svg +5 -0
- data/app/frontend/routes/index.d.ts +2136 -0
- data/app/frontend/routes/index.js +2112 -0
- data/app/frontend/types/globals.d.ts +9 -0
- data/app/frontend/types/index.ts +288 -0
- data/app/frontend/types/vite-env.d.ts +9 -0
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch.rb +8 -3
- data/public/railwatch/assets/app-layout-LvxN9xSS.js +41 -0
- data/public/railwatch/assets/application-Cc5v_Vk9.css +1 -0
- data/public/railwatch/assets/{arrow-up-CLQ-7heQ.js → arrow-up-DG01k9AL.js} +1 -1
- data/public/railwatch/assets/{braces-rSYydpLY.js → braces-C3w7pfxS.js} +1 -1
- data/public/railwatch/assets/{card-DPjFKfen.js → card-Dpwlr0uY.js} +1 -1
- data/public/railwatch/assets/{chart-DWh7l8yM.js → chart-DJHv3R7W.js} +1 -1
- data/public/railwatch/assets/{chart-hover-CfoZUY4J.js → chart-hover-CEH-DtXO.js} +1 -1
- data/public/railwatch/assets/{chart-panel-CC49WTQL.js → chart-panel-CUdIzJvk.js} +1 -1
- data/public/railwatch/assets/code-BRZprwun.js +1 -0
- data/public/railwatch/assets/copy-id-CwhGGiwF.js +1 -0
- data/public/railwatch/assets/cursor-load-more-uF1_955Q.js +1 -0
- data/public/railwatch/assets/data-table-DYi-N0hm.js +1 -0
- data/public/railwatch/assets/env-layout-HdcOaPPX.js +1 -0
- data/public/railwatch/assets/{execution-path-FAuIzOXB.js → execution-path-CElXXFO_.js} +1 -1
- data/public/railwatch/assets/filter-bar-DEv0G_34.js +1 -0
- data/public/railwatch/assets/{flamegraph-EaGkP2NT.js → flamegraph-SKD9yxW9.js} +2 -2
- data/public/railwatch/assets/frames-CUpyJQDy.js +1 -0
- data/public/railwatch/assets/index-2W-ppwap.js +1 -0
- data/public/railwatch/assets/index-74ocuU5d.js +1 -0
- data/public/railwatch/assets/{index-C8Cggnbw.js → index-B8NA62Lz.js} +2 -2
- data/public/railwatch/assets/index-BBCEkLqp.js +1 -0
- data/public/railwatch/assets/index-BDcglJzX.js +1 -0
- data/public/railwatch/assets/index-B_KFb9LS.js +1 -0
- data/public/railwatch/assets/index-BqK_VKom.js +1 -0
- data/public/railwatch/assets/index-BxCXBHP2.js +1 -0
- data/public/railwatch/assets/index-C1jc1OoH.js +1 -0
- data/public/railwatch/assets/index-C7zREldp.js +1 -0
- data/public/railwatch/assets/index-CEetm4oC.js +1 -0
- data/public/railwatch/assets/index-CIaZkokF.js +1 -0
- data/public/railwatch/assets/index-CNH85TZp.js +1 -0
- data/public/railwatch/assets/index-Ce4SB5AB.js +1 -0
- data/public/railwatch/assets/index-CiRMSYMn.js +1 -0
- data/public/railwatch/assets/index-CjxXgOs-.js +1 -0
- data/public/railwatch/assets/index-ClL-PYEV.js +1 -0
- data/public/railwatch/assets/index-CteZ6fop.js +1 -0
- data/public/railwatch/assets/index-CvqfEExO.js +1 -0
- data/public/railwatch/assets/index-CxTLT-Qh.js +1 -0
- data/public/railwatch/assets/index-DJd3OUSd.js +1 -0
- data/public/railwatch/assets/index-DPD-rLp6.js +1 -0
- data/public/railwatch/assets/index-DYK_dps4.js +1 -0
- data/public/railwatch/assets/index-DrayARrI.js +1 -0
- data/public/railwatch/assets/index-HRXGir-0.js +1 -0
- data/public/railwatch/assets/index-UJOUALr_.js +1 -0
- data/public/railwatch/assets/index-d-3J7gQ5.js +1 -0
- data/public/railwatch/assets/index-oQrvBpOm.js +1 -0
- data/public/railwatch/assets/inertia-FoqYZAk8.js +97 -0
- data/public/railwatch/assets/json-viewer-CxqMojEm.js +1 -0
- data/public/railwatch/assets/klass-DEF-Vat5.js +1 -0
- data/public/railwatch/assets/origin-identity-Y6gvfQVR.js +1 -0
- data/public/railwatch/assets/{percentile-picker-CeQgllxD.js → percentile-picker-E2aUdLxx.js} +1 -1
- data/public/railwatch/assets/relative-time-DcJbkKlN.js +1 -0
- data/public/railwatch/assets/{release-health-uP-GF3_V.js → release-health-C8WSCDKD.js} +1 -1
- data/public/railwatch/assets/route-qO5vX1p-.js +1 -0
- data/public/railwatch/assets/{segmented-BeIe4uqk.js → segmented-BWee8uc9.js} +1 -1
- data/public/railwatch/assets/select-G7rNBzv0.js +1 -0
- data/public/railwatch/assets/series-chart-C5nXIUc5.js +1 -0
- data/public/railwatch/assets/show-BEWisLQw.js +1 -0
- data/public/railwatch/assets/show-BEa9PGu1.js +2 -0
- data/public/railwatch/assets/{show-YsNpqbcI.js → show-BiT_Aloc.js} +3 -3
- data/public/railwatch/assets/show-BpCO49d3.js +1 -0
- data/public/railwatch/assets/show-CH7yxt7R.js +1 -0
- data/public/railwatch/assets/show-CTO8Lvd2.js +1 -0
- data/public/railwatch/assets/show-DnYsDMUt.js +2 -0
- data/public/railwatch/assets/show-DyzHM527.js +1 -0
- data/public/railwatch/assets/show-Nfpxs8su.js +1 -0
- data/public/railwatch/assets/show-ddjUMo9G.js +1 -0
- data/public/railwatch/assets/show-ksjbSzDH.js +1 -0
- data/public/railwatch/assets/{sort-header-mEJUM3Av.js → sort-header-uOq5VlrB.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-Dwg7awwh.js → sparkline-cell-DgGij0cu.js} +1 -1
- data/public/railwatch/assets/stat-BTzNKTm2.js +1 -0
- data/public/railwatch/assets/status-badge-BDkOXa-C.js +1 -0
- data/public/railwatch/assets/{tenant-path-CQoP-BeF.js → tenant-path-DU0ezKSU.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-DNefo-ky.js → use-clipboard-DoENmlWY.js} +1 -1
- data/public/railwatch/assets/{use-live-DMTuhKfB.js → use-live-CE_fN5_6.js} +1 -1
- data/public/railwatch/manifest.json +612 -1591
- metadata +242 -117
- data/public/railwatch/assets/app-layout-Zc0v-hYh.js +0 -1
- data/public/railwatch/assets/app-wordmark-BA_60AVb.js +0 -1
- data/public/railwatch/assets/appearance-CcfP9tZ7.js +0 -1
- data/public/railwatch/assets/application-BrN3Sz94.css +0 -1
- data/public/railwatch/assets/auth-layout-C05gEBIQ.js +0 -1
- data/public/railwatch/assets/badge-DRae8XwK.js +0 -1
- data/public/railwatch/assets/checkbox-DPkLUiwM.js +0 -1
- data/public/railwatch/assets/code-CLmYS6FU.js +0 -1
- data/public/railwatch/assets/copy-DaQMJWoT.js +0 -1
- data/public/railwatch/assets/copy-block-CGcXxp8J.js +0 -1
- data/public/railwatch/assets/copy-id-vBYHQwxg.js +0 -1
- data/public/railwatch/assets/cursor-load-more-Ddwxe5dZ.js +0 -1
- data/public/railwatch/assets/data-table-CzKTEE-O.js +0 -1
- data/public/railwatch/assets/edit-B1kmWkzd.js +0 -8
- data/public/railwatch/assets/edit-D9cx4pbG.js +0 -1
- data/public/railwatch/assets/edit-yv6j9p-V.js +0 -1
- data/public/railwatch/assets/empty-state-CW4wclK_.js +0 -1
- data/public/railwatch/assets/env-layout-Kz7wks1x.js +0 -1
- data/public/railwatch/assets/filter-bar-CJDjWFib.js +0 -1
- data/public/railwatch/assets/frames-zZuIaNH9.js +0 -1
- data/public/railwatch/assets/google-sign-in-button-2_zgbgVy.js +0 -1
- data/public/railwatch/assets/index-B49SWz7K.js +0 -1
- data/public/railwatch/assets/index-BHlY4wKe.js +0 -1
- data/public/railwatch/assets/index-BZpPtyFY.js +0 -1
- data/public/railwatch/assets/index-BeVK6jCL.js +0 -1
- data/public/railwatch/assets/index-BfbSo01U.js +0 -1
- data/public/railwatch/assets/index-BfgncAv6.js +0 -1
- data/public/railwatch/assets/index-BhNszK1k.js +0 -1
- data/public/railwatch/assets/index-Bu01uWvw.js +0 -1
- data/public/railwatch/assets/index-C1s_hK3p.js +0 -1
- data/public/railwatch/assets/index-CBip6V4z.js +0 -1
- data/public/railwatch/assets/index-CMJGss5R.js +0 -1
- data/public/railwatch/assets/index-CRo3yK20.js +0 -1
- data/public/railwatch/assets/index-CWB_p2J8.js +0 -1
- data/public/railwatch/assets/index-CWHpndGc.js +0 -1
- data/public/railwatch/assets/index-Ca_S4Sc3.js +0 -1
- data/public/railwatch/assets/index-CanPDDOa.js +0 -1
- data/public/railwatch/assets/index-Cie90Yat.js +0 -1
- data/public/railwatch/assets/index-CiepQ_pR.js +0 -1
- data/public/railwatch/assets/index-Cm1uCIGN.js +0 -1
- data/public/railwatch/assets/index-CzitnnSC.js +0 -1
- data/public/railwatch/assets/index-DEUfClv3.js +0 -1
- data/public/railwatch/assets/index-DJKwo-mI.js +0 -1
- data/public/railwatch/assets/index-DK6y0YHp.js +0 -1
- data/public/railwatch/assets/index-DMNPpLH9.js +0 -1
- data/public/railwatch/assets/index-DZO1mSfX.js +0 -1
- data/public/railwatch/assets/index-Db5wj3M5.js +0 -1
- data/public/railwatch/assets/index-Dcy5WktB.js +0 -1
- data/public/railwatch/assets/index-DvG0-7Lx.js +0 -1
- data/public/railwatch/assets/index-Dvj1wuka.js +0 -1
- data/public/railwatch/assets/index-KyZX46qX.js +0 -1
- data/public/railwatch/assets/index-Ze-KP-sl.js +0 -1
- data/public/railwatch/assets/index-mhRbWLBM.js +0 -1
- data/public/railwatch/assets/index-x099JL5f.js +0 -1
- data/public/railwatch/assets/index-x28zb_nf.js +0 -1
- data/public/railwatch/assets/inertia-Cuyz2ZHO.js +0 -97
- data/public/railwatch/assets/input-error-hog6gGxg.js +0 -1
- data/public/railwatch/assets/json-viewer-DH2W9HXf.js +0 -1
- data/public/railwatch/assets/klass-DHbDelLk.js +0 -1
- data/public/railwatch/assets/label-DdCBgiUn.js +0 -1
- data/public/railwatch/assets/layout-Cueyl7c5.js +0 -1
- data/public/railwatch/assets/live-dot-BZgYTYdt.js +0 -41
- data/public/railwatch/assets/nav-BSSGObDZ.js +0 -1
- data/public/railwatch/assets/new-B8FSb8Bl.js +0 -1
- data/public/railwatch/assets/new-C39_v2Ll.js +0 -1
- data/public/railwatch/assets/new-DVOPwaC5.js +0 -1
- data/public/railwatch/assets/new-Dd40nvJR.js +0 -1
- data/public/railwatch/assets/new-SxnYe1SE.js +0 -1
- data/public/railwatch/assets/new-eP5vKD3Y.js +0 -1
- data/public/railwatch/assets/onboarding-CUpZl5KB.js +0 -1
- data/public/railwatch/assets/origin-identity-BYt2uiuo.js +0 -1
- data/public/railwatch/assets/relative-time-D5UbF4oO.js +0 -1
- data/public/railwatch/assets/route-DQAY8JEr.js +0 -1
- data/public/railwatch/assets/select-2R16457Z.js +0 -1
- data/public/railwatch/assets/separator-D5I0UCB5.js +0 -1
- data/public/railwatch/assets/series-chart-gnrzhmM6.js +0 -1
- data/public/railwatch/assets/show-2BkeNRUC.js +0 -2
- data/public/railwatch/assets/show-B0X1hRQH.js +0 -1
- data/public/railwatch/assets/show-BKUV5l5q.js +0 -1
- data/public/railwatch/assets/show-BQJD_CsF.js +0 -6
- data/public/railwatch/assets/show-BhmD6Sxp.js +0 -1
- data/public/railwatch/assets/show-C3KcnVo2.js +0 -1
- data/public/railwatch/assets/show-C95cHd06.js +0 -2
- data/public/railwatch/assets/show-CdB4uVQS.js +0 -1
- data/public/railwatch/assets/show-CoCqcVIp.js +0 -1
- data/public/railwatch/assets/show-D2LqjEsU.js +0 -1
- data/public/railwatch/assets/show-DNpnKyTh.js +0 -1
- data/public/railwatch/assets/show-DOlTxbig.js +0 -1
- data/public/railwatch/assets/show-DQCkttL8.js +0 -1
- data/public/railwatch/assets/show-DcxesipC.js +0 -1
- data/public/railwatch/assets/show-IGJoc_X0.js +0 -1
- data/public/railwatch/assets/show-qNV6H8SH.js +0 -2
- data/public/railwatch/assets/stat-ZtxGU8lE.js +0 -1
- data/public/railwatch/assets/status-badge-CH5P-Xkj.js +0 -1
- data/public/railwatch/assets/text-link-DHJ8BXx5.js +0 -1
- data/public/railwatch/assets/textarea-BeQtQyl5.js +0 -1
- data/public/railwatch/assets/timeline-CaKQVu48.js +0 -1
- data/public/railwatch/assets/transition-ksDpqhKJ.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,a4 as ee,av as Ku,W as mv,aw as Pg,a3 as Ag,c as Hu,C as lr,j as pe}from"./inertia-Cuyz2ZHO.js";var Sg=["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"];function qu(e){if(typeof e!="string")return!1;var t=Sg;return t.includes(e)}var _g=["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"],Eg=new Set(_g);function yv(e){return typeof e!="string"?!1:Eg.has(e)}function gv(e){return typeof e=="string"&&e.startsWith("data-")}function Dt(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yv(r)||gv(r))&&(t[r]=e[r]);return t}function Yu(e){if(e==null)return null;if(h.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Dt(t)}return typeof e=="object"&&!Array.isArray(e)?Dt(e):null}function De(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yv(r)||gv(r)||qu(r))&&(t[r]=e[r]);return t}function y2(e){return e==null?null:h.isValidElement(e)?De(e.props):typeof e=="object"&&!Array.isArray(e)?De(e):null}var Cg=["children","width","height","viewBox","className","style","title","desc"];function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(null,arguments)}function kg(e,t){if(e==null)return{};var r,n,i=jg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bv=h.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=kg(e,Cg),f=a||{width:n,height:i,x:0,y:0},d=ee("recharts-surface",o);return h.createElement("svg",Ho({},De(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),h.createElement("title",null,l),h.createElement("desc",null,s),r)}),Ig=["children","className"];function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qo.apply(null,arguments)}function Mg(e,t){if(e==null)return{};var r,n,i=Tg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ft=h.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Mg(e,Ig),a=ee("recharts-layer",n);return h.createElement("g",qo({className:a},De(i),{ref:t}),r)}),Dg=h.createContext(null);function J(e){return function(){return e}}const xv=Math.cos,Mi=Math.sin,vt=Math.sqrt,Ti=Math.PI,Ea=2*Ti,Yo=Math.PI,Go=2*Yo,sr=1e-6,Ng=Go-sr;function wv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $g(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return wv;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Rg{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?wv:$g(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>sr)if(!(Math.abs(f*l-s*c)>sr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,p=i-u,m=l*l+s*s,y=v*v+p*p,g=Math.sqrt(m),b=Math.sqrt(d),x=a*Math.tan((Yo-Math.acos((m+d-y)/(2*g*b)))/2),w=x/b,P=x/g;Math.abs(w-1)>sr&&this._append`L${t+w*c},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*v>c*p)},${this._x1=t+P*l},${this._y1=r+P*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>sr||Math.abs(this._y1-c)>sr)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Go+Go),d>Ng?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>sr&&this._append`A${n},${n},0,${+(d>=Yo)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Gu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Rg(t)}function Vu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ov(e){this._context=e}Ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ca(e){return new Ov(e)}function Pv(e){return e[0]}function Av(e){return e[1]}function Sv(e,t){var r=J(!0),n=null,i=Ca,a=null,o=Gu(u);e=typeof e=="function"?e:e===void 0?Pv:J(e),t=typeof t=="function"?t:t===void 0?Av:J(t);function u(l){var s,c=(l=Vu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:J(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:J(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:J(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function si(e,t,r){var n=null,i=J(!0),a=null,o=Ca,u=null,l=Gu(s);e=typeof e=="function"?e:e===void 0?Pv:J(+e),t=typeof t=="function"?t:J(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Av:J(+r);function s(f){var d,v,p,m=(f=Vu(f)).length,y,g=!1,b,x=new Array(m),w=new Array(m);for(a==null&&(u=o(b=l())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=v;--p)u.point(x[p],w[p]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(y,d,f),w[d]=+t(y,d,f),u.point(n?+n(y,d,f):x[d],r?+r(y,d,f):w[d]))}if(b)return u=null,b+""||null}function c(){return Sv().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:J(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:J(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:J(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:J(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:J(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:J(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:J(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class _v{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Lg(e){return new _v(e,!0)}function zg(e){return new _v(e,!1)}const Xu={draw(e,t){const r=vt(t/Ti);e.moveTo(r,0),e.arc(0,0,r,0,Ea)}},Bg={draw(e,t){const r=vt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Ev=vt(1/3),Fg=Ev*2,Wg={draw(e,t){const r=vt(t/Fg),n=r*Ev;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ug={draw(e,t){const r=vt(t),n=-r/2;e.rect(n,n,r,r)}},Kg=.8908130915292852,Cv=Mi(Ti/10)/Mi(7*Ti/10),Hg=Mi(Ea/10)*Cv,qg=-xv(Ea/10)*Cv,Yg={draw(e,t){const r=vt(t*Kg),n=Hg*r,i=qg*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ea*a/5,u=xv(o),l=Mi(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},ho=vt(3),Gg={draw(e,t){const r=-vt(t/(ho*3));e.moveTo(0,r*2),e.lineTo(-ho*r,-r),e.lineTo(ho*r,-r),e.closePath()}},Qe=-.5,Je=vt(3)/2,Vo=1/vt(12),Vg=(Vo/2+1)*3,Xg={draw(e,t){const r=vt(t/Vg),n=r/2,i=r*Vo,a=n,o=r*Vo+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Qe*n-Je*i,Je*n+Qe*i),e.lineTo(Qe*a-Je*o,Je*a+Qe*o),e.lineTo(Qe*u-Je*l,Je*u+Qe*l),e.lineTo(Qe*n+Je*i,Qe*i-Je*n),e.lineTo(Qe*a+Je*o,Qe*o-Je*a),e.lineTo(Qe*u+Je*l,Qe*l-Je*u),e.closePath()}};function Zg(e,t){let r=null,n=Gu(i);e=typeof e=="function"?e:J(e||Xu),t=typeof t=="function"?t:J(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:J(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:J(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Di(){}function Ni(e,t,r){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+r)/6)}function kv(e){this._context=e}kv.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:Ni(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qg(e){return new kv(e)}function jv(e){this._context=e}jv.prototype={areaStart:Di,areaEnd:Di,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jg(e){return new jv(e)}function Iv(e){this._context=e}Iv.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function e0(e){return new Iv(e)}function Mv(e){this._context=e}Mv.prototype={areaStart:Di,areaEnd:Di,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 t0(e){return new Mv(e)}function As(e){return e<0?-1:1}function Ss(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(As(a)+As(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function _s(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function po(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function $i(e){this._context=e}$i.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:po(this,this._t0,_s(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=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,po(this,_s(this,r=Ss(this,e,t)),r);break;default:po(this,this._t0,r=Ss(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Tv(e){this._context=new Dv(e)}(Tv.prototype=Object.create($i.prototype)).point=function(e,t){$i.prototype.point.call(this,t,e)};function Dv(e){this._context=e}Dv.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function r0(e){return new $i(e)}function n0(e){return new Tv(e)}function Nv(e){this._context=e}Nv.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Es(e),i=Es(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Es(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function i0(e){return new Nv(e)}function ka(e,t){this._context=e,this._t=t}ka.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function a0(e){return new ka(e,.5)}function o0(e){return new ka(e,0)}function u0(e){return new ka(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Xo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function l0(e,t){return e[t]}function s0(e){const t=[];return t.key=e,t}function c0(){var e=J([]),t=Xo,r=xr,n=l0;function i(a){var o=Array.from(e.apply(this,arguments),s0),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=Vu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:J(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:J(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xo:typeof a=="function"?a:J(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function f0(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function d0(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}xr(e,t)}}function v0(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],y=m[n][1]||0,g=m[n-1][1]||0;v+=y-g}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}function Zo(e){return e==="__proto__"}const h0=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function $v(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:h0.test(e);default:return!1}}function ja(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function Zu(e){return typeof e=="symbol"||e instanceof Symbol}function p0(e){return e==null?"":Rv(e)}function Rv(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Rv).join(",");if(Zu(e))return e.toString();const t=e+"";return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Qu(e){if(Array.isArray(e))return e.map(ja);if(typeof e=="symbol")return[e];e=p0(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",a="",o=!1,u=!1;const l=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push("");n<r;){const s=e[n];if(a)s==="\\"&&n+1<r?(n++,i+=e[n]):s===a?a="":i+=s;else if(o)if(s==='"'||s==="'")a=s,u=!0;else if(s==="]"){if(o=!1,!u&&i.includes(".")&&!l.test(i)){const c=i.split(".");for(let f=0;f<c.length;f++)c[f]!==""&&t.push(c[f])}else t.push(i);i=""}else i+=s;else if(s==="[")o=!0,u=!1,i&&(t.push(i),i="");else if(s==="."){i&&(t.push(i),i="");const c=e[n+1];(c===void 0||c===".")&&t.push("")}else i+=s;n++}return i&&t.push(i),t}function Nt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Zo(t))return r;const n=e[t];return n===void 0?$v(t)&&!Object.hasOwn(e,t)?Nt(e,Qu(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=ja(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return m0(e,t,r);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),Zo(t))return r;const n=e[t];return n===void 0?r:n}}}function m0(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||Zo(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}var y0=4;function Xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+Xt(u)+a:i+a},"")}var Be=e=>e===0?0:e>0?1:-1,wt=e=>typeof e=="number"&&e!=+e,wr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!wt(e),nt=e=>$(e)||typeof e=="string",g0=0,Cn=e=>{var t=++g0;return"".concat(e||"").concat(t)},dt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var a;if(wr(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return wt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Lv=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return $(e)&&$(t)?Xt(e+r*(t-e)):t}function zv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Nt(n,t))===r)}var le=e=>e===null||typeof e>"u",Un=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Fe(e){return e!=null}function Er(){}var b0=["type","size","sizeType"];function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(null,arguments)}function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cs(Object(r),!0).forEach(function(n){x0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x0(e,t,r){return(t=w0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w0(e){var t=O0(e,"string");return typeof t=="symbol"?t:t+""}function O0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P0(e,t){if(e==null)return{};var r,n,i=A0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function A0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Bv={symbolCircle:Xu,symbolCross:Bg,symbolDiamond:Wg,symbolSquare:Ug,symbolStar:Yg,symbolTriangle:Gg,symbolWye:Xg},S0=Math.PI/180,_0=e=>{var t="symbol".concat(Un(e));return Bv[t]||Xu},E0=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*S0;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},C0=(e,t)=>{Bv["symbol".concat(Un(e))]=t},Fv=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=P0(e,b0),a=ks(ks({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=_0(o),v=Zg().type(d).size(E0(r,n,o)),p=v();if(p!==null)return p},{className:l,cx:s,cy:c}=a,f=De(a);return $(s)&&$(c)&&$(r)?h.createElement("path",Qo({},f,{className:ee("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Fv.registerSymbol=C0;var Wv=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,k0=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(h.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{qu(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},j0=(e,t,r)=>n=>(e(t,r,n),null),Ju=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];qu(i)&&typeof a=="function"&&(n||(n={}),n[i]=j0(a,t,r))}),n};function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?js(Object(r),!0).forEach(function(n){M0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M0(e,t,r){return(t=T0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T0(e){var t=D0(e,"string");return typeof t=="symbol"?t:t+""}function D0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ue(e,t){var r=I0({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}function N0(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}function $0(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Uv(e){return e}function R0(e){return Number.isSafeInteger(e)&&e>=0}function el(e){return e!=null&&typeof e!="function"&&R0(e.length)}function L0(e){return function(t){return Nt(t,e)}}function Kv(e){return e==null||typeof e!="object"&&typeof e!="function"}function z0(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function B0(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ia(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const F0="[object RegExp]",Hv="[object String]",qv="[object Number]",Yv="[object Boolean]",Gv="[object Arguments]",W0="[object Symbol]",U0="[object Date]",K0="[object Map]",H0="[object Set]",q0="[object Array]",Y0="[object ArrayBuffer]",G0="[object Object]",V0="[object DataView]",X0="[object Uint8Array]",Z0="[object Uint8ClampedArray]",Q0="[object Uint16Array]",J0="[object Uint32Array]",eb="[object Int8Array]",tb="[object Int16Array]",rb="[object Int32Array]",nb="[object Float32Array]",ib="[object Float64Array]",Is=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function ab(e){return typeof Is.Buffer<"u"&&Is.Buffer.isBuffer(e)}function ob(e,t){return dr(e,void 0,e,new Map,t)}function dr(e,t,r,n=new Map,i=void 0){const a=i?.(e,t,r,n);if(a!==void 0)return a;if(Kv(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let u=0;u<e.length;u++)o[u]=dr(e[u],u,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[u,l]of e)o.set(u,dr(l,u,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const u of e)o.add(dr(u,void 0,r,n,i));return o}if(ab(e))return e.subarray();if(z0(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let u=0;u<e.length;u++)o[u]=dr(e[u],u,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),ut(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),ut(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof Error){const o=structuredClone(e);return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,ut(o,e,r,n,i),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof Number){const o=new Number(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof String){const o=new String(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(typeof e=="object"&&ub(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),ut(o,e,r,n,i),o}return e}function ut(e,t,r=e,n,i){const a=[...Object.keys(t),...B0(t)];for(let o=0;o<a.length;o++){const u=a[o],l=Object.getOwnPropertyDescriptor(e,u);(l==null||l.writable)&&(e[u]=dr(t[u],u,r,n,i))}}function ub(e){switch(Ia(e)){case Gv:case q0:case Y0:case V0:case Yv:case U0:case nb:case ib:case eb:case tb:case rb:case K0:case qv:case G0:case F0:case H0:case Hv:case W0:case X0:case Z0:case Q0:case J0:return!0;default:return!1}}function lb(e){return dr(e,void 0,e,new Map,void 0)}function _i(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vv(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Xv(e,t,r){return typeof r!="function"?Xv(e,t,()=>{}):Jo(e,t,function n(i,a,o,u,l,s){const c=r(i,a,o,u,l,s);return c!==void 0?!!c:Jo(i,a,n,s,!1)},new Map,!0)}function Jo(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return sb(e,t,r,n,i);case"function":return Object.keys(t).length>0?Jo(e,{...t},r,n,i):_i(e,t);default:return Vv(e)&&i?typeof t=="string"?t==="":!0:_i(e,t)}}function sb(e,t,r,n,i=!1){if(t==null)return!0;if(Array.isArray(t))return Zv(e,t,r,n);if(t instanceof Map)return cb(e,t,r,n);if(t instanceof Set)return fb(e,t,r,n);const a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Kv(e)&&(e=Object(e));else{const o=Ia(e);if(o!=="[object Object]"&&o!=="[object Arguments]")return!1}if(a.length===0)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let o=0;o<a.length;o++){const u=a[o];if(!(u in e)||t[u]===void 0&&e[u]!==void 0||t[u]===null&&e[u]!==null||!r(e[u],t[u],u,e,t,n))return!1}return!0}finally{n?.delete(t)}}function cb(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(r(e.get(i),a,i,e,t,n)===!1)return!1;return!0}function Zv(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let u=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;const s=e[l];let c=!1;if(r(s,o,a,e,t,n)&&(c=!0),c){i.add(l),u=!0;break}}if(!u)return!1}return!0}function fb(e,t,r,n){return t.size===0?!0:e instanceof Set?Zv([...e],[...t],r,n):!1}function Qv(e,t){return Xv(e,t,()=>{})}function db(e){return e=lb(e),t=>Qv(t,e)}function vb(e,t){return ob(e,(r,n,i,a)=>{if(typeof e=="object"){if(Ia(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),ut(o,e,i,a),o}switch(Object.prototype.toString.call(e)){case qv:case Hv:case Yv:{const o=new e.constructor(e?.valueOf());return ut(o,e),o}case Gv:{const o={};return ut(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function hb(e){return vb(e)}const pb=/^(?:0|[1-9]\d*)$/;function Jv(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return pb.test(e)}}function mb(e){return e!==null&&typeof e=="object"&&Ia(e)==="[object Arguments]"}function yb(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&$v(t)&&!(t in Object(e))?r=Qu(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const a=ja(r[i]);if((n==null||!Object.hasOwn(n,a))&&!((Array.isArray(n)||mb(n))&&Jv(a)&&Number(a)<n.length))return!1;n=n[a]}return!0}function gb(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=ja(e);break}return t=hb(t),function(r){const n=Nt(r,e);return n===void 0?yb(r,e):t===void 0?n===void 0:Qv(n,t)}}function bb(e){if(e==null)return Uv;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?gb(e[0],e[1]):db(e);default:return L0(e)}}function xb(e){return e===0?0:e}function Ms(e,t=Uv){return el(e)?N0(Array.from(e),$0(bb(t),1)).map(xb):[]}function wb(e,t,r){return t===!0?Ms(e,r):typeof t=="function"?Ms(e,t):e}var mo={exports:{}},yo={},go={exports:{}},bo={};var Ts;function Ob(){if(Ts)return bo;Ts=1;var e=Ku();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function u(f,d){var v=d(),p=n({inst:{value:v,getSnapshot:d}}),m=p[0].inst,y=p[1];return a(function(){m.value=v,m.getSnapshot=d,l(m)&&y({inst:m})},[f,v,d]),i(function(){return l(m)&&y({inst:m}),f(function(){l(m)&&y({inst:m})})},[f]),o(v),v}function l(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function s(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return bo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,bo}var Ds;function Pb(){return Ds||(Ds=1,go.exports=Ob()),go.exports}var Ns;function Ab(){if(Ns)return yo;Ns=1;var e=Ku(),t=Pb();function r(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,l=e.useDebugValue;return yo.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function g(O){if(!b){if(b=!0,x=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return w=S}return w=O}if(S=w,n(x,O))return S;var E=d(O);return v!==void 0&&v(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=f===void 0?null:f;return[function(){return g(c())},P===null?void 0:function(){return g(P())}]},[c,f,d,v]);var y=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=y},[y]),l(y),y},yo}var $s;function Sb(){return $s||($s=1,mo.exports=Ab()),mo.exports}var _b=Sb(),tl=h.createContext(null),Eb=e=>e,ie=()=>{var e=h.useContext(tl);return e?e.store.dispatch:Eb},Ei=()=>{},Cb=()=>Ei,kb=(e,t)=>e===t;function L(e){var t=h.useContext(tl),r=h.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ei,[t,e]);return _b.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Cb,t?t.store.getState:Ei,t?t.store.getState:Ei,r,kb)}function jb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ib(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Mb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Rs=e=>Array.isArray(e)?e:[e];function Tb(e){const t=Array.isArray(e[0])?e[0]:e;return Mb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Db(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Nb=class{constructor(e){this.value=e}deref(){return this.value}},$b=typeof WeakRef<"u"?WeakRef:Nb,Rb=0,Ls=1;function ci(){return{s:Rb,v:void 0,o:null,p:null}}function eh(e,t={}){let r=ci();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=u.o;p===null&&(u.o=p=new WeakMap);const m=p.get(v);m===void 0?(u=ci(),p.set(v,u)):u=m}else{let p=u.p;p===null&&(u.p=p=new Map);const m=p.get(v);m===void 0?(u=ci(),p.set(v,u)):u=m}}const s=u;let c;if(u.s===Ls)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new $b(c):c}return s.s=Ls,s.v=c,c}return o.clearCache=()=>{r=ci(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Lb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),jb(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=eh,argsMemoizeOptions:p=[]}=c,m=Rs(d),y=Rs(p),g=Tb(i),b=f(function(){return a++,s.apply(null,arguments)},...m),x=v(function(){o++;const P=Db(g,arguments);return u=b.apply(null,P),u},...y);return Object.assign(x,{resultFunc:s,memoizedResultFunc:b,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=Lb(eh),zb=Object.assign((e,t=A)=>{Ib(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>zb});function Bb(e,t=1){const r=[],n=Math.floor(t),i=(a,o)=>{for(let u=0;u<a.length;u++){const l=a[u];Array.isArray(l)&&o<n?i(l,o+1):r.push(l)}};return i(e,0),r}function eu(e,t,r){return Vv(r)&&(typeof t=="number"&&el(r)&&Jv(t)&&t<r.length||typeof t=="string"&&t in r)?_i(r[t],e):!1}function zs(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const Fb=(e,t,r)=>{if(e!==t){const n=zs(e),i=zs(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0},Wb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ub=/^\w*$/;function Kb(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Zu(e)?!0:typeof e=="string"&&(Ub.test(e)||!Wb.test(e))||t!=null}function Hb(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=el(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));const i=(u,l)=>{let s=u,c=0;for(;c<l.length&&s!=null;++c)s=s[l[c]];return c>0&&c===l.length?s:void 0},a=(u,l)=>{if(u==null)return l;if(l!=null)return typeof u=="object"&&"key"in u?Object.hasOwn(l,u.key)?l[u.key]:i(l,u.path):typeof u=="function"?u(l):Array.isArray(u)?i(l,u):l[u]},o=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||Kb(u)?u:{key:u,path:Qu(u)}));return e.map(u=>({original:u,criteria:o.map(l=>a(l,u))})).slice().sort((u,l)=>{for(let s=0;s<o.length;s++){const c=Fb(u.criteria[s],l.criteria[s],r[s]);if(c!==0)return c}return 0}).map(u=>u.original)}function Ma(e,...t){const r=t.length;return r>1&&eu(e,t[0],t[1])?t=[]:r>2&&eu(t[0],t[1],t[2])&&(t=[t[0]]),Hb(e,Bb(t),["asc"])}var th=e=>e.legend.settings,qb=e=>e.legend.size,Yb=e=>e.legend.payload;A([Yb,th],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ma(n,r):n});var fi=1;function Gb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=h.useState({height:0,left:0,top:0,width:0}),n=h.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>fi||Math.abs(o.left-t.left)>fi||Math.abs(o.top-t.top)>fi||Math.abs(o.width-t.width)>fi)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Oe(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 Vb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bs=Vb,xo=()=>Math.random().toString(36).substring(7).split("").join("."),Xb={INIT:`@@redux/INIT${xo()}`,REPLACE:`@@redux/REPLACE${xo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xo()}`},Ri=Xb;function rl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function rh(e,t,r){if(typeof e!="function")throw new Error(Oe(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(rh)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function c(){if(l)throw new Error(Oe(3));return i}function f(y){if(typeof y!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let g=!0;s();const b=u++;return o.set(b,y),function(){if(g){if(l)throw new Error(Oe(6));g=!1,s(),o.delete(b),a=null}}}function d(y){if(!rl(y))throw new Error(Oe(7));if(typeof y.type>"u")throw new Error(Oe(8));if(typeof y.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(b=>{b()}),y}function v(y){if(typeof y!="function")throw new Error(Oe(10));n=y,d({type:Ri.REPLACE})}function p(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Oe(11));function b(){const w=g;w.next&&w.next(c())}return b(),{unsubscribe:y(b)}},[Bs](){return this}}}return d({type:Ri.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Bs]:p}}function Zb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ri.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function nh(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Zb(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const s={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],v=o[f],p=d(v,u);if(typeof p>"u")throw u&&u.type,new Error(Oe(14));s[f]=p,l=l||p!==v}return l=l||n.length!==Object.keys(o).length,l?s:o}}function Li(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Qb(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Oe(15))};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=Li(...u)(i.dispatch),{...i,dispatch:a}}}function ih(e){return rl(e)&&"type"in e&&typeof e.type=="string"}var ah=Symbol.for("immer-nothing"),Fs=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function lt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ge=Object,Hr=Ge.getPrototypeOf,zi="constructor",Ta="prototype",tu="configurable",Bi="enumerable",Ci="writable",kn="value",$t=e=>!!e&&!!e[ke];function it(e){return e?oh(e)||Na(e)||!!e[Fs]||!!e[zi]?.[Fs]||$a(e)||Ra(e):!1}var Jb=Ge[Ta][zi].toString(),Ws=new WeakMap;function oh(e){if(!e||!nl(e))return!1;const t=Hr(e);if(t===null||t===Ge[Ta])return!0;const r=Ge.hasOwnProperty.call(t,zi)&&t[zi];if(r===Object)return!0;if(!zr(r))return!1;let n=Ws.get(r);return n===void 0&&(n=Function.toString.call(r),Ws.set(r,n)),n===Jb}function Da(e,t,r=!0){Kn(e)===0?(r?Reflect.ownKeys(e):Ge.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Kn(e){const t=e[ke];return t?t.type_:Na(e)?1:$a(e)?2:Ra(e)?3:0}var wo=(e,t,r=Kn(e))=>r===2?e.has(t):Ge[Ta].hasOwnProperty.call(e,t),ru=(e,t,r=Kn(e))=>r===2?e.get(t):e[t],Fi=(e,t,r,n=Kn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ex(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Na=Array.isArray,$a=e=>e instanceof Map,Ra=e=>e instanceof Set,nl=e=>typeof e=="object",zr=e=>typeof e=="function",Oo=e=>typeof e=="boolean";function tx(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ct=e=>e.copy_||e.base_,il=e=>e.modified_?e.copy_:e.base_;function nu(e,t){if($a(e))return new Map(e);if(Ra(e))return new Set(e);if(Na(e))return Array[Ta].slice.call(e);const r=oh(e);if(t===!0||t==="class_only"&&!r){const n=Ge.getOwnPropertyDescriptors(e);delete n[ke];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ci]===!1&&(u[Ci]=!0,u[tu]=!0),(u.get||u.set)&&(n[o]={[tu]:!0,[Ci]:!0,[Bi]:u[Bi],[kn]:e[o]})}return Ge.create(Hr(e),n)}else{const n=Hr(e);if(n!==null&&r)return{...e};const i=Ge.create(n);return Ge.assign(i,e)}}function al(e,t=!1){return La(e)||$t(e)||!it(e)||(Kn(e)>1&&Ge.defineProperties(e,{set:di,add:di,clear:di,delete:di}),Ge.freeze(e),t&&Da(e,(r,n)=>{al(n,!0)},!1)),e}function rx(){lt(2)}var di={[kn]:rx};function La(e){return e===null||!nl(e)?!0:Ge.isFrozen(e)}var Wi="MapSet",iu="Patches",Us="ArrayMethods",uh={};function Or(e){const t=uh[e];return t||lt(0,e),t}var Ks=e=>!!uh[e],jn,lh=()=>jn,nx=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ks(Wi)?Or(Wi):void 0,arrayMethodsPlugin_:Ks(Us)?Or(Us):void 0});function Hs(e,t){t&&(e.patchPlugin_=Or(iu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){ou(e),e.drafts_.forEach(ix),e.drafts_=null}function ou(e){e===jn&&(jn=e.parent_)}var qs=e=>jn=nx(jn,e);function ix(e){const t=e[ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ys(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ke].modified_&&(au(t),lt(4)),it(e)&&(e=Gs(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ke].base_,e,t)}else e=Gs(t,r);return ax(t,e,!0),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ah?e:void 0}function Gs(e,t){if(La(t))return t;const r=t[ke];if(!r)return Ui(t,e.handledSet_,e);if(!za(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);fh(r,e)}return r.copy_}function ax(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&al(t,r)}function sh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var za=(e,t)=>e.scope_===t,ox=[];function ch(e,t,r,n){const i=Ct(e),a=e.type_;if(n!==void 0&&ru(i,n,a)===t){Fi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Da(i,(l,s)=>{if($t(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??ox;for(const u of o)Fi(i,u,r,a)}function ux(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!za(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=il(a);ch(e,a.draft_??a,o,r),fh(a,i)})}function fh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}sh(e)}}function lx(e,t,r){const{scope_:n}=e;if($t(r)){const i=r[ke];za(i,n)&&i.callbacks_.push(function(){ki(e);const o=il(i);ch(e,r,o,t)})}else it(r)&&e.callbacks_.push(function(){const a=Ct(e);e.type_===3?a.has(r)&&Ui(r,n.handledSet_,n):ru(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ui(ru(e.copy_,t,e.type_),n.handledSet_,n)})}function Ui(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||$t(e)||t.has(e)||!it(e)||La(e)||(t.add(e),Da(e,(n,i)=>{if($t(i)){const a=i[ke];if(za(a,r)){const o=il(a);Fi(e,n,o,e.type_),sh(a)}}else it(i)&&Ui(i,t,r)})),e}function sx(e,t){const r=Na(e),n={type_:r?1:0,scope_:t?t.scope_:lh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ki;r&&(i=[n],a=In);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ki={get(e,t){if(t===ke)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Ct(e);if(!wo(i,t,e.type_))return fx(e,i,t);const a=i[t];if(e.finalized_||!it(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&tx(t))return a;if(a===Po(e.base_,t)||cx(e,t,a)){ki(e);const o=e.type_===1?+t:t,u=lu(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Ct(e)},ownKeys(e){return Reflect.ownKeys(Ct(e))},set(e,t,r){const n=dh(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Po(Ct(e),t),a=i?.[ke];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ex(r,i)&&(r!==void 0||wo(e.base_,t,e.type_)))return!0;ki(e),uu(e)}return e.copy_[t]===r&&(r!==void 0||wo(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),lx(e,t,r)),!0},deleteProperty(e,t){return ki(e),Po(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),uu(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ct(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ci]:!0,[tu]:e.type_!==1||t!=="length",[Bi]:n[Bi],[kn]:r[t]}},defineProperty(){lt(11)},getPrototypeOf(e){return Hr(e.base_)},setPrototypeOf(){lt(12)}},In={};for(let e in Ki){let t=Ki[e];In[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}In.deleteProperty=function(e,t){return In.set.call(this,e,t,void 0)};In.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function Po(e,t){const r=e[ke];return(r?Ct(r):e)[t]}function cx(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!it(r)||r[ke]?!1:e.baseRefs_.has(r)}function fx(e,t,r){const n=dh(t,r);return n?kn in n?n[kn]:n.get?.call(e.draft_):void 0}function dh(e,t){if(!(t in e))return;let r=Hr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Hr(r)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function ki(e){e.copy_||(e.assigned_=new Map,e.copy_=nu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(zr(r)&&!zr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}zr(n)||lt(6),i!==void 0&&!zr(i)&<(7);let a;if(it(r)){const o=qs(this),u=lu(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?au(o):ou(o)}return Hs(o,i),Ys(a,o)}else if(!r||!nl(r)){if(a=n(r),a===void 0&&(a=r),a===ah&&(a=void 0),this.autoFreeze_&&al(a,!0),i){const o=[],u=[];Or(iu).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else lt(1,r)},this.produceWithPatches=(r,n)=>{if(zr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},Oo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Oo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Oo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){it(t)||lt(8),$t(t)&&(t=tt(t));const r=qs(this),n=lu(r,t,void 0);return n[ke].isManual_=!0,ou(r),n}finishDraft(t,r){const n=t&&t[ke];(!n||!n.isManual_)&<(9);const{scope_:i}=n;return Hs(i,r),Ys(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Or(iu).applyPatches_;return $t(t)?i(t,r):this.produce(t,a=>i(a,r))}};function lu(e,t,r,n){const[i,a]=$a(t)?Or(Wi).proxyMap_(t,r):Ra(t)?Or(Wi).proxySet_(t,r):sx(t,r);return(r?.scope_??lh()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?ux(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function tt(e){return $t(e)||lt(10,e),vh(e)}function vh(e){if(!it(e)||La(e))return e;const t=e[ke];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=nu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=nu(e,!0);return Da(r,(i,a)=>{Fi(r,i,vh(a))},n),t&&(t.finalized_=!1),r}var vx=globalThis.Iterator;vx?.from;var hx=new dx,hh=hx.produce;function ph(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var px=ph(),mx=ph,yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Li:Li.apply(null,arguments)};function Xe(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ve(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ih(n)&&n.type===e,r}var mh=class An extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,An.prototype)}static get[Symbol.species](){return An}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new An(...t[0].concat(this)):new An(...t.concat(this))}};function Vs(e){return it(e)?hh(e,()=>{}):e}function vi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function gx(e){return typeof e=="boolean"}var bx=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new mh;return r&&(gx(r)?o.push(px):o.push(mx(r.extraArgument))),o},yh="RTK_autoBatch",te=()=>e=>({payload:e,meta:{[yh]:!0}}),Xs=e=>t=>{setTimeout(t,e)},xx=(e,t)=>r=>{let n=!1;const i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(o),r())},a=e(i),o=setTimeout(i,t)},gh=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?xx(window.requestAnimationFrame,100):Xs(10):e.type==="callback"?e.queueNotification:Xs(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[yh],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},wx=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new mh(e);return n&&i.push(gh(typeof n=="object"?n:void 0)),i};function Ox(e){const t=bx(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(rl(r))u=nh(r);else throw new Error(Ve(1));let l;typeof n=="function"?l=n(t):l=t();let s=Li;i&&(s=yx({trace:!1,...typeof i=="object"&&i}));const c=Qb(...l),f=wx(c);let d=typeof o=="function"?o(f):f();const v=s(...d);return rh(u,a,v)}function bh(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ve(28));if(u in t)throw new Error(Ve(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Px(e){return typeof e=="function"}function Ax(e,t){let[r,n,i]=bh(t),a;if(Px(e))a=()=>Vs(e());else{const u=Vs(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if($t(c)){const v=f(c,l);return v===void 0?c:v}else{if(it(c))return hh(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var Sx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_x=(e=21)=>{let t="",r=e;for(;r--;)t+=Sx[Math.random()*64|0];return t},Ex=Symbol.for("rtk-slice-createasyncthunk");function Cx(e,t){return`${e}/${t}`}function kx({creators:e}={}){const t=e?.asyncThunk?.[Ex];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ve(11));const o=(typeof n.reducers=="function"?n.reducers(Ix()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(x,w){const P=typeof x=="string"?x:x.type;if(!P)throw new Error(Ve(12));if(P in l.sliceCaseReducersByType)throw new Error(Ve(13));return l.sliceCaseReducersByType[P]=w,s},addMatcher(x,w){return l.sliceMatchers.push({matcher:x,reducer:w}),s},exposeAction(x,w){return l.actionCreators[x]=w,s},exposeCaseReducer(x,w){return l.sliceCaseReducersByName[x]=w,s}};u.forEach(x=>{const w=o[x],P={reducerName:x,type:Cx(i,x),createNotation:typeof n.reducers=="function"};Tx(w)?Nx(P,w,s,t):Mx(P,w,s)});function c(){const[x={},w=[],P=void 0]=typeof n.extraReducers=="function"?bh(n.extraReducers):[n.extraReducers],O={...x,...l.sliceCaseReducersByType};return Ax(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of w)S.addMatcher(E.matcher,E.reducer);P&&S.addDefaultCase(P)})}const f=x=>x,d=new Map,v=new WeakMap;let p;function m(x,w){return p||(p=c()),p(x,w)}function y(){return p||(p=c()),p.getInitialState()}function g(x,w=!1){function P(S){let E=S[x];return typeof E>"u"&&w&&(E=vi(v,P,y)),E}function O(S=f){const E=vi(d,w,()=>new WeakMap);return vi(E,S,()=>{const I={};for(const[M,k]of Object.entries(n.selectors??{}))I[M]=jx(k,S,()=>vi(v,S,y),w);return I})}return{reducerPath:x,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const b={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(x,{reducerPath:w,...P}={}){const O=w??a;return x.inject({reducerPath:O,reducer:m},P),{...b,...g(O,!0)}}};return b}}function jx(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var je=kx();function Ix(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Mx({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Dx(n))throw new Error(Ve(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Xe(e,o):Xe(e))}function Tx(e){return e._reducerDefinitionType==="asyncThunk"}function Dx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Nx({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ve(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||hi,pending:u||hi,rejected:l||hi,settled:s||hi})}function hi(){}var $x="task",xh="listener",wh="completed",ol="cancelled",Rx=`task-${ol}`,Lx=`task-${wh}`,su=`${xh}-${ol}`,zx=`${xh}-${wh}`,Ba=class{constructor(e){this.code=e,this.message=`${$x} ${ol} (reason: ${e})`}code;name="TaskAbortError";message},ul=(e,t)=>{if(typeof e!="function")throw new TypeError(Ve(32))},Hi=()=>{},Oh=(e,t=Hi)=>(e.catch(t),e),Ph=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),yr=e=>{if(e.aborted)throw new Ba(e.reason)};function Ah(e,t){let r=Hi;return new Promise((n,i)=>{const a=()=>i(new Ba(e.reason));if(e.aborted){a();return}r=Ph(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Hi})}var Bx=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ba?"cancelled":"rejected",error:r}}finally{t?.()}},qi=e=>t=>Oh(Ah(e,t).then(r=>(yr(e),r))),Sh=e=>{const t=qi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Wr}=Object,Zs={},Fa="listenerMiddleware",Fx=(e,t)=>{const r=n=>Ph(e,()=>n.abort(e.reason));return(n,i)=>{ul(n);const a=new AbortController;r(a);const o=Bx(async()=>{yr(e),yr(a.signal);const u=await n({pause:qi(a.signal),delay:Sh(a.signal),signal:a.signal});return yr(a.signal),u},()=>a.abort(Lx));return i?.autoJoin&&t.push(o.catch(Hi)),{result:qi(e)(o),cancel(){a.abort(Rx)}}}},Wx=(e,t)=>{const r=async(n,i)=>{yr(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Ah(t,Promise.race(u));return yr(t),l}finally{a()}};return((n,i)=>Oh(r(n,i)))},_h=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Xe(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ve(21));return ul(a),{predicate:i,type:t,effect:a}},Eh=Wr(e=>{const{type:t,predicate:r,effect:n}=_h(e);return{id:_x(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ve(22))}}},{withTypes:()=>Eh}),Qs=(e,t)=>{const{type:r,effect:n,predicate:i}=_h(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},cu=e=>{e.pending.forEach(t=>{t.abort(su)})},Ux=(e,t)=>()=>{for(const r of t.keys())cu(r);e.clear()},Js=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Ch=Wr(Xe(`${Fa}/add`),{withTypes:()=>Ch}),Kx=Xe(`${Fa}/removeAll`),kh=Wr(Xe(`${Fa}/remove`),{withTypes:()=>kh}),Hx=(...e)=>{console.error(`${Fa}/error`,...e)},Hn=(e={})=>{const t=new Map,r=new Map,n=v=>{const p=r.get(v)??0;r.set(v,p+1)},i=v=>{const p=r.get(v)??1;p===1?r.delete(v):r.set(v,p-1)},{extra:a,onError:o=Hx}=e;ul(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),p=>{v.unsubscribe(),p?.cancelActive&&cu(v)}),l=(v=>{const p=Qs(t,v)??Eh(v);return u(p)});Wr(l,{withTypes:()=>l});const s=v=>{const p=Qs(t,v);return p&&(p.unsubscribe(),v.cancelActive&&cu(p)),!!p};Wr(s,{withTypes:()=>s});const c=async(v,p,m,y)=>{const g=new AbortController,b=Wx(l,g.signal),x=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(p,Wr({},m,{getOriginalState:y,condition:(w,P)=>b(w,P).then(Boolean),take:b,delay:Sh(g.signal),pause:qi(g.signal),extra:a,signal:g.signal,fork:Fx(g.signal,x),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((w,P,O)=>{w!==g&&(w.abort(su),O.delete(w))})},cancel:()=>{g.abort(su),v.pending.delete(g)},throwIfCancelled:()=>{yr(g.signal)}})))}catch(w){w instanceof Ba||Js(o,w,{raisedBy:"effect"})}finally{await Promise.all(x),g.abort(zx),i(v),v.pending.delete(g)}},f=Ux(t,r);return{middleware:v=>p=>m=>{if(!ih(m))return p(m);if(Ch.match(m))return l(m.payload);if(Kx.match(m)){f();return}if(kh.match(m))return s(m.payload);let y=v.getState();const g=()=>{if(y===Zs)throw new Error(Ve(23));return y};let b;try{if(b=p(m),t.size>0){const x=v.getState(),w=Array.from(t.values());for(const P of w){let O=!1;try{O=P.predicate(m,x,y)}catch(S){O=!1,Js(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,g)}}}finally{y=Zs}return b},startListening:l,stopListening:s,clearListeners:f}};function Ve(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 qx={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},jh=je({name:"chartLayout",initialState:qx,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Yx,setLayout:Gx,setChartSize:Vx,setScale:Xx}=jh.actions,Zx=jh.reducer;function Ih(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function F(e){return Number.isFinite(e)}function Ot(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ec(Object(r),!0).forEach(function(n){Qx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qx(e,t,r){return(t=Jx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=ew(e,"string");return typeof t=="symbol"?t:t+""}function ew(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ye(e,t,r){return le(e)||le(t)?r:nt(t)?Nt(e,t,r):typeof t=="function"?t(e):r}var tw=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&$(e[a]))return Br(Br({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&$(e[o]))return Br(Br({},e),{},{[o]:e[o]+(i||0)})}return e},er=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Mh=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Th=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var p=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=v==="angleAxis"&&a&&a.length>=2?Be(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,b)=>{var x=n?n.indexOf(g):g,w=o.map(x);return F(w)?{coordinate:w+m,value:g,offset:m,index:b}:null}).filter(Fe);return y}return l&&s?s.map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:g,index:b,offset:m}:null}).filter(Fe):o.ticks&&c!=null?o.ticks(c).map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:g,index:b,offset:m}:null}).filter(Fe):o.domain().map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:n?n[g]:g,index:b,offset:m}:null}).filter(Fe)},rw=(e,t)=>{if(!t||t.length!==2||!$(t[0])||!$(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!$(e[0])||e[0]<r)&&(i[0]=r),(!$(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},nw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=wt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},iw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var s=wt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},aw={sign:nw,expand:f0,none:xr,silhouette:d0,wiggle:v0,positive:iw},ow=(e,t,r)=>{var n,i=(n=aw[r])!==null&&n!==void 0?n:xr,a=c0().keys(t).value((u,l)=>Number(ye(u,l,0))).order(Xo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=ye(e[c],t[l],0);Array.isArray(f)&&f.length===2&&$(f[0])&&$(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function uw(e){return e==null?void 0:String(e)}function b2(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var u=zv(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=ye(i,le(o)?t.dataKey:o),s=t.scale.map(l);return $(s)?s:null}var tc=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=ye(a,t.dataKey,t.scale.domain()[o]);if(le(u))return null;var l=t.scale.map(u);return $(l)?l-i/2+n:null},lw=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},sw=e=>{var t=e.flat(2).filter($);return[Math.min(...t),Math.max(...t)]},cw=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],fw=(e,t,r)=>{if(e!=null)return cw(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Ih(s,t,r),f=sw(c);return!F(f[0])||!F(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},rc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yi=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ma(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function ic(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Br(Br({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Dh(e,t){if(e)return String(e);if(typeof t=="string")return t}var dw=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},vw=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,Wt=e=>e.layout.height,hw=e=>e.layout.scale,Nh=e=>e.layout.margin,Wa=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ua=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),pw="data-recharts-item-index",mw="data-recharts-item-id",qn=60;function ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(r),!0).forEach(function(n){yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yw(e,t,r){return(t=gw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=bw(e,"string");return typeof t=="symbol"?t:t+""}function bw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xw=e=>e.brush.height;function ww(e){var t=Ua(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:qn;return r+i}return r},0)}function Ow(e){var t=Ua(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:qn;return r+i}return r},0)}function Pw(e){var t=Wa(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Aw(e){var t=Wa(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ge=A([Ft,Wt,Nh,xw,ww,Ow,Pw,Aw,th,qb],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=pi(pi({},f),c),v=d.bottom;d.bottom+=n,d=tw(d,l,s);var p=e-d.left-d.right,m=t-d.top-d.bottom;return pi(pi({brushBottom:v},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Sw=A(ge,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ll=A(Ft,Wt,(e,t)=>({x:0,y:0,width:e,height:t})),_w=h.createContext(null),Ne=()=>h.useContext(_w)!=null,Ka=e=>e.brush,Ha=A([Ka,ge,Nh],(e,t,r)=>({height:e.height,x:$(e.x)?e.x:t.left,y:$(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:$(e.width)?e.width:t.width}));function Ew(e,t,{signal:r,edges:n}={}){let i,a=null;const o=n!=null&&n.includes("leading"),u=n==null||n.includes("trailing"),l=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},s=()=>{u&&l(),v()};let c=null;const f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},v=()=>{d(),i=void 0,a=null},p=()=>{l()},m=function(...y){if(r?.aborted)return;i=this,a=y;const g=c==null;f(),o&&g&&l()};return m.schedule=f,m.cancel=v,m.flush=p,r?.addEventListener("abort",v,{once:!0}),m}function Cw(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:a}=r,o=Array(2);n&&(o[0]="leading"),i&&(o[1]="trailing");let u,l=null;const s=Ew(function(...d){u=e.apply(this,d),l=null},t,{edges:o}),c=function(...d){return a!=null&&(l===null&&(l=Date.now()),Date.now()-l>=a)?((n||i)&&(u=e.apply(this,d)),l=Date.now(),s.cancel(),s.schedule(),u):(s.apply(this,d),u)},f=()=>(s.flush(),u);return c.cancel=s.cancel,c.flush=f,c}function kw(e,t=0,r={}){const{leading:n=!0,trailing:i=!0}=r;return Cw(e,t,{leading:n,maxWait:t,trailing:i})}var Gi=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},yt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},$h=(e,t,r)=>{var{width:n=yt.width,height:i=yt.height,aspect:a,maxHeight:o}=r,u=wr(n)?e:Number(n),l=wr(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},jw={width:0,height:0,overflow:"visible"},Iw={width:0,overflowX:"visible"},Mw={height:0,overflowY:"visible"},Tw={},Dw=e=>{var{width:t,height:r}=e,n=wr(t),i=wr(r);return n&&i?jw:n?Iw:i?Mw:Tw};function Nw(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=yt.width,a=yt.height):i===void 0?i=n&&n>0?void 0:yt.width:a===void 0&&(a=n&&n>0?void 0:yt.height),{width:i,height:a}}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fu.apply(null,arguments)}function oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oc(Object(r),!0).forEach(function(n){$w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $w(e,t,r){return(t=Rw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(e){var t=Lw(e,"string");return typeof t=="symbol"?t:t+""}function Lw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rh=h.createContext(yt.initialDimension);function zw(e){return Ot(e.width)&&Ot(e.height)}function Lh(e){var{children:t,width:r,height:n}=e,i=h.useMemo(()=>({width:r,height:n}),[r,n]);return zw(i)?h.createElement(Rh.Provider,{value:i},t):null}var sl=()=>h.useContext(Rh),Bw=h.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=yt.initialDimension,width:i,height:a,minWidth:o=yt.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=yt.debounce,id:f,className:d,onResize:v,style:p={}}=e,m=h.useRef(null),y=h.useRef();y.current=v,h.useImperativeHandle(t,()=>m.current);var[g,b]=h.useState({containerWidth:n.width,containerHeight:n.height}),x=h.useCallback((E,I)=>{b(M=>{var k=Math.round(E),_=Math.round(I);return M.containerWidth===k&&M.containerHeight===_?M:{containerWidth:k,containerHeight:_}})},[]);h.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Er;var E=_=>{var C,R=_[0];if(R!=null){var{width:z,height:W}=R.contentRect;x(z,W),(C=y.current)===null||C===void 0||C.call(y,z,W)}};c>0&&(E=kw(E,c,{trailing:!0,leading:!1}));var I=new ResizeObserver(E),{width:M,height:k}=m.current.getBoundingClientRect();return x(M,k),I.observe(m.current),()=>{I.disconnect()}},[x,c]);var{containerWidth:w,containerHeight:P}=g;Gi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=$h(w,P,{width:i,height:a,aspect:r,maxHeight:l});return Gi(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
1
|
+
import{r as h,V as ee,ai as Ku,A as mv,aj as Pg,U as Ag,c as Hu,o as lr,j as pe}from"./inertia-FoqYZAk8.js";var Sg=["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"];function qu(e){if(typeof e!="string")return!1;var t=Sg;return t.includes(e)}var _g=["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"],Eg=new Set(_g);function yv(e){return typeof e!="string"?!1:Eg.has(e)}function gv(e){return typeof e=="string"&&e.startsWith("data-")}function Dt(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yv(r)||gv(r))&&(t[r]=e[r]);return t}function Yu(e){if(e==null)return null;if(h.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Dt(t)}return typeof e=="object"&&!Array.isArray(e)?Dt(e):null}function De(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yv(r)||gv(r)||qu(r))&&(t[r]=e[r]);return t}function y2(e){return e==null?null:h.isValidElement(e)?De(e.props):typeof e=="object"&&!Array.isArray(e)?De(e):null}var Cg=["children","width","height","viewBox","className","style","title","desc"];function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(null,arguments)}function kg(e,t){if(e==null)return{};var r,n,i=jg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bv=h.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=kg(e,Cg),f=a||{width:n,height:i,x:0,y:0},d=ee("recharts-surface",o);return h.createElement("svg",Ho({},De(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),h.createElement("title",null,l),h.createElement("desc",null,s),r)}),Ig=["children","className"];function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qo.apply(null,arguments)}function Mg(e,t){if(e==null)return{};var r,n,i=Tg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ft=h.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Mg(e,Ig),a=ee("recharts-layer",n);return h.createElement("g",qo({className:a},De(i),{ref:t}),r)}),Dg=h.createContext(null);function J(e){return function(){return e}}const xv=Math.cos,Mi=Math.sin,vt=Math.sqrt,Ti=Math.PI,Ea=2*Ti,Yo=Math.PI,Go=2*Yo,sr=1e-6,Ng=Go-sr;function wv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $g(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return wv;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Rg{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?wv:$g(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>sr)if(!(Math.abs(f*l-s*c)>sr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,p=i-u,m=l*l+s*s,y=v*v+p*p,g=Math.sqrt(m),b=Math.sqrt(d),x=a*Math.tan((Yo-Math.acos((m+d-y)/(2*g*b)))/2),w=x/b,P=x/g;Math.abs(w-1)>sr&&this._append`L${t+w*c},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*v>c*p)},${this._x1=t+P*l},${this._y1=r+P*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>sr||Math.abs(this._y1-c)>sr)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Go+Go),d>Ng?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>sr&&this._append`A${n},${n},0,${+(d>=Yo)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Gu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Rg(t)}function Vu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ov(e){this._context=e}Ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ca(e){return new Ov(e)}function Pv(e){return e[0]}function Av(e){return e[1]}function Sv(e,t){var r=J(!0),n=null,i=Ca,a=null,o=Gu(u);e=typeof e=="function"?e:e===void 0?Pv:J(e),t=typeof t=="function"?t:t===void 0?Av:J(t);function u(l){var s,c=(l=Vu(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:J(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:J(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:J(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function si(e,t,r){var n=null,i=J(!0),a=null,o=Ca,u=null,l=Gu(s);e=typeof e=="function"?e:e===void 0?Pv:J(+e),t=typeof t=="function"?t:J(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Av:J(+r);function s(f){var d,v,p,m=(f=Vu(f)).length,y,g=!1,b,x=new Array(m),w=new Array(m);for(a==null&&(u=o(b=l())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=v;--p)u.point(x[p],w[p]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(y,d,f),w[d]=+t(y,d,f),u.point(n?+n(y,d,f):x[d],r?+r(y,d,f):w[d]))}if(b)return u=null,b+""||null}function c(){return Sv().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:J(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:J(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:J(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:J(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:J(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:J(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:J(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class _v{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Lg(e){return new _v(e,!0)}function zg(e){return new _v(e,!1)}const Xu={draw(e,t){const r=vt(t/Ti);e.moveTo(r,0),e.arc(0,0,r,0,Ea)}},Bg={draw(e,t){const r=vt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Ev=vt(1/3),Fg=Ev*2,Wg={draw(e,t){const r=vt(t/Fg),n=r*Ev;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ug={draw(e,t){const r=vt(t),n=-r/2;e.rect(n,n,r,r)}},Kg=.8908130915292852,Cv=Mi(Ti/10)/Mi(7*Ti/10),Hg=Mi(Ea/10)*Cv,qg=-xv(Ea/10)*Cv,Yg={draw(e,t){const r=vt(t*Kg),n=Hg*r,i=qg*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ea*a/5,u=xv(o),l=Mi(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},ho=vt(3),Gg={draw(e,t){const r=-vt(t/(ho*3));e.moveTo(0,r*2),e.lineTo(-ho*r,-r),e.lineTo(ho*r,-r),e.closePath()}},Qe=-.5,Je=vt(3)/2,Vo=1/vt(12),Vg=(Vo/2+1)*3,Xg={draw(e,t){const r=vt(t/Vg),n=r/2,i=r*Vo,a=n,o=r*Vo+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Qe*n-Je*i,Je*n+Qe*i),e.lineTo(Qe*a-Je*o,Je*a+Qe*o),e.lineTo(Qe*u-Je*l,Je*u+Qe*l),e.lineTo(Qe*n+Je*i,Qe*i-Je*n),e.lineTo(Qe*a+Je*o,Qe*o-Je*a),e.lineTo(Qe*u+Je*l,Qe*l-Je*u),e.closePath()}};function Zg(e,t){let r=null,n=Gu(i);e=typeof e=="function"?e:J(e||Xu),t=typeof t=="function"?t:J(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:J(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:J(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Di(){}function Ni(e,t,r){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+r)/6)}function kv(e){this._context=e}kv.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:Ni(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qg(e){return new kv(e)}function jv(e){this._context=e}jv.prototype={areaStart:Di,areaEnd:Di,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jg(e){return new jv(e)}function Iv(e){this._context=e}Iv.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ni(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function e0(e){return new Iv(e)}function Mv(e){this._context=e}Mv.prototype={areaStart:Di,areaEnd:Di,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 t0(e){return new Mv(e)}function As(e){return e<0?-1:1}function Ss(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(As(a)+As(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function _s(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function po(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function $i(e){this._context=e}$i.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:po(this,this._t0,_s(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=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,po(this,_s(this,r=Ss(this,e,t)),r);break;default:po(this,this._t0,r=Ss(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Tv(e){this._context=new Dv(e)}(Tv.prototype=Object.create($i.prototype)).point=function(e,t){$i.prototype.point.call(this,t,e)};function Dv(e){this._context=e}Dv.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function r0(e){return new $i(e)}function n0(e){return new Tv(e)}function Nv(e){this._context=e}Nv.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Es(e),i=Es(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Es(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function i0(e){return new Nv(e)}function ka(e,t){this._context=e,this._t=t}ka.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function a0(e){return new ka(e,.5)}function o0(e){return new ka(e,0)}function u0(e){return new ka(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Xo(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function l0(e,t){return e[t]}function s0(e){const t=[];return t.key=e,t}function c0(){var e=J([]),t=Xo,r=xr,n=l0;function i(a){var o=Array.from(e.apply(this,arguments),s0),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=Vu(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:J(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:J(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xo:typeof a=="function"?a:J(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function f0(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function d0(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}xr(e,t)}}function v0(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],y=m[n][1]||0,g=m[n-1][1]||0;v+=y-g}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}function Zo(e){return e==="__proto__"}const h0=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function $v(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e===""||e.startsWith(".")||e.endsWith(".")?!1:h0.test(e);default:return!1}}function ja(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function Zu(e){return typeof e=="symbol"||e instanceof Symbol}function p0(e){return e==null?"":Rv(e)}function Rv(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Rv).join(",");if(Zu(e))return e.toString();const t=e+"";return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Qu(e){if(Array.isArray(e))return e.map(ja);if(typeof e=="symbol")return[e];e=p0(e);const t=[],r=e.length;if(r===0)return t;let n=0,i="",a="",o=!1,u=!1;const l=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push("");n<r;){const s=e[n];if(a)s==="\\"&&n+1<r?(n++,i+=e[n]):s===a?a="":i+=s;else if(o)if(s==='"'||s==="'")a=s,u=!0;else if(s==="]"){if(o=!1,!u&&i.includes(".")&&!l.test(i)){const c=i.split(".");for(let f=0;f<c.length;f++)c[f]!==""&&t.push(c[f])}else t.push(i);i=""}else i+=s;else if(s==="[")o=!0,u=!1,i&&(t.push(i),i="");else if(s==="."){i&&(t.push(i),i="");const c=e[n+1];(c===void 0||c===".")&&t.push("")}else i+=s;n++}return i&&t.push(i),t}function Nt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Zo(t))return r;const n=e[t];return n===void 0?$v(t)&&!Object.hasOwn(e,t)?Nt(e,Qu(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=ja(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return m0(e,t,r);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),Zo(t))return r;const n=e[t];return n===void 0?r:n}}}function m0(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||Zo(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}var y0=4;function Xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y0,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+Xt(u)+a:i+a},"")}var Be=e=>e===0?0:e>0?1:-1,wt=e=>typeof e=="number"&&e!=+e,wr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!wt(e),nt=e=>$(e)||typeof e=="string",g0=0,Cn=e=>{var t=++g0;return"".concat(e||"").concat(t)},dt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var a;if(wr(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return wt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Lv=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return $(e)&&$(t)?Xt(e+r*(t-e)):t}function zv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Nt(n,t))===r)}var le=e=>e===null||typeof e>"u",Un=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Fe(e){return e!=null}function Er(){}var b0=["type","size","sizeType"];function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(null,arguments)}function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cs(Object(r),!0).forEach(function(n){x0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x0(e,t,r){return(t=w0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w0(e){var t=O0(e,"string");return typeof t=="symbol"?t:t+""}function O0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P0(e,t){if(e==null)return{};var r,n,i=A0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function A0(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Bv={symbolCircle:Xu,symbolCross:Bg,symbolDiamond:Wg,symbolSquare:Ug,symbolStar:Yg,symbolTriangle:Gg,symbolWye:Xg},S0=Math.PI/180,_0=e=>{var t="symbol".concat(Un(e));return Bv[t]||Xu},E0=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*S0;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},C0=(e,t)=>{Bv["symbol".concat(Un(e))]=t},Fv=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=P0(e,b0),a=ks(ks({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=_0(o),v=Zg().type(d).size(E0(r,n,o)),p=v();if(p!==null)return p},{className:l,cx:s,cy:c}=a,f=De(a);return $(s)&&$(c)&&$(r)?h.createElement("path",Qo({},f,{className:ee("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Fv.registerSymbol=C0;var Wv=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,k0=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(h.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{qu(i)&&typeof r[i]=="function"&&(n[i]=(a=>r[i](r,a)))}),n},j0=(e,t,r)=>n=>(e(t,r,n),null),Ju=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];qu(i)&&typeof a=="function"&&(n||(n={}),n[i]=j0(a,t,r))}),n};function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?js(Object(r),!0).forEach(function(n){M0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M0(e,t,r){return(t=T0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T0(e){var t=D0(e,"string");return typeof t=="symbol"?t:t+""}function D0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ue(e,t){var r=I0({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}function N0(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}function $0(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function Uv(e){return e}function R0(e){return Number.isSafeInteger(e)&&e>=0}function el(e){return e!=null&&typeof e!="function"&&R0(e.length)}function L0(e){return function(t){return Nt(t,e)}}function Kv(e){return e==null||typeof e!="object"&&typeof e!="function"}function z0(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function B0(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ia(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const F0="[object RegExp]",Hv="[object String]",qv="[object Number]",Yv="[object Boolean]",Gv="[object Arguments]",W0="[object Symbol]",U0="[object Date]",K0="[object Map]",H0="[object Set]",q0="[object Array]",Y0="[object ArrayBuffer]",G0="[object Object]",V0="[object DataView]",X0="[object Uint8Array]",Z0="[object Uint8ClampedArray]",Q0="[object Uint16Array]",J0="[object Uint32Array]",eb="[object Int8Array]",tb="[object Int16Array]",rb="[object Int32Array]",nb="[object Float32Array]",ib="[object Float64Array]",Is=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function ab(e){return typeof Is.Buffer<"u"&&Is.Buffer.isBuffer(e)}function ob(e,t){return dr(e,void 0,e,new Map,t)}function dr(e,t,r,n=new Map,i=void 0){const a=i?.(e,t,r,n);if(a!==void 0)return a;if(Kv(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const o=new Array(e.length);n.set(e,o);for(let u=0;u<e.length;u++)o[u]=dr(e[u],u,r,n,i);return Object.hasOwn(e,"index")&&(o.index=e.index),Object.hasOwn(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){const o=new Map;n.set(e,o);for(const[u,l]of e)o.set(u,dr(l,u,r,n,i));return o}if(e instanceof Set){const o=new Set;n.set(e,o);for(const u of e)o.add(dr(u,void 0,r,n,i));return o}if(ab(e))return e.subarray();if(z0(e)){const o=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,o);for(let u=0;u<e.length;u++)o[u]=dr(e[u],u,r,n,i);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,o),ut(o,e,r,n,i),o}if(typeof File<"u"&&e instanceof File){const o=new File([e],e.name,{type:e.type});return n.set(e,o),ut(o,e,r,n,i),o}if(typeof Blob<"u"&&e instanceof Blob){const o=new Blob([e],{type:e.type});return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof Error){const o=structuredClone(e);return n.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,o.constructor=e.constructor,ut(o,e,r,n,i),o}if(e instanceof Boolean){const o=new Boolean(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof Number){const o=new Number(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(e instanceof String){const o=new String(e.valueOf());return n.set(e,o),ut(o,e,r,n,i),o}if(typeof e=="object"&&ub(e)){const o=Object.create(Object.getPrototypeOf(e));return n.set(e,o),ut(o,e,r,n,i),o}return e}function ut(e,t,r=e,n,i){const a=[...Object.keys(t),...B0(t)];for(let o=0;o<a.length;o++){const u=a[o],l=Object.getOwnPropertyDescriptor(e,u);(l==null||l.writable)&&(e[u]=dr(t[u],u,r,n,i))}}function ub(e){switch(Ia(e)){case Gv:case q0:case Y0:case V0:case Yv:case U0:case nb:case ib:case eb:case tb:case rb:case K0:case qv:case G0:case F0:case H0:case Hv:case W0:case X0:case Z0:case Q0:case J0:return!0;default:return!1}}function lb(e){return dr(e,void 0,e,new Map,void 0)}function _i(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vv(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Xv(e,t,r){return typeof r!="function"?Xv(e,t,()=>{}):Jo(e,t,function n(i,a,o,u,l,s){const c=r(i,a,o,u,l,s);return c!==void 0?!!c:Jo(i,a,n,s,!1)},new Map,!0)}function Jo(e,t,r,n,i=!1){if(t===e)return!0;switch(typeof t){case"object":return sb(e,t,r,n,i);case"function":return Object.keys(t).length>0?Jo(e,{...t},r,n,i):_i(e,t);default:return Vv(e)&&i?typeof t=="string"?t==="":!0:_i(e,t)}}function sb(e,t,r,n,i=!1){if(t==null)return!0;if(Array.isArray(t))return Zv(e,t,r,n);if(t instanceof Map)return cb(e,t,r,n);if(t instanceof Set)return fb(e,t,r,n);const a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Kv(e)&&(e=Object(e));else{const o=Ia(e);if(o!=="[object Object]"&&o!=="[object Arguments]")return!1}if(a.length===0)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let o=0;o<a.length;o++){const u=a[o];if(!(u in e)||t[u]===void 0&&e[u]!==void 0||t[u]===null&&e[u]!==null||!r(e[u],t[u],u,e,t,n))return!1}return!0}finally{n?.delete(t)}}function cb(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(r(e.get(i),a,i,e,t,n)===!1)return!1;return!0}function Zv(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let u=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;const s=e[l];let c=!1;if(r(s,o,a,e,t,n)&&(c=!0),c){i.add(l),u=!0;break}}if(!u)return!1}return!0}function fb(e,t,r,n){return t.size===0?!0:e instanceof Set?Zv([...e],[...t],r,n):!1}function Qv(e,t){return Xv(e,t,()=>{})}function db(e){return e=lb(e),t=>Qv(t,e)}function vb(e,t){return ob(e,(r,n,i,a)=>{if(typeof e=="object"){if(Ia(e)==="[object Object]"&&typeof e.constructor!="function"){const o={};return a.set(e,o),ut(o,e,i,a),o}switch(Object.prototype.toString.call(e)){case qv:case Hv:case Yv:{const o=new e.constructor(e?.valueOf());return ut(o,e),o}case Gv:{const o={};return ut(o,e),o.length=e.length,o[Symbol.iterator]=e[Symbol.iterator],o}default:return}}})}function hb(e){return vb(e)}const pb=/^(?:0|[1-9]\d*)$/;function Jv(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return pb.test(e)}}function mb(e){return e!==null&&typeof e=="object"&&Ia(e)==="[object Arguments]"}function yb(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&$v(t)&&!(t in Object(e))?r=Qu(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){const a=ja(r[i]);if((n==null||!Object.hasOwn(n,a))&&!((Array.isArray(n)||mb(n))&&Jv(a)&&Number(a)<n.length))return!1;n=n[a]}return!0}function gb(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=ja(e);break}return t=hb(t),function(r){const n=Nt(r,e);return n===void 0?yb(r,e):t===void 0?n===void 0:Qv(n,t)}}function bb(e){if(e==null)return Uv;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?gb(e[0],e[1]):db(e);default:return L0(e)}}function xb(e){return e===0?0:e}function Ms(e,t=Uv){return el(e)?N0(Array.from(e),$0(bb(t),1)).map(xb):[]}function wb(e,t,r){return t===!0?Ms(e,r):typeof t=="function"?Ms(e,t):e}var mo={exports:{}},yo={},go={exports:{}},bo={};var Ts;function Ob(){if(Ts)return bo;Ts=1;var e=Ku();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function u(f,d){var v=d(),p=n({inst:{value:v,getSnapshot:d}}),m=p[0].inst,y=p[1];return a(function(){m.value=v,m.getSnapshot=d,l(m)&&y({inst:m})},[f,v,d]),i(function(){return l(m)&&y({inst:m}),f(function(){l(m)&&y({inst:m})})},[f]),o(v),v}function l(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function s(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return bo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,bo}var Ds;function Pb(){return Ds||(Ds=1,go.exports=Ob()),go.exports}var Ns;function Ab(){if(Ns)return yo;Ns=1;var e=Ku(),t=Pb();function r(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,l=e.useDebugValue;return yo.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function g(O){if(!b){if(b=!0,x=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return w=S}return w=O}if(S=w,n(x,O))return S;var E=d(O);return v!==void 0&&v(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=f===void 0?null:f;return[function(){return g(c())},P===null?void 0:function(){return g(P())}]},[c,f,d,v]);var y=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=y},[y]),l(y),y},yo}var $s;function Sb(){return $s||($s=1,mo.exports=Ab()),mo.exports}var _b=Sb(),tl=h.createContext(null),Eb=e=>e,ie=()=>{var e=h.useContext(tl);return e?e.store.dispatch:Eb},Ei=()=>{},Cb=()=>Ei,kb=(e,t)=>e===t;function L(e){var t=h.useContext(tl),r=h.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ei,[t,e]);return _b.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Cb,t?t.store.getState:Ei,t?t.store.getState:Ei,r,kb)}function jb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ib(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Mb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Rs=e=>Array.isArray(e)?e:[e];function Tb(e){const t=Array.isArray(e[0])?e[0]:e;return Mb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Db(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Nb=class{constructor(e){this.value=e}deref(){return this.value}},$b=typeof WeakRef<"u"?WeakRef:Nb,Rb=0,Ls=1;function ci(){return{s:Rb,v:void 0,o:null,p:null}}function eh(e,t={}){let r=ci();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=u.o;p===null&&(u.o=p=new WeakMap);const m=p.get(v);m===void 0?(u=ci(),p.set(v,u)):u=m}else{let p=u.p;p===null&&(u.p=p=new Map);const m=p.get(v);m===void 0?(u=ci(),p.set(v,u)):u=m}}const s=u;let c;if(u.s===Ls)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new $b(c):c}return s.s=Ls,s.v=c,c}return o.clearCache=()=>{r=ci(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Lb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),jb(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=eh,argsMemoizeOptions:p=[]}=c,m=Rs(d),y=Rs(p),g=Tb(i),b=f(function(){return a++,s.apply(null,arguments)},...m),x=v(function(){o++;const P=Db(g,arguments);return u=b.apply(null,P),u},...y);return Object.assign(x,{resultFunc:s,memoizedResultFunc:b,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=Lb(eh),zb=Object.assign((e,t=A)=>{Ib(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>zb});function Bb(e,t=1){const r=[],n=Math.floor(t),i=(a,o)=>{for(let u=0;u<a.length;u++){const l=a[u];Array.isArray(l)&&o<n?i(l,o+1):r.push(l)}};return i(e,0),r}function eu(e,t,r){return Vv(r)&&(typeof t=="number"&&el(r)&&Jv(t)&&t<r.length||typeof t=="string"&&t in r)?_i(r[t],e):!1}function zs(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const Fb=(e,t,r)=>{if(e!==t){const n=zs(e),i=zs(t);if(n===i&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?i-n:n-i}return 0},Wb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ub=/^\w*$/;function Kb(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Zu(e)?!0:typeof e=="string"&&(Ub.test(e)||!Wb.test(e))||t!=null}function Hb(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=el(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(u=>String(u));const i=(u,l)=>{let s=u,c=0;for(;c<l.length&&s!=null;++c)s=s[l[c]];return c>0&&c===l.length?s:void 0},a=(u,l)=>{if(u==null)return l;if(l!=null)return typeof u=="object"&&"key"in u?Object.hasOwn(l,u.key)?l[u.key]:i(l,u.path):typeof u=="function"?u(l):Array.isArray(u)?i(l,u):l[u]},o=t.map(u=>(Array.isArray(u)&&u.length===1&&(u=u[0]),u==null||typeof u=="function"||Array.isArray(u)||Kb(u)?u:{key:u,path:Qu(u)}));return e.map(u=>({original:u,criteria:o.map(l=>a(l,u))})).slice().sort((u,l)=>{for(let s=0;s<o.length;s++){const c=Fb(u.criteria[s],l.criteria[s],r[s]);if(c!==0)return c}return 0}).map(u=>u.original)}function Ma(e,...t){const r=t.length;return r>1&&eu(e,t[0],t[1])?t=[]:r>2&&eu(t[0],t[1],t[2])&&(t=[t[0]]),Hb(e,Bb(t),["asc"])}var th=e=>e.legend.settings,qb=e=>e.legend.size,Yb=e=>e.legend.payload;A([Yb,th],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ma(n,r):n});var fi=1;function Gb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=h.useState({height:0,left:0,top:0,width:0}),n=h.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>fi||Math.abs(o.left-t.left)>fi||Math.abs(o.top-t.top)>fi||Math.abs(o.width-t.width)>fi)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Oe(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 Vb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bs=Vb,xo=()=>Math.random().toString(36).substring(7).split("").join("."),Xb={INIT:`@@redux/INIT${xo()}`,REPLACE:`@@redux/REPLACE${xo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xo()}`},Ri=Xb;function rl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function rh(e,t,r){if(typeof e!="function")throw new Error(Oe(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(rh)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function c(){if(l)throw new Error(Oe(3));return i}function f(y){if(typeof y!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let g=!0;s();const b=u++;return o.set(b,y),function(){if(g){if(l)throw new Error(Oe(6));g=!1,s(),o.delete(b),a=null}}}function d(y){if(!rl(y))throw new Error(Oe(7));if(typeof y.type>"u")throw new Error(Oe(8));if(typeof y.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(b=>{b()}),y}function v(y){if(typeof y!="function")throw new Error(Oe(10));n=y,d({type:Ri.REPLACE})}function p(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(Oe(11));function b(){const w=g;w.next&&w.next(c())}return b(),{unsubscribe:y(b)}},[Bs](){return this}}}return d({type:Ri.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Bs]:p}}function Zb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ri.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function nh(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{Zb(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let l=!1;const s={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],v=o[f],p=d(v,u);if(typeof p>"u")throw u&&u.type,new Error(Oe(14));s[f]=p,l=l||p!==v}return l=l||n.length!==Object.keys(o).length,l?s:o}}function Li(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Qb(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Oe(15))};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=Li(...u)(i.dispatch),{...i,dispatch:a}}}function ih(e){return rl(e)&&"type"in e&&typeof e.type=="string"}var ah=Symbol.for("immer-nothing"),Fs=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function lt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ge=Object,Hr=Ge.getPrototypeOf,zi="constructor",Ta="prototype",tu="configurable",Bi="enumerable",Ci="writable",kn="value",$t=e=>!!e&&!!e[ke];function it(e){return e?oh(e)||Na(e)||!!e[Fs]||!!e[zi]?.[Fs]||$a(e)||Ra(e):!1}var Jb=Ge[Ta][zi].toString(),Ws=new WeakMap;function oh(e){if(!e||!nl(e))return!1;const t=Hr(e);if(t===null||t===Ge[Ta])return!0;const r=Ge.hasOwnProperty.call(t,zi)&&t[zi];if(r===Object)return!0;if(!zr(r))return!1;let n=Ws.get(r);return n===void 0&&(n=Function.toString.call(r),Ws.set(r,n)),n===Jb}function Da(e,t,r=!0){Kn(e)===0?(r?Reflect.ownKeys(e):Ge.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Kn(e){const t=e[ke];return t?t.type_:Na(e)?1:$a(e)?2:Ra(e)?3:0}var wo=(e,t,r=Kn(e))=>r===2?e.has(t):Ge[Ta].hasOwnProperty.call(e,t),ru=(e,t,r=Kn(e))=>r===2?e.get(t):e[t],Fi=(e,t,r,n=Kn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ex(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Na=Array.isArray,$a=e=>e instanceof Map,Ra=e=>e instanceof Set,nl=e=>typeof e=="object",zr=e=>typeof e=="function",Oo=e=>typeof e=="boolean";function tx(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ct=e=>e.copy_||e.base_,il=e=>e.modified_?e.copy_:e.base_;function nu(e,t){if($a(e))return new Map(e);if(Ra(e))return new Set(e);if(Na(e))return Array[Ta].slice.call(e);const r=oh(e);if(t===!0||t==="class_only"&&!r){const n=Ge.getOwnPropertyDescriptors(e);delete n[ke];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ci]===!1&&(u[Ci]=!0,u[tu]=!0),(u.get||u.set)&&(n[o]={[tu]:!0,[Ci]:!0,[Bi]:u[Bi],[kn]:e[o]})}return Ge.create(Hr(e),n)}else{const n=Hr(e);if(n!==null&&r)return{...e};const i=Ge.create(n);return Ge.assign(i,e)}}function al(e,t=!1){return La(e)||$t(e)||!it(e)||(Kn(e)>1&&Ge.defineProperties(e,{set:di,add:di,clear:di,delete:di}),Ge.freeze(e),t&&Da(e,(r,n)=>{al(n,!0)},!1)),e}function rx(){lt(2)}var di={[kn]:rx};function La(e){return e===null||!nl(e)?!0:Ge.isFrozen(e)}var Wi="MapSet",iu="Patches",Us="ArrayMethods",uh={};function Or(e){const t=uh[e];return t||lt(0,e),t}var Ks=e=>!!uh[e],jn,lh=()=>jn,nx=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ks(Wi)?Or(Wi):void 0,arrayMethodsPlugin_:Ks(Us)?Or(Us):void 0});function Hs(e,t){t&&(e.patchPlugin_=Or(iu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){ou(e),e.drafts_.forEach(ix),e.drafts_=null}function ou(e){e===jn&&(jn=e.parent_)}var qs=e=>jn=nx(jn,e);function ix(e){const t=e[ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ys(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ke].modified_&&(au(t),lt(4)),it(e)&&(e=Gs(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[ke].base_,e,t)}else e=Gs(t,r);return ax(t,e,!0),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ah?e:void 0}function Gs(e,t){if(La(t))return t;const r=t[ke];if(!r)return Ui(t,e.handledSet_,e);if(!za(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);fh(r,e)}return r.copy_}function ax(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&al(t,r)}function sh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var za=(e,t)=>e.scope_===t,ox=[];function ch(e,t,r,n){const i=Ct(e),a=e.type_;if(n!==void 0&&ru(i,n,a)===t){Fi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Da(i,(l,s)=>{if($t(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??ox;for(const u of o)Fi(i,u,r,a)}function ux(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!za(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=il(a);ch(e,a.draft_??a,o,r),fh(a,i)})}function fh(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}sh(e)}}function lx(e,t,r){const{scope_:n}=e;if($t(r)){const i=r[ke];za(i,n)&&i.callbacks_.push(function(){ki(e);const o=il(i);ch(e,r,o,t)})}else it(r)&&e.callbacks_.push(function(){const a=Ct(e);e.type_===3?a.has(r)&&Ui(r,n.handledSet_,n):ru(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ui(ru(e.copy_,t,e.type_),n.handledSet_,n)})}function Ui(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||$t(e)||t.has(e)||!it(e)||La(e)||(t.add(e),Da(e,(n,i)=>{if($t(i)){const a=i[ke];if(za(a,r)){const o=il(a);Fi(e,n,o,e.type_),sh(a)}}else it(i)&&Ui(i,t,r)})),e}function sx(e,t){const r=Na(e),n={type_:r?1:0,scope_:t?t.scope_:lh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ki;r&&(i=[n],a=In);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ki={get(e,t){if(t===ke)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Ct(e);if(!wo(i,t,e.type_))return fx(e,i,t);const a=i[t];if(e.finalized_||!it(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&tx(t))return a;if(a===Po(e.base_,t)||cx(e,t,a)){ki(e);const o=e.type_===1?+t:t,u=lu(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Ct(e)},ownKeys(e){return Reflect.ownKeys(Ct(e))},set(e,t,r){const n=dh(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Po(Ct(e),t),a=i?.[ke];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ex(r,i)&&(r!==void 0||wo(e.base_,t,e.type_)))return!0;ki(e),uu(e)}return e.copy_[t]===r&&(r!==void 0||wo(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),lx(e,t,r)),!0},deleteProperty(e,t){return ki(e),Po(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),uu(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ct(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ci]:!0,[tu]:e.type_!==1||t!=="length",[Bi]:n[Bi],[kn]:r[t]}},defineProperty(){lt(11)},getPrototypeOf(e){return Hr(e.base_)},setPrototypeOf(){lt(12)}},In={};for(let e in Ki){let t=Ki[e];In[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}In.deleteProperty=function(e,t){return In.set.call(this,e,t,void 0)};In.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function Po(e,t){const r=e[ke];return(r?Ct(r):e)[t]}function cx(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!it(r)||r[ke]?!1:e.baseRefs_.has(r)}function fx(e,t,r){const n=dh(t,r);return n?kn in n?n[kn]:n.get?.call(e.draft_):void 0}function dh(e,t){if(!(t in e))return;let r=Hr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Hr(r)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function ki(e){e.copy_||(e.assigned_=new Map,e.copy_=nu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(zr(r)&&!zr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}zr(n)||lt(6),i!==void 0&&!zr(i)&<(7);let a;if(it(r)){const o=qs(this),u=lu(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?au(o):ou(o)}return Hs(o,i),Ys(a,o)}else if(!r||!nl(r)){if(a=n(r),a===void 0&&(a=r),a===ah&&(a=void 0),this.autoFreeze_&&al(a,!0),i){const o=[],u=[];Or(iu).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else lt(1,r)},this.produceWithPatches=(r,n)=>{if(zr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},Oo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Oo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Oo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){it(t)||lt(8),$t(t)&&(t=tt(t));const r=qs(this),n=lu(r,t,void 0);return n[ke].isManual_=!0,ou(r),n}finishDraft(t,r){const n=t&&t[ke];(!n||!n.isManual_)&<(9);const{scope_:i}=n;return Hs(i,r),Ys(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Or(iu).applyPatches_;return $t(t)?i(t,r):this.produce(t,a=>i(a,r))}};function lu(e,t,r,n){const[i,a]=$a(t)?Or(Wi).proxyMap_(t,r):Ra(t)?Or(Wi).proxySet_(t,r):sx(t,r);return(r?.scope_??lh()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?ux(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function tt(e){return $t(e)||lt(10,e),vh(e)}function vh(e){if(!it(e)||La(e))return e;const t=e[ke];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=nu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=nu(e,!0);return Da(r,(i,a)=>{Fi(r,i,vh(a))},n),t&&(t.finalized_=!1),r}var vx=globalThis.Iterator;vx?.from;var hx=new dx,hh=hx.produce;function ph(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var px=ph(),mx=ph,yx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Li:Li.apply(null,arguments)};function Xe(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ve(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>ih(n)&&n.type===e,r}var mh=class An extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,An.prototype)}static get[Symbol.species](){return An}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new An(...t[0].concat(this)):new An(...t.concat(this))}};function Vs(e){return it(e)?hh(e,()=>{}):e}function vi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function gx(e){return typeof e=="boolean"}var bx=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new mh;return r&&(gx(r)?o.push(px):o.push(mx(r.extraArgument))),o},yh="RTK_autoBatch",te=()=>e=>({payload:e,meta:{[yh]:!0}}),Xs=e=>t=>{setTimeout(t,e)},xx=(e,t)=>r=>{let n=!1;const i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(o),r())},a=e(i),o=setTimeout(i,t)},gh=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?xx(window.requestAnimationFrame,100):Xs(10):e.type==="callback"?e.queueNotification:Xs(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[yh],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},wx=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new mh(e);return n&&i.push(gh(typeof n=="object"?n:void 0)),i};function Ox(e){const t=bx(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(rl(r))u=nh(r);else throw new Error(Ve(1));let l;typeof n=="function"?l=n(t):l=t();let s=Li;i&&(s=yx({trace:!1,...typeof i=="object"&&i}));const c=Qb(...l),f=wx(c);let d=typeof o=="function"?o(f):f();const v=s(...d);return rh(u,a,v)}function bh(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ve(28));if(u in t)throw new Error(Ve(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Px(e){return typeof e=="function"}function Ax(e,t){let[r,n,i]=bh(t),a;if(Px(e))a=()=>Vs(e());else{const u=Vs(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if($t(c)){const v=f(c,l);return v===void 0?c:v}else{if(it(c))return hh(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var Sx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_x=(e=21)=>{let t="",r=e;for(;r--;)t+=Sx[Math.random()*64|0];return t},Ex=Symbol.for("rtk-slice-createasyncthunk");function Cx(e,t){return`${e}/${t}`}function kx({creators:e}={}){const t=e?.asyncThunk?.[Ex];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Ve(11));const o=(typeof n.reducers=="function"?n.reducers(Ix()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(x,w){const P=typeof x=="string"?x:x.type;if(!P)throw new Error(Ve(12));if(P in l.sliceCaseReducersByType)throw new Error(Ve(13));return l.sliceCaseReducersByType[P]=w,s},addMatcher(x,w){return l.sliceMatchers.push({matcher:x,reducer:w}),s},exposeAction(x,w){return l.actionCreators[x]=w,s},exposeCaseReducer(x,w){return l.sliceCaseReducersByName[x]=w,s}};u.forEach(x=>{const w=o[x],P={reducerName:x,type:Cx(i,x),createNotation:typeof n.reducers=="function"};Tx(w)?Nx(P,w,s,t):Mx(P,w,s)});function c(){const[x={},w=[],P=void 0]=typeof n.extraReducers=="function"?bh(n.extraReducers):[n.extraReducers],O={...x,...l.sliceCaseReducersByType};return Ax(n.initialState,S=>{for(let E in O)S.addCase(E,O[E]);for(let E of l.sliceMatchers)S.addMatcher(E.matcher,E.reducer);for(let E of w)S.addMatcher(E.matcher,E.reducer);P&&S.addDefaultCase(P)})}const f=x=>x,d=new Map,v=new WeakMap;let p;function m(x,w){return p||(p=c()),p(x,w)}function y(){return p||(p=c()),p.getInitialState()}function g(x,w=!1){function P(S){let E=S[x];return typeof E>"u"&&w&&(E=vi(v,P,y)),E}function O(S=f){const E=vi(d,w,()=>new WeakMap);return vi(E,S,()=>{const I={};for(const[M,k]of Object.entries(n.selectors??{}))I[M]=jx(k,S,()=>vi(v,S,y),w);return I})}return{reducerPath:x,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const b={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:y,...g(a),injectInto(x,{reducerPath:w,...P}={}){const O=w??a;return x.inject({reducerPath:O,reducer:m},P),{...b,...g(O,!0)}}};return b}}function jx(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var je=kx();function Ix(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Mx({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Dx(n))throw new Error(Ve(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Xe(e,o):Xe(e))}function Tx(e){return e._reducerDefinitionType==="asyncThunk"}function Dx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Nx({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ve(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||hi,pending:u||hi,rejected:l||hi,settled:s||hi})}function hi(){}var $x="task",xh="listener",wh="completed",ol="cancelled",Rx=`task-${ol}`,Lx=`task-${wh}`,su=`${xh}-${ol}`,zx=`${xh}-${wh}`,Ba=class{constructor(e){this.code=e,this.message=`${$x} ${ol} (reason: ${e})`}code;name="TaskAbortError";message},ul=(e,t)=>{if(typeof e!="function")throw new TypeError(Ve(32))},Hi=()=>{},Oh=(e,t=Hi)=>(e.catch(t),e),Ph=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),yr=e=>{if(e.aborted)throw new Ba(e.reason)};function Ah(e,t){let r=Hi;return new Promise((n,i)=>{const a=()=>i(new Ba(e.reason));if(e.aborted){a();return}r=Ph(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Hi})}var Bx=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ba?"cancelled":"rejected",error:r}}finally{t?.()}},qi=e=>t=>Oh(Ah(e,t).then(r=>(yr(e),r))),Sh=e=>{const t=qi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Wr}=Object,Zs={},Fa="listenerMiddleware",Fx=(e,t)=>{const r=n=>Ph(e,()=>n.abort(e.reason));return(n,i)=>{ul(n);const a=new AbortController;r(a);const o=Bx(async()=>{yr(e),yr(a.signal);const u=await n({pause:qi(a.signal),delay:Sh(a.signal),signal:a.signal});return yr(a.signal),u},()=>a.abort(Lx));return i?.autoJoin&&t.push(o.catch(Hi)),{result:qi(e)(o),cancel(){a.abort(Rx)}}}},Wx=(e,t)=>{const r=async(n,i)=>{yr(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await Ah(t,Promise.race(u));return yr(t),l}finally{a()}};return((n,i)=>Oh(r(n,i)))},_h=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Xe(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ve(21));return ul(a),{predicate:i,type:t,effect:a}},Eh=Wr(e=>{const{type:t,predicate:r,effect:n}=_h(e);return{id:_x(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ve(22))}}},{withTypes:()=>Eh}),Qs=(e,t)=>{const{type:r,effect:n,predicate:i}=_h(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},cu=e=>{e.pending.forEach(t=>{t.abort(su)})},Ux=(e,t)=>()=>{for(const r of t.keys())cu(r);e.clear()},Js=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Ch=Wr(Xe(`${Fa}/add`),{withTypes:()=>Ch}),Kx=Xe(`${Fa}/removeAll`),kh=Wr(Xe(`${Fa}/remove`),{withTypes:()=>kh}),Hx=(...e)=>{console.error(`${Fa}/error`,...e)},Hn=(e={})=>{const t=new Map,r=new Map,n=v=>{const p=r.get(v)??0;r.set(v,p+1)},i=v=>{const p=r.get(v)??1;p===1?r.delete(v):r.set(v,p-1)},{extra:a,onError:o=Hx}=e;ul(o);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),p=>{v.unsubscribe(),p?.cancelActive&&cu(v)}),l=(v=>{const p=Qs(t,v)??Eh(v);return u(p)});Wr(l,{withTypes:()=>l});const s=v=>{const p=Qs(t,v);return p&&(p.unsubscribe(),v.cancelActive&&cu(p)),!!p};Wr(s,{withTypes:()=>s});const c=async(v,p,m,y)=>{const g=new AbortController,b=Wx(l,g.signal),x=[];try{v.pending.add(g),n(v),await Promise.resolve(v.effect(p,Wr({},m,{getOriginalState:y,condition:(w,P)=>b(w,P).then(Boolean),take:b,delay:Sh(g.signal),pause:qi(g.signal),extra:a,signal:g.signal,fork:Fx(g.signal,x),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((w,P,O)=>{w!==g&&(w.abort(su),O.delete(w))})},cancel:()=>{g.abort(su),v.pending.delete(g)},throwIfCancelled:()=>{yr(g.signal)}})))}catch(w){w instanceof Ba||Js(o,w,{raisedBy:"effect"})}finally{await Promise.all(x),g.abort(zx),i(v),v.pending.delete(g)}},f=Ux(t,r);return{middleware:v=>p=>m=>{if(!ih(m))return p(m);if(Ch.match(m))return l(m.payload);if(Kx.match(m)){f();return}if(kh.match(m))return s(m.payload);let y=v.getState();const g=()=>{if(y===Zs)throw new Error(Ve(23));return y};let b;try{if(b=p(m),t.size>0){const x=v.getState(),w=Array.from(t.values());for(const P of w){let O=!1;try{O=P.predicate(m,x,y)}catch(S){O=!1,Js(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,g)}}}finally{y=Zs}return b},startListening:l,stopListening:s,clearListeners:f}};function Ve(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 qx={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},jh=je({name:"chartLayout",initialState:qx,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Yx,setLayout:Gx,setChartSize:Vx,setScale:Xx}=jh.actions,Zx=jh.reducer;function Ih(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function F(e){return Number.isFinite(e)}function Ot(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ec(Object(r),!0).forEach(function(n){Qx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qx(e,t,r){return(t=Jx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e){var t=ew(e,"string");return typeof t=="symbol"?t:t+""}function ew(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ye(e,t,r){return le(e)||le(t)?r:nt(t)?Nt(e,t,r):typeof t=="function"?t(e):r}var tw=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&$(e[a]))return Br(Br({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&$(e[o]))return Br(Br({},e),{},{[o]:e[o]+(i||0)})}return e},er=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Mh=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Th=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var p=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=v==="angleAxis"&&a&&a.length>=2?Be(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,b)=>{var x=n?n.indexOf(g):g,w=o.map(x);return F(w)?{coordinate:w+m,value:g,offset:m,index:b}:null}).filter(Fe);return y}return l&&s?s.map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:g,index:b,offset:m}:null}).filter(Fe):o.ticks&&c!=null?o.ticks(c).map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:g,index:b,offset:m}:null}).filter(Fe):o.domain().map((g,b)=>{var x=o.map(g);return F(x)?{coordinate:x+m,value:n?n[g]:g,index:b,offset:m}:null}).filter(Fe)},rw=(e,t)=>{if(!t||t.length!==2||!$(t[0])||!$(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!$(e[0])||e[0]<r)&&(i[0]=r),(!$(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},nw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=wt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},iw=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],l=u?.[i];if(l!=null){var s=wt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},aw={sign:nw,expand:f0,none:xr,silhouette:d0,wiggle:v0,positive:iw},ow=(e,t,r)=>{var n,i=(n=aw[r])!==null&&n!==void 0?n:xr,a=c0().keys(t).value((u,l)=>Number(ye(u,l,0))).order(Xo).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=ye(e[c],t[l],0);Array.isArray(f)&&f.length===2&&$(f[0])&&$(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function uw(e){return e==null?void 0:String(e)}function b2(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var u=zv(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=ye(i,le(o)?t.dataKey:o),s=t.scale.map(l);return $(s)?s:null}var tc=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=ye(a,t.dataKey,t.scale.domain()[o]);if(le(u))return null;var l=t.scale.map(u);return $(l)?l-i/2+n:null},lw=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},sw=e=>{var t=e.flat(2).filter($);return[Math.min(...t),Math.max(...t)]},cw=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],fw=(e,t,r)=>{if(e!=null)return cw(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=Ih(s,t,r),f=sw(c);return!F(f[0])||!F(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},rc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yi=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ma(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function ic(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Br(Br({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Dh(e,t){if(e)return String(e);if(typeof t=="string")return t}var dw=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},vw=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,Wt=e=>e.layout.height,hw=e=>e.layout.scale,Nh=e=>e.layout.margin,Wa=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ua=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),pw="data-recharts-item-index",mw="data-recharts-item-id",qn=60;function ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(r),!0).forEach(function(n){yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yw(e,t,r){return(t=gw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=bw(e,"string");return typeof t=="symbol"?t:t+""}function bw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xw=e=>e.brush.height;function ww(e){var t=Ua(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:qn;return r+i}return r},0)}function Ow(e){var t=Ua(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:qn;return r+i}return r},0)}function Pw(e){var t=Wa(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Aw(e){var t=Wa(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ge=A([Ft,Wt,Nh,xw,ww,Ow,Pw,Aw,th,qb],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=pi(pi({},f),c),v=d.bottom;d.bottom+=n,d=tw(d,l,s);var p=e-d.left-d.right,m=t-d.top-d.bottom;return pi(pi({brushBottom:v},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Sw=A(ge,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ll=A(Ft,Wt,(e,t)=>({x:0,y:0,width:e,height:t})),_w=h.createContext(null),Ne=()=>h.useContext(_w)!=null,Ka=e=>e.brush,Ha=A([Ka,ge,Nh],(e,t,r)=>({height:e.height,x:$(e.x)?e.x:t.left,y:$(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:$(e.width)?e.width:t.width}));function Ew(e,t,{signal:r,edges:n}={}){let i,a=null;const o=n!=null&&n.includes("leading"),u=n==null||n.includes("trailing"),l=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},s=()=>{u&&l(),v()};let c=null;const f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,s()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},v=()=>{d(),i=void 0,a=null},p=()=>{l()},m=function(...y){if(r?.aborted)return;i=this,a=y;const g=c==null;f(),o&&g&&l()};return m.schedule=f,m.cancel=v,m.flush=p,r?.addEventListener("abort",v,{once:!0}),m}function Cw(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:i=!0,maxWait:a}=r,o=Array(2);n&&(o[0]="leading"),i&&(o[1]="trailing");let u,l=null;const s=Ew(function(...d){u=e.apply(this,d),l=null},t,{edges:o}),c=function(...d){return a!=null&&(l===null&&(l=Date.now()),Date.now()-l>=a)?((n||i)&&(u=e.apply(this,d)),l=Date.now(),s.cancel(),s.schedule(),u):(s.apply(this,d),u)},f=()=>(s.flush(),u);return c.cancel=s.cancel,c.flush=f,c}function kw(e,t=0,r={}){const{leading:n=!0,trailing:i=!0}=r;return Cw(e,t,{leading:n,maxWait:t,trailing:i})}var Gi=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},yt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},$h=(e,t,r)=>{var{width:n=yt.width,height:i=yt.height,aspect:a,maxHeight:o}=r,u=wr(n)?e:Number(n),l=wr(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},jw={width:0,height:0,overflow:"visible"},Iw={width:0,overflowX:"visible"},Mw={height:0,overflowY:"visible"},Tw={},Dw=e=>{var{width:t,height:r}=e,n=wr(t),i=wr(r);return n&&i?jw:n?Iw:i?Mw:Tw};function Nw(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=yt.width,a=yt.height):i===void 0?i=n&&n>0?void 0:yt.width:a===void 0&&(a=n&&n>0?void 0:yt.height),{width:i,height:a}}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fu.apply(null,arguments)}function oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oc(Object(r),!0).forEach(function(n){$w(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $w(e,t,r){return(t=Rw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(e){var t=Lw(e,"string");return typeof t=="symbol"?t:t+""}function Lw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rh=h.createContext(yt.initialDimension);function zw(e){return Ot(e.width)&&Ot(e.height)}function Lh(e){var{children:t,width:r,height:n}=e,i=h.useMemo(()=>({width:r,height:n}),[r,n]);return zw(i)?h.createElement(Rh.Provider,{value:i},t):null}var sl=()=>h.useContext(Rh),Bw=h.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=yt.initialDimension,width:i,height:a,minWidth:o=yt.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=yt.debounce,id:f,className:d,onResize:v,style:p={}}=e,m=h.useRef(null),y=h.useRef();y.current=v,h.useImperativeHandle(t,()=>m.current);var[g,b]=h.useState({containerWidth:n.width,containerHeight:n.height}),x=h.useCallback((E,I)=>{b(M=>{var k=Math.round(E),_=Math.round(I);return M.containerWidth===k&&M.containerHeight===_?M:{containerWidth:k,containerHeight:_}})},[]);h.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Er;var E=_=>{var C,R=_[0];if(R!=null){var{width:z,height:W}=R.contentRect;x(z,W),(C=y.current)===null||C===void 0||C.call(y,z,W)}};c>0&&(E=kw(E,c,{trailing:!0,leading:!1}));var I=new ResizeObserver(E),{width:M,height:k}=m.current.getBoundingClientRect();return x(M,k),I.observe(m.current),()=>{I.disconnect()}},[x,c]);var{containerWidth:w,containerHeight:P}=g;Gi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=$h(w,P,{width:i,height:a,aspect:r,maxHeight:l});return Gi(O!=null&&O>0||S!=null&&S>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
2
2
|
please check the style of container, or the props width(%s) and height(%s),
|
|
3
3
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
4
4
|
height and width.`,O,S,i,a,o,u,r),h.createElement("div",{id:f?"".concat(f):void 0,className:ee("recharts-responsive-container",d),style:uc(uc({},p),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:m},h.createElement("div",{style:Dw({width:i,height:a})},h.createElement(Lh,{width:O,height:S},s)))}),Fw=h.forwardRef((e,t)=>{var r=sl();if(Ot(r.width)&&Ot(r.height))return e.children;var{width:n,height:i}=Nw({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=$h(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return $(a)&&$(o)?h.createElement(Lh,{width:a,height:o},e.children):h.createElement(Bw,fu({},e,{width:n,height:i,ref:t}))});function cl(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}}var Yn=()=>{var e,t=Ne(),r=L(Sw),n=L(Ha),i=(e=L(Ka))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Ww={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},zh=()=>{var e;return(e=L(ge))!==null&&e!==void 0?e:Ww},Bh=()=>L(Ft),Fh=()=>L(Wt),Z=e=>e.layout.layoutType,en=()=>L(Z),Wh=()=>{var e=en();if(e==="horizontal"||e==="vertical")return e},Uh=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},Uw=()=>{var e=en();return e!==void 0},Gn=e=>{var t=ie(),r=Ne(),{width:n,height:i}=e,a=sl(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),h.useEffect(()=>{!r&&Ot(o)&&Ot(u)&&t(Vx({width:o,height:u}))},[t,r,o,u]),null},Kh=Symbol.for("immer-nothing"),lc=Symbol.for("immer-draftable"),Ze=Symbol.for("immer-state");function st(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Mn=Object.getPrototypeOf;function qr(e){return!!e&&!!e[Ze]}function Pr(e){return e?Hh(e)||Array.isArray(e)||!!e[lc]||!!e.constructor?.[lc]||Vn(e)||Ya(e):!1}var Kw=Object.prototype.constructor.toString(),sc=new WeakMap;function Hh(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=sc.get(r);return n===void 0&&(n=Function.toString.call(r),sc.set(r,n)),n===Kw}function Vi(e,t,r=!0){qa(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function qa(e){const t=e[Ze];return t?t.type_:Array.isArray(e)?1:Vn(e)?2:Ya(e)?3:0}function du(e,t){return qa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qh(e,t,r){const n=qa(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Hw(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Vn(e){return e instanceof Map}function Ya(e){return e instanceof Set}function cr(e){return e.copy_||e.base_}function vu(e,t){if(Vn(e))return new Map(e);if(Ya(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Hh(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Ze];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(Mn(e),n)}else{const n=Mn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function fl(e,t=!1){return Ga(e)||qr(e)||!Pr(e)||(qa(e)>1&&Object.defineProperties(e,{set:mi,add:mi,clear:mi,delete:mi}),Object.freeze(e),t&&Object.values(e).forEach(r=>fl(r,!0))),e}function qw(){st(2)}var mi={value:qw};function Ga(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Yw={};function Ar(e){const t=Yw[e];return t||st(0,e),t}var Tn;function Yh(){return Tn}function Gw(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function cc(e,t){t&&(Ar("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function hu(e){pu(e),e.drafts_.forEach(Vw),e.drafts_=null}function pu(e){e===Tn&&(Tn=e.parent_)}function fc(e){return Tn=Gw(Tn,e)}function Vw(e){const t=e[Ze];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function dc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ze].modified_&&(hu(t),st(4)),Pr(e)&&(e=Xi(t,e),t.parent_||Zi(t,e)),t.patches_&&Ar("Patches").generateReplacementPatches_(r[Ze].base_,e,t.patches_,t.inversePatches_)):e=Xi(t,r,[]),hu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Kh?e:void 0}function Xi(e,t,r){if(Ga(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Ze];if(!i)return Vi(t,(a,o)=>vc(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Zi(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),Vi(o,(l,s)=>vc(e,i,a,l,s,r,u),n),Zi(e,a,!1),r&&e.patches_&&Ar("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function vc(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=Ga(i);if(!(u&&!o)){if(qr(i)){const l=a&&t&&t.type_!==3&&!du(t.assigned_,n)?a.concat(n):void 0,s=Xi(e,i,l);if(qh(r,n,s),qr(s))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Pr(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;Xi(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Vn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Zi(e,i)}}}function Zi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fl(t,r)}function Xw(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Yh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=dl;r&&(i=[n],a=Dn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var dl={get(e,t){if(t===Ze)return e;const r=cr(e);if(!du(r,t))return Zw(e,r,t);const n=r[t];return e.finalized_||!Pr(n)?n:n===Ao(e.base_,t)?(So(e),e.copy_[t]=yu(n,e)):n},has(e,t){return t in cr(e)},ownKeys(e){return Reflect.ownKeys(cr(e))},set(e,t,r){const n=Gh(cr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Ao(cr(e),t),a=i?.[Ze];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Hw(r,i)&&(r!==void 0||du(e.base_,t)))return!0;So(e),mu(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ao(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,So(e),mu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=cr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){st(11)},getPrototypeOf(e){return Mn(e.base_)},setPrototypeOf(){st(12)}},Dn={};Vi(dl,(e,t)=>{Dn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Dn.deleteProperty=function(e,t){return Dn.set.call(this,e,t,void 0)};Dn.set=function(e,t,r){return dl.set.call(this,e[0],t,r,e[0])};function Ao(e,t){const r=e[Ze];return(r?cr(r):e)[t]}function Zw(e,t,r){const n=Gh(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Gh(e,t){if(!(t in e))return;let r=Mn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Mn(r)}}function mu(e){e.modified_||(e.modified_=!0,e.parent_&&mu(e.parent_))}function So(e){e.copy_||(e.copy_=vu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qw=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&st(6),n!==void 0&&typeof n!="function"&&st(7);let i;if(Pr(t)){const a=fc(this),o=yu(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?hu(a):pu(a)}return cc(a,n),dc(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Kh&&(i=void 0),this.autoFreeze_&&fl(i,!0),n){const a=[],o=[];Ar("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else st(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Pr(e)||st(8),qr(e)&&(e=Jw(e));const t=fc(this),r=yu(e,void 0);return r[Ze].isManual_=!0,pu(t),r}finishDraft(e,t){const r=e&&e[Ze];(!r||!r.isManual_)&&st(9);const{scope_:n}=r;return cc(n,t),dc(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Ar("Patches").applyPatches_;return qr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function yu(e,t){const r=Vn(e)?Ar("MapSet").proxyMap_(e,t):Ya(e)?Ar("MapSet").proxySet_(e,t):Xw(e,t);return(t?t.scope_:Yh()).drafts_.push(r),r}function Jw(e){return qr(e)||st(10,e),Vh(e)}function Vh(e){if(!Pr(e)||Ga(e))return e;const t=e[Ze];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=vu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=vu(e,!0);return Vi(r,(i,a)=>{qh(r,i,Vh(a))},n),t&&(t.finalized_=!1),r}var e1=new Qw;e1.produce;var t1={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Xh=je({name:"legend",initialState:t1,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:te()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=tt(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:te()},removeLegendPayload:{reducer(e,t){var r=tt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:te()}}}),{setLegendSize:x2,setLegendSettings:w2,addLegendPayload:r1,replaceLegendPayload:n1,removeLegendPayload:i1}=Xh.actions,a1=Xh.reducer,_o={exports:{}},Eo={};var hc;function o1(){if(hc)return Eo;hc=1;var e=Ku();function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return Eo.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=o(function(){function y(P){if(!g){if(g=!0,b=P,P=f(P),d!==void 0&&p.hasValue){var O=p.value;if(d(O,P))return x=O}return x=P}if(O=x,r(b,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(b=P,O):(b=P,x=S)}var g=!1,b,x,w=c===void 0?null:c;return[function(){return y(s())},w===null?void 0:function(){return y(w())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){p.hasValue=!0,p.value=m},[m]),u(m),m},Eo}var pc;function u1(){return pc||(pc=1,_o.exports=o1()),_o.exports}u1();function l1(e){e()}function s1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){l1(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var mc={notify(){},get:()=>[]};function c1(e,t){let r,n=mc,i=0,a=!1;function o(m){c();const y=n.subscribe(m);let g=!1;return()=>{g||(g=!0,y(),f())}}function u(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function s(){return a}function c(){i++,r||(r=e.subscribe(l),n=s1())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=mc)}function d(){a||(a=!0,c())}function v(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return p}var f1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",d1=f1(),v1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",h1=v1(),p1=()=>d1||h1?h.useLayoutEffect:h.useEffect,m1=p1();function yc(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function y1(e,t){if(yc(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!yc(e[r[i]],t[r[i]]))return!1;return!0}var g1=Symbol.for("react-redux-context"),b1=typeof globalThis<"u"?globalThis:{};function x1(){if(!h.createContext)return{};const e=b1[g1]??=new Map;let t=e.get(h.createContext);return t||(t=h.createContext(null),e.set(h.createContext,t)),t}var w1=x1();function O1(e){const{children:t,context:r,serverState:n,store:i}=e,a=h.useMemo(()=>{const l=c1(i);return{store:i,subscription:l,getServerState:n?()=>n:void 0}},[i,n]),o=h.useMemo(()=>i.getState(),[i]);m1(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||w1;return h.createElement(u.Provider,{value:a},t)}var P1=O1,A1=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function S1(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Va(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(A1.has(n)){if(e[n]==null&&t[n]==null)continue;if(!y1(e[n],t[n]))return!1}else if(!S1(e[n],t[n]))return!1;return!0}function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gu.apply(null,arguments)}function gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gc(Object(r),!0).forEach(function(n){_1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _1(e,t,r){return(t=E1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=C1(e,"string");return typeof t=="symbol"?t:t+""}function C1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k1(e){return Array.isArray(e)&&nt(e[0])&&nt(e[1])?e.join(" ~ "):e}var Mr={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function j1(e,t){return t==null?e:Ma(e,t)}var I1=e=>{var{separator:t=Mr.separator,contentStyle:r,itemStyle:n,labelStyle:i=Mr.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=Mr.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=j1(a,u),S=O.map((E,I)=>{if(E.type==="none")return null;var M=E.formatter||o||k1,{value:k,name:_}=E,C=k,R=_;if(M){var z=M(k,_,E,I,a);if(Array.isArray(z))[C,R]=z;else if(z!=null)C=z;else return null}var W=vn(vn({},Mr.itemStyle),{},{color:E.color||Mr.itemStyle.color},n);return h.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:W},nt(R)?h.createElement("span",{className:"recharts-tooltip-item-name"},R):null,nt(R)?h.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,h.createElement("span",{className:"recharts-tooltip-item-value"},C),h.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return h.createElement("ul",{className:"recharts-tooltip-item-list",style:P},S)}return null},p=vn(vn({},Mr.contentStyle),r),m=vn({margin:0},i),y=!le(c),g=y?c:"",b=ee("recharts-default-tooltip",l),x=ee("recharts-tooltip-label",s);y&&f&&a!==void 0&&a!==null&&(g=f(c,a));var w=d?{role:"status","aria-live":"assertive"}:{};return h.createElement("div",gu({className:b,style:p},w),h.createElement("p",{className:x,style:m},h.isValidElement(g)?g:"".concat(g)),v())},hn="recharts-tooltip-wrapper",M1={visibility:"hidden"};function T1(e){var{coordinate:t,translateX:r,translateY:n}=e;return ee(hn,{["".concat(hn,"-right")]:$(r)&&t&&$(t.x)&&r>=t.x,["".concat(hn,"-left")]:$(r)&&t&&$(t.x)&&r<t.x,["".concat(hn,"-bottom")]:$(n)&&t&&$(t.y)&&n>=t.y,["".concat(hn,"-top")]:$(n)&&t&&$(t.y)&&n<t.y})}function bc(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:l,viewBoxDimension:s}=e;if(a&&$(a[n]))return a[n];var c=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=l[n];if(d==null)return 0;if(o[n]){var v=c,p=d;return v<p?Math.max(f,d):Math.max(c,d)}if(s==null)return 0;var m=f+u,y=d+s;return m>y?Math.max(c,d):Math.max(f,d)}function D1(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function N1(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,c,f,d;return u.height>0&&u.width>0&&r?(f=bc({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=bc({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),c=D1({translateX:f,translateY:d,useTranslate3d:l})):c=M1,{cssProperties:c,cssClasses:T1({translateX:f,translateY:d,coordinate:r})}}var $1=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Xn={isSsr:$1()};function Zh(){var[e,t]=h.useState(()=>Xn.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return h.useEffect(()=>{if(window.matchMedia){var r=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>{t(r.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}},[]),e}function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xc(Object(r),!0).forEach(function(n){R1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R1(e,t,r){return(t=L1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1(e){var t=z1(e,"string");return typeof t=="symbol"?t:t+""}function z1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B1(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function F1(e){var t,r,n,i,a,o,u=Zh(),[l,s]=h.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));h.useEffect(()=>{var p=m=>{if(m.key==="Escape"){var y,g,b,x;s({dismissed:!0,dismissedAtCoordinate:{x:(y=(g=e.coordinate)===null||g===void 0?void 0:g.x)!==null&&y!==void 0?y:0,y:(b=(x=e.coordinate)===null||x===void 0?void 0:x.y)!==null&&b!==void 0?b:0}})}};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(r=e.coordinate)===null||r===void 0?void 0:r.y]),l.dismissed&&(((n=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)!==l.dismissedAtCoordinate.x||((a=(o=e.coordinate)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)!==l.dismissedAtCoordinate.y)&&s(Tr(Tr({},l),{},{dismissed:!1}));var{cssClasses:c,cssProperties:f}=N1({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),d=e.hasPortalFromProps?{}:Tr(Tr({transition:B1({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),v=Tr(Tr({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return h.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:c,style:v,ref:e.innerRef},e.children)}var W1=h.memo(F1),Qh=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bu.apply(null,arguments)}function wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wc(Object(r),!0).forEach(function(n){U1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U1(e,t,r){return(t=K1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1(e){var t=H1(e,"string");return typeof t=="symbol"?t:t+""}function H1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pc={curveBasisClosed:Jg,curveBasisOpen:e0,curveBasis:Qg,curveBumpX:Lg,curveBumpY:zg,curveLinearClosed:t0,curveLinear:Ca,curveMonotoneX:r0,curveMonotoneY:n0,curveNatural:i0,curveStep:a0,curveStepAfter:u0,curveStepBefore:o0},Qi=e=>F(e.x)&&F(e.y),Ac=e=>e.base!=null&&Qi(e.base)&&Qi(e),pn=e=>e.x,mn=e=>e.y,q1=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Un(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Pc["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Pc[r]||Ca},Sc={connectNulls:!1,type:"linear"},Y1=e=>{var{type:t=Sc.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Sc.connectNulls}=e,o=q1(t,i),u=a?r.filter(Qi):r;if(Array.isArray(n)){var l,s=r.map((p,m)=>Oc(Oc({},p),{},{base:n[m]}));i==="vertical"?l=si().y(mn).x1(pn).x0(p=>p.base.x):l=si().x(pn).y1(mn).y0(p=>p.base.y);var c=l.defined(Ac).curve(o),f=a?s.filter(Ac):s;return c(f)}var d;i==="vertical"&&$(n)?d=si().y(mn).x1(pn).x0(n):$(n)?d=si().x(pn).y1(mn).y0(n):d=Sv().x(pn).y(mn);var v=d.defined(Qi).curve(o);return v(u)},Jh=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=en();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=r&&r.length?Y1(o):n;return h.createElement("path",bu({},Dt(e),k0(e),{className:ee("recharts-curve",t),d:u===null?void 0:u,ref:i}))},G1=["x","y","top","left","width","height","className"];function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xu.apply(null,arguments)}function _c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_c(Object(r),!0).forEach(function(n){X1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_c(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X1(e,t,r){return(t=Z1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z1(e){var t=Q1(e,"string");return typeof t=="symbol"?t:t+""}function Q1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J1(e,t){if(e==null)return{};var r,n,i=eO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function eO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var tO=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),rO=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,l=J1(e,G1),s=V1({x:t,y:r,top:n,left:i,width:a,height:o},l);return!$(t)||!$(r)||!$(a)||!$(o)||!$(n)||!$(i)?null:h.createElement("path",xu({},De(s),{className:ee("recharts-cross",u),d:tO(t,r,a,o,n,i)}))};function nO(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ec(Object(r),!0).forEach(function(n){iO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iO(e,t,r){return(t=aO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aO(e){var t=oO(e,"string");return typeof t=="symbol"?t:t+""}function oO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uO=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),ep=(e,t,r)=>e.map(n=>"".concat(uO(n)," ").concat(t,"ms ").concat(r)).join(","),lO=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Nn=(e,t)=>Object.keys(t).reduce((r,n)=>Cc(Cc({},r),{},{[n]:e(n,t[n])}),{});function kc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kc(Object(r),!0).forEach(function(n){sO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sO(e,t,r){return(t=cO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e){var t=fO(e,"string");return typeof t=="symbol"?t:t+""}function fO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ji=(e,t,r)=>e+(t-e)*r,wu=e=>{var{from:t,to:r}=e;return t!==r},tp=(e,t,r)=>{var n=Nn((i,a)=>{if(wu(a)){var[o,u]=e(a.from,a.to,a.velocity);return de(de({},a),{},{from:o,velocity:u})}return a},t);return r<1?Nn((i,a)=>wu(a)&&n[i]!=null?de(de({},a),{},{velocity:Ji(a.velocity,n[i].velocity,r),from:Ji(a.from,n[i].from,r)}):a,t):tp(e,n,r-1)};function dO(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>de(de({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>Nn((d,v)=>v.from,u),s=()=>!Object.values(u).filter(wu).length,c=null,f=d=>{o||(o=d);var v=d-o,p=v/r.dt;u=tp(r,u,p),i(de(de(de({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function vO(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>{var v=e[d],p=t[d];return v==null||p==null?f:de(de({},f),{},{[d]:[v,p]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/n,v=Nn((m,y)=>Ji(...y,r(d)),l);if(a(de(de(de({},e),t),v)),d<1)u=o.setTimeout(c);else{var p=Nn((m,y)=>Ji(...y,r(1)),l);a(de(de(de({},e),t),p))}};return()=>(u=o.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}const hO=(e,t,r,n,i,a)=>{var o=lO(e,t);return r==null?()=>(i(de(de({},e),t)),()=>{}):r.isStepper===!0?dO(e,t,r,o,i,a):vO(e,t,r,n,o,i,a)};var ea=1e-4,rp=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],np=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),jc=(e,t)=>r=>{var n=rp(e,t);return np(n,r)},pO=(e,t)=>r=>{var n=rp(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return np(i,r)},mO=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},yO=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=mO(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},gO=(e,t,r,n)=>{var i=jc(e,r),a=jc(t,n),o=pO(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var v=i(f)-c,p=o(f);if(Math.abs(v-c)<ea||p<ea)return a(f);f=u(f-v/p)}return a(f)};return l.isStepper=!1,l},Ic=function(){return gO(...yO(...arguments))},bO=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<ea&&Math.abs(f)<ea?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},xO=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Ic(e);case"spring":return bO();default:if(e.split("(")[0]==="cubic-bezier")return Ic(e)}return typeof e=="function"?e:null};function wO(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class OO{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function PO(){return wO(new OO)}var AO=h.createContext(PO);function SO(e,t){var r=h.useContext(AO);return h.useMemo(()=>t??r(e),[e,t,r])}var _O={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Mc={t:0},Co={t:1};function vl(e){var t=Ue(e,_O),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=Zh(),f=r==="auto"?!Xn.isSsr&&!c:r,d=SO(t.animationId,t.animationManager),[v,p]=h.useState(f?Mc:Co),m=h.useRef(null);return h.useEffect(()=>{f||p(Co)},[f]),h.useEffect(()=>{if(!f||!n)return Er;var y=hO(Mc,Co,xO(a),i,p,d.getTimeoutController()),g=()=>{m.current=y()};return d.start([l,o,g,i,u]),()=>{d.stop(),m.current&&m.current(),u()}},[f,n,i,a,o,l,u,d]),s(v.t)}function hl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=h.useRef(Cn(t)),n=h.useRef(e);return n.current!==e&&(r.current=Cn(t),n.current=e),r.current}var EO=["radius"],CO=["radius"],Tc,Dc,Nc,$c,Rc,Lc,zc,Bc,Fc,Wc;function Uc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(r),!0).forEach(function(n){kO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kO(e,t,r){return(t=jO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jO(e){var t=IO(e,"string");return typeof t=="symbol"?t:t+""}function IO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ta.apply(null,arguments)}function Hc(e,t){if(e==null)return{};var r,n,i=MO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function MO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ht(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qc=(e,t,r,n,i)=>{var a=Xt(r),o=Xt(n),u=Math.min(Math.abs(a)/2,Math.abs(o)/2),l=o>=0?1:-1,s=a>=0?1:-1,c=o>=0&&a>=0||o<0&&a<0?1:0,f;if(u>0&&Array.isArray(i)){for(var d=[0,0,0,0],v=0,p=4;v<p;v++){var m,y=(m=i[v])!==null&&m!==void 0?m:0;d[v]=y>u?u:y}f=oe(Tc||(Tc=ht(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=oe(Dc||(Dc=ht(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+s*d[0],t)),f+=oe(Nc||(Nc=ht(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(f+=oe($c||($c=ht(["A ",",",",0,0,",`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,c as i,j as v}from"./inertia-
|
|
1
|
+
import{r as c,c as i,j as v}from"./inertia-FoqYZAk8.js";const x=()=>{},d={hoveredKey:null,setHoveredKey:x},a=c.createContext(d);function C(l){const e=i.c(5),{children:r}=l,[s,u]=c.useState(null);let t;e[0]!==s?(t={hoveredKey:s,setHoveredKey:u},e[0]=s,e[1]=t):t=e[1];const n=t;let o;return e[2]!==r||e[3]!==n?(o=v.jsx(a.Provider,{value:n,children:r}),e[2]=r,e[3]=n,e[4]=o):o=e[4],o}function f(){return c.useContext(a)}export{C,f as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as C,o as P,j as u}from"./inertia-FoqYZAk8.js";import{T as R,L as T}from"./series-chart-C5nXIUc5.js";import{c as L,m as _}from"./format-B9SDkrWj.js";function q(l){const e=C.c(18),{label:s,value:d,legend:p,children:v,className:g}=l;let t;e[0]!==g?(t=P("bg-card rounded-lg border p-4",g),e[0]=g,e[1]=t):t=e[1];let c;e[2]!==s?(c=u.jsx("div",{className:"label-caps",children:s}),e[2]=s,e[3]=c):c=e[3];let i;e[4]!==d?(i=u.jsx("div",{className:"mt-0.5 text-xl font-semibold tracking-tight tabular-nums",children:d}),e[4]=d,e[5]=i):i=e[5];let a;e[6]!==c||e[7]!==i?(a=u.jsxs("div",{className:"min-w-0",children:[c,i]}),e[6]=c,e[7]=i,e[8]=a):a=e[8];let n;e[9]!==p?(n=p&&u.jsx("div",{className:"flex shrink-0 gap-4",children:p.map(V)}),e[9]=p,e[10]=n):n=e[10];let o;e[11]!==a||e[12]!==n?(o=u.jsxs("div",{className:"mb-3 flex items-start justify-between gap-4",children:[a,n]}),e[11]=a,e[12]=n,e[13]=o):o=e[13];let r;return e[14]!==v||e[15]!==t||e[16]!==o?(r=u.jsxs("div",{className:t,children:[o,v]}),e[14]=v,e[15]=t,e[16]=o,e[17]=r):r=e[17],r}function V(l){return u.jsxs("div",{className:"text-right",children:[u.jsxs("div",{className:"label-caps flex items-center justify-end gap-1.5",children:[u.jsx("span",{className:"inline-block h-2.5 w-1 rounded-sm",style:{background:l.color}}),l.label]}),u.jsx("div",{className:"mt-0.5 font-mono text-sm tabular-nums",children:l.value})]},l.key)}function $(l,e){return l.reduce((s,d)=>s+d[e],0)}const B={request:{ok:"1/2/3xx",warn:"4xx",error:"5xx"},job:{ok:"processed",warn:"released",error:"failed"},outcome:{ok:"ok",warn:null,error:"failed"},exception:{ok:"handled",warn:null,error:"unhandled"},cache:{ok:"hit",warn:"miss",error:"write"}};function H(l){const e=C.c(27),{data:s,deploys:d,label:p,seriesLabel:v,legend:g,className:t}=l,c=p===void 0?"Requests":p,i=g===void 0?"request":g;let a,n,o,r;if(e[0]!==s||e[1]!==c||e[2]!==i){const j=$(s,"count"),w=$(s,"errors"),N=$(s,"client_errors"),m=B[i],y=m.ok,k=j-w-N;let x;e[7]!==k?(x=L(k),e[7]=k,e[8]=x):x=e[8];let f;e[9]!==x||e[10]!==m.ok?(f={key:"ok",label:y,value:x,color:"var(--ok)"},e[9]=x,e[10]=m.ok,e[11]=f):f=e[11];const M=m.warn&&{key:"warn",label:m.warn,value:L(N),color:"var(--warning)"},D={key:"error",label:m.error,value:L(w),color:"var(--danger)"};let E;e[12]!==D||e[13]!==f||e[14]!==M?(E=[f,M,D].filter(G),e[12]=D,e[13]=f,e[14]=M,e[15]=E):E=e[15],n=E,a=q,o=c,r=L(j),e[0]=s,e[1]=c,e[2]=i,e[3]=a,e[4]=n,e[5]=o,e[6]=r}else a=e[3],n=e[4],o=e[5],r=e[6];let b;e[16]!==s||e[17]!==d||e[18]!==v?(b=u.jsx(R,{data:s,deploys:d,label:v}),e[16]=s,e[17]=d,e[18]=v,e[19]=b):b=e[19];let h;return e[20]!==a||e[21]!==t||e[22]!==n||e[23]!==o||e[24]!==r||e[25]!==b?(h=u.jsx(a,{label:o,value:r,className:t,legend:n,children:b}),e[20]=a,e[21]=t,e[22]=n,e[23]=o,e[24]=r,e[25]=b,e[26]=h):h=e[26],h}function G(l){return!!l}function I(l){const e=C.c(35),{data:s,deploys:d,percentile:p,label:v,className:g}=l,t=p===void 0?"p95":p,c=v===void 0?"Duration":v;let i,a,n,o,r;if(e[0]!==s||e[1]!==t){r=s.filter(U);const f=r.flatMap(S);let M;e[7]!==t?(M=E=>E[t]==null?[]:[E[t]],e[7]=t,e[8]=M):M=e[8];const D=r.flatMap(M);i=f.length?f.reduce(O,0)/f.length:0,n=D.length?Math.max(...D):0,a=f.length?Math.min(...f):0,o=D.length?Math.max(...D):0,e[0]=s,e[1]=t,e[2]=i,e[3]=a,e[4]=n,e[5]=o,e[6]=r}else i=e[2],a=e[3],n=e[4],o=e[5],r=e[6];const b=o;let h;e[9]!==b||e[10]!==a||e[11]!==r.length?(h=r.length?`${_(a)} — ${_(b)}`:"—",e[9]=b,e[10]=a,e[11]=r.length,e[12]=h):h=e[12];let j;e[13]!==i?(j=_(i),e[13]=i,e[14]=j):j=e[14];let w;e[15]!==j?(w={key:"avg",label:"avg",value:j,color:"var(--warning)"},e[15]=j,e[16]=w):w=e[16];let N;e[17]!==n?(N=_(n),e[17]=n,e[18]=N):N=e[18];let m;e[19]!==t||e[20]!==N?(m={key:t,label:t,value:N,color:"var(--primary)"},e[19]=t,e[20]=N,e[21]=m):m=e[21];let y;e[22]!==w||e[23]!==m?(y=[w,m],e[22]=w,e[23]=m,e[24]=y):y=e[24];let k;e[25]!==s||e[26]!==d||e[27]!==t?(k=u.jsx(T,{data:s,deploys:d,percentile:t}),e[25]=s,e[26]=d,e[27]=t,e[28]=k):k=e[28];let x;return e[29]!==g||e[30]!==c||e[31]!==k||e[32]!==h||e[33]!==y?(x=u.jsx(q,{label:c,value:h,className:g,legend:y,children:k}),e[29]=g,e[30]=c,e[31]=k,e[32]=h,e[33]=y,e[34]=x):x=e[34],x}function O(l,e){return l+e}function S(l){return l.avg==null?[]:[l.avg]}function U(l){return l.count>0}export{q as C,I as D,H as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,o as a,j as i}from"./inertia-FoqYZAk8.js";function m(c){const t=l.c(5),{children:o,className:n}=c;let e;t[0]!==n?(e=a("block max-w-full truncate font-mono text-xs",n),t[0]=n,t[1]=e):e=t[1];let s;return t[2]!==o||t[3]!==e?(s=i.jsx("code",{className:e,title:o,children:o}),t[2]=o,t[3]=e,t[4]=s):s=t[4],s}function x(c){const t=l.c(5),{children:o,className:n}=c;let e;t[0]!==n?(e=a("font-mono text-xs",n),t[0]=n,t[1]=e):e=t[1];let s;return t[2]!==o||t[3]!==e?(s=i.jsx("span",{className:e,children:o}),t[2]=o,t[3]=e,t[4]=s):s=t[4],s}export{x as M,m as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d,r as y,o as h,j as m}from"./inertia-FoqYZAk8.js";import{q as j,b as E}from"./app-layout-LvxN9xSS.js";import{u as b,C as N}from"./use-clipboard-DoENmlWY.js";const z=1500;function k(f){const t=d.c(12),{value:o,label:x,className:n}=f,[,l]=b(),[c,u]=y.useState(!1);let a;t[0]!==l||t[1]!==o?(a=()=>{l(o).then(C=>{C&&(u(!0),window.setTimeout(()=>u(!1),z))})},t[0]=l,t[1]=o,t[2]=a):a=t[2];const r=a;let s;t[3]!==n?(s=h("h-auto gap-1.5 px-1.5 py-0.5 font-mono text-xs",n),t[3]=n,t[4]=s):s=t[4];const p=x??o;let e;t[5]!==c?(e=c?m.jsx(j,{className:"size-3 text-emerald-500"}):m.jsx(N,{className:"size-3 opacity-60"}),t[5]=c,t[6]=e):e=t[6];let i;return t[7]!==r||t[8]!==s||t[9]!==p||t[10]!==e?(i=m.jsxs(E,{type:"button",variant:"ghost",size:"sm",className:s,onClick:r,children:[p,e]}),t[7]=r,t[8]=s,t[9]=p,t[10]=e,t[11]=i):i=t[11],i}export{k as C};
|