@efiche/design 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,1201 +1,65 @@
1
1
  "use client";
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
-
34
- // src/components/ThemeProvider.tsx
35
- import { createContext, useContext, useState } from "react";
36
- import { jsx } from "react/jsx-runtime";
37
- var ThemeContext = createContext(null);
38
- var ThemeProvider = ({
39
- children,
40
- defaultTheme = "light"
41
- }) => {
42
- const [theme, setTheme] = useState(defaultTheme);
43
- return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: { theme, toggle: () => setTheme((t) => t === "light" ? "dark" : "light") }, children: /* @__PURE__ */ jsx("div", { className: theme === "dark" ? "ds-theme-dark" : void 0, children }) });
44
- };
45
- var useTheme = () => {
46
- const ctx = useContext(ThemeContext);
47
- if (!ctx) throw new Error("useTheme must be used inside <ThemeProvider>");
48
- return ctx;
49
- };
50
-
51
- // src/components/Charts/LineChart.tsx
52
- import {
53
- LineChart as RechartsLineChart,
54
- Line,
55
- XAxis,
56
- YAxis,
57
- CartesianGrid,
58
- Tooltip,
59
- Legend,
60
- ResponsiveContainer
61
- } from "recharts";
62
-
63
- // src/components/Charts/chartUtils.ts
64
- var CHART_COLORS = [
65
- "#3b82f6",
66
- // blue
67
- "#22c55e",
68
- // green
69
- "#f59e0b",
70
- // amber
71
- "#ef4444",
72
- // red
73
- "#8b5cf6",
74
- // violet
75
- "#06b6d4",
76
- // cyan
77
- "#f97316",
78
- // orange
79
- "#ec4899"
80
- // pink
81
- ];
82
- function getChartTheme(theme) {
83
- const isDark = theme === "dark";
84
- return {
85
- gridColor: isDark ? "#334155" : "#e2e8f0",
86
- axisStroke: isDark ? "#94a3b8" : "#64748b",
87
- axisTick: { fill: isDark ? "#94a3b8" : "#64748b", fontSize: 12 },
88
- primaryColor: isDark ? "#60a5fa" : "#3b82f6",
89
- tooltipStyle: {
90
- backgroundColor: isDark ? "#1e293b" : "#ffffff",
91
- border: `1px solid ${isDark ? "#334155" : "#e2e8f0"}`,
92
- borderRadius: "6px",
93
- color: isDark ? "#f1f5f9" : "#0f172a",
94
- fontSize: "0.8125rem"
95
- }
96
- };
97
- }
98
-
99
- // src/components/Charts/LineChart.tsx
100
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
101
- var LineChart = ({
102
- data,
103
- xKey,
104
- lines,
105
- height = 250,
106
- legend = false,
107
- grid = true,
108
- theme = "light",
109
- className,
110
- style
111
- }) => {
112
- const { gridColor, axisStroke, axisTick, tooltipStyle } = getChartTheme(theme);
113
- return /* @__PURE__ */ jsx2("div", { className, style: __spreadValues({ minWidth: 250, width: "100%" }, style), children: /* @__PURE__ */ jsx2(ResponsiveContainer, { width: "100%", height, children: /* @__PURE__ */ jsxs(RechartsLineChart, { data, children: [
114
- grid && /* @__PURE__ */ jsx2(CartesianGrid, { strokeDasharray: "3 3", stroke: gridColor }),
115
- /* @__PURE__ */ jsx2(XAxis, { dataKey: xKey, stroke: axisStroke, tick: axisTick }),
116
- /* @__PURE__ */ jsx2(YAxis, { stroke: axisStroke, tick: axisTick }),
117
- /* @__PURE__ */ jsx2(Tooltip, { contentStyle: tooltipStyle }),
118
- legend && /* @__PURE__ */ jsx2(Legend, {}),
119
- lines.map((line, i) => {
120
- var _a, _b;
121
- const color = (_a = line.color) != null ? _a : CHART_COLORS[i % CHART_COLORS.length];
122
- return /* @__PURE__ */ jsx2(
123
- Line,
124
- {
125
- type: "monotone",
126
- dataKey: line.dataKey,
127
- name: (_b = line.label) != null ? _b : line.dataKey,
128
- stroke: color,
129
- strokeWidth: 2,
130
- dot: { fill: color, r: 4 },
131
- activeDot: { r: 6 },
132
- isAnimationActive: false
133
- },
134
- line.dataKey
135
- );
136
- })
137
- ] }) }) });
138
- };
139
- var LineChart_default = LineChart;
140
-
141
- // src/components/Charts/BarChart.tsx
142
- import {
143
- BarChart as RechartsBarChart,
144
- Bar,
145
- XAxis as XAxis2,
146
- YAxis as YAxis2,
147
- CartesianGrid as CartesianGrid2,
148
- Tooltip as Tooltip2,
149
- Legend as Legend2,
150
- ResponsiveContainer as ResponsiveContainer2
151
- } from "recharts";
152
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
153
- var BarChart = ({
154
- data,
155
- xKey,
156
- bars,
157
- height = 250,
158
- legend = false,
159
- grid = true,
160
- theme = "light",
161
- className,
162
- style
163
- }) => {
164
- const { gridColor, axisStroke, axisTick, tooltipStyle } = getChartTheme(theme);
165
- return /* @__PURE__ */ jsx3("div", { className, style: __spreadValues({ minWidth: 250, width: "100%" }, style), children: /* @__PURE__ */ jsx3(ResponsiveContainer2, { width: "100%", height, children: /* @__PURE__ */ jsxs2(RechartsBarChart, { data, children: [
166
- grid && /* @__PURE__ */ jsx3(CartesianGrid2, { strokeDasharray: "3 3", stroke: gridColor }),
167
- /* @__PURE__ */ jsx3(XAxis2, { dataKey: xKey, stroke: axisStroke, tick: axisTick }),
168
- /* @__PURE__ */ jsx3(YAxis2, { stroke: axisStroke, tick: axisTick }),
169
- /* @__PURE__ */ jsx3(Tooltip2, { contentStyle: tooltipStyle }),
170
- legend && /* @__PURE__ */ jsx3(Legend2, {}),
171
- bars.map((bar, i) => {
172
- var _a, _b;
173
- const color = (_a = bar.color) != null ? _a : CHART_COLORS[i % CHART_COLORS.length];
174
- const isLast = i === bars.length - 1;
175
- return /* @__PURE__ */ jsx3(
176
- Bar,
177
- {
178
- dataKey: bar.dataKey,
179
- name: (_b = bar.label) != null ? _b : bar.dataKey,
180
- fill: color,
181
- stackId: bar.stackId,
182
- radius: bar.stackId && !isLast ? [0, 0, 0, 0] : [4, 4, 0, 0],
183
- isAnimationActive: false
184
- },
185
- bar.dataKey
186
- );
187
- })
188
- ] }) }) });
189
- };
190
- var BarChart_default = BarChart;
191
-
192
- // src/components/Charts/AreaChart.tsx
193
- import {
194
- AreaChart as RechartsAreaChart,
195
- Area,
196
- XAxis as XAxis3,
197
- YAxis as YAxis3,
198
- CartesianGrid as CartesianGrid3,
199
- Tooltip as Tooltip3,
200
- Legend as Legend3,
201
- ResponsiveContainer as ResponsiveContainer3
202
- } from "recharts";
203
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
204
- var AreaChart = ({
205
- data,
206
- xKey,
207
- areas,
208
- height = 250,
209
- legend = false,
210
- grid = true,
211
- theme = "light",
212
- className,
213
- style
214
- }) => {
215
- const { gridColor, axisStroke, axisTick, tooltipStyle } = getChartTheme(theme);
216
- return /* @__PURE__ */ jsx4("div", { className, style: __spreadValues({ minWidth: 250, width: "100%" }, style), children: /* @__PURE__ */ jsx4(ResponsiveContainer3, { width: "100%", height, children: /* @__PURE__ */ jsxs3(RechartsAreaChart, { data, children: [
217
- grid && /* @__PURE__ */ jsx4(CartesianGrid3, { strokeDasharray: "3 3", stroke: gridColor }),
218
- /* @__PURE__ */ jsx4(XAxis3, { dataKey: xKey, stroke: axisStroke, tick: axisTick }),
219
- /* @__PURE__ */ jsx4(YAxis3, { stroke: axisStroke, tick: axisTick }),
220
- /* @__PURE__ */ jsx4(Tooltip3, { contentStyle: tooltipStyle }),
221
- legend && /* @__PURE__ */ jsx4(Legend3, {}),
222
- areas.map((area, i) => {
223
- var _a, _b, _c;
224
- const color = (_a = area.color) != null ? _a : CHART_COLORS[i % CHART_COLORS.length];
225
- const opacity = (_b = area.fillOpacity) != null ? _b : area.stackId ? 0.4 : 0.15;
226
- return /* @__PURE__ */ jsx4(
227
- Area,
228
- {
229
- type: "monotone",
230
- dataKey: area.dataKey,
231
- name: (_c = area.label) != null ? _c : area.dataKey,
232
- stroke: color,
233
- fill: color,
234
- fillOpacity: opacity,
235
- strokeWidth: 2,
236
- stackId: area.stackId,
237
- isAnimationActive: false
238
- },
239
- area.dataKey
240
- );
241
- })
242
- ] }) }) });
243
- };
244
- var AreaChart_default = AreaChart;
245
-
246
- // src/components/Charts/PieChart.tsx
247
- import {
248
- PieChart as RechartsPieChart,
249
- Pie,
250
- Tooltip as Tooltip4,
251
- Legend as Legend4,
252
- ResponsiveContainer as ResponsiveContainer4
253
- } from "recharts";
254
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
255
- var PieChart = ({
256
- data,
257
- height = 250,
258
- donut = false,
259
- legend = false,
260
- label = false,
261
- theme = "light",
262
- className,
263
- style
264
- }) => {
265
- const { tooltipStyle } = getChartTheme(theme);
266
- const dataWithColors = data.map((item, i) => {
267
- var _a;
268
- return __spreadProps(__spreadValues({}, item), {
269
- fill: (_a = item.fill) != null ? _a : CHART_COLORS[i % CHART_COLORS.length]
270
- });
271
- });
272
- const outerRadius = 90;
273
- const innerRadius = donut ? 55 : 0;
274
- return /* @__PURE__ */ jsx5("div", { className, style: __spreadValues({ minWidth: 250, width: "100%" }, style), children: /* @__PURE__ */ jsx5(ResponsiveContainer4, { width: "100%", height, children: /* @__PURE__ */ jsxs4(RechartsPieChart, { children: [
275
- /* @__PURE__ */ jsx5(
276
- Pie,
277
- {
278
- data: dataWithColors,
279
- cx: "50%",
280
- cy: "50%",
281
- outerRadius,
282
- innerRadius,
283
- dataKey: "value",
284
- label: label ? ({ name, percent }) => `${name} ${((percent != null ? percent : 0) * 100).toFixed(0)}%` : void 0,
285
- labelLine: label,
286
- isAnimationActive: false
287
- }
288
- ),
289
- /* @__PURE__ */ jsx5(Tooltip4, { contentStyle: tooltipStyle }),
290
- legend && /* @__PURE__ */ jsx5(Legend4, {})
291
- ] }) }) });
292
- };
293
- var PieChart_default = PieChart;
294
-
295
- // src/components/Accordion/Accordion.tsx
296
- import { useState as useState2 } from "react";
297
- import { ChevronDown } from "lucide-react";
298
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
299
- var Accordion = ({ items, defaultValue, multiple = false }) => {
300
- const [open, setOpen] = useState2(() => {
301
- if (!defaultValue) return /* @__PURE__ */ new Set();
302
- if (Array.isArray(defaultValue)) return new Set(defaultValue);
303
- return /* @__PURE__ */ new Set([defaultValue]);
304
- });
305
- const [hovered, setHovered] = useState2(null);
306
- const toggle = (value) => {
307
- setOpen((prev) => {
308
- const next = new Set(prev);
309
- if (next.has(value)) {
310
- next.delete(value);
311
- } else {
312
- if (!multiple) next.clear();
313
- next.add(value);
314
- }
315
- return next;
316
- });
317
- };
318
- return /* @__PURE__ */ jsx6("div", { style: {
319
- border: "1px solid var(--ds-border, #e2e8f0)",
320
- borderRadius: "0.5rem",
321
- overflow: "hidden"
322
- }, children: items.map((item, index) => {
323
- const isOpen = open.has(item.value);
324
- const isHovered = hovered === item.value;
325
- const isLast = index === items.length - 1;
326
- return /* @__PURE__ */ jsxs5(
327
- "div",
328
- {
329
- style: {
330
- borderBottom: isLast ? "none" : "1px solid var(--ds-border, #e2e8f0)"
331
- },
332
- children: [
333
- /* @__PURE__ */ jsxs5(
334
- "button",
335
- {
336
- style: {
337
- display: "flex",
338
- alignItems: "center",
339
- justifyContent: "space-between",
340
- width: "100%",
341
- padding: "1rem",
342
- fontSize: "0.875rem",
343
- fontWeight: 500,
344
- background: isHovered ? "var(--ds-muted, #f1f5f9)" : "transparent",
345
- border: "none",
346
- cursor: "pointer",
347
- textAlign: "left",
348
- color: "var(--ds-text-primary, #0f172a)",
349
- transition: "background-color 0.15s"
350
- },
351
- onClick: () => toggle(item.value),
352
- onMouseEnter: () => setHovered(item.value),
353
- onMouseLeave: () => setHovered(null),
354
- "aria-expanded": isOpen,
355
- children: [
356
- /* @__PURE__ */ jsx6("span", { children: item.trigger }),
357
- /* @__PURE__ */ jsx6(
358
- ChevronDown,
359
- {
360
- size: 16,
361
- style: {
362
- flexShrink: 0,
363
- color: "var(--ds-text-secondary, #64748b)",
364
- transition: "transform 0.2s ease",
365
- transform: isOpen ? "rotate(180deg)" : "rotate(0deg)"
366
- }
367
- }
368
- )
369
- ]
370
- }
371
- ),
372
- /* @__PURE__ */ jsx6("div", { style: {
373
- maxHeight: isOpen ? "300px" : "0",
374
- overflow: "hidden",
375
- transition: "max-height 0.25s ease"
376
- }, children: /* @__PURE__ */ jsx6("div", { style: {
377
- padding: "0 1rem 1rem",
378
- fontSize: "0.875rem",
379
- color: "var(--ds-text-secondary, #64748b)"
380
- }, children: item.content }) })
381
- ]
382
- },
383
- item.value
384
- );
385
- }) });
386
- };
387
- var Accordion_default = Accordion;
388
-
389
- // src/components/Alert/Alert.tsx
390
- import { Info, CheckCircle2, AlertTriangle, AlertCircle } from "lucide-react";
391
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
392
- var variantMap = {
393
- info: { bg: "var(--ds-info-bg, #eff6ff)", border: "var(--ds-info, #3b82f6)", icon: "var(--ds-info, #3b82f6)", title: "var(--ds-info-title, #1e3a8a)", desc: "var(--ds-info-desc, #1e40af)" },
394
- success: { bg: "var(--ds-success-bg, #f0fdf4)", border: "var(--ds-success, #22c55e)", icon: "var(--ds-success, #22c55e)", title: "var(--ds-success-title, #14532d)", desc: "var(--ds-success-desc, #166534)" },
395
- warning: { bg: "var(--ds-warning-bg, #fffbeb)", border: "var(--ds-warning, #f59e0b)", icon: "var(--ds-warning, #f59e0b)", title: "var(--ds-warning-title, #78350f)", desc: "var(--ds-warning-desc, #92400e)" },
396
- danger: { bg: "var(--ds-danger-bg, #fef2f2)", border: "var(--ds-danger, #ef4444)", icon: "var(--ds-danger, #ef4444)", title: "var(--ds-danger-title, #7f1d1d)", desc: "var(--ds-danger-desc, #991b1b)" }
397
- };
398
- var icons = {
399
- info: /* @__PURE__ */ jsx7(Info, { size: 16 }),
400
- success: /* @__PURE__ */ jsx7(CheckCircle2, { size: 16 }),
401
- warning: /* @__PURE__ */ jsx7(AlertTriangle, { size: 16 }),
402
- danger: /* @__PURE__ */ jsx7(AlertCircle, { size: 16 })
403
- };
404
- var Alert = ({ variant = "info", title, description }) => {
405
- const v = variantMap[variant];
406
- return /* @__PURE__ */ jsxs6("div", { role: "alert", style: {
407
- display: "flex",
408
- gap: "0.75rem",
409
- padding: "1rem",
410
- borderRadius: "0.5rem",
411
- borderLeft: `4px solid ${v.border}`,
412
- backgroundColor: v.bg
413
- }, children: [
414
- /* @__PURE__ */ jsx7("span", { style: { flexShrink: 0, marginTop: "0.125rem", color: v.icon }, children: icons[variant] }),
415
- /* @__PURE__ */ jsxs6("div", { style: { flex: 1 }, children: [
416
- /* @__PURE__ */ jsx7("p", { style: { fontWeight: 600, fontSize: "0.875rem", marginBottom: "0.25rem", marginTop: 0, color: v.title }, children: title }),
417
- /* @__PURE__ */ jsx7("p", { style: { fontSize: "0.875rem", margin: 0, color: v.desc }, children: description })
418
- ] })
419
- ] });
420
- };
421
- var Alert_default = Alert;
422
-
423
- // src/components/Avatar/Avatar.tsx
424
- import { jsx as jsx8 } from "react/jsx-runtime";
425
- var sizeMap = {
426
- sm: { width: "2rem", height: "2rem", fontSize: "0.625rem" },
427
- md: { width: "2.5rem", height: "2.5rem", fontSize: "0.875rem" },
428
- lg: { width: "4rem", height: "4rem", fontSize: "1.25rem" }
429
- };
430
- var Avatar = ({ fallback, size = "md", style, className }) => /* @__PURE__ */ jsx8(
431
- "div",
432
- {
433
- className,
434
- "aria-label": fallback,
435
- style: __spreadValues(__spreadValues({
436
- display: "inline-flex",
437
- alignItems: "center",
438
- justifyContent: "center",
439
- borderRadius: "9999px",
440
- backgroundColor: "var(--ds-accent, #f1f5f9)",
441
- color: "var(--ds-text-primary, #0f172a)",
442
- fontWeight: 600,
443
- flexShrink: 0,
444
- userSelect: "none"
445
- }, sizeMap[size]), style),
446
- children: fallback
447
- }
448
- );
449
- var Avatar_default = Avatar;
450
-
451
- // src/components/Badge/Badge.tsx
452
- import { jsx as jsx9 } from "react/jsx-runtime";
453
- var variantMap2 = {
454
- default: { backgroundColor: "var(--ds-primary, #3b82f6)", color: "#fff" },
455
- secondary: { backgroundColor: "var(--ds-muted, #f1f5f9)", color: "var(--ds-text-secondary, #64748b)" },
456
- outline: { backgroundColor: "transparent", border: "1px solid var(--ds-border, #e2e8f0)", color: "var(--ds-text-primary, #0f172a)" },
457
- danger: { backgroundColor: "var(--ds-danger, #ef4444)", color: "#fff" },
458
- success: { backgroundColor: "var(--ds-success, #22c55e)", color: "#fff" },
459
- warning: { backgroundColor: "var(--ds-warning, #f59e0b)", color: "#fff" },
460
- info: { backgroundColor: "var(--ds-info, #3b82f6)", color: "#fff" }
461
- };
462
- var sizeMap2 = {
463
- sm: { padding: "0.125rem 0.5rem", fontSize: "0.625rem" },
464
- md: { padding: "0.25rem 0.625rem", fontSize: "0.75rem" },
465
- lg: { padding: "0.375rem 0.875rem", fontSize: "0.875rem" }
466
- };
467
- var Badge = ({ variant = "default", size = "md", children, style }) => /* @__PURE__ */ jsx9("span", { style: __spreadValues(__spreadValues(__spreadValues({
468
- display: "inline-flex",
469
- alignItems: "center",
470
- gap: "0.25rem",
471
- borderRadius: "9999px",
472
- fontWeight: 500,
473
- whiteSpace: "nowrap"
474
- }, variantMap2[variant]), sizeMap2[size]), style), children });
475
- var Badge_default = Badge;
476
-
477
- // src/components/Breadcrumb/Breadcrumb.tsx
478
- import { useState as useState3 } from "react";
479
- import { ChevronRight } from "lucide-react";
480
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
481
- var Breadcrumb = ({ items }) => {
482
- const [hovered, setHovered] = useState3(null);
483
- return /* @__PURE__ */ jsx10("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsx10("ol", { style: {
484
- display: "flex",
485
- flexWrap: "wrap",
486
- alignItems: "center",
487
- listStyle: "none",
488
- padding: 0,
489
- margin: 0,
490
- fontSize: "0.875rem"
491
- }, children: items.map((item, i) => {
492
- const isLast = i === items.length - 1;
493
- const isHovered = hovered === item.label;
494
- return /* @__PURE__ */ jsxs7("li", { style: { display: "flex", alignItems: "center" }, children: [
495
- i > 0 && /* @__PURE__ */ jsx10(
496
- ChevronRight,
497
- {
498
- size: 14,
499
- "aria-hidden": true,
500
- style: { color: "var(--ds-text-secondary, #64748b)", margin: "0 0.25rem", flexShrink: 0 }
501
- }
502
- ),
503
- isLast || !item.href ? /* @__PURE__ */ jsx10("span", { style: {
504
- color: isLast ? "var(--ds-text-primary, #0f172a)" : "var(--ds-text-secondary, #64748b)",
505
- fontWeight: isLast ? 500 : void 0,
506
- cursor: isLast ? "default" : void 0
507
- }, children: item.label }) : /* @__PURE__ */ jsx10(
508
- "a",
509
- {
510
- href: item.href,
511
- onMouseEnter: () => setHovered(item.label),
512
- onMouseLeave: () => setHovered(null),
513
- style: {
514
- color: "var(--ds-text-secondary, #64748b)",
515
- textDecoration: isHovered ? "underline" : "none",
516
- transition: "color 0.15s"
517
- },
518
- children: item.label
519
- }
520
- )
521
- ] }, item.label);
522
- }) }) });
523
- };
524
- var Breadcrumb_default = Breadcrumb;
525
-
526
- // src/components/Button/Button.tsx
527
- import { LoaderCircle } from "lucide-react";
528
- import { useState as useState4 } from "react";
529
- import { Fragment, jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
530
- var variantStyles = {
531
- solid: { backgroundColor: "var(--ds-primary, #3b82f6)", color: "#fff", borderColor: "transparent" },
532
- outline: { backgroundColor: "transparent", color: "var(--ds-primary, #3b82f6)", borderColor: "var(--ds-primary, #3b82f6)" },
533
- ghost: { backgroundColor: "var(--ds-muted, #f1f5f9)", color: "var(--ds-text-primary, #0f172a)", borderColor: "transparent" },
534
- danger: { backgroundColor: "var(--ds-danger, #ef4444)", color: "#fff", borderColor: "transparent" },
535
- warning: { backgroundColor: "var(--ds-warning, #f59e0b)", color: "#fff", borderColor: "transparent" },
536
- info: { backgroundColor: "var(--ds-info, #3b82f6)", color: "#fff", borderColor: "transparent" },
537
- success: { backgroundColor: "var(--ds-success, #22c55e)", color: "#fff", borderColor: "transparent" }
538
- };
539
- var variantHoverStyles = {
540
- solid: { opacity: 0.88 },
541
- outline: { backgroundColor: "var(--ds-muted, #f1f5f9)" },
542
- ghost: { backgroundColor: "var(--ds-card, #ffffff)" },
543
- danger: { opacity: 0.88 },
544
- warning: { opacity: 0.88 },
545
- info: { opacity: 0.88 },
546
- success: { opacity: 0.88 }
547
- };
548
- var sizeStyles = {
549
- sm: { padding: "0.25rem 0.625rem", fontSize: "0.8rem" },
550
- md: { padding: "0.5rem 1rem", fontSize: "0.875rem" },
551
- lg: { padding: "0.75rem 1.5rem", fontSize: "1rem" }
552
- };
553
- var Button = (_a) => {
554
- var _b = _a, {
555
- text,
556
- children,
557
- loading = false,
558
- disabled = false,
559
- icon,
560
- iconPosition = "left",
561
- outline = false,
562
- ghost = false,
563
- danger = false,
564
- warning = false,
565
- info = false,
566
- success = false,
567
- variant,
568
- small = false,
569
- large = false,
570
- size,
571
- style: styleProp
572
- } = _b, props = __objRest(_b, [
573
- "text",
574
- "children",
575
- "loading",
576
- "disabled",
577
- "icon",
578
- "iconPosition",
579
- "outline",
580
- "ghost",
581
- "danger",
582
- "warning",
583
- "info",
584
- "success",
585
- "variant",
586
- "small",
587
- "large",
588
- "size",
589
- "style"
590
- ]);
591
- const [hovered, setHovered] = useState4(false);
592
- const resolvedVariant = variant != null ? variant : danger ? "danger" : warning ? "warning" : info ? "info" : success ? "success" : ghost ? "ghost" : outline ? "outline" : "solid";
593
- const resolvedSize = size != null ? size : small ? "sm" : large ? "lg" : "md";
594
- const isDisabled = disabled || loading;
595
- const content = children != null ? children : text;
596
- const showIcon = icon && !loading;
597
- const computedStyle = __spreadValues(__spreadValues(__spreadValues(__spreadValues({
598
- display: "inline-flex",
599
- alignItems: "center",
600
- gap: "0.5rem",
601
- border: "1px solid transparent",
602
- borderRadius: "0.375rem",
603
- fontWeight: 500,
604
- cursor: isDisabled ? "not-allowed" : "pointer",
605
- transition: "opacity 0.15s, background-color 0.15s",
606
- opacity: isDisabled ? 0.5 : 1,
607
- pointerEvents: loading ? "none" : void 0
608
- }, variantStyles[resolvedVariant]), sizeStyles[resolvedSize]), hovered && !isDisabled ? variantHoverStyles[resolvedVariant] : {}), styleProp);
609
- return /* @__PURE__ */ jsxs8(Fragment, { children: [
610
- /* @__PURE__ */ jsx11("style", { href: "ds-spin", precedence: "low", children: `@keyframes ds-spin { to { transform: rotate(360deg); } }` }),
611
- /* @__PURE__ */ jsxs8(
612
- "button",
613
- __spreadProps(__spreadValues({
614
- disabled: isDisabled,
615
- style: computedStyle,
616
- onMouseEnter: () => setHovered(true),
617
- onMouseLeave: () => setHovered(false)
618
- }, props), {
619
- children: [
620
- loading ? /* @__PURE__ */ jsx11(
621
- LoaderCircle,
622
- {
623
- "aria-hidden": true,
624
- style: { width: "1em", height: "1em", animation: "ds-spin 0.75s linear infinite" }
625
- }
626
- ) : null,
627
- showIcon && iconPosition === "left" ? icon : null,
628
- content,
629
- showIcon && iconPosition === "right" ? icon : null
630
- ]
631
- })
632
- )
633
- ] });
634
- };
635
- var Button_default = Button;
636
-
637
- // src/components/Card/Card.tsx
638
- import { jsx as jsx12 } from "react/jsx-runtime";
639
- var Card = (_a) => {
640
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
641
- return /* @__PURE__ */ jsx12("div", __spreadValues({ style: __spreadValues({
642
- border: "1px solid var(--ds-border, #e2e8f0)",
643
- borderRadius: "0.5rem",
644
- backgroundColor: "var(--ds-card, #ffffff)"
645
- }, style) }, props));
646
- };
647
- var CardHeader = (_a) => {
648
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
649
- return /* @__PURE__ */ jsx12("div", __spreadValues({ style: __spreadValues({
650
- display: "flex",
651
- flexDirection: "column",
652
- gap: "0.375rem",
653
- padding: "1.5rem 1.5rem 0"
654
- }, style) }, props));
655
- };
656
- var CardTitle = (_a) => {
657
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
658
- return /* @__PURE__ */ jsx12("h3", __spreadValues({ style: __spreadValues({
659
- fontSize: "1rem",
660
- fontWeight: 600,
661
- color: "var(--ds-text-primary, #0f172a)",
662
- margin: 0,
663
- lineHeight: 1.4
664
- }, style) }, props));
665
- };
666
- var CardDescription = (_a) => {
667
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
668
- return /* @__PURE__ */ jsx12("p", __spreadValues({ style: __spreadValues({
669
- fontSize: "0.875rem",
670
- color: "var(--ds-text-secondary, #64748b)",
671
- margin: 0
672
- }, style) }, props));
673
- };
674
- var CardContent = (_a) => {
675
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
676
- return /* @__PURE__ */ jsx12("div", __spreadValues({ style: __spreadValues({ padding: "1.5rem" }, style) }, props));
677
- };
678
- var CardFooter = (_a) => {
679
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
680
- return /* @__PURE__ */ jsx12("div", __spreadValues({ style: __spreadValues({
681
- display: "flex",
682
- alignItems: "center",
683
- padding: "0 1.5rem 1.5rem"
684
- }, style) }, props));
685
- };
686
-
687
- // src/components/Checkbox/Checkbox.tsx
688
- import { useState as useState5 } from "react";
689
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
690
- var Checkbox = ({
691
- label,
692
- checked,
693
- defaultChecked = false,
694
- disabled,
695
- id,
696
- onChange
697
- }) => {
698
- const [internal, setInternal] = useState5(defaultChecked);
699
- const isChecked = checked !== void 0 ? checked : internal;
700
- const handleChange = () => {
701
- if (disabled) return;
702
- const next = !isChecked;
703
- setInternal(next);
704
- onChange == null ? void 0 : onChange(next);
705
- };
706
- return /* @__PURE__ */ jsxs9("label", { htmlFor: id, style: {
707
- display: "inline-flex",
708
- alignItems: "center",
709
- gap: "0.5rem",
710
- cursor: disabled ? "not-allowed" : "pointer",
711
- userSelect: "none",
712
- opacity: disabled ? 0.5 : 1
713
- }, children: [
714
- /* @__PURE__ */ jsx13(
715
- "input",
716
- {
717
- type: "checkbox",
718
- id,
719
- checked: isChecked,
720
- disabled,
721
- onChange: handleChange,
722
- style: { position: "absolute", opacity: 0, width: 0, height: 0 }
723
- }
724
- ),
725
- /* @__PURE__ */ jsx13("span", { style: {
726
- width: "1.125rem",
727
- height: "1.125rem",
728
- border: `2px solid ${isChecked ? "var(--ds-primary, #3b82f6)" : "var(--ds-border, #e2e8f0)"}`,
729
- borderRadius: "0.25rem",
730
- display: "flex",
731
- alignItems: "center",
732
- justifyContent: "center",
733
- flexShrink: 0,
734
- transition: "background-color 0.15s, border-color 0.15s",
735
- backgroundColor: isChecked ? "var(--ds-primary, #3b82f6)" : "var(--ds-card, #fff)"
736
- }, children: isChecked && /* @__PURE__ */ jsx13("svg", { viewBox: "0 0 12 10", fill: "none", style: { width: "0.625rem", height: "0.625rem" }, children: /* @__PURE__ */ jsx13("path", { d: "M1 5l3.5 3.5L11 1", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
737
- label && /* @__PURE__ */ jsx13("span", { style: { fontSize: "0.875rem", color: "var(--ds-text-primary, #0f172a)" }, children: label })
738
- ] });
739
- };
740
- var Checkbox_default = Checkbox;
741
-
742
- // src/components/CopyButton/CopyButton.tsx
743
- import { Check, Copy } from "lucide-react";
744
- import { useState as useState6 } from "react";
745
- import { jsx as jsx14 } from "react/jsx-runtime";
746
- var CopyButton = ({ text }) => {
747
- const [copied, setCopied] = useState6(false);
748
- const [hovered, setHovered] = useState6(false);
749
- const handleCopy = () => {
750
- navigator.clipboard.writeText(text);
751
- setCopied(true);
752
- setTimeout(() => setCopied(false), 2e3);
753
- };
754
- return /* @__PURE__ */ jsx14(
755
- "button",
756
- {
757
- onClick: handleCopy,
758
- onMouseEnter: () => setHovered(true),
759
- onMouseLeave: () => setHovered(false),
760
- "aria-label": copied ? "Copied" : `Copy ${text}`,
761
- style: {
762
- display: "inline-flex",
763
- alignItems: "center",
764
- justifyContent: "center",
765
- padding: "0.25rem",
766
- border: "none",
767
- borderRadius: "0.25rem",
768
- backgroundColor: hovered ? "var(--ds-accent, #f1f5f9)" : "transparent",
769
- color: hovered ? "var(--ds-text-primary, #0f172a)" : "var(--ds-text-secondary, #64748b)",
770
- cursor: "pointer",
771
- transition: "background-color 0.15s, color 0.15s"
772
- },
773
- children: copied ? /* @__PURE__ */ jsx14(Check, { style: { width: "1rem", height: "1rem" } }) : /* @__PURE__ */ jsx14(Copy, { style: { width: "1rem", height: "1rem" } })
774
- }
775
- );
776
- };
777
- var CopyButton_default = CopyButton;
778
-
779
- // src/components/FileUpload/FileUpload.tsx
780
- import { Upload } from "lucide-react";
781
- import { useRef, useState as useState7 } from "react";
782
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
783
- var FileUpload = ({ accept, multiple, disabled, onFileSelect }) => {
784
- const [isDragging, setIsDragging] = useState7(false);
785
- const [isHovered, setIsHovered] = useState7(false);
786
- const [fileNames, setFileNames] = useState7([]);
787
- const inputRef = useRef(null);
788
- const handleFiles = (list) => {
789
- setFileNames(Array.from(list).map((f) => f.name));
790
- onFileSelect == null ? void 0 : onFileSelect(list);
791
- };
792
- const isActive = isDragging || isHovered;
793
- return /* @__PURE__ */ jsxs10(
794
- "div",
795
- {
796
- onClick: () => {
797
- var _a;
798
- return !disabled && ((_a = inputRef.current) == null ? void 0 : _a.click());
799
- },
800
- onMouseEnter: () => !disabled && setIsHovered(true),
801
- onMouseLeave: () => setIsHovered(false),
802
- onDragOver: (e) => {
803
- e.preventDefault();
804
- setIsDragging(true);
805
- },
806
- onDragLeave: () => setIsDragging(false),
807
- onDrop: (e) => {
808
- e.preventDefault();
809
- setIsDragging(false);
810
- if (!disabled && e.dataTransfer.files.length) handleFiles(e.dataTransfer.files);
811
- },
812
- style: {
813
- border: `2px dashed ${isActive ? "var(--ds-primary, #3b82f6)" : "var(--ds-border, #e2e8f0)"}`,
814
- borderRadius: "0.5rem",
815
- padding: "2rem",
816
- display: "flex",
817
- flexDirection: "column",
818
- alignItems: "center",
819
- gap: "0.5rem",
820
- cursor: disabled ? "not-allowed" : "pointer",
821
- backgroundColor: isActive ? "var(--ds-primary-50, #eff6ff)" : "var(--ds-muted, #f1f5f9)",
822
- transition: "border-color 0.15s, background-color 0.15s",
823
- textAlign: "center",
824
- opacity: disabled ? 0.5 : 1
825
- },
826
- children: [
827
- /* @__PURE__ */ jsx15(
828
- "input",
829
- {
830
- ref: inputRef,
831
- type: "file",
832
- accept,
833
- multiple,
834
- disabled,
835
- style: { display: "none" },
836
- onChange: (e) => e.target.files && handleFiles(e.target.files)
837
- }
838
- ),
839
- /* @__PURE__ */ jsx15(Upload, { size: 32, style: { color: "var(--ds-text-secondary, #64748b)" } }),
840
- fileNames.length > 0 ? /* @__PURE__ */ jsx15("p", { style: { fontSize: "0.875rem", color: "var(--ds-primary, #3b82f6)", fontWeight: 500, margin: 0 }, children: fileNames.join(", ") }) : /* @__PURE__ */ jsxs10("p", { style: { fontSize: "0.875rem", color: "var(--ds-text-secondary, #64748b)", margin: 0 }, children: [
841
- /* @__PURE__ */ jsx15("strong", { children: "Click to upload" }),
842
- " or drag and drop"
843
- ] })
844
- ]
845
- }
846
- );
847
- };
848
- var FileUpload_default = FileUpload;
849
-
850
- // src/components/Input/Input.tsx
851
- import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
852
- var inputCSS = `
2
+ var a_=Object.create;var tl=Object.defineProperty,s_=Object.defineProperties,l_=Object.getOwnPropertyDescriptor,u_=Object.getOwnPropertyDescriptors,c_=Object.getOwnPropertyNames,el=Object.getOwnPropertySymbols,f_=Object.getPrototypeOf,Zf=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable;var Xf=(e,t,r)=>t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))Zf.call(t,r)&&Xf(e,r,t[r]);if(el)for(var r of el(t))Ly.call(t,r)&&Xf(e,r,t[r]);return e},ft=(e,t)=>s_(e,u_(t));var Yi=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ne=(e,t)=>{var r={};for(var n in e)Zf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&el)for(var n of el(e))t.indexOf(n)<0&&Ly.call(e,n)&&(r[n]=e[n]);return r};var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d_=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},p_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of c_(t))!Zf.call(e,i)&&i!==r&&tl(e,i,{get:()=>t[i],enumerable:!(n=l_(t,i))||n.enumerable});return e};var it=(e,t,r)=>(r=e!=null?a_(f_(e)):{},p_(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e));var mr=(e,t,r)=>Xf(e,typeof t!="symbol"?t+"":t,r);var og=L(Rd=>{"use strict";Object.defineProperty(Rd,Symbol.toStringTag,{value:"Module"});function K_(e){return e==="__proto__"}Rd.isUnsafeProperty=K_});var Dd=L(kd=>{"use strict";Object.defineProperty(kd,Symbol.toStringTag,{value:"Module"});function $_(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}kd.isDeepKey=$_});var cl=L(Md=>{"use strict";Object.defineProperty(Md,Symbol.toStringTag,{value:"Module"});function H_(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}Md.toKey=H_});var sg=L(Nd=>{"use strict";Object.defineProperty(Nd,Symbol.toStringTag,{value:"Module"});function ag(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(ag).join(",");let t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}Nd.toString=ag});var fl=L(jd=>{"use strict";Object.defineProperty(jd,Symbol.toStringTag,{value:"Module"});var q_=sg(),U_=cl();function Y_(e){if(Array.isArray(e))return e.map(U_.toKey);if(typeof e=="symbol")return[e];e=q_.toString(e);let t=[],r=e.length;if(r===0)return t;let n=0,i="",o="",a=!1;for(e.charCodeAt(0)===46&&(t.push(""),n++);n<r;){let s=e[n];o?s==="\\"&&n+1<r?(n++,i+=e[n]):s===o?o="":i+=s:a?s==='"'||s==="'"?o=s:s==="]"?(a=!1,t.push(i),i=""):i+=s:s==="["?(a=!0,i&&(t.push(i),i="")):s==="."?i&&(t.push(i),i=""):i+=s,n++}return i&&t.push(i),t}jd.toPath=Y_});var dl=L(Bd=>{"use strict";Object.defineProperty(Bd,Symbol.toStringTag,{value:"Module"});var Ld=og(),G_=Dd(),X_=cl(),Z_=fl();function lg(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Ld.isUnsafeProperty(t))return r;let n=e[t];return n===void 0?G_.isDeepKey(t)?lg(e,Z_.toPath(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=X_.toKey(t));let n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return J_(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),Ld.isUnsafeProperty(t))return r;let n=e[t];return n===void 0?r:n}}}function J_(e,t,r){if(t.length===0)return r;let n=e;for(let i=0;i<t.length;i++){if(n==null||Ld.isUnsafeProperty(t[i]))return r;n=n[t[i]]}return n===void 0?r:n}Bd.get=lg});var no=L((F6,ug)=>{"use strict";ug.exports=dl().get});var bg=L(Wd=>{"use strict";Object.defineProperty(Wd,Symbol.toStringTag,{value:"Module"});function AI(e,t){let r=new Map;for(let n=0;n<e.length;n++){let i=e[n],o=t(i,n,e);r.has(o)||r.set(o,i)}return Array.from(r.values())}Wd.uniqBy=AI});var xg=L(Vd=>{"use strict";Object.defineProperty(Vd,Symbol.toStringTag,{value:"Module"});function OI(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}Vd.ary=OI});var $d=L(Kd=>{"use strict";Object.defineProperty(Kd,Symbol.toStringTag,{value:"Module"});function EI(e){return e}Kd.identity=EI});var wg=L(Hd=>{"use strict";Object.defineProperty(Hd,Symbol.toStringTag,{value:"Module"});function CI(e){return Number.isSafeInteger(e)&&e>=0}Hd.isLength=CI});var Ud=L(qd=>{"use strict";Object.defineProperty(qd,Symbol.toStringTag,{value:"Module"});var _I=wg();function II(e){return e!=null&&typeof e!="function"&&_I.isLength(e.length)}qd.isArrayLike=II});var Pg=L(Yd=>{"use strict";Object.defineProperty(Yd,Symbol.toStringTag,{value:"Module"});function TI(e){return typeof e=="object"&&e!==null}Yd.isObjectLike=TI});var Sg=L(Gd=>{"use strict";Object.defineProperty(Gd,Symbol.toStringTag,{value:"Module"});var RI=Ud(),kI=Pg();function DI(e){return kI.isObjectLike(e)&&RI.isArrayLike(e)}Gd.isArrayLikeObject=DI});var Ag=L(Xd=>{"use strict";Object.defineProperty(Xd,Symbol.toStringTag,{value:"Module"});var MI=dl();function NI(e){return function(t){return MI.get(t,e)}}Xd.property=NI});var Jd=L(Zd=>{"use strict";Object.defineProperty(Zd,Symbol.toStringTag,{value:"Module"});function jI(e){return e!==null&&(typeof e=="object"||typeof e=="function")}Zd.isObject=jI});var ep=L(Qd=>{"use strict";Object.defineProperty(Qd,Symbol.toStringTag,{value:"Module"});function LI(e){return e==null||typeof e!="object"&&typeof e!="function"}Qd.isPrimitive=LI});var rp=L(tp=>{"use strict";Object.defineProperty(tp,Symbol.toStringTag,{value:"Module"});function BI(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}tp.isEqualsSameValueZero=BI});var Tg=L(hl=>{"use strict";Object.defineProperty(hl,Symbol.toStringTag,{value:"Module"});var zI=Jd(),Og=ep(),Eg=rp();function Cg(e,t,r){return typeof r!="function"?Cg(e,t,()=>{}):np(e,t,function n(i,o,a,s,l,u){let c=r(i,o,a,s,l,u);return c!==void 0?!!c:np(i,o,n,u)},new Map)}function np(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return FI(e,t,r,n);case"function":return Object.keys(t).length>0?np(e,D({},t),r,n):Eg.isEqualsSameValueZero(e,t);default:return zI.isObject(e)?typeof t=="string"?t==="":!0:Eg.isEqualsSameValueZero(e,t)}}function FI(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return _g(e,t,r,n);if(t instanceof Map)return WI(e,t,r,n);if(t instanceof Set)return Ig(e,t,r,n);let i=Object.keys(t);if(e==null||Og.isPrimitive(e))return i.length===0;if(i.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let o=0;o<i.length;o++){let a=i[o];if(!Og.isPrimitive(e)&&!(a in e)||t[a]===void 0&&e[a]!==void 0||t[a]===null&&e[a]!==null||!r(e[a],t[a],a,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function WI(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,o]of t.entries()){let a=e.get(i);if(r(a,o,i,e,t,n)===!1)return!1}return!0}function _g(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let o=0;o<t.length;o++){let a=t[o],s=!1;for(let l=0;l<e.length;l++){if(i.has(l))continue;let u=e[l],c=!1;if(r(u,a,o,e,t,n)&&(c=!0),c){i.add(l),s=!0;break}}if(!s)return!1}return!0}function Ig(e,t,r,n){return t.size===0?!0:e instanceof Set?_g([...e],[...t],r,n):!1}hl.isMatchWith=Cg;hl.isSetMatch=Ig});var op=L(ip=>{"use strict";Object.defineProperty(ip,Symbol.toStringTag,{value:"Module"});var VI=Tg();function KI(e,t){return VI.isMatchWith(e,t,()=>{})}ip.isMatch=KI});var Rg=L(ap=>{"use strict";Object.defineProperty(ap,Symbol.toStringTag,{value:"Module"});function $I(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}ap.getSymbols=$I});var yl=L(sp=>{"use strict";Object.defineProperty(sp,Symbol.toStringTag,{value:"Module"});function HI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}sp.getTag=HI});var lp=L(be=>{"use strict";Object.defineProperty(be,Symbol.toStringTag,{value:"Module"});var qI="[object RegExp]",UI="[object String]",YI="[object Number]",GI="[object Boolean]",XI="[object Arguments]",ZI="[object Symbol]",JI="[object Date]",QI="[object Map]",eT="[object Set]",tT="[object Array]",rT="[object Function]",nT="[object ArrayBuffer]",iT="[object Object]",oT="[object Error]",aT="[object DataView]",sT="[object Uint8Array]",lT="[object Uint8ClampedArray]",uT="[object Uint16Array]",cT="[object Uint32Array]",fT="[object BigUint64Array]",dT="[object Int8Array]",pT="[object Int16Array]",mT="[object Int32Array]",vT="[object BigInt64Array]",hT="[object Float32Array]",yT="[object Float64Array]";be.argumentsTag=XI;be.arrayBufferTag=nT;be.arrayTag=tT;be.bigInt64ArrayTag=vT;be.bigUint64ArrayTag=fT;be.booleanTag=GI;be.dataViewTag=aT;be.dateTag=JI;be.errorTag=oT;be.float32ArrayTag=hT;be.float64ArrayTag=yT;be.functionTag=rT;be.int16ArrayTag=pT;be.int32ArrayTag=mT;be.int8ArrayTag=dT;be.mapTag=QI;be.numberTag=YI;be.objectTag=iT;be.regexpTag=qI;be.setTag=eT;be.stringTag=UI;be.symbolTag=ZI;be.uint16ArrayTag=uT;be.uint32ArrayTag=cT;be.uint8ArrayTag=sT;be.uint8ClampedArrayTag=lT});var kg=L(up=>{"use strict";Object.defineProperty(up,Symbol.toStringTag,{value:"Module"});var gT=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();up.globalThis=gT});var Mg=L(cp=>{"use strict";Object.defineProperty(cp,Symbol.toStringTag,{value:"Module"});var Dg=kg();function bT(e){return typeof Dg.globalThis.Buffer!="undefined"&&Dg.globalThis.Buffer.isBuffer(e)}cp.isBuffer=bT});var Ng=L(fp=>{"use strict";Object.defineProperty(fp,Symbol.toStringTag,{value:"Module"});function xT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}fp.isTypedArray=xT});var dp=L(xa=>{"use strict";Object.defineProperty(xa,Symbol.toStringTag,{value:"Module"});var wT=Rg(),PT=yl(),ze=lp(),ST=Mg(),AT=ep(),OT=Ng();function ET(e,t){return Qn(e,void 0,e,new Map,t)}function Qn(e,t,r,n=new Map,i=void 0){let o=i==null?void 0:i(e,t,r,n);if(o!==void 0)return o;if(AT.isPrimitive(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let s=0;s<e.length;s++)a[s]=Qn(e[s],s,r,n,i);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){let a=new Map;n.set(e,a);for(let[s,l]of e)a.set(s,Qn(l,s,r,n,i));return a}if(e instanceof Set){let a=new Set;n.set(e,a);for(let s of e)a.add(Qn(s,void 0,r,n,i));return a}if(ST.isBuffer(e))return e.subarray();if(OT.isTypedArray(e)){let a=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,a);for(let s=0;s<e.length;s++)a[s]=Qn(e[s],s,r,n,i);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer!="undefined"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,a),Vr(a,e,r,n,i),a}if(typeof File!="undefined"&&e instanceof File){let a=new File([e],e.name,{type:e.type});return n.set(e,a),Vr(a,e,r,n,i),a}if(typeof Blob!="undefined"&&e instanceof Blob){let a=new Blob([e],{type:e.type});return n.set(e,a),Vr(a,e,r,n,i),a}if(e instanceof Error){let a=structuredClone(e);return n.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,a.constructor=e.constructor,Vr(a,e,r,n,i),a}if(e instanceof Boolean){let a=new Boolean(e.valueOf());return n.set(e,a),Vr(a,e,r,n,i),a}if(e instanceof Number){let a=new Number(e.valueOf());return n.set(e,a),Vr(a,e,r,n,i),a}if(e instanceof String){let a=new String(e.valueOf());return n.set(e,a),Vr(a,e,r,n,i),a}if(typeof e=="object"&&CT(e)){let a=Object.create(Object.getPrototypeOf(e));return n.set(e,a),Vr(a,e,r,n,i),a}return e}function Vr(e,t,r=e,n,i){let o=[...Object.keys(t),...wT.getSymbols(t)];for(let a=0;a<o.length;a++){let s=o[a],l=Object.getOwnPropertyDescriptor(e,s);(l==null||l.writable)&&(e[s]=Qn(t[s],s,r,n,i))}}function CT(e){switch(PT.getTag(e)){case ze.argumentsTag:case ze.arrayTag:case ze.arrayBufferTag:case ze.dataViewTag:case ze.booleanTag:case ze.dateTag:case ze.float32ArrayTag:case ze.float64ArrayTag:case ze.int8ArrayTag:case ze.int16ArrayTag:case ze.int32ArrayTag:case ze.mapTag:case ze.numberTag:case ze.objectTag:case ze.regexpTag:case ze.setTag:case ze.stringTag:case ze.symbolTag:case ze.uint8ArrayTag:case ze.uint8ClampedArrayTag:case ze.uint16ArrayTag:case ze.uint32ArrayTag:return!0;default:return!1}}xa.cloneDeepWith=ET;xa.cloneDeepWithImpl=Qn;xa.copyProperties=Vr});var jg=L(pp=>{"use strict";Object.defineProperty(pp,Symbol.toStringTag,{value:"Module"});var _T=dp();function IT(e){return _T.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}pp.cloneDeep=IT});var Lg=L(mp=>{"use strict";Object.defineProperty(mp,Symbol.toStringTag,{value:"Module"});var TT=op(),RT=jg();function kT(e){return e=RT.cloneDeep(e),t=>TT.isMatch(t,e)}mp.matches=kT});var Bg=L(vp=>{"use strict";Object.defineProperty(vp,Symbol.toStringTag,{value:"Module"});var gl=dp(),DT=yl(),wa=lp();function MT(e,t){return gl.cloneDeepWith(e,(r,n,i,o)=>{let a=t==null?void 0:t(r,n,i,o);if(a!==void 0)return a;if(typeof e=="object"){if(DT.getTag(e)===wa.objectTag&&typeof e.constructor!="function"){let s={};return o.set(e,s),gl.copyProperties(s,e,i,o),s}switch(Object.prototype.toString.call(e)){case wa.numberTag:case wa.stringTag:case wa.booleanTag:{let s=new e.constructor(e==null?void 0:e.valueOf());return gl.copyProperties(s,e),s}case wa.argumentsTag:{let s={};return gl.copyProperties(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}vp.cloneDeepWith=MT});var zg=L(hp=>{"use strict";Object.defineProperty(hp,Symbol.toStringTag,{value:"Module"});var NT=Bg();function jT(e){return NT.cloneDeepWith(e)}hp.cloneDeep=jT});var gp=L(yp=>{"use strict";Object.defineProperty(yp,Symbol.toStringTag,{value:"Module"});var LT=/^(?:0|[1-9]\d*)$/;function BT(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 LT.test(e)}}yp.isIndex=BT});var Fg=L(bp=>{"use strict";Object.defineProperty(bp,Symbol.toStringTag,{value:"Module"});var zT=yl();function FT(e){return e!==null&&typeof e=="object"&&zT.getTag(e)==="[object Arguments]"}bp.isArguments=FT});var Wg=L(xp=>{"use strict";Object.defineProperty(xp,Symbol.toStringTag,{value:"Module"});var WT=Dd(),VT=gp(),KT=Fg(),$T=fl();function HT(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&WT.isDeepKey(t)&&(e==null?void 0:e[t])==null?r=$T.toPath(t):r=[t],r.length===0)return!1;let n=e;for(let i=0;i<r.length;i++){let o=r[i];if((n==null||!Object.hasOwn(n,o))&&!((Array.isArray(n)||KT.isArguments(n))&&VT.isIndex(o)&&o<n.length))return!1;n=n[o]}return!0}xp.has=HT});var Vg=L(wp=>{"use strict";Object.defineProperty(wp,Symbol.toStringTag,{value:"Module"});var qT=op(),UT=cl(),YT=zg(),GT=dl(),XT=Wg();function ZT(e,t){switch(typeof e){case"object":{Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break}case"number":{e=UT.toKey(e);break}}return t=YT.cloneDeep(t),function(r){let n=GT.get(r,e);return n===void 0?XT.has(r,e):t===void 0?n===void 0:qT.isMatch(n,t)}}wp.matchesProperty=ZT});var Kg=L(Pp=>{"use strict";Object.defineProperty(Pp,Symbol.toStringTag,{value:"Module"});var JT=$d(),QT=Ag(),eR=Lg(),tR=Vg();function rR(e){if(e==null)return JT.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?tR.matchesProperty(e[0],e[1]):eR.matches(e);case"string":case"symbol":case"number":return QT.property(e)}}Pp.iteratee=rR});var $g=L(Sp=>{"use strict";Object.defineProperty(Sp,Symbol.toStringTag,{value:"Module"});var nR=bg(),iR=xg(),oR=$d(),aR=Sg(),sR=Kg();function lR(e,t=oR.identity){return aR.isArrayLikeObject(e)?nR.uniqBy(Array.from(e),iR.ary(sR.iteratee(t),1)):[]}Sp.uniqBy=lR});var qg=L((jY,Hg)=>{"use strict";Hg.exports=$g().uniqBy});var Yg=L(Ug=>{"use strict";var oo=Yi("react");function uR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cR=typeof Object.is=="function"?Object.is:uR,fR=oo.useState,dR=oo.useEffect,pR=oo.useLayoutEffect,mR=oo.useDebugValue;function vR(e,t){var r=t(),n=fR({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return pR(function(){i.value=r,i.getSnapshot=t,Op(i)&&o({inst:i})},[e,r,t]),dR(function(){return Op(i)&&o({inst:i}),e(function(){Op(i)&&o({inst:i})})},[e]),mR(r),r}function Op(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!cR(e,r)}catch(n){return!0}}function hR(e,t){return t()}var yR=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?hR:vR;Ug.useSyncExternalStore=oo.useSyncExternalStore!==void 0?oo.useSyncExternalStore:yR});var Xg=L(Gg=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=m();if(!f){var y=m();o(v,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=a({inst:{value:v,getSnapshot:m}});var h=y[0].inst,g=y[1];return l(function(){h.value=v,h.getSnapshot=m,r(h)&&g({inst:h})},[p,v,m]),s(function(){return r(h)&&g({inst:h}),p(function(){r(h)&&g({inst:h})})},[p]),u(v),v}function r(p){var m=p.getSnapshot;p=p.value;try{var v=m();return!o(p,v)}catch(y){return!0}}function n(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=Yi("react"),o=typeof Object.is=="function"?Object.is:e,a=i.useState,s=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue,c=!1,f=!1,d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Gg.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Cp=L((FY,Ep)=>{"use strict";process.env.NODE_ENV==="production"?Ep.exports=Yg():Ep.exports=Xg()});var Jg=L(Zg=>{"use strict";var xl=Yi("react"),gR=Cp();function bR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xR=typeof Object.is=="function"?Object.is:bR,wR=gR.useSyncExternalStore,PR=xl.useRef,SR=xl.useEffect,AR=xl.useMemo,OR=xl.useDebugValue;Zg.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=PR(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=AR(function(){function l(p){if(!u){if(u=!0,c=p,p=n(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return f=m}return f=p}if(m=f,xR(c,p))return m;var v=n(p);return i!==void 0&&i(m,v)?(c=p,m):(c=p,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=wR(e,o[0],o[1]);return SR(function(){a.hasValue=!0,a.value=s},[s]),OR(s),s}});var eb=L(Qg=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Yi("react"),r=Cp(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,o=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Qg.useSyncExternalStoreWithSelector=function(u,c,f,d,p){var m=o(null);if(m.current===null){var v={hasValue:!1,value:null};m.current=v}else v=m.current;m=s(function(){function h(w){if(!g){if(g=!0,x=w,w=d(w),p!==void 0&&v.hasValue){var A=v.value;if(p(A,w))return b=A}return b=w}if(A=b,n(x,w))return A;var O=d(w);return p!==void 0&&p(A,O)?(x=w,A):(x=w,b=O)}var g=!1,x,b,P=f===void 0?null:f;return[function(){return h(c())},P===null?void 0:function(){return h(P())}]},[c,f,d,p]);var y=i(u,m[0],m[1]);return a(function(){v.hasValue=!0,v.value=y},[y]),l(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var tb=L((KY,_p)=>{"use strict";process.env.NODE_ENV==="production"?_p.exports=Jg():_p.exports=eb()});var ub=L(Ip=>{"use strict";Object.defineProperty(Ip,Symbol.toStringTag,{value:"Module"});function lb(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}var $R=(e,t,r)=>{if(e!==t){let n=lb(e),i=lb(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};Ip.compareValues=$R});var Rp=L(Tp=>{"use strict";Object.defineProperty(Tp,Symbol.toStringTag,{value:"Module"});function HR(e){return typeof e=="symbol"||e instanceof Symbol}Tp.isSymbol=HR});var cb=L(kp=>{"use strict";Object.defineProperty(kp,Symbol.toStringTag,{value:"Module"});var qR=Rp(),UR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YR=/^\w*$/;function GR(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||qR.isSymbol(e)?!0:typeof e=="string"&&(YR.test(e)||!UR.test(e))||t!=null&&Object.hasOwn(t,e)}kp.isKey=GR});var fb=L(Dp=>{"use strict";Object.defineProperty(Dp,Symbol.toStringTag,{value:"Module"});var XR=ub(),ZR=cb(),JR=fl();function QR(e,t,r,n){if(e==null)return[];r=n?void 0:r,Array.isArray(e)||(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(l=>String(l));let i=(l,u)=>{let c=l;for(let f=0;f<u.length&&c!=null;++f)c=c[u[f]];return c},o=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:i(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?i(u,l):typeof u=="object"?u[l]:u,a=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||ZR.isKey(l)?l:{key:l,path:JR.toPath(l)}));return e.map(l=>({original:l,criteria:a.map(u=>o(u,l))})).slice().sort((l,u)=>{for(let c=0;c<a.length;c++){let f=XR.compareValues(l.criteria[c],u.criteria[c],r[c]);if(f!==0)return f}return 0}).map(l=>l.original)}Dp.orderBy=QR});var db=L(Mp=>{"use strict";Object.defineProperty(Mp,Symbol.toStringTag,{value:"Module"});function ek(e,t=1){let r=[],n=Math.floor(t),i=(o,a)=>{for(let s=0;s<o.length;s++){let l=o[s];Array.isArray(l)&&a<n?i(l,a+1):r.push(l)}};return i(e,0),r}Mp.flatten=ek});var jp=L(Np=>{"use strict";Object.defineProperty(Np,Symbol.toStringTag,{value:"Module"});var tk=gp(),rk=Ud(),nk=Jd(),ik=rp();function ok(e,t,r){return nk.isObject(r)&&(typeof t=="number"&&rk.isArrayLike(r)&&tk.isIndex(t)&&t<r.length||typeof t=="string"&&t in r)?ik.isEqualsSameValueZero(r[t],e):!1}Np.isIterateeCall=ok});var mb=L(Lp=>{"use strict";Object.defineProperty(Lp,Symbol.toStringTag,{value:"Module"});var ak=fb(),sk=db(),pb=jp();function lk(e,...t){let r=t.length;return r>1&&pb.isIterateeCall(e,t[0],t[1])?t=[]:r>2&&pb.isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),ak.orderBy(e,sk.flatten(t),["asc"])}Lp.sortBy=lk});var Sa=L((aG,vb)=>{"use strict";vb.exports=mb().sortBy});var Lx=L(vm=>{"use strict";Object.defineProperty(vm,Symbol.toStringTag,{value:"Module"});function WD(e,t,{signal:r,edges:n}={}){let i,o=null,a=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=()=>{o!==null&&(e.apply(i,o),i=void 0,o=null)},u=()=>{s&&l(),p()},c=null,f=()=>{c!=null&&clearTimeout(c),c=setTimeout(()=>{c=null,u()},t)},d=()=>{c!==null&&(clearTimeout(c),c=null)},p=()=>{d(),i=void 0,o=null},m=()=>{l()},v=function(...y){if(r!=null&&r.aborted)return;i=this,o=y;let h=c==null;f(),a&&h&&l()};return v.schedule=f,v.cancel=p,v.flush=m,r==null||r.addEventListener("abort",p,{once:!0}),v}vm.debounce=WD});var Bx=L(hm=>{"use strict";Object.defineProperty(hm,Symbol.toStringTag,{value:"Module"});var VD=Lx();function KD(e,t=0,r={}){typeof r!="object"&&(r={});let{leading:n=!1,trailing:i=!0,maxWait:o}=r,a=Array(2);n&&(a[0]="leading"),i&&(a[1]="trailing");let s,l=null,u=VD.debounce(function(...d){s=e.apply(this,d),l=null},t,{edges:a}),c=function(...d){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(s=e.apply(this,d),l=Date.now(),u.cancel(),u.schedule(),s):(u.apply(this,d),s)},f=()=>(u.flush(),s);return c.cancel=u.cancel,c.flush=f,c}hm.debounce=KD});var zx=L(ym=>{"use strict";Object.defineProperty(ym,Symbol.toStringTag,{value:"Module"});var $D=Bx();function HD(e,t=0,r={}){let{leading:n=!0,trailing:i=!0}=r;return $D.debounce(e,t,{leading:n,maxWait:t,trailing:i})}ym.throttle=HD});var Wx=L((l7,Fx)=>{"use strict";Fx.exports=zx().throttle});var n0=L(r0=>{"use strict";var Da=Yi("react");function dM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pM=typeof Object.is=="function"?Object.is:dM,mM=Da.useSyncExternalStore,vM=Da.useRef,hM=Da.useEffect,yM=Da.useMemo,gM=Da.useDebugValue;r0.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=vM(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=yM(function(){function l(p){if(!u){if(u=!0,c=p,p=n(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return f=m}return f=p}if(m=f,pM(c,p))return m;var v=n(p);return i!==void 0&&i(m,v)?(c=p,m):(c=p,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=mM(e,o[0],o[1]);return hM(function(){a.hasValue=!0,a.value=s},[s]),gM(s),s}});var o0=L(i0=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Yi("react"),r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,o=t.useEffect,a=t.useMemo,s=t.useDebugValue;i0.useSyncExternalStoreWithSelector=function(l,u,c,f,d){var p=i(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(P){if(!h){if(h=!0,g=P,P=f(P),d!==void 0&&m.hasValue){var w=m.value;if(d(w,P))return x=w}return x=P}if(w=x,r(g,P))return w;var A=f(P);return d!==void 0&&d(w,A)?(g=P,w):(g=P,x=A)}var h=!1,g,x,b=c===void 0?null:c;return[function(){return y(u())},b===null?void 0:function(){return y(b())}]},[u,c,f,d]);var v=n(l,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=v},[v]),s(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var a0=L((D7,Om)=>{"use strict";process.env.NODE_ENV==="production"?Om.exports=n0():Om.exports=o0()});var ww=L(Nm=>{"use strict";Object.defineProperty(Nm,Symbol.toStringTag,{value:"Module"});var yj=Rp();function gj(e){return yj.isSymbol(e)?NaN:Number(e)}Nm.toNumber=gj});var Pw=L(jm=>{"use strict";Object.defineProperty(jm,Symbol.toStringTag,{value:"Module"});var bj=ww();function xj(e){return e?(e=bj.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}jm.toFinite=xj});var Sw=L(Bm=>{"use strict";Object.defineProperty(Bm,Symbol.toStringTag,{value:"Module"});var wj=jp(),Lm=Pw();function Pj(e,t,r){r&&typeof r!="number"&&wj.isIterateeCall(e,t,r)&&(t=r=void 0),e=Lm.toFinite(e),t===void 0?(t=e,e=0):t=Lm.toFinite(t),r=r===void 0?e<t?1:-1:Lm.toFinite(r);let n=Math.max(Math.ceil((t-e)/(r||1)),0),i=new Array(n);for(let o=0;o<n;o++)i[o]=e,e+=r;return i}Bm.range=Pj});var Ow=L((AX,Aw)=>{"use strict";Aw.exports=Sw().range});var RA=L((boe,Ah)=>{"use strict";var oF=Object.prototype.hasOwnProperty,Ot="~";function As(){}Object.create&&(As.prototype=Object.create(null),new As().__proto__||(Ot=!1));function aF(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function TA(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new aF(r,n||e,i),a=Ot?Ot+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],o]:e._events[a].push(o):(e._events[a]=o,e._eventsCount++),e}function Fc(e,t){--e._eventsCount===0?e._events=new As:delete e._events[t]}function vt(){this._events=new As,this._eventsCount=0}vt.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)oF.call(r,n)&&t.push(Ot?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};vt.prototype.listeners=function(t){var r=Ot?Ot+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a};vt.prototype.listenerCount=function(t){var r=Ot?Ot+t:t,n=this._events[r];return n?n.fn?1:n.length:0};vt.prototype.emit=function(t,r,n,i,o,a){var s=Ot?Ot+t:t;if(!this._events[s])return!1;var l=this._events[s],u=arguments.length,c,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,i),!0;case 5:return l.fn.call(l.context,r,n,i,o),!0;case 6:return l.fn.call(l.context,r,n,i,o,a),!0}for(f=1,c=new Array(u-1);f<u;f++)c[f-1]=arguments[f];l.fn.apply(l.context,c)}else{var d=l.length,p;for(f=0;f<d;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),u){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,r);break;case 3:l[f].fn.call(l[f].context,r,n);break;case 4:l[f].fn.call(l[f].context,r,n,i);break;default:if(!c)for(p=1,c=new Array(u-1);p<u;p++)c[p-1]=arguments[p];l[f].fn.apply(l[f].context,c)}}return!0};vt.prototype.on=function(t,r,n){return TA(this,t,r,n,!1)};vt.prototype.once=function(t,r,n){return TA(this,t,r,n,!0)};vt.prototype.removeListener=function(t,r,n,i){var o=Ot?Ot+t:t;if(!this._events[o])return this;if(!r)return Fc(this,o),this;var a=this._events[o];if(a.fn)a.fn===r&&(!i||a.once)&&(!n||a.context===n)&&Fc(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==r||i&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:Fc(this,o)}return this};vt.prototype.removeAllListeners=function(t){var r;return t?(r=Ot?Ot+t:t,this._events[r]&&Fc(this,r)):(this._events=new As,this._eventsCount=0),this};vt.prototype.off=vt.prototype.removeListener;vt.prototype.addListener=vt.prototype.on;vt.prefixed=Ot;vt.EventEmitter=vt;typeof Ah!="undefined"&&(Ah.exports=vt)});var WO=L(he=>{"use strict";var nt=typeof Symbol=="function"&&Symbol.for,Dh=nt?Symbol.for("react.element"):60103,Mh=nt?Symbol.for("react.portal"):60106,ef=nt?Symbol.for("react.fragment"):60107,tf=nt?Symbol.for("react.strict_mode"):60108,rf=nt?Symbol.for("react.profiler"):60114,nf=nt?Symbol.for("react.provider"):60109,of=nt?Symbol.for("react.context"):60110,Nh=nt?Symbol.for("react.async_mode"):60111,af=nt?Symbol.for("react.concurrent_mode"):60111,sf=nt?Symbol.for("react.forward_ref"):60112,lf=nt?Symbol.for("react.suspense"):60113,V5=nt?Symbol.for("react.suspense_list"):60120,uf=nt?Symbol.for("react.memo"):60115,cf=nt?Symbol.for("react.lazy"):60116,K5=nt?Symbol.for("react.block"):60121,$5=nt?Symbol.for("react.fundamental"):60117,H5=nt?Symbol.for("react.responder"):60118,q5=nt?Symbol.for("react.scope"):60119;function Yt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dh:switch(e=e.type,e){case Nh:case af:case ef:case rf:case tf:case lf:return e;default:switch(e=e&&e.$$typeof,e){case of:case sf:case cf:case uf:case nf:return e;default:return t}}case Mh:return t}}}function FO(e){return Yt(e)===af}he.AsyncMode=Nh;he.ConcurrentMode=af;he.ContextConsumer=of;he.ContextProvider=nf;he.Element=Dh;he.ForwardRef=sf;he.Fragment=ef;he.Lazy=cf;he.Memo=uf;he.Portal=Mh;he.Profiler=rf;he.StrictMode=tf;he.Suspense=lf;he.isAsyncMode=function(e){return FO(e)||Yt(e)===Nh};he.isConcurrentMode=FO;he.isContextConsumer=function(e){return Yt(e)===of};he.isContextProvider=function(e){return Yt(e)===nf};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dh};he.isForwardRef=function(e){return Yt(e)===sf};he.isFragment=function(e){return Yt(e)===ef};he.isLazy=function(e){return Yt(e)===cf};he.isMemo=function(e){return Yt(e)===uf};he.isPortal=function(e){return Yt(e)===Mh};he.isProfiler=function(e){return Yt(e)===rf};he.isStrictMode=function(e){return Yt(e)===tf};he.isSuspense=function(e){return Yt(e)===lf};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ef||e===af||e===rf||e===tf||e===lf||e===V5||typeof e=="object"&&e!==null&&(e.$$typeof===cf||e.$$typeof===uf||e.$$typeof===nf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===$5||e.$$typeof===H5||e.$$typeof===q5||e.$$typeof===K5)};he.typeOf=Yt});var VO=L(ye=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function x(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===i||C===f||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===a||C.$$typeof===s||C.$$typeof===c||C.$$typeof===y||C.$$typeof===h||C.$$typeof===g||C.$$typeof===v)}function b(C){if(typeof C=="object"&&C!==null){var Je=C.$$typeof;switch(Je){case t:var fe=C.type;switch(fe){case l:case u:case n:case o:case i:case f:return fe;default:var ct=fe&&fe.$$typeof;switch(ct){case s:case c:case m:case p:case a:return ct;default:return Je}}case r:return Je}}}var P=l,w=u,A=s,O=a,E=t,I=c,T=n,_=m,N=p,M=r,F=o,J=i,U=f,ne=!1;function K(C){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),te(C)||b(C)===l}function te(C){return b(C)===u}function Be(C){return b(C)===s}function Se(C){return b(C)===a}function gt(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function lt(C){return b(C)===c}function pr(C){return b(C)===n}function Un(C){return b(C)===m}function Yn(C){return b(C)===p}function ut(C){return b(C)===r}function B(C){return b(C)===o}function j(C){return b(C)===i}function ae(C){return b(C)===f}ye.AsyncMode=P,ye.ConcurrentMode=w,ye.ContextConsumer=A,ye.ContextProvider=O,ye.Element=E,ye.ForwardRef=I,ye.Fragment=T,ye.Lazy=_,ye.Memo=N,ye.Portal=M,ye.Profiler=F,ye.StrictMode=J,ye.Suspense=U,ye.isAsyncMode=K,ye.isConcurrentMode=te,ye.isContextConsumer=Be,ye.isContextProvider=Se,ye.isElement=gt,ye.isForwardRef=lt,ye.isFragment=pr,ye.isLazy=Un,ye.isMemo=Yn,ye.isPortal=ut,ye.isProfiler=B,ye.isStrictMode=j,ye.isSuspense=ae,ye.isValidElementType=x,ye.typeOf=b})()});var KO=L((_se,jh)=>{"use strict";process.env.NODE_ENV==="production"?jh.exports=WO():jh.exports=VO()});var YO=L(zh=>{"use strict";Object.defineProperty(zh,Symbol.toStringTag,{value:"Module"});function Y5(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let n=e[Symbol.toStringTag];return n==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${n}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}zh.isPlainObject=Y5});var XO=L((Dse,GO)=>{"use strict";GO.exports=YO().isPlainObject});import{createContext as m_,useContext as v_,useState as h_}from"react";import{jsx as By}from"react/jsx-runtime";var zy=m_(null),y_=({children:e,defaultTheme:t="light"})=>{let[r,n]=h_(t);return By(zy.Provider,{value:{theme:r,toggle:()=>n(i=>i==="light"?"dark":"light")},children:By("div",{className:r==="dark"?"ds-theme-dark":void 0,children:e})})},g_=()=>{let e=v_(zy);if(!e)throw new Error("useTheme must be used inside <ThemeProvider>");return e};import*as rl from"react";import{forwardRef as C_}from"react";function Fy(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Fy(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function W(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Fy(e))&&(n&&(n+=" "),n+=t);return n}import{isValidElement as S_}from"react";var b_=["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 va(e){if(typeof e!="string")return!1;var t=b_;return t.includes(e)}import{isValidElement as x_}from"react";var w_=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],P_=new Set(w_);function Jf(e){return typeof e!="string"?!1:P_.has(e)}function Qf(e){return typeof e=="string"&&e.startsWith("data-")}function Te(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Jf(r)||Qf(r))&&(t[r]=e[r]);return t}function Mt(e){if(e==null)return null;if(x_(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Te(t)}return typeof e=="object"&&!Array.isArray(e)?Te(e):null}function ge(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Jf(r)||Qf(r)||va(r))&&(t[r]=e[r]);return t}function Wy(e){return e==null?null:S_(e)?ge(e.props):typeof e=="object"&&!Array.isArray(e)?ge(e):null}var A_=["children","width","height","viewBox","className","style","title","desc"];function ed(){return ed=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},ed.apply(null,arguments)}function O_(e,t){if(e==null)return{};var r,n,i=E_(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function E_(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 ha=C_((e,t)=>{var{children:r,width:n,height:i,viewBox:o,className:a,style:s,title:l,desc:u}=e,c=O_(e,A_),f=o||{width:n,height:i,x:0,y:0},d=W("recharts-surface",a);return rl.createElement("svg",ed({},ge(c),{className:d,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),rl.createElement("title",null,l),rl.createElement("desc",null,u),r)});import*as nl from"react";var __=["children","className"];function td(){return td=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},td.apply(null,arguments)}function I_(e,t){if(e==null)return{};var r,n,i=T_(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function T_(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 se=nl.forwardRef((e,t)=>{var{children:r,className:n}=e,i=I_(e,__),o=W("recharts-layer",n);return nl.createElement("g",td({className:o},ge(i),{ref:t}),r)});import*as zt from"react";import{useEffect as d0}from"react";import{createPortal as qM}from"react-dom";import{createContext as R_,useContext as k_}from"react";var rd=R_(null),Vy=()=>k_(rd);import*as wt from"react";import*as pg from"react";function pe(e){return function(){return e}}var nd=Math.cos;var ya=Math.sin,Qe=Math.sqrt;var Xn=Math.PI,$q=Xn/2,Gi=2*Xn;var id=Math.PI,od=2*id,Zn=1e-6,D_=od-Zn;function Ky(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function M_(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ky;let r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}var Jn=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ky:M_(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,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=n-t,u=i-r,c=a-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Zn)if(!(Math.abs(f*l-u*c)>Zn)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-a,m=i-s,v=l*l+u*u,y=p*p+m*m,h=Math.sqrt(v),g=Math.sqrt(d),x=o*Math.tan((id-Math.acos((v+d-y)/(2*h*g)))/2),b=x/g,P=x/h;Math.abs(b-1)>Zn&&this._append`L${t+b*c},${r+b*f}`,this._append`A${o},${o},0,0,${+(f*p>c*m)},${this._x1=t+P*l},${this._y1=r+P*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Zn||Math.abs(this._y1-c)>Zn)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%od+od),d>D_?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Zn&&this._append`A${n},${n},0,${+(d>=id)},${f},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}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 $y(){return new Jn}$y.prototype=Jn.prototype;function Xi(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Jn(t)}var Jq=Array.prototype.slice;function Zi(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Hy(e){this._context=e}Hy.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 cn(e){return new Hy(e)}function il(e){return e[0]}function ol(e){return e[1]}function ga(e,t){var r=pe(!0),n=null,i=cn,o=null,a=Xi(s);e=typeof e=="function"?e:e===void 0?il:pe(e),t=typeof t=="function"?t:t===void 0?ol:pe(t);function s(l){var u,c=(l=Zi(l)).length,f,d=!1,p;for(n==null&&(o=i(p=a())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(f,u,l),+t(f,u,l));if(p)return o=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:pe(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(o=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=o=null:o=i(n=l),s):n},s}function Ji(e,t,r){var n=null,i=pe(!0),o=null,a=cn,s=null,l=Xi(u);e=typeof e=="function"?e:e===void 0?il:pe(+e),t=typeof t=="function"?t:t===void 0?pe(0):pe(+t),r=typeof r=="function"?r:r===void 0?ol:pe(+r);function u(f){var d,p,m,v=(f=Zi(f)).length,y,h=!1,g,x=new Array(v),b=new Array(v);for(o==null&&(s=a(g=l())),d=0;d<=v;++d){if(!(d<v&&i(y=f[d],d,f))===h)if(h=!h)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=p;--m)s.point(x[m],b[m]);s.lineEnd(),s.areaEnd()}h&&(x[d]=+e(y,d,f),b[d]=+t(y,d,f),s.point(n?+n(y,d,f):x[d],r?+r(y,d,f):b[d]))}if(g)return s=null,g+""||null}function c(){return ga().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:pe(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:pe(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:pe(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:pe(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:pe(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:pe(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:pe(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(s=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=s=null:s=a(o=f),u):o},u}var al=class{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 ad(e){return new al(e,!0)}function sd(e){return new al(e,!1)}var Qi={draw(e,t){let r=Qe(t/Xn);e.moveTo(r,0),e.arc(0,0,r,0,Gi)}};var ld={draw(e,t){let r=Qe(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()}};var qy=Qe(1/3),N_=qy*2,ud={draw(e,t){let r=Qe(t/N_),n=r*qy;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var cd={draw(e,t){let r=Qe(t),n=-r/2;e.rect(n,n,r,r)}};var j_=.8908130915292852,Uy=ya(Xn/10)/ya(7*Xn/10),L_=ya(Gi/10)*Uy,B_=-nd(Gi/10)*Uy,fd={draw(e,t){let r=Qe(t*j_),n=L_*r,i=B_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){let a=Gi*o/5,s=nd(a),l=ya(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}};var dd=Qe(3),pd={draw(e,t){let r=-Qe(t/(dd*3));e.moveTo(0,r*2),e.lineTo(-dd*r,-r),e.lineTo(dd*r,-r),e.closePath()}};var Xt=-.5,Zt=Qe(3)/2,md=1/Qe(12),z_=(md/2+1)*3,vd={draw(e,t){let r=Qe(t/z_),n=r/2,i=r*md,o=n,a=r*md+r,s=-o,l=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Xt*n-Zt*i,Zt*n+Xt*i),e.lineTo(Xt*o-Zt*a,Zt*o+Xt*a),e.lineTo(Xt*s-Zt*l,Zt*s+Xt*l),e.lineTo(Xt*n+Zt*i,Xt*i-Zt*n),e.lineTo(Xt*o+Zt*a,Xt*a-Zt*o),e.lineTo(Xt*s+Zt*l,Xt*l-Zt*s),e.closePath()}};function sl(e,t){let r=null,n=Xi(i);e=typeof e=="function"?e:pe(e||Qi),t=typeof t=="function"?t:pe(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:pe(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:pe(+o),i):t},i.context=function(o){return arguments.length?(r=o==null?null:o,i):r},i}function eo(){}function to(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 Yy(e){this._context=e}Yy.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:to(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:to(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hd(e){return new Yy(e)}function Gy(e){this._context=e}Gy.prototype={areaStart:eo,areaEnd:eo,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:to(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yd(e){return new Gy(e)}function Xy(e){this._context=e}Xy.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:to(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gd(e){return new Xy(e)}function Zy(e){this._context=e}Zy.prototype={areaStart:eo,areaEnd:eo,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 bd(e){return new Zy(e)}function Jy(e){return e<0?-1:1}function Qy(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(Jy(o)+Jy(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function eg(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function xd(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function ll(e){this._context=e}ll.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:xd(this,this._t0,eg(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,xd(this,eg(this,r=Qy(this,e,t)),r);break;default:xd(this,this._t0,r=Qy(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tg(e){this._context=new rg(e)}(tg.prototype=Object.create(ll.prototype)).point=function(e,t){ll.prototype.point.call(this,t,e)};function rg(e){this._context=e}rg.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,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function wd(e){return new ll(e)}function Pd(e){return new tg(e)}function ig(e){this._context=e}ig.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=ng(e),i=ng(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(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 ng(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Sd(e){return new ig(e)}function ul(e,t){this._context=e,this._t=t}ul.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 Ad(e){return new ul(e,.5)}function Od(e){return new ul(e,0)}function Ed(e){return new ul(e,1)}function Nt(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ro(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function F_(e,t){return e[t]}function W_(e){let t=[];return t.key=e,t}function Cd(){var e=pe([]),t=ro,r=Nt,n=F_;function i(o){var a=Array.from(e.apply(this,arguments),W_),s,l=a.length,u=-1,c;for(let f of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+n(f,a[s].key,u,o)]).data=f;for(s=0,c=Zi(t(a));s<l;++s)a[c[s]].index=s;return r(a,c),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:pe(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:pe(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?ro:typeof o=="function"?o:pe(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o==null?Nt:o,i):r},i}function _d(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}Nt(e,t)}}function Id(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}Nt(e,t)}}function Td(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,l=0,u=0;s<a;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,p=(f-d)/2,m=0;m<s;++m){var v=e[t[m]],y=v[n][1]||0,h=v[n-1][1]||0;p+=y-h}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Nt(e,t)}}var cg=it(no());var Q_=4;function xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q_,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Ee(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,o,a)=>{var s=r[a-1];return typeof s=="string"?i+s+o:s!==void 0?i+xr(s)+o:i+o},"")}var xe=e=>e===0?0:e>0?1:-1,et=e=>typeof e=="number"&&e!=+e,Br=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,R=e=>(typeof e=="number"||e instanceof Number)&&!et(e),bt=e=>R(e)||typeof e=="string",eI=0,zr=e=>{var t=++eI;return"".concat(e||"").concat(t)},je=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(!R(t)&&typeof t!="string")return n;var o;if(Br(t)){if(r==null)return n;var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return et(o)&&(o=n),i&&r!=null&&o>r&&(o=r),o},zd=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 ie(e,t,r){return R(e)&&R(t)?xr(e+r*(t-e)):t}function pl(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):(0,cg.default)(n,t))===r)}var Q=e=>e===null||typeof e=="undefined",Fr=e=>Q(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ot(e){return e!=null}function xt(){}var tI=["type","size","sizeType"];function Fd(){return Fd=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},Fd.apply(null,arguments)}function fg(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 dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fg(Object(r),!0).forEach(function(n){rI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rI(e,t,r){return(t=nI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nI(e){var t=iI(e,"string");return typeof t=="symbol"?t:t+""}function iI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oI(e,t){if(e==null)return{};var r,n,i=aI(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aI(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 mg={symbolCircle:Qi,symbolCross:ld,symbolDiamond:ud,symbolSquare:cd,symbolStar:fd,symbolTriangle:pd,symbolWye:vd},sI=Math.PI/180,lI=e=>{var t="symbol".concat(Fr(e));return mg[t]||Qi},uI=(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*sI;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}},cI=(e,t)=>{mg["symbol".concat(Fr(e))]=t},ba=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=oI(e,tI),o=dg(dg({},i),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var d=lI(a),p=sl().type(d).size(uI(r,n,a)),m=p();if(m!==null)return m},{className:l,cx:u,cy:c}=o,f=ge(o);return R(u)&&R(c)&&R(r)?pg.createElement("path",Fd({},f,{className:W("recharts-symbols",l),transform:"translate(".concat(u,", ").concat(c,")"),d:s()})):null};ba.registerSymbol=cI;import{isValidElement as fI}from"react";var ml=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,io=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(fI(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{va(i)&&typeof r[i]=="function"&&(n[i]=t||(o=>r[i](r,o)))}),n},dI=(e,t,r)=>n=>(e(t,r,n),null),Wr=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var o=e[i];va(i)&&typeof o=="function"&&(n||(n={}),n[i]=dI(o,t,r))}),n};function vg(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?vg(Object(r),!0).forEach(function(n){mI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mI(e,t,r){return(t=vI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vI(e){var t=hI(e,"string");return typeof t=="symbol"?t:t+""}function hI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X(e,t){var r=pI({},e),n=t,i=Object.keys(t),o=i.reduce((a,s)=>(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return o}function vl(){return vl=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},vl.apply(null,arguments)}function hg(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 yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(r),!0).forEach(function(n){yI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yI(e,t,r){return(t=gI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gI(e){var t=bI(e,"string");return typeof t=="symbol"?t:t+""}function bI(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jt=32,xI={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function wI(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function PI(e){var{data:t,iconType:r,inactiveColor:n}=e,i=Jt/2,o=Jt/6,a=Jt/3,s=t.inactive?n:t.color,l=r!=null?r:t.type;if(l==="none")return null;if(l==="plainline")return wt.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:wI(t.payload),x1:0,y1:i,x2:Jt,y2:i,className:"recharts-legend-icon"});if(l==="line")return wt.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(a,`
3
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(i,`
4
+ H`).concat(Jt,"M").concat(2*a,",").concat(i,`
5
+ A`).concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(i),className:"recharts-legend-icon"});if(l==="rect")return wt.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Jt/8,"h").concat(Jt,"v").concat(Jt*3/4,"h").concat(-Jt,"z"),className:"recharts-legend-icon"});if(wt.isValidElement(t.legendIcon)){var u=yg({},t);return delete u.legendIcon,wt.cloneElement(t.legendIcon,u)}return wt.createElement(ba,{fill:s,cx:i,cy:i,size:Jt,sizeType:"diameter",type:l})}function SI(e){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:o,iconType:a,labelStyle:s}=e,l={x:0,y:0,width:Jt,height:Jt},u={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((f,d)=>{var p=f.formatter||i,m=W({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:f.inactive});if(f.type==="none")return null;var v=typeof s=="object"?yg({},s):{};v.color=f.inactive?o:v.color||f.color;var y=p?p(f.value,f,d):f.value;return wt.createElement("li",vl({className:m,style:u,key:"legend-item-".concat(d)},Wr(e,f,d)),wt.createElement(ha,{width:r,height:r,viewBox:l,style:c,"aria-label":"".concat(f.value," legend icon")},wt.createElement(PI,{data:f,iconType:a,inactiveColor:o})),wt.createElement("span",{className:"recharts-legend-item-text",style:v},y))})}var gg=e=>{var t=X(e,xI),{payload:r,layout:n,align:i}=t;if(!r||!r.length)return null;var o={padding:0,margin:0,textAlign:n==="horizontal"?i:"left"};return wt.createElement("ul",{className:"recharts-default-legend",style:o},wt.createElement(SI,vl({},t,{payload:r})))};var Ap=it(qg());function bl(e,t,r){return t===!0?(0,Ap.default)(e,r):typeof t=="function"?(0,Ap.default)(e,t):e}var rb=it(tb());import{useContext as nb,useMemo as CR}from"react";import{createContext as ER}from"react";var Pa=ER(null);var _R=e=>e,$=()=>{var e=nb(Pa);return e?e.store.dispatch:_R},wl=()=>{},IR=()=>wl,TR=(e,t)=>e===t;function k(e){var t=nb(Pa),r=CR(()=>t?n=>{if(n!=null)return e(n)}:wl,[t,e]);return(0,rb.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:IR,t?t.store.getState:wl,t?t.store.getState:wl,r,TR)}var RR=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{let i={};e(i)===i&&(n=!0)}catch(i){}if(n){let i;try{throw new Error}catch(o){({stack:i}=o)}console.warn(`The result function returned its own inputs without modification. e.g
6
+ \`createSelector([state => state.todos], todos => todos)\`
7
+ This could lead to inefficient memoization and unnecessary re-renders.
8
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},kR=(e,t,r)=>{let{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:o,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...i);if(!(s.apply(null,o)===s.apply(null,a))){let u;try{throw new Error}catch(c){({stack:u}=c)}console.warn(`An input selector returned a different result when passed same arguments.
9
+ This means your output selector will likely run more frequently than intended.
10
+ Avoid returning a new reference inside your input selector, e.g.
11
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:o,secondInputs:a,stack:u})}},DR={inputStabilityCheck:"once",identityFunctionCheck:"once"};function MR(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function NR(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function jR(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var ib=e=>Array.isArray(e)?e:[e];function LR(e){let t=Array.isArray(e[0])?e[0]:e;return jR(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ob(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var BR=(e,t)=>{let{identityFunctionCheck:r,inputStabilityCheck:n}=D(D({},DR),t);return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:RR},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:kR}}};var GY=Object.getPrototypeOf({});var zR=class{constructor(e){this.value=e}deref(){return this.value}},FR=typeof WeakRef!="undefined"?WeakRef:zR,WR=0,ab=1;function Pl(){return{s:WR,v:void 0,o:null,p:null}}function sb(e,t={}){let r=Pl(),{resultEqualityCheck:n}=t,i,o=0;function a(){var f,d;let s=r,{length:l}=arguments;for(let p=0,m=l;p<m;p++){let v=arguments[p];if(typeof v=="function"||typeof v=="object"&&v!==null){let y=s.o;y===null&&(s.o=y=new WeakMap);let h=y.get(v);h===void 0?(s=Pl(),y.set(v,s)):s=h}else{let y=s.p;y===null&&(s.p=y=new Map);let h=y.get(v);h===void 0?(s=Pl(),y.set(v,s)):s=h}}let u=s,c;if(s.s===ab)c=s.v;else if(c=e.apply(null,arguments),o++,n){let p=(d=(f=i==null?void 0:i.deref)==null?void 0:f.call(i))!=null?d:i;p!=null&&n(p,c)&&(c=p,o!==0&&o--),i=typeof c=="object"&&c!==null||typeof c=="function"?new FR(c):c}return u.s=ab,u.v=c,c}return a.clearCache=()=>{r=Pl(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function VR(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),MR(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);let c=D(D({},r),l),{memoize:f,memoizeOptions:d=[],argsMemoize:p=sb,argsMemoizeOptions:m=[],devModeChecks:v={}}=c,y=ib(d),h=ib(m),g=LR(i),x=f(function(){return o++,u.apply(null,arguments)},...y),b=!0,P=p(function(){a++;let A=ob(g,arguments);if(s=x.apply(null,A),process.env.NODE_ENV!=="production"){let{identityFunctionCheck:O,inputStabilityCheck:E}=BR(b,v);if(O.shouldRun&&O.run(u,A,s),E.shouldRun){let I=ob(g,arguments);E.run({inputSelectorResults:A,inputSelectorResultsCopy:I},{memoize:f,memoizeOptions:y},arguments)}b&&(b=!1)}return s},...h);return Object.assign(P,{resultFunc:u,memoizedResultFunc:x,dependencies:g,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var S=VR(sb),KR=Object.assign((e,t=S)=>{NR(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(o=>e[o]);return t(n,(...o)=>o.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>KR});var hb=it(Sa()),Bp=e=>e.legend.settings,yb=e=>e.legend.size,uk=e=>e.legend.payload,gb=S([uk,Bp],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?(0,hb.default)(n,r):n});function bb(){return k(gb)}import{useCallback as ck,useState as fk}from"react";var Sl=1;function Al(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=fk({height:0,left:0,top:0,width:0}),n=ck(i=>{if(i!=null){var o=i.getBoundingClientRect(),a={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(a.height-t.height)>Sl||Math.abs(a.left-t.left)>Sl||Math.abs(a.top-t.top)>Sl||Math.abs(a.width-t.width)>Sl)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}import{useEffect as uM}from"react";function at(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 dk=typeof Symbol=="function"&&Symbol.observable||"@@observable",xb=dk,zp=()=>Math.random().toString(36).substring(7).split("").join("."),pk={INIT:`@@redux/INIT${zp()}`,REPLACE:`@@redux/REPLACE${zp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zp()}`},ei=pk;function ao(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 mk(e){if(e===void 0)return"undefined";if(e===null)return"null";let t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(yk(e))return"date";if(hk(e))return"error";let r=vk(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function vk(e){return typeof e.constructor=="function"?e.constructor.name:null}function hk(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yk(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function fn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=mk(e)),t}function Fp(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?at(2):`Expected the root reducer to be a function. Instead, received: '${fn(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?at(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?at(1):`Expected the enhancer to be a function. Instead, received: '${fn(r)}'`);return r(Fp)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((y,h)=>{a.set(h,y)}))}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?at(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?at(4):`Expected the listener to be a function. Instead, received: '${fn(y)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?at(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let h=!0;u();let g=s++;return a.set(g,y),function(){if(h){if(l)throw new Error(process.env.NODE_ENV==="production"?at(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");h=!1,u(),a.delete(g),o=null}}}function d(y){if(!ao(y))throw new Error(process.env.NODE_ENV==="production"?at(7):`Actions must be plain objects. Instead, the actual type was: '${fn(y)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof y.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?at(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof y.type!="string")throw new Error(process.env.NODE_ENV==="production"?at(17):`Action "type" property must be a string. Instead, the actual type was: '${fn(y.type)}'. Value was: '${y.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?at(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,y)}finally{l=!1}return(o=a).forEach(g=>{g()}),y}function p(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?at(10):`Expected the nextReducer to be a function. Instead, received: '${fn(y)}`);n=y,d({type:ei.REPLACE})}function m(){let y=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(process.env.NODE_ENV==="production"?at(11):`Expected the observer to be an object. Instead, received: '${fn(h)}'`);function g(){let b=h;b.next&&b.next(c())}return g(),{unsubscribe:y(g)}},[xb](){return this}}}return d({type:ei.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[xb]:m}}function wb(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function gk(e,t,r,n){let i=Object.keys(t),o=r&&r.type===ei.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!ao(e))return`The ${o} has unexpected type of "${fn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;let a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===ei.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function bk(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:ei.INIT})=="undefined")throw new Error(process.env.NODE_ENV==="production"?at(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:ei.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?at(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${ei.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Ol(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]=="undefined"&&wb(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}let n=Object.keys(r),i;process.env.NODE_ENV!=="production"&&(i={});let o;try{bk(r)}catch(a){o=a}return function(s={},l){if(o)throw o;if(process.env.NODE_ENV!=="production"){let f=gk(s,r,l,i);f&&wb(f)}let u=!1,c={};for(let f=0;f<n.length;f++){let d=n[f],p=r[d],m=s[d],v=p(m,l);if(typeof v=="undefined"){let y=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?at(14):`When called with an action of type ${y?`"${String(y)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[d]=v,u=u||v!==m}return u=u||n.length!==Object.keys(s).length,u?c:s}}function Aa(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Pb(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(process.env.NODE_ENV==="production"?at(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=Aa(...s)(i.dispatch),ft(D({},i),{dispatch:o})}}function El(e){return ao(e)&&"type"in e&&typeof e.type=="string"}var kb=Symbol.for("immer-nothing"),Sb=Symbol.for("immer-draftable"),Pt=Symbol.for("immer-state"),xk=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function jt(e,...t){if(process.env.NODE_ENV!=="production"){let r=xk[e],n=ti(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lt=Object,so=Lt.getPrototypeOf,Tl="constructor",jl="prototype",Kp="configurable",Rl="enumerable",_l="writable",Oa="value",wr=e=>!!e&&!!e[Pt];function Qt(e){var t;return e?Db(e)||Bl(e)||!!e[Sb]||!!((t=e[Tl])!=null&&t[Sb])||zl(e)||Fl(e):!1}var wk=Lt[jl][Tl].toString(),Ab=new WeakMap;function Db(e){if(!e||!Zp(e))return!1;let t=so(e);if(t===null||t===Lt[jl])return!0;let r=Lt.hasOwnProperty.call(t,Tl)&&t[Tl];if(r===Object)return!0;if(!ti(r))return!1;let n=Ab.get(r);return n===void 0&&(n=Function.toString.call(r),Ab.set(r,n)),n===wk}function Ll(e,t,r=!0){_a(e)===0?(r?Reflect.ownKeys(e):Lt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function _a(e){let t=e[Pt];return t?t.type_:Bl(e)?1:zl(e)?2:Fl(e)?3:0}var Ob=(e,t,r=_a(e))=>r===2?e.has(t):Lt[jl].hasOwnProperty.call(e,t),$p=(e,t,r=_a(e))=>r===2?e.get(t):e[t],kl=(e,t,r,n=_a(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Pk(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Bl=Array.isArray,zl=e=>e instanceof Map,Fl=e=>e instanceof Set,Zp=e=>typeof e=="object",ti=e=>typeof e=="function",Wp=e=>typeof e=="boolean";function Sk(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Kr=e=>e.copy_||e.base_;var Jp=e=>e.modified_?e.copy_:e.base_;function Hp(e,t){if(zl(e))return new Map(e);if(Fl(e))return new Set(e);if(Bl(e))return Array[jl].slice.call(e);let r=Db(e);if(t===!0||t==="class_only"&&!r){let n=Lt.getOwnPropertyDescriptors(e);delete n[Pt];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let a=i[o],s=n[a];s[_l]===!1&&(s[_l]=!0,s[Kp]=!0),(s.get||s.set)&&(n[a]={[Kp]:!0,[_l]:!0,[Rl]:s[Rl],[Oa]:e[a]})}return Lt.create(so(e),n)}else{let n=so(e);if(n!==null&&r)return D({},e);let i=Lt.create(n);return Lt.assign(i,e)}}function Qp(e,t=!1){return Wl(e)||wr(e)||!Qt(e)||(_a(e)>1&&Lt.defineProperties(e,{set:Cl,add:Cl,clear:Cl,delete:Cl}),Lt.freeze(e),t&&Ll(e,(r,n)=>{Qp(n,!0)},!1)),e}function Ak(){jt(2)}var Cl={[Oa]:Ak};function Wl(e){return e===null||!Zp(e)?!0:Lt.isFrozen(e)}var Dl="MapSet",qp="Patches",Eb="ArrayMethods",Mb={};function ri(e){let t=Mb[e];return t||jt(0,e),t}var Cb=e=>!!Mb[e];var Ea,Nb=()=>Ea,Ok=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Cb(Dl)?ri(Dl):void 0,arrayMethodsPlugin_:Cb(Eb)?ri(Eb):void 0});function _b(e,t){t&&(e.patchPlugin_=ri(qp),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Up(e){Yp(e),e.drafts_.forEach(Ek),e.drafts_=null}function Yp(e){e===Ea&&(Ea=e.parent_)}var Ib=e=>Ea=Ok(Ea,e);function Ek(e){let t=e[Pt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tb(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Pt].modified_&&(Up(t),jt(4)),Qt(e)&&(e=Rb(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Pt].base_,e,t)}else e=Rb(t,r);return Ck(t,e,!0),Up(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kb?e:void 0}function Rb(e,t){if(Wl(t))return t;let r=t[Pt];if(!r)return Ml(t,e.handledSet_,e);if(!Vl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Bb(r,e)}return r.copy_}function Ck(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qp(t,r)}function jb(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Vl=(e,t)=>e.scope_===t,_k=[];function Lb(e,t,r,n){var s;let i=Kr(e),o=e.type_;if(n!==void 0&&$p(i,n,o)===t){kl(i,n,r,o);return}if(!e.draftLocations_){let l=e.draftLocations_=new Map;Ll(i,(u,c)=>{if(wr(c)){let f=l.get(c)||[];f.push(u),l.set(c,f)}})}let a=(s=e.draftLocations_.get(t))!=null?s:_k;for(let l of a)kl(i,l,r,o)}function Ik(e,t,r){e.callbacks_.push(function(i){var s,l;let o=t;if(!o||!Vl(o,i))return;(s=i.mapSetPlugin_)==null||s.fixSetContents(o);let a=Jp(o);Lb(e,(l=o.draft_)!=null?l:o,a,r),Bb(o,i)})}function Bb(e,t){var n,i;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||((i=(n=e.assigned_)==null?void 0:n.size)!=null?i:0)>0)){let{patchPlugin_:o}=t;if(o){let a=o.getPath(e);a&&o.generatePatches_(e,a,t)}jb(e)}}function Tk(e,t,r){let{scope_:n}=e;if(wr(r)){let i=r[Pt];Vl(i,n)&&i.callbacks_.push(function(){Il(e);let a=Jp(i);Lb(e,r,a,t)})}else Qt(r)&&e.callbacks_.push(function(){var a;let o=Kr(e);e.type_===3?o.has(r)&&Ml(r,n.handledSet_,n):$p(o,t,e.type_)===r&&n.drafts_.length>1&&((a=e.assigned_.get(t))!=null?a:!1)===!0&&e.copy_&&Ml($p(e.copy_,t,e.type_),n.handledSet_,n)})}function Ml(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||wr(e)||t.has(e)||!Qt(e)||Wl(e)||(t.add(e),Ll(e,(n,i)=>{if(wr(i)){let o=i[Pt];if(Vl(o,r)){let a=Jp(o);kl(e,n,a,e.type_),jb(o)}}else Qt(i)&&Ml(i,t,r)})),e}function Rk(e,t){let r=Bl(e),n={type_:r?1:0,scope_:t?t.scope_:Nb(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=Nl;r&&(i=[n],o=Ca);let{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,[s,n]}var Nl={get(e,t){if(t===Pt)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=Kr(e);if(!Ob(i,t,e.type_))return kk(e,i,t);let o=i[t];if(e.finalized_||!Qt(o)||n&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&Sk(t))return o;if(o===Vp(e.base_,t)){Il(e);let a=e.type_===1?+t:t,s=Xp(e.scope_,o,e,a);return e.copy_[a]=s}return o},has(e,t){return t in Kr(e)},ownKeys(e){return Reflect.ownKeys(Kr(e))},set(e,t,r){let n=zb(Kr(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Vp(Kr(e),t),o=i==null?void 0:i[Pt];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Pk(r,i)&&(r!==void 0||Ob(e.base_,t,e.type_)))return!0;Il(e),Gp(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_.set(t,!0),Tk(e,t,r)),!0},deleteProperty(e,t){return Il(e),Vp(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Gp(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Kr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[_l]:!0,[Kp]:e.type_!==1||t!=="length",[Rl]:n[Rl],[Oa]:r[t]}},defineProperty(){jt(11)},getPrototypeOf(e){return so(e.base_)},setPrototypeOf(){jt(12)}},Ca={};for(let e in Nl){let t=Nl[e];Ca[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Ca.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&jt(13),Ca.set.call(this,e,t,void 0)};Ca.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&jt(14),Nl.set.call(this,e[0],t,r,e[0])};function Vp(e,t){let r=e[Pt];return(r?Kr(r):e)[t]}function kk(e,t,r){var i;let n=zb(t,r);return n?Oa in n?n[Oa]:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function zb(e,t){if(!(t in e))return;let r=so(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=so(r)}}function Gp(e){e.modified_||(e.modified_=!0,e.parent_&&Gp(e.parent_))}function Il(e){e.copy_||(e.assigned_=new Map,e.copy_=Hp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dk=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(ti(t)&&!ti(r)){let o=r;r=t;let a=this;return function(l=o,...u){return a.produce(l,c=>r.call(this,c,...u))}}ti(r)||jt(6),n!==void 0&&!ti(n)&&jt(7);let i;if(Qt(t)){let o=Ib(this),a=Xp(o,t,void 0),s=!0;try{i=r(a),s=!1}finally{s?Up(o):Yp(o)}return _b(o,n),Tb(i,o)}else if(!t||!Zp(t)){if(i=r(t),i===void 0&&(i=t),i===kb&&(i=void 0),this.autoFreeze_&&Qp(i,!0),n){let o=[],a=[];ri(qp).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:a}),n(o,a)}return i}else jt(1,t)},this.produceWithPatches=(t,r)=>{if(ti(t))return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,i]},Wp(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Wp(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Wp(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Qt(e)||jt(8),wr(e)&&(e=st(e));let t=Ib(this),r=Xp(t,e,void 0);return r[Pt].isManual_=!0,Yp(t),r}finishDraft(e,t){let r=e&&e[Pt];(!r||!r.isManual_)&&jt(9);let{scope_:n}=r;return _b(n,t),Tb(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--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=ri(qp).applyPatches_;return wr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Xp(e,t,r,n){var s,l;let[i,o]=zl(t)?ri(Dl).proxyMap_(t,r):Fl(t)?ri(Dl).proxySet_(t,r):Rk(t,r);return((s=r==null?void 0:r.scope_)!=null?s:Nb()).drafts_.push(i),o.callbacks_=(l=r==null?void 0:r.callbacks_)!=null?l:[],o.key_=n,r&&n!==void 0?Ik(r,o,n):o.callbacks_.push(function(c){var d;(d=c.mapSetPlugin_)==null||d.fixSetContents(o);let{patchPlugin_:f}=c;o.modified_&&f&&f.generatePatches_(o,[],c)}),i}function st(e){return wr(e)||jt(10,e),Fb(e)}function Fb(e){if(!Qt(e)||Wl(e))return e;let t=e[Pt],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Hp(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Hp(e,!0);return Ll(r,(i,o)=>{kl(r,i,Fb(o))},n),t&&(t.finalized_=!1),r}var Mk=new Dk,em=Mk.produce;function Wb(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var Vb=Wb(),Kb=Wb;var Nk=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Aa:Aa.apply(null,arguments)},SG=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Zb=e=>e&&typeof e.match=="function";function Ue(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?de(0):"prepareAction did not return an object");return D(D({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=>El(n)&&n.type===e,r}function jk(e){return typeof e=="function"&&"type"in e&&Zb(e)}function Lk(e){let t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Bk(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);let{isActionCreator:t=jk}=e;return()=>r=>n=>(t(n)&&console.warn(Lk(n.type)),r(n))}function Jb(e,t){let r=0;return{measureTime(n){let i=Date.now();try{return n()}finally{let o=Date.now();r+=o-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
13
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
14
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var Qb=class Ia extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ia.prototype)}static get[Symbol.species](){return Ia}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ia(...t[0].concat(this)):new Ia(...t.concat(this))}};function $b(e){return Qt(e)?em(e,()=>{}):e}function Kl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function zk(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Fk(e,t,r){let n=ex(e,t,r);return{detectMutations(){return tx(e,t,n,r)}}}function ex(e,t=[],r,n="",i=new Set){let o={value:r};if(!e(r)&&!i.has(r)){i.add(r),o.children={};let a=t.length>0;for(let s in r){let l=n?n+"."+s:s;a&&t.some(c=>c instanceof RegExp?c.test(l):l===c)||(o.children[s]=ex(e,t,r[s],l))}}return o}function tx(e,t=[],r,n,i=!1,o=""){let a=r?r.value:void 0,s=a===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:o};if(e(a)||e(n))return{wasMutated:!1};let l={};for(let c in r.children)l[c]=!0;for(let c in n)l[c]=!0;let u=t.length>0;for(let c in l){let f=o?o+"."+c:c;if(u&&t.some(m=>m instanceof RegExp?m.test(f):f===m))continue;let d=tx(e,t,r.children[c],n[c],s,f);if(d.wasMutated)return d}return{wasMutated:!1}}function Wk(e={}){if(process.env.NODE_ENV==="production")return()=>n=>i=>n(i);{let n=function(u,c,f,d){return JSON.stringify(u,i(c,d),f)},i=function(u,c){let f=[],d=[];return c||(c=function(p,m){return f[0]===m?"[Circular ~]":"[Circular ~."+d.slice(0,f.indexOf(m)).join(".")+"]"}),function(p,m){if(f.length>0){var v=f.indexOf(this);~v?f.splice(v+1):f.push(this),~v?d.splice(v,1/0,p):d.push(p),~f.indexOf(m)&&(m=c.call(this,p,m))}else f.push(m);return u==null?m:u.call(this,p,m)}};var t=n,r=i;let{isImmutable:o=zk,ignoredPaths:a,warnAfter:s=32}=e,l=Fk.bind(null,o,a);return({getState:u})=>{let c=u(),f=l(c),d;return p=>m=>{let v=Jb(s,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(c=u(),d=f.detectMutations(),f=l(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?de(19):`A state mutation was detected between dispatches, in the path '${d.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});let y=p(m);return v.measureTime(()=>{if(c=u(),d=f.detectMutations(),f=l(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?de(20):`A state mutation was detected inside a dispatch, in the path: ${d.path||""}. Take a look at the reducer(s) handling the action ${n(m)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),y}}}}function rx(e){let t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||ao(e)}function rm(e,t="",r=rx,n,i=[],o){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o!=null&&o.has(e))return!1;let s=n!=null?n(e):Object.entries(e),l=i.length>0;for(let[u,c]of s){let f=t?t+"."+u:u;if(!(l&&i.some(p=>p instanceof RegExp?p.test(f):f===p))){if(!r(c))return{keyPath:f,value:c};if(typeof c=="object"&&(a=rm(c,f,r,n,i,o),a))return a}}return o&&nx(e)&&o.add(e),!1}function nx(e){if(!Object.isFrozen(e))return!1;for(let t of Object.values(e))if(!(typeof t!="object"||t===null)&&!nx(t))return!1;return!0}function Vk(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let{isSerializable:t=rx,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:a=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:u=!1}=e,c=!u&&WeakSet?new WeakSet:void 0;return f=>d=>p=>{if(!El(p))return d(p);let m=d(p),v=Jb(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(p.type)!==-1)&&v.measureTime(()=>{let y=rm(p,"",t,r,i,c);if(y){let{keyPath:h,value:g}=y;console.error(`A non-serializable value was detected in an action, in the path: \`${h}\`. Value:`,g,`
15
+ Take a look at the logic that dispatched this action: `,p,`
16
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
17
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(v.measureTime(()=>{let y=f.getState(),h=rm(y,"",t,r,o,c);if(h){let{keyPath:g,value:x}=h;console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`,x,`
18
+ Take a look at the reducer(s) handling this action type: ${p.type}.
19
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),v.warnIfExceeded()),m}}}function $l(e){return typeof e=="boolean"}var Kk=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t!=null?t:{},a=new Qb;if(r&&($l(r)?a.push(Vb):a.push(Kb(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};$l(n)||(s=n),a.unshift(Wk(s))}if(i){let s={};$l(i)||(s=i),a.push(Vk(s))}if(o){let s={};$l(o)||(s=o),a.unshift(Bk(s))}}return a},ix="RTK_autoBatch",me=()=>e=>({payload:e,meta:{[ix]:!0}}),Hb=e=>t=>{setTimeout(t,e)},$k=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(o),clearTimeout(a),r())},o=e(i),a=setTimeout(i,t)},om=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,a=!1,s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window!="undefined"&&window.requestAnimationFrame?$k(window.requestAnimationFrame,100):Hb(10):e.type==="callback"?e.queueNotification:Hb(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){let f=()=>i&&c(),d=n.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[ix]),o=!i,o&&(a||(a=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},Hk=e=>function(r){let{autoBatch:n=!0}=r!=null?r:{},i=new Qb(e);return n&&i.push(om(typeof n=="object"?n:void 0)),i};function ox(e){let t=Kk(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{},l;if(typeof r=="function")l=r;else if(ao(r))l=Ol(r);else throw new Error(process.env.NODE_ENV==="production"?de(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?de(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?de(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?de(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&o){let v=new Set;u.forEach(y=>{if(v.has(y))throw new Error(process.env.NODE_ENV==="production"?de(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");v.add(y)})}let c=Aa;i&&(c=Nk(D({trace:process.env.NODE_ENV!=="production"},typeof i=="object"&&i)));let f=Pb(...u),d=Hk(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?de(5):"`enhancers` field must be a callback");let p=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?de(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&p.some(v=>typeof v!="function"))throw new Error(process.env.NODE_ENV==="production"?de(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");let m=c(...p);return Fp(l,a,m)}function ax(e){let t={},r=[],n,i={addCase(o,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?de(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?de(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}let s=typeof o=="string"?o:o.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?de(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?de(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,i},addAsyncThunk(o,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?de(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?de(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?de(31):"`builder.addDefaultCase` can only be called once");return n=o,i}};return e(i),[t,r,n]}function qk(e){return typeof e=="function"}function Uk(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?de(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=ax(t),o;if(qk(e))o=()=>$b(e());else{let s=$b(e);o=()=>s}function a(s=o(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(wr(c)){let p=f(c,l);return p===void 0?c:p}else{if(Qt(c))return em(c,d=>f(d,l));{let 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},s)}return a.getInitialState=o,a}var Yk=(e,t)=>Zb(e)?e.match(t):e(t);function Gk(...e){return t=>e.some(r=>Yk(r,t))}var Xk="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sx=(e=21)=>{let t="",r=e;for(;r--;)t+=Xk[Math.random()*64|0];return t},Zk=["name","message","stack","code"],tm=class{constructor(e,t){mr(this,"payload");mr(this,"meta");mr(this,"_type");this.payload=e,this.meta=t}},qb=class{constructor(e,t){mr(this,"payload");mr(this,"meta");mr(this,"_type");this.payload=e,this.meta=t}},Jk=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Zk)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ub="External signal was aborted",Qk=(()=>{function e(t,r,n){let i=Ue(t+"/fulfilled",(l,u,c,f)=>({payload:l,meta:ft(D({},f||{}),{arg:c,requestId:u,requestStatus:"fulfilled"})})),o=Ue(t+"/pending",(l,u,c)=>({payload:void 0,meta:ft(D({},c||{}),{arg:u,requestId:l,requestStatus:"pending"})})),a=Ue(t+"/rejected",(l,u,c,f,d)=>({payload:f,error:(n&&n.serializeError||Jk)(l||"Rejected"),meta:ft(D({},d||{}),{arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"})}));function s(l,{signal:u}={}){return(c,f,d)=>{let p=n!=null&&n.idGenerator?n.idGenerator(l):sx(),m=new AbortController,v,y;function h(x){y=x,m.abort()}u&&(u.aborted?h(Ub):u.addEventListener("abort",()=>h(Ub),{once:!0}));let g=(async function(){var P,w;let x;try{let A=(P=n==null?void 0:n.condition)==null?void 0:P.call(n,l,{getState:f,extra:d});if(tD(A)&&(A=await A),A===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let O=new Promise((E,I)=>{v=()=>{I({name:"AbortError",message:y||"Aborted"})},m.signal.addEventListener("abort",v,{once:!0})});c(o(p,l,(w=n==null?void 0:n.getPendingMeta)==null?void 0:w.call(n,{requestId:p,arg:l},{getState:f,extra:d}))),x=await Promise.race([O,Promise.resolve(r(l,{dispatch:c,getState:f,extra:d,requestId:p,signal:m.signal,abort:h,rejectWithValue:((E,I)=>new tm(E,I)),fulfillWithValue:((E,I)=>new qb(E,I))})).then(E=>{if(E instanceof tm)throw E;return E instanceof qb?i(E.payload,p,l,E.meta):i(E,p,l)})])}catch(A){x=A instanceof tm?a(null,p,l,A.payload,A.meta):a(A,p,l)}finally{v&&m.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&a.match(x)&&x.meta.condition||c(x),x})();return Object.assign(g,{abort:h,requestId:p,arg:l,unwrap(){return g.then(eD)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:Gk(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function eD(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function tD(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var lx=Symbol.for("rtk-slice-createasyncthunk"),OG={[lx]:Qk};function rD(e,t){return`${e}/${t}`}function nD({creators:e}={}){var r;let t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[lx];return function(i){let{name:o,reducerPath:a=o}=i;if(!o)throw new Error(process.env.NODE_ENV==="production"?de(11):"`name` is a required option for createSlice");typeof process!="undefined"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");let s=(typeof i.reducers=="function"?i.reducers(oD()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,P){let w=typeof b=="string"?b:b.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?de(12):"`context.addCase` cannot be called with an empty action type");if(w in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?de(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return u.sliceCaseReducersByType[w]=P,c},addMatcher(b,P){return u.sliceMatchers.push({matcher:b,reducer:P}),c},exposeAction(b,P){return u.actionCreators[b]=P,c},exposeCaseReducer(b,P){return u.sliceCaseReducersByName[b]=P,c}};l.forEach(b=>{let P=s[b],w={reducerName:b,type:rD(o,b),createNotation:typeof i.reducers=="function"};sD(P)?uD(w,P,c,t):aD(w,P,c)});function f(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?de(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");let[b={},P=[],w=void 0]=typeof i.extraReducers=="function"?ax(i.extraReducers):[i.extraReducers],A=D(D({},b),u.sliceCaseReducersByType);return Uk(i.initialState,O=>{for(let E in A)O.addCase(E,A[E]);for(let E of u.sliceMatchers)O.addMatcher(E.matcher,E.reducer);for(let E of P)O.addMatcher(E.matcher,E.reducer);w&&O.addDefaultCase(w)})}let d=b=>b,p=new Map,m=new WeakMap,v;function y(b,P){return v||(v=f()),v(b,P)}function h(){return v||(v=f()),v.getInitialState()}function g(b,P=!1){function w(O){let E=O[b];if(typeof E=="undefined"){if(P)E=Kl(m,w,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?de(15):"selectSlice returned undefined for an uninjected slice reducer")}return E}function A(O=d){let E=Kl(p,P,()=>new WeakMap);return Kl(E,O,()=>{var T;let I={};for(let[_,N]of Object.entries((T=i.selectors)!=null?T:{}))I[_]=iD(N,O,()=>Kl(m,O,h),P);return I})}return{reducerPath:b,getSelectors:A,get selectors(){return A(w)},selectSlice:w}}let x=ft(D({name:o,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:h},g(a)),{injectInto(b,A={}){var O=A,{reducerPath:P}=O,w=Ne(O,["reducerPath"]);let E=P!=null?P:a;return b.inject({reducerPath:E,reducer:y},w),D(D({},x),g(E,!0))}});return x}}function iD(e,t,r,n){function i(o,...a){let s=t(o);if(typeof s=="undefined"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?de(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return i.unwrapped=e,i}var le=nD();function oD(){function e(t,r){return D({_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 aD({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!lD(n))throw new Error(process.env.NODE_ENV==="production"?de(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Ue(e,a):Ue(e))}function sD(e){return e._reducerDefinitionType==="asyncThunk"}function lD(e){return e._reducerDefinitionType==="reducerWithPrepare"}function uD({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?de(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");let{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=r,f=i(e,o,c);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:a||Hl,pending:s||Hl,rejected:l||Hl,settled:u||Hl})}function Hl(){}var cD="task",ux="listener",cx="completed",am="cancelled",fD=`task-${am}`,dD=`task-${cx}`,nm=`${ux}-${am}`,pD=`${ux}-${cx}`,Yl=class{constructor(e){mr(this,"code");mr(this,"name","TaskAbortError");mr(this,"message");this.code=e,this.message=`${cD} ${am} (reason: ${e})`}},sm=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?de(32):`${t} is not a function`)},ql=()=>{},fx=(e,t=ql)=>(e.catch(t),e),dx=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ni=e=>{if(e.aborted)throw new Yl(e.reason)};function px(e,t){let r=ql;return new Promise((n,i)=>{let o=()=>i(new Yl(e.reason));if(e.aborted){o();return}r=dx(e,o),t.finally(()=>r()).then(n,i)}).finally(()=>{r=ql})}var mD=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Yl?"cancelled":"rejected",error:r}}finally{t==null||t()}},Ul=e=>t=>fx(px(e,t).then(r=>(ni(e),r))),mx=e=>{let t=Ul(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:lo}=Object,Yb={},Ta="listenerMiddleware",vD=(e,t)=>{let r=n=>dx(e,()=>n.abort(e.reason));return(n,i)=>{sm(n,"taskExecutor");let o=new AbortController;r(o);let a=mD(async()=>{ni(e),ni(o.signal);let s=await n({pause:Ul(o.signal),delay:mx(o.signal),signal:o.signal});return ni(o.signal),s},()=>o.abort(dD));return i!=null&&i.autoJoin&&t.push(a.catch(ql)),{result:Ul(e)(a),cancel(){o.abort(fD)}}}},hD=(e,t)=>{let r=async(n,i)=>{ni(t);let o=()=>{},s=[new Promise((l,u)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});o=()=>{c(),u()}})];i!=null&&s.push(new Promise(l=>setTimeout(l,i,null)));try{let l=await px(t,Promise.race(s));return ni(t),l}finally{o()}};return((n,i)=>fx(r(n,i)))},vx=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=Ue(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?de(21):"Creating or removing a listener requires one of the known fields for matching an action");return sm(o,"options.listener"),{predicate:i,type:t,effect:o}},hx=lo(e=>{let{type:t,predicate:r,effect:n}=vx(e);return{id:sx(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?de(22):"Unsubscribe not initialized")}}},{withTypes:()=>hx}),Gb=(e,t)=>{let{type:r,effect:n,predicate:i}=vx(t);return Array.from(e.values()).find(o=>(typeof r=="string"?o.type===r:o.predicate===i)&&o.effect===n)},im=e=>{e.pending.forEach(t=>{t.abort(nm)})},yD=(e,t)=>()=>{for(let r of t.keys())im(r);e.clear()},Xb=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},yx=lo(Ue(`${Ta}/add`),{withTypes:()=>yx}),gD=Ue(`${Ta}/removeAll`),gx=lo(Ue(`${Ta}/remove`),{withTypes:()=>gx}),bD=(...e)=>{console.error(`${Ta}/error`,...e)},$r=(e={})=>{let t=new Map,r=new Map,n=p=>{var v;let m=(v=r.get(p))!=null?v:0;r.set(p,m+1)},i=p=>{var v;let m=(v=r.get(p))!=null?v:1;m===1?r.delete(p):r.set(p,m-1)},{extra:o,onError:a=bD}=e;sm(a,"onError");let s=p=>(p.unsubscribe=()=>t.delete(p.id),t.set(p.id,p),m=>{p.unsubscribe(),m!=null&&m.cancelActive&&im(p)}),l=(p=>{var v;let m=(v=Gb(t,p))!=null?v:hx(p);return s(m)});lo(l,{withTypes:()=>l});let u=p=>{let m=Gb(t,p);return m&&(m.unsubscribe(),p.cancelActive&&im(m)),!!m};lo(u,{withTypes:()=>u});let c=async(p,m,v,y)=>{let h=new AbortController,g=hD(l,h.signal),x=[];try{p.pending.add(h),n(p),await Promise.resolve(p.effect(m,lo({},v,{getOriginalState:y,condition:(b,P)=>g(b,P).then(Boolean),take:g,delay:mx(h.signal),pause:Ul(h.signal),extra:o,signal:h.signal,fork:vD(h.signal,x),unsubscribe:p.unsubscribe,subscribe:()=>{t.set(p.id,p)},cancelActiveListeners:()=>{p.pending.forEach((b,P,w)=>{b!==h&&(b.abort(nm),w.delete(b))})},cancel:()=>{h.abort(nm),p.pending.delete(h)},throwIfCancelled:()=>{ni(h.signal)}})))}catch(b){b instanceof Yl||Xb(a,b,{raisedBy:"effect"})}finally{await Promise.all(x),h.abort(pD),i(p),p.pending.delete(h)}},f=yD(t,r);return{middleware:p=>m=>v=>{if(!El(v))return m(v);if(yx.match(v))return l(v.payload);if(gD.match(v)){f();return}if(gx.match(v))return u(v.payload);let y=p.getState(),h=()=>{if(y===Yb)throw new Error(process.env.NODE_ENV==="production"?de(23):`${Ta}: getOriginalState can only be called synchronously`);return y},g;try{if(g=m(v),t.size>0){let x=p.getState(),b=Array.from(t.values());for(let P of b){let w=!1;try{w=P.predicate(v,x,y)}catch(A){w=!1,Xb(a,A,{raisedBy:"predicate"})}w&&c(P,v,p,h)}}}finally{y=Yb}return g},startListening:l,stopListening:u,clearListeners:f}};function de(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 xD={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},bx=le({name:"chartLayout",initialState:xD,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,o;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=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:lm,setLayout:xx,setChartSize:wx,setScale:Px}=bx.actions,Sx=bx.reducer;var Ox=it(Sa()),Ex=it(no());function Gl(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function V(e){return Number.isFinite(e)}function Ct(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Ax(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 uo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(r),!0).forEach(function(n){wD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wD(e,t,r){return(t=PD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=SD(e,"string");return typeof t=="symbol"?t:t+""}function SD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y(e,t,r){return Q(e)||Q(t)?r:bt(t)?(0,Ex.default)(e,t,r):typeof t=="function"?t(e):r}var Cx=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:o,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&o!=="center"&&R(e[o]))return uo(uo({},e),{},{[o]:e[o]+(n||0)});if((s==="horizontal"||s==="vertical"&&o==="center")&&a!=="middle"&&R(e[a]))return uo(uo({},e),{},{[a]:e[a]+(i||0)})}return e},dt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",um=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,o,a=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(o=!0),s.coordinate));return i||a.push(t),o||a.push(r),a},cm=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:o,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:u,tickCount:c,ticks:f,niceTicks:d,axisType:p}=e;if(!a)return null;var m=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,v=(t||r)&&i==="category"&&a.bandwidth?a.bandwidth()/m:0;if(v=p==="angleAxis"&&o&&o.length>=2?xe(o[0]-o[1])*2*v:v,t&&(f||d)){var y=(f||d||[]).map((h,g)=>{var x=n?n.indexOf(h):h,b=a.map(x);return V(b)?{coordinate:b+v,value:h,offset:v,index:g}:null}).filter(ot);return y}return l&&u?u.map((h,g)=>{var x=a.map(h);return V(x)?{coordinate:x+v,value:h,index:g,offset:v}:null}).filter(ot):a.ticks&&!r&&c!=null?a.ticks(c).map((h,g)=>{var x=a.map(h);return V(x)?{coordinate:x+v,value:h,index:g,offset:v}:null}).filter(ot):a.domain().map((h,g)=>{var x=a.map(h);return V(x)?{coordinate:x+v,value:n?n[h]:h,index:g,offset:v}:null}).filter(ot)},_x=(e,t)=>{if(!t||t.length!==2||!R(t[0])||!R(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(!R(e[0])||e[0]<r)&&(i[0]=r),(!R(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},AD=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 o=0,a=0,s=0;s<r;++s){var l=e[s],u=l==null?void 0:l[i];if(u!=null){var c=u[1],f=u[0],d=et(c)?f:c;d>=0?(u[0]=o,o+=d,u[1]=o):(u[0]=a,a+=d,u[1]=a)}}}},OD=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 o=0,a=0;a<r;++a){var s=e[a],l=s==null?void 0:s[i];if(l!=null){var u=et(l[1])?l[0]:l[1];u>=0?(l[0]=o,o+=u,l[1]=o):(l[0]=0,l[1]=0)}}}},ED={sign:AD,expand:_d,none:Nt,silhouette:Id,wiggle:Td,positive:OD},Ix=(e,t,r)=>{var n,i=(n=ED[r])!==null&&n!==void 0?n:Nt,o=Cd().keys(t).value((s,l)=>Number(Y(s,l,0))).order(ro).offset(i),a=o(e);return a.forEach((s,l)=>{s.forEach((u,c)=>{var f=Y(e[c],t[l],0);Array.isArray(f)&&f.length===2&&R(f[0])&&R(f[1])&&(u[0]=f[0],u[1]=f[1])})}),a};function Xl(e){return e==null?void 0:String(e)}function co(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:o,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Q(i[t.dataKey])){var s=pl(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[o]?r[o].coordinate+n/2:null}var l=Y(i,Q(a)?t.dataKey:a),u=t.scale.map(l);return R(u)?u:null}var fm=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:o,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=Y(o,t.dataKey,t.scale.domain()[a]);if(Q(s))return null;var l=t.scale.map(s);return R(l)?l-i/2+n:null},Tx=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]},CD=e=>{var t=e.flat(2).filter(R);return[Math.min(...t),Math.max(...t)]},_D=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Rx=(e,t,r)=>{if(e!=null)return _D(Object.keys(e).reduce((n,i)=>{var o=e[i];if(!o)return n;var{stackedData:a}=o,s=a.reduce((l,u)=>{var c=Gl(u,t,r),f=CD(c);return!V(f[0])||!V(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},dm=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,er=(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=(0,Ox.default)(t,c=>c.coordinate),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],u=i[a-1];o=Math.min(((l==null?void 0:l.coordinate)||0)-((u==null?void 0:u.coordinate)||0),o)}return o===1/0?0:o}return r?void 0:0};function mm(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:o}=e;return uo(uo({},t),{},{dataKey:r,payload:n,value:i,name:o})}function Bt(e,t){if(e)return String(e);if(typeof t=="string")return t}var kx=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Dx=(e,t)=>t==="centric"?e.angle:e.radius;var pt=e=>e.layout.width,mt=e=>e.layout.height,Mx=e=>e.layout.scale,Zl=e=>e.layout.margin;var fo=S(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),po=S(e=>e.cartesianAxis.yAxis,e=>Object.values(e));var Jl="data-recharts-item-index",Ql="data-recharts-item-id",ii=60;function Nx(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 eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){ID(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ID(e,t,r){return(t=TD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TD(e){var t=RD(e,"string");return typeof t=="symbol"?t:t+""}function RD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kD=e=>e.brush.height;function DD(e){var t=po(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:ii;return r+i}return r},0)}function MD(e){var t=po(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:ii;return r+i}return r},0)}function ND(e){var t=fo(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function jD(e){var t=fo(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ve=S([pt,mt,Zl,kD,DD,MD,ND,jD,Bp,yb],(e,t,r,n,i,o,a,s,l,u)=>{var c={left:(r.left||0)+i,right:(r.right||0)+o},f={top:(r.top||0)+a,bottom:(r.bottom||0)+s},d=eu(eu({},f),c),p=d.bottom;d.bottom+=n,d=Cx(d,l,u);var m=e-d.left-d.right,v=t-d.top-d.bottom;return eu(eu({brushBottom:p},d),{},{width:Math.max(m,0),height:Math.max(v,0)})}),jx=S(ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),mo=S(pt,mt,(e,t)=>({x:0,y:0,width:e,height:t}));import*as LD from"react";import{createContext as BD,useContext as zD}from"react";var FD=BD(null),ue=()=>zD(FD)!=null;var vo=e=>e.brush,oi=S([vo,ve,Zl],(e,t,r)=>({height:e.height,x:R(e.x)?e.x:t.left,y:R(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:R(e.width)?e.width:t.width}));var Yx=it(Wx());import*as ai from"react";import{createContext as eM,forwardRef as Ux,useCallback as tM,useContext as rM,useEffect as nM,useImperativeHandle as iM,useMemo as oM,useRef as qx,useState as aM}from"react";var qD=!0,ho=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(qD&&typeof console!="undefined"&&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 a=0;console.warn(r.replace(/%s/g,()=>i[a++]))}};var vr={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},gm=(e,t,r)=>{var{width:n=vr.width,height:i=vr.height,aspect:o,maxHeight:a}=r,s=Br(n)?e:Number(n),l=Br(i)?t:Number(i);return o&&o>0&&(s?l=s/o:l&&(s=l*o),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},UD={width:0,height:0,overflow:"visible"},YD={width:0,overflowX:"visible"},GD={height:0,overflowY:"visible"},XD={},Vx=e=>{var{width:t,height:r}=e,n=Br(t),i=Br(r);return n&&i?UD:n?YD:i?GD:XD};function Kx(e){var{width:t,height:r,aspect:n}=e,i=t,o=r;return i===void 0&&o===void 0?(i=vr.width,o=vr.height):i===void 0?i=n&&n>0?void 0:vr.width:o===void 0&&(o=n&&n>0?void 0:vr.height),{width:i,height:o}}function bm(){return bm=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},bm.apply(null,arguments)}function $x(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 Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$x(Object(r),!0).forEach(function(n){ZD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$x(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZD(e,t,r){return(t=JD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JD(e){var t=QD(e,"string");return typeof t=="symbol"?t:t+""}function QD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gx=eM(vr.initialDimension);function sM(e){return Ct(e.width)&&Ct(e.height)}function Xx(e){var{children:t,width:r,height:n}=e,i=oM(()=>({width:r,height:n}),[r,n]);return sM(i)?ai.createElement(Gx.Provider,{value:i},t):null}var Ra=()=>rM(Gx),lM=Ux((e,t)=>{var{aspect:r,initialDimension:n=vr.initialDimension,width:i,height:o,minWidth:a=vr.minWidth,minHeight:s,maxHeight:l,children:u,debounce:c=vr.debounce,id:f,className:d,onResize:p,style:m={}}=e,v=qx(null),y=qx();y.current=p,iM(t,()=>v.current);var[h,g]=aM({containerWidth:n.width,containerHeight:n.height}),x=tM((O,E)=>{g(I=>{var T=Math.round(O),_=Math.round(E);return I.containerWidth===T&&I.containerHeight===_?I:{containerWidth:T,containerHeight:_}})},[]);nM(()=>{if(v.current==null||typeof ResizeObserver=="undefined")return xt;var O=_=>{var N,M=_[0];if(M!=null){var{width:F,height:J}=M.contentRect;x(F,J),(N=y.current)===null||N===void 0||N.call(y,F,J)}};c>0&&(O=(0,Yx.default)(O,c,{trailing:!0,leading:!1}));var E=new ResizeObserver(O),{width:I,height:T}=v.current.getBoundingClientRect();return x(I,T),E.observe(v.current),()=>{E.disconnect()}},[x,c]);var{containerWidth:b,containerHeight:P}=h;ho(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:w,calculatedHeight:A}=gm(b,P,{width:i,height:o,aspect:r,maxHeight:l});return ho(w!=null&&w>0||A!=null&&A>0,`The width(%s) and height(%s) of chart should be greater than 0,
20
+ please check the style of container, or the props width(%s) and height(%s),
21
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
22
+ height and width.`,w,A,i,o,a,s,r),ai.createElement("div",{id:f?"".concat(f):void 0,className:W("recharts-responsive-container",d),style:Hx(Hx({},m),{},{width:i,height:o,minWidth:a,minHeight:s,maxHeight:l}),ref:v},ai.createElement("div",{style:Vx({width:i,height:o})},ai.createElement(Xx,{width:w,height:A},u)))}),Hr=Ux((e,t)=>{var r=Ra();if(Ct(r.width)&&Ct(r.height))return e.children;var{width:n,height:i}=Kx({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:a}=gm(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return R(o)&&R(a)?ai.createElement(Xx,{width:o,height:a},e.children):ai.createElement(lM,bm({},e,{width:n,height:i,ref:t}))});function ka(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 si=()=>{var e,t=ue(),r=k(jx),n=k(oi),i=(e=k(vo))===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}},cM={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},tu=()=>{var e;return(e=k(ve))!==null&&e!==void 0?e:cM},yo=()=>k(pt),go=()=>k(mt),Zx=()=>k(e=>e.layout.margin),q=e=>e.layout.layoutType,_t=()=>k(q),bo=()=>{var e=_t();if(e==="horizontal"||e==="vertical")return e},xm=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t};var Jx=()=>{var e=_t();return e!==void 0},li=e=>{var t=$(),r=ue(),{width:n,height:i}=e,o=Ra(),a=n,s=i;return o&&(a=o.width>0?o.width:n,s=o.height>0?o.height:i),uM(()=>{!r&&Ct(a)&&Ct(s)&&t(wx({width:a,height:s}))},[t,r,a,s]),null};var fM={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Qx=le({name:"legend",initialState:fM,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:me()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=st(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:me()},removeLegendPayload:{reducer(e,t){var r=st(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:me()}}}),{setLegendSize:wm,setLegendSettings:e0,addLegendPayload:Pm,replaceLegendPayload:Sm,removeLegendPayload:Am}=Qx.actions,t0=Qx.reducer;var LM=it(a0(),1);import*as Fe from"react";var bM=Symbol.for("react.forward_ref");var xM=Symbol.for("react.memo");var wM=bM,PM=xM;function SM(e){e()}function AM(){let e=null,t=null;return{clear(){e=null,t=null},notify(){SM(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0,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 s0={notify(){},get:()=>[]};function OM(e,t){let r,n=s0,i=0,o=!1;function a(v){c();let y=n.subscribe(v),h=!1;return()=>{h||(h=!0,y(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=AM())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=s0)}function d(){o||(o=!0,c())}function p(){o&&(o=!1,f())}let m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>n};return m}var EM=()=>typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",CM=EM(),_M=()=>typeof navigator!="undefined"&&navigator.product==="ReactNative",IM=_M(),TM=()=>CM||IM?Fe.useLayoutEffect:Fe.useEffect,RM=TM();function l0(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function u0(e,t){if(l0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let 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])||!l0(e[r[i]],t[r[i]]))return!1;return!0}var kM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},DM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},M7={[wM]:kM,[PM]:DM};var N7=Object.prototype;var Em=Symbol.for("react-redux-context"),Cm=typeof globalThis!="undefined"?globalThis:{};function MM(){var r;if(!Fe.createContext)return{};let e=(r=Cm[Em])!=null?r:Cm[Em]=new Map,t=e.get(Fe.createContext);return t||(t=Fe.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(Fe.createContext,t)),t}var NM=MM();function jM(e){let{children:t,context:r,serverState:n,store:i}=e,o=Fe.useMemo(()=>{let l=OM(i),u={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return u;{let{identityFunctionCheck:c="once",stabilityCheck:f="once"}=e;return Object.assign(u,{stabilityCheck:f,identityFunctionCheck:c})}},[i,n]),a=Fe.useMemo(()=>i.getState(),[i]);return RM(()=>{let{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,a]),Fe.createElement((r||NM).Provider,{value:o},t)}var c0=jM;var BM=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function zM(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function It(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(BM.has(n)){if(e[n]==null&&t[n]==null)continue;if(!u0(e[n],t[n]))return!1}else if(!zM(e[n],t[n]))return!1;return!0}var FM=["contextPayload"];function _m(){return _m=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},_m.apply(null,arguments)}function f0(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 xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(r),!0).forEach(function(n){WM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WM(e,t,r){return(t=VM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VM(e){var t=KM(e,"string");return typeof t=="symbol"?t:t+""}function KM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $M(e,t){if(e==null)return{};var r,n,i=HM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function HM(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 UM(e){return e.value}function YM(e){var{contextPayload:t}=e,r=$M(e,FM),n=bl(t,e.payloadUniqBy,UM),i=xo(xo({},r),{},{payload:n});return zt.isValidElement(e.content)?zt.cloneElement(e.content,i):typeof e.content=="function"?zt.createElement(e.content,i):zt.createElement(gg,i)}function GM(e,t,r,n,i,o){var{layout:a,align:s,verticalAlign:l}=t,u,c;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?u={left:((n||0)-o.width)/2}:u=s==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?c={top:((i||0)-o.height)/2}:c=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),xo(xo({},u),c)}function XM(e){var t=$();return d0(()=>{t(e0(e))},[t,e]),null}function ZM(e){var t=$();return d0(()=>(t(wm(e)),()=>{t(wm({width:0,height:0}))}),[t,e]),null}function JM(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var QM={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function eN(e){var t=X(e,QM),r=bb(),n=Vy(),i=Zx(),{width:o,height:a,wrapperStyle:s,portal:l}=t,[u,c]=Al([r]),f=yo(),d=go();if(f==null||d==null)return null;var p=f-((i==null?void 0:i.left)||0)-((i==null?void 0:i.right)||0),m=JM(t.layout,a,o,p),v=l?s:xo(xo({position:"absolute",width:(m==null?void 0:m.width)||o||"auto",height:(m==null?void 0:m.height)||a||"auto"},GM(s,t,i,f,d,u)),s),y=l!=null?l:n;if(y==null||r==null)return null;var h=zt.createElement("div",{className:"recharts-legend-wrapper",style:v,ref:c},zt.createElement(XM,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&zt.createElement(ZM,{width:u.width,height:u.height}),zt.createElement(YM,_m({},t,m,{margin:i,chartWidth:f,chartHeight:d,contextPayload:r})));return qM(h,y)}var Pr=zt.memo(eN,It);Pr.displayName="Legend";import*as lr from"react";import{useEffect as wF}from"react";import{createPortal as PF}from"react-dom";var m0=it(Sa());import*as hr from"react";function Im(){return Im=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},Im.apply(null,arguments)}function p0(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 Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){tN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tN(e,t,r){return(t=rN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rN(e){var t=nN(e,"string");return typeof t=="symbol"?t:t+""}function nN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iN(e){return Array.isArray(e)&&bt(e[0])&&bt(e[1])?e.join(" ~ "):e}var wo={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 oN(e,t){return t==null?e:(0,m0.default)(e,t)}var v0=e=>{var{separator:t=wo.separator,contentStyle:r,itemStyle:n,labelStyle:i=wo.labelStyle,payload:o,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:u,label:c,labelFormatter:f,accessibilityLayer:d=wo.accessibilityLayer}=e,p=()=>{if(o&&o.length){var P={padding:0,margin:0},w=oN(o,s),A=w.map((O,E)=>{if(!O||O.type==="none")return null;var I=O.formatter||a||iN,{value:T,name:_}=O,N=T,M=_;if(I){var F=I(T,_,O,E,o);if(Array.isArray(F))[N,M]=F;else if(F!=null)N=F;else return null}var J=Ma(Ma({},wo.itemStyle),{},{color:O.color||wo.itemStyle.color},n);return hr.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(E),style:J},bt(M)?hr.createElement("span",{className:"recharts-tooltip-item-name"},M):null,bt(M)?hr.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,hr.createElement("span",{className:"recharts-tooltip-item-value"},N),hr.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return hr.createElement("ul",{className:"recharts-tooltip-item-list",style:P},A)}return null},m=Ma(Ma({},wo.contentStyle),r),v=Ma({margin:0},i),y=!Q(c),h=y?c:"",g=W("recharts-default-tooltip",l),x=W("recharts-tooltip-label",u);y&&f&&o!==void 0&&o!==null&&(h=f(c,o));var b=d?{role:"status","aria-live":"assertive"}:{};return hr.createElement("div",Im({className:g,style:m},b),hr.createElement("p",{className:x,style:v},hr.isValidElement(h)?h:"".concat(h)),p())};import*as dn from"react";var Na="recharts-tooltip-wrapper",aN={visibility:"hidden"};function sN(e){var{coordinate:t,translateX:r,translateY:n}=e;return W(Na,{["".concat(Na,"-right")]:R(r)&&t&&R(t.x)&&r>=t.x,["".concat(Na,"-left")]:R(r)&&t&&R(t.x)&&r<t.x,["".concat(Na,"-bottom")]:R(n)&&t&&R(t.y)&&n>=t.y,["".concat(Na,"-top")]:R(n)&&t&&R(t.y)&&n<t.y})}function h0(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:o,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:u}=e;if(o&&R(o[n]))return o[n];var c=r[n]-s-(i>0?i:0),f=r[n]+i;if(t[n])return a[n]?c:f;var d=l[n];if(d==null)return 0;if(a[n]){var p=c,m=d;return p<m?Math.max(f,d):Math.max(c,d)}if(u==null)return 0;var v=f+s,y=d+u;return v>y?Math.max(c,d):Math.max(f,d)}function lN(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 y0(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:o,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:u}=e,c,f,d;return s.height>0&&s.width>0&&r?(f=h0({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:o,reverseDirection:a,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),d=h0({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:o,reverseDirection:a,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),c=lN({translateX:f,translateY:d,useTranslate3d:l})):c=aN,{cssProperties:c,cssClasses:sN({translateX:f,translateY:d,coordinate:r})}}import{useEffect as cN,useState as fN}from"react";var uN=()=>!(typeof window!="undefined"&&window.document&&window.document.createElement&&window.setTimeout),tr={devToolsEnabled:!0,isSsr:uN()};function ru(){var[e,t]=fN(()=>tr.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return cN(()=>{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 g0(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 Po(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g0(Object(r),!0).forEach(function(n){dN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dN(e,t,r){return(t=pN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pN(e){var t=mN(e,"string");return typeof t=="symbol"?t:t+""}function mN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vN(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function hN(e){var t,r,n,i,o,a,s=ru(),[l,u]=dn.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));dn.useEffect(()=>{var m=v=>{if(v.key==="Escape"){var y,h,g,x;u({dismissed:!0,dismissedAtCoordinate:{x:(y=(h=e.coordinate)===null||h===void 0?void 0:h.x)!==null&&y!==void 0?y:0,y:(g=(x=e.coordinate)===null||x===void 0?void 0:x.y)!==null&&g!==void 0?g:0}})}};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[(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||((o=(a=e.coordinate)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)!==l.dismissedAtCoordinate.y)&&u(Po(Po({},l),{},{dismissed:!1}));var{cssClasses:c,cssProperties:f}=y0({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?{}:Po(Po({transition:vN({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=Po(Po({},d),{},{visibility:!l.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return dn.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:c,style:p,ref:e.innerRef},e.children)}var b0=dn.memo(hN);var nu=()=>{var e;return(e=k(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};import*as zc from"react";import{cloneElement as Jz,createElement as Qz,isValidElement as eF}from"react";import*as O0 from"react";function Tm(){return Tm=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},Tm.apply(null,arguments)}function x0(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 w0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){yN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yN(e,t,r){return(t=gN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gN(e){var t=bN(e,"string");return typeof t=="symbol"?t:t+""}function bN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P0={curveBasisClosed:yd,curveBasisOpen:gd,curveBasis:hd,curveBumpX:ad,curveBumpY:sd,curveLinearClosed:bd,curveLinear:cn,curveMonotoneX:wd,curveMonotoneY:Pd,curveNatural:Sd,curveStep:Ad,curveStepAfter:Ed,curveStepBefore:Od},iu=e=>V(e.x)&&V(e.y),S0=e=>e.base!=null&&iu(e.base)&&iu(e),ja=e=>e.x,La=e=>e.y,xN=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Fr(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=P0["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return P0[r]||cn},A0={connectNulls:!1,type:"linear"},wN=e=>{var{type:t=A0.type,points:r=[],baseLine:n,layout:i,connectNulls:o=A0.connectNulls}=e,a=xN(t,i),s=o?r.filter(iu):r;if(Array.isArray(n)){var l,u=r.map((m,v)=>w0(w0({},m),{},{base:n[v]}));i==="vertical"?l=Ji().y(La).x1(ja).x0(m=>m.base.x):l=Ji().x(ja).y1(La).y0(m=>m.base.y);var c=l.defined(S0).curve(a),f=o?u.filter(S0):u;return c(f)}var d;i==="vertical"&&R(n)?d=Ji().y(La).x1(ja).x0(n):R(n)?d=Ji().x(ja).y1(La).y0(n):d=ga().x(ja).y(La);var p=d.defined(iu).curve(a);return p(s)},Sr=e=>{var{className:t,points:r,path:n,pathRef:i}=e,o=_t();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},s=r&&r.length?wN(a):n;return O0.createElement("path",Tm({},Te(e),io(e),{className:W("recharts-curve",t),d:s===null?void 0:s,ref:i}))};import*as C0 from"react";var PN=["x","y","top","left","width","height","className"];function Rm(){return Rm=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},Rm.apply(null,arguments)}function E0(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 SN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(r),!0).forEach(function(n){AN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AN(e,t,r){return(t=ON(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e){var t=EN(e,"string");return typeof t=="symbol"?t:t+""}function EN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CN(e,t){if(e==null)return{};var r,n,i=_N(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _N(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 IN=(e,t,r,n,i,o)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r),_0=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:o=0,height:a=0,className:s}=e,l=CN(e,PN),u=SN({x:t,y:r,top:n,left:i,width:o,height:a},l);return!R(t)||!R(r)||!R(o)||!R(a)||!R(n)||!R(i)?null:C0.createElement("path",Rm({},ge(u),{className:W("recharts-cross",s),d:IN(t,r,o,a,n,i)}))};function I0(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}}import*as uu from"react";import{useEffect as nj,useMemo as ij,useRef as Ba,useState as oj}from"react";import{useEffect as $0,useRef as YN,useState as GN}from"react";function T0(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 R0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(r),!0).forEach(function(n){TN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TN(e,t,r){return(t=RN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RN(e){var t=kN(e,"string");return typeof t=="symbol"?t:t+""}function kN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DN=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),ou=(e,t,r)=>e.map(n=>"".concat(DN(n)," ").concat(t,"ms ").concat(r)).join(","),k0=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),So=(e,t)=>Object.keys(t).reduce((r,n)=>R0(R0({},r),{},{[n]:e(n,t[n])}),{});function D0(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 Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D0(Object(r),!0).forEach(function(n){MN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MN(e,t,r){return(t=NN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NN(e){var t=jN(e,"string");return typeof t=="symbol"?t:t+""}function jN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var au=(e,t,r)=>e+(t-e)*r,km=e=>{var{from:t,to:r}=e;return t!==r},M0=(e,t,r)=>{var n=So((i,o)=>{if(km(o)){var[a,s]=e(o.from,o.to,o.velocity);return Ge(Ge({},o),{},{from:a,velocity:s})}return o},t);return r<1?So((i,o)=>km(o)&&n[i]!=null?Ge(Ge({},o),{},{velocity:au(o.velocity,n[i].velocity,r),from:au(o.from,n[i].from,r)}):o,t):M0(e,n,r-1)};function LN(e,t,r,n,i,o){var a,s=n.reduce((d,p)=>Ge(Ge({},d),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>So((d,p)=>p.from,s),u=()=>!Object.values(s).filter(km).length,c=null,f=d=>{a||(a=d);var p=d-a,m=p/r.dt;s=M0(r,s,m),i(Ge(Ge(Ge({},e),t),l())),a=d,u()||(c=o.setTimeout(f))};return()=>(c=o.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function BN(e,t,r,n,i,o,a){var s=null,l=i.reduce((f,d)=>{var p=e[d],m=t[d];return p==null||m==null?f:Ge(Ge({},f),{},{[d]:[p,m]})},{}),u,c=f=>{u||(u=f);var d=(f-u)/n,p=So((v,y)=>au(...y,r(d)),l);if(o(Ge(Ge(Ge({},e),t),p)),d<1)s=a.setTimeout(c);else{var m=So((v,y)=>au(...y,r(1)),l);o(Ge(Ge(Ge({},e),t),m))}};return()=>(s=a.setTimeout(c),()=>{var f;(f=s)===null||f===void 0||f()})}var N0=(e,t,r,n,i,o)=>{var a=k0(e,t);return r==null?()=>(i(Ge(Ge({},e),t)),()=>{}):r.isStepper===!0?LN(e,t,r,a,i,o):BN(e,t,r,n,a,i,o)};var su=1e-4,B0=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],z0=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),j0=(e,t)=>r=>{var n=B0(e,t);return z0(n,r)},zN=(e,t)=>r=>{var n=B0(e,t),i=[...n.map((o,a)=>o*a).slice(1),0];return z0(i,r)},FN=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(o=>parseFloat(o));return[i[0],i[1],i[2],i[3]]},WN=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=FN(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},VN=(e,t,r,n)=>{var i=j0(e,r),o=j0(t,n),a=zN(e,r),s=u=>u>1?1:u<0?0:u,l=u=>{for(var c=u>1?1:u,f=c,d=0;d<8;++d){var p=i(f)-c,m=a(f);if(Math.abs(p-c)<su||m<su)return o(f);f=s(f-p/m)}return o(f)};return l.isStepper=!1,l},L0=function(){return VN(...WN(...arguments))},KN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,o=(a,s,l)=>{var u=-(a-s)*r,c=l*n,f=l+(u-c)*i/1e3,d=l*i/1e3+a;return Math.abs(d-s)<su&&Math.abs(f)<su?[s,0]:[d,f]};return o.isStepper=!0,o.dt=i,o},F0=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return L0(e);case"spring":return KN();default:if(e.split("(")[0]==="cubic-bezier")return L0(e)}return typeof e=="function"?e:null};import{createContext as $N,useContext as HN,useMemo as qN}from"react";function W0(e){var t,r=()=>null,n=!1,i=null,o=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...u]=s;if(typeof l=="number"){i=e.setTimeout(o.bind(null,u),l);return}o(l),i=e.setTimeout(o.bind(null,u));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,i&&(i(),i=null),o(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}var lu=class{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,o=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{i!=null&&cancelAnimationFrame(i)}}};function V0(){return W0(new lu)}var UN=$N(V0);function K0(e,t){var r=HN(UN);return qN(()=>t!=null?t:r(e),[e,t,r])}var XN={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},H0={t:0},Dm={t:1};function rr(e){var t=X(e,XN),{isActive:r,canBegin:n,duration:i,easing:o,begin:a,onAnimationEnd:s,onAnimationStart:l,children:u}=t,c=ru(),f=r==="auto"?!tr.isSsr&&!c:r,d=K0(t.animationId,t.animationManager),[p,m]=GN(f?H0:Dm),v=YN(null);return $0(()=>{f||m(Dm)},[f]),$0(()=>{if(!f||!n)return xt;var y=N0(H0,Dm,F0(o),i,m,d.getTimeoutController()),h=()=>{v.current=y()};return d.start([l,a,h,i,s]),()=>{d.stop(),v.current&&v.current(),s()}},[f,n,i,o,a,l,s,d]),u(p.t)}import{useRef as q0}from"react";function nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=q0(zr(t)),n=q0(e);return n.current!==e&&(r.current=zr(t),n.current=e),r.current}var ZN=["radius"],JN=["radius"],U0,Y0,G0,X0,Z0,J0,Q0,ew,tw,rw;function nw(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 iw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(r),!0).forEach(function(n){QN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QN(e,t,r){return(t=ej(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ej(e){var t=tj(e,"string");return typeof t=="symbol"?t:t+""}function tj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cu(){return cu=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},cu.apply(null,arguments)}function ow(e,t){if(e==null)return{};var r,n,i=rj(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function rj(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 Ar(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var aw=(e,t,r,n,i)=>{var o=xr(r),a=xr(n),s=Math.min(Math.abs(o)/2,Math.abs(a)/2),l=a>=0?1:-1,u=o>=0?1:-1,c=a>=0&&o>=0||a<0&&o<0?1:0,f;if(s>0&&Array.isArray(i)){for(var d=[0,0,0,0],p=0,m=4;p<m;p++){var v,y=(v=i[p])!==null&&v!==void 0?v:0;d[p]=y>s?s:y}f=Ee(U0||(U0=Ar(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=Ee(Y0||(Y0=Ar(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+u*d[0],t)),f+=Ee(G0||(G0=Ar(["L ",",",""])),e+r-u*d[1],t),d[1]>0&&(f+=Ee(X0||(X0=Ar(["A ",",",",0,0,",`,
23
+ `,",",""])),d[1],d[1],c,e+r,t+l*d[1])),f+=Ee(Z0||(Z0=Ar(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=Ee(J0||(J0=Ar(["A ",",",",0,0,",`,
24
+ `,",",""])),d[2],d[2],c,e+r-u*d[2],t+n)),f+=Ee(Q0||(Q0=Ar(["L ",",",""])),e+u*d[3],t+n),d[3]>0&&(f+=Ee(ew||(ew=Ar(["A ",",",",0,0,",`,
25
+ `,",",""])),d[3],d[3],c,e,t+n-l*d[3])),f+="Z"}else if(s>0&&i===+i&&i>0){var h=Math.min(s,i);f=Ee(tw||(tw=Ar(["M ",",",`
26
+ A `,",",",0,0,",",",",",`
27
+ L `,",",`
28
+ A `,",",",0,0,",",",",",`
29
+ L `,",",`
30
+ A `,",",",0,0,",",",",",`
31
+ L `,",",`
32
+ A `,",",",0,0,",",",","," Z"])),e,t+l*h,h,h,c,e+u*h,t,e+r-u*h,t,h,h,c,e+r,t+l*h,e+r,t+n-l*h,h,h,c,e+r-u*h,t+n,e+u*h,t+n,h,h,c,e,t+n-l*h)}else f=Ee(rw||(rw=Ar(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},sw={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fu=e=>{var t=X(e,sw),r=Ba(null),[n,i]=oj(-1);nj(()=>{if(r.current&&r.current.getTotalLength)try{var U=r.current.getTotalLength();U&&i(U)}catch(ne){}},[]);var{x:o,y:a,width:s,height:l,radius:u,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:p,isAnimationActive:m,isUpdateAnimationActive:v}=t,y=Ba(s),h=Ba(l),g=Ba(o),x=Ba(a),b=ij(()=>({x:o,y:a,width:s,height:l,radius:u}),[o,a,s,l,u]),P=nr(b,"rectangle-");if(o!==+o||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var w=W("recharts-rectangle",c);if(!v){var A=ge(t),{radius:O}=A,E=ow(A,ZN);return uu.createElement("path",cu({},E,{x:xr(o),y:xr(a),width:xr(s),height:xr(l),radius:typeof u=="number"?u:void 0,className:w,d:aw(o,a,s,l,u)}))}var I=y.current,T=h.current,_=g.current,N=x.current,M="0px ".concat(n===-1?1:n,"px"),F="".concat(n,"px ").concat(n,"px"),J=ou(["strokeDasharray"],d,typeof f=="string"?f:sw.animationEasing);return uu.createElement(rr,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:v,begin:p},U=>{var ne=ie(I,s,U),K=ie(T,l,U),te=ie(_,o,U),Be=ie(N,a,U);r.current&&(y.current=ne,h.current=K,g.current=te,x.current=Be);var Se;m?U>0?Se={transition:J,strokeDasharray:F}:Se={strokeDasharray:M}:Se={strokeDasharray:F};var gt=ge(t),{radius:lt}=gt,pr=ow(gt,JN);return uu.createElement("path",cu({},pr,{radius:typeof u=="number"?u:void 0,className:w,d:aw(te,Be,ne,K,u),ref:r,style:iw(iw({},Se),t.style)}))})};function lw(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 uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lw(Object(r),!0).forEach(function(n){aj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aj(e,t,r){return(t=sj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sj(e){var t=lj(e,"string");return typeof t=="symbol"?t:t+""}function lj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var za=Math.PI/180;var uj=e=>e*180/Math.PI,Ae=(e,t,r,n)=>({x:e+Math.cos(-za*n)*r,y:t+Math.sin(-za*n)*r}),du=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},cj=(e,t)=>{var{x:r,y:n}=e,{x:i,y:o}=t;return Math.sqrt((r-i)**2+(n-o)**2)},fj=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:o}=t,a=cj({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var s=(r-i)/a,l=Math.acos(s);return n>o&&(l=2*Math.PI-l),{radius:a,angle:uj(l),angleInRadian:l}},dj=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-o*360,endAngle:r-o*360}},pj=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return e+a*360},cw=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:o}=fj({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(i<a||i>s||i===0)return null;var{startAngle:l,endAngle:u}=dj(t),c=o,f;if(l<=u){for(;c>u;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=u}else{for(;c>l;)c-=360;for(;c<u;)c+=360;f=c>=u&&c<=l}return f?uw(uw({},t),{},{radius:i,angle:pj(c,t)}):null};function pu(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:o}=e,a=Ae(t,r,n,i),s=Ae(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}import*as gw from"react";var fw,dw,pw,mw,vw,hw,yw;function Mm(){return Mm=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},Mm.apply(null,arguments)}function ui(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var mj=(e,t)=>{var r=xe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},mu=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:o,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,u=s*(a?1:-1)+n,c=Math.asin(s/u)/za,f=l?i:i+o*c,d=Ae(t,r,u,f),p=Ae(t,r,n,f),m=l?i-o*c:i,v=Ae(t,r,u*Math.cos(c*za),m);return{center:d,circleTangency:p,lineTangency:v,theta:c}},bw=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:o,endAngle:a}=e,s=mj(o,a),l=o+s,u=Ae(t,r,i,o),c=Ae(t,r,i,l),f=Ee(fw||(fw=ui(["M ",",",`
33
+ A `,",",`,0,
34
+ `,",",`,
35
+ `,",",`
36
+ `])),u.x,u.y,i,i,+(Math.abs(s)>180),+(o>l),c.x,c.y);if(n>0){var d=Ae(t,r,n,o),p=Ae(t,r,n,l);f+=Ee(dw||(dw=ui(["L ",",",`
37
+ A `,",",`,0,
38
+ `,",",`,
39
+ `,","," Z"])),p.x,p.y,n,n,+(Math.abs(s)>180),+(o<=l),d.x,d.y)}else f+=Ee(pw||(pw=ui(["L ",","," Z"])),t,r);return f},vj=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:u}=e,c=xe(u-l),{circleTangency:f,lineTangency:d,theta:p}=mu({cx:t,cy:r,radius:i,angle:l,sign:c,cornerRadius:o,cornerIsExternal:s}),{circleTangency:m,lineTangency:v,theta:y}=mu({cx:t,cy:r,radius:i,angle:u,sign:-c,cornerRadius:o,cornerIsExternal:s}),h=s?Math.abs(l-u):Math.abs(l-u)-p-y;if(h<0)return a?Ee(mw||(mw=ui(["M ",",",`
40
+ a`,",",",0,0,1,",`,0
41
+ a`,",",",0,0,1,",`,0
42
+ `])),d.x,d.y,o,o,o*2,o,o,-o*2):bw({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:u});var g=Ee(vw||(vw=ui(["M ",",",`
43
+ A`,",",",0,0,",",",",",`
44
+ A`,",",",0,",",",",",",",`
45
+ A`,",",",0,0,",",",",",`
46
+ `])),d.x,d.y,o,o,+(c<0),f.x,f.y,i,i,+(h>180),+(c<0),m.x,m.y,o,o,+(c<0),v.x,v.y);if(n>0){var{circleTangency:x,lineTangency:b,theta:P}=mu({cx:t,cy:r,radius:n,angle:l,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),{circleTangency:w,lineTangency:A,theta:O}=mu({cx:t,cy:r,radius:n,angle:u,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=s?Math.abs(l-u):Math.abs(l-u)-P-O;if(E<0&&o===0)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=Ee(hw||(hw=ui(["L",",",`
47
+ A`,",",",0,0,",",",",",`
48
+ A`,",",",0,",",",",",",",`
49
+ A`,",",",0,0,",",",",","Z"])),A.x,A.y,o,o,+(c<0),w.x,w.y,n,n,+(E>180),+(c>0),x.x,x.y,o,o,+(c<0),b.x,b.y)}else g+=Ee(yw||(yw=ui(["L",",","Z"])),t,r);return g},hj={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vu=e=>{var t=X(e,hj),{cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:c,className:f}=t;if(o<i||u===c)return null;var d=W("recharts-sector",f),p=o-i,m=je(a,p,0,!0),v;return m>0&&Math.abs(u-c)<360?v=vj({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:c}):v=bw({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c}),gw.createElement("path",Mm({},ge(t),{className:d,d:v}))};function xw(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(ml(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:o,outerRadius:a,angle:s}=t,l=Ae(n,i,o,s),u=Ae(n,i,a,s);return[{x:l.x,y:l.y},{x:u.x,y:u.y}]}return pu(t)}}var Rv=it(Ow());var Tt=e=>e.chartData,ci=S([Tt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),fi=(e,t,r,n)=>n?ci(e):Tt(e),hu=(e,t,r)=>r?ci(e):Tt(e),Ew=S([fi],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]}),Cw=S([ci],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]}),_w=S([Tt],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return t!=null?t.slice(r,n+1):[]});function Ft(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(V(t)&&V(r))return!0}return!1}function Iw(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function yu(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,o;if(V(r))i=r;else if(typeof r=="function")return;if(V(n))o=n;else if(typeof n=="function")return;var a=[i,o];if(Ft(a))return a}}function Tw(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Ft(n))return Iw(n,t,r)}catch(p){}if(Array.isArray(e)&&e.length===2){var[i,o]=e,a,s;if(i==="auto")t!=null&&(a=Math.min(...t));else if(R(i))a=i;else if(typeof i=="function")try{t!=null&&(a=i(t==null?void 0:t[0]))}catch(p){}else if(typeof i=="string"&&dm.test(i)){var l=dm.exec(i);if(l==null||l[1]==null||t==null)a=void 0;else{var u=+l[1];a=t[0]-u}}else a=t==null?void 0:t[0];if(o==="auto")t!=null&&(s=Math.max(...t));else if(R(o))s=o;else if(typeof o=="function")try{t!=null&&(s=o(t==null?void 0:t[1]))}catch(p){}else if(typeof o=="string"&&pm.test(o)){var c=pm.exec(o);if(c==null||c[1]==null||t==null)s=void 0;else{var f=+c[1];s=t[1]+f}}else s=t==null?void 0:t[1];var d=[a,s];if(Ft(d))return t==null?d:Iw(d,t,r)}}}var Ao=1e9,Sj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Wm,Re=!0,ir="[DecimalError] ",pi=ir+"Invalid argument: ",Fm=ir+"Exponent out of range: ",Oo=Math.floor,di=Math.pow,Aj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wt,tt=1e7,Ce=7,Dw=9007199254740991,gu=Oo(Dw/Ce),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return qr(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return we(qr(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return Ye(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Wt))throw Error(ir+"NaN");if(r.s<1)throw Error(ir+(r.s?"NaN":"-Infinity"));return r.eq(Wt)?new n(0):(Re=!1,t=qr(Fa(r,o),Fa(e,o),o),Re=!0,we(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jw(t,e):Mw(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ir+"NaN");return r.s?(Re=!1,t=qr(r,e,0,1).times(e),Re=!0,r.minus(t)):we(new n(r),i)};z.naturalExponential=z.exp=function(){return Nw(this)};z.naturalLogarithm=z.ln=function(){return Fa(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Mw(t,e):jw(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(pi+e);if(t=Ye(i)+1,n=i.d.length-1,r=n*Ce+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.sqrt=function(){var e,t,r,n,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ir+"NaN")}for(e=Ye(s),Re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Or(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Oo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=a=r+3;;)if(o=n,n=o.plus(qr(s,o,a+2)).times(.5),Or(o.d).slice(0,a)===(t=Or(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(we(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return Re=!0,we(n,r)};z.times=z.mul=function(e){var t,r,n,i,o,a,s,l,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=p.length,l<u&&(o=d,d=p,p=o,a=l,l=u,u=a),o=[],a=l+u,n=a;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+p[n]*d[i-n-1]+t,o[i--]=s%tt|0,t=s/tt|0;o[i]=(o[i]+t)%tt|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Re?we(e,f.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Er(e,0,Ao),t===void 0?t=n.rounding:Er(t,0,8),we(r,e+Ye(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=mi(n,!0):(Er(e,0,Ao),t===void 0?t=i.rounding:Er(t,0,8),n=we(new i(n),e+1,t),r=mi(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?mi(i):(Er(e,0,Ao),t===void 0?t=o.rounding:Er(t,0,8),n=we(new o(i),e+Ye(i)+1,t),r=mi(n.abs(),!1,e+Ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return we(new t(e),Ye(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Wt);if(s=new l(s),!s.s){if(e.s<1)throw Error(ir+"Infinity");return s}if(s.eq(Wt))return s;if(n=l.precision,e.eq(Wt))return we(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=c<0?-c:c)<=Dw){for(i=new l(Wt),t=Math.ceil(n/Ce+4),Re=!1;r%2&&(i=i.times(s),kw(i.d,t)),r=Oo(r/2),r!==0;)s=s.times(s),kw(s.d,t);return Re=!0,e.s<0?new l(Wt).div(i):we(i,n)}}else if(o<0)throw Error(ir+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Re=!1,i=e.times(Fa(s,n+u)),Re=!0,i=Nw(i),i.s=o,i};z.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Ye(i),n=mi(i,r<=o.toExpNeg||r>=o.toExpPos)):(Er(e,1,Ao),t===void 0?t=o.rounding:Er(t,0,8),i=we(new o(i),e,t),r=Ye(i),n=mi(i,e<=r||r<=o.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Er(e,1,Ao),t===void 0?t=n.rounding:Er(t,0,8)),we(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ye(e),r=e.constructor;return mi(e,t<=r.toExpNeg||t>=r.toExpPos)};function Mw(e,t){var r,n,i,o,a,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Re?we(t,f):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(n=l,o=-o,s=u.length):(n=u,i=a,s=l.length),a=Math.ceil(f/Ce),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/tt|0,l[o]%=tt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Re?we(t,f):t}function Er(e,t,r){if(e!==~~e||e<t||e>r)throw Error(pi+e)}function Or(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=Ce-n.length,r&&(o+=pn(r)),o+=n;a=e[t],n=a+"",r=Ce-n.length,r&&(o+=pn(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var qr=(function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%tt|0,a=o/tt|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*tt+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,l,u,c,f,d,p,m,v,y,h,g,x,b,P,w,A,O,E=n.constructor,I=n.s==i.s?1:-1,T=n.d,_=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(ir+"Division by zero");for(l=n.e-i.e,A=_.length,P=T.length,p=new E(I),m=p.d=[],u=0;_[u]==(T[u]||0);)++u;if(_[u]>(T[u]||0)&&--l,o==null?g=o=E.precision:a?g=o+(Ye(n)-Ye(i))+1:g=o,g<0)return new E(0);if(g=g/Ce+2|0,u=0,A==1)for(c=0,_=_[0],g++;(u<P||c)&&g--;u++)x=c*tt+(T[u]||0),m[u]=x/_|0,c=x%_|0;else{for(c=tt/(_[0]+1)|0,c>1&&(_=e(_,c),T=e(T,c),A=_.length,P=T.length),b=A,v=T.slice(0,A),y=v.length;y<A;)v[y++]=0;O=_.slice(),O.unshift(0),w=_[0],_[1]>=tt/2&&++w;do c=0,s=t(_,v,A,y),s<0?(h=v[0],A!=y&&(h=h*tt+(v[1]||0)),c=h/w|0,c>1?(c>=tt&&(c=tt-1),f=e(_,c),d=f.length,y=v.length,s=t(f,v,d,y),s==1&&(c--,r(f,A<d?O:_,d))):(c==0&&(s=c=1),f=_.slice()),d=f.length,d<y&&f.unshift(0),r(v,f,y),s==-1&&(y=v.length,s=t(_,v,A,y),s<1&&(c++,r(v,A<y?O:_,y))),y=v.length):s===0&&(c++,v=[0]),m[u++]=c,s&&v[0]?v[y++]=T[b]||0:(v=[T[b]],y=1);while((b++<P||v[0]!==void 0)&&g--)}return m[0]||m.shift(),p.e=l,we(p,a?o+Ye(p)+1:o)}})();function Nw(e,t){var r,n,i,o,a,s,l=0,u=0,c=e.constructor,f=c.precision;if(Ye(e)>16)throw Error(Fm+Ye(e));if(!e.s)return new c(Wt);for(t==null?(Re=!1,s=f):s=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(di(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new c(Wt),c.precision=s;;){if(i=we(i.times(e),s),r=r.times(++l),a=o.plus(qr(i,r,s)),Or(a.d).slice(0,s)===Or(o.d).slice(0,s)){for(;u--;)o=we(o.times(o),s);return c.precision=f,t==null?(Re=!0,we(o,f)):o}o=a}}function Ye(e){for(var t=e.e*Ce,r=e.d[0];r>=10;r/=10)t++;return t}function zm(e,t,r){if(t>e.LN10.sd())throw Re=!0,r&&(e.precision=r),Error(ir+"LN10 precision limit exceeded");return we(new e(e.LN10),t)}function pn(e){for(var t="";e--;)t+="0";return t}function Fa(e,t){var r,n,i,o,a,s,l,u,c,f=1,d=10,p=e,m=p.d,v=p.constructor,y=v.precision;if(p.s<1)throw Error(ir+(p.s?"NaN":"-Infinity"));if(p.eq(Wt))return new v(0);if(t==null?(Re=!1,u=y):u=t,p.eq(10))return t==null&&(Re=!0),zm(v,u);if(u+=d,v.precision=u,r=Or(m),n=r.charAt(0),o=Ye(p),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Or(p.d),n=r.charAt(0),f++;o=Ye(p),n>1?(p=new v("0."+r),o++):p=new v(n+"."+r.slice(1))}else return l=zm(v,u+2,y).times(o+""),p=Fa(new v(n+"."+r.slice(1)),u-d).plus(l),v.precision=y,t==null?(Re=!0,we(p,y)):p;for(s=a=p=qr(p.minus(Wt),p.plus(Wt),u),c=we(p.times(p),u),i=3;;){if(a=we(a.times(c),u),l=s.plus(qr(a,new v(i),u)),Or(l.d).slice(0,u)===Or(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(zm(v,u+2,y).times(o+""))),s=qr(s,new v(f),u),v.precision=y,t==null?(Re=!0,we(s,y)):s;s=l,i+=2}}function Rw(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Oo(r/Ce),e.d=[],n=(r+1)%Ce,r<0&&(n+=Ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ce;n<i;)e.d.push(+t.slice(n,n+=Ce));t=t.slice(n),n=Ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Re&&(e.e>gu||e.e<-gu))throw Error(Fm+r)}else e.s=0,e.e=0,e.d=[0];return e}function we(e,t,r){var n,i,o,a,s,l,u,c,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=Ce,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ce),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;n%=Ce,i=n-Ce+a}if(r!==void 0&&(o=di(10,a-i-1),s=u/o%10|0,l=t<0||f[c+1]!==void 0||u%o,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/di(10,a-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(o=Ye(e),f.length=1,t=t-o-1,f[0]=di(10,(Ce-t%Ce)%Ce),e.e=Oo(-t/Ce)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,o=1,c--):(f.length=c+1,o=di(10,Ce-n),f[c]=i>0?(u/di(10,a-i)%di(10,i)|0)*o:0),l)for(;;)if(c==0){(f[0]+=o)==tt&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=tt)break;f[c--]=0,o=1}for(n=f.length;f[--n]===0;)f.pop();if(Re&&(e.e>gu||e.e<-gu))throw Error(Fm+Ye(e));return e}function jw(e,t){var r,n,i,o,a,s,l,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Re?we(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n,a){for(c=a<0,c?(r=l,a=-a,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Ce),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}a=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>a;){if(l[--i]<f[i]){for(o=i;o&&l[--o]===0;)l[o]=tt-1;--l[o],l[i]+=tt}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Re?we(t,p):t):new d(0)}function mi(e,t,r){var n,i=Ye(e),o=Or(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+pn(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+pn(-i-1)+o,r&&(n=r-a)>0&&(o+=pn(n))):i>=a?(o+=pn(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+pn(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=pn(n))),e.s<0?"-"+o:o}function kw(e,t){if(e.length>t)return e.length=t,!0}function Lw(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(pi+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Rw(a,o.toString())}else if(typeof o!="string")throw Error(pi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Aj.test(o))Rw(a,o);else throw Error(pi+o)}if(i.prototype=z,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Lw,i.config=i.set=Oj,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Oj(e){if(!e||typeof e!="object")throw Error(ir+"Object expected");var t,r,n,i=["precision",1,Ao,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Oo(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(pi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(pi+r+": "+n);return this}var Wm=Lw(Sj);Wt=new Wm(1);var re=Wm;function Vm(e){var t;return e===0?t=1:t=Math.floor(new re(e).abs().log(10).toNumber())+1,t}function Km(e,t,r){for(var n=new re(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var Bw=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},$m=(e,t,r)=>{if(e.lte(0))return new re(0);var n=Vm(e.toNumber()),i=new re(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new re(Math.ceil(o.div(a).toNumber())).add(r).mul(a),l=s.mul(i);return t?new re(l.toNumber()):new re(Math.ceil(l.toNumber()))},zw=(e,t,r)=>{var n;if(e.lte(0))return new re(0);var i=[1,2,2.5,5],o=e.toNumber(),a=Math.floor(new re(o).abs().log(10).toNumber()),s=new re(10).pow(a),l=e.div(s).toNumber(),u=i.findIndex(p=>p>=l-1e-10);if(u===-1&&(s=s.mul(10),u=0),u+=r,u>=i.length){var c=Math.floor(u/i.length);u%=i.length,s=s.mul(new re(10).pow(c))}var f=(n=i[u])!==null&&n!==void 0?n:1,d=new re(f).mul(s);return t?d:new re(Math.ceil(d.toNumber()))},Ej=(e,t,r)=>{var n=new re(1),i=new re(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new re(10).pow(Vm(e)-1),i=new re(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new re(Math.floor(e)))}else e===0?i=new re(Math.floor((t-1)/2)):r||(i=new re(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(i.add(new re(l-a).mul(n)).toNumber());return s},Fw=function(t,r,n,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:$m;if(!Number.isFinite((r-t)/(n-1)))return{step:new re(0),tickMin:new re(0),tickMax:new re(0)};var s=a(new re(r).sub(t).div(n-1),i,o),l;t<=0&&r>=0?l=new re(0):(l=new re(t).add(r).div(2),l=l.sub(new re(l).mod(s)));var u=Math.ceil(l.sub(t).div(s).toNumber()),c=Math.ceil(new re(r).sub(l).div(s).toNumber()),f=u+c+1;return f>n?Fw(t,r,n,i,o+1,a):(f<n&&(c=r>0?c+(n-f):c,u=r>0?u:u+(n-f)),{step:s,tickMin:l.sub(new re(u).mul(s)),tickMax:l.add(new re(c).mul(s))})};var bu=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",s=Math.max(i,2),[l,u]=Bw([r,n]);if(l===-1/0||u===1/0){var c=u===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return r>n?c.reverse():c}if(l===u)return Ej(l,i,o);var f=a==="snap125"?zw:$m,{step:d,tickMin:p,tickMax:m}=Fw(l,u,s,o,0,f),v=Km(p,m.add(new re(.1).mul(d)),d);return r>n?v.reverse():v},xu=function(t,r){var[n,i]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[s,l]=Bw([n,i]);if(s===-1/0||l===1/0)return[n,i];if(s===l)return[s];var u=a==="snap125"?zw:$m,c=Math.max(r,2),f=u(new re(l).sub(s).div(c-1),o,0),d=[...Km(new re(s),new re(l),f),l];return o===!1&&(d=d.map(p=>Math.round(p))),n>i?d.reverse():d};var Hm=e=>e.rootProps.maxBarSize,Ww=e=>e.rootProps.barGap,wu=e=>e.rootProps.barCategoryGap,Vw=e=>e.rootProps.barSize,mn=e=>e.rootProps.stackOffset,Pu=e=>e.rootProps.reverseStackOrder,Eo=e=>e.options.chartName,Su=e=>e.rootProps.syncId,qm=e=>e.rootProps.syncMethod,Au=e=>e.options.eventEmitter,Kw=e=>e.rootProps.baseValue;var ee={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};var vn={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:ee.axis};var yr={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:ee.axis};var vi=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function hi(e,t,r){if(r!=="auto")return r;if(e!=null)return dt(e,t)?"category":"number"}function $w(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 Ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){Cj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cj(e,t,r){return(t=_j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _j(e){var t=Ij(e,"string");return typeof t=="symbol"?t:t+""}function Ij(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hw={allowDataOverflow:vn.allowDataOverflow,allowDecimals:vn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:vn.angleAxisId,includeHidden:!1,name:void 0,reversed:vn.reversed,scale:vn.scale,tick:vn.tick,tickCount:void 0,ticks:void 0,type:vn.type,unit:void 0,niceTicks:"auto"},qw={allowDataOverflow:yr.allowDataOverflow,allowDecimals:yr.allowDecimals,allowDuplicatedCategory:yr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yr.radiusAxisId,includeHidden:yr.includeHidden,name:void 0,reversed:yr.reversed,scale:yr.scale,tick:yr.tick,tickCount:yr.tickCount,ticks:void 0,type:yr.type,unit:void 0,niceTicks:"auto"},Tj=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Eu=S([Tj,xm],(e,t)=>{var r;if(e!=null)return e;var n=(r=hi(t,"angleAxis",Hw.type))!==null&&r!==void 0?r:"category";return Ou(Ou({},Hw),{},{type:n})}),Rj=(e,t)=>e.polarAxis.radiusAxis[t],Cu=S([Rj,xm],(e,t)=>{var r;if(e!=null)return e;var n=(r=hi(t,"radiusAxis",qw.type))!==null&&r!==void 0?r:"category";return Ou(Ou({},qw),{},{type:n})}),_u=e=>e.polarOptions,Um=S([pt,mt,ve],du),Uw=S([_u,Um],(e,t)=>{if(e!=null)return je(e.innerRadius,t,0)}),Yw=S([_u,Um],(e,t)=>{if(e!=null)return je(e.outerRadius,t,t*.8)}),kj=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Ym=S([_u],kj),iZ=S([Eu,Ym],vi),Gm=S([Um,Uw,Yw],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]}),oZ=S([Cu,Gm],vi),Iu=S([q,_u,Uw,Yw,pt,mt],(e,t,r,n,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:u}=t;return{cx:je(a,i,i/2),cy:je(s,o,o/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:u,clockWise:!1}}});var _e=(e,t)=>t;var yi=(e,t,r)=>r;function hn(e){return e==null?void 0:e.id}function Tu(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=r,a=new Map;return e.forEach(s=>{var l,u=(l=s.data)!==null&&l!==void 0?l:n;if(!(u==null||u.length===0)){var c=hn(s);u.forEach((f,d)=>{var p=o==null||i?d:String(Y(f,o,null)),m=Y(f,s.dataKey,0),v;a.has(p)?v=a.get(p):v={},Object.assign(v,{[c]:m}),a.set(p,v)})}}),Array.from(a.values())}function gi(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Co=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function _o(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Gw(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Ke=e=>{var t=q(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"};var yn=e=>e.tooltip.settings.axisId;function Wa(e){if(e!=null){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(o){function a(){return o.apply(this,arguments)}return a.toString=function(){return o.toString()},a})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(o){var a=i[0],s=i[1];return a<=s?o>=a&&o<=s:o>=s&&o<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,a)=>{var s=e(o);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break;default:break}}return s}}}}}var Ru=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Ft(t)){for(var r,n,i=0;i<t.length;i++){var o=t[i];V(o)&&((r===void 0||o<r)&&(r=o),(n===void 0||o>n)&&(n=o))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};var ls={};d_(ls,{scaleBand:()=>Ha,scaleDiverging:()=>dc,scaleDivergingLog:()=>_v,scaleDivergingPow:()=>pc,scaleDivergingSqrt:()=>yS,scaleDivergingSymlog:()=>Iv,scaleIdentity:()=>Xu,scaleImplicit:()=>Bu,scaleLinear:()=>Gu,scaleLog:()=>Zu,scaleOrdinal:()=>Ro,scalePoint:()=>rP,scalePow:()=>rs,scaleQuantile:()=>ec,scaleQuantize:()=>tc,scaleRadial:()=>Qu,scaleSequential:()=>lc,scaleSequentialLog:()=>Ev,scaleSequentialPow:()=>uc,scaleSequentialQuantile:()=>cc,scaleSequentialSqrt:()=>hS,scaleSequentialSymlog:()=>Cv,scaleSqrt:()=>BP,scaleSymlog:()=>Ju,scaleThreshold:()=>rc,scaleTime:()=>Av,scaleUtc:()=>Ov,tickFormat:()=>Za});function St(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Xm(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bi(e){let t,r,n;e.length!==2?(t=St,r=(s,l)=>St(e(s),l),n=(s,l)=>e(s)-l):(t=e===St||e===Xm?e:Dj,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{let f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{let f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){let f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:a,right:o}}function Dj(){return 0}function Va(e){return e===null?NaN:+e}function*Xw(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var Zw=bi(St),Jw=Zw.right,Mj=Zw.left,Nj=bi(Va).center,gr=Jw;var Io=class extends Map{constructor(t,r=Bj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(Qw(this,t))}has(t){return super.has(Qw(this,t))}set(t,r){return super.set(jj(this,t),r)}delete(t){return super.delete(Lj(this,t))}};function Qw({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function jj({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Lj({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Bj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function eP(e=St){if(e===St)return Zm;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Zm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var zj=Math.sqrt(50),Fj=Math.sqrt(10),Wj=Math.sqrt(2);function ku(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=zj?10:o>=Fj?5:o>=Wj?2:1,s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?ku(e,t,r*2):[s,l,u]}function xi(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let n=t<e,[i,o,a]=n?ku(t,e,r):ku(e,t,r);if(!(o>=i))return[];let s=o-i+1,l=new Array(s);if(n)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function Ka(e,t,r){return t=+t,e=+e,r=+r,ku(e,t,r)[2]}function To(e,t,r){t=+t,e=+e,r=+r;let n=t<e,i=n?Ka(t,e,r):Ka(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Du(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Mu(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function Nu(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Zm:eP(i);n>r;){if(n-r>600){let l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+d)),m=Math.min(n,Math.floor(t+(l-u)*f/l+d));Nu(e,t,p,m,i)}let o=e[t],a=r,s=n;for($a(e,r,t),i(e[n],o)>0&&$a(e,r,n);a<s;){for($a(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?$a(e,r,s):(++s,$a(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function $a(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function ju(e,t,r){if(e=Float64Array.from(Xw(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Mu(e);if(t>=1)return Du(e);var n,i=(n-1)*t,o=Math.floor(i),a=Du(Nu(e,o).subarray(0,o+1)),s=Mu(e.subarray(o+1));return a+(s-a)*(i-o)}}function Jm(e,t,r=Va){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function Lu(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function ke(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function or(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}var Bu=Symbol("implicit");function Ro(){var e=new Io,t=[],r=[],n=Bu;function i(o){let a=e.get(o);if(a===void 0){if(n!==Bu)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Io;for(let a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return Ro(t,r).unknown(n)},ke.apply(i,arguments),i}function Ha(){var e=Ro().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<n,m=p?i:n,v=p?n:i;o=(v-m)/Math.max(1,d-l+u*2),s&&(o=Math.floor(o)),m+=(v-m-o*(d-l))*c,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var y=Lu(d).map(function(h){return m+o*h});return r(p?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Ha(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},ke.apply(f(),arguments)}function tP(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return tP(t())},e}function rP(){return tP(Ha.apply(null,arguments).paddingInner(1))}function zu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Qm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ya(){}var qa=.7,Vu=1/qa,ko="\\s*([+-]?\\d+)\\s*",Ua="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vj=/^#([0-9a-f]{3,8})$/,Kj=new RegExp(`^rgb\\(${ko},${ko},${ko}\\)$`),$j=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),Hj=new RegExp(`^rgba\\(${ko},${ko},${ko},${Ua}\\)$`),qj=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${Ua}\\)$`),Uj=new RegExp(`^hsl\\(${Ua},${Cr},${Cr}\\)$`),Yj=new RegExp(`^hsla\\(${Ua},${Cr},${Cr},${Ua}\\)$`),nP={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};zu(Ya,gn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iP,formatHex:iP,formatHex8:Gj,formatHsl:Xj,formatRgb:oP,toString:oP});function iP(){return this.rgb().formatHex()}function Gj(){return this.rgb().formatHex8()}function Xj(){return fP(this).formatHsl()}function oP(){return this.rgb().formatRgb()}function gn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?aP(t):r===3?new Rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Kj.exec(e))?new Rt(t[1],t[2],t[3],1):(t=$j.exec(e))?new Rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Hj.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=qj.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Uj.exec(e))?uP(t[1],t[2]/100,t[3]/100,1):(t=Yj.exec(e))?uP(t[1],t[2]/100,t[3]/100,t[4]):nP.hasOwnProperty(e)?aP(nP[e]):e==="transparent"?new Rt(NaN,NaN,NaN,0):null}function aP(e){return new Rt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rt(e,t,r,n)}function Zj(e){return e instanceof Ya||(e=gn(e)),e?(e=e.rgb(),new Rt(e.r,e.g,e.b,e.opacity)):new Rt}function Do(e,t,r,n){return arguments.length===1?Zj(e):new Rt(e,t,r,n==null?1:n)}function Rt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}zu(Rt,Do,Qm(Ya,{brighter(e){return e=e==null?Vu:Math.pow(Vu,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qa:Math.pow(qa,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rt(Pi(this.r),Pi(this.g),Pi(this.b),Ku(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sP,formatHex:sP,formatHex8:Jj,formatRgb:lP,toString:lP}));function sP(){return`#${wi(this.r)}${wi(this.g)}${wi(this.b)}`}function Jj(){return`#${wi(this.r)}${wi(this.g)}${wi(this.b)}${wi((isNaN(this.opacity)?1:this.opacity)*255)}`}function lP(){let e=Ku(this.opacity);return`${e===1?"rgb(":"rgba("}${Pi(this.r)}, ${Pi(this.g)}, ${Pi(this.b)}${e===1?")":`, ${e})`}`}function Ku(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wi(e){return e=Pi(e),(e<16?"0":"")+e.toString(16)}function uP(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new br(e,t,r,n)}function fP(e){if(e instanceof br)return new br(e.h,e.s,e.l,e.opacity);if(e instanceof Ya||(e=gn(e)),!e)return new br;if(e instanceof br)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new br(a,s,l,e.opacity)}function dP(e,t,r,n){return arguments.length===1?fP(e):new br(e,t,r,n==null?1:n)}function br(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}zu(br,dP,Qm(Ya,{brighter(e){return e=e==null?Vu:Math.pow(Vu,e),new br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qa:Math.pow(qa,e),new br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Rt(ev(e>=240?e-240:e+120,i,n),ev(e,i,n),ev(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new br(cP(this.h),Wu(this.s),Wu(this.l),Ku(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Ku(this.opacity);return`${e===1?"hsl(":"hsla("}${cP(this.h)}, ${Wu(this.s)*100}%, ${Wu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cP(e){return e=(e||0)%360,e<0?e+360:e}function Wu(e){return Math.max(0,Math.min(1,e||0))}function ev(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function tv(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function pP(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=n<t-1?e[n+2]:2*o-i;return tv((r-n/t)*t,a,i,o,s)}}function mP(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],s=e[(n+2)%t];return tv((r-n/t)*t,i,o,a,s)}}var Ga=e=>()=>e;function Qj(e,t){return function(r){return e+r*t}}function eL(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function vP(e){return(e=+e)==1?$u:function(t,r){return r-t?eL(t,r,e):Ga(isNaN(t)?r:t)}}function $u(e,t){var r=t-e;return r?Qj(e,r):Ga(isNaN(e)?t:e)}var rv=(function e(t){var r=vP(t);function n(i,o){var a=r((i=Do(i)).r,(o=Do(o)).r),s=r(i.g,o.g),l=r(i.b,o.b),u=$u(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function hP(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),o=new Array(r),a,s;for(a=0;a<r;++a)s=Do(t[a]),n[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return n=e(n),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=n(l),s.g=i(l),s.b=o(l),s+""}}}var EJ=hP(pP),CJ=hP(mP);function yP(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function gP(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bP(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=Vt(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function xP(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function bn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function wP(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Vt(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var iv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nv=new RegExp(iv.source,"g");function tL(e){return function(){return e}}function rL(e){return function(t){return e(t)+""}}function PP(e,t){var r=iv.lastIndex=nv.lastIndex=0,n,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=iv.exec(e))&&(i=nv.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:bn(n,i)})),r=nv.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?rL(l[0].x):tL(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function Vt(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ga(t):(r==="number"?bn:r==="string"?(n=gn(t))?(t=n,rv):PP:t instanceof gn?rv:t instanceof Date?xP:gP(t)?yP:Array.isArray(t)?bP:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wP:bn)(e,t)}function Si(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Hu(e,t){t===void 0&&(t=e,e=Vt);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function ov(e){return function(){return e}}function xn(e){return+e}var SP=[0,1];function Xe(e){return e}function av(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:ov(isNaN(t)?NaN:.5)}function nL(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function iL(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=av(i,n),o=r(a,o)):(n=av(n,i),o=r(o,a)),function(s){return o(n(s))}}function oL(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=av(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var l=gr(e,s,1,n)-1;return o[l](i[l](s))}}function _r(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ai(){var e=SP,t=SP,r=Vt,n,i,o,a=Xe,s,l,u;function c(){var d=Math.min(e.length,t.length);return a!==Xe&&(a=nL(e[0],e[d-1])),s=d>2?oL:iL,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return f.invert=function(d){return a(i((u||(u=s(t,e.map(n),bn)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,xn),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Si,c()},f.clamp=function(d){return arguments.length?(a=d?!0:Xe,c()):a!==Xe},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,p){return n=d,i=p,c()}}function Oi(){return Ai()(Xe,Xe)}function AP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ei(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ir(e){return e=Ei(Math.abs(e)),e?e[1]:NaN}function OP(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function EP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var aL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tr(e){if(!(t=aL.exec(e)))throw new Error("invalid format: "+e);var t;return new qu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tr.prototype=qu.prototype;function qu(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}qu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function CP(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Xa;function _P(e,t){var r=Ei(e,t);if(!r)return Xa=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(Xa=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ei(e,Math.max(0,t+o-1))[0]}function sv(e,t){var r=Ei(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var lv={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:AP,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sv(e*100,t),r:sv,s:_P,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uv(e){return e}var IP=Array.prototype.map,TP=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function RP(e){var t=e.grouping===void 0||e.thousands===void 0?uv:OP(IP.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?uv:EP(IP.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=Tr(f);var p=f.fill,m=f.align,v=f.sign,y=f.symbol,h=f.zero,g=f.width,x=f.comma,b=f.precision,P=f.trim,w=f.type;w==="n"?(x=!0,w="g"):lv[w]||(b===void 0&&(b=12),P=!0,w="g"),(h||p==="0"&&m==="=")&&(h=!0,p="0",m="=");var A=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),O=(y==="$"?n:/[%p]/.test(w)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),E=lv[w],I=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function T(_){var N=A,M=O,F,J,U;if(w==="c")M=E(_)+M,_="";else{_=+_;var ne=_<0||1/_<0;if(_=isNaN(_)?l:E(Math.abs(_),b),P&&(_=CP(_)),ne&&+_==0&&v!=="+"&&(ne=!1),N=(ne?v==="("?v:s:v==="-"||v==="("?"":v)+N,M=(w==="s"&&!isNaN(_)&&Xa!==void 0?TP[8+Xa/3]:"")+M+(ne&&v==="("?")":""),I){for(F=-1,J=_.length;++F<J;)if(U=_.charCodeAt(F),48>U||U>57){M=(U===46?i+_.slice(F+1):_.slice(F))+M,_=_.slice(0,F);break}}}x&&!h&&(_=t(_,1/0));var K=N.length+_.length+M.length,te=K<g?new Array(g-K+1).join(p):"";switch(x&&h&&(_=t(te+_,te.length?g-M.length:1/0),te=""),m){case"<":_=N+_+M+te;break;case"=":_=N+te+_+M;break;case"^":_=te.slice(0,K=te.length>>1)+N+_+M+te.slice(K);break;default:_=te+N+_+M;break}return o(_)}return T.toString=function(){return f+""},T}function c(f,d){var p=Math.max(-8,Math.min(8,Math.floor(Ir(d)/3)))*3,m=Math.pow(10,-p),v=u((f=Tr(f),f.type="f",f),{suffix:TP[8+p/3]});return function(y){return v(m*y)}}return{format:u,formatPrefix:c}}var Uu,Mo,Yu;cv({thousands:",",grouping:[3],currency:["$",""]});function cv(e){return Uu=RP(e),Mo=Uu.format,Yu=Uu.formatPrefix,Uu}function fv(e){return Math.max(0,-Ir(Math.abs(e)))}function dv(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ir(t)/3)))*3-Ir(Math.abs(e)))}function pv(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ir(t)-Ir(e))+1}function Za(e,t,r,n){var i=To(e,t,r),o;switch(n=Tr(n==null?",f":n),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=dv(i,a))&&(n.precision=o),Yu(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=pv(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=fv(i))&&(n.precision=o-(n.type==="%")*2);break}}return Mo(n)}function At(e){var t=e.domain;return e.ticks=function(r){var n=t();return xi(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var i=t();return Za(i[0],i[i.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],l,u,c=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);c-- >0;){if(u=Ka(a,s,r),u===l)return n[i]=a,n[o]=s,t(n);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Gu(){var e=Oi();return e.copy=function(){return _r(e,Gu())},ke.apply(e,arguments),At(e)}function Xu(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,xn),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Xu(e).unknown(t)},e=arguments.length?Array.from(e,xn):[0,1],At(r)}function Ja(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function kP(e){return Math.log(e)}function DP(e){return Math.exp(e)}function sL(e){return-Math.log(-e)}function lL(e){return-Math.exp(-e)}function uL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function cL(e){return e===10?uL:e===Math.E?Math.exp:t=>Math.pow(e,t)}function fL(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function MP(e){return(t,r)=>-e(-t,r)}function Qa(e){let t=e(kP,DP),r=t.domain,n=10,i,o;function a(){return i=fL(n),o=cL(n),r()[0]<0?(i=MP(i),o=MP(o),e(sL,lL)):e(kP,DP),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{let l=r(),u=l[0],c=l[l.length-1],f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),m,v,y=s==null?10:+s,h=[];if(!(n%1)&&p-d<y){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<n;++m)if(v=d<0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}h.length*2<y&&(h=xi(u,c,y))}else h=xi(d,p,Math.min(p-d,y)).map(o);return f?h.reverse():h},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Tr(l)).precision==null&&(l.trim=!0),l=Mo(l)),s===1/0)return l;let u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(Ja(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Zu(){let e=Qa(Ai()).domain([1,10]);return e.copy=()=>_r(e,Zu()).base(e.base()),ke.apply(e,arguments),e}function NP(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function jP(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function es(e){var t=1,r=e(NP(t),jP(t));return r.constant=function(n){return arguments.length?e(NP(t=+n),jP(t)):t},At(r)}function Ju(){var e=es(Ai());return e.copy=function(){return _r(e,Ju()).constant(e.constant())},ke.apply(e,arguments)}function LP(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dL(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pL(e){return e<0?-e*e:e*e}function ts(e){var t=e(Xe,Xe),r=1;function n(){return r===1?e(Xe,Xe):r===.5?e(dL,pL):e(LP(r),LP(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},At(t)}function rs(){var e=ts(Ai());return e.copy=function(){return _r(e,rs()).exponent(e.exponent())},ke.apply(e,arguments),e}function BP(){return rs.apply(null,arguments).exponent(.5)}function zP(e){return Math.sign(e)*e*e}function mL(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Qu(){var e=Oi(),t=[0,1],r=!1,n;function i(o){var a=mL(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(zP(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,xn)).map(zP)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return Qu(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ke.apply(i,arguments),At(i)}function ec(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=Jm(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[gr(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(St),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return ec().domain(e).range(t).unknown(n)},ke.apply(o,arguments)}function tc(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[gr(n,l,0,r)]:o}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return tc().domain([e,t]).range(i).unknown(o)},ke.apply(At(a),arguments)}function rc(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[gr(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return rc().domain(e).range(t).unknown(r)},ke.apply(i,arguments)}var mv=new Date,vv=new Date;function Pe(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{let a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{let l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>Pe(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(mv.setTime(+o),vv.setTime(+a),e(mv),e(vv),Math.floor(r(mv,vv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}var ns=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ns);var Lee=ns.range;var ar=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),FP=ar.range;var No=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),vL=No.range,jo=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),hL=jo.range;var Lo=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),yL=Lo.range,Bo=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),gL=Bo.range;var Ur=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),bL=Ur.range,Ii=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),xL=Ii.range,nc=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),wL=nc.range;function Ti(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var Yr=Ti(0),zo=Ti(1),VP=Ti(2),KP=Ti(3),wn=Ti(4),$P=Ti(5),HP=Ti(6),qP=Yr.range,PL=zo.range,SL=VP.range,AL=KP.range,OL=wn.range,EL=$P.range,CL=HP.range;function Ri(e){return Pe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Gr=Ri(0),Fo=Ri(1),UP=Ri(2),YP=Ri(3),Pn=Ri(4),GP=Ri(5),XP=Ri(6),ZP=Gr.range,_L=Fo.range,IL=UP.range,TL=YP.range,RL=Pn.range,kL=GP.range,DL=XP.range;var Wo=Pe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),ML=Wo.range,Vo=Pe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),NL=Vo.range;var Kt=Pe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var jL=Kt.range,$t=Pe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());$t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var LL=$t.range;function QP(e,t,r,n,i,o){let a=[[ar,1,1e3],[ar,5,5*1e3],[ar,15,15*1e3],[ar,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(u,c,f){let d=c<u;d&&([u,c]=[c,u]);let p=f&&typeof f.range=="function"?f:l(u,c,f),m=p?p.range(u,+c+1):[];return d?m.reverse():m}function l(u,c,f){let d=Math.abs(c-u)/f,p=bi(([,,y])=>y).right(a,d);if(p===a.length)return e.every(To(u/31536e6,c/31536e6,f));if(p===0)return ns.every(Math.max(To(u,c,f),1));let[m,v]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(v)}return[s,l]}var[hv,yv]=QP($t,Vo,Gr,nc,Bo,jo),[gv,bv]=QP(Kt,Wo,Yr,Ur,Lo,No);function xv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function wv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function os(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Pv(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=as(i),c=ss(i),f=as(o),d=ss(o),p=as(a),m=ss(a),v=as(s),y=ss(s),h=as(l),g=ss(l),x={a:U,A:ne,b:K,B:te,c:null,d:oS,e:oS,f:s2,g:y2,G:b2,H:i2,I:o2,j:a2,L:cS,m:l2,M:u2,p:Be,q:Se,Q:lS,s:uS,S:c2,u:f2,U:d2,V:p2,w:m2,W:v2,x:null,X:null,y:h2,Y:g2,Z:x2,"%":sS},b={a:gt,A:lt,b:pr,B:Un,c:null,d:aS,e:aS,f:A2,g:M2,G:j2,H:w2,I:P2,j:S2,L:dS,m:O2,M:E2,p:Yn,q:ut,Q:lS,s:uS,S:C2,u:_2,U:I2,V:T2,w:R2,W:k2,x:null,X:null,y:D2,Y:N2,Z:L2,"%":sS},P={a:I,A:T,b:_,B:N,c:M,d:nS,e:nS,f:e2,g:rS,G:tS,H:iS,I:iS,j:XL,L:QL,m:GL,M:ZL,p:E,q:YL,Q:r2,s:n2,S:JL,u:KL,U:$L,V:HL,w:VL,W:qL,x:F,X:J,y:rS,Y:tS,Z:UL,"%":t2};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),b.x=w(r,b),b.X=w(n,b),b.c=w(t,b);function w(B,j){return function(ae){var C=[],Je=-1,fe=0,ct=B.length,Dt,Gn,jy;for(ae instanceof Date||(ae=new Date(+ae));++Je<ct;)B.charCodeAt(Je)===37&&(C.push(B.slice(fe,Je)),(Gn=eS[Dt=B.charAt(++Je)])!=null?Dt=B.charAt(++Je):Gn=Dt==="e"?" ":"0",(jy=j[Dt])&&(Dt=jy(ae,Gn)),C.push(Dt),fe=Je+1);return C.push(B.slice(fe,Je)),C.join("")}}function A(B,j){return function(ae){var C=os(1900,void 0,1),Je=O(C,B,ae+="",0),fe,ct;if(Je!=ae.length)return null;if("Q"in C)return new Date(C.Q);if("s"in C)return new Date(C.s*1e3+("L"in C?C.L:0));if(j&&!("Z"in C)&&(C.Z=0),"p"in C&&(C.H=C.H%12+C.p*12),C.m===void 0&&(C.m="q"in C?C.q:0),"V"in C){if(C.V<1||C.V>53)return null;"w"in C||(C.w=1),"Z"in C?(fe=wv(os(C.y,0,1)),ct=fe.getUTCDay(),fe=ct>4||ct===0?Fo.ceil(fe):Fo(fe),fe=Ii.offset(fe,(C.V-1)*7),C.y=fe.getUTCFullYear(),C.m=fe.getUTCMonth(),C.d=fe.getUTCDate()+(C.w+6)%7):(fe=xv(os(C.y,0,1)),ct=fe.getDay(),fe=ct>4||ct===0?zo.ceil(fe):zo(fe),fe=Ur.offset(fe,(C.V-1)*7),C.y=fe.getFullYear(),C.m=fe.getMonth(),C.d=fe.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),ct="Z"in C?wv(os(C.y,0,1)).getUTCDay():xv(os(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(ct+5)%7:C.w+C.U*7-(ct+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,wv(C)):xv(C)}}function O(B,j,ae,C){for(var Je=0,fe=j.length,ct=ae.length,Dt,Gn;Je<fe;){if(C>=ct)return-1;if(Dt=j.charCodeAt(Je++),Dt===37){if(Dt=j.charAt(Je++),Gn=P[Dt in eS?j.charAt(Je++):Dt],!Gn||(C=Gn(B,ae,C))<0)return-1}else if(Dt!=ae.charCodeAt(C++))return-1}return C}function E(B,j,ae){var C=u.exec(j.slice(ae));return C?(B.p=c.get(C[0].toLowerCase()),ae+C[0].length):-1}function I(B,j,ae){var C=p.exec(j.slice(ae));return C?(B.w=m.get(C[0].toLowerCase()),ae+C[0].length):-1}function T(B,j,ae){var C=f.exec(j.slice(ae));return C?(B.w=d.get(C[0].toLowerCase()),ae+C[0].length):-1}function _(B,j,ae){var C=h.exec(j.slice(ae));return C?(B.m=g.get(C[0].toLowerCase()),ae+C[0].length):-1}function N(B,j,ae){var C=v.exec(j.slice(ae));return C?(B.m=y.get(C[0].toLowerCase()),ae+C[0].length):-1}function M(B,j,ae){return O(B,t,j,ae)}function F(B,j,ae){return O(B,r,j,ae)}function J(B,j,ae){return O(B,n,j,ae)}function U(B){return a[B.getDay()]}function ne(B){return o[B.getDay()]}function K(B){return l[B.getMonth()]}function te(B){return s[B.getMonth()]}function Be(B){return i[+(B.getHours()>=12)]}function Se(B){return 1+~~(B.getMonth()/3)}function gt(B){return a[B.getUTCDay()]}function lt(B){return o[B.getUTCDay()]}function pr(B){return l[B.getUTCMonth()]}function Un(B){return s[B.getUTCMonth()]}function Yn(B){return i[+(B.getUTCHours()>=12)]}function ut(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var j=w(B+="",x);return j.toString=function(){return B},j},parse:function(B){var j=A(B+="",!1);return j.toString=function(){return B},j},utcFormat:function(B){var j=w(B+="",b);return j.toString=function(){return B},j},utcParse:function(B){var j=A(B+="",!0);return j.toString=function(){return B},j}}}var eS={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,zL=/^%/,FL=/[\\^$*+?|[\]().{}]/g;function ce(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function WL(e){return e.replace(FL,"\\$&")}function as(e){return new RegExp("^(?:"+e.map(WL).join("|")+")","i")}function ss(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function VL(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function KL(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function $L(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function HL(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function qL(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function tS(e,t,r){var n=rt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function rS(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function UL(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function YL(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function GL(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function nS(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function XL(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function iS(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function ZL(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function JL(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function QL(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function e2(e,t,r){var n=rt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function t2(e,t,r){var n=zL.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function r2(e,t,r){var n=rt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function n2(e,t,r){var n=rt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function oS(e,t){return ce(e.getDate(),t,2)}function i2(e,t){return ce(e.getHours(),t,2)}function o2(e,t){return ce(e.getHours()%12||12,t,2)}function a2(e,t){return ce(1+Ur.count(Kt(e),e),t,3)}function cS(e,t){return ce(e.getMilliseconds(),t,3)}function s2(e,t){return cS(e,t)+"000"}function l2(e,t){return ce(e.getMonth()+1,t,2)}function u2(e,t){return ce(e.getMinutes(),t,2)}function c2(e,t){return ce(e.getSeconds(),t,2)}function f2(e){var t=e.getDay();return t===0?7:t}function d2(e,t){return ce(Yr.count(Kt(e)-1,e),t,2)}function fS(e){var t=e.getDay();return t>=4||t===0?wn(e):wn.ceil(e)}function p2(e,t){return e=fS(e),ce(wn.count(Kt(e),e)+(Kt(e).getDay()===4),t,2)}function m2(e){return e.getDay()}function v2(e,t){return ce(zo.count(Kt(e)-1,e),t,2)}function h2(e,t){return ce(e.getFullYear()%100,t,2)}function y2(e,t){return e=fS(e),ce(e.getFullYear()%100,t,2)}function g2(e,t){return ce(e.getFullYear()%1e4,t,4)}function b2(e,t){var r=e.getDay();return e=r>=4||r===0?wn(e):wn.ceil(e),ce(e.getFullYear()%1e4,t,4)}function x2(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function aS(e,t){return ce(e.getUTCDate(),t,2)}function w2(e,t){return ce(e.getUTCHours(),t,2)}function P2(e,t){return ce(e.getUTCHours()%12||12,t,2)}function S2(e,t){return ce(1+Ii.count($t(e),e),t,3)}function dS(e,t){return ce(e.getUTCMilliseconds(),t,3)}function A2(e,t){return dS(e,t)+"000"}function O2(e,t){return ce(e.getUTCMonth()+1,t,2)}function E2(e,t){return ce(e.getUTCMinutes(),t,2)}function C2(e,t){return ce(e.getUTCSeconds(),t,2)}function _2(e){var t=e.getUTCDay();return t===0?7:t}function I2(e,t){return ce(Gr.count($t(e)-1,e),t,2)}function pS(e){var t=e.getUTCDay();return t>=4||t===0?Pn(e):Pn.ceil(e)}function T2(e,t){return e=pS(e),ce(Pn.count($t(e),e)+($t(e).getUTCDay()===4),t,2)}function R2(e){return e.getUTCDay()}function k2(e,t){return ce(Fo.count($t(e)-1,e),t,2)}function D2(e,t){return ce(e.getUTCFullYear()%100,t,2)}function M2(e,t){return e=pS(e),ce(e.getUTCFullYear()%100,t,2)}function N2(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function j2(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Pn(e):Pn.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function L2(){return"+0000"}function sS(){return"%"}function lS(e){return+e}function uS(e){return Math.floor(+e/1e3)}var Ko,ic,mS,oc,vS;Sv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Sv(e){return Ko=Pv(e),ic=Ko.format,mS=Ko.parse,oc=Ko.utcFormat,vS=Ko.utcParse,Ko}function B2(e){return new Date(e)}function z2(e){return e instanceof Date?+e:+new Date(+e)}function ac(e,t,r,n,i,o,a,s,l,u){var c=Oi(),f=c.invert,d=c.domain,p=u(".%L"),m=u(":%S"),v=u("%I:%M"),y=u("%I %p"),h=u("%a %d"),g=u("%b %d"),x=u("%B"),b=u("%Y");function P(w){return(l(w)<w?p:s(w)<w?m:a(w)<w?v:o(w)<w?y:n(w)<w?i(w)<w?h:g:r(w)<w?x:b)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?d(Array.from(w,z2)):d().map(B2)},c.ticks=function(w){var A=d();return e(A[0],A[A.length-1],w==null?10:w)},c.tickFormat=function(w,A){return A==null?P:u(A)},c.nice=function(w){var A=d();return(!w||typeof w.range!="function")&&(w=t(A[0],A[A.length-1],w==null?10:w)),w?d(Ja(A,w)):c},c.copy=function(){return _r(c,ac(e,t,r,n,i,o,a,s,l,u))},c}function Av(){return ke.apply(ac(gv,bv,Kt,Wo,Yr,Ur,Lo,No,ar,ic).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ov(){return ke.apply(ac(hv,yv,$t,Vo,Gr,Ii,Bo,jo,ar,oc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sc(){var e=0,t=1,r,n,i,o,a=Xe,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:a(i===0?.5:(f=(o(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(a=f,u):a};function c(f){return function(d){var p,m;return arguments.length?([p,m]=d,a=f(p,m),u):[a(0),a(1)]}}return u.range=c(Vt),u.rangeRound=c(Si),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return o=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Xr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lc(){var e=At(sc()(Xe));return e.copy=function(){return Xr(e,lc())},or.apply(e,arguments)}function Ev(){var e=Qa(sc()).domain([1,10]);return e.copy=function(){return Xr(e,Ev()).base(e.base())},or.apply(e,arguments)}function Cv(){var e=es(sc());return e.copy=function(){return Xr(e,Cv()).constant(e.constant())},or.apply(e,arguments)}function uc(){var e=ts(sc());return e.copy=function(){return Xr(e,uc()).exponent(e.exponent())},or.apply(e,arguments)}function hS(){return uc.apply(null,arguments).exponent(.5)}function cc(){var e=[],t=Xe;function r(n){if(n!=null&&!isNaN(n=+n))return t((gr(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(St),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>ju(e,o/n))},r.copy=function(){return cc(t).domain(e)},or.apply(r,arguments)}function fc(){var e=0,t=.5,r=1,n=1,i,o,a,s,l,u=Xe,c,f=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-o)*(n*v<n*o?s:l),u(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=c(e=+e),o=c(t=+t),a=c(r=+r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(u=v,p):u};function m(v){return function(y){var h,g,x;return arguments.length?([h,g,x]=y,u=Hu(v,[h,g,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Vt),p.rangeRound=m(Si),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return c=v,i=v(e),o=v(t),a=v(r),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),n=o<i?-1:1,p}}function dc(){var e=At(fc()(Xe));return e.copy=function(){return Xr(e,dc())},or.apply(e,arguments)}function _v(){var e=Qa(fc()).domain([.1,1,10]);return e.copy=function(){return Xr(e,_v()).base(e.base())},or.apply(e,arguments)}function Iv(){var e=es(fc());return e.copy=function(){return Xr(e,Iv()).constant(e.constant())},or.apply(e,arguments)}function pc(){var e=ts(fc());return e.copy=function(){return Xr(e,pc()).exponent(e.exponent())},or.apply(e,arguments)}function yS(){return pc.apply(null,arguments).exponent(.5)}function F2(e){var t=ls;if(e in t&&typeof t[e]=="function")return t[e]();var r="scale".concat(Fr(e));if(r in t&&typeof t[r]=="function")return t[r]()}function gS(e,t,r){if(typeof e=="function")return e.copy().domain(t).range(r);if(e!=null){var n=F2(e);if(n!=null)return n.domain(t).range(r),n}}function us(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?gS(e.scale,r,n):gS(t,r,n)}function W2(e){return"scale".concat(Fr(e))}function V2(e){return W2(e)in ls}var mc=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string")return V2(n)?n:"point"}};function K2(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var o=Math.floor((r+n)/2);(i?e[o]<t:e[o]>t)?r=o+1:n=o}return r}function vc(e,t){if(e){var r=t!=null?t:e.domain(),n=r.map(o=>{var a;return(a=e(o))!==null&&a!==void 0?a:0}),i=e.range();if(!(r.length===0||i.length<2))return o=>{var a,s,l=K2(n,o);if(l<=0)return r[0];if(l>=r.length)return r[r.length-1];var u=(a=n[l-1])!==null&&a!==void 0?a:0,c=(s=n[l])!==null&&s!==void 0?s:0;return Math.abs(o-u)<=Math.abs(o-c)?r[l-1]:r[l]}}}function bS(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):vc(e,void 0)}function xS(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 hc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(r),!0).forEach(function(n){$2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $2(e,t,r){return(t=H2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H2(e){var t=q2(e,"string");return typeof t=="symbol"?t:t+""}function q2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tv=[0,"auto"],$e={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},kv=(e,t)=>e.cartesianAxis.xAxis[t],Dr=(e,t)=>{var r=kv(e,t);return r==null?$e:r},He={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Tv,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:ii},Dv=(e,t)=>e.cartesianAxis.yAxis[t],Mr=(e,t)=>{var r=Dv(e,t);return r==null?He:r},U2={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Mv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r==null?U2:r},Le=(e,t,r)=>{switch(t){case"xAxis":return Dr(e,r);case"yAxis":return Mr(e,r);case"zAxis":return Mv(e,r);case"angleAxis":return Eu(e,r);case"radiusAxis":return Cu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Y2=(e,t,r)=>{switch(t){case"xAxis":return Dr(e,r);case"yAxis":return Mr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},ki=(e,t,r)=>{switch(t){case"xAxis":return Dr(e,r);case"yAxis":return Mr(e,r);case"angleAxis":return Eu(e,r);case"radiusAxis":return Cu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Nv=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function fs(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Sn=e=>e.graphicalItems.cartesianItems,G2=S([_e,yi],fs),ds=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Ho=S([Sn,Le,G2],ds,{memoizeOptions:{resultEqualityCheck:_o}}),PS=S([Ho],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(gi)),jv=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),X2=S([Ho],jv),ps=e=>e.map(t=>t.data).filter(Boolean).flat(1),Z2=S([Ho],e=>e.some(t=>!t.data)),SS=S([Ho],ps,{memoizeOptions:{resultEqualityCheck:_o}}),ms=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Lv=S([SS,fi],ms),Bv=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Y(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Y(i,n)}))):e.map(n=>({value:n})),zv=(e,t,r,n,i,o)=>{var{chartData:a=[],dataStartIndex:s,dataEndIndex:l}=n,u=Bv(e,t,r);if(i&&(t==null?void 0:t.dataKey)!=null&&o.length>0){var c=a.slice(s,l+1),f=c.map(d=>({value:Y(d,t.dataKey)})).filter(d=>d.value!=null);return[...f,...u]}return u},vs=S([Lv,Le,Ho,fi,Z2,SS],zv);function $o(e){if(bt(e)||e instanceof Date){var t=Number(e);if(V(t))return t}}function wS(e){if(Array.isArray(e)){var t=[$o(e[0]),$o(e[1])];return Ft(t)?t:void 0}var r=$o(e);if(r!=null)return[r,r]}function kr(e){return e.map($o).filter(ot)}function J2(e,t){var r=$o(e),n=$o(t);return r==null&&n==null?0:r==null?-1:n==null?1:r-n}var Q2=S([vs],e=>e==null?void 0:e.map(t=>t.value).sort(J2));function AS(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function eB(e,t,r){if(!r)return[];if(!r.length)return[];var n;if(typeof t=="number"&&!et(t))n=t;else if(Array.isArray(t)){var i=kr(t);i.length>0&&(n=Math.max(...i))}return n==null?[]:kr(r.flatMap(o=>{var a=Y(e,o.dataKey),s,l;if(Array.isArray(a)?[s,l]=a:s=l=a,!(!V(s)||!V(l)))return[n-s,n+l]}))}var qe=e=>{var t=Ke(e),r=yn(e);return ki(e,t,r)},Zr=S([qe],e=>e==null?void 0:e.dataKey),tB=S([PS,fi,qe],Tu),Fv=(e,t,r,n)=>{var i={},o=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},i);return Object.fromEntries(Object.entries(o).map(a=>{var[s,l]=a,u=n?[...l].reverse():l,c=u.map(hn);return[s,{stackedData:Ix(e,c,r),graphicalItems:u}]}))},qo=S([tB,PS,mn,Pu],Fv),Wv=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(n==null&&r!=="zAxis"){var a=Rx(e,i,o);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},rB=S([Le],e=>e.allowDataOverflow),yc=e=>{var t;if(e==null||!("domain"in e))return Tv;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=kr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Tv},gc=S([Le],yc),bc=S([gc,rB],yu),nB=S([qo,Tt,_e,bc],Wv,{memoizeOptions:{resultEqualityCheck:Co}}),Uo=e=>e.errorBars,iB=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>AS(r,n)),cs=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var o=i.flat(),a=Math.min(...o),s=Math.max(...o);return[a,s]}},hs=function(t,r,n,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s,l;if(n.length>0&&n.forEach(u=>{var c,f=u.data!=null?[...u.data]:a,d=(c=i[u.id])===null||c===void 0?void 0:c.filter(p=>AS(o,p));f.forEach(p=>{var m,v=Y(p,(m=r.dataKey)!==null&&m!==void 0?m:u.dataKey),y=eB(p,v,d);if(y.length>=2){var h=Math.min(...y),g=Math.max(...y);(s==null||h<s)&&(s=h),(l==null||g>l)&&(l=g)}var x=wS(v);x!=null&&(s=s==null?x[0]:Math.min(s,x[0]),l=l==null?x[1]:Math.max(l,x[1]))})}),(r==null?void 0:r.dataKey)!=null&&n.length===0&&t.forEach(u=>{var c=wS(Y(u,r.dataKey));c!=null&&(s=s==null?c[0]:Math.min(s,c[0]),l=l==null?c[1]:Math.max(l,c[1]))}),V(s)&&V(l))return[s,l]},oB=S([Lv,Le,X2,Uo,_e,Ew],hs,{memoizeOptions:{resultEqualityCheck:Co}});function aB(e){var{value:t}=e;if(bt(t)||t instanceof Date)return t}var sB=(e,t,r)=>{var n=e.map(aB).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&zd(n))?(0,Rv.default)(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Vv=e=>e.referenceElements.dots,Di=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),lB=S([Vv,_e,yi],Di),Kv=e=>e.referenceElements.areas,uB=S([Kv,_e,yi],Di),$v=e=>e.referenceElements.lines,cB=S([$v,_e,yi],Di),Hv=(e,t)=>{if(e!=null){var r=kr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},fB=S(lB,_e,Hv),qv=(e,t)=>{if(e!=null){var r=kr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},dB=S([uB,_e],qv);function pB(e){var t;if(e.x!=null)return kr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:kr(r)}function mB(e){var t;if(e.y!=null)return kr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:kr(r)}var Uv=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?pB(n):mB(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},vB=S([cB,_e],Uv),hB=S(fB,vB,dB,(e,t,r)=>cs(e,r,t)),ys=(e,t,r,n,i,o,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",u=l?cs(n,o,i):cs(o,i);return Tw(t,u,e.allowDataOverflow)},yB=S([Le,gc,bc,nB,oB,hB,q,_e],ys,{memoizeOptions:{resultEqualityCheck:Co}}),gB=[0,1],gs=(e,t,r,n,i,o,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,u=dt(t,o);if(u&&s==null){var c;return(0,Rv.default)(0,(c=r==null?void 0:r.length)!==null&&c!==void 0?c:0)}return l==="category"?sB(n,e,u):i==="expand"&&!u?gB:a}},Yv=S([Le,q,Lv,vs,mn,_e,yB],gs),Jr=S([Le,Nv,Eo],mc),bs=(e,t,r)=>{var{niceTicks:n}=t;if(n!=="none"){var i=yc(t),o=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((n==="snap125"||n==="adaptive")&&t!=null&&t.tickCount&&Ft(e)){if(o)return bu(e,t.tickCount,t.allowDecimals,n);if(t.type==="number")return xu(e,t.tickCount,t.allowDecimals,n)}if(n==="auto"&&r==="linear"&&t!=null&&t.tickCount){if(o&&Ft(e))return bu(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Ft(e))return xu(e,t.tickCount,t.allowDecimals,"adaptive")}}},Gv=S([Yv,ki,Jr],bs),xs=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Ft(t)&&Array.isArray(r)&&r.length>0){var i,o,a=t[0],s=(i=r[0])!==null&&i!==void 0?i:0,l=t[1],u=(o=r[r.length-1])!==null&&o!==void 0?o:0;return[Math.min(a,s),Math.max(l,u)]}return t},bB=S([Le,Yv,Gv,_e],xs),xB=S(vs,Le,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(kr(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],o=n[n.length-1];if(i==null||o==null)return 1/0;var a=o-i;if(a===0)return 1/0;for(var s=0;s<n.length-1;s++){var l=n[s],u=n[s+1];if(!(l==null||u==null)){var c=u-l;r=Math.min(r,c)}}return r/a}}),OS=S(xB,q,wu,ve,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!V(e))return 0;var o=t==="vertical"?n.height:n.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var a=je(r,e*o),s=e*o/2;return s-a-(s-a)/o*a}return 0}),wB=(e,t,r)=>{var n=Dr(e,t);return n==null||typeof n.padding!="string"?0:OS(e,"xAxis",t,r,n.padding)},PB=(e,t,r)=>{var n=Mr(e,t);return n==null||typeof n.padding!="string"?0:OS(e,"yAxis",t,r,n.padding)},SB=S(Dr,wB,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),AB=S(Mr,PB,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),OB=S([ve,SB,oi,vo,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:o}=n;return i?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),EB=S([ve,q,AB,oi,vo,(e,t,r)=>r],(e,t,r,n,i,o)=>{var{padding:a}=i;return o?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Yo=(e,t,r,n)=>{var i;switch(t){case"xAxis":return OB(e,r,n);case"yAxis":return EB(e,r,n);case"zAxis":return(i=Mv(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return Ym(e);case"radiusAxis":return Gm(e,r);default:return}},ES=S([Le,Yo],vi),CB=S([Jr,bB],Ru),Xv=S([Le,Jr,CB,ES],us),Zv=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:o}=r,a=dt(e,n);if(a&&(i==="number"||o!=="auto"))return t.map(s=>s.value)}},Jv=S([q,vs,ki,_e],Zv),xc=S([Xv],Wa),one=S([Xv],bS),ane=S([Xv,Q2],vc),sne=S([Ho,Uo,_e],iB);function CS(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var wc=(e,t)=>t,Pc=(e,t,r)=>r,_B=S(fo,wc,Pc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(CS)),IB=S(po,wc,Pc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(CS)),_S=(e,t)=>({width:e.width,height:t.height}),TB=(e,t)=>{var r=typeof t.width=="number"?t.width:ii;return{width:r,height:e.height}},Qv=S(ve,Dr,_S),RB=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},kB=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},DB=S(mt,ve,_B,wc,Pc,(e,t,r,n,i)=>{var o={},a;return r.forEach(s=>{var l=_S(t,s);a==null&&(a=RB(t,n,e));var u=n==="top"&&!i||n==="bottom"&&i;o[s.id]=a-Number(u)*l.height,a+=(u?-1:1)*l.height}),o}),MB=S(pt,ve,IB,wc,Pc,(e,t,r,n,i)=>{var o={},a;return r.forEach(s=>{var l=TB(t,s);a==null&&(a=kB(t,n,e));var u=n==="left"&&!i||n==="right"&&i;o[s.id]=a-Number(u)*l.width,a+=(u?-1:1)*l.width}),o}),NB=(e,t)=>{var r=Dr(e,t);if(r!=null)return DB(e,r.orientation,r.mirror)},IS=S([ve,Dr,NB,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),jB=(e,t)=>{var r=Mr(e,t);if(r!=null)return MB(e,r.orientation,r.mirror)},TS=S([ve,Mr,jB,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),eh=S(ve,Mr,(e,t)=>{var r=typeof t.width=="number"?t.width:ii;return{width:r,height:e.height}}),th=(e,t,r)=>{switch(t){case"xAxis":return Qv(e,r).width;case"yAxis":return eh(e,r).height;default:return}},rh=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:o,dataKey:a}=r,s=dt(e,n),l=t.map(c=>c.value),u=l.filter(c=>c!=null);if(a&&s&&o==="category"&&i&&zd(u))return l}},nh=S([q,vs,Le,_e],rh),ih=S([q,Y2,Jr,xc,nh,Jv,Yo,Gv,_e],(e,t,r,n,i,o,a,s,l)=>{if(t!=null){var u=dt(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:o,duplicateDomain:i,isCategorical:u,niceTicks:s,range:a,realScaleType:r,scale:n}}}),LB=(e,t,r,n,i,o,a,s,l)=>{if(!(t==null||n==null)){var u=dt(e,l),{type:c,ticks:f,tickCount:d}=t,p=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,m=c==="category"&&n.bandwidth?n.bandwidth()/p:0;m=l==="angleAxis"&&o!=null&&o.length>=2?xe(o[0]-o[1])*2*m:m;var v=f||i;return v?v.map((y,h)=>{var g=a?a.indexOf(y):y,x=n.map(g);return V(x)?{index:h,coordinate:x+m,value:y,offset:m}:null}).filter(ot):u&&s?s.map((y,h)=>{var g=n.map(y);return V(g)?{coordinate:g+m,value:y,index:h,offset:m}:null}).filter(ot):n.ticks?n.ticks(d).map((y,h)=>{var g=n.map(y);return V(g)?{coordinate:g+m,value:y,index:h,offset:m}:null}).filter(ot):n.domain().map((y,h)=>{var g=n.map(y);return V(g)?{coordinate:g+m,value:a?a[y]:y,index:h,offset:m}:null}).filter(ot)}},Sc=S([q,ki,Jr,xc,Gv,Yo,nh,Jv,_e],LB),BB=(e,t,r,n,i,o,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=dt(e,a),{tickCount:l}=t,u=0;return u=a==="angleAxis"&&(n==null?void 0:n.length)>=2?xe(n[0]-n[1])*2*u:u,s&&o?o.map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+u,value:c,index:f,offset:u}:null}).filter(ot):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+u,value:c,index:f,offset:u}:null}).filter(ot):r.domain().map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+u,value:i?i[c]:c,index:f,offset:u}:null}).filter(ot)}},Ht=S([q,ki,xc,Yo,nh,Jv,_e],BB),qt=S(Le,xc,(e,t)=>{if(!(e==null||t==null))return hc(hc({},e),{},{scale:t})}),zB=S([Le,Jr,Yv,ES],us),FB=S([zB],Wa),lne=S((e,t,r)=>Mv(e,r),FB,(e,t)=>{if(!(e==null||t==null))return hc(hc({},e),{},{scale:t})}),RS=S([q,fo,po],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),WB=(e,t,r)=>{var n;return(n=e.renderedTicks[t])===null||n===void 0?void 0:n[r]},une=S([WB],e=>{if(!(!e||e.length===0))return t=>{var r,n=1/0,i=e[0];for(var o of e){var a=Math.abs(o.coordinate-t);a<n&&(n=a,i=o)}return(r=i)===null||r===void 0?void 0:r.value}});var oh=e=>e.options.defaultTooltipEventType,ah=e=>e.options.validateTooltipEventTypes;function sh(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function An(e,t){var r=oh(e),n=ah(e);return sh(t,r,n)}function kS(e){return k(t=>An(t,e))}var Ac=(e,t)=>{var r,n=Number(t);if(!(et(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0};var DS=e=>e.tooltip.settings;var Qr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},VB={itemInteraction:{click:Qr,hover:Qr},axisInteraction:{click:Qr,hover:Qr},keyboardInteraction:Qr,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},MS=le({name:"tooltip",initialState:VB,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:me()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=st(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:me()},removeTooltipEntrySettings:{reducer(e,t){var r=st(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:me()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:NS,replaceTooltipEntrySettings:jS,removeTooltipEntrySettings:LS,setTooltipSettingsState:BS,setActiveMouseOverItemIndex:Oc,mouseLeaveItem:zS,mouseLeaveChart:Ec,setActiveClickItemIndex:FS,setMouseOverAxisIndex:Cc,setMouseClickAxisIndex:WS,setSyncInteraction:Go,setKeyboardInteraction:ws}=MS.actions,VS=MS.reducer;function KS(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 _c(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){KB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KB(e,t,r){return(t=$B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $B(e){var t=HB(e,"string");return typeof t=="symbol"?t:t+""}function HB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qB(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function UB(e){return e.index!=null}var Ic=(e,t,r,n)=>{if(t==null)return Qr;var i=qB(e,t,r);if(i==null)return Qr;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(UB(i)){if(o)return _c(_c({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return _c(_c({},Qr),{},{coordinate:i.coordinate})};function YB(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function GB(e,t){var r=YB(e),n=t[0],i=t[1];if(r===void 0)return!1;var o=Math.min(n,i),a=Math.max(n,i);return r>=o&&r<=a}function XB(e,t,r){if(r==null||t==null)return!0;var n=Y(e,t);return n==null||!Ft(r)?!0:GB(n,r)}var On=(e,t,r,n)=>{var i=e==null?void 0:e.index;if(i==null)return null;var o=Number(i);if(!V(o))return i;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(o,s)),u=t[l];return u==null||XB(u,r,n)?String(l):null};var Tc=(e,t,r,n,i,o,a)=>{if(o!=null){var s=a[0],l=s==null?void 0:s.getPosition(o);if(l!=null)return l;var u=i==null?void 0:i[Number(o)];if(u)return r==="horizontal"?{x:u.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:u.coordinate}}};var Rc=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(n!=null||e.keyboardInteraction.active)){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===i})};var kc=e=>e.options.tooltipPayloadSearcher;var en=e=>e.tooltip;function $S(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 HS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(r),!0).forEach(function(n){ZB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZB(e,t,r){return(t=JB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JB(e){var t=QB(e,"string");return typeof t=="symbol"?t:t+""}function QB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ez(e){if(typeof e=="string"||typeof e=="number")return e}function tz(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function rz(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function qS(e){if(typeof e=="string")return e}function nz(e){if(!(e==null||typeof e!="object")){var t="name"in e?ez(e.name):void 0,r="unit"in e?tz(e.unit):void 0,n="dataKey"in e?rz(e.dataKey):void 0,i="payload"in e?e.payload:void 0,o="color"in e?qS(e.color):void 0,a="fill"in e?qS(e.fill):void 0;return{name:t,unit:r,dataKey:n,payload:i,color:o,fill:a}}}function iz(e,t){return e!=null?e:t}var Dc=(e,t,r,n,i,o,a)=>{if(!(t==null||o==null)){var{chartData:s,computedData:l,dataStartIndex:u,dataEndIndex:c}=r,f=[];return e.reduce((d,p)=>{var m,{dataDefinedOnItem:v,settings:y}=p,h=iz(v,s),g=Array.isArray(h)?Gl(h,u,c):h,x=(m=y==null?void 0:y.dataKey)!==null&&m!==void 0?m:n,b=y==null?void 0:y.nameKey,P;if(n&&Array.isArray(g)&&!Array.isArray(g[0])&&a==="axis"?P=pl(g,n,i):P=o(g,t,l,b),Array.isArray(P))P.forEach(A=>{var O,E,I=nz(A),T=I==null?void 0:I.name,_=I==null?void 0:I.dataKey,N=I==null?void 0:I.payload,M=HS(HS({},y),{},{name:T,unit:I==null?void 0:I.unit,color:(O=I==null?void 0:I.color)!==null&&O!==void 0?O:y==null?void 0:y.color,fill:(E=I==null?void 0:I.fill)!==null&&E!==void 0?E:y==null?void 0:y.fill});d.push(mm({tooltipEntrySettings:M,dataKey:_,payload:N,value:Y(N,_),name:T==null?void 0:String(T)}))});else{var w;d.push(mm({tooltipEntrySettings:y,dataKey:x,payload:P,value:Y(P,x),name:(w=Y(P,b))!==null&&w!==void 0?w:y==null?void 0:y.name}))}return d},f)}};var lh=S([qe,Nv,Eo],mc),oz=S([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),az=S([Ke,yn],fs),En=S([oz,qe,az],ds,{memoizeOptions:{resultEqualityCheck:_o}}),sz=S([En],e=>e.filter(gi)),US=S([En],ps,{memoizeOptions:{resultEqualityCheck:_o}}),lz=S([En],e=>e.some(t=>!t.data)),tn=S([US,Tt],ms),uz=S([sz,Tt,qe],Tu),uh=S([tn,qe,En,Tt,lz,US],zv),YS=S([qe],yc),cz=S([qe],e=>e.allowDataOverflow),GS=S([YS,cz],yu),fz=S([En],e=>e.filter(gi)),dz=S([uz,fz,mn,Pu],Fv),pz=S([dz,Tt,Ke,GS],Wv),mz=S([En],jv),vz=S([tn,qe,mz,Uo,Ke,_w],hs,{memoizeOptions:{resultEqualityCheck:Co}}),hz=S([Vv,Ke,yn],Di),yz=S([hz,Ke],Hv),gz=S([Kv,Ke,yn],Di),bz=S([gz,Ke],qv),xz=S([$v,Ke,yn],Di),wz=S([xz,Ke],Uv),Pz=S([yz,wz,bz],cs),Sz=S([qe,YS,GS,pz,vz,Pz,q,Ke],ys),Cn=S([qe,q,tn,uh,mn,Ke,Sz],gs),Az=S([Cn,qe,lh],bs),Oz=S([qe,Cn,Az,Ke],xs),XS=e=>{var t=Ke(e),r=yn(e),n=!1;return Yo(e,t,r,n)},ch=S([qe,XS],vi),Ez=S([qe,lh,Oz,ch],us),fh=S([Ez],Wa),Cz=S([q,uh,qe,Ke],rh),_z=S([q,uh,qe,Ke],Zv),Iz=(e,t,r,n,i,o,a,s)=>{if(t){var{type:l}=t,u=dt(e,s);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=s==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?xe(i[0]-i[1])*2*f:f,u&&a?a.map((d,p)=>{var m=n.map(d);return V(m)?{coordinate:m+f,value:d,index:p,offset:f}:null}).filter(ot):n.domain().map((d,p)=>{var m=n.map(d);return V(m)?{coordinate:m+f,value:o?o[d]:d,index:p,offset:f}:null}).filter(ot)}}},kt=S([q,qe,lh,fh,XS,Cz,_z,Ke],Iz),dh=S([oh,ah,DS],(e,t,r)=>sh(r.shared,e,t)),ZS=e=>e.tooltip.settings.trigger,ph=e=>e.tooltip.settings.defaultIndex,Ps=S([en,dh,ZS,ph],Ic),sr=S([Ps,tn,Zr,Cn],On),Mc=S([kt,sr],Ac),Xo=S([Ps],e=>{if(e)return e.dataKey}),Nc=S([Ps],e=>{if(e)return e.graphicalItemId}),JS=S([en,dh,ZS,ph],Rc),Tz=S([pt,mt,q,ve,kt,ph,JS],Tc),mh=S([Ps,Tz],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),vh=S([Ps],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Rz=S([JS,sr,Tt,Zr,Mc,kc,dh],Dc),QS=S([Rz],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function eA(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 tA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){kz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kz(e,t,r){return(t=Dz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dz(e){var t=Mz(e,"string");return typeof t=="symbol"?t:t+""}function Mz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nz=()=>k(qe),rA=()=>{var e=Nz(),t=k(kt),r=k(fh);return!e||!r?er(void 0,t):er(tA(tA({},e),{},{scale:r}),t)};var sA=it(Sa());function nA(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 Zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){jz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jz(e,t,r){return(t=Lz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lz(e){var t=Bz(e,"string");return typeof t=="symbol"?t:t+""}function Bz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iA=(e,t,r,n)=>{var i=t.find(o=>o&&o.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.relativeY};if(e==="vertical")return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}},oA=(e,t,r,n)=>{var i=t.find(u=>u&&u.index===r);if(i){if(e==="centric"){var o=i.coordinate,{radius:a}=n;return Zo(Zo(Zo({},n),Ae(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,{angle:l}=n;return Zo(Zo(Zo({},n),Ae(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function aA(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var hh=(e,t,r,n,i)=>{var o,a=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,u,c,f,d,p=s>0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(u=r[a-1])===null||u===void 0?void 0:u.coordinate,m=(c=r[s])===null||c===void 0?void 0:c.coordinate,v=s>=a-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[s+1])===null||d===void 0?void 0:d.coordinate,y=void 0;if(!(p==null||m==null||v==null))if(xe(m-p)!==xe(v-m)){var h=[];if(xe(v-m)===xe(i[1]-i[0])){y=v;var g=m+i[1]-i[0];h[0]=Math.min(g,(g+p)/2),h[1]=Math.max(g,(g+p)/2)}else{y=p;var x=v+i[1]-i[0];h[0]=Math.min(m,(x+m)/2),h[1]=Math.max(m,(x+m)/2)}var b=[Math.min(m,(y+m)/2),Math.max(m,(y+m)/2)];if(e>b[0]&&e<=b[1]||e>=h[0]&&e<=h[1]){var P;return(P=r[s])===null||P===void 0?void 0:P.index}}else{var w=Math.min(p,v),A=Math.max(p,v);if(e>(w+m)/2&&e<=(A+m)/2){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}}else if(t)for(var E=0;E<a;E++){var I=t[E];if(I!=null){var T=t[E+1],_=t[E-1];if(E===0&&T!=null&&e<=(I.coordinate+T.coordinate)/2||E===a-1&&_!=null&&e>(I.coordinate+_.coordinate)/2||E>0&&E<a-1&&_!=null&&T!=null&&e>(I.coordinate+_.coordinate)/2&&e<=(I.coordinate+T.coordinate)/2)return I.index}}return-1};var jc=()=>k(Eo),yh=(e,t)=>t,lA=(e,t,r)=>r,gh=(e,t,r,n)=>n,uA=S(kt,e=>(0,sA.default)(e,t=>t.coordinate)),bh=S([en,yh,lA,gh],Ic),xh=S([bh,tn,Zr,Cn],On),cA=(e,t,r)=>{if(t!=null){var n=en(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},fA=S([en,yh,lA,gh],Rc),Ss=S([pt,mt,q,ve,kt,gh,fA],Tc),dA=S([bh,Ss],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),wh=S([kt,xh],Ac),pA=S([fA,xh,Tt,Zr,wh,kc,yh],Dc),mA=S([bh,xh],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),zz=(e,t,r,n,i,o,a)=>{if(!(!e||!r||!n||!i)&&aA(e,a)){var s=kx(e,t),l=hh(s,o,i,r,n),u=iA(t,i,l,e);return{activeIndex:String(l),activeCoordinate:u}}},Fz=(e,t,r,n,i,o,a)=>{if(!(!e||!n||!i||!o||!r)){var s=cw(e,r);if(s){var l=Dx(s,t),u=hh(l,a,o,n,i),c=oA(t,o,u,s);return{activeIndex:String(u),activeCoordinate:c}}}},vA=(e,t,r,n,i,o,a,s)=>{if(!(!e||!t||!n||!i||!o))return t==="horizontal"||t==="vertical"?zz(e,t,n,i,o,a,s):Fz(e,t,r,n,i,o,a)};import{useLayoutEffect as OA,useRef as EA}from"react";import{createPortal as Yz}from"react-dom";var hA=S(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),yA=S(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(ee)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:Gw}});function gA(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 bA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gA(Object(r),!0).forEach(function(n){Wz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wz(e,t,r){return(t=Vz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vz(e){var t=Kz(e,"string");return typeof t=="symbol"?t:t+""}function Kz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $z={},Hz={zIndexMap:Object.values(ee).reduce((e,t)=>bA(bA({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),$z)},qz=new Set(Object.values(ee));function Uz(e){return qz.has(e)}var xA=le({name:"zIndex",initialState:Hz,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:me()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Uz(r)&&delete e.zIndexMap[r])},prepare:me()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:me()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:me()}}}),{registerZIndexPortal:wA,unregisterZIndexPortal:Lc,registerZIndexPortalElement:PA,unregisterZIndexPortalElement:SA}=xA.actions,AA=xA.reducer;function Oe(e){var{zIndex:t,children:r}=e,n=Jx(),i=n&&t!==void 0&&t!==0,o=ue(),a=EA(void 0),s=EA(new Set),l=$(),u=k(f=>hA(f,t,o));if(OA(()=>{if(!i){var f=s.current;f.forEach(p=>{l(Lc({zIndex:p}))}),f.clear(),a.current=void 0;return}if(s.current.has(t)||(l(wA({zIndex:t})),s.current.add(t)),u){a.current=u;var d=s.current;d.forEach(p=>{p!==t&&(l(Lc({zIndex:p})),d.delete(p))})}},[l,t,i,u]),OA(()=>{var f=s.current;return()=>{f.forEach(d=>{l(Lc({zIndex:d}))}),f.clear()}},[l]),!i)return r;var c=u!=null?u:a.current;return c?Yz(r,c):null}function Ph(){return Ph=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},Ph.apply(null,arguments)}function CA(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 Bc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(r),!0).forEach(function(n){Gz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gz(e,t,r){return(t=Xz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xz(e){var t=Zz(e,"string");return typeof t=="symbol"?t:t+""}function Zz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tF(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return eF(t)?Jz(t,n):Qz(r,n)}function rF(e){var t,{coordinate:r,payload:n,index:i,offset:o,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:u,chartName:c}=e,f=r,d=n,p=i;if(!l||!f||c!=="ScatterChart"&&u!=="axis")return null;var m,v,y;if(c==="ScatterChart")m=f,v=_0,y=ee.cursorLine;else if(c==="BarChart")m=I0(s,f,o,a),v=fu,y=ee.cursorRectangle;else if(s==="radial"&&ml(f)){var{cx:h,cy:g,radius:x,startAngle:b,endAngle:P}=pu(f);m={cx:h,cy:g,startAngle:b,endAngle:P,innerRadius:x,outerRadius:x},v=vu,y=ee.cursorLine}else m={points:xw(s,f,o)},v=Sr,y=ee.cursorLine;var w=typeof l=="object"&&"className"in l?l.className:void 0,A=Bc(Bc(Bc(Bc({stroke:"#ccc",pointerEvents:"none"},o),m),Mt(l)),{},{payload:d,payloadIndex:p,className:W("recharts-tooltip-cursor",w)});return zc.createElement(Oe,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:y},zc.createElement(tF,{cursor:l,cursorComp:v,cursorProps:A}))}function _A(e){var t=rA(),r=tu(),n=_t(),i=jc();return t==null||r==null||n==null||i==null?null:zc.createElement(rF,Ph({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}import{createContext as nF,useContext as iF}from"react";var Sh=nF(null),IA=()=>iF(Sh);import{useEffect as Vc}from"react";var kA=it(RA(),1);var DA=kA.default;var Jo=new DA;var Wc="recharts.syncEvent.tooltip",Oh="recharts.syncEvent.brush";var _n=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!et(r))return e[r]}},sF={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},MA=le({name:"options",initialState:sF,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),NA=MA.reducer,{createEventEmitter:jA}=MA.actions;function LA(e){return e.tooltip.syncInteraction}var lF={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},BA=le({name:"chartData",initialState:lF,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Eh,setDataStartEndIndexes:zA,setComputedData:uF}=BA.actions,FA=BA.reducer;var cF=["x","y"];function WA(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 Qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){fF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fF(e,t,r){return(t=dF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dF(e){var t=pF(e,"string");return typeof t=="symbol"?t:t+""}function pF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mF(e,t){if(e==null)return{};var r,n,i=vF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vF(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 hF(){var e=k(Su),t=k(Au),r=$(),n=k(qm),i=k(kt),o=_t(),a=si(),s=k(l=>l.rootProps.className);Vc(()=>{if(e==null)return xt;var l=(u,c,f)=>{if(t!==f&&e===u){if(c.payload.active===!1){r(Go({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(n==="index"){var d;if(a&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var p=c.payload.coordinate,{x:m,y:v}=p,y=mF(p,cF),{x:h,y:g,width:x,height:b}=c.payload.sourceViewBox,P=Qo(Qo({},y),{},{x:a.x+(x?(m-h)/x:0)*a.width,y:a.y+(b?(v-g)/b:0)*a.height});r(Qo(Qo({},c),{},{payload:Qo(Qo({},c.payload),{},{coordinate:P})}))}else r(c);return}if(i!=null){var w;if(typeof n=="function"){var A={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},O=n(i,A);w=i[O]}else n==="value"&&(w=i.find(J=>String(J.value)===c.payload.label));var{coordinate:E}=c.payload;if(E==null||a==null){r(Go({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(w==null){r(Go({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:I,y:T}=E,_=Math.min(I,a.x+a.width),N=Math.min(T,a.y+a.height),M={x:o==="horizontal"?w.coordinate:_,y:o==="horizontal"?N:w.coordinate},F=Go({active:c.payload.active,coordinate:M,dataKey:c.payload.dataKey,index:String(w.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(F)}}};return Jo.on(Wc,l),()=>{Jo.off(Wc,l)}},[s,r,t,e,n,i,o,a])}function yF(){var e=k(Su),t=k(Au),r=$();Vc(()=>{if(e==null)return xt;var n=(i,o,a)=>{t!==a&&e===i&&r(zA(o))};return Jo.on(Oh,n),()=>{Jo.off(Oh,n)}},[r,t,e])}function VA(){var e=$();Vc(()=>{e(jA())},[e]),hF(),yF()}function KA(e,t,r,n,i,o){var a=k(m=>cA(m,e,t)),s=k(Nc),l=k(Au),u=k(Su),c=k(qm),f=k(LA),d=(f==null?void 0:f.sourceViewBox)!=null,p=si();Vc(()=>{if(!d&&u!=null&&l!=null){var m=Go({active:o,coordinate:r,dataKey:a,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:s});Jo.emit(Wc,u,m,l)}},[d,r,a,s,i,n,l,u,c,o,p])}function $A(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 HA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){gF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gF(e,t,r){return(t=bF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return typeof t=="symbol"?t:t+""}function xF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SF(e){return e.dataKey}function AF(e,t){return lr.isValidElement(e)?lr.cloneElement(e,t):typeof e=="function"?lr.createElement(e,t):lr.createElement(v0,t)}var qA=[],OF={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function rn(e){var t,r,n=X(e,OF),{active:i,allowEscapeViewBox:o,animationDuration:a,animationEasing:s,content:l,filterNull:u,isAnimationActive:c,offset:f,payloadUniqBy:d,position:p,reverseDirection:m,useTranslate3d:v,wrapperStyle:y,cursor:h,shared:g,trigger:x,defaultIndex:b,portal:P,axisId:w}=n,A=$(),O=typeof b=="number"?String(b):b;wF(()=>{A(BS({shared:g,trigger:x,axisId:w,active:i,defaultIndex:O}))},[A,g,x,w,i,O]);var E=si(),I=nu(),T=kS(g),{activeIndex:_,isActive:N}=(t=k(ut=>mA(ut,T,x,O)))!==null&&t!==void 0?t:{},M=k(ut=>pA(ut,T,x,O)),F=k(ut=>wh(ut,T,x,O)),J=k(ut=>dA(ut,T,x,O)),U=M,ne=IA(),K=(r=i!=null?i:N)!==null&&r!==void 0?r:!1,[te,Be]=Al([U,K]),Se=T==="axis"?F:void 0;KA(T,x,J,Se,_,K);var gt=P!=null?P:ne;if(gt==null||E==null||T==null)return null;var lt=U!=null?U:qA;K||(lt=qA),u&&lt.length&&(lt=bl(lt.filter(ut=>ut.value!=null&&(ut.hide!==!0||n.includeHidden)),d,SF));var pr=lt.length>0,Un=HA(HA({},n),{},{payload:lt,label:Se,active:K,activeIndex:_,coordinate:J,accessibilityLayer:I}),Yn=lr.createElement(b0,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:c,active:K,coordinate:J,hasPayload:pr,offset:f,position:p,reverseDirection:m,useTranslate3d:v,viewBox:E,wrapperStyle:y,lastBoundingBox:te,innerRef:Be,hasPortalFromProps:!!P},AF(l,Un));return lr.createElement(lr.Fragment,null,PF(Yn,gt),K&&lr.createElement(_A,{cursor:h,tooltipEventType:T,coordinate:J,payload:lt,index:_}))}var ea=e=>null;ea.displayName="Cell";import*as _h from"react";import{useMemo as ZF,forwardRef as JF}from"react";function EF(e,t,r){return(t=CF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CF(e){var t=_F(e,"string");return typeof t=="symbol"?t:t+""}function _F(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kc=class{constructor(t){EF(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}};function UA(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 IF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){TF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TF(e,t,r){return(t=RF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RF(e){var t=kF(e,"string");return typeof t=="symbol"?t:t+""}function kF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DF={cacheSize:2e3,enableCache:!0},ZA=IF({},DF),YA=new Kc(ZA.cacheSize),MF={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},GA="recharts_measurement_span";function NF(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(s)}var XA=(e,t)=>{try{var r=document.getElementById(GA);r||(r=document.createElement("span"),r.setAttribute("id",GA),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,MF,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(i){return{width:0,height:0}}},Mi=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||tr.isSsr)return{width:0,height:0};if(!ZA.enableCache)return XA(t,r);var n=NF(t,r),i=YA.get(n);if(i)return i;var o=XA(t,r);return YA.set(n,o),o};var tO;function jF(e,t,r){return(t=LF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LF(e){var t=BF(e,"string");return typeof t=="symbol"?t:t+""}function BF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,QA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zF=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,FF=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,WF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},VF=["cm","mm","pt","pc","in","Q","px"];function KF(e){return VF.includes(e)}var ta="NaN";function $F(e,t){return e*WF[t]}var In=class e{static parse(t){var r,[,n,i]=(r=FF.exec(t))!==null&&r!==void 0?r:[];return n==null?e.NaN:new e(parseFloat(n),i!=null?i:"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,et(t)&&(this.unit=""),r!==""&&!zF.test(r)&&(this.num=NaN,this.unit=""),KF(r)&&(this.num=$F(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return et(this.num)}};tO=In;jF(In,"NaN",new tO(NaN,""));function rO(e){if(e==null||e.includes(ta))return ta;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,o]=(r=JA.exec(t))!==null&&r!==void 0?r:[],a=In.parse(n!=null?n:""),s=In.parse(o!=null?o:""),l=i==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return ta;t=t.replace(JA,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,c,f,d]=(u=QA.exec(t))!==null&&u!==void 0?u:[],p=In.parse(c!=null?c:""),m=In.parse(d!=null?d:""),v=f==="+"?p.add(m):p.subtract(m);if(v.isNaN())return ta;t=t.replace(QA,v.toString())}return t}var eO=/\(([^()]*)\)/;function HF(e){for(var t=e,r;(r=eO.exec(t))!=null;){var[,n]=r;t=t.replace(eO,rO(n))}return t}function qF(e){var t=e.replace(/\s+/g,"");return t=HF(t),t=rO(t),t}function UF(e){try{return qF(e)}catch(t){return ta}}function $c(e){var t=UF(e.slice(5,-1));return t===ta?"":t}var YF=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],GF=["dx","dy","angle","className","breakAll"];function Ch(){return Ch=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},Ch.apply(null,arguments)}function nO(e,t){if(e==null)return{};var r,n,i=XF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function XF(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 aO=/[ \f\n\r\t\v\u2028\u2029]+/,sO=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];Q(t)||(r?i=t.toString().split(""):i=t.toString().split(aO));var o=i.map(s=>({word:s,width:Mi(s,n).width})),a=r?0:Mi("\xA0",n).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch(s){return null}};function Hc(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function lO(e){return Q(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var uO=(e,t,r,n)=>e.reduce((i,o)=>{var{word:a,width:s}=o,l=i[i.length-1];if(l&&s!=null&&(t==null||n||l.width+s+r<Number(t)))l.words.push(a),l.width+=s+r;else{var u={words:[a],width:s};i.push(u)}return i},[]),cO=e=>e.reduce((t,r)=>t.width>r.width?t:r),QF="\u2026",iO=(e,t,r,n,i,o,a,s)=>{var l=e.slice(0,t),u=sO({breakAll:r,style:n,children:l+QF});if(!u)return[!1,[]];var c=uO(u.wordsWithComputedWidth,o,a,s),f=c.length>i||cO(c).width>Number(o);return[f,c]},e5=(e,t,r,n,i)=>{var{maxLines:o,children:a,style:s,breakAll:l}=e,u=R(o),c=String(a),f=uO(t,n,r,i);if(!u||i)return f;var d=f.length>o||cO(f).width>Number(n);if(!d)return f;for(var p=0,m=c.length-1,v=0,y;p<=m&&v<=c.length-1;){var h=Math.floor((p+m)/2),g=h-1,[x,b]=iO(c,g,l,s,o,n,r,i),[P]=iO(c,h,l,s,o,n,r,i);if(!x&&!P&&(p=h+1),x&&P&&(m=h-1),!x&&P){y=b;break}v++}return y||f},oO=e=>{var t=Q(e)?[]:e.toString().split(aO);return[{words:t,width:void 0}]},t5=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:o,maxLines:a}=e;if((t||r)&&!tr.isSsr){var s,l,u=sO({breakAll:o,children:n,style:i});if(u){var{wordsWithComputedWidth:c,spaceWidth:f}=u;s=c,l=f}else return oO(n);return e5({breakAll:o,children:n,maxLines:a,style:i},s,l,t,!!r)}return oO(n)},fO="#808080",r5={angle:0,breakAll:!1,capHeight:"0.71em",fill:fO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ni=JF((e,t)=>{var r=X(e,r5),{x:n,y:i,lineHeight:o,capHeight:a,fill:s,scaleToFit:l,textAnchor:u,verticalAnchor:c}=r,f=nO(r,YF),d=ZF(()=>t5({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:p,dy:m,angle:v,className:y,breakAll:h}=f,g=nO(f,GF);if(!bt(n)||!bt(i)||d.length===0)return null;var x=Number(n)+(R(p)?p:0),b=Number(i)+(R(m)?m:0);if(!V(x)||!V(b))return null;var P;switch(c){case"start":P=$c("calc(".concat(a,")"));break;case"middle":P=$c("calc(".concat((d.length-1)/2," * -").concat(o," + (").concat(a," / 2))"));break;default:P=$c("calc(".concat(d.length-1," * -").concat(o,")"));break}var w=[],A=d[0];if(l&&A!=null){var O=A.width,{width:E}=f;w.push("scale(".concat(R(E)&&R(O)?E/O:1,")"))}return v&&w.push("rotate(".concat(v,", ").concat(x,", ").concat(b,")")),w.length&&(g.transform=w.join(" ")),_h.createElement("text",Ch({},ge(g),{ref:t,x,y:b,className:W("recharts-text",y),textAnchor:u,fill:s.includes("url")?fO:s}),d.map((I,T)=>{var _=I.words.join(h?"":" ");return _h.createElement("tspan",{x,dy:T===0?P:o,key:"".concat(_,"-").concat(T)},_)}))});Ni.displayName="Text";import*as Ut from"react";import{cloneElement as hO,createContext as yO,createElement as d5,isValidElement as qc,useContext as gO,useMemo as p5}from"react";function dO(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 Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){n5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n5(e,t,r){return(t=i5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i5(e){var t=o5(e,"string");return typeof t=="symbol"?t:t+""}function o5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pO=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i,clamp:o}=e,{x:a,y:s,height:l,upperWidth:u,lowerWidth:c}=ka(t),f=a,d=a+(u-c)/2,p=(f+d)/2,m=(u+c)/2,v=f+u/2,y=l>=0?1:-1,h=y*n,g=y>0?"end":"start",x=y>0?"start":"end",b=u>=0?1:-1,P=b*n,w=b>0?"end":"start",A=b>0?"start":"end",O=i;if(r==="top"){var E={x:f+u/2,y:s-h,horizontalAnchor:"middle",verticalAnchor:g};return o&&O&&(E.height=Math.max(s-O.y,0),E.width=u),E}if(r==="bottom"){var I={x:d+c/2,y:s+l+h,horizontalAnchor:"middle",verticalAnchor:x};return o&&O&&(I.height=Math.max(O.y+O.height-(s+l),0),I.width=c),I}if(r==="left"){var T={x:p-P,y:s+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return o&&O&&(T.width=Math.max(T.x-O.x,0),T.height=l),T}if(r==="right"){var _={x:p+m+P,y:s+l/2,horizontalAnchor:A,verticalAnchor:"middle"};return o&&O&&(_.width=Math.max(O.x+O.width-_.x,0),_.height=l),_}var N=o&&O?{width:m,height:l}:{};return r==="insideLeft"?Nr({x:p+P,y:s+l/2,horizontalAnchor:A,verticalAnchor:"middle"},N):r==="insideRight"?Nr({x:p+m-P,y:s+l/2,horizontalAnchor:w,verticalAnchor:"middle"},N):r==="insideTop"?Nr({x:f+u/2,y:s+h,horizontalAnchor:"middle",verticalAnchor:x},N):r==="insideBottom"?Nr({x:d+c/2,y:s+l-h,horizontalAnchor:"middle",verticalAnchor:g},N):r==="insideTopLeft"?Nr({x:f+P,y:s+h,horizontalAnchor:A,verticalAnchor:x},N):r==="insideTopRight"?Nr({x:f+u-P,y:s+h,horizontalAnchor:w,verticalAnchor:x},N):r==="insideBottomLeft"?Nr({x:d+P,y:s+l-h,horizontalAnchor:A,verticalAnchor:g},N):r==="insideBottomRight"?Nr({x:d+c-P,y:s+l-h,horizontalAnchor:w,verticalAnchor:g},N):r&&typeof r=="object"&&(R(r.x)||Br(r.x))&&(R(r.y)||Br(r.y))?Nr({x:a+je(r.x,m),y:s+je(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},N):Nr({x:v,y:s+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},N)};var a5=["labelRef"],s5=["content"];function mO(e,t){if(e==null)return{};var r,n,i=l5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l5(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 vO(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 Os(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vO(Object(r),!0).forEach(function(n){u5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u5(e,t,r){return(t=c5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c5(e){var t=f5(e,"string");return typeof t=="symbol"?t:t+""}function f5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function on(){return on=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},on.apply(null,arguments)}var bO=yO(null),xO=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a,children:s}=e,l=p5(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a}),[t,r,n,i,o,a]);return Ut.createElement(bO.Provider,{value:l},s)},wO=()=>{var e=gO(bO),t=si();return e||(t?ka(t):void 0)},m5=yO(null);var v5=()=>{var e=gO(m5),t=k(Iu);return e||t},h5=e=>{var{value:t,formatter:r}=e,n=Q(e.children)?t:e.children;return typeof r=="function"?r(n):n},Es=e=>e!=null&&typeof e=="function",y5=(e,t)=>{var r=xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},g5=(e,t,r,n,i)=>{var{offset:o,className:a}=e,{cx:s,cy:l,innerRadius:u,outerRadius:c,startAngle:f,endAngle:d,clockWise:p}=i,m=(u+c)/2,v=y5(f,d),y=v>=0?1:-1,h,g;switch(t){case"insideStart":h=f+y*o,g=p;break;case"insideEnd":h=d-y*o,g=!p;break;case"end":h=d+y*o,g=p;break;default:throw new Error("Unsupported position ".concat(t))}g=v<=0?g:!g;var x=Ae(s,l,m,h),b=Ae(s,l,m,h+(g?1:-1)*359),P="M".concat(x.x,",").concat(x.y,`
50
+ A`).concat(m,",").concat(m,",0,1,").concat(g?0:1,`,
51
+ `).concat(b.x,",").concat(b.y),w=Q(e.id)?zr("recharts-radial-line-"):e.id;return Ut.createElement("text",on({},n,{dominantBaseline:"central",className:W("recharts-radial-bar-label",a)}),Ut.createElement("defs",null,Ut.createElement("path",{id:w,d:P})),Ut.createElement("textPath",{xlinkHref:"#".concat(w)},r))},b5=(e,t,r)=>{var{cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:l}=e,u=(s+l)/2;if(r==="outside"){var{x:c,y:f}=Ae(n,i,a+t,u);return{x:c,y:f,textAnchor:c>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(o+a)/2,{x:p,y:m}=Ae(n,i,d,u);return{x:p,y:m,textAnchor:"middle",verticalAnchor:"middle"}},Uc=e=>e!=null&&"cx"in e&&R(e.cx),x5={angle:0,offset:5,zIndex:ee.label,position:"middle",textBreakAll:!1};function w5(e){if(!Uc(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function nn(e){var t=X(e,x5),{viewBox:r,parentViewBox:n,position:i,value:o,children:a,content:s,className:l="",textBreakAll:u,labelRef:c}=t,f=v5(),d=wO(),p=i==="center"?d:f!=null?f:d,m,v,y;r==null?m=p:Uc(r)?m=r:m=ka(r);var h=w5(m);if(!m||Q(o)&&Q(a)&&!qc(s)&&typeof s!="function")return null;var g=Os(Os({},t),{},{viewBox:m});if(qc(s)){var{labelRef:x}=g,b=mO(g,a5);return hO(s,b)}if(typeof s=="function"){var{content:P}=g,w=mO(g,s5);if(v=d5(s,w),qc(v))return v}else v=h5(t);var A=ge(t);if(Uc(m)){if(i==="insideStart"||i==="insideEnd"||i==="end")return g5(t,i,v,A,m);y=b5(m,t.offset,t.position)}else{if(!h)return null;var O=pO({viewBox:h,position:i,offset:t.offset,parentViewBox:Uc(n)?void 0:n,clamp:!0});y=Os(Os({x:O.x,y:O.y,textAnchor:O.horizontalAnchor,verticalAnchor:O.verticalAnchor},O.width!==void 0?{width:O.width}:{}),O.height!==void 0?{height:O.height}:{})}return Ut.createElement(Oe,{zIndex:t.zIndex},Ut.createElement(Ni,on({ref:c,className:W("recharts-label",l)},A,y,{textAnchor:Hc(A.textAnchor)?A.textAnchor:y.textAnchor,breakAll:u}),v))}nn.displayName="Label";var P5=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?Ut.createElement(nn,on({key:"label-implicit"},n)):bt(e)?Ut.createElement(nn,on({key:"label-implicit",value:e},n)):qc(e)?e.type===nn?hO(e,Os({key:"label-implicit"},n)):Ut.createElement(nn,on({key:"label-implicit",content:e},n)):Es(e)?Ut.createElement(nn,on({key:"label-implicit",content:e},n)):e&&typeof e=="object"?Ut.createElement(nn,on({},e,{key:"label-implicit"},n)):null};function PO(e){var{label:t,labelRef:r}=e,n=wO();return P5(t,n,r)||null}import*as an from"react";import{createContext as AO,useContext as OO}from"react";var S5=["valueAccessor"],A5=["dataKey","clockWise","id","textBreakAll","zIndex"];function Gc(){return Gc=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},Gc.apply(null,arguments)}function SO(e,t){if(e==null)return{};var r,n,i=O5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function O5(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 E5=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(lO(t))return t},EO=AO(void 0),ra=EO.Provider,CO=AO(void 0),_O=CO.Provider;function C5(){return OO(EO)}function _5(){return OO(CO)}function Yc(e){var{valueAccessor:t=E5}=e,r=SO(e,S5),{dataKey:n,clockWise:i,id:o,textBreakAll:a,zIndex:s}=r,l=SO(r,A5),u=C5(),c=_5(),f=u||c;return!f||!f.length?null:an.createElement(Oe,{zIndex:s!=null?s:ee.label},an.createElement(se,{className:"recharts-label-list"},f.map((d,p)=>{var m,v=Q(n)?t(d,p):Y(d.payload,n),y=Q(o)?{}:{id:"".concat(o,"-").concat(p)};return an.createElement(nn,Gc({key:"label-".concat(p)},ge(d),l,y,{fill:(m=r.fill)!==null&&m!==void 0?m:d.fill,parentViewBox:d.parentViewBox,value:v,textBreakAll:a,viewBox:d.viewBox,index:p,zIndex:0}))})))}Yc.displayName="LabelList";function Tn(e){var{label:t}=e;return t?t===!0?an.createElement(Yc,{key:"labelList-implicit"}):an.isValidElement(t)||Es(t)?an.createElement(Yc,{key:"labelList-implicit",content:t}):typeof t=="object"?an.createElement(Yc,Gc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}import*as IO from"react";function Ih(){return Ih=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},Ih.apply(null,arguments)}var Xc=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=W("recharts-dot",i);return R(t)&&R(r)&&R(n)?IO.createElement("circle",Ih({},Te(e),io(e),{className:o,cx:t,cy:r,r:n})):null};var Th=e=>e.graphicalItems.polarItems,I5=S([_e,yi],fs),Zc=S([Th,Le,I5],ds),T5=S([Zc],ps),Jc=S([T5,ci],ms),R5=S([Jc,Le,Zc],Bv),use=S([Jc,Le,Zc],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var o,a=Y(n,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:Y(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]}))),TO=()=>{},k5=S([Jc,Le,Zc,Uo,_e,Cw],hs),D5=S([Le,gc,bc,TO,k5,TO,q,_e],ys),RO=S([Le,q,Jc,R5,mn,_e,D5],gs),M5=S([RO,ki,Jr],bs),N5=S([Le,RO,M5,_e],xs),cse=S([Jr,N5],Ru);var j5={radiusAxis:{},angleAxis:{}},kO=le({name:"polarAxis",initialState:j5,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:pse,removeRadiusAxis:mse,addAngleAxis:vse,removeAngleAxis:hse}=kO.actions,DO=kO.reducer;function Qc(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var IE=it(no());import*as G from"react";import{useCallback as _E,useMemo as Wh,useRef as EW,useState as CW}from"react";function MO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){L5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L5(e,t,r){return(t=B5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B5(e){var t=z5(e,"string");return typeof t=="symbol"?t:t+""}function z5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F5=(e,t)=>t,Rh=S([Th,F5],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),W5=[],kh=(e,t,r)=>(r==null?void 0:r.length)===0?W5:r,jO=S([ci,Rh,kh],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if((t==null?void 0:t.data)!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(o=>NO(NO({},t.presentationProps),o.props))),i!=null)return i}}),LO=S([jO,Rh,kh],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var o,a=Y(n,t.nameKey,t.name),s;return r!=null&&(o=r[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?s=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Bt(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),BO=S([jO,Rh,kh,ve],(e,t,r,n)=>{if(!(t==null||e==null))return zO({offset:n,pieSettings:t,displayedData:e,cells:r})});var Bh=it(no()),qO=it(KO());import{Children as U5}from"react";var $O=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",HO=null,Lh=null,UO=e=>{if(e===HO&&Array.isArray(Lh))return Lh;var t=[];return U5.forEach(e,r=>{Q(r)||((0,qO.isFragment)(r)?t=t.concat(UO(r.props.children)):t.push(r))}),Lh=t,HO=e,t};function Cs(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>$O(i)):n=[$O(t)],UO(e).forEach(i=>{var o=(0,Bh.default)(i,"type.displayName")||(0,Bh.default)(i,"type.name");o&&n.indexOf(o)!==-1&&r.push(i)}),r}var na=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0;var uE=it(XO());import*as jr from"react";import{cloneElement as sW,isValidElement as lE}from"react";import*as Is from"react";import{useEffect as J5,useRef as ia,useState as Q5}from"react";var ZO,JO,QO,eE,tE;function rE(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 nE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rE(Object(r),!0).forEach(function(n){G5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G5(e,t,r){return(t=X5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Z5(e,"string");return typeof t=="symbol"?t:t+""}function Z5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ff(){return ff=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},ff.apply(null,arguments)}function _s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var iE=(e,t,r,n,i)=>{var o=r-n,a;return a=Ee(ZO||(ZO=_s(["M ",",",""])),e,t),a+=Ee(JO||(JO=_s(["L ",",",""])),e+r,t),a+=Ee(QO||(QO=_s(["L ",",",""])),e+r-o/2,t+i),a+=Ee(eE||(eE=_s(["L ",",",""])),e+r-o/2-n,t+i),a+=Ee(tE||(tE=_s(["L ",","," Z"])),e,t),a},eW={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},oE=e=>{var t=X(e,eW),{x:r,y:n,upperWidth:i,lowerWidth:o,height:a,className:s}=t,{animationEasing:l,animationDuration:u,animationBegin:c,isUpdateAnimationActive:f}=t,d=ia(null),[p,m]=Q5(-1),v=ia(i),y=ia(o),h=ia(a),g=ia(r),x=ia(n),b=nr(e,"trapezoid-");if(J5(()=>{if(d.current&&d.current.getTotalLength)try{var M=d.current.getTotalLength();M&&m(M)}catch(F){}},[]),r!==+r||n!==+n||i!==+i||o!==+o||a!==+a||i===0&&o===0||a===0)return null;var P=W("recharts-trapezoid",s);if(!f)return Is.createElement("g",null,Is.createElement("path",ff({},ge(t),{className:P,d:iE(r,n,i,o,a)})));var w=v.current,A=y.current,O=h.current,E=g.current,I=x.current,T="0px ".concat(p===-1?1:p,"px"),_="".concat(p,"px ").concat(p,"px"),N=ou(["strokeDasharray"],u,l);return Is.createElement(rr,{animationId:b,key:b,canBegin:p>0,duration:u,easing:l,isActive:f,begin:c},M=>{var F=ie(w,i,M),J=ie(A,o,M),U=ie(O,a,M),ne=ie(E,r,M),K=ie(I,n,M);d.current&&(v.current=F,y.current=J,h.current=U,g.current=ne,x.current=K);var te=M>0?{transition:N,strokeDasharray:_}:{strokeDasharray:T};return Is.createElement("path",ff({},ge(t),{className:P,d:iE(ne,K,F,J,U),ref:d,style:nE(nE({},te),t.style)}))})};var tW=["option","shapeType","activeClassName","inActiveClassName"];function rW(e,t){if(e==null)return{};var r,n,i=nW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nW(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 aE(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 df(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aE(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(e,t,r){return(t=oW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=aW(e,"string");return typeof t=="symbol"?t:t+""}function aW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lW(e,t){return df(df({},t),e)}function uW(e,t){return e==="symbols"}function sE(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return jr.createElement(fu,r);case"trapezoid":return jr.createElement(oE,r);case"sector":return jr.createElement(vu,r);case"symbols":if(uW(t,r))return jr.createElement(ba,r);break;case"curve":return jr.createElement(Sr,r);default:return null}}function cW(e){return lE(e)?e.props:e}function oa(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,o=rW(e,tW),a;if(lE(t))a=sW(t,df(df({},o),cW(t)));else if(typeof t=="function")a=t(o,o.index);else if((0,uE.default)(t)&&typeof t!="boolean"){var s=lW(t,o);a=jr.createElement(sE,{shapeType:r,elementProps:s})}else{var l=o;a=jr.createElement(sE,{shapeType:r,elementProps:l})}return o.isActive?jr.createElement(se,{className:n},a):jr.createElement(se,{className:i},a)}var Ts=(e,t,r)=>{var n=$();return(i,o)=>a=>{e==null||e(i,o,a),n(Oc({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Rs=e=>{var t=$();return(r,n)=>i=>{e==null||e(r,n,i),t(zS())}},ks=(e,t,r)=>{var n=$();return(i,o)=>a=>{e==null||e(i,o,a),n(FS({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};import{useLayoutEffect as cE,useRef as fW}from"react";function Rn(e){var{tooltipEntrySettings:t}=e,r=$(),n=ue(),i=fW(null);return cE(()=>{n||(i.current===null?r(NS(t)):i.current!==t&&r(jS({prev:i.current,next:t})),i.current=t)},[t,r,n]),cE(()=>()=>{i.current&&(r(LS(i.current)),i.current=null)},[r]),null}import{useLayoutEffect as pf,useRef as fE}from"react";function aa(e){var{legendPayload:t}=e,r=$(),n=ue(),i=fE(null);return pf(()=>{n||(i.current===null?r(Pm(t)):i.current!==t&&r(Sm({prev:i.current,next:t})),i.current=t)},[r,n,t]),pf(()=>()=>{i.current&&(r(Am(i.current)),i.current=null)},[r]),null}function dE(e){var{legendPayload:t}=e,r=$(),n=k(q),i=fE(null);return pf(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(Pm(t)):i.current!==t&&r(Sm({prev:i.current,next:t})),i.current=t)},[r,n,t]),pf(()=>()=>{i.current&&(r(Am(i.current)),i.current=null)},[r]),null}import*as vE from"react";import{createContext as pW,useContext as yle}from"react";import*as mf from"react";var Fh,dW=()=>{var[e]=mf.useState(()=>zr("uid-"));return e},pE=(Fh=mf.useId)!==null&&Fh!==void 0?Fh:dW;function mE(e,t){var r=pE();return t||(e?"".concat(e,"-").concat(r):r)}var mW=pW(void 0),kn=e=>{var{id:t,type:r,children:n}=e,i=mE("recharts-".concat(r),t);return vE.createElement(mW.Provider,{value:i},n(i))};import{memo as AE,useLayoutEffect as vf,useRef as OE}from"react";var vW={cartesianItems:[],polarItems:[]},hE=le({name:"graphicalItems",initialState:vW,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:me()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=st(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:me()},removeCartesianGraphicalItem:{reducer(e,t){var r=st(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:me()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:me()},removePolarGraphicalItem:{reducer(e,t){var r=st(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:me()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=st(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:me()}}}),{addCartesianGraphicalItem:yE,replaceCartesianGraphicalItem:gE,removeCartesianGraphicalItem:bE,addPolarGraphicalItem:xE,removePolarGraphicalItem:wE,replacePolarGraphicalItem:PE}=hE.actions,SE=hE.reducer;var hW=e=>{var t=$(),r=OE(null);return vf(()=>{r.current===null?t(yE(e)):r.current!==e&&t(gE({prev:r.current,next:e})),r.current=e},[t,e]),vf(()=>()=>{r.current&&(t(bE(r.current)),r.current=null)},[t]),null},sa=AE(hW),yW=e=>{var t=$(),r=OE(null);return vf(()=>{r.current===null?t(xE(e)):r.current!==e&&t(PE({prev:r.current,next:e})),r.current=e},[t,e]),vf(()=>()=>{r.current&&(t(wE(r.current)),r.current=null)},[t]),null},EE=AE(yW);var gW=["key"],bW=["onMouseEnter","onClick","onMouseLeave"],xW=["id"],wW=["id"];function Dn(){return Dn=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},Dn.apply(null,arguments)}function hf(e,t){if(e==null)return{};var r,n,i=PW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function PW(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 CE(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?CE(Object(r),!0).forEach(function(n){SW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SW(e,t,r){return(t=AW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AW(e){var t=OW(e,"string");return typeof t=="symbol"?t:t+""}function OW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _W(e){var t=Wh(()=>Cs(e.children,ea),[e.children]),r=k(n=>LO(n,e.id,t));return r==null?null:G.createElement(dE,{legendPayload:r})}function IW(e){if(!(e==null||typeof e=="boolean"||typeof e=="function")){if(G.isValidElement(e)){var t,r=(t=e.props)===null||t===void 0?void 0:t.fill;return typeof r=="string"?r:void 0}var{fill:n}=e;return typeof n=="string"?n:void 0}}var TW=G.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:o,fill:a,name:s,hide:l,tooltipType:u,id:c,activeShape:f}=e,d=IW(f),p=n.map(v=>{var y=v.tooltipPayload;return d==null||y==null?y:y.map(h=>De(De({},h),{},{color:d,fill:d}))}),m={dataDefinedOnItem:p,getPosition:v=>{var y;return(y=n[Number(v)])===null||y===void 0?void 0:y.tooltipPosition},settings:{stroke:i,strokeWidth:o,fill:a,dataKey:t,nameKey:r,name:Bt(s,t),hide:l,type:u,color:a,unit:"",graphicalItemId:c}};return G.createElement(Rn,{tooltipEntrySettings:m})}),RW=(e,t)=>e>t?"start":e<t?"end":"middle",kW=(e,t,r)=>typeof t=="function"?je(t(e),r,r*.8):je(t,r,r*.8),DW=(e,t,r)=>{var{top:n,left:i,width:o,height:a}=t,s=du(o,a),l=i+je(e.cx,o,o/2),u=n+je(e.cy,a,a/2),c=je(e.innerRadius,s,0),f=kW(r,e.outerRadius,s),d=e.maxRadius||Math.sqrt(o*o+a*a)/2;return{cx:l,cy:u,innerRadius:c,outerRadius:f,maxRadius:d}},MW=(e,t)=>{var r=xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},NW=(e,t)=>{if(G.isValidElement(e))return G.cloneElement(e,t);if(typeof e=="function")return e(t);var r=W("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=hf(t,gW);return G.createElement(Sr,Dn({},i,{type:"linear",className:r}))},jW=(e,t,r)=>{if(G.isValidElement(e))return G.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),G.isValidElement(n)))return n;var i=W("recharts-pie-label-text",Qc(e));return G.createElement(Ni,Dn({},t,{alignmentBaseline:"middle",className:i}),n)};function LW(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:o,dataKey:a}=r;if(!n||!i||!t)return null;var s=Te(r),l=Mt(i),u=Mt(o),c=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,p)=>{var m=(d.startAngle+d.endAngle)/2,v=Ae(d.cx,d.cy,d.outerRadius+c,m),y=De(De(De(De({},s),d),{},{stroke:"none"},l),{},{index:p,textAnchor:RW(v.x,d.cx)},v),h=De(De(De(De({},s),d),{},{fill:"none",stroke:d.fill},u),{},{index:p,points:[Ae(d.cx,d.cy,d.outerRadius,m),v],key:"line"});return G.createElement(Oe,{zIndex:ee.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(p)},G.createElement(se,null,o&&NW(o,h),jW(i,y,Y(d,a))))});return G.createElement(se,{className:"recharts-pie-labels"},f)}function BW(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?G.createElement(Tn,{label:i}):G.createElement(LW,{sectors:t,props:r,showLabels:n})}function zW(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:o,id:a}=e,s=k(sr),l=k(Xo),u=k(Nc),{onMouseEnter:c,onClick:f,onMouseLeave:d}=i,p=hf(i,bW),m=Ts(c,i.dataKey,a),v=Rs(d),y=ks(f,i.dataKey,a);return t==null||t.length===0?null:G.createElement(G.Fragment,null,t.map((h,g)=>{if((h==null?void 0:h.startAngle)===0&&(h==null?void 0:h.endAngle)===0&&t.length!==1)return null;var x=u==null||u===a,b=String(g)===s&&(l==null||i.dataKey===l)&&x,P=s?n:null,w=r&&b?r:P,A=De(De({},h),{},{stroke:h.stroke,tabIndex:-1,[Jl]:g,[Ql]:a});return G.createElement(se,Dn({key:"sector-".concat(h==null?void 0:h.startAngle,"-").concat(h==null?void 0:h.endAngle,"-").concat(h.midAngle,"-").concat(g),tabIndex:-1,className:"recharts-pie-sector"},Wr(p,h,g),{onMouseEnter:m(h,g),onMouseLeave:v(h,g),onClick:y(h,g)}),G.createElement(oa,Dn({option:o!=null?o:w,index:g,shapeType:"sector",isActive:b},A)))}))}function zO(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:o}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:u,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),p=MW(s,l),m=Math.abs(p),v=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,y=n.filter(O=>Y(O,u,0)!==0).length,h=(m>=360?y:y-1)*v,g=n.reduce((O,E)=>{var I=Y(E,u,0);return O+(R(I)?I:0)},0),x=d>0&&g>0&&n.some(O=>{var E=Y(O,u,0),I=(R(E)?E:0)/g;return E!==0&&I*m<d}),b=x?d:0,P=m-y*b-h,w;if(g>0){var A;w=n.map((O,E)=>{var I=Y(O,u,0),T=Y(O,c,E),_=DW(r,o,O),N=(R(I)?I:0)/g,M,F=De(De({},O),i&&i[E]&&i[E].props),J=F!=null&&"fill"in F&&typeof F.fill=="string"?F.fill:r.fill;E?M=A.endAngle+xe(p)*v*(I!==0?1:0):M=s;var U=M+xe(p)*((I!==0?b:0)+N*P),ne=(M+U)/2,K=(_.innerRadius+_.outerRadius)/2,te=[{name:T,value:I,payload:F,dataKey:u,type:f,color:J,fill:J,graphicalItemId:r.id}],Be=Ae(_.cx,_.cy,K,ne);return A=De(De(De(De({},r.presentationProps),{},{percent:N,cornerRadius:typeof a=="string"?parseFloat(a):a,name:T,tooltipPayload:te,midAngle:ne,middleRadius:K,tooltipPosition:Be},F),_),{},{value:I,dataKey:u,startAngle:M,endAngle:U,payload:F,paddingAngle:I!==0?xe(p)*v:0}),A})}return w}function FW(e){var{showLabels:t,sectors:r,children:n}=e,i=Wh(()=>!t||!r?[]:r.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[r,t]);return G.createElement(_O,{value:t?i:void 0},n)}function WW(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:o,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:u,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,p=nr(t,"recharts-pie-"),m=r.current,[v,y]=CW(!1),h=_E(()=>{typeof d=="function"&&d(),y(!1)},[d]),g=_E(()=>{typeof f=="function"&&f(),y(!0)},[f]);return G.createElement(FW,{showLabels:!v,sectors:i},G.createElement(rr,{animationId:p,begin:a,duration:s,isActive:o,easing:l,onAnimationStart:g,onAnimationEnd:h,key:p},x=>{var b,P=[],w=i&&i[0],A=(b=w==null?void 0:w.startAngle)!==null&&b!==void 0?b:0;return i==null||i.forEach((O,E)=>{var I=m&&m[E],T=E>0?(0,IE.default)(O,"paddingAngle",0):0;if(I){var _=ie(I.endAngle-I.startAngle,O.endAngle-O.startAngle,x),N=De(De({},O),{},{startAngle:A+T,endAngle:A+_+T});P.push(N),A=N.endAngle}else{var{endAngle:M,startAngle:F}=O,J=ie(0,M-F,x),U=De(De({},O),{},{startAngle:A+T,endAngle:A+J+T});P.push(U),A=U.endAngle}}),r.current=P,G.createElement(se,null,G.createElement(zW,{sectors:P,activeShape:u,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:n}))}),G.createElement(BW,{showLabels:!v,sectors:i,props:t}),t.children)}var VW={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:ee.area};function KW(e){var{id:t}=e,r=hf(e,xW),{hide:n,className:i,rootTabIndex:o}=e,a=Wh(()=>Cs(e.children,ea),[e.children]),s=k(c=>BO(c,t,a)),l=EW(null),u=W("recharts-pie",i);return n||s==null?(l.current=null,G.createElement(se,{tabIndex:o,className:u})):G.createElement(Oe,{zIndex:e.zIndex},G.createElement(TW,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),G.createElement(se,{tabIndex:o,className:u},G.createElement(WW,{props:De(De({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function $W(e){var t=X(e,VW),{id:r}=t,n=hf(t,wW),i=Te(n);return G.createElement(kn,{id:r,type:"pie"},o=>G.createElement(G.Fragment,null,G.createElement(EE,{type:"pie",id:o,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),G.createElement(_W,Dn({},n,{id:o})),G.createElement(KW,Dn({},n,{id:o}))))}var yf=$W;yf.displayName="Pie";import*as Ds from"react";import{cloneElement as ZW,isValidElement as JW}from"react";var HW=["points"];function TE(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 Vh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TE(Object(r),!0).forEach(function(n){qW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qW(e,t,r){return(t=UW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UW(e){var t=YW(e,"string");return typeof t=="symbol"?t:t+""}function YW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gf(){return gf=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},gf.apply(null,arguments)}function GW(e,t){if(e==null)return{};var r,n,i=XW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function XW(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 QW(e){var{option:t,dotProps:r,className:n}=e;if(JW(t))return ZW(t,r);if(typeof t=="function")return t(r);var i=W(n,typeof t!="boolean"?t.className:""),o=r!=null?r:{},{points:a}=o,s=GW(o,HW);return Ds.createElement(Xc,gf({},s,{className:i}))}function eV(e,t){return e==null?!1:t?!0:e.length===1}function bf(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:o,baseProps:a,needClip:s,clipPathId:l,zIndex:u=ee.scatter}=e;if(!eV(t,r))return null;var c=na(r),f=Wy(r),d=t.map((m,v)=>{var y,h,g=Vh(Vh(Vh({r:3},a),f),{},{index:v,cx:(y=m.x)!==null&&y!==void 0?y:void 0,cy:(h=m.y)!==null&&h!==void 0?h:void 0,dataKey:o,value:m.value,payload:m.payload,points:t});return Ds.createElement(QW,{key:"dot-".concat(v),option:r,dotProps:g,className:i})}),p={};return s&&l!=null&&(p.clipPath="url(#clipPath-".concat(c?"":"dots-").concat(l,")")),Ds.createElement(Oe,{zIndex:u},Ds.createElement(se,gf({className:n},p),d))}import*as Ms from"react";import{cloneElement as lV,isValidElement as uV}from"react";function RE(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 kE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RE(Object(r),!0).forEach(function(n){tV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tV(e,t,r){return(t=rV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rV(e){var t=nV(e,"string");return typeof t=="symbol"?t:t+""}function nV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kh=0,iV={xAxis:{},yAxis:{},zAxis:{}},DE=le({name:"cartesianAxis",initialState:iV,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:me()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:me()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:me()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:me()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:me()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:me()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:me()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:me()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:me()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var o,a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-((o=a[0])!==null&&o!==void 0?o:0))<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=kE(kE({},i),{},{width:n,widthHistory:s})}}}}),{addXAxis:ME,replaceXAxis:NE,removeXAxis:jE,addYAxis:LE,replaceYAxis:BE,removeYAxis:zE,addZAxis:due,replaceZAxis:pue,removeZAxis:mue,updateYAxisWidth:FE}=DE.actions,WE=DE.reducer;var VE=S([ve],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right}));var KE=S([VE,pt,mt],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});var Mn=()=>k(KE),$E=()=>k(QS);function HE(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 $h(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HE(Object(r),!0).forEach(function(n){oV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oV(e,t,r){return(t=aV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aV(e){var t=sV(e,"string");return typeof t=="symbol"?t:t+""}function sV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cV=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:o,clipPath:a}=e;if(i===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:o,cx:t.x,cy:t.y,r:4,fill:n!=null?n:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=$h($h($h({},s),Mt(i)),io(i)),u;return uV(i)?u=lV(i,l):typeof i=="function"?u=i(l):u=Ms.createElement(Xc,l),Ms.createElement(se,{className:"recharts-active-dot",clipPath:a},u)};function Ns(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:o,zIndex:a=ee.activeDot}=e,s=k(sr),l=$E();if(t==null||l==null)return null;var u=t.find(c=>l.includes(c.payload));return Q(u)?null:Ms.createElement(Oe,{zIndex:a},Ms.createElement(cV,{point:u,childIndex:Number(s),mainColor:r,dataKey:i,activeDot:n,clipPath:o}))}var qE=(e,t,r)=>{var n=r!=null?r:e;if(!Q(n))return je(n,t,0)},UE=(e,t,r)=>{var n={},i=e.filter(gi),o=e.filter(u=>u.stackId==null),a=i.reduce((u,c)=>{var f=u[c.stackId];return f==null&&(f=[]),f.push(c),u[c.stackId]=f,u},n),s=Object.entries(a).map(u=>{var c,[f,d]=u,p=d.map(v=>v.dataKey),m=qE(t,r,(c=d[0])===null||c===void 0?void 0:c.barSize);return{stackId:f,dataKeys:p,barSize:m}}),l=o.map(u=>{var c=[u.dataKey].filter(d=>d!=null),f=qE(t,r,u.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...s,...l]};function YE(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 xf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(r),!0).forEach(function(n){fV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fV(e,t,r){return(t=dV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dV(e){var t=pV(e,"string");return typeof t=="symbol"?t:t+""}function pV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mV(e,t,r,n,i){var o,a=n.length;if(!(a<1)){var s=je(e,r,0,!0),l,u=[];if(V((o=n[0])===null||o===void 0?void 0:o.barSize)){var c=!1,f=r/a,d=n.reduce((g,x)=>g+(x.barSize||0),0);d+=(a-1)*s,d>=r&&(d-=(a-1)*s,s=0),d>=r&&f>0&&(c=!0,f*=.9,d=a*f);var p=(r-d)/2>>0,m={offset:p-s,size:0};l=n.reduce((g,x)=>{var b,P={stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:m.offset+m.size+s,size:c?f:(b=x.barSize)!==null&&b!==void 0?b:0}},w=[...g,P];return m=P.position,w},u)}else{var v=je(t,r,0,!0);r-2*v-(a-1)*s<=0&&(s=0);var y=(r-2*v-(a-1)*s)/a;y>1&&(y>>=0);var h=V(i)?Math.min(y,i):y;l=n.reduce((g,x,b)=>[...g,{stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:v+(y+s)*b+(y-h)/2,size:h}}],u)}return l}}var GE=(e,t,r,n,i,o,a)=>{var s=Q(a)?t:a,l=mV(r,n,i!==o?i:o,e,s);return i!==o&&l!=null&&(l=l.map(u=>xf(xf({},u),{},{position:xf(xf({},u.position),{},{offset:u.position.offset-i/2})}))),l};var XE=(e,t)=>{var r=hn(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:o}=i;if(o)return o.find(a=>a.key===r)}}}};var ZE=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function JE(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&V(e.zIndex)?e.zIndex:t}import{useEffect as vV}from"react";var wf=e=>{var{chartData:t}=e,r=$(),n=ue();return vV(()=>n?()=>{}:(r(Eh(t)),()=>{r(Eh(void 0))}),[t,r,n]),null};var QE={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},e1=le({name:"brush",initialState:QE,reducers:{setBrushSettings(e,t){return t.payload==null?QE:t.payload}}}),{setBrushSettings:rce}=e1.actions,t1=e1.reducer;function hV(e){return(e%180+180)%180}var r1=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=hV(i),a=o*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)};var yV={dots:[],areas:[],lines:[]},n1=le({name:"referenceElements",initialState:yV,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=st(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=st(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=st(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:ace,removeDot:sce,addArea:lce,removeArea:uce,addLine:cce,removeLine:fce}=n1.actions,i1=n1.reducer;import*as js from"react";import{createContext as gV,useContext as mce,useState as bV}from"react";var xV=gV(void 0),o1=e=>{var{children:t}=e,[r]=bV("".concat(zr("recharts"),"-clip")),n=Mn();if(n==null)return null;var{x:i,y:o,width:a,height:s}=n;return js.createElement(xV.Provider,{value:r},js.createElement("defs",null,js.createElement("clipPath",{id:r},js.createElement("rect",{x:i,y:o,height:s,width:a}))),t)};var Hh=it(no());import*as Ie from"react";import{useState as g1,useRef as DV,useCallback as MV,forwardRef as b1,useImperativeHandle as NV,useEffect as jV}from"react";function Pf(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function a1(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return r1(n,r)}function s1(e,t,r){var n=r==="width",{x:i,y:o,width:a,height:s}=e;return t===1?{start:n?i:o,end:n?i+a:o+s}:{start:n?i+a:o+s,end:n?i:o}}function ji(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function l1(e,t){return Pf(e,t+1)}function u1(e,t,r,n,i){for(var o=(n||[]).slice(),{start:a,end:s}=t,l=0,u=1,c=a,f=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:Pf(n,u)};var v=l,y,h=()=>(y===void 0&&(y=r(m,v)),y),g=m.coordinate,x=l===0||ji(e,g,h,c,s);x||(l=0,c=a,u+=1),x&&(c=g+e*(h()/2+i),l+=u)},d;u<=o.length;)if(d=f(),d)return d.v;return[]}function c1(e,t,r,n,i){var o=(n||[]).slice(),a=o.length;if(a===0)return[];for(var{start:s,end:l}=t,u=1;u<=a;u++){for(var c=(a-1)%u,f=s,d=!0,p=function(){var b=n[v];if(b==null)return 0;var P=v,w,A=()=>(w===void 0&&(w=r(b,P)),w),O=b.coordinate,E=v===c||ji(e,O,A,f,l);if(!E)return d=!1,1;E&&(f=O+e*(A()/2+i))},m,v=c;v<a&&(m=p(),!(m!==0&&m===1));v+=u);if(d){for(var y=[],h=c;h<a;h+=u){var g=n[h];g!=null&&y.push(g)}return y}}return[]}function f1(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 ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f1(Object(r),!0).forEach(function(n){wV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wV(e,t,r){return(t=PV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PV(e){var t=SV(e,"string");return typeof t=="symbol"?t:t+""}function SV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AV(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,{start:s}=t,{end:l}=t,u=function(d){var p=o[d];if(p==null)return 1;var m=p,v,y=()=>(v===void 0&&(v=r(p,d)),v);if(d===a-1){var h=e*(m.coordinate+e*y()/2-l);o[d]=m=ht(ht({},m),{},{tickCoord:h>0?m.coordinate-h*e:m.coordinate})}else o[d]=m=ht(ht({},m),{},{tickCoord:m.coordinate});if(m.tickCoord!=null){var g=ji(e,m.tickCoord,y,s,l);g&&(l=m.tickCoord-e*(y()/2+i),o[d]=ht(ht({},m),{},{isShow:!0}))}},c=a-1;c>=0;c--)u(c);return o}function OV(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,{start:l,end:u}=t;if(o){var c=n[s-1];if(c!=null){var f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);if(a[s-1]=c=ht(ht({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),c.tickCoord!=null){var p=ji(e,c.tickCoord,()=>f,l,u);p&&(u=c.tickCoord-e*(f/2+i),a[s-1]=ht(ht({},c),{},{isShow:!0}))}}}for(var m=o?s-1:s,v=function(g){var x=a[g];if(x==null)return 1;var b=x,P,w=()=>(P===void 0&&(P=r(x,g)),P);if(g===0){var A=e*(b.coordinate-e*w()/2-l);a[g]=b=ht(ht({},b),{},{tickCoord:A<0?b.coordinate-A*e:b.coordinate})}else a[g]=b=ht(ht({},b),{},{tickCoord:b.coordinate});if(b.tickCoord!=null){var O=ji(e,b.tickCoord,w,l,u);O&&(l=b.tickCoord+e*(w()/2+i),a[g]=ht(ht({},b),{},{isShow:!0}))}},y=0;y<m;y++)v(y);return a}function Ls(e,t,r){var{tick:n,ticks:i,viewBox:o,minTickGap:a,orientation:s,interval:l,tickFormatter:u,unit:c,angle:f}=e;if(!i||!i.length||!n)return[];if(R(l)||tr.isSsr){var d;return(d=l1(i,R(l)?l:0))!==null&&d!==void 0?d:[]}var p=[],m=s==="top"||s==="bottom"?"width":"height",v=c&&m==="width"?Mi(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(P,w)=>{var A=typeof u=="function"?u(P.value,w):P.value;return m==="width"?a1(Mi(A,{fontSize:t,letterSpacing:r}),v,f):Mi(A,{fontSize:t,letterSpacing:r})[m]},h=i[0],g=i[1],x=i.length>=2&&h!=null&&g!=null?xe(g.coordinate-h.coordinate):1,b=s1(o,x,m);return l==="equidistantPreserveStart"?u1(x,b,y,i,a):l==="equidistantPreserveEnd"?c1(x,b,y,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=OV(x,b,y,i,a,l==="preserveStartEnd"):p=AV(x,b,y,i,a),p.filter(P=>P.isShow))}var d1=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){Array.from(t).forEach(c=>{if(c){var f=c.getBoundingClientRect();f.width>a&&(a=f.width)}});var s=r?r.getBoundingClientRect().width:0,l=i+o,u=a+l+s+(r?n:0);return Math.round(u)}return 0};var EV={xAxis:{},yAxis:{}},p1=le({name:"renderedTicks",initialState:EV,reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:m1,removeRenderedTicks:v1}=p1.actions,h1=p1.reducer;var CV=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function _V(e,t){if(e==null)return{};var r,n,i=IV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function IV(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 Li(){return Li=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},Li.apply(null,arguments)}function y1(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 We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y1(Object(r),!0).forEach(function(n){TV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TV(e,t,r){return(t=RV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ur={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:ee.axis};function LV(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var u=We(We(We({},l),Te(s)),{},{fill:"none"});if(o==="top"||o==="bottom"){var c=+(o==="top"&&!a||o==="bottom"&&a);u=We(We({},u),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var f=+(o==="left"&&!a||o==="right"&&a);u=We(We({},u),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return Ie.createElement("line",Li({},u,{className:W("recharts-cartesian-axis-line",(0,Hh.default)(s,"className"))}))}function BV(e,t,r,n,i,o,a,s,l){var u,c,f,d,p,m,v=s?-1:1,y=e.tickSize||a,h=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=c=e.coordinate,d=r+ +!s*i,f=d-v*y,m=f-v*l,p=h;break;case"left":f=d=e.coordinate,c=t+ +!s*n,u=c-v*y,p=u-v*l,m=h;break;case"right":f=d=e.coordinate,c=t+ +s*n,u=c+v*y,p=u+v*l,m=h;break;default:u=c=e.coordinate,d=r+ +s*i,f=d+v*y,m=f+v*l,p=h;break}return{line:{x1:u,y1:f,x2:c,y2:d},tick:{x:p,y:m}}}function zV(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function FV(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function WV(e){var{option:t,tickProps:r,value:n}=e,i,o=W(r.className,"recharts-cartesian-axis-tick-value");if(Ie.isValidElement(t))i=Ie.cloneElement(t,We(We({},r),{},{className:o}));else if(typeof t=="function")i=t(We(We({},r),{},{className:o}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=W(a,Qc(t))),i=Ie.createElement(Ni,Li({},r,{className:a}),n)}return i}function VV(e){var{ticks:t,axisType:r,axisId:n}=e,i=$();return jV(()=>{if(n==null||r==null)return xt;var o=t.map(a=>({value:a.value,coordinate:a.coordinate,offset:a.offset,index:a.index}));return i(m1({ticks:o,axisId:n,axisType:r})),()=>{i(v1({axisId:n,axisType:r}))}},[i,t,n,r]),null}var KV=b1((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:a,unit:s,padding:l,tickTextProps:u,orientation:c,mirror:f,x:d,y:p,width:m,height:v,tickSize:y,tickMargin:h,fontSize:g,letterSpacing:x,getTicksConfig:b,events:P,axisType:w,axisId:A}=e,O=Ls(We(We({},b),{},{ticks:r}),g,x),E=Te(b),I=Mt(n),T=Hc(E.textAnchor)?E.textAnchor:zV(c,f),_=FV(c,f),N={};typeof i=="object"&&(N=i);var M=We(We({},E),{},{fill:"none"},N),F=O.map(ne=>We({entry:ne},BV(ne,d,p,m,v,c,y,f,h))),J=F.map(ne=>{var{entry:K,line:te}=ne;return Ie.createElement(se,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(K.value,"-").concat(K.coordinate,"-").concat(K.tickCoord)},i&&Ie.createElement("line",Li({},M,te,{className:W("recharts-cartesian-axis-tick-line",(0,Hh.default)(i,"className"))})))}),U=F.map((ne,K)=>{var te,Be,{entry:Se,tick:gt}=ne,lt=We(We(We(We({verticalAnchor:_},E),{},{textAnchor:T,stroke:"none",fill:o},gt),{},{index:K,payload:Se,visibleTicksCount:O.length,tickFormatter:a,padding:l},u),{},{angle:(te=(Be=u==null?void 0:u.angle)!==null&&Be!==void 0?Be:E.angle)!==null&&te!==void 0?te:0}),pr=We(We({},lt),I);return Ie.createElement(se,Li({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(Se.value,"-").concat(Se.coordinate,"-").concat(Se.tickCoord)},Wr(P,Se,K)),n&&Ie.createElement(WV,{option:n,tickProps:pr,value:"".concat(typeof a=="function"?a(Se.value,K):Se.value).concat(s||"")}))});return Ie.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(w,"-ticks")},Ie.createElement(VV,{ticks:O,axisId:A,axisType:w}),U.length>0&&Ie.createElement(Oe,{zIndex:ee.label},Ie.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(w,"-tick-labels"),ref:t},U)),J.length>0&&Ie.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(w,"-tick-lines")},J))}),$V=b1((e,t)=>{var{axisLine:r,width:n,height:i,className:o,hide:a,ticks:s,axisType:l,axisId:u}=e,c=_V(e,CV),[f,d]=g1(""),[p,m]=g1(""),v=DV(null);NV(t,()=>({getCalculatedWidth:()=>{var h;return d1({ticks:v.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var y=MV(h=>{if(h){var g=h.getElementsByClassName("recharts-cartesian-axis-tick-value");v.current=g;var x=g[0];if(x){var b=window.getComputedStyle(x),P=b.fontSize,w=b.letterSpacing;(P!==f||w!==p)&&(d(P),m(w))}}},[f,p]);return a||n!=null&&n<=0||i!=null&&i<=0?null:Ie.createElement(Oe,{zIndex:e.zIndex},Ie.createElement(se,{className:W("recharts-cartesian-axis",o)},Ie.createElement(LV,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Te(e)}),Ie.createElement(KV,{ref:y,axisType:l,events:c,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:u}),Ie.createElement(xO,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},Ie.createElement(PO,{label:e.label,labelRef:e.labelRef}),e.children)))}),Bs=Ie.forwardRef((e,t)=>{var r=X(e,ur);return Ie.createElement($V,Li({},r,{ref:t}))});Bs.displayName="CartesianAxis";import*as Ve from"react";var HV=["x1","y1","x2","y2","key"],qV=["offset"],UV=["xAxisId","yAxisId"],YV=["xAxisId","yAxisId"];function x1(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 yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x1(Object(r),!0).forEach(function(n){GV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GV(e,t,r){return(t=XV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XV(e){var t=ZV(e,"string");return typeof t=="symbol"?t:t+""}function ZV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bi(){return Bi=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},Bi.apply(null,arguments)}function Sf(e,t){if(e==null)return{};var r,n,i=JV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function JV(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 QV=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:o,height:a,ry:s}=e;return Ve.createElement("rect",{x:n,y:i,ry:s,width:o,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function w1(e){var{option:t,lineItemProps:r}=e,n;if(Ve.isValidElement(t))n=Ve.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:o,y1:a,x2:s,y2:l,key:u}=r,c=Sf(r,HV),f=(i=Te(c))!==null&&i!==void 0?i:{},{offset:d}=f,p=Sf(f,qV);n=Ve.createElement("line",Bi({},p,{x1:o,y1:a,x2:s,y2:l,fill:"none",key:u}))}return n}function eK(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=Sf(e,UV),l=i.map((u,c)=>{var f=yt(yt({},s),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Ve.createElement(w1,{key:"line-".concat(c),option:n,lineItemProps:f})});return Ve.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function tK(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:o,yAxisId:a}=e,s=Sf(e,YV),l=i.map((u,c)=>{var f=yt(yt({},s),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Ve.createElement(w1,{option:n,lineItemProps:f,key:"line-".concat(c)})});return Ve.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function rK(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:o,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var u=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==u[0]&&u.unshift(0);var c=u.map((f,d)=>{var p=u[d+1],m=p==null,v=m?i+a-f:p-f;if(v<=0)return null;var y=d%t.length;return Ve.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:v,width:o,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Ve.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function nK(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:o,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var u=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==u[0]&&u.unshift(0);var c=u.map((f,d)=>{var p=u[d+1],m=p==null,v=m?i+a-f:p-f;if(v<=0)return null;var y=d%r.length;return Ve.createElement("rect",{key:"react-".concat(d),x:f,y:o,width:v,height:s,stroke:"none",fill:r[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Ve.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var iK=(e,t)=>{var{xAxis:r,width:n,height:i,offset:o}=e;return um(Ls(yt(yt(yt({},ur),r),{},{ticks:cm(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,t)},oK=(e,t)=>{var{yAxis:r,width:n,height:i,offset:o}=e;return um(Ls(yt(yt(yt({},ur),r),{},{ticks:cm(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,t)},aK={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ee.grid};function Nn(e){var t=yo(),r=go(),n=tu(),i=yt(yt({},X(e,aK)),{},{x:R(e.x)?e.x:n.left,y:R(e.y)?e.y:n.top,width:R(e.width)?e.width:n.width,height:R(e.height)?e.height:n.height}),{xAxisId:o,yAxisId:a,x:s,y:l,width:u,height:c,syncWithTicks:f,horizontalValues:d,verticalValues:p}=i,m=ue(),v=k(E=>ih(E,"xAxis",o,m)),y=k(E=>ih(E,"yAxis",a,m));if(!Ct(u)||!Ct(c)||!R(s)||!R(l))return null;var h=i.verticalCoordinatesGenerator||iK,g=i.horizontalCoordinatesGenerator||oK,{horizontalPoints:x,verticalPoints:b}=i;if((!x||!x.length)&&typeof g=="function"){var P=d&&d.length,w=g({yAxis:y?yt(yt({},y),{},{ticks:P?d:y.ticks}):void 0,width:t!=null?t:u,height:r!=null?r:c,offset:n},P?!0:f);ho(Array.isArray(w),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof w,"]")),Array.isArray(w)&&(x=w)}if((!b||!b.length)&&typeof h=="function"){var A=p&&p.length,O=h({xAxis:v?yt(yt({},v),{},{ticks:A?p:v.ticks}):void 0,width:t!=null?t:u,height:r!=null?r:c,offset:n},A?!0:f);ho(Array.isArray(O),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(b=O)}return Ve.createElement(Oe,{zIndex:i.zIndex},Ve.createElement("g",{className:"recharts-cartesian-grid"},Ve.createElement(QV,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),Ve.createElement(rK,Bi({},i,{horizontalPoints:x})),Ve.createElement(nK,Bi({},i,{verticalPoints:b})),Ve.createElement(eK,Bi({},i,{offset:n,horizontalPoints:x,xAxis:v,yAxis:y})),Ve.createElement(tK,Bi({},i,{offset:n,verticalPoints:b,xAxis:v,yAxis:y}))))}Nn.displayName="CartesianGrid";import*as oe from"react";import{Component as OK,useCallback as k1,useMemo as EK,useRef as zs,useState as CK}from"react";import*as A1 from"react";import{createContext as fK,useContext as gfe,useEffect as bfe,useRef as xfe}from"react";var sK={},P1=le({name:"errorBars",initialState:sK,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(o=>o.dataKey===n.dataKey&&o.direction===n.direction?i:o))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:pfe,replaceErrorBar:mfe,removeErrorBar:vfe}=P1.actions,S1=P1.reducer;var lK=["children"];function uK(e,t){if(e==null)return{};var r,n,i=cK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cK(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 dK={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},pK=fK(dK);function Af(e){var{children:t}=e,r=uK(e,lK);return A1.createElement(pK.Provider,{value:r},t)}import*as qh from"react";function zi(e,t){var r,n,i=k(u=>Dr(u,e)),o=k(u=>Mr(u,t)),a=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:$e.allowDataOverflow,s=(n=o==null?void 0:o.allowDataOverflow)!==null&&n!==void 0?n:He.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function la(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Mn(),{needClipX:o,needClipY:a,needClip:s}=zi(t,r);if(!s||!i)return null;var{x:l,y:u,width:c,height:f}=i;return qh.createElement("clipPath",{id:"clipPath-".concat(n)},qh.createElement("rect",{x:o?l:l-c/2,y:a?u:u-f/2,width:o?c:c*2,height:a?f:f*2}))}var O1=(e,t,r,n)=>qt(e,"xAxis",t,n),E1=(e,t,r,n)=>Ht(e,"xAxis",t,n),C1=(e,t,r,n)=>qt(e,"yAxis",r,n),_1=(e,t,r,n)=>Ht(e,"yAxis",r,n),mK=S([q,O1,C1,E1,_1],(e,t,r,n,i)=>dt(e,"xAxis")?er(t,n,!1):er(r,i,!1)),vK=(e,t,r,n,i)=>i;function hK(e){return e.type==="line"}var yK=S([Sn,vK],(e,t)=>e.filter(hK).find(r=>r.id===t)),I1=S([q,O1,C1,E1,_1,yK,mK,fi],(e,t,r,n,i,o,a,s)=>{var{chartData:l,dataStartIndex:u,dataEndIndex:c}=s;if(!(o==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:d}=o,p;if(d!=null&&d.length>0?p=d:p=l==null?void 0:l.slice(u,c+1),p!=null)return T1({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:a,displayedData:p})}});function Of(e){var t=Mt(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:o}=t,a=Number(i),s=Number(o);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var gK=["id"],bK=["type","layout","connectNulls","needClip","shape"],xK=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Fs(){return Fs=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},Fs.apply(null,arguments)}function R1(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 Lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(r),!0).forEach(function(n){wK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wK(e,t,r){return(t=PK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PK(e){var t=SK(e,"string");return typeof t=="symbol"?t:t+""}function SK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yh(e,t){if(e==null)return{};var r,n,i=AK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AK(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 _K=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Bt(r,t),payload:e}]},IK=oe.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:s,unit:l,tooltipType:u,id:c}=e,f={dataDefinedOnItem:r,getPosition:xt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Bt(a,t),hide:s,type:u,color:n,unit:l,graphicalItemId:c}};return oe.createElement(Rn,{tooltipEntrySettings:f})}),M1=(e,t)=>"".concat(t,"px ").concat(e,"px");function TK(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}var RK=(e,t,r)=>{var n=r.reduce((d,p)=>d+p,0);if(!n)return M1(t,e);for(var i=Math.floor(e/n),o=e%n,a=[],s=0,l=0;s<r.length;l+=(u=r[s])!==null&&u!==void 0?u:0,++s){var u,c=r[s];if(c!=null&&l+c>o){a=[...r.slice(0,s),o-l];break}}var f=a.length%2===0?[0,t]:[t];return[...TK(r,i),...a,...f].map(d=>"".concat(d,"px")).join(", ")};function kK(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:o,needClip:a}=n,{id:s}=n,l=Yh(n,gK),u=Te(l);return oe.createElement(bf,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:u,needClip:a,clipPathId:t})}function DK(e){var{showLabels:t,children:r,points:n}=e,i=EK(()=>n==null?void 0:n.map(o=>{var a,s,l={x:(a=o.x)!==null&&a!==void 0?a:0,y:(s=o.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Lr(Lr({},l),{},{value:o.value,payload:o.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return oe.createElement(ra,{value:t?i:void 0},r)}function D1(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:o}=e,{type:a,layout:s,connectNulls:l,needClip:u,shape:c}=o,f=Yh(o,bK),d=Lr(Lr({},ge(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:i!=null?i:o.strokeDasharray});return oe.createElement(oe.Fragment,null,(n==null?void 0:n.length)>1&&oe.createElement(oa,Fs({shapeType:"curve",option:c},d,{pathRef:r})),oe.createElement(kK,{points:n,clipPathId:t,props:o}))}function MK(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}function NK(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:u,animationDuration:c,animationEasing:f,animateNewValues:d,width:p,height:m,onAnimationEnd:v,onAnimationStart:y}=r,h=i.current,g=nr(a,"recharts-line-"),x=zs(g),[b,P]=CK(!1),w=!b,A=k1(()=>{typeof v=="function"&&v(),P(!1)},[v]),O=k1(()=>{typeof y=="function"&&y(),P(!0)},[y]),E=MK(n.current),I=zs(0);x.current!==g&&(I.current=o.current,x.current=g);var T=I.current;return oe.createElement(DK,{points:a,showLabels:w},r.children,oe.createElement(rr,{animationId:g,begin:u,duration:c,isActive:l,easing:f,onAnimationEnd:A,onAnimationStart:O,key:g},_=>{var N=ie(T,E+T,_),M=Math.min(N,E),F;if(l)if(s){var J="".concat(s).split(/[,\s]+/gim).map(K=>parseFloat(K));F=RK(M,E,J)}else F=M1(E,M);else F=s==null?void 0:String(s);if(_>0&&E>0&&(i.current=a,o.current=Math.max(o.current,M)),h){var U=h.length/a.length,ne=_===1?a:a.map((K,te)=>{var Be=Math.floor(te*U);if(h[Be]){var Se=h[Be];return Lr(Lr({},K),{},{x:ie(Se.x,K.x,_),y:ie(Se.y,K.y,_)})}return d?Lr(Lr({},K),{},{x:ie(p*2,K.x,_),y:ie(m/2,K.y,_)}):Lr(Lr({},K),{},{x:K.x,y:K.y})});return i.current=ne,oe.createElement(D1,{props:r,points:ne,clipPathId:t,pathRef:n,strokeDasharray:F})}return oe.createElement(D1,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:F})}),oe.createElement(Tn,{label:r.label}))}function jK(e){var{clipPathId:t,props:r}=e,n=zs(null),i=zs(0),o=zs(null);return oe.createElement(NK,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:o})}var LK=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:Y(e.payload,t)}},Uh=class extends OK{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:o,yAxisId:a,top:s,left:l,width:u,height:c,id:f,needClip:d,zIndex:p}=this.props;if(t)return null;var m=W("recharts-line",i),v=f,{r:y,strokeWidth:h}=Of(r),g=na(r),x=y*2+h,b=d?"url(#clipPath-".concat(g?"":"dots-").concat(v,")"):void 0;return oe.createElement(Oe,{zIndex:p},oe.createElement(se,{className:m},d&&oe.createElement("defs",null,oe.createElement(la,{clipPathId:v,xAxisId:o,yAxisId:a}),!g&&oe.createElement("clipPath",{id:"clipPath-dots-".concat(v)},oe.createElement("rect",{x:l-x/2,y:s-x/2,width:u+x,height:c+x}))),oe.createElement(Af,{xAxisId:o,yAxisId:a,data:n,dataPointFormatter:LK,errorBarOffset:0},oe.createElement(jK,{props:this.props,clipPathId:v}))),oe.createElement(Ns,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:b}))}},N1={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ee.line,type:"linear"};function BK(e){var t=X(e,N1),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:s,dot:l,hide:u,isAnimationActive:c,label:f,legendType:d,xAxisId:p,yAxisId:m,id:v}=t,y=Yh(t,xK),{needClip:h}=zi(p,m),g=Mn(),x=_t(),b=ue(),P=k(I=>I1(I,p,m,b,v));if(x!=="horizontal"&&x!=="vertical"||P==null||g==null)return null;var{height:w,width:A,x:O,y:E}=g;return oe.createElement(Uh,Fs({},y,{id:v,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:c,hide:u,label:f,legendType:d,xAxisId:p,yAxisId:m,points:P,layout:x,height:w,width:A,left:O,top:E,needClip:h}))}function T1(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((u,c)=>{var f=Y(u,a);if(t==="horizontal"){var d=co({axis:r,ticks:i,bandSize:s,entry:u,index:c}),p=Q(f)?null:n.scale.map(f);return{x:d,y:p!=null?p:null,value:f,payload:u}}var m=Q(f)?null:r.scale.map(f),v=co({axis:n,ticks:o,bandSize:s,entry:u,index:c});return m==null||v==null?null:{x:m,y:v,value:f,payload:u}}).filter(Boolean)}function zK(e){var t=X(e,N1),r=ue();return oe.createElement(kn,{id:t.id,type:"line"},n=>oe.createElement(oe.Fragment,null,oe.createElement(aa,{legendPayload:_K(t)}),oe.createElement(IK,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),oe.createElement(sa,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),oe.createElement(BK,Fs({},t,{id:n}))))}var Ef=oe.memo(zK,It);Ef.displayName="Line";import*as H from"react";import{PureComponent as ZK,useCallback as H1,useMemo as JK,useRef as q1,useState as QK}from"react";function cr(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:Kh}function fr(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:Kh}var j1=(e,t,r)=>qt(e,"xAxis",cr(e,t),r),L1=(e,t,r)=>Ht(e,"xAxis",cr(e,t),r),B1=(e,t,r)=>qt(e,"yAxis",fr(e,t),r),z1=(e,t,r)=>Ht(e,"yAxis",fr(e,t),r),FK=S([q,j1,B1,L1,z1],(e,t,r,n,i)=>dt(e,"xAxis")?er(t,n,!1):er(r,i,!1)),WK=(e,t)=>t,F1=S([Sn,WK],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),W1=e=>{var t=q(e),r=dt(t,"xAxis");return r?"yAxis":"xAxis"},VK=(e,t)=>{var r=W1(e);return r==="yAxis"?fr(e,t):cr(e,t)},KK=(e,t,r)=>qo(e,W1(e),VK(e,t),r),$K=S([F1,KK],(e,t)=>{var r;if(!(e==null||t==null)){var{stackId:n}=e,i=hn(e);if(!(n==null||i==null)){var o=(r=t[n])===null||r===void 0?void 0:r.stackedData,a=o==null?void 0:o.find(s=>s.key===i);if(a!=null)return a.map(s=>[s[0],s[1]])}}}),V1=S([q,j1,B1,L1,z1,$K,hu,FK,F1,Kw],(e,t,r,n,i,o,a,s,l,u)=>{var{chartData:c,dataStartIndex:f,dataEndIndex:d}=a;if(!(l==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||s==null)){var{data:p}=l,m;if(p&&p.length>0?m=p:m=c==null?void 0:c.slice(f,d+1),m!=null)return K1({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:f,areaSettings:l,stackedData:o,displayedData:m,chartBaseValue:u,bandSize:s})}});var HK=["id"],qK=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Fi(){return Fi=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},Fi.apply(null,arguments)}function Y1(e,t){if(e==null)return{};var r,n,i=UK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function UK(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 $1(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 ua(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(r),!0).forEach(function(n){YK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YK(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GK(e){var t=XK(e,"string");return typeof t=="symbol"?t:t+""}function XK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cf(e,t){return e&&e!=="none"?e:t}var e3=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:o,hide:a}=e;return[{inactive:a,dataKey:t,type:o,color:Cf(n,i),value:Bt(r,t),payload:e}]},t3=H.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:s,unit:l,tooltipType:u,id:c}=e,f={dataDefinedOnItem:r,getPosition:xt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Bt(a,t),hide:s,type:u,color:Cf(n,o),unit:l,graphicalItemId:c}};return H.createElement(Rn,{tooltipEntrySettings:f})});function r3(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:o,dataKey:a}=n,s=Te(n);return H.createElement(bf,{points:r,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:a,baseProps:s,needClip:i,clipPathId:t})}function n3(e){var{showLabels:t,children:r,points:n}=e,i=n.map(o=>{var a,s,l={x:(a=o.x)!==null&&a!==void 0?a:0,y:(s=o.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ua(ua({},l),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:l,fill:void 0})});return H.createElement(ra,{value:t?i:void 0},r)}function U1(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:o}=e,{layout:a,type:s,stroke:l,connectNulls:u,isRange:c}=o,{id:f}=o,d=Y1(o,HK),p=Te(d),m=ge(d);return H.createElement(H.Fragment,null,(t==null?void 0:t.length)>1&&H.createElement(se,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},H.createElement(Sr,Fi({},m,{id:f,points:t,connectNulls:u,type:s,baseLine:r,layout:a,stroke:"none",className:"recharts-area-area"})),l!=="none"&&H.createElement(Sr,Fi({},p,{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:t})),l!=="none"&&c&&Array.isArray(r)&&H.createElement(Sr,Fi({},p,{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:r}))),H.createElement(r3,{points:t,props:d,clipPathId:i}))}function i3(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,s=(t=o[0])===null||t===void 0?void 0:t.y,l=(r=o[o.length-1])===null||r===void 0?void 0:r.y;if(!V(s)||!V(l))return null;var u=n*Math.abs(s-l),c=Math.max(...o.map(f=>f.x||0));return R(i)?c=Math.max(i,c):i&&Array.isArray(i)&&i.length&&(c=Math.max(...i.map(f=>f.x||0),c)),R(c)?H.createElement("rect",{x:0,y:s<l?s:s-u,width:c+(a?parseInt("".concat(a),10):1),height:Math.floor(u)}):null}function o3(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,s=(t=o[0])===null||t===void 0?void 0:t.x,l=(r=o[o.length-1])===null||r===void 0?void 0:r.x;if(!V(s)||!V(l))return null;var u=n*Math.abs(s-l),c=Math.max(...o.map(f=>f.y||0));return R(i)?c=Math.max(i,c):i&&Array.isArray(i)&&i.length&&(c=Math.max(...i.map(f=>f.y||0),c)),R(c)?H.createElement("rect",{x:s<l?s:s-u,y:0,width:u,height:Math.floor(c+(a?parseInt("".concat(a),10):1))}):null}function a3(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:o}=e;return r==="vertical"?H.createElement(i3,{alpha:t,points:n,baseLine:i,strokeWidth:o}):H.createElement(o3,{alpha:t,points:n,baseLine:i,strokeWidth:o})}function s3(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o}=e,{points:a,baseLine:s,isAnimationActive:l,animationBegin:u,animationDuration:c,animationEasing:f,onAnimationStart:d,onAnimationEnd:p}=n,m=JK(()=>({points:a,baseLine:s}),[a,s]),v=nr(m,"recharts-area-"),y=bo(),[h,g]=QK(!1),x=!h,b=H1(()=>{typeof p=="function"&&p(),g(!1)},[p]),P=H1(()=>{typeof d=="function"&&d(),g(!0)},[d]);if(y==null)return null;var w=i.current,A=o.current;return H.createElement(n3,{showLabels:x,points:a},n.children,H.createElement(rr,{animationId:v,begin:u,duration:c,isActive:l,easing:f,onAnimationEnd:b,onAnimationStart:P,key:v},O=>{if(w){var E=w.length/a.length,I=O===1?a:a.map((_,N)=>{var M=Math.floor(N*E);if(w[M]){var F=w[M];return ua(ua({},_),{},{x:ie(F.x,_.x,O),y:ie(F.y,_.y,O)})}return _}),T;return R(s)?T=ie(A,s,O):Q(s)||et(s)?T=ie(A,0,O):T=s.map((_,N)=>{var M=Math.floor(N*E);if(Array.isArray(A)&&A[M]){var F=A[M];return ua(ua({},_),{},{x:ie(F.x,_.x,O),y:ie(F.y,_.y,O)})}return _}),O>0&&(i.current=I,o.current=T),H.createElement(U1,{points:I,baseLine:T,needClip:t,clipPathId:r,props:n})}return O>0&&(i.current=a,o.current=s),H.createElement(se,null,l&&H.createElement("defs",null,H.createElement("clipPath",{id:"animationClipPath-".concat(r)},H.createElement(a3,{alpha:O,points:a,baseLine:s,layout:y,strokeWidth:n.strokeWidth}))),H.createElement(se,{clipPath:"url(#animationClipPath-".concat(r,")")},H.createElement(U1,{points:a,baseLine:s,needClip:t,clipPathId:r,props:n})))}),H.createElement(Tn,{label:n.label}))}function l3(e){var{needClip:t,clipPathId:r,props:n}=e,i=q1(null),o=q1();return H.createElement(s3,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o})}var Gh=class extends ZK{render(){var{hide:t,dot:r,points:n,className:i,top:o,left:a,needClip:s,xAxisId:l,yAxisId:u,width:c,height:f,id:d,baseLine:p,zIndex:m}=this.props;if(t)return null;var v=W("recharts-area",i),y=d,{r:h,strokeWidth:g}=Of(r),x=na(r),b=h*2+g,P=s?"url(#clipPath-".concat(x?"":"dots-").concat(y,")"):void 0;return H.createElement(Oe,{zIndex:m},H.createElement(se,{className:v},s&&H.createElement("defs",null,H.createElement(la,{clipPathId:y,xAxisId:l,yAxisId:u}),!x&&H.createElement("clipPath",{id:"clipPath-dots-".concat(y)},H.createElement("rect",{x:a-b/2,y:o-b/2,width:c+b,height:f+b}))),H.createElement(l3,{needClip:s,clipPathId:y,props:this.props})),H.createElement(Ns,{points:n,mainColor:Cf(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:P}),this.props.isRange&&Array.isArray(p)&&H.createElement(Ns,{points:p,mainColor:Cf(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:P}))}},u3={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ee.area};function c3(e){var t,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,connectNulls:a,dot:s,fill:l,fillOpacity:u,hide:c,isAnimationActive:f,legendType:d,stroke:p,xAxisId:m,yAxisId:v}=e,y=Y1(e,qK),h=_t(),g=jc(),{needClip:x}=zi(m,v),b=ue(),{points:P,isRange:w,baseLine:A}=(t=k(N=>V1(N,e.id,b)))!==null&&t!==void 0?t:{},O=Mn();if(h!=="horizontal"&&h!=="vertical"||O==null||g!=="AreaChart"&&g!=="ComposedChart")return null;var{height:E,width:I,x:T,y:_}=O;return!P||!P.length?null:H.createElement(Gh,Fi({},y,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,baseLine:A,connectNulls:a,dot:s,fill:l,fillOpacity:u,height:E,hide:c,layout:h,isAnimationActive:f,isRange:w,legendType:d,needClip:x,points:P,stroke:p,width:I,left:T,top:_,xAxisId:m,yAxisId:v}))}var f3=(e,t,r,n,i)=>{var o=r!=null?r:t;if(R(o))return o;var a=e==="horizontal"?i:n,s=a.scale.domain();if(a.type==="number"){var l=Math.max(s[0],s[1]),u=Math.min(s[0],s[1]);return o==="dataMin"?u:o==="dataMax"||l<0?l:Math.max(Math.min(s[0],s[1]),0)}return o==="dataMin"?s[0]:o==="dataMax"?s[1]:s[0]};function K1(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:n},stackedData:i,layout:o,chartBaseValue:a,xAxis:s,yAxis:l,displayedData:u,dataStartIndex:c,xAxisTicks:f,yAxisTicks:d,bandSize:p}=e,m=i&&i.length,v=f3(o,a,r,s,l),y=o==="horizontal",h=!1,g=u.map((b,P)=>{var w,A,O,E;if(m)E=i[c+P];else{var I=Y(b,n);Array.isArray(I)?(E=I,h=!0):E=[v,I]}var T=(w=(A=E)===null||A===void 0?void 0:A[1])!==null&&w!==void 0?w:null,_=T==null||m&&!t&&Y(b,n)==null;if(y){var N;return{x:co({axis:s,ticks:f,bandSize:p,entry:b,index:P}),y:_?null:(N=l.scale.map(T))!==null&&N!==void 0?N:null,value:E,payload:b}}return{x:_?null:(O=s.scale.map(T))!==null&&O!==void 0?O:null,y:co({axis:l,ticks:d,bandSize:p,entry:b,index:P}),value:E,payload:b}}),x;return m||h?x=g.map(b=>{var P,w=Array.isArray(b.value)?b.value[0]:null;if(y){var A;return{x:b.x,y:w!=null&&b.y!=null&&(A=l.scale.map(w))!==null&&A!==void 0?A:null,payload:b.payload}}return{x:w!=null&&(P=s.scale.map(w))!==null&&P!==void 0?P:null,y:b.y,payload:b.payload}}):x=y?l.scale.map(v):s.scale.map(v),{points:g,baseLine:x!=null?x:0,isRange:h}}function d3(e){var t=X(e,u3),r=ue();return H.createElement(kn,{id:t.id,type:"area"},n=>H.createElement(H.Fragment,null,H.createElement(aa,{legendPayload:e3(t)}),H.createElement(t3,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),H.createElement(sa,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Xl(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),H.createElement(c3,Fi({},t,{id:n}))))}var _f=H.memo(d3,It);_f.displayName="Area";import*as Z from"react";import{PureComponent as $3,useCallback as ty,useEffect as H3,useRef as q3,useState as ry}from"react";import*as X1 from"react";var p3=process.env.NODE_ENV==="production",Xh="Invariant failed";function G1(e,t){if(!e){if(p3)throw new Error(Xh);var r=typeof t=="function"?t():t,n=r?"".concat(Xh,": ").concat(r):Xh;throw new Error(n)}}function Zh(){return Zh=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},Zh.apply(null,arguments)}function If(e){return X1.createElement(oa,Zh({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var Z1=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(R(t))return t;var o=R(n)||Q(n);return o?t(n,i):(o||G1(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}};var m3=(e,t,r)=>r,v3=(e,t)=>t,Ws=S([Sn,v3],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),h3=S([Ws],e=>e==null?void 0:e.maxBarSize),y3=(e,t,r,n)=>n,g3=S([q,Sn,cr,fr,m3],(e,t,r,n,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===r:o.yAxisId===n).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),b3=(e,t,r)=>{var n=q(e),i=cr(e,t),o=fr(e,t);if(!(i==null||o==null))return n==="horizontal"?qo(e,"yAxis",o,r):qo(e,"xAxis",i,r)},x3=(e,t)=>{var r=q(e),n=cr(e,t),i=fr(e,t);if(!(n==null||i==null))return r==="horizontal"?th(e,"xAxis",n):th(e,"yAxis",i)},w3=S([g3,Vw,x3],UE),P3=(e,t,r)=>{var n,i,o=Ws(e,t);if(o==null)return 0;var a=cr(e,t),s=fr(e,t);if(a==null||s==null)return 0;var l=q(e),u=Hm(e),{maxBarSize:c}=o,f=Q(c)?u:c,d,p;return l==="horizontal"?(d=qt(e,"xAxis",a,r),p=Ht(e,"xAxis",a,r)):(d=qt(e,"yAxis",s,r),p=Ht(e,"yAxis",s,r)),(n=(i=er(d,p,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},J1=(e,t,r)=>{var n=q(e),i=cr(e,t),o=fr(e,t);if(!(i==null||o==null)){var a,s;return n==="horizontal"?(a=qt(e,"xAxis",i,r),s=Ht(e,"xAxis",i,r)):(a=qt(e,"yAxis",o,r),s=Ht(e,"yAxis",o,r)),er(a,s)}},S3=S([w3,Hm,Ww,wu,P3,J1,h3],GE),A3=(e,t,r)=>{var n=cr(e,t);if(n!=null)return qt(e,"xAxis",n,r)},O3=(e,t,r)=>{var n=fr(e,t);if(n!=null)return qt(e,"yAxis",n,r)},E3=(e,t,r)=>{var n=cr(e,t);if(n!=null)return Ht(e,"xAxis",n,r)},C3=(e,t,r)=>{var n=fr(e,t);if(n!=null)return Ht(e,"yAxis",n,r)},_3=S([S3,Ws],ZE),I3=S([b3,Ws],XE),Q1=S([ve,mo,A3,O3,E3,C3,_3,q,hu,J1,I3,Ws,y3],(e,t,r,n,i,o,a,s,l,u,c,f,d)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:v}=l;if(!(f==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||i==null||o==null||u==null)){var{data:y}=f,h;if(y!=null&&y.length>0?h=y:h=p==null?void 0:p.slice(m,v+1),h!=null)return eC({layout:s,barSettings:f,pos:a,parentViewBox:t,bandSize:u,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,stackedData:c,displayedData:h,offset:e,cells:d,dataStartIndex:m})}});import*as Qh from"react";import{createContext as D3,useContext as tC,useMemo as Spe}from"react";var T3=["index"];function Jh(){return Jh=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},Jh.apply(null,arguments)}function R3(e,t){if(e==null)return{};var r,n,i=k3(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function k3(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 rC=D3(void 0),nC=e=>{var t=tC(rC);if(t!=null)return t.stackId;if(e!=null)return Xl(e)};var M3=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),N3=e=>{var t=tC(rC);if(t!=null){var{stackId:r}=t;return"url(#".concat(M3(r,e),")")}},ey=e=>{var{index:t}=e,r=R3(e,T3),n=N3(t);return Qh.createElement(se,Jh({className:"recharts-bar-stack-layer",clipPath:n},r))};var j3=["onMouseEnter","onMouseLeave","onClick"],L3=["value","background","tooltipPosition"],B3=["id"],z3=["onMouseEnter","onClick","onMouseLeave"];function jn(){return jn=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},jn.apply(null,arguments)}function iC(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 Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iC(Object(r),!0).forEach(function(n){F3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F3(e,t,r){return(t=W3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W3(e){var t=V3(e,"string");return typeof t=="symbol"?t:t+""}function V3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tf(e,t){if(e==null)return{};var r,n,i=K3(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function K3(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 U3=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Bt(r,t),payload:e}]},Y3=Z.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:o,hide:a,unit:s,tooltipType:l,id:u}=e,c={dataDefinedOnItem:void 0,getPosition:xt,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Bt(o,t),hide:a,type:l,color:i,unit:s,graphicalItemId:u}};return Z.createElement(Rn,{tooltipEntrySettings:c})});function G3(e){var t=k(sr),{data:r,dataKey:n,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=o,u=Tf(o,j3),c=Ts(a,n,o.id),f=Rs(s),d=ks(l,n,o.id);if(!i||r==null)return null;var p=Mt(i);return Z.createElement(Oe,{zIndex:JE(i,ee.barBackground)},r.map((m,v)=>{var{value:y,background:h,tooltipPosition:g}=m,x=Tf(m,L3);if(!h)return null;var b=c(m,v),P=f(m,v),w=d(m,v),A=Et(Et(Et(Et(Et({option:i,isActive:String(v)===t},x),{},{fill:"#eee"},h),p),Wr(u,m,v)),{},{onMouseEnter:b,onMouseLeave:P,onClick:w,dataKey:n,index:v,className:"recharts-bar-background-rectangle"});return Z.createElement(If,jn({key:"background-bar-".concat(v)},A))}))}function X3(e){var{showLabels:t,children:r,rects:n}=e,i=n==null?void 0:n.map(o=>{var a={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return Et(Et({},a),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:a,fill:o.fill})});return Z.createElement(ra,{value:t?i:void 0},r)}function Z3(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:o,dataKey:a}=e,s=k(sr),l=k(Xo),u=r&&String(i.originalDataIndex)===s&&(l==null||a===l),[c,f]=ry(!1),[d,p]=ry(!1);H3(()=>{var x;return u?(f(!0),x=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(x)}},[u]);var m=ty(()=>{u||f(!1)},[u]),v=u&&d,y=u||c,h;u?r===!0?h=t:h=r:h=t;var g=Z.createElement(If,jn({},n,{name:String(n.name)},i,{isActive:v,option:h,index:o,dataKey:a,onTransitionEnd:m}));return y?Z.createElement(Oe,{zIndex:ee.activeBar},Z.createElement(ey,{index:i.originalDataIndex},g)):g}function J3(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:o}=e;return Z.createElement(If,jn({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:o}))}function Q3(e){var t,{data:r,props:n}=e,i=(t=Te(n))!==null&&t!==void 0?t:{},{id:o}=i,a=Tf(i,B3),{shape:s,dataKey:l,activeBar:u}=n,{onMouseEnter:c,onClick:f,onMouseLeave:d}=n,p=Tf(n,z3),m=Ts(c,l,o),v=Rs(d),y=ks(f,l,o);return r?Z.createElement(Z.Fragment,null,r.map((h,g)=>Z.createElement(ey,jn({index:h.originalDataIndex,key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(g),className:"recharts-bar-rectangle"},Wr(p,h,g),{onMouseEnter:m(h,g),onMouseLeave:v(h,g),onClick:y(h,g)}),u?Z.createElement(Z3,{shape:s,activeBar:u,baseProps:a,entry:h,index:g,dataKey:l}):Z.createElement(J3,{shape:s,baseProps:a,entry:h,index:g,dataKey:l})))):null}function e4(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:u,onAnimationStart:c}=t,f=r.current,d=nr(t,"recharts-bar-"),[p,m]=ry(!1),v=!p,y=ty(()=>{typeof u=="function"&&u(),m(!1)},[u]),h=ty(()=>{typeof c=="function"&&c(),m(!0)},[c]);return Z.createElement(X3,{showLabels:v,rects:n},Z.createElement(rr,{animationId:d,begin:a,duration:s,isActive:o,easing:l,onAnimationEnd:y,onAnimationStart:h,key:d},g=>{var x=g===1?n:n==null?void 0:n.map((b,P)=>{var w=f&&f[P];if(w)return Et(Et({},b),{},{x:ie(w.x,b.x,g),y:ie(w.y,b.y,g),width:ie(w.width,b.width,g),height:ie(w.height,b.height,g)});if(i==="horizontal"){var A=ie(0,b.height,g),O=ie(b.stackedBarStart,b.y,g);return Et(Et({},b),{},{y:O,height:A})}var E=ie(0,b.width,g),I=ie(b.stackedBarStart,b.x,g);return Et(Et({},b),{},{width:E,x:I})});return g>0&&(r.current=x!=null?x:null),x==null?null:Z.createElement(se,null,Z.createElement(Q3,{props:t,data:x}))}),Z.createElement(Tn,{label:t.label}),t.children)}function t4(e){var t=q3(null);return Z.createElement(e4,{previousRectanglesRef:t,props:e})}var oC=0,r4=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Y(e,t)}},ny=class extends $3{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:o,yAxisId:a,needClip:s,background:l,id:u}=this.props;if(t||r==null)return null;var c=W("recharts-bar",i),f=u;return Z.createElement(se,{className:c,id:u},s&&Z.createElement("defs",null,Z.createElement(la,{clipPathId:f,xAxisId:o,yAxisId:a})),Z.createElement(se,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},Z.createElement(G3,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),Z.createElement(t4,this.props)))}},n4={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:oC,xAxisId:0,yAxisId:0,zIndex:ee.bar};function i4(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:u,isAnimationActive:c}=e,{needClip:f}=zi(t,r),d=_t(),p=ue(),m=Cs(e.children,ea),v=k(g=>Q1(g,e.id,p,m));if(d!=="vertical"&&d!=="horizontal")return null;var y,h=v==null?void 0:v[0];return h==null||h.height==null||h.width==null?y=0:y=d==="vertical"?h.height/2:h.width/2,Z.createElement(Af,{xAxisId:t,yAxisId:r,data:v,dataPointFormatter:r4,errorBarOffset:y},Z.createElement(ny,jn({},e,{layout:d,needClip:f,data:v,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:o,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:u,isAnimationActive:c})))}function eC(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:o,bandSize:a,xAxis:s,yAxis:l,xAxisTicks:u,yAxisTicks:c,stackedData:f,displayedData:d,offset:p,cells:m,parentViewBox:v,dataStartIndex:y}=e,h=t==="horizontal"?l:s,g=f?h.scale.domain():null,x=Tx({numericAxis:h}),b=h.scale.map(x);return d.map((P,w)=>{var A,O,E,I,T,_;if(f){var N=f[w+y];if(N==null)return null;A=_x(N,g)}else A=Y(P,r),Array.isArray(A)||(A=[x,A]);var M=Z1(n,oC)(A[1],w);if(t==="horizontal"){var F,J=l.scale.map(A[0]),U=l.scale.map(A[1]);if(J==null||U==null)return null;O=fm({axis:s,ticks:u,bandSize:a,offset:o.offset,entry:P,index:w}),E=(F=U!=null?U:J)!==null&&F!==void 0?F:void 0,I=o.size;var ne=J-U;if(T=et(ne)?0:ne,_={x:O,y:p.top,width:I,height:p.height},Math.abs(M)>0&&Math.abs(T)<Math.abs(M)){var K=xe(T||M)*(Math.abs(M)-Math.abs(T));E-=K,T+=K}}else{var te=s.scale.map(A[0]),Be=s.scale.map(A[1]);if(te==null||Be==null)return null;if(O=te,E=fm({axis:l,ticks:c,bandSize:a,offset:o.offset,entry:P,index:w}),I=Be-te,T=o.size,_={x:p.left,y:E,width:p.width,height:T},Math.abs(M)>0&&Math.abs(I)<Math.abs(M)){var Se=xe(I||M)*(Math.abs(M)-Math.abs(I));I+=Se}}if(O==null||E==null||I==null||T==null||!i&&(I===0||T===0))return null;var gt=Et(Et({},P),{},{stackedBarStart:b,x:O,y:E,width:I,height:T,value:f?A:A[1],payload:P,background:_,tooltipPosition:{x:O+I/2,y:E+T/2},parentViewBox:v,originalDataIndex:w},m&&m[w]&&m[w].props);return gt}).filter(Boolean)}function o4(e){var t=X(e,n4),r=nC(t.stackId),n=ue();return Z.createElement(kn,{id:t.id,type:"bar"},i=>Z.createElement(Z.Fragment,null,Z.createElement(aa,{legendPayload:U3(t)}),Z.createElement(Y3,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),Z.createElement(sa,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n,hasCustomShape:t.shape!=null}),Z.createElement(Oe,{zIndex:t.zIndex},Z.createElement(i4,jn({},t,{id:i})))))}var Rf=Z.memo(o4,It);Rf.displayName="Bar";import*as sn from"react";import{useLayoutEffect as cC,useMemo as h4,useRef as y4}from"react";var a4=["domain","range"],s4=["domain","range"];function aC(e,t){if(e==null)return{};var r,n,i=l4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l4(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 sC(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function kf(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=aC(e,a4),{domain:o,range:a}=t,s=aC(t,s4);return!sC(r,o)||!sC(n,a)?!1:It(i,s)}var u4=["type"],c4=["dangerouslySetInnerHTML","ticks","scale"],f4=["id","scale"];function iy(){return iy=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},iy.apply(null,arguments)}function lC(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?lC(Object(r),!0).forEach(function(n){d4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d4(e,t,r){return(t=p4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p4(e){var t=m4(e,"string");return typeof t=="symbol"?t:t+""}function m4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oy(e,t){if(e==null)return{};var r,n,i=v4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function v4(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 g4(e){var t=$(),r=y4(null),n=bo(),{type:i}=e,o=oy(e,u4),a=hi(n,"xAxis",i),s=h4(()=>{if(a!=null)return uC(uC({},o),{},{type:a})},[o,a]);return cC(()=>{s!=null&&(r.current===null?t(ME(s)):r.current!==s&&t(NE({prev:r.current,next:s})),r.current=s)},[s,t]),cC(()=>()=>{r.current&&(t(jE(r.current)),r.current=null)},[t]),null}var b4=e=>{var{xAxisId:t,className:r}=e,n=k(mo),i=ue(),o="xAxis",a=k(h=>Sc(h,o,t,i)),s=k(h=>Qv(h,t)),l=k(h=>IS(h,t)),u=k(h=>kv(h,t));if(s==null||l==null||u==null)return null;var{dangerouslySetInnerHTML:c,ticks:f,scale:d}=e,p=oy(e,c4),{id:m,scale:v}=u,y=oy(u,f4);return sn.createElement(Bs,iy({},p,y,{x:l.x,y:l.y,width:s.width,height:s.height,className:W("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:a,axisType:o,axisId:t}))},x4={allowDataOverflow:$e.allowDataOverflow,allowDecimals:$e.allowDecimals,allowDuplicatedCategory:$e.allowDuplicatedCategory,angle:$e.angle,axisLine:ur.axisLine,height:$e.height,hide:!1,includeHidden:$e.includeHidden,interval:$e.interval,label:!1,minTickGap:$e.minTickGap,mirror:$e.mirror,orientation:$e.orientation,padding:$e.padding,reversed:$e.reversed,scale:$e.scale,tick:$e.tick,tickCount:$e.tickCount,tickLine:ur.tickLine,tickSize:ur.tickSize,type:$e.type,niceTicks:$e.niceTicks,xAxisId:0},w4=e=>{var t=X(e,x4);return sn.createElement(sn.Fragment,null,sn.createElement(g4,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),sn.createElement(b4,t))},Ln=sn.memo(w4,kf);Ln.displayName="XAxis";import*as ln from"react";import{isValidElement as I4,useLayoutEffect as ly,useMemo as T4,useRef as uy}from"react";var P4=["type"],S4=["dangerouslySetInnerHTML","ticks","scale"],A4=["id","scale"];function ay(){return ay=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},ay.apply(null,arguments)}function fC(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 dC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fC(Object(r),!0).forEach(function(n){O4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O4(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e){var t=C4(e,"string");return typeof t=="symbol"?t:t+""}function C4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sy(e,t){if(e==null)return{};var r,n,i=_4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _4(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 R4(e){var t=$(),r=uy(null),n=bo(),{type:i}=e,o=sy(e,P4),a=hi(n,"yAxis",i),s=T4(()=>{if(a!=null)return dC(dC({},o),{},{type:a})},[a,o]);return ly(()=>{s!=null&&(r.current===null?t(LE(s)):r.current!==s&&t(BE({prev:r.current,next:s})),r.current=s)},[s,t]),ly(()=>()=>{r.current&&(t(zE(r.current)),r.current=null)},[t]),null}function k4(e){var{yAxisId:t,className:r,width:n,label:i}=e,o=uy(null),a=uy(null),s=k(mo),l=ue(),u=$(),c="yAxis",f=k(w=>eh(w,t)),d=k(w=>TS(w,t)),p=k(w=>Sc(w,c,t,l)),m=k(w=>Dv(w,t));if(ly(()=>{if(!(n!=="auto"||!f||Es(i)||I4(i)||m==null)){var w=o.current;if(w){var A=w.getCalculatedWidth();Math.round(f.width)!==Math.round(A)&&u(FE({id:t,width:A}))}}},[p,f,u,i,t,n,m]),f==null||d==null||m==null)return null;var{dangerouslySetInnerHTML:v,ticks:y,scale:h}=e,g=sy(e,S4),{id:x,scale:b}=m,P=sy(m,A4);return ln.createElement(Bs,ay({},g,P,{ref:o,labelRef:a,x:d.x,y:d.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:f.width,height:f.height,className:W("recharts-".concat(c," ").concat(c),r),viewBox:s,ticks:p,axisType:c,axisId:t}))}var D4={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,angle:He.angle,axisLine:ur.axisLine,hide:!1,includeHidden:He.includeHidden,interval:He.interval,label:!1,minTickGap:He.minTickGap,mirror:He.mirror,orientation:He.orientation,padding:He.padding,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,tickLine:ur.tickLine,tickSize:ur.tickSize,type:He.type,niceTicks:He.niceTicks,width:He.width,yAxisId:0},M4=e=>{var t=X(e,D4);return ln.createElement(ln.Fragment,null,ln.createElement(R4,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),ln.createElement(k4,t))},Bn=ln.memo(M4,kf);Bn.displayName="YAxis";import*as NC from"react";import{forwardRef as C8}from"react";import*as qi from"react";import{forwardRef as A8}from"react";import*as CC from"react";import{useRef as W4}from"react";var N4=(e,t)=>t,Vs=S([N4,q,Iu,Ke,ch,kt,uA,ve],vA);function j4(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function Ks(e){var t=e.currentTarget.getBoundingClientRect(),r,n;if(j4(e)){var i=e.currentTarget.getBBox();r=i.width>0?t.width/i.width:1,n=i.height>0?t.height/i.height:1}else{var o=e.currentTarget;r=o.offsetWidth>0?t.width/o.offsetWidth:1,n=o.offsetHeight>0?t.height/o.offsetHeight:1}var a=(s,l)=>({relativeX:Math.round((s-t.left)/r),relativeY:Math.round((l-t.top)/n)});return"touches"in e?Array.from(e.touches).map(s=>a(s.clientX,s.clientY)):a(e.clientX,e.clientY)}var fy=Ue("mouseClick"),dy=$r();dy.startListening({actionCreator:fy,effect:(e,t)=>{var r=e.payload,n=Vs(t.getState(),Ks(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(WS({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Df=Ue("mouseMove"),py=$r(),ca=null,Wi=null,cy=null;py.startListening({actionCreator:Df,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a=o==="all"||(o==null?void 0:o.includes("mousemove"));ca!==null&&(cancelAnimationFrame(ca),ca=null),Wi!==null&&(typeof i!="number"||!a)&&(clearTimeout(Wi),Wi=null),cy=Ks(r);var s=()=>{var l=t.getState(),u=An(l,l.tooltip.settings.shared);if(!cy){ca=null,Wi=null;return}if(u==="axis"){var c=Vs(l,cy);(c==null?void 0:c.activeIndex)!=null?t.dispatch(Cc({activeIndex:c.activeIndex,activeDataKey:void 0,activeCoordinate:c.activeCoordinate})):t.dispatch(Ec())}ca=null,Wi=null};if(!a){s();return}i==="raf"?ca=requestAnimationFrame(s):typeof i=="number"&&Wi===null&&(Wi=setTimeout(s,i))}});function pC(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var mC={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},vC=le({name:"rootProps",initialState:mC,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:mC.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),hC=vC.reducer,{updateOptions:yC}=vC.actions;var L4=null,B4={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},gC=le({name:"polarOptions",initialState:L4,reducers:B4}),{updatePolarOptions:bC}=gC.actions,xC=gC.reducer;var my=Ue("keyDown"),vy=Ue("focus"),hy=Ue("blur"),$s=$r(),fa=null,Vi=null,Mf=null;$s.startListening({actionCreator:my,effect:(e,t)=>{Mf=e.payload,fa!==null&&(cancelAnimationFrame(fa),fa=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,o=i==="all"||i.includes("keydown");Vi!==null&&(typeof n!="number"||!o)&&(clearTimeout(Vi),Vi=null);var a=()=>{try{var s=t.getState(),l=s.rootProps.accessibilityLayer!==!1;if(!l)return;var{keyboardInteraction:u}=s.tooltip,c=Mf;if(c!=="ArrowRight"&&c!=="ArrowLeft"&&c!=="Enter")return;var f=On(u,tn(s),Zr(s),Cn(s)),d=f==null?-1:Number(f),p=!Number.isFinite(d)||d<0,m=kt(s),v=tn(s),y=An(s,s.tooltip.settings.shared);if(c==="Enter"){if(p)return;var h=Ss(s,y,"hover",String(u.index));t.dispatch(ws({active:!u.active,activeIndex:u.index,activeCoordinate:h}));return}var g=RS(s),x=g==="left-to-right"?1:-1,b=c==="ArrowRight"?1:-1,P;if(p){var w=Zr(s),A=Cn(s),O=b*x,E=M=>({active:!1,index:String(M),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(P=-1,O>0){for(var I=0;I<v.length;I++)if(On(E(I),v,w,A)!=null){P=I;break}}else for(var T=v.length-1;T>=0;T--)if(On(E(T),v,w,A)!=null){P=T;break}if(P<0)return}else{P=d+b*x;var _=(m==null?void 0:m.length)||v.length;if(_===0||P>=_||P<0)return}var N=Ss(s,y,"hover",String(P));t.dispatch(ws({active:!0,activeIndex:P.toString(),activeCoordinate:N}))}finally{fa=null,Vi=null}};if(!o){a();return}n==="raf"?fa=requestAnimationFrame(a):typeof n=="number"&&Vi===null&&(a(),Mf=null,Vi=setTimeout(()=>{Mf?a():(Vi=null,fa=null)},n))}});$s.startListening({actionCreator:vy,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var o="0",a=An(r,r.tooltip.settings.shared),s=Ss(r,a,"hover",String(o));t.dispatch(ws({active:!0,activeIndex:o,activeCoordinate:s}))}}}});$s.startListening({actionCreator:hy,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;i.active&&t.dispatch(ws({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function Nf(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(r,n)=>{if(n==="currentTarget")return t;var i=Reflect.get(r,n);return typeof i=="function"?i.bind(r):i}})}var Gt=Ue("externalEvent"),gy=$r(),jf=new Map,Hs=new Map,yy=new Map;gy.startListening({actionCreator:Gt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){var i=n.type,o=Nf(n);yy.set(i,{handler:r,reactEvent:o});var a=jf.get(i);a!==void 0&&(cancelAnimationFrame(a),jf.delete(i));var s=t.getState(),{throttleDelay:l,throttledEvents:u}=s.eventSettings,c=u,f=c==="all"||(c==null?void 0:c.includes(i)),d=Hs.get(i);d!==void 0&&(typeof l!="number"||!f)&&(clearTimeout(d),Hs.delete(i));var p=()=>{var y=yy.get(i);try{if(!y)return;var{handler:h,reactEvent:g}=y,x=t.getState(),b={activeCoordinate:mh(x),activeDataKey:Xo(x),activeIndex:sr(x),activeLabel:Mc(x),activeTooltipIndex:sr(x),isTooltipActive:vh(x)};h&&h(b,g)}finally{jf.delete(i),Hs.delete(i),yy.delete(i)}};if(!f){p();return}if(l==="raf"){var m=requestAnimationFrame(p);jf.set(i,m)}else if(typeof l=="number"){if(!Hs.has(i)){p();var v=setTimeout(p,l);Hs.set(i,v)}}else p()}}});var z4=S([en],e=>e.tooltipItemPayloads),wC=S([z4,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(o=>o.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}});var by=Ue("touchMove"),xy=$r(),Ki=null,zn=null,PC=null,qs=null;xy.startListening({actionCreator:by,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){qs=Nf(r);var n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a=o==="all"||o.includes("touchmove");Ki!==null&&(cancelAnimationFrame(Ki),Ki=null),zn!==null&&(typeof i!="number"||!a)&&(clearTimeout(zn),zn=null),PC=Array.from(r.touches).map(l=>Ks({clientX:l.clientX,clientY:l.clientY,currentTarget:r.currentTarget}));var s=()=>{if(qs!=null){var l=t.getState(),u=An(l,l.tooltip.settings.shared);if(u==="axis"){var c,f=(c=PC)===null||c===void 0?void 0:c[0];if(f==null){Ki=null,zn=null;return}var d=Vs(l,f);(d==null?void 0:d.activeIndex)!=null&&t.dispatch(Cc({activeIndex:d.activeIndex,activeDataKey:void 0,activeCoordinate:d.activeCoordinate}))}else if(u==="item"){var p,m=qs.touches[0];if(document.elementFromPoint==null||m==null)return;var v=document.elementFromPoint(m.clientX,m.clientY);if(!v||!v.getAttribute)return;var y=v.getAttribute(Jl),h=(p=v.getAttribute(Ql))!==null&&p!==void 0?p:void 0,g=En(l).find(P=>P.id===h);if(y==null||g==null||h==null)return;var{dataKey:x}=g,b=wC(l,y,h);t.dispatch(Oc({activeDataKey:x,activeIndex:y,activeCoordinate:b,activeGraphicalItemId:h}))}Ki=null,zn=null}};if(!a){s();return}i==="raf"?Ki=requestAnimationFrame(s):typeof i=="number"&&zn===null&&(s(),qs=null,zn=setTimeout(()=>{qs?s():(zn=null,Ki=null)},i))}}});var Us={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},SC=le({name:"eventSettings",initialState:Us,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:AC}=SC.actions,OC=SC.reducer;var F4=Ol({brush:t1,cartesianAxis:WE,chartData:FA,errorBars:S1,eventSettings:OC,graphicalItems:SE,layout:Sx,legend:t0,options:NA,polarAxis:DO,polarOptions:xC,referenceElements:i1,renderedTicks:h1,rootProps:hC,tooltip:VS,zIndex:AA}),EC=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return ox({reducer:F4,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([dy.middleware,py.middleware,$s.middleware,gy.middleware,xy.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(om({type:"raf"}))},devTools:tr.devToolsEnabled&&{serialize:{replacer:pC},name:"recharts-".concat(r)}})};function Lf(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=ue(),o=W4(null);if(i)return r;o.current==null&&(o.current=EC(t,n));var a=Pa;return CC.createElement(c0,{context:a,store:o.current},r)}import{memo as V4,useEffect as K4}from"react";function $4(e){var{layout:t,margin:r}=e,n=$(),i=ue();return K4(()=>{i||(n(xx(t)),n(lm(r)))},[n,i,t,r]),null}var Bf=V4($4,It);import{useEffect as H4}from"react";function zf(e){var t=$();return H4(()=>{t(yC(e))},[t,e]),null}import{useEffect as q4,memo as U4}from"react";var Y4=e=>{var t=$();return q4(()=>{t(AC(e))},[t,e]),null},Ff=U4(Y4,It);import*as un from"react";import{forwardRef as b8}from"react";import*as Hi from"react";import{forwardRef as IC}from"react";import*as $i from"react";import{useLayoutEffect as G4,useRef as X4}from"react";function _C(e){var{zIndex:t,isPanorama:r}=e,n=X4(null),i=$();return G4(()=>(n.current&&i(PA({zIndex:t,element:n.current,isPanorama:r})),()=>{i(SA({zIndex:t,isPanorama:r}))}),[i,t,r]),$i.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function wy(e){var{children:t,isPanorama:r}=e,n=k(yA);if(!n||n.length===0)return t;var i=n.filter(a=>a<0),o=n.filter(a=>a>0);return $i.createElement($i.Fragment,null,i.map(a=>$i.createElement(_C,{key:a,zIndex:a,isPanorama:r})),t,o.map(a=>$i.createElement(_C,{key:a,zIndex:a,isPanorama:r})))}var Z4=["children"];function J4(e,t){if(e==null)return{};var r,n,i=Q4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Q4(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 Wf(){return Wf=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},Wf.apply(null,arguments)}var e8={width:"100%",height:"100%",display:"block"},t8=IC((e,t)=>{var r=yo(),n=go(),i=nu();if(!Ct(r)||!Ct(n))return null;var{children:o,otherAttributes:a,title:s,desc:l}=e,u,c;return a!=null&&(typeof a.tabIndex=="number"?u=a.tabIndex:u=i?0:void 0,typeof a.role=="string"?c=a.role:c=i?"application":void 0),Hi.createElement(ha,Wf({},a,{title:s,desc:l,role:c,tabIndex:u,width:r,height:n,style:e8,ref:t}),o)}),r8=e=>{var{children:t}=e,r=k(oi);if(!r)return null;var{width:n,height:i,y:o,x:a}=r;return Hi.createElement(ha,{width:n,height:i,x:a,y:o},t)},Py=IC((e,t)=>{var{children:r}=e,n=J4(e,Z4),i=ue();return i?Hi.createElement(r8,null,Hi.createElement(wy,{isPanorama:!0},r)):Hi.createElement(t8,Wf({ref:t},n),Hi.createElement(wy,{isPanorama:!1},r))});import*as Me from"react";import{forwardRef as Ys,useCallback as Ze,useEffect as u8,useRef as kC,useState as Vf}from"react";import{useEffect as n8,useState as i8}from"react";function TC(){var e=$(),[t,r]=i8(null),n=k(Mx);return n8(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;V(o)&&o!==n&&e(Px(o))}},[t,e,n]),r}function RC(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 o8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RC(Object(r),!0).forEach(function(n){a8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a8(e,t,r){return(t=s8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s8(e){var t=l8(e,"string");return typeof t=="symbol"?t:t+""}function l8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fn(){return Fn=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},Fn.apply(null,arguments)}var c8=()=>(VA(),null);function Kf(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var f8=Ys((e,t)=>{var r,n,i=kC(null),[o,a]=Vf({containerWidth:Kf((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Kf((n=e.style)===null||n===void 0?void 0:n.height)}),s=Ze((u,c)=>{a(f=>{var d=Math.round(u),p=Math.round(c);return f.containerWidth===d&&f.containerHeight===p?f:{containerWidth:d,containerHeight:p}})},[]),l=Ze(u=>{if(typeof t=="function"&&t(u),i.current!=null&&(i.current.disconnect(),i.current=null),u!=null&&typeof ResizeObserver!="undefined"){var{width:c,height:f}=u.getBoundingClientRect();s(c,f);var d=m=>{var v=m[0];if(v!=null){var{width:y,height:h}=v.contentRect;s(y,h)}},p=new ResizeObserver(d);p.observe(u),i.current=p}},[t,s]);return u8(()=>()=>{var u=i.current;u!=null&&u.disconnect()},[s]),Me.createElement(Me.Fragment,null,Me.createElement(li,{width:o.containerWidth,height:o.containerHeight}),Me.createElement("div",Fn({ref:l},e)))}),d8=Ys((e,t)=>{var{width:r,height:n}=e,[i,o]=Vf({containerWidth:Kf(r),containerHeight:Kf(n)}),a=Ze((l,u)=>{o(c=>{var f=Math.round(l),d=Math.round(u);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),s=Ze(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:u,height:c}=l.getBoundingClientRect();a(u,c)}},[t,a]);return Me.createElement(Me.Fragment,null,Me.createElement(li,{width:i.containerWidth,height:i.containerHeight}),Me.createElement("div",Fn({ref:s},e)))}),p8=Ys((e,t)=>{var{width:r,height:n}=e;return Me.createElement(Me.Fragment,null,Me.createElement(li,{width:r,height:n}),Me.createElement("div",Fn({ref:t},e)))}),m8=Ys((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?Me.createElement(d8,Fn({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?Me.createElement(p8,Fn({},e,{width:r,height:n,ref:t})):Me.createElement(Me.Fragment,null,Me.createElement(li,{width:r,height:n}),Me.createElement("div",Fn({ref:t},e)))});function v8(e){return e?f8:m8}var DC=Ys((e,t)=>{var{children:r,className:n,height:i,onClick:o,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:u,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:p,onTouchMove:m,onTouchStart:v,style:y,width:h,responsive:g,dispatchTouchEvents:x=!0}=e,b=kC(null),P=$(),[w,A]=Vf(null),[O,E]=Vf(null),I=TC(),T=Ra(),_=(T==null?void 0:T.width)>0?T.width:h,N=(T==null?void 0:T.height)>0?T.height:i,M=Ze(j=>{I(j),typeof t=="function"&&t(j),A(j),E(j),j!=null&&(b.current=j)},[I,t,A,E]),F=Ze(j=>{P(fy(j)),P(Gt({handler:o,reactEvent:j}))},[P,o]),J=Ze(j=>{P(Df(j)),P(Gt({handler:u,reactEvent:j}))},[P,u]),U=Ze(j=>{P(Ec()),P(Gt({handler:c,reactEvent:j}))},[P,c]),ne=Ze(j=>{P(Df(j)),P(Gt({handler:f,reactEvent:j}))},[P,f]),K=Ze(()=>{P(vy())},[P]),te=Ze(()=>{P(hy())},[P]),Be=Ze(j=>{P(my(j.key))},[P]),Se=Ze(j=>{P(Gt({handler:a,reactEvent:j}))},[P,a]),gt=Ze(j=>{P(Gt({handler:s,reactEvent:j}))},[P,s]),lt=Ze(j=>{P(Gt({handler:l,reactEvent:j}))},[P,l]),pr=Ze(j=>{P(Gt({handler:d,reactEvent:j}))},[P,d]),Un=Ze(j=>{P(Gt({handler:v,reactEvent:j}))},[P,v]),Yn=Ze(j=>{x&&P(by(j)),P(Gt({handler:m,reactEvent:j}))},[P,x,m]),ut=Ze(j=>{P(Gt({handler:p,reactEvent:j}))},[P,p]),B=v8(g);return Me.createElement(Sh.Provider,{value:w},Me.createElement(rd.Provider,{value:O},Me.createElement(B,{width:_!=null?_:y==null?void 0:y.width,height:N!=null?N:y==null?void 0:y.height,className:W("recharts-wrapper",n),style:o8({position:"relative",cursor:"default",width:_,height:N},y),onClick:F,onContextMenu:Se,onDoubleClick:gt,onFocus:K,onBlur:te,onKeyDown:Be,onMouseDown:lt,onMouseEnter:J,onMouseLeave:U,onMouseMove:ne,onMouseUp:pr,onTouchEnd:ut,onTouchMove:Yn,onTouchStart:Un,ref:M},Me.createElement(c8,null),r)))});var h8=["width","height","responsive","children","className","style","compact","title","desc"];function y8(e,t){if(e==null)return{};var r,n,i=g8(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function g8(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 $f=b8((e,t)=>{var{width:r,height:n,responsive:i,children:o,className:a,style:s,compact:l,title:u,desc:c}=e,f=y8(e,h8),d=Te(f);return l?un.createElement(un.Fragment,null,un.createElement(li,{width:r,height:n}),un.createElement(Py,{otherAttributes:d,title:u,desc:c},o)):un.createElement(DC,{className:a,style:s,width:r,height:n,responsive:i!=null?i:!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},un.createElement(Py,{otherAttributes:d,title:u,desc:c,ref:t},un.createElement(o1,null,o)))});function Sy(){return Sy=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},Sy.apply(null,arguments)}function MC(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 x8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MC(Object(r),!0).forEach(function(n){w8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w8(e,t,r){return(t=P8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P8(e){var t=S8(e,"string");return typeof t=="symbol"?t:t+""}function S8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O8={top:5,right:5,bottom:5,left:5},E8=x8({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:O8,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},Us),da=A8(function(t,r){var n,i=X(t.categoricalChartProps,E8),{chartName:o,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:u}=t,c={chartName:o,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return qi.createElement(Lf,{preloadedState:{options:c},reduxStoreName:(n=u.id)!==null&&n!==void 0?n:o},qi.createElement(wf,{chartData:u.data}),qi.createElement(Bf,{layout:i.layout,margin:i.margin}),qi.createElement(Ff,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),qi.createElement(zf,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),qi.createElement($f,Sy({},i,{ref:r})))});var _8=["axis"],Ay=C8((e,t)=>NC.createElement(da,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_8,tooltipPayloadSearcher:_n,categoricalChartProps:e,ref:t}));import*as jC from"react";import{forwardRef as I8}from"react";var T8=["axis","item"],Oy=I8((e,t)=>jC.createElement(da,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:T8,tooltipPayloadSearcher:_n,categoricalChartProps:e,ref:t}));import*as VC from"react";import{forwardRef as $8}from"react";import{forwardRef as z8}from"react";import*as Wn from"react";import{useEffect as R8}from"react";function LC(e){var t=$();return R8(()=>{t(bC(e))},[t,e]),null}var k8=["layout"];function Ey(){return Ey=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},Ey.apply(null,arguments)}function D8(e,t){if(e==null)return{};var r,n,i=M8(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function M8(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 BC(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 N8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BC(Object(r),!0).forEach(function(n){j8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j8(e,t,r){return(t=L8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L8(e){var t=B8(e,"string");return typeof t=="symbol"?t:t+""}function B8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F8={top:5,right:5,bottom:5,left:5},Cy=N8({accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:F8,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Us),zC=z8(function(t,r){var n,i=X(t.categoricalChartProps,Cy),{layout:o}=i,a=D8(i,k8),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:c}=t,f={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,eventEmitter:void 0};return Wn.createElement(Lf,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:s},Wn.createElement(wf,{chartData:i.data}),Wn.createElement(Bf,{layout:o,margin:i.margin}),Wn.createElement(Ff,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),Wn.createElement(zf,{baseValue:void 0,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),Wn.createElement(LC,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),Wn.createElement($f,Ey({},a,{ref:r})))});function FC(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 WC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FC(Object(r),!0).forEach(function(n){W8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W8(e,t,r){return(t=V8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V8(e){var t=K8(e,"string");return typeof t=="symbol"?t:t+""}function K8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H8=["item"],q8=WC(WC({},Cy),{},{layout:"centric",startAngle:0,endAngle:360}),_y=$8((e,t)=>{var r=X(e,q8);return VC.createElement(zC,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:H8,tooltipPayloadSearcher:_n,categoricalChartProps:r,ref:t})});import*as KC from"react";import{forwardRef as U8}from"react";var Y8=["axis"],Iy=U8((e,t)=>KC.createElement(da,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Y8,tooltipPayloadSearcher:_n,categoricalChartProps:e,ref:t}));var dr=["#3b82f6","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#f97316","#ec4899"];function Vn(e){let t=e==="dark";return{gridColor:t?"#334155":"#e2e8f0",axisStroke:t?"#94a3b8":"#64748b",axisTick:{fill:t?"#94a3b8":"#64748b",fontSize:12},primaryColor:t?"#60a5fa":"#3b82f6",tooltipStyle:{backgroundColor:t?"#1e293b":"#ffffff",border:`1px solid ${t?"#334155":"#e2e8f0"}`,borderRadius:"6px",color:t?"#f1f5f9":"#0f172a",fontSize:"0.8125rem"}}}import{jsx as Kn,jsxs as Z8}from"react/jsx-runtime";var G8=({data:e,xKey:t,lines:r,height:n=250,legend:i=!1,grid:o=!0,theme:a="light",className:s,style:l})=>{let{gridColor:u,axisStroke:c,axisTick:f,tooltipStyle:d}=Vn(a);return Kn("div",{className:s,style:D({minWidth:250,width:"100%"},l),children:Kn(Hr,{width:"100%",height:n,children:Z8(Ay,{data:e,children:[o&&Kn(Nn,{strokeDasharray:"3 3",stroke:u}),Kn(Ln,{dataKey:t,stroke:c,tick:f}),Kn(Bn,{stroke:c,tick:f}),Kn(rn,{contentStyle:d}),i&&Kn(Pr,{}),r.map((p,m)=>{var y,h;let v=(y=p.color)!=null?y:dr[m%dr.length];return Kn(Ef,{type:"monotone",dataKey:p.dataKey,name:(h=p.label)!=null?h:p.dataKey,stroke:v,strokeWidth:2,dot:{fill:v,r:4},activeDot:{r:6},isAnimationActive:!1},p.dataKey)})]})})})},X8=G8;import{jsx as $n,jsxs as e$}from"react/jsx-runtime";var J8=({data:e,xKey:t,bars:r,height:n=250,legend:i=!1,grid:o=!0,theme:a="light",className:s,style:l})=>{let{gridColor:u,axisStroke:c,axisTick:f,tooltipStyle:d}=Vn(a);return $n("div",{className:s,style:D({minWidth:250,width:"100%"},l),children:$n(Hr,{width:"100%",height:n,children:e$(Oy,{data:e,children:[o&&$n(Nn,{strokeDasharray:"3 3",stroke:u}),$n(Ln,{dataKey:t,stroke:c,tick:f}),$n(Bn,{stroke:c,tick:f}),$n(rn,{contentStyle:d}),i&&$n(Pr,{}),r.map((p,m)=>{var h,g;let v=(h=p.color)!=null?h:dr[m%dr.length],y=m===r.length-1;return $n(Rf,{dataKey:p.dataKey,name:(g=p.label)!=null?g:p.dataKey,fill:v,stackId:p.stackId,radius:p.stackId&&!y?[0,0,0,0]:[4,4,0,0],isAnimationActive:!1},p.dataKey)})]})})})},Q8=J8;import{jsx as Hn,jsxs as n$}from"react/jsx-runtime";var t$=({data:e,xKey:t,areas:r,height:n=250,legend:i=!1,grid:o=!0,theme:a="light",className:s,style:l})=>{let{gridColor:u,axisStroke:c,axisTick:f,tooltipStyle:d}=Vn(a);return Hn("div",{className:s,style:D({minWidth:250,width:"100%"},l),children:Hn(Hr,{width:"100%",height:n,children:n$(Iy,{data:e,children:[o&&Hn(Nn,{strokeDasharray:"3 3",stroke:u}),Hn(Ln,{dataKey:t,stroke:c,tick:f}),Hn(Bn,{stroke:c,tick:f}),Hn(rn,{contentStyle:d}),i&&Hn(Pr,{}),r.map((p,m)=>{var h,g,x;let v=(h=p.color)!=null?h:dr[m%dr.length],y=(g=p.fillOpacity)!=null?g:p.stackId?.4:.15;return Hn(_f,{type:"monotone",dataKey:p.dataKey,name:(x=p.label)!=null?x:p.dataKey,stroke:v,fill:v,fillOpacity:y,strokeWidth:2,stackId:p.stackId,isAnimationActive:!1},p.dataKey)})]})})})},r$=t$;import{jsx as Gs,jsxs as a$}from"react/jsx-runtime";var i$=({data:e,height:t=250,donut:r=!1,legend:n=!1,label:i=!1,theme:o="light",className:a,style:s})=>{let{tooltipStyle:l}=Vn(o),u=e.map((d,p)=>{var m;return ft(D({},d),{fill:(m=d.fill)!=null?m:dr[p%dr.length]})}),c=90,f=r?55:0;return Gs("div",{className:a,style:D({minWidth:250,width:"100%"},s),children:Gs(Hr,{width:"100%",height:t,children:a$(_y,{children:[Gs(yf,{data:u,cx:"50%",cy:"50%",outerRadius:c,innerRadius:f,dataKey:"value",label:i?({name:d,percent:p})=>`${d} ${((p!=null?p:0)*100).toFixed(0)}%`:void 0,labelLine:i,isAnimationActive:!1}),Gs(rn,{contentStyle:l}),n&&Gs(Pr,{})]})})})},o$=i$;import{useState as $C}from"react";import{ChevronDown as s$}from"lucide-react";import{jsx as Xs,jsxs as HC}from"react/jsx-runtime";var l$=({items:e,defaultValue:t,multiple:r=!1})=>{let[n,i]=$C(()=>t?Array.isArray(t)?new Set(t):new Set([t]):new Set),[o,a]=$C(null),s=l=>{i(u=>{let c=new Set(u);return c.has(l)?c.delete(l):(r||c.clear(),c.add(l)),c})};return Xs("div",{style:{border:"1px solid var(--ds-border, #e2e8f0)",borderRadius:"0.5rem",overflow:"hidden"},children:e.map((l,u)=>{let c=n.has(l.value),f=o===l.value,d=u===e.length-1;return HC("div",{style:{borderBottom:d?"none":"1px solid var(--ds-border, #e2e8f0)"},children:[HC("button",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"1rem",fontSize:"0.875rem",fontWeight:500,background:f?"var(--ds-muted, #f1f5f9)":"transparent",border:"none",cursor:"pointer",textAlign:"left",color:"var(--ds-text-primary, #0f172a)",transition:"background-color 0.15s"},onClick:()=>s(l.value),onMouseEnter:()=>a(l.value),onMouseLeave:()=>a(null),"aria-expanded":c,children:[Xs("span",{children:l.trigger}),Xs(s$,{size:16,style:{flexShrink:0,color:"var(--ds-text-secondary, #64748b)",transition:"transform 0.2s ease",transform:c?"rotate(180deg)":"rotate(0deg)"}})]}),Xs("div",{style:{maxHeight:c?"300px":"0",overflow:"hidden",transition:"max-height 0.25s ease"},children:Xs("div",{style:{padding:"0 1rem 1rem",fontSize:"0.875rem",color:"var(--ds-text-secondary, #64748b)"},children:l.content})})]},l.value)})})},u$=l$;import{Info as c$,CheckCircle2 as f$,AlertTriangle as d$,AlertCircle as p$}from"lucide-react";import{jsx as Ui,jsxs as qC}from"react/jsx-runtime";var m$={info:{bg:"var(--ds-info-bg, #eff6ff)",border:"var(--ds-info, #3b82f6)",icon:"var(--ds-info, #3b82f6)",title:"var(--ds-info-title, #1e3a8a)",desc:"var(--ds-info-desc, #1e40af)"},success:{bg:"var(--ds-success-bg, #f0fdf4)",border:"var(--ds-success, #22c55e)",icon:"var(--ds-success, #22c55e)",title:"var(--ds-success-title, #14532d)",desc:"var(--ds-success-desc, #166534)"},warning:{bg:"var(--ds-warning-bg, #fffbeb)",border:"var(--ds-warning, #f59e0b)",icon:"var(--ds-warning, #f59e0b)",title:"var(--ds-warning-title, #78350f)",desc:"var(--ds-warning-desc, #92400e)"},danger:{bg:"var(--ds-danger-bg, #fef2f2)",border:"var(--ds-danger, #ef4444)",icon:"var(--ds-danger, #ef4444)",title:"var(--ds-danger-title, #7f1d1d)",desc:"var(--ds-danger-desc, #991b1b)"}},v$={info:Ui(c$,{size:16}),success:Ui(f$,{size:16}),warning:Ui(d$,{size:16}),danger:Ui(p$,{size:16})},h$=({variant:e="info",title:t,description:r})=>{let n=m$[e];return qC("div",{role:"alert",style:{display:"flex",gap:"0.75rem",padding:"1rem",borderRadius:"0.5rem",borderLeft:`4px solid ${n.border}`,backgroundColor:n.bg},children:[Ui("span",{style:{flexShrink:0,marginTop:"0.125rem",color:n.icon},children:v$[e]}),qC("div",{style:{flex:1},children:[Ui("p",{style:{fontWeight:600,fontSize:"0.875rem",marginBottom:"0.25rem",marginTop:0,color:n.title},children:t}),Ui("p",{style:{fontSize:"0.875rem",margin:0,color:n.desc},children:r})]})]})},y$=h$;import{jsx as w$}from"react/jsx-runtime";var g$={sm:{width:"2rem",height:"2rem",fontSize:"0.625rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"4rem",height:"4rem",fontSize:"1.25rem"}},b$=({fallback:e,size:t="md",style:r,className:n})=>w$("div",{className:n,"aria-label":e,style:D(D({display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"9999px",backgroundColor:"var(--ds-accent, #f1f5f9)",color:"var(--ds-text-primary, #0f172a)",fontWeight:600,flexShrink:0,userSelect:"none"},g$[t]),r),children:e}),x$=b$;import{jsx as E$}from"react/jsx-runtime";var P$={default:{backgroundColor:"var(--ds-primary, #3b82f6)",color:"#fff"},secondary:{backgroundColor:"var(--ds-muted, #f1f5f9)",color:"var(--ds-text-secondary, #64748b)"},outline:{backgroundColor:"transparent",border:"1px solid var(--ds-border, #e2e8f0)",color:"var(--ds-text-primary, #0f172a)"},danger:{backgroundColor:"var(--ds-danger, #ef4444)",color:"#fff"},success:{backgroundColor:"var(--ds-success, #22c55e)",color:"#fff"},warning:{backgroundColor:"var(--ds-warning, #f59e0b)",color:"#fff"},info:{backgroundColor:"var(--ds-info, #3b82f6)",color:"#fff"}},S$={sm:{padding:"0.125rem 0.5rem",fontSize:"0.625rem"},md:{padding:"0.25rem 0.625rem",fontSize:"0.75rem"},lg:{padding:"0.375rem 0.875rem",fontSize:"0.875rem"}},A$=({variant:e="default",size:t="md",children:r,style:n})=>E$("span",{style:D(D(D({display:"inline-flex",alignItems:"center",gap:"0.25rem",borderRadius:"9999px",fontWeight:500,whiteSpace:"nowrap"},P$[e]),S$[t]),n),children:r}),O$=A$;import{useState as C$}from"react";import{ChevronRight as _$}from"lucide-react";import{jsx as Zs,jsxs as R$}from"react/jsx-runtime";var I$=({items:e})=>{let[t,r]=C$(null);return Zs("nav",{"aria-label":"Breadcrumb",children:Zs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",padding:0,margin:0,fontSize:"0.875rem"},children:e.map((n,i)=>{let o=i===e.length-1,a=t===n.label;return R$("li",{style:{display:"flex",alignItems:"center"},children:[i>0&&Zs(_$,{size:14,"aria-hidden":!0,style:{color:"var(--ds-text-secondary, #64748b)",margin:"0 0.25rem",flexShrink:0}}),o||!n.href?Zs("span",{style:{color:o?"var(--ds-text-primary, #0f172a)":"var(--ds-text-secondary, #64748b)",fontWeight:o?500:void 0,cursor:o?"default":void 0},children:n.label}):Zs("a",{href:n.href,onMouseEnter:()=>r(n.label),onMouseLeave:()=>r(null),style:{color:"var(--ds-text-secondary, #64748b)",textDecoration:a?"underline":"none",transition:"color 0.15s"},children:n.label})]},n.label)})})})},T$=I$;import{LoaderCircle as k$}from"lucide-react";import{useState as D$}from"react";import{Fragment as z$,jsx as UC,jsxs as YC}from"react/jsx-runtime";var M$={solid:{backgroundColor:"var(--ds-primary, #3b82f6)",color:"#fff",borderColor:"transparent"},outline:{backgroundColor:"transparent",color:"var(--ds-primary, #3b82f6)",borderColor:"var(--ds-primary, #3b82f6)"},ghost:{backgroundColor:"var(--ds-muted, #f1f5f9)",color:"var(--ds-text-primary, #0f172a)",borderColor:"transparent"},danger:{backgroundColor:"var(--ds-danger, #ef4444)",color:"#fff",borderColor:"transparent"},warning:{backgroundColor:"var(--ds-warning, #f59e0b)",color:"#fff",borderColor:"transparent"},info:{backgroundColor:"var(--ds-info, #3b82f6)",color:"#fff",borderColor:"transparent"},success:{backgroundColor:"var(--ds-success, #22c55e)",color:"#fff",borderColor:"transparent"}},N$={solid:{opacity:.88},outline:{backgroundColor:"var(--ds-muted, #f1f5f9)"},ghost:{backgroundColor:"var(--ds-card, #ffffff)"},danger:{opacity:.88},warning:{opacity:.88},info:{opacity:.88},success:{opacity:.88}},j$={sm:{padding:"0.25rem 0.625rem",fontSize:"0.8rem"},md:{padding:"0.5rem 1rem",fontSize:"0.875rem"},lg:{padding:"0.75rem 1.5rem",fontSize:"1rem"}},L$=g=>{var x=g,{text:e,children:t,loading:r=!1,disabled:n=!1,icon:i,iconPosition:o="left",outline:a=!1,ghost:s=!1,danger:l=!1,warning:u=!1,info:c=!1,success:f=!1,variant:d,small:p=!1,large:m=!1,size:v,style:y}=x,h=Ne(x,["text","children","loading","disabled","icon","iconPosition","outline","ghost","danger","warning","info","success","variant","small","large","size","style"]);let[b,P]=D$(!1),w=d!=null?d:l?"danger":u?"warning":c?"info":f?"success":s?"ghost":a?"outline":"solid",A=v!=null?v:p?"sm":m?"lg":"md",O=n||r,E=t!=null?t:e,I=i&&!r,T=D(D(D(D({display:"inline-flex",alignItems:"center",gap:"0.5rem",border:"1px solid transparent",borderRadius:"0.375rem",fontWeight:500,cursor:O?"not-allowed":"pointer",transition:"opacity 0.15s, background-color 0.15s",opacity:O?.5:1,pointerEvents:r?"none":void 0},M$[w]),j$[A]),b&&!O?N$[w]:{}),y);return YC(z$,{children:[UC("style",{href:"ds-spin",precedence:"low",children:"@keyframes ds-spin { to { transform: rotate(360deg); } }"}),YC("button",ft(D({disabled:O,style:T,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1)},h),{children:[r?UC(k$,{"aria-hidden":!0,style:{width:"1em",height:"1em",animation:"ds-spin 0.75s linear infinite"}}):null,I&&o==="left"?i:null,E,I&&o==="right"?i:null]}))]})},B$=L$;import{jsx as pa}from"react/jsx-runtime";var F$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("div",D({style:D({border:"1px solid var(--ds-border, #e2e8f0)",borderRadius:"0.5rem",backgroundColor:"var(--ds-card, #ffffff)"},e)},t))},W$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("div",D({style:D({display:"flex",flexDirection:"column",gap:"0.375rem",padding:"1.5rem 1.5rem 0"},e)},t))},V$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("h3",D({style:D({fontSize:"1rem",fontWeight:600,color:"var(--ds-text-primary, #0f172a)",margin:0,lineHeight:1.4},e)},t))},K$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("p",D({style:D({fontSize:"0.875rem",color:"var(--ds-text-secondary, #64748b)",margin:0},e)},t))},$$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("div",D({style:D({padding:"1.5rem"},e)},t))},H$=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return pa("div",D({style:D({display:"flex",alignItems:"center",padding:"0 1.5rem 1.5rem"},e)},t))};import{useState as q$}from"react";import{jsx as Js,jsxs as G$}from"react/jsx-runtime";var U$=({label:e,checked:t,defaultChecked:r=!1,disabled:n,id:i,onChange:o})=>{let[a,s]=q$(r),l=t!==void 0?t:a;return G$("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",cursor:n?"not-allowed":"pointer",userSelect:"none",opacity:n?.5:1},children:[Js("input",{type:"checkbox",id:i,checked:l,disabled:n,onChange:()=>{if(n)return;let c=!l;s(c),o==null||o(c)},style:{position:"absolute",opacity:0,width:0,height:0}}),Js("span",{style:{width:"1.125rem",height:"1.125rem",border:`2px solid ${l?"var(--ds-primary, #3b82f6)":"var(--ds-border, #e2e8f0)"}`,borderRadius:"0.25rem",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transition:"background-color 0.15s, border-color 0.15s",backgroundColor:l?"var(--ds-primary, #3b82f6)":"var(--ds-card, #fff)"},children:l&&Js("svg",{viewBox:"0 0 12 10",fill:"none",style:{width:"0.625rem",height:"0.625rem"},children:Js("path",{d:"M1 5l3.5 3.5L11 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e&&Js("span",{style:{fontSize:"0.875rem",color:"var(--ds-text-primary, #0f172a)"},children:e})]})},Y$=U$;import{Check as X$,Copy as Z$}from"lucide-react";import{useState as GC}from"react";import{jsx as Ty}from"react/jsx-runtime";var J$=({text:e})=>{let[t,r]=GC(!1),[n,i]=GC(!1);return Ty("button",{onClick:()=>{navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),2e3)},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),"aria-label":t?"Copied":`Copy ${e}`,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"0.25rem",border:"none",borderRadius:"0.25rem",backgroundColor:n?"var(--ds-accent, #f1f5f9)":"transparent",color:n?"var(--ds-text-primary, #0f172a)":"var(--ds-text-secondary, #64748b)",cursor:"pointer",transition:"background-color 0.15s, color 0.15s"},children:t?Ty(X$,{style:{width:"1rem",height:"1rem"}}):Ty(Z$,{style:{width:"1rem",height:"1rem"}})})},Q$=J$;import{Upload as eH}from"lucide-react";import{useRef as tH,useState as Ry}from"react";import{jsx as Hf,jsxs as XC}from"react/jsx-runtime";var rH=({accept:e,multiple:t,disabled:r,onFileSelect:n})=>{let[i,o]=Ry(!1),[a,s]=Ry(!1),[l,u]=Ry([]),c=tH(null),f=p=>{u(Array.from(p).map(m=>m.name)),n==null||n(p)},d=i||a;return XC("div",{onClick:()=>{var p;return!r&&((p=c.current)==null?void 0:p.click())},onMouseEnter:()=>!r&&s(!0),onMouseLeave:()=>s(!1),onDragOver:p=>{p.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:p=>{p.preventDefault(),o(!1),!r&&p.dataTransfer.files.length&&f(p.dataTransfer.files)},style:{border:`2px dashed ${d?"var(--ds-primary, #3b82f6)":"var(--ds-border, #e2e8f0)"}`,borderRadius:"0.5rem",padding:"2rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem",cursor:r?"not-allowed":"pointer",backgroundColor:d?"var(--ds-primary-50, #eff6ff)":"var(--ds-muted, #f1f5f9)",transition:"border-color 0.15s, background-color 0.15s",textAlign:"center",opacity:r?.5:1},children:[Hf("input",{ref:c,type:"file",accept:e,multiple:t,disabled:r,style:{display:"none"},onChange:p=>p.target.files&&f(p.target.files)}),Hf(eH,{size:32,style:{color:"var(--ds-text-secondary, #64748b)"}}),l.length>0?Hf("p",{style:{fontSize:"0.875rem",color:"var(--ds-primary, #3b82f6)",fontWeight:500,margin:0},children:l.join(", ")}):XC("p",{style:{fontSize:"0.875rem",color:"var(--ds-text-secondary, #64748b)",margin:0},children:[Hf("strong",{children:"Click to upload"})," or drag and drop"]})]})},nH=rH;import{Fragment as aH,jsx as qf,jsxs as ZC}from"react/jsx-runtime";var iH=`
853
52
  [data-ds-input]::placeholder { color: var(--ds-text-secondary, #64748b); }
854
53
  [data-ds-input]:focus { outline: none; border-color: var(--ds-primary, #3b82f6); box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15); }
855
54
  [data-ds-input]:disabled { opacity: 0.5; cursor: not-allowed; background-color: var(--ds-muted, #f1f5f9); }
856
55
  [data-ds-input][data-error="true"]:focus { border-color: var(--ds-danger, #ef4444); box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15); }
857
56
  [data-ds-input][data-success="true"]:focus { border-color: var(--ds-success, #22c55e); box-shadow: 0 0 0 3px rgb(34 197 94 / 0.15); }
858
- `;
859
- var Input = (_a) => {
860
- var _b = _a, { error, success, leftIcon, rightIcon, style } = _b, props = __objRest(_b, ["error", "success", "leftIcon", "rightIcon", "style"]);
861
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
862
- /* @__PURE__ */ jsx16("style", { href: "ds-input", precedence: "low", children: inputCSS }),
863
- /* @__PURE__ */ jsxs11("div", { style: { position: "relative", display: "flex", alignItems: "center", width: "100%" }, children: [
864
- leftIcon && /* @__PURE__ */ jsx16("span", { style: {
865
- position: "absolute",
866
- left: "0.625rem",
867
- display: "flex",
868
- alignItems: "center",
869
- color: "var(--ds-text-secondary, #64748b)",
870
- pointerEvents: "none"
871
- }, children: leftIcon }),
872
- /* @__PURE__ */ jsx16(
873
- "input",
874
- __spreadValues({
875
- "data-ds-input": "",
876
- "data-error": error ? "true" : void 0,
877
- "data-success": success ? "true" : void 0,
878
- style: __spreadValues({
879
- width: "100%",
880
- height: "2.25rem",
881
- paddingTop: 0,
882
- paddingBottom: 0,
883
- paddingLeft: leftIcon ? "2.25rem" : "0.75rem",
884
- paddingRight: rightIcon ? "2.25rem" : "0.75rem",
885
- border: `1px solid ${error ? "var(--ds-danger, #ef4444)" : success ? "var(--ds-success, #22c55e)" : "var(--ds-border, #e2e8f0)"}`,
886
- borderRadius: "0.375rem",
887
- fontSize: "0.875rem",
888
- backgroundColor: "var(--ds-card, #fff)",
889
- color: "var(--ds-text-primary, #0f172a)",
890
- fontFamily: "inherit",
891
- transition: "border-color 0.15s, box-shadow 0.15s"
892
- }, style)
893
- }, props)
894
- ),
895
- rightIcon && /* @__PURE__ */ jsx16("span", { style: {
896
- position: "absolute",
897
- right: "0.625rem",
898
- display: "flex",
899
- alignItems: "center",
900
- color: "var(--ds-text-secondary, #64748b)",
901
- pointerEvents: "none"
902
- }, children: rightIcon })
903
- ] })
904
- ] });
905
- };
906
- var Input_default = Input;
907
-
908
- // src/components/Label/Label.tsx
909
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
910
- var Label = (_a) => {
911
- var _b = _a, { children, required, style } = _b, props = __objRest(_b, ["children", "required", "style"]);
912
- return /* @__PURE__ */ jsxs12("label", __spreadProps(__spreadValues({ style: __spreadValues({
913
- display: "block",
914
- fontSize: "0.875rem",
915
- fontWeight: 500,
916
- color: "var(--ds-text-primary, #0f172a)",
917
- marginBottom: "0.375rem"
918
- }, style) }, props), { children: [
919
- children,
920
- required && /* @__PURE__ */ jsx17("span", { style: { color: "var(--ds-danger, #ef4444)", marginLeft: "0.25rem" }, children: "*" })
921
- ] }));
922
- };
923
- var Label_default = Label;
924
-
925
- // src/components/PasswordInput/PasswordInput.tsx
926
- import { Eye, EyeOff } from "lucide-react";
927
- import { useState as useState8 } from "react";
928
- import { jsx as jsx18 } from "react/jsx-runtime";
929
- var PasswordInput = (props) => {
930
- const [visible, setVisible] = useState8(false);
931
- return /* @__PURE__ */ jsx18(
932
- Input_default,
933
- __spreadProps(__spreadValues({}, props), {
934
- type: visible ? "text" : "password",
935
- rightIcon: /* @__PURE__ */ jsx18(
936
- "button",
937
- {
938
- type: "button",
939
- onClick: () => setVisible((v) => !v),
940
- style: { background: "none", border: "none", cursor: "pointer", padding: 0, display: "flex", pointerEvents: "all" },
941
- tabIndex: -1,
942
- children: visible ? /* @__PURE__ */ jsx18(EyeOff, { size: 16 }) : /* @__PURE__ */ jsx18(Eye, { size: 16 })
943
- }
944
- )
945
- })
946
- );
947
- };
948
- var PasswordInput_default = PasswordInput;
949
-
950
- // src/components/Progress/Progress.tsx
951
- import { jsx as jsx19 } from "react/jsx-runtime";
952
- var Progress = ({ value = 0 }) => {
953
- const pct = Math.min(100, Math.max(0, value));
954
- return /* @__PURE__ */ jsx19(
955
- "div",
956
- {
957
- role: "progressbar",
958
- "aria-valuenow": pct,
959
- "aria-valuemin": 0,
960
- "aria-valuemax": 100,
961
- style: {
962
- width: "100%",
963
- height: "0.5rem",
964
- backgroundColor: "var(--ds-border, #e2e8f0)",
965
- borderRadius: "9999px",
966
- overflow: "hidden"
967
- },
968
- children: /* @__PURE__ */ jsx19("div", { style: {
969
- height: "100%",
970
- width: `${pct}%`,
971
- backgroundColor: "var(--ds-primary, #3b82f6)",
972
- borderRadius: "9999px",
973
- transition: "width 0.3s ease"
974
- } })
975
- }
976
- );
977
- };
978
- var Progress_default = Progress;
979
-
980
- // src/components/RadioGroup/RadioGroup.tsx
981
- import { useState as useState9 } from "react";
982
- import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
983
- var RadioGroup = ({
984
- options,
985
- name,
986
- value,
987
- defaultValue = "",
988
- disabled,
989
- onChange
990
- }) => {
991
- const [internal, setInternal] = useState9(defaultValue);
992
- const selected = value !== void 0 ? value : internal;
993
- const handleChange = (val) => {
994
- if (disabled) return;
995
- setInternal(val);
996
- onChange == null ? void 0 : onChange(val);
997
- };
998
- return /* @__PURE__ */ jsx20("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: options.map((option) => {
999
- const isSelected = selected === option.value;
1000
- return /* @__PURE__ */ jsxs13("label", { style: {
1001
- display: "inline-flex",
1002
- alignItems: "center",
1003
- gap: "0.5rem",
1004
- cursor: disabled ? "not-allowed" : "pointer",
1005
- userSelect: "none",
1006
- opacity: disabled ? 0.5 : 1
1007
- }, children: [
1008
- /* @__PURE__ */ jsx20(
1009
- "input",
1010
- {
1011
- type: "radio",
1012
- name,
1013
- value: option.value,
1014
- checked: isSelected,
1015
- disabled,
1016
- onChange: () => handleChange(option.value),
1017
- style: { position: "absolute", opacity: 0, width: 0, height: 0 }
1018
- }
1019
- ),
1020
- /* @__PURE__ */ jsx20("span", { style: {
1021
- width: "1.125rem",
1022
- height: "1.125rem",
1023
- borderRadius: "9999px",
1024
- border: `2px solid ${isSelected ? "var(--ds-primary, #3b82f6)" : "var(--ds-border, #e2e8f0)"}`,
1025
- display: "flex",
1026
- alignItems: "center",
1027
- justifyContent: "center",
1028
- flexShrink: 0,
1029
- backgroundColor: "var(--ds-card, #fff)",
1030
- transition: "border-color 0.15s"
1031
- }, children: isSelected && /* @__PURE__ */ jsx20("span", { style: {
1032
- width: "0.5rem",
1033
- height: "0.5rem",
1034
- borderRadius: "9999px",
1035
- backgroundColor: "var(--ds-primary, #3b82f6)"
1036
- } }) }),
1037
- /* @__PURE__ */ jsx20("span", { style: { fontSize: "0.875rem", color: "var(--ds-text-primary, #0f172a)" }, children: option.label })
1038
- ] }, option.value);
1039
- }) });
1040
- };
1041
- var RadioGroup_default = RadioGroup;
1042
-
1043
- // src/components/Select/Select.tsx
1044
- import { Check as Check2, ChevronDown as ChevronDown2 } from "lucide-react";
1045
- import { useEffect, useRef as useRef2, useState as useState10 } from "react";
1046
- import { Fragment as Fragment3, jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
1047
- var selectCSS = `
57
+ `,oH=a=>{var s=a,{error:e,success:t,leftIcon:r,rightIcon:n,style:i}=s,o=Ne(s,["error","success","leftIcon","rightIcon","style"]);return ZC(aH,{children:[qf("style",{href:"ds-input",precedence:"low",children:iH}),ZC("div",{style:{position:"relative",display:"flex",alignItems:"center",width:"100%"},children:[r&&qf("span",{style:{position:"absolute",left:"0.625rem",display:"flex",alignItems:"center",color:"var(--ds-text-secondary, #64748b)",pointerEvents:"none"},children:r}),qf("input",D({"data-ds-input":"","data-error":e?"true":void 0,"data-success":t?"true":void 0,style:D({width:"100%",height:"2.25rem",paddingTop:0,paddingBottom:0,paddingLeft:r?"2.25rem":"0.75rem",paddingRight:n?"2.25rem":"0.75rem",border:`1px solid ${e?"var(--ds-danger, #ef4444)":t?"var(--ds-success, #22c55e)":"var(--ds-border, #e2e8f0)"}`,borderRadius:"0.375rem",fontSize:"0.875rem",backgroundColor:"var(--ds-card, #fff)",color:"var(--ds-text-primary, #0f172a)",fontFamily:"inherit",transition:"border-color 0.15s, box-shadow 0.15s"},i)},o)),n&&qf("span",{style:{position:"absolute",right:"0.625rem",display:"flex",alignItems:"center",color:"var(--ds-text-secondary, #64748b)",pointerEvents:"none"},children:n})]})]})},ky=oH;import{jsx as uH,jsxs as cH}from"react/jsx-runtime";var sH=i=>{var o=i,{children:e,required:t,style:r}=o,n=Ne(o,["children","required","style"]);return cH("label",ft(D({style:D({display:"block",fontSize:"0.875rem",fontWeight:500,color:"var(--ds-text-primary, #0f172a)",marginBottom:"0.375rem"},r)},n),{children:[e,t&&uH("span",{style:{color:"var(--ds-danger, #ef4444)",marginLeft:"0.25rem"},children:"*"})]}))},lH=sH;import{Eye as fH,EyeOff as dH}from"lucide-react";import{useState as pH}from"react";import{jsx as Uf}from"react/jsx-runtime";var mH=e=>{let[t,r]=pH(!1);return Uf(ky,ft(D({},e),{type:t?"text":"password",rightIcon:Uf("button",{type:"button",onClick:()=>r(n=>!n),style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",pointerEvents:"all"},tabIndex:-1,children:t?Uf(dH,{size:16}):Uf(fH,{size:16})})}))},vH=mH;import{jsx as JC}from"react/jsx-runtime";var hH=({value:e=0})=>{let t=Math.min(100,Math.max(0,e));return JC("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,style:{width:"100%",height:"0.5rem",backgroundColor:"var(--ds-border, #e2e8f0)",borderRadius:"9999px",overflow:"hidden"},children:JC("div",{style:{height:"100%",width:`${t}%`,backgroundColor:"var(--ds-primary, #3b82f6)",borderRadius:"9999px",transition:"width 0.3s ease"}})})},yH=hH;import{useState as gH}from"react";import{jsx as Qs,jsxs as wH}from"react/jsx-runtime";var bH=({options:e,name:t,value:r,defaultValue:n="",disabled:i,onChange:o})=>{let[a,s]=gH(n),l=r!==void 0?r:a,u=c=>{i||(s(c),o==null||o(c))};return Qs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:e.map(c=>{let f=l===c.value;return wH("label",{style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",cursor:i?"not-allowed":"pointer",userSelect:"none",opacity:i?.5:1},children:[Qs("input",{type:"radio",name:t,value:c.value,checked:f,disabled:i,onChange:()=>u(c.value),style:{position:"absolute",opacity:0,width:0,height:0}}),Qs("span",{style:{width:"1.125rem",height:"1.125rem",borderRadius:"9999px",border:`2px solid ${f?"var(--ds-primary, #3b82f6)":"var(--ds-border, #e2e8f0)"}`,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,backgroundColor:"var(--ds-card, #fff)",transition:"border-color 0.15s"},children:f&&Qs("span",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"9999px",backgroundColor:"var(--ds-primary, #3b82f6)"}})}),Qs("span",{style:{fontSize:"0.875rem",color:"var(--ds-text-primary, #0f172a)"},children:c.label})]},c.value)})})},xH=bH;import{Check as PH,ChevronDown as SH}from"lucide-react";import{useEffect as AH,useRef as OH,useState as Dy}from"react";import{Fragment as IH,jsx as ma,jsxs as Yf}from"react/jsx-runtime";var EH=`
1048
58
  [data-ds-select-trigger]:focus { outline: none; border-color: var(--ds-primary, #3b82f6); box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15); }
1049
- `;
1050
- var Select = ({
1051
- options,
1052
- value,
1053
- defaultValue = "",
1054
- placeholder = "Choose an option",
1055
- disabled,
1056
- onChange
1057
- }) => {
1058
- var _a;
1059
- const [internal, setInternal] = useState10(defaultValue);
1060
- const [open, setOpen] = useState10(false);
1061
- const [hoveredOption, setHoveredOption] = useState10(null);
1062
- const ref = useRef2(null);
1063
- const selected = value !== void 0 ? value : internal;
1064
- const selectedLabel = (_a = options.find((o) => o.value === selected)) == null ? void 0 : _a.label;
1065
- const handleSelect = (val) => {
1066
- setInternal(val);
1067
- setOpen(false);
1068
- onChange == null ? void 0 : onChange(val);
1069
- };
1070
- useEffect(() => {
1071
- const handleOutside = (e) => {
1072
- if (ref.current && !ref.current.contains(e.target)) setOpen(false);
1073
- };
1074
- document.addEventListener("mousedown", handleOutside);
1075
- return () => document.removeEventListener("mousedown", handleOutside);
1076
- }, []);
1077
- return /* @__PURE__ */ jsxs14(Fragment3, { children: [
1078
- /* @__PURE__ */ jsx21("style", { href: "ds-select", precedence: "low", children: selectCSS }),
1079
- /* @__PURE__ */ jsxs14("div", { ref, style: {
1080
- position: "relative",
1081
- width: "100%",
1082
- opacity: disabled ? 0.5 : 1,
1083
- pointerEvents: disabled ? "none" : void 0
1084
- }, children: [
1085
- /* @__PURE__ */ jsxs14(
1086
- "button",
1087
- {
1088
- type: "button",
1089
- "data-ds-select-trigger": "",
1090
- onClick: () => !disabled && setOpen((o) => !o),
1091
- disabled,
1092
- style: {
1093
- width: "100%",
1094
- height: "2.25rem",
1095
- padding: "0 0.75rem",
1096
- border: `1px solid ${open ? "var(--ds-primary, #3b82f6)" : "var(--ds-border, #e2e8f0)"}`,
1097
- borderRadius: "0.375rem",
1098
- fontSize: "0.875rem",
1099
- backgroundColor: "var(--ds-card, #fff)",
1100
- cursor: "pointer",
1101
- display: "flex",
1102
- alignItems: "center",
1103
- justifyContent: "space-between",
1104
- gap: "0.5rem",
1105
- boxShadow: open ? "0 0 0 3px rgb(59 130 246 / 0.15)" : "none",
1106
- transition: "border-color 0.15s, box-shadow 0.15s",
1107
- textAlign: "left",
1108
- fontFamily: "inherit"
1109
- },
1110
- children: [
1111
- /* @__PURE__ */ jsx21("span", { style: { color: selectedLabel ? "var(--ds-text-primary, #0f172a)" : "var(--ds-text-secondary, #64748b)" }, children: selectedLabel != null ? selectedLabel : placeholder }),
1112
- /* @__PURE__ */ jsx21(
1113
- ChevronDown2,
1114
- {
1115
- size: 16,
1116
- style: {
1117
- flexShrink: 0,
1118
- color: "var(--ds-text-secondary, #64748b)",
1119
- transition: "transform 0.15s",
1120
- transform: open ? "rotate(180deg)" : "rotate(0deg)"
1121
- }
1122
- }
1123
- )
1124
- ]
1125
- }
1126
- ),
1127
- open && /* @__PURE__ */ jsx21("div", { style: {
1128
- position: "absolute",
1129
- top: "calc(100% + 0.25rem)",
1130
- left: 0,
1131
- right: 0,
1132
- zIndex: 50,
1133
- backgroundColor: "var(--ds-card, #fff)",
1134
- border: "1px solid var(--ds-border, #e2e8f0)",
1135
- borderRadius: "0.375rem",
1136
- boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
1137
- overflow: "hidden"
1138
- }, children: options.map((option) => {
1139
- const isSelected = selected === option.value;
1140
- const isHovered = hoveredOption === option.value;
1141
- return /* @__PURE__ */ jsxs14(
1142
- "div",
1143
- {
1144
- onClick: () => handleSelect(option.value),
1145
- onMouseEnter: () => setHoveredOption(option.value),
1146
- onMouseLeave: () => setHoveredOption(null),
1147
- style: {
1148
- padding: "0.5rem 0.75rem",
1149
- fontSize: "0.875rem",
1150
- cursor: "pointer",
1151
- display: "flex",
1152
- alignItems: "center",
1153
- gap: "0.5rem",
1154
- color: "var(--ds-text-primary, #0f172a)",
1155
- backgroundColor: isSelected || isHovered ? "var(--ds-muted, #f1f5f9)" : "transparent",
1156
- fontWeight: isSelected ? 500 : void 0,
1157
- transition: "background-color 0.1s"
1158
- },
1159
- children: [
1160
- isSelected ? /* @__PURE__ */ jsx21(Check2, { size: 14, style: { color: "var(--ds-primary, #3b82f6)", flexShrink: 0 } }) : /* @__PURE__ */ jsx21("span", { style: { width: 14, flexShrink: 0 } }),
1161
- option.label
1162
- ]
1163
- },
1164
- option.value
1165
- );
1166
- }) })
1167
- ] })
1168
- ] });
1169
- };
1170
- var Select_default = Select;
1171
-
1172
- // src/components/Skeleton/Skeleton.tsx
1173
- import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
1174
- var Skeleton = ({ height = "1rem", width = "100%", circle = false }) => /* @__PURE__ */ jsxs15(Fragment4, { children: [
1175
- /* @__PURE__ */ jsx22("style", { href: "ds-skeleton", precedence: "low", children: `
59
+ `,CH=({options:e,value:t,defaultValue:r="",placeholder:n="Choose an option",disabled:i,onChange:o})=>{var y;let[a,s]=Dy(r),[l,u]=Dy(!1),[c,f]=Dy(null),d=OH(null),p=t!==void 0?t:a,m=(y=e.find(h=>h.value===p))==null?void 0:y.label,v=h=>{s(h),u(!1),o==null||o(h)};return AH(()=>{let h=g=>{d.current&&!d.current.contains(g.target)&&u(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),Yf(IH,{children:[ma("style",{href:"ds-select",precedence:"low",children:EH}),Yf("div",{ref:d,style:{position:"relative",width:"100%",opacity:i?.5:1,pointerEvents:i?"none":void 0},children:[Yf("button",{type:"button","data-ds-select-trigger":"",onClick:()=>!i&&u(h=>!h),disabled:i,style:{width:"100%",height:"2.25rem",padding:"0 0.75rem",border:`1px solid ${l?"var(--ds-primary, #3b82f6)":"var(--ds-border, #e2e8f0)"}`,borderRadius:"0.375rem",fontSize:"0.875rem",backgroundColor:"var(--ds-card, #fff)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem",boxShadow:l?"0 0 0 3px rgb(59 130 246 / 0.15)":"none",transition:"border-color 0.15s, box-shadow 0.15s",textAlign:"left",fontFamily:"inherit"},children:[ma("span",{style:{color:m?"var(--ds-text-primary, #0f172a)":"var(--ds-text-secondary, #64748b)"},children:m!=null?m:n}),ma(SH,{size:16,style:{flexShrink:0,color:"var(--ds-text-secondary, #64748b)",transition:"transform 0.15s",transform:l?"rotate(180deg)":"rotate(0deg)"}})]}),l&&ma("div",{style:{position:"absolute",top:"calc(100% + 0.25rem)",left:0,right:0,zIndex:50,backgroundColor:"var(--ds-card, #fff)",border:"1px solid var(--ds-border, #e2e8f0)",borderRadius:"0.375rem",boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)",overflow:"hidden"},children:e.map(h=>{let g=p===h.value,x=c===h.value;return Yf("div",{onClick:()=>v(h.value),onMouseEnter:()=>f(h.value),onMouseLeave:()=>f(null),style:{padding:"0.5rem 0.75rem",fontSize:"0.875rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",color:"var(--ds-text-primary, #0f172a)",backgroundColor:g||x?"var(--ds-muted, #f1f5f9)":"transparent",fontWeight:g?500:void 0,transition:"background-color 0.1s"},children:[g?ma(PH,{size:14,style:{color:"var(--ds-primary, #3b82f6)",flexShrink:0}}):ma("span",{style:{width:14,flexShrink:0}}),h.label]},h.value)})})]})]})},_H=CH;import{Fragment as kH,jsx as QC,jsxs as DH}from"react/jsx-runtime";var TH=({height:e="1rem",width:t="100%",circle:r=!1})=>DH(kH,{children:[QC("style",{href:"ds-skeleton",precedence:"low",children:`
1176
60
  @keyframes ds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
1177
61
  [data-ds-skeleton] { animation: ds-pulse 1.5s ease-in-out infinite; }
1178
- ` }),
1179
- /* @__PURE__ */ jsx22(
1180
- "div",
1181
- {
1182
- "data-ds-skeleton": "",
1183
- "aria-hidden": "true",
1184
- style: {
1185
- height,
1186
- width,
1187
- backgroundColor: "var(--ds-muted, #f1f5f9)",
1188
- borderRadius: circle ? "9999px" : "0.375rem"
1189
- }
1190
- }
1191
- )
1192
- ] });
1193
- var Skeleton_default = Skeleton;
1194
-
1195
- // src/components/Slider/Slider.tsx
1196
- import { useState as useState11 } from "react";
1197
- import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
1198
- var sliderCSS = `
62
+ `}),QC("div",{"data-ds-skeleton":"","aria-hidden":"true",style:{height:e,width:t,backgroundColor:"var(--ds-muted, #f1f5f9)",borderRadius:r?"9999px":"0.375rem"}})]}),RH=TH;import{useState as MH}from"react";import{Fragment as BH,jsx as My,jsxs as zH}from"react/jsx-runtime";var NH=`
1199
63
  [data-ds-slider] {
1200
64
  -webkit-appearance: none;
1201
65
  appearance: none;
@@ -1235,290 +99,15 @@ var sliderCSS = `
1235
99
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.2);
1236
100
  }
1237
101
  [data-ds-slider]:disabled { cursor: not-allowed; }
1238
- `;
1239
- var Slider = ({
1240
- value,
1241
- defaultValue = 50,
1242
- min = 0,
1243
- max = 100,
1244
- step = 1,
1245
- disabled,
1246
- onChange
1247
- }) => {
1248
- const [internal, setInternal] = useState11(defaultValue);
1249
- const current = value !== void 0 ? value : internal;
1250
- const fill = `${(current - min) / (max - min) * 100}%`;
1251
- const handleChange = (e) => {
1252
- const val = Number(e.target.value);
1253
- setInternal(val);
1254
- onChange == null ? void 0 : onChange(val);
1255
- };
1256
- return /* @__PURE__ */ jsxs16(Fragment5, { children: [
1257
- /* @__PURE__ */ jsx23("style", { href: "ds-slider", precedence: "low", children: sliderCSS }),
1258
- /* @__PURE__ */ jsx23("div", { style: {
1259
- width: "100%",
1260
- padding: "0.25rem 0",
1261
- opacity: disabled ? 0.5 : 1
1262
- }, children: /* @__PURE__ */ jsx23(
1263
- "input",
1264
- {
1265
- type: "range",
1266
- "data-ds-slider": "",
1267
- min,
1268
- max,
1269
- step,
1270
- value: current,
1271
- disabled,
1272
- onChange: handleChange,
1273
- style: { "--fill": fill }
1274
- }
1275
- ) })
1276
- ] });
1277
- };
1278
- var Slider_default = Slider;
1279
-
1280
- // src/components/Spinner/Spinner.tsx
1281
- import { Loader2 } from "lucide-react";
1282
- import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
1283
- var sizePx = { sm: 16, md: 24, lg: 32 };
1284
- var Spinner = ({ size = "md" }) => /* @__PURE__ */ jsxs17(Fragment6, { children: [
1285
- /* @__PURE__ */ jsx24("style", { href: "ds-spin", precedence: "low", children: `@keyframes ds-spin { to { transform: rotate(360deg); } }` }),
1286
- /* @__PURE__ */ jsx24(
1287
- Loader2,
1288
- {
1289
- size: sizePx[size],
1290
- "aria-label": "Loading",
1291
- style: { color: "var(--ds-primary, #3b82f6)", animation: "ds-spin 0.75s linear infinite" }
1292
- }
1293
- )
1294
- ] });
1295
- var Spinner_default = Spinner;
1296
-
1297
- // src/components/Switch/Switch.tsx
1298
- import { useState as useState12 } from "react";
1299
- import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
1300
- var Switch = ({
1301
- label,
1302
- checked,
1303
- defaultChecked = false,
1304
- disabled,
1305
- id,
1306
- onChange
1307
- }) => {
1308
- const [internal, setInternal] = useState12(defaultChecked);
1309
- const isOn = checked !== void 0 ? checked : internal;
1310
- const handleToggle = () => {
1311
- if (disabled) return;
1312
- const next = !isOn;
1313
- setInternal(next);
1314
- onChange == null ? void 0 : onChange(next);
1315
- };
1316
- return /* @__PURE__ */ jsxs18("label", { htmlFor: id, style: {
1317
- display: "inline-flex",
1318
- alignItems: "center",
1319
- gap: "0.625rem",
1320
- cursor: disabled ? "not-allowed" : "pointer",
1321
- userSelect: "none",
1322
- opacity: disabled ? 0.5 : 1
1323
- }, children: [
1324
- /* @__PURE__ */ jsx25(
1325
- "input",
1326
- {
1327
- type: "checkbox",
1328
- id,
1329
- checked: isOn,
1330
- disabled,
1331
- onChange: handleToggle,
1332
- style: { position: "absolute", opacity: 0, width: 0, height: 0 }
1333
- }
1334
- ),
1335
- /* @__PURE__ */ jsx25("span", { style: {
1336
- width: "2.75rem",
1337
- height: "1.5rem",
1338
- borderRadius: "9999px",
1339
- backgroundColor: isOn ? "var(--ds-primary, #3b82f6)" : "var(--ds-border, #e2e8f0)",
1340
- position: "relative",
1341
- transition: "background-color 0.2s",
1342
- flexShrink: 0
1343
- }, children: /* @__PURE__ */ jsx25("span", { style: {
1344
- position: "absolute",
1345
- top: "0.175rem",
1346
- left: "0.175rem",
1347
- width: "1.15rem",
1348
- height: "1.15rem",
1349
- borderRadius: "9999px",
1350
- backgroundColor: "#fff",
1351
- boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.15)",
1352
- transition: "transform 0.2s",
1353
- transform: isOn ? "translateX(1.25rem)" : "translateX(0)"
1354
- } }) }),
1355
- label && /* @__PURE__ */ jsx25("span", { style: { fontSize: "0.875rem", color: "var(--ds-text-primary, #0f172a)" }, children: label })
1356
- ] });
1357
- };
1358
- var Switch_default = Switch;
1359
-
1360
- // src/components/Table/Table.tsx
1361
- import { Fragment as Fragment7, jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
1362
- var tableCSS = `
102
+ `,jH=({value:e,defaultValue:t=50,min:r=0,max:n=100,step:i=1,disabled:o,onChange:a})=>{let[s,l]=MH(t),u=e!==void 0?e:s,c=`${(u-r)/(n-r)*100}%`;return zH(BH,{children:[My("style",{href:"ds-slider",precedence:"low",children:NH}),My("div",{style:{width:"100%",padding:"0.25rem 0",opacity:o?.5:1},children:My("input",{type:"range","data-ds-slider":"",min:r,max:n,step:i,value:u,disabled:o,onChange:d=>{let p=Number(d.target.value);l(p),a==null||a(p)},style:{"--fill":c}})})]})},LH=jH;import{Loader2 as FH}from"lucide-react";import{Fragment as $H,jsx as e_,jsxs as HH}from"react/jsx-runtime";var WH={sm:16,md:24,lg:32},VH=({size:e="md"})=>HH($H,{children:[e_("style",{href:"ds-spin",precedence:"low",children:"@keyframes ds-spin { to { transform: rotate(360deg); } }"}),e_(FH,{size:WH[e],"aria-label":"Loading",style:{color:"var(--ds-primary, #3b82f6)",animation:"ds-spin 0.75s linear infinite"}})]}),KH=VH;import{useState as qH}from"react";import{jsx as Gf,jsxs as GH}from"react/jsx-runtime";var UH=({label:e,checked:t,defaultChecked:r=!1,disabled:n,id:i,onChange:o})=>{let[a,s]=qH(r),l=t!==void 0?t:a;return GH("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:"0.625rem",cursor:n?"not-allowed":"pointer",userSelect:"none",opacity:n?.5:1},children:[Gf("input",{type:"checkbox",id:i,checked:l,disabled:n,onChange:()=>{if(n)return;let c=!l;s(c),o==null||o(c)},style:{position:"absolute",opacity:0,width:0,height:0}}),Gf("span",{style:{width:"2.75rem",height:"1.5rem",borderRadius:"9999px",backgroundColor:l?"var(--ds-primary, #3b82f6)":"var(--ds-border, #e2e8f0)",position:"relative",transition:"background-color 0.2s",flexShrink:0},children:Gf("span",{style:{position:"absolute",top:"0.175rem",left:"0.175rem",width:"1.15rem",height:"1.15rem",borderRadius:"9999px",backgroundColor:"#fff",boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.15)",transition:"transform 0.2s",transform:l?"translateX(1.25rem)":"translateX(0)"}})}),e&&Gf("span",{style:{fontSize:"0.875rem",color:"var(--ds-text-primary, #0f172a)"},children:e})]})},YH=UH;import{Fragment as nq,jsx as qn,jsxs as iq}from"react/jsx-runtime";var XH=`
1363
103
  [data-ds-table-row]:hover [data-ds-table-cell] { background-color: var(--ds-muted, #f1f5f9); }
1364
- `;
1365
- var Table = (_a) => {
1366
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
1367
- return /* @__PURE__ */ jsxs19(Fragment7, { children: [
1368
- /* @__PURE__ */ jsx26("style", { href: "ds-table", precedence: "low", children: tableCSS }),
1369
- /* @__PURE__ */ jsx26("div", { style: {
1370
- width: "100%",
1371
- overflowX: "auto",
1372
- border: "1px solid var(--ds-border, #e2e8f0)",
1373
- borderRadius: "0.5rem"
1374
- }, children: /* @__PURE__ */ jsx26("table", __spreadValues({ style: __spreadValues({
1375
- width: "100%",
1376
- borderCollapse: "collapse",
1377
- fontSize: "0.875rem"
1378
- }, style) }, props)) })
1379
- ] });
1380
- };
1381
- var TableHead = (props) => /* @__PURE__ */ jsx26("thead", __spreadValues({}, props));
1382
- var TableBody = (props) => /* @__PURE__ */ jsx26("tbody", __spreadValues({}, props));
1383
- var TableRow = (_a) => {
1384
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
1385
- return /* @__PURE__ */ jsx26("tr", __spreadValues({ "data-ds-table-row": "", style }, props));
1386
- };
1387
- var TableHeader = (_a) => {
1388
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
1389
- return /* @__PURE__ */ jsx26("th", __spreadValues({ style: __spreadValues({
1390
- padding: "0.75rem 1rem",
1391
- textAlign: "left",
1392
- fontWeight: 500,
1393
- color: "var(--ds-text-secondary, #64748b)",
1394
- backgroundColor: "var(--ds-muted, #f1f5f9)",
1395
- borderBottom: "1px solid var(--ds-border, #e2e8f0)",
1396
- whiteSpace: "nowrap"
1397
- }, style) }, props));
1398
- };
1399
- var TableCell = (_a) => {
1400
- var _b = _a, { style } = _b, props = __objRest(_b, ["style"]);
1401
- return /* @__PURE__ */ jsx26(
1402
- "td",
1403
- __spreadValues({
1404
- "data-ds-table-cell": "",
1405
- style: __spreadValues({
1406
- padding: "0.75rem 1rem",
1407
- borderBottom: "1px solid var(--ds-border, #e2e8f0)",
1408
- color: "var(--ds-text-primary, #0f172a)",
1409
- transition: "background-color 0.1s"
1410
- }, style)
1411
- }, props)
1412
- );
1413
- };
1414
-
1415
- // src/components/Tabs/Tabs.tsx
1416
- import { useState as useState13 } from "react";
1417
- import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
1418
- var Tabs = ({ tabs, defaultValue }) => {
1419
- var _a, _b;
1420
- const [active, setActive] = useState13((_b = defaultValue != null ? defaultValue : (_a = tabs[0]) == null ? void 0 : _a.value) != null ? _b : "");
1421
- const [hovered, setHovered] = useState13(null);
1422
- const activeTab = tabs.find((t) => t.value === active);
1423
- return /* @__PURE__ */ jsxs20("div", { style: { display: "flex", flexDirection: "column" }, children: [
1424
- /* @__PURE__ */ jsx27("div", { role: "tablist", style: {
1425
- display: "inline-flex",
1426
- backgroundColor: "var(--ds-muted, #f1f5f9)",
1427
- borderRadius: "0.5rem",
1428
- padding: "0.25rem",
1429
- gap: "0.125rem"
1430
- }, children: tabs.map((tab) => {
1431
- const isActive = active === tab.value;
1432
- const isHovered = hovered === tab.value;
1433
- return /* @__PURE__ */ jsxs20(
1434
- "button",
1435
- {
1436
- role: "tab",
1437
- "aria-selected": isActive,
1438
- onClick: () => setActive(tab.value),
1439
- onMouseEnter: () => setHovered(tab.value),
1440
- onMouseLeave: () => setHovered(null),
1441
- style: {
1442
- display: "inline-flex",
1443
- alignItems: "center",
1444
- gap: "0.375rem",
1445
- padding: "0.375rem 0.75rem",
1446
- fontSize: "0.875rem",
1447
- fontWeight: 500,
1448
- borderRadius: "0.375rem",
1449
- background: isActive ? "var(--ds-card, #ffffff)" : "transparent",
1450
- border: "none",
1451
- cursor: "pointer",
1452
- color: isActive || isHovered ? "var(--ds-text-primary, #0f172a)" : "var(--ds-text-secondary, #64748b)",
1453
- boxShadow: isActive ? "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)" : "none",
1454
- transition: "color 0.15s, background-color 0.15s, box-shadow 0.15s",
1455
- whiteSpace: "nowrap"
1456
- },
1457
- children: [
1458
- tab.icon && /* @__PURE__ */ jsx27("span", { style: { display: "flex", alignItems: "center" }, children: tab.icon }),
1459
- tab.label
1460
- ]
1461
- },
1462
- tab.value
1463
- );
1464
- }) }),
1465
- /* @__PURE__ */ jsx27("div", { role: "tabpanel", style: {
1466
- paddingTop: "1rem",
1467
- fontSize: "0.875rem",
1468
- color: "var(--ds-text-secondary, #64748b)"
1469
- }, children: activeTab == null ? void 0 : activeTab.content })
1470
- ] });
1471
- };
1472
- var Tabs_default = Tabs;
1473
-
1474
- // src/components/Textarea/Textarea.tsx
1475
- import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
1476
- var textareaCSS = `
104
+ `,ZH=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return iq(nq,{children:[qn("style",{href:"ds-table",precedence:"low",children:XH}),qn("div",{style:{width:"100%",overflowX:"auto",border:"1px solid var(--ds-border, #e2e8f0)",borderRadius:"0.5rem"},children:qn("table",D({style:D({width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},e)},t))})]})},JH=e=>qn("thead",D({},e)),QH=e=>qn("tbody",D({},e)),eq=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return qn("tr",D({"data-ds-table-row":"",style:e},t))},tq=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return qn("th",D({style:D({padding:"0.75rem 1rem",textAlign:"left",fontWeight:500,color:"var(--ds-text-secondary, #64748b)",backgroundColor:"var(--ds-muted, #f1f5f9)",borderBottom:"1px solid var(--ds-border, #e2e8f0)",whiteSpace:"nowrap"},e)},t))},rq=r=>{var n=r,{style:e}=n,t=Ne(n,["style"]);return qn("td",D({"data-ds-table-cell":"",style:D({padding:"0.75rem 1rem",borderBottom:"1px solid var(--ds-border, #e2e8f0)",color:"var(--ds-text-primary, #0f172a)",transition:"background-color 0.1s"},e)},t))};import{useState as t_}from"react";import{jsx as Ny,jsxs as r_}from"react/jsx-runtime";var oq=({tabs:e,defaultValue:t})=>{var s,l;let[r,n]=t_((l=t!=null?t:(s=e[0])==null?void 0:s.value)!=null?l:""),[i,o]=t_(null),a=e.find(u=>u.value===r);return r_("div",{style:{display:"flex",flexDirection:"column"},children:[Ny("div",{role:"tablist",style:{display:"inline-flex",backgroundColor:"var(--ds-muted, #f1f5f9)",borderRadius:"0.5rem",padding:"0.25rem",gap:"0.125rem"},children:e.map(u=>{let c=r===u.value,f=i===u.value;return r_("button",{role:"tab","aria-selected":c,onClick:()=>n(u.value),onMouseEnter:()=>o(u.value),onMouseLeave:()=>o(null),style:{display:"inline-flex",alignItems:"center",gap:"0.375rem",padding:"0.375rem 0.75rem",fontSize:"0.875rem",fontWeight:500,borderRadius:"0.375rem",background:c?"var(--ds-card, #ffffff)":"transparent",border:"none",cursor:"pointer",color:c||f?"var(--ds-text-primary, #0f172a)":"var(--ds-text-secondary, #64748b)",boxShadow:c?"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)":"none",transition:"color 0.15s, background-color 0.15s, box-shadow 0.15s",whiteSpace:"nowrap"},children:[u.icon&&Ny("span",{style:{display:"flex",alignItems:"center"},children:u.icon}),u.label]},u.value)})}),Ny("div",{role:"tabpanel",style:{paddingTop:"1rem",fontSize:"0.875rem",color:"var(--ds-text-secondary, #64748b)"},children:a==null?void 0:a.content})]})},aq=oq;import{Fragment as cq,jsx as n_,jsxs as fq}from"react/jsx-runtime";var sq=`
1477
105
  [data-ds-textarea]::placeholder { color: var(--ds-text-secondary, #64748b); }
1478
106
  [data-ds-textarea]:focus { outline: none; border-color: var(--ds-primary, #3b82f6); box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15); }
1479
107
  [data-ds-textarea]:disabled { opacity: 0.5; cursor: not-allowed; background-color: var(--ds-muted, #f1f5f9); }
1480
108
  [data-ds-textarea][data-error="true"] { border-color: var(--ds-danger, #ef4444); }
1481
109
  [data-ds-textarea][data-error="true"]:focus { border-color: var(--ds-danger, #ef4444); box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15); }
1482
- `;
1483
- var Textarea = (_a) => {
1484
- var _b = _a, { error, style } = _b, props = __objRest(_b, ["error", "style"]);
1485
- return /* @__PURE__ */ jsxs21(Fragment8, { children: [
1486
- /* @__PURE__ */ jsx28("style", { href: "ds-textarea", precedence: "low", children: textareaCSS }),
1487
- /* @__PURE__ */ jsx28(
1488
- "textarea",
1489
- __spreadValues({
1490
- "data-ds-textarea": "",
1491
- "data-error": error ? "true" : void 0,
1492
- style: __spreadValues({
1493
- width: "100%",
1494
- padding: "0.5rem 0.75rem",
1495
- border: `1px solid ${error ? "var(--ds-danger, #ef4444)" : "var(--ds-border, #e2e8f0)"}`,
1496
- borderRadius: "0.375rem",
1497
- fontSize: "0.875rem",
1498
- backgroundColor: "var(--ds-card, #fff)",
1499
- color: "var(--ds-text-primary, #0f172a)",
1500
- fontFamily: "inherit",
1501
- resize: "vertical",
1502
- transition: "border-color 0.15s, box-shadow 0.15s",
1503
- minHeight: "6rem",
1504
- boxSizing: "border-box"
1505
- }, style)
1506
- }, props)
1507
- )
1508
- ] });
1509
- };
1510
- var Textarea_default = Textarea;
1511
-
1512
- // src/components/Tooltip/Tooltip.tsx
1513
- import { useState as useState14 } from "react";
1514
- import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
1515
- var positionStyle = {
1516
- top: { bottom: "calc(100% + 8px)", left: "50%", transform: "translateX(-50%)" },
1517
- bottom: { top: "calc(100% + 8px)", left: "50%", transform: "translateX(-50%)" },
1518
- left: { right: "calc(100% + 8px)", top: "50%", transform: "translateY(-50%)" },
1519
- right: { left: "calc(100% + 8px)", top: "50%", transform: "translateY(-50%)" }
1520
- };
1521
- var tooltipCSS = `
110
+ `,lq=n=>{var i=n,{error:e,style:t}=i,r=Ne(i,["error","style"]);return fq(cq,{children:[n_("style",{href:"ds-textarea",precedence:"low",children:sq}),n_("textarea",D({"data-ds-textarea":"","data-error":e?"true":void 0,style:D({width:"100%",padding:"0.5rem 0.75rem",border:`1px solid ${e?"var(--ds-danger, #ef4444)":"var(--ds-border, #e2e8f0)"}`,borderRadius:"0.375rem",fontSize:"0.875rem",backgroundColor:"var(--ds-card, #fff)",color:"var(--ds-text-primary, #0f172a)",fontFamily:"inherit",resize:"vertical",transition:"border-color 0.15s, box-shadow 0.15s",minHeight:"6rem",boxSizing:"border-box"},t)},r))]})},uq=lq;import{useState as dq}from"react";import{Fragment as yq,jsx as i_,jsxs as o_}from"react/jsx-runtime";var pq={top:{bottom:"calc(100% + 8px)",left:"50%",transform:"translateX(-50%)"},bottom:{top:"calc(100% + 8px)",left:"50%",transform:"translateX(-50%)"},left:{right:"calc(100% + 8px)",top:"50%",transform:"translateY(-50%)"},right:{left:"calc(100% + 8px)",top:"50%",transform:"translateY(-50%)"}},mq=`
1522
111
  [data-ds-tt]::before {
1523
112
  content: '';
1524
113
  position: absolute;
@@ -1528,89 +117,93 @@ var tooltipCSS = `
1528
117
  [data-ds-tt="bottom"]::before { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: var(--ds-tooltip-bg, #0f172a); }
1529
118
  [data-ds-tt="left"]::before { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: var(--ds-tooltip-bg, #0f172a); }
1530
119
  [data-ds-tt="right"]::before { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: var(--ds-tooltip-bg, #0f172a); }
1531
- `;
1532
- var Tooltip5 = ({ content, children, position = "top" }) => {
1533
- const [visible, setVisible] = useState14(false);
1534
- return /* @__PURE__ */ jsxs22(Fragment9, { children: [
1535
- /* @__PURE__ */ jsx29("style", { href: "ds-tooltip", precedence: "low", children: tooltipCSS }),
1536
- /* @__PURE__ */ jsxs22(
1537
- "span",
1538
- {
1539
- style: { position: "relative", display: "inline-flex" },
1540
- onMouseEnter: () => setVisible(true),
1541
- onMouseLeave: () => setVisible(false),
1542
- onFocus: () => setVisible(true),
1543
- onBlur: () => setVisible(false),
1544
- children: [
1545
- children,
1546
- /* @__PURE__ */ jsx29(
1547
- "span",
1548
- {
1549
- role: "tooltip",
1550
- "data-ds-tt": position,
1551
- style: __spreadValues({
1552
- position: "absolute",
1553
- zIndex: 50,
1554
- padding: "0.375rem 0.625rem",
1555
- backgroundColor: "var(--ds-tooltip-bg, #0f172a)",
1556
- color: "var(--ds-tooltip-text, #ffffff)",
1557
- fontSize: "0.75rem",
1558
- lineHeight: 1.4,
1559
- borderRadius: "0.375rem",
1560
- whiteSpace: "nowrap",
1561
- pointerEvents: "none",
1562
- opacity: visible ? 1 : 0,
1563
- transition: "opacity 0.15s"
1564
- }, positionStyle[position]),
1565
- children: content
1566
- }
1567
- )
1568
- ]
1569
- }
1570
- )
1571
- ] });
1572
- };
1573
- var Tooltip_default = Tooltip5;
1574
- export {
1575
- Accordion_default as Accordion,
1576
- Alert_default as Alert,
1577
- AreaChart_default as AreaChart,
1578
- Avatar_default as Avatar,
1579
- Badge_default as Badge,
1580
- BarChart_default as BarChart,
1581
- Breadcrumb_default as Breadcrumb,
1582
- Button_default as Button,
1583
- Card,
1584
- CardContent,
1585
- CardDescription,
1586
- CardFooter,
1587
- CardHeader,
1588
- CardTitle,
1589
- Checkbox_default as Checkbox,
1590
- CopyButton_default as CopyButton,
1591
- FileUpload_default as FileUpload,
1592
- Input_default as Input,
1593
- Label_default as Label,
1594
- LineChart_default as LineChart,
1595
- PasswordInput_default as PasswordInput,
1596
- PieChart_default as PieChart,
1597
- Progress_default as Progress,
1598
- RadioGroup_default as RadioGroup,
1599
- Select_default as Select,
1600
- Skeleton_default as Skeleton,
1601
- Slider_default as Slider,
1602
- Spinner_default as Spinner,
1603
- Switch_default as Switch,
1604
- Table,
1605
- TableBody,
1606
- TableCell,
1607
- TableHead,
1608
- TableHeader,
1609
- TableRow,
1610
- Tabs_default as Tabs,
1611
- Textarea_default as Textarea,
1612
- ThemeProvider,
1613
- Tooltip_default as Tooltip,
1614
- useTheme
1615
- };
120
+ `,vq=({content:e,children:t,position:r="top"})=>{let[n,i]=dq(!1);return o_(yq,{children:[i_("style",{href:"ds-tooltip",precedence:"low",children:mq}),o_("span",{style:{position:"relative",display:"inline-flex"},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),children:[t,i_("span",{role:"tooltip","data-ds-tt":r,style:D({position:"absolute",zIndex:50,padding:"0.375rem 0.625rem",backgroundColor:"var(--ds-tooltip-bg, #0f172a)",color:"var(--ds-tooltip-text, #ffffff)",fontSize:"0.75rem",lineHeight:1.4,borderRadius:"0.375rem",whiteSpace:"nowrap",pointerEvents:"none",opacity:n?1:0,transition:"opacity 0.15s"},pq[r]),children:e})]})]})},hq=vq;export{u$ as Accordion,y$ as Alert,r$ as AreaChart,x$ as Avatar,O$ as Badge,Q8 as BarChart,T$ as Breadcrumb,B$ as Button,F$ as Card,$$ as CardContent,K$ as CardDescription,H$ as CardFooter,W$ as CardHeader,V$ as CardTitle,Y$ as Checkbox,Q$ as CopyButton,nH as FileUpload,ky as Input,lH as Label,X8 as LineChart,vH as PasswordInput,o$ as PieChart,yH as Progress,xH as RadioGroup,_H as Select,RH as Skeleton,LH as Slider,KH as Spinner,YH as Switch,ZH as Table,QH as TableBody,rq as TableCell,JH as TableHead,tq as TableHeader,eq as TableRow,aq as Tabs,uq as Textarea,y_ as ThemeProvider,hq as Tooltip,g_ as useTheme};
121
+ /*! Bundled license information:
122
+
123
+ use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
124
+ (**
125
+ * @license React
126
+ * use-sync-external-store-shim.production.js
127
+ *
128
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
129
+ *
130
+ * This source code is licensed under the MIT license found in the
131
+ * LICENSE file in the root directory of this source tree.
132
+ *)
133
+
134
+ use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
135
+ (**
136
+ * @license React
137
+ * use-sync-external-store-shim.development.js
138
+ *
139
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ *)
144
+
145
+ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
146
+ (**
147
+ * @license React
148
+ * use-sync-external-store-shim/with-selector.production.js
149
+ *
150
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
151
+ *
152
+ * This source code is licensed under the MIT license found in the
153
+ * LICENSE file in the root directory of this source tree.
154
+ *)
155
+
156
+ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
157
+ (**
158
+ * @license React
159
+ * use-sync-external-store-shim/with-selector.development.js
160
+ *
161
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
162
+ *
163
+ * This source code is licensed under the MIT license found in the
164
+ * LICENSE file in the root directory of this source tree.
165
+ *)
166
+
167
+ use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
168
+ (**
169
+ * @license React
170
+ * use-sync-external-store-with-selector.production.js
171
+ *
172
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
173
+ *
174
+ * This source code is licensed under the MIT license found in the
175
+ * LICENSE file in the root directory of this source tree.
176
+ *)
177
+
178
+ use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js:
179
+ (**
180
+ * @license React
181
+ * use-sync-external-store-with-selector.development.js
182
+ *
183
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
184
+ *
185
+ * This source code is licensed under the MIT license found in the
186
+ * LICENSE file in the root directory of this source tree.
187
+ *)
188
+
189
+ react-is/cjs/react-is.production.min.js:
190
+ (** @license React v16.13.1
191
+ * react-is.production.min.js
192
+ *
193
+ * Copyright (c) Facebook, Inc. and its affiliates.
194
+ *
195
+ * This source code is licensed under the MIT license found in the
196
+ * LICENSE file in the root directory of this source tree.
197
+ *)
198
+
199
+ react-is/cjs/react-is.development.js:
200
+ (** @license React v16.13.1
201
+ * react-is.development.js
202
+ *
203
+ * Copyright (c) Facebook, Inc. and its affiliates.
204
+ *
205
+ * This source code is licensed under the MIT license found in the
206
+ * LICENSE file in the root directory of this source tree.
207
+ *)
208
+ */
1616
209
  //# sourceMappingURL=index.js.map