@gravitee/graphene-charts 2.56.0 → 2.57.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,14 +1,14 @@
1
1
  import { t as e } from "./utils-CvSeRmfY.js";
2
2
  import { C as t, D as n, E as r, S as i, T as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, v as w, w as T, x as E, y as D } from "./primitives-CBHhjCs9.js";
3
- import { Badge as O, Card as k, CardContent as A, CardDescription as j, CardHeader as M, CardTitle as N, Collapsible as P, CollapsibleContent as F, CollapsibleTrigger as I, Command as L, CommandEmpty as R, CommandGroup as ee, CommandItem as te, CommandList as z, HoverCard as ne, HoverCardContent as B, HoverCardTrigger as re, ScrollArea as ie, Separator as ae, Tooltip as oe, TooltipContent as se, TooltipProvider as ce, TooltipTrigger as le } from "@gravitee/graphene-core";
4
- import * as V from "react";
5
- import { createContext as ue, createElement as de, forwardRef as H, useCallback as U, useContext as fe, useEffect as pe, useId as W, useMemo as me, useRef as G, useState as K } from "react";
3
+ import { Badge as O, Card as k, CardContent as A, CardDescription as j, CardHeader as M, CardTitle as N, Collapsible as P, CollapsibleContent as F, CollapsibleTrigger as I, Command as L, CommandEmpty as R, CommandGroup as z, CommandItem as ee, CommandList as B, HoverCard as te, HoverCardContent as V, HoverCardTrigger as ne, ScrollArea as re, Separator as ie, Tooltip as ae, TooltipContent as oe, TooltipProvider as se, TooltipTrigger as ce } from "@gravitee/graphene-core";
4
+ import * as H from "react";
5
+ import { createContext as le, createElement as ue, forwardRef as U, useCallback as W, useContext as de, useEffect as fe, useId as G, useLayoutEffect as pe, useMemo as me, useRef as he, useState as K } from "react";
6
6
  import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
7
- import { scaleLinear as he } from "d3-scale";
8
- import { arc as ge, area as _e, curveLinear as ve, curveMonotoneX as ye, curveStep as be, line as xe, pie as Se } from "d3-shape";
9
- import { createPortal as Ce } from "react-dom";
7
+ import { scaleLinear as ge } from "d3-scale";
8
+ import { arc as _e, area as ve, curveLinear as ye, curveMonotoneX as be, curveStep as xe, line as Se, pie as Ce } from "d3-shape";
9
+ import { createPortal as we } from "react-dom";
10
10
  //#region src/base/ChartCard/ChartCard.tsx
11
- function we({ title: t, description: n, children: r, className: i, ...a }) {
11
+ function Te({ title: t, description: n, children: r, className: i, ...a }) {
12
12
  return /* @__PURE__ */ Y(k, {
13
13
  className: e("flex h-full flex-col gap-0", i),
14
14
  ...a,
@@ -30,25 +30,25 @@ function we({ title: t, description: n, children: r, className: i, ...a }) {
30
30
  }
31
31
  //#endregion
32
32
  //#region src/base/ChartTooltip/ChartTooltip.tsx
33
- function Te(e) {
33
+ function Ee(e) {
34
34
  return typeof e == "number" ? e.toLocaleString() : e;
35
35
  }
36
- function Ee(e, t, n) {
36
+ function De(e, t, n) {
37
37
  return t && e[t] ? e[t] : e[n];
38
38
  }
39
- function De(e) {
39
+ function Oe(e) {
40
40
  return e.toLocaleString();
41
41
  }
42
- function Oe(e) {
42
+ function ke(e) {
43
43
  return `${e.toFixed(1)}%`;
44
44
  }
45
- function ke(e) {
45
+ function Ae(e) {
46
46
  return e.reduce((e, t) => e + (typeof t.value == "number" ? t.value : 0), 0);
47
47
  }
48
- function Ae({ label: n, items: r = [], active: i = !0, hideLabel: a = !1, hideIndicator: o, indicator: s = "dot", labelKey: c, nameKey: l, labelIndicator: u, labelColor: d, labelFormatter: f, labelClassName: p, valueFormatter: m, showTotal: h = !1, totalLabel: g = "Total", totalFormatter: _ = De, showPercent: v = !1, percentFormatter: y = Oe, className: b, ...x }) {
49
- let { config: S } = t(), C = m ?? Te, w = !m;
48
+ function je({ label: n, items: r = [], active: i = !0, hideLabel: a = !1, hideIndicator: o, indicator: s = "dot", labelKey: c, nameKey: l, labelIndicator: u, labelColor: d, labelFormatter: f, labelClassName: p, valueFormatter: m, showTotal: h = !1, totalLabel: g = "Total", totalFormatter: _ = Oe, showPercent: v = !1, percentFormatter: y = ke, className: b, ...x }) {
49
+ let { config: S } = t(), C = m ?? Ee, w = !m;
50
50
  if (!i || r.length === 0) return null;
51
- let E = o ?? (u === "line" || u === "dashed"), D = ke(r), O = r.length === 1 && s !== "dot", k = c ? Ee(S, c, c)?.label ?? n : typeof n == "string" ? S[n]?.label ?? n : n, A = f ? f(n ?? "", r) : k, j = (() => {
51
+ let E = o ?? (u === "line" || u === "dashed"), D = Ae(r), O = r.length === 1 && s !== "dot", k = c ? De(S, c, c)?.label ?? n : typeof n == "string" ? S[n]?.label ?? n : n, A = f ? f(n ?? "", r) : k, j = (() => {
52
52
  if (d) return d;
53
53
  if (c && S[c]?.color) return S[c].color;
54
54
  let e = r[0];
@@ -65,7 +65,7 @@ function Ae({ label: n, items: r = [], active: i = !0, hideLabel: a = !1, hideIn
65
65
  }), P = /* @__PURE__ */ J("div", {
66
66
  className: "grid gap-1.5",
67
67
  children: r.map((t, n) => {
68
- let r = Ee(S, `${l ?? t.dataKey ?? t.name ?? "value"}`, t.name), i = t.color ?? `var(--color-${T(t.dataKey ?? t.name)})`;
68
+ let r = De(S, `${l ?? t.dataKey ?? t.name ?? "value"}`, t.name), i = t.color ?? `var(--color-${T(t.dataKey ?? t.name)})`;
69
69
  return /* @__PURE__ */ Y("div", {
70
70
  className: e("flex w-full items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", s === "dot" && "items-center"),
71
71
  children: [r?.icon ? /* @__PURE__ */ J(r.icon, {}) : !E && /* @__PURE__ */ J("div", {
@@ -133,22 +133,22 @@ function Ae({ label: n, items: r = [], active: i = !0, hideLabel: a = !1, hideIn
133
133
  })]
134
134
  });
135
135
  }
136
- function je({ content: e }) {
136
+ function Me({ content: e }) {
137
137
  let { setTooltip: t } = d();
138
- return V.useLayoutEffect(() => (t({ content: e }), () => t(null)), [e, t]), null;
138
+ return H.useLayoutEffect(() => (t({ content: e }), () => t(null)), [e, t]), null;
139
139
  }
140
140
  //#endregion
141
141
  //#region src/base/ChartLegend/ChartLegend.tsx
142
- var Me = {
142
+ var Ne = {
143
143
  start: "justify-start",
144
144
  center: "justify-center",
145
145
  end: "justify-end"
146
146
  };
147
- function Ne({ items: n = [], hideIcon: r = !1, nameKey: i, verticalAlign: a, align: o = "start", onItemHover: s, onItemLeave: c, hoveredLegendKey: l, className: u, ...d }) {
147
+ function Pe({ items: n = [], hideIcon: r = !1, nameKey: i, verticalAlign: a, align: o = "start", onItemHover: s, onItemLeave: c, hoveredLegendKey: l, className: u, ...d }) {
148
148
  let { config: f } = t();
149
149
  return n.length === 0 ? null : /* @__PURE__ */ J("div", {
150
150
  "data-slot": "chart-legend-content",
151
- className: e("flex items-center gap-4 overflow-hidden px-4 py-1", Me[o], u),
151
+ className: e("flex items-center gap-4 overflow-hidden px-4 py-1", Ne[o], u),
152
152
  ...d,
153
153
  children: n.map((t) => {
154
154
  let n = f[`${i ?? t.dataKey ?? t.value}`], a = t.color ?? `var(--color-${T(t.dataKey ?? t.value)})`, o = t.dataKey ?? t.value;
@@ -168,9 +168,9 @@ function Ne({ items: n = [], hideIcon: r = !1, nameKey: i, verticalAlign: a, ali
168
168
  })
169
169
  });
170
170
  }
171
- function Pe({ content: e, verticalAlign: t = "bottom" }) {
171
+ function Fe({ content: e, verticalAlign: t = "bottom" }) {
172
172
  let { setLegend: n } = d();
173
- return V.useLayoutEffect(() => (n({
173
+ return H.useLayoutEffect(() => (n({
174
174
  content: e,
175
175
  verticalAlign: t
176
176
  }), () => n(null)), [
@@ -181,14 +181,14 @@ function Pe({ content: e, verticalAlign: t = "bottom" }) {
181
181
  }
182
182
  //#endregion
183
183
  //#region src/series/curves.ts
184
- var Fe = {
185
- monotone: ye,
186
- linear: ve,
187
- step: be
188
- }, Ie = "\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";
189
- function Le({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1, connectNulls: i = !1 }) {
190
- let { data: a, categoryScale: o, resolveValueScale: s, animated: c, hoveredCategory: l, hoveredLegendKey: u, config: d, valueTickFormatter: f, showTooltipAt: p, hideTooltip: m } = w(), h = s(t), g = V.useRef(null), [_, v] = V.useState(0), y = `var(--color-${T(e)})`;
191
- V.useLayoutEffect(() => {
184
+ var Ie = {
185
+ monotone: be,
186
+ linear: ye,
187
+ step: xe
188
+ }, Le = "\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";
189
+ function Re({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1, connectNulls: i = !1 }) {
190
+ let { data: a, categoryScale: o, resolveValueScale: s, animated: c, hoveredCategory: l, hoveredLegendKey: u, config: d, valueTickFormatter: f, showTooltipAt: p, hideTooltip: m } = w(), h = s(t), g = H.useRef(null), [_, v] = H.useState(0), y = `var(--color-${T(e)})`;
191
+ H.useLayoutEffect(() => {
192
192
  g.current && v(g.current.getTotalLength());
193
193
  }, [
194
194
  a,
@@ -198,7 +198,7 @@ function Le({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1
198
198
  n,
199
199
  i
200
200
  ]);
201
- let b = Fe[n], x = typeof d[e]?.label == "string" ? d[e]?.label : e, S = [];
201
+ let b = Ie[n], x = typeof d[e]?.label == "string" ? d[e]?.label : e, S = [];
202
202
  for (let t of a) {
203
203
  let n = t[e];
204
204
  if (n == null) {
@@ -222,7 +222,7 @@ function Le({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1
222
222
  value: r
223
223
  });
224
224
  }
225
- let C = xe().x((e) => e.x).y((e) => e.y).curve(b).defined((e) => e.defined)(S) ?? "";
225
+ let C = Se().x((e) => e.x).y((e) => e.y).curve(b).defined((e) => e.defined)(S) ?? "";
226
226
  return /* @__PURE__ */ Y("g", {
227
227
  style: {
228
228
  opacity: u !== null && u !== e ? .15 : 1,
@@ -231,7 +231,7 @@ function Le({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1
231
231
  children: [
232
232
  /* @__PURE__ */ J("style", {
233
233
  precedence: "graphene-charts",
234
- children: Ie
234
+ children: Le
235
235
  }),
236
236
  /* @__PURE__ */ J("path", {
237
237
  ref: g,
@@ -283,16 +283,16 @@ function Le({ dataKey: e, axisId: t, curveType: n = "monotone", showDots: r = !1
283
283
  ]
284
284
  });
285
285
  }
286
- Le.seriesType = "LineSeries";
286
+ Re.seriesType = "LineSeries";
287
287
  //#endregion
288
288
  //#region src/series/BarSeries.tsx
289
- var Re = "\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";
290
- function ze({ dataKey: e, axisId: t, stackId: n, barRadius: r }) {
291
- let { data: i, categoryScale: a, resolveValueScale: o, innerHeight: s, layout: c, colorMode: l, animated: u, hoveredLegendKey: d, config: f, stackedLayers: p, barGroupScale: m, valueTickFormatter: h, chartWrapperRef: g, chartId: _, showTooltipAt: v, hideTooltip: b } = w(), x = o(t), S = c === "vertical", E = l === "category", D = `var(--color-${T(e)})`, O = typeof f[e]?.label == "string" ? f[e]?.label : e, [k, A] = C("var(--chart-bar-radius, 3px)", 3), j = r ?? k, [M, N] = V.useState(null);
292
- V.useEffect(() => {
289
+ var ze = "\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";
290
+ function Be({ dataKey: e, axisId: t, stackId: n, barRadius: r }) {
291
+ let { data: i, categoryScale: a, resolveValueScale: o, innerHeight: s, layout: c, colorMode: l, animated: u, hoveredLegendKey: d, config: f, stackedLayers: p, barGroupScale: m, valueTickFormatter: h, chartWrapperRef: g, chartId: _, showTooltipAt: v, hideTooltip: b } = w(), x = o(t), S = c === "vertical", E = l === "category", D = `var(--color-${T(e)})`, O = typeof f[e]?.label == "string" ? f[e]?.label : e, [k, A] = C("var(--chart-bar-radius, 3px)", 3), j = r ?? k, [M, N] = H.useState(null);
292
+ H.useEffect(() => {
293
293
  N(g.current);
294
294
  }, [g]);
295
- let P = n ? p.get(n)?.find((t) => t.key === e) : void 0, F = n ? p.get(n) ?? null : null, I = V.useMemo(() => !F || F.length === 0 ? !1 : F[0].key === e, [F, e]), L = V.useMemo(() => {
295
+ let P = n ? p.get(n)?.find((t) => t.key === e) : void 0, F = n ? p.get(n) ?? null : null, I = H.useMemo(() => !F || F.length === 0 ? !1 : F[0].key === e, [F, e]), L = H.useMemo(() => {
296
296
  if (!I || !F || F.length === 0) return null;
297
297
  let e = F[F.length - 1];
298
298
  return i.map((t, r) => {
@@ -336,9 +336,9 @@ function ze({ dataKey: e, axisId: t, stackId: n, barRadius: r }) {
336
336
  children: [
337
337
  /* @__PURE__ */ J("style", {
338
338
  precedence: "graphene-charts",
339
- children: Re
339
+ children: ze
340
340
  }),
341
- M && Ce(A, M),
341
+ M && we(A, M),
342
342
  L && /* @__PURE__ */ J("defs", { children: L.map(({ clipId: e, path: t }) => /* @__PURE__ */ J("clipPath", {
343
343
  id: e,
344
344
  children: /* @__PURE__ */ J("path", { d: t })
@@ -398,13 +398,13 @@ function ze({ dataKey: e, axisId: t, stackId: n, barRadius: r }) {
398
398
  ]
399
399
  });
400
400
  }
401
- ze.seriesType = "BarSeries";
401
+ Be.seriesType = "BarSeries";
402
402
  //#endregion
403
403
  //#region src/series/AreaSeries.tsx
404
- var Be = "\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";
405
- function Ve({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fillOpacity: i = .2, gradient: a = !0, connectNulls: o = !1 }) {
406
- let { data: s, categoryScale: c, resolveValueScale: l, innerHeight: u, animated: d, hoveredCategory: f, hoveredLegendKey: p, stackedLayers: m, chartId: h } = w(), g = l(t), _ = V.useRef(null), [v, y] = V.useState(0), b = `var(--color-${T(e)})`, x = Fe[r];
407
- V.useLayoutEffect(() => {
404
+ var 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@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";
405
+ function He({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fillOpacity: i = .2, gradient: a = !0, connectNulls: o = !1 }) {
406
+ let { data: s, categoryScale: c, resolveValueScale: l, innerHeight: u, animated: d, hoveredCategory: f, hoveredLegendKey: p, stackedLayers: m, chartId: h } = w(), g = l(t), _ = H.useRef(null), [v, y] = H.useState(0), b = `var(--color-${T(e)})`, x = Ie[r];
407
+ H.useLayoutEffect(() => {
408
408
  _.current && y(_.current.getTotalLength());
409
409
  }, [
410
410
  s,
@@ -417,7 +417,7 @@ function Ve({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fill
417
417
  ]);
418
418
  let S = n ? m.get(n)?.find((t) => t.key === e) : void 0, C = `area-gradient-${h}-${e}`, E = a ? `url(#${C})` : b, D = c.domain(), O = "", k = "", A = null, j = null;
419
419
  if (S) {
420
- let t = (t) => o ? !0 : s[t]?.[e] != null, n = _e().x((e) => (c(D[e]) ?? 0) + c.bandwidth() / 2).y0((e) => g(S[e][0])).y1((e) => g(S[e][1])).defined(t).curve(x), r = xe().x((e) => (c(D[e]) ?? 0) + c.bandwidth() / 2).y((e) => g(S[e][1])).defined(t).curve(x), i = D.map((e, t) => t);
420
+ let t = (t) => o ? !0 : s[t]?.[e] != null, n = ve().x((e) => (c(D[e]) ?? 0) + c.bandwidth() / 2).y0((e) => g(S[e][0])).y1((e) => g(S[e][1])).defined(t).curve(x), r = Se().x((e) => (c(D[e]) ?? 0) + c.bandwidth() / 2).y((e) => g(S[e][1])).defined(t).curve(x), i = D.map((e, t) => t);
421
421
  if (O = n(i) ?? "", k = r(i) ?? "", f !== null) {
422
422
  let e = D.indexOf(f);
423
423
  e !== -1 && t(e) && (A = (c(f) ?? 0) + c.bandwidth() / 2, j = g(S[e][1]));
@@ -445,7 +445,7 @@ function Ve({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fill
445
445
  category: n.category
446
446
  });
447
447
  }
448
- let n = (e) => e.defined, r = xe().x((e) => e.x).y((e) => e.y).curve(x).defined(n), i = _e().x((e) => e.x).y0(u).y1((e) => e.y).curve(x).defined(n);
448
+ let n = (e) => e.defined, r = Se().x((e) => e.x).y((e) => e.y).curve(x).defined(n), i = ve().x((e) => e.x).y0(u).y1((e) => e.y).curve(x).defined(n);
449
449
  if (k = r(t) ?? "", O = i(t) ?? "", f !== null) {
450
450
  let e = t.find((e) => e.category === f && e.defined);
451
451
  e && (A = e.x, j = e.y);
@@ -459,7 +459,7 @@ function Ve({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fill
459
459
  children: [
460
460
  /* @__PURE__ */ J("style", {
461
461
  precedence: "graphene-charts",
462
- children: Be
462
+ children: Ve
463
463
  }),
464
464
  a && /* @__PURE__ */ J("defs", { children: /* @__PURE__ */ Y("linearGradient", {
465
465
  id: C,
@@ -512,10 +512,10 @@ function Ve({ dataKey: e, axisId: t, stackId: n, curveType: r = "monotone", fill
512
512
  ]
513
513
  });
514
514
  }
515
- Ve.seriesType = "AreaSeries";
515
+ He.seriesType = "AreaSeries";
516
516
  //#endregion
517
517
  //#region src/lib/inferDataKeys.ts
518
- function He(e, t, n = "series") {
518
+ function Ue(e, t, n = "series") {
519
519
  if (e.length === 0) return [];
520
520
  let r = /* @__PURE__ */ new Set(), i = [];
521
521
  for (let t of e) for (let e of Object.keys(t)) {
@@ -529,10 +529,10 @@ function He(e, t, n = "series") {
529
529
  }
530
530
  //#endregion
531
531
  //#region src/charts/BarChart/BarChart.tsx
532
- var Ue = 120;
533
- function We({ data: e, dataKeys: n, colorMode: r = "series", state: i, layout: a = "vertical", variant: s = "grouped", margin: c, barRadius: u, showGrid: d = !0, showCategoryAxis: f = !0, showValueAxis: h = !0, valueTickFormatter: _, ariaLabel: v, animated: y = !0, onBarHover: b, onBarLeave: x, className: S, children: C, ...w }) {
534
- let { config: T } = t(), E = n ?? He(e, Object.keys(T), r), D = a === "vertical", O = s === "stacked" ? "default" : void 0, k = D ? c : {
535
- left: Ue,
532
+ var We = 120;
533
+ function Ge({ data: e, dataKeys: n, colorMode: r = "series", state: i, layout: a = "vertical", variant: s = "grouped", margin: c, barRadius: u, showGrid: d = !0, showCategoryAxis: f = !0, showValueAxis: h = !0, valueTickFormatter: _, ariaLabel: v, animated: y = !0, onBarHover: b, onBarLeave: x, className: S, children: C, ...w }) {
534
+ let { config: T } = t(), E = n ?? Ue(e, Object.keys(T), r), D = a === "vertical", O = s === "stacked" ? "default" : void 0, k = D ? c : {
535
+ left: We,
536
536
  ...c
537
537
  };
538
538
  return i === "loading" ? /* @__PURE__ */ J(l, {
@@ -555,7 +555,7 @@ function We({ data: e, dataKeys: n, colorMode: r = "series", state: i, layout: a
555
555
  ...w,
556
556
  children: [
557
557
  d && /* @__PURE__ */ J(o, { orientation: D ? "horizontal" : "vertical" }),
558
- E.map((e) => /* @__PURE__ */ J(ze, {
558
+ E.map((e) => /* @__PURE__ */ J(Be, {
559
559
  dataKey: e,
560
560
  stackId: O,
561
561
  barRadius: u
@@ -568,18 +568,18 @@ function We({ data: e, dataKeys: n, colorMode: r = "series", state: i, layout: a
568
568
  }
569
569
  //#endregion
570
570
  //#region src/charts/DoughnutChart/DoughnutChart.tsx
571
- var Ge = {
571
+ var Ke = {
572
572
  top: 10,
573
573
  right: 10,
574
574
  bottom: 10,
575
575
  left: 10
576
- }, Ke = {
576
+ }, qe = {
577
577
  top: 30,
578
578
  right: 60,
579
579
  bottom: 30,
580
580
  left: 60
581
- }, qe = 50, Je = "\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";
582
- function Ye({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: d, onSegmentLeave: f, ariaLabel: p, margin: m, className: g, children: _, ...y }) {
581
+ }, Je = 50, Ye = "\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";
582
+ function Xe({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, labels: a, centerContent: o, startAngle: s, animated: c, tooltipLabel: l, onSegmentHover: d, onSegmentLeave: f, ariaLabel: p, margin: m, className: g, children: _, ...y }) {
583
583
  let b = h(e, t.length);
584
584
  return b === "loading" ? /* @__PURE__ */ J(S, {
585
585
  ariaLabel: p,
@@ -589,7 +589,7 @@ function Ye({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, l
589
589
  ariaLabel: p ?? "Doughnut chart with 0 segments",
590
590
  className: g,
591
591
  ...y
592
- }) : /* @__PURE__ */ J(u, { children: /* @__PURE__ */ J(Xe, {
592
+ }) : /* @__PURE__ */ J(u, { children: /* @__PURE__ */ J(Ze, {
593
593
  data: t,
594
594
  innerRadius: n,
595
595
  padAngle: r,
@@ -608,30 +608,30 @@ function Ye({ state: e, data: t, innerRadius: n, padAngle: r, cornerRadius: i, l
608
608
  children: _
609
609
  }) });
610
610
  }
611
- function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a = 8, labels: o, centerContent: l, startAngle: u = -Math.PI / 2, animated: f = !0, tooltipLabel: p, onSegmentHover: m, onSegmentLeave: h, ariaLabel: g, margin: _, className: v, children: y, ...b }) {
611
+ function Ze({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a = 8, labels: o, centerContent: l, startAngle: u = -Math.PI / 2, animated: f = !0, tooltipLabel: p, onSegmentHover: m, onSegmentLeave: h, ariaLabel: g, margin: _, className: v, children: y, ...b }) {
612
612
  let { config: x, id: S } = t(), { tooltip: C, legend: w } = d(), E = o !== void 0, O = {
613
- ...E ? Ke : Ge,
613
+ ...E ? qe : Ke,
614
614
  ..._
615
- }, k = V.useRef(null), A = V.useRef(null), j = c(A), M = D(), [N, P] = V.useState(null), F = V.useCallback((e) => P(e), []), I = V.useCallback(() => P(null), []), [L, R] = V.useState(null), ee = Math.max(0, j.width - O.left - O.right), te = Math.max(0, j.height - O.top - O.bottom), z = Math.min(ee, te) / 2, ne = z * r, B = V.useMemo(() => n.reduce((e, t) => e + t.value, 0), [n]), re = V.useMemo(() => Se().value((e) => e.value).sort(null).startAngle(u).endAngle(u + Math.PI * 2), [u]), ie = V.useMemo(() => n.length > 0 ? re(n) : [], [re, n]), ae = V.useMemo(() => ge().innerRadius(ne).outerRadius(z).padAngle(i).cornerRadius(a), [
616
- ne,
617
- z,
615
+ }, k = H.useRef(null), A = H.useRef(null), j = c(A), M = D(), [N, P] = H.useState(null), F = H.useCallback((e) => P(e), []), I = H.useCallback(() => P(null), []), [L, R] = H.useState(null), z = Math.max(0, j.width - O.left - O.right), ee = Math.max(0, j.height - O.top - O.bottom), B = Math.min(z, ee) / 2, te = B * r, V = H.useMemo(() => n.reduce((e, t) => e + t.value, 0), [n]), ne = H.useMemo(() => Ce().value((e) => e.value).sort(null).startAngle(u).endAngle(u + Math.PI * 2), [u]), re = H.useMemo(() => n.length > 0 ? ne(n) : [], [ne, n]), ie = H.useMemo(() => _e().innerRadius(te).outerRadius(B).padAngle(i).cornerRadius(a), [
616
+ te,
617
+ B,
618
618
  i,
619
619
  a
620
- ]), oe = V.useMemo(() => ge().innerRadius(z * 1.05).outerRadius(z * 1.05), [z]), se = V.useMemo(() => ge().innerRadius(z * 1.2).outerRadius(z * 1.2), [z]), ce = n.map((e) => ({
620
+ ]), ae = H.useMemo(() => _e().innerRadius(B * 1.05).outerRadius(B * 1.05), [B]), oe = H.useMemo(() => _e().innerRadius(B * 1.2).outerRadius(B * 1.2), [B]), se = n.map((e) => ({
621
621
  dataKey: e.category,
622
622
  value: e.category
623
623
  }));
624
- function le(e) {
624
+ function ce(e) {
625
625
  if (!o) return "";
626
- if (typeof o == "function") return o(e, B);
626
+ if (typeof o == "function") return o(e, V);
627
627
  switch (o) {
628
628
  case "category": return typeof x[e.category]?.label == "string" ? x[e.category]?.label : e.category;
629
629
  case "value": return e.value.toLocaleString();
630
- case "percent": return B > 0 ? `${(e.value / B * 100).toFixed(1)}%` : "0%";
630
+ case "percent": return V > 0 ? `${(e.value / V * 100).toFixed(1)}%` : "0%";
631
631
  }
632
632
  }
633
- function ue(e) {
634
- let t = B > 0 ? (e.value / B * 100).toFixed(1) : "0";
633
+ function le(e) {
634
+ let t = V > 0 ? (e.value / V * 100).toFixed(1) : "0";
635
635
  return [{
636
636
  dataKey: e.category,
637
637
  name: e.category,
@@ -639,48 +639,48 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
639
639
  payload: { percentage: t }
640
640
  }];
641
641
  }
642
- function de(e, t) {
643
- let n = ue(e);
642
+ function ue(e, t) {
643
+ let n = le(e);
644
644
  if (C) {
645
645
  let e = k.current?.getBoundingClientRect();
646
646
  e && M.show(n, p ?? "", t, e);
647
647
  }
648
648
  m?.(e, t);
649
649
  }
650
- function H(e) {
650
+ function U(e) {
651
651
  if (!C) return;
652
652
  let t = k.current?.getBoundingClientRect();
653
653
  t && M.move(e, t);
654
654
  }
655
- function U() {
655
+ function W() {
656
656
  M.hide(), h?.();
657
657
  }
658
- function fe(e, t, n) {
658
+ function de(e, t, n) {
659
659
  if (!C) return;
660
660
  let r = k.current?.getBoundingClientRect();
661
661
  if (!r) return;
662
- let i = ae.centroid(t), a = j.width / 2 + i[0], o = j.height / 2 + i[1], s = ue(e), c = {
662
+ let i = ie.centroid(t), a = j.width / 2 + i[0], o = j.height / 2 + i[1], s = le(e), c = {
663
663
  clientX: r.left + a,
664
664
  clientY: r.top + o
665
665
  };
666
666
  M.show(s, p ?? "", c, r);
667
667
  }
668
- function pe() {
668
+ function fe() {
669
669
  M.hide();
670
670
  }
671
- let W = w?.verticalAlign ?? "bottom", me = g ?? `Doughnut chart with ${n.length} segment${n.length === 1 ? "" : "s"}`;
671
+ let G = w?.verticalAlign ?? "bottom", pe = g ?? `Doughnut chart with ${n.length} segment${n.length === 1 ? "" : "s"}`;
672
672
  return /* @__PURE__ */ Y(q, { children: [
673
673
  /* @__PURE__ */ J("style", {
674
674
  precedence: "graphene-charts",
675
- children: Je
675
+ children: Ye
676
676
  }),
677
677
  y,
678
678
  /* @__PURE__ */ Y("div", {
679
679
  className: e("flex h-full w-full flex-col", v),
680
680
  ...b,
681
681
  children: [
682
- w && W === "top" && V.cloneElement(w.content, {
683
- items: ce,
682
+ w && G === "top" && H.cloneElement(w.content, {
683
+ items: se,
684
684
  verticalAlign: "top",
685
685
  onItemHover: F,
686
686
  onItemLeave: I,
@@ -693,14 +693,14 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
693
693
  /* @__PURE__ */ J("svg", {
694
694
  ref: A,
695
695
  role: "img",
696
- "aria-label": me,
696
+ "aria-label": pe,
697
697
  className: "h-full w-full",
698
698
  children: j.width > 0 && j.height > 0 && /* @__PURE__ */ J("g", {
699
699
  transform: `translate(${j.width / 2},${j.height / 2})`,
700
- children: ie.map((e) => {
701
- let t = e.data, n = x[t.category], r = n?.color ?? `var(--color-${T(t.category)})`, i = B > 0 ? (t.value / B * 100).toFixed(1) : "0", a = `${typeof n?.label == "string" ? n.label : t.category}: ${t.value.toLocaleString()} (${i}%)`;
700
+ children: re.map((e) => {
701
+ let t = e.data, n = x[t.category], r = n?.color ?? `var(--color-${T(t.category)})`, i = V > 0 ? (t.value / V * 100).toFixed(1) : "0", a = `${typeof n?.label == "string" ? n.label : t.category}: ${t.value.toLocaleString()} (${i}%)`;
702
702
  return /* @__PURE__ */ Y("g", { children: [/* @__PURE__ */ J("path", {
703
- d: ae(e) ?? "",
703
+ d: ie(e) ?? "",
704
704
  fill: r,
705
705
  tabIndex: 0,
706
706
  role: "img",
@@ -709,13 +709,13 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
709
709
  "data-animated": f ? "true" : "false",
710
710
  className: "transition-opacity duration-150 hover:opacity-80 focus:outline-none",
711
711
  style: N === null ? void 0 : { opacity: N === t.category ? 1 : .15 },
712
- onMouseEnter: (e) => de(t, e),
713
- onMouseMove: H,
714
- onMouseLeave: U,
715
- onFocus: (n) => fe(t, e, n),
716
- onBlur: pe
712
+ onMouseEnter: (e) => ue(t, e),
713
+ onMouseMove: U,
714
+ onMouseLeave: W,
715
+ onFocus: (n) => de(t, e, n),
716
+ onBlur: fe
717
717
  }), E && (() => {
718
- let n = (e.startAngle + e.endAngle) / 2, r = n < Math.PI / 2 || n > 3 * Math.PI / 2, i = oe.centroid(e), a = se.centroid(e), o = a[0] + (r ? 8 : -8), s = a[1], c = o + (r ? 4 : -4), l = le(t), u = l.length > 7, d = u ? `${l.slice(0, 6)}…` : l, f = j.width / 2, p = j.height / 2;
718
+ let n = (e.startAngle + e.endAngle) / 2, r = n < Math.PI / 2 || n > 3 * Math.PI / 2, i = ae.centroid(e), a = oe.centroid(e), o = a[0] + (r ? 8 : -8), s = a[1], c = o + (r ? 4 : -4), l = ce(t), u = l.length > 7, d = u ? `${l.slice(0, 6)}…` : l, f = j.width / 2, p = j.height / 2;
719
719
  return /* @__PURE__ */ Y("g", {
720
720
  "aria-hidden": "true",
721
721
  className: "cursor-default",
@@ -741,9 +741,9 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
741
741
  children: d
742
742
  }),
743
743
  u && /* @__PURE__ */ J("rect", {
744
- x: r ? c : c - qe,
744
+ x: r ? c : c - Je,
745
745
  y: s - 8,
746
- width: qe,
746
+ width: Je,
747
747
  height: 16,
748
748
  fill: "transparent"
749
749
  })
@@ -773,7 +773,7 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
773
773
  /* @__PURE__ */ J("div", {
774
774
  className: "sr-only",
775
775
  children: /* @__PURE__ */ Y("table", { children: [
776
- /* @__PURE__ */ J("caption", { children: me }),
776
+ /* @__PURE__ */ J("caption", { children: pe }),
777
777
  /* @__PURE__ */ J("thead", { children: /* @__PURE__ */ Y("tr", { children: [
778
778
  /* @__PURE__ */ J("th", {
779
779
  scope: "col",
@@ -789,7 +789,7 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
789
789
  })
790
790
  ] }) }),
791
791
  /* @__PURE__ */ J("tbody", { children: n.map((e) => {
792
- let t = B > 0 ? (e.value / B * 100).toFixed(1) : "0";
792
+ let t = V > 0 ? (e.value / V * 100).toFixed(1) : "0";
793
793
  return /* @__PURE__ */ Y("tr", { children: [
794
794
  /* @__PURE__ */ J("th", {
795
795
  scope: "row",
@@ -805,7 +805,7 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
805
805
  state: M.state,
806
806
  containerRef: k,
807
807
  chartId: S,
808
- children: V.cloneElement(C.content, {
808
+ children: H.cloneElement(C.content, {
809
809
  label: M.state.label,
810
810
  items: M.state.items,
811
811
  active: !0
@@ -813,8 +813,8 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
813
813
  })
814
814
  ]
815
815
  }),
816
- w && W === "bottom" && V.cloneElement(w.content, {
817
- items: ce,
816
+ w && G === "bottom" && H.cloneElement(w.content, {
817
+ items: se,
818
818
  verticalAlign: "bottom",
819
819
  onItemHover: F,
820
820
  onItemLeave: I,
@@ -826,10 +826,10 @@ function Xe({ data: n, innerRadius: r = .6, padAngle: i = .02, cornerRadius: a =
826
826
  }
827
827
  //#endregion
828
828
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
829
- var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Qe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $e = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), et = (e) => {
830
- let t = $e(e);
829
+ var Qe = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), $e = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), et = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), tt = (e) => {
830
+ let t = et(e);
831
831
  return t.charAt(0).toUpperCase() + t.slice(1);
832
- }, tt = {
832
+ }, nt = {
833
833
  xmlns: "http://www.w3.org/2000/svg",
834
834
  width: 24,
835
835
  height: 24,
@@ -839,43 +839,43 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
839
839
  strokeWidth: 2,
840
840
  strokeLinecap: "round",
841
841
  strokeLinejoin: "round"
842
- }, nt = (e) => {
842
+ }, rt = (e) => {
843
843
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
844
844
  return !1;
845
- }, rt = ue({}), it = () => fe(rt), at = H(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
846
- let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = it() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
847
- return de("svg", {
845
+ }, it = le({}), at = () => de(it), ot = U(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: o, ...s }, c) => {
846
+ let { size: l = 24, strokeWidth: u = 2, absoluteStrokeWidth: d = !1, color: f = "currentColor", className: p = "" } = at() ?? {}, m = r ?? d ? Number(n ?? u) * 24 / Number(t ?? l) : n ?? u;
847
+ return ue("svg", {
848
848
  ref: c,
849
- ...tt,
850
- width: t ?? l ?? tt.width,
851
- height: t ?? l ?? tt.height,
849
+ ...nt,
850
+ width: t ?? l ?? nt.width,
851
+ height: t ?? l ?? nt.height,
852
852
  stroke: e ?? f,
853
853
  strokeWidth: m,
854
- className: Ze("lucide", p, i),
855
- ...!a && !nt(s) && { "aria-hidden": "true" },
854
+ className: Qe("lucide", p, i),
855
+ ...!a && !rt(s) && { "aria-hidden": "true" },
856
856
  ...s
857
- }, [...o.map(([e, t]) => de(e, t)), ...Array.isArray(a) ? a : [a]]);
857
+ }, [...o.map(([e, t]) => ue(e, t)), ...Array.isArray(a) ? a : [a]]);
858
858
  }), X = (e, t) => {
859
- let n = H(({ className: n, ...r }, i) => de(at, {
859
+ let n = U(({ className: n, ...r }, i) => ue(ot, {
860
860
  ref: i,
861
861
  iconNode: t,
862
- className: Ze(`lucide-${Qe(et(e))}`, `lucide-${e}`, n),
862
+ className: Qe(`lucide-${$e(tt(e))}`, `lucide-${e}`, n),
863
863
  ...r
864
864
  }));
865
- return n.displayName = et(e), n;
866
- }, ot = X("activity", [["path", {
865
+ return n.displayName = tt(e), n;
866
+ }, st = X("activity", [["path", {
867
867
  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",
868
868
  key: "169zse"
869
869
  }]]), Z = X("chevron-down", [["path", {
870
870
  d: "m6 9 6 6 6-6",
871
871
  key: "qrunsl"
872
- }]]), st = X("chevron-right", [["path", {
872
+ }]]), ct = X("chevron-right", [["path", {
873
873
  d: "m9 18 6-6-6-6",
874
874
  key: "mthhwq"
875
- }]]), ct = X("chevron-up", [["path", {
875
+ }]]), lt = X("chevron-up", [["path", {
876
876
  d: "m18 15-6-6-6 6",
877
877
  key: "153udz"
878
- }]]), lt = X("circle-x", [
878
+ }]]), ut = X("circle-x", [
879
879
  ["circle", {
880
880
  cx: "12",
881
881
  cy: "12",
@@ -890,7 +890,7 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
890
890
  d: "m9 9 6 6",
891
891
  key: "z0biqf"
892
892
  }]
893
- ]), ut = X("clock", [["circle", {
893
+ ]), dt = X("clock", [["circle", {
894
894
  cx: "12",
895
895
  cy: "12",
896
896
  r: "10",
@@ -898,7 +898,7 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
898
898
  }], ["path", {
899
899
  d: "M12 6v6l4 2",
900
900
  key: "mmk7yg"
901
- }]]), dt = X("search", [["path", {
901
+ }]]), ft = X("search", [["path", {
902
902
  d: "m21 21-4.34-4.34",
903
903
  key: "14j7rj"
904
904
  }], ["circle", {
@@ -906,7 +906,7 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
906
906
  cy: "11",
907
907
  r: "8",
908
908
  key: "4ej97u"
909
- }]]), ft = X("server", [
909
+ }]]), pt = X("server", [
910
910
  ["rect", {
911
911
  width: "20",
912
912
  height: "8",
@@ -939,13 +939,13 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
939
939
  y2: "18",
940
940
  key: "nzw8ys"
941
941
  }]
942
- ]), pt = X("x", [["path", {
942
+ ]), mt = X("x", [["path", {
943
943
  d: "M18 6 6 18",
944
944
  key: "1bl5f8"
945
945
  }], ["path", {
946
946
  d: "m6 6 12 12",
947
947
  key: "d8bk6v"
948
- }]]), mt = H((e, t) => /* @__PURE__ */ J("svg", {
948
+ }]]), ht = U((e, t) => /* @__PURE__ */ J("svg", {
949
949
  ref: t,
950
950
  xmlns: "http://www.w3.org/2000/svg",
951
951
  width: 24,
@@ -958,8 +958,8 @@ var Ze = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
958
958
  d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"
959
959
  })
960
960
  }));
961
- mt.displayName = "AnthropicIcon";
962
- var ht = H((e, t) => /* @__PURE__ */ Y("svg", {
961
+ ht.displayName = "AnthropicIcon";
962
+ var gt = U((e, t) => /* @__PURE__ */ Y("svg", {
963
963
  ref: t,
964
964
  xmlns: "http://www.w3.org/2000/svg",
965
965
  width: 24,
@@ -979,8 +979,8 @@ var ht = H((e, t) => /* @__PURE__ */ Y("svg", {
979
979
  clipRule: "evenodd"
980
980
  })]
981
981
  }));
982
- ht.displayName = "ApigeeIcon";
983
- var gt = H((e, t) => /* @__PURE__ */ Y("svg", {
982
+ gt.displayName = "ApigeeIcon";
983
+ var _t = U((e, t) => /* @__PURE__ */ Y("svg", {
984
984
  ref: t,
985
985
  xmlns: "http://www.w3.org/2000/svg",
986
986
  width: 24,
@@ -1007,8 +1007,8 @@ var gt = H((e, t) => /* @__PURE__ */ Y("svg", {
1007
1007
  })
1008
1008
  ]
1009
1009
  }));
1010
- gt.displayName = "AwsIcon";
1011
- var _t = H((e, t) => /* @__PURE__ */ J("svg", {
1010
+ _t.displayName = "AwsIcon";
1011
+ var vt = U((e, t) => /* @__PURE__ */ J("svg", {
1012
1012
  ref: t,
1013
1013
  xmlns: "http://www.w3.org/2000/svg",
1014
1014
  width: 24,
@@ -1021,8 +1021,8 @@ var _t = H((e, t) => /* @__PURE__ */ J("svg", {
1021
1021
  d: "M16.043 20.561a1.391 1.391 0 0 0 .003-.92l.003.01L10.405 2.93h5.184c.203 0 .376.13.439.311v.004l5.638 16.705a.463.463 0 0 1-.287.586l-.004.001-5.332.025Zm-3.988-9.838 3.114 9.226a.464.464 0 0 1-.438.613h-.026a.46.46 0 0 1-.277-.093h.001l-7.978-5.928h4.17l1.434-3.818Zm9.172 10.766h.001a1.391 1.391 0 0 0 1.315-1.848l.003.01v.002l-5.64-16.706A1.394 1.394 0 0 0 15.588 2H9.03c-.61 0-1.127.393-1.315.938l-.003.01-5.64 16.704A1.391 1.391 0 0 0 3.39 21.49h4.075a1.39 1.39 0 0 0 1.315-.938l.003-.01.84-2.484 4.25 3.157c.229.172.517.275.83.275h6.523Z"
1022
1022
  })
1023
1023
  }));
1024
- _t.displayName = "AzureIcon";
1025
- var vt = H((e, t) => /* @__PURE__ */ J("svg", {
1024
+ vt.displayName = "AzureIcon";
1025
+ var yt = U((e, t) => /* @__PURE__ */ J("svg", {
1026
1026
  ref: t,
1027
1027
  xmlns: "http://www.w3.org/2000/svg",
1028
1028
  width: 24,
@@ -1037,8 +1037,8 @@ var vt = H((e, t) => /* @__PURE__ */ J("svg", {
1037
1037
  clipRule: "evenodd"
1038
1038
  })
1039
1039
  }));
1040
- vt.displayName = "BitbucketIcon";
1041
- var yt = H((e, t) => /* @__PURE__ */ Y("svg", {
1040
+ yt.displayName = "BitbucketIcon";
1041
+ var bt = U((e, t) => /* @__PURE__ */ Y("svg", {
1042
1042
  ref: t,
1043
1043
  xmlns: "http://www.w3.org/2000/svg",
1044
1044
  width: 24,
@@ -1065,8 +1065,8 @@ var yt = H((e, t) => /* @__PURE__ */ Y("svg", {
1065
1065
  })
1066
1066
  ]
1067
1067
  }));
1068
- yt.displayName = "CohereIcon";
1069
- var bt = H((e, t) => /* @__PURE__ */ J("svg", {
1068
+ bt.displayName = "CohereIcon";
1069
+ var xt = U((e, t) => /* @__PURE__ */ J("svg", {
1070
1070
  ref: t,
1071
1071
  xmlns: "http://www.w3.org/2000/svg",
1072
1072
  width: 24,
@@ -1076,8 +1076,8 @@ var bt = H((e, t) => /* @__PURE__ */ J("svg", {
1076
1076
  ...e,
1077
1077
  children: /* @__PURE__ */ J("path", { d: "M6.973 3 4.098 8.188l1.469 2.624L8.442 6h10.25l-1.688-3H6.973Zm8.75 4 2.969 4.906L13.629 21h3.375l5-9-2.781-5h-3.5Zm-3.719 1c-2.207 0-4 1.793-4 4s1.793 4 4 4 4-1.793 4-4-1.793-4-4-4ZM3.535 9.219 2.005 12l4.968 9h5.531l1.656-3H8.41L3.535 9.219Zm8.47.781c1.1 0 2 .898 2 2 0 1.102-.9 2-2 2-1.102 0-2-.898-2-2 0-1.102.898-2 2-2Z" })
1078
1078
  }));
1079
- bt.displayName = "GcpIcon";
1080
- var xt = H((e, t) => /* @__PURE__ */ J("svg", {
1079
+ xt.displayName = "GcpIcon";
1080
+ var St = U((e, t) => /* @__PURE__ */ J("svg", {
1081
1081
  ref: t,
1082
1082
  xmlns: "http://www.w3.org/2000/svg",
1083
1083
  width: 24,
@@ -1093,8 +1093,8 @@ var xt = H((e, t) => /* @__PURE__ */ J("svg", {
1093
1093
  d: "M9.357 19.48c-4.553 1.484-4.553-2.65-6.353-3.18m12.706 5.3v-3.71c0-1.06.106-1.485-.53-2.12 2.965-.319 5.824-1.485 5.824-6.361a4.88 4.88 0 0 0-1.376-3.393 4.46 4.46 0 0 0-.106-3.392s-1.165-.318-3.706 1.378a13.008 13.008 0 0 0-6.565 0C6.71 2.306 5.545 2.624 5.545 2.624a4.458 4.458 0 0 0-.106 3.392A4.88 4.88 0 0 0 4.063 9.41c0 4.876 2.859 6.042 5.824 6.36-.636.636-.636 1.272-.53 2.12v3.71"
1094
1094
  })
1095
1095
  }));
1096
- xt.displayName = "GithubIcon";
1097
- var St = H((e, t) => /* @__PURE__ */ J("svg", {
1096
+ St.displayName = "GithubIcon";
1097
+ var Ct = U((e, t) => /* @__PURE__ */ J("svg", {
1098
1098
  ref: t,
1099
1099
  xmlns: "http://www.w3.org/2000/svg",
1100
1100
  width: 24,
@@ -1110,8 +1110,8 @@ var St = H((e, t) => /* @__PURE__ */ J("svg", {
1110
1110
  d: "m22.004 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.37.25l-2.26 6.67h-7.36l-2.22-6.66a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.37.25l-3.37 10.04a.74.74 0 0 0 .27.83l9.73 6.88 9.69-6.88a.71.71 0 0 0 .31-.83v0Z"
1111
1111
  })
1112
1112
  }));
1113
- St.displayName = "GitlabIcon";
1114
- var Ct = H((e, t) => /* @__PURE__ */ J("svg", {
1113
+ Ct.displayName = "GitlabIcon";
1114
+ var wt = U((e, t) => /* @__PURE__ */ J("svg", {
1115
1115
  ref: t,
1116
1116
  xmlns: "http://www.w3.org/2000/svg",
1117
1117
  width: 24,
@@ -1124,8 +1124,8 @@ var Ct = H((e, t) => /* @__PURE__ */ J("svg", {
1124
1124
  d: "M15.748 13.131c-.821 0-1.558.363-2.063.933l-1.293-.91a3.51 3.51 0 0 0 .216-1.203c0-.415-.076-.812-.209-1.183l1.29-.9a2.75 2.75 0 0 0 2.06.927A2.748 2.748 0 0 0 18.5 8.058a2.748 2.748 0 0 0-2.752-2.738 2.748 2.748 0 0 0-2.751 2.738c0 .27.041.53.115.777l-1.291.902a3.556 3.556 0 0 0-2.2-1.273V6.916a2.745 2.745 0 0 0 2.185-2.678A2.748 2.748 0 0 0 9.054 1.5a2.748 2.748 0 0 0-2.752 2.738c0 1.298.915 2.387 2.137 2.666v1.568C6.772 8.762 5.5 10.21 5.5 11.95c0 1.75 1.284 3.202 2.963 3.483v1.656a2.744 2.744 0 0 0-2.16 2.672 2.748 2.748 0 0 0 2.75 2.739 2.748 2.748 0 0 0 2.752-2.738 2.745 2.745 0 0 0-2.161-2.672v-1.656c.867-.145 1.63-.6 2.163-1.252l1.302.917a2.71 2.71 0 0 0-.113.77 2.748 2.748 0 0 0 2.752 2.738 2.748 2.748 0 0 0 2.751-2.738 2.748 2.748 0 0 0-2.752-2.738Zm0-6.4c.736 0 1.335.595 1.335 1.327 0 .731-.599 1.327-1.334 1.327a1.332 1.332 0 0 1-1.335-1.327c0-.732.599-1.328 1.335-1.328ZM7.72 4.237c0-.732.598-1.328 1.334-1.328.736 0 1.334.596 1.334 1.328 0 .731-.598 1.327-1.334 1.327A1.332 1.332 0 0 1 7.72 4.238Zm2.668 15.524c0 .732-.598 1.328-1.334 1.328a1.332 1.332 0 0 1-1.334-1.328c0-.731.598-1.327 1.334-1.327.736 0 1.334.596 1.334 1.327Zm-1.334-5.96c-1.026 0-1.86-.83-1.86-1.851 0-1.02.834-1.851 1.86-1.851 1.026 0 1.86.83 1.86 1.851 0 1.02-.834 1.851-1.86 1.851Zm6.694 3.394a1.332 1.332 0 0 1-1.334-1.327c0-.732.599-1.327 1.335-1.327.735 0 1.333.595 1.333 1.327s-.598 1.327-1.334 1.327Z"
1125
1125
  })
1126
1126
  }));
1127
- Ct.displayName = "KafkaIcon";
1128
- var wt = H((e, t) => /* @__PURE__ */ J("svg", {
1127
+ wt.displayName = "KafkaIcon";
1128
+ var Tt = U((e, t) => /* @__PURE__ */ J("svg", {
1129
1129
  ref: t,
1130
1130
  xmlns: "http://www.w3.org/2000/svg",
1131
1131
  width: 24,
@@ -1138,8 +1138,8 @@ var wt = H((e, t) => /* @__PURE__ */ J("svg", {
1138
1138
  d: "m23 14.095-2.748-.63a8.18 8.18 0 0 0-1.269-5.53l2.113-1.692-1.037-1.306-2.112 1.69a8.282 8.282 0 0 0-5.115-2.48V1.6h-1.664v2.548a8.282 8.282 0 0 0-5.115 2.48L3.941 4.937 2.903 6.243l2.114 1.691a8.194 8.194 0 0 0-1.269 5.532L1 14.096l.37 1.627 2.744-.629a8.374 8.374 0 0 0 3.55 4.474l-1.106 2.308 1.5.724 1.105-2.306a8.134 8.134 0 0 0 5.675 0l1.105 2.306 1.5-.725-1.107-2.307a8.374 8.374 0 0 0 3.55-4.474l2.744.629.37-1.628Zm-4.345-1.64c0 .215-.012.427-.032.637l-4.16-.953a2.482 2.482 0 0 0-.114-.496l3.325-2.661a6.648 6.648 0 0 1 .981 3.473Zm-7.487 0a.837.837 0 0 1 .514-.771.829.829 0 0 1 1.134.608.839.839 0 0 1-.354.857.83.83 0 0 1-1.05-.104.837.837 0 0 1-.244-.59Zm5.47-4.78-3.324 2.66a2.49 2.49 0 0 0-.482-.231V5.833a6.625 6.625 0 0 1 3.806 1.841Zm-5.47-1.842v4.27a2.49 2.49 0 0 0-.482.232l-3.324-2.66a6.626 6.626 0 0 1 3.806-1.842Zm-5.823 6.622c0-1.226.34-2.429.981-3.473l3.325 2.66a2.485 2.485 0 0 0-.115.497l-4.16.953a6.763 6.763 0 0 1-.031-.637Zm.402 2.265 4.139-.949c.098.162.213.313.345.448l-1.842 3.84a6.701 6.701 0 0 1-2.642-3.339ZM12 19.135a6.607 6.607 0 0 1-2.113-.35l1.847-3.852c.088.014.177.023.266.027.089-.004.178-.013.265-.027l1.848 3.852c-.68.23-1.394.35-2.113.35Zm3.611-1.077-1.842-3.839c.132-.136.247-.286.345-.448l4.139.949a6.701 6.701 0 0 1-2.642 3.338Z"
1139
1139
  })
1140
1140
  }));
1141
- wt.displayName = "KubernetesIcon";
1142
- var Tt = H((e, t) => /* @__PURE__ */ Y("svg", {
1141
+ Tt.displayName = "KubernetesIcon";
1142
+ var Et = U((e, t) => /* @__PURE__ */ Y("svg", {
1143
1143
  ref: t,
1144
1144
  xmlns: "http://www.w3.org/2000/svg",
1145
1145
  width: 24,
@@ -1190,8 +1190,8 @@ var Tt = H((e, t) => /* @__PURE__ */ Y("svg", {
1190
1190
  })
1191
1191
  ]
1192
1192
  }));
1193
- Tt.displayName = "MistralIcon";
1194
- var Et = H((e, t) => /* @__PURE__ */ J("svg", {
1193
+ Et.displayName = "MistralIcon";
1194
+ var Dt = U((e, t) => /* @__PURE__ */ J("svg", {
1195
1195
  ref: t,
1196
1196
  xmlns: "http://www.w3.org/2000/svg",
1197
1197
  width: 24,
@@ -1204,9 +1204,9 @@ var Et = H((e, t) => /* @__PURE__ */ J("svg", {
1204
1204
  d: "M304.246 294.611V249.028c0-3.839 1.441-6.719 4.798-8.636l91.648-52.78c12.475-7.197 27.35-10.554 42.702-10.554 57.577 0 94.046 44.624 94.046 92.124 0 3.358 0 7.197-.481 11.036l-95.005-55.66c-5.757-3.357-11.517-3.357-17.274 0l-120.434 70.053ZM518.245 472.145V363.224c0-6.719-2.881-11.517-8.637-14.875l-120.434-70.053 39.345-22.553c3.358-1.917 6.238-1.917 9.596 0l91.647 52.78c26.392 15.356 44.143 47.982 44.143 79.648 0 36.465-21.59 70.054-55.66 83.97v.004ZM275.937 376.182l-39.345-23.03c-3.357-1.917-4.798-4.798-4.798-8.637V238.956c0-51.339 39.345-90.207 92.606-90.207 20.155 0 38.864 6.719 54.702 18.714l-94.524 54.701c-5.756 3.357-8.636 8.155-8.636 14.875v139.147l-.005-.004ZM360.626 425.122 304.246 393.455v-67.172l56.38-31.667 56.376 31.667v67.172l-56.376 31.667ZM396.852 570.989c-20.154 0-38.863-6.719-54.701-18.713l94.523-54.702c5.757-3.357 8.637-8.155 8.637-14.875V343.552l39.827 23.03c3.357 1.917 4.798 4.797 4.798 8.637v105.559c0 51.339-39.827 90.207-93.084 90.207v.004ZM283.134 463.99l-91.648-52.779c-26.392-15.357-44.143-47.982-44.143-79.649 0-36.946 22.072-70.053 56.137-83.969v109.398c0 6.719 2.881 11.517 8.637 14.875l119.957 69.571-39.345 22.553c-3.357 1.917-6.238 1.917-9.595 0ZM277.859 542.68c-54.22 0-94.046-40.785-94.046-91.166 0-3.839.481-7.678.958-11.517l94.524 54.701c5.756 3.358 11.517 3.358 17.273 0L417.002 425.127v45.583c0 3.839-1.44 6.719-4.798 8.636l-91.647 52.78c-12.476 7.197-27.351 10.554-42.703 10.554h.005ZM396.852 599.776c58.059 0 106.518-41.263 117.558-95.964 53.739-13.916 88.286-64.297 88.286-115.636 0-33.589-14.393-66.214-40.304-89.726 2.399-10.077 3.839-20.154 3.839-30.226 0-68.613-55.66-119.957-119.957-119.957-12.952 0-25.428 1.917-37.904 6.238-21.595-21.113-51.344-34.547-83.97-34.547-58.058 0-106.517 41.262-117.557 95.963-53.739 13.916-88.286 64.297-88.286 115.636 0 33.589 14.393 66.214 40.304 89.726-2.399 10.077-3.839 20.154-3.839 30.227 0 68.613 55.66 119.956 119.956 119.956 12.953 0 25.429-1.917 37.905-6.238 21.59 21.113 51.339 34.548 83.969 34.548Z"
1205
1205
  })
1206
1206
  }));
1207
- Et.displayName = "OpenAIIcon";
1208
- var Dt = H((e, t) => {
1209
- let n = W();
1207
+ Dt.displayName = "OpenAIIcon";
1208
+ var Ot = U((e, t) => {
1209
+ let n = G();
1210
1210
  return /* @__PURE__ */ Y("svg", {
1211
1211
  ref: t,
1212
1212
  xmlns: "http://www.w3.org/2000/svg",
@@ -1430,9 +1430,9 @@ var Dt = H((e, t) => {
1430
1430
  })]
1431
1431
  });
1432
1432
  });
1433
- Dt.displayName = "GioAgentManagementIcon";
1434
- var Ot = H((e, t) => {
1435
- let n = W();
1433
+ Ot.displayName = "GioAgentManagementIcon";
1434
+ var kt = U((e, t) => {
1435
+ let n = G();
1436
1436
  return /* @__PURE__ */ Y("svg", {
1437
1437
  ref: t,
1438
1438
  xmlns: "http://www.w3.org/2000/svg",
@@ -1669,9 +1669,9 @@ var Ot = H((e, t) => {
1669
1669
  })]
1670
1670
  });
1671
1671
  });
1672
- Ot.displayName = "GioApiManagementIcon";
1673
- var kt = H((e, t) => {
1674
- let n = W();
1672
+ kt.displayName = "GioApiManagementIcon";
1673
+ var At = U((e, t) => {
1674
+ let n = G();
1675
1675
  return /* @__PURE__ */ Y("svg", {
1676
1676
  ref: t,
1677
1677
  xmlns: "http://www.w3.org/2000/svg",
@@ -1797,9 +1797,9 @@ var kt = H((e, t) => {
1797
1797
  })]
1798
1798
  });
1799
1799
  });
1800
- kt.displayName = "GioAuthorizationIcon";
1801
- var At = H((e, t) => {
1802
- let n = W();
1800
+ At.displayName = "GioAuthorizationIcon";
1801
+ var jt = U((e, t) => {
1802
+ let n = G();
1803
1803
  return /* @__PURE__ */ Y("svg", {
1804
1804
  ref: t,
1805
1805
  xmlns: "http://www.w3.org/2000/svg",
@@ -1985,9 +1985,9 @@ var At = H((e, t) => {
1985
1985
  })]
1986
1986
  });
1987
1987
  });
1988
- At.displayName = "GioCatalogIcon";
1989
- var jt = H((e, t) => {
1990
- let n = W();
1988
+ jt.displayName = "GioCatalogIcon";
1989
+ var Mt = U((e, t) => {
1990
+ let n = G();
1991
1991
  return /* @__PURE__ */ Y("svg", {
1992
1992
  ref: t,
1993
1993
  xmlns: "http://www.w3.org/2000/svg",
@@ -2211,9 +2211,9 @@ var jt = H((e, t) => {
2211
2211
  })]
2212
2212
  });
2213
2213
  });
2214
- jt.displayName = "GioDeveloperPortalIcon";
2215
- var Mt = H((e, t) => {
2216
- let n = W();
2214
+ Mt.displayName = "GioDeveloperPortalIcon";
2215
+ var Nt = U((e, t) => {
2216
+ let n = G();
2217
2217
  return /* @__PURE__ */ Y("svg", {
2218
2218
  ref: t,
2219
2219
  xmlns: "http://www.w3.org/2000/svg",
@@ -2487,9 +2487,9 @@ var Mt = H((e, t) => {
2487
2487
  })]
2488
2488
  });
2489
2489
  });
2490
- Mt.displayName = "GioEdgeManagementIcon";
2491
- var Nt = H((e, t) => {
2492
- let n = W();
2490
+ Nt.displayName = "GioEdgeManagementIcon";
2491
+ var Pt = U((e, t) => {
2492
+ let n = G();
2493
2493
  return /* @__PURE__ */ Y("svg", {
2494
2494
  ref: t,
2495
2495
  xmlns: "http://www.w3.org/2000/svg",
@@ -2675,9 +2675,9 @@ var Nt = H((e, t) => {
2675
2675
  })]
2676
2676
  });
2677
2677
  });
2678
- Nt.displayName = "GioEventApiManagementIcon";
2679
- var Pt = H((e, t) => {
2680
- let n = W();
2678
+ Pt.displayName = "GioEventApiManagementIcon";
2679
+ var Ft = U((e, t) => {
2680
+ let n = G();
2681
2681
  return /* @__PURE__ */ Y("svg", {
2682
2682
  ref: t,
2683
2683
  xmlns: "http://www.w3.org/2000/svg",
@@ -2917,9 +2917,9 @@ var Pt = H((e, t) => {
2917
2917
  })]
2918
2918
  });
2919
2919
  });
2920
- Pt.displayName = "GioGammaIcon";
2921
- var Ft = H((e, t) => {
2922
- let n = W();
2920
+ Ft.displayName = "GioGammaIcon";
2921
+ var It = U((e, t) => {
2922
+ let n = G();
2923
2923
  return /* @__PURE__ */ Y("svg", {
2924
2924
  ref: t,
2925
2925
  xmlns: "http://www.w3.org/2000/svg",
@@ -3159,9 +3159,9 @@ var Ft = H((e, t) => {
3159
3159
  })]
3160
3160
  });
3161
3161
  });
3162
- Ft.displayName = "GioHomeIcon";
3163
- var It = H((e, t) => {
3164
- let n = W();
3162
+ It.displayName = "GioHomeIcon";
3163
+ var Lt = U((e, t) => {
3164
+ let n = G();
3165
3165
  return /* @__PURE__ */ Y("svg", {
3166
3166
  ref: t,
3167
3167
  xmlns: "http://www.w3.org/2000/svg",
@@ -3455,9 +3455,9 @@ var It = H((e, t) => {
3455
3455
  })]
3456
3456
  });
3457
3457
  });
3458
- It.displayName = "GioIamIcon";
3459
- var Lt = H((e, t) => {
3460
- let n = W();
3458
+ Lt.displayName = "GioIamIcon";
3459
+ var Rt = U((e, t) => {
3460
+ let n = G();
3461
3461
  return /* @__PURE__ */ Y("svg", {
3462
3462
  ref: t,
3463
3463
  xmlns: "http://www.w3.org/2000/svg",
@@ -3681,9 +3681,9 @@ var Lt = H((e, t) => {
3681
3681
  })]
3682
3682
  });
3683
3683
  });
3684
- Lt.displayName = "GioObservabilityIcon";
3685
- var Rt = H((e, t) => {
3686
- let n = W();
3684
+ Rt.displayName = "GioObservabilityIcon";
3685
+ var zt = U((e, t) => {
3686
+ let n = G();
3687
3687
  return /* @__PURE__ */ Y("svg", {
3688
3688
  ref: t,
3689
3689
  xmlns: "http://www.w3.org/2000/svg",
@@ -3801,9 +3801,9 @@ var Rt = H((e, t) => {
3801
3801
  })]
3802
3802
  });
3803
3803
  });
3804
- Rt.displayName = "GioObserveIcon";
3805
- var zt = H((e, t) => {
3806
- let n = W();
3804
+ zt.displayName = "GioObserveIcon";
3805
+ var Bt = U((e, t) => {
3806
+ let n = G();
3807
3807
  return /* @__PURE__ */ Y("svg", {
3808
3808
  ref: t,
3809
3809
  xmlns: "http://www.w3.org/2000/svg",
@@ -4133,9 +4133,9 @@ var zt = H((e, t) => {
4133
4133
  })]
4134
4134
  });
4135
4135
  });
4136
- zt.displayName = "GioPlatformIcon";
4137
- var Bt = H((e, t) => {
4138
- let n = W();
4136
+ Bt.displayName = "GioPlatformIcon";
4137
+ var Vt = U((e, t) => {
4138
+ let n = G();
4139
4139
  return /* @__PURE__ */ Y("svg", {
4140
4140
  ref: t,
4141
4141
  xmlns: "http://www.w3.org/2000/svg",
@@ -4253,9 +4253,9 @@ var Bt = H((e, t) => {
4253
4253
  })]
4254
4254
  });
4255
4255
  });
4256
- Bt.displayName = "GioProductizeIcon";
4257
- var Vt = H((e, t) => {
4258
- let n = W();
4256
+ Vt.displayName = "GioProductizeIcon";
4257
+ var Ht = U((e, t) => {
4258
+ let n = G();
4259
4259
  return /* @__PURE__ */ Y("svg", {
4260
4260
  ref: t,
4261
4261
  xmlns: "http://www.w3.org/2000/svg",
@@ -4381,16 +4381,16 @@ var Vt = H((e, t) => {
4381
4381
  })]
4382
4382
  });
4383
4383
  });
4384
- Vt.displayName = "GioSecureIcon";
4384
+ Ht.displayName = "GioSecureIcon";
4385
4385
  //#endregion
4386
4386
  //#region src/lib/useContainerSize.ts
4387
- function Ht() {
4387
+ function Ut() {
4388
4388
  let [e, t] = K({
4389
4389
  width: 0,
4390
4390
  height: 0
4391
- }), n = G(null);
4391
+ }), n = he(null);
4392
4392
  return {
4393
- ref: U((e) => {
4393
+ ref: W((e) => {
4394
4394
  if (n.current?.disconnect(), n.current = null, !e) return;
4395
4395
  let r = new ResizeObserver(([e]) => {
4396
4396
  let { width: n, height: r } = e.contentRect;
@@ -4409,29 +4409,29 @@ function Ht() {
4409
4409
  }
4410
4410
  //#endregion
4411
4411
  //#region src/charts/Metric/Metric.tsx
4412
- var Ut = {
4412
+ var Wt = {
4413
4413
  positive: "text-success",
4414
4414
  negative: "text-destructive",
4415
4415
  neutral: "text-muted-foreground"
4416
4416
  };
4417
- function Wt(e, t) {
4417
+ function Gt(e, t) {
4418
4418
  return e === "neutral" || t === "neutral" ? "neutral" : t === "higher-is-better" ? e === "up" ? "positive" : "negative" : e === "up" ? "negative" : "positive";
4419
4419
  }
4420
- var Gt = 56;
4421
- function Kt(e, t) {
4420
+ var Kt = 56;
4421
+ function qt(e, t) {
4422
4422
  let n = Math.min(t > 0 ? t : 100, (e > 0 ? e : 200) * .65);
4423
4423
  return Math.max(18, Math.min(96, Math.round(n * .22)));
4424
4424
  }
4425
- function qt(e) {
4425
+ function Jt(e) {
4426
4426
  return Math.max(10, Math.round(e * .22));
4427
4427
  }
4428
- function Jt(e) {
4428
+ function Yt(e) {
4429
4429
  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";
4430
4430
  }
4431
- function Yt(e) {
4431
+ function Xt(e) {
4432
4432
  return e < 50 ? "text-[9px]" : e < 80 ? "text-[10px]" : e < 120 ? "text-xs" : "text-sm";
4433
4433
  }
4434
- function Xt(e) {
4434
+ function Zt(e) {
4435
4435
  return e < 60 ? {
4436
4436
  text: "text-[9px]",
4437
4437
  icon: "size-2 stroke-[2.5]"
@@ -4446,12 +4446,12 @@ function Xt(e) {
4446
4446
  icon: "size-3.5 stroke-[2.5]"
4447
4447
  };
4448
4448
  }
4449
- function Zt({ data: t, color: n, colorClass: r }) {
4450
- let i = V.useRef(null), [a, o] = V.useState({
4449
+ function Qt({ data: t, color: n, colorClass: r }) {
4450
+ let i = H.useRef(null), [a, o] = H.useState({
4451
4451
  width: 0,
4452
4452
  height: 0
4453
- }), s = V.useId();
4454
- if (V.useEffect(() => {
4453
+ }), s = H.useId();
4454
+ if (H.useEffect(() => {
4455
4455
  let e = i.current;
4456
4456
  if (!e) return;
4457
4457
  let t = new ResizeObserver(([e]) => {
@@ -4463,7 +4463,7 @@ function Zt({ data: t, color: n, colorClass: r }) {
4463
4463
  });
4464
4464
  return t.observe(e), () => t.disconnect();
4465
4465
  }, []), t.length < 2) return null;
4466
- let { width: c, height: l } = a, u = he().domain([0, t.length - 1]).range([0, c]), d = Math.min(...t), f = Math.max(...t), p = he().domain([d, f === d ? d + 1 : f]).range([l - 2, 2]), m = xe().x((e, t) => u(t)).y((e) => p(e)).curve(ye), h = _e().x((e, t) => u(t)).y0(l).y1((e) => p(e)).curve(ye), g = m(t), _ = h(t), v = n ?? "currentColor";
4466
+ let { width: c, height: l } = a, u = ge().domain([0, t.length - 1]).range([0, c]), d = Math.min(...t), f = Math.max(...t), p = ge().domain([d, f === d ? d + 1 : f]).range([l - 2, 2]), m = Se().x((e, t) => u(t)).y((e) => p(e)).curve(be), h = ve().x((e, t) => u(t)).y0(l).y1((e) => p(e)).curve(be), g = m(t), _ = h(t), v = n ?? "currentColor";
4467
4467
  return /* @__PURE__ */ J("svg", {
4468
4468
  ref: i,
4469
4469
  className: e("h-full w-full", r),
@@ -4498,14 +4498,14 @@ function Zt({ data: t, color: n, colorClass: r }) {
4498
4498
  ] })
4499
4499
  });
4500
4500
  }
4501
- function Qt({ trend: t, sentiment: n, trendClass: r }) {
4502
- let i = t.direction === "down" ? Z : ct;
4501
+ function $t({ trend: t, sentiment: n, trendClass: r }) {
4502
+ let i = t.direction === "down" ? Z : lt;
4503
4503
  return /* @__PURE__ */ Y("span", {
4504
- className: e("inline-flex items-center gap-1 font-medium", r.text, Ut[n]),
4504
+ className: e("inline-flex items-center gap-1 font-medium", r.text, Wt[n]),
4505
4505
  children: [t.direction !== "neutral" && /* @__PURE__ */ J(i, { className: r.icon }), t.isNew ? "New" : `${t.value}%`]
4506
4506
  });
4507
4507
  }
4508
- function $t({ className: t, ...n }) {
4508
+ function en({ className: t, ...n }) {
4509
4509
  return /* @__PURE__ */ Y("div", {
4510
4510
  role: "img",
4511
4511
  "aria-busy": "true",
@@ -4524,15 +4524,15 @@ function $t({ className: t, ...n }) {
4524
4524
  }), /* @__PURE__ */ J(_, { className: "min-h-5 w-full flex-1" })]
4525
4525
  });
4526
4526
  }
4527
- function en({ 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 }) {
4528
- let { ref: p, width: m, height: h } = Ht();
4529
- if (r === "loading") return /* @__PURE__ */ J($t, {
4527
+ function tn({ 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 }) {
4528
+ let { ref: p, width: m, height: h } = Ut();
4529
+ if (r === "loading") return /* @__PURE__ */ J(en, {
4530
4530
  className: d,
4531
4531
  ...f
4532
4532
  });
4533
- let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Wt(_.direction, s) : void 0, b = !u && y ? Ut[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Gt && !c, C = c || !S, w = Jt(h), T = Yt(h), E = Xt(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4533
+ let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Gt(_.direction, s) : void 0, b = !u && y ? Wt[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Kt && !c, C = c || !S, w = Yt(h), T = Xt(h), E = Zt(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4534
4534
  if (C) {
4535
- let t = Kt(m, h), r = qt(t);
4535
+ let t = qt(m, h), r = Jt(t);
4536
4536
  return /* @__PURE__ */ Y("div", {
4537
4537
  ref: p,
4538
4538
  className: e("flex h-full flex-col items-center justify-center gap-1 text-center", d),
@@ -4548,7 +4548,7 @@ function en({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4548
4548
  style: { fontSize: r },
4549
4549
  children: n
4550
4550
  }),
4551
- O && _ && y && /* @__PURE__ */ J(Qt, {
4551
+ O && _ && y && /* @__PURE__ */ J($t, {
4552
4552
  trend: _,
4553
4553
  sentiment: y,
4554
4554
  trendClass: E
@@ -4572,7 +4572,7 @@ function en({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4572
4572
  }),
4573
4573
  O && _ && y && /* @__PURE__ */ Y("span", {
4574
4574
  className: "flex shrink-0 items-center gap-1",
4575
- children: [/* @__PURE__ */ J(Qt, {
4575
+ children: [/* @__PURE__ */ J($t, {
4576
4576
  trend: _,
4577
4577
  sentiment: y,
4578
4578
  trendClass: E
@@ -4592,7 +4592,7 @@ function en({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4592
4592
  ]
4593
4593
  }), /* @__PURE__ */ J("div", {
4594
4594
  className: "min-h-0 flex-1 pt-1",
4595
- children: /* @__PURE__ */ J(Zt, {
4595
+ children: /* @__PURE__ */ J(Qt, {
4596
4596
  data: v,
4597
4597
  color: x,
4598
4598
  colorClass: b
@@ -4602,43 +4602,43 @@ function en({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4602
4602
  }
4603
4603
  //#endregion
4604
4604
  //#region src/charts/MetricGroup/MetricGroup.tsx
4605
- function tn(e) {
4605
+ function nn(e) {
4606
4606
  return "category" in e && "metrics" in e;
4607
4607
  }
4608
- var nn = {
4608
+ var rn = {
4609
4609
  positive: "text-success",
4610
4610
  negative: "text-destructive",
4611
4611
  neutral: "text-muted-foreground"
4612
4612
  };
4613
- function rn(e) {
4613
+ function an(e) {
4614
4614
  let t = 0;
4615
- for (let n of e) t += tn(n) ? n.metrics.length : 1;
4615
+ for (let n of e) t += nn(n) ? n.metrics.length : 1;
4616
4616
  return t;
4617
4617
  }
4618
- function an(e) {
4619
- return tn(e) ? e.metrics.length : 1;
4618
+ function on(e) {
4619
+ return nn(e) ? e.metrics.length : 1;
4620
4620
  }
4621
- var on = [
4621
+ var sn = [
4622
4622
  "xs",
4623
4623
  "sm",
4624
4624
  "md",
4625
4625
  "lg"
4626
4626
  ];
4627
- function sn(e, t, n) {
4627
+ function cn(e, t, n) {
4628
4628
  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";
4629
- return on[Math.min(on.indexOf(i), on.indexOf(a))];
4629
+ return sn[Math.min(sn.indexOf(i), sn.indexOf(a))];
4630
4630
  }
4631
- var cn = {
4631
+ var ln = {
4632
4632
  xs: 40,
4633
4633
  sm: 55,
4634
4634
  md: 75,
4635
4635
  lg: 100
4636
- }, ln = 40, un = 80;
4637
- function dn(e, t, n) {
4638
- if (e < un) return 0;
4639
- let r = cn[n], i = 0, a = 0;
4636
+ }, un = 40, dn = 80;
4637
+ function fn(e, t, n) {
4638
+ if (e < dn) return 0;
4639
+ let r = ln[n], i = 0, a = 0;
4640
4640
  for (let n = 0; n < t.length; n++) {
4641
- let o = r * an(t[n]), s = t.length - (n + 1) > 0 ? ln : 0;
4641
+ let o = r * on(t[n]), s = t.length - (n + 1) > 0 ? un : 0;
4642
4642
  if (a + o + s > e) break;
4643
4643
  a += o, i++;
4644
4644
  }
@@ -4682,15 +4682,15 @@ var Q = {
4682
4682
  lg: "px-5"
4683
4683
  }
4684
4684
  };
4685
- function fn({ trend: t, sentiment: n, size: r }) {
4686
- let i = t.direction === "down" ? Z : ct, a = r === "xs" || r === "sm";
4685
+ function pn({ trend: t, sentiment: n, size: r }) {
4686
+ let i = t.direction === "down" ? Z : lt, a = r === "xs" || r === "sm";
4687
4687
  return a && t.direction === "neutral" ? null : /* @__PURE__ */ Y("span", {
4688
- className: e("inline-flex items-center gap-px font-medium", Q.trend[r], nn[n]),
4688
+ className: e("inline-flex items-center gap-px font-medium", Q.trend[r], rn[n]),
4689
4689
  children: [t.direction !== "neutral" && /* @__PURE__ */ J(i, { className: Q.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
4690
4690
  });
4691
4691
  }
4692
- function pn({ item: t, size: n, labelVisible: r }) {
4693
- let i = t.trend ? Wt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ Y("div", {
4692
+ function mn({ item: t, size: n, labelVisible: r }) {
4693
+ let i = t.trend ? Gt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ Y("div", {
4694
4694
  className: "flex w-full min-w-0 flex-col",
4695
4695
  children: [/* @__PURE__ */ Y("div", {
4696
4696
  className: "flex items-baseline justify-between gap-1",
@@ -4699,7 +4699,7 @@ function pn({ item: t, size: n, labelVisible: r }) {
4699
4699
  children: t.value
4700
4700
  }), t.trend && i && !(t.trend.direction === "neutral" && (n === "xs" || n === "sm")) && /* @__PURE__ */ J("span", {
4701
4701
  className: "shrink-0",
4702
- children: /* @__PURE__ */ J(fn, {
4702
+ children: /* @__PURE__ */ J(pn, {
4703
4703
  trend: t.trend,
4704
4704
  sentiment: i,
4705
4705
  size: n
@@ -4710,20 +4710,20 @@ function pn({ item: t, size: n, labelVisible: r }) {
4710
4710
  children: t.label
4711
4711
  })]
4712
4712
  });
4713
- return !a && t.label ? /* @__PURE__ */ Y(oe, { children: [/* @__PURE__ */ J(le, {
4713
+ return !a && t.label ? /* @__PURE__ */ Y(ae, { children: [/* @__PURE__ */ J(ce, {
4714
4714
  asChild: !0,
4715
4715
  children: /* @__PURE__ */ J("div", {
4716
4716
  className: "flex min-w-0 flex-1 cursor-default",
4717
4717
  children: o
4718
4718
  })
4719
- }), /* @__PURE__ */ J(se, { children: t.label })] }) : /* @__PURE__ */ J("div", {
4719
+ }), /* @__PURE__ */ J(oe, { children: t.label })] }) : /* @__PURE__ */ J("div", {
4720
4720
  className: "flex min-w-0 flex-1",
4721
4721
  children: o
4722
4722
  });
4723
4723
  }
4724
- function mn({ count: t, size: n }) {
4724
+ function hn({ count: t, size: n }) {
4725
4725
  let r = `${t} more ${t === 1 ? "metric" : "metrics"} hidden`;
4726
- return /* @__PURE__ */ Y(oe, { children: [/* @__PURE__ */ J(le, {
4726
+ return /* @__PURE__ */ Y(ae, { children: [/* @__PURE__ */ J(ce, {
4727
4727
  asChild: !0,
4728
4728
  children: /* @__PURE__ */ Y("div", {
4729
4729
  role: "status",
@@ -4731,9 +4731,9 @@ function mn({ count: t, size: n }) {
4731
4731
  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"),
4732
4732
  children: ["+", t]
4733
4733
  })
4734
- }), /* @__PURE__ */ J(se, { children: r })] });
4734
+ }), /* @__PURE__ */ J(oe, { children: r })] });
4735
4735
  }
4736
- function hn({ count: t, className: n, ...r }) {
4736
+ function gn({ count: t, className: n, ...r }) {
4737
4737
  return /* @__PURE__ */ J("div", {
4738
4738
  role: "img",
4739
4739
  "aria-busy": "true",
@@ -4746,14 +4746,14 @@ function hn({ count: t, className: n, ...r }) {
4746
4746
  }, t))
4747
4747
  });
4748
4748
  }
4749
- function gn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4750
- let { ref: o, width: s, height: c } = Ht();
4751
- if (n === "loading") return /* @__PURE__ */ J(hn, {
4752
- count: t.length > 0 ? rn(t) : r ?? 5,
4749
+ function _n({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4750
+ let { ref: o, width: s, height: c } = Ut();
4751
+ if (n === "loading") return /* @__PURE__ */ J(gn, {
4752
+ count: t.length > 0 ? an(t) : r ?? 5,
4753
4753
  className: i,
4754
4754
  ...a
4755
4755
  });
4756
- let l = n === "empty" ? t.map((e) => tn(e) ? {
4756
+ let l = n === "empty" ? t.map((e) => nn(e) ? {
4757
4757
  ...e,
4758
4758
  metrics: e.metrics.map((e) => ({
4759
4759
  ...e,
@@ -4764,8 +4764,8 @@ function gn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4764
4764
  ...e,
4765
4765
  value: "—",
4766
4766
  trend: void 0
4767
- }) : t, u = rn(l), d = s > 0 ? sn(s, c, u) : "md", f = c >= 50, p = s > 0 ? dn(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4768
- return /* @__PURE__ */ J(ce, {
4767
+ }) : t, u = an(l), d = s > 0 ? cn(s, c, u) : "md", f = c >= 50, p = s > 0 ? fn(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4768
+ return /* @__PURE__ */ J(se, {
4769
4769
  delayDuration: 300,
4770
4770
  children: /* @__PURE__ */ Y("div", {
4771
4771
  ref: o,
@@ -4774,21 +4774,21 @@ function gn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4774
4774
  className: e("flex h-full items-center overflow-hidden", g ? "justify-center" : "divide-x divide-border/30 dark:divide-white/[0.06]", i),
4775
4775
  ...a,
4776
4776
  children: [s > 0 && !g && m.map((t) => {
4777
- let n = tn(t) ? t.category : `${t.value}-${t.label ?? ""}`;
4777
+ let n = nn(t) ? t.category : `${t.value}-${t.label ?? ""}`;
4778
4778
  return /* @__PURE__ */ J("div", {
4779
- style: { flex: an(t) },
4779
+ style: { flex: on(t) },
4780
4780
  className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", Q.cellPadding[d]),
4781
- children: tn(t) ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
4781
+ children: nn(t) ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
4782
4782
  className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", Q.category[d]),
4783
4783
  children: t.category
4784
4784
  }), /* @__PURE__ */ J("div", {
4785
4785
  className: "flex w-full min-w-0 items-stretch gap-3",
4786
- children: t.metrics.map((e) => /* @__PURE__ */ J(pn, {
4786
+ children: t.metrics.map((e) => /* @__PURE__ */ J(mn, {
4787
4787
  item: e,
4788
4788
  size: d,
4789
4789
  labelVisible: f
4790
4790
  }, `${e.value}-${e.label ?? ""}`))
4791
- })] }) : /* @__PURE__ */ J(pn, {
4791
+ })] }) : /* @__PURE__ */ J(mn, {
4792
4792
  item: t,
4793
4793
  size: d,
4794
4794
  labelVisible: f
@@ -4796,7 +4796,7 @@ function gn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4796
4796
  }, n);
4797
4797
  }), s > 0 && h > 0 && /* @__PURE__ */ J("div", {
4798
4798
  className: e("flex shrink-0 items-center", g ? "" : "px-2"),
4799
- children: /* @__PURE__ */ J(mn, {
4799
+ children: /* @__PURE__ */ J(hn, {
4800
4800
  count: h,
4801
4801
  size: d
4802
4802
  })
@@ -4806,8 +4806,8 @@ function gn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4806
4806
  }
4807
4807
  //#endregion
4808
4808
  //#region src/charts/LineChart/LineChart.tsx
4809
- function _n({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4810
- let { config: T } = t(), E = n ?? He(e, Object.keys(T));
4809
+ function vn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4810
+ let { config: T } = t(), E = n ?? Ue(e, Object.keys(T));
4811
4811
  return r === "loading" ? /* @__PURE__ */ J(x, {
4812
4812
  ariaLabel: y,
4813
4813
  className: S,
@@ -4827,7 +4827,7 @@ function _n({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDot
4827
4827
  ...w,
4828
4828
  children: [
4829
4829
  s && /* @__PURE__ */ J(o, {}),
4830
- E.map((e) => /* @__PURE__ */ J(Le, {
4830
+ E.map((e) => /* @__PURE__ */ J(Re, {
4831
4831
  dataKey: e,
4832
4832
  curveType: i,
4833
4833
  showDots: a,
@@ -4841,8 +4841,8 @@ function _n({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDot
4841
4841
  }
4842
4842
  //#endregion
4843
4843
  //#region src/charts/AreaChart/AreaChart.tsx
4844
- function vn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4845
- let { config: D } = t(), O = n ?? He(e, Object.keys(D)), k = a ? "default" : void 0;
4844
+ function yn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4845
+ let { config: D } = t(), O = n ?? Ue(e, Object.keys(D)), k = a ? "default" : void 0;
4846
4846
  return r === "loading" ? /* @__PURE__ */ J(b, {
4847
4847
  ariaLabel: _,
4848
4848
  className: w,
@@ -4862,7 +4862,7 @@ function vn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked
4862
4862
  ...E,
4863
4863
  children: [
4864
4864
  l && /* @__PURE__ */ J(o, {}),
4865
- O.map((e) => /* @__PURE__ */ J(Ve, {
4865
+ O.map((e) => /* @__PURE__ */ J(He, {
4866
4866
  dataKey: e,
4867
4867
  stackId: k,
4868
4868
  curveType: i,
@@ -4876,7 +4876,7 @@ function vn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked
4876
4876
  ]
4877
4877
  });
4878
4878
  }
4879
- function yn(e) {
4879
+ function bn(e) {
4880
4880
  if (e === 0) return "0ns";
4881
4881
  if (e < 1e3) return `${Math.round(e)}ns`;
4882
4882
  let t = e / 1e3;
@@ -4888,7 +4888,7 @@ function yn(e) {
4888
4888
  let i = Math.floor(r / 60), a = r % 60;
4889
4889
  return `${i}m ${Math.round(a)}s`;
4890
4890
  }
4891
- function bn(e) {
4891
+ function xn(e) {
4892
4892
  let t = 0;
4893
4893
  for (let n of e) {
4894
4894
  let e = n.startOffsetNs + n.durationNs;
@@ -4896,7 +4896,7 @@ function bn(e) {
4896
4896
  }
4897
4897
  return t > 0 ? t : 1;
4898
4898
  }
4899
- function xn(e, t, n, r) {
4899
+ function Sn(e, t, n, r) {
4900
4900
  if (r <= 0 || n <= 0) return {
4901
4901
  x: 0,
4902
4902
  width: 0
@@ -4907,18 +4907,18 @@ function xn(e, t, n, r) {
4907
4907
  width: a
4908
4908
  };
4909
4909
  }
4910
- function Sn(e, t) {
4910
+ function Cn(e, t) {
4911
4911
  if (t === 0 || e === 0) return "0%";
4912
4912
  let n = e / t * 100;
4913
4913
  return n < .1 ? "<0.1%" : n >= 100 ? "100%" : `${n < 1 ? n.toFixed(1) : Math.round(n)}%`;
4914
4914
  }
4915
- var Cn = 6, wn = 80;
4916
- function Tn(e) {
4915
+ var wn = 6, Tn = 80;
4916
+ function En(e) {
4917
4917
  if (e <= 0) return 0;
4918
- let t = Math.floor(e / wn) + 1;
4919
- return Math.max(2, Math.min(t, Cn));
4918
+ let t = Math.floor(e / Tn) + 1;
4919
+ return Math.max(2, Math.min(t, wn));
4920
4920
  }
4921
- function En(e, t = 5) {
4921
+ function Dn(e, t = 5) {
4922
4922
  if (e <= 0) return [0];
4923
4923
  if (t <= 1) return [0, e];
4924
4924
  let n = e / (t - 1);
@@ -4926,13 +4926,13 @@ function En(e, t = 5) {
4926
4926
  }
4927
4927
  //#endregion
4928
4928
  //#region src/charts/TraceWaterfall/TraceWaterfall.tsx
4929
- var Dn = 280, On = .45, kn = 36, An = 20, jn = 20, Mn = 4, $ = 12, Nn = 48, Pn = 32, Fn = 3, In = {
4929
+ var On = 280, kn = .45, An = 36, jn = 20, Mn = 20, Nn = 4, $ = 12, Pn = 48, Fn = 32, In = 3, Ln = {
4930
4930
  internal: "INTERNAL",
4931
4931
  server: "SERVER",
4932
4932
  client: "CLIENT",
4933
4933
  producer: "PRODUCER",
4934
4934
  consumer: "CONSUMER"
4935
- }, Ln = [
4935
+ }, Rn = [
4936
4936
  "bg-chart-1",
4937
4937
  "bg-chart-2",
4938
4938
  "bg-chart-3",
@@ -4942,21 +4942,21 @@ var Dn = 280, On = .45, kn = 36, An = 20, jn = 20, Mn = 4, $ = 12, Nn = 48, Pn =
4942
4942
  "bg-chart-7",
4943
4943
  "bg-chart-8"
4944
4944
  ];
4945
- function Rn(e) {
4945
+ function zn(e) {
4946
4946
  let t = /* @__PURE__ */ new Map(), n = 0;
4947
- for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, Ln[n % Ln.length]), n++);
4947
+ for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, Rn[n % Rn.length]), n++);
4948
4948
  return t;
4949
4949
  }
4950
- var zn = { error: "bg-destructive" }, Bn = {
4950
+ var Bn = { error: "bg-destructive" }, Vn = {
4951
4951
  ok: "success",
4952
4952
  error: "destructive",
4953
4953
  unset: "secondary"
4954
- }, Vn = {
4954
+ }, Hn = {
4955
4955
  ok: "OK",
4956
4956
  error: "Error",
4957
4957
  unset: "Unset"
4958
4958
  };
4959
- function Hn({ icon: e, label: t, children: n }) {
4959
+ function Un({ icon: e, label: t, children: n }) {
4960
4960
  return /* @__PURE__ */ Y("div", {
4961
4961
  className: "flex items-center justify-between gap-4",
4962
4962
  children: [/* @__PURE__ */ Y("div", {
@@ -4968,7 +4968,7 @@ function Hn({ icon: e, label: t, children: n }) {
4968
4968
  })]
4969
4969
  });
4970
4970
  }
4971
- function Un({ span: t, serviceColor: n, traceDurationNs: r }) {
4971
+ function Wn({ span: t, serviceColor: n, traceDurationNs: r }) {
4972
4972
  return /* @__PURE__ */ Y(q, { children: [
4973
4973
  /* @__PURE__ */ Y("div", {
4974
4974
  className: "space-y-1 px-2.5 pt-2 pb-1.5",
@@ -4981,39 +4981,39 @@ function Un({ span: t, serviceColor: n, traceDurationNs: r }) {
4981
4981
  }), /* @__PURE__ */ Y("div", {
4982
4982
  className: "flex items-center gap-1.5 pl-[14px]",
4983
4983
  children: [/* @__PURE__ */ J(O, {
4984
- variant: Bn[t.status],
4984
+ variant: Vn[t.status],
4985
4985
  className: "h-4 text-[9px]",
4986
- children: Vn[t.status]
4986
+ children: Hn[t.status]
4987
4987
  }), /* @__PURE__ */ J(O, {
4988
4988
  variant: "outline",
4989
4989
  className: "h-4 text-[9px]",
4990
- children: In[t.kind]
4990
+ children: Ln[t.kind]
4991
4991
  })]
4992
4992
  })]
4993
4993
  }),
4994
- /* @__PURE__ */ J(ae, {}),
4994
+ /* @__PURE__ */ J(ie, {}),
4995
4995
  /* @__PURE__ */ Y("div", {
4996
4996
  className: "space-y-1 px-2.5 py-1.5 text-[11px]",
4997
4997
  children: [
4998
- /* @__PURE__ */ J(Hn, {
4999
- icon: ft,
4998
+ /* @__PURE__ */ J(Un, {
4999
+ icon: pt,
5000
5000
  label: "Service",
5001
5001
  children: t.serviceName
5002
5002
  }),
5003
- /* @__PURE__ */ J(Hn, {
5004
- icon: ut,
5003
+ /* @__PURE__ */ J(Un, {
5004
+ icon: dt,
5005
5005
  label: "Duration",
5006
5006
  children: /* @__PURE__ */ J("span", {
5007
5007
  className: "font-mono tabular-nums",
5008
- children: yn(t.durationNs)
5008
+ children: bn(t.durationNs)
5009
5009
  })
5010
5010
  }),
5011
- /* @__PURE__ */ J(Hn, {
5012
- icon: ot,
5011
+ /* @__PURE__ */ J(Un, {
5012
+ icon: st,
5013
5013
  label: "% of trace",
5014
5014
  children: /* @__PURE__ */ J("span", {
5015
5015
  className: "font-mono tabular-nums",
5016
- children: Sn(t.durationNs, r)
5016
+ children: Cn(t.durationNs, r)
5017
5017
  })
5018
5018
  })
5019
5019
  ]
@@ -5027,19 +5027,19 @@ function Un({ span: t, serviceColor: n, traceDurationNs: r }) {
5027
5027
  })
5028
5028
  ] });
5029
5029
  }
5030
- function Wn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
5031
- return /* @__PURE__ */ Y(ne, {
5030
+ function Gn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
5031
+ return /* @__PURE__ */ Y(te, {
5032
5032
  openDelay: 250,
5033
5033
  closeDelay: 0,
5034
- children: [/* @__PURE__ */ J(re, {
5034
+ children: [/* @__PURE__ */ J(ne, {
5035
5035
  asChild: !0,
5036
5036
  children: i
5037
- }), /* @__PURE__ */ J(B, {
5037
+ }), /* @__PURE__ */ J(V, {
5038
5038
  side: "right",
5039
5039
  align: "start",
5040
5040
  sideOffset: 4,
5041
5041
  className: "w-56 p-0",
5042
- children: r ? r(e) : /* @__PURE__ */ J(Un, {
5042
+ children: r ? r(e) : /* @__PURE__ */ J(Wn, {
5043
5043
  span: e,
5044
5044
  serviceColor: t,
5045
5045
  traceDurationNs: n
@@ -5047,13 +5047,13 @@ function Wn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
5047
5047
  })]
5048
5048
  });
5049
5049
  }
5050
- function Gn({ depth: e }) {
5050
+ function Kn({ depth: e }) {
5051
5051
  return e === 0 ? null : /* @__PURE__ */ J("span", {
5052
5052
  className: "pointer-events-none relative shrink-0",
5053
- style: { width: e * An },
5053
+ style: { width: e * jn },
5054
5054
  "aria-hidden": "true",
5055
5055
  children: Array.from({ length: e }, (t, n) => {
5056
- let r = n === e - 1, i = n * An + An / 2;
5056
+ let r = n === e - 1, i = n * jn + jn / 2;
5057
5057
  return r ? /* @__PURE__ */ J("span", {
5058
5058
  className: "absolute top-0 border-l border-border/30",
5059
5059
  style: {
@@ -5062,7 +5062,7 @@ function Gn({ depth: e }) {
5062
5062
  },
5063
5063
  children: /* @__PURE__ */ J("span", {
5064
5064
  className: "absolute bottom-0 left-0 border-b border-border/30",
5065
- style: { width: An / 2 - 2 }
5065
+ style: { width: jn / 2 - 2 }
5066
5066
  })
5067
5067
  }, n) : /* @__PURE__ */ J("span", {
5068
5068
  className: "absolute top-0 h-full border-l border-border/30",
@@ -5071,12 +5071,12 @@ function Gn({ depth: e }) {
5071
5071
  })
5072
5072
  });
5073
5073
  }
5074
- function Kn(e) {
5074
+ function qn(e) {
5075
5075
  let t = /* @__PURE__ */ new Set(), n = new Set(e.map((e) => e.spanId));
5076
5076
  for (let r of e) r.parentSpanId && n.has(r.parentSpanId) && t.add(r.parentSpanId);
5077
5077
  return t;
5078
5078
  }
5079
- function qn(e, t) {
5079
+ function Jn(e, t) {
5080
5080
  if (t.size === 0) return e;
5081
5081
  let n = /* @__PURE__ */ new Set();
5082
5082
  for (let r = 0; r < e.length; r++) {
@@ -5088,7 +5088,7 @@ function qn(e, t) {
5088
5088
  }
5089
5089
  return e.filter((e) => !n.has(e.spanId));
5090
5090
  }
5091
- function Jn(e) {
5091
+ function Yn(e) {
5092
5092
  let t = /* @__PURE__ */ new Map(), n = [];
5093
5093
  for (let r = e.length - 1; r >= 0; r--) {
5094
5094
  let i = e[r].depth;
@@ -5098,11 +5098,11 @@ function Jn(e) {
5098
5098
  }
5099
5099
  return t;
5100
5100
  }
5101
- function Yn({ 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 }) {
5102
- let { x: h, width: g } = xn(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? zn.error : a, v = yn(t.durationNs), y = g >= 56, b = !y;
5101
+ function Xn({ 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 }) {
5102
+ let { x: h, width: g } = Sn(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? Bn.error : a, v = bn(t.durationNs), y = g >= 56, b = !y;
5103
5103
  return /* @__PURE__ */ Y("div", {
5104
5104
  className: e("group flex w-full cursor-pointer transition-colors", o ? "bg-accent/50" : "hover:bg-muted/30"),
5105
- style: { height: kn },
5105
+ style: { height: An },
5106
5106
  onClick: () => u?.(t),
5107
5107
  onKeyDown: (e) => {
5108
5108
  e.key === "Enter" || e.key === " " ? (e.preventDefault(), u?.(t)) : (e.key === "ArrowRight" && s && c || e.key === "ArrowLeft" && s && !c) && (e.preventDefault(), d?.(t.spanId));
@@ -5117,7 +5117,7 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5117
5117
  className: e("w-[3px] shrink-0 transition-colors", o ? "bg-primary" : "bg-transparent"),
5118
5118
  "aria-hidden": "true"
5119
5119
  }),
5120
- /* @__PURE__ */ J(Wn, {
5120
+ /* @__PURE__ */ J(Gn, {
5121
5121
  span: t,
5122
5122
  serviceColor: a,
5123
5123
  traceDurationNs: n,
@@ -5126,7 +5126,7 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5126
5126
  className: "flex shrink-0 items-center gap-1 overflow-hidden border-r border-border/30 px-1.5",
5127
5127
  style: { width: r },
5128
5128
  children: [
5129
- /* @__PURE__ */ J(Gn, { depth: t.depth }),
5129
+ /* @__PURE__ */ J(Kn, { depth: t.depth }),
5130
5130
  s ? /* @__PURE__ */ J("button", {
5131
5131
  type: "button",
5132
5132
  tabIndex: -1,
@@ -5136,7 +5136,7 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5136
5136
  className: "flex size-4 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
5137
5137
  "aria-label": c ? `Expand ${t.name}` : `Collapse ${t.name}`,
5138
5138
  "aria-expanded": !c,
5139
- children: J(c ? st : Z, { className: "size-3.5" })
5139
+ children: J(c ? ct : Z, { className: "size-3.5" })
5140
5140
  }) : /* @__PURE__ */ J("span", {
5141
5141
  className: "flex size-4 shrink-0 items-center justify-center",
5142
5142
  children: /* @__PURE__ */ J("span", { className: e("size-2 rounded-full", a) })
@@ -5148,7 +5148,7 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5148
5148
  className: "truncate text-[13px] leading-tight font-medium text-foreground",
5149
5149
  children: t.name
5150
5150
  }),
5151
- t.status === "error" && /* @__PURE__ */ J(lt, { className: "size-3.5 shrink-0 text-destructive" }),
5151
+ t.status === "error" && /* @__PURE__ */ J(ut, { className: "size-3.5 shrink-0 text-destructive" }),
5152
5152
  c && /* @__PURE__ */ J(O, {
5153
5153
  variant: "secondary",
5154
5154
  className: "h-4 shrink-0 text-[9px]",
@@ -5167,7 +5167,7 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5167
5167
  className: "relative flex-1 overflow-hidden",
5168
5168
  style: {
5169
5169
  paddingLeft: $,
5170
- paddingRight: Nn
5170
+ paddingRight: Pn
5171
5171
  },
5172
5172
  "aria-label": `${t.name}: ${v}`,
5173
5173
  children: [
@@ -5176,8 +5176,8 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5176
5176
  style: {
5177
5177
  left: $ + h,
5178
5178
  width: Math.max(g, 3),
5179
- height: jn,
5180
- borderRadius: Mn
5179
+ height: Mn,
5180
+ borderRadius: Nn
5181
5181
  }
5182
5182
  }),
5183
5183
  y && /* @__PURE__ */ J("span", {
@@ -5198,14 +5198,14 @@ function Yn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5198
5198
  ]
5199
5199
  });
5200
5200
  }
5201
- function Xn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
5202
- let s = En(e, Tn(n)), c = he().domain([0, e]).range([0, n]);
5201
+ function Zn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
5202
+ let s = Dn(e, En(n)), c = ge().domain([0, e]).range([0, n]);
5203
5203
  return /* @__PURE__ */ Y("div", {
5204
5204
  className: "flex shrink-0 items-end border-b border-border bg-muted/30",
5205
- style: { height: Pn },
5205
+ style: { height: Fn },
5206
5206
  children: [/* @__PURE__ */ Y("div", {
5207
5207
  className: "flex shrink-0 items-center justify-between border-r border-border/30 px-3 pb-2",
5208
- style: { width: t + Fn },
5208
+ style: { width: t + In },
5209
5209
  children: [/* @__PURE__ */ J("span", {
5210
5210
  className: "truncate text-[11px] font-semibold tracking-wider text-muted-foreground uppercase",
5211
5211
  children: "Service & Operation"
@@ -5214,13 +5214,13 @@ function Xn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
5214
5214
  onClick: i ? a : o,
5215
5215
  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",
5216
5216
  "aria-label": i ? "Expand all spans" : "Collapse all spans",
5217
- children: J(i ? Z : st, { className: "size-3.5" })
5217
+ children: J(i ? Z : ct, { className: "size-3.5" })
5218
5218
  })]
5219
5219
  }), /* @__PURE__ */ J("div", {
5220
5220
  className: "relative flex-1 pb-2",
5221
5221
  style: {
5222
5222
  paddingLeft: $,
5223
- paddingRight: Nn
5223
+ paddingRight: Pn
5224
5224
  },
5225
5225
  children: s.map((e, t) => {
5226
5226
  let n = t === 0, r = t === s.length - 1;
@@ -5230,18 +5230,18 @@ function Xn({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
5230
5230
  left: $ + c(e),
5231
5231
  transform: n ? "none" : r ? "translateX(-100%)" : "translateX(-50%)"
5232
5232
  },
5233
- children: yn(e)
5233
+ children: bn(e)
5234
5234
  }, e);
5235
5235
  })
5236
5236
  })]
5237
5237
  });
5238
5238
  }
5239
- function Zn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
5240
- let i = En(e, Tn(n)), a = he().domain([0, e]).range([0, n]), o = r * kn;
5239
+ function Qn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
5240
+ let i = Dn(e, En(n)), a = ge().domain([0, e]).range([0, n]), o = r * An;
5241
5241
  return /* @__PURE__ */ J("svg", {
5242
5242
  className: "pointer-events-none absolute top-0",
5243
5243
  style: {
5244
- left: t + Fn + $,
5244
+ left: t + In + $,
5245
5245
  width: n,
5246
5246
  height: o
5247
5247
  },
@@ -5257,7 +5257,7 @@ function Zn({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r })
5257
5257
  }, e))
5258
5258
  });
5259
5259
  }
5260
- var Qn = [
5260
+ var $n = [
5261
5261
  {
5262
5262
  indent: 0,
5263
5263
  labelPct: 60,
@@ -5289,7 +5289,7 @@ var Qn = [
5289
5289
  barPct: 65
5290
5290
  }
5291
5291
  ];
5292
- function $n({ ariaLabel: t, className: n, ...r }) {
5292
+ function er({ ariaLabel: t, className: n, ...r }) {
5293
5293
  return /* @__PURE__ */ Y("div", {
5294
5294
  role: "img",
5295
5295
  "aria-busy": "true",
@@ -5298,13 +5298,13 @@ function $n({ ariaLabel: t, className: n, ...r }) {
5298
5298
  ...r,
5299
5299
  children: [/* @__PURE__ */ J("div", {
5300
5300
  className: "flex shrink-0 items-center border-b border-border bg-muted/30 px-3",
5301
- style: { height: Pn },
5301
+ style: { height: Fn },
5302
5302
  children: /* @__PURE__ */ J(_, { className: "h-3 w-1/3 max-w-32" })
5303
5303
  }), /* @__PURE__ */ J("div", {
5304
5304
  className: "flex-1",
5305
- children: Qn.map((e, t) => /* @__PURE__ */ Y("div", {
5305
+ children: $n.map((e, t) => /* @__PURE__ */ Y("div", {
5306
5306
  className: "flex items-center gap-2 px-2",
5307
- style: { height: kn },
5307
+ style: { height: An },
5308
5308
  children: [/* @__PURE__ */ Y("div", {
5309
5309
  className: "flex shrink-0 items-center gap-1.5",
5310
5310
  style: { paddingLeft: e.indent * 12 },
@@ -5322,7 +5322,7 @@ function $n({ ariaLabel: t, className: n, ...r }) {
5322
5322
  className: "rounded-sm",
5323
5323
  style: {
5324
5324
  width: `${e.barPct}%`,
5325
- height: jn
5325
+ height: Mn
5326
5326
  }
5327
5327
  })
5328
5328
  })]
@@ -5330,14 +5330,14 @@ function $n({ ariaLabel: t, className: n, ...r }) {
5330
5330
  })]
5331
5331
  });
5332
5332
  }
5333
- function er({ 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 }) {
5334
- let f = h(n, t.length), [p, m] = V.useState({
5335
- labelWidth: Dn,
5333
+ function tr({ 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 }) {
5334
+ let f = h(n, t.length), [p, m] = H.useState({
5335
+ labelWidth: On,
5336
5336
  timelineWidth: 0
5337
- }), g = V.useRef(null), _ = V.useMemo(() => Kn(t), [t]), [y, b] = V.useState(() => s ? new Set(Kn(t)) : /* @__PURE__ */ new Set()), x = V.useCallback((e) => {
5337
+ }), g = H.useRef(null), _ = H.useMemo(() => qn(t), [t]), [y, b] = H.useState(() => s ? new Set(qn(t)) : /* @__PURE__ */ new Set()), x = H.useCallback((e) => {
5338
5338
  if (g.current &&= (g.current.disconnect(), null), e) {
5339
5339
  let t = new ResizeObserver(([e]) => {
5340
- let t = Math.round(e.contentRect.width), n = Math.min(Dn, Math.round(t * On)), r = t - n - Fn - $ - Nn;
5340
+ let t = Math.round(e.contentRect.width), n = Math.min(On, Math.round(t * kn)), r = t - n - In - $ - Pn;
5341
5341
  m({
5342
5342
  labelWidth: n,
5343
5343
  timelineWidth: Math.max(r, 0)
@@ -5345,13 +5345,13 @@ function er({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5345
5345
  });
5346
5346
  t.observe(e), g.current = t;
5347
5347
  }
5348
- }, []), S = V.useMemo(() => bn(t), [t]), C = V.useMemo(() => Rn(t), [t]), w = V.useMemo(() => Jn(t), [t]), T = V.useMemo(() => qn(t, y), [t, y]), E = V.useCallback((e) => {
5348
+ }, []), S = H.useMemo(() => xn(t), [t]), C = H.useMemo(() => zn(t), [t]), w = H.useMemo(() => Yn(t), [t]), T = H.useMemo(() => Jn(t, y), [t, y]), E = H.useCallback((e) => {
5349
5349
  b((t) => {
5350
5350
  let n = new Set(t);
5351
5351
  return n.has(e) ? n.delete(e) : n.add(e), n;
5352
5352
  });
5353
- }, []), D = V.useCallback(() => b(/* @__PURE__ */ new Set()), []), O = V.useCallback(() => b(new Set(_)), [_]), k = y.size > 0;
5354
- return f === "loading" ? /* @__PURE__ */ J($n, {
5353
+ }, []), D = H.useCallback(() => b(/* @__PURE__ */ new Set()), []), O = H.useCallback(() => b(new Set(_)), [_]), k = y.size > 0;
5354
+ return f === "loading" ? /* @__PURE__ */ J(er, {
5355
5355
  ariaLabel: l,
5356
5356
  className: u,
5357
5357
  ...d
@@ -5365,7 +5365,7 @@ function er({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5365
5365
  role: "treegrid",
5366
5366
  "aria-label": l,
5367
5367
  ...d,
5368
- children: [/* @__PURE__ */ J(Xn, {
5368
+ children: [/* @__PURE__ */ J(Zn, {
5369
5369
  traceDurationNs: S,
5370
5370
  labelWidth: p.labelWidth,
5371
5371
  usableWidth: p.timelineWidth,
@@ -5373,21 +5373,21 @@ function er({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5373
5373
  isAllCollapsed: k,
5374
5374
  onExpandAll: D,
5375
5375
  onCollapseAll: O
5376
- }), /* @__PURE__ */ J(ie, {
5376
+ }), /* @__PURE__ */ J(re, {
5377
5377
  className: "min-h-0 flex-1",
5378
5378
  children: /* @__PURE__ */ Y("div", {
5379
5379
  className: "relative",
5380
- children: [/* @__PURE__ */ J(Zn, {
5380
+ children: [/* @__PURE__ */ J(Qn, {
5381
5381
  traceDurationNs: S,
5382
5382
  labelWidth: p.labelWidth,
5383
5383
  usableWidth: p.timelineWidth,
5384
5384
  rowCount: T.length
5385
- }), T.map((e) => /* @__PURE__ */ J(Yn, {
5385
+ }), T.map((e) => /* @__PURE__ */ J(Xn, {
5386
5386
  span: e,
5387
5387
  traceDurationNs: S,
5388
5388
  labelWidth: p.labelWidth,
5389
5389
  usableWidth: p.timelineWidth,
5390
- serviceColor: C.get(e.serviceName) ?? Ln[0],
5390
+ serviceColor: C.get(e.serviceName) ?? Rn[0],
5391
5391
  selected: e.spanId === r,
5392
5392
  hasChildren: _.has(e.spanId),
5393
5393
  collapsed: y.has(e.spanId),
@@ -5404,27 +5404,27 @@ function er({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5404
5404
  }
5405
5405
  //#endregion
5406
5406
  //#region src/charts/BreakdownChart/BarMeter.tsx
5407
- var tr = {
5407
+ var nr = {
5408
5408
  positive: "text-success",
5409
5409
  negative: "text-destructive",
5410
5410
  neutral: "text-muted-foreground"
5411
5411
  };
5412
- function nr({ trend: t, sentiment: n }) {
5413
- let r = t.direction === "down" ? Z : ct;
5412
+ function rr({ trend: t, sentiment: n }) {
5413
+ let r = t.direction === "down" ? Z : lt;
5414
5414
  return /* @__PURE__ */ Y("span", {
5415
- className: e("inline-flex items-center gap-0.5 text-xs font-medium", tr[n]),
5415
+ className: e("inline-flex items-center gap-0.5 text-xs font-medium", nr[n]),
5416
5416
  children: [t.direction !== "neutral" && /* @__PURE__ */ J(r, { className: "size-3 stroke-[2.5]" }), t.isNew ? "New" : `${t.value}%`]
5417
5417
  });
5418
5418
  }
5419
- function rr({ rank: e }) {
5419
+ function ir({ rank: e }) {
5420
5420
  return /* @__PURE__ */ J("span", {
5421
5421
  "aria-hidden": "true",
5422
5422
  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",
5423
5423
  children: e
5424
5424
  });
5425
5425
  }
5426
- function ir({ 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, ..._ }) {
5427
- 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 ? Wt(s.direction, c) : void 0;
5426
+ function ar({ 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, ..._ }) {
5427
+ 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 ? Gt(s.direction, c) : void 0;
5428
5428
  return /* @__PURE__ */ Y("div", {
5429
5429
  "data-slot": "bar-meter",
5430
5430
  role: h ? "button" : void 0,
@@ -5440,7 +5440,7 @@ function ir({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5440
5440
  children: [/* @__PURE__ */ Y("span", {
5441
5441
  className: "flex min-w-0 items-center gap-2",
5442
5442
  children: [
5443
- u !== void 0 && /* @__PURE__ */ J(rr, { rank: u }),
5443
+ u !== void 0 && /* @__PURE__ */ J(ir, { rank: u }),
5444
5444
  o && /* @__PURE__ */ J(o, { className: e("size-4 shrink-0 transition-colors", p ? "text-foreground" : "text-muted-foreground") }),
5445
5445
  /* @__PURE__ */ J("span", {
5446
5446
  className: e("truncate text-sm transition-colors", p ? "font-semibold text-foreground" : "font-medium text-foreground"),
@@ -5449,7 +5449,7 @@ function ir({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5449
5449
  ]
5450
5450
  }), /* @__PURE__ */ Y("span", {
5451
5451
  className: "flex shrink-0 items-center gap-2",
5452
- children: [s && x && /* @__PURE__ */ J(nr, {
5452
+ children: [s && x && /* @__PURE__ */ J(rr, {
5453
5453
  trend: s,
5454
5454
  sentiment: x
5455
5455
  }), /* @__PURE__ */ J("span", {
@@ -5487,9 +5487,9 @@ function ir({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5487
5487
  }
5488
5488
  //#endregion
5489
5489
  //#region src/charts/BreakdownChart/BreakdownContext.tsx
5490
- var ar = V.createContext(null);
5491
- function or() {
5492
- return V.useContext(ar) || {
5490
+ var or = H.createContext(null);
5491
+ function sr() {
5492
+ return H.useContext(or) || {
5493
5493
  tooltip: null,
5494
5494
  legend: null,
5495
5495
  summary: null,
@@ -5498,8 +5498,8 @@ function or() {
5498
5498
  setSummary: () => void 0
5499
5499
  };
5500
5500
  }
5501
- function sr({ children: e }) {
5502
- let [t, n] = V.useState(null), [r, i] = V.useState(null), [a, o] = V.useState(null), s = V.useMemo(() => ({
5501
+ function cr({ children: e }) {
5502
+ let [t, n] = H.useState(null), [r, i] = H.useState(null), [a, o] = H.useState(null), s = H.useMemo(() => ({
5503
5503
  tooltip: t,
5504
5504
  legend: r,
5505
5505
  summary: a,
@@ -5511,28 +5511,28 @@ function sr({ children: e }) {
5511
5511
  r,
5512
5512
  a
5513
5513
  ]);
5514
- return /* @__PURE__ */ J(ar.Provider, {
5514
+ return /* @__PURE__ */ J(or.Provider, {
5515
5515
  value: s,
5516
5516
  children: e
5517
5517
  });
5518
5518
  }
5519
5519
  //#endregion
5520
5520
  //#region src/charts/BreakdownChart/BreakdownTooltip.tsx
5521
- function cr({ content: e }) {
5522
- let { setTooltip: t } = or();
5523
- return V.useLayoutEffect(() => (t({ content: typeof e == "function" ? e : (t, n) => V.cloneElement(e, {
5521
+ function lr({ content: e }) {
5522
+ let { setTooltip: t } = sr();
5523
+ return H.useLayoutEffect(() => (t({ content: typeof e == "function" ? e : (t, n) => H.cloneElement(e, {
5524
5524
  item: t,
5525
5525
  meta: n
5526
5526
  }) }), () => t(null)), [e, t]), null;
5527
5527
  }
5528
- function lr({ pos: e, containerRef: t, children: n }) {
5529
- let r = V.useRef(null), [i, a] = V.useState({
5528
+ function ur({ pos: e, containerRef: t, children: n }) {
5529
+ let r = H.useRef(null), [i, a] = H.useState({
5530
5530
  x: 0,
5531
5531
  y: 0,
5532
5532
  visible: !1,
5533
5533
  settled: !1
5534
5534
  });
5535
- return V.useLayoutEffect(() => {
5535
+ return H.useLayoutEffect(() => {
5536
5536
  let n = t.current, i = r.current;
5537
5537
  if (!n || !i) {
5538
5538
  a((e) => e.visible ? {
@@ -5554,7 +5554,7 @@ function lr({ pos: e, containerRef: t, children: n }) {
5554
5554
  e.x,
5555
5555
  e.y,
5556
5556
  t
5557
- ]), Ce(/* @__PURE__ */ J("div", {
5557
+ ]), we(/* @__PURE__ */ J("div", {
5558
5558
  ref: r,
5559
5559
  role: "tooltip",
5560
5560
  className: "pointer-events-none fixed z-50",
@@ -5567,10 +5567,10 @@ function lr({ pos: e, containerRef: t, children: n }) {
5567
5567
  children: n
5568
5568
  }), document.body);
5569
5569
  }
5570
- function ur(e) {
5570
+ function dr(e) {
5571
5571
  return typeof e == "number" ? e.toLocaleString() : e;
5572
5572
  }
5573
- function dr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = ur, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
5573
+ function fr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = dr, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
5574
5574
  let p = i === void 0 && t !== void 0 && n !== void 0, m = r ?? t?.label, h = i ?? (p ? [{
5575
5575
  name: n.formattedValue,
5576
5576
  value: `${(n.ratio * 100).toFixed(1)}%`,
@@ -5624,15 +5624,15 @@ function dr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator:
5624
5624
  }
5625
5625
  //#endregion
5626
5626
  //#region src/charts/BreakdownChart/BreakdownChart.tsx
5627
- function fr(e) {
5628
- let [t, n] = V.useState(!e);
5629
- return V.useEffect(() => {
5627
+ function pr(e) {
5628
+ let [t, n] = H.useState(!e);
5629
+ return H.useEffect(() => {
5630
5630
  if (!e) return;
5631
5631
  let t = requestAnimationFrame(() => n(!0));
5632
5632
  return () => cancelAnimationFrame(t);
5633
5633
  }, [e]), t;
5634
5634
  }
5635
- var pr = [
5635
+ var mr = [
5636
5636
  "var(--chart-1)",
5637
5637
  "var(--chart-2)",
5638
5638
  "var(--chart-3)",
@@ -5644,10 +5644,10 @@ var pr = [
5644
5644
  "var(--chart-9)",
5645
5645
  "var(--chart-10)"
5646
5646
  ];
5647
- function mr(e, t) {
5648
- return e.color ?? pr[t % pr.length];
5649
- }
5650
5647
  function hr(e, t) {
5648
+ return e.color ?? mr[t % mr.length];
5649
+ }
5650
+ function gr(e, t) {
5651
5651
  switch (t) {
5652
5652
  case "total": {
5653
5653
  let t = e.reduce((e, t) => e + t.value, 0);
@@ -5661,7 +5661,7 @@ function hr(e, t) {
5661
5661
  default: return t;
5662
5662
  }
5663
5663
  }
5664
- var gr = [
5664
+ var _r = [
5665
5665
  .7,
5666
5666
  .45,
5667
5667
  .25,
@@ -5669,7 +5669,7 @@ var gr = [
5669
5669
  .35,
5670
5670
  .2
5671
5671
  ];
5672
- function _r({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5672
+ function vr({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5673
5673
  return /* @__PURE__ */ J("div", {
5674
5674
  role: "img",
5675
5675
  "aria-busy": "true",
@@ -5685,15 +5685,15 @@ function _r({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5685
5685
  }),
5686
5686
  /* @__PURE__ */ J(_, {
5687
5687
  className: "h-2 rounded-full",
5688
- style: { width: `${gr[r % gr.length] * 100}%` }
5688
+ style: { width: `${_r[r % _r.length] * 100}%` }
5689
5689
  }),
5690
5690
  /* @__PURE__ */ J(_, { className: "h-3 w-20" })
5691
5691
  ]
5692
5692
  }, r))
5693
5693
  });
5694
5694
  }
5695
- var vr = 12, yr = -12;
5696
- function br({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
5695
+ var yr = 12, br = -12;
5696
+ function xr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
5697
5697
  let d = t.reduce((e, t) => e + t.value, 0);
5698
5698
  return /* @__PURE__ */ Y("div", {
5699
5699
  className: "flex flex-col gap-3",
@@ -5708,7 +5708,7 @@ function br({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5708
5708
  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"),
5709
5709
  style: {
5710
5710
  width: i ? `${p}%` : "0%",
5711
- backgroundColor: mr(c, f)
5711
+ backgroundColor: hr(c, f)
5712
5712
  },
5713
5713
  onMouseEnter: () => l(c),
5714
5714
  onMouseLeave: () => l(null),
@@ -5726,7 +5726,7 @@ function br({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5726
5726
  children: [
5727
5727
  /* @__PURE__ */ J("span", {
5728
5728
  className: "inline-block size-2.5 shrink-0 rounded-full",
5729
- style: { backgroundColor: mr(e, t) },
5729
+ style: { backgroundColor: hr(e, t) },
5730
5730
  "aria-hidden": "true"
5731
5731
  }),
5732
5732
  /* @__PURE__ */ J("span", {
@@ -5742,8 +5742,8 @@ function br({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5742
5742
  })]
5743
5743
  });
5744
5744
  }
5745
- function xr(e, t) {
5746
- let [n, r] = V.useState(!1);
5745
+ function Sr(e, t) {
5746
+ let [n, r] = H.useState(!1);
5747
5747
  return t === void 0 || e.length <= t ? {
5748
5748
  visibleItems: e,
5749
5749
  collapsedCount: 0,
@@ -5756,21 +5756,21 @@ function xr(e, t) {
5756
5756
  setExpanded: r
5757
5757
  };
5758
5758
  }
5759
- function Sr({ children: e, ...t }) {
5760
- return /* @__PURE__ */ Y(sr, { children: [e, /* @__PURE__ */ J(Cr, { ...t })] });
5759
+ function Cr({ children: e, ...t }) {
5760
+ return /* @__PURE__ */ Y(cr, { children: [e, /* @__PURE__ */ J(wr, { ...t })] });
5761
5761
  }
5762
- function Cr({ 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: y, ...b }) {
5763
- let { tooltip: x, legend: S, summary: C } = or(), w = p ?? (t.length === 0 ? "empty" : "ready"), [T, E] = V.useState(null), D = g !== void 0, O = fr(u), k = V.useRef(null), [A, j] = V.useState(null), M = V.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = V.useMemo(() => hr(M, r), [M, r]), P = V.useCallback((e) => {
5762
+ function wr({ 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: y, ...b }) {
5763
+ let { tooltip: x, legend: S, summary: C } = sr(), w = p ?? (t.length === 0 ? "empty" : "ready"), [T, E] = H.useState(null), D = g !== void 0, O = pr(u), k = H.useRef(null), [A, j] = H.useState(null), M = H.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = H.useMemo(() => gr(M, r), [M, r]), P = H.useCallback((e) => {
5764
5764
  E(e?.key ?? null), e || j(null), _?.(e);
5765
- }, [_]), F = V.useCallback((e) => {
5765
+ }, [_]), F = H.useCallback((e) => {
5766
5766
  if (!x || !k.current) return;
5767
5767
  let t = k.current.getBoundingClientRect();
5768
5768
  j({
5769
- x: e.clientX - t.left + vr,
5770
- y: e.clientY - t.top + yr
5769
+ x: e.clientX - t.left + yr,
5770
+ y: e.clientY - t.top + br
5771
5771
  });
5772
5772
  }, [x]);
5773
- if (w === "loading") return /* @__PURE__ */ J(_r, {
5773
+ if (w === "loading") return /* @__PURE__ */ J(vr, {
5774
5774
  rows: m,
5775
5775
  compact: d,
5776
5776
  className: y,
@@ -5782,11 +5782,11 @@ function Cr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5782
5782
  children: /* @__PURE__ */ J(v, { ariaLabel: h })
5783
5783
  });
5784
5784
  let I = T ? M.findIndex((e) => e.key === T) : -1, L = I >= 0 ? M[I] : null, R = L ? {
5785
- color: mr(L, I),
5785
+ color: hr(L, I),
5786
5786
  index: I,
5787
5787
  ratio: N[I],
5788
5788
  formattedValue: i ? i(L.value) : String(L.value)
5789
- } : null, ee = x && L && R && A ? /* @__PURE__ */ J(lr, {
5789
+ } : null, z = x && L && R && A ? /* @__PURE__ */ J(ur, {
5790
5790
  pos: A,
5791
5791
  containerRef: k,
5792
5792
  children: x.content(L, R)
@@ -5798,7 +5798,7 @@ function Cr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5798
5798
  onMouseMove: F,
5799
5799
  ...b,
5800
5800
  ref: k,
5801
- children: [/* @__PURE__ */ J(br, {
5801
+ children: [/* @__PURE__ */ J(xr, {
5802
5802
  items: M,
5803
5803
  formatValue: i,
5804
5804
  animated: u,
@@ -5809,8 +5809,8 @@ function Cr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5809
5809
  legendSlot: S,
5810
5810
  onSegmentHover: P,
5811
5811
  onSegmentClick: g
5812
- }), ee]
5813
- }) : /* @__PURE__ */ J(wr, {
5812
+ }), z]
5813
+ }) : /* @__PURE__ */ J(Tr, {
5814
5814
  containerRef: k,
5815
5815
  items: M,
5816
5816
  ratios: N,
@@ -5830,13 +5830,13 @@ function Cr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5830
5830
  onItemHover: P,
5831
5831
  onItemClick: g,
5832
5832
  onMouseMove: F,
5833
- tooltipPortal: ee,
5833
+ tooltipPortal: z,
5834
5834
  className: y,
5835
5835
  ...b
5836
5836
  });
5837
5837
  }
5838
- function wr({ 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 }) {
5839
- let { visibleItems: S, collapsedCount: C, setExpanded: w } = xr(n, l);
5838
+ function Tr({ 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 }) {
5839
+ let { visibleItems: S, collapsedCount: C, setExpanded: w } = Sr(n, l);
5840
5840
  return /* @__PURE__ */ Y("div", {
5841
5841
  role: "group",
5842
5842
  "aria-label": m,
@@ -5844,11 +5844,11 @@ function wr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
5844
5844
  ...x,
5845
5845
  ref: t,
5846
5846
  children: [
5847
- S.map((e, t) => /* @__PURE__ */ J(ir, {
5847
+ S.map((e, t) => /* @__PURE__ */ J(ar, {
5848
5848
  label: e.label,
5849
5849
  formattedValue: i ? i(e.value) : String(e.value),
5850
5850
  ratio: p ? r[t] : 0,
5851
- color: mr(e, t),
5851
+ color: hr(e, t),
5852
5852
  detail: e.detail,
5853
5853
  icon: e.icon,
5854
5854
  trend: e.trend,
@@ -5891,11 +5891,11 @@ function wr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
5891
5891
  }
5892
5892
  //#endregion
5893
5893
  //#region src/charts/BreakdownChart/BreakdownLegend.tsx
5894
- function Tr({ children: e }) {
5895
- let { setLegend: t } = or();
5896
- return V.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5894
+ function Er({ children: e }) {
5895
+ let { setLegend: t } = sr();
5896
+ return H.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5897
5897
  }
5898
- function Er({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5898
+ function Dr({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5899
5899
  return /* @__PURE__ */ J("div", {
5900
5900
  className: e("flex flex-wrap items-center gap-x-4 gap-y-1", i),
5901
5901
  ...a,
@@ -5921,30 +5921,30 @@ function Er({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5921
5921
  }
5922
5922
  //#endregion
5923
5923
  //#region src/charts/BreakdownChart/BreakdownSummary.tsx
5924
- function Dr({ children: e }) {
5925
- let { setSummary: t } = or();
5926
- return V.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5924
+ function Or({ children: e }) {
5925
+ let { setSummary: t } = sr();
5926
+ return H.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5927
5927
  }
5928
5928
  //#endregion
5929
5929
  //#region src/charts/FilterCombobox/DataTypeIcon.tsx
5930
- function Or({ icon: t, tooltipContent: n, colorClass: r }) {
5931
- return /* @__PURE__ */ Y(oe, { children: [/* @__PURE__ */ J(le, {
5930
+ function kr({ icon: t, tooltipContent: n, colorClass: r }) {
5931
+ return /* @__PURE__ */ Y(ae, { children: [/* @__PURE__ */ J(ce, {
5932
5932
  asChild: !0,
5933
5933
  children: /* @__PURE__ */ J("span", {
5934
5934
  className: "flex shrink-0 items-center justify-center p-1",
5935
5935
  children: /* @__PURE__ */ J(t, { className: e("size-3.5 transition-colors", r ?? "text-muted-foreground") })
5936
5936
  })
5937
- }), /* @__PURE__ */ J(se, {
5937
+ }), /* @__PURE__ */ J(oe, {
5938
5938
  side: "left",
5939
5939
  children: n
5940
5940
  })] });
5941
5941
  }
5942
5942
  //#endregion
5943
5943
  //#region src/charts/FilterCombobox/DataTypeIcons.tsx
5944
- function kr({ dataTypes: e }) {
5944
+ function Ar({ dataTypes: e }) {
5945
5945
  return e.length === 0 ? null : /* @__PURE__ */ J("span", {
5946
5946
  className: "ml-2 flex shrink-0 items-center",
5947
- children: e.map((e) => /* @__PURE__ */ J(Or, {
5947
+ children: e.map((e) => /* @__PURE__ */ J(kr, {
5948
5948
  icon: e.icon,
5949
5949
  tooltipContent: e.tooltipContent,
5950
5950
  colorClass: e.colorClass
@@ -5952,20 +5952,55 @@ function kr({ dataTypes: e }) {
5952
5952
  });
5953
5953
  }
5954
5954
  //#endregion
5955
+ //#region src/charts/FilterCombobox/filter-combobox-options.ts
5956
+ function jr(e, t) {
5957
+ return `${e}-${t}`;
5958
+ }
5959
+ function Mr(e) {
5960
+ return e;
5961
+ }
5962
+ function Nr(e, t) {
5963
+ return `${e}-option-${t}`;
5964
+ }
5965
+ function Pr(e, t, n, r) {
5966
+ if (!e) return t.map((e) => ({
5967
+ item: e,
5968
+ optionValue: Mr(e.id)
5969
+ }));
5970
+ let i = [];
5971
+ for (let e of n) {
5972
+ if (!r[e.id]) continue;
5973
+ let n = t.filter((t) => t.scopes.includes(e.id));
5974
+ for (let t of n) i.push({
5975
+ item: t,
5976
+ optionValue: jr(e.id, t.id)
5977
+ });
5978
+ }
5979
+ return i;
5980
+ }
5981
+ function Fr(e, t, n) {
5982
+ if (e.length === 0) return;
5983
+ let r = t ? e.findIndex((e) => e.optionValue === t) : -1;
5984
+ 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;
5985
+ }
5986
+ function Ir(e, t) {
5987
+ if (t) return e.some((e) => e.optionValue === t) ? t : void 0;
5988
+ }
5989
+ //#endregion
5955
5990
  //#region src/charts/FilterCombobox/resolve-item-data-types.ts
5956
- function Ar(e) {
5991
+ function Lr(e) {
5957
5992
  return e.dataTypeIds ?? [];
5958
5993
  }
5959
- function jr(e, t) {
5960
- return Array.from(new Set(Ar(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
5994
+ function Rr(e, t) {
5995
+ return Array.from(new Set(Lr(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
5961
5996
  }
5962
5997
  //#endregion
5963
5998
  //#region src/charts/FilterCombobox/FilterGroupedList.tsx
5964
- function Mr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScope: a, onSelect: o }) {
5999
+ function zr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScope: a, onSelect: o, onHighlightOption: s }) {
5965
6000
  return /* @__PURE__ */ J(q, { children: t.map((t) => {
5966
- let s = r.filter((e) => e.scopes.includes(t.id));
5967
- if (s.length === 0) return null;
5968
- let c = t.icon;
6001
+ let c = r.filter((e) => e.scopes.includes(t.id));
6002
+ if (c.length === 0) return null;
6003
+ let l = t.icon;
5969
6004
  return /* @__PURE__ */ Y(P, {
5970
6005
  open: i[t.id] ?? !0,
5971
6006
  onOpenChange: (e) => a(t.id, e),
@@ -5979,28 +6014,30 @@ function Mr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScop
5979
6014
  children: [/* @__PURE__ */ Y("div", {
5980
6015
  className: e("flex items-center gap-2 text-xs font-bold tracking-wider uppercase", t.colorClass),
5981
6016
  children: [
5982
- /* @__PURE__ */ J(c, { className: "size-4" }),
6017
+ /* @__PURE__ */ J(l, { className: "size-4" }),
5983
6018
  t.title,
5984
6019
  /* @__PURE__ */ J(O, {
5985
6020
  variant: "secondary",
5986
6021
  className: "ml-1 h-4 px-1.5 text-[10px] font-normal",
5987
- children: s.length
6022
+ children: c.length
5988
6023
  })
5989
6024
  ]
5990
6025
  }), /* @__PURE__ */ J(Z, { className: e("size-4 text-muted-foreground transition-transform duration-200", i[t.id] && "rotate-180") })]
5991
6026
  })
5992
- }), /* @__PURE__ */ J(F, { children: /* @__PURE__ */ J(ee, {
6027
+ }), /* @__PURE__ */ J(F, { children: /* @__PURE__ */ J(z, {
5993
6028
  className: "mt-1 ml-3 pl-1",
5994
- children: (i[t.id] ?? !0) && s.map((e) => {
5995
- let r = jr(e, n);
5996
- return /* @__PURE__ */ Y(te, {
5997
- value: `${t.id}-${e.id}`,
6029
+ children: (i[t.id] ?? !0) && c.map((e) => {
6030
+ let r = Rr(e, n), i = jr(t.id, e.id);
6031
+ return /* @__PURE__ */ Y(ee, {
6032
+ "data-filter-option-value": i,
6033
+ value: i,
5998
6034
  onSelect: () => o(e),
6035
+ onMouseEnter: () => s(i),
5999
6036
  className: "group/item rounded-md [&>svg.lucide-check]:hidden",
6000
6037
  children: [/* @__PURE__ */ J("span", {
6001
6038
  className: "min-w-0 flex-1 truncate font-medium text-foreground",
6002
6039
  children: e.name
6003
- }), /* @__PURE__ */ J(kr, { dataTypes: r })]
6040
+ }), /* @__PURE__ */ J(Ar, { dataTypes: r })]
6004
6041
  }, `${t.id}-${e.id}`);
6005
6042
  })
6006
6043
  }) })]
@@ -6009,12 +6046,12 @@ function Mr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScop
6009
6046
  }
6010
6047
  //#endregion
6011
6048
  //#region src/charts/FilterCombobox/HighlightMatch.tsx
6012
- function Nr(e) {
6049
+ function Br(e) {
6013
6050
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6014
6051
  }
6015
- function Pr(e, t) {
6052
+ function Vr(e, t) {
6016
6053
  if (!t.trim()) return [e];
6017
- let n = Nr(t);
6054
+ let n = Br(t);
6018
6055
  return e.split(RegExp(`(${n})`, "gi")).map((e, n) => e.toLowerCase() === t.toLowerCase() ? /* @__PURE__ */ J("mark", {
6019
6056
  className: "rounded-sm bg-warning/10 text-warning-foreground",
6020
6057
  children: e
@@ -6022,21 +6059,23 @@ function Pr(e, t) {
6022
6059
  }
6023
6060
  //#endregion
6024
6061
  //#region src/charts/FilterCombobox/FilterSearchList.tsx
6025
- function Fr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a }) {
6026
- return /* @__PURE__ */ J(ee, {
6062
+ function Hr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a, onHighlightOption: o }) {
6063
+ return /* @__PURE__ */ J(z, {
6027
6064
  heading: `Results (${r.length})`,
6028
6065
  className: "mt-1",
6029
6066
  children: r.map((r) => {
6030
- let o = jr(r, n);
6031
- return /* @__PURE__ */ Y(te, {
6032
- value: r.id,
6067
+ let s = Rr(r, n), c = Mr(r.id);
6068
+ return /* @__PURE__ */ Y(ee, {
6069
+ "data-filter-option-value": c,
6070
+ value: c,
6033
6071
  onSelect: () => a(r),
6072
+ onMouseEnter: () => o(c),
6034
6073
  className: "group/item mb-1 rounded-lg p-2 [&>svg.lucide-check]:hidden",
6035
6074
  children: [/* @__PURE__ */ Y("div", {
6036
6075
  className: "flex min-w-0 flex-1 flex-col gap-1.5 overflow-hidden",
6037
6076
  children: [/* @__PURE__ */ J("span", {
6038
6077
  className: "truncate text-sm font-medium text-foreground",
6039
- children: Pr(r.name, i)
6078
+ children: Vr(r.name, i)
6040
6079
  }), /* @__PURE__ */ J("div", {
6041
6080
  className: "flex flex-wrap items-center gap-1.5",
6042
6081
  children: r.scopes.map((n) => {
@@ -6050,94 +6089,162 @@ function Fr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a })
6050
6089
  }, n);
6051
6090
  })
6052
6091
  })]
6053
- }), /* @__PURE__ */ J(kr, { dataTypes: o })]
6092
+ }), /* @__PURE__ */ J(Ar, { dataTypes: s })]
6054
6093
  }, r.id);
6055
6094
  })
6056
6095
  });
6057
6096
  }
6058
6097
  //#endregion
6059
6098
  //#region src/charts/FilterCombobox/use-filter-combobox.ts
6060
- function Ir({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o }) {
6061
- let s = W(), c = G(null), l = G(null), u = G(null), d = G(!1), f = a !== void 0, p = r !== void 0, [m, h] = K(!1), [g, _] = K(null), [v, y] = K(""), b = f ? a : m, x = p ? r : g, S = U((e) => {
6099
+ function Ur({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o }) {
6100
+ let s = G(), c = he(null), l = he(null), u = he(null), d = he(!1), f = a !== void 0, p = r !== void 0, [m, h] = K(!1), [g, _] = K(null), [v, y] = K(""), [b, x] = K(void 0), S = f ? a : m, C = p ? r : g, w = W((e) => {
6062
6101
  f ? o?.(e) : h(e);
6063
- }, [f, o]), C = U((e) => {
6102
+ }, [f, o]), T = W((e) => {
6064
6103
  p ? i?.(e) : _(e);
6065
- }, [p, i]), [w, T] = K(me(() => Object.fromEntries(t.map((e) => [e.id, !0])), [t])), E = U((e, t) => {
6066
- T((n) => ({
6104
+ }, [p, i]), [E, D] = K(me(() => Object.fromEntries(t.map((e) => [e.id, !0])), [t])), O = W((e, t) => {
6105
+ D((n) => ({
6067
6106
  ...n,
6068
6107
  [e]: t
6069
6108
  }));
6070
- }, []), D = me(() => {
6109
+ }, []), k = me(() => {
6071
6110
  let t = v.trim().toLowerCase();
6072
6111
  return t ? e.filter((e) => e.name.toLowerCase().includes(t) || e.id.toLowerCase().includes(t)) : e;
6073
- }, [e, v]), O = v.trim() === "", k = U((e) => {
6074
- d.current = !1, u.current = e, C(e), y(e.name), S(!1), n(e);
6112
+ }, [e, v]), A = v.trim() === "", j = me(() => Pr(A, k, t, E), [
6113
+ A,
6114
+ k,
6115
+ t,
6116
+ E
6117
+ ]), M = me(() => Ir(j, b), [j, b]), N = M ? Nr(s, M) : void 0, P = W(() => {
6118
+ x(void 0);
6119
+ }, []), F = W((e) => {
6120
+ x((t) => Fr(j, t, e));
6121
+ }, [j]), I = W((e) => {
6122
+ d.current = !1, u.current = e, T(e), y(e.name), P(), w(!1), n(e);
6075
6123
  }, [
6076
- C,
6077
- S,
6124
+ P,
6125
+ T,
6126
+ w,
6078
6127
  n
6079
- ]), A = U(() => {
6080
- d.current = !1, u.current = null, C(null), y(""), S(!0), n(null), l.current?.focus();
6128
+ ]), L = W(() => {
6129
+ d.current = !1, u.current = null, T(null), y(""), P(), w(!0), n(null), l.current?.focus();
6081
6130
  }, [
6082
- C,
6083
- S,
6131
+ P,
6132
+ T,
6133
+ w,
6084
6134
  n
6085
- ]), j = U((e) => {
6086
- d.current = !0, y(e.target.value), S(!0), x && C(null);
6135
+ ]), R = W((e) => {
6136
+ d.current = !0, y(e.target.value), P(), w(!0), C && T(null);
6087
6137
  }, [
6088
- x,
6138
+ P,
6089
6139
  C,
6090
- S
6091
- ]), M = U((e) => {
6092
- S(!0), e.target.select();
6093
- }, [S]), N = U((e) => {
6094
- if (e.key === "Escape" && b) {
6095
- e.preventDefault(), d.current = !1, S(!1);
6140
+ T,
6141
+ w
6142
+ ]), z = W(() => {
6143
+ w(!0);
6144
+ }, [w]), ee = W((e) => {
6145
+ x(e);
6146
+ }, []), B = W((e) => {
6147
+ e.target.select();
6148
+ }, []), te = W((e) => {
6149
+ if (e.key === "ArrowDown") {
6150
+ if (e.preventDefault(), !S) {
6151
+ w(!0), j.length > 0 && x(j[0].optionValue);
6152
+ return;
6153
+ }
6154
+ F("next");
6155
+ return;
6156
+ }
6157
+ if (e.key === "ArrowUp" && S) {
6158
+ e.preventDefault(), F("prev");
6159
+ return;
6160
+ }
6161
+ if (e.key === "Enter" && S && M) {
6162
+ let t = j.find((e) => e.optionValue === M);
6163
+ t && (e.preventDefault(), I(t.item));
6164
+ return;
6165
+ }
6166
+ if (e.key === "Escape" && S) {
6167
+ e.preventDefault(), d.current = !1, P(), w(!1);
6096
6168
  let t = u.current;
6097
6169
  y(t ? t.name : "");
6098
6170
  }
6099
- }, [b, S]);
6100
- return pe(() => {
6171
+ }, [
6172
+ P,
6173
+ I,
6174
+ M,
6175
+ S,
6176
+ F,
6177
+ j,
6178
+ w
6179
+ ]);
6180
+ return fe(() => {
6101
6181
  function e(e) {
6102
6182
  if (c.current && !c.current.contains(e.target)) {
6103
- d.current = !1, S(!1);
6183
+ d.current = !1, P(), w(!1);
6104
6184
  let e = u.current;
6105
6185
  y(e ? e.name : "");
6106
6186
  }
6107
6187
  }
6108
6188
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
6109
- }, [S]), pe(() => {
6189
+ }, [P, w]), fe(() => {
6190
+ !S || !M || document.getElementById(Nr(s, M))?.scrollIntoView({ block: "nearest" });
6191
+ }, [
6192
+ M,
6193
+ S,
6194
+ s
6195
+ ]), pe(() => {
6196
+ if (!S || !c.current) return;
6197
+ let e = c.current.querySelector("[cmdk-list]");
6198
+ e instanceof HTMLElement && (e.id = s);
6199
+ let t = c.current.querySelectorAll("[data-filter-option-value]");
6200
+ for (let e of t) {
6201
+ if (!(e instanceof HTMLElement)) continue;
6202
+ let t = e.getAttribute("data-filter-option-value");
6203
+ t && (e.id = Nr(s, t));
6204
+ }
6205
+ }, [
6206
+ S,
6207
+ s,
6208
+ k,
6209
+ A,
6210
+ E,
6211
+ b
6212
+ ]), fe(() => {
6110
6213
  !p || d.current || (r ? (u.current = r, y(r.name)) : (u.current = null, y("")));
6111
6214
  }, [p, r]), {
6112
6215
  listboxId: s,
6113
6216
  containerRef: c,
6114
6217
  inputRef: l,
6115
- isOpen: b,
6116
- isIdle: O,
6218
+ isOpen: S,
6219
+ isIdle: A,
6117
6220
  inputValue: v,
6118
- expandedScopes: w,
6119
- filteredItems: D,
6120
- toggleScope: E,
6121
- handleSelect: k,
6122
- handleClear: A,
6123
- handleInputChange: j,
6124
- handleFocus: M,
6125
- handleKeyDown: N
6221
+ highlightedOptionValue: M,
6222
+ activeDescendantId: N,
6223
+ expandedScopes: E,
6224
+ filteredItems: k,
6225
+ toggleScope: O,
6226
+ handleSelect: I,
6227
+ handleClear: L,
6228
+ handleInputChange: R,
6229
+ handleClick: z,
6230
+ handleHighlightOption: ee,
6231
+ handleFocus: B,
6232
+ handleKeyDown: te
6126
6233
  };
6127
6234
  }
6128
6235
  //#endregion
6129
6236
  //#region src/charts/FilterCombobox/FilterCombobox.tsx
6130
- function Lr({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "Search a property...", emptyMessage: o = "No results found.", listLabel: s = "Filter options", value: c, onValueChange: l, open: u, onOpenChange: d }) {
6131
- let { listboxId: f, containerRef: p, inputRef: m, isOpen: h, isIdle: g, inputValue: _, expandedScopes: v, filteredItems: y, toggleScope: b, handleSelect: x, handleClear: S, handleInputChange: C, handleFocus: w, handleKeyDown: T } = Ir({
6132
- items: r,
6133
- scopes: t,
6134
- onSelect: i,
6237
+ function Wr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "Search a property...", emptyMessage: a = "No results found.", listLabel: o = "Filter options", inputId: s, value: c, onValueChange: l, open: u, onOpenChange: d }) {
6238
+ let { listboxId: f, containerRef: p, inputRef: m, isOpen: h, isIdle: g, inputValue: _, highlightedOptionValue: v, activeDescendantId: y, expandedScopes: b, filteredItems: x, toggleScope: S, handleSelect: C, handleClear: w, handleInputChange: T, handleClick: E, handleHighlightOption: D, handleFocus: O, handleKeyDown: k } = Ur({
6239
+ items: n,
6240
+ scopes: e,
6241
+ onSelect: r,
6135
6242
  value: c,
6136
6243
  onValueChange: l,
6137
6244
  open: u,
6138
6245
  onOpenChange: d
6139
6246
  });
6140
- return /* @__PURE__ */ J(ce, {
6247
+ return /* @__PURE__ */ J(se, {
6141
6248
  delayDuration: 200,
6142
6249
  children: /* @__PURE__ */ Y("div", {
6143
6250
  "data-slot": "filter-combobox",
@@ -6146,68 +6253,66 @@ function Lr({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
6146
6253
  children: [/* @__PURE__ */ Y("div", {
6147
6254
  "data-slot": "filter-combobox-input",
6148
6255
  className: "group relative",
6149
- children: [
6150
- /* @__PURE__ */ J(dt, {
6256
+ children: [/* @__PURE__ */ J("input", {
6257
+ ref: m,
6258
+ id: s,
6259
+ type: "text",
6260
+ role: "combobox",
6261
+ "aria-expanded": h,
6262
+ "aria-controls": f,
6263
+ "aria-autocomplete": "list",
6264
+ "aria-activedescendant": y,
6265
+ value: _,
6266
+ onChange: T,
6267
+ onClick: E,
6268
+ onFocus: O,
6269
+ onKeyDown: k,
6270
+ placeholder: i,
6271
+ 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 md:text-sm dark:bg-input/30"
6272
+ }), _.length > 0 && /* @__PURE__ */ J("button", {
6273
+ type: "button",
6274
+ "aria-label": "Clear",
6275
+ onMouseDown: (e) => e.preventDefault(),
6276
+ onClick: w,
6277
+ className: "absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground transition-colors hover:text-foreground",
6278
+ children: /* @__PURE__ */ J(mt, {
6151
6279
  "aria-hidden": "true",
6152
- className: e("pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 transition-colors", h || _ ? "text-primary" : "text-muted-foreground")
6153
- }),
6154
- /* @__PURE__ */ J("input", {
6155
- ref: m,
6156
- type: "text",
6157
- role: "combobox",
6158
- "aria-expanded": h,
6159
- "aria-controls": f,
6160
- "aria-autocomplete": "list",
6161
- value: _,
6162
- onChange: C,
6163
- onFocus: w,
6164
- onKeyDown: T,
6165
- placeholder: a,
6166
- className: "flex h-10 w-full rounded-lg border border-input bg-background py-3 pr-10 pl-9 text-sm text-foreground shadow-sm transition-all outline-none hover:border-muted-foreground/30 focus:border-ring focus:ring-3 focus:ring-ring/50"
6167
- }),
6168
- _.length > 0 && /* @__PURE__ */ J("button", {
6169
- type: "button",
6170
- "aria-label": "Clear",
6171
- onMouseDown: (e) => e.preventDefault(),
6172
- onClick: S,
6173
- className: "absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground transition-colors hover:text-foreground",
6174
- children: /* @__PURE__ */ J(pt, {
6175
- "aria-hidden": "true",
6176
- className: "size-4"
6177
- })
6280
+ className: "size-4"
6178
6281
  })
6179
- ]
6282
+ })]
6180
6283
  }), h && /* @__PURE__ */ J("div", {
6181
- id: f,
6182
6284
  "data-slot": "filter-combobox-content",
6183
6285
  className: "absolute top-full left-0 z-50 mt-1.5 w-full animate-in overflow-hidden rounded-xl border border-border bg-popover shadow-lg duration-200 fade-in-0 slide-in-from-top-2",
6184
6286
  children: /* @__PURE__ */ J(L, {
6185
6287
  shouldFilter: !1,
6288
+ value: v ?? "",
6186
6289
  className: "rounded-xl",
6187
- children: /* @__PURE__ */ Y(z, {
6188
- "aria-label": s,
6189
- children: [y.length === 0 && /* @__PURE__ */ J(R, { children: /* @__PURE__ */ Y("div", {
6290
+ children: /* @__PURE__ */ Y(B, {
6291
+ "aria-label": o,
6292
+ children: [x.length === 0 && /* @__PURE__ */ J(R, { children: /* @__PURE__ */ Y("div", {
6190
6293
  className: "flex flex-col items-center justify-center space-y-2 py-4 text-muted-foreground",
6191
- children: [/* @__PURE__ */ J(dt, {
6294
+ children: [/* @__PURE__ */ J(ft, {
6192
6295
  "aria-hidden": "true",
6193
6296
  className: "size-6 opacity-20"
6194
6297
  }), /* @__PURE__ */ J("p", {
6195
6298
  className: "text-xs",
6196
- children: o
6299
+ children: a
6197
6300
  })]
6198
- }) }), g ? /* @__PURE__ */ J(Mr, {
6199
- scopes: t,
6200
- dataTypes: n,
6201
- items: y,
6202
- expandedScopes: v,
6203
- onToggleScope: b,
6204
- onSelect: x
6205
- }) : /* @__PURE__ */ J(Fr, {
6206
- scopes: t,
6207
- dataTypes: n,
6208
- items: y,
6301
+ }) }), g ? /* @__PURE__ */ J(zr, {
6302
+ scopes: e,
6303
+ dataTypes: t,
6304
+ items: x,
6305
+ expandedScopes: b,
6306
+ onToggleScope: S,
6307
+ onSelect: C,
6308
+ onHighlightOption: D
6309
+ }) : /* @__PURE__ */ J(Hr, {
6310
+ scopes: e,
6311
+ dataTypes: t,
6312
+ items: x,
6209
6313
  searchQuery: _,
6210
- onSelect: x
6314
+ onSelect: C,
6315
+ onHighlightOption: D
6211
6316
  })]
6212
6317
  })
6213
6318
  })
@@ -6216,4 +6321,4 @@ function Lr({ scopes: t, dataTypes: n, items: r, onSelect: i, placeholder: a = "
6216
6321
  });
6217
6322
  }
6218
6323
  //#endregion
6219
- export { vn as AreaChart, Ve as AreaSeries, We as BarChart, ir as BarMeter, ze as BarSeries, Sr as BreakdownChart, _r as BreakdownChartSkeleton, Tr as BreakdownLegend, Er as BreakdownLegendContent, Dr as BreakdownSummary, cr as BreakdownTooltip, dr as BreakdownTooltipContent, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, we as ChartCard, E as ChartContainer, Pe as ChartLegend, Ne as ChartLegendContent, i as ChartStyle, je as ChartTooltip, Ae as ChartTooltipContent, r as DEFAULT_MARGIN, Ye as DoughnutChart, Lr as FilterCombobox, o as Grid, _n as LineChart, Le as LineSeries, en as Metric, gn as MetricGroup, f as ReferenceLine, er as TraceWaterfall, p as ValueAxis, p as YAxis, En as buildTimeAxisTicks, e as cn, n as compactTick, xn as computeBarGeometry, bn as computeTraceDurationNs, yn as formatDurationNs, Sn as formatTracePercent, Wt as resolveSentiment, t as useChartConfig };
6324
+ export { yn as AreaChart, He as AreaSeries, Ge as BarChart, ar as BarMeter, Be as BarSeries, Cr as BreakdownChart, vr as BreakdownChartSkeleton, Er as BreakdownLegend, Dr as BreakdownLegendContent, Or as BreakdownSummary, lr as BreakdownTooltip, fr as BreakdownTooltipContent, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, Te as ChartCard, E as ChartContainer, Fe as ChartLegend, Pe as ChartLegendContent, i as ChartStyle, Me as ChartTooltip, je as ChartTooltipContent, r as DEFAULT_MARGIN, Xe as DoughnutChart, Wr as FilterCombobox, o as Grid, vn as LineChart, Re as LineSeries, tn as Metric, _n as MetricGroup, f as ReferenceLine, tr as TraceWaterfall, p as ValueAxis, p as YAxis, Dn as buildTimeAxisTicks, e as cn, n as compactTick, Sn as computeBarGeometry, xn as computeTraceDurationNs, bn as formatDurationNs, Cn as formatTracePercent, Gt as resolveSentiment, t as useChartConfig };