@sakaniui/react 0.3.14 → 0.3.15

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.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as ee, W as S, X as C, Y as te, Z as w, _ as ne, a as re, at as ie, b as T, c as ae, ct as oe, d as se, dt as E, et as ce, f as le, g as ue, h as de, i as fe, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, n as ye, nt as be, o as xe, ot as Se, p as Ce, q as we, r as Te, rt as Ee, s as De, st as Oe, t as ke, tt as Ae, u as je, ut as Me, v as Ne, w as Pe, x as Fe, y as Ie, z as Le } from "./TopBar-CdIyPMAY.js";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as ee, Z as te, _ as ne, a as re, at as ie, b as T, c as ae, ct as oe, d as se, dt as E, et as ce, f as le, g as ue, h as de, i as fe, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, n as ye, nt as be, o as xe, ot as Se, p as Ce, q as we, r as Te, rt as Ee, s as De, st as Oe, t as ke, tt as Ae, u as je, ut as Me, v as Ne, w as Pe, x as Fe, y as Ie, z as Le } from "./TopBar-CdIyPMAY.js";
2
2
  import D, { useEffect as Re, useState as ze } from "react";
3
3
  import { Fragment as Be, jsx as O, jsxs as k } from "react/jsx-runtime";
4
4
  import { ArrowRight as Ve, ChartColumn as He, Check as Ue, ChevronDown as We, ChevronLeft as Ge, ChevronRight as Ke, Copy as qe, EllipsisVertical as Je, File as Ye, Info as Xe, LogOut as Ze, Menu as Qe, Minus as $e, MoreHorizontal as et, Play as tt, Plus as nt, Quote as rt, Receipt as it, Search as at, Sparkles as ot, TrendingDown as st, TrendingUp as ct, TriangleAlert as lt, UploadCloud as ut, X as dt } from "lucide-react";
5
- import { Area as ft, AreaChart as pt, Bar as mt, BarChart as ht, CartesianGrid as gt, Cell as A, Legend as _t, Line as vt, LineChart as yt, Pie as bt, PieChart as xt, PolarAngleAxis as St, PolarGrid as Ct, PolarRadiusAxis as wt, Radar as Tt, RadarChart as Et, RadialBar as Dt, RadialBarChart as Ot, Rectangle as kt, ResponsiveContainer as j, Sector as At, Tooltip as jt, XAxis as Mt, YAxis as Nt } from "recharts";
6
- var Pt = {
5
+ import { Area as ft, AreaChart as pt, Bar as mt, BarChart as ht, CartesianGrid as gt, Cell as _t, Legend as vt, Line as yt, LineChart as bt, Pie as xt, PieChart as St, PolarAngleAxis as Ct, PolarGrid as wt, PolarRadiusAxis as Tt, Radar as Et, RadarChart as Dt, RadialBar as Ot, RadialBarChart as kt, Rectangle as At, ResponsiveContainer as A, Sector as jt, Tooltip as Mt, XAxis as Nt, YAxis as Pt } from "recharts";
6
+ var Ft = {
7
7
  announcement: "_announcement_1ba3c_1",
8
8
  "announcement--neutral": "_announcement--neutral_1ba3c_13",
9
9
  "announcement--urgent": "_announcement--urgent_1ba3c_16",
@@ -12,19 +12,19 @@ var Pt = {
12
12
  icon__neutral: "_icon__neutral_1ba3c_32",
13
13
  message: "_message_1ba3c_36",
14
14
  link: "_link_1ba3c_52"
15
- }, Ft = ({ message: e, linkLabel: t, linkHref: n, onLinkClick: r, onDismiss: i, variant: a = "neutral", className: o }) => {
15
+ }, It = ({ message: e, linkLabel: t, linkHref: n, onLinkClick: r, onDismiss: i, variant: a = "neutral", className: o }) => {
16
16
  let s = a === "urgent";
17
17
  return /* @__PURE__ */ k("div", {
18
18
  className: [
19
- Pt.announcement,
20
- Pt[`announcement--${a}`],
19
+ Ft.announcement,
20
+ Ft[`announcement--${a}`],
21
21
  o ?? ""
22
22
  ].filter(Boolean).join(" "),
23
23
  children: [/* @__PURE__ */ k("div", {
24
- className: Pt.content,
24
+ className: Ft.content,
25
25
  children: [
26
26
  /* @__PURE__ */ O("span", {
27
- className: Pt.icon,
27
+ className: Ft.icon,
28
28
  "aria-hidden": "true",
29
29
  children: s ? /* @__PURE__ */ O(lt, {
30
30
  size: 24,
@@ -38,17 +38,17 @@ var Pt = {
38
38
  strokeWidth: 1.5,
39
39
  fill: "currentColor",
40
40
  stroke: "currentColor",
41
- className: Pt.icon__neutral
41
+ className: Ft.icon__neutral
42
42
  })
43
43
  }),
44
44
  /* @__PURE__ */ O("p", {
45
- className: Pt.message,
45
+ className: Ft.message,
46
46
  children: e
47
47
  }),
48
48
  !s && t && /* @__PURE__ */ O(ie, {
49
49
  href: n,
50
50
  onClick: r,
51
- className: Pt.link,
51
+ className: Ft.link,
52
52
  style: {
53
53
  color: "var(--color-brand-fg)",
54
54
  fontSize: 16,
@@ -65,7 +65,7 @@ var Pt = {
65
65
  onClick: i
66
66
  })]
67
67
  });
68
- }, M = {
68
+ }, j = {
69
69
  snippet: "_snippet_1ao90_1",
70
70
  header: "_header_1ao90_12",
71
71
  filename: "_filename_1ao90_19",
@@ -74,7 +74,7 @@ var Pt = {
74
74
  tokenString: "_tokenString_1ao90_43",
75
75
  editableBody: "_editableBody_1ao90_50",
76
76
  textarea: "_textarea_1ao90_55"
77
- }, It = [
77
+ }, Lt = [
78
78
  "import",
79
79
  "export",
80
80
  "from",
@@ -96,17 +96,17 @@ var Pt = {
96
96
  "as",
97
97
  "of",
98
98
  "in"
99
- ], Lt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${It.join("|")})\\b)`, "g"), Rt = (e) => e.split(Lt).map((e, t) => {
99
+ ], Rt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${Lt.join("|")})\\b)`, "g"), zt = (e) => e.split(Rt).map((e, t) => {
100
100
  if (!e) return null;
101
- let n = /^['"`]/.test(e), r = !n && It.includes(e);
101
+ let n = /^['"`]/.test(e), r = !n && Lt.includes(e);
102
102
  return n ? /* @__PURE__ */ O("span", {
103
- className: M.tokenString,
103
+ className: j.tokenString,
104
104
  children: e
105
105
  }, t) : r ? /* @__PURE__ */ O("span", {
106
- className: M.tokenKeyword,
106
+ className: j.tokenKeyword,
107
107
  children: e
108
108
  }, t) : /* @__PURE__ */ O(D.Fragment, { children: e }, t);
109
- }), zt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
109
+ }), Bt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
110
110
  let [s, c] = D.useState(!1), [l, u] = D.useState(e);
111
111
  D.useEffect(() => u(e), [e]);
112
112
  let d = () => {
@@ -114,13 +114,13 @@ var Pt = {
114
114
  }, f = (e) => {
115
115
  u(e), i?.(e);
116
116
  }, p = r ? /* @__PURE__ */ k("div", {
117
- className: M.editableBody,
117
+ className: j.editableBody,
118
118
  children: [/* @__PURE__ */ O("pre", {
119
- className: M.body,
119
+ className: j.body,
120
120
  "aria-hidden": "true",
121
- children: Rt(l)
121
+ children: zt(l)
122
122
  }), /* @__PURE__ */ O("textarea", {
123
- className: M.textarea,
123
+ className: j.textarea,
124
124
  value: l,
125
125
  placeholder: a,
126
126
  spellCheck: !1,
@@ -135,15 +135,15 @@ var Pt = {
135
135
  }
136
136
  })]
137
137
  }) : /* @__PURE__ */ O("pre", {
138
- className: M.body,
139
- children: Rt(l)
138
+ className: j.body,
139
+ children: zt(l)
140
140
  });
141
141
  return t ? /* @__PURE__ */ k("div", {
142
- className: [M.snippet, o ?? ""].filter(Boolean).join(" "),
142
+ className: [j.snippet, o ?? ""].filter(Boolean).join(" "),
143
143
  children: [/* @__PURE__ */ k("div", {
144
- className: M.header,
144
+ className: j.header,
145
145
  children: [/* @__PURE__ */ O("p", {
146
- className: M.filename,
146
+ className: j.filename,
147
147
  children: t
148
148
  }), /* @__PURE__ */ O(pe, {
149
149
  icon: s ? Ue : qe,
@@ -154,10 +154,10 @@ var Pt = {
154
154
  })]
155
155
  }), p]
156
156
  }) : /* @__PURE__ */ O("div", {
157
- className: [M.snippet, o ?? ""].filter(Boolean).join(" "),
157
+ className: [j.snippet, o ?? ""].filter(Boolean).join(" "),
158
158
  children: p
159
159
  });
160
- }, Bt = {
160
+ }, Vt = {
161
161
  expenses: "_expenses_1imiq_1",
162
162
  row: "_row_1imiq_10",
163
163
  top: "_top_1imiq_18",
@@ -165,29 +165,29 @@ var Pt = {
165
165
  icon: "_icon_1imiq_32",
166
166
  label: "_label_1imiq_44",
167
167
  amount: "_amount_1imiq_55"
168
- }, Vt = (e) => e.toLocaleString("en-US", {
168
+ }, Ht = (e) => e.toLocaleString("en-US", {
169
169
  style: "currency",
170
170
  currency: "USD"
171
- }), Ht = ({ categories: e, variant: t = "default", formatAmount: n = Vt, className: r }) => {
171
+ }), Ut = ({ categories: e, variant: t = "default", formatAmount: n = Ht, className: r }) => {
172
172
  let i = t === "compact", a = Math.max(1, ...e.map((e) => e.amount));
173
173
  return /* @__PURE__ */ O("div", {
174
- className: [Bt.expenses, r ?? ""].filter(Boolean).join(" "),
174
+ className: [Vt.expenses, r ?? ""].filter(Boolean).join(" "),
175
175
  children: e.map((e, t) => /* @__PURE__ */ k("div", {
176
- className: Bt.row,
176
+ className: Vt.row,
177
177
  children: [/* @__PURE__ */ k("div", {
178
- className: Bt.top,
178
+ className: Vt.top,
179
179
  children: [/* @__PURE__ */ k("div", {
180
- className: Bt.left,
180
+ className: Vt.left,
181
181
  children: [/* @__PURE__ */ O("span", {
182
- className: Bt.icon,
182
+ className: Vt.icon,
183
183
  "aria-hidden": "true",
184
184
  children: e.icon
185
185
  }), /* @__PURE__ */ O("p", {
186
- className: Bt.label,
186
+ className: Vt.label,
187
187
  children: e.label
188
188
  })]
189
189
  }), /* @__PURE__ */ O("p", {
190
- className: Bt.amount,
190
+ className: Vt.amount,
191
191
  children: n(e.amount)
192
192
  })]
193
193
  }), !i && /* @__PURE__ */ O(ce, {
@@ -197,38 +197,38 @@ var Pt = {
197
197
  })]
198
198
  }, e.id ?? t))
199
199
  });
200
- }, Ut = {
200
+ }, Wt = {
201
201
  hint: "_hint_49nyi_1",
202
202
  bar: "_bar_49nyi_9",
203
203
  "hint--neutral": "_hint--neutral_49nyi_15",
204
204
  "hint--warning": "_hint--warning_49nyi_16",
205
205
  icon: "_icon_49nyi_18",
206
206
  message: "_message_49nyi_24"
207
- }, Wt = 14, Gt = ({ message: e, variant: t = "neutral", className: n }) => {
207
+ }, Gt = 14, Kt = ({ message: e, variant: t = "neutral", className: n }) => {
208
208
  let r = t === "warning" ? lt : Xe;
209
209
  return /* @__PURE__ */ k("div", {
210
210
  className: [
211
- Ut.hint,
212
- Ut[`hint--${t}`],
211
+ Wt.hint,
212
+ Wt[`hint--${t}`],
213
213
  n ?? ""
214
214
  ].filter(Boolean).join(" "),
215
215
  children: [
216
216
  /* @__PURE__ */ O("span", {
217
- className: Ut.bar,
217
+ className: Wt.bar,
218
218
  "aria-hidden": "true"
219
219
  }),
220
220
  /* @__PURE__ */ O(r, {
221
- size: Wt,
222
- strokeWidth: E(Wt),
223
- className: Ut.icon
221
+ size: Gt,
222
+ strokeWidth: E(Gt),
223
+ className: Wt.icon
224
224
  }),
225
225
  /* @__PURE__ */ O("p", {
226
- className: Ut.message,
226
+ className: Wt.message,
227
227
  children: e
228
228
  })
229
229
  ]
230
230
  });
231
- }, N = {
231
+ }, M = {
232
232
  item: "_item_mg6gs_1",
233
233
  "item--horizontal": "_item--horizontal_mg6gs_6",
234
234
  "item--vertical": "_item--vertical_mg6gs_11",
@@ -240,66 +240,66 @@ var Pt = {
240
240
  text: "_text_mg6gs_59",
241
241
  title: "_title_mg6gs_65",
242
242
  description: "_description_mg6gs_73"
243
- }, Kt = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
243
+ }, qt = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
244
244
  let s = i === "vertical", c = /* @__PURE__ */ O("span", {
245
- className: N.value,
245
+ className: M.value,
246
246
  "aria-hidden": "true",
247
247
  children: r ? /* @__PURE__ */ O(Ue, {
248
248
  size: 14,
249
249
  strokeWidth: E(14)
250
250
  }) : e
251
251
  }), l = /* @__PURE__ */ k("div", {
252
- className: N.text,
252
+ className: M.text,
253
253
  children: [/* @__PURE__ */ O("p", {
254
- className: N.title,
254
+ className: M.title,
255
255
  children: t
256
256
  }), n && /* @__PURE__ */ O("p", {
257
- className: N.description,
257
+ className: M.description,
258
258
  children: n
259
259
  })]
260
260
  });
261
261
  return s ? /* @__PURE__ */ k("div", {
262
262
  className: [
263
- N.item,
264
- N["item--vertical"],
263
+ M.item,
264
+ M["item--vertical"],
265
265
  o ?? ""
266
266
  ].filter(Boolean).join(" "),
267
267
  children: [/* @__PURE__ */ k("div", {
268
- className: N.rail,
269
- children: [c, !a && /* @__PURE__ */ O("div", { className: N.connectorVertical })]
268
+ className: M.rail,
269
+ children: [c, !a && /* @__PURE__ */ O("div", { className: M.connectorVertical })]
270
270
  }), l]
271
271
  }) : /* @__PURE__ */ k("div", {
272
272
  className: [
273
- N.item,
274
- N["item--horizontal"],
273
+ M.item,
274
+ M["item--horizontal"],
275
275
  o ?? ""
276
276
  ].filter(Boolean).join(" "),
277
277
  children: [/* @__PURE__ */ k("div", {
278
- className: N.topRow,
279
- children: [c, !a && /* @__PURE__ */ O("div", { className: N.connectorHorizontal })]
278
+ className: M.topRow,
279
+ children: [c, !a && /* @__PURE__ */ O("div", { className: M.connectorHorizontal })]
280
280
  }), l]
281
281
  });
282
- }, qt = {
282
+ }, Jt = {
283
283
  separator: "_separator_pcfo8_1",
284
284
  line: "_line_pcfo8_9",
285
285
  overline: "_overline_pcfo8_19",
286
286
  badge: "_badge_pcfo8_31",
287
287
  iconWrap: "_iconWrap_pcfo8_37"
288
- }, Jt = ({ children: t, label: n, className: r }) => /* @__PURE__ */ k("div", {
289
- className: [qt.separator, r ?? ""].filter(Boolean).join(" "),
288
+ }, Yt = ({ children: t, label: n, className: r }) => /* @__PURE__ */ k("div", {
289
+ className: [Jt.separator, r ?? ""].filter(Boolean).join(" "),
290
290
  role: "separator",
291
291
  children: [
292
- /* @__PURE__ */ O(e, { className: qt.line }),
292
+ /* @__PURE__ */ O(e, { className: Jt.line }),
293
293
  t ?? (n && /* @__PURE__ */ O("span", {
294
- className: qt.overline,
294
+ className: Jt.overline,
295
295
  children: n
296
296
  })),
297
- /* @__PURE__ */ O(e, { className: qt.line })
297
+ /* @__PURE__ */ O(e, { className: Jt.line })
298
298
  ]
299
299
  });
300
300
  //#endregion
301
301
  //#region src/lib/useChartTokens.ts
302
- function P(e) {
302
+ function N(e) {
303
303
  let [, t] = ze(0);
304
304
  return Re(() => {
305
305
  if (typeof document > "u") return;
@@ -318,81 +318,81 @@ function P(e) {
318
318
  }
319
319
  //#endregion
320
320
  //#region src/lib/chartPalette.ts
321
- var Yt = [
321
+ var Xt = [
322
322
  "#ff4700",
323
323
  "#5b92dd",
324
324
  "#47a8a2",
325
325
  "#9179d6",
326
326
  "#dca84f",
327
327
  "#12b76a"
328
- ], Xt = {
328
+ ], Zt = {
329
329
  tooltip: "_tooltip_ic16u_3",
330
330
  title: "_title_ic16u_23",
331
331
  row: "_row_ic16u_27",
332
332
  dot: "_dot_ic16u_34",
333
333
  label: "_label_ic16u_41",
334
334
  value: "_value_ic16u_42"
335
- }, Zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ k("div", {
336
- className: Xt.tooltip,
335
+ }, Qt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ k("div", {
336
+ className: Zt.tooltip,
337
337
  children: [n !== void 0 && n !== "" && /* @__PURE__ */ O("span", {
338
- className: Xt.title,
338
+ className: Zt.title,
339
339
  children: n
340
340
  }), t.map((e, t) => /* @__PURE__ */ k("div", {
341
- className: Xt.row,
341
+ className: Zt.row,
342
342
  children: [
343
343
  /* @__PURE__ */ O("span", {
344
- className: Xt.dot,
344
+ className: Zt.dot,
345
345
  style: { background: e.color ?? e.payload?.fill ?? e.fill }
346
346
  }),
347
347
  /* @__PURE__ */ O("span", {
348
- className: Xt.label,
348
+ className: Zt.label,
349
349
  children: e.name
350
350
  }),
351
351
  /* @__PURE__ */ O("span", {
352
- className: Xt.value,
352
+ className: Zt.value,
353
353
  children: r ? r(e.value, e.name) : e.value
354
354
  })
355
355
  ]
356
356
  }, t))]
357
- }), Qt = {
357
+ }), $t = {
358
358
  chart: "_chart_1s6lv_2",
359
359
  legend: "_legend_1s6lv_31",
360
360
  legendItem: "_legendItem_1s6lv_41",
361
361
  legendSwatch: "_legendSwatch_1s6lv_46"
362
- }, $t = {
362
+ }, en = {
363
363
  sm: 180,
364
364
  md: 240,
365
365
  lg: 320,
366
366
  xl: 420
367
- }, F = 6, en = (e) => {
367
+ }, P = 6, tn = (e) => {
368
368
  if (e <= 0) return 1;
369
369
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
370
370
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
371
- }, tn = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
372
- let [a, o] = D.useState(null), [s, c] = D.useState(null), l = D.useRef(null), u = P(l), d = u("--color-chart-2") ?? "#5b92dd", f = u("--color-chart-5") ?? "#dca84f", p = u("--color-chart-1") ?? "#ff4700", m = [
371
+ }, nn = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
372
+ let [a, o] = D.useState(null), [s, c] = D.useState(null), l = D.useRef(null), u = N(l), d = u("--color-chart-2") ?? "#5b92dd", f = u("--color-chart-5") ?? "#dca84f", p = u("--color-chart-1") ?? "#ff4700", m = [
373
373
  1,
374
374
  2,
375
375
  3,
376
376
  4,
377
377
  5,
378
378
  6
379
- ].map((e) => u(`--color-chart-${e}`) ?? Yt[e - 1]), h = u("--color-border-subtle") ?? "#e7e5e1", g = u("--color-fg-muted") ?? "#78716a", _ = t === "multiple" || t === "stacked", v = _ && e.some((e) => e.value2 !== void 0), y = u("--color-bg-canvas") ?? "#fafaf9", b = en(Math.max(1, ...e.map((e) => Math.abs(e.value)))), x = [
379
+ ].map((e) => u(`--color-chart-${e}`) ?? Xt[e - 1]), h = u("--color-border-subtle") ?? "#e7e5e1", g = u("--color-fg-muted") ?? "#78716a", _ = t === "multiple" || t === "stacked", v = _ && e.some((e) => e.value2 !== void 0), y = u("--color-bg-canvas") ?? "#fafaf9", b = tn(Math.max(1, ...e.map((e) => Math.abs(e.value)))), x = [
380
380
  -b,
381
381
  -b / 2,
382
382
  0,
383
383
  b / 2,
384
384
  b
385
- ], ee = /* @__PURE__ */ O(jt, {
385
+ ], S = /* @__PURE__ */ O(Mt, {
386
386
  cursor: !1,
387
- content: /* @__PURE__ */ O(Zt, {}),
387
+ content: /* @__PURE__ */ O(Qt, {}),
388
388
  wrapperStyle: { zIndex: 50 },
389
389
  position: s ? { y: s.y } : void 0
390
- }), S = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, C = (e) => a !== null && e !== a ? .45 : 1, te = (e, t, n, r, i, a) => ({
390
+ }), C = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, w = (e) => a !== null && e !== a ? .45 : 1, ee = (e, t, n, r, i, a) => ({
391
391
  x: e ? t + r : t + r / 2,
392
392
  y: e ? n + i / 2 : a < 0 ? n + i : n
393
- }), w = (n) => (r) => {
394
- let { x: i, y: a, width: o, height: s, fill: c, radius: l } = r, u = Number(e[r.index]?.[n] ?? 0), { x: f, y: p } = te(t === "horizontal", i, a, o, s, u);
395
- return t === "stacked" && n === "value" ? /* @__PURE__ */ O(kt, {
393
+ }), te = (n) => (r) => {
394
+ let { x: i, y: a, width: o, height: s, fill: c, radius: l } = r, u = Number(e[r.index]?.[n] ?? 0), { x: f, y: p } = ee(t === "horizontal", i, a, o, s, u);
395
+ return t === "stacked" && n === "value" ? /* @__PURE__ */ O(At, {
396
396
  x: i,
397
397
  y: a,
398
398
  width: o,
@@ -400,7 +400,7 @@ var Yt = [
400
400
  fill: c,
401
401
  radius: l
402
402
  }) : /* @__PURE__ */ k("g", { children: [
403
- /* @__PURE__ */ O(kt, {
403
+ /* @__PURE__ */ O(At, {
404
404
  x: i,
405
405
  y: a,
406
406
  width: o,
@@ -428,16 +428,16 @@ var Yt = [
428
428
  }, ne = (n) => (r, i) => {
429
429
  o(i);
430
430
  let a = Number(e[i]?.[n] ?? 0);
431
- c(te(t === "horizontal", r.x, r.y, r.width, r.height, a));
431
+ c(ee(t === "horizontal", r.x, r.y, r.width, r.height, a));
432
432
  }, re = () => {
433
433
  o(null), c(null);
434
434
  };
435
435
  return /* @__PURE__ */ O("div", {
436
436
  ref: l,
437
- className: [Qt.chart, i ?? ""].filter(Boolean).join(" "),
438
- children: /* @__PURE__ */ O(j, {
437
+ className: [$t.chart, i ?? ""].filter(Boolean).join(" "),
438
+ children: /* @__PURE__ */ O(A, {
439
439
  width: "100%",
440
- height: $t[n],
440
+ height: en[n],
441
441
  children: /* @__PURE__ */ k(ht, {
442
442
  data: e,
443
443
  layout: t === "horizontal" ? "vertical" : "horizontal",
@@ -454,13 +454,13 @@ var Yt = [
454
454
  horizontal: !0,
455
455
  vertical: t === "horizontal"
456
456
  }),
457
- t === "horizontal" ? /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O(Mt, {
457
+ t === "horizontal" ? /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O(Nt, {
458
458
  type: "number",
459
459
  stroke: g,
460
460
  fontSize: 12,
461
461
  tickLine: !1,
462
462
  axisLine: !1
463
- }), /* @__PURE__ */ O(Nt, {
463
+ }), /* @__PURE__ */ O(Pt, {
464
464
  type: "category",
465
465
  dataKey: "label",
466
466
  stroke: g,
@@ -468,7 +468,7 @@ var Yt = [
468
468
  tickLine: !1,
469
469
  axisLine: !1,
470
470
  width: 64
471
- })] }) : /* @__PURE__ */ O(Mt, {
471
+ })] }) : /* @__PURE__ */ O(Nt, {
472
472
  dataKey: "label",
473
473
  stroke: g,
474
474
  fontSize: 12,
@@ -476,18 +476,18 @@ var Yt = [
476
476
  axisLine: !1,
477
477
  interval: 0
478
478
  }),
479
- t === "negative" && /* @__PURE__ */ O(Nt, {
479
+ t === "negative" && /* @__PURE__ */ O(Pt, {
480
480
  hide: !0,
481
481
  domain: [-b, b],
482
482
  ticks: x
483
483
  }),
484
- ee,
485
- _ && /* @__PURE__ */ O(_t, { content: (e) => /* @__PURE__ */ O("ul", {
486
- className: Qt.legend,
484
+ S,
485
+ _ && /* @__PURE__ */ O(vt, { content: (e) => /* @__PURE__ */ O("ul", {
486
+ className: $t.legend,
487
487
  children: e.payload?.map((e) => /* @__PURE__ */ k("li", {
488
- className: Qt.legendItem,
488
+ className: $t.legendItem,
489
489
  children: [/* @__PURE__ */ O("span", {
490
- className: Qt.legendSwatch,
490
+ className: $t.legendSwatch,
491
491
  style: { background: e.color }
492
492
  }), /* @__PURE__ */ O("span", {
493
493
  style: { color: e.color },
@@ -503,19 +503,19 @@ var Yt = [
503
503
  radius: t === "stacked" ? [
504
504
  0,
505
505
  0,
506
- F,
507
- F
506
+ P,
507
+ P
508
508
  ] : [
509
- F,
510
- F,
511
- F,
512
- F
509
+ P,
510
+ P,
511
+ P,
512
+ P
513
513
  ],
514
514
  isAnimationActive: !1,
515
- activeBar: w("value"),
515
+ activeBar: te("value"),
516
516
  onMouseEnter: ne("value"),
517
517
  onMouseLeave: re,
518
- children: e.map((e, t) => /* @__PURE__ */ O(A, {
518
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, {
519
519
  fill: d,
520
520
  fillOpacity: a !== null && t !== a ? .45 : 1
521
521
  }, t))
@@ -525,48 +525,48 @@ var Yt = [
525
525
  fill: f,
526
526
  stackId: t === "stacked" ? "stack" : void 0,
527
527
  radius: t === "stacked" ? [
528
- F,
529
- F,
528
+ P,
529
+ P,
530
530
  0,
531
531
  0
532
532
  ] : [
533
- F,
534
- F,
535
- F,
536
- F
533
+ P,
534
+ P,
535
+ P,
536
+ P
537
537
  ],
538
538
  isAnimationActive: !1,
539
- activeBar: w("value2"),
539
+ activeBar: te("value2"),
540
540
  onMouseEnter: ne("value2"),
541
541
  onMouseLeave: re,
542
- children: e.map((e, t) => /* @__PURE__ */ O(A, {
542
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, {
543
543
  fill: f,
544
544
  fillOpacity: a !== null && t !== a ? .45 : 1
545
545
  }, t))
546
546
  })] }) : /* @__PURE__ */ O(mt, {
547
547
  dataKey: "value",
548
548
  name: "Value",
549
- fill: a === null ? d : S(a),
549
+ fill: a === null ? d : C(a),
550
550
  radius: [
551
- F,
552
- F,
553
- F,
554
- F
551
+ P,
552
+ P,
553
+ P,
554
+ P
555
555
  ],
556
556
  isAnimationActive: !1,
557
- activeBar: w("value"),
557
+ activeBar: te("value"),
558
558
  onMouseEnter: ne("value"),
559
559
  onMouseLeave: re,
560
- children: e.map((e, t) => /* @__PURE__ */ O(A, {
561
- fill: S(t),
562
- fillOpacity: C(t)
560
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, {
561
+ fill: C(t),
562
+ fillOpacity: w(t)
563
563
  }, t))
564
564
  })
565
565
  ]
566
566
  })
567
567
  })
568
568
  });
569
- }, I = {
569
+ }, F = {
570
570
  row: "_row_5wjem_2",
571
571
  left: "_left_5wjem_16",
572
572
  logo: "_logo_5wjem_23",
@@ -592,59 +592,59 @@ var Yt = [
592
592
  changeRowLg: "_changeRowLg_5wjem_153",
593
593
  changeTextLg: "_changeTextLg_5wjem_158",
594
594
  chart: "_chart_5wjem_165"
595
- }, nn = (e) => Math.abs(e).toLocaleString("en-US", {
595
+ }, rn = (e) => Math.abs(e).toLocaleString("en-US", {
596
596
  style: "currency",
597
597
  currency: "USD"
598
- }), rn = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = nn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
599
- let u = i.amount >= 0, d = u ? ct : st, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? I.trendUp : I.trendDown;
598
+ }), an = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = rn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
599
+ let u = i.amount >= 0, d = u ? ct : st, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? F.trendUp : F.trendDown;
600
600
  return o ? /* @__PURE__ */ k("div", {
601
- className: [I.card, l ?? ""].filter(Boolean).join(" "),
601
+ className: [F.card, l ?? ""].filter(Boolean).join(" "),
602
602
  children: [
603
603
  /* @__PURE__ */ k("div", {
604
- className: I.header,
604
+ className: F.header,
605
605
  children: [/* @__PURE__ */ O(He, {
606
606
  size: 16,
607
607
  strokeWidth: E(16),
608
- className: I.headerIcon
608
+ className: F.headerIcon
609
609
  }), /* @__PURE__ */ O("span", {
610
- className: I.headerLabel,
610
+ className: F.headerLabel,
611
611
  children: "Stock market"
612
612
  })]
613
613
  }),
614
614
  /* @__PURE__ */ k("div", {
615
- className: I.tickerRow,
615
+ className: F.tickerRow,
616
616
  children: [/* @__PURE__ */ O("span", {
617
- className: I.logoLg,
617
+ className: F.logoLg,
618
618
  "aria-hidden": "true",
619
619
  children: e
620
620
  }), /* @__PURE__ */ k("div", {
621
- className: I.text,
621
+ className: F.text,
622
622
  children: [/* @__PURE__ */ O("p", {
623
- className: I.symbol,
623
+ className: F.symbol,
624
624
  children: t
625
625
  }), /* @__PURE__ */ O("p", {
626
- className: I.name,
626
+ className: F.name,
627
627
  children: n
628
628
  })]
629
629
  })]
630
630
  }),
631
631
  /* @__PURE__ */ k("div", {
632
- className: I.body,
632
+ className: F.body,
633
633
  children: [/* @__PURE__ */ k("div", {
634
- className: I.priceRow,
634
+ className: F.priceRow,
635
635
  children: [/* @__PURE__ */ k("div", {
636
- className: I.priceGroup,
636
+ className: F.priceGroup,
637
637
  children: [/* @__PURE__ */ O("p", {
638
- className: I.priceLg,
638
+ className: F.priceLg,
639
639
  children: a(r)
640
640
  }), /* @__PURE__ */ k("div", {
641
- className: I.changeRowLg,
641
+ className: F.changeRowLg,
642
642
  children: [/* @__PURE__ */ O(d, {
643
643
  size: 24,
644
644
  strokeWidth: E(24),
645
645
  className: m
646
646
  }), /* @__PURE__ */ O("span", {
647
- className: [I.changeTextLg, m].join(" "),
647
+ className: [F.changeTextLg, m].join(" "),
648
648
  children: p
649
649
  })]
650
650
  })]
@@ -658,57 +658,57 @@ var Yt = [
658
658
  onClick: c,
659
659
  children: s
660
660
  })]
661
- }), /* @__PURE__ */ O(tn, {
661
+ }), /* @__PURE__ */ O(nn, {
662
662
  data: o,
663
- className: I.chart
663
+ className: F.chart
664
664
  })]
665
665
  })
666
666
  ]
667
667
  }) : /* @__PURE__ */ k("div", {
668
- className: [I.row, l ?? ""].filter(Boolean).join(" "),
668
+ className: [F.row, l ?? ""].filter(Boolean).join(" "),
669
669
  children: [/* @__PURE__ */ k("div", {
670
- className: I.left,
670
+ className: F.left,
671
671
  children: [/* @__PURE__ */ O("span", {
672
- className: I.logo,
672
+ className: F.logo,
673
673
  "aria-hidden": "true",
674
674
  children: e
675
675
  }), /* @__PURE__ */ k("div", {
676
- className: I.text,
676
+ className: F.text,
677
677
  children: [/* @__PURE__ */ O("p", {
678
- className: I.symbol,
678
+ className: F.symbol,
679
679
  children: t
680
680
  }), /* @__PURE__ */ O("p", {
681
- className: I.name,
681
+ className: F.name,
682
682
  children: n
683
683
  })]
684
684
  })]
685
685
  }), /* @__PURE__ */ k("div", {
686
- className: I.right,
686
+ className: F.right,
687
687
  children: [/* @__PURE__ */ O("p", {
688
- className: I.price,
688
+ className: F.price,
689
689
  children: a(r)
690
690
  }), /* @__PURE__ */ k("div", {
691
- className: I.changeRow,
691
+ className: F.changeRow,
692
692
  children: [/* @__PURE__ */ O(d, {
693
693
  size: 20,
694
694
  strokeWidth: E(20),
695
695
  className: m
696
696
  }), /* @__PURE__ */ O("span", {
697
- className: [I.changeText, m].join(" "),
697
+ className: [F.changeText, m].join(" "),
698
698
  children: p
699
699
  })]
700
700
  })]
701
701
  })]
702
702
  });
703
- }, an = {
703
+ }, on = {
704
704
  tags: "_tags_acsad_1",
705
705
  remove: "_remove_acsad_8"
706
- }, on = ({ tags: e, onRemove: t, className: n }) => /* @__PURE__ */ O("div", {
707
- className: [an.tags, n ?? ""].filter(Boolean).join(" "),
706
+ }, sn = ({ tags: e, onRemove: t, className: n }) => /* @__PURE__ */ O("div", {
707
+ className: [on.tags, n ?? ""].filter(Boolean).join(" "),
708
708
  children: e.map((e, n) => /* @__PURE__ */ O(u, {
709
709
  rightIcon: t && /* @__PURE__ */ O("button", {
710
710
  type: "button",
711
- className: an.remove,
711
+ className: on.remove,
712
712
  onClick: () => t(e, n),
713
713
  "aria-label": `Remove ${e}`,
714
714
  children: /* @__PURE__ */ O(dt, {
@@ -718,7 +718,7 @@ var Yt = [
718
718
  }),
719
719
  children: e
720
720
  }, e))
721
- }), L = {
721
+ }), I = {
722
722
  ticker: "_ticker_6xnxy_1",
723
723
  track: "_track_6xnxy_9",
724
724
  "ticker-scroll": "_ticker-scroll_6xnxy_1",
@@ -730,16 +730,16 @@ var Yt = [
730
730
  trendDown: "_trendDown_6xnxy_58",
731
731
  fadeLeft: "_fadeLeft_6xnxy_60",
732
732
  fadeRight: "_fadeRight_6xnxy_61"
733
- }, sn = (e) => `${e >= 0 ? "+" : ""}${e}%`, cn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
734
- className: L.row,
733
+ }, cn = (e) => `${e >= 0 ? "+" : ""}${e}%`, ln = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
734
+ className: I.row,
735
735
  "aria-hidden": n,
736
736
  children: e.map((e, n) => {
737
- let r = e.changePercent >= 0, i = r ? ct : st, a = r ? L.trendUp : L.trendDown;
737
+ let r = e.changePercent >= 0, i = r ? ct : st, a = r ? I.trendUp : I.trendDown;
738
738
  return /* @__PURE__ */ k("div", {
739
- className: L.item,
739
+ className: I.item,
740
740
  children: [
741
741
  /* @__PURE__ */ O("span", {
742
- className: L.symbol,
742
+ className: I.symbol,
743
743
  children: e.symbol
744
744
  }),
745
745
  /* @__PURE__ */ O(i, {
@@ -748,13 +748,13 @@ var Yt = [
748
748
  className: a
749
749
  }),
750
750
  /* @__PURE__ */ O("span", {
751
- className: [L.change, a].join(" "),
751
+ className: [I.change, a].join(" "),
752
752
  children: t(e.changePercent)
753
753
  })
754
754
  ]
755
755
  }, `${e.symbol}-${n}`);
756
756
  })
757
- }), ln = ({ items: e, speed: t = 40, formatChange: n = sn, className: r }) => {
757
+ }), un = ({ items: e, speed: t = 40, formatChange: n = cn, className: r }) => {
758
758
  let i = D.useRef(null), [a, o] = D.useState(20);
759
759
  return D.useEffect(() => {
760
760
  let e = i.current;
@@ -769,32 +769,32 @@ var Yt = [
769
769
  let a = new ResizeObserver(r);
770
770
  return a.observe(n), () => a.disconnect();
771
771
  }, [e, t]), /* @__PURE__ */ k("div", {
772
- className: [L.ticker, r ?? ""].filter(Boolean).join(" "),
772
+ className: [I.ticker, r ?? ""].filter(Boolean).join(" "),
773
773
  children: [
774
774
  /* @__PURE__ */ k("div", {
775
775
  ref: i,
776
- className: L.track,
776
+ className: I.track,
777
777
  style: { "--ticker-duration": `${a}s` },
778
- children: [/* @__PURE__ */ O(cn, {
778
+ children: [/* @__PURE__ */ O(ln, {
779
779
  items: e,
780
780
  formatChange: n
781
- }), /* @__PURE__ */ O(cn, {
781
+ }), /* @__PURE__ */ O(ln, {
782
782
  items: e,
783
783
  formatChange: n,
784
784
  ariaHidden: !0
785
785
  })]
786
786
  }),
787
787
  /* @__PURE__ */ O("div", {
788
- className: L.fadeLeft,
788
+ className: I.fadeLeft,
789
789
  "aria-hidden": "true"
790
790
  }),
791
791
  /* @__PURE__ */ O("div", {
792
- className: L.fadeRight,
792
+ className: I.fadeRight,
793
793
  "aria-hidden": "true"
794
794
  })
795
795
  ]
796
796
  });
797
- }, R = {
797
+ }, L = {
798
798
  list: "_list_ovxee_1",
799
799
  row: "_row_ovxee_9",
800
800
  rowLast: "_rowLast_ovxee_18",
@@ -810,55 +810,55 @@ var Yt = [
810
810
  emptyIcon: "_emptyIcon_ovxee_86",
811
811
  emptyTitle: "_emptyTitle_ovxee_89",
812
812
  emptyDesc: "_emptyDesc_ovxee_96"
813
- }, un = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
813
+ }, dn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
814
814
  style: "currency",
815
815
  currency: "USD"
816
- })}`, dn = ({ transactions: e, formatAmount: t = un, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ k("div", {
817
- className: [R.empty, i ?? ""].filter(Boolean).join(" "),
816
+ })}`, fn = ({ transactions: e, formatAmount: t = dn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ k("div", {
817
+ className: [L.empty, i ?? ""].filter(Boolean).join(" "),
818
818
  children: [
819
819
  /* @__PURE__ */ O(it, {
820
820
  size: 24,
821
821
  strokeWidth: E(24),
822
- className: R.emptyIcon
822
+ className: L.emptyIcon
823
823
  }),
824
824
  /* @__PURE__ */ O("p", {
825
- className: R.emptyTitle,
825
+ className: L.emptyTitle,
826
826
  children: n
827
827
  }),
828
828
  /* @__PURE__ */ O("p", {
829
- className: R.emptyDesc,
829
+ className: L.emptyDesc,
830
830
  children: r
831
831
  })
832
832
  ]
833
833
  }) : /* @__PURE__ */ O("div", {
834
- className: [R.list, i ?? ""].filter(Boolean).join(" "),
834
+ className: [L.list, i ?? ""].filter(Boolean).join(" "),
835
835
  children: e.map((n, r) => {
836
836
  let i = n.amount >= 0;
837
837
  return /* @__PURE__ */ k("div", {
838
- className: [R.row, r === e.length - 1 ? R.rowLast : ""].filter(Boolean).join(" "),
838
+ className: [L.row, r === e.length - 1 ? L.rowLast : ""].filter(Boolean).join(" "),
839
839
  children: [/* @__PURE__ */ k("div", {
840
- className: R.left,
840
+ className: L.left,
841
841
  children: [/* @__PURE__ */ O("span", {
842
- className: R.iconWrap,
842
+ className: L.iconWrap,
843
843
  "aria-hidden": "true",
844
844
  children: n.icon
845
845
  }), /* @__PURE__ */ k("div", {
846
- className: R.info,
846
+ className: L.info,
847
847
  children: [/* @__PURE__ */ O("p", {
848
- className: R.name,
848
+ className: L.name,
849
849
  children: n.name
850
850
  }), /* @__PURE__ */ O("p", {
851
- className: R.category,
851
+ className: L.category,
852
852
  children: n.category
853
853
  })]
854
854
  })]
855
855
  }), /* @__PURE__ */ O("p", {
856
- className: [R.amount, i ? R.amountUp : R.amountDown].join(" "),
856
+ className: [L.amount, i ? L.amountUp : L.amountDown].join(" "),
857
857
  children: t(n.amount)
858
858
  })]
859
859
  }, n.id ?? `${n.name}-${r}`);
860
860
  })
861
- }), z = {
861
+ }), R = {
862
862
  root: "_root_19qxp_1",
863
863
  rootAttributed: "_rootAttributed_19qxp_10",
864
864
  rootSimple: "_rootSimple_19qxp_18",
@@ -872,57 +872,57 @@ var Yt = [
872
872
  author: "_author_19qxp_77",
873
873
  authorText: "_authorText_19qxp_83",
874
874
  authorName: "_authorName_19qxp_91"
875
- }, fn = ({ quote: t, author: n, className: r }) => {
875
+ }, pn = ({ quote: t, author: n, className: r }) => {
876
876
  let i = !!n;
877
877
  return /* @__PURE__ */ k("div", {
878
878
  className: [
879
- z.root,
880
- i ? z.rootAttributed : z.rootSimple,
879
+ R.root,
880
+ i ? R.rootAttributed : R.rootSimple,
881
881
  r ?? ""
882
882
  ].filter(Boolean).join(" "),
883
883
  children: [/* @__PURE__ */ O(e, {
884
884
  orientation: "vertical",
885
- className: z.rail
885
+ className: R.rail
886
886
  }), /* @__PURE__ */ k("div", {
887
- className: z.body,
887
+ className: R.body,
888
888
  children: [
889
889
  i && /* @__PURE__ */ O("span", {
890
- className: z.markRow,
890
+ className: R.markRow,
891
891
  "aria-hidden": "true",
892
892
  children: /* @__PURE__ */ O(rt, {
893
893
  size: 12,
894
894
  strokeWidth: E(12),
895
- className: z.mark,
895
+ className: R.mark,
896
896
  fill: "currentColor"
897
897
  })
898
898
  }),
899
899
  /* @__PURE__ */ O("p", {
900
- className: i ? z.quoteAttributed : z.quoteSimple,
900
+ className: i ? R.quoteAttributed : R.quoteSimple,
901
901
  children: i ? t : `"${t}"`
902
902
  }),
903
903
  i && /* @__PURE__ */ O("span", {
904
- className: [z.markRow, z.markRowEnd].join(" "),
904
+ className: [R.markRow, R.markRowEnd].join(" "),
905
905
  "aria-hidden": "true",
906
906
  children: /* @__PURE__ */ O(rt, {
907
907
  size: 12,
908
908
  strokeWidth: E(12),
909
- className: z.mark,
909
+ className: R.mark,
910
910
  fill: "currentColor"
911
911
  })
912
912
  }),
913
913
  n && /* @__PURE__ */ k("div", {
914
- className: z.author,
914
+ className: R.author,
915
915
  children: [/* @__PURE__ */ O(oe, {
916
916
  size: "sm",
917
917
  src: n.avatarSrc,
918
918
  alt: n.avatarAlt ?? n.name
919
919
  }), /* @__PURE__ */ k("p", {
920
- className: z.authorText,
920
+ className: R.authorText,
921
921
  children: [/* @__PURE__ */ O("span", {
922
- className: z.authorName,
922
+ className: R.authorName,
923
923
  children: n.name
924
924
  }), /* @__PURE__ */ k("span", {
925
- className: z.authorRole,
925
+ className: R.authorRole,
926
926
  children: [", ", n.role]
927
927
  })]
928
928
  })]
@@ -930,51 +930,51 @@ var Yt = [
930
930
  ]
931
931
  })]
932
932
  });
933
- }, pn = {
933
+ }, mn = {
934
934
  root: "_root_btuyr_1",
935
935
  rootLeft: "_rootLeft_btuyr_13",
936
936
  rootTop: "_rootTop_btuyr_19",
937
937
  ruleLeft: "_ruleLeft_btuyr_24",
938
938
  ruleTop: "_ruleTop_btuyr_31",
939
939
  text: "_text_btuyr_39"
940
- }, mn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ k("div", {
940
+ }, hn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ k("div", {
941
941
  className: [
942
- pn.root,
943
- t === "top" ? pn.rootTop : pn.rootLeft,
942
+ mn.root,
943
+ t === "top" ? mn.rootTop : mn.rootLeft,
944
944
  n ?? ""
945
945
  ].filter(Boolean).join(" "),
946
946
  children: [/* @__PURE__ */ O("span", {
947
- className: t === "top" ? pn.ruleTop : pn.ruleLeft,
947
+ className: t === "top" ? mn.ruleTop : mn.ruleLeft,
948
948
  "aria-hidden": "true"
949
949
  }), /* @__PURE__ */ O("p", {
950
- className: pn.text,
950
+ className: mn.text,
951
951
  children: e
952
952
  })]
953
- }), hn = {
953
+ }), gn = {
954
954
  root: "_root_awxwk_1",
955
955
  imageWrap: "_imageWrap_awxwk_10",
956
956
  "root--large": "_root--large_awxwk_27",
957
957
  "root--small": "_root--small_awxwk_33",
958
958
  image: "_image_awxwk_10",
959
959
  caption: "_caption_awxwk_47"
960
- }, gn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ k("figure", {
960
+ }, _n = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ k("figure", {
961
961
  className: [
962
- hn.root,
963
- hn[`root--${n}`],
962
+ gn.root,
963
+ gn[`root--${n}`],
964
964
  i ?? ""
965
965
  ].filter(Boolean).join(" "),
966
966
  children: [/* @__PURE__ */ O("span", {
967
- className: hn.imageWrap,
967
+ className: gn.imageWrap,
968
968
  children: /* @__PURE__ */ O("img", {
969
969
  src: e,
970
970
  alt: t,
971
- className: hn.image
971
+ className: gn.image
972
972
  })
973
973
  }), r && /* @__PURE__ */ O("figcaption", {
974
- className: hn.caption,
974
+ className: gn.caption,
975
975
  children: r
976
976
  })]
977
- }), _n = {
977
+ }), vn = {
978
978
  root: "_root_uc5r9_1",
979
979
  rootCenter: "_rootCenter_uc5r9_10",
980
980
  rootLeft: "_rootLeft_uc5r9_15",
@@ -983,12 +983,12 @@ var Yt = [
983
983
  ctaRow: "_ctaRow_uc5r9_39",
984
984
  avatarBlock: "_avatarBlock_uc5r9_45",
985
985
  avatarsCaption: "_avatarsCaption_uc5r9_57"
986
- }, vn = ({ title: e, description: t, badgeLabel: n, primaryCta: r, secondaryCta: i, avatars: a, avatarsCaption: o, align: s = "center", className: c }) => {
986
+ }, yn = ({ title: e, description: t, badgeLabel: n, primaryCta: r, secondaryCta: i, avatars: a, avatarsCaption: o, align: s = "center", className: c }) => {
987
987
  let l = !!(r || i), d = !!(a && a.length > 0);
988
988
  return /* @__PURE__ */ k("div", {
989
989
  className: [
990
- _n.root,
991
- s === "left" ? _n.rootLeft : _n.rootCenter,
990
+ vn.root,
991
+ s === "left" ? vn.rootLeft : vn.rootCenter,
992
992
  c ?? ""
993
993
  ].filter(Boolean).join(" "),
994
994
  children: [
@@ -998,15 +998,15 @@ var Yt = [
998
998
  children: n
999
999
  }),
1000
1000
  /* @__PURE__ */ O("p", {
1001
- className: _n.title,
1001
+ className: vn.title,
1002
1002
  children: e
1003
1003
  }),
1004
1004
  t && /* @__PURE__ */ O("p", {
1005
- className: _n.description,
1005
+ className: vn.description,
1006
1006
  children: t
1007
1007
  }),
1008
1008
  l && /* @__PURE__ */ k("div", {
1009
- className: _n.ctaRow,
1009
+ className: vn.ctaRow,
1010
1010
  children: [r && /* @__PURE__ */ O(Ee, {
1011
1011
  variant: "primary",
1012
1012
  onClick: r.onClick,
@@ -1023,29 +1023,29 @@ var Yt = [
1023
1023
  })]
1024
1024
  }),
1025
1025
  d && /* @__PURE__ */ k("div", {
1026
- className: _n.avatarBlock,
1026
+ className: vn.avatarBlock,
1027
1027
  children: [/* @__PURE__ */ O(me, {
1028
1028
  size: "md",
1029
1029
  avatars: a
1030
1030
  }), o && /* @__PURE__ */ O("p", {
1031
- className: _n.avatarsCaption,
1031
+ className: vn.avatarsCaption,
1032
1032
  children: o
1033
1033
  })]
1034
1034
  })
1035
1035
  ]
1036
1036
  });
1037
- }, yn = {
1037
+ }, bn = {
1038
1038
  root: "_root_5kajg_1",
1039
1039
  item: "_item_5kajg_12",
1040
1040
  marker: "_marker_5kajg_18",
1041
1041
  dot: "_dot_5kajg_26",
1042
1042
  label: "_label_5kajg_34"
1043
- }, bn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ O("ul", {
1044
- className: [yn.root, n ?? ""].filter(Boolean).join(" "),
1043
+ }, xn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ O("ul", {
1044
+ className: [bn.root, n ?? ""].filter(Boolean).join(" "),
1045
1045
  children: e.map((e, n) => /* @__PURE__ */ k("li", {
1046
- className: yn.item,
1046
+ className: bn.item,
1047
1047
  children: [/* @__PURE__ */ k("span", {
1048
- className: yn.marker,
1048
+ className: bn.marker,
1049
1049
  "aria-hidden": "true",
1050
1050
  children: [
1051
1051
  t === "check" && /* @__PURE__ */ O(Ue, {
@@ -1056,32 +1056,32 @@ var Yt = [
1056
1056
  size: 16,
1057
1057
  strokeWidth: E(16)
1058
1058
  }),
1059
- t === "bullet" && /* @__PURE__ */ O("span", { className: yn.dot })
1059
+ t === "bullet" && /* @__PURE__ */ O("span", { className: bn.dot })
1060
1060
  ]
1061
1061
  }), /* @__PURE__ */ O("span", {
1062
- className: yn.label,
1062
+ className: bn.label,
1063
1063
  children: e
1064
1064
  })]
1065
1065
  }, n))
1066
- }), xn = {
1066
+ }), Sn = {
1067
1067
  marquee: "_marquee_1pc4i_1",
1068
1068
  track: "_track_1pc4i_13",
1069
1069
  row: "_row_1pc4i_19",
1070
1070
  item: "_item_1pc4i_25",
1071
1071
  fadeLeft: "_fadeLeft_1pc4i_31",
1072
1072
  fadeRight: "_fadeRight_1pc4i_32"
1073
- }, Sn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
1074
- className: xn.row,
1073
+ }, Cn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
1074
+ className: Sn.row,
1075
1075
  style: {
1076
1076
  gap: t,
1077
1077
  paddingRight: t
1078
1078
  },
1079
1079
  "aria-hidden": n,
1080
1080
  children: e.map((e, t) => /* @__PURE__ */ O("div", {
1081
- className: xn.item,
1081
+ className: Sn.item,
1082
1082
  children: e
1083
1083
  }, t))
1084
- }), Cn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
1084
+ }), wn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
1085
1085
  let i = D.useRef(null), a = D.useRef(0), o = D.useRef(0), s = D.useRef(!1);
1086
1086
  return D.useEffect(() => {
1087
1087
  let e = i.current?.firstElementChild;
@@ -1103,7 +1103,7 @@ var Yt = [
1103
1103
  };
1104
1104
  return n = setTimeout(c, 16), () => clearTimeout(n);
1105
1105
  }, [t]), /* @__PURE__ */ k("div", {
1106
- className: [xn.marquee, r ?? ""].filter(Boolean).join(" "),
1106
+ className: [Sn.marquee, r ?? ""].filter(Boolean).join(" "),
1107
1107
  onMouseEnter: () => {
1108
1108
  s.current = !0;
1109
1109
  },
@@ -1113,27 +1113,27 @@ var Yt = [
1113
1113
  children: [
1114
1114
  /* @__PURE__ */ k("div", {
1115
1115
  ref: i,
1116
- className: xn.track,
1117
- children: [/* @__PURE__ */ O(Sn, {
1116
+ className: Sn.track,
1117
+ children: [/* @__PURE__ */ O(Cn, {
1118
1118
  items: e,
1119
1119
  gap: n
1120
- }), /* @__PURE__ */ O(Sn, {
1120
+ }), /* @__PURE__ */ O(Cn, {
1121
1121
  items: e,
1122
1122
  gap: n,
1123
1123
  ariaHidden: !0
1124
1124
  })]
1125
1125
  }),
1126
1126
  /* @__PURE__ */ O("div", {
1127
- className: xn.fadeLeft,
1127
+ className: Sn.fadeLeft,
1128
1128
  "aria-hidden": "true"
1129
1129
  }),
1130
1130
  /* @__PURE__ */ O("div", {
1131
- className: xn.fadeRight,
1131
+ className: Sn.fadeRight,
1132
1132
  "aria-hidden": "true"
1133
1133
  })
1134
1134
  ]
1135
1135
  });
1136
- }, wn = {
1136
+ }, Tn = {
1137
1137
  root: "_root_17a1b_1",
1138
1138
  numRow: "_numRow_17a1b_9",
1139
1139
  value: "_value_17a1b_15",
@@ -1141,17 +1141,17 @@ var Yt = [
1141
1141
  trendUp: "_trendUp_17a1b_35",
1142
1142
  trendDown: "_trendDown_17a1b_39",
1143
1143
  label: "_label_17a1b_43"
1144
- }, Tn = ({ value: e, label: t, trend: n, className: r }) => {
1144
+ }, En = ({ value: e, label: t, trend: n, className: r }) => {
1145
1145
  let i = n !== void 0, a = i && n >= 0, o = a ? ct : st;
1146
1146
  return /* @__PURE__ */ k("div", {
1147
- className: [wn.root, r ?? ""].filter(Boolean).join(" "),
1147
+ className: [Tn.root, r ?? ""].filter(Boolean).join(" "),
1148
1148
  children: [/* @__PURE__ */ k("div", {
1149
- className: wn.numRow,
1149
+ className: Tn.numRow,
1150
1150
  children: [/* @__PURE__ */ O("p", {
1151
- className: wn.value,
1151
+ className: Tn.value,
1152
1152
  children: e
1153
1153
  }), i && /* @__PURE__ */ k("span", {
1154
- className: [wn.trend, a ? wn.trendUp : wn.trendDown].join(" "),
1154
+ className: [Tn.trend, a ? Tn.trendUp : Tn.trendDown].join(" "),
1155
1155
  children: [
1156
1156
  /* @__PURE__ */ O(o, {
1157
1157
  size: 24,
@@ -1162,11 +1162,11 @@ var Yt = [
1162
1162
  ]
1163
1163
  })]
1164
1164
  }), /* @__PURE__ */ O("p", {
1165
- className: wn.label,
1165
+ className: Tn.label,
1166
1166
  children: t
1167
1167
  })]
1168
1168
  });
1169
- }, B = {
1169
+ }, z = {
1170
1170
  root: "_root_scbx4_1",
1171
1171
  header: "_header_scbx4_13",
1172
1172
  label: "_label_scbx4_21",
@@ -1177,7 +1177,7 @@ var Yt = [
1177
1177
  collapseInner: "_collapseInner_scbx4_78",
1178
1178
  navLinks: "_navLinks_scbx4_91",
1179
1179
  navLink: "_navLink_scbx4_91"
1180
- }, En = ({ label: t, links: n, ctaLabel: r = "Get started", onCtaClick: i, open: a, defaultOpen: o = !1, onOpenChange: s, className: c }) => {
1180
+ }, Dn = ({ label: t, links: n, ctaLabel: r = "Get started", onCtaClick: i, open: a, defaultOpen: o = !1, onOpenChange: s, className: c }) => {
1181
1181
  let l = a !== void 0, [u, d] = D.useState(o), f = l ? a : u, p = () => {
1182
1182
  let e = !f;
1183
1183
  l || d(e), s?.(e);
@@ -1190,15 +1190,15 @@ var Yt = [
1190
1190
  let n = new ResizeObserver(t);
1191
1191
  return n.observe(e), () => n.disconnect();
1192
1192
  }, [n, r]), /* @__PURE__ */ k("div", {
1193
- className: [B.root, c ?? ""].filter(Boolean).join(" "),
1193
+ className: [z.root, c ?? ""].filter(Boolean).join(" "),
1194
1194
  children: [/* @__PURE__ */ k("div", {
1195
- className: B.header,
1195
+ className: z.header,
1196
1196
  children: [/* @__PURE__ */ O("p", {
1197
- className: B.label,
1197
+ className: z.label,
1198
1198
  children: t
1199
1199
  }), /* @__PURE__ */ O("button", {
1200
1200
  type: "button",
1201
- className: B.toggle,
1201
+ className: z.toggle,
1202
1202
  onClick: p,
1203
1203
  "aria-expanded": f,
1204
1204
  "aria-label": f ? "Close menu" : "Open menu",
@@ -1208,28 +1208,28 @@ var Yt = [
1208
1208
  })
1209
1209
  })]
1210
1210
  }), /* @__PURE__ */ O("div", {
1211
- className: [B.collapse, f ? B.collapseOpen : ""].filter(Boolean).join(" "),
1211
+ className: [z.collapse, f ? z.collapseOpen : ""].filter(Boolean).join(" "),
1212
1212
  style: { maxHeight: f ? `${h}px` : "0px" },
1213
1213
  "aria-hidden": !f,
1214
1214
  children: /* @__PURE__ */ k("div", {
1215
1215
  ref: m,
1216
- className: B.collapseInner,
1216
+ className: z.collapseInner,
1217
1217
  children: [
1218
1218
  /* @__PURE__ */ O("nav", {
1219
- className: B.navLinks,
1219
+ className: z.navLinks,
1220
1220
  "aria-label": t,
1221
1221
  children: n.map((e) => /* @__PURE__ */ O("a", {
1222
1222
  href: e.href,
1223
1223
  onClick: e.onClick,
1224
- className: B.navLink,
1224
+ className: z.navLink,
1225
1225
  tabIndex: f ? void 0 : -1,
1226
1226
  children: e.label
1227
1227
  }, e.label))
1228
1228
  }),
1229
- /* @__PURE__ */ O(e, { className: B.fullWidth }),
1229
+ /* @__PURE__ */ O(e, { className: z.fullWidth }),
1230
1230
  /* @__PURE__ */ O(Ee, {
1231
1231
  variant: "primary",
1232
- className: B.fullWidth,
1232
+ className: z.fullWidth,
1233
1233
  onClick: i,
1234
1234
  tabIndex: f ? void 0 : -1,
1235
1235
  children: r
@@ -1238,18 +1238,18 @@ var Yt = [
1238
1238
  })
1239
1239
  })]
1240
1240
  });
1241
- }, Dn = {
1241
+ }, On = {
1242
1242
  root: "_root_lrpdp_1",
1243
1243
  "root--sm": "_root--sm_lrpdp_14",
1244
1244
  "root--md": "_root--md_lrpdp_18",
1245
1245
  "root--lg": "_root--lg_lrpdp_22",
1246
1246
  defaultMark: "_defaultMark_lrpdp_27"
1247
- }, On = {
1247
+ }, kn = {
1248
1248
  sm: 14,
1249
1249
  md: 16,
1250
1250
  lg: 18
1251
- }, kn = ({ size: e = "md", logo: t, label: n, className: r }) => {
1252
- let i = On[e], a = D.isValidElement(t) ? D.cloneElement(t, {
1251
+ }, An = ({ size: e = "md", logo: t, label: n, className: r }) => {
1252
+ let i = kn[e], a = D.isValidElement(t) ? D.cloneElement(t, {
1253
1253
  size: i,
1254
1254
  strokeWidth: E(i)
1255
1255
  }) : t ?? /* @__PURE__ */ O("img", {
@@ -1257,19 +1257,19 @@ var Yt = [
1257
1257
  alt: "",
1258
1258
  width: i,
1259
1259
  height: i,
1260
- className: Dn.defaultMark
1260
+ className: On.defaultMark
1261
1261
  });
1262
1262
  return /* @__PURE__ */ O("span", {
1263
1263
  className: [
1264
- Dn.root,
1265
- Dn[`root--${e}`],
1264
+ On.root,
1265
+ On[`root--${e}`],
1266
1266
  r ?? ""
1267
1267
  ].filter(Boolean).join(" "),
1268
1268
  role: "img",
1269
1269
  "aria-label": n ?? "Logo placeholder",
1270
1270
  children: a
1271
1271
  });
1272
- }, V = {
1272
+ }, B = {
1273
1273
  root: "_root_ibchq_1",
1274
1274
  rootCompact: "_rootCompact_ibchq_7",
1275
1275
  rootDetailed: "_rootDetailed_ibchq_14",
@@ -1280,12 +1280,12 @@ var Yt = [
1280
1280
  bio: "_bio_ibchq_53",
1281
1281
  social: "_social_ibchq_63",
1282
1282
  socialBtn: "_socialBtn_ibchq_71"
1283
- }, An = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
1283
+ }, jn = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
1284
1284
  let s = !!i || a.length > 0;
1285
1285
  return /* @__PURE__ */ k("div", {
1286
1286
  className: [
1287
- V.root,
1288
- s ? V.rootDetailed : V.rootCompact,
1287
+ B.root,
1288
+ s ? B.rootDetailed : B.rootCompact,
1289
1289
  o ?? ""
1290
1290
  ].filter(Boolean).join(" "),
1291
1291
  children: [
@@ -1295,46 +1295,46 @@ var Yt = [
1295
1295
  alt: r ?? e
1296
1296
  }),
1297
1297
  /* @__PURE__ */ k("div", {
1298
- className: s ? V.infoDetailed : V.infoCompact,
1298
+ className: s ? B.infoDetailed : B.infoCompact,
1299
1299
  children: [/* @__PURE__ */ O("p", {
1300
- className: V.name,
1300
+ className: B.name,
1301
1301
  children: e
1302
1302
  }), /* @__PURE__ */ O("p", {
1303
- className: V.role,
1303
+ className: B.role,
1304
1304
  children: t
1305
1305
  })]
1306
1306
  }),
1307
1307
  s && i && /* @__PURE__ */ O("p", {
1308
- className: V.bio,
1308
+ className: B.bio,
1309
1309
  children: i
1310
1310
  }),
1311
1311
  s && a.length > 0 && /* @__PURE__ */ O("div", {
1312
- className: V.social,
1312
+ className: B.social,
1313
1313
  children: a.map((e, t) => /* @__PURE__ */ O("a", {
1314
1314
  href: e.href,
1315
1315
  onClick: e.onClick,
1316
- className: V.socialBtn,
1316
+ className: B.socialBtn,
1317
1317
  "aria-label": e.label,
1318
1318
  children: e.icon
1319
1319
  }, e.label ?? t))
1320
1320
  })
1321
1321
  ]
1322
1322
  });
1323
- }, jn = {
1323
+ }, Mn = {
1324
1324
  heading: "_heading_96cdx_1",
1325
1325
  h2: "_h2_96cdx_8",
1326
1326
  h3: "_h3_96cdx_14"
1327
- }, Mn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ O(t, {
1327
+ }, Nn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ O(t, {
1328
1328
  className: [
1329
- jn.heading,
1330
- jn[t],
1329
+ Mn.heading,
1330
+ Mn[t],
1331
1331
  n ?? ""
1332
1332
  ].filter(Boolean).join(" "),
1333
1333
  children: e
1334
- }), Nn = { paragraph: "_paragraph_8pqdi_1" }, Pn = ({ children: e, className: t }) => /* @__PURE__ */ O("p", {
1335
- className: [Nn.paragraph, t ?? ""].filter(Boolean).join(" "),
1334
+ }), Pn = { paragraph: "_paragraph_8pqdi_1" }, Fn = ({ children: e, className: t }) => /* @__PURE__ */ O("p", {
1335
+ className: [Pn.paragraph, t ?? ""].filter(Boolean).join(" "),
1336
1336
  children: e
1337
- }), Fn = {
1337
+ }), In = {
1338
1338
  rootBordered: "_rootBordered_5cgsj_1",
1339
1339
  rail: "_rail_5cgsj_12",
1340
1340
  contentHorizontal: "_contentHorizontal_5cgsj_18",
@@ -1343,44 +1343,44 @@ var Yt = [
1343
1343
  textVertical: "_textVertical_5cgsj_41",
1344
1344
  title: "_title_5cgsj_49",
1345
1345
  description: "_description_5cgsj_57"
1346
- }, In = ({ icon: t, title: n, description: r, layout: i = "horizontal", leftBorder: a = !1, className: o }) => {
1346
+ }, Ln = ({ icon: t, title: n, description: r, layout: i = "horizontal", leftBorder: a = !1, className: o }) => {
1347
1347
  let s = i === "vertical", c = /* @__PURE__ */ k("div", {
1348
- className: s ? Fn.contentVertical : Fn.contentHorizontal,
1348
+ className: s ? In.contentVertical : In.contentHorizontal,
1349
1349
  children: [/* @__PURE__ */ O(p, {
1350
1350
  icon: t,
1351
1351
  size: "sm",
1352
1352
  variant: "light"
1353
1353
  }), /* @__PURE__ */ k("div", {
1354
- className: s ? Fn.textVertical : Fn.textHorizontal,
1354
+ className: s ? In.textVertical : In.textHorizontal,
1355
1355
  children: [/* @__PURE__ */ O("p", {
1356
- className: Fn.title,
1356
+ className: In.title,
1357
1357
  children: n
1358
1358
  }), /* @__PURE__ */ O("p", {
1359
- className: Fn.description,
1359
+ className: In.description,
1360
1360
  children: r
1361
1361
  })]
1362
1362
  })]
1363
1363
  });
1364
1364
  return a ? /* @__PURE__ */ k("div", {
1365
- className: [Fn.rootBordered, o ?? ""].filter(Boolean).join(" "),
1365
+ className: [In.rootBordered, o ?? ""].filter(Boolean).join(" "),
1366
1366
  children: [/* @__PURE__ */ O(e, {
1367
1367
  orientation: "vertical",
1368
- className: Fn.rail
1368
+ className: In.rail
1369
1369
  }), c]
1370
1370
  }) : D.cloneElement(c, { className: [c.props.className, o ?? ""].filter(Boolean).join(" ") });
1371
- }, Ln = { chart: "_chart_qqaox_2" }, Rn = {
1371
+ }, Rn = { chart: "_chart_qqaox_2" }, zn = {
1372
1372
  sm: 180,
1373
1373
  md: 240,
1374
1374
  lg: 320,
1375
1375
  xl: 420
1376
- }, zn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
1377
- let o = D.useRef(null), s = P(o), c = s("--color-chart-5") ?? "#dca84f", l = s("--color-chart-2") ?? "#5b92dd", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-muted") ?? "#78716a", f = e.some((e) => e.value2 !== void 0), p = t === "step" ? "step" : t === "linear" ? "linear" : "monotone", m = t === "stacked" ? "stack" : void 0;
1376
+ }, Bn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
1377
+ let o = D.useRef(null), s = N(o), c = s("--color-chart-5") ?? "#dca84f", l = s("--color-chart-2") ?? "#5b92dd", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-muted") ?? "#78716a", f = e.some((e) => e.value2 !== void 0), p = t === "step" ? "step" : t === "linear" ? "linear" : "monotone", m = t === "stacked" ? "stack" : void 0;
1378
1378
  return /* @__PURE__ */ O("div", {
1379
1379
  ref: o,
1380
- className: [Ln.chart, a ?? ""].filter(Boolean).join(" "),
1381
- children: /* @__PURE__ */ O(j, {
1380
+ className: [Rn.chart, a ?? ""].filter(Boolean).join(" "),
1381
+ children: /* @__PURE__ */ O(A, {
1382
1382
  width: "100%",
1383
- height: i ?? Rn[r],
1383
+ height: i ?? zn[r],
1384
1384
  children: /* @__PURE__ */ k(pt, {
1385
1385
  data: e,
1386
1386
  margin: {
@@ -1426,7 +1426,7 @@ var Yt = [
1426
1426
  stroke: u,
1427
1427
  vertical: !1
1428
1428
  }),
1429
- /* @__PURE__ */ O(Mt, {
1429
+ /* @__PURE__ */ O(Nt, {
1430
1430
  dataKey: "label",
1431
1431
  stroke: d,
1432
1432
  fontSize: 12,
@@ -1434,12 +1434,12 @@ var Yt = [
1434
1434
  axisLine: !1,
1435
1435
  interval: 0
1436
1436
  }),
1437
- /* @__PURE__ */ O(jt, {
1437
+ /* @__PURE__ */ O(Mt, {
1438
1438
  cursor: {
1439
1439
  stroke: s("--color-border-default") ?? "#dbdad7",
1440
1440
  strokeWidth: 1
1441
1441
  },
1442
- content: /* @__PURE__ */ O(Zt, {}),
1442
+ content: /* @__PURE__ */ O(Qt, {}),
1443
1443
  wrapperStyle: { zIndex: 50 }
1444
1444
  }),
1445
1445
  f && /* @__PURE__ */ O(ft, {
@@ -1478,7 +1478,7 @@ var Yt = [
1478
1478
  })
1479
1479
  })
1480
1480
  });
1481
- }, H = {
1481
+ }, V = {
1482
1482
  col: "_col_1v24u_2",
1483
1483
  col__header: "_col__header_1v24u_11",
1484
1484
  col__dot: "_col__dot_1v24u_12",
@@ -1489,29 +1489,29 @@ var Yt = [
1489
1489
  col__body: "_col__body_1v24u_24",
1490
1490
  col__drop: "_col__drop_1v24u_25",
1491
1491
  col__add: "_col__add_1v24u_31"
1492
- }, Bn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ k("div", {
1493
- className: [H.col, s ?? ""].filter(Boolean).join(" "),
1492
+ }, Vn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ k("div", {
1493
+ className: [V.col, s ?? ""].filter(Boolean).join(" "),
1494
1494
  children: [
1495
1495
  /* @__PURE__ */ k("div", {
1496
- className: H.col__header,
1496
+ className: V.col__header,
1497
1497
  children: [
1498
1498
  /* @__PURE__ */ O("span", {
1499
- className: H.col__dot,
1499
+ className: V.col__dot,
1500
1500
  style: { background: r },
1501
1501
  "aria-hidden": "true"
1502
1502
  }),
1503
1503
  /* @__PURE__ */ O("span", {
1504
- className: H.col__title,
1504
+ className: V.col__title,
1505
1505
  children: t
1506
1506
  }),
1507
1507
  n != null && /* @__PURE__ */ O("span", {
1508
- className: H.col__count,
1508
+ className: V.col__count,
1509
1509
  children: n
1510
1510
  }),
1511
- /* @__PURE__ */ O("span", { className: H.col__spacer }),
1511
+ /* @__PURE__ */ O("span", { className: V.col__spacer }),
1512
1512
  /* @__PURE__ */ O("button", {
1513
1513
  type: "button",
1514
- className: H.col__action,
1514
+ className: V.col__action,
1515
1515
  onClick: a,
1516
1516
  "aria-label": "Add task",
1517
1517
  children: /* @__PURE__ */ O(nt, {
@@ -1521,7 +1521,7 @@ var Yt = [
1521
1521
  }),
1522
1522
  /* @__PURE__ */ O("button", {
1523
1523
  type: "button",
1524
- className: H.col__action,
1524
+ className: V.col__action,
1525
1525
  onClick: o,
1526
1526
  "aria-label": "Column options",
1527
1527
  children: /* @__PURE__ */ O(et, {
@@ -1532,15 +1532,15 @@ var Yt = [
1532
1532
  ]
1533
1533
  }),
1534
1534
  /* @__PURE__ */ O("div", {
1535
- className: H.col__body,
1535
+ className: V.col__body,
1536
1536
  children: e === "empty" ? /* @__PURE__ */ O("div", {
1537
- className: H.col__drop,
1537
+ className: V.col__drop,
1538
1538
  children: "Drop tasks here"
1539
1539
  }) : i
1540
1540
  }),
1541
1541
  /* @__PURE__ */ k("button", {
1542
1542
  type: "button",
1543
- className: H.col__add,
1543
+ className: V.col__add,
1544
1544
  onClick: a,
1545
1545
  children: [/* @__PURE__ */ O(nt, {
1546
1546
  size: 16,
@@ -1549,7 +1549,7 @@ var Yt = [
1549
1549
  }), "Add task"]
1550
1550
  })
1551
1551
  ]
1552
- }), U = {
1552
+ }), H = {
1553
1553
  calendar: "_calendar_1y1kb_2",
1554
1554
  header: "_header_1y1kb_14",
1555
1555
  header__label: "_header__label_1y1kb_15",
@@ -1567,7 +1567,7 @@ var Yt = [
1567
1567
  "day--disabled": "_day--disabled_1y1kb_49",
1568
1568
  dropdowns: "_dropdowns_1y1kb_52",
1569
1569
  dropdown: "_dropdown_1y1kb_52"
1570
- }, Vn = [
1570
+ }, Hn = [
1571
1571
  "Su",
1572
1572
  "Mo",
1573
1573
  "Tu",
@@ -1575,7 +1575,7 @@ var Yt = [
1575
1575
  "Th",
1576
1576
  "Fr",
1577
1577
  "Sa"
1578
- ], Hn = [
1578
+ ], Un = [
1579
1579
  "January",
1580
1580
  "February",
1581
1581
  "March",
@@ -1588,19 +1588,19 @@ var Yt = [
1588
1588
  "October",
1589
1589
  "November",
1590
1590
  "December"
1591
- ], Un = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Wn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Gn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
1591
+ ], Wn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Kn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
1592
1592
  let [u, d] = D.useState(() => {
1593
1593
  let e = o ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
1594
1594
  return new Date(e.getFullYear(), e.getMonth(), 1);
1595
- }), [f, p] = D.useState({}), m = r === void 0 ? f : r, h = /* @__PURE__ */ new Date(), g = u.getFullYear(), _ = u.getMonth(), v = new Date(g, _, 1).getDay(), y = new Date(g, _, 1 - v), b = Array.from({ length: 42 }, (e, t) => new Date(y.getFullYear(), y.getMonth(), y.getDate() + t)), x = (e) => s && e < Wn(s) || c && e > c, ee = (e) => {
1595
+ }), [f, p] = D.useState({}), m = r === void 0 ? f : r, h = /* @__PURE__ */ new Date(), g = u.getFullYear(), _ = u.getMonth(), v = new Date(g, _, 1).getDay(), y = new Date(g, _, 1 - v), b = Array.from({ length: 42 }, (e, t) => new Date(y.getFullYear(), y.getMonth(), y.getDate() + t)), x = (e) => s && e < Gn(s) || c && e > c, S = (e) => {
1596
1596
  r === void 0 && p(e), i?.(e);
1597
- }, S = (t) => {
1597
+ }, C = (t) => {
1598
1598
  if (e === "single") {
1599
1599
  n?.(t);
1600
1600
  return;
1601
1601
  }
1602
1602
  let { from: r, to: i } = m;
1603
- ee(!r || r && i ? {
1603
+ S(!r || r && i ? {
1604
1604
  from: t,
1605
1605
  to: void 0
1606
1606
  } : t < r ? {
@@ -1610,26 +1610,26 @@ var Yt = [
1610
1610
  from: r,
1611
1611
  to: t
1612
1612
  });
1613
- }, C = (n) => {
1613
+ }, w = (n) => {
1614
1614
  if (x(n)) return "disabled";
1615
1615
  if (e === "single") {
1616
- if (Un(n, t)) return "selected";
1616
+ if (Wn(n, t)) return "selected";
1617
1617
  } else {
1618
1618
  let { from: e, to: t } = m;
1619
- if (Un(n, e) || Un(n, t)) return "selected";
1619
+ if (Wn(n, e) || Wn(n, t)) return "selected";
1620
1620
  if (e && t && n > e && n < t) return "in-range";
1621
1621
  }
1622
- return n.getMonth() === _ ? Un(n, h) ? "today" : "default" : "outside";
1623
- }, te = s ? s.getFullYear() : g - 10, w = c ? c.getFullYear() : g + 10, ne = Array.from({ length: w - te + 1 }, (e, t) => te + t);
1622
+ return n.getMonth() === _ ? Wn(n, h) ? "today" : "default" : "outside";
1623
+ }, ee = s ? s.getFullYear() : g - 10, te = c ? c.getFullYear() : g + 10, ne = Array.from({ length: te - ee + 1 }, (e, t) => ee + t);
1624
1624
  return /* @__PURE__ */ k("div", {
1625
- className: [U.calendar, l ?? ""].filter(Boolean).join(" "),
1625
+ className: [H.calendar, l ?? ""].filter(Boolean).join(" "),
1626
1626
  children: [
1627
1627
  /* @__PURE__ */ k("div", {
1628
- className: U.header,
1628
+ className: H.header,
1629
1629
  children: [
1630
1630
  /* @__PURE__ */ O("button", {
1631
1631
  type: "button",
1632
- className: U.navBtn,
1632
+ className: H.navBtn,
1633
1633
  onClick: () => d(new Date(g, _ - 1, 1)),
1634
1634
  "aria-label": "Previous month",
1635
1635
  children: /* @__PURE__ */ O(Ge, {
@@ -1638,18 +1638,18 @@ var Yt = [
1638
1638
  })
1639
1639
  }),
1640
1640
  a === "dropdowns" ? /* @__PURE__ */ k("span", {
1641
- className: U.dropdowns,
1641
+ className: H.dropdowns,
1642
1642
  children: [/* @__PURE__ */ O("select", {
1643
- className: U.dropdown,
1643
+ className: H.dropdown,
1644
1644
  value: _,
1645
1645
  onChange: (e) => d(new Date(g, Number(e.target.value), 1)),
1646
1646
  "aria-label": "Month",
1647
- children: Hn.map((e, t) => /* @__PURE__ */ O("option", {
1647
+ children: Un.map((e, t) => /* @__PURE__ */ O("option", {
1648
1648
  value: t,
1649
1649
  children: e
1650
1650
  }, e))
1651
1651
  }), /* @__PURE__ */ O("select", {
1652
- className: U.dropdown,
1652
+ className: H.dropdown,
1653
1653
  value: g,
1654
1654
  onChange: (e) => d(new Date(Number(e.target.value), _, 1)),
1655
1655
  "aria-label": "Year",
@@ -1659,16 +1659,16 @@ var Yt = [
1659
1659
  }, e))
1660
1660
  })]
1661
1661
  }) : /* @__PURE__ */ k("span", {
1662
- className: U.header__label,
1662
+ className: H.header__label,
1663
1663
  children: [
1664
- Hn[_],
1664
+ Un[_],
1665
1665
  " ",
1666
1666
  g
1667
1667
  ]
1668
1668
  }),
1669
1669
  /* @__PURE__ */ O("button", {
1670
1670
  type: "button",
1671
- className: U.navBtn,
1671
+ className: H.navBtn,
1672
1672
  onClick: () => d(new Date(g, _ + 1, 1)),
1673
1673
  "aria-label": "Next month",
1674
1674
  children: /* @__PURE__ */ O(Ke, {
@@ -1679,19 +1679,19 @@ var Yt = [
1679
1679
  ]
1680
1680
  }),
1681
1681
  /* @__PURE__ */ O("div", {
1682
- className: U.weekdays,
1683
- children: Vn.map((e) => /* @__PURE__ */ O("span", {
1684
- className: U.weekday,
1682
+ className: H.weekdays,
1683
+ children: Hn.map((e) => /* @__PURE__ */ O("span", {
1684
+ className: H.weekday,
1685
1685
  children: e
1686
1686
  }, e))
1687
1687
  }),
1688
1688
  /* @__PURE__ */ O("div", {
1689
- className: U.grid,
1689
+ className: H.grid,
1690
1690
  children: b.map((e, t) => {
1691
- let n = C(e);
1691
+ let n = w(e);
1692
1692
  return /* @__PURE__ */ O("button", {
1693
1693
  type: "button",
1694
- className: [U.day, U[`day--${n}`]].filter(Boolean).join(" "),
1694
+ className: [H.day, H[`day--${n}`]].filter(Boolean).join(" "),
1695
1695
  disabled: n === "disabled",
1696
1696
  "aria-current": n === "today" ? "date" : void 0,
1697
1697
  "aria-selected": n === "selected",
@@ -1701,14 +1701,14 @@ var Yt = [
1701
1701
  month: "long",
1702
1702
  day: "numeric"
1703
1703
  }),
1704
- onClick: () => S(e),
1704
+ onClick: () => C(e),
1705
1705
  children: e.getDate()
1706
1706
  }, t);
1707
1707
  })
1708
1708
  })
1709
1709
  ]
1710
1710
  });
1711
- }, Kn = {
1711
+ }, qn = {
1712
1712
  card: "_card_1mh1i_3",
1713
1713
  "card--interactive": "_card--interactive_1mh1i_16",
1714
1714
  card__header: "_card__header_1mh1i_24",
@@ -1716,128 +1716,149 @@ var Yt = [
1716
1716
  card__description: "_card__description_1mh1i_32",
1717
1717
  card__body: "_card__body_1mh1i_39",
1718
1718
  card__actions: "_card__actions_1mh1i_42"
1719
- }, qn = ({ title: e, description: t, actions: n, interactive: r, children: i, className: a }) => /* @__PURE__ */ k("div", {
1719
+ }, Jn = ({ title: e, description: t, actions: n, interactive: r, children: i, className: a }) => /* @__PURE__ */ k("div", {
1720
1720
  className: [
1721
- Kn.card,
1722
- r ? Kn["card--interactive"] : "",
1721
+ qn.card,
1722
+ r ? qn["card--interactive"] : "",
1723
1723
  a ?? ""
1724
1724
  ].filter(Boolean).join(" "),
1725
1725
  children: [
1726
1726
  (e || t) && /* @__PURE__ */ k("div", {
1727
- className: Kn.card__header,
1727
+ className: qn.card__header,
1728
1728
  children: [e && /* @__PURE__ */ O("h3", {
1729
- className: Kn.card__title,
1729
+ className: qn.card__title,
1730
1730
  children: e
1731
1731
  }), t && /* @__PURE__ */ O("p", {
1732
- className: Kn.card__description,
1732
+ className: qn.card__description,
1733
1733
  children: t
1734
1734
  })]
1735
1735
  }),
1736
1736
  i && /* @__PURE__ */ O("div", {
1737
- className: Kn.card__body,
1737
+ className: qn.card__body,
1738
1738
  children: i
1739
1739
  }),
1740
1740
  n && /* @__PURE__ */ O("div", {
1741
- className: Kn.card__actions,
1741
+ className: qn.card__actions,
1742
1742
  children: n
1743
1743
  })
1744
1744
  ]
1745
- }), W = {
1746
- field: "_field_kfksn_7",
1747
- field__label: "_field__label_kfksn_8",
1748
- field__description: "_field__description_kfksn_9",
1749
- field__error: "_field__error_kfksn_10",
1750
- control: "_control_kfksn_13",
1751
- "control--sm": "_control--sm_kfksn_25",
1752
- "control--md": "_control--md_kfksn_26",
1753
- "control--lg": "_control--lg_kfksn_27",
1754
- "control--open": "_control--open_kfksn_29",
1755
- "control--error": "_control--error_kfksn_35",
1756
- "control--disabled": "_control--disabled_kfksn_39",
1757
- control__value: "_control__value_kfksn_45",
1758
- "control__value--placeholder": "_control__value--placeholder_kfksn_55",
1759
- control__input: "_control__input_kfksn_56",
1760
- control__chevron: "_control__chevron_kfksn_76",
1761
- "control__chevron--open": "_control__chevron--open_kfksn_77",
1762
- chips: "_chips_kfksn_80",
1763
- chip: "_chip_kfksn_80",
1764
- chip__remove: "_chip__remove_kfksn_92",
1765
- panel: "_panel_kfksn_103",
1766
- "panel--entering": "_panel--entering_kfksn_127",
1767
- "sakani-combobox-panel-in": "_sakani-combobox-panel-in_kfksn_1",
1768
- "panel--exiting": "_panel--exiting_kfksn_128",
1769
- "sakani-combobox-panel-out": "_sakani-combobox-panel-out_kfksn_1",
1770
- panel__empty: "_panel__empty_kfksn_138",
1771
- option: "_option_kfksn_146",
1772
- "option--selected": "_option--selected_kfksn_171",
1773
- "option--disabled": "_option--disabled_kfksn_172",
1774
- optionHighlight: "_optionHighlight_kfksn_147",
1775
- "optionHighlight--animated": "_optionHighlight--animated_kfksn_203",
1776
- option__icon: "_option__icon_kfksn_206",
1777
- option__label: "_option__label_kfksn_207",
1778
- option__check: "_option__check_kfksn_208",
1779
- panel__loading: "_panel__loading_kfksn_211",
1780
- panel__spinner: "_panel__spinner_kfksn_215",
1781
- "sakani-cb-spin": "_sakani-cb-spin_kfksn_1"
1782
- }, Jn = ({ options: e, mode: t = "single", size: n = "md", label: r, description: i, error: a, placeholder: o = "Select...", disabled: s, loading: c, value: l, onChange: u, className: d }) => {
1745
+ }), U = {
1746
+ field: "_field_931k2_7",
1747
+ field__label: "_field__label_931k2_8",
1748
+ field__description: "_field__description_931k2_9",
1749
+ field__error: "_field__error_931k2_10",
1750
+ control: "_control_931k2_13",
1751
+ "control--sm": "_control--sm_931k2_25",
1752
+ "control--md": "_control--md_931k2_26",
1753
+ "control--lg": "_control--lg_931k2_27",
1754
+ "control--open": "_control--open_931k2_29",
1755
+ "control--error": "_control--error_931k2_35",
1756
+ "control--disabled": "_control--disabled_931k2_39",
1757
+ control__value: "_control__value_931k2_45",
1758
+ "control__value--placeholder": "_control__value--placeholder_931k2_55",
1759
+ control__input: "_control__input_931k2_56",
1760
+ control__chevron: "_control__chevron_931k2_76",
1761
+ "control__chevron--open": "_control__chevron--open_931k2_77",
1762
+ chips: "_chips_931k2_83",
1763
+ chip: "_chip_931k2_83",
1764
+ "chip--leaving": "_chip--leaving_931k2_95",
1765
+ "sakani-combobox-chip-out": "_sakani-combobox-chip-out_931k2_1",
1766
+ chip__remove: "_chip__remove_931k2_103",
1767
+ panel: "_panel_931k2_114",
1768
+ "panel--entering": "_panel--entering_931k2_138",
1769
+ "sakani-combobox-panel-in": "_sakani-combobox-panel-in_931k2_1",
1770
+ "panel--exiting": "_panel--exiting_931k2_139",
1771
+ "sakani-combobox-panel-out": "_sakani-combobox-panel-out_931k2_1",
1772
+ panel__empty: "_panel__empty_931k2_149",
1773
+ option: "_option_931k2_157",
1774
+ "option--selected": "_option--selected_931k2_182",
1775
+ "option--disabled": "_option--disabled_931k2_183",
1776
+ optionHighlight: "_optionHighlight_931k2_158",
1777
+ "optionHighlight--animated": "_optionHighlight--animated_931k2_214",
1778
+ option__box: "_option__box_931k2_221",
1779
+ "option__box--checked": "_option__box--checked_931k2_238",
1780
+ option__icon: "_option__icon_931k2_243",
1781
+ option__label: "_option__label_931k2_244",
1782
+ option__check: "_option__check_931k2_245",
1783
+ panel__loading: "_panel__loading_931k2_248",
1784
+ panel__spinner: "_panel__spinner_931k2_252",
1785
+ "sakani-cb-spin": "_sakani-cb-spin_931k2_1"
1786
+ }, Yn = ({ options: e, mode: t = "single", size: n = "md", label: r, description: i, error: a, placeholder: o = "Select...", disabled: s, loading: c, value: l, onChange: u, className: d }) => {
1783
1787
  let f = D.useId(), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(0), y = D.useRef(null), b = e;
1784
1788
  D.useEffect(() => {
1785
1789
  p && g(!0);
1786
1790
  }, [p]);
1787
- let x = D.useRef({}), ee = D.useRef(null), [S, C] = D.useState(null), [te, w] = D.useState(!1);
1791
+ let x = D.useRef({}), S = D.useRef(null), [C, w] = D.useState(null), [ee, te] = D.useState(!1);
1788
1792
  D.useLayoutEffect(() => {
1789
1793
  let e = x.current[_];
1790
1794
  if (!e) {
1791
- C(null);
1795
+ w(null);
1792
1796
  return;
1793
1797
  }
1794
- C({
1798
+ w({
1795
1799
  top: e.offsetTop,
1796
1800
  height: e.offsetHeight
1797
1801
  });
1798
1802
  }, [_, b.length]), D.useLayoutEffect(() => {
1799
1803
  if (!h) {
1800
- w(!1);
1804
+ te(!1);
1801
1805
  return;
1802
1806
  }
1803
- w(!1);
1804
- let e = window.requestAnimationFrame(() => w(!0));
1807
+ te(!1);
1808
+ let e = window.requestAnimationFrame(() => te(!0));
1805
1809
  return () => window.cancelAnimationFrame(e);
1806
1810
  }, [h]), D.useEffect(() => {
1807
- if (!ee.current) return;
1811
+ if (!S.current) return;
1808
1812
  let e = new ResizeObserver(() => {
1809
1813
  let e = x.current[_];
1810
- e && C({
1814
+ e && w({
1811
1815
  top: e.offsetTop,
1812
1816
  height: e.offsetHeight
1813
1817
  });
1814
1818
  });
1815
- return e.observe(ee.current), () => e.disconnect();
1819
+ return e.observe(S.current), () => e.disconnect();
1816
1820
  }, [h]);
1817
- let [ne, re] = D.useState(t === "multi" ? [] : ""), ie = l === void 0 ? ne : l, T = Array.isArray(ie) ? ie : ie ? [ie] : [], ae = !!a;
1821
+ let [ne, re] = D.useState(t === "multi" ? [] : ""), ie = l === void 0 ? ne : l, T = Array.isArray(ie) ? ie : ie ? [ie] : [], [ae, oe] = D.useState(() => T.map((e) => ({
1822
+ value: e,
1823
+ leaving: !1
1824
+ }))), se = T.join("\0");
1825
+ D.useLayoutEffect(() => {
1826
+ oe((e) => {
1827
+ let t = e.map((e) => ({
1828
+ value: e.value,
1829
+ leaving: !T.includes(e.value)
1830
+ }));
1831
+ for (let e of T) t.some((t) => t.value === e) || t.push({
1832
+ value: e,
1833
+ leaving: !1
1834
+ });
1835
+ return t;
1836
+ });
1837
+ }, [se]);
1838
+ let ce = (e) => oe((t) => t.filter((t) => !(t.value === e && t.leaving))), le = !!a;
1818
1839
  D.useEffect(() => {
1819
1840
  let e = (e) => {
1820
1841
  y.current && !y.current.contains(e.target) && m(!1);
1821
1842
  };
1822
1843
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1823
1844
  }, []);
1824
- let oe = (e) => {
1845
+ let ue = (e) => {
1825
1846
  l === void 0 && re(e), u?.(e);
1826
- }, se = (e) => {
1847
+ }, de = (e) => {
1827
1848
  if (!e.disabled) if (t === "multi") {
1828
1849
  let t = new Set(T);
1829
- t.has(e.value) ? t.delete(e.value) : t.add(e.value), oe([...t]);
1830
- } else oe(e.value), m(!1);
1831
- }, ce = (t) => e.find((e) => e.value === t)?.label ?? t, le = T.length ? ce(T[0]) : "", ue = (e) => {
1832
- s || (e.key === "ArrowDown" ? (e.preventDefault(), m(!0), v((e) => Math.min(e + 1, b.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(e - 1, 0))) : e.key === "Enter" ? (e.preventDefault(), p && b[_] ? se(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
1833
- }, de = s ? "disabled" : ae ? "error" : p ? "open" : "default";
1850
+ t.has(e.value) ? t.delete(e.value) : t.add(e.value), ue([...t]);
1851
+ } else ue(e.value), m(!1);
1852
+ }, fe = (t) => e.find((e) => e.value === t)?.label ?? t, pe = T.length ? fe(T[0]) : "", me = (e) => {
1853
+ s || (e.key === "ArrowDown" ? (e.preventDefault(), m(!0), v((e) => Math.min(e + 1, b.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(e - 1, 0))) : e.key === "Enter" ? (e.preventDefault(), p && b[_] ? de(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
1854
+ }, he = s ? "disabled" : le ? "error" : p ? "open" : "default";
1834
1855
  return /* @__PURE__ */ k("div", {
1835
- className: [W.field, d ?? ""].filter(Boolean).join(" "),
1856
+ className: [U.field, d ?? ""].filter(Boolean).join(" "),
1836
1857
  ref: y,
1837
1858
  children: [
1838
1859
  r && /* @__PURE__ */ O("label", {
1839
1860
  htmlFor: `${f}-trigger`,
1840
- className: W.field__label,
1861
+ className: U.field__label,
1841
1862
  children: r
1842
1863
  }),
1843
1864
  /* @__PURE__ */ k("div", {
@@ -1847,38 +1868,41 @@ var Yt = [
1847
1868
  "aria-haspopup": "listbox",
1848
1869
  "aria-expanded": p,
1849
1870
  "aria-controls": `${f}-panel`,
1850
- "aria-invalid": ae || void 0,
1871
+ "aria-invalid": le || void 0,
1851
1872
  "aria-disabled": s || void 0,
1852
1873
  "aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
1853
1874
  className: [
1854
- W.control,
1855
- W[`control--${n}`],
1856
- W[`control--${de}`]
1875
+ U.control,
1876
+ U[`control--${n}`],
1877
+ U[`control--${he}`]
1857
1878
  ].join(" "),
1858
1879
  onClick: () => !s && m((e) => !e),
1859
- onKeyDown: ue,
1880
+ onKeyDown: me,
1860
1881
  children: [
1861
- t === "multi" && T.length > 0 && /* @__PURE__ */ O("div", {
1862
- className: W.chips,
1863
- children: T.map((t) => /* @__PURE__ */ k("span", {
1864
- className: W.chip,
1865
- children: [ce(t), /* @__PURE__ */ O("button", {
1882
+ t === "multi" && ae.length > 0 && /* @__PURE__ */ O("div", {
1883
+ className: U.chips,
1884
+ children: ae.map(({ value: t, leaving: n }) => /* @__PURE__ */ k("span", {
1885
+ className: [U.chip, n ? U["chip--leaving"] : ""].filter(Boolean).join(" "),
1886
+ "aria-hidden": n || void 0,
1887
+ onAnimationEnd: n ? () => ce(t) : void 0,
1888
+ children: [fe(t), /* @__PURE__ */ O("button", {
1866
1889
  type: "button",
1867
- className: W.chip__remove,
1890
+ className: U.chip__remove,
1891
+ tabIndex: n ? -1 : void 0,
1868
1892
  onClick: (n) => {
1869
- n.stopPropagation(), se(e.find((e) => e.value === t));
1893
+ n.stopPropagation(), de(e.find((e) => e.value === t));
1870
1894
  },
1871
- "aria-label": `Remove ${ce(t)}`,
1895
+ "aria-label": `Remove ${fe(t)}`,
1872
1896
  children: "×"
1873
1897
  })]
1874
1898
  }, t))
1875
1899
  }),
1876
- !(t === "multi" && T.length > 0) && /* @__PURE__ */ O("span", {
1877
- className: [W.control__value, t === "single" && le ? "" : W["control__value--placeholder"]].filter(Boolean).join(" "),
1878
- children: t === "single" && le ? le : o
1900
+ !(t === "multi" && ae.length > 0) && /* @__PURE__ */ O("span", {
1901
+ className: [U.control__value, t === "single" && pe ? "" : U["control__value--placeholder"]].filter(Boolean).join(" "),
1902
+ children: t === "single" && pe ? pe : o
1879
1903
  }),
1880
1904
  /* @__PURE__ */ O("span", {
1881
- className: [W.control__chevron, p ? W["control__chevron--open"] : ""].join(" "),
1905
+ className: [U.control__chevron, p ? U["control__chevron--open"] : ""].join(" "),
1882
1906
  "aria-hidden": "true",
1883
1907
  children: /* @__PURE__ */ O("svg", {
1884
1908
  width: 16,
@@ -1895,60 +1919,76 @@ var Yt = [
1895
1919
  ]
1896
1920
  }),
1897
1921
  h && !s && /* @__PURE__ */ O("div", {
1898
- ref: ee,
1899
- className: [W.panel, p ? W["panel--entering"] : W["panel--exiting"]].filter(Boolean).join(" "),
1922
+ ref: S,
1923
+ className: [U.panel, p ? U["panel--entering"] : U["panel--exiting"]].filter(Boolean).join(" "),
1900
1924
  id: `${f}-panel`,
1901
1925
  role: "listbox",
1926
+ "aria-multiselectable": t === "multi" || void 0,
1902
1927
  "aria-busy": c || void 0,
1903
1928
  onAnimationEnd: () => {
1904
1929
  p || g(!1);
1905
1930
  },
1906
1931
  children: c ? /* @__PURE__ */ k("div", {
1907
- className: W.panel__loading,
1932
+ className: U.panel__loading,
1908
1933
  children: [/* @__PURE__ */ O("span", {
1909
- className: W.panel__spinner,
1934
+ className: U.panel__spinner,
1910
1935
  "aria-hidden": "true"
1911
1936
  }), "Loading…"]
1912
1937
  }) : b.length === 0 ? /* @__PURE__ */ O("div", {
1913
- className: W.panel__empty,
1938
+ className: U.panel__empty,
1914
1939
  children: "No options available"
1915
- }) : /* @__PURE__ */ k(Be, { children: [S && /* @__PURE__ */ O("span", {
1940
+ }) : /* @__PURE__ */ k(Be, { children: [C && /* @__PURE__ */ O("span", {
1916
1941
  "aria-hidden": "true",
1917
- className: [W.optionHighlight, te ? W["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
1942
+ className: [U.optionHighlight, ee ? U["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
1918
1943
  style: {
1919
- transform: `translateY(${S.top}px)`,
1920
- height: S.height
1944
+ transform: `translateY(${C.top}px)`,
1945
+ height: C.height
1921
1946
  }
1922
- }), b.map((e, t) => {
1923
- let n = T.includes(e.value);
1947
+ }), b.map((e, n) => {
1948
+ let r = T.includes(e.value);
1924
1949
  return /* @__PURE__ */ k("div", {
1925
1950
  ref: (e) => {
1926
- x.current[t] = e;
1951
+ x.current[n] = e;
1927
1952
  },
1928
- id: `${f}-opt-${t}`,
1953
+ id: `${f}-opt-${n}`,
1929
1954
  role: "option",
1930
- "aria-selected": n,
1955
+ "aria-selected": r,
1931
1956
  className: [
1932
- W.option,
1933
- n ? W["option--selected"] : "",
1934
- e.disabled ? W["option--disabled"] : ""
1957
+ U.option,
1958
+ r && t === "single" ? U["option--selected"] : "",
1959
+ e.disabled ? U["option--disabled"] : ""
1935
1960
  ].filter(Boolean).join(" "),
1936
1961
  onMouseEnter: () => {
1937
- e.disabled || v(t);
1962
+ e.disabled || v(n);
1938
1963
  },
1939
- onClick: () => se(e),
1964
+ onClick: () => de(e),
1940
1965
  children: [
1966
+ t === "multi" && /* @__PURE__ */ O("span", {
1967
+ className: [U.option__box, r ? U["option__box--checked"] : ""].filter(Boolean).join(" "),
1968
+ "aria-hidden": "true",
1969
+ children: /* @__PURE__ */ O("svg", {
1970
+ width: 12,
1971
+ height: 12,
1972
+ viewBox: "0 0 24 24",
1973
+ fill: "none",
1974
+ stroke: "currentColor",
1975
+ strokeWidth: E(12),
1976
+ strokeLinecap: "round",
1977
+ strokeLinejoin: "round",
1978
+ children: /* @__PURE__ */ O("polyline", { points: "20 6 9 17 4 12" })
1979
+ })
1980
+ }),
1941
1981
  e.icon && /* @__PURE__ */ O("span", {
1942
- className: W.option__icon,
1982
+ className: U.option__icon,
1943
1983
  "aria-hidden": "true",
1944
1984
  children: e.icon
1945
1985
  }),
1946
1986
  /* @__PURE__ */ O("span", {
1947
- className: W.option__label,
1987
+ className: U.option__label,
1948
1988
  children: e.label
1949
1989
  }),
1950
- n && /* @__PURE__ */ O("span", {
1951
- className: W.option__check,
1990
+ r && t === "single" && /* @__PURE__ */ O("span", {
1991
+ className: U.option__check,
1952
1992
  "aria-hidden": "true",
1953
1993
  children: /* @__PURE__ */ O("svg", {
1954
1994
  width: 16,
@@ -1967,17 +2007,17 @@ var Yt = [
1967
2007
  })] })
1968
2008
  }),
1969
2009
  (i || a) && /* @__PURE__ */ O("span", {
1970
- className: ae ? W.field__error : W.field__description,
2010
+ className: le ? U.field__error : U.field__description,
1971
2011
  children: a || i
1972
2012
  })
1973
2013
  ]
1974
2014
  });
1975
- }, Yn = {
2015
+ }, Xn = {
1976
2016
  chart: "_chart_aiboa_2",
1977
2017
  center: "_center_aiboa_26",
1978
2018
  center__value: "_center__value_aiboa_35",
1979
2019
  center__caption: "_center__caption_aiboa_36"
1980
- }, Xn = {
2020
+ }, Zn = {
1981
2021
  sm: {
1982
2022
  h: 180,
1983
2023
  inner: 50,
@@ -1998,32 +2038,32 @@ var Yt = [
1998
2038
  inner: 98,
1999
2039
  outer: 142
2000
2040
  }
2001
- }, Zn = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
2041
+ }, Qn = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
2002
2042
  let [o, s] = D.useState(null), [c, l] = D.useState(null), u = (e) => {
2003
2043
  let t = e.currentTarget.getBoundingClientRect();
2004
2044
  l({
2005
2045
  x: e.clientX - t.left,
2006
2046
  y: e.clientY - t.top
2007
2047
  });
2008
- }, d = D.useRef(null), f = P(d), p = [
2048
+ }, d = D.useRef(null), f = N(d), p = [
2009
2049
  1,
2010
2050
  2,
2011
2051
  3,
2012
2052
  4,
2013
2053
  5
2014
- ].map((e) => f(`--color-chart-${e}`) ?? Yt[e - 1]), m = {
2015
- ...Xn[t],
2016
- h: i ?? Xn[t].h
2054
+ ].map((e) => f(`--color-chart-${e}`) ?? Xt[e - 1]), m = {
2055
+ ...Zn[t],
2056
+ h: i ?? Zn[t].h
2017
2057
  }, h = (m.outer - m.inner) / 2 - 7;
2018
2058
  return /* @__PURE__ */ k("div", {
2019
2059
  ref: d,
2020
- className: [Yn.chart, a ?? ""].filter(Boolean).join(" "),
2060
+ className: [Xn.chart, a ?? ""].filter(Boolean).join(" "),
2021
2061
  style: { height: m.h },
2022
2062
  onMouseMove: u,
2023
- children: [/* @__PURE__ */ O(j, {
2063
+ children: [/* @__PURE__ */ O(A, {
2024
2064
  width: "100%",
2025
2065
  height: "100%",
2026
- children: /* @__PURE__ */ k(xt, { children: [/* @__PURE__ */ O(bt, {
2066
+ children: /* @__PURE__ */ k(St, { children: [/* @__PURE__ */ O(xt, {
2027
2067
  data: e,
2028
2068
  dataKey: "value",
2029
2069
  nameKey: "label",
@@ -2037,27 +2077,27 @@ var Yt = [
2037
2077
  onMouseLeave: () => {
2038
2078
  s(null), l(null);
2039
2079
  },
2040
- children: e.map((e, t) => /* @__PURE__ */ O(A, {
2080
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, {
2041
2081
  fill: p[t % p.length],
2042
2082
  fillOpacity: o !== null && t !== o ? .45 : 1
2043
2083
  }, t))
2044
- }), /* @__PURE__ */ O(jt, {
2045
- content: /* @__PURE__ */ O(Zt, {}),
2084
+ }), /* @__PURE__ */ O(Mt, {
2085
+ content: /* @__PURE__ */ O(Qt, {}),
2046
2086
  wrapperStyle: { zIndex: 50 },
2047
2087
  position: c ?? void 0
2048
2088
  })] })
2049
2089
  }), (n || r) && /* @__PURE__ */ k("div", {
2050
- className: Yn.center,
2090
+ className: Xn.center,
2051
2091
  children: [n && /* @__PURE__ */ O("span", {
2052
- className: Yn.center__value,
2092
+ className: Xn.center__value,
2053
2093
  children: n
2054
2094
  }), r && /* @__PURE__ */ O("span", {
2055
- className: Yn.center__caption,
2095
+ className: Xn.center__caption,
2056
2096
  children: r
2057
2097
  })]
2058
2098
  })]
2059
2099
  });
2060
- }, G = {
2100
+ }, W = {
2061
2101
  wrap: "_wrap_1b5p5_2",
2062
2102
  dropzone: "_dropzone_1b5p5_4",
2063
2103
  "dropzone--dragging": "_dropzone--dragging_1b5p5_21",
@@ -2071,7 +2111,7 @@ var Yt = [
2071
2111
  file__icon: "_file__icon_1b5p5_45",
2072
2112
  file__name: "_file__name_1b5p5_46",
2073
2113
  file__remove: "_file__remove_1b5p5_47"
2074
- }, Qn = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
2114
+ }, $n = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
2075
2115
  let a = D.useRef(null), [o, s] = D.useState(!1), [c, l] = D.useState([]), u = (e) => {
2076
2116
  l(e), r?.(e);
2077
2117
  }, d = (e) => {
@@ -2080,9 +2120,9 @@ var Yt = [
2080
2120
  u(t ? [...c, ...n] : n.slice(0, 1));
2081
2121
  }, f = (e) => u(c.filter((t, n) => n !== e));
2082
2122
  return /* @__PURE__ */ k("div", {
2083
- className: [G.wrap, i ?? ""].filter(Boolean).join(" "),
2123
+ className: [W.wrap, i ?? ""].filter(Boolean).join(" "),
2084
2124
  children: [/* @__PURE__ */ k("div", {
2085
- className: [G.dropzone, o ? G["dropzone--dragging"] : ""].filter(Boolean).join(" "),
2125
+ className: [W.dropzone, o ? W["dropzone--dragging"] : ""].filter(Boolean).join(" "),
2086
2126
  onClick: () => a.current?.click(),
2087
2127
  onDragOver: (e) => {
2088
2128
  e.preventDefault(), s(!0);
@@ -2098,7 +2138,7 @@ var Yt = [
2098
2138
  },
2099
2139
  children: [
2100
2140
  /* @__PURE__ */ O("span", {
2101
- className: G.dropzone__icon,
2141
+ className: W.dropzone__icon,
2102
2142
  "aria-hidden": "true",
2103
2143
  children: /* @__PURE__ */ O(ut, {
2104
2144
  size: 22,
@@ -2106,14 +2146,14 @@ var Yt = [
2106
2146
  })
2107
2147
  }),
2108
2148
  /* @__PURE__ */ k("span", {
2109
- className: G.dropzone__label,
2149
+ className: W.dropzone__label,
2110
2150
  children: [/* @__PURE__ */ O("span", {
2111
- className: G.dropzone__link,
2151
+ className: W.dropzone__link,
2112
2152
  children: "Click to upload"
2113
2153
  }), " or drag and drop"]
2114
2154
  }),
2115
2155
  /* @__PURE__ */ O("span", {
2116
- className: G.dropzone__hint,
2156
+ className: W.dropzone__hint,
2117
2157
  children: n
2118
2158
  }),
2119
2159
  /* @__PURE__ */ O("input", {
@@ -2121,17 +2161,17 @@ var Yt = [
2121
2161
  type: "file",
2122
2162
  accept: e,
2123
2163
  multiple: t,
2124
- className: G.input,
2164
+ className: W.input,
2125
2165
  onChange: (e) => d(e.target.files)
2126
2166
  })
2127
2167
  ]
2128
2168
  }), c.length > 0 && /* @__PURE__ */ O("ul", {
2129
- className: G.files,
2169
+ className: W.files,
2130
2170
  children: c.map((e, t) => /* @__PURE__ */ k("li", {
2131
- className: G.file,
2171
+ className: W.file,
2132
2172
  children: [
2133
2173
  /* @__PURE__ */ O("span", {
2134
- className: G.file__icon,
2174
+ className: W.file__icon,
2135
2175
  "aria-hidden": "true",
2136
2176
  children: /* @__PURE__ */ O(Ye, {
2137
2177
  size: 16,
@@ -2139,12 +2179,12 @@ var Yt = [
2139
2179
  })
2140
2180
  }),
2141
2181
  /* @__PURE__ */ O("span", {
2142
- className: G.file__name,
2182
+ className: W.file__name,
2143
2183
  children: e.name
2144
2184
  }),
2145
2185
  /* @__PURE__ */ O("button", {
2146
2186
  type: "button",
2147
- className: G.file__remove,
2187
+ className: W.file__remove,
2148
2188
  onClick: () => f(t),
2149
2189
  "aria-label": `Remove ${e.name}`,
2150
2190
  children: /* @__PURE__ */ O(dt, {
@@ -2156,7 +2196,7 @@ var Yt = [
2156
2196
  }, t))
2157
2197
  })]
2158
2198
  });
2159
- }, K = {
2199
+ }, G = {
2160
2200
  chart: "_chart_1m9hd_1",
2161
2201
  svg: "_svg_1m9hd_7",
2162
2202
  segment: "_segment_1m9hd_12",
@@ -2169,25 +2209,25 @@ var Yt = [
2169
2209
  tooltip__dot: "_tooltip__dot_1m9hd_68",
2170
2210
  tooltip__label: "_tooltip__label_1m9hd_74",
2171
2211
  tooltip__value: "_tooltip__value_1m9hd_75"
2172
- }, $n = {
2212
+ }, er = {
2173
2213
  sm: 180,
2174
2214
  md: 240,
2175
2215
  lg: 320,
2176
2216
  xl: 420
2177
- }, er = 560, tr = .3, nr = .55, rr = ({ data: e, size: t = "md", className: n }) => {
2178
- let [r, i] = D.useState(null), a = D.useRef(null), o = P(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = $n[t], d = u * .66, f = d / 2 + 8, p = er / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
2179
- g.push(h(e[e.length - 1]?.value ?? 0) * nr);
2180
- let _ = (t) => e.length <= 1 ? 1 : tr + t / (e.length - 1) * (1 - tr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
2217
+ }, tr = 560, nr = .3, rr = .55, ir = ({ data: e, size: t = "md", className: n }) => {
2218
+ let [r, i] = D.useState(null), a = D.useRef(null), o = N(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = er[t], d = u * .66, f = d / 2 + 8, p = tr / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
2219
+ g.push(h(e[e.length - 1]?.value ?? 0) * rr);
2220
+ let _ = (t) => e.length <= 1 ? 1 : nr + t / (e.length - 1) * (1 - nr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
2181
2221
  return /* @__PURE__ */ k("div", {
2182
2222
  ref: a,
2183
- className: [K.chart, n ?? ""].filter(Boolean).join(" "),
2223
+ className: [G.chart, n ?? ""].filter(Boolean).join(" "),
2184
2224
  style: { height: u },
2185
2225
  children: [
2186
2226
  /* @__PURE__ */ O("svg", {
2187
- viewBox: `0 0 ${er} ${u}`,
2227
+ viewBox: `0 0 ${tr} ${u}`,
2188
2228
  width: "100%",
2189
2229
  height: u,
2190
- className: K.svg,
2230
+ className: G.svg,
2191
2231
  children: e.map((e, t) => {
2192
2232
  let n = t * p, a = (t + 1) * p, o = (n + a) / 2, c = g[t] / 2, u = g[t + 1] / 2, d = f - c, m = f - u, h = f + c, v = f + u, y = [
2193
2233
  `M ${n} ${d}`,
@@ -2197,7 +2237,7 @@ var Yt = [
2197
2237
  "Z"
2198
2238
  ].join(" "), b = r === null ? _(t) : t === r ? 1 : .45, x = Math.round(e.value / l * 100);
2199
2239
  return /* @__PURE__ */ k("g", {
2200
- className: K.segment,
2240
+ className: G.segment,
2201
2241
  onMouseEnter: () => i(t),
2202
2242
  onMouseLeave: () => i(null),
2203
2243
  children: [/* @__PURE__ */ O("path", {
@@ -2209,43 +2249,43 @@ var Yt = [
2209
2249
  y: f,
2210
2250
  textAnchor: "middle",
2211
2251
  dominantBaseline: "middle",
2212
- className: K.pctLabel,
2252
+ className: G.pctLabel,
2213
2253
  children: [x, "%"]
2214
2254
  })]
2215
2255
  }, t);
2216
2256
  })
2217
2257
  }),
2218
2258
  /* @__PURE__ */ O("div", {
2219
- className: K.labels,
2259
+ className: G.labels,
2220
2260
  style: { gridTemplateColumns: `repeat(${e.length}, 1fr)` },
2221
2261
  children: e.map((e, t) => /* @__PURE__ */ O("span", {
2222
- className: K.labelItem,
2262
+ className: G.labelItem,
2223
2263
  children: e.label
2224
2264
  }, t))
2225
2265
  }),
2226
2266
  v && /* @__PURE__ */ k("div", {
2227
- className: K.tooltip,
2267
+ className: G.tooltip,
2228
2268
  style: {
2229
- left: `${b / er * 100}%`,
2269
+ left: `${b / tr * 100}%`,
2230
2270
  top: `${y / u * 100}%`,
2231
2271
  background: c
2232
2272
  },
2233
2273
  children: [/* @__PURE__ */ O("span", {
2234
- className: K.tooltip__title,
2274
+ className: G.tooltip__title,
2235
2275
  children: v.label
2236
2276
  }), /* @__PURE__ */ k("div", {
2237
- className: K.tooltip__row,
2277
+ className: G.tooltip__row,
2238
2278
  children: [
2239
2279
  /* @__PURE__ */ O("span", {
2240
- className: K.tooltip__dot,
2280
+ className: G.tooltip__dot,
2241
2281
  style: { background: s }
2242
2282
  }),
2243
2283
  /* @__PURE__ */ O("span", {
2244
- className: K.tooltip__label,
2284
+ className: G.tooltip__label,
2245
2285
  children: "Share"
2246
2286
  }),
2247
2287
  /* @__PURE__ */ k("span", {
2248
- className: K.tooltip__value,
2288
+ className: G.tooltip__value,
2249
2289
  children: [Math.round(v.value / l * 100), "%"]
2250
2290
  })
2251
2291
  ]
@@ -2253,7 +2293,7 @@ var Yt = [
2253
2293
  })
2254
2294
  ]
2255
2295
  });
2256
- }, q = {
2296
+ }, K = {
2257
2297
  chart: "_chart_1yc8b_1",
2258
2298
  grid: "_grid_1yc8b_6",
2259
2299
  rowLabel: "_rowLabel_1yc8b_13",
@@ -2269,8 +2309,8 @@ var Yt = [
2269
2309
  tooltip__dot: "_tooltip__dot_1yc8b_84",
2270
2310
  tooltip__label: "_tooltip__label_1yc8b_91",
2271
2311
  tooltip__value: "_tooltip__value_1yc8b_92"
2272
- }, ir = .12, ar = .45, or = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
2273
- let o = D.useRef(null), s = P(o), c = D.useRef(null), [l, u] = D.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
2312
+ }, ar = .12, or = .45, sr = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
2313
+ let o = D.useRef(null), s = N(o), c = D.useRef(null), [l, u] = D.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
2274
2314
  let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
2275
2315
  a && u({
2276
2316
  row: e,
@@ -2283,53 +2323,53 @@ var Yt = [
2283
2323
  return /* @__PURE__ */ O("div", {
2284
2324
  ref: o,
2285
2325
  className: [
2286
- q.chart,
2287
- q[`chart--${i}`],
2326
+ K.chart,
2327
+ K[`chart--${i}`],
2288
2328
  a ?? ""
2289
2329
  ].filter(Boolean).join(" "),
2290
2330
  children: /* @__PURE__ */ k("div", {
2291
2331
  ref: c,
2292
- className: q.grid,
2332
+ className: K.grid,
2293
2333
  style: { gridTemplateColumns: `auto repeat(${p}, 1fr)` },
2294
2334
  children: [
2295
2335
  e.map((e, n) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O("span", {
2296
- className: q.rowLabel,
2336
+ className: K.rowLabel,
2297
2337
  children: t?.[n] ?? ""
2298
2338
  }), e.map((e, t) => {
2299
- let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : ir + e / f * (1 - ir);
2339
+ let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : ar + e / f * (1 - ar);
2300
2340
  return /* @__PURE__ */ O("div", {
2301
- className: q.cell,
2341
+ className: K.cell,
2302
2342
  style: {
2303
2343
  background: d,
2304
- opacity: i ? ar : a
2344
+ opacity: i ? or : a
2305
2345
  },
2306
2346
  onMouseEnter: m(n, t, e),
2307
2347
  onMouseLeave: () => u(null)
2308
2348
  }, t);
2309
2349
  })] }, n)),
2310
2350
  n && /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O("span", {}), n.map((e, t) => /* @__PURE__ */ O("span", {
2311
- className: q.colLabel,
2351
+ className: K.colLabel,
2312
2352
  children: e
2313
2353
  }, t))] }),
2314
2354
  l && /* @__PURE__ */ k("div", {
2315
- className: q.tooltip,
2355
+ className: K.tooltip,
2316
2356
  style: {
2317
2357
  left: l.left,
2318
2358
  top: l.top
2319
2359
  },
2320
2360
  children: [/* @__PURE__ */ O("span", {
2321
- className: q.tooltip__title,
2361
+ className: K.tooltip__title,
2322
2362
  children: [t?.[l.row], n?.[l.col]].filter(Boolean).join(" · ") || `Row ${l.row + 1}, Col ${l.col + 1}`
2323
2363
  }), /* @__PURE__ */ k("div", {
2324
- className: q.tooltip__row,
2364
+ className: K.tooltip__row,
2325
2365
  children: [
2326
- /* @__PURE__ */ O("span", { className: q.tooltip__dot }),
2366
+ /* @__PURE__ */ O("span", { className: K.tooltip__dot }),
2327
2367
  /* @__PURE__ */ O("span", {
2328
- className: q.tooltip__label,
2368
+ className: K.tooltip__label,
2329
2369
  children: r
2330
2370
  }),
2331
2371
  /* @__PURE__ */ O("span", {
2332
- className: q.tooltip__value,
2372
+ className: K.tooltip__value,
2333
2373
  children: l.value
2334
2374
  })
2335
2375
  ]
@@ -2338,46 +2378,46 @@ var Yt = [
2338
2378
  ]
2339
2379
  })
2340
2380
  });
2341
- }, sr = { kbd: "_kbd_1cz4m_3" }, cr = ({ children: e, className: t }) => /* @__PURE__ */ O("kbd", {
2342
- className: [sr.kbd, t ?? ""].filter(Boolean).join(" "),
2381
+ }, cr = { kbd: "_kbd_1cz4m_3" }, lr = ({ children: e, className: t }) => /* @__PURE__ */ O("kbd", {
2382
+ className: [cr.kbd, t ?? ""].filter(Boolean).join(" "),
2343
2383
  children: e
2344
- }), lr = {
2384
+ }), ur = {
2345
2385
  label: "_label_rcdks_3",
2346
2386
  label__required: "_label__required_rcdks_17"
2347
- }, ur = D.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ k("label", {
2387
+ }, dr = D.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ k("label", {
2348
2388
  ref: i,
2349
- className: [lr.label, n ?? ""].filter(Boolean).join(" "),
2389
+ className: [ur.label, n ?? ""].filter(Boolean).join(" "),
2350
2390
  ...r,
2351
2391
  children: [t, e && /* @__PURE__ */ O("span", {
2352
- className: lr.label__required,
2392
+ className: ur.label__required,
2353
2393
  "aria-hidden": "true",
2354
2394
  children: " *"
2355
2395
  })]
2356
2396
  }));
2357
- ur.displayName = "Label";
2358
- var dr = { chart: "_chart_18fgd_2" }, fr = {
2397
+ dr.displayName = "Label";
2398
+ var fr = { chart: "_chart_18fgd_2" }, pr = {
2359
2399
  sm: 180,
2360
2400
  md: 240,
2361
2401
  lg: 320,
2362
2402
  xl: 420
2363
- }, pr = /* @__PURE__ */ new Set([
2403
+ }, mr = /* @__PURE__ */ new Set([
2364
2404
  "dots",
2365
2405
  "custom-dots",
2366
2406
  "dots-colors",
2367
2407
  "label",
2368
2408
  "custom-label"
2369
- ]), mr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
2370
- let l = D.useRef(null), u = P(l), d = [
2409
+ ]), hr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
2410
+ let l = D.useRef(null), u = N(l), d = [
2371
2411
  1,
2372
2412
  2,
2373
2413
  3,
2374
2414
  4,
2375
2415
  5
2376
- ].map((e) => u(`--color-chart-${e}`) ?? Yt[e - 1]), f = [
2416
+ ].map((e) => u(`--color-chart-${e}`) ?? Xt[e - 1]), f = [
2377
2417
  d[1],
2378
2418
  d[0],
2379
2419
  ...d.slice(2)
2380
- ], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = pr.has(r), y = (e) => (t) => {
2420
+ ], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = mr.has(r), y = (e) => (t) => {
2381
2421
  let { cx: n, cy: r } = t;
2382
2422
  return /* @__PURE__ */ k("g", {
2383
2423
  stroke: e,
@@ -2430,11 +2470,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2430
2470
  };
2431
2471
  return /* @__PURE__ */ O("div", {
2432
2472
  ref: l,
2433
- className: [dr.chart, c ?? ""].filter(Boolean).join(" "),
2434
- children: /* @__PURE__ */ O(j, {
2473
+ className: [fr.chart, c ?? ""].filter(Boolean).join(" "),
2474
+ children: /* @__PURE__ */ O(A, {
2435
2475
  width: "100%",
2436
- height: o ?? fr[a],
2437
- children: /* @__PURE__ */ k(yt, {
2476
+ height: o ?? pr[a],
2477
+ children: /* @__PURE__ */ k(bt, {
2438
2478
  data: e,
2439
2479
  margin: {
2440
2480
  top: 8,
@@ -2448,7 +2488,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2448
2488
  stroke: p,
2449
2489
  vertical: !1
2450
2490
  }),
2451
- /* @__PURE__ */ O(Mt, {
2491
+ /* @__PURE__ */ O(Nt, {
2452
2492
  dataKey: n,
2453
2493
  stroke: m,
2454
2494
  fontSize: 12,
@@ -2456,15 +2496,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2456
2496
  axisLine: !1,
2457
2497
  interval: 0
2458
2498
  }),
2459
- /* @__PURE__ */ O(jt, {
2499
+ /* @__PURE__ */ O(Mt, {
2460
2500
  cursor: {
2461
2501
  stroke: u("--color-border-default") ?? "#dbdad7",
2462
2502
  strokeWidth: 1
2463
2503
  },
2464
- content: /* @__PURE__ */ O(Zt, {}),
2504
+ content: /* @__PURE__ */ O(Qt, {}),
2465
2505
  wrapperStyle: { zIndex: 50 }
2466
2506
  }),
2467
- s && /* @__PURE__ */ O(_t, { wrapperStyle: {
2507
+ s && /* @__PURE__ */ O(vt, { wrapperStyle: {
2468
2508
  fontSize: 12,
2469
2509
  fontFamily: "var(--font-sans)"
2470
2510
  } }),
@@ -2475,7 +2515,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2475
2515
  stroke: h,
2476
2516
  strokeWidth: 1.5
2477
2517
  } : !1;
2478
- return /* @__PURE__ */ O(vt, {
2518
+ return /* @__PURE__ */ O(yt, {
2479
2519
  type: _,
2480
2520
  dataKey: e,
2481
2521
  stroke: n,
@@ -2494,7 +2534,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2494
2534
  })
2495
2535
  })
2496
2536
  });
2497
- }, hr = {
2537
+ }, q = {
2498
2538
  item: "_item_1b54h_2",
2499
2539
  "item--disabled": "_item--disabled_1b54h_16",
2500
2540
  "item--selected": "_item--selected_1b54h_17",
@@ -2509,28 +2549,28 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2509
2549
  onClick: o,
2510
2550
  "aria-current": i ? "true" : void 0,
2511
2551
  className: [
2512
- hr.item,
2513
- i ? hr["item--selected"] : "",
2514
- a ? hr["item--disabled"] : "",
2552
+ q.item,
2553
+ i ? q["item--selected"] : "",
2554
+ a ? q["item--disabled"] : "",
2515
2555
  s ?? ""
2516
2556
  ].filter(Boolean).join(" "),
2517
2557
  children: [
2518
2558
  n && /* @__PURE__ */ O("span", {
2519
- className: hr.item__leading,
2559
+ className: q.item__leading,
2520
2560
  children: n
2521
2561
  }),
2522
2562
  /* @__PURE__ */ k("span", {
2523
- className: hr.item__text,
2563
+ className: q.item__text,
2524
2564
  children: [/* @__PURE__ */ O("span", {
2525
- className: hr.item__title,
2565
+ className: q.item__title,
2526
2566
  children: e
2527
2567
  }), t && /* @__PURE__ */ O("span", {
2528
- className: hr.item__description,
2568
+ className: q.item__description,
2529
2569
  children: t
2530
2570
  })]
2531
2571
  }),
2532
2572
  r && /* @__PURE__ */ O("span", {
2533
- className: hr.item__trailing,
2573
+ className: q.item__trailing,
2534
2574
  children: r
2535
2575
  })
2536
2576
  ]
@@ -2621,15 +2661,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2621
2661
  "donut-with-text",
2622
2662
  "interactive"
2623
2663
  ]), Tr = /* @__PURE__ */ new Set(["donut-active"]), Er = /* @__PURE__ */ new Set(["interactive"]), Dr = /* @__PURE__ */ new Set(["donut-with-text"]), Or = Math.PI / 180, kr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
2624
- let o = D.useRef(null), s = P(o), [c, l] = D.useState(void 0), u = [
2664
+ let o = D.useRef(null), s = N(o), [c, l] = D.useState(void 0), u = [
2625
2665
  1,
2626
2666
  2,
2627
2667
  3,
2628
2668
  4,
2629
2669
  5
2630
- ].map((e) => s(`--color-chart-${e}`) ?? Yt[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = Cr[n], m = wr.has(t), h = Tr.has(t), g = Er.has(t), _ = m ? p.outer * .6 : 0, v = Dr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
2670
+ ].map((e) => s(`--color-chart-${e}`) ?? Xt[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = Cr[n], m = wr.has(t), h = Tr.has(t), g = Er.has(t), _ = m ? p.outer * .6 : 0, v = Dr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
2631
2671
  let { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, fill: s, index: c } = e, l = c === y, u = l && (h || g) ? 16 : 0;
2632
- return l && g ? /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O(At, {
2672
+ return l && g ? /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O(jt, {
2633
2673
  cx: t,
2634
2674
  cy: n,
2635
2675
  innerRadius: r,
@@ -2637,7 +2677,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2637
2677
  startAngle: a,
2638
2678
  endAngle: o,
2639
2679
  fill: s
2640
- }), /* @__PURE__ */ O(At, {
2680
+ }), /* @__PURE__ */ O(jt, {
2641
2681
  cx: t,
2642
2682
  cy: n,
2643
2683
  innerRadius: i + u + 3,
@@ -2645,7 +2685,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2645
2685
  startAngle: a,
2646
2686
  endAngle: o,
2647
2687
  fill: s
2648
- })] }) : /* @__PURE__ */ O(At, {
2688
+ })] }) : /* @__PURE__ */ O(jt, {
2649
2689
  cx: t,
2650
2690
  cy: n,
2651
2691
  innerRadius: r,
@@ -2662,7 +2702,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2662
2702
  endY: d,
2663
2703
  textAnchor: f ? "start" : "end"
2664
2704
  };
2665
- }, ee = (e) => {
2705
+ }, S = (e) => {
2666
2706
  let { value: t, fill: n } = e, { d: r, endX: i, endY: a, textAnchor: o } = x(e), s = i + (o === "start" ? 4 : -4);
2667
2707
  return /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O("path", {
2668
2708
  d: r,
@@ -2679,7 +2719,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2679
2719
  fontFamily: "var(--font-sans)",
2680
2720
  children: t
2681
2721
  })] });
2682
- }, S = (e) => {
2722
+ }, C = (e) => {
2683
2723
  let { x: t, y: n, textAnchor: r, value: i } = e;
2684
2724
  return /* @__PURE__ */ O("text", {
2685
2725
  x: t,
@@ -2692,7 +2732,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2692
2732
  fontFamily: "var(--font-sans)",
2693
2733
  children: i
2694
2734
  });
2695
- }, C = (t) => {
2735
+ }, w = (t) => {
2696
2736
  let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
2697
2737
  return /* @__PURE__ */ O("text", {
2698
2738
  x: n + c * Math.cos(-i * Or),
@@ -2712,11 +2752,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2712
2752
  ref: o,
2713
2753
  className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
2714
2754
  style: { height: p.h },
2715
- children: /* @__PURE__ */ O(j, {
2755
+ children: /* @__PURE__ */ O(A, {
2716
2756
  width: "100%",
2717
2757
  height: "100%",
2718
- children: /* @__PURE__ */ k(xt, { children: [
2719
- /* @__PURE__ */ O(bt, {
2758
+ children: /* @__PURE__ */ k(St, { children: [
2759
+ /* @__PURE__ */ O(xt, {
2720
2760
  data: e,
2721
2761
  dataKey: "value",
2722
2762
  nameKey: "label",
@@ -2727,12 +2767,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2727
2767
  isAnimationActive: !1,
2728
2768
  onMouseEnter: (e, t) => l(t),
2729
2769
  onMouseLeave: () => l(void 0),
2730
- children: e.map((e, n) => /* @__PURE__ */ O(A, {
2770
+ children: e.map((e, n) => /* @__PURE__ */ O(_t, {
2731
2771
  fill: u[n % u.length],
2732
2772
  fillOpacity: t(n)
2733
2773
  }, n))
2734
2774
  }),
2735
- /* @__PURE__ */ O(bt, {
2775
+ /* @__PURE__ */ O(xt, {
2736
2776
  data: e,
2737
2777
  dataKey: "value",
2738
2778
  nameKey: "label",
@@ -2743,13 +2783,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2743
2783
  isAnimationActive: !1,
2744
2784
  onMouseEnter: (e, t) => l(t),
2745
2785
  onMouseLeave: () => l(void 0),
2746
- children: e.map((e, n) => /* @__PURE__ */ O(A, {
2786
+ children: e.map((e, n) => /* @__PURE__ */ O(_t, {
2747
2787
  fill: u[n % u.length],
2748
2788
  fillOpacity: t(n)
2749
2789
  }, n))
2750
2790
  }),
2751
- /* @__PURE__ */ O(jt, {
2752
- content: /* @__PURE__ */ O(Zt, {}),
2791
+ /* @__PURE__ */ O(Mt, {
2792
+ content: /* @__PURE__ */ O(Qt, {}),
2753
2793
  wrapperStyle: { zIndex: 50 }
2754
2794
  })
2755
2795
  ] })
@@ -2760,10 +2800,10 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2760
2800
  ref: o,
2761
2801
  className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
2762
2802
  style: { height: p.h },
2763
- children: [/* @__PURE__ */ O(j, {
2803
+ children: [/* @__PURE__ */ O(A, {
2764
2804
  width: "100%",
2765
2805
  height: "100%",
2766
- children: /* @__PURE__ */ k(xt, { children: [/* @__PURE__ */ O(bt, {
2806
+ children: /* @__PURE__ */ k(St, { children: [/* @__PURE__ */ O(xt, {
2767
2807
  data: e,
2768
2808
  dataKey: "value",
2769
2809
  nameKey: "label",
@@ -2774,13 +2814,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2774
2814
  strokeWidth: t === "pie" ? 2 : 0,
2775
2815
  isAnimationActive: !1,
2776
2816
  shape: h || g ? b : void 0,
2777
- label: t === "label" ? ee : t === "custom-label" ? S : t === "label-list" ? C : void 0,
2817
+ label: t === "label" ? S : t === "custom-label" ? C : t === "label-list" ? w : void 0,
2778
2818
  labelLine: !1,
2779
2819
  onMouseEnter: (e, t) => l(t),
2780
2820
  onMouseLeave: () => l(void 0),
2781
- children: e.map((e, t) => /* @__PURE__ */ O(A, { fill: u[t % u.length] }, t))
2782
- }), /* @__PURE__ */ O(jt, {
2783
- content: /* @__PURE__ */ O(Zt, {}),
2821
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, { fill: u[t % u.length] }, t))
2822
+ }), /* @__PURE__ */ O(Mt, {
2823
+ content: /* @__PURE__ */ O(Qt, {}),
2784
2824
  wrapperStyle: { zIndex: 50 }
2785
2825
  })] })
2786
2826
  }), v && /* @__PURE__ */ k("div", {
@@ -2901,13 +2941,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2901
2941
  .4,
2902
2942
  .2
2903
2943
  ], Br = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
2904
- let a = D.useRef(null), o = P(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-chart-2") ?? "#5b92dd", l = o("--color-border-default") ?? "#dbdad7", u = o("--color-fg-subtle") ?? "#a8a29b", d = t === "multiple", f = t === "lines-only", p = d || t === "custom-label" || f, m = !f, h = t === "dots" || t === "dots-grid-none" || t === "circle-grid" || t === "circle-grid-no-lines", g = Ir.has(t), _ = Pr.has(t), v = Fr.has(t), y = Lr(t), [b, x] = D.useState(0);
2944
+ let a = D.useRef(null), o = N(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-chart-2") ?? "#5b92dd", l = o("--color-border-default") ?? "#dbdad7", u = o("--color-fg-subtle") ?? "#a8a29b", d = t === "multiple", f = t === "lines-only", p = d || t === "custom-label" || f, m = !f, h = t === "dots" || t === "dots-grid-none" || t === "circle-grid" || t === "circle-grid-no-lines", g = Ir.has(t), _ = Pr.has(t), v = Fr.has(t), y = Lr(t), [b, x] = D.useState(0);
2905
2945
  D.useEffect(() => {
2906
2946
  if (!y || !a.current) return;
2907
2947
  let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
2908
2948
  return t.observe(e), () => t.disconnect();
2909
2949
  }, [y]);
2910
- let ee = D.useMemo(() => {
2950
+ let S = D.useMemo(() => {
2911
2951
  if (!g) return e;
2912
2952
  let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
2913
2953
  return e.map((e) => {
@@ -2919,7 +2959,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2919
2959
  ...n
2920
2960
  };
2921
2961
  });
2922
- }, [e, g]), S = (t) => {
2962
+ }, [e, g]), C = (t) => {
2923
2963
  let { x: n, y: r, cx: i, cy: a, payload: o, textAnchor: s } = t, c = e.find((e) => e.label === o?.value) ?? e[o?.index];
2924
2964
  if (!c) return /* @__PURE__ */ O("g", {});
2925
2965
  let l = n - i, d = r - a, f = c.value2 === void 0 ? `${c.value}` : `${c.value}/${c.value2}`, p = Math.abs(d) > Math.abs(l), m, h;
@@ -2948,56 +2988,56 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
2948
2988
  fontFamily: "var(--font-sans)",
2949
2989
  children: c.label
2950
2990
  })] });
2951
- }, C = Mr[n], te = (b > 0 ? Math.min(b, C) / 2 - 5 : 0) * .7;
2991
+ }, w = Mr[n], ee = (b > 0 ? Math.min(b, w) / 2 - 5 : 0) * .7;
2952
2992
  return /* @__PURE__ */ k("div", {
2953
2993
  ref: a,
2954
2994
  className: [jr.chart, i ?? ""].filter(Boolean).join(" "),
2955
2995
  children: [y && b > 0 && /* @__PURE__ */ O("svg", {
2956
2996
  className: jr.circleFillSvg,
2957
2997
  width: b,
2958
- height: C,
2998
+ height: w,
2959
2999
  children: zr.map((e) => /* @__PURE__ */ O("circle", {
2960
3000
  cx: b / 2,
2961
- cy: C / 2,
2962
- r: te * e,
3001
+ cy: w / 2,
3002
+ r: ee * e,
2963
3003
  fill: c,
2964
3004
  fillOpacity: .1
2965
3005
  }, e))
2966
- }), /* @__PURE__ */ O(j, {
3006
+ }), /* @__PURE__ */ O(A, {
2967
3007
  width: "100%",
2968
- height: C,
2969
- children: /* @__PURE__ */ k(Et, {
2970
- data: ee,
3008
+ height: w,
3009
+ children: /* @__PURE__ */ k(Dt, {
3010
+ data: S,
2971
3011
  outerRadius: "70%",
2972
3012
  children: [
2973
- !g && !v && /* @__PURE__ */ O(Ct, {
3013
+ !g && !v && /* @__PURE__ */ O(wt, {
2974
3014
  gridType: Nr.has(t) ? "circle" : "polygon",
2975
3015
  radialLines: t !== "circle-grid-no-lines" && !_,
2976
3016
  stroke: l
2977
3017
  }),
2978
- /* @__PURE__ */ O(St, {
3018
+ /* @__PURE__ */ O(Ct, {
2979
3019
  dataKey: "label",
2980
3020
  axisLine: !1,
2981
- tick: t === "custom-label" ? S : {
3021
+ tick: t === "custom-label" ? C : {
2982
3022
  fill: u,
2983
3023
  fontSize: 12,
2984
3024
  fontFamily: "var(--font-sans)"
2985
3025
  }
2986
3026
  }),
2987
- /* @__PURE__ */ O(wt, {
3027
+ /* @__PURE__ */ O(Tt, {
2988
3028
  tick: !1,
2989
3029
  axisLine: !1,
2990
3030
  tickCount: _ ? 2 : void 0
2991
3031
  }),
2992
- /* @__PURE__ */ O(jt, {
2993
- content: /* @__PURE__ */ O(Zt, {}),
3032
+ /* @__PURE__ */ O(Mt, {
3033
+ content: /* @__PURE__ */ O(Qt, {}),
2994
3034
  wrapperStyle: { zIndex: 50 }
2995
3035
  }),
2996
- d && /* @__PURE__ */ O(_t, { wrapperStyle: {
3036
+ d && /* @__PURE__ */ O(vt, { wrapperStyle: {
2997
3037
  fontSize: 12,
2998
3038
  fontFamily: "var(--font-sans)"
2999
3039
  } }),
3000
- g && zr.map((e, t) => /* @__PURE__ */ O(Tt, {
3040
+ g && zr.map((e, t) => /* @__PURE__ */ O(Et, {
3001
3041
  dataKey: `ring${t}`,
3002
3042
  stroke: "none",
3003
3043
  fill: c,
@@ -3005,7 +3045,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3005
3045
  isAnimationActive: !1,
3006
3046
  legendType: "none"
3007
3047
  }, `ring${t}`)),
3008
- /* @__PURE__ */ O(Tt, {
3048
+ /* @__PURE__ */ O(Et, {
3009
3049
  name: d ? r[0] ?? "Value" : void 0,
3010
3050
  dataKey: "value",
3011
3051
  stroke: Rr.has(t) ? "none" : c,
@@ -3019,7 +3059,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3019
3059
  } : !1,
3020
3060
  isAnimationActive: !1
3021
3061
  }),
3022
- p && /* @__PURE__ */ O(Tt, {
3062
+ p && /* @__PURE__ */ O(Et, {
3023
3063
  name: d ? r[1] ?? "Value 2" : void 0,
3024
3064
  dataKey: "value2",
3025
3065
  stroke: f ? s : "none",
@@ -3123,7 +3163,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3123
3163
  viewBox: "0 0 200 160",
3124
3164
  className: Y.gaugeSvg,
3125
3165
  children: [
3126
- l.map((e, t) => /* @__PURE__ */ O(At, {
3166
+ l.map((e, t) => /* @__PURE__ */ O(jt, {
3127
3167
  cx: 100,
3128
3168
  cy: 100,
3129
3169
  innerRadius: 64,
@@ -3133,7 +3173,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3133
3173
  fill: e.fill,
3134
3174
  cornerRadius: 4
3135
3175
  }, t)),
3136
- c > -29.5 && /* @__PURE__ */ O(At, {
3176
+ c > -29.5 && /* @__PURE__ */ O(jt, {
3137
3177
  cx: 100,
3138
3178
  cy: 100,
3139
3179
  innerRadius: 64,
@@ -3164,13 +3204,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3164
3204
  ]
3165
3205
  });
3166
3206
  }, Jr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
3167
- let o = D.useRef(null), s = P(o), c = [
3207
+ let o = D.useRef(null), s = N(o), c = [
3168
3208
  1,
3169
3209
  2,
3170
3210
  3,
3171
3211
  4,
3172
3212
  5
3173
- ].map((e) => s(`--color-chart-${e}`) ?? Yt[e - 1]), l = s("--color-bg-subtle") ?? "#f5f4f2", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-default") ?? "#141414", f = s("--color-fg-muted") ?? "#78716a", p = Vr[n];
3213
+ ].map((e) => s(`--color-chart-${e}`) ?? Xt[e - 1]), l = s("--color-bg-subtle") ?? "#f5f4f2", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-default") ?? "#141414", f = s("--color-fg-muted") ?? "#78716a", p = Vr[n];
3174
3214
  if (t === "gauge-tick") {
3175
3215
  let t = e[0];
3176
3216
  return /* @__PURE__ */ O("div", {
@@ -3214,27 +3254,27 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
3214
3254
  spokes: 12,
3215
3255
  color: u
3216
3256
  }),
3217
- /* @__PURE__ */ O(j, {
3257
+ /* @__PURE__ */ O(A, {
3218
3258
  width: "100%",
3219
3259
  height: "100%",
3220
- children: /* @__PURE__ */ k(Ot, {
3260
+ children: /* @__PURE__ */ k(kt, {
3221
3261
  data: e,
3222
3262
  innerRadius: m,
3223
3263
  outerRadius: h,
3224
3264
  startAngle: 90,
3225
3265
  endAngle: -270,
3226
3266
  barCategoryGap: "12%",
3227
- children: [/* @__PURE__ */ O(St, {
3267
+ children: [/* @__PURE__ */ O(Ct, {
3228
3268
  type: "number",
3229
3269
  domain: [0, e[0]?.max ?? 100],
3230
3270
  tick: !1,
3231
3271
  axisLine: !1
3232
- }), /* @__PURE__ */ O(Dt, {
3272
+ }), /* @__PURE__ */ O(Ot, {
3233
3273
  dataKey: "value",
3234
3274
  background: t !== "grid" && { fill: l },
3235
3275
  cornerRadius: 8,
3236
3276
  isAnimationActive: !1,
3237
- children: e.map((e, t) => /* @__PURE__ */ O(A, { fill: c[t % c.length] }, t))
3277
+ children: e.map((e, t) => /* @__PURE__ */ O(_t, { fill: c[t % c.length] }, t))
3238
3278
  })]
3239
3279
  })
3240
3280
  }),
@@ -3888,4 +3928,4 @@ var mi = {
3888
3928
  ]
3889
3929
  });
3890
3930
  //#endregion
3891
- export { _e as Accordion, Me as AccordionItem, Se as ActivityFeed, Oe as ActivityFeedHighlight, a as Alert, Ft as Announcement, zn as AreaChart, oe as Avatar, me as AvatarGroup, be as AvatarUpload, u as Badge, Ae as Balance, tn as BarChart, fn as BlogBlockquote, mn as BlogFeatureText, gn as BlogImage, g as BlogListingCard, m as BlogListingFeaturedCard, b as BoardCard, Bn as BoardColumn, Pe as Breadcrumb, Ee as Button, Gn as Calendar, qn as Card, r as CardMetaItem, d as CartItem, y as ChatComposer, Fe as Checkbox, S as CheckoutSteps, zt as CodeSnippet, c as ColorSwatch, Jn as Combobox, T as ConversationItem, s as DEFAULT_CHECKOUT_STEPS, e as Divider, Zn as DonutChart, Ie as EmptyState, Ht as Expenses, p as FeaturedIcon, Qn as FileUpload, Ne as FilterChip, vn as FirstPageHeading, rr as FunnelChart, or as HeatmapChart, pe as IconButton, Gt as InlineHint, ne as Input, he as JobListing, cr as Kbd, ur as Label, mr as LineChart, ie as Link, bn as List, gr as ListItem, t as LocationDot, Cn as Marquee, vr as Menu, yr as MenuDivider, xr as MenuItem, ue as MessageBubble, Tn as Metric, En as MobileNavigationMenu, _ as Modal, w as NotificationItem, de as Pagination, kr as PieChart, kn as PlaceholderLogo, Ar as Popover, ee as PriceDisplay, Le as ProductCard, v as ProductGallery, An as ProfileCard, ce as Progress, Kt as ProgressItem, C as ProgressStat, we as QuantitySelector, Br as RadarChart, Jr as RadialChart, Yr as Radio, Jt as RichSeparator, Mn as RichTextHeading, Pn as RichTextParagraph, h as SectionHeading, ve as SegmentedControl, Ce as Select, le as Sidebar, se as SidebarDivider, Xr as SidebarFooter, je as SidebarGroupLabel, ge as SidebarHeader, ae as SidebarItem, Qr as SidebarPromo, ei as SidebarSearch, De as SidebarSubItem, f as SizeSelector, xe as Skeleton, re as Slider, te as SpendingBalance, ni as Spinner, l as StarRating, si as StatCard, li as Stepper, ci as StepperStep, rn as StockMarket, o as StockStatus, In as SubFeature, di as Switch, fe as Table, Te as Tabs, on as Tags, i as TeamCard, pi as Textarea, ln as Ticker, gi as Toast, ye as Tooltip, ke as TopBar, vi as TopBarMobile, dn as Transactions, n as WishlistButton, x as getContrastColor, E as iconStrokeWidth };
3931
+ export { _e as Accordion, Me as AccordionItem, Se as ActivityFeed, Oe as ActivityFeedHighlight, a as Alert, It as Announcement, Bn as AreaChart, oe as Avatar, me as AvatarGroup, be as AvatarUpload, u as Badge, Ae as Balance, nn as BarChart, pn as BlogBlockquote, hn as BlogFeatureText, _n as BlogImage, g as BlogListingCard, m as BlogListingFeaturedCard, b as BoardCard, Vn as BoardColumn, Pe as Breadcrumb, Ee as Button, Kn as Calendar, Jn as Card, r as CardMetaItem, d as CartItem, y as ChatComposer, Fe as Checkbox, C as CheckoutSteps, Bt as CodeSnippet, c as ColorSwatch, Yn as Combobox, T as ConversationItem, s as DEFAULT_CHECKOUT_STEPS, e as Divider, Qn as DonutChart, Ie as EmptyState, Ut as Expenses, p as FeaturedIcon, $n as FileUpload, Ne as FilterChip, yn as FirstPageHeading, ir as FunnelChart, sr as HeatmapChart, pe as IconButton, Kt as InlineHint, ne as Input, he as JobListing, lr as Kbd, dr as Label, hr as LineChart, ie as Link, xn as List, gr as ListItem, t as LocationDot, wn as Marquee, vr as Menu, yr as MenuDivider, xr as MenuItem, ue as MessageBubble, En as Metric, Dn as MobileNavigationMenu, _ as Modal, te as NotificationItem, de as Pagination, kr as PieChart, An as PlaceholderLogo, Ar as Popover, S as PriceDisplay, Le as ProductCard, v as ProductGallery, jn as ProfileCard, ce as Progress, qt as ProgressItem, w as ProgressStat, we as QuantitySelector, Br as RadarChart, Jr as RadialChart, Yr as Radio, Yt as RichSeparator, Nn as RichTextHeading, Fn as RichTextParagraph, h as SectionHeading, ve as SegmentedControl, Ce as Select, le as Sidebar, se as SidebarDivider, Xr as SidebarFooter, je as SidebarGroupLabel, ge as SidebarHeader, ae as SidebarItem, Qr as SidebarPromo, ei as SidebarSearch, De as SidebarSubItem, f as SizeSelector, xe as Skeleton, re as Slider, ee as SpendingBalance, ni as Spinner, l as StarRating, si as StatCard, li as Stepper, ci as StepperStep, an as StockMarket, o as StockStatus, Ln as SubFeature, di as Switch, fe as Table, Te as Tabs, sn as Tags, i as TeamCard, pi as Textarea, un as Ticker, gi as Toast, ye as Tooltip, ke as TopBar, vi as TopBarMobile, fn as Transactions, n as WishlistButton, x as getContrastColor, E as iconStrokeWidth };