@gravitee/graphene-charts 3.50.0 → 3.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { t as e } from "./utils-CvSeRmfY.js";
2
- import { A as t, C as n, D as r, E as i, O as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, k as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, u as E, v as D, w as O, x as k, y as A } from "./primitives-BvnyBVmf.js";
3
- import { Badge as j, Card as M, CardContent as N, CardDescription as P, CardHeader as F, CardTitle as I, Collapsible as L, CollapsibleContent as R, CollapsibleTrigger as z, Command as ee, CommandEmpty as te, CommandGroup as B, CommandItem as V, CommandList as ne, CommandSeparator as H, HoverCard as re, HoverCardContent as ie, HoverCardTrigger as U, Popover as W, PopoverAnchor as ae, PopoverContent as oe, ScrollArea as se, Separator as ce, Tooltip as G, TooltipContent as le, TooltipProvider as ue, TooltipTrigger as K } from "@gravitee/graphene-core";
2
+ import { A as t, C as n, D as r, E as i, M as a, N as o, O as s, P as c, S as l, T as u, _ as d, a as f, b as p, c as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, w as M, x as N, y as P } from "./primitives-CrDRzZQP.js";
3
+ import { Badge as F, Card as I, CardContent as L, CardDescription as R, CardHeader as z, CardTitle as B, Collapsible as ee, CollapsibleContent as te, CollapsibleTrigger as V, Command as H, CommandEmpty as U, CommandGroup as W, CommandItem as G, CommandList as ne, CommandSeparator as K, HoverCard as re, HoverCardContent as ie, HoverCardTrigger as ae, Popover as oe, PopoverAnchor as se, PopoverContent as ce, PopoverTrigger as le, ScrollArea as ue, Separator as de, Tooltip as fe, TooltipContent as pe, TooltipProvider as me, TooltipTrigger as he } from "@gravitee/graphene-core";
4
4
  import * as q from "react";
5
- import { createContext as de, createElement as fe, forwardRef as J, useCallback as Y, useContext as pe, useEffect as me, useId as X, useLayoutEffect as he, useMemo as ge, useRef as _e, useState as Z } from "react";
6
- import { Fragment as ve, jsx as Q, jsxs as $ } from "react/jsx-runtime";
7
- import { scaleLinear as ye } from "d3-scale";
8
- import { arc as be, area as xe, curveLinear as Se, curveMonotoneX as Ce, curveStep as we, line as Te, pie as Ee } from "d3-shape";
9
- import { createPortal as De } from "react-dom";
5
+ import { createContext as ge, createElement as _e, forwardRef as J, useCallback as Y, useContext as ve, useEffect as ye, useId as X, useLayoutEffect as be, useMemo as xe, useRef as Se, useState as Z } from "react";
6
+ import { Fragment as Ce, jsx as Q, jsxs as $ } from "react/jsx-runtime";
7
+ import { scaleLinear as we } from "d3-scale";
8
+ import { arc as Te, area as Ee, curveLinear as De, curveMonotoneX as Oe, curveStep as ke, line as Ae, pie as je } from "d3-shape";
9
+ import { createPortal as Me } from "react-dom";
10
10
  //#region src/base/ChartCard/ChartCard.tsx
11
- function Oe({ title: t, description: n, children: r, className: i, ...a }) {
12
- return /* @__PURE__ */ $(M, {
11
+ function Ne({ title: t, description: n, children: r, className: i, ...a }) {
12
+ return /* @__PURE__ */ $(I, {
13
13
  className: e("flex h-full flex-col gap-0", i),
14
14
  ...a,
15
- children: [/* @__PURE__ */ $(F, {
15
+ children: [/* @__PURE__ */ $(z, {
16
16
  className: "min-h-[3.5rem]",
17
- children: [/* @__PURE__ */ Q(I, {
17
+ children: [/* @__PURE__ */ Q(B, {
18
18
  className: "text-lg font-semibold",
19
19
  children: t
20
- }), n && /* @__PURE__ */ Q(P, {
20
+ }), n && /* @__PURE__ */ Q(R, {
21
21
  className: "truncate text-sm",
22
22
  title: n,
23
23
  children: n
24
24
  })]
25
- }), /* @__PURE__ */ Q(N, {
25
+ }), /* @__PURE__ */ Q(L, {
26
26
  className: "flex-1",
27
27
  children: r
28
28
  })]
@@ -30,72 +30,69 @@ function Oe({ title: t, description: n, children: r, className: i, ...a }) {
30
30
  }
31
31
  //#endregion
32
32
  //#region src/base/ChartTooltip/ChartTooltip.tsx
33
- function ke(e) {
34
- return typeof e == "number" ? e.toLocaleString() : e;
35
- }
36
- function Ae(e, t, n) {
33
+ function Pe(e, t, n) {
37
34
  return t && e[t] ? e[t] : e[n];
38
35
  }
39
- function je(e) {
36
+ function Fe(e) {
40
37
  return e.toLocaleString();
41
38
  }
42
- function Me(e) {
43
- return `${e.toFixed(1)}%`;
39
+ function Ie(e) {
40
+ return o(e);
44
41
  }
45
- function Ne(e) {
42
+ function Le(e) {
46
43
  return e.reduce((e, t) => e + (typeof t.value == "number" ? t.value : 0), 0);
47
44
  }
48
- function Pe({ label: t, items: n = [], active: a = !0, hideLabel: o = !1, hideIndicator: s, indicator: c = "dot", labelKey: l, nameKey: u, labelIndicator: d, labelColor: f, labelFormatter: p, labelClassName: m, valueFormatter: h, showTotal: g = !1, totalLabel: _ = "Total", totalFormatter: v = je, showPercent: y = !1, percentFormatter: b = Me, className: x, ...S }) {
49
- let { config: C } = i(), w = h ?? ke, T = !h;
50
- if (!a || n.length === 0) return null;
51
- let E = s ?? (d === "line" || d === "dashed"), D = Ne(n), O = n.length === 1 && c !== "dot", k = l ? Ae(C, l, l)?.label ?? t : typeof t == "string" ? C[t]?.label ?? t : t, A = p ? p(t ?? "", n) : k, j = (() => {
52
- if (f) return f;
53
- if (l && C[l]?.color) return C[l].color;
45
+ function Re({ label: t, items: n = [], active: i = !0, hideLabel: o = !1, hideIndicator: c, indicator: l = "dot", labelKey: u, nameKey: d, labelIndicator: f, labelColor: p, labelFormatter: m, labelClassName: h, valueFormatter: g, showTotal: _ = !1, totalLabel: v = "Total", totalFormatter: y = Fe, showPercent: b = !1, percentFormatter: x = Ie, className: S, ...C }) {
46
+ let { config: w } = r();
47
+ if (!i || n.length === 0) return null;
48
+ let T = c ?? (f === "line" || f === "dashed"), E = Le(n), D = n.length === 1 && l !== "dot", O = u ? Pe(w, u, u)?.label ?? t : typeof t == "string" ? w[t]?.label ?? t : t, k = m ? m(t ?? "", n) : O, A = (() => {
49
+ if (p) return p;
50
+ if (u && w[u]?.color) return w[u].color;
54
51
  let e = n[0];
55
- if (e) return e.color ?? `var(--color-${r(e.dataKey ?? e.name)})`;
56
- })(), M = d && d !== "dot", N = o || !A && !p ? null : /* @__PURE__ */ $("div", {
57
- className: e("flex items-center gap-2 font-medium", m),
58
- children: [d === "dot" && j && /* @__PURE__ */ Q("div", {
52
+ if (e) return e.color ?? `var(--color-${s(e.dataKey ?? e.name)})`;
53
+ })(), j = f && f !== "dot", M = o || !k && !m ? null : /* @__PURE__ */ $("div", {
54
+ className: e("flex items-center gap-2 font-medium", h),
55
+ children: [f === "dot" && A && /* @__PURE__ */ Q("div", {
59
56
  className: "h-2.5 w-2.5 shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
60
57
  style: {
61
- "--color-bg": j,
62
- "--color-border": j
58
+ "--color-bg": A,
59
+ "--color-border": A
63
60
  }
64
- }), A]
65
- }), P = /* @__PURE__ */ Q("div", {
61
+ }), k]
62
+ }), N = /* @__PURE__ */ Q("div", {
66
63
  className: "grid gap-1.5",
67
64
  children: n.map((t, n) => {
68
- let i = Ae(C, `${u ?? t.dataKey ?? t.name ?? "value"}`, t.name), a = t.color ?? `var(--color-${r(t.dataKey ?? t.name)})`;
65
+ let r = Pe(w, `${d ?? t.dataKey ?? t.name ?? "value"}`, t.name), i = t.color ?? `var(--color-${s(t.dataKey ?? t.name)})`;
69
66
  return /* @__PURE__ */ $("div", {
70
- className: e("flex w-full items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", c === "dot" && "items-center"),
71
- children: [i?.icon ? /* @__PURE__ */ Q(i.icon, {}) : !E && /* @__PURE__ */ Q("div", {
67
+ className: e("flex w-full items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", l === "dot" && "items-center"),
68
+ children: [r?.icon ? /* @__PURE__ */ Q(r.icon, {}) : !T && /* @__PURE__ */ Q("div", {
72
69
  className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
73
- "h-2.5 w-2.5": c === "dot",
74
- "w-1": c === "line",
75
- "w-0 border-[1.5px] border-dashed bg-transparent": c === "dashed",
76
- "my-0.5": O && c === "dashed"
70
+ "h-2.5 w-2.5": l === "dot",
71
+ "w-1": l === "line",
72
+ "w-0 border-[1.5px] border-dashed bg-transparent": l === "dashed",
73
+ "my-0.5": D && l === "dashed"
77
74
  }),
78
75
  style: {
79
- "--color-bg": a,
80
- "--color-border": a
76
+ "--color-bg": i,
77
+ "--color-border": i
81
78
  }
82
79
  }), /* @__PURE__ */ $("div", {
83
- className: e("flex min-w-0 flex-1 justify-between gap-4 leading-none", O ? "items-end" : "items-center"),
80
+ className: e("flex min-w-0 flex-1 justify-between gap-4 leading-none", D ? "items-end" : "items-center"),
84
81
  children: [/* @__PURE__ */ $("div", {
85
82
  className: "grid min-w-0 gap-1.5",
86
- children: [O ? N : null, /* @__PURE__ */ Q("span", {
83
+ children: [D ? M : null, /* @__PURE__ */ Q("span", {
87
84
  className: "truncate text-muted-foreground",
88
- title: typeof i?.label == "string" ? i.label : t.name,
89
- children: i?.label ?? t.name
85
+ title: typeof r?.label == "string" ? r.label : t.name,
86
+ children: r?.label ?? t.name
90
87
  })]
91
88
  }), t.value !== void 0 && /* @__PURE__ */ $("span", {
92
89
  className: "flex shrink-0 items-baseline gap-1.5 font-mono leading-none tabular-nums",
93
- children: [/* @__PURE__ */ $("span", {
90
+ children: [/* @__PURE__ */ Q("span", {
94
91
  className: "font-medium text-foreground",
95
- children: [w(t.value, t, n), T && i?.unit ? ` ${i.unit}` : null]
96
- }), y && typeof t.value == "number" && D > 0 ? /* @__PURE__ */ Q("span", {
92
+ children: g ? g(t.value, t, n) : a(t.value, r?.unit)
93
+ }), b && typeof t.value == "number" && E > 0 ? /* @__PURE__ */ Q("span", {
97
94
  className: "text-[0.625rem] font-normal text-muted-foreground",
98
- children: b(t.value / D * 100, t, n)
95
+ children: x(t.value / E * 100, t, n)
99
96
  }) : null]
100
97
  })]
101
98
  })]
@@ -104,86 +101,315 @@ function Pe({ label: t, items: n = [], active: a = !0, hideLabel: o = !1, hideIn
104
101
  });
105
102
  return /* @__PURE__ */ $("div", {
106
103
  "data-slot": "chart-tooltip-content",
107
- className: e("grid max-w-[20rem] min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", x),
108
- ...S,
109
- children: [M && j ? /* @__PURE__ */ $("div", {
104
+ className: e("grid max-w-[20rem] min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", S),
105
+ ...C,
106
+ children: [j && A ? /* @__PURE__ */ $("div", {
110
107
  className: "flex gap-2",
111
108
  children: [/* @__PURE__ */ Q("div", {
112
109
  className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
113
- "w-1": d === "line",
114
- "w-0 border-[1.5px] border-dashed bg-transparent": d === "dashed"
110
+ "w-1": f === "line",
111
+ "w-0 border-[1.5px] border-dashed bg-transparent": f === "dashed"
115
112
  }),
116
113
  style: {
117
- "--color-bg": j,
118
- "--color-border": j
114
+ "--color-bg": A,
115
+ "--color-border": A
119
116
  }
120
117
  }), /* @__PURE__ */ $("div", {
121
118
  className: "grid min-w-0 flex-1 gap-1.5",
122
- children: [O ? null : N, P]
119
+ children: [D ? null : M, N]
123
120
  })]
124
- }) : /* @__PURE__ */ $(ve, { children: [O ? null : N, P] }), g && n.length > 1 && /* @__PURE__ */ $("div", {
121
+ }) : /* @__PURE__ */ $(Ce, { children: [D ? null : M, N] }), _ && n.length > 1 && /* @__PURE__ */ $("div", {
125
122
  className: "flex items-center justify-between gap-4 border-t border-border/50 pt-1.5",
126
123
  children: [/* @__PURE__ */ Q("span", {
127
124
  className: "font-medium",
128
- children: _
125
+ children: v
129
126
  }), /* @__PURE__ */ Q("span", {
130
127
  className: "font-mono font-medium text-foreground tabular-nums",
131
- children: v(D)
128
+ children: y(E)
132
129
  })]
133
130
  })]
134
131
  });
135
132
  }
136
- function Fe({ content: e }) {
137
- let { setTooltip: t } = y();
133
+ function ze({ content: e }) {
134
+ let { setTooltip: t } = v();
138
135
  return q.useLayoutEffect(() => (t({ content: e }), () => t(null)), [e, t]), null;
139
136
  }
140
137
  //#endregion
138
+ //#region src/base/ChartLegend/fitLegendItems.ts
139
+ function Be({ boxes: e, rowLeft: t, rowRight: n, moreWidth: r, gap: i, maxRows: a }) {
140
+ let o = [...new Set(e.map((e) => e.top))].sort((e, t) => e - t);
141
+ if (!Number.isFinite(a) || o.length <= a) return e.length;
142
+ let s = o[Math.max(1, Math.floor(a)) - 1], c = e.find((e) => e.top === s)?.left ?? t, l = n - t, u = e.findIndex((e) => e.top > s);
143
+ for (; u > 0;) {
144
+ let t = e[u - 1];
145
+ if (t.top < s || t.left + t.width - c + i + r <= l) return u;
146
+ --u;
147
+ }
148
+ return 0;
149
+ }
150
+ //#endregion
141
151
  //#region src/base/ChartLegend/ChartLegend.tsx
142
- var Ie = {
152
+ var Ve = ["value", "share"];
153
+ function He(e) {
154
+ return e === "value" || e === "share";
155
+ }
156
+ var Ue = 2, We = {
143
157
  start: "justify-start",
144
158
  center: "justify-center",
145
159
  end: "justify-end"
146
- };
147
- function Le({ items: t = [], hideIcon: n = !1, nameKey: a, verticalAlign: o, align: s = "start", onItemHover: c, onItemLeave: l, hoveredLegendKey: u, className: d, ...f }) {
148
- let { config: p } = i();
149
- return t.length === 0 ? null : /* @__PURE__ */ Q("div", {
160
+ }, Ge = [
161
+ "grid-cols-[auto_minmax(0,1fr)]",
162
+ "grid-cols-[auto_minmax(0,1fr)_auto]",
163
+ "grid-cols-[auto_minmax(0,1fr)_auto_auto]"
164
+ ], Ke = "flex flex-wrap items-center gap-x-2 gap-y-0.5 py-1";
165
+ function qe(e, t, n) {
166
+ let r = t[`${n ?? e.dataKey ?? e.value}`], i = e.dataKey ?? e.value;
167
+ return {
168
+ item: e,
169
+ dataKey: i,
170
+ label: r?.label ?? e.value,
171
+ title: typeof r?.label == "string" ? r.label : e.value,
172
+ color: e.color ?? `var(--color-${s(i)})`,
173
+ Icon: r?.icon,
174
+ unit: r?.unit
175
+ };
176
+ }
177
+ function Je(e, { onItemHover: t, onItemLeave: n }) {
178
+ return {
179
+ onPointerEnter: t ? () => t(e.dataKey) : void 0,
180
+ onPointerLeave: t ? n : void 0
181
+ };
182
+ }
183
+ function Ye(t, { onItemHover: n, hoveredLegendKey: r }) {
184
+ let i = r != null && r !== t.dataKey;
185
+ return e("transition-opacity duration-150", n && "cursor-default rounded-sm px-1 py-0.5 hover:bg-muted/50", t.item.stats?.value === 0 && "opacity-50", i && "opacity-40");
186
+ }
187
+ function Xe({ entry: e, hideIcon: t }) {
188
+ return t ? null : e.Icon ? /* @__PURE__ */ Q(e.Icon, {}) : /* @__PURE__ */ Q("div", {
189
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
190
+ style: { backgroundColor: e.color }
191
+ });
192
+ }
193
+ function Ze({ entry: t, interaction: n, measure: r = !1 }) {
194
+ return /* @__PURE__ */ $("div", {
195
+ className: e("flex max-w-full min-w-0 flex-none items-center gap-1.5 text-xs [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", Ye(t, n)),
196
+ ...Je(t, n),
197
+ children: [/* @__PURE__ */ Q(Xe, {
198
+ entry: t,
199
+ hideIcon: n.hideIcon
200
+ }), r && typeof t.label == "string" ? /* @__PURE__ */ Q("span", {
201
+ className: "truncate before:content-[attr(data-label)]",
202
+ "data-label": t.label
203
+ }) : r ? /* @__PURE__ */ Q("span", {
204
+ className: "truncate",
205
+ children: t.label
206
+ }) : /* @__PURE__ */ Q("span", {
207
+ className: "truncate text-muted-foreground",
208
+ title: t.title,
209
+ children: t.label
210
+ })]
211
+ });
212
+ }
213
+ var Qe = "inline-flex h-5 flex-none items-center rounded-sm border border-border bg-muted/50 px-1.5 text-xs font-medium text-foreground";
214
+ function $e(e) {
215
+ return `+${e} more`;
216
+ }
217
+ function et(e, t, n, r) {
218
+ let [i, a] = q.useState(r), o = q.useCallback(() => {
219
+ let n = e.current;
220
+ if (!n) return;
221
+ let r = Array.from(n.children), i = r.pop();
222
+ if (!i) return;
223
+ let o = r[0]?.offsetTop ?? 0;
224
+ if (i.offsetTop === o && r.every((e) => e.offsetTop === o)) {
225
+ a(r.length);
226
+ return;
227
+ }
228
+ let s = getComputedStyle(n);
229
+ a(Be({
230
+ boxes: r.map((e) => ({
231
+ top: e.offsetTop,
232
+ left: e.offsetLeft,
233
+ width: e.offsetWidth
234
+ })),
235
+ rowLeft: Number.parseFloat(s.paddingLeft) || 0,
236
+ rowRight: n.clientWidth - (Number.parseFloat(s.paddingRight) || 0),
237
+ moreWidth: i.offsetWidth,
238
+ gap: Number.parseFloat(s.columnGap) || 0,
239
+ maxRows: t
240
+ }));
241
+ }, [e, t]);
242
+ return q.useLayoutEffect(() => {
243
+ o();
244
+ }, [o, n]), q.useEffect(() => {
245
+ let t = e.current;
246
+ if (!t) return;
247
+ let n = new ResizeObserver(() => o());
248
+ n.observe(t);
249
+ let r = typeof document > "u" ? void 0 : document.fonts;
250
+ return r?.addEventListener?.("loadingdone", o), () => {
251
+ n.disconnect(), r?.removeEventListener?.("loadingdone", o);
252
+ };
253
+ }, [e, o]), Math.min(i, r);
254
+ }
255
+ function tt({ entries: t, interaction: n, align: r, maxRows: i, className: a, ...o }) {
256
+ let s = q.useRef(null), c = Number.isFinite(i), l = et(s, i, t.map((e) => `${e.dataKey}:${e.title}`).join("|"), t.length), u = c ? t.slice(0, l) : t, d = c ? t.slice(l) : [], f = {
257
+ ...n,
258
+ hoveredLegendKey: null
259
+ }, { hoveredLegendKey: p, onItemLeave: m } = n, h = d.some((e) => e.dataKey === p), [g, _] = q.useState(!1);
260
+ return q.useEffect(() => {
261
+ h && !g && m?.();
262
+ }, [
263
+ h,
264
+ g,
265
+ m
266
+ ]), /* @__PURE__ */ $("div", {
150
267
  "data-slot": "chart-legend-content",
151
- className: e("flex items-center gap-4 overflow-hidden px-4 py-1", Ie[s], d),
152
- ...f,
153
- children: t.map((t) => {
154
- let i = p[`${a ?? t.dataKey ?? t.value}`], o = t.color ?? `var(--color-${r(t.dataKey ?? t.value)})`, s = t.dataKey ?? t.value;
155
- return /* @__PURE__ */ $("div", {
156
- className: e("flex min-w-0 shrink items-center gap-1.5 text-xs transition-opacity duration-150 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", c && "cursor-default rounded-sm px-1 py-0.5 hover:bg-muted/50", u != null && u !== s && "opacity-40"),
157
- onPointerEnter: c ? () => c(s) : void 0,
158
- onPointerLeave: c ? l : void 0,
159
- children: [i?.icon && !n ? /* @__PURE__ */ Q(i.icon, {}) : !n && /* @__PURE__ */ Q("div", {
160
- className: "h-2 w-2 shrink-0 rounded-[2px]",
161
- style: { backgroundColor: o }
162
- }), /* @__PURE__ */ Q("span", {
163
- className: "truncate text-muted-foreground",
164
- title: typeof i?.label == "string" ? i.label : t.value,
165
- children: i?.label ?? t.value
268
+ "data-placement": "row",
269
+ className: e("min-w-0", a),
270
+ ...o,
271
+ children: [/* @__PURE__ */ $("div", {
272
+ className: e(Ke, We[r]),
273
+ children: [u.map((e) => /* @__PURE__ */ Q(Ze, {
274
+ entry: e,
275
+ interaction: n
276
+ }, e.dataKey)), d.length > 0 && /* @__PURE__ */ Q(nt, {
277
+ hidden: d,
278
+ interaction: n,
279
+ open: g,
280
+ onOpenChange: _
281
+ })]
282
+ }), c && /* @__PURE__ */ Q("div", {
283
+ "aria-hidden": !0,
284
+ className: "pointer-events-none relative h-0 overflow-hidden",
285
+ children: /* @__PURE__ */ $("div", {
286
+ ref: s,
287
+ "data-slot": "chart-legend-measure",
288
+ className: e("invisible absolute inset-x-0 top-0", Ke, We[r]),
289
+ children: [t.map((e) => /* @__PURE__ */ Q(Ze, {
290
+ entry: e,
291
+ interaction: f,
292
+ measure: !0
293
+ }, e.dataKey)), /* @__PURE__ */ Q("span", {
294
+ className: Qe,
295
+ children: $e(t.length)
166
296
  })]
167
- }, t.value);
168
- })
297
+ })
298
+ })]
299
+ });
300
+ }
301
+ function nt({ hidden: t, interaction: n, open: i, onOpenChange: a }) {
302
+ let { id: o } = r();
303
+ return /* @__PURE__ */ $(oe, {
304
+ open: i,
305
+ onOpenChange: a,
306
+ children: [/* @__PURE__ */ Q(le, {
307
+ asChild: !0,
308
+ children: /* @__PURE__ */ Q("button", {
309
+ type: "button",
310
+ "data-slot": "chart-legend-more",
311
+ "aria-label": `Show ${t.length} more series`,
312
+ className: e(Qe, "cursor-pointer hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"),
313
+ children: $e(t.length)
314
+ })
315
+ }), /* @__PURE__ */ Q(ce, {
316
+ align: "end",
317
+ "data-chart": o,
318
+ className: "w-auto max-w-72 gap-1 p-2",
319
+ children: /* @__PURE__ */ Q("div", {
320
+ "data-slot": "chart-legend-more-list",
321
+ className: "flex flex-col gap-1",
322
+ children: t.map((e) => /* @__PURE__ */ Q(Ze, {
323
+ entry: e,
324
+ interaction: n
325
+ }, e.dataKey))
326
+ })
327
+ })]
328
+ });
329
+ }
330
+ function rt({ entries: t, interaction: n, columns: r, valueFormatter: i, className: a, ...o }) {
331
+ let s = t.some((e) => e.item.stats !== void 0) ? [...new Set(r)].filter(He) : [];
332
+ return /* @__PURE__ */ Q("div", {
333
+ "data-slot": "chart-legend-content",
334
+ "data-placement": "right",
335
+ className: e("grid w-full items-center gap-x-2 gap-y-0.5 py-1 text-xs", Ge[s.length], a),
336
+ ...o,
337
+ children: t.map((t) => /* @__PURE__ */ $("div", {
338
+ "data-slot": "chart-legend-item",
339
+ className: e("col-span-full grid grid-cols-subgrid items-center [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground", Ye(t, n)),
340
+ ...Je(t, n),
341
+ children: [
342
+ /* @__PURE__ */ Q(Xe, {
343
+ entry: t,
344
+ hideIcon: n.hideIcon
345
+ }),
346
+ /* @__PURE__ */ Q("span", {
347
+ className: "truncate text-foreground",
348
+ title: t.title,
349
+ children: t.label
350
+ }),
351
+ s.map((e) => /* @__PURE__ */ Q(it, {
352
+ column: e,
353
+ entry: t,
354
+ valueFormatter: i
355
+ }, e))
356
+ ]
357
+ }, t.dataKey))
358
+ });
359
+ }
360
+ function it({ column: e, entry: t, valueFormatter: n }) {
361
+ let r = t.item.stats;
362
+ return r ? e === "share" ? /* @__PURE__ */ Q("span", {
363
+ "data-column": "share",
364
+ className: "text-right font-medium text-foreground tabular-nums",
365
+ children: o(r.share * 100)
366
+ }) : /* @__PURE__ */ Q("span", {
367
+ "data-column": "value",
368
+ className: "text-right text-muted-foreground tabular-nums",
369
+ children: n ? n(r.value, t.item) : a(r.value, t.unit)
370
+ }) : /* @__PURE__ */ Q("span", {});
371
+ }
372
+ function at({ items: e = [], hideIcon: t = !1, nameKey: n, verticalAlign: i, placement: a = "bottom", align: o = "start", maxRows: s = Ue, columns: c = Ve, valueFormatter: l, onItemHover: u, onItemLeave: d, hoveredLegendKey: f, ...p }) {
373
+ let { config: m } = r();
374
+ if (e.length === 0) return null;
375
+ let h = e.map((e) => qe(e, m, n)), g = {
376
+ hideIcon: t,
377
+ onItemHover: u,
378
+ onItemLeave: d,
379
+ hoveredLegendKey: f
380
+ };
381
+ return a === "right" ? /* @__PURE__ */ Q(rt, {
382
+ entries: h,
383
+ interaction: g,
384
+ columns: c,
385
+ valueFormatter: l,
386
+ ...p
387
+ }) : /* @__PURE__ */ Q(tt, {
388
+ entries: h,
389
+ interaction: g,
390
+ align: o,
391
+ maxRows: s,
392
+ ...p
169
393
  });
170
394
  }
171
- function Re({ content: e, verticalAlign: t = "bottom" }) {
172
- let { setLegend: n } = y();
173
- return q.useLayoutEffect(() => (n({
395
+ function ot({ content: e, position: t = "bottom", verticalAlign: n = "bottom" }) {
396
+ let { setLegend: r } = v();
397
+ return q.useLayoutEffect(() => (r({
174
398
  content: e,
175
- verticalAlign: t
176
- }), () => n(null)), [
399
+ verticalAlign: n,
400
+ position: t
401
+ }), () => r(null)), [
177
402
  e,
403
+ n,
178
404
  t,
179
- n
405
+ r
180
406
  ]), null;
181
407
  }
182
408
  //#endregion
183
409
  //#region src/base/ChartBrush/ChartBrush.tsx
184
- function ze({ onBrushEnd: e, onBrushChange: t, onBrushCancel: n, disabled: r = !1, minCategories: i = 1 }) {
185
- let { setBrush: a } = y();
186
- return f(q.useContext(u) === null ? "[graphene-charts] <ChartBrush> must be a child of a chart (LineChart, AreaChart, BarChart or CartesianChart). The brush is inert here." : null), q.useLayoutEffect(() => (a({
410
+ function st({ onBrushEnd: e, onBrushChange: t, onBrushCancel: n, disabled: r = !1, minCategories: i = 1 }) {
411
+ let { setBrush: a } = v();
412
+ return h(q.useContext(N) === null ? "[graphene-charts] <ChartBrush> must be a child of a chart (LineChart, AreaChart, BarChart or CartesianChart). The brush is inert here." : null), q.useLayoutEffect(() => (a({
187
413
  onBrushEnd: e,
188
414
  onBrushChange: t,
189
415
  onBrushCancel: n,
@@ -200,28 +426,28 @@ function ze({ onBrushEnd: e, onBrushChange: t, onBrushCancel: n, disabled: r = !
200
426
  }
201
427
  //#endregion
202
428
  //#region src/series/curves.ts
203
- var Be = {
204
- monotone: Ce,
205
- linear: Se,
206
- step: we
207
- }, Ve = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n}\n[data-graphene-chart-dot]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
208
- function He({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: i = !1, connectNulls: a = !1 }) {
209
- let { data: o, categoryScale: s, resolveValueScale: c, animated: l, hoveredCategory: u, hoveredLegendKey: d, config: f, valueTickFormatter: p, showTooltipAt: m, hideTooltip: h } = k(), g = c(t), _ = q.useRef(null), [v, y] = q.useState(0), b = `var(--color-${r(e)})`;
429
+ var ct = {
430
+ monotone: Oe,
431
+ linear: De,
432
+ step: ke
433
+ }, lt = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n}\n[data-graphene-chart-dot]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
434
+ function ut({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1, connectNulls: i = !1 }) {
435
+ let { data: a, categoryScale: o, resolveValueScale: c, animated: u, hoveredCategory: d, hoveredLegendKey: f, config: p, valueTickFormatter: m, showTooltipAt: h, hideTooltip: g } = l(), _ = c(t), v = q.useRef(null), [y, b] = q.useState(0), x = `var(--color-${s(e)})`;
210
436
  q.useLayoutEffect(() => {
211
- _.current && y(_.current.getTotalLength());
437
+ v.current && b(v.current.getTotalLength());
212
438
  }, [
213
- o,
439
+ a,
214
440
  e,
215
- s,
216
- g,
441
+ o,
442
+ _,
217
443
  n,
218
- a
444
+ i
219
445
  ]);
220
- let x = Be[n], S = typeof f[e]?.label == "string" ? f[e]?.label : e, C = [];
221
- for (let t of o) {
446
+ let S = ct[n], C = typeof p[e]?.label == "string" ? p[e]?.label : e, w = [];
447
+ for (let t of a) {
222
448
  let n = t[e];
223
449
  if (n == null) {
224
- a || C.push({
450
+ i || w.push({
225
451
  x: NaN,
226
452
  y: NaN,
227
453
  defined: !1,
@@ -232,49 +458,49 @@ function He({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: i = !1
232
458
  }
233
459
  let r = Number(n);
234
460
  if (!Number.isFinite(r)) continue;
235
- let i = (s(t.category) ?? 0) + s.bandwidth() / 2, o = g(r);
236
- C.push({
237
- x: i,
238
- y: o,
461
+ let a = (o(t.category) ?? 0) + o.bandwidth() / 2, s = _(r);
462
+ w.push({
463
+ x: a,
464
+ y: s,
239
465
  defined: !0,
240
466
  category: t.category,
241
467
  value: r
242
468
  });
243
469
  }
244
- let T = (e) => e.defined, E = C.filter(T), D = w(i, E.length), O = Te().x((e) => e.x).y((e) => e.y).curve(x).defined(T)(C) ?? "";
470
+ let T = (e) => e.defined, E = w.filter(T), D = O(r, E.length), k = Ae().x((e) => e.x).y((e) => e.y).curve(S).defined(T)(w) ?? "";
245
471
  return /* @__PURE__ */ $("g", {
246
472
  style: {
247
- opacity: d !== null && d !== e ? .15 : 1,
473
+ opacity: f !== null && f !== e ? .15 : 1,
248
474
  transition: "opacity 150ms ease"
249
475
  },
250
476
  children: [
251
477
  /* @__PURE__ */ Q("style", {
252
478
  precedence: "graphene-charts",
253
- children: Ve
479
+ children: lt
254
480
  }),
255
481
  /* @__PURE__ */ Q("path", {
256
- ref: _,
257
- d: O,
482
+ ref: v,
483
+ d: k,
258
484
  fill: "none",
259
- stroke: b,
485
+ stroke: x,
260
486
  strokeWidth: 2.5,
261
487
  strokeLinecap: "round",
262
488
  strokeLinejoin: "round",
263
489
  "data-graphene-chart-line": !0,
264
- "data-animated": l ? "true" : "false",
265
- style: l && v > 0 ? {
266
- "--path-length": v,
267
- strokeDasharray: v,
268
- strokeDashoffset: v
490
+ "data-animated": u ? "true" : "false",
491
+ style: u && y > 0 ? {
492
+ "--path-length": y,
493
+ strokeDasharray: y,
494
+ strokeDashoffset: y
269
495
  } : void 0
270
496
  }),
271
497
  D && E.map((t) => {
272
- let n = `${t.category} — ${S}: ${p(t.value)}`;
498
+ let n = `${t.category} — ${C}: ${m(t.value)}`;
273
499
  return /* @__PURE__ */ Q("circle", {
274
500
  cx: t.x,
275
501
  cy: t.y,
276
502
  r: 4,
277
- fill: b,
503
+ fill: x,
278
504
  stroke: "var(--background)",
279
505
  strokeWidth: 2,
280
506
  tabIndex: 0,
@@ -282,17 +508,17 @@ function He({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: i = !1
282
508
  "aria-label": n,
283
509
  "data-graphene-chart-dot": !0,
284
510
  className: "focus:outline-none",
285
- onFocus: (e) => m(t.category, e.currentTarget.getBoundingClientRect()),
286
- onBlur: h
511
+ onFocus: (e) => h(t.category, e.currentTarget.getBoundingClientRect()),
512
+ onBlur: g
287
513
  }, `${e}-${t.category}`);
288
514
  }),
289
- u !== null && (() => {
290
- let e = C.find((e) => e.category === u && e.defined);
515
+ d !== null && (() => {
516
+ let e = w.find((e) => e.category === d && e.defined);
291
517
  return e ? /* @__PURE__ */ Q("circle", {
292
518
  cx: e.x,
293
519
  cy: e.y,
294
- r: i ? 6 : 5,
295
- fill: b,
520
+ r: r ? 6 : 5,
521
+ fill: x,
296
522
  stroke: "var(--background)",
297
523
  strokeWidth: 2,
298
524
  "data-graphene-chart-active-dot": !0,
@@ -302,158 +528,158 @@ function He({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: i = !1
302
528
  ]
303
529
  });
304
530
  }
305
- He.seriesType = "LineSeries";
531
+ ut.seriesType = "LineSeries";
306
532
  //#endregion
307
533
  //#region src/series/BarSeries.tsx
308
- var Ue = "\n[data-graphene-chart-bar] {\n fill-opacity: 0.7;\n}\n[data-graphene-chart-bar][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center bottom;\n transition:\n transform 450ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 250ms ease-out;\n}\n[data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform-origin: left center;\n}\n@starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 0;\n transform: scaleY(0);\n }\n [data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform: scaleX(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-bar][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-bar]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
309
- function We({ dataKey: e, axisId: t, stackId: n, barRadius: i }) {
310
- let { data: a, categoryScale: o, resolveValueScale: s, innerHeight: c, layout: l, colorMode: u, animated: d, hoveredLegendKey: f, config: m, stackedLayers: g, barGroupScale: _, valueTickFormatter: v, chartWrapperRef: y, chartId: b, showTooltipAt: x, hideTooltip: S } = k(), C = s(t), w = l === "vertical", T = u === "category", E = `var(--color-${r(e)})`, D = typeof m[e]?.label == "string" ? m[e]?.label : e, [O, A] = p("var(--chart-bar-radius, 3px)", 3), j = i ?? O, [M, N] = q.useState(null);
534
+ var dt = "\n[data-graphene-chart-bar] {\n fill-opacity: 0.7;\n}\n[data-graphene-chart-bar][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center bottom;\n transition:\n transform 450ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 250ms ease-out;\n}\n[data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform-origin: left center;\n}\n@starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 0;\n transform: scaleY(0);\n }\n [data-graphene-chart-bar][data-animated='true'][data-layout='horizontal'] {\n transform: scaleX(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-bar][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-bar][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-bar]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
535
+ function ft({ dataKey: e, axisId: t, stackId: n, barRadius: r }) {
536
+ let { data: i, categoryScale: a, resolveValueScale: o, innerHeight: c, layout: u, colorMode: d, animated: f, hoveredLegendKey: p, config: m, stackedLayers: h, barGroupScale: v, valueTickFormatter: y, chartWrapperRef: b, chartId: x, showTooltipAt: S, hideTooltip: C } = l(), w = o(t), T = u === "vertical", E = d === "category", D = `var(--color-${s(e)})`, O = typeof m[e]?.label == "string" ? m[e]?.label : e, [k, A] = g("var(--chart-bar-radius, 3px)", 3), j = r ?? k, [M, N] = q.useState(null);
311
537
  q.useEffect(() => {
312
- N(y.current);
313
- }, [y]);
314
- let P = n ? g.get(n)?.find((t) => t.key === e) : void 0, F = n ? g.get(n) ?? null : null, I = q.useMemo(() => !F || F.length === 0 ? !1 : F[0].key === e, [F, e]), L = q.useMemo(() => {
538
+ N(b.current);
539
+ }, [b]);
540
+ let P = n ? h.get(n)?.find((t) => t.key === e) : void 0, F = n ? h.get(n) ?? null : null, I = q.useMemo(() => !F || F.length === 0 ? !1 : F[0].key === e, [F, e]), L = q.useMemo(() => {
315
541
  if (!I || !F || F.length === 0) return null;
316
542
  let e = F[F.length - 1];
317
- return a.map((t, r) => {
318
- let i = e[r][1], a = `stack-clip-${b}-${n}-${r}`, s;
319
- if (w) {
320
- let e = o(t.category) ?? 0, n = C(i);
321
- s = h(e, n, o.bandwidth(), c - n, {
543
+ return i.map((t, r) => {
544
+ let i = e[r][1], o = `stack-clip-${x}-${n}-${r}`, s;
545
+ if (T) {
546
+ let e = a(t.category) ?? 0, n = w(i);
547
+ s = _(e, n, a.bandwidth(), c - n, {
322
548
  tl: j,
323
549
  tr: j,
324
550
  br: 0,
325
551
  bl: 0
326
552
  });
327
- } else s = h(0, o(t.category) ?? 0, C(i), o.bandwidth(), {
553
+ } else s = _(0, a(t.category) ?? 0, w(i), a.bandwidth(), {
328
554
  tl: 0,
329
555
  tr: j,
330
556
  br: j,
331
557
  bl: 0
332
558
  });
333
559
  return {
334
- clipId: a,
560
+ clipId: o,
335
561
  path: s
336
562
  };
337
563
  });
338
564
  }, [
339
565
  I,
340
566
  F,
341
- a,
342
- b,
567
+ i,
568
+ x,
343
569
  n,
344
- o,
345
- C,
570
+ a,
571
+ w,
346
572
  c,
347
573
  j,
348
- w
574
+ T
349
575
  ]);
350
576
  return /* @__PURE__ */ $("g", {
351
577
  style: {
352
- opacity: !T && f !== null && f !== e ? .15 : 1,
578
+ opacity: !E && p !== null && p !== e ? .15 : 1,
353
579
  transition: "opacity 150ms ease"
354
580
  },
355
581
  children: [
356
582
  /* @__PURE__ */ Q("style", {
357
583
  precedence: "graphene-charts",
358
- children: Ue
584
+ children: dt
359
585
  }),
360
- M && De(A, M),
586
+ M && Me(A, M),
361
587
  L && /* @__PURE__ */ Q("defs", { children: L.map(({ clipId: e, path: t }) => /* @__PURE__ */ Q("clipPath", {
362
588
  id: e,
363
589
  children: /* @__PURE__ */ Q("path", { d: t })
364
590
  }, e)) }),
365
- a.map((t, i) => {
366
- let a = Number(t[e]) || 0, s = `${t.category} — ${D}: ${v(a)}`, l = T ? `var(--color-${r(t.category)})` : E, u = T && f !== null && f !== t.category, p = "";
367
- if (w && !P) {
368
- let n = _ ? _(e) ?? 0 : 0, r = _ ? _.bandwidth() : o.bandwidth();
369
- p = h((o(t.category) ?? 0) + n, C(a), r, c - C(a), {
591
+ i.map((t, r) => {
592
+ let i = Number(t[e]) || 0, o = `${t.category} — ${O}: ${y(i)}`, l = E ? `var(--color-${s(t.category)})` : D, u = E && p !== null && p !== t.category, d = "";
593
+ if (T && !P) {
594
+ let n = v ? v(e) ?? 0 : 0, r = v ? v.bandwidth() : a.bandwidth();
595
+ d = _((a(t.category) ?? 0) + n, w(i), r, c - w(i), {
370
596
  tl: j,
371
597
  tr: j,
372
598
  br: 0,
373
599
  bl: 0
374
600
  });
375
- } else if (w && P) {
376
- let e = P[i], n = C(e[1]), r = C(e[0]) - n;
377
- p = h(o(t.category) ?? 0, n, o.bandwidth(), r, {
601
+ } else if (T && P) {
602
+ let e = P[r], n = w(e[1]), i = w(e[0]) - n;
603
+ d = _(a(t.category) ?? 0, n, a.bandwidth(), i, {
378
604
  tl: 0,
379
605
  tr: 0,
380
606
  br: 0,
381
607
  bl: 0
382
608
  });
383
- } else if (!w && !P) {
384
- let n = _ ? _(e) ?? 0 : 0, r = _ ? _.bandwidth() : o.bandwidth();
385
- p = h(0, (o(t.category) ?? 0) + n, C(a), r, {
609
+ } else if (!T && !P) {
610
+ let n = v ? v(e) ?? 0 : 0, r = v ? v.bandwidth() : a.bandwidth();
611
+ d = _(0, (a(t.category) ?? 0) + n, w(i), r, {
386
612
  tl: 0,
387
613
  tr: j,
388
614
  br: j,
389
615
  bl: 0
390
616
  });
391
- } else if (!w && P) {
392
- let e = P[i], n = C(e[0]), r = C(e[1]) - n;
393
- p = h(n, o(t.category) ?? 0, r, o.bandwidth(), {
617
+ } else if (!T && P) {
618
+ let e = P[r], n = w(e[0]), i = w(e[1]) - n;
619
+ d = _(n, a(t.category) ?? 0, i, a.bandwidth(), {
394
620
  tl: 0,
395
621
  tr: 0,
396
622
  br: 0,
397
623
  bl: 0
398
624
  });
399
625
  }
400
- let m = P ? `url(#stack-clip-${b}-${n}-${i})` : void 0;
626
+ let m = P ? `url(#stack-clip-${x}-${n}-${r})` : void 0;
401
627
  return /* @__PURE__ */ Q("path", {
402
- d: p,
628
+ d,
403
629
  fill: l,
404
630
  style: u ? { opacity: .15 } : void 0,
405
631
  tabIndex: 0,
406
632
  role: "img",
407
- "aria-label": s,
633
+ "aria-label": o,
408
634
  "data-graphene-chart-bar": !0,
409
- "data-layout": w ? "vertical" : "horizontal",
410
- "data-animated": d ? "true" : "false",
635
+ "data-layout": T ? "vertical" : "horizontal",
636
+ "data-animated": f ? "true" : "false",
411
637
  className: "transition-opacity hover:opacity-80 focus:outline-none",
412
638
  clipPath: m,
413
- onFocus: (e) => x(t.category, e.currentTarget.getBoundingClientRect()),
414
- onBlur: S
639
+ onFocus: (e) => S(t.category, e.currentTarget.getBoundingClientRect()),
640
+ onBlur: C
415
641
  }, `${e}-${t.category}`);
416
642
  })
417
643
  ]
418
644
  });
419
645
  }
420
- We.seriesType = "BarSeries";
646
+ ft.seriesType = "BarSeries";
421
647
  //#endregion
422
648
  //#region src/series/AreaSeries.tsx
423
- var Ge = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@keyframes graphene-area-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n[data-graphene-chart-area][data-animated='true'] {\n animation: graphene-area-fade-in 600ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n [data-graphene-chart-area][data-animated='true'] {\n animation: none;\n opacity: 1;\n }\n}\n";
424
- function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fillOpacity: a = .2, gradient: o = !0, connectNulls: s = !1, showDots: c = !1 }) {
425
- let { data: l, categoryScale: u, resolveValueScale: d, innerHeight: f, animated: p, hoveredCategory: m, hoveredLegendKey: h, stackedLayers: g, chartId: _, config: v, valueTickFormatter: y, showTooltipAt: b, hideTooltip: x } = k(), S = d(t), C = q.useRef(null), [T, E] = q.useState(0), D = `var(--color-${r(e)})`, O = Be[i];
649
+ var pt = "\n@keyframes graphene-line-draw {\n from { stroke-dashoffset: var(--path-length); }\n to { stroke-dashoffset: 0; }\n}\n[data-graphene-chart-line][data-animated='true'] {\n animation: graphene-line-draw 800ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@keyframes graphene-area-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n[data-graphene-chart-area][data-animated='true'] {\n animation: graphene-area-fade-in 600ms cubic-bezier(0.32, 0.72, 0, 1) forwards;\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-line][data-animated='true'] {\n animation: none;\n stroke-dashoffset: 0;\n }\n [data-graphene-chart-area][data-animated='true'] {\n animation: none;\n opacity: 1;\n }\n}\n";
650
+ function mt({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fillOpacity: i = .2, gradient: a = !0, connectNulls: o = !1, showDots: c = !1 }) {
651
+ let { data: u, categoryScale: d, resolveValueScale: f, innerHeight: p, animated: m, hoveredCategory: h, hoveredLegendKey: g, stackedLayers: _, chartId: v, config: y, valueTickFormatter: b, showTooltipAt: x, hideTooltip: S } = l(), C = f(t), w = q.useRef(null), [T, E] = q.useState(0), D = `var(--color-${s(e)})`, k = ct[r];
426
652
  q.useLayoutEffect(() => {
427
- C.current && E(C.current.getTotalLength());
653
+ w.current && E(w.current.getTotalLength());
428
654
  }, [
429
- l,
430
- e,
431
655
  u,
432
- S,
433
- O,
434
- s,
656
+ e,
657
+ d,
658
+ C,
659
+ k,
660
+ o,
435
661
  n
436
662
  ]);
437
- let A = n ? g.get(n)?.find((t) => t.key === e) : void 0, j = `area-gradient-${_}-${e}`, M = o ? `url(#${j})` : D, N = u.domain(), P = "", F = "", I = null, L = null, R = [];
663
+ let A = n ? _.get(n)?.find((t) => t.key === e) : void 0, j = `area-gradient-${v}-${e}`, M = a ? `url(#${j})` : D, N = d.domain(), P = "", F = "", I = null, L = null, R = [];
438
664
  if (A) {
439
- let t = (t) => s ? !0 : l[t]?.[e] != null, n = xe().x((e) => (u(N[e]) ?? 0) + u.bandwidth() / 2).y0((e) => S(A[e][0])).y1((e) => S(A[e][1])).defined(t).curve(O), r = Te().x((e) => (u(N[e]) ?? 0) + u.bandwidth() / 2).y((e) => S(A[e][1])).defined(t).curve(O), i = N.map((e, t) => t);
665
+ let t = (t) => o ? !0 : u[t]?.[e] != null, n = Ee().x((e) => (d(N[e]) ?? 0) + d.bandwidth() / 2).y0((e) => C(A[e][0])).y1((e) => C(A[e][1])).defined(t).curve(k), r = Ae().x((e) => (d(N[e]) ?? 0) + d.bandwidth() / 2).y((e) => C(A[e][1])).defined(t).curve(k), i = N.map((e, t) => t);
440
666
  P = n(i) ?? "", F = r(i) ?? "";
441
667
  for (let n of i) t(n) && R.push({
442
- x: (u(N[n]) ?? 0) + u.bandwidth() / 2,
443
- y: S(A[n][1]),
668
+ x: (d(N[n]) ?? 0) + d.bandwidth() / 2,
669
+ y: C(A[n][1]),
444
670
  category: N[n],
445
- value: Number(l[n]?.[e]) || 0
671
+ value: Number(u[n]?.[e]) || 0
446
672
  });
447
- if (m !== null) {
448
- let e = N.indexOf(m);
449
- e !== -1 && t(e) && (I = (u(m) ?? 0) + u.bandwidth() / 2, L = S(A[e][1]));
673
+ if (h !== null) {
674
+ let e = N.indexOf(h);
675
+ e !== -1 && t(e) && (I = (d(h) ?? 0) + d.bandwidth() / 2, L = C(A[e][1]));
450
676
  }
451
677
  } else {
452
678
  let t = [];
453
- for (let n of l) {
679
+ for (let n of u) {
454
680
  let r = n[e];
455
681
  if (r == null) {
456
- s || t.push({
682
+ o || t.push({
457
683
  x: NaN,
458
684
  y: NaN,
459
685
  defined: !1,
@@ -464,16 +690,16 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
464
690
  }
465
691
  let i = Number(r);
466
692
  if (!Number.isFinite(i)) continue;
467
- let a = (u(n.category) ?? 0) + u.bandwidth() / 2, o = S(i);
693
+ let a = (d(n.category) ?? 0) + d.bandwidth() / 2, s = C(i);
468
694
  t.push({
469
695
  x: a,
470
- y: o,
696
+ y: s,
471
697
  defined: !0,
472
698
  category: n.category,
473
699
  value: i
474
700
  });
475
701
  }
476
- let n = (e) => e.defined, r = Te().x((e) => e.x).y((e) => e.y).curve(O).defined(n), i = xe().x((e) => e.x).y0(f).y1((e) => e.y).curve(O).defined(n);
702
+ let n = (e) => e.defined, r = Ae().x((e) => e.x).y((e) => e.y).curve(k).defined(n), i = Ee().x((e) => e.x).y0(p).y1((e) => e.y).curve(k).defined(n);
477
703
  F = r(t) ?? "", P = i(t) ?? "";
478
704
  for (let e of t) e.defined && R.push({
479
705
  x: e.x,
@@ -481,23 +707,23 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
481
707
  category: e.category,
482
708
  value: e.value
483
709
  });
484
- if (m !== null) {
485
- let e = t.find((e) => e.category === m && e.defined);
710
+ if (h !== null) {
711
+ let e = t.find((e) => e.category === h && e.defined);
486
712
  e && (I = e.x, L = e.y);
487
713
  }
488
714
  }
489
- let z = w(c, R.length), ee = typeof v[e]?.label == "string" ? v[e]?.label : e;
715
+ let z = O(c, R.length), B = typeof y[e]?.label == "string" ? y[e]?.label : e;
490
716
  return /* @__PURE__ */ $("g", {
491
717
  style: {
492
- opacity: h !== null && h !== e ? .15 : 1,
718
+ opacity: g !== null && g !== e ? .15 : 1,
493
719
  transition: "opacity 150ms ease"
494
720
  },
495
721
  children: [
496
722
  /* @__PURE__ */ Q("style", {
497
723
  precedence: "graphene-charts",
498
- children: Ge
724
+ children: pt
499
725
  }),
500
- o && /* @__PURE__ */ Q("defs", { children: /* @__PURE__ */ $("linearGradient", {
726
+ a && /* @__PURE__ */ Q("defs", { children: /* @__PURE__ */ $("linearGradient", {
501
727
  id: j,
502
728
  x1: "0",
503
729
  y1: "0",
@@ -506,7 +732,7 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
506
732
  children: [/* @__PURE__ */ Q("stop", {
507
733
  offset: "0%",
508
734
  stopColor: D,
509
- stopOpacity: a
735
+ stopOpacity: i
510
736
  }), /* @__PURE__ */ Q("stop", {
511
737
  offset: "100%",
512
738
  stopColor: D,
@@ -516,12 +742,12 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
516
742
  /* @__PURE__ */ Q("path", {
517
743
  d: P,
518
744
  fill: M,
519
- fillOpacity: o ? 1 : a,
745
+ fillOpacity: a ? 1 : i,
520
746
  "data-graphene-chart-area": !0,
521
- "data-animated": p ? "true" : "false"
747
+ "data-animated": m ? "true" : "false"
522
748
  }),
523
749
  /* @__PURE__ */ Q("path", {
524
- ref: C,
750
+ ref: w,
525
751
  d: F,
526
752
  fill: "none",
527
753
  stroke: D,
@@ -529,8 +755,8 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
529
755
  strokeLinecap: "round",
530
756
  strokeLinejoin: "round",
531
757
  "data-graphene-chart-line": !0,
532
- "data-animated": p ? "true" : "false",
533
- style: p && T > 0 ? {
758
+ "data-animated": m ? "true" : "false",
759
+ style: m && T > 0 ? {
534
760
  "--path-length": T,
535
761
  strokeDasharray: T,
536
762
  strokeDashoffset: T
@@ -545,11 +771,11 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
545
771
  strokeWidth: 2,
546
772
  tabIndex: 0,
547
773
  role: "img",
548
- "aria-label": `${t.category} — ${ee}: ${y(t.value)}`,
774
+ "aria-label": `${t.category} — ${B}: ${b(t.value)}`,
549
775
  "data-graphene-chart-dot": !0,
550
776
  className: "focus:outline-none",
551
- onFocus: (e) => b(t.category, e.currentTarget.getBoundingClientRect()),
552
- onBlur: x
777
+ onFocus: (e) => x(t.category, e.currentTarget.getBoundingClientRect()),
778
+ onBlur: S
553
779
  }, `${e}-${t.category}`)),
554
780
  I !== null && L !== null && /* @__PURE__ */ Q("circle", {
555
781
  cx: I,
@@ -563,10 +789,10 @@ function Ke({ dataKey: e, axisId: t, stackId: n, curveType: i = "monotone", fill
563
789
  ]
564
790
  });
565
791
  }
566
- Ke.seriesType = "AreaSeries";
792
+ mt.seriesType = "AreaSeries";
567
793
  //#endregion
568
794
  //#region src/lib/inferDataKeys.ts
569
- function qe(e, t, n = "series") {
795
+ function ht(e, t, n = "series") {
570
796
  if (e.length === 0) return [];
571
797
  let r = /* @__PURE__ */ new Set(), i = [];
572
798
  for (let t of e) for (let e of Object.keys(t)) {
@@ -580,68 +806,68 @@ function qe(e, t, n = "series") {
580
806
  }
581
807
  //#endregion
582
808
  //#region src/charts/BarChart/BarChart.tsx
583
- var Je = 120;
584
- function Ye({ data: e, dataKeys: t, colorMode: n = "series", state: r, layout: a = "vertical", variant: o = "grouped", margin: s, barRadius: l, showGrid: u = !0, showCategoryAxis: d = !0, showValueAxis: f = !0, valueTickFormatter: p, categoryTickFormatter: h, ariaLabel: _, animated: y = !0, onBarHover: b, onBarLeave: x, className: S, children: C, ...w }) {
585
- let { config: T } = i(), E = t ?? qe(e, Object.keys(T), n), D = a === "vertical", O = o === "stacked" ? "default" : void 0, k = D ? s : {
586
- left: Je,
809
+ var gt = 120;
810
+ function _t({ data: e, dataKeys: t, colorMode: n = "series", state: i, layout: a = "vertical", variant: o = "grouped", margin: s, barRadius: c, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: f = !0, valueTickFormatter: m, categoryTickFormatter: h, ariaLabel: g, animated: _ = !0, onBarHover: v, onBarLeave: b, className: x, children: C, ...w }) {
811
+ let { config: T } = r(), E = t ?? ht(e, Object.keys(T), n), D = a === "vertical", O = o === "stacked" ? "default" : void 0, k = D ? s : {
812
+ left: gt,
587
813
  ...s
588
814
  };
589
- return r === "loading" ? /* @__PURE__ */ Q(v, {
590
- ariaLabel: _,
591
- className: S,
815
+ return i === "loading" ? /* @__PURE__ */ Q(S, {
816
+ ariaLabel: g,
817
+ className: x,
592
818
  ...w
593
- }) : /* @__PURE__ */ $(g, {
819
+ }) : /* @__PURE__ */ $(y, {
594
820
  data: e,
595
- state: r,
821
+ state: i,
596
822
  categoryPadding: .1,
597
823
  layout: a,
598
824
  colorMode: n,
599
- animated: y,
600
- ariaLabel: _,
601
- valueTickFormatter: p,
825
+ animated: _,
826
+ ariaLabel: g,
827
+ valueTickFormatter: m,
602
828
  categoryTickFormatter: h,
603
829
  margin: k,
604
- onPointHover: b,
605
- onPointLeave: x,
606
- className: S,
830
+ onPointHover: v,
831
+ onPointLeave: b,
832
+ className: x,
607
833
  ...w,
608
834
  children: [
609
- u && /* @__PURE__ */ Q(A, { orientation: D ? "horizontal" : "vertical" }),
610
- E.map((e) => /* @__PURE__ */ Q(We, {
835
+ l && /* @__PURE__ */ Q(p, { orientation: D ? "horizontal" : "vertical" }),
836
+ E.map((e) => /* @__PURE__ */ Q(ft, {
611
837
  dataKey: e,
612
838
  stackId: O,
613
- barRadius: l
839
+ barRadius: c
614
840
  }, e)),
615
- d && /* @__PURE__ */ Q(m, { orientation: D ? "bottom" : "left" }),
616
- f && /* @__PURE__ */ Q(c, { orientation: D ? "left" : "bottom" }),
841
+ u && /* @__PURE__ */ Q(d, { orientation: D ? "bottom" : "left" }),
842
+ f && /* @__PURE__ */ Q(j, { orientation: D ? "left" : "bottom" }),
617
843
  C
618
844
  ]
619
845
  });
620
846
  }
621
847
  //#endregion
622
848
  //#region src/charts/DoughnutChart/DoughnutChart.tsx
623
- var Xe = {
849
+ var vt = {
624
850
  top: 10,
625
851
  right: 10,
626
852
  bottom: 10,
627
853
  left: 10
628
- }, Ze = {
854
+ }, yt = {
629
855
  top: 30,
630
856
  right: 60,
631
857
  bottom: 30,
632
858
  left: 60
633
- }, Qe = 50, $e = "\n[data-graphene-chart-doughnut-segment][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center center;\n transition:\n transform 500ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 300ms ease-out;\n}\n@starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 0;\n transform: scale(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-doughnut-segment]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
634
- function et({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: m, children: h, ...g }) {
635
- let _ = E(e, t.length);
636
- return _ === "loading" ? /* @__PURE__ */ Q(T, {
859
+ }, bt = 50, xt = 430, St = "\n[data-graphene-chart-doughnut-segment][data-animated='true'] {\n transform-box: fill-box;\n transform-origin: center center;\n transition:\n transform 500ms cubic-bezier(0.32, 0.72, 0, 1),\n opacity 300ms ease-out;\n}\n@starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 0;\n transform: scale(0);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n transition: none;\n }\n @starting-style {\n [data-graphene-chart-doughnut-segment][data-animated='true'] {\n opacity: 1;\n transform: none;\n }\n }\n}\n[data-graphene-chart-doughnut-segment]:focus-visible {\n outline: 2px solid var(--ring);\n outline-offset: 2px;\n}\n";
860
+ function Ct({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: u, onSegmentLeave: d, ariaLabel: f, margin: p, className: m, children: h, ...g }) {
861
+ let _ = A(e, t.length);
862
+ return _ === "loading" ? /* @__PURE__ */ Q(k, {
637
863
  ariaLabel: f,
638
864
  className: m,
639
865
  ...g
640
- }) : _ === "empty" ? /* @__PURE__ */ Q(x, {
866
+ }) : _ === "empty" ? /* @__PURE__ */ Q(T, {
641
867
  ariaLabel: f ?? "Doughnut chart with 0 segments",
642
868
  className: m,
643
869
  ...g
644
- }) : /* @__PURE__ */ Q(S, { children: /* @__PURE__ */ Q(nt, {
870
+ }) : /* @__PURE__ */ Q(C, { children: /* @__PURE__ */ Q(Tt, {
645
871
  data: t,
646
872
  innerRadius: n,
647
873
  padAngle: r,
@@ -660,7 +886,7 @@ function et({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, l
660
886
  children: h
661
887
  }) });
662
888
  }
663
- function tt({ value: e, label: t }) {
889
+ function wt({ value: e, label: t }) {
664
890
  return /* @__PURE__ */ $("div", {
665
891
  className: "flex max-h-full max-w-full flex-col items-center justify-center gap-[2cqmin] text-center leading-none",
666
892
  children: [/* @__PURE__ */ Q("span", {
@@ -673,30 +899,34 @@ function tt({ value: e, label: t }) {
673
899
  })]
674
900
  });
675
901
  }
676
- function nt({ data: t, innerRadius: a = .6, padAngle: s = .02, cornerRadius: c = 8, labels: u, centerContent: d, centerStat: f, startAngle: p = -Math.PI / 2, animated: m = !0, tooltipLabel: h, onSegmentHover: g, onSegmentLeave: _, ariaLabel: v, margin: b, className: x, children: S, ...C }) {
677
- let { config: w, id: T } = i(), { tooltip: E, legend: D } = y(), O = u !== void 0, k = {
678
- ...O ? Ze : Xe,
902
+ function Tt({ data: e, innerRadius: t = .6, padAngle: i = .02, cornerRadius: a = 8, labels: l, centerContent: u, centerStat: d, startAngle: p = -Math.PI / 2, animated: m = !0, tooltipLabel: h, onSegmentHover: g, onSegmentLeave: _, ariaLabel: y, margin: b, className: x, children: S, ...C }) {
903
+ let { config: w, id: T } = r(), { tooltip: D, legend: O } = v(), k = l !== void 0, A = {
904
+ ...k ? yt : vt,
679
905
  ...b
680
- }, A = q.useRef(null), j = q.useRef(null), M = n(j), N = o(), [P, F] = q.useState(null), I = q.useCallback((e) => F(e), []), L = q.useCallback(() => F(null), []), [R, z] = q.useState(null), ee = Math.max(0, M.width - k.left - k.right), te = Math.max(0, M.height - k.top - k.bottom), B = Math.min(ee, te) / 2, V = B * a, ne = d ?? (f ? /* @__PURE__ */ Q(tt, { ...f }) : null), H = q.useMemo(() => t.reduce((e, t) => e + t.value, 0), [t]), re = q.useMemo(() => Ee().value((e) => e.value).sort(null).startAngle(p).endAngle(p + Math.PI * 2), [p]), ie = q.useMemo(() => t.length > 0 ? re(t) : [], [re, t]), U = q.useMemo(() => be().innerRadius(V).outerRadius(B).padAngle(s).cornerRadius(c), [
681
- V,
682
- B,
683
- s,
684
- c
685
- ]), W = q.useMemo(() => be().innerRadius(B * 1.05).outerRadius(B * 1.05), [B]), ae = q.useMemo(() => be().innerRadius(B * 1.2).outerRadius(B * 1.2), [B]), oe = t.map((e) => ({
906
+ }, j = q.useRef(null), N = q.useRef(null), P = M(N), F = n(), [I, L] = q.useState(null), R = q.useCallback((e) => L(e), []), z = q.useCallback(() => L(null), []), [B, ee] = q.useState(null), te = Math.max(0, P.width - A.left - A.right), V = Math.max(0, P.height - A.top - A.bottom), H = Math.min(te, V) / 2, U = H * t, W = u ?? (d ? /* @__PURE__ */ Q(wt, { ...d }) : null), G = q.useMemo(() => e.reduce((e, t) => e + t.value, 0), [e]), ne = q.useMemo(() => je().value((e) => e.value).sort(null).startAngle(p).endAngle(p + Math.PI * 2), [p]), K = q.useMemo(() => e.length > 0 ? ne(e) : [], [ne, e]), re = q.useMemo(() => Te().innerRadius(U).outerRadius(H).padAngle(i).cornerRadius(a), [
907
+ U,
908
+ H,
909
+ i,
910
+ a
911
+ ]), ie = q.useMemo(() => Te().innerRadius(H * 1.05).outerRadius(H * 1.05), [H]), ae = q.useMemo(() => Te().innerRadius(H * 1.2).outerRadius(H * 1.2), [H]), oe = e.map((e) => ({
686
912
  dataKey: e.category,
687
- value: e.category
913
+ value: e.category,
914
+ stats: {
915
+ value: e.value,
916
+ share: c(e.value, G) / 100
917
+ }
688
918
  }));
689
919
  function se(e) {
690
- if (!u) return "";
691
- if (typeof u == "function") return u(e, H);
692
- switch (u) {
920
+ if (!l) return "";
921
+ if (typeof l == "function") return l(e, G);
922
+ switch (l) {
693
923
  case "category": return typeof w[e.category]?.label == "string" ? w[e.category]?.label : e.category;
694
924
  case "value": return e.value.toLocaleString();
695
- case "percent": return H > 0 ? `${(e.value / H * 100).toFixed(1)}%` : "0%";
925
+ case "percent": return o(c(e.value, G));
696
926
  }
697
927
  }
698
928
  function ce(e) {
699
- let t = H > 0 ? (e.value / H * 100).toFixed(1) : "0";
929
+ let t = c(e.value, G).toFixed(1);
700
930
  return [{
701
931
  dataKey: e.category,
702
932
  name: e.category,
@@ -704,204 +934,196 @@ function nt({ data: t, innerRadius: a = .6, padAngle: s = .02, cornerRadius: c =
704
934
  payload: { percentage: t }
705
935
  }];
706
936
  }
707
- function G(e, t) {
937
+ function le(e, t) {
708
938
  let n = ce(e);
709
- if (E) {
710
- let e = A.current?.getBoundingClientRect();
711
- e && N.show(n, h ?? "", t, e);
939
+ if (D) {
940
+ let e = j.current?.getBoundingClientRect();
941
+ e && F.show(n, h ?? "", t, e);
712
942
  }
713
943
  g?.(e, t);
714
944
  }
715
- function le(e) {
716
- if (!E) return;
717
- let t = A.current?.getBoundingClientRect();
718
- t && N.move(e, t);
945
+ function ue(e) {
946
+ if (!D) return;
947
+ let t = j.current?.getBoundingClientRect();
948
+ t && F.move(e, t);
719
949
  }
720
- function ue() {
721
- N.hide(), _?.();
950
+ function de() {
951
+ F.hide(), _?.();
722
952
  }
723
- function K(e, t, n) {
724
- if (!E) return;
725
- let r = A.current?.getBoundingClientRect();
953
+ function fe(e, t, n) {
954
+ if (!D) return;
955
+ let r = j.current?.getBoundingClientRect();
726
956
  if (!r) return;
727
- let i = U.centroid(t), a = M.width / 2 + i[0], o = M.height / 2 + i[1], s = ce(e), c = {
957
+ let i = re.centroid(t), a = P.width / 2 + i[0], o = P.height / 2 + i[1], s = ce(e), c = {
728
958
  clientX: r.left + a,
729
959
  clientY: r.top + o
730
960
  };
731
- N.show(s, h ?? "", c, r);
961
+ F.show(s, h ?? "", c, r);
732
962
  }
733
- function de() {
734
- N.hide();
963
+ function pe() {
964
+ F.hide();
735
965
  }
736
- let fe = D?.verticalAlign ?? "bottom", J = v ?? `Doughnut chart with ${t.length} segment${t.length === 1 ? "" : "s"}`;
737
- return /* @__PURE__ */ $(ve, { children: [
966
+ let me = y ?? `Doughnut chart with ${e.length} segment${e.length === 1 ? "" : "s"}`;
967
+ return /* @__PURE__ */ $(Ce, { children: [
738
968
  /* @__PURE__ */ Q("style", {
739
969
  precedence: "graphene-charts",
740
- children: $e
970
+ children: St
741
971
  }),
742
972
  S,
743
- /* @__PURE__ */ $("div", {
744
- className: e("flex h-full w-full flex-col", x),
973
+ /* @__PURE__ */ Q(E, {
974
+ legend: O,
975
+ legendProps: {
976
+ items: oe,
977
+ onItemHover: R,
978
+ onItemLeave: z,
979
+ hoveredLegendKey: I
980
+ },
981
+ minWidthForRight: xt,
982
+ className: x,
745
983
  ...C,
746
- children: [
747
- D && fe === "top" && q.cloneElement(D.content, {
748
- items: oe,
749
- verticalAlign: "top",
750
- onItemHover: I,
751
- onItemLeave: L,
752
- hoveredLegendKey: P
753
- }),
754
- /* @__PURE__ */ $("div", {
755
- ref: A,
756
- className: "relative min-h-0 flex-1",
757
- children: [
758
- /* @__PURE__ */ Q("svg", {
759
- ref: j,
760
- role: "img",
761
- "aria-label": J,
762
- className: "h-full w-full",
763
- children: M.width > 0 && M.height > 0 && /* @__PURE__ */ Q("g", {
764
- transform: `translate(${M.width / 2},${M.height / 2})`,
765
- children: ie.map((e) => {
766
- let t = e.data, n = w[t.category], i = n?.color ?? `var(--color-${r(t.category)})`, a = H > 0 ? (t.value / H * 100).toFixed(1) : "0", o = `${typeof n?.label == "string" ? n.label : t.category}: ${t.value.toLocaleString()} (${a}%)`;
767
- return /* @__PURE__ */ $("g", { children: [/* @__PURE__ */ Q("path", {
768
- d: U(e) ?? "",
769
- fill: i,
770
- tabIndex: 0,
771
- role: "img",
772
- "aria-label": o,
773
- "data-graphene-chart-doughnut-segment": !0,
774
- "data-animated": m ? "true" : "false",
775
- className: "transition-opacity duration-150 hover:opacity-80 focus:outline-none",
776
- style: P === null ? void 0 : { opacity: P === t.category ? 1 : .15 },
777
- onMouseEnter: (e) => G(t, e),
778
- onMouseMove: le,
779
- onMouseLeave: ue,
780
- onFocus: (n) => K(t, e, n),
781
- onBlur: de
782
- }), O && (() => {
783
- let n = (e.startAngle + e.endAngle) / 2, r = n < Math.PI / 2 || n > 3 * Math.PI / 2, i = W.centroid(e), a = ae.centroid(e), o = a[0] + (r ? 8 : -8), s = a[1], c = o + (r ? 4 : -4), l = se(t), u = l.length > 7, d = u ? `${l.slice(0, 6)}…` : l, f = M.width / 2, p = M.height / 2;
784
- return /* @__PURE__ */ $("g", {
785
- "aria-hidden": "true",
786
- className: "cursor-default",
787
- onMouseEnter: u ? () => z({
788
- text: l,
789
- x: f + c,
790
- y: p + s
791
- }) : void 0,
792
- onMouseLeave: u ? () => z(null) : void 0,
793
- children: [
794
- /* @__PURE__ */ Q("polyline", {
795
- points: `${i[0]},${i[1]} ${a[0]},${a[1]} ${o},${s}`,
796
- fill: "none",
797
- className: "stroke-muted-foreground",
798
- strokeWidth: 1
799
- }),
800
- /* @__PURE__ */ Q("text", {
801
- x: c,
802
- y: s,
803
- textAnchor: r ? "start" : "end",
804
- dominantBaseline: "central",
805
- className: "pointer-events-none fill-foreground text-[11px] font-medium select-none",
806
- children: d
807
- }),
808
- u && /* @__PURE__ */ Q("rect", {
809
- x: r ? c : c - Qe,
810
- y: s - 8,
811
- width: Qe,
812
- height: 16,
813
- fill: "transparent"
814
- })
815
- ]
816
- });
817
- })()] }, t.category);
818
- })
819
- })
820
- }),
821
- ne && M.width > 0 && M.height > 0 && V > 0 && /* @__PURE__ */ Q("div", {
822
- className: "pointer-events-none absolute inset-0 flex items-center justify-center",
823
- "aria-hidden": "true",
824
- children: /* @__PURE__ */ Q("div", {
825
- className: "pointer-events-auto flex items-center justify-center overflow-clip",
826
- style: {
827
- width: V * 2,
828
- height: V * 2,
829
- containerType: "size",
830
- containerName: "doughnut-center",
831
- "--graphene-chart-doughnut-hole": `${V * 2}px`
832
- },
833
- children: ne
984
+ children: /* @__PURE__ */ $("div", {
985
+ ref: j,
986
+ className: "relative min-h-0 min-w-0 flex-1",
987
+ children: [
988
+ /* @__PURE__ */ Q("svg", {
989
+ ref: N,
990
+ role: "img",
991
+ "aria-label": me,
992
+ className: "h-full w-full",
993
+ children: P.width > 0 && P.height > 0 && /* @__PURE__ */ Q("g", {
994
+ transform: `translate(${P.width / 2},${P.height / 2})`,
995
+ children: K.map((e) => {
996
+ let t = e.data, n = w[t.category], r = n?.color ?? `var(--color-${s(t.category)})`, i = c(t.value, G).toFixed(1), a = `${typeof n?.label == "string" ? n.label : t.category}: ${t.value.toLocaleString()} (${i}%)`;
997
+ return /* @__PURE__ */ $("g", { children: [/* @__PURE__ */ Q("path", {
998
+ d: re(e) ?? "",
999
+ fill: r,
1000
+ tabIndex: 0,
1001
+ role: "img",
1002
+ "aria-label": a,
1003
+ "data-graphene-chart-doughnut-segment": !0,
1004
+ "data-animated": m ? "true" : "false",
1005
+ className: "transition-opacity duration-150 hover:opacity-80 focus:outline-none",
1006
+ style: I === null ? void 0 : { opacity: I === t.category ? 1 : .15 },
1007
+ onMouseEnter: (e) => le(t, e),
1008
+ onMouseMove: ue,
1009
+ onMouseLeave: de,
1010
+ onFocus: (n) => fe(t, e, n),
1011
+ onBlur: pe
1012
+ }), k && (() => {
1013
+ let n = (e.startAngle + e.endAngle) / 2, r = n < Math.PI / 2 || n > 3 * Math.PI / 2, i = ie.centroid(e), a = ae.centroid(e), o = a[0] + (r ? 8 : -8), s = a[1], c = o + (r ? 4 : -4), l = se(t), u = l.length > 7, d = u ? `${l.slice(0, 6)}…` : l, f = P.width / 2, p = P.height / 2;
1014
+ return /* @__PURE__ */ $("g", {
1015
+ "aria-hidden": "true",
1016
+ className: "cursor-default",
1017
+ onMouseEnter: u ? () => ee({
1018
+ text: l,
1019
+ x: f + c,
1020
+ y: p + s
1021
+ }) : void 0,
1022
+ onMouseLeave: u ? () => ee(null) : void 0,
1023
+ children: [
1024
+ /* @__PURE__ */ Q("polyline", {
1025
+ points: `${i[0]},${i[1]} ${a[0]},${a[1]} ${o},${s}`,
1026
+ fill: "none",
1027
+ className: "stroke-muted-foreground",
1028
+ strokeWidth: 1
1029
+ }),
1030
+ /* @__PURE__ */ Q("text", {
1031
+ x: c,
1032
+ y: s,
1033
+ textAnchor: r ? "start" : "end",
1034
+ dominantBaseline: "central",
1035
+ className: "pointer-events-none fill-foreground text-[11px] font-medium select-none",
1036
+ children: d
1037
+ }),
1038
+ u && /* @__PURE__ */ Q("rect", {
1039
+ x: r ? c : c - bt,
1040
+ y: s - 8,
1041
+ width: bt,
1042
+ height: 16,
1043
+ fill: "transparent"
1044
+ })
1045
+ ]
1046
+ });
1047
+ })()] }, t.category);
834
1048
  })
835
- }),
836
- R && /* @__PURE__ */ Q("div", {
837
- className: "pointer-events-none absolute z-10 rounded-md border border-border/50 bg-background px-2 py-1 text-xs shadow-md",
1049
+ })
1050
+ }),
1051
+ W && P.width > 0 && P.height > 0 && U > 0 && /* @__PURE__ */ Q("div", {
1052
+ className: "pointer-events-none absolute inset-0 flex items-center justify-center",
1053
+ "aria-hidden": "true",
1054
+ children: /* @__PURE__ */ Q("div", {
1055
+ className: "pointer-events-auto flex items-center justify-center overflow-clip",
838
1056
  style: {
839
- left: R.x,
840
- top: R.y,
841
- transform: "translate(-50%, -130%)"
1057
+ width: U * 2,
1058
+ height: U * 2,
1059
+ containerType: "size",
1060
+ containerName: "doughnut-center",
1061
+ "--graphene-chart-doughnut-hole": `${U * 2}px`
842
1062
  },
843
- children: R.text
844
- }),
845
- /* @__PURE__ */ Q("div", {
846
- className: "sr-only",
847
- children: /* @__PURE__ */ $("table", { children: [
848
- /* @__PURE__ */ Q("caption", { children: J }),
849
- /* @__PURE__ */ Q("thead", { children: /* @__PURE__ */ $("tr", { children: [
850
- /* @__PURE__ */ Q("th", {
851
- scope: "col",
852
- children: "Category"
853
- }),
1063
+ children: W
1064
+ })
1065
+ }),
1066
+ B && /* @__PURE__ */ Q("div", {
1067
+ className: "pointer-events-none absolute z-10 rounded-md border border-border/50 bg-background px-2 py-1 text-xs shadow-md",
1068
+ style: {
1069
+ left: B.x,
1070
+ top: B.y,
1071
+ transform: "translate(-50%, -130%)"
1072
+ },
1073
+ children: B.text
1074
+ }),
1075
+ /* @__PURE__ */ Q("div", {
1076
+ className: "sr-only",
1077
+ children: /* @__PURE__ */ $("table", { children: [
1078
+ /* @__PURE__ */ Q("caption", { children: me }),
1079
+ /* @__PURE__ */ Q("thead", { children: /* @__PURE__ */ $("tr", { children: [
1080
+ /* @__PURE__ */ Q("th", {
1081
+ scope: "col",
1082
+ children: "Category"
1083
+ }),
1084
+ /* @__PURE__ */ Q("th", {
1085
+ scope: "col",
1086
+ children: "Value"
1087
+ }),
1088
+ /* @__PURE__ */ Q("th", {
1089
+ scope: "col",
1090
+ children: "Percentage"
1091
+ })
1092
+ ] }) }),
1093
+ /* @__PURE__ */ Q("tbody", { children: e.map((e) => {
1094
+ let t = c(e.value, G).toFixed(1);
1095
+ return /* @__PURE__ */ $("tr", { children: [
854
1096
  /* @__PURE__ */ Q("th", {
855
- scope: "col",
856
- children: "Value"
1097
+ scope: "row",
1098
+ children: typeof w[e.category]?.label == "string" ? w[e.category]?.label : e.category
857
1099
  }),
858
- /* @__PURE__ */ Q("th", {
859
- scope: "col",
860
- children: "Percentage"
861
- })
862
- ] }) }),
863
- /* @__PURE__ */ Q("tbody", { children: t.map((e) => {
864
- let t = H > 0 ? (e.value / H * 100).toFixed(1) : "0";
865
- return /* @__PURE__ */ $("tr", { children: [
866
- /* @__PURE__ */ Q("th", {
867
- scope: "row",
868
- children: typeof w[e.category]?.label == "string" ? w[e.category]?.label : e.category
869
- }),
870
- /* @__PURE__ */ Q("td", { children: e.value.toLocaleString() }),
871
- /* @__PURE__ */ $("td", { children: [t, "%"] })
872
- ] }, e.category);
873
- }) })
874
- ] })
875
- }),
876
- E && N.state && /* @__PURE__ */ Q(l, {
877
- state: N.state,
878
- containerRef: A,
879
- chartId: T,
880
- children: q.cloneElement(E.content, {
881
- label: N.state.label,
882
- items: N.state.items,
883
- active: !0
884
- })
1100
+ /* @__PURE__ */ Q("td", { children: e.value.toLocaleString() }),
1101
+ /* @__PURE__ */ $("td", { children: [t, "%"] })
1102
+ ] }, e.category);
1103
+ }) })
1104
+ ] })
1105
+ }),
1106
+ D && F.state && /* @__PURE__ */ Q(f, {
1107
+ state: F.state,
1108
+ containerRef: j,
1109
+ chartId: T,
1110
+ children: q.cloneElement(D.content, {
1111
+ label: F.state.label,
1112
+ items: F.state.items,
1113
+ active: !0
885
1114
  })
886
- ]
887
- }),
888
- D && fe === "bottom" && q.cloneElement(D.content, {
889
- items: oe,
890
- verticalAlign: "bottom",
891
- onItemHover: I,
892
- onItemLeave: L,
893
- hoveredLegendKey: P
894
- })
895
- ]
1115
+ })
1116
+ ]
1117
+ })
896
1118
  })
897
1119
  ] });
898
1120
  }
899
1121
  //#endregion
900
1122
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
901
- var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), it = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), at = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ot = (e) => {
902
- let t = at(e);
1123
+ var Et = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Dt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ot = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), kt = (e) => {
1124
+ let t = Ot(e);
903
1125
  return t.charAt(0).toUpperCase() + t.slice(1);
904
- }, st = {
1126
+ }, At = {
905
1127
  xmlns: "http://www.w3.org/2000/svg",
906
1128
  width: 24,
907
1129
  height: 24,
@@ -911,43 +1133,43 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
911
1133
  strokeWidth: 2,
912
1134
  strokeLinecap: "round",
913
1135
  strokeLinejoin: "round"
914
- }, ct = (e) => {
1136
+ }, jt = (e) => {
915
1137
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
916
1138
  return !1;
917
- }, lt = de({}), ut = () => pe(lt), dt = J(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
918
- let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = ut() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
919
- return fe("svg", {
1139
+ }, Mt = ge({}), Nt = () => ve(Mt), Pt = J(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
1140
+ let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = Nt() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
1141
+ return _e("svg", {
920
1142
  ref: c,
921
- ...st,
922
- width: t ?? l ?? st.width,
923
- height: t ?? l ?? st.height,
1143
+ ...At,
1144
+ width: t ?? l ?? At.width,
1145
+ height: t ?? l ?? At.height,
924
1146
  stroke: e ?? f,
925
1147
  strokeWidth: m,
926
- className: rt("lucide", p, i),
927
- ...!a && !ct(s) && { "aria-hidden": "true" },
1148
+ className: Et("lucide", p, i),
1149
+ ...!a && !jt(s) && { "aria-hidden": "true" },
928
1150
  ...s
929
- }, [...o.map(([e, t]) => fe(e, t)), ...Array.isArray(a) ? a : [a]]);
930
- }), ft = (e, t) => {
931
- let n = J(({ className: n, ...r }, i) => fe(dt, {
1151
+ }, [...o.map(([e, t]) => _e(e, t)), ...Array.isArray(a) ? a : [a]]);
1152
+ }), Ft = (e, t) => {
1153
+ let n = J(({ className: n, ...r }, i) => _e(Pt, {
932
1154
  ref: i,
933
1155
  iconNode: t,
934
- className: rt(`lucide-${it(ot(e))}`, `lucide-${e}`, n),
1156
+ className: Et(`lucide-${Dt(kt(e))}`, `lucide-${e}`, n),
935
1157
  ...r
936
1158
  }));
937
- return n.displayName = ot(e), n;
938
- }, pt = ft("activity", [["path", {
1159
+ return n.displayName = kt(e), n;
1160
+ }, It = Ft("activity", [["path", {
939
1161
  d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
940
1162
  key: "169zse"
941
- }]]), mt = ft("chevron-down", [["path", {
1163
+ }]]), Lt = Ft("chevron-down", [["path", {
942
1164
  d: "m6 9 6 6 6-6",
943
1165
  key: "qrunsl"
944
- }]]), ht = ft("chevron-right", [["path", {
1166
+ }]]), Rt = Ft("chevron-right", [["path", {
945
1167
  d: "m9 18 6-6-6-6",
946
1168
  key: "mthhwq"
947
- }]]), gt = ft("chevron-up", [["path", {
1169
+ }]]), zt = Ft("chevron-up", [["path", {
948
1170
  d: "m18 15-6-6-6 6",
949
1171
  key: "153udz"
950
- }]]), _t = ft("circle-x", [
1172
+ }]]), Bt = Ft("circle-x", [
951
1173
  ["circle", {
952
1174
  cx: "12",
953
1175
  cy: "12",
@@ -962,7 +1184,7 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
962
1184
  d: "m9 9 6 6",
963
1185
  key: "z0biqf"
964
1186
  }]
965
- ]), vt = ft("clock", [["circle", {
1187
+ ]), Vt = Ft("clock", [["circle", {
966
1188
  cx: "12",
967
1189
  cy: "12",
968
1190
  r: "10",
@@ -970,7 +1192,7 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
970
1192
  }], ["path", {
971
1193
  d: "M12 6v6l4 2",
972
1194
  key: "mmk7yg"
973
- }]]), yt = ft("info", [
1195
+ }]]), Ht = Ft("info", [
974
1196
  ["circle", {
975
1197
  cx: "12",
976
1198
  cy: "12",
@@ -985,7 +1207,7 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
985
1207
  d: "M12 8h.01",
986
1208
  key: "e9boi3"
987
1209
  }]
988
- ]), bt = ft("search", [["path", {
1210
+ ]), Ut = Ft("search", [["path", {
989
1211
  d: "m21 21-4.34-4.34",
990
1212
  key: "14j7rj"
991
1213
  }], ["circle", {
@@ -993,7 +1215,7 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
993
1215
  cy: "11",
994
1216
  r: "8",
995
1217
  key: "4ej97u"
996
- }]]), xt = ft("server", [
1218
+ }]]), Wt = Ft("server", [
997
1219
  ["rect", {
998
1220
  width: "20",
999
1221
  height: "8",
@@ -1026,13 +1248,13 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
1026
1248
  y2: "18",
1027
1249
  key: "nzw8ys"
1028
1250
  }]
1029
- ]), St = ft("x", [["path", {
1251
+ ]), Gt = Ft("x", [["path", {
1030
1252
  d: "M18 6 6 18",
1031
1253
  key: "1bl5f8"
1032
1254
  }], ["path", {
1033
1255
  d: "m6 6 12 12",
1034
1256
  key: "d8bk6v"
1035
- }]]), Ct = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1257
+ }]]), Kt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1036
1258
  ref: n,
1037
1259
  xmlns: "http://www.w3.org/2000/svg",
1038
1260
  width: 24,
@@ -1066,8 +1288,8 @@ var rt = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
1066
1288
  })
1067
1289
  })]
1068
1290
  }));
1069
- Ct.displayName = "AnthropicIcon";
1070
- var wt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1291
+ Kt.displayName = "AnthropicIcon";
1292
+ var qt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1071
1293
  ref: n,
1072
1294
  xmlns: "http://www.w3.org/2000/svg",
1073
1295
  width: 24,
@@ -1149,8 +1371,8 @@ var wt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1149
1371
  })
1150
1372
  ]
1151
1373
  }));
1152
- wt.displayName = "ApigeeIcon";
1153
- var Tt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1374
+ qt.displayName = "ApigeeIcon";
1375
+ var Jt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1154
1376
  ref: n,
1155
1377
  xmlns: "http://www.w3.org/2000/svg",
1156
1378
  width: 24,
@@ -1226,13 +1448,13 @@ var Tt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1226
1448
  ]
1227
1449
  })]
1228
1450
  }));
1229
- Tt.displayName = "AwsIcon";
1230
- var Et = [
1451
+ Jt.displayName = "AwsIcon";
1452
+ var Yt = [
1231
1453
  "M11.96,11.68s.07-.1.07-.24v-3.87c0-.85.66-1.76,1.59-2.03-.06-.19-.64-2.11-.81-2.65-.17-.56-.67-1.9-1.29-1.9,0,0,0,0-.01,0h0s-.09.05-.13.13c-.32.58-.46,3.02-.46,4.84v2.26c.27.97.91,3.22.96,3.35,0,0,.05.1.09.1h0Z",
1232
1454
  "M11.96,11.68s.07-.1.07-.24v-3.87c0-.85.66-1.76,1.59-2.03-.06-.19-.64-2.11-.81-2.65-.17-.56-.67-1.9-1.29-1.9,0,0,0,0-.01,0h0s-.09.05-.13.13c-.32.58-.46,3.02-.46,4.84v2.26c.27.97.91,3.22.96,3.35,0,0,.05.1.09.1h0Z",
1233
1455
  "M16.01,5.46h-1.81c-1.21,0-2.17,1.09-2.17,2.11v3.87c0,.14-.04.24-.07.24s-.09-.1-.09-.1c0,0,.07.21.17.21h1.98c.62,0,2.48-.61,2.48-2.52v-3.25c0-.41-.24-.55-.49-.55Z",
1234
1456
  "M2.34,17h5.38c2.35,0,3.2-2.03,3.2-3.81v-7.23c0-2.08.19-4.97.61-4.97h-3.23c-.77,0-1.43.82-2.18,2.48-.75,1.66-4.36,11.87-4.52,12.36-.26.79-.02,1.16.74,1.16Z"
1235
- ], Dt = "translate(0 20) scale(1 -1)", Ot = J(({ variant: e = "brand", ...t }, n) => {
1457
+ ], Xt = "translate(0 20) scale(1 -1)", Zt = J(({ variant: e = "brand", ...t }, n) => {
1236
1458
  let r = X();
1237
1459
  return e === "mono" ? /* @__PURE__ */ Q("svg", {
1238
1460
  ref: n,
@@ -1242,7 +1464,7 @@ var Et = [
1242
1464
  viewBox: "0 0 18 18",
1243
1465
  fill: "none",
1244
1466
  ...t,
1245
- children: Et.map((e, t) => /* @__PURE__ */ Q("path", {
1467
+ children: Yt.map((e, t) => /* @__PURE__ */ Q("path", {
1246
1468
  fill: "currentColor",
1247
1469
  d: e
1248
1470
  }, t))
@@ -1257,19 +1479,19 @@ var Et = [
1257
1479
  children: [
1258
1480
  /* @__PURE__ */ Q("path", {
1259
1481
  fill: `url(#${r}-a)`,
1260
- d: Et[0]
1482
+ d: Yt[0]
1261
1483
  }),
1262
1484
  /* @__PURE__ */ Q("path", {
1263
1485
  fill: `url(#${r}-b)`,
1264
- d: Et[1]
1486
+ d: Yt[1]
1265
1487
  }),
1266
1488
  /* @__PURE__ */ Q("path", {
1267
1489
  fill: `url(#${r}-c)`,
1268
- d: Et[2]
1490
+ d: Yt[2]
1269
1491
  }),
1270
1492
  /* @__PURE__ */ Q("path", {
1271
1493
  fill: `url(#${r}-d)`,
1272
- d: Et[3]
1494
+ d: Yt[3]
1273
1495
  }),
1274
1496
  /* @__PURE__ */ $("defs", { children: [
1275
1497
  /* @__PURE__ */ $("linearGradient", {
@@ -1278,7 +1500,7 @@ var Et = [
1278
1500
  y1: "13.66",
1279
1501
  x2: "13.62",
1280
1502
  y2: "13.66",
1281
- gradientTransform: Dt,
1503
+ gradientTransform: Xt,
1282
1504
  gradientUnits: "userSpaceOnUse",
1283
1505
  children: [
1284
1506
  /* @__PURE__ */ Q("stop", {
@@ -1329,7 +1551,7 @@ var Et = [
1329
1551
  y1: "8.32",
1330
1552
  x2: "12.26",
1331
1553
  y2: "18.23",
1332
- gradientTransform: Dt,
1554
+ gradientTransform: Xt,
1333
1555
  gradientUnits: "userSpaceOnUse",
1334
1556
  children: [
1335
1557
  /* @__PURE__ */ Q("stop", {
@@ -1352,7 +1574,7 @@ var Et = [
1352
1574
  y1: "8.27",
1353
1575
  x2: "14.19",
1354
1576
  y2: "14.47",
1355
- gradientTransform: Dt,
1577
+ gradientTransform: Xt,
1356
1578
  gradientUnits: "userSpaceOnUse",
1357
1579
  children: [
1358
1580
  /* @__PURE__ */ Q("stop", {
@@ -1379,7 +1601,7 @@ var Et = [
1379
1601
  y1: "3",
1380
1602
  x2: "6.51",
1381
1603
  y2: "19.15",
1382
- gradientTransform: Dt,
1604
+ gradientTransform: Xt,
1383
1605
  gradientUnits: "userSpaceOnUse",
1384
1606
  children: [
1385
1607
  /* @__PURE__ */ Q("stop", {
@@ -1404,8 +1626,8 @@ var Et = [
1404
1626
  ]
1405
1627
  });
1406
1628
  });
1407
- Ot.displayName = "AzureAiFoundryIcon";
1408
- var kt = J(({ variant: e = "brand", ...t }, n) => {
1629
+ Zt.displayName = "AzureAiFoundryIcon";
1630
+ var Qt = J(({ variant: e = "brand", ...t }, n) => {
1409
1631
  let r = X();
1410
1632
  return e === "mono" ? /* @__PURE__ */ Q("svg", {
1411
1633
  ref: n,
@@ -1500,8 +1722,8 @@ var kt = J(({ variant: e = "brand", ...t }, n) => {
1500
1722
  ]
1501
1723
  });
1502
1724
  });
1503
- kt.displayName = "AzureIcon";
1504
- var At = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1725
+ Qt.displayName = "AzureIcon";
1726
+ var $t = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1505
1727
  ref: n,
1506
1728
  xmlns: "http://www.w3.org/2000/svg",
1507
1729
  width: 24,
@@ -1531,8 +1753,8 @@ var At = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1531
1753
  d: "m17.898 11.353-.994 6.064c-.065.367-.324.583-.691.583H7.787c-.367 0-.627-.216-.691-.583L5.346 6.604C5.28 6.237 5.476 6 5.82 6h12.358c.346 0 .54.237.475.604l-.475 2.85c-.065.41-.303.582-.691.582h-7.432c-.109 0-.173.065-.152.194l.584 3.583c.021.086.086.151.172.151h2.68c.086 0 .15-.065.172-.151l.41-2.59c.044-.324.26-.453.563-.453H17.4c.432 0 .562.216.497.582"
1532
1754
  })]
1533
1755
  }));
1534
- At.displayName = "BitbucketIcon";
1535
- var jt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1756
+ $t.displayName = "BitbucketIcon";
1757
+ var en = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1536
1758
  ref: n,
1537
1759
  xmlns: "http://www.w3.org/2000/svg",
1538
1760
  width: 24,
@@ -1558,8 +1780,8 @@ var jt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1558
1780
  d: "M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"
1559
1781
  })
1560
1782
  }));
1561
- jt.displayName = "ClaudeIcon";
1562
- var Mt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1783
+ en.displayName = "ClaudeIcon";
1784
+ var tn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1563
1785
  ref: n,
1564
1786
  xmlns: "http://www.w3.org/2000/svg",
1565
1787
  width: 24,
@@ -1635,8 +1857,8 @@ var Mt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1635
1857
  ]
1636
1858
  })]
1637
1859
  }));
1638
- Mt.displayName = "CohereIcon";
1639
- var Nt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1860
+ tn.displayName = "CohereIcon";
1861
+ var nn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1640
1862
  ref: n,
1641
1863
  xmlns: "http://www.w3.org/2000/svg",
1642
1864
  width: 24,
@@ -1670,8 +1892,8 @@ var Nt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1670
1892
  })
1671
1893
  })]
1672
1894
  }));
1673
- Nt.displayName = "CursorIcon";
1674
- var Pt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1895
+ nn.displayName = "CursorIcon";
1896
+ var rn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1675
1897
  ref: n,
1676
1898
  xmlns: "http://www.w3.org/2000/svg",
1677
1899
  width: 24,
@@ -1696,8 +1918,8 @@ var Pt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1696
1918
  d: "M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45"
1697
1919
  })
1698
1920
  }));
1699
- Pt.displayName = "DeepSeekIcon";
1700
- var Ft = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1921
+ rn.displayName = "DeepSeekIcon";
1922
+ var an = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
1701
1923
  ref: n,
1702
1924
  xmlns: "http://www.w3.org/2000/svg",
1703
1925
  width: 24,
@@ -1742,8 +1964,8 @@ var Ft = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1742
1964
  })
1743
1965
  ]
1744
1966
  }));
1745
- Ft.displayName = "FireworksAiIcon";
1746
- var It = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1967
+ an.displayName = "FireworksAiIcon";
1968
+ var on = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1747
1969
  ref: n,
1748
1970
  xmlns: "http://www.w3.org/2000/svg",
1749
1971
  width: 24,
@@ -1779,8 +2001,8 @@ var It = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1779
2001
  })
1780
2002
  ]
1781
2003
  }));
1782
- It.displayName = "GcpIcon";
1783
- var Lt = J(({ variant: e = "brand", ...t }, n) => {
2004
+ on.displayName = "GcpIcon";
2005
+ var sn = J(({ variant: e = "brand", ...t }, n) => {
1784
2006
  let r = X();
1785
2007
  return e === "mono" ? /* @__PURE__ */ Q("svg", {
1786
2008
  ref: n,
@@ -1829,8 +2051,8 @@ var Lt = J(({ variant: e = "brand", ...t }, n) => {
1829
2051
  }) })]
1830
2052
  });
1831
2053
  });
1832
- Lt.displayName = "GeminiIcon";
1833
- var Rt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2054
+ sn.displayName = "GeminiIcon";
2055
+ var cn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1834
2056
  ref: n,
1835
2057
  xmlns: "http://www.w3.org/2000/svg",
1836
2058
  width: 24,
@@ -1867,8 +2089,8 @@ var Rt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1867
2089
  })
1868
2090
  })]
1869
2091
  }));
1870
- Rt.displayName = "GithubIcon";
1871
- var zt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2092
+ cn.displayName = "GithubIcon";
2093
+ var ln = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1872
2094
  ref: n,
1873
2095
  xmlns: "http://www.w3.org/2000/svg",
1874
2096
  width: 24,
@@ -1910,8 +2132,8 @@ var zt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1910
2132
  })
1911
2133
  ]
1912
2134
  }));
1913
- zt.displayName = "GitlabIcon";
1914
- var Bt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2135
+ ln.displayName = "GitlabIcon";
2136
+ var un = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1915
2137
  ref: n,
1916
2138
  xmlns: "http://www.w3.org/2000/svg",
1917
2139
  width: 24,
@@ -1939,8 +2161,8 @@ var Bt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1939
2161
  d: "m18.445 4.406-9.468 13.74 7.341.665-1.69 9.578 9.469-13.74-7.342-.664 1.69-9.579Z"
1940
2162
  })]
1941
2163
  }));
1942
- Bt.displayName = "GroqIcon";
1943
- var Vt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2164
+ un.displayName = "GroqIcon";
2165
+ var dn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1944
2166
  ref: n,
1945
2167
  xmlns: "http://www.w3.org/2000/svg",
1946
2168
  width: 24,
@@ -1974,8 +2196,8 @@ var Vt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
1974
2196
  })
1975
2197
  })]
1976
2198
  }));
1977
- Vt.displayName = "KafkaIcon";
1978
- var Ht = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2199
+ dn.displayName = "KafkaIcon";
2200
+ var fn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
1979
2201
  ref: n,
1980
2202
  xmlns: "http://www.w3.org/2000/svg",
1981
2203
  width: 24,
@@ -2014,8 +2236,8 @@ var Ht = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
2014
2236
  })
2015
2237
  ]
2016
2238
  }));
2017
- Ht.displayName = "KubernetesIcon";
2018
- var Ut = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
2239
+ fn.displayName = "KubernetesIcon";
2240
+ var pn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
2019
2241
  ref: n,
2020
2242
  xmlns: "http://www.w3.org/2000/svg",
2021
2243
  width: 24,
@@ -2146,8 +2368,8 @@ var Ut = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
2146
2368
  })
2147
2369
  ]
2148
2370
  }));
2149
- Ut.displayName = "MistralIcon";
2150
- var Wt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2371
+ pn.displayName = "MistralIcon";
2372
+ var mn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2151
2373
  ref: n,
2152
2374
  xmlns: "http://www.w3.org/2000/svg",
2153
2375
  width: 24,
@@ -2181,8 +2403,8 @@ var Wt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
2181
2403
  })
2182
2404
  })]
2183
2405
  }));
2184
- Wt.displayName = "OpenAIIcon";
2185
- var Gt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2406
+ mn.displayName = "OpenAIIcon";
2407
+ var hn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ Q("svg", {
2186
2408
  ref: n,
2187
2409
  xmlns: "http://www.w3.org/2000/svg",
2188
2410
  width: 24,
@@ -2253,8 +2475,8 @@ var Gt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
2253
2475
  })
2254
2476
  ]
2255
2477
  }));
2256
- Gt.displayName = "OpenApiIcon";
2257
- var Kt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
2478
+ hn.displayName = "OpenApiIcon";
2479
+ var gn = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */ $("svg", {
2258
2480
  ref: n,
2259
2481
  xmlns: "http://www.w3.org/2000/svg",
2260
2482
  width: 24,
@@ -2299,8 +2521,8 @@ var Kt = J(({ variant: e = "brand", ...t }, n) => e === "mono" ? /* @__PURE__ */
2299
2521
  })
2300
2522
  ]
2301
2523
  }));
2302
- Kt.displayName = "TogetherAiIcon";
2303
- var qt = J(({ variant: e, ...t }, n) => {
2524
+ gn.displayName = "TogetherAiIcon";
2525
+ var _n = J(({ variant: e, ...t }, n) => {
2304
2526
  let r = X();
2305
2527
  return /* @__PURE__ */ $("svg", {
2306
2528
  ref: n,
@@ -2383,8 +2605,8 @@ var qt = J(({ variant: e, ...t }, n) => {
2383
2605
  ]
2384
2606
  });
2385
2607
  });
2386
- qt.displayName = "XaiIcon";
2387
- var Jt = J((e, t) => {
2608
+ _n.displayName = "XaiIcon";
2609
+ var vn = J((e, t) => {
2388
2610
  let n = X();
2389
2611
  return /* @__PURE__ */ $("svg", {
2390
2612
  ref: t,
@@ -2609,8 +2831,8 @@ var Jt = J((e, t) => {
2609
2831
  })]
2610
2832
  });
2611
2833
  });
2612
- Jt.displayName = "GioAgentManagementIcon";
2613
- var Yt = J((e, t) => {
2834
+ vn.displayName = "GioAgentManagementIcon";
2835
+ var yn = J((e, t) => {
2614
2836
  let n = X();
2615
2837
  return /* @__PURE__ */ $("svg", {
2616
2838
  ref: t,
@@ -2848,8 +3070,8 @@ var Yt = J((e, t) => {
2848
3070
  })]
2849
3071
  });
2850
3072
  });
2851
- Yt.displayName = "GioApiManagementIcon";
2852
- var Xt = J((e, t) => {
3073
+ yn.displayName = "GioApiManagementIcon";
3074
+ var bn = J((e, t) => {
2853
3075
  let n = X();
2854
3076
  return /* @__PURE__ */ $("svg", {
2855
3077
  ref: t,
@@ -2976,8 +3198,8 @@ var Xt = J((e, t) => {
2976
3198
  })]
2977
3199
  });
2978
3200
  });
2979
- Xt.displayName = "GioAuthorizationIcon";
2980
- var Zt = J((e, t) => {
3201
+ bn.displayName = "GioAuthorizationIcon";
3202
+ var xn = J((e, t) => {
2981
3203
  let n = X();
2982
3204
  return /* @__PURE__ */ $("svg", {
2983
3205
  ref: t,
@@ -3164,8 +3386,8 @@ var Zt = J((e, t) => {
3164
3386
  })]
3165
3387
  });
3166
3388
  });
3167
- Zt.displayName = "GioCatalogIcon";
3168
- var Qt = J((e, t) => {
3389
+ xn.displayName = "GioCatalogIcon";
3390
+ var Sn = J((e, t) => {
3169
3391
  let n = X();
3170
3392
  return /* @__PURE__ */ $("svg", {
3171
3393
  ref: t,
@@ -3390,8 +3612,8 @@ var Qt = J((e, t) => {
3390
3612
  })]
3391
3613
  });
3392
3614
  });
3393
- Qt.displayName = "GioDeveloperPortalIcon";
3394
- var $t = J((e, t) => {
3615
+ Sn.displayName = "GioDeveloperPortalIcon";
3616
+ var Cn = J((e, t) => {
3395
3617
  let n = X();
3396
3618
  return /* @__PURE__ */ $("svg", {
3397
3619
  ref: t,
@@ -3666,8 +3888,8 @@ var $t = J((e, t) => {
3666
3888
  })]
3667
3889
  });
3668
3890
  });
3669
- $t.displayName = "GioEdgeManagementIcon";
3670
- var en = J((e, t) => {
3891
+ Cn.displayName = "GioEdgeManagementIcon";
3892
+ var wn = J((e, t) => {
3671
3893
  let n = X();
3672
3894
  return /* @__PURE__ */ $("svg", {
3673
3895
  ref: t,
@@ -3854,8 +4076,8 @@ var en = J((e, t) => {
3854
4076
  })]
3855
4077
  });
3856
4078
  });
3857
- en.displayName = "GioEventApiManagementIcon";
3858
- var tn = J((e, t) => {
4079
+ wn.displayName = "GioEventApiManagementIcon";
4080
+ var Tn = J((e, t) => {
3859
4081
  let n = X();
3860
4082
  return /* @__PURE__ */ $("svg", {
3861
4083
  ref: t,
@@ -4096,8 +4318,8 @@ var tn = J((e, t) => {
4096
4318
  })]
4097
4319
  });
4098
4320
  });
4099
- tn.displayName = "GioGammaIcon";
4100
- var nn = J((e, t) => {
4321
+ Tn.displayName = "GioGammaIcon";
4322
+ var En = J((e, t) => {
4101
4323
  let n = X();
4102
4324
  return /* @__PURE__ */ $("svg", {
4103
4325
  ref: t,
@@ -4338,8 +4560,8 @@ var nn = J((e, t) => {
4338
4560
  })]
4339
4561
  });
4340
4562
  });
4341
- nn.displayName = "GioHomeIcon";
4342
- var rn = J((e, t) => {
4563
+ En.displayName = "GioHomeIcon";
4564
+ var Dn = J((e, t) => {
4343
4565
  let n = X();
4344
4566
  return /* @__PURE__ */ $("svg", {
4345
4567
  ref: t,
@@ -4634,8 +4856,8 @@ var rn = J((e, t) => {
4634
4856
  })]
4635
4857
  });
4636
4858
  });
4637
- rn.displayName = "GioIamIcon";
4638
- var an = J((e, t) => {
4859
+ Dn.displayName = "GioIamIcon";
4860
+ var On = J((e, t) => {
4639
4861
  let n = X();
4640
4862
  return /* @__PURE__ */ $("svg", {
4641
4863
  ref: t,
@@ -4860,8 +5082,8 @@ var an = J((e, t) => {
4860
5082
  })]
4861
5083
  });
4862
5084
  });
4863
- an.displayName = "GioObservabilityIcon";
4864
- var on = J((e, t) => {
5085
+ On.displayName = "GioObservabilityIcon";
5086
+ var kn = J((e, t) => {
4865
5087
  let n = X();
4866
5088
  return /* @__PURE__ */ $("svg", {
4867
5089
  ref: t,
@@ -4980,8 +5202,8 @@ var on = J((e, t) => {
4980
5202
  })]
4981
5203
  });
4982
5204
  });
4983
- on.displayName = "GioObserveIcon";
4984
- var sn = J((e, t) => {
5205
+ kn.displayName = "GioObserveIcon";
5206
+ var An = J((e, t) => {
4985
5207
  let n = X();
4986
5208
  return /* @__PURE__ */ $("svg", {
4987
5209
  ref: t,
@@ -5312,8 +5534,8 @@ var sn = J((e, t) => {
5312
5534
  })]
5313
5535
  });
5314
5536
  });
5315
- sn.displayName = "GioPlatformIcon";
5316
- var cn = J((e, t) => {
5537
+ An.displayName = "GioPlatformIcon";
5538
+ var jn = J((e, t) => {
5317
5539
  let n = X();
5318
5540
  return /* @__PURE__ */ $("svg", {
5319
5541
  ref: t,
@@ -5432,8 +5654,8 @@ var cn = J((e, t) => {
5432
5654
  })]
5433
5655
  });
5434
5656
  });
5435
- cn.displayName = "GioProductizeIcon";
5436
- var ln = J((e, t) => {
5657
+ jn.displayName = "GioProductizeIcon";
5658
+ var Mn = J((e, t) => {
5437
5659
  let n = X();
5438
5660
  return /* @__PURE__ */ $("svg", {
5439
5661
  ref: t,
@@ -5560,14 +5782,14 @@ var ln = J((e, t) => {
5560
5782
  })]
5561
5783
  });
5562
5784
  });
5563
- ln.displayName = "GioSecureIcon";
5785
+ Mn.displayName = "GioSecureIcon";
5564
5786
  //#endregion
5565
5787
  //#region src/lib/useContainerSize.ts
5566
- function un() {
5788
+ function Nn() {
5567
5789
  let [e, t] = Z({
5568
5790
  width: 0,
5569
5791
  height: 0
5570
- }), n = _e(null);
5792
+ }), n = Se(null);
5571
5793
  return {
5572
5794
  ref: Y((e) => {
5573
5795
  if (n.current?.disconnect(), n.current = null, !e) return;
@@ -5588,29 +5810,29 @@ function un() {
5588
5810
  }
5589
5811
  //#endregion
5590
5812
  //#region src/charts/Metric/Metric.tsx
5591
- var dn = {
5813
+ var Pn = {
5592
5814
  positive: "text-success",
5593
5815
  negative: "text-destructive",
5594
5816
  neutral: "text-muted-foreground"
5595
5817
  };
5596
- function fn(e, t) {
5818
+ function Fn(e, t) {
5597
5819
  return e === "neutral" || t === "neutral" ? "neutral" : t === "higher-is-better" ? e === "up" ? "positive" : "negative" : e === "up" ? "negative" : "positive";
5598
5820
  }
5599
- var pn = 56;
5600
- function mn(e, t) {
5821
+ var In = 56;
5822
+ function Ln(e, t) {
5601
5823
  let n = Math.min(t > 0 ? t : 100, (e > 0 ? e : 200) * .65);
5602
5824
  return Math.max(18, Math.min(96, Math.round(n * .22)));
5603
5825
  }
5604
- function hn(e) {
5826
+ function Rn(e) {
5605
5827
  return Math.max(10, Math.round(e * .22));
5606
5828
  }
5607
- function gn(e) {
5829
+ function zn(e) {
5608
5830
  return e < 80 ? "text-sm font-semibold leading-tight" : e < 110 ? "text-base font-semibold leading-tight" : e < 150 ? "text-lg font-semibold leading-tight" : "text-xl font-semibold leading-tight";
5609
5831
  }
5610
- function _n(e) {
5832
+ function Bn(e) {
5611
5833
  return e < 50 ? "text-[9px]" : e < 80 ? "text-[10px]" : e < 120 ? "text-xs" : "text-sm";
5612
5834
  }
5613
- function vn(e) {
5835
+ function Vn(e) {
5614
5836
  return e < 60 ? {
5615
5837
  text: "text-[9px]",
5616
5838
  icon: "size-2 stroke-[2.5]"
@@ -5625,7 +5847,7 @@ function vn(e) {
5625
5847
  icon: "size-3.5 stroke-[2.5]"
5626
5848
  };
5627
5849
  }
5628
- function yn({ data: t, color: n, colorClass: r }) {
5850
+ function Hn({ data: t, color: n, colorClass: r }) {
5629
5851
  let i = q.useRef(null), [a, o] = q.useState({
5630
5852
  width: 0,
5631
5853
  height: 0
@@ -5642,12 +5864,12 @@ function yn({ data: t, color: n, colorClass: r }) {
5642
5864
  });
5643
5865
  return t.observe(e), () => t.disconnect();
5644
5866
  }, []), t.length < 2) return null;
5645
- let { width: c, height: l } = a, u = ye().domain([0, t.length - 1]).range([0, c]), d = Math.min(...t), f = Math.max(...t), p = ye().domain([d, f === d ? d + 1 : f]).range([l - 2, 2]), m = Te().x((e, t) => u(t)).y((e) => p(e)).curve(Ce), h = xe().x((e, t) => u(t)).y0(l).y1((e) => p(e)).curve(Ce), g = m(t), _ = h(t), v = n ?? "currentColor";
5867
+ let { width: c, height: l } = a, u = we().domain([0, t.length - 1]).range([0, c]), d = Math.min(...t), f = Math.max(...t), p = we().domain([d, f === d ? d + 1 : f]).range([l - 2, 2]), m = Ae().x((e, t) => u(t)).y((e) => p(e)).curve(Oe), h = Ee().x((e, t) => u(t)).y0(l).y1((e) => p(e)).curve(Oe), g = m(t), _ = h(t), v = n ?? "currentColor";
5646
5868
  return /* @__PURE__ */ Q("svg", {
5647
5869
  ref: i,
5648
5870
  className: e("h-full w-full", r),
5649
5871
  "aria-hidden": "true",
5650
- children: c > 0 && l > 0 && g && _ && /* @__PURE__ */ $(ve, { children: [
5872
+ children: c > 0 && l > 0 && g && _ && /* @__PURE__ */ $(Ce, { children: [
5651
5873
  /* @__PURE__ */ Q("defs", { children: /* @__PURE__ */ $("linearGradient", {
5652
5874
  id: s,
5653
5875
  x1: "0",
@@ -5677,14 +5899,14 @@ function yn({ data: t, color: n, colorClass: r }) {
5677
5899
  ] })
5678
5900
  });
5679
5901
  }
5680
- function bn({ trend: t, sentiment: n, trendClass: r }) {
5681
- let i = t.direction === "down" ? mt : gt;
5902
+ function Un({ trend: t, sentiment: n, trendClass: r }) {
5903
+ let i = t.direction === "down" ? Lt : zt;
5682
5904
  return /* @__PURE__ */ $("span", {
5683
- className: e("inline-flex items-center gap-1 font-medium", r.text, dn[n]),
5905
+ className: e("inline-flex items-center gap-1 font-medium", r.text, Pn[n]),
5684
5906
  children: [t.direction !== "neutral" && /* @__PURE__ */ Q(i, { className: r.icon }), t.isNew ? "New" : `${t.value}%`]
5685
5907
  });
5686
5908
  }
5687
- function xn({ className: t, ...n }) {
5909
+ function Wn({ className: t, ...n }) {
5688
5910
  return /* @__PURE__ */ $("div", {
5689
5911
  role: "img",
5690
5912
  "aria-busy": "true",
@@ -5695,23 +5917,23 @@ function xn({ className: t, ...n }) {
5695
5917
  className: "flex flex-col gap-1.5",
5696
5918
  children: [/* @__PURE__ */ $("div", {
5697
5919
  className: "flex items-center justify-between gap-2",
5698
- children: [/* @__PURE__ */ Q(b, { className: "h-7 w-20 shrink-0" }), /* @__PURE__ */ Q(b, { className: "size-5 shrink-0 rounded-full" })]
5920
+ children: [/* @__PURE__ */ Q(w, { className: "h-7 w-20 shrink-0" }), /* @__PURE__ */ Q(w, { className: "size-5 shrink-0 rounded-full" })]
5699
5921
  }), /* @__PURE__ */ $("div", {
5700
5922
  className: "flex items-center justify-between gap-2",
5701
- children: [/* @__PURE__ */ Q(b, { className: "h-4 min-w-0 flex-1" }), /* @__PURE__ */ Q(b, { className: "h-4 w-16 shrink-0" })]
5923
+ children: [/* @__PURE__ */ Q(w, { className: "h-4 min-w-0 flex-1" }), /* @__PURE__ */ Q(w, { className: "h-4 w-16 shrink-0" })]
5702
5924
  })]
5703
- }), /* @__PURE__ */ Q(b, { className: "min-h-5 w-full flex-1" })]
5925
+ }), /* @__PURE__ */ Q(w, { className: "min-h-5 w-full flex-1" })]
5704
5926
  });
5705
5927
  }
5706
- function Sn({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
5707
- let { ref: p, width: m, height: h } = un();
5708
- if (r === "loading") return /* @__PURE__ */ Q(xn, {
5928
+ function Gn({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
5929
+ let { ref: p, width: m, height: h } = Nn();
5930
+ if (r === "loading") return /* @__PURE__ */ Q(Wn, {
5709
5931
  className: d,
5710
5932
  ...f
5711
5933
  });
5712
- let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? fn(_.direction, s) : void 0, b = !u && y ? dn[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= pn && !c, C = c || !S, w = gn(h), T = _n(h), E = vn(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
5934
+ let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Fn(_.direction, s) : void 0, b = !u && y ? Pn[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= In && !c, C = c || !S, w = zn(h), T = Bn(h), E = Vn(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
5713
5935
  if (C) {
5714
- let t = mn(m, h), r = hn(t);
5936
+ let t = Ln(m, h), r = Rn(t);
5715
5937
  return /* @__PURE__ */ $("div", {
5716
5938
  ref: p,
5717
5939
  className: e("flex h-full flex-col items-center justify-center gap-1 text-center", d),
@@ -5727,7 +5949,7 @@ function Sn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
5727
5949
  style: { fontSize: r },
5728
5950
  children: n
5729
5951
  }),
5730
- O && _ && y && /* @__PURE__ */ Q(bn, {
5952
+ O && _ && y && /* @__PURE__ */ Q(Un, {
5731
5953
  trend: _,
5732
5954
  sentiment: y,
5733
5955
  trendClass: E
@@ -5751,7 +5973,7 @@ function Sn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
5751
5973
  }),
5752
5974
  O && _ && y && /* @__PURE__ */ $("span", {
5753
5975
  className: "flex shrink-0 items-center gap-1",
5754
- children: [/* @__PURE__ */ Q(bn, {
5976
+ children: [/* @__PURE__ */ Q(Un, {
5755
5977
  trend: _,
5756
5978
  sentiment: y,
5757
5979
  trendClass: E
@@ -5771,7 +5993,7 @@ function Sn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
5771
5993
  ]
5772
5994
  }), /* @__PURE__ */ Q("div", {
5773
5995
  className: "min-h-0 flex-1 pt-1",
5774
- children: /* @__PURE__ */ Q(yn, {
5996
+ children: /* @__PURE__ */ Q(Hn, {
5775
5997
  data: v,
5776
5998
  color: x,
5777
5999
  colorClass: b
@@ -5781,49 +6003,49 @@ function Sn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
5781
6003
  }
5782
6004
  //#endregion
5783
6005
  //#region src/charts/MetricGroup/MetricGroup.tsx
5784
- function Cn(e) {
6006
+ function Kn(e) {
5785
6007
  return "category" in e && "metrics" in e;
5786
6008
  }
5787
- var wn = {
6009
+ var qn = {
5788
6010
  positive: "text-success",
5789
6011
  negative: "text-destructive",
5790
6012
  neutral: "text-muted-foreground"
5791
6013
  };
5792
- function Tn(e) {
6014
+ function Jn(e) {
5793
6015
  let t = 0;
5794
- for (let n of e) t += Cn(n) ? n.metrics.length : 1;
6016
+ for (let n of e) t += Kn(n) ? n.metrics.length : 1;
5795
6017
  return t;
5796
6018
  }
5797
- function En(e) {
5798
- return Cn(e) ? e.metrics.length : 1;
6019
+ function Yn(e) {
6020
+ return Kn(e) ? e.metrics.length : 1;
5799
6021
  }
5800
- var Dn = [
6022
+ var Xn = [
5801
6023
  "xs",
5802
6024
  "sm",
5803
6025
  "md",
5804
6026
  "lg"
5805
6027
  ];
5806
- function On(e, t, n) {
6028
+ function Zn(e, t, n) {
5807
6029
  let r = e / Math.max(n, 1), i = r < 40 ? "xs" : r < 70 ? "sm" : r < 110 ? "md" : "lg", a = t < 25 ? "xs" : t < 40 ? "sm" : t < 60 ? "md" : "lg";
5808
- return Dn[Math.min(Dn.indexOf(i), Dn.indexOf(a))];
6030
+ return Xn[Math.min(Xn.indexOf(i), Xn.indexOf(a))];
5809
6031
  }
5810
- var kn = {
6032
+ var Qn = {
5811
6033
  xs: 40,
5812
6034
  sm: 55,
5813
6035
  md: 75,
5814
6036
  lg: 100
5815
- }, An = 40, jn = 80;
5816
- function Mn(e, t, n) {
5817
- if (e < jn) return 0;
5818
- let r = kn[n], i = 0, a = 0;
6037
+ }, $n = 40, er = 80;
6038
+ function tr(e, t, n) {
6039
+ if (e < er) return 0;
6040
+ let r = Qn[n], i = 0, a = 0;
5819
6041
  for (let n = 0; n < t.length; n++) {
5820
- let o = r * En(t[n]), s = t.length - (n + 1) > 0 ? An : 0;
6042
+ let o = r * Yn(t[n]), s = t.length - (n + 1) > 0 ? $n : 0;
5821
6043
  if (a + o + s > e) break;
5822
6044
  a += o, i++;
5823
6045
  }
5824
6046
  return i;
5825
6047
  }
5826
- var Nn = {
6048
+ var nr = {
5827
6049
  value: {
5828
6050
  xs: "text-xs font-bold leading-tight",
5829
6051
  sm: "text-base font-semibold",
@@ -5861,48 +6083,48 @@ var Nn = {
5861
6083
  lg: "px-5"
5862
6084
  }
5863
6085
  };
5864
- function Pn({ trend: t, sentiment: n, size: r }) {
5865
- let i = t.direction === "down" ? mt : gt, a = r === "xs" || r === "sm";
6086
+ function rr({ trend: t, sentiment: n, size: r }) {
6087
+ let i = t.direction === "down" ? Lt : zt, a = r === "xs" || r === "sm";
5866
6088
  return a && t.direction === "neutral" ? null : /* @__PURE__ */ $("span", {
5867
- className: e("inline-flex items-center gap-px font-medium", Nn.trend[r], wn[n]),
5868
- children: [t.direction !== "neutral" && /* @__PURE__ */ Q(i, { className: Nn.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
6089
+ className: e("inline-flex items-center gap-px font-medium", nr.trend[r], qn[n]),
6090
+ children: [t.direction !== "neutral" && /* @__PURE__ */ Q(i, { className: nr.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
5869
6091
  });
5870
6092
  }
5871
- function Fn({ item: t, size: n, labelVisible: r }) {
5872
- let i = t.trend ? fn(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ $("div", {
6093
+ function ir({ item: t, size: n, labelVisible: r }) {
6094
+ let i = t.trend ? Fn(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ $("div", {
5873
6095
  className: "flex w-full min-w-0 flex-col",
5874
6096
  children: [/* @__PURE__ */ $("div", {
5875
6097
  className: "flex items-baseline justify-between gap-1",
5876
6098
  children: [/* @__PURE__ */ Q("span", {
5877
- className: e("truncate tracking-tight text-foreground", Nn.value[n]),
6099
+ className: e("truncate tracking-tight text-foreground", nr.value[n]),
5878
6100
  children: t.value
5879
6101
  }), t.trend && i && !(t.trend.direction === "neutral" && (n === "xs" || n === "sm")) && /* @__PURE__ */ Q("span", {
5880
6102
  className: "shrink-0",
5881
- children: /* @__PURE__ */ Q(Pn, {
6103
+ children: /* @__PURE__ */ Q(rr, {
5882
6104
  trend: t.trend,
5883
6105
  sentiment: i,
5884
6106
  size: n
5885
6107
  })
5886
6108
  })]
5887
6109
  }), a && /* @__PURE__ */ Q("span", {
5888
- className: e("truncate text-muted-foreground", Nn.label[n]),
6110
+ className: e("truncate text-muted-foreground", nr.label[n]),
5889
6111
  children: t.label
5890
6112
  })]
5891
6113
  });
5892
- return !a && t.label ? /* @__PURE__ */ $(G, { children: [/* @__PURE__ */ Q(K, {
6114
+ return !a && t.label ? /* @__PURE__ */ $(fe, { children: [/* @__PURE__ */ Q(he, {
5893
6115
  asChild: !0,
5894
6116
  children: /* @__PURE__ */ Q("div", {
5895
6117
  className: "flex min-w-0 flex-1 cursor-default",
5896
6118
  children: o
5897
6119
  })
5898
- }), /* @__PURE__ */ Q(le, { children: t.label })] }) : /* @__PURE__ */ Q("div", {
6120
+ }), /* @__PURE__ */ Q(pe, { children: t.label })] }) : /* @__PURE__ */ Q("div", {
5899
6121
  className: "flex min-w-0 flex-1",
5900
6122
  children: o
5901
6123
  });
5902
6124
  }
5903
- function In({ count: t, size: n }) {
6125
+ function ar({ count: t, size: n }) {
5904
6126
  let r = `${t} more ${t === 1 ? "metric" : "metrics"} hidden`;
5905
- return /* @__PURE__ */ $(G, { children: [/* @__PURE__ */ Q(K, {
6127
+ return /* @__PURE__ */ $(fe, { children: [/* @__PURE__ */ Q(he, {
5906
6128
  asChild: !0,
5907
6129
  children: /* @__PURE__ */ $("div", {
5908
6130
  role: "status",
@@ -5910,9 +6132,9 @@ function In({ count: t, size: n }) {
5910
6132
  className: e("flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground", n === "xs" || n === "sm" ? "px-1.5 py-0.5 text-[9px]" : "px-2 py-0.5 text-xs"),
5911
6133
  children: ["+", t]
5912
6134
  })
5913
- }), /* @__PURE__ */ Q(le, { children: r })] });
6135
+ }), /* @__PURE__ */ Q(pe, { children: r })] });
5914
6136
  }
5915
- function Ln({ count: t, className: n, ...r }) {
6137
+ function or({ count: t, className: n, ...r }) {
5916
6138
  return /* @__PURE__ */ Q("div", {
5917
6139
  role: "img",
5918
6140
  "aria-busy": "true",
@@ -5921,18 +6143,18 @@ function Ln({ count: t, className: n, ...r }) {
5921
6143
  ...r,
5922
6144
  children: Array.from({ length: t }, (e, t) => /* @__PURE__ */ $("div", {
5923
6145
  className: "flex flex-1 flex-col items-center justify-center gap-2 px-3",
5924
- children: [/* @__PURE__ */ Q(b, { className: "h-8 w-16" }), /* @__PURE__ */ Q(b, { className: "h-5 w-24" })]
6146
+ children: [/* @__PURE__ */ Q(w, { className: "h-8 w-16" }), /* @__PURE__ */ Q(w, { className: "h-5 w-24" })]
5925
6147
  }, t))
5926
6148
  });
5927
6149
  }
5928
- function Rn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
5929
- let { ref: o, width: s, height: c } = un();
5930
- if (n === "loading") return /* @__PURE__ */ Q(Ln, {
5931
- count: t.length > 0 ? Tn(t) : r ?? 5,
6150
+ function sr({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
6151
+ let { ref: o, width: s, height: c } = Nn();
6152
+ if (n === "loading") return /* @__PURE__ */ Q(or, {
6153
+ count: t.length > 0 ? Jn(t) : r ?? 5,
5932
6154
  className: i,
5933
6155
  ...a
5934
6156
  });
5935
- let l = n === "empty" ? t.map((e) => Cn(e) ? {
6157
+ let l = n === "empty" ? t.map((e) => Kn(e) ? {
5936
6158
  ...e,
5937
6159
  metrics: e.metrics.map((e) => ({
5938
6160
  ...e,
@@ -5943,8 +6165,8 @@ function Rn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
5943
6165
  ...e,
5944
6166
  value: "—",
5945
6167
  trend: void 0
5946
- }) : t, u = Tn(l), d = s > 0 ? On(s, c, u) : "md", f = c >= 50, p = s > 0 ? Mn(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
5947
- return /* @__PURE__ */ Q(ue, {
6168
+ }) : t, u = Jn(l), d = s > 0 ? Zn(s, c, u) : "md", f = c >= 50, p = s > 0 ? tr(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
6169
+ return /* @__PURE__ */ Q(me, {
5948
6170
  delayDuration: 300,
5949
6171
  children: /* @__PURE__ */ $("div", {
5950
6172
  ref: o,
@@ -5953,26 +6175,26 @@ function Rn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
5953
6175
  className: e("flex h-full items-center overflow-hidden", g ? "justify-center" : "divide-x divide-border/30 dark:divide-white/[0.06]", i),
5954
6176
  ...a,
5955
6177
  children: [s > 0 && !g && m.map((t, n) => /* @__PURE__ */ Q("div", {
5956
- style: { flex: En(t) },
5957
- className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", Nn.cellPadding[d]),
5958
- children: Cn(t) ? /* @__PURE__ */ $(ve, { children: [/* @__PURE__ */ Q("span", {
5959
- className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", Nn.category[d]),
6178
+ style: { flex: Yn(t) },
6179
+ className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", nr.cellPadding[d]),
6180
+ children: Kn(t) ? /* @__PURE__ */ $(Ce, { children: [/* @__PURE__ */ Q("span", {
6181
+ className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", nr.category[d]),
5960
6182
  children: t.category
5961
6183
  }), /* @__PURE__ */ Q("div", {
5962
6184
  className: "flex w-full min-w-0 items-stretch gap-3",
5963
- children: t.metrics.map((e, t) => /* @__PURE__ */ Q(Fn, {
6185
+ children: t.metrics.map((e, t) => /* @__PURE__ */ Q(ir, {
5964
6186
  item: e,
5965
6187
  size: d,
5966
6188
  labelVisible: f
5967
6189
  }, t))
5968
- })] }) : /* @__PURE__ */ Q(Fn, {
6190
+ })] }) : /* @__PURE__ */ Q(ir, {
5969
6191
  item: t,
5970
6192
  size: d,
5971
6193
  labelVisible: f
5972
6194
  })
5973
6195
  }, n)), s > 0 && h > 0 && /* @__PURE__ */ Q("div", {
5974
6196
  className: e("flex shrink-0 items-center", g ? "" : "px-2"),
5975
- children: /* @__PURE__ */ Q(In, {
6197
+ children: /* @__PURE__ */ Q(ar, {
5976
6198
  count: h,
5977
6199
  size: d
5978
6200
  })
@@ -5982,78 +6204,78 @@ function Rn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
5982
6204
  }
5983
6205
  //#endregion
5984
6206
  //#region src/charts/LineChart/LineChart.tsx
5985
- function zn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", showDots: a = !1, showGrid: o = !0, showCategoryAxis: s = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: f, categoryTickFormatter: p, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: x, children: S, ...C }) {
5986
- let { config: w } = i(), T = t ?? qe(e, Object.keys(w));
5987
- return n === "loading" ? /* @__PURE__ */ Q(d, {
5988
- ariaLabel: y,
6207
+ function cr({ data: e, dataKeys: t, state: n, curveType: i = "monotone", showDots: a = !1, showGrid: o = !0, showCategoryAxis: s = !0, showValueAxis: c = !0, connectNulls: l = !1, valueTickFormatter: u, categoryTickFormatter: f, animated: h = !0, onPointHover: g, onPointLeave: _, ariaLabel: v, margin: b, className: x, children: S, ...C }) {
6208
+ let { config: w } = r(), T = t ?? ht(e, Object.keys(w));
6209
+ return n === "loading" ? /* @__PURE__ */ Q(m, {
6210
+ ariaLabel: v,
5989
6211
  className: x,
5990
6212
  ...C
5991
- }) : /* @__PURE__ */ $(g, {
6213
+ }) : /* @__PURE__ */ $(y, {
5992
6214
  data: e,
5993
6215
  state: n,
5994
6216
  categoryScaleType: "point",
5995
6217
  animated: h,
5996
- ariaLabel: y,
5997
- valueTickFormatter: f,
5998
- categoryTickFormatter: p,
6218
+ ariaLabel: v,
6219
+ valueTickFormatter: u,
6220
+ categoryTickFormatter: f,
5999
6221
  margin: b,
6000
- onPointHover: _,
6001
- onPointLeave: v,
6222
+ onPointHover: g,
6223
+ onPointLeave: _,
6002
6224
  className: x,
6003
6225
  ...C,
6004
6226
  children: [
6005
- o && /* @__PURE__ */ Q(A, {}),
6006
- T.map((e) => /* @__PURE__ */ Q(He, {
6227
+ o && /* @__PURE__ */ Q(p, {}),
6228
+ T.map((e) => /* @__PURE__ */ Q(ut, {
6007
6229
  dataKey: e,
6008
- curveType: r,
6230
+ curveType: i,
6009
6231
  showDots: a,
6010
- connectNulls: u
6232
+ connectNulls: l
6011
6233
  }, e)),
6012
- s && /* @__PURE__ */ Q(m, {}),
6013
- l && /* @__PURE__ */ Q(c, {}),
6234
+ s && /* @__PURE__ */ Q(d, {}),
6235
+ c && /* @__PURE__ */ Q(j, {}),
6014
6236
  S
6015
6237
  ]
6016
6238
  });
6017
6239
  }
6018
6240
  //#endregion
6019
6241
  //#region src/charts/AreaChart/AreaChart.tsx
6020
- function Bn({ data: e, dataKeys: t, state: n, curveType: r = "monotone", stacked: a = !0, gradient: o = !0, fillOpacity: s = .2, showDots: l = !1, showGrid: u = !0, showCategoryAxis: d = !0, showValueAxis: f = !0, connectNulls: p = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: b, onPointHover: x, onPointLeave: S, className: w, children: T, ...E }) {
6021
- let { config: D } = i(), O = t ?? qe(e, Object.keys(D)), k = a ? "default" : void 0;
6022
- return n === "loading" ? /* @__PURE__ */ Q(C, {
6023
- ariaLabel: _,
6024
- className: w,
6025
- ...E
6026
- }) : /* @__PURE__ */ $(g, {
6242
+ function lr({ data: e, dataKeys: t, state: n, curveType: i = "monotone", stacked: a = !0, gradient: o = !0, fillOpacity: s = .2, showDots: c = !1, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: f = !0, connectNulls: m = !1, animated: h = !0, ariaLabel: g, margin: _, valueTickFormatter: v, categoryTickFormatter: b, onPointHover: x, onPointLeave: S, className: C, children: w, ...T }) {
6243
+ let { config: E } = r(), O = t ?? ht(e, Object.keys(E)), k = a ? "default" : void 0;
6244
+ return n === "loading" ? /* @__PURE__ */ Q(D, {
6245
+ ariaLabel: g,
6246
+ className: C,
6247
+ ...T
6248
+ }) : /* @__PURE__ */ $(y, {
6027
6249
  data: e,
6028
6250
  state: n,
6029
6251
  categoryScaleType: "point",
6030
6252
  animated: h,
6031
- ariaLabel: _,
6032
- valueTickFormatter: y,
6253
+ ariaLabel: g,
6254
+ valueTickFormatter: v,
6033
6255
  categoryTickFormatter: b,
6034
- margin: v,
6256
+ margin: _,
6035
6257
  onPointHover: x,
6036
6258
  onPointLeave: S,
6037
- className: w,
6038
- ...E,
6259
+ className: C,
6260
+ ...T,
6039
6261
  children: [
6040
- u && /* @__PURE__ */ Q(A, {}),
6041
- O.map((e) => /* @__PURE__ */ Q(Ke, {
6262
+ l && /* @__PURE__ */ Q(p, {}),
6263
+ O.map((e) => /* @__PURE__ */ Q(mt, {
6042
6264
  dataKey: e,
6043
6265
  stackId: k,
6044
- curveType: r,
6266
+ curveType: i,
6045
6267
  gradient: o,
6046
6268
  fillOpacity: s,
6047
- showDots: l,
6048
- connectNulls: p
6269
+ showDots: c,
6270
+ connectNulls: m
6049
6271
  }, e)),
6050
- d && /* @__PURE__ */ Q(m, {}),
6051
- f && /* @__PURE__ */ Q(c, {}),
6052
- T
6272
+ u && /* @__PURE__ */ Q(d, {}),
6273
+ f && /* @__PURE__ */ Q(j, {}),
6274
+ w
6053
6275
  ]
6054
6276
  });
6055
6277
  }
6056
- function Vn(e) {
6278
+ function ur(e) {
6057
6279
  if (e === 0) return "0ns";
6058
6280
  if (e < 1e3) return `${Math.round(e)}ns`;
6059
6281
  let t = e / 1e3;
@@ -6065,7 +6287,7 @@ function Vn(e) {
6065
6287
  let i = Math.floor(r / 60), a = r % 60;
6066
6288
  return `${i}m ${Math.round(a)}s`;
6067
6289
  }
6068
- function Hn(e) {
6290
+ function dr(e) {
6069
6291
  let t = 0;
6070
6292
  for (let n of e) {
6071
6293
  let e = n.startOffsetNs + n.durationNs;
@@ -6073,7 +6295,7 @@ function Hn(e) {
6073
6295
  }
6074
6296
  return t > 0 ? t : 1;
6075
6297
  }
6076
- function Un(e, t, n, r) {
6298
+ function fr(e, t, n, r) {
6077
6299
  if (r <= 0 || n <= 0) return {
6078
6300
  x: 0,
6079
6301
  width: 0
@@ -6084,18 +6306,18 @@ function Un(e, t, n, r) {
6084
6306
  width: a
6085
6307
  };
6086
6308
  }
6087
- function Wn(e, t) {
6309
+ function pr(e, t) {
6088
6310
  if (t === 0 || e === 0) return "0%";
6089
6311
  let n = e / t * 100;
6090
6312
  return n < .1 ? "<0.1%" : n >= 100 ? "100%" : `${n < 1 ? n.toFixed(1) : Math.round(n)}%`;
6091
6313
  }
6092
- var Gn = 6, Kn = 80;
6093
- function qn(e) {
6314
+ var mr = 6, hr = 80;
6315
+ function gr(e) {
6094
6316
  if (e <= 0) return 0;
6095
- let t = Math.floor(e / Kn) + 1;
6096
- return Math.max(2, Math.min(t, Gn));
6317
+ let t = Math.floor(e / hr) + 1;
6318
+ return Math.max(2, Math.min(t, mr));
6097
6319
  }
6098
- function Jn(e, t = 5) {
6320
+ function _r(e, t = 5) {
6099
6321
  if (e <= 0) return [0];
6100
6322
  if (t <= 1) return [0, e];
6101
6323
  let n = e / (t - 1);
@@ -6103,13 +6325,13 @@ function Jn(e, t = 5) {
6103
6325
  }
6104
6326
  //#endregion
6105
6327
  //#region src/charts/TraceWaterfall/TraceWaterfall.tsx
6106
- var Yn = 280, Xn = .45, Zn = 36, Qn = 20, $n = 20, er = 4, tr = 12, nr = 48, rr = 32, ir = 3, ar = {
6328
+ var vr = 280, yr = .45, br = 36, xr = 20, Sr = 20, Cr = 4, wr = 12, Tr = 48, Er = 32, Dr = 3, Or = {
6107
6329
  internal: "INTERNAL",
6108
6330
  server: "SERVER",
6109
6331
  client: "CLIENT",
6110
6332
  producer: "PRODUCER",
6111
6333
  consumer: "CONSUMER"
6112
- }, or = [
6334
+ }, kr = [
6113
6335
  "bg-chart-1",
6114
6336
  "bg-chart-2",
6115
6337
  "bg-chart-3",
@@ -6119,21 +6341,21 @@ var Yn = 280, Xn = .45, Zn = 36, Qn = 20, $n = 20, er = 4, tr = 12, nr = 48, rr
6119
6341
  "bg-chart-7",
6120
6342
  "bg-chart-8"
6121
6343
  ];
6122
- function sr(e) {
6344
+ function Ar(e) {
6123
6345
  let t = /* @__PURE__ */ new Map(), n = 0;
6124
- for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, or[n % or.length]), n++);
6346
+ for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, kr[n % kr.length]), n++);
6125
6347
  return t;
6126
6348
  }
6127
- var cr = { error: "bg-destructive" }, lr = {
6349
+ var jr = { error: "bg-destructive" }, Mr = {
6128
6350
  ok: "success",
6129
6351
  error: "destructive",
6130
6352
  unset: "secondary"
6131
- }, ur = {
6353
+ }, Nr = {
6132
6354
  ok: "OK",
6133
6355
  error: "Error",
6134
6356
  unset: "Unset"
6135
6357
  };
6136
- function dr({ icon: e, label: t, children: n }) {
6358
+ function Pr({ icon: e, label: t, children: n }) {
6137
6359
  return /* @__PURE__ */ $("div", {
6138
6360
  className: "flex items-center justify-between gap-4",
6139
6361
  children: [/* @__PURE__ */ $("div", {
@@ -6145,8 +6367,8 @@ function dr({ icon: e, label: t, children: n }) {
6145
6367
  })]
6146
6368
  });
6147
6369
  }
6148
- function fr({ span: t, serviceColor: n, traceDurationNs: r }) {
6149
- return /* @__PURE__ */ $(ve, { children: [
6370
+ function Fr({ span: t, serviceColor: n, traceDurationNs: r }) {
6371
+ return /* @__PURE__ */ $(Ce, { children: [
6150
6372
  /* @__PURE__ */ $("div", {
6151
6373
  className: "space-y-1 px-2.5 pt-2 pb-1.5",
6152
6374
  children: [/* @__PURE__ */ $("div", {
@@ -6157,40 +6379,40 @@ function fr({ span: t, serviceColor: n, traceDurationNs: r }) {
6157
6379
  })]
6158
6380
  }), /* @__PURE__ */ $("div", {
6159
6381
  className: "flex items-center gap-1.5 pl-[14px]",
6160
- children: [/* @__PURE__ */ Q(j, {
6161
- variant: lr[t.status],
6382
+ children: [/* @__PURE__ */ Q(F, {
6383
+ variant: Mr[t.status],
6162
6384
  className: "h-4 text-[9px]",
6163
- children: ur[t.status]
6164
- }), /* @__PURE__ */ Q(j, {
6385
+ children: Nr[t.status]
6386
+ }), /* @__PURE__ */ Q(F, {
6165
6387
  variant: "outline",
6166
6388
  className: "h-4 text-[9px]",
6167
- children: ar[t.kind]
6389
+ children: Or[t.kind]
6168
6390
  })]
6169
6391
  })]
6170
6392
  }),
6171
- /* @__PURE__ */ Q(ce, {}),
6393
+ /* @__PURE__ */ Q(de, {}),
6172
6394
  /* @__PURE__ */ $("div", {
6173
6395
  className: "space-y-1 px-2.5 py-1.5 text-[11px]",
6174
6396
  children: [
6175
- /* @__PURE__ */ Q(dr, {
6176
- icon: xt,
6397
+ /* @__PURE__ */ Q(Pr, {
6398
+ icon: Wt,
6177
6399
  label: "Service",
6178
6400
  children: t.serviceName
6179
6401
  }),
6180
- /* @__PURE__ */ Q(dr, {
6181
- icon: vt,
6402
+ /* @__PURE__ */ Q(Pr, {
6403
+ icon: Vt,
6182
6404
  label: "Duration",
6183
6405
  children: /* @__PURE__ */ Q("span", {
6184
6406
  className: "font-mono tabular-nums",
6185
- children: Vn(t.durationNs)
6407
+ children: ur(t.durationNs)
6186
6408
  })
6187
6409
  }),
6188
- /* @__PURE__ */ Q(dr, {
6189
- icon: pt,
6410
+ /* @__PURE__ */ Q(Pr, {
6411
+ icon: It,
6190
6412
  label: "% of trace",
6191
6413
  children: /* @__PURE__ */ Q("span", {
6192
6414
  className: "font-mono tabular-nums",
6193
- children: Wn(t.durationNs, r)
6415
+ children: pr(t.durationNs, r)
6194
6416
  })
6195
6417
  })
6196
6418
  ]
@@ -6204,11 +6426,11 @@ function fr({ span: t, serviceColor: n, traceDurationNs: r }) {
6204
6426
  })
6205
6427
  ] });
6206
6428
  }
6207
- function pr({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
6429
+ function Ir({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
6208
6430
  return /* @__PURE__ */ $(re, {
6209
6431
  openDelay: 250,
6210
6432
  closeDelay: 0,
6211
- children: [/* @__PURE__ */ Q(U, {
6433
+ children: [/* @__PURE__ */ Q(ae, {
6212
6434
  asChild: !0,
6213
6435
  children: i
6214
6436
  }), /* @__PURE__ */ Q(ie, {
@@ -6216,7 +6438,7 @@ function pr({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
6216
6438
  align: "start",
6217
6439
  sideOffset: 4,
6218
6440
  className: "w-56 p-0",
6219
- children: r ? r(e) : /* @__PURE__ */ Q(fr, {
6441
+ children: r ? r(e) : /* @__PURE__ */ Q(Fr, {
6220
6442
  span: e,
6221
6443
  serviceColor: t,
6222
6444
  traceDurationNs: n
@@ -6224,13 +6446,13 @@ function pr({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
6224
6446
  })]
6225
6447
  });
6226
6448
  }
6227
- function mr({ depth: e }) {
6449
+ function Lr({ depth: e }) {
6228
6450
  return e === 0 ? null : /* @__PURE__ */ Q("span", {
6229
6451
  className: "pointer-events-none relative shrink-0",
6230
- style: { width: e * Qn },
6452
+ style: { width: e * xr },
6231
6453
  "aria-hidden": "true",
6232
6454
  children: Array.from({ length: e }, (t, n) => {
6233
- let r = n === e - 1, i = n * Qn + Qn / 2;
6455
+ let r = n === e - 1, i = n * xr + xr / 2;
6234
6456
  return r ? /* @__PURE__ */ Q("span", {
6235
6457
  className: "absolute top-0 border-l border-border/30",
6236
6458
  style: {
@@ -6239,7 +6461,7 @@ function mr({ depth: e }) {
6239
6461
  },
6240
6462
  children: /* @__PURE__ */ Q("span", {
6241
6463
  className: "absolute bottom-0 left-0 border-b border-border/30",
6242
- style: { width: Qn / 2 - 2 }
6464
+ style: { width: xr / 2 - 2 }
6243
6465
  })
6244
6466
  }, n) : /* @__PURE__ */ Q("span", {
6245
6467
  className: "absolute top-0 h-full border-l border-border/30",
@@ -6248,12 +6470,12 @@ function mr({ depth: e }) {
6248
6470
  })
6249
6471
  });
6250
6472
  }
6251
- function hr(e) {
6473
+ function Rr(e) {
6252
6474
  let t = /* @__PURE__ */ new Set(), n = new Set(e.map((e) => e.spanId));
6253
6475
  for (let r of e) r.parentSpanId && n.has(r.parentSpanId) && t.add(r.parentSpanId);
6254
6476
  return t;
6255
6477
  }
6256
- function gr(e, t) {
6478
+ function zr(e, t) {
6257
6479
  if (t.size === 0) return e;
6258
6480
  let n = /* @__PURE__ */ new Set();
6259
6481
  for (let r = 0; r < e.length; r++) {
@@ -6265,7 +6487,7 @@ function gr(e, t) {
6265
6487
  }
6266
6488
  return e.filter((e) => !n.has(e.spanId));
6267
6489
  }
6268
- function _r(e) {
6490
+ function Br(e) {
6269
6491
  let t = /* @__PURE__ */ new Map(), n = [];
6270
6492
  for (let r = e.length - 1; r >= 0; r--) {
6271
6493
  let i = e[r].depth;
@@ -6275,11 +6497,11 @@ function _r(e) {
6275
6497
  }
6276
6498
  return t;
6277
6499
  }
6278
- function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
6279
- let { x: h, width: g } = Un(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? cr.error : a, v = Vn(t.durationNs), y = g >= 56, b = !y;
6500
+ function Vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
6501
+ let { x: h, width: g } = fr(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? jr.error : a, v = ur(t.durationNs), y = g >= 56, b = !y;
6280
6502
  return /* @__PURE__ */ $("div", {
6281
6503
  className: e("group flex w-full cursor-pointer transition-colors", o ? "bg-accent/50" : "hover:bg-muted/30"),
6282
- style: { height: Zn },
6504
+ style: { height: br },
6283
6505
  onClick: () => u?.(t),
6284
6506
  onKeyDown: (e) => {
6285
6507
  e.key === "Enter" || e.key === " " ? (e.preventDefault(), u?.(t)) : (e.key === "ArrowRight" && s && c || e.key === "ArrowLeft" && s && !c) && (e.preventDefault(), d?.(t.spanId));
@@ -6294,7 +6516,7 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6294
6516
  className: e("w-[3px] shrink-0 transition-colors", o ? "bg-primary" : "bg-transparent"),
6295
6517
  "aria-hidden": "true"
6296
6518
  }),
6297
- /* @__PURE__ */ Q(pr, {
6519
+ /* @__PURE__ */ Q(Ir, {
6298
6520
  span: t,
6299
6521
  serviceColor: a,
6300
6522
  traceDurationNs: n,
@@ -6303,7 +6525,7 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6303
6525
  className: "flex shrink-0 items-center gap-1 overflow-hidden border-r border-border/30 px-1.5",
6304
6526
  style: { width: r },
6305
6527
  children: [
6306
- /* @__PURE__ */ Q(mr, { depth: t.depth }),
6528
+ /* @__PURE__ */ Q(Lr, { depth: t.depth }),
6307
6529
  s ? /* @__PURE__ */ Q("button", {
6308
6530
  type: "button",
6309
6531
  tabIndex: -1,
@@ -6313,7 +6535,7 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6313
6535
  className: "flex size-4 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
6314
6536
  "aria-label": c ? `Expand ${t.name}` : `Collapse ${t.name}`,
6315
6537
  "aria-expanded": !c,
6316
- children: Q(c ? ht : mt, { className: "size-3.5" })
6538
+ children: Q(c ? Rt : Lt, { className: "size-3.5" })
6317
6539
  }) : /* @__PURE__ */ Q("span", {
6318
6540
  className: "flex size-4 shrink-0 items-center justify-center",
6319
6541
  children: /* @__PURE__ */ Q("span", { className: e("size-2 rounded-full", a) })
@@ -6325,8 +6547,8 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6325
6547
  className: "truncate text-[13px] leading-tight font-medium text-foreground",
6326
6548
  children: t.name
6327
6549
  }),
6328
- t.status === "error" && /* @__PURE__ */ Q(_t, { className: "size-3.5 shrink-0 text-destructive" }),
6329
- c && /* @__PURE__ */ Q(j, {
6550
+ t.status === "error" && /* @__PURE__ */ Q(Bt, { className: "size-3.5 shrink-0 text-destructive" }),
6551
+ c && /* @__PURE__ */ Q(F, {
6330
6552
  variant: "secondary",
6331
6553
  className: "h-4 shrink-0 text-[9px]",
6332
6554
  children: l
@@ -6343,31 +6565,31 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6343
6565
  /* @__PURE__ */ $("div", {
6344
6566
  className: "relative flex-1 overflow-hidden",
6345
6567
  style: {
6346
- paddingLeft: tr,
6347
- paddingRight: nr
6568
+ paddingLeft: wr,
6569
+ paddingRight: Tr
6348
6570
  },
6349
6571
  "aria-label": `${t.name}: ${v}`,
6350
6572
  children: [
6351
6573
  g > 0 && /* @__PURE__ */ Q("div", {
6352
6574
  className: e("absolute top-1/2 -translate-y-1/2", _, o && "ring-2 ring-primary/40 ring-offset-1 ring-offset-background"),
6353
6575
  style: {
6354
- left: tr + h,
6576
+ left: wr + h,
6355
6577
  width: Math.max(g, 3),
6356
- height: $n,
6357
- borderRadius: er
6578
+ height: Sr,
6579
+ borderRadius: Cr
6358
6580
  }
6359
6581
  }),
6360
6582
  y && /* @__PURE__ */ Q("span", {
6361
6583
  className: "pointer-events-none absolute top-1/2 -translate-y-1/2 truncate font-mono text-[11px] leading-none font-semibold text-white drop-shadow-[0_1px_1px_rgba(0,0,0,0.4)]",
6362
6584
  style: {
6363
- left: tr + h + 8,
6585
+ left: wr + h + 8,
6364
6586
  maxWidth: Math.max(g - 16, 0)
6365
6587
  },
6366
6588
  children: v
6367
6589
  }),
6368
6590
  b && g > 0 && /* @__PURE__ */ Q("span", {
6369
6591
  className: "pointer-events-none absolute top-1/2 -translate-y-1/2 font-mono text-[11px] whitespace-nowrap text-muted-foreground tabular-nums",
6370
- style: { left: tr + h + Math.max(g, 3) + 6 },
6592
+ style: { left: wr + h + Math.max(g, 3) + 6 },
6371
6593
  children: v
6372
6594
  })
6373
6595
  ]
@@ -6375,14 +6597,14 @@ function vr({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
6375
6597
  ]
6376
6598
  });
6377
6599
  }
6378
- function yr({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
6379
- let s = Jn(e, qn(n)), c = ye().domain([0, e]).range([0, n]);
6600
+ function Hr({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
6601
+ let s = _r(e, gr(n)), c = we().domain([0, e]).range([0, n]);
6380
6602
  return /* @__PURE__ */ $("div", {
6381
6603
  className: "flex shrink-0 items-end border-b border-border bg-muted/30",
6382
- style: { height: rr },
6604
+ style: { height: Er },
6383
6605
  children: [/* @__PURE__ */ $("div", {
6384
6606
  className: "flex shrink-0 items-center justify-between border-r border-border/30 px-3 pb-2",
6385
- style: { width: t + ir },
6607
+ style: { width: t + Dr },
6386
6608
  children: [/* @__PURE__ */ Q("span", {
6387
6609
  className: "truncate text-[11px] font-semibold tracking-wider text-muted-foreground uppercase",
6388
6610
  children: "Service & Operation"
@@ -6391,34 +6613,34 @@ function yr({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
6391
6613
  onClick: i ? a : o,
6392
6614
  className: "flex items-center gap-0.5 rounded-sm px-1 py-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
6393
6615
  "aria-label": i ? "Expand all spans" : "Collapse all spans",
6394
- children: Q(i ? mt : ht, { className: "size-3.5" })
6616
+ children: Q(i ? Lt : Rt, { className: "size-3.5" })
6395
6617
  })]
6396
6618
  }), /* @__PURE__ */ Q("div", {
6397
6619
  className: "relative flex-1 pb-2",
6398
6620
  style: {
6399
- paddingLeft: tr,
6400
- paddingRight: nr
6621
+ paddingLeft: wr,
6622
+ paddingRight: Tr
6401
6623
  },
6402
6624
  children: s.map((e, t) => {
6403
6625
  let n = t === 0, r = t === s.length - 1;
6404
6626
  return /* @__PURE__ */ Q("span", {
6405
6627
  className: "absolute bottom-2 font-mono text-[11px] text-muted-foreground tabular-nums",
6406
6628
  style: {
6407
- left: tr + c(e),
6629
+ left: wr + c(e),
6408
6630
  transform: n ? "none" : r ? "translateX(-100%)" : "translateX(-50%)"
6409
6631
  },
6410
- children: Vn(e)
6632
+ children: ur(e)
6411
6633
  }, e);
6412
6634
  })
6413
6635
  })]
6414
6636
  });
6415
6637
  }
6416
- function br({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
6417
- let i = Jn(e, qn(n)), a = ye().domain([0, e]).range([0, n]), o = r * Zn;
6638
+ function Ur({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
6639
+ let i = _r(e, gr(n)), a = we().domain([0, e]).range([0, n]), o = r * br;
6418
6640
  return /* @__PURE__ */ Q("svg", {
6419
6641
  className: "pointer-events-none absolute top-0",
6420
6642
  style: {
6421
- left: t + ir + tr,
6643
+ left: t + Dr + wr,
6422
6644
  width: n,
6423
6645
  height: o
6424
6646
  },
@@ -6434,7 +6656,7 @@ function br({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r })
6434
6656
  }, e))
6435
6657
  });
6436
6658
  }
6437
- var xr = [
6659
+ var Wr = [
6438
6660
  {
6439
6661
  indent: 0,
6440
6662
  labelPct: 60,
@@ -6466,7 +6688,7 @@ var xr = [
6466
6688
  barPct: 65
6467
6689
  }
6468
6690
  ];
6469
- function Sr({ ariaLabel: t, className: n, ...r }) {
6691
+ function Gr({ ariaLabel: t, className: n, ...r }) {
6470
6692
  return /* @__PURE__ */ $("div", {
6471
6693
  role: "img",
6472
6694
  "aria-busy": "true",
@@ -6475,17 +6697,17 @@ function Sr({ ariaLabel: t, className: n, ...r }) {
6475
6697
  ...r,
6476
6698
  children: [/* @__PURE__ */ Q("div", {
6477
6699
  className: "flex shrink-0 items-center border-b border-border bg-muted/30 px-3",
6478
- style: { height: rr },
6479
- children: /* @__PURE__ */ Q(b, { className: "h-3 w-1/3 max-w-32" })
6700
+ style: { height: Er },
6701
+ children: /* @__PURE__ */ Q(w, { className: "h-3 w-1/3 max-w-32" })
6480
6702
  }), /* @__PURE__ */ Q("div", {
6481
6703
  className: "flex-1",
6482
- children: xr.map((e, t) => /* @__PURE__ */ $("div", {
6704
+ children: Wr.map((e, t) => /* @__PURE__ */ $("div", {
6483
6705
  className: "flex items-center gap-2 px-2",
6484
- style: { height: Zn },
6706
+ style: { height: br },
6485
6707
  children: [/* @__PURE__ */ $("div", {
6486
6708
  className: "flex shrink-0 items-center gap-1.5",
6487
6709
  style: { paddingLeft: e.indent * 12 },
6488
- children: [/* @__PURE__ */ Q(b, { className: "size-2.5 rounded-full" }), /* @__PURE__ */ Q(b, {
6710
+ children: [/* @__PURE__ */ Q(w, { className: "size-2.5 rounded-full" }), /* @__PURE__ */ Q(w, {
6489
6711
  className: "h-3",
6490
6712
  style: {
6491
6713
  width: `${e.labelPct}%`,
@@ -6495,11 +6717,11 @@ function Sr({ ariaLabel: t, className: n, ...r }) {
6495
6717
  })]
6496
6718
  }), /* @__PURE__ */ Q("div", {
6497
6719
  className: "relative min-w-0 flex-1",
6498
- children: /* @__PURE__ */ Q(b, {
6720
+ children: /* @__PURE__ */ Q(w, {
6499
6721
  className: "rounded-sm",
6500
6722
  style: {
6501
6723
  width: `${e.barPct}%`,
6502
- height: $n
6724
+ height: Sr
6503
6725
  }
6504
6726
  })
6505
6727
  })]
@@ -6507,14 +6729,14 @@ function Sr({ ariaLabel: t, className: n, ...r }) {
6507
6729
  })]
6508
6730
  });
6509
6731
  }
6510
- function Cr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
6511
- let f = E(n, t.length), [p, m] = q.useState({
6512
- labelWidth: Yn,
6732
+ function Kr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
6733
+ let f = A(n, t.length), [p, m] = q.useState({
6734
+ labelWidth: vr,
6513
6735
  timelineWidth: 0
6514
- }), h = q.useRef(null), g = q.useMemo(() => hr(t), [t]), [_, v] = q.useState(() => s ? new Set(hr(t)) : /* @__PURE__ */ new Set()), y = q.useCallback((e) => {
6736
+ }), h = q.useRef(null), g = q.useMemo(() => Rr(t), [t]), [_, v] = q.useState(() => s ? new Set(Rr(t)) : /* @__PURE__ */ new Set()), y = q.useCallback((e) => {
6515
6737
  if (h.current &&= (h.current.disconnect(), null), e) {
6516
6738
  let t = new ResizeObserver(([e]) => {
6517
- let t = Math.round(e.contentRect.width), n = Math.min(Yn, Math.round(t * Xn)), r = t - n - ir - tr - nr;
6739
+ let t = Math.round(e.contentRect.width), n = Math.min(vr, Math.round(t * yr)), r = t - n - Dr - wr - Tr;
6518
6740
  m({
6519
6741
  labelWidth: n,
6520
6742
  timelineWidth: Math.max(r, 0)
@@ -6522,17 +6744,17 @@ function Cr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
6522
6744
  });
6523
6745
  t.observe(e), h.current = t;
6524
6746
  }
6525
- }, []), b = q.useMemo(() => Hn(t), [t]), S = q.useMemo(() => sr(t), [t]), C = q.useMemo(() => _r(t), [t]), w = q.useMemo(() => gr(t, _), [t, _]), T = q.useCallback((e) => {
6747
+ }, []), b = q.useMemo(() => dr(t), [t]), x = q.useMemo(() => Ar(t), [t]), S = q.useMemo(() => Br(t), [t]), C = q.useMemo(() => zr(t, _), [t, _]), w = q.useCallback((e) => {
6526
6748
  v((t) => {
6527
6749
  let n = new Set(t);
6528
6750
  return n.has(e) ? n.delete(e) : n.add(e), n;
6529
6751
  });
6530
- }, []), D = q.useCallback(() => v(/* @__PURE__ */ new Set()), []), O = q.useCallback(() => v(new Set(g)), [g]), k = _.size > 0;
6531
- return f === "loading" ? /* @__PURE__ */ Q(Sr, {
6752
+ }, []), E = q.useCallback(() => v(/* @__PURE__ */ new Set()), []), D = q.useCallback(() => v(new Set(g)), [g]), O = _.size > 0;
6753
+ return f === "loading" ? /* @__PURE__ */ Q(Gr, {
6532
6754
  ariaLabel: l,
6533
6755
  className: u,
6534
6756
  ...d
6535
- }) : f === "empty" ? /* @__PURE__ */ Q(x, {
6757
+ }) : f === "empty" ? /* @__PURE__ */ Q(T, {
6536
6758
  ariaLabel: l,
6537
6759
  className: e("min-h-0 rounded-lg border border-border bg-card", u),
6538
6760
  ...d
@@ -6542,35 +6764,35 @@ function Cr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
6542
6764
  role: "treegrid",
6543
6765
  "aria-label": l,
6544
6766
  ...d,
6545
- children: [/* @__PURE__ */ Q(yr, {
6767
+ children: [/* @__PURE__ */ Q(Hr, {
6546
6768
  traceDurationNs: b,
6547
6769
  labelWidth: p.labelWidth,
6548
6770
  usableWidth: p.timelineWidth,
6549
6771
  hasCollapsible: g.size > 0,
6550
- isAllCollapsed: k,
6551
- onExpandAll: D,
6552
- onCollapseAll: O
6553
- }), /* @__PURE__ */ Q(se, {
6772
+ isAllCollapsed: O,
6773
+ onExpandAll: E,
6774
+ onCollapseAll: D
6775
+ }), /* @__PURE__ */ Q(ue, {
6554
6776
  className: "min-h-0 flex-1",
6555
6777
  children: /* @__PURE__ */ $("div", {
6556
6778
  className: "relative",
6557
- children: [/* @__PURE__ */ Q(br, {
6779
+ children: [/* @__PURE__ */ Q(Ur, {
6558
6780
  traceDurationNs: b,
6559
6781
  labelWidth: p.labelWidth,
6560
6782
  usableWidth: p.timelineWidth,
6561
- rowCount: w.length
6562
- }), w.map((e) => /* @__PURE__ */ Q(vr, {
6783
+ rowCount: C.length
6784
+ }), C.map((e) => /* @__PURE__ */ Q(Vr, {
6563
6785
  span: e,
6564
6786
  traceDurationNs: b,
6565
6787
  labelWidth: p.labelWidth,
6566
6788
  usableWidth: p.timelineWidth,
6567
- serviceColor: S.get(e.serviceName) ?? or[0],
6789
+ serviceColor: x.get(e.serviceName) ?? kr[0],
6568
6790
  selected: e.spanId === r,
6569
6791
  hasChildren: g.has(e.spanId),
6570
6792
  collapsed: _.has(e.spanId),
6571
- collapsedCount: C.get(e.spanId) ?? 0,
6793
+ collapsedCount: S.get(e.spanId) ?? 0,
6572
6794
  onSelect: i,
6573
- onToggle: T,
6795
+ onToggle: w,
6574
6796
  onHover: a,
6575
6797
  onLeave: o,
6576
6798
  renderTooltip: c
@@ -6581,27 +6803,27 @@ function Cr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
6581
6803
  }
6582
6804
  //#endregion
6583
6805
  //#region src/charts/BreakdownChart/BarMeter.tsx
6584
- var wr = {
6806
+ var qr = {
6585
6807
  positive: "text-success",
6586
6808
  negative: "text-destructive",
6587
6809
  neutral: "text-muted-foreground"
6588
6810
  };
6589
- function Tr({ trend: t, sentiment: n }) {
6590
- let r = t.direction === "down" ? mt : gt;
6811
+ function Jr({ trend: t, sentiment: n }) {
6812
+ let r = t.direction === "down" ? Lt : zt;
6591
6813
  return /* @__PURE__ */ $("span", {
6592
- className: e("inline-flex items-center gap-0.5 text-xs font-medium", wr[n]),
6814
+ className: e("inline-flex items-center gap-0.5 text-xs font-medium", qr[n]),
6593
6815
  children: [t.direction !== "neutral" && /* @__PURE__ */ Q(r, { className: "size-3 stroke-[2.5]" }), t.isNew ? "New" : `${t.value}%`]
6594
6816
  });
6595
6817
  }
6596
- function Er({ rank: e }) {
6818
+ function Yr({ rank: e }) {
6597
6819
  return /* @__PURE__ */ Q("span", {
6598
6820
  "aria-hidden": "true",
6599
6821
  className: "inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md bg-muted px-1 text-[11px] font-semibold text-muted-foreground tabular-nums",
6600
6822
  children: e
6601
6823
  });
6602
6824
  }
6603
- function Dr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon: o, trend: s, trendSentiment: c = "higher-is-better", threshold: l, rank: u, compact: d = !1, animated: f = !0, highlighted: p = !1, dimmed: m = !1, interactive: h = !1, className: g, ..._ }) {
6604
- let v = Math.max(0, Math.min(1, r)), y = l === void 0 ? void 0 : Math.max(0, Math.min(1, l)), b = p ? `0 1px 8px -1px color-mix(in oklab, ${i} 55%, transparent)` : void 0, x = s ? fn(s.direction, c) : void 0;
6825
+ function Xr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon: o, trend: s, trendSentiment: c = "higher-is-better", threshold: l, rank: u, compact: d = !1, animated: f = !0, highlighted: p = !1, dimmed: m = !1, interactive: h = !1, className: g, ..._ }) {
6826
+ let v = Math.max(0, Math.min(1, r)), y = l === void 0 ? void 0 : Math.max(0, Math.min(1, l)), b = p ? `0 1px 8px -1px color-mix(in oklab, ${i} 55%, transparent)` : void 0, x = s ? Fn(s.direction, c) : void 0;
6605
6827
  return /* @__PURE__ */ $("div", {
6606
6828
  "data-slot": "bar-meter",
6607
6829
  role: h ? "button" : void 0,
@@ -6617,7 +6839,7 @@ function Dr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
6617
6839
  children: [/* @__PURE__ */ $("span", {
6618
6840
  className: "flex min-w-0 items-center gap-2",
6619
6841
  children: [
6620
- u !== void 0 && /* @__PURE__ */ Q(Er, { rank: u }),
6842
+ u !== void 0 && /* @__PURE__ */ Q(Yr, { rank: u }),
6621
6843
  o && /* @__PURE__ */ Q(o, { className: e("size-4 shrink-0 transition-colors", p ? "text-foreground" : "text-muted-foreground") }),
6622
6844
  /* @__PURE__ */ Q("span", {
6623
6845
  className: e("truncate text-sm transition-colors", p ? "font-semibold text-foreground" : "font-medium text-foreground"),
@@ -6626,7 +6848,7 @@ function Dr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
6626
6848
  ]
6627
6849
  }), /* @__PURE__ */ $("span", {
6628
6850
  className: "flex shrink-0 items-center gap-2",
6629
- children: [s && x && /* @__PURE__ */ Q(Tr, {
6851
+ children: [s && x && /* @__PURE__ */ Q(Jr, {
6630
6852
  trend: s,
6631
6853
  sentiment: x
6632
6854
  }), /* @__PURE__ */ Q("span", {
@@ -6664,9 +6886,9 @@ function Dr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
6664
6886
  }
6665
6887
  //#endregion
6666
6888
  //#region src/charts/BreakdownChart/BreakdownContext.tsx
6667
- var Or = q.createContext(null);
6668
- function kr() {
6669
- return q.useContext(Or) || {
6889
+ var Zr = q.createContext(null);
6890
+ function Qr() {
6891
+ return q.useContext(Zr) || {
6670
6892
  tooltip: null,
6671
6893
  legend: null,
6672
6894
  summary: null,
@@ -6675,7 +6897,7 @@ function kr() {
6675
6897
  setSummary: () => void 0
6676
6898
  };
6677
6899
  }
6678
- function Ar({ children: e }) {
6900
+ function $r({ children: e }) {
6679
6901
  let [t, n] = q.useState(null), [r, i] = q.useState(null), [a, o] = q.useState(null), s = q.useMemo(() => ({
6680
6902
  tooltip: t,
6681
6903
  legend: r,
@@ -6688,21 +6910,21 @@ function Ar({ children: e }) {
6688
6910
  r,
6689
6911
  a
6690
6912
  ]);
6691
- return /* @__PURE__ */ Q(Or.Provider, {
6913
+ return /* @__PURE__ */ Q(Zr.Provider, {
6692
6914
  value: s,
6693
6915
  children: e
6694
6916
  });
6695
6917
  }
6696
6918
  //#endregion
6697
6919
  //#region src/charts/BreakdownChart/BreakdownTooltip.tsx
6698
- function jr({ content: e }) {
6699
- let { setTooltip: t } = kr();
6920
+ function ei({ content: e }) {
6921
+ let { setTooltip: t } = Qr();
6700
6922
  return q.useLayoutEffect(() => (t({ content: typeof e == "function" ? e : (t, n) => q.cloneElement(e, {
6701
6923
  item: t,
6702
6924
  meta: n
6703
6925
  }) }), () => t(null)), [e, t]), null;
6704
6926
  }
6705
- function Mr({ pos: e, containerRef: t, children: n }) {
6927
+ function ti({ pos: e, containerRef: t, children: n }) {
6706
6928
  let r = q.useRef(null), [i, a] = q.useState({
6707
6929
  x: 0,
6708
6930
  y: 0,
@@ -6731,7 +6953,7 @@ function Mr({ pos: e, containerRef: t, children: n }) {
6731
6953
  e.x,
6732
6954
  e.y,
6733
6955
  t
6734
- ]), De(/* @__PURE__ */ Q("div", {
6956
+ ]), Me(/* @__PURE__ */ Q("div", {
6735
6957
  ref: r,
6736
6958
  role: "tooltip",
6737
6959
  className: "pointer-events-none fixed z-50",
@@ -6744,10 +6966,10 @@ function Mr({ pos: e, containerRef: t, children: n }) {
6744
6966
  children: n
6745
6967
  }), document.body);
6746
6968
  }
6747
- function Nr(e) {
6969
+ function ni(e) {
6748
6970
  return typeof e == "number" ? e.toLocaleString() : e;
6749
6971
  }
6750
- function Pr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = Nr, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
6972
+ function ri({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = ni, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
6751
6973
  let p = i === void 0 && t !== void 0 && n !== void 0, m = r ?? t?.label, h = i ?? (p ? [{
6752
6974
  name: n.formattedValue,
6753
6975
  value: `${(n.ratio * 100).toFixed(1)}%`,
@@ -6801,7 +7023,7 @@ function Pr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator:
6801
7023
  }
6802
7024
  //#endregion
6803
7025
  //#region src/charts/BreakdownChart/BreakdownChart.tsx
6804
- function Fr(e) {
7026
+ function ii(e) {
6805
7027
  let [t, n] = q.useState(!e);
6806
7028
  return q.useEffect(() => {
6807
7029
  if (!e) return;
@@ -6809,7 +7031,7 @@ function Fr(e) {
6809
7031
  return () => cancelAnimationFrame(t);
6810
7032
  }, [e]), t;
6811
7033
  }
6812
- var Ir = [
7034
+ var ai = [
6813
7035
  "var(--chart-1)",
6814
7036
  "var(--chart-2)",
6815
7037
  "var(--chart-3)",
@@ -6821,10 +7043,10 @@ var Ir = [
6821
7043
  "var(--chart-9)",
6822
7044
  "var(--chart-10)"
6823
7045
  ];
6824
- function Lr(e, t) {
6825
- return e.color ?? Ir[t % Ir.length];
7046
+ function oi(e, t) {
7047
+ return e.color ?? ai[t % ai.length];
6826
7048
  }
6827
- function Rr(e, t) {
7049
+ function si(e, t) {
6828
7050
  switch (t) {
6829
7051
  case "total": {
6830
7052
  let t = e.reduce((e, t) => e + t.value, 0);
@@ -6838,7 +7060,7 @@ function Rr(e, t) {
6838
7060
  default: return t;
6839
7061
  }
6840
7062
  }
6841
- var zr = [
7063
+ var ci = [
6842
7064
  .7,
6843
7065
  .45,
6844
7066
  .25,
@@ -6846,7 +7068,7 @@ var zr = [
6846
7068
  .35,
6847
7069
  .2
6848
7070
  ];
6849
- function Br({ rows: t = 3, compact: n = !1, className: r, ...i }) {
7071
+ function li({ rows: t = 3, compact: n = !1, className: r, ...i }) {
6850
7072
  return /* @__PURE__ */ Q("div", {
6851
7073
  role: "img",
6852
7074
  "aria-busy": "true",
@@ -6858,19 +7080,19 @@ function Br({ rows: t = 3, compact: n = !1, className: r, ...i }) {
6858
7080
  children: [
6859
7081
  /* @__PURE__ */ $("div", {
6860
7082
  className: "flex items-center justify-between gap-3",
6861
- children: [/* @__PURE__ */ Q(b, { className: "h-4 w-24" }), /* @__PURE__ */ Q(b, { className: "h-4 w-16" })]
7083
+ children: [/* @__PURE__ */ Q(w, { className: "h-4 w-24" }), /* @__PURE__ */ Q(w, { className: "h-4 w-16" })]
6862
7084
  }),
6863
- /* @__PURE__ */ Q(b, {
7085
+ /* @__PURE__ */ Q(w, {
6864
7086
  className: "h-2 rounded-full",
6865
- style: { width: `${zr[r % zr.length] * 100}%` }
7087
+ style: { width: `${ci[r % ci.length] * 100}%` }
6866
7088
  }),
6867
- /* @__PURE__ */ Q(b, { className: "h-3 w-20" })
7089
+ /* @__PURE__ */ Q(w, { className: "h-3 w-20" })
6868
7090
  ]
6869
7091
  }, r))
6870
7092
  });
6871
7093
  }
6872
- var Vr = 12, Hr = -12;
6873
- function Ur({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
7094
+ var ui = 12, di = -12;
7095
+ function fi({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
6874
7096
  let d = t.reduce((e, t) => e + t.value, 0);
6875
7097
  return /* @__PURE__ */ $("div", {
6876
7098
  className: "flex flex-col gap-3",
@@ -6885,7 +7107,7 @@ function Ur({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
6885
7107
  className: e("h-full ease-out", r ? "transition-[width,opacity] duration-700" : "transition-opacity duration-200", f === 0 && "rounded-l-full", f === t.length - 1 && "rounded-r-full", h && "opacity-55", m && o && "opacity-100", s && "cursor-pointer"),
6886
7108
  style: {
6887
7109
  width: i ? `${p}%` : "0%",
6888
- backgroundColor: Lr(c, f)
7110
+ backgroundColor: oi(c, f)
6889
7111
  },
6890
7112
  onMouseEnter: () => l(c),
6891
7113
  onMouseLeave: () => l(null),
@@ -6903,7 +7125,7 @@ function Ur({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
6903
7125
  children: [
6904
7126
  /* @__PURE__ */ Q("span", {
6905
7127
  className: "inline-block size-2.5 shrink-0 rounded-full",
6906
- style: { backgroundColor: Lr(e, t) },
7128
+ style: { backgroundColor: oi(e, t) },
6907
7129
  "aria-hidden": "true"
6908
7130
  }),
6909
7131
  /* @__PURE__ */ Q("span", {
@@ -6919,10 +7141,10 @@ function Ur({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
6919
7141
  })]
6920
7142
  });
6921
7143
  }
6922
- function Wr(e, { pitch: t, gap: n }) {
7144
+ function pi(e, { pitch: t, gap: n }) {
6923
7145
  return Math.max(0, Math.floor((e + n) / t));
6924
7146
  }
6925
- function Gr(e, t) {
7147
+ function mi(e, t) {
6926
7148
  let n = e.querySelectorAll("[data-slot=\"bar-meter\"]");
6927
7149
  if (n.length >= 2) {
6928
7150
  let e = n[1].offsetTop - n[0].offsetTop;
@@ -6939,12 +7161,12 @@ function Gr(e, t) {
6939
7161
  gap: i
6940
7162
  };
6941
7163
  }
6942
- function Kr(e) {
7164
+ function hi(e) {
6943
7165
  let [t, n] = q.useState(void 0), r = q.useRef(null), i = q.useCallback(() => {
6944
7166
  let t = e.current;
6945
7167
  if (!t) return;
6946
- r.current = Gr(t, r.current);
6947
- let i = r.current, a = t.clientHeight, o = i && a > 0 ? Wr(a, i) : void 0;
7168
+ r.current = mi(t, r.current);
7169
+ let i = r.current, a = t.clientHeight, o = i && a > 0 ? pi(a, i) : void 0;
6948
7170
  n((e) => e === o ? e : o);
6949
7171
  }, [e]);
6950
7172
  return q.useEffect(() => {
@@ -6957,7 +7179,7 @@ function Kr(e) {
6957
7179
  remeasure: i
6958
7180
  };
6959
7181
  }
6960
- function qr(e, t, n) {
7182
+ function gi(e, t, n) {
6961
7183
  let r = t === void 0 || Number.isNaN(t) ? void 0 : Math.max(0, Math.floor(t)), i = r ?? n, [a, o] = q.useState(!1), [s, c] = q.useState(r);
6962
7184
  Object.is(r, s) || (c(r), a && o(!1));
6963
7185
  let l = q.useCallback(() => o((e) => !e), []);
@@ -6975,37 +7197,37 @@ function qr(e, t, n) {
6975
7197
  toggle: l
6976
7198
  };
6977
7199
  }
6978
- function Jr({ children: e, ...t }) {
6979
- return /* @__PURE__ */ $(Ar, { children: [e, /* @__PURE__ */ Q(Yr, { ...t })] });
7200
+ function _i({ children: e, ...t }) {
7201
+ return /* @__PURE__ */ $($r, { children: [e, /* @__PURE__ */ Q(vi, { ...t })] });
6980
7202
  }
6981
- function Yr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue: i, trendSentiment: a = "higher-is-better", sortByValue: o, showRank: s = !1, summary: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f = !0, state: p, skeletonRows: m = 3, ariaLabel: h = "Breakdown chart", onItemClick: g, onItemHover: _, className: v, ...y }) {
6982
- let { tooltip: b, legend: S, summary: C } = kr(), w = p ?? (t.length === 0 ? "empty" : "ready"), [T, E] = q.useState(null), D = g !== void 0, O = Fr(u), k = q.useRef(null), [A, j] = q.useState(null), M = q.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = q.useMemo(() => Rr(M, r), [M, r]), P = q.useCallback((e) => {
7203
+ function vi({ items: t, variant: n = "list", ratioMode: r = "total", formatValue: i, trendSentiment: a = "higher-is-better", sortByValue: o, showRank: s = !1, summary: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f = !0, state: p, skeletonRows: m = 3, ariaLabel: h = "Breakdown chart", onItemClick: g, onItemHover: _, className: v, ...y }) {
7204
+ let { tooltip: b, legend: x, summary: S } = Qr(), C = p ?? (t.length === 0 ? "empty" : "ready"), [w, E] = q.useState(null), D = g !== void 0, O = ii(u), k = q.useRef(null), [A, j] = q.useState(null), M = q.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = q.useMemo(() => si(M, r), [M, r]), P = q.useCallback((e) => {
6983
7205
  E(e?.key ?? null), e || j(null), _?.(e);
6984
7206
  }, [_]), F = q.useCallback((e) => {
6985
7207
  if (!b || !k.current) return;
6986
7208
  let t = k.current.getBoundingClientRect();
6987
7209
  j({
6988
- x: e.clientX - t.left + Vr,
6989
- y: e.clientY - t.top + Hr
7210
+ x: e.clientX - t.left + ui,
7211
+ y: e.clientY - t.top + di
6990
7212
  });
6991
7213
  }, [b]);
6992
- if (w === "loading") return /* @__PURE__ */ Q(Br, {
7214
+ if (C === "loading") return /* @__PURE__ */ Q(li, {
6993
7215
  rows: m,
6994
7216
  compact: d,
6995
7217
  className: v,
6996
7218
  ...y
6997
7219
  });
6998
- if (w === "empty") return /* @__PURE__ */ Q("div", {
7220
+ if (C === "empty") return /* @__PURE__ */ Q("div", {
6999
7221
  className: v,
7000
7222
  ...y,
7001
- children: /* @__PURE__ */ Q(x, { ariaLabel: h })
7223
+ children: /* @__PURE__ */ Q(T, { ariaLabel: h })
7002
7224
  });
7003
- let I = T ? M.findIndex((e) => e.key === T) : -1, L = I >= 0 ? M[I] : null, R = L ? {
7004
- color: Lr(L, I),
7225
+ let I = w ? M.findIndex((e) => e.key === w) : -1, L = I >= 0 ? M[I] : null, R = L ? {
7226
+ color: oi(L, I),
7005
7227
  index: I,
7006
7228
  ratio: N[I],
7007
7229
  formattedValue: i ? i(L.value) : String(L.value)
7008
- } : null, z = b && L && R && A ? /* @__PURE__ */ Q(Mr, {
7230
+ } : null, z = b && L && R && A ? /* @__PURE__ */ Q(ti, {
7009
7231
  pos: A,
7010
7232
  containerRef: k,
7011
7233
  children: b.content(L, R)
@@ -7017,19 +7239,19 @@ function Yr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
7017
7239
  onMouseMove: F,
7018
7240
  ...y,
7019
7241
  ref: k,
7020
- children: [/* @__PURE__ */ Q(Ur, {
7242
+ children: [/* @__PURE__ */ Q(fi, {
7021
7243
  items: M,
7022
7244
  formatValue: i,
7023
7245
  animated: u,
7024
7246
  mounted: O,
7025
- hoveredKey: T,
7247
+ hoveredKey: w,
7026
7248
  highlightOnHover: f,
7027
7249
  interactive: D,
7028
- legendSlot: S,
7250
+ legendSlot: x,
7029
7251
  onSegmentHover: P,
7030
7252
  onSegmentClick: g
7031
7253
  }), z]
7032
- }) : /* @__PURE__ */ Q(Xr, {
7254
+ }) : /* @__PURE__ */ Q(yi, {
7033
7255
  containerRef: k,
7034
7256
  items: M,
7035
7257
  ratios: N,
@@ -7037,14 +7259,14 @@ function Yr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
7037
7259
  trendSentiment: a,
7038
7260
  showRank: s,
7039
7261
  summary: c,
7040
- summarySlot: C,
7262
+ summarySlot: S,
7041
7263
  maxItems: l,
7042
7264
  animated: u,
7043
7265
  compact: d,
7044
7266
  highlightOnHover: f,
7045
7267
  mounted: O,
7046
7268
  ariaLabel: h,
7047
- hoveredKey: T,
7269
+ hoveredKey: w,
7048
7270
  interactive: D,
7049
7271
  onItemHover: P,
7050
7272
  onItemClick: g,
@@ -7054,8 +7276,8 @@ function Yr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
7054
7276
  ...y
7055
7277
  });
7056
7278
  }
7057
- function Xr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentiment: a = "higher-is-better", showRank: o = !1, summary: s, summarySlot: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f, mounted: p, ariaLabel: m = "Breakdown chart", hoveredKey: h, interactive: g, onItemHover: _, onItemClick: v, tooltipPortal: y, className: b, ...x }) {
7058
- let S = q.useRef(null), { fitCount: C, remeasure: w } = Kr(S), { visibleItems: T, hiddenCount: E, expanded: D, collapsible: O, toggle: k } = qr(n, l, C);
7279
+ function yi({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentiment: a = "higher-is-better", showRank: o = !1, summary: s, summarySlot: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f, mounted: p, ariaLabel: m = "Breakdown chart", hoveredKey: h, interactive: g, onItemHover: _, onItemClick: v, tooltipPortal: y, className: b, ...x }) {
7280
+ let S = q.useRef(null), { fitCount: C, remeasure: w } = hi(S), { visibleItems: T, hiddenCount: E, expanded: D, collapsible: O, toggle: k } = gi(n, l, C);
7059
7281
  q.useLayoutEffect(w, [
7060
7282
  w,
7061
7283
  n,
@@ -7077,7 +7299,7 @@ function Xr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
7077
7299
  ...x,
7078
7300
  ref: t,
7079
7301
  children: [
7080
- /* @__PURE__ */ Q(se, {
7302
+ /* @__PURE__ */ Q(ue, {
7081
7303
  className: "min-h-0 flex-1",
7082
7304
  "data-dashboard-grid-no-drag": A ? "" : void 0,
7083
7305
  viewportProps: {
@@ -7091,11 +7313,11 @@ function Xr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
7091
7313
  },
7092
7314
  children: /* @__PURE__ */ Q("div", {
7093
7315
  className: e("flex flex-col", M),
7094
- children: T.map((e, t) => /* @__PURE__ */ Q(Dr, {
7316
+ children: T.map((e, t) => /* @__PURE__ */ Q(Xr, {
7095
7317
  label: e.label,
7096
7318
  formattedValue: i ? i(e.value) : String(e.value),
7097
7319
  ratio: p ? r[t] : 0,
7098
- color: Lr(e, t),
7320
+ color: oi(e, t),
7099
7321
  detail: e.detail,
7100
7322
  icon: e.icon,
7101
7323
  trend: e.trend,
@@ -7122,7 +7344,7 @@ function Xr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
7122
7344
  className: "px-2 py-1 text-left text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",
7123
7345
  onClick: k,
7124
7346
  children: D ? "Show less" : `+${E} other${E > 1 ? "s" : ""}`
7125
- }), c ?? (s && /* @__PURE__ */ $(ve, { children: [/* @__PURE__ */ Q("div", { className: "mx-2 border-t border-border" }), /* @__PURE__ */ $("div", {
7347
+ }), c ?? (s && /* @__PURE__ */ $(Ce, { children: [/* @__PURE__ */ Q("div", { className: "mx-2 border-t border-border" }), /* @__PURE__ */ $("div", {
7126
7348
  className: "flex items-center justify-between px-2 pt-2",
7127
7349
  children: [/* @__PURE__ */ Q("span", {
7128
7350
  className: "text-sm text-muted-foreground",
@@ -7139,11 +7361,11 @@ function Xr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
7139
7361
  }
7140
7362
  //#endregion
7141
7363
  //#region src/charts/BreakdownChart/BreakdownLegend.tsx
7142
- function Zr({ children: e }) {
7143
- let { setLegend: t } = kr();
7364
+ function bi({ children: e }) {
7365
+ let { setLegend: t } = Qr();
7144
7366
  return q.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
7145
7367
  }
7146
- function Qr({ items: t, colors: n, formatValue: r, className: i, ...a }) {
7368
+ function xi({ items: t, colors: n, formatValue: r, className: i, ...a }) {
7147
7369
  return /* @__PURE__ */ Q("div", {
7148
7370
  className: e("flex flex-wrap items-center gap-x-4 gap-y-1", i),
7149
7371
  ...a,
@@ -7169,20 +7391,20 @@ function Qr({ items: t, colors: n, formatValue: r, className: i, ...a }) {
7169
7391
  }
7170
7392
  //#endregion
7171
7393
  //#region src/charts/BreakdownChart/BreakdownSummary.tsx
7172
- function $r({ children: e }) {
7173
- let { setSummary: t } = kr();
7394
+ function Si({ children: e }) {
7395
+ let { setSummary: t } = Qr();
7174
7396
  return q.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
7175
7397
  }
7176
7398
  //#endregion
7177
7399
  //#region src/charts/FilterCombobox/DataTypeIcon.tsx
7178
- function ei({ icon: t, tooltipContent: n, colorClass: r, onDismissList: i }) {
7179
- return /* @__PURE__ */ $(G, { children: [/* @__PURE__ */ Q(K, {
7400
+ function Ci({ icon: t, tooltipContent: n, colorClass: r, onDismissList: i }) {
7401
+ return /* @__PURE__ */ $(fe, { children: [/* @__PURE__ */ Q(he, {
7180
7402
  asChild: !0,
7181
7403
  children: /* @__PURE__ */ Q("span", {
7182
7404
  className: "flex shrink-0 items-center justify-center p-1",
7183
7405
  children: /* @__PURE__ */ Q(t, { className: e("size-3.5 transition-colors", r ?? "text-muted-foreground") })
7184
7406
  })
7185
- }), /* @__PURE__ */ Q(le, {
7407
+ }), /* @__PURE__ */ Q(pe, {
7186
7408
  side: "left",
7187
7409
  onEscapeKeyDown: (e) => {
7188
7410
  e.preventDefault(), i();
@@ -7192,10 +7414,10 @@ function ei({ icon: t, tooltipContent: n, colorClass: r, onDismissList: i }) {
7192
7414
  }
7193
7415
  //#endregion
7194
7416
  //#region src/charts/FilterCombobox/DataTypeIcons.tsx
7195
- function ti({ dataTypes: e, onDismissList: t }) {
7417
+ function wi({ dataTypes: e, onDismissList: t }) {
7196
7418
  return e.length === 0 ? null : /* @__PURE__ */ Q("span", {
7197
7419
  className: "ml-2 flex h-5 shrink-0 items-center",
7198
- children: e.map((e) => /* @__PURE__ */ Q(ei, {
7420
+ children: e.map((e) => /* @__PURE__ */ Q(Ci, {
7199
7421
  icon: e.icon,
7200
7422
  tooltipContent: e.tooltipContent,
7201
7423
  colorClass: e.colorClass,
@@ -7205,25 +7427,25 @@ function ti({ dataTypes: e, onDismissList: t }) {
7205
7427
  }
7206
7428
  //#endregion
7207
7429
  //#region src/charts/FilterCombobox/filter-combobox-search.ts
7208
- var ni = /[\u0300-\u036f]/g;
7209
- function ri(e) {
7210
- return e.normalize("NFD").replace(ni, "").toLowerCase();
7430
+ var Ti = /[\u0300-\u036f]/g;
7431
+ function Ei(e) {
7432
+ return e.normalize("NFD").replace(Ti, "").toLowerCase();
7211
7433
  }
7212
- function ii(e, t) {
7213
- let n = ri(t.trim());
7434
+ function Di(e, t) {
7435
+ let n = Ei(t.trim());
7214
7436
  return n === "" ? !0 : [
7215
7437
  e.name,
7216
7438
  e.id,
7217
7439
  e.technicalName,
7218
7440
  e.unit
7219
- ].some((e) => e !== void 0 && ri(e).includes(n));
7441
+ ].some((e) => e !== void 0 && Ei(e).includes(n));
7220
7442
  }
7221
- function ai(e, t) {
7222
- let n = ri(t.trim());
7443
+ function Oi(e, t) {
7444
+ let n = Ei(t.trim());
7223
7445
  if (n === "") return [];
7224
7446
  let r = [...e], i = [], a = "";
7225
7447
  r.forEach((e, t) => {
7226
- let n = ri(e);
7448
+ let n = Ei(e);
7227
7449
  for (let e = 0; e < n.length; e++) i.push(t);
7228
7450
  a += n;
7229
7451
  });
@@ -7233,8 +7455,8 @@ function ai(e, t) {
7233
7455
  }
7234
7456
  //#endregion
7235
7457
  //#region src/charts/FilterCombobox/HighlightMatch.tsx
7236
- function oi(e, t) {
7237
- let n = ai(e, t);
7458
+ function ki(e, t) {
7459
+ let n = Oi(e, t);
7238
7460
  if (n.length === 0) return [e];
7239
7461
  let r = [...e], i = [], a = 0;
7240
7462
  return n.forEach(([e, t], n) => {
@@ -7246,12 +7468,12 @@ function oi(e, t) {
7246
7468
  }
7247
7469
  //#endregion
7248
7470
  //#region src/charts/FilterCombobox/FilterOptionContent.tsx
7249
- function si(e, t) {
7250
- return e.technicalName === void 0 || ai(e.technicalName, t).length === 0 ? !1 : ai(e.name, t).length === 0 && (e.unit === void 0 || ai(e.unit, t).length === 0);
7471
+ function Ai(e, t) {
7472
+ return e.technicalName === void 0 || Oi(e.technicalName, t).length === 0 ? !1 : Oi(e.name, t).length === 0 && (e.unit === void 0 || Oi(e.unit, t).length === 0);
7251
7473
  }
7252
- function ci({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismissList: a, children: o }) {
7253
- let s = si(t, r);
7254
- return /* @__PURE__ */ $(ve, { children: [
7474
+ function ji({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismissList: a, children: o }) {
7475
+ let s = Ai(t, r);
7476
+ return /* @__PURE__ */ $(Ce, { children: [
7255
7477
  /* @__PURE__ */ $("span", {
7256
7478
  className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden",
7257
7479
  children: [
@@ -7261,7 +7483,7 @@ function ci({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismiss
7261
7483
  ref: e,
7262
7484
  "data-slot": "filter-option-name",
7263
7485
  className: "truncate text-foreground",
7264
- children: oi(t.name, r)
7486
+ children: ki(t.name, r)
7265
7487
  }), i && /* @__PURE__ */ Q("span", {
7266
7488
  className: "sr-only",
7267
7489
  children: "(selected)"
@@ -7270,7 +7492,7 @@ function ci({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismiss
7270
7492
  s && t.technicalName !== void 0 && /* @__PURE__ */ Q("span", {
7271
7493
  "data-slot": "filter-option-technical-name",
7272
7494
  className: "truncate text-xs text-muted-foreground",
7273
- children: oi(t.technicalName, r)
7495
+ children: ki(t.technicalName, r)
7274
7496
  }),
7275
7497
  o
7276
7498
  ]
@@ -7278,9 +7500,9 @@ function ci({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismiss
7278
7500
  t.unit !== void 0 && /* @__PURE__ */ Q("span", {
7279
7501
  "data-slot": "filter-option-unit",
7280
7502
  className: "ml-2 shrink-0 text-xs leading-5 text-muted-foreground",
7281
- children: oi(t.unit, r)
7503
+ children: ki(t.unit, r)
7282
7504
  }),
7283
- /* @__PURE__ */ Q(ti, {
7505
+ /* @__PURE__ */ Q(wi, {
7284
7506
  dataTypes: n,
7285
7507
  onDismissList: a
7286
7508
  })
@@ -7288,13 +7510,13 @@ function ci({ nameRef: e, item: t, dataTypes: n, query: r, checked: i, onDismiss
7288
7510
  }
7289
7511
  //#endregion
7290
7512
  //#region src/charts/FilterCombobox/FilterOption.tsx
7291
- function li(e) {
7513
+ function Mi(e) {
7292
7514
  let { technicalName: t } = e;
7293
7515
  return t !== void 0 && t.toLowerCase() !== e.name.toLowerCase() ? t : void 0;
7294
7516
  }
7295
- function ui(e) {
7296
- let t = _e(null), [n, r] = Z(!1);
7297
- return me(() => {
7517
+ function Ni(e) {
7518
+ let t = Se(null), [n, r] = Z(!1);
7519
+ return ye(() => {
7298
7520
  let e = t.current;
7299
7521
  if (e === null) return;
7300
7522
  let n = () => r(e.scrollWidth > e.clientWidth);
@@ -7303,19 +7525,19 @@ function ui(e) {
7303
7525
  return i.observe(e), () => i.disconnect();
7304
7526
  }, [e]), [t, n];
7305
7527
  }
7306
- function di({ item: t, dataTypes: n, optionValue: r, query: i, checked: a, keyboardHighlightedOptionValue: o, className: s, onSelect: c, onHighlightOption: l, onLeaveOption: u, onDismissList: d, children: f }) {
7307
- let [p, m] = ui(`${t.name}\u0000${i}`), [h, g] = Z(!1), _ = X(), v = li(t), y = (m || v !== void 0 || t.description !== void 0) && (o === r || h && o === void 0), b = [v, t.description].filter((e) => e !== void 0);
7308
- return /* @__PURE__ */ $(G, {
7528
+ function Pi({ item: t, dataTypes: n, optionValue: r, query: i, checked: a, keyboardHighlightedOptionValue: o, className: s, onSelect: c, onHighlightOption: l, onLeaveOption: u, onDismissList: d, children: f }) {
7529
+ let [p, m] = Ni(`${t.name}\u0000${i}`), [h, g] = Z(!1), _ = X(), v = Mi(t), y = (m || v !== void 0 || t.description !== void 0) && (o === r || h && o === void 0), b = [v, t.description].filter((e) => e !== void 0);
7530
+ return /* @__PURE__ */ $(fe, {
7309
7531
  open: y,
7310
7532
  onOpenChange: g,
7311
- children: [/* @__PURE__ */ Q(K, {
7533
+ children: [/* @__PURE__ */ Q(he, {
7312
7534
  asChild: !0,
7313
7535
  children: /* @__PURE__ */ $("div", {
7314
7536
  "data-slot": "filter-option",
7315
7537
  onPointerLeave: () => {
7316
7538
  g(!1), u(r);
7317
7539
  },
7318
- children: [/* @__PURE__ */ Q(V, {
7540
+ children: [/* @__PURE__ */ Q(G, {
7319
7541
  "data-filter-option-value": r,
7320
7542
  "data-checked": a || void 0,
7321
7543
  value: r,
@@ -7323,7 +7545,7 @@ function di({ item: t, dataTypes: n, optionValue: r, query: i, checked: a, keybo
7323
7545
  onSelect: () => c(t),
7324
7546
  onMouseEnter: () => l(r),
7325
7547
  className: e("group/item rounded-md [&>svg.lucide-check]:hidden data-[checked=true]:[&>svg.lucide-check]:block", s),
7326
- children: /* @__PURE__ */ Q(ci, {
7548
+ children: /* @__PURE__ */ Q(ji, {
7327
7549
  nameRef: p,
7328
7550
  item: t,
7329
7551
  dataTypes: n,
@@ -7338,7 +7560,7 @@ function di({ item: t, dataTypes: n, optionValue: r, query: i, checked: a, keybo
7338
7560
  children: b.join(". ")
7339
7561
  })]
7340
7562
  })
7341
- }), /* @__PURE__ */ $(le, {
7563
+ }), /* @__PURE__ */ $(pe, {
7342
7564
  "data-slot": "filter-option-details",
7343
7565
  side: "right",
7344
7566
  sideOffset: 10,
@@ -7365,67 +7587,67 @@ function di({ item: t, dataTypes: n, optionValue: r, query: i, checked: a, keybo
7365
7587
  }
7366
7588
  //#endregion
7367
7589
  //#region src/charts/FilterCombobox/filter-combobox-options.ts
7368
- var fi = "__unscoped", pi = "__query-item";
7369
- function mi(e) {
7590
+ var Fi = "__unscoped", Ii = "__query-item";
7591
+ function Li(e) {
7370
7592
  return e.filter((e) => e.scopes.length === 0);
7371
7593
  }
7372
- function hi(e, t) {
7594
+ function Ri(e, t) {
7373
7595
  return `${e}-${t}`;
7374
7596
  }
7375
- function gi(e) {
7597
+ function zi(e) {
7376
7598
  return e;
7377
7599
  }
7378
- function _i(e, t) {
7600
+ function Bi(e, t) {
7379
7601
  return `${e}-option-${t}`;
7380
7602
  }
7381
- function vi(e, t, n, r, i) {
7603
+ function Vi(e, t, n, r, i) {
7382
7604
  if (!e) {
7383
7605
  let e = t.map((e) => ({
7384
7606
  item: e,
7385
- optionValue: gi(e.id)
7607
+ optionValue: zi(e.id)
7386
7608
  }));
7387
7609
  return i === void 0 ? e : [...e, {
7388
7610
  item: i,
7389
- optionValue: pi
7611
+ optionValue: Ii
7390
7612
  }];
7391
7613
  }
7392
- let a = mi(t).map((e) => ({
7614
+ let a = Li(t).map((e) => ({
7393
7615
  item: e,
7394
- optionValue: hi(fi, e.id)
7616
+ optionValue: Ri(Fi, e.id)
7395
7617
  }));
7396
7618
  for (let e of n) {
7397
7619
  if (!(r[e.id] ?? !0)) continue;
7398
7620
  let n = t.filter((t) => t.scopes.includes(e.id));
7399
7621
  for (let t of n) a.push({
7400
7622
  item: t,
7401
- optionValue: hi(e.id, t.id)
7623
+ optionValue: Ri(e.id, t.id)
7402
7624
  });
7403
7625
  }
7404
7626
  return a;
7405
7627
  }
7406
- function yi(e, t, n) {
7628
+ function Hi(e, t, n) {
7407
7629
  if (e.length === 0) return;
7408
7630
  let r = t ? e.findIndex((e) => e.optionValue === t) : -1;
7409
7631
  return r === -1 ? n === "next" ? e[0].optionValue : e[e.length - 1].optionValue : n === "next" ? e[r < e.length - 1 ? r + 1 : 0].optionValue : e[r > 0 ? r - 1 : e.length - 1].optionValue;
7410
7632
  }
7411
- function bi(e, t) {
7633
+ function Ui(e, t) {
7412
7634
  if (t) return e.some((e) => e.optionValue === t) ? t : void 0;
7413
7635
  }
7414
7636
  //#endregion
7415
7637
  //#region src/charts/FilterCombobox/resolve-item-data-types.ts
7416
- function xi(e) {
7638
+ function Wi(e) {
7417
7639
  return e.dataTypeIds ?? [];
7418
7640
  }
7419
- function Si(e, t) {
7420
- return Array.from(new Set(xi(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
7641
+ function Gi(e, t) {
7642
+ return Array.from(new Set(Wi(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
7421
7643
  }
7422
7644
  //#endregion
7423
7645
  //#region src/charts/FilterCombobox/FilterGroupedList.tsx
7424
- function Ci({ groupId: e, item: t, dataTypes: n, checked: r, keyboardHighlightedOptionValue: i, onDismissList: a, onSelect: o, onHighlightOption: s, onLeaveOption: c }) {
7425
- let l = hi(e, t.id);
7426
- return /* @__PURE__ */ Q(di, {
7646
+ function Ki({ groupId: e, item: t, dataTypes: n, checked: r, keyboardHighlightedOptionValue: i, onDismissList: a, onSelect: o, onHighlightOption: s, onLeaveOption: c }) {
7647
+ let l = Ri(e, t.id);
7648
+ return /* @__PURE__ */ Q(Pi, {
7427
7649
  item: t,
7428
- dataTypes: Si(t, n),
7650
+ dataTypes: Gi(t, n),
7429
7651
  optionValue: l,
7430
7652
  query: "",
7431
7653
  checked: r,
@@ -7436,11 +7658,11 @@ function Ci({ groupId: e, item: t, dataTypes: n, checked: r, keyboardHighlighted
7436
7658
  onDismissList: a
7437
7659
  });
7438
7660
  }
7439
- function wi({ scopes: t, dataTypes: n, items: r, expandedScopes: i, selectedItemId: a, keyboardHighlightedOptionValue: o, onDismissList: s, onToggleScope: c, onSelect: l, onHighlightOption: u, onLeaveOption: d }) {
7440
- let f = mi(r);
7441
- return /* @__PURE__ */ $(ve, { children: [f.length > 0 && /* @__PURE__ */ Q(B, {
7661
+ function qi({ scopes: t, dataTypes: n, items: r, expandedScopes: i, selectedItemId: a, keyboardHighlightedOptionValue: o, onDismissList: s, onToggleScope: c, onSelect: l, onHighlightOption: u, onLeaveOption: d }) {
7662
+ let f = Li(r);
7663
+ return /* @__PURE__ */ $(Ce, { children: [f.length > 0 && /* @__PURE__ */ Q(W, {
7442
7664
  className: "p-0",
7443
- children: f.map((e) => /* @__PURE__ */ Q(Ci, {
7665
+ children: f.map((e) => /* @__PURE__ */ Q(Ki, {
7444
7666
  groupId: "__unscoped",
7445
7667
  item: e,
7446
7668
  dataTypes: n,
@@ -7455,11 +7677,11 @@ function wi({ scopes: t, dataTypes: n, items: r, expandedScopes: i, selectedItem
7455
7677
  let f = r.filter((e) => e.scopes.includes(t.id));
7456
7678
  if (f.length === 0) return null;
7457
7679
  let p = t.icon, m = i[t.id] ?? !0;
7458
- return /* @__PURE__ */ $(L, {
7680
+ return /* @__PURE__ */ $(ee, {
7459
7681
  open: m,
7460
7682
  onOpenChange: (e) => c(t.id, e),
7461
7683
  className: "relative not-first:mt-1 not-first:pt-1 not-first:before:absolute not-first:before:top-0 not-first:before:left-1/4 not-first:before:h-px not-first:before:w-1/2 not-first:before:bg-border",
7462
- children: [/* @__PURE__ */ Q(z, {
7684
+ children: [/* @__PURE__ */ Q(V, {
7463
7685
  asChild: !0,
7464
7686
  children: /* @__PURE__ */ $("button", {
7465
7687
  type: "button",
@@ -7480,16 +7702,16 @@ function wi({ scopes: t, dataTypes: n, items: r, expandedScopes: i, selectedItem
7480
7702
  className: "text-muted-foreground tabular-nums",
7481
7703
  children: f.length
7482
7704
  }),
7483
- /* @__PURE__ */ Q(mt, {
7705
+ /* @__PURE__ */ Q(Lt, {
7484
7706
  "aria-hidden": "true",
7485
7707
  className: e("ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform duration-200", !m && "-rotate-90")
7486
7708
  })
7487
7709
  ]
7488
7710
  })
7489
- }), /* @__PURE__ */ Q(R, { children: /* @__PURE__ */ Q(B, {
7711
+ }), /* @__PURE__ */ Q(te, { children: /* @__PURE__ */ Q(W, {
7490
7712
  heading: t.title,
7491
7713
  className: "p-0 **:[[cmdk-group-heading]]:sr-only",
7492
- children: m && f.map((e) => /* @__PURE__ */ Q(Ci, {
7714
+ children: m && f.map((e) => /* @__PURE__ */ Q(Ki, {
7493
7715
  groupId: t.id,
7494
7716
  item: e,
7495
7717
  dataTypes: n,
@@ -7506,14 +7728,14 @@ function wi({ scopes: t, dataTypes: n, items: r, expandedScopes: i, selectedItem
7506
7728
  }
7507
7729
  //#endregion
7508
7730
  //#region src/charts/FilterCombobox/FilterQueryRows.tsx
7509
- function Ti({ dataTypes: e, item: t, afterMatches: n, selectedItemId: r, keyboardHighlightedOptionValue: i, onDismissList: a, onSelect: o, onHighlightOption: s, onLeaveOption: c }) {
7510
- return /* @__PURE__ */ $(ve, { children: [n && /* @__PURE__ */ Q(H, { className: "mx-0 my-1" }), /* @__PURE__ */ Q(B, {
7731
+ function Ji({ dataTypes: e, item: t, afterMatches: n, selectedItemId: r, keyboardHighlightedOptionValue: i, onDismissList: a, onSelect: o, onHighlightOption: s, onLeaveOption: c }) {
7732
+ return /* @__PURE__ */ $(Ce, { children: [n && /* @__PURE__ */ Q(K, { className: "mx-0 my-1" }), /* @__PURE__ */ Q(W, {
7511
7733
  "data-slot": "filter-combobox-query-item",
7512
7734
  className: "p-0",
7513
- children: /* @__PURE__ */ Q(di, {
7735
+ children: /* @__PURE__ */ Q(Pi, {
7514
7736
  item: t,
7515
- dataTypes: Si(t, e),
7516
- optionValue: pi,
7737
+ dataTypes: Gi(t, e),
7738
+ optionValue: Ii,
7517
7739
  query: "",
7518
7740
  checked: t.id === r,
7519
7741
  keyboardHighlightedOptionValue: i,
@@ -7524,12 +7746,12 @@ function Ti({ dataTypes: e, item: t, afterMatches: n, selectedItemId: r, keyboar
7524
7746
  })
7525
7747
  })] });
7526
7748
  }
7527
- function Ei({ id: t, hint: n, afterOptions: r }) {
7749
+ function Yi({ id: t, hint: n, afterOptions: r }) {
7528
7750
  return /* @__PURE__ */ $("div", {
7529
7751
  id: t,
7530
7752
  "data-slot": "filter-combobox-query-hint",
7531
7753
  className: e("flex items-start gap-2 px-3 py-2 text-xs text-muted-foreground", r && "border-t border-border"),
7532
- children: [/* @__PURE__ */ Q(yt, {
7754
+ children: [/* @__PURE__ */ Q(Ht, {
7533
7755
  "aria-hidden": "true",
7534
7756
  className: "mt-px size-3.5 shrink-0"
7535
7757
  }), /* @__PURE__ */ Q("span", { children: n })]
@@ -7537,13 +7759,13 @@ function Ei({ id: t, hint: n, afterOptions: r }) {
7537
7759
  }
7538
7760
  //#endregion
7539
7761
  //#region src/charts/FilterCombobox/FilterSearchList.tsx
7540
- function Di({ item: t, scopes: n }) {
7762
+ function Xi({ item: t, scopes: n }) {
7541
7763
  let r = t.scopes.map((e) => n.find((t) => t.id === e)).filter((e) => e !== void 0);
7542
7764
  return r.length === 0 ? null : /* @__PURE__ */ Q("span", {
7543
7765
  className: "mt-0.5 flex flex-wrap items-center gap-1",
7544
7766
  children: r.map((t) => {
7545
7767
  let n = t.icon;
7546
- return /* @__PURE__ */ $(j, {
7768
+ return /* @__PURE__ */ $(F, {
7547
7769
  variant: "outline",
7548
7770
  className: e("h-5 gap-1 rounded-md border-transparent px-1.5 text-xs font-normal", t.bgClass ?? "bg-muted", t.colorClass ?? "text-muted-foreground"),
7549
7771
  children: [n && /* @__PURE__ */ Q(n, { className: "size-3" }), t.title]
@@ -7551,15 +7773,15 @@ function Di({ item: t, scopes: n }) {
7551
7773
  })
7552
7774
  });
7553
7775
  }
7554
- function Oi({ scopes: e, dataTypes: t, items: n, searchQuery: r, selectedItemId: i, keyboardHighlightedOptionValue: a, onDismissList: o, onSelect: s, onHighlightOption: c, onLeaveOption: l }) {
7555
- return /* @__PURE__ */ Q(B, {
7776
+ function Zi({ scopes: e, dataTypes: t, items: n, searchQuery: r, selectedItemId: i, keyboardHighlightedOptionValue: a, onDismissList: o, onSelect: s, onHighlightOption: c, onLeaveOption: l }) {
7777
+ return /* @__PURE__ */ Q(W, {
7556
7778
  heading: `Results (${n.length})`,
7557
7779
  className: "p-0",
7558
7780
  children: n.map((n) => {
7559
- let u = gi(n.id);
7560
- return /* @__PURE__ */ Q(di, {
7781
+ let u = zi(n.id);
7782
+ return /* @__PURE__ */ Q(Pi, {
7561
7783
  item: n,
7562
- dataTypes: Si(n, t),
7784
+ dataTypes: Gi(n, t),
7563
7785
  optionValue: u,
7564
7786
  query: r,
7565
7787
  checked: n.id === i,
@@ -7569,7 +7791,7 @@ function Oi({ scopes: e, dataTypes: t, items: n, searchQuery: r, selectedItemId:
7569
7791
  onLeaveOption: l,
7570
7792
  onDismissList: o,
7571
7793
  className: "items-start data-[checked=true]:[&>svg.lucide-check]:mt-0.5",
7572
- children: /* @__PURE__ */ Q(Di, {
7794
+ children: /* @__PURE__ */ Q(Xi, {
7573
7795
  item: n,
7574
7796
  scopes: e
7575
7797
  })
@@ -7579,170 +7801,170 @@ function Oi({ scopes: e, dataTypes: t, items: n, searchQuery: r, selectedItemId:
7579
7801
  }
7580
7802
  //#endregion
7581
7803
  //#region src/charts/FilterCombobox/use-filter-combobox.ts
7582
- function ki(e) {
7804
+ function Qi(e) {
7583
7805
  return "inputType" in e && typeof e.inputType == "string" ? e.inputType : void 0;
7584
7806
  }
7585
- function Ai(e, t, n, r, i) {
7807
+ function $i(e, t, n, r, i) {
7586
7808
  return t || n === "" ? e : r?.startsWith("delete") ? "" : i ? e : e.startsWith(n) ? e.slice(n.length) : e.endsWith(n) ? e.slice(0, e.length - n.length) : e;
7587
7809
  }
7588
- function ji(e) {
7810
+ function ea(e) {
7589
7811
  return e.value !== "" && e.selectionStart === 0 && e.selectionEnd === e.value.length;
7590
7812
  }
7591
- function Mi(e) {
7813
+ function ta(e) {
7592
7814
  if (!e.disabled) {
7593
7815
  if (e.isOpen && e.query !== "") return "query";
7594
7816
  if (e.hasSelection && e.clearable) return "value";
7595
7817
  }
7596
7818
  }
7597
- function Ni(e, t) {
7598
- if (e.scopes.length === 0) return hi(fi, e.id);
7819
+ function na(e, t) {
7820
+ if (e.scopes.length === 0) return Ri(Fi, e.id);
7599
7821
  let n = t.find((t) => e.scopes.includes(t.id));
7600
- return n === void 0 ? void 0 : hi(n.id, e.id);
7822
+ return n === void 0 ? void 0 : Ri(n.id, e.id);
7601
7823
  }
7602
- function Pi({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o, disabled: s = !1, clearable: c = !0, getQueryItem: l, getQueryHint: u }) {
7603
- let d = X(), f = X(), p = _e(null), [m, h] = Z(null), g = _e(!1), _ = _e(!1), v = _e(void 0), y = _e(null), b = _e(null), x = _e(!1), S = a !== void 0, C = r !== void 0, [w, T] = Z(!1), [E, D] = Z(null), [O, k] = Z(""), [A, j] = Z(void 0), [M, N] = Z(!1), [P, F] = Z(s);
7824
+ function ra({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o, disabled: s = !1, clearable: c = !0, getQueryItem: l, getQueryHint: u }) {
7825
+ let d = X(), f = X(), p = Se(null), [m, h] = Z(null), g = Se(!1), _ = Se(!1), v = Se(void 0), y = Se(null), b = Se(null), x = Se(!1), S = a !== void 0, C = r !== void 0, [w, T] = Z(!1), [E, D] = Z(null), [O, k] = Z(""), [A, j] = Z(void 0), [M, N] = Z(!1), [P, F] = Z(s);
7604
7826
  s !== P && (F(s), s && T(!1));
7605
7827
  let I = !s && (S ? a : w), L = C ? r : E, R = Y((e) => {
7606
7828
  S ? o?.(e) : T(e);
7607
7829
  }, [S, o]), z = Y((e) => {
7608
7830
  C ? i?.(e) : D(e);
7609
- }, [C, i]), [ee, te] = Z({}), B = Y((e, t) => {
7610
- te((n) => ({
7831
+ }, [C, i]), [B, ee] = Z({}), te = Y((e, t) => {
7832
+ ee((n) => ({
7611
7833
  ...n,
7612
7834
  [e]: t
7613
7835
  }));
7614
- }, []), V = ge(() => e.filter((e) => ii(e, O)), [e, O]), ne = O.trim(), H = ne === "", re = ge(() => H ? void 0 : l?.(ne, V), [
7836
+ }, []), V = xe(() => e.filter((e) => Di(e, O)), [e, O]), H = O.trim(), U = H === "", W = xe(() => U ? void 0 : l?.(H, V), [
7837
+ U,
7615
7838
  H,
7616
- ne,
7617
7839
  V,
7618
7840
  l
7619
- ]), ie = ge(() => H ? void 0 : u?.(ne, V), [
7841
+ ]), G = xe(() => U ? void 0 : u?.(H, V), [
7842
+ U,
7620
7843
  H,
7621
- ne,
7622
7844
  V,
7623
7845
  u
7624
- ]), U = ge(() => vi(H, V, t, ee, re), [
7625
- H,
7846
+ ]), ne = xe(() => Vi(U, V, t, B, W), [
7847
+ U,
7626
7848
  V,
7627
7849
  t,
7628
- ee,
7629
- re
7630
- ]), W = ge(() => {
7631
- if (A !== null) return bi(U, A) ?? (H ? void 0 : U[0]?.optionValue);
7850
+ B,
7851
+ W
7852
+ ]), K = xe(() => {
7853
+ if (A !== null) return Ui(ne, A) ?? (U ? void 0 : ne[0]?.optionValue);
7632
7854
  }, [
7633
- U,
7855
+ ne,
7634
7856
  A,
7635
- H
7636
- ]), ae = I && W ? _i(d, W) : void 0, oe = I ? O : L?.name ?? "", se = I && L ? L.name : void 0, ce = Mi({
7857
+ U
7858
+ ]), re = I && K ? Bi(d, K) : void 0, ie = I ? O : L?.name ?? "", ae = I && L ? L.name : void 0, oe = ta({
7637
7859
  disabled: s,
7638
7860
  clearable: c,
7639
7861
  isOpen: I,
7640
7862
  query: O,
7641
7863
  hasSelection: L !== null
7642
- }), G = Y(() => {
7864
+ }), se = Y(() => {
7643
7865
  j(void 0), N(!1);
7644
- }, []), le = Y((e) => {
7645
- N(!0), j(yi(U, W, e));
7646
- }, [U, W]), ue = Y((e) => {
7866
+ }, []), ce = Y((e) => {
7867
+ N(!0), j(Hi(ne, K, e));
7868
+ }, [ne, K]), le = Y((e) => {
7647
7869
  s || I || (g.current = !1, v.current = e, R(!0));
7648
7870
  }, [
7649
7871
  s,
7650
7872
  I,
7651
7873
  R
7652
- ]), K = Y(() => {
7653
- G(), R(!1);
7654
- }, [G, R]), q = Y((e) => {
7655
- z(e), G(), R(!1), n(e);
7874
+ ]), ue = Y(() => {
7875
+ se(), R(!1);
7876
+ }, [se, R]), de = Y((e) => {
7877
+ z(e), se(), R(!1), n(e);
7656
7878
  }, [
7657
- G,
7879
+ se,
7658
7880
  z,
7659
7881
  R,
7660
7882
  n
7661
- ]), de = Y(() => {
7662
- ce === "value" && (z(null), n(null)), k(""), G(), R(!0), b.current?.focus();
7883
+ ]), fe = Y(() => {
7884
+ oe === "value" && (z(null), n(null)), k(""), se(), R(!0), b.current?.focus();
7663
7885
  }, [
7664
- ce,
7665
- G,
7886
+ oe,
7887
+ se,
7666
7888
  z,
7667
7889
  R,
7668
7890
  n
7669
- ]), fe = Y((e) => {
7670
- let t = Ai(e.target.value, I, L?.name ?? "", ki(e.nativeEvent), x.current);
7891
+ ]), pe = Y((e) => {
7892
+ let t = $i(e.target.value, I, L?.name ?? "", Qi(e.nativeEvent), x.current);
7671
7893
  x.current = !1, g.current = !I, queueMicrotask(() => {
7672
7894
  g.current = !1;
7673
- }), k(t), G(), R(!0);
7895
+ }), k(t), se(), R(!0);
7674
7896
  }, [
7675
- G,
7897
+ se,
7676
7898
  I,
7677
7899
  L,
7678
7900
  R
7679
- ]), J = Y(() => {
7680
- ue();
7681
- }, [ue]), pe = Y((e) => {
7901
+ ]), me = Y(() => {
7902
+ le();
7903
+ }, [le]), he = Y((e) => {
7682
7904
  j(e), N(!1);
7683
- }, []), ve = Y((e) => {
7684
- !M && W === e && j(null);
7685
- }, [M, W]), Q = Y((e) => {
7905
+ }, []), q = Y((e) => {
7906
+ !M && K === e && j(null);
7907
+ }, [M, K]), ge = Y((e) => {
7686
7908
  e.target.select();
7687
- }, []), $ = Y((e) => {
7688
- x.current = ji(e.currentTarget);
7689
- }, []), ye = Y((n) => {
7690
- if (x.current = ji(n.currentTarget), n.key === "ArrowDown") {
7909
+ }, []), _e = Y((e) => {
7910
+ x.current = ea(e.currentTarget);
7911
+ }, []), J = Y((n) => {
7912
+ if (x.current = ea(n.currentTarget), n.key === "ArrowDown") {
7691
7913
  if (n.preventDefault(), !I) {
7692
- ue(vi(!0, e, t, {})[0]?.optionValue);
7914
+ le(Vi(!0, e, t, {})[0]?.optionValue);
7693
7915
  return;
7694
7916
  }
7695
- le("next");
7917
+ ce("next");
7696
7918
  return;
7697
7919
  }
7698
7920
  if (n.key === "ArrowUp" && I) {
7699
- n.preventDefault(), le("prev");
7921
+ n.preventDefault(), ce("prev");
7700
7922
  return;
7701
7923
  }
7702
- if (n.key === "Enter" && I && W) {
7703
- let e = U.find((e) => e.optionValue === W);
7704
- e && (n.preventDefault(), q(e.item));
7924
+ if (n.key === "Enter" && I && K) {
7925
+ let e = ne.find((e) => e.optionValue === K);
7926
+ e && (n.preventDefault(), de(e.item));
7705
7927
  return;
7706
7928
  }
7707
- n.key === "Escape" && I && !n.defaultPrevented && (n.preventDefault(), K());
7929
+ n.key === "Escape" && I && !n.defaultPrevented && (n.preventDefault(), ue());
7708
7930
  }, [
7931
+ ue,
7932
+ de,
7709
7933
  K,
7710
- q,
7711
- W,
7712
7934
  I,
7935
+ ce,
7936
+ ne,
7713
7937
  le,
7714
- U,
7715
- ue,
7716
7938
  e,
7717
7939
  t
7718
- ]), be = Y((e) => {
7940
+ ]), ve = Y((e) => {
7719
7941
  y.current = e.nativeEvent;
7720
- }, []), xe = Y((e) => {
7942
+ }, []), Ce = Y((e) => {
7721
7943
  if (e === y.current) return !0;
7722
7944
  let t = p.current;
7723
7945
  return t !== null && e.composedPath().includes(t);
7724
7946
  }, []);
7725
- return he(() => {
7947
+ return be(() => {
7726
7948
  let n = I && !_.current;
7727
7949
  _.current = I;
7728
7950
  let r = g.current;
7729
- if (g.current = !1, !n || (te({}), r)) return;
7951
+ if (g.current = !1, !n || (ee({}), r)) return;
7730
7952
  k("");
7731
- let i = L ? Ni(L, t) : void 0;
7732
- j((i !== void 0 && vi(!0, e, t, {}).some((e) => e.optionValue === i) ? i : void 0) ?? v.current), N(!1), v.current = void 0;
7953
+ let i = L ? na(L, t) : void 0;
7954
+ j((i !== void 0 && Vi(!0, e, t, {}).some((e) => e.optionValue === i) ? i : void 0) ?? v.current), N(!1), v.current = void 0;
7733
7955
  }, [
7734
7956
  I,
7735
7957
  L,
7736
7958
  e,
7737
7959
  t
7738
- ]), me(() => {
7739
- !I || !m || !W || document.getElementById(_i(d, W))?.scrollIntoView({ block: "nearest" });
7960
+ ]), ye(() => {
7961
+ !I || !m || !K || document.getElementById(Bi(d, K))?.scrollIntoView({ block: "nearest" });
7740
7962
  }, [
7741
- W,
7963
+ K,
7742
7964
  I,
7743
7965
  d,
7744
7966
  m
7745
- ]), he(() => {
7967
+ ]), be(() => {
7746
7968
  if (!I || !m) return;
7747
7969
  let e = m.querySelector("[cmdk-list]");
7748
7970
  e instanceof HTMLElement && (e.id = d);
@@ -7750,7 +7972,7 @@ function Pi({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
7750
7972
  for (let e of t) {
7751
7973
  if (!(e instanceof HTMLElement)) continue;
7752
7974
  let t = e.getAttribute("data-filter-option-value");
7753
- t && (e.id = _i(d, t));
7975
+ t && (e.id = Bi(d, t));
7754
7976
  }
7755
7977
  }), {
7756
7978
  listboxId: d,
@@ -7758,40 +7980,40 @@ function Pi({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
7758
7980
  setListRoot: h,
7759
7981
  inputRef: b,
7760
7982
  isOpen: I,
7761
- isIdle: H,
7983
+ isIdle: U,
7762
7984
  query: O,
7763
- inputValue: oe,
7764
- inputPlaceholder: se,
7765
- clearAction: ce,
7985
+ inputValue: ie,
7986
+ inputPlaceholder: ae,
7987
+ clearAction: oe,
7766
7988
  selectedItem: L,
7767
- highlightedOptionValue: W,
7768
- keyboardHighlightedOptionValue: I && M ? W : void 0,
7769
- activeDescendantId: ae,
7770
- expandedScopes: ee,
7989
+ highlightedOptionValue: K,
7990
+ keyboardHighlightedOptionValue: I && M ? K : void 0,
7991
+ activeDescendantId: re,
7992
+ expandedScopes: B,
7771
7993
  filteredItems: V,
7772
- queryItem: re,
7773
- queryHint: ie,
7994
+ queryItem: W,
7995
+ queryHint: G,
7774
7996
  queryHintId: f,
7775
- toggleScope: B,
7776
- closeList: K,
7777
- isInsideControl: xe,
7778
- handleControlPointerDownCapture: be,
7779
- handleSelect: q,
7780
- handleClear: de,
7781
- handleInputChange: fe,
7782
- handleClick: J,
7783
- handleHighlightOption: pe,
7784
- handleLeaveOption: ve,
7785
- handleFocus: Q,
7786
- handlePaste: $,
7787
- handleKeyDown: ye
7997
+ toggleScope: te,
7998
+ closeList: ue,
7999
+ isInsideControl: Ce,
8000
+ handleControlPointerDownCapture: ve,
8001
+ handleSelect: de,
8002
+ handleClear: fe,
8003
+ handleInputChange: pe,
8004
+ handleClick: me,
8005
+ handleHighlightOption: he,
8006
+ handleLeaveOption: q,
8007
+ handleFocus: ge,
8008
+ handlePaste: _e,
8009
+ handleKeyDown: J
7788
8010
  };
7789
8011
  }
7790
8012
  //#endregion
7791
8013
  //#region src/charts/FilterCombobox/FilterCombobox.tsx
7792
- var Fi = 6, Ii = "w-(--radix-popover-trigger-width) max-w-(--radix-popover-content-available-width)", Li = "max-h-[min(18rem,calc(var(--radix-popover-content-available-height,18rem)-0.5rem))]";
7793
- function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "Search a property...", emptyMessage: o = "No results found.", listLabel: s = "Filter options", inputId: c, "aria-label": l, value: u, onValueChange: d, open: f, onOpenChange: p, disabled: m = !1, clearable: h = !0, getQueryItem: g, getQueryHint: _ }) {
7794
- let { listboxId: v, containerRef: y, setListRoot: b, inputRef: x, isOpen: S, isIdle: C, query: w, inputValue: T, inputPlaceholder: E, clearAction: D, selectedItem: O, highlightedOptionValue: k, keyboardHighlightedOptionValue: A, activeDescendantId: j, expandedScopes: M, filteredItems: N, queryItem: P, queryHint: F, queryHintId: I, toggleScope: L, closeList: R, isInsideControl: z, handleControlPointerDownCapture: B, handleSelect: V, handleClear: H, handleInputChange: re, handleClick: ie, handleHighlightOption: U, handleLeaveOption: se, handleFocus: ce, handleKeyDown: G, handlePaste: le } = Pi({
8014
+ var ia = 6, aa = "w-(--radix-popover-trigger-width) max-w-(--radix-popover-content-available-width)", oa = "max-h-[min(18rem,calc(var(--radix-popover-content-available-height,18rem)-0.5rem))]";
8015
+ function sa({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "Search a property...", emptyMessage: o = "No results found.", listLabel: s = "Filter options", inputId: c, "aria-label": l, value: u, onValueChange: d, open: f, onOpenChange: p, disabled: m = !1, clearable: h = !0, getQueryItem: g, getQueryHint: _ }) {
8016
+ let { listboxId: v, containerRef: y, setListRoot: b, inputRef: x, isOpen: S, isIdle: C, query: w, inputValue: T, inputPlaceholder: E, clearAction: D, selectedItem: O, highlightedOptionValue: k, keyboardHighlightedOptionValue: A, activeDescendantId: j, expandedScopes: M, filteredItems: N, queryItem: P, queryHint: F, queryHintId: I, toggleScope: L, closeList: R, isInsideControl: z, handleControlPointerDownCapture: B, handleSelect: ee, handleClear: te, handleInputChange: V, handleClick: W, handleHighlightOption: G, handleLeaveOption: K, handleFocus: re, handleKeyDown: ie, handlePaste: ae } = ra({
7795
8017
  items: r,
7796
8018
  scopes: t,
7797
8019
  onSelect: i,
@@ -7803,15 +8025,15 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7803
8025
  clearable: h,
7804
8026
  getQueryItem: g,
7805
8027
  getQueryHint: _
7806
- }), K = N.length > 0, q = P !== void 0 || F !== void 0, de = S && F !== void 0, fe = !C && (K || !q);
7807
- return /* @__PURE__ */ Q(ue, {
8028
+ }), le = N.length > 0, ue = P !== void 0 || F !== void 0, de = S && F !== void 0, fe = !C && (le || !ue);
8029
+ return /* @__PURE__ */ Q(me, {
7808
8030
  delayDuration: 200,
7809
- children: /* @__PURE__ */ $(W, {
8031
+ children: /* @__PURE__ */ $(oe, {
7810
8032
  open: S,
7811
8033
  onOpenChange: (e) => {
7812
8034
  e || R();
7813
8035
  },
7814
- children: [/* @__PURE__ */ Q(ae, {
8036
+ children: [/* @__PURE__ */ Q(se, {
7815
8037
  asChild: !0,
7816
8038
  children: /* @__PURE__ */ $("div", {
7817
8039
  "data-slot": "filter-combobox",
@@ -7836,15 +8058,15 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7836
8058
  title: S ? void 0 : O?.technicalName,
7837
8059
  disabled: m,
7838
8060
  value: T,
7839
- onChange: re,
7840
- onClick: ie,
7841
- onFocus: ce,
7842
- onKeyDown: G,
7843
- onPaste: le,
8061
+ onChange: V,
8062
+ onClick: W,
8063
+ onFocus: re,
8064
+ onKeyDown: ie,
8065
+ onPaste: ae,
7844
8066
  placeholder: E ?? a,
7845
8067
  className: "h-8 w-full min-w-0 rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-base text-foreground transition-colors outline-none placeholder:text-muted-foreground placeholder:italic focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80"
7846
8068
  }),
7847
- D === void 0 && /* @__PURE__ */ Q(mt, {
8069
+ D === void 0 && /* @__PURE__ */ Q(Lt, {
7848
8070
  "aria-hidden": "true",
7849
8071
  "data-slot": "filter-combobox-chevron",
7850
8072
  className: e("pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-muted-foreground transition-transform duration-200", S && "rotate-180", m && "opacity-50")
@@ -7854,9 +8076,9 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7854
8076
  "aria-label": D === "query" ? "Clear search" : "Clear selection",
7855
8077
  tabIndex: S ? -1 : void 0,
7856
8078
  onMouseDown: (e) => e.preventDefault(),
7857
- onClick: H,
8079
+ onClick: te,
7858
8080
  className: "absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground transition-colors hover:text-foreground",
7859
- children: /* @__PURE__ */ Q(St, {
8081
+ children: /* @__PURE__ */ Q(Gt, {
7860
8082
  "aria-hidden": "true",
7861
8083
  className: "size-4"
7862
8084
  })
@@ -7869,29 +8091,29 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7869
8091
  children: de ? F : ""
7870
8092
  })]
7871
8093
  })
7872
- }), /* @__PURE__ */ Q(oe, {
8094
+ }), /* @__PURE__ */ Q(ce, {
7873
8095
  ref: b,
7874
8096
  "data-slot": "filter-combobox-content",
7875
8097
  role: "presentation",
7876
8098
  align: "start",
7877
- sideOffset: Fi,
8099
+ sideOffset: ia,
7878
8100
  onOpenAutoFocus: (e) => e.preventDefault(),
7879
8101
  onCloseAutoFocus: (e) => e.preventDefault(),
7880
8102
  onInteractOutside: (e) => {
7881
8103
  z(e.detail.originalEvent) && e.preventDefault();
7882
8104
  },
7883
8105
  onMouseDownCapture: (e) => e.preventDefault(),
7884
- className: e(Ii, "gap-0 overflow-hidden p-0"),
7885
- children: /* @__PURE__ */ $(ee, {
8106
+ className: e(aa, "gap-0 overflow-hidden p-0"),
8107
+ children: /* @__PURE__ */ $(H, {
7886
8108
  shouldFilter: !1,
7887
8109
  value: k ?? "",
7888
8110
  children: [/* @__PURE__ */ $(ne, {
7889
8111
  "aria-label": s,
7890
- className: Li,
8112
+ className: oa,
7891
8113
  children: [
7892
- !K && !q && /* @__PURE__ */ Q(te, { children: /* @__PURE__ */ $("div", {
8114
+ !le && !ue && /* @__PURE__ */ Q(U, { children: /* @__PURE__ */ $("div", {
7893
8115
  className: "flex flex-col items-center justify-center space-y-2 py-4 text-muted-foreground",
7894
- children: [/* @__PURE__ */ Q(bt, {
8116
+ children: [/* @__PURE__ */ Q(Ut, {
7895
8117
  "aria-hidden": "true",
7896
8118
  className: "size-6 opacity-20"
7897
8119
  }), /* @__PURE__ */ Q("p", {
@@ -7899,7 +8121,7 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7899
8121
  children: o
7900
8122
  })]
7901
8123
  }) }),
7902
- C && /* @__PURE__ */ Q(wi, {
8124
+ C && /* @__PURE__ */ Q(qi, {
7903
8125
  scopes: t,
7904
8126
  dataTypes: n,
7905
8127
  items: N,
@@ -7908,11 +8130,11 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7908
8130
  keyboardHighlightedOptionValue: A,
7909
8131
  onDismissList: R,
7910
8132
  onToggleScope: L,
7911
- onSelect: V,
7912
- onHighlightOption: U,
7913
- onLeaveOption: se
8133
+ onSelect: ee,
8134
+ onHighlightOption: G,
8135
+ onLeaveOption: K
7914
8136
  }),
7915
- fe && /* @__PURE__ */ Q(Oi, {
8137
+ fe && /* @__PURE__ */ Q(Zi, {
7916
8138
  scopes: t,
7917
8139
  dataTypes: n,
7918
8140
  items: N,
@@ -7920,26 +8142,26 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7920
8142
  selectedItemId: O?.id,
7921
8143
  keyboardHighlightedOptionValue: A,
7922
8144
  onDismissList: R,
7923
- onSelect: V,
7924
- onHighlightOption: U,
7925
- onLeaveOption: se
8145
+ onSelect: ee,
8146
+ onHighlightOption: G,
8147
+ onLeaveOption: K
7926
8148
  }),
7927
- P !== void 0 && /* @__PURE__ */ Q(Ti, {
8149
+ P !== void 0 && /* @__PURE__ */ Q(Ji, {
7928
8150
  dataTypes: n,
7929
8151
  item: P,
7930
- afterMatches: K,
8152
+ afterMatches: le,
7931
8153
  selectedItemId: O?.id,
7932
8154
  keyboardHighlightedOptionValue: A,
7933
8155
  onDismissList: R,
7934
- onSelect: V,
7935
- onHighlightOption: U,
7936
- onLeaveOption: se
8156
+ onSelect: ee,
8157
+ onHighlightOption: G,
8158
+ onLeaveOption: K
7937
8159
  })
7938
8160
  ]
7939
- }), F !== void 0 && /* @__PURE__ */ Q(Ei, {
8161
+ }), F !== void 0 && /* @__PURE__ */ Q(Yi, {
7940
8162
  id: I,
7941
8163
  hint: F,
7942
- afterOptions: K || P !== void 0
8164
+ afterOptions: le || P !== void 0
7943
8165
  })]
7944
8166
  })
7945
8167
  })]
@@ -7947,4 +8169,4 @@ function Ri({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
7947
8169
  });
7948
8170
  }
7949
8171
  //#endregion
7950
- export { Bn as AreaChart, Ke as AreaSeries, Ye as BarChart, Dr as BarMeter, We as BarSeries, Jr as BreakdownChart, Br as BreakdownChartSkeleton, Zr as BreakdownLegend, Qr as BreakdownLegendContent, $r as BreakdownSummary, jr as BreakdownTooltip, Pr as BreakdownTooltipContent, a as CHART_THEMES, g as CartesianChart, m as CategoryAxis, m as XAxis, ze as ChartBrush, Oe as ChartCard, O as ChartContainer, Re as ChartLegend, Le as ChartLegendContent, s as ChartStyle, Fe as ChartTooltip, Pe as ChartTooltipContent, _ as DEFAULT_MARGIN, et as DoughnutChart, Ri as FilterCombobox, A as Grid, zn as LineChart, He as LineSeries, Sn as Metric, Rn as MetricGroup, D as ReferenceLine, Cr as TraceWaterfall, c as ValueAxis, c as YAxis, Jn as buildTimeAxisTicks, e as cn, t as compactTick, Un as computeBarGeometry, Hn as computeTraceDurationNs, Vn as formatDurationNs, Wn as formatTracePercent, fn as resolveSentiment, i as useChartConfig };
8172
+ export { lr as AreaChart, mt as AreaSeries, _t as BarChart, Xr as BarMeter, ft as BarSeries, _i as BreakdownChart, li as BreakdownChartSkeleton, bi as BreakdownLegend, xi as BreakdownLegendContent, Si as BreakdownSummary, ei as BreakdownTooltip, ri as BreakdownTooltipContent, x as CHART_THEMES, y as CartesianChart, d as CategoryAxis, d as XAxis, st as ChartBrush, Ne as ChartCard, u as ChartContainer, ot as ChartLegend, at as ChartLegendContent, i as ChartStyle, ze as ChartTooltip, Re as ChartTooltipContent, t as DEFAULT_MARGIN, Ct as DoughnutChart, sa as FilterCombobox, p as Grid, cr as LineChart, ut as LineSeries, Gn as Metric, sr as MetricGroup, P as ReferenceLine, Kr as TraceWaterfall, j as ValueAxis, j as YAxis, _r as buildTimeAxisTicks, e as cn, b as compactTick, fr as computeBarGeometry, dr as computeTraceDurationNs, ur as formatDurationNs, pr as formatTracePercent, Fn as resolveSentiment, r as useChartConfig };