@speakeasy-api/moonshine 1.43.0 → 1.43.1

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.
@@ -1,16 +1,16 @@
1
- import { _ as Au, a as Lu, c as Ou, d as Du, f as $u, g as l4, h as zu, l as Bu, m as c4, n as ge, o as Fu, p as ma, r as Hu, s as ao, t as b, u as Vu } from "./utils-DnjhZJTm.mjs";
1
+ import { _ as Au, a as Lu, c as Ou, d as Du, f as $u, g as l4, h as zu, l as Bu, m as c4, n as ge, o as Fu, p as ma, r as Hu, s as ao, t as y, u as Vu } from "./utils-DnjhZJTm.mjs";
2
2
  import * as c from "react";
3
- import ee, { Children as de, Fragment as Ni, Suspense as ju, cloneElement as io, createContext as Gt, createElement as Or, forwardRef as fe, isValidElement as ce, lazy as ha, memo as Wu, useCallback as le, useContext as Kt, useEffect as re, useId as Uu, useLayoutEffect as at, useMemo as pe, useRef as se, useState as j } from "react";
4
- import { Fragment as ie, jsx as o, jsxs as x } from "react/jsx-runtime";
3
+ import Q, { Children as de, Fragment as Ni, Suspense as ju, cloneElement as io, createContext as Gt, createElement as Or, forwardRef as fe, isValidElement as ce, lazy as ha, memo as Wu, useCallback as le, useContext as Kt, useEffect as re, useId as Uu, useLayoutEffect as at, useMemo as pe, useRef as ie, useState as j } from "react";
4
+ import { Fragment as se, jsx as o, jsxs as x } from "react/jsx-runtime";
5
5
  import Si from "lucide-react/dynamicIconImports";
6
6
  import { Fit as Gu, Layout as Ku, useRive as Xu, useViewModelInstanceBoolean as Zu } from "@rive-app/react-canvas-lite";
7
7
  import { GroupedVirtuoso as Yu, Virtuoso as so } from "react-virtuoso";
8
8
  import * as Fn from "react-dom";
9
9
  import qu from "react-dom";
10
10
  import { ArrowDown as Ju, ArrowUp as Qu, ArrowUpDown as ef, Check as Hn, CheckIcon as tf, ChevronDown as Ei, ChevronRight as nf, ChevronUp as Ri, Circle as rf, Copy as of, GitPullRequest as af, GitPullRequestClosed as sf, Loader2 as lf, Merge as cf, Moon as df, Sun as uf, TerminalIcon as ff, UserCheck as pf, X as mf, XIcon as hf } from "lucide-react";
11
- import { AnimatePresence as ye, MotionConfig as vf, motion as W, useInView as gf } from "motion/react";
12
- import { codeToTokens as yf } from "shiki";
13
- import { DndContext as bf, DragOverlay as xf, useDndMonitor as ki, useDraggable as Mi, useDroppable as wf } from "@dnd-kit/core";
11
+ import { AnimatePresence as be, MotionConfig as vf, motion as W, useInView as gf } from "motion/react";
12
+ import { codeToTokens as bf } from "shiki";
13
+ import { DndContext as yf, DragOverlay as xf, useDndMonitor as ki, useDraggable as Mi, useDroppable as wf } from "@dnd-kit/core";
14
14
  import { restrictToWindowEdges as Cf } from "@dnd-kit/modifiers";
15
15
  import { CSS as Nf } from "@dnd-kit/utilities";
16
16
  import { Panel as lo, PanelGroup as Pi, PanelResizeHandle as co } from "react-resizable-panels";
@@ -33,11 +33,11 @@ var _i = (e) => `gap-${e}`, Rf = (e) => {
33
33
  }, Pf = (e) => Mf[e], _f = (e) => `grid-cols-${e}`, If = (e) => ce(e) && e.type === Ii, Tf = ({ children: e, columns: t = 1, gap: n = 0, wrap: r = !0, padding: a = 0, className: i }) => {
34
34
  const s = e.filter(If);
35
35
  return /* @__PURE__ */ o("div", {
36
- className: b("grid", ge(t, _f), ge(n, _i), !r && "grid-flow-col", ge(a, Vn), i),
36
+ className: y("grid", ge(t, _f), ge(n, _i), !r && "grid-flow-col", ge(a, Vn), i),
37
37
  children: s
38
38
  });
39
39
  }, Ii = ({ children: e, colSpan: t, padding: n, className: r, ...a }) => /* @__PURE__ */ o("div", {
40
- className: b("grid-item", t && ge(t, kf), n && ge(n, Vn), r),
40
+ className: y("grid-item", t && ge(t, kf), n && ge(n, Vn), r),
41
41
  ...a,
42
42
  children: e
43
43
  }), E4 = Object.assign(Tf, { Item: Ii });
@@ -72,13 +72,13 @@ function He({ children: e, direction: t = "vertical", gap: n = 0, padding: r = 0
72
72
  }
73
73
  };
74
74
  return /* @__PURE__ */ o("div", {
75
- className: b("flex", ge(t, (p) => p === "horizontal" ? "flex-row" : "flex-col"), ge(n, _i), ge(r, Vn), ge(s, Pf), ge(a, d), ge(i, f), l),
75
+ className: y("flex", ge(t, (p) => p === "horizontal" ? "flex-row" : "flex-col"), ge(n, _i), ge(r, Vn), ge(s, Pf), ge(a, d), ge(i, f), l),
76
76
  children: e
77
77
  });
78
78
  }
79
79
  He.Item = function({ children: t, grow: n, className: r }) {
80
80
  return /* @__PURE__ */ o("div", {
81
- className: b(ge(n ?? !1, (i) => i ? "flex-1" : "flex-initial"), r),
81
+ className: y(ge(n ?? !1, (i) => i ? "flex-1" : "flex-initial"), r),
82
82
  children: t
83
83
  });
84
84
  };
@@ -149,7 +149,7 @@ function Of(e) {
149
149
  var Li = /* @__PURE__ */ Symbol("radix.slottable");
150
150
  // @__NO_SIDE_EFFECTS__
151
151
  function Df(e) {
152
- const t = ({ children: n }) => /* @__PURE__ */ o(ie, { children: n });
152
+ const t = ({ children: n }) => /* @__PURE__ */ o(se, { children: n });
153
153
  return t.displayName = `${e}.Slottable`, t.__radixId = Li, t;
154
154
  }
155
155
  var $f = /* @__PURE__ */ Df("Slottable");
@@ -177,9 +177,9 @@ function Ff(e) {
177
177
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
178
178
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
179
179
  }
180
- var ga = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ya = Lu, qe = (e, t) => (n) => {
180
+ var ga = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ba = Lu, qe = (e, t) => (n) => {
181
181
  var r;
182
- if (t?.variants == null) return ya(e, n?.class, n?.className);
182
+ if (t?.variants == null) return ba(e, n?.class, n?.className);
183
183
  const { variants: a, defaultVariants: i } = t, s = Object.keys(a).map((d) => {
184
184
  const f = n?.[d], u = i?.[d];
185
185
  if (f === null) return null;
@@ -189,7 +189,7 @@ var ga = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ya = Lu, qe
189
189
  let [u, p] = f;
190
190
  return p === void 0 || (d[u] = p), d;
191
191
  }, {});
192
- return ya(e, s, t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
192
+ return ba(e, s, t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, f) => {
193
193
  let { class: u, className: p, ...h } = f;
194
194
  return Object.entries(h).every((m) => {
195
195
  let [g, v] = m;
@@ -219,19 +219,19 @@ var ga = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ya = Lu, qe
219
219
  }), [a, t]);
220
220
  }, uo = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
221
221
  ref: n,
222
- className: b("inline-flex shrink-0 items-center justify-center", e),
222
+ className: y("inline-flex shrink-0 items-center justify-center", e),
223
223
  ...t
224
224
  }));
225
225
  uo.displayName = "ButtonLeftIcon";
226
226
  var Oi = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
227
227
  ref: n,
228
- className: b("inline-flex shrink-0 items-center justify-center", e),
228
+ className: y("inline-flex shrink-0 items-center justify-center", e),
229
229
  ...t
230
230
  }));
231
231
  Oi.displayName = "ButtonRightIcon";
232
232
  var Di = uo, En = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
233
233
  ref: n,
234
- className: b("flex-1 text-trim-cap", e),
234
+ className: y("flex-1 text-trim-cap", e),
235
235
  ...t
236
236
  }));
237
237
  En.displayName = "ButtonText";
@@ -314,7 +314,7 @@ var jf = qe("relative inline-flex items-center justify-center whitespace-nowrap
314
314
  return !0;
315
315
  }).length > 0 && console.warn("Button: Only Button.Text, Button.LeftIcon, Button.RightIcon, and raw text should be used as children.");
316
316
  })();
317
- const y = c.useRef({
317
+ const b = c.useRef({
318
318
  target: 220,
319
319
  current: 220
320
320
  }), C = e === "brand", w = (_) => {
@@ -333,7 +333,7 @@ var jf = qe("relative inline-flex items-center justify-center whitespace-nowrap
333
333
  };
334
334
  if (Vf(c.useCallback((_, L) => {
335
335
  if (!g.current) return;
336
- const B = y.current;
336
+ const B = b.current;
337
337
  if (h && v.current) {
338
338
  const H = v.current.width / 2, $ = v.current.height / 2;
339
339
  B.target = (Math.atan2(h.y - $, h.x - H) * (180 / Math.PI) + 360) % 360;
@@ -377,14 +377,14 @@ var jf = qe("relative inline-flex items-center justify-center whitespace-nowrap
377
377
  }
378
378
  i?.(_);
379
379
  }, [C, i]), M = c.useCallback((_) => {
380
- C && (m(null), v.current = null, y.current.target = 220), s?.(_);
380
+ C && (m(null), v.current = null, b.current.target = 220), s?.(_);
381
381
  }, [C, s]), S = c.useCallback((_) => {
382
382
  l?.(_);
383
383
  }, [l]), E = c.useCallback((_) => {
384
384
  d?.(_);
385
385
  }, [d]);
386
386
  c.useEffect(() => {
387
- C && g.current && (g.current.style.setProperty("--gradient-rotation", "220deg"), Object.assign(y.current, {
387
+ C && g.current && (g.current.style.setProperty("--gradient-rotation", "220deg"), Object.assign(b.current, {
388
388
  target: 220,
389
389
  current: 220
390
390
  }));
@@ -393,7 +393,7 @@ var jf = qe("relative inline-flex items-center justify-center whitespace-nowrap
393
393
  g.current = _, typeof p == "function" ? p(_) : p && _ && (p.current = _);
394
394
  }, [p]), I = c.useMemo(() => r ? u.children : c.Children.map(u.children, (_) => typeof _ == "string" || typeof _ == "number" ? /* @__PURE__ */ o(En, { children: _ }) : _), [u.children, r]);
395
395
  return /* @__PURE__ */ o(k, {
396
- className: b(jf({
396
+ className: y(jf({
397
397
  variant: e,
398
398
  size: t,
399
399
  context: n
@@ -406,8 +406,8 @@ var jf = qe("relative inline-flex items-center justify-center whitespace-nowrap
406
406
  onMouseUp: E,
407
407
  ...r ? { isBrandVariant: C } : {},
408
408
  ...u,
409
- children: r ? I : /* @__PURE__ */ x(ie, { children: [C && /* @__PURE__ */ o("span", { className: "pointer-events-none absolute inset-0 z-10 rounded-[inherit] bg-btn-brand hover:bg-btn-brand-hover disabled:bg-btn-brand-disabled" }), /* @__PURE__ */ o("span", {
410
- className: b("relative flex items-center justify-center", w(t), C ? "z-20" : ""),
409
+ children: r ? I : /* @__PURE__ */ x(se, { children: [C && /* @__PURE__ */ o("span", { className: "pointer-events-none absolute inset-0 z-10 rounded-[inherit] bg-btn-brand hover:bg-btn-brand-hover disabled:bg-btn-brand-disabled" }), /* @__PURE__ */ o("span", {
410
+ className: y("relative flex items-center justify-center", w(t), C ? "z-20" : ""),
411
411
  children: I
412
412
  })] })
413
413
  });
@@ -432,15 +432,15 @@ var Uf = {
432
432
  lg: 1024,
433
433
  xl: 1280,
434
434
  "2xl": 1536
435
- }, ba = (e) => {
435
+ }, ya = (e) => {
436
436
  const t = Object.entries(Uf).sort((n, r) => r[1] - n[1]);
437
437
  for (const [n, r] of t) if (e >= r) return n;
438
438
  return "xs";
439
439
  }, jn = () => {
440
- const [e, t] = j(ba(window.innerWidth));
440
+ const [e, t] = j(ya(window.innerWidth));
441
441
  return at(() => {
442
442
  const n = Wf(() => {
443
- t(ba(window.innerWidth));
443
+ t(ya(window.innerWidth));
444
444
  }, 100);
445
445
  return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
446
446
  }, []), e;
@@ -470,11 +470,11 @@ var Kf = /* @__PURE__ */ o(Gf, {}), Xf = {
470
470
  large: 32,
471
471
  xl: 48,
472
472
  "2xl": 64
473
- }, br = /* @__PURE__ */ new Map();
473
+ }, yr = /* @__PURE__ */ new Map();
474
474
  function Zf(e) {
475
- if (br.has(e)) return br.get(e);
475
+ if (yr.has(e)) return yr.get(e);
476
476
  const t = Dr[e] ? ha(Dr[e]) : ha(Si[e]);
477
- return br.set(e, t), t;
477
+ return yr.set(e, t), t;
478
478
  }
479
479
  function K({ name: e, size: t = "small", ...n }) {
480
480
  const r = Zf(e), a = Xf[fo(jn(), t, "small")];
@@ -529,14 +529,14 @@ function o1({ score: e, size: t = "large", showLabel: n = !0, trackColor: r = r1
529
529
  const w = un * 2 * xa;
530
530
  return `${Math.max((100 - u) * fn - w * fn, 0)} ${zr}`;
531
531
  }
532
- }, g = () => "rotate(-90deg)", v = () => `rotate(${270 - un * xa * t1}deg) scaleY(-1)`, y = () => 1, C = () => u > 100 - un * 2 ? 0 : 1;
532
+ }, g = () => "rotate(-90deg)", v = () => `rotate(${270 - un * xa * t1}deg) scaleY(-1)`, b = () => 1, C = () => u > 100 - un * 2 ? 0 : 1;
533
533
  return /* @__PURE__ */ x("svg", {
534
534
  xmlns: "http://www.w3.org/2000/svg",
535
535
  viewBox: `0 0 ${ot} ${ot}`,
536
536
  shapeRendering: "crispEdges",
537
537
  width: wa[t],
538
538
  height: wa[t],
539
- className: b(dn.svg, l),
539
+ className: y(dn.svg, l),
540
540
  style: {
541
541
  "--stroke-width": Bi,
542
542
  "--transition-length": `${vt?.length}ms`,
@@ -566,7 +566,7 @@ function o1({ score: e, size: t = "large", showLabel: n = !0, trackColor: r = r1
566
566
  "--transition-length": `${vt?.length}ms`,
567
567
  "--delay": `${vt?.delay}ms`,
568
568
  transform: g(),
569
- opacity: y()
569
+ opacity: b()
570
570
  },
571
571
  className: dn.progress
572
572
  }),
@@ -588,7 +588,7 @@ function o1({ score: e, size: t = "large", showLabel: n = !0, trackColor: r = r1
588
588
  });
589
589
  }
590
590
  var Rn = ({ children: e, subheader: t, icon: n, rightElement: r, className: a }) => /* @__PURE__ */ x("div", {
591
- className: b("flex w-full flex-row gap-4", t ? "items-start" : "items-center", a),
591
+ className: y("flex w-full flex-row gap-4", t ? "items-start" : "items-center", a),
592
592
  children: [
593
593
  n && /* @__PURE__ */ o("div", {
594
594
  className: "flex-shrink-0 rounded-[8px] border p-2",
@@ -622,12 +622,12 @@ var Rn = ({ children: e, subheader: t, icon: n, rightElement: r, className: a })
622
622
  });
623
623
  Rn.displayName = "CardHeader";
624
624
  var po = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
625
- className: b("text-sm", t),
625
+ className: y("text-sm", t),
626
626
  children: e
627
627
  });
628
628
  po.displayName = "CardContent";
629
629
  var $t = ({ content: e, className: t }) => /* @__PURE__ */ o("div", {
630
- className: b("border-t px-6 py-4", t),
630
+ className: y("border-t px-6 py-4", t),
631
631
  children: /* @__PURE__ */ x("div", {
632
632
  className: "flex items-center text-sm text-card-foreground",
633
633
  children: [e.text, e.link && /* @__PURE__ */ o("a", {
@@ -639,19 +639,19 @@ var $t = ({ content: e, className: t }) => /* @__PURE__ */ o("div", {
639
639
  });
640
640
  $t.displayName = "CardFooter";
641
641
  var a1 = ({ children: e, onClick: t, href: n, className: r }) => {
642
- const a = de.toArray(e).filter((f) => ee.isValidElement(f) && (f.type === Rn || f.type === po || f.type === $t)), i = de.toArray(a).some((f) => ee.isValidElement(f) && f.type === Rn ? f.props.rightElement?.type === "button" : !1);
642
+ const a = de.toArray(e).filter((f) => Q.isValidElement(f) && (f.type === Rn || f.type === po || f.type === $t)), i = de.toArray(a).some((f) => Q.isValidElement(f) && f.type === Rn ? f.props.rightElement?.type === "button" : !1);
643
643
  i && (t || n) && console.warn("Card: Card-level interaction (onClick/href) will be ignored when header contains a button element. This prevents confusing UX with nested clickable elements.");
644
644
  const s = !i && !!(t || n), l = n && !i ? "a" : "div", d = i ? {} : n ? { href: n } : t ? { onClick: t } : {};
645
645
  return /* @__PURE__ */ x(l, {
646
- className: b("relative flex h-full w-full flex-col rounded-[8px] border bg-card text-card-foreground shadow", s && "cursor-pointer hover:bg-card/70", r),
646
+ className: y("relative flex h-full w-full flex-col rounded-[8px] border bg-card text-card-foreground shadow", s && "cursor-pointer hover:bg-card/70", r),
647
647
  ...d,
648
648
  children: [/* @__PURE__ */ o("div", {
649
649
  className: "p-6",
650
650
  children: /* @__PURE__ */ o(He, {
651
651
  gap: 3,
652
- children: a.map((f) => ee.isValidElement(f) && f.type === $t ? null : f)
652
+ children: a.map((f) => Q.isValidElement(f) && f.type === $t ? null : f)
653
653
  })
654
- }), a.find((f) => ee.isValidElement(f) && f.type === $t)]
654
+ }), a.find((f) => Q.isValidElement(f) && f.type === $t)]
655
655
  });
656
656
  }, R4 = Object.assign(a1, {
657
657
  Header: Rn,
@@ -662,7 +662,7 @@ function k4(e) {
662
662
  return typeof e == "string" && c1.has(e);
663
663
  }
664
664
  function mo({ orientation: e = "horizontal", className: t }) {
665
- return /* @__PURE__ */ o("div", { className: b(e === "horizontal" ? "h-[1px] w-full bg-border" : "h-full w-[1px] bg-border", t) });
665
+ return /* @__PURE__ */ o("div", { className: y(e === "horizontal" ? "h-[1px] w-full bg-border" : "h-full w-[1px] bg-border", t) });
666
666
  }
667
667
  function d1({ children: e, className: t }) {
668
668
  return /* @__PURE__ */ o("div", {
@@ -672,25 +672,25 @@ function d1({ children: e, className: t }) {
672
672
  className: "skeleton h-5 max-w-max min-w-36 rounded-lg text-transparent",
673
673
  children: n
674
674
  }, r);
675
- if (ce(n)) return io(n, { className: b("skeleton h-5 max-w-full rounded-lg text-transparent", t, n.props.className) });
675
+ if (ce(n)) return io(n, { className: y("skeleton h-5 max-w-full rounded-lg text-transparent", t, n.props.className) });
676
676
  })
677
677
  });
678
678
  }
679
679
  var ho = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
680
680
  ref: n,
681
- className: b("inline-flex shrink-0 items-center justify-center", e),
681
+ className: y("inline-flex shrink-0 items-center justify-center", e),
682
682
  ...t
683
683
  }));
684
684
  ho.displayName = "BadgeLeftIcon";
685
685
  var Hi = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
686
686
  ref: n,
687
- className: b("inline-flex shrink-0 items-center justify-center", e),
687
+ className: y("inline-flex shrink-0 items-center justify-center", e),
688
688
  ...t
689
689
  }));
690
690
  Hi.displayName = "BadgeRightIcon";
691
691
  var u1 = ho, kn = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o("span", {
692
692
  ref: n,
693
- className: b("flex-1 text-trim-cap", e),
693
+ className: y("flex-1 text-trim-cap", e),
694
694
  ...t
695
695
  }));
696
696
  kn.displayName = "BadgeText";
@@ -774,7 +774,7 @@ var f1 = qe("inline-flex items-center justify-center whitespace-nowrap select-no
774
774
  }
775
775
  const l = r ? st : "span", d = c.useMemo(() => r ? i.children : c.Children.map(i.children, (f) => typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ o(kn, { children: f }) : f), [i.children, r]);
776
776
  return /* @__PURE__ */ o(l, {
777
- className: b(f1({
777
+ className: y(f1({
778
778
  variant: e,
779
779
  size: t,
780
780
  background: n
@@ -802,11 +802,11 @@ var M4 = Object.assign(Vi, {
802
802
  md: "h3",
803
803
  sm: "h4",
804
804
  xs: "h5"
805
- }, $e = ee.forwardRef(function({ children: t, variant: n = "md", as: r = m1[n], className: a, viewTransitionName: i, ...s }, l) {
805
+ }, $e = Q.forwardRef(function({ children: t, variant: n = "md", as: r = m1[n], className: a, viewTransitionName: i, ...s }, l) {
806
806
  return /* @__PURE__ */ o(r, {
807
807
  ...s,
808
808
  ref: l,
809
- className: b(p1[n], a),
809
+ className: y(p1[n], a),
810
810
  style: { viewTransitionName: i },
811
811
  children: t
812
812
  });
@@ -822,7 +822,7 @@ var M4 = Object.assign(Vi, {
822
822
  function ae({ children: e, variant: t = "md", as: n = "span", muted: r = !1, whiteSpace: a = "normal", className: i, htmlFor: s }) {
823
823
  return /* @__PURE__ */ o(n, {
824
824
  htmlFor: s,
825
- className: b(h1[t], v1[a], r ? "text-muted" : "text-default", i),
825
+ className: y(h1[t], v1[a], r ? "text-muted" : "text-default", i),
826
826
  children: e
827
827
  });
828
828
  }
@@ -834,7 +834,7 @@ function g1({ className: e, muted: t, ...n }) {
834
834
  textRendering: "optimizeLegibility",
835
835
  viewBox: "0 0 140 24",
836
836
  preserveAspectRatio: "xMidYMid meet",
837
- className: b(t ? "text-foreground/80" : "text-foreground dark:text-primary", e),
837
+ className: y(t ? "text-foreground/80" : "text-foreground dark:text-primary", e),
838
838
  ...n,
839
839
  children: /* @__PURE__ */ x("g", {
840
840
  opacity: "1",
@@ -897,7 +897,7 @@ function g1({ className: e, muted: t, ...n }) {
897
897
  })
898
898
  });
899
899
  }
900
- function y1({ className: e, muted: t, ...n }) {
900
+ function b1({ className: e, muted: t, ...n }) {
901
901
  return /* @__PURE__ */ o("svg", {
902
902
  width: 24,
903
903
  height: 24,
@@ -906,7 +906,7 @@ function y1({ className: e, muted: t, ...n }) {
906
906
  viewBox: "0 0 24 24",
907
907
  xmlns: "http://www.w3.org/2000/svg",
908
908
  preserveAspectRatio: "xMidYMid meet",
909
- className: b(t ? "h-[24px] w-[24px] text-foreground/80" : "text-black dark:text-primary", e),
909
+ className: y(t ? "h-[24px] w-[24px] text-foreground/80" : "text-black dark:text-primary", e),
910
910
  ...n,
911
911
  children: /* @__PURE__ */ x("g", {
912
912
  clipPath: "url(#clip0)",
@@ -943,7 +943,7 @@ function Br({ variant: e, className: t, ...n }) {
943
943
  className: t
944
944
  });
945
945
  case "icon":
946
- return /* @__PURE__ */ o(y1, {
946
+ return /* @__PURE__ */ o(b1, {
947
947
  className: t,
948
948
  ...n
949
949
  });
@@ -964,7 +964,7 @@ function Wn() {
964
964
  if (!e) throw new Error("useConfig must be used within a MoonshineConfigProvider");
965
965
  return e;
966
966
  }
967
- function b1() {
967
+ function y1() {
968
968
  const { theme: e } = Wn();
969
969
  return e;
970
970
  }
@@ -979,7 +979,7 @@ var x1 = await import("./speakeasy-logo-DK-gMPWP.mjs"), w1 = qe("relative", { va
979
979
  md: "ml-2 w-[9.75rem] h-auto",
980
980
  sm: "ml-2 w-[8.75rem] h-auto"
981
981
  } } }), _4 = ({ className: e, size: t = "md", variant: n = "icon", onMouseEnter: r, onMouseLeave: a, ...i }) => {
982
- const [s, l] = j(!1), d = b1(), [f, u] = j("loop-dark"), { rive: p, RiveComponent: h } = Xu({
982
+ const [s, l] = j(!1), d = y1(), [f, u] = j("loop-dark"), { rive: p, RiveComponent: h } = Xu({
983
983
  src: x1.default,
984
984
  stateMachines: f,
985
985
  autoplay: !0,
@@ -993,7 +993,7 @@ var x1 = await import("./speakeasy-logo-DK-gMPWP.mjs"), w1 = qe("relative", { va
993
993
  }, [d]), re(() => () => {
994
994
  p?.cleanup();
995
995
  }, [p]), /* @__PURE__ */ x("div", {
996
- className: b("flex items-center", e),
996
+ className: y("flex items-center", e),
997
997
  onMouseEnter: (g) => {
998
998
  m(!0), r?.(g);
999
999
  },
@@ -1002,14 +1002,14 @@ var x1 = await import("./speakeasy-logo-DK-gMPWP.mjs"), w1 = qe("relative", { va
1002
1002
  },
1003
1003
  ...i,
1004
1004
  children: [/* @__PURE__ */ x("div", {
1005
- className: b(w1({ size: t })),
1005
+ className: y(w1({ size: t })),
1006
1006
  children: [/* @__PURE__ */ o(S1, {
1007
1007
  "aria-hidden": !0,
1008
- className: b("pointer-events-none absolute top-0 left-0 size-full scale-[0.87] transition-opacity duration-100", { "opacity-0": s })
1008
+ className: y("pointer-events-none absolute top-0 left-0 size-full scale-[0.87] transition-opacity duration-100", { "opacity-0": s })
1009
1009
  }), /* @__PURE__ */ o(h, { className: "size-full" }, f)]
1010
1010
  }), n === "icon-with-wordmark" && /* @__PURE__ */ o(N1, { size: t })]
1011
1011
  });
1012
- }, N1 = ({ size: e = "md" }) => /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o("p", {
1012
+ }, N1 = ({ size: e = "md" }) => /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o("p", {
1013
1013
  className: "sr-only",
1014
1014
  children: "Speakeasy Logo"
1015
1015
  }), /* @__PURE__ */ x("svg", {
@@ -1086,7 +1086,7 @@ var x1 = await import("./speakeasy-logo-DK-gMPWP.mjs"), w1 = qe("relative", { va
1086
1086
  });
1087
1087
  function I4({ children: e, flex: t = !1, padding: n, className: r }) {
1088
1088
  return /* @__PURE__ */ o("div", {
1089
- className: b("container h-full w-full md:mx-auto", t && "flex", n && ge(n, Vn), r),
1089
+ className: y("container h-full w-full md:mx-auto", t && "flex", n && ge(n, Vn), r),
1090
1090
  children: e
1091
1091
  });
1092
1092
  }
@@ -1133,9 +1133,9 @@ function Be(e, t = []) {
1133
1133
  const l = c.createContext(s), d = n.length;
1134
1134
  n = [...n, s];
1135
1135
  const f = (p) => {
1136
- const { scope: h, children: m, ...g } = p, v = h?.[e]?.[d] || l, y = c.useMemo(() => g, Object.values(g));
1136
+ const { scope: h, children: m, ...g } = p, v = h?.[e]?.[d] || l, b = c.useMemo(() => g, Object.values(g));
1137
1137
  return /* @__PURE__ */ o(v.Provider, {
1138
- value: y,
1138
+ value: b,
1139
1139
  children: m
1140
1140
  });
1141
1141
  };
@@ -1266,7 +1266,7 @@ function H1(e) {
1266
1266
  var Ui = /* @__PURE__ */ Symbol("radix.slottable");
1267
1267
  // @__NO_SIDE_EFFECTS__
1268
1268
  function V1(e) {
1269
- const t = ({ children: n }) => /* @__PURE__ */ o(ie, { children: n });
1269
+ const t = ({ children: n }) => /* @__PURE__ */ o(se, { children: n });
1270
1270
  return t.displayName = `${e}.Slottable`, t.__radixId = Ui, t;
1271
1271
  }
1272
1272
  function j1(e) {
@@ -1347,7 +1347,7 @@ var K1 = "DismissableLayer", Hr = "dismissableLayer.update", X1 = "dismissableLa
1347
1347
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1348
1348
  branches: /* @__PURE__ */ new Set()
1349
1349
  }), kt = c.forwardRef((e, t) => {
1350
- const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...d } = e, f = c.useContext(Ki), [u, p] = c.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, m] = c.useState({}), g = te(t, (E) => p(E)), v = Array.from(f.layers), [y] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), C = v.indexOf(y), w = u ? v.indexOf(u) : -1, N = f.layersWithOutsidePointerEventsDisabled.size > 0, R = w >= C, M = J1((E) => {
1350
+ const { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...d } = e, f = c.useContext(Ki), [u, p] = c.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, m] = c.useState({}), g = te(t, (E) => p(E)), v = Array.from(f.layers), [b] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), C = v.indexOf(b), w = u ? v.indexOf(u) : -1, N = f.layersWithOutsidePointerEventsDisabled.size > 0, R = w >= C, M = J1((E) => {
1351
1351
  const k = E.target, T = [...f.branches].some((I) => I.contains(k));
1352
1352
  !R || T || (a?.(E), s?.(E), E.defaultPrevented || l?.());
1353
1353
  }, h), S = Q1((E) => {
@@ -1462,7 +1462,7 @@ var Cr = "focusScope.autoFocusOnMount", Nr = "focusScope.autoFocusOnUnmount", Ra
1462
1462
  if (m.paused || !l) return;
1463
1463
  const R = N.target;
1464
1464
  l.contains(R) ? p.current = R : Ke(p.current, { select: !0 });
1465
- }, y = function(N) {
1465
+ }, b = function(N) {
1466
1466
  if (m.paused || !l) return;
1467
1467
  const R = N.relatedTarget;
1468
1468
  R !== null && (l.contains(R) || Ke(p.current, { select: !0 }));
@@ -1470,13 +1470,13 @@ var Cr = "focusScope.autoFocusOnMount", Nr = "focusScope.autoFocusOnUnmount", Ra
1470
1470
  if (document.activeElement === document.body)
1471
1471
  for (const R of N) R.removedNodes.length > 0 && Ke(l);
1472
1472
  };
1473
- document.addEventListener("focusin", v), document.addEventListener("focusout", y);
1473
+ document.addEventListener("focusin", v), document.addEventListener("focusout", b);
1474
1474
  const w = new MutationObserver(C);
1475
1475
  return l && w.observe(l, {
1476
1476
  childList: !0,
1477
1477
  subtree: !0
1478
1478
  }), () => {
1479
- document.removeEventListener("focusin", v), document.removeEventListener("focusout", y), w.disconnect();
1479
+ document.removeEventListener("focusin", v), document.removeEventListener("focusout", b), w.disconnect();
1480
1480
  };
1481
1481
  }
1482
1482
  }, [
@@ -1488,13 +1488,13 @@ var Cr = "focusScope.autoFocusOnMount", Nr = "focusScope.autoFocusOnUnmount", Ra
1488
1488
  Ma.add(m);
1489
1489
  const v = document.activeElement;
1490
1490
  if (!l.contains(v)) {
1491
- const y = new CustomEvent(Cr, Ra);
1492
- l.addEventListener(Cr, f), l.dispatchEvent(y), y.defaultPrevented || (tp(ip(Zi(l)), { select: !0 }), document.activeElement === v && Ke(l));
1491
+ const b = new CustomEvent(Cr, Ra);
1492
+ l.addEventListener(Cr, f), l.dispatchEvent(b), b.defaultPrevented || (tp(ip(Zi(l)), { select: !0 }), document.activeElement === v && Ke(l));
1493
1493
  }
1494
1494
  return () => {
1495
1495
  l.removeEventListener(Cr, f), setTimeout(() => {
1496
- const y = new CustomEvent(Nr, Ra);
1497
- l.addEventListener(Nr, u), l.dispatchEvent(y), y.defaultPrevented || Ke(v ?? document.body, { select: !0 }), l.removeEventListener(Nr, u), Ma.remove(m);
1496
+ const b = new CustomEvent(Nr, Ra);
1497
+ l.addEventListener(Nr, u), l.dispatchEvent(b), b.defaultPrevented || Ke(v ?? document.body, { select: !0 }), l.removeEventListener(Nr, u), Ma.remove(m);
1498
1498
  }, 0);
1499
1499
  };
1500
1500
  }
@@ -1506,8 +1506,8 @@ var Cr = "focusScope.autoFocusOnMount", Nr = "focusScope.autoFocusOnUnmount", Ra
1506
1506
  ]);
1507
1507
  const g = c.useCallback((v) => {
1508
1508
  if (!n && !r || m.paused) return;
1509
- const y = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, C = document.activeElement;
1510
- if (y && C) {
1509
+ const b = v.key === "Tab" && !v.altKey && !v.ctrlKey && !v.metaKey, C = document.activeElement;
1510
+ if (b && C) {
1511
1511
  const w = v.currentTarget, [N, R] = np(w);
1512
1512
  N && R ? !v.shiftKey && C === R ? (v.preventDefault(), n && Ke(N, { select: !0 })) : v.shiftKey && C === N && (v.preventDefault(), n && Ke(R, { select: !0 })) : C === w && v.preventDefault();
1513
1513
  }
@@ -1732,7 +1732,7 @@ function vp(e, t) {
1732
1732
  function gp(e) {
1733
1733
  return e;
1734
1734
  }
1735
- function yp(e, t) {
1735
+ function bp(e, t) {
1736
1736
  t === void 0 && (t = gp);
1737
1737
  var n = [], r = !1;
1738
1738
  return {
@@ -1786,9 +1786,9 @@ function yp(e, t) {
1786
1786
  }
1787
1787
  };
1788
1788
  }
1789
- function bp(e) {
1789
+ function yp(e) {
1790
1790
  e === void 0 && (e = {});
1791
- var t = yp(null);
1791
+ var t = bp(null);
1792
1792
  return t.options = Te({
1793
1793
  async: !0,
1794
1794
  ssr: !1
@@ -1805,13 +1805,13 @@ qi.isSideCarExport = !0;
1805
1805
  function xp(e, t) {
1806
1806
  return e.useMedium(t), qi;
1807
1807
  }
1808
- var Ji = bp(), Rr = function() {
1808
+ var Ji = yp(), Rr = function() {
1809
1809
  }, Gn = c.forwardRef(function(e, t) {
1810
1810
  var n = c.useRef(null), r = c.useState({
1811
1811
  onScrollCapture: Rr,
1812
1812
  onWheelCapture: Rr,
1813
1813
  onTouchMoveCapture: Rr
1814
- }), a = r[0], i = r[1], s = e.forwardProps, l = e.children, d = e.className, f = e.removeScrollBar, u = e.enabled, p = e.shards, h = e.sideCar, m = e.noRelative, g = e.noIsolation, v = e.inert, y = e.allowPinchZoom, C = e.as, w = C === void 0 ? "div" : C, N = e.gapMode, R = Yi(e, [
1814
+ }), a = r[0], i = r[1], s = e.forwardProps, l = e.children, d = e.className, f = e.removeScrollBar, u = e.enabled, p = e.shards, h = e.sideCar, m = e.noRelative, g = e.noIsolation, v = e.inert, b = e.allowPinchZoom, C = e.as, w = C === void 0 ? "div" : C, N = e.gapMode, R = Yi(e, [
1815
1815
  "forwardProps",
1816
1816
  "children",
1817
1817
  "className",
@@ -1834,7 +1834,7 @@ var Ji = bp(), Rr = function() {
1834
1834
  noIsolation: g,
1835
1835
  inert: v,
1836
1836
  setCallbacks: i,
1837
- allowPinchZoom: !!y,
1837
+ allowPinchZoom: !!b,
1838
1838
  lockRef: n,
1839
1839
  gapMode: N
1840
1840
  }), s ? c.cloneElement(c.Children.only(l), Te(Te({}, E), { ref: S })) : c.createElement(w, Te({}, E, {
@@ -2030,8 +2030,8 @@ var gt = Vr ? { passive: !1 } : !1, Lp = function(e) {
2030
2030
  if (!l) break;
2031
2031
  var m = ns(e, l), g = m[0], v = m[1] - m[2] - i * g;
2032
2032
  (g || v) && ts(e, l) && (p += v, h += g);
2033
- var y = l.parentNode;
2034
- l = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2033
+ var b = l.parentNode;
2034
+ l = b && b.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? b.host : b;
2035
2035
  } while (!d && l !== document.body || d && (t.contains(l) || t === l));
2036
2036
  return (u && (a && Math.abs(p) < 1 || !a && s > p) || !u && (a && Math.abs(h) < 1 || !a && -s > h)) && (f = !0), f;
2037
2037
  }, hn = function(e) {
@@ -2047,7 +2047,7 @@ var gt = Vr ? { passive: !1 } : !1, Lp = function(e) {
2047
2047
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2048
2048
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2049
2049
  `);
2050
- }, jp = 0, yt = [];
2050
+ }, jp = 0, bt = [];
2051
2051
  function Wp(e) {
2052
2052
  var t = c.useRef([]), n = c.useRef([0, 0]), r = c.useRef(), a = c.useState(jp++)[0], i = c.useState(Qi)[0], s = c.useRef(e);
2053
2053
  c.useEffect(function() {
@@ -2056,11 +2056,11 @@ function Wp(e) {
2056
2056
  if (e.inert) {
2057
2057
  document.body.classList.add("block-interactivity-".concat(a));
2058
2058
  var v = up([e.lockRef.current], (e.shards || []).map(Da), !0).filter(Boolean);
2059
- return v.forEach(function(y) {
2060
- return y.classList.add("allow-interactivity-".concat(a));
2059
+ return v.forEach(function(b) {
2060
+ return b.classList.add("allow-interactivity-".concat(a));
2061
2061
  }), function() {
2062
- document.body.classList.remove("block-interactivity-".concat(a)), v.forEach(function(y) {
2063
- return y.classList.remove("allow-interactivity-".concat(a));
2062
+ document.body.classList.remove("block-interactivity-".concat(a)), v.forEach(function(b) {
2063
+ return b.classList.remove("allow-interactivity-".concat(a));
2064
2064
  });
2065
2065
  };
2066
2066
  }
@@ -2069,7 +2069,7 @@ function Wp(e) {
2069
2069
  e.lockRef.current,
2070
2070
  e.shards
2071
2071
  ]);
2072
- var l = c.useCallback(function(v, y) {
2072
+ var l = c.useCallback(function(v, b) {
2073
2073
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey) return !s.current.allowPinchZoom;
2074
2074
  var C = hn(v), w = n.current, N = "deltaX" in v ? v.deltaX : w[0] - C[0], R = "deltaY" in v ? v.deltaY : w[1] - C[1], M, S = v.target, E = Math.abs(N) > Math.abs(R) ? "h" : "v";
2075
2075
  if ("touches" in v && E === "h" && S.type === "range") return !1;
@@ -2080,28 +2080,28 @@ function Wp(e) {
2080
2080
  if (I ? M = E : (M = E === "v" ? "h" : "v", I = La(E, S)), !I) return !1;
2081
2081
  if (!r.current && "changedTouches" in v && (N || R) && (r.current = M), !M) return !0;
2082
2082
  var _ = r.current || M;
2083
- return Fp(_, y, v, _ === "h" ? N : R, !0);
2083
+ return Fp(_, b, v, _ === "h" ? N : R, !0);
2084
2084
  }, []), d = c.useCallback(function(v) {
2085
- var y = v;
2086
- if (!(!yt.length || yt[yt.length - 1] !== i)) {
2087
- var C = "deltaY" in y ? Oa(y) : hn(y), w = t.current.filter(function(R) {
2088
- return R.name === y.type && (R.target === y.target || y.target === R.shadowParent) && Hp(R.delta, C);
2085
+ var b = v;
2086
+ if (!(!bt.length || bt[bt.length - 1] !== i)) {
2087
+ var C = "deltaY" in b ? Oa(b) : hn(b), w = t.current.filter(function(R) {
2088
+ return R.name === b.type && (R.target === b.target || b.target === R.shadowParent) && Hp(R.delta, C);
2089
2089
  })[0];
2090
2090
  if (w && w.should) {
2091
- y.cancelable && y.preventDefault();
2091
+ b.cancelable && b.preventDefault();
2092
2092
  return;
2093
2093
  }
2094
2094
  if (!w) {
2095
2095
  var N = (s.current.shards || []).map(Da).filter(Boolean).filter(function(R) {
2096
- return R.contains(y.target);
2096
+ return R.contains(b.target);
2097
2097
  });
2098
- (N.length > 0 ? l(y, N[0]) : !s.current.noIsolation) && y.cancelable && y.preventDefault();
2098
+ (N.length > 0 ? l(b, N[0]) : !s.current.noIsolation) && b.cancelable && b.preventDefault();
2099
2099
  }
2100
2100
  }
2101
- }, []), f = c.useCallback(function(v, y, C, w) {
2101
+ }, []), f = c.useCallback(function(v, b, C, w) {
2102
2102
  var N = {
2103
2103
  name: v,
2104
- delta: y,
2104
+ delta: b,
2105
2105
  target: C,
2106
2106
  should: w,
2107
2107
  shadowParent: Up(C)
@@ -2119,12 +2119,12 @@ function Wp(e) {
2119
2119
  f(v.type, hn(v), v.target, l(v, e.lockRef.current));
2120
2120
  }, []);
2121
2121
  c.useEffect(function() {
2122
- return yt.push(i), e.setCallbacks({
2122
+ return bt.push(i), e.setCallbacks({
2123
2123
  onScrollCapture: p,
2124
2124
  onWheelCapture: p,
2125
2125
  onTouchMoveCapture: h
2126
2126
  }), document.addEventListener("wheel", d, gt), document.addEventListener("touchmove", d, gt), document.addEventListener("touchstart", u, gt), function() {
2127
- yt = yt.filter(function(v) {
2127
+ bt = bt.filter(function(v) {
2128
2128
  return v !== i;
2129
2129
  }), document.removeEventListener("wheel", d, gt), document.removeEventListener("touchmove", d, gt), document.removeEventListener("touchstart", u, gt);
2130
2130
  };
@@ -2149,7 +2149,7 @@ var Gp = xp(Ji, Wp), Zt = c.forwardRef(function(e, t) {
2149
2149
  Zt.classNames = Gn.classNames;
2150
2150
  var Kp = function(e) {
2151
2151
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
2152
- }, bt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), gn = {}, Mr = 0, rs = function(e) {
2152
+ }, yt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), gn = {}, Mr = 0, rs = function(e) {
2153
2153
  return e && (e.host || rs(e.parentNode));
2154
2154
  }, Xp = function(e, t) {
2155
2155
  return t.map(function(n) {
@@ -2170,8 +2170,8 @@ var Kp = function(e) {
2170
2170
  !p || d.has(p) || Array.prototype.forEach.call(p.children, function(h) {
2171
2171
  if (l.has(h)) u(h);
2172
2172
  else try {
2173
- var m = h.getAttribute(r), g = m !== null && m !== "false", v = (bt.get(h) || 0) + 1, y = (i.get(h) || 0) + 1;
2174
- bt.set(h, v), i.set(h, y), s.push(h), v === 1 && g && vn.set(h, !0), y === 1 && h.setAttribute(n, "true"), g || h.setAttribute(r, "true");
2173
+ var m = h.getAttribute(r), g = m !== null && m !== "false", v = (yt.get(h) || 0) + 1, b = (i.get(h) || 0) + 1;
2174
+ yt.set(h, v), i.set(h, b), s.push(h), v === 1 && g && vn.set(h, !0), b === 1 && h.setAttribute(n, "true"), g || h.setAttribute(r, "true");
2175
2175
  } catch (C) {
2176
2176
  console.error("aria-hidden: cannot operate on ", h, C);
2177
2177
  }
@@ -2179,9 +2179,9 @@ var Kp = function(e) {
2179
2179
  };
2180
2180
  return u(t), l.clear(), Mr++, function() {
2181
2181
  s.forEach(function(p) {
2182
- var h = bt.get(p) - 1, m = i.get(p) - 1;
2183
- bt.set(p, h), i.set(p, m), h || (vn.has(p) || p.removeAttribute(r), vn.delete(p)), m || p.removeAttribute(n);
2184
- }), Mr--, Mr || (bt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), gn = {});
2182
+ var h = yt.get(p) - 1, m = i.get(p) - 1;
2183
+ yt.set(p, h), i.set(p, m), h || (vn.has(p) || p.removeAttribute(r), vn.delete(p)), m || p.removeAttribute(n);
2184
+ }), Mr--, Mr || (yt = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), gn = {});
2185
2185
  };
2186
2186
  }, Kn = function(e, t, n) {
2187
2187
  n === void 0 && (n = "data-aria-hidden");
@@ -2225,7 +2225,7 @@ var as = "DialogTrigger", is = c.forwardRef((e, t) => {
2225
2225
  });
2226
2226
  });
2227
2227
  is.displayName = as;
2228
- var go = "DialogPortal", [qp, ss] = os(go, { forceMount: void 0 }), yo = (e) => {
2228
+ var go = "DialogPortal", [qp, ss] = os(go, { forceMount: void 0 }), bo = (e) => {
2229
2229
  const { __scopeDialog: t, forceMount: n, children: r, container: a } = e, i = Ie(go, t);
2230
2230
  return /* @__PURE__ */ o(qp, {
2231
2231
  scope: t,
@@ -2240,8 +2240,8 @@ var go = "DialogPortal", [qp, ss] = os(go, { forceMount: void 0 }), yo = (e) =>
2240
2240
  }))
2241
2241
  });
2242
2242
  };
2243
- yo.displayName = go;
2244
- var Mn = "DialogOverlay", bo = c.forwardRef((e, t) => {
2243
+ bo.displayName = go;
2244
+ var Mn = "DialogOverlay", yo = c.forwardRef((e, t) => {
2245
2245
  const n = ss(Mn, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, i = Ie(Mn, e.__scopeDialog);
2246
2246
  return i.modal ? /* @__PURE__ */ o(Ee, {
2247
2247
  present: r || i.open,
@@ -2251,7 +2251,7 @@ var Mn = "DialogOverlay", bo = c.forwardRef((e, t) => {
2251
2251
  })
2252
2252
  }) : null;
2253
2253
  });
2254
- bo.displayName = Mn;
2254
+ yo.displayName = Mn;
2255
2255
  var Jp = /* @__PURE__ */ lt("DialogOverlay.RemoveScroll"), Qp = c.forwardRef((e, t) => {
2256
2256
  const { __scopeDialog: n, ...r } = e, a = Ie(Mn, n);
2257
2257
  return /* @__PURE__ */ o(Zt, {
@@ -2319,7 +2319,7 @@ var em = c.forwardRef((e, t) => {
2319
2319
  });
2320
2320
  }), ls = c.forwardRef((e, t) => {
2321
2321
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: i, ...s } = e, l = Ie(ct, n), d = c.useRef(null), f = te(t, d);
2322
- return Un(), /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(Xt, {
2322
+ return Un(), /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(Xt, {
2323
2323
  asChild: !0,
2324
2324
  loop: !0,
2325
2325
  trapped: r,
@@ -2335,7 +2335,7 @@ var em = c.forwardRef((e, t) => {
2335
2335
  ref: f,
2336
2336
  onDismiss: () => l.onOpenChange(!1)
2337
2337
  })
2338
- }), /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(nm, { titleId: l.titleId }), /* @__PURE__ */ o(om, {
2338
+ }), /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(nm, { titleId: l.titleId }), /* @__PURE__ */ o(om, {
2339
2339
  contentRef: d,
2340
2340
  descriptionId: l.descriptionId
2341
2341
  })] })] });
@@ -2393,7 +2393,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2393
2393
  e,
2394
2394
  t
2395
2395
  ]), null;
2396
- }, ps = vo, am = is, ms = yo, So = bo, Eo = Bt, hs = wo, vs = Co, gs = Pn, Je = [
2396
+ }, ps = vo, am = is, ms = bo, So = yo, Eo = Bt, hs = wo, vs = Co, gs = Pn, Je = [
2397
2397
  "a",
2398
2398
  "button",
2399
2399
  "div",
@@ -2423,7 +2423,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2423
2423
  ...e,
2424
2424
  [t]: r
2425
2425
  };
2426
- }, {}), Lt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', im = '[cmdk-group-heading=""]', ys = '[cmdk-item=""]', $a = `${ys}:not([aria-disabled="true"])`, jr = "cmdk-item-select", xt = "data-value", sm = (e, t, n) => A1(e, t, n), bs = c.createContext(void 0), Yt = () => c.useContext(bs), xs = c.createContext(void 0), Ro = () => c.useContext(xs), ws = c.createContext(void 0), Cs = c.forwardRef((e, t) => {
2426
+ }, {}), Lt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', im = '[cmdk-group-heading=""]', bs = '[cmdk-item=""]', $a = `${bs}:not([aria-disabled="true"])`, jr = "cmdk-item-select", xt = "data-value", sm = (e, t, n) => A1(e, t, n), ys = c.createContext(void 0), Yt = () => c.useContext(ys), xs = c.createContext(void 0), Ro = () => c.useContext(xs), ws = c.createContext(void 0), Cs = c.forwardRef((e, t) => {
2427
2427
  let n = wt(() => {
2428
2428
  var P, F;
2429
2429
  return {
@@ -2436,7 +2436,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2436
2436
  groups: /* @__PURE__ */ new Set()
2437
2437
  }
2438
2438
  };
2439
- }), r = wt(() => /* @__PURE__ */ new Set()), a = wt(() => /* @__PURE__ */ new Map()), i = wt(() => /* @__PURE__ */ new Map()), s = wt(() => /* @__PURE__ */ new Set()), l = Ns(e), { label: d, children: f, value: u, onValueChange: p, filter: h, shouldFilter: m, loop: g, disablePointerSelection: v = !1, vimBindings: y = !0, ...C } = e, w = ue(), N = ue(), R = ue(), M = c.useRef(null), S = ym();
2439
+ }), r = wt(() => /* @__PURE__ */ new Set()), a = wt(() => /* @__PURE__ */ new Map()), i = wt(() => /* @__PURE__ */ new Map()), s = wt(() => /* @__PURE__ */ new Set()), l = Ns(e), { label: d, children: f, value: u, onValueChange: p, filter: h, shouldFilter: m, loop: g, disablePointerSelection: v = !1, vimBindings: b = !0, ...C } = e, w = ue(), N = ue(), R = ue(), M = c.useRef(null), S = bm();
2440
2440
  dt(() => {
2441
2441
  if (u !== void 0) {
2442
2442
  let P = u.trim();
@@ -2449,7 +2449,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2449
2449
  subscribe: (P) => (s.current.add(P), () => s.current.delete(P)),
2450
2450
  snapshot: () => n.current,
2451
2451
  setState: (P, F, X) => {
2452
- var D, Z, A, Q;
2452
+ var D, Z, A, ee;
2453
2453
  if (!Object.is(n.current[P], F)) {
2454
2454
  if (n.current[P] = F, P === "search") L(), I(), S(1, _);
2455
2455
  else if (P === "value") {
@@ -2462,7 +2462,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2462
2462
  n.current.selectedItemId = (Y = V()) == null ? void 0 : Y.id, E.emit();
2463
2463
  }), X || S(5, B), ((Z = l.current) == null ? void 0 : Z.value) !== void 0) {
2464
2464
  let Y = F ?? "";
2465
- (Q = (A = l.current).onValueChange) == null || Q.call(A, Y);
2465
+ (ee = (A = l.current).onValueChange) == null || ee.call(A, Y);
2466
2466
  return;
2467
2467
  }
2468
2468
  }
@@ -2512,16 +2512,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2512
2512
  let P = n.current.filtered.items, F = [];
2513
2513
  n.current.filtered.groups.forEach((D) => {
2514
2514
  let Z = a.current.get(D), A = 0;
2515
- Z.forEach((Q) => {
2516
- let Y = P.get(Q);
2515
+ Z.forEach((ee) => {
2516
+ let Y = P.get(ee);
2517
2517
  A = Math.max(Y, A);
2518
2518
  }), F.push([D, A]);
2519
2519
  });
2520
2520
  let X = M.current;
2521
2521
  U().sort((D, Z) => {
2522
- var A, Q;
2522
+ var A, ee;
2523
2523
  let Y = D.getAttribute("id"), J = Z.getAttribute("id");
2524
- return ((A = P.get(J)) != null ? A : 0) - ((Q = P.get(Y)) != null ? Q : 0);
2524
+ return ((A = P.get(J)) != null ? A : 0) - ((ee = P.get(Y)) != null ? ee : 0);
2525
2525
  }).forEach((D) => {
2526
2526
  let Z = D.closest(Pr);
2527
2527
  Z ? Z.appendChild(D.parentElement === Z ? D : D.closest(`${Pr} > *`)) : X.appendChild(D.parentElement === X ? D : D.closest(`${Pr} > *`));
@@ -2544,10 +2544,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2544
2544
  n.current.filtered.groups = /* @__PURE__ */ new Set();
2545
2545
  let Z = 0;
2546
2546
  for (let A of r.current) {
2547
- let Q = T((F = (P = i.current.get(A)) == null ? void 0 : P.value) != null ? F : "", (D = (X = i.current.get(A)) == null ? void 0 : X.keywords) != null ? D : []);
2548
- n.current.filtered.items.set(A, Q), Q > 0 && Z++;
2547
+ let ee = T((F = (P = i.current.get(A)) == null ? void 0 : P.value) != null ? F : "", (D = (X = i.current.get(A)) == null ? void 0 : X.keywords) != null ? D : []);
2548
+ n.current.filtered.items.set(A, ee), ee > 0 && Z++;
2549
2549
  }
2550
- for (let [A, Q] of a.current) for (let Y of Q) if (n.current.filtered.items.get(Y) > 0) {
2550
+ for (let [A, ee] of a.current) for (let Y of ee) if (n.current.filtered.items.get(Y) > 0) {
2551
2551
  n.current.filtered.groups.add(A);
2552
2552
  break;
2553
2553
  }
@@ -2560,7 +2560,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2560
2560
  }
2561
2561
  function V() {
2562
2562
  var P;
2563
- return (P = M.current) == null ? void 0 : P.querySelector(`${ys}[aria-selected="true"]`);
2563
+ return (P = M.current) == null ? void 0 : P.querySelector(`${bs}[aria-selected="true"]`);
2564
2564
  }
2565
2565
  function U() {
2566
2566
  var P;
@@ -2572,7 +2572,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2572
2572
  }
2573
2573
  function H(P) {
2574
2574
  var F;
2575
- let X = V(), D = U(), Z = D.findIndex((Q) => Q === X), A = D[Z + P];
2575
+ let X = V(), D = U(), Z = D.findIndex((ee) => ee === X), A = D[Z + P];
2576
2576
  (F = l.current) != null && F.loop && (A = Z + P < 0 ? D[D.length - 1] : Z + P === D.length ? D[0] : D[Z + P]), A && E.setState("value", A.getAttribute(xt));
2577
2577
  }
2578
2578
  function $(P) {
@@ -2597,14 +2597,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2597
2597
  if (!(P.defaultPrevented || X)) switch (P.key) {
2598
2598
  case "n":
2599
2599
  case "j":
2600
- y && P.ctrlKey && oe(P);
2600
+ b && P.ctrlKey && oe(P);
2601
2601
  break;
2602
2602
  case "ArrowDown":
2603
2603
  oe(P);
2604
2604
  break;
2605
2605
  case "p":
2606
2606
  case "k":
2607
- y && P.ctrlKey && ne(P);
2607
+ b && P.ctrlKey && ne(P);
2608
2608
  break;
2609
2609
  case "ArrowUp":
2610
2610
  ne(P);
@@ -2630,7 +2630,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2630
2630
  htmlFor: k.inputId,
2631
2631
  id: k.labelId,
2632
2632
  style: xm
2633
- }, d), Zn(e, (P) => c.createElement(xs.Provider, { value: E }, c.createElement(bs.Provider, { value: k }, P))));
2633
+ }, d), Zn(e, (P) => c.createElement(xs.Provider, { value: E }, c.createElement(ys.Provider, { value: k }, P))));
2634
2634
  }), lm = c.forwardRef((e, t) => {
2635
2635
  var n, r;
2636
2636
  let a = ue(), i = c.useRef(null), s = c.useContext(ws), l = Yt(), d = Ns(e), f = (r = (n = d.current) == null ? void 0 : n.forceMount) != null ? r : s?.forceMount;
@@ -2658,19 +2658,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2658
2658
  p.setState("value", u.current, !0);
2659
2659
  }
2660
2660
  if (!m) return null;
2661
- let { disabled: y, value: C, onSelect: w, forceMount: N, keywords: R, ...M } = e;
2661
+ let { disabled: b, value: C, onSelect: w, forceMount: N, keywords: R, ...M } = e;
2662
2662
  return c.createElement(Je.div, {
2663
2663
  ref: De(i, t),
2664
2664
  ...M,
2665
2665
  id: a,
2666
2666
  "cmdk-item": "",
2667
2667
  role: "option",
2668
- "aria-disabled": !!y,
2668
+ "aria-disabled": !!b,
2669
2669
  "aria-selected": !!h,
2670
- "data-disabled": !!y,
2670
+ "data-disabled": !!b,
2671
2671
  "data-selected": !!h,
2672
- onPointerMove: y || l.getDisablePointerSelection() ? void 0 : v,
2673
- onClick: y ? void 0 : g
2672
+ onPointerMove: b || l.getDisablePointerSelection() ? void 0 : v,
2673
+ onClick: b ? void 0 : g
2674
2674
  }, e.children);
2675
2675
  }), cm = c.forwardRef((e, t) => {
2676
2676
  let { heading: n, children: r, forceMount: a, ...i } = e, s = ue(), l = c.useRef(null), d = c.useRef(null), f = ue(), u = Yt(), p = Xe((m) => a || u.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(s) : !0);
@@ -2791,7 +2791,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2791
2791
  "aria-valuemax": 100,
2792
2792
  "aria-label": a
2793
2793
  }, Zn(e, (s) => c.createElement("div", { "aria-hidden": !0 }, s)));
2794
- }), be = Object.assign(Cs, {
2794
+ }), ye = Object.assign(Cs, {
2795
2795
  List: fm,
2796
2796
  Item: lm,
2797
2797
  Input: um,
@@ -2844,7 +2844,7 @@ function Ss(e, t, n, r = []) {
2844
2844
  i.value(e, l, d), (s = t.current) == null || s.setAttribute(xt, l), a.current = l;
2845
2845
  }), a;
2846
2846
  }
2847
- var ym = () => {
2847
+ var bm = () => {
2848
2848
  let [e, t] = c.useState(), n = wt(() => /* @__PURE__ */ new Map());
2849
2849
  return dt(() => {
2850
2850
  n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
@@ -2852,12 +2852,12 @@ var ym = () => {
2852
2852
  n.current.set(r, a), t({});
2853
2853
  };
2854
2854
  };
2855
- function bm(e) {
2855
+ function ym(e) {
2856
2856
  let t = e.type;
2857
2857
  return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
2858
2858
  }
2859
2859
  function Zn({ asChild: e, children: t }, n) {
2860
- return e && c.isValidElement(t) ? c.cloneElement(bm(t), { ref: t.ref }, n(t.props.children)) : n(t);
2860
+ return e && c.isValidElement(t) ? c.cloneElement(ym(t), { ref: t.ref }, n(t.props.children)) : n(t);
2861
2861
  }
2862
2862
  var xm = {
2863
2863
  position: "absolute",
@@ -2871,13 +2871,13 @@ var xm = {
2871
2871
  borderWidth: "0"
2872
2872
  }, wm = am, Es = ms, Cm = gs, ko = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(So, {
2873
2873
  ref: n,
2874
- className: b("fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
2874
+ className: y("fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
2875
2875
  ...t
2876
2876
  }));
2877
2877
  ko.displayName = So.displayName;
2878
2878
  var Rs = c.forwardRef(({ className: e, children: t, closeable: n = !0, ...r }, a) => /* @__PURE__ */ x(Es, { children: [/* @__PURE__ */ o(ko, {}), /* @__PURE__ */ x(Eo, {
2879
2879
  ref: a,
2880
- className: b("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-lg", e),
2880
+ className: y("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-lg", e),
2881
2881
  ...r,
2882
2882
  children: [t, n && /* @__PURE__ */ x(gs, {
2883
2883
  className: "absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
@@ -2889,24 +2889,24 @@ var Rs = c.forwardRef(({ className: e, children: t, closeable: n = !0, ...r }, a
2889
2889
  })] }));
2890
2890
  Rs.displayName = Eo.displayName;
2891
2891
  var ks = ({ className: e, ...t }) => /* @__PURE__ */ o("div", {
2892
- className: b("flex flex-col space-y-1.5 text-center sm:text-left", e),
2892
+ className: y("flex flex-col space-y-1.5 text-center sm:text-left", e),
2893
2893
  ...t
2894
2894
  });
2895
2895
  ks.displayName = "DialogHeader";
2896
2896
  var Ms = ({ className: e, ...t }) => /* @__PURE__ */ o("div", {
2897
- className: b("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
2897
+ className: y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
2898
2898
  ...t
2899
2899
  });
2900
2900
  Ms.displayName = "DialogFooter";
2901
2901
  var Ps = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(hs, {
2902
2902
  ref: n,
2903
- className: b("text-lg leading-none font-semibold tracking-tight", e),
2903
+ className: y("text-lg leading-none font-semibold tracking-tight", e),
2904
2904
  ...t
2905
2905
  }));
2906
2906
  Ps.displayName = hs.displayName;
2907
2907
  var _s = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(vs, {
2908
2908
  ref: n,
2909
- className: b("text-sm text-muted-foreground", e),
2909
+ className: y("text-sm text-muted-foreground", e),
2910
2910
  ...t
2911
2911
  }));
2912
2912
  _s.displayName = vs.displayName;
@@ -2920,40 +2920,40 @@ var Nm = Object.assign(ps, {
2920
2920
  Footer: Ms,
2921
2921
  Title: Ps,
2922
2922
  Description: _s
2923
- }), mt = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(be, {
2923
+ }), mt = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(ye, {
2924
2924
  ref: n,
2925
- className: b("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", e),
2925
+ className: y("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", e),
2926
2926
  ...t
2927
2927
  }));
2928
- mt.displayName = be.displayName;
2928
+ mt.displayName = ye.displayName;
2929
2929
  var Mo = c.forwardRef(({ ...e }, t) => /* @__PURE__ */ x("div", {
2930
2930
  className: "flex items-center gap-2 border-b px-3",
2931
2931
  "cmdk-input-wrapper": "",
2932
- children: [/* @__PURE__ */ o(K, { name: "search" }), /* @__PURE__ */ o(be.Input, {
2932
+ children: [/* @__PURE__ */ o(K, { name: "search" }), /* @__PURE__ */ o(ye.Input, {
2933
2933
  ref: t,
2934
- className: b("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2934
+ className: y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2935
2935
  ...e
2936
2936
  })]
2937
2937
  }));
2938
- Mo.displayName = be.Input.displayName;
2939
- var Po = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(be.List, {
2938
+ Mo.displayName = ye.Input.displayName;
2939
+ var Po = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(ye.List, {
2940
2940
  ref: n,
2941
- className: b("max-h-[300px] overflow-x-hidden overflow-y-auto", e),
2941
+ className: y("max-h-[300px] overflow-x-hidden overflow-y-auto", e),
2942
2942
  ...t
2943
2943
  }));
2944
- Po.displayName = be.List.displayName;
2945
- var Is = c.forwardRef((e, t) => /* @__PURE__ */ o(be.Empty, {
2944
+ Po.displayName = ye.List.displayName;
2945
+ var Is = c.forwardRef((e, t) => /* @__PURE__ */ o(ye.Empty, {
2946
2946
  ref: t,
2947
2947
  className: "py-6 text-center text-sm",
2948
2948
  ...e
2949
2949
  }));
2950
- Is.displayName = be.Empty.displayName;
2951
- var _n = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(be.Group, {
2950
+ Is.displayName = ye.Empty.displayName;
2951
+ var _n = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(ye.Group, {
2952
2952
  ref: n,
2953
- className: b("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
2953
+ className: y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
2954
2954
  ...t
2955
2955
  }));
2956
- _n.displayName = be.Group.displayName;
2956
+ _n.displayName = ye.Group.displayName;
2957
2957
  var O4 = ({ children: e, ...t }) => /* @__PURE__ */ o(Nm, {
2958
2958
  ...t,
2959
2959
  children: /* @__PURE__ */ o(Bt, {
@@ -2963,20 +2963,20 @@ var O4 = ({ children: e, ...t }) => /* @__PURE__ */ o(Nm, {
2963
2963
  children: e
2964
2964
  })
2965
2965
  })
2966
- }), Sm = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(be.Separator, {
2966
+ }), Sm = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(ye.Separator, {
2967
2967
  ref: n,
2968
- className: b("-mx-1 h-px bg-border", e),
2968
+ className: y("-mx-1 h-px bg-border", e),
2969
2969
  ...t
2970
2970
  }));
2971
- Sm.displayName = be.Separator.displayName;
2972
- var we = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(be.Item, {
2971
+ Sm.displayName = ye.Separator.displayName;
2972
+ var we = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(ye.Item, {
2973
2973
  ref: n,
2974
- className: b("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", e),
2974
+ className: y("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", e),
2975
2975
  ...t
2976
2976
  }));
2977
- we.displayName = be.Item.displayName;
2977
+ we.displayName = ye.Item.displayName;
2978
2978
  var Em = ({ className: e, ...t }) => /* @__PURE__ */ o("span", {
2979
- className: b("ml-auto text-xs tracking-widest text-muted-foreground", e),
2979
+ className: y("ml-auto text-xs tracking-widest text-muted-foreground", e),
2980
2980
  ...t
2981
2981
  });
2982
2982
  Em.displayName = "CommandShortcut";
@@ -2985,7 +2985,7 @@ var Rm = [
2985
2985
  "right",
2986
2986
  "bottom",
2987
2987
  "left"
2988
- ], Ze = Math.min, xe = Math.max, In = Math.round, yn = Math.floor, Oe = (e) => ({
2988
+ ], Ze = Math.min, xe = Math.max, In = Math.round, bn = Math.floor, Oe = (e) => ({
2989
2989
  x: e,
2990
2990
  y: e
2991
2991
  }), km = {
@@ -3143,7 +3143,7 @@ var $m = async (e, t, n) => {
3143
3143
  strategy: a
3144
3144
  }), { x: u, y: p } = Fa(f, r, d), h = r, m = {}, g = 0;
3145
3145
  for (let v = 0; v < l.length; v++) {
3146
- const { name: y, fn: C } = l[v], { x: w, y: N, data: R, reset: M } = await C({
3146
+ const { name: b, fn: C } = l[v], { x: w, y: N, data: R, reset: M } = await C({
3147
3147
  x: u,
3148
3148
  y: p,
3149
3149
  initialPlacement: r,
@@ -3159,8 +3159,8 @@ var $m = async (e, t, n) => {
3159
3159
  });
3160
3160
  u = w ?? u, p = N ?? p, m = {
3161
3161
  ...m,
3162
- [y]: {
3163
- ...m[y],
3162
+ [b]: {
3163
+ ...m[b],
3164
3164
  ...R
3165
3165
  }
3166
3166
  }, M && g <= 50 && (g++, typeof M == "object" && (M.placement && (h = M.placement), M.rects && (f = M.rects === !0 ? await s.getElementRects({
@@ -3180,7 +3180,7 @@ var $m = async (e, t, n) => {
3180
3180
  async function Ft(e, t) {
3181
3181
  var n;
3182
3182
  t === void 0 && (t = {});
3183
- const { x: r, y: a, platform: i, rects: s, elements: l, strategy: d } = e, { boundary: f = "clippingAncestors", rootBoundary: u = "viewport", elementContext: p = "floating", altBoundary: h = !1, padding: m = 0 } = We(t, e), g = Ts(m), v = l[h ? p === "floating" ? "reference" : "floating" : p], y = An(await i.getClippingRect({
3183
+ const { x: r, y: a, platform: i, rects: s, elements: l, strategy: d } = e, { boundary: f = "clippingAncestors", rootBoundary: u = "viewport", elementContext: p = "floating", altBoundary: h = !1, padding: m = 0 } = We(t, e), g = Ts(m), v = l[h ? p === "floating" ? "reference" : "floating" : p], b = An(await i.getClippingRect({
3184
3184
  element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
3185
3185
  boundary: f,
3186
3186
  rootBoundary: u,
@@ -3203,10 +3203,10 @@ async function Ft(e, t) {
3203
3203
  strategy: d
3204
3204
  }) : C);
3205
3205
  return {
3206
- top: (y.top - R.top + g.top) / N.y,
3207
- bottom: (R.bottom - y.bottom + g.bottom) / N.y,
3208
- left: (y.left - R.left + g.left) / N.x,
3209
- right: (R.right - y.right + g.right) / N.x
3206
+ top: (b.top - R.top + g.top) / N.y,
3207
+ bottom: (R.bottom - b.bottom + g.bottom) / N.y,
3208
+ left: (b.left - R.left + g.left) / N.x,
3209
+ right: (R.right - b.right + g.right) / N.x
3210
3210
  };
3211
3211
  }
3212
3212
  var zm = (e) => ({
@@ -3218,7 +3218,7 @@ var zm = (e) => ({
3218
3218
  const p = Ts(u), h = {
3219
3219
  x: n,
3220
3220
  y: r
3221
- }, m = To(a), g = Io(m), v = await s.getDimensions(f), y = m === "y", C = y ? "top" : "left", w = y ? "bottom" : "right", N = y ? "clientHeight" : "clientWidth", R = i.reference[g] + i.reference[m] - h[m] - i.floating[g], M = h[m] - i.reference[m], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
3221
+ }, m = To(a), g = Io(m), v = await s.getDimensions(f), b = m === "y", C = b ? "top" : "left", w = b ? "bottom" : "right", N = b ? "clientHeight" : "clientWidth", R = i.reference[g] + i.reference[m] - h[m] - i.floating[g], M = h[m] - i.reference[m], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
3222
3222
  let E = S ? S[N] : 0;
3223
3223
  (!E || !await (s.isElement == null ? void 0 : s.isElement(S))) && (E = l.floating[N] || i.floating[g]);
3224
3224
  const k = R / 2 - M / 2, T = E / 2 - v[g] / 2 - 1, I = Ze(p[C], T), _ = Ze(p[w], T), L = I, B = E - v[g] - _, V = E / 2 - v[g] / 2 + k, U = Wr(L, V, B), G = !d.arrow && Pt(a) != null && V !== U && i.reference[g] / 2 - (V < L ? I : _) - v[g] / 2 < 0, H = G ? V < L ? V - L : V - B : 0;
@@ -3238,11 +3238,11 @@ var zm = (e) => ({
3238
3238
  options: e,
3239
3239
  async fn(t) {
3240
3240
  var n, r;
3241
- const { placement: a, middlewareData: i, rects: s, initialPlacement: l, platform: d, elements: f } = t, { mainAxis: u = !0, crossAxis: p = !0, fallbackPlacements: h, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: g = "none", flipAlignment: v = !0, ...y } = We(e, t);
3241
+ const { placement: a, middlewareData: i, rects: s, initialPlacement: l, platform: d, elements: f } = t, { mainAxis: u = !0, crossAxis: p = !0, fallbackPlacements: h, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: g = "none", flipAlignment: v = !0, ...b } = We(e, t);
3242
3242
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
3243
3243
  const C = Ue(a), w = Le(l), N = Ue(l) === l, R = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), M = h || (N || !v ? [Tn(l)] : Im(l)), S = g !== "none";
3244
3244
  !h && S && M.push(...Om(l, v, g, R));
3245
- const E = [l, ...M], k = await Ft(t, y), T = [];
3245
+ const E = [l, ...M], k = await Ft(t, b), T = [];
3246
3246
  let I = ((r = i.flip) == null ? void 0 : r.overflows) || [];
3247
3247
  if (u && T.push(k[C]), p) {
3248
3248
  const V = _m(a, s, R);
@@ -3371,8 +3371,8 @@ var Vm = function(e) {
3371
3371
  name: "shift",
3372
3372
  options: e,
3373
3373
  async fn(t) {
3374
- const { x: n, y: r, placement: a } = t, { mainAxis: i = !0, crossAxis: s = !1, limiter: l = { fn: (y) => {
3375
- let { x: C, y: w } = y;
3374
+ const { x: n, y: r, placement: a } = t, { mainAxis: i = !0, crossAxis: s = !1, limiter: l = { fn: (b) => {
3375
+ let { x: C, y: w } = b;
3376
3376
  return {
3377
3377
  x: C,
3378
3378
  y: w
@@ -3383,11 +3383,11 @@ var Vm = function(e) {
3383
3383
  }, u = await Ft(t, d), p = Le(Ue(a)), h = _o(p);
3384
3384
  let m = f[h], g = f[p];
3385
3385
  if (i) {
3386
- const y = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right", w = m + u[y], N = m - u[C];
3386
+ const b = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right", w = m + u[b], N = m - u[C];
3387
3387
  m = Wr(w, m, N);
3388
3388
  }
3389
3389
  if (s) {
3390
- const y = p === "y" ? "top" : "left", C = p === "y" ? "bottom" : "right", w = g + u[y], N = g - u[C];
3390
+ const b = p === "y" ? "top" : "left", C = p === "y" ? "bottom" : "right", w = g + u[b], N = g - u[C];
3391
3391
  g = Wr(w, g, N);
3392
3392
  }
3393
3393
  const v = l.fn({
@@ -3417,7 +3417,7 @@ var Vm = function(e) {
3417
3417
  y: r
3418
3418
  }, p = Le(a), h = _o(p);
3419
3419
  let m = u[h], g = u[p];
3420
- const v = We(l, t), y = typeof v == "number" ? {
3420
+ const v = We(l, t), b = typeof v == "number" ? {
3421
3421
  mainAxis: v,
3422
3422
  crossAxis: 0
3423
3423
  } : {
@@ -3426,12 +3426,12 @@ var Vm = function(e) {
3426
3426
  ...v
3427
3427
  };
3428
3428
  if (d) {
3429
- const N = h === "y" ? "height" : "width", R = i.reference[h] - i.floating[N] + y.mainAxis, M = i.reference[h] + i.reference[N] - y.mainAxis;
3429
+ const N = h === "y" ? "height" : "width", R = i.reference[h] - i.floating[N] + b.mainAxis, M = i.reference[h] + i.reference[N] - b.mainAxis;
3430
3430
  m < R ? m = R : m > M && (m = M);
3431
3431
  }
3432
3432
  if (f) {
3433
3433
  var C, w;
3434
- const N = h === "y" ? "width" : "height", R = As.has(Ue(a)), M = i.reference[p] - i.floating[N] + (R && ((C = s.offset) == null ? void 0 : C[p]) || 0) + (R ? 0 : y.crossAxis), S = i.reference[p] + i.reference[N] + (R ? 0 : ((w = s.offset) == null ? void 0 : w[p]) || 0) - (R ? y.crossAxis : 0);
3434
+ const N = h === "y" ? "width" : "height", R = As.has(Ue(a)), M = i.reference[p] - i.floating[N] + (R && ((C = s.offset) == null ? void 0 : C[p]) || 0) + (R ? 0 : b.crossAxis), S = i.reference[p] + i.reference[N] + (R ? 0 : ((w = s.offset) == null ? void 0 : w[p]) || 0) - (R ? b.crossAxis : 0);
3435
3435
  g < M ? g = M : g > S && (g = S);
3436
3436
  }
3437
3437
  return {
@@ -3448,9 +3448,9 @@ var Vm = function(e) {
3448
3448
  var n, r;
3449
3449
  const { placement: a, rects: i, platform: s, elements: l } = t, { apply: d = () => {
3450
3450
  }, ...f } = We(e, t), u = await Ft(t, f), p = Ue(a), h = Pt(a), m = Le(a) === "y", { width: g, height: v } = i.floating;
3451
- let y, C;
3452
- p === "top" || p === "bottom" ? (y = p, C = h === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (C = p, y = h === "end" ? "top" : "bottom");
3453
- const w = v - u.top - u.bottom, N = g - u.left - u.right, R = Ze(v - u[y], w), M = Ze(g - u[C], N), S = !t.middlewareData.shift;
3451
+ let b, C;
3452
+ p === "top" || p === "bottom" ? (b = p, C = h === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (C = p, b = h === "end" ? "top" : "bottom");
3453
+ const w = v - u.top - u.bottom, N = g - u.left - u.right, R = Ze(v - u[b], w), M = Ze(g - u[C], N), S = !t.middlewareData.shift;
3454
3454
  let E = R, k = M;
3455
3455
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = N), (r = t.middlewareData.shift) != null && r.enabled.y && (E = w), S && !h) {
3456
3456
  const I = xe(u.left, 0), _ = xe(u.right, 0), L = xe(u.top, 0), B = xe(u.bottom, 0);
@@ -3637,8 +3637,8 @@ function ut(e, t, n, r) {
3637
3637
  const h = Ce(i), m = r && Pe(r) ? Ce(r) : r;
3638
3638
  let g = h, v = Gr(g);
3639
3639
  for (; v && r && m !== g; ) {
3640
- const y = Ct(v), C = v.getBoundingClientRect(), w = _e(v), N = C.left + (v.clientLeft + parseFloat(w.paddingLeft)) * y.x, R = C.top + (v.clientTop + parseFloat(w.paddingTop)) * y.y;
3641
- d *= y.x, f *= y.y, u *= y.x, p *= y.y, d += N, f += R, g = Ce(v), v = Gr(g);
3640
+ const b = Ct(v), C = v.getBoundingClientRect(), w = _e(v), N = C.left + (v.clientLeft + parseFloat(w.paddingLeft)) * b.x, R = C.top + (v.clientTop + parseFloat(w.paddingTop)) * b.y;
3641
+ d *= b.x, f *= b.y, u *= b.x, p *= b.y, d += N, f += R, g = Ce(v), v = Gr(g);
3642
3642
  }
3643
3643
  }
3644
3644
  return An({
@@ -3866,8 +3866,8 @@ function v0(e, t) {
3866
3866
  l === void 0 && (l = !1), d === void 0 && (d = 1), i();
3867
3867
  const f = e.getBoundingClientRect(), { left: u, top: p, width: h, height: m } = f;
3868
3868
  if (l || t(), !h || !m) return;
3869
- const g = yn(p), v = yn(a.clientWidth - (u + h)), y = yn(a.clientHeight - (p + m)), C = yn(u), w = {
3870
- rootMargin: -g + "px " + -v + "px " + -y + "px " + -C + "px",
3869
+ const g = bn(p), v = bn(a.clientWidth - (u + h)), b = bn(a.clientHeight - (p + m)), C = bn(u), w = {
3870
+ rootMargin: -g + "px " + -v + "px " + -b + "px " + -C + "px",
3871
3871
  threshold: xe(0, Ze(1, d)) || 1
3872
3872
  };
3873
3873
  let N = !0;
@@ -3909,10 +3909,10 @@ function g0(e, t, n, r) {
3909
3909
  })), n();
3910
3910
  }), f && !d && m.observe(f), m.observe(t));
3911
3911
  let g, v = d ? ut(e) : null;
3912
- d && y();
3913
- function y() {
3912
+ d && b();
3913
+ function b() {
3914
3914
  const C = ut(e);
3915
- v && !Hs(v, C) && n(), v = C, g = requestAnimationFrame(y);
3915
+ v && !Hs(v, C) && n(), v = C, g = requestAnimationFrame(b);
3916
3916
  }
3917
3917
  return n(), () => {
3918
3918
  var C;
@@ -3921,7 +3921,7 @@ function g0(e, t, n, r) {
3921
3921
  }), p?.(), (C = m) == null || C.disconnect(), m = null, d && cancelAnimationFrame(g);
3922
3922
  };
3923
3923
  }
3924
- var y0 = Vm, b0 = jm, x0 = Bm, w0 = Um, C0 = Fm, Ka = zm, N0 = Wm, S0 = (e, t, n) => {
3924
+ var b0 = Vm, y0 = jm, x0 = Bm, w0 = Um, C0 = Fm, Ka = zm, N0 = Wm, S0 = (e, t, n) => {
3925
3925
  const r = /* @__PURE__ */ new Map(), a = {
3926
3926
  platform: h0,
3927
3927
  ...n
@@ -3981,11 +3981,11 @@ function E0(e) {
3981
3981
  isPositioned: !1
3982
3982
  }), [h, m] = c.useState(r);
3983
3983
  Ln(h, r) || m(r);
3984
- const [g, v] = c.useState(null), [y, C] = c.useState(null), w = c.useCallback(($) => {
3984
+ const [g, v] = c.useState(null), [b, C] = c.useState(null), w = c.useCallback(($) => {
3985
3985
  $ !== S.current && (S.current = $, v($));
3986
3986
  }, []), N = c.useCallback(($) => {
3987
3987
  $ !== E.current && (E.current = $, C($));
3988
- }, []), R = i || g, M = s || y, S = c.useRef(null), E = c.useRef(null), k = c.useRef(u), T = d != null, I = Ir(d), _ = Ir(a), L = Ir(f), B = c.useCallback(() => {
3988
+ }, []), R = i || g, M = s || b, S = c.useRef(null), E = c.useRef(null), k = c.useRef(u), T = d != null, I = Ir(d), _ = Ir(a), L = Ir(f), B = c.useCallback(() => {
3989
3989
  if (!S.current || !E.current) return;
3990
3990
  const $ = {
3991
3991
  placement: t,
@@ -4094,10 +4094,10 @@ var R0 = (e) => {
4094
4094
  }
4095
4095
  };
4096
4096
  }, k0 = (e, t) => ({
4097
- ...y0(e),
4097
+ ...b0(e),
4098
4098
  options: [e, t]
4099
4099
  }), M0 = (e, t) => ({
4100
- ...b0(e),
4100
+ ...y0(e),
4101
4101
  options: [e, t]
4102
4102
  }), P0 = (e, t) => ({
4103
4103
  ...N0(e),
@@ -4176,7 +4176,7 @@ var Xs = "PopperAnchor", Zs = c.forwardRef((e, t) => {
4176
4176
  });
4177
4177
  Zs.displayName = Xs;
4178
4178
  var $o = "PopperContent", [$0, z0] = Us($o), Ys = c.forwardRef((e, t) => {
4179
- const { __scopePopper: n, side: r = "bottom", sideOffset: a = 0, align: i = "center", alignOffset: s = 0, arrowPadding: l = 0, avoidCollisions: d = !0, collisionBoundary: f = [], collisionPadding: u = 0, sticky: p = "partial", hideWhenDetached: h = !1, updatePositionStrategy: m = "optimized", onPlaced: g, ...v } = e, y = Gs($o, n), [C, w] = c.useState(null), N = te(t, (A) => w(A)), [R, M] = c.useState(null), S = Ws(R), E = S?.width ?? 0, k = S?.height ?? 0, T = r + (i !== "center" ? "-" + i : ""), I = typeof u == "number" ? u : {
4179
+ const { __scopePopper: n, side: r = "bottom", sideOffset: a = 0, align: i = "center", alignOffset: s = 0, arrowPadding: l = 0, avoidCollisions: d = !0, collisionBoundary: f = [], collisionPadding: u = 0, sticky: p = "partial", hideWhenDetached: h = !1, updatePositionStrategy: m = "optimized", onPlaced: g, ...v } = e, b = Gs($o, n), [C, w] = c.useState(null), N = te(t, (A) => w(A)), [R, M] = c.useState(null), S = Ws(R), E = S?.width ?? 0, k = S?.height ?? 0, T = r + (i !== "center" ? "-" + i : ""), I = typeof u == "number" ? u : {
4180
4180
  top: 0,
4181
4181
  right: 0,
4182
4182
  bottom: 0,
@@ -4190,7 +4190,7 @@ var $o = "PopperContent", [$0, z0] = Us($o), Ys = c.forwardRef((e, t) => {
4190
4190
  strategy: "fixed",
4191
4191
  placement: T,
4192
4192
  whileElementsMounted: (...A) => g0(...A, { animationFrame: m === "always" }),
4193
- elements: { reference: y.anchor },
4193
+ elements: { reference: b.anchor },
4194
4194
  middleware: [
4195
4195
  k0({
4196
4196
  mainAxis: a + k,
@@ -4205,8 +4205,8 @@ var $o = "PopperContent", [$0, z0] = Us($o), Ys = c.forwardRef((e, t) => {
4205
4205
  d && _0({ ...B }),
4206
4206
  I0({
4207
4207
  ...B,
4208
- apply: ({ elements: A, rects: Q, availableWidth: Y, availableHeight: J }) => {
4209
- const { width: Ne, height: ve } = Q.reference, Ge = A.floating.style;
4208
+ apply: ({ elements: A, rects: ee, availableWidth: Y, availableHeight: J }) => {
4209
+ const { width: Ne, height: ve } = ee.reference, Ge = A.floating.style;
4210
4210
  Ge.setProperty("--radix-popper-available-width", `${Y}px`), Ge.setProperty("--radix-popper-available-height", `${J}px`), Ge.setProperty("--radix-popper-anchor-width", `${Ne}px`), Ge.setProperty("--radix-popper-anchor-height", `${ve}px`);
4211
4211
  }
4212
4212
  }),
@@ -4509,7 +4509,7 @@ var q0 = tl, J0 = rl, Q0 = al, ul = il, fl = sl, Bo = q0, Fo = Q0, $4 = J0, z4 =
4509
4509
  ref: a,
4510
4510
  align: t,
4511
4511
  sideOffset: n,
4512
- className: b("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
4512
+ className: y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
4513
4513
  ...r
4514
4514
  }) }));
4515
4515
  rr.displayName = fl.displayName;
@@ -4520,7 +4520,7 @@ var eh = { heights: {
4520
4520
  max: 300
4521
4521
  } };
4522
4522
  function B4({ options: e, groups: t, value: n, onValueChange: r, variant: a = "secondary", size: i = "md", disabled: s, loading: l, error: d, errorText: f = "An error occurred", searchable: u = !0, placeholder: p = "Select option...", emptyText: h = "No option found.", searchPlaceholder: m = "Search...", iconOnly: g = !1, createOptions: v }) {
4523
- const [y, C] = c.useState(!1), [w, N] = c.useState(""), R = c.useMemo(() => e || (t ? t.flatMap((T) => T.options) : []), [e, t]), M = c.useMemo(() => {
4523
+ const [b, C] = c.useState(!1), [w, N] = c.useState(""), R = c.useMemo(() => e || (t ? t.flatMap((T) => T.options) : []), [e, t]), M = c.useMemo(() => {
4524
4524
  const T = t || (e ? [{
4525
4525
  label: "",
4526
4526
  options: e
@@ -4540,7 +4540,7 @@ function B4({ options: e, groups: t, value: n, onValueChange: r, variant: a = "s
4540
4540
  r?.(T === n ? void 0 : T), C(!1), N("");
4541
4541
  }, [n, r]), k = R.find((T) => T.value === n);
4542
4542
  return /* @__PURE__ */ x(Bo, {
4543
- open: y,
4543
+ open: b,
4544
4544
  onOpenChange: s ? void 0 : C,
4545
4545
  children: [/* @__PURE__ */ o(Fo, {
4546
4546
  asChild: !0,
@@ -4548,7 +4548,7 @@ function B4({ options: e, groups: t, value: n, onValueChange: r, variant: a = "s
4548
4548
  variant: a,
4549
4549
  size: i,
4550
4550
  disabled: s,
4551
- "aria-expanded": y,
4551
+ "aria-expanded": b,
4552
4552
  children: [l ? /* @__PURE__ */ o("div", {
4553
4553
  className: "h-4 w-4 animate-spin",
4554
4554
  children: /* @__PURE__ */ o(K, { name: "loader-circle" })
@@ -4581,7 +4581,7 @@ function B4({ options: e, groups: t, value: n, onValueChange: r, variant: a = "s
4581
4581
  onSelect: () => E(_.value),
4582
4582
  disabled: _.disabled,
4583
4583
  children: [/* @__PURE__ */ o("div", {
4584
- className: b("mr-2 h-4 w-4", n === _.value ? "opacity-100" : "opacity-0"),
4584
+ className: y("mr-2 h-4 w-4", n === _.value ? "opacity-100" : "opacity-0"),
4585
4585
  children: /* @__PURE__ */ o(K, { name: "check" })
4586
4586
  }), _.label]
4587
4587
  }, _.value))
@@ -4718,7 +4718,7 @@ var th = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4718
4718
  fill: "currentColor",
4719
4719
  d: "M125.54 26.23a28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.81 21.81 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.47 78.47 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.47 78.47 0 00.79-7.83V34.06a39.32 39.32 0 00-.8-7.83zm-18.79 75.54C101 91 90.37 94.33 85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.71 32.71 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.6 12.63 7.67 26.02 6.35 23.49z"
4720
4720
  })]
4721
- }), yh = fe(gh), bh = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4721
+ }), bh = fe(gh), yh = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4722
4722
  xmlns: "http://www.w3.org/2000/svg",
4723
4723
  viewBox: "0 0 128 128",
4724
4724
  ref: r,
@@ -4731,7 +4731,7 @@ var th = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4731
4731
  fill: "currentColor",
4732
4732
  d: "m35.971 111.33 81.958 11.188c-9.374-15.606-18.507-30.813-27.713-46.144Zm89.71-86.383L93.513 73.339c-.462.696-1.061 1.248-.41 2.321 8.016 13.237 15.969 26.513 23.942 39.777 1.258 2.095 2.53 4.182 4.157 6.192l4.834-96.58zM16.252 66.22c.375.355 1.311.562 1.747.347 7.689-3.779 15.427-7.474 22.948-11.564 2.453-1.333 4.339-3.723 6.452-5.661 6.997-6.417 13.983-12.847 20.966-19.278.427-.395.933-.777 1.188-1.275 2.508-4.902 4.973-9.829 7.525-14.898-3.043-1.144-5.928-2.263-8.849-3.281-.396-.138-1.02.136-1.449.375-6.761 3.777-13.649 7.353-20.195 11.472-3.275 2.061-5.943 5.098-8.843 7.743-4.674 4.266-9.342 8.542-13.948 12.882a24.011 24.011 0 0 0-3.288 3.854c-3.15 4.587-6.206 9.24-9.402 14.025 1.786 1.847 3.41 3.613 5.148 5.259zm28.102-6.271-11.556 48.823 54.3-34.987zm76.631-34.846-46.15 7.71 15.662 38.096zM44.996 56.644l41.892 13.6c-5.25-12.79-10.32-25.133-15.495-37.737ZM16.831 75.643 2.169 110.691l27.925-.825Zm13.593 26.096.346-.076c3.353-13.941 6.754-27.786 10.177-42.272L18.544 71.035c3.819 9.926 7.891 20.397 11.88 30.704zm84.927-78.897c-4.459-1.181-8.918-2.366-13.379-3.539-6.412-1.686-12.829-3.351-19.237-5.052-.801-.213-1.38-.352-1.851.613-2.265 4.64-4.6 9.245-6.901 13.868-.071.143-.056.328-.111.687l41.47-6.285zM89.482 12.288l36.343 10.054-6.005-17.11-30.285 6.715ZM33.505 114.007c-4.501-.519-9.122-.042-13.687.037-3.75.063-7.5.206-11.25.323-.386.012-.771.09-1.156.506 31.003 2.866 62.005 5.732 93.007 8.6l.063-.414-29.815-4.07c-12.384-1.691-24.747-3.551-37.162-4.982ZM2.782 99.994c3.995-9.27 7.973-18.546 11.984-27.809.401-.929.37-1.56-.415-2.308-1.678-1.597-3.237-3.318-5.071-5.226-2.479 12.24-4.897 24.177-7.317 36.113l.271.127c.185-.297.411-.578.548-.897zm78.74-90.153c6.737-1.738 13.572-3.097 20.367-4.613.44-.099.87-.244 1.303-.368l-.067-.332-29.194 3.928c2.741 1.197 4.853 2.091 7.591 1.385z"
4733
4733
  })]
4734
- }), xh = fe(bh), wh = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4734
+ }), xh = fe(yh), wh = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4735
4735
  viewBox: "0 0 128 128",
4736
4736
  xmlns: "http://www.w3.org/2000/svg",
4737
4737
  ref: r,
@@ -4782,7 +4782,7 @@ var th = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4782
4782
  terraform: fh,
4783
4783
  unity: mh,
4784
4784
  php: vh,
4785
- swift: yh,
4785
+ swift: bh,
4786
4786
  ruby: xh,
4787
4787
  postman: Ch,
4788
4788
  json: Sh
@@ -4790,7 +4790,7 @@ var th = ({ title: e, titleId: t, ...n }, r) => /* @__PURE__ */ x("svg", {
4790
4790
  function F4({ language: e, size: t = "medium", className: n }) {
4791
4791
  const r = Eh[e];
4792
4792
  return /* @__PURE__ */ o("div", {
4793
- className: b("flex items-center justify-center rounded-lg border bg-background/50 p-2", n),
4793
+ className: y("flex items-center justify-center rounded-lg border bg-background/50 p-2", n),
4794
4794
  style: {
4795
4795
  width: Za[t],
4796
4796
  height: Za[t]
@@ -4817,12 +4817,14 @@ var Ho = {
4817
4817
  "bg-pink-500"
4818
4818
  ];
4819
4819
  function Rh(e) {
4820
- return e ? qa[(e[0].toLowerCase().charCodeAt(0) - 97) % qa.length] : "bg-gray-900";
4820
+ if (!e) return "bg-gray-900";
4821
+ const t = e[0].toLowerCase().charCodeAt(0) - 97;
4822
+ return qa[Math.abs(t) % qa.length];
4821
4823
  }
4822
4824
  function Kr({ name: e, imageUrl: t, size: n = "medium", border: r = !1, className: a }) {
4823
4825
  const i = Ho[fo(jn(), n, "medium")], s = !!t;
4824
4826
  return /* @__PURE__ */ o("div", {
4825
- className: b("flex items-center justify-center overflow-hidden rounded-full bg-gray-200", ge(n, pl), !s && Rh(e), r && "border-2 border-background", a),
4827
+ className: y("flex items-center justify-center overflow-hidden rounded-full bg-gray-200", ge(n, pl), !s && Rh(e), r && "border-2 border-background", a),
4826
4828
  children: s ? /* @__PURE__ */ o("img", {
4827
4829
  src: t,
4828
4830
  alt: e,
@@ -4867,7 +4869,7 @@ var Ja = {
4867
4869
  ],
4868
4870
  duration: 0.2
4869
4871
  }, Mh = (e, t) => {
4870
- const n = se(void 0);
4872
+ const n = ie(void 0);
4871
4873
  return re(() => () => {
4872
4874
  n.current && clearTimeout(n.current);
4873
4875
  }, []), le(() => {
@@ -4875,13 +4877,13 @@ var Ja = {
4875
4877
  }, [e, t]);
4876
4878
  };
4877
4879
  function H4({ items: e, renderItem: t, className: n }) {
4878
- const [r, a] = j(e.find((k) => k.active)?.href ?? null), [i, s] = j(null), [l, d] = j(0), [f, u] = j(null), [p, h] = j(null), m = se(/* @__PURE__ */ new Map()), g = se(null), v = se(!1), y = se(!1);
4880
+ const [r, a] = j(e.find((k) => k.active)?.href ?? null), [i, s] = j(null), [l, d] = j(0), [f, u] = j(null), [p, h] = j(null), m = ie(/* @__PURE__ */ new Map()), g = ie(null), v = ie(!1), b = ie(!1);
4879
4881
  at(() => {
4880
4882
  a(e.find((k) => k.active)?.href ?? e[0]?.href);
4881
4883
  }, [e]), at(() => {
4882
- if (!y.current && r) {
4884
+ if (!b.current && r) {
4883
4885
  const k = m.current.get(r);
4884
- k && (d(k.offsetWidth), y.current = !0);
4886
+ k && (d(k.offsetWidth), b.current = !0);
4885
4887
  }
4886
4888
  }, [r]), at(() => {
4887
4889
  if (!r || !l) {
@@ -4943,11 +4945,11 @@ function H4({ items: e, renderItem: t, className: n }) {
4943
4945
  onMouseLeave: () => M(null)
4944
4946
  }), [w, M]);
4945
4947
  return /* @__PURE__ */ x("div", {
4946
- className: b("relative flex items-center", n),
4948
+ className: y("relative flex items-center", n),
4947
4949
  onMouseEnter: N,
4948
4950
  onMouseLeave: R,
4949
4951
  children: [
4950
- /* @__PURE__ */ o(ye, { children: p && l > 0 && /* @__PURE__ */ o(W.div, {
4952
+ /* @__PURE__ */ o(be, { children: p && l > 0 && /* @__PURE__ */ o(W.div, {
4951
4953
  className: "absolute inset-y-0 my-auto h-[calc(100%-10px)] rounded-xs bg-surface-secondary-default",
4952
4954
  style: {
4953
4955
  width: l,
@@ -5000,7 +5002,7 @@ function H4({ items: e, renderItem: t, className: n }) {
5000
5002
  var Ph = Wu(fe(function({ item: t, isActive: n, isHovered: r, handlers: a, renderItem: i }, s) {
5001
5003
  return /* @__PURE__ */ o(W.div, {
5002
5004
  ref: s,
5003
- className: b("relative z-10 cursor-pointer text-default select-none", n && "font-semibold text-highlight"),
5005
+ className: y("relative z-10 cursor-pointer text-default select-none", n && "font-semibold text-highlight"),
5004
5006
  ...a,
5005
5007
  children: i({
5006
5008
  ...t,
@@ -5012,7 +5014,7 @@ async function hl(e, t, n = Vo) {
5012
5014
  const r = Ah(e), a = Ih(t) ? _h(t) : t;
5013
5015
  try {
5014
5016
  return {
5015
- lines: (await yf(r, {
5017
+ lines: (await bf(r, {
5016
5018
  lang: a,
5017
5019
  theme: n
5018
5020
  })).tokens.map((i) => ({ tokens: i.map((s) => ({
@@ -5113,15 +5115,15 @@ function Ah(e) {
5113
5115
  }
5114
5116
  var jo = fe(({ code: e, showLineNumbers: t = !1, wordWrap: n = !1, className: r, ...a }, i) => /* @__PURE__ */ o("pre", {
5115
5117
  ref: i,
5116
- className: b("inline-block font-mono outline-none", n && "whitespace-pre-wrap", r),
5118
+ className: y("inline-block font-mono outline-none", n && "whitespace-pre-wrap", r),
5117
5119
  ...a,
5118
5120
  children: /* @__PURE__ */ o("code", { children: e.lines.map((s, l) => /* @__PURE__ */ x("div", {
5119
- className: b("flex flex-row", n && "flex-wrap"),
5121
+ className: y("flex flex-row", n && "flex-wrap"),
5120
5122
  children: [t && /* @__PURE__ */ o("span", {
5121
5123
  className: "pr-3 text-body-muted select-none",
5122
5124
  children: l + 1
5123
5125
  }), /* @__PURE__ */ o("span", {
5124
- className: b("inline-block", n && "flex-1"),
5126
+ className: y("inline-block", n && "flex-1"),
5125
5127
  children: s.tokens.map((d, f) => /* @__PURE__ */ o("span", {
5126
5128
  style: {
5127
5129
  color: d.color,
@@ -5154,7 +5156,7 @@ var Oh = {
5154
5156
  }
5155
5157
  };
5156
5158
  function Dh({ code: e, copyable: t = !1, language: n, promptSymbol: r, inline: a = !1, fontSize: i = "medium", onSelectOrCopy: s, shimmer: l = !1, className: d, snippetClassName: f, showLineNumbers: u = !1 }) {
5157
- const [p, h] = j(!1), [m, g] = j(0), v = se(null);
5159
+ const [p, h] = j(!1), [m, g] = j(0), v = ie(null);
5158
5160
  re(() => {
5159
5161
  const M = () => {
5160
5162
  if (v.current) {
@@ -5166,7 +5168,7 @@ function Dh({ code: e, copyable: t = !1, language: n, promptSymbol: r, inline: a
5166
5168
  const S = new ResizeObserver(M);
5167
5169
  return v.current && S.observe(v.current), () => S.disconnect();
5168
5170
  }, []);
5169
- const [y, C] = j(void 0), w = e.split(`
5171
+ const [b, C] = j(void 0), w = e.split(`
5170
5172
  `).length > 1, { theme: N } = Wn();
5171
5173
  re(() => {
5172
5174
  n && hl(e, n, N === "dark" ? ml : Vo).then((M) => {
@@ -5178,13 +5180,13 @@ function Dh({ code: e, copyable: t = !1, language: n, promptSymbol: r, inline: a
5178
5180
  N
5179
5181
  ]);
5180
5182
  const R = le(() => {
5181
- h(!0), navigator.clipboard.writeText(y?.code ?? e), setTimeout(() => {
5183
+ h(!0), navigator.clipboard.writeText(b?.code ?? e), setTimeout(() => {
5182
5184
  h(!1), s?.();
5183
5185
  }, 1e3);
5184
- }, [y?.code, e]);
5186
+ }, [b?.code, e]);
5185
5187
  return /* @__PURE__ */ o("div", {
5186
5188
  "data-theme": N,
5187
- className: b("snippet relative box-border flex w-full overflow-hidden rounded-lg border border-muted bg-card", a && "inline-flex", l && "shimmer", d),
5189
+ className: y("snippet relative box-border flex w-full overflow-hidden rounded-lg border border-muted bg-card", a && "inline-flex", l && "shimmer", d),
5188
5190
  style: { "--width": `${m}px` },
5189
5191
  ref: v,
5190
5192
  children: /* @__PURE__ */ x("div", {
@@ -5194,21 +5196,21 @@ function Dh({ code: e, copyable: t = !1, language: n, promptSymbol: r, inline: a
5194
5196
  className: "self-center font-mono font-light text-body select-none",
5195
5197
  children: r ?? "$"
5196
5198
  }),
5197
- y && /* @__PURE__ */ o(jo, {
5198
- code: y,
5199
+ b && /* @__PURE__ */ o(jo, {
5200
+ code: b,
5199
5201
  onClick: s,
5200
- className: b("highlighted-code inline-flex w-fit self-center font-mono outline-none", Oh[i], w && "min-w-32", f),
5202
+ className: y("highlighted-code inline-flex w-fit self-center font-mono outline-none", Oh[i], w && "min-w-32", f),
5201
5203
  onBeforeInput: Lh,
5202
5204
  showLineNumbers: u
5203
5205
  }),
5204
5206
  t && /* @__PURE__ */ o("div", {
5205
- className: b("mr-1 ml-auto flex self-center text-white", w && "mt-1 h-4 w-6 self-start"),
5207
+ className: y("mr-1 ml-auto flex self-center text-white", w && "mt-1 h-4 w-6 self-start"),
5206
5208
  children: /* @__PURE__ */ o("button", {
5207
5209
  role: "button",
5208
5210
  "aria-label": "copy",
5209
5211
  className: "relative ml-2 border-none bg-transparent outline-none",
5210
5212
  onClick: R,
5211
- children: /* @__PURE__ */ o(ye, {
5213
+ children: /* @__PURE__ */ o(be, {
5212
5214
  mode: "wait",
5213
5215
  initial: !1,
5214
5216
  children: p ? /* @__PURE__ */ o(W.span, {
@@ -5243,26 +5245,26 @@ function Wo(e) {
5243
5245
  collectionRef: { current: null },
5244
5246
  itemMap: /* @__PURE__ */ new Map()
5245
5247
  }), s = (v) => {
5246
- const { scope: y, children: C } = v, w = ee.useRef(null), N = ee.useRef(/* @__PURE__ */ new Map()).current;
5248
+ const { scope: b, children: C } = v, w = Q.useRef(null), N = Q.useRef(/* @__PURE__ */ new Map()).current;
5247
5249
  return /* @__PURE__ */ o(a, {
5248
- scope: y,
5250
+ scope: b,
5249
5251
  itemMap: N,
5250
5252
  collectionRef: w,
5251
5253
  children: C
5252
5254
  });
5253
5255
  };
5254
5256
  s.displayName = t;
5255
- const l = e + "CollectionSlot", d = /* @__PURE__ */ lt(l), f = ee.forwardRef((v, y) => {
5257
+ const l = e + "CollectionSlot", d = /* @__PURE__ */ lt(l), f = Q.forwardRef((v, b) => {
5256
5258
  const { scope: C, children: w } = v;
5257
5259
  return /* @__PURE__ */ o(d, {
5258
- ref: te(y, i(l, C).collectionRef),
5260
+ ref: te(b, i(l, C).collectionRef),
5259
5261
  children: w
5260
5262
  });
5261
5263
  });
5262
5264
  f.displayName = l;
5263
- const u = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ lt(u), m = ee.forwardRef((v, y) => {
5264
- const { scope: C, children: w, ...N } = v, R = ee.useRef(null), M = te(y, R), S = i(u, C);
5265
- return ee.useEffect(() => (S.itemMap.set(R, {
5265
+ const u = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ lt(u), m = Q.forwardRef((v, b) => {
5266
+ const { scope: C, children: w, ...N } = v, R = Q.useRef(null), M = te(b, R), S = i(u, C);
5267
+ return Q.useEffect(() => (S.itemMap.set(R, {
5266
5268
  ref: R,
5267
5269
  ...N
5268
5270
  }), () => {
@@ -5275,13 +5277,13 @@ function Wo(e) {
5275
5277
  });
5276
5278
  m.displayName = u;
5277
5279
  function g(v) {
5278
- const y = i(e + "CollectionConsumer", v);
5279
- return ee.useCallback(() => {
5280
- const C = y.collectionRef.current;
5280
+ const b = i(e + "CollectionConsumer", v);
5281
+ return Q.useCallback(() => {
5282
+ const C = b.collectionRef.current;
5281
5283
  if (!C) return [];
5282
5284
  const w = Array.from(C.querySelectorAll(`[${p}]`));
5283
- return Array.from(y.itemMap.values()).sort((N, R) => w.indexOf(N.ref.current) - w.indexOf(R.ref.current));
5284
- }, [y.collectionRef, y.itemMap]);
5285
+ return Array.from(b.itemMap.values()).sort((N, R) => w.indexOf(N.ref.current) - w.indexOf(R.ref.current));
5286
+ }, [b.collectionRef, b.itemMap]);
5285
5287
  }
5286
5288
  return [
5287
5289
  {
@@ -5301,7 +5303,7 @@ function Uo(e) {
5301
5303
  var Tr = "rovingFocusGroup.onEntryFocus", zh = {
5302
5304
  bubbles: !1,
5303
5305
  cancelable: !0
5304
- }, tn = "RovingFocusGroup", [Xr, vl, Bh] = Wo(tn), [Fh, gl] = Be(tn, [Bh]), [Hh, Vh] = Fh(tn), yl = c.forwardRef((e, t) => /* @__PURE__ */ o(Xr.Provider, {
5306
+ }, tn = "RovingFocusGroup", [Xr, vl, Bh] = Wo(tn), [Fh, gl] = Be(tn, [Bh]), [Hh, Vh] = Fh(tn), bl = c.forwardRef((e, t) => /* @__PURE__ */ o(Xr.Provider, {
5305
5307
  scope: e.__scopeRovingFocusGroup,
5306
5308
  children: /* @__PURE__ */ o(Xr.Slot, {
5307
5309
  scope: e.__scopeRovingFocusGroup,
@@ -5311,9 +5313,9 @@ var Tr = "rovingFocusGroup.onEntryFocus", zh = {
5311
5313
  })
5312
5314
  })
5313
5315
  }));
5314
- yl.displayName = tn;
5316
+ bl.displayName = tn;
5315
5317
  var jh = c.forwardRef((e, t) => {
5316
- const { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: i, currentTabStopId: s, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: d, onEntryFocus: f, preventScrollOnEntryFocus: u = !1, ...p } = e, h = c.useRef(null), m = te(t, h), g = Uo(i), [v, y] = je({
5318
+ const { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: i, currentTabStopId: s, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: d, onEntryFocus: f, preventScrollOnEntryFocus: u = !1, ...p } = e, h = c.useRef(null), m = te(t, h), g = Uo(i), [v, b] = je({
5317
5319
  prop: s,
5318
5320
  defaultProp: l ?? null,
5319
5321
  onChange: d,
@@ -5329,7 +5331,7 @@ var jh = c.forwardRef((e, t) => {
5329
5331
  dir: g,
5330
5332
  loop: a,
5331
5333
  currentTabStopId: v,
5332
- onItemFocus: c.useCallback((k) => y(k), [y]),
5334
+ onItemFocus: c.useCallback((k) => b(k), [b]),
5333
5335
  onItemShiftTab: c.useCallback(() => w(!0), []),
5334
5336
  onFocusableItemAdd: c.useCallback(() => E((k) => k + 1), []),
5335
5337
  onFocusableItemRemove: c.useCallback(() => E((k) => k - 1), []),
@@ -5363,8 +5365,8 @@ var jh = c.forwardRef((e, t) => {
5363
5365
  onBlur: z(e.onBlur, () => w(!1))
5364
5366
  })
5365
5367
  });
5366
- }), bl = "RovingFocusGroupItem", xl = c.forwardRef((e, t) => {
5367
- const { __scopeRovingFocusGroup: n, focusable: r = !0, active: a = !1, tabStopId: i, children: s, ...l } = e, d = ue(), f = i || d, u = Vh(bl, n), p = u.currentTabStopId === f, h = vl(n), { onFocusableItemAdd: m, onFocusableItemRemove: g, currentTabStopId: v } = u;
5368
+ }), yl = "RovingFocusGroupItem", xl = c.forwardRef((e, t) => {
5369
+ const { __scopeRovingFocusGroup: n, focusable: r = !0, active: a = !1, tabStopId: i, children: s, ...l } = e, d = ue(), f = i || d, u = Vh(yl, n), p = u.currentTabStopId === f, h = vl(n), { onFocusableItemAdd: m, onFocusableItemRemove: g, currentTabStopId: v } = u;
5368
5370
  return c.useEffect(() => {
5369
5371
  if (r)
5370
5372
  return m(), () => g();
@@ -5382,25 +5384,25 @@ var jh = c.forwardRef((e, t) => {
5382
5384
  "data-orientation": u.orientation,
5383
5385
  ...l,
5384
5386
  ref: t,
5385
- onMouseDown: z(e.onMouseDown, (y) => {
5386
- r ? u.onItemFocus(f) : y.preventDefault();
5387
+ onMouseDown: z(e.onMouseDown, (b) => {
5388
+ r ? u.onItemFocus(f) : b.preventDefault();
5387
5389
  }),
5388
5390
  onFocus: z(e.onFocus, () => u.onItemFocus(f)),
5389
- onKeyDown: z(e.onKeyDown, (y) => {
5390
- if (y.key === "Tab" && y.shiftKey) {
5391
+ onKeyDown: z(e.onKeyDown, (b) => {
5392
+ if (b.key === "Tab" && b.shiftKey) {
5391
5393
  u.onItemShiftTab();
5392
5394
  return;
5393
5395
  }
5394
- if (y.target !== y.currentTarget) return;
5395
- const C = Gh(y, u.orientation, u.dir);
5396
+ if (b.target !== b.currentTarget) return;
5397
+ const C = Gh(b, u.orientation, u.dir);
5396
5398
  if (C !== void 0) {
5397
- if (y.metaKey || y.ctrlKey || y.altKey || y.shiftKey) return;
5398
- y.preventDefault();
5399
+ if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
5400
+ b.preventDefault();
5399
5401
  let w = h().filter((N) => N.focusable).map((N) => N.ref.current);
5400
5402
  if (C === "last") w.reverse();
5401
5403
  else if (C === "prev" || C === "next") {
5402
5404
  C === "prev" && w.reverse();
5403
- const N = w.indexOf(y.currentTarget);
5405
+ const N = w.indexOf(b.currentTarget);
5404
5406
  w = u.loop ? Kh(w, N + 1) : w.slice(N + 1);
5405
5407
  }
5406
5408
  setTimeout(() => wl(w));
@@ -5413,7 +5415,7 @@ var jh = c.forwardRef((e, t) => {
5413
5415
  })
5414
5416
  });
5415
5417
  });
5416
- xl.displayName = bl;
5418
+ xl.displayName = yl;
5417
5419
  var Wh = {
5418
5420
  ArrowLeft: "prev",
5419
5421
  ArrowUp: "prev",
@@ -5440,7 +5442,7 @@ function wl(e, t = !1) {
5440
5442
  function Kh(e, t) {
5441
5443
  return e.map((n, r) => e[(t + r) % e.length]);
5442
5444
  }
5443
- var Xh = yl, Zh = xl, Zr = ["Enter", " "], Yh = [
5445
+ var Xh = bl, Zh = xl, Zr = ["Enter", " "], Yh = [
5444
5446
  "ArrowDown",
5445
5447
  "PageUp",
5446
5448
  "Home"
@@ -5561,7 +5563,7 @@ var Se = "MenuContent", [a2, Xo] = ht(Se), Pl = c.forwardRef((e, t) => {
5561
5563
  onDismiss: () => n.onOpenChange(!1)
5562
5564
  });
5563
5565
  }), l2 = /* @__PURE__ */ lt("MenuContent.ScrollLock"), Zo = c.forwardRef((e, t) => {
5564
- const { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: l, onEntryFocus: d, onEscapeKeyDown: f, onPointerDownOutside: u, onFocusOutside: p, onInteractOutside: h, onDismiss: m, disableOutsideScroll: g, ...v } = e, y = tt(Se, n), C = on(Se, n), w = rn(n), N = Sl(n), R = e2(n), [M, S] = c.useState(null), E = c.useRef(null), k = te(t, E, y.onContentChange), T = c.useRef(0), I = c.useRef(""), _ = c.useRef(0), L = c.useRef(null), B = c.useRef("right"), V = c.useRef(0), U = g ? Zt : c.Fragment, G = g ? {
5566
+ const { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: l, onEntryFocus: d, onEscapeKeyDown: f, onPointerDownOutside: u, onFocusOutside: p, onInteractOutside: h, onDismiss: m, disableOutsideScroll: g, ...v } = e, b = tt(Se, n), C = on(Se, n), w = rn(n), N = Sl(n), R = e2(n), [M, S] = c.useState(null), E = c.useRef(null), k = te(t, E, b.onContentChange), T = c.useRef(0), I = c.useRef(""), _ = c.useRef(0), L = c.useRef(null), B = c.useRef("right"), V = c.useRef(0), U = g ? Zt : c.Fragment, G = g ? {
5565
5567
  as: l2,
5566
5568
  allowPinchZoom: !0
5567
5569
  } : void 0, H = (O) => {
@@ -5620,7 +5622,7 @@ var Se = "MenuContent", [a2, Xo] = ht(Se), Pl = c.forwardRef((e, t) => {
5620
5622
  children: /* @__PURE__ */ o(er, {
5621
5623
  role: "menu",
5622
5624
  "aria-orientation": "vertical",
5623
- "data-state": Gl(y.open),
5625
+ "data-state": Gl(b.open),
5624
5626
  "data-radix-menu-content": "",
5625
5627
  dir: C.dir,
5626
5628
  ...w,
@@ -5637,7 +5639,7 @@ var Se = "MenuContent", [a2, Xo] = ht(Se), Pl = c.forwardRef((e, t) => {
5637
5639
  if (O.target !== F || !qh.includes(O.key)) return;
5638
5640
  O.preventDefault();
5639
5641
  const X = R().filter((D) => !D.disabled).map((D) => D.ref.current);
5640
- Cl.includes(O.key) && X.reverse(), y2(X);
5642
+ Cl.includes(O.key) && X.reverse(), b2(X);
5641
5643
  }),
5642
5644
  onBlur: z(e.onBlur, (O) => {
5643
5645
  O.currentTarget.contains(O.target) || (window.clearTimeout(T.current), I.current = "");
@@ -5863,7 +5865,7 @@ var Ot = "MenuSubTrigger", jl = c.forwardRef((e, t) => {
5863
5865
  u();
5864
5866
  const h = n.content?.getBoundingClientRect();
5865
5867
  if (h) {
5866
- const m = n.content?.dataset.side, g = m === "right", v = g ? -5 : 5, y = h[g ? "left" : "right"], C = h[g ? "right" : "left"];
5868
+ const m = n.content?.dataset.side, g = m === "right", v = g ? -5 : 5, b = h[g ? "left" : "right"], C = h[g ? "right" : "left"];
5867
5869
  i.onPointerGraceIntentChange({
5868
5870
  area: [
5869
5871
  {
@@ -5871,7 +5873,7 @@ var Ot = "MenuSubTrigger", jl = c.forwardRef((e, t) => {
5871
5873
  y: p.clientY
5872
5874
  },
5873
5875
  {
5874
- x: y,
5876
+ x: b,
5875
5877
  y: h.top
5876
5878
  },
5877
5879
  {
@@ -5883,7 +5885,7 @@ var Ot = "MenuSubTrigger", jl = c.forwardRef((e, t) => {
5883
5885
  y: h.bottom
5884
5886
  },
5885
5887
  {
5886
- x: y,
5888
+ x: b,
5887
5889
  y: h.bottom
5888
5890
  }
5889
5891
  ],
@@ -5949,17 +5951,17 @@ function Dn(e) {
5949
5951
  function Qo(e) {
5950
5952
  return Dn(e) ? "indeterminate" : e ? "checked" : "unchecked";
5951
5953
  }
5952
- function y2(e) {
5954
+ function b2(e) {
5953
5955
  const t = document.activeElement;
5954
5956
  for (const n of e)
5955
5957
  if (n === t || (n.focus(), document.activeElement !== t)) return;
5956
5958
  }
5957
- function b2(e, t) {
5959
+ function y2(e, t) {
5958
5960
  return e.map((n, r) => e[(t + r) % e.length]);
5959
5961
  }
5960
5962
  function x2(e, t, n) {
5961
5963
  const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
5962
- let i = b2(e, Math.max(a, 0));
5964
+ let i = y2(e, Math.max(a, 0));
5963
5965
  r.length === 1 && (i = i.filter((l) => l !== n));
5964
5966
  const s = i.find((l) => l.toLowerCase().startsWith(r.toLowerCase()));
5965
5967
  return s !== n ? s : void 0;
@@ -6193,35 +6195,35 @@ var ev = "DropdownMenuSubContent", cc = c.forwardRef((e, t) => {
6193
6195
  });
6194
6196
  });
6195
6197
  cc.displayName = ev;
6196
- var tv = Xl, nv = Yl, dc = ql, uc = Ql, rv = ec, fc = tc, pc = nc, mc = rc, ov = oc, hc = ac, vc = ic, gc = sc, av = J2, yc = lc, bc = cc, iv = tv, sv = nv, j4 = rv, W4 = dc, U4 = av, G4 = ov, lv = c.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ x(yc, {
6198
+ var tv = Xl, nv = Yl, dc = ql, uc = Ql, rv = ec, fc = tc, pc = nc, mc = rc, ov = oc, hc = ac, vc = ic, gc = sc, av = J2, bc = lc, yc = cc, iv = tv, sv = nv, j4 = rv, W4 = dc, U4 = av, G4 = ov, lv = c.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ x(bc, {
6197
6199
  ref: a,
6198
- className: b("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e),
6200
+ className: y("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", t && "pl-8", e),
6199
6201
  ...r,
6200
6202
  children: [n, /* @__PURE__ */ o(nf, { className: "ml-auto" })]
6201
6203
  }));
6202
- lv.displayName = yc.displayName;
6203
- var cv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(bc, {
6204
+ lv.displayName = bc.displayName;
6205
+ var cv = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(yc, {
6204
6206
  ref: n,
6205
- className: b("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
6207
+ className: y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
6206
6208
  ...t
6207
6209
  }));
6208
- cv.displayName = bc.displayName;
6210
+ cv.displayName = yc.displayName;
6209
6211
  var xc = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o(dc, { children: /* @__PURE__ */ o(uc, {
6210
6212
  ref: r,
6211
6213
  sideOffset: t,
6212
- className: b("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
6214
+ className: y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
6213
6215
  ...n
6214
6216
  }) }));
6215
6217
  xc.displayName = uc.displayName;
6216
6218
  var wc = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o(pc, {
6217
6219
  ref: r,
6218
- className: b("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", t && "pl-8", e),
6220
+ className: y("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", t && "pl-8", e),
6219
6221
  ...n
6220
6222
  }));
6221
6223
  wc.displayName = pc.displayName;
6222
6224
  var dv = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ x(mc, {
6223
6225
  ref: a,
6224
- className: b("relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
6226
+ className: y("relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
6225
6227
  checked: n,
6226
6228
  ...r,
6227
6229
  children: [/* @__PURE__ */ o("span", {
@@ -6232,7 +6234,7 @@ var dv = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /*
6232
6234
  dv.displayName = mc.displayName;
6233
6235
  var uv = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ x(hc, {
6234
6236
  ref: r,
6235
- className: b("relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
6237
+ className: y("relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
6236
6238
  ...n,
6237
6239
  children: [/* @__PURE__ */ o("span", {
6238
6240
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
@@ -6242,23 +6244,23 @@ var uv = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
6242
6244
  uv.displayName = hc.displayName;
6243
6245
  var fv = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o(fc, {
6244
6246
  ref: r,
6245
- className: b("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
6247
+ className: y("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
6246
6248
  ...n
6247
6249
  }));
6248
6250
  fv.displayName = fc.displayName;
6249
6251
  var Cc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(gc, {
6250
6252
  ref: n,
6251
- className: b("-mx-1 my-1 h-px bg-muted", e),
6253
+ className: y("-mx-1 my-1 h-px bg-muted", e),
6252
6254
  ...t
6253
6255
  }));
6254
6256
  Cc.displayName = gc.displayName;
6255
6257
  var pv = ({ className: e, ...t }) => /* @__PURE__ */ o("span", {
6256
- className: b("ml-auto text-xs tracking-widest opacity-60", e),
6258
+ className: y("ml-auto text-xs tracking-widest opacity-60", e),
6257
6259
  ...t
6258
6260
  });
6259
6261
  pv.displayName = "DropdownMenuShortcut";
6260
6262
  var Nc = ({ email: e, name: t, onSignOut: n, imageUrl: r, size: a = "small", children: i }) => {
6261
- const s = de.toArray(i).filter((l) => ee.isValidElement(l) && (l.type === ir || l.type === ea));
6263
+ const s = de.toArray(i).filter((l) => Q.isValidElement(l) && (l.type === ir || l.type === ea));
6262
6264
  return /* @__PURE__ */ x(iv, { children: [/* @__PURE__ */ o(sv, {
6263
6265
  className: "cursor-pointer outline-none",
6264
6266
  "aria-label": "open menu",
@@ -6279,7 +6281,7 @@ var Nc = ({ email: e, name: t, onSignOut: n, imageUrl: r, size: a = "small", chi
6279
6281
  })] });
6280
6282
  };
6281
6283
  Nc.displayName = "LoggedInUserMenu";
6282
- var mv = ({ email: e, name: t, children: n, onSignOut: r }) => /* @__PURE__ */ x(ie, { children: [
6284
+ var mv = ({ email: e, name: t, children: n, onSignOut: r }) => /* @__PURE__ */ x(se, { children: [
6283
6285
  /* @__PURE__ */ x(He, {
6284
6286
  padding: 3,
6285
6287
  children: [/* @__PURE__ */ o("div", {
@@ -6299,7 +6301,7 @@ var mv = ({ email: e, name: t, children: n, onSignOut: r }) => /* @__PURE__ */ x
6299
6301
  })
6300
6302
  ] }), ir = ({ onSelect: e, children: t, className: n }) => /* @__PURE__ */ o(wc, {
6301
6303
  onSelect: e,
6302
- className: b("cursor-pointer p-3", n),
6304
+ className: y("cursor-pointer p-3", n),
6303
6305
  children: t
6304
6306
  });
6305
6307
  ir.displayName = "LoggedInUserMenu.MenuItem";
@@ -6311,7 +6313,7 @@ var ea = () => /* @__PURE__ */ o(Cc, {
6311
6313
  Seperator: ea
6312
6314
  });
6313
6315
  function X4({ placeholder: e, onSubmit: t, suggestions: n = [], prompt: r, onChange: a, onFileUpload: i, attachments: s = [], maxHeight: l = 250, isSubmitting: d = !1, submittingIcon: f = "loader", fileInputRef: u, acceptedFileTypes: p, isDisabled: h = !1, maxAttachments: m = 1 }) {
6314
- const [g, v] = j(!1), y = se(null), C = pe(() => u || y, [u]), w = se(null), N = pe(() => {
6316
+ const [g, v] = j(!1), b = ie(null), C = pe(() => u || b, [u]), w = ie(null), N = pe(() => {
6315
6317
  const S = r?.split(`
6316
6318
  `).length ?? 0;
6317
6319
  if (S === 0) return 0;
@@ -6339,11 +6341,11 @@ function X4({ placeholder: e, onSubmit: t, suggestions: n = [], prompt: r, onCha
6339
6341
  onDragLeave: le((S) => {
6340
6342
  S.preventDefault(), S.stopPropagation(), v(!1);
6341
6343
  }, []),
6342
- className: b("flex flex-col rounded-md border bg-background pt-2 text-sm text-foreground/70 dark:text-body-muted", g && "border-dashed border-primary/60"),
6344
+ className: y("flex flex-col rounded-md border bg-background pt-2 text-sm text-foreground/70 dark:text-body-muted", g && "border-dashed border-primary/60"),
6343
6345
  children: [
6344
6346
  /* @__PURE__ */ o("div", {
6345
- className: b("flex flex-row gap-2 px-2", s.length > 0 && "mb-2"),
6346
- children: /* @__PURE__ */ o(ye, { children: s.map((S) => /* @__PURE__ */ o(hv, { attachment: S }, S.id)) })
6347
+ className: y("flex flex-row gap-2 px-2", s.length > 0 && "mb-2"),
6348
+ children: /* @__PURE__ */ o(be, { children: s.map((S) => /* @__PURE__ */ o(hv, { attachment: S }, S.id)) })
6347
6349
  }),
6348
6350
  /* @__PURE__ */ o("div", {
6349
6351
  className: "overflow-x-hidden overflow-y-scroll",
@@ -6371,7 +6373,7 @@ function X4({ placeholder: e, onSubmit: t, suggestions: n = [], prompt: r, onCha
6371
6373
  className: "flex items-center p-2",
6372
6374
  children: [/* @__PURE__ */ x("div", {
6373
6375
  id: "file-upload",
6374
- className: b("relative flex cursor-pointer items-center gap-1 rounded-md p-1.5 text-foreground hover:bg-accent/80", s.length >= m && "cursor-not-allowed opacity-50"),
6376
+ className: y("relative flex cursor-pointer items-center gap-1 rounded-md p-1.5 text-foreground hover:bg-accent/80", s.length >= m && "cursor-not-allowed opacity-50"),
6375
6377
  onClick: () => {
6376
6378
  s.length >= m || C.current?.click();
6377
6379
  },
@@ -6399,7 +6401,7 @@ function X4({ placeholder: e, onSubmit: t, suggestions: n = [], prompt: r, onCha
6399
6401
  children: /* @__PURE__ */ o(K, {
6400
6402
  name: d ? f : "arrow-up",
6401
6403
  strokeWidth: 2.5,
6402
- className: b(d && "animate-spin")
6404
+ className: y(d && "animate-spin")
6403
6405
  })
6404
6406
  })
6405
6407
  })]
@@ -6408,11 +6410,11 @@ function X4({ placeholder: e, onSubmit: t, suggestions: n = [], prompt: r, onCha
6408
6410
  }), n.length > 0 && /* @__PURE__ */ o("div", {
6409
6411
  className: "mt-4 flex w-full flex-row flex-wrap gap-3",
6410
6412
  children: n.map((S) => /* @__PURE__ */ x("button", {
6411
- className: b("relative flex cursor-pointer flex-row items-center gap-1.5 rounded-md border bg-foreground/5 px-2.5 py-2 text-sm tracking-tight whitespace-nowrap text-foreground/80 select-none hover:bg-foreground/10", S.className),
6413
+ className: y("relative flex cursor-pointer flex-row items-center gap-1.5 rounded-md border bg-foreground/5 px-2.5 py-2 text-sm tracking-tight whitespace-nowrap text-foreground/80 select-none hover:bg-foreground/10", S.className),
6412
6414
  onClick: () => S.onClick(S.id),
6413
6415
  children: [S.icon && /* @__PURE__ */ o(K, {
6414
6416
  name: S.icon,
6415
- className: b("relative size-4 stroke-primary", S.iconClassName),
6417
+ className: y("relative size-4 stroke-primary", S.iconClassName),
6416
6418
  strokeWidth: 1
6417
6419
  }), S.label]
6418
6420
  }, S.label))
@@ -6459,10 +6461,10 @@ function hv({ attachment: e }) {
6459
6461
  opacity: 0,
6460
6462
  scale: 0
6461
6463
  },
6462
- className: b("flex flex-row items-center rounded-lg border bg-card px-1.5 py-1 text-xs", t && "gap-1.5"),
6464
+ className: y("flex flex-row items-center rounded-lg border bg-card px-1.5 py-1 text-xs", t && "gap-1.5"),
6463
6465
  children: [
6464
6466
  /* @__PURE__ */ o("div", {
6465
- className: b("size-5", t && "size-4"),
6467
+ className: y("size-5", t && "size-4"),
6466
6468
  children: t ? /* @__PURE__ */ o("img", {
6467
6469
  src: t,
6468
6470
  className: "size-full rounded-lg object-cover",
@@ -6513,11 +6515,11 @@ function sr({ name: e, size: t = "small", transition: n = !1, showInitial: r = !
6513
6515
  300,
6514
6516
  330
6515
6517
  ], d = l[e.split("").reduce((m, g, v) => {
6516
- const y = g.charCodeAt(0);
6517
- return m * 31 + y * (v + 1) >>> 0;
6518
+ const b = g.charCodeAt(0);
6519
+ return m * 31 + b * (v + 1) >>> 0;
6518
6520
  }, 5381) % l.length], f = d, u = (d + 30) % 360, p = `hsl(${f}, 85%, 60%)`, h = `hsl(${u}, 75%, 65%)`;
6519
6521
  return /* @__PURE__ */ o("div", {
6520
- className: b("gradient-circle relative min-h-6 min-w-6 rounded-full border-white", t && `${gv[t]}`, a && "opacity-50", i),
6522
+ className: y("gradient-circle relative min-h-6 min-w-6 rounded-full border-white", t && `${gv[t]}`, a && "opacity-50", i),
6521
6523
  style: {
6522
6524
  "--from-color": p,
6523
6525
  "--to-color": h,
@@ -6526,14 +6528,14 @@ function sr({ name: e, size: t = "small", transition: n = !1, showInitial: r = !
6526
6528
  children: r && e.length > 0 && /* @__PURE__ */ o("div", {
6527
6529
  className: "gradient-circle-initial",
6528
6530
  style: {
6529
- "--translate": s ? yv(s) : void 0,
6531
+ "--translate": s ? bv(s) : void 0,
6530
6532
  fontSize: vv[t]
6531
6533
  },
6532
6534
  children: e[0].toUpperCase()
6533
6535
  })
6534
6536
  });
6535
6537
  }
6536
- function yv(e) {
6538
+ function bv(e) {
6537
6539
  switch (e) {
6538
6540
  case "A":
6539
6541
  return ["-50%", "-55%"];
@@ -6561,7 +6563,7 @@ function yv(e) {
6561
6563
  return ["-50%", "-50%"];
6562
6564
  }
6563
6565
  }
6564
- var bv = { heights: {
6566
+ var yv = { heights: {
6565
6567
  row: 16,
6566
6568
  header: 28,
6567
6569
  padding: 8,
@@ -6573,7 +6575,7 @@ function ni(e, t) {
6573
6575
  function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, error: a = !1, errorText: i = "An error occurred", emptyText: s = "No organizations found", searchPlaceholder: l = "Search..." }) {
6574
6576
  const [d, f] = c.useState(!1), [u, p] = c.useState(""), [h, m] = c.useState(0), g = c.useRef(null), v = (E, k) => {
6575
6577
  n(E), f(!1), m(k);
6576
- }, y = c.useMemo(() => ni(u ? e.filter((E) => E.slug.includes(u)) : e, "slug"), [u, e]), C = c.useMemo(() => {
6578
+ }, b = c.useMemo(() => ni(u ? e.filter((E) => E.slug.includes(u)) : e, "slug"), [u, e]), C = c.useMemo(() => {
6577
6579
  if (!e.length) return 0;
6578
6580
  const E = [...e.map((I) => I.slug.length)].sort((I, _) => I - _), k = Math.floor(E.length / 2), T = E.length % 2 === 0 ? (E[k - 1] + E[k]) / 2 : E[k];
6579
6581
  return Math.round(T * (8 * 1.125) * 1.2);
@@ -6604,7 +6606,7 @@ function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, err
6604
6606
  let k = h;
6605
6607
  switch (E.key) {
6606
6608
  case "ArrowDown":
6607
- k = Math.min(h + 1, y.length - 1);
6609
+ k = Math.min(h + 1, b.length - 1);
6608
6610
  break;
6609
6611
  case "ArrowUp":
6610
6612
  k = Math.max(h - 1, 0);
@@ -6617,10 +6619,10 @@ function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, err
6617
6619
  index: k,
6618
6620
  align: "start"
6619
6621
  });
6620
- }, [h, y.length]), S = c.useMemo(() => {
6621
- const { row: E, header: k, padding: T, max: I } = bv.heights, _ = y.some((B) => B.label) ? y.length * k : 0, L = y.reduce((B) => E + B, _);
6622
+ }, [h, b.length]), S = c.useMemo(() => {
6623
+ const { row: E, header: k, padding: T, max: I } = yv.heights, _ = b.some((B) => B.label) ? b.length * k : 0, L = b.reduce((B) => E + B, _);
6622
6624
  return Math.min(L + T, I);
6623
- }, [y]);
6625
+ }, [b]);
6624
6626
  return /* @__PURE__ */ x(Bo, {
6625
6627
  open: d,
6626
6628
  onOpenChange: N,
@@ -6635,7 +6637,7 @@ function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, err
6635
6637
  title: t ? t.slug : "Select organization...",
6636
6638
  className: "flex flex-row items-center gap-2 outline-none",
6637
6639
  children: [/* @__PURE__ */ o("div", {
6638
- className: b("min-w-0 flex-1 truncate text-left text-lg font-semibold lowercase", d ? "text-foreground" : "text-foreground/80"),
6640
+ className: y("min-w-0 flex-1 truncate text-left text-lg font-semibold lowercase", d ? "text-foreground" : "text-foreground/80"),
6639
6641
  style: { width: C },
6640
6642
  children: t ? t.slug : "Select organization..."
6641
6643
  }), /* @__PURE__ */ o(K, {
@@ -6657,15 +6659,15 @@ function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, err
6657
6659
  }), /* @__PURE__ */ o(Po, { children: a ? /* @__PURE__ */ o(we, {
6658
6660
  disabled: !0,
6659
6661
  children: i
6660
- }) : y.length === 0 ? /* @__PURE__ */ o(we, {
6662
+ }) : b.length === 0 ? /* @__PURE__ */ o(we, {
6661
6663
  disabled: !0,
6662
6664
  children: s
6663
6665
  }) : /* @__PURE__ */ o(so, {
6664
6666
  style: { height: S },
6665
- data: y,
6667
+ data: b,
6666
6668
  ref: w,
6667
6669
  initialTopMostItemIndex: h,
6668
- totalCount: y.length,
6670
+ totalCount: b.length,
6669
6671
  itemContent: (E, k) => /* @__PURE__ */ o(R, {
6670
6672
  index: E,
6671
6673
  org: k
@@ -6676,8 +6678,8 @@ function xv({ orgs: e = [], selectedOrg: t, onSelect: n, searchable: r = !0, err
6676
6678
  });
6677
6679
  }
6678
6680
  function wv({ open: e, selectedOrg: t, allOrgs: n, onBack: r, onSubmit: a, newWorkspaceName: i, setNewWorkspaceName: s, backButtonEnabled: l = !0 }) {
6679
- const d = ee.useRef(null), [f, u] = j(!1), [p, h] = j(t), [m, g] = j(!1), [v, y] = j(null);
6680
- ee.useEffect(() => {
6681
+ const d = Q.useRef(null), [f, u] = j(!1), [p, h] = j(t), [m, g] = j(!1), [v, b] = j(null);
6682
+ Q.useEffect(() => {
6681
6683
  e && setTimeout(() => {
6682
6684
  d.current?.focus();
6683
6685
  }, 300);
@@ -6689,7 +6691,7 @@ function wv({ open: e, selectedOrg: t, allOrgs: n, onBack: r, onSubmit: a, newWo
6689
6691
  }, w = async () => {
6690
6692
  g(!0);
6691
6693
  const R = await a(p, i);
6692
- g(!1), R.success || y(R.error ?? "Unknown error");
6694
+ g(!1), R.success || b(R.error ?? "Unknown error");
6693
6695
  }, N = le((R) => {
6694
6696
  s(R.target.value), u(!R.target.validity.valid);
6695
6697
  }, [s, u]);
@@ -6753,7 +6755,7 @@ function wv({ open: e, selectedOrg: t, allOrgs: n, onBack: r, onSubmit: a, newWo
6753
6755
  onSelect: h
6754
6756
  }) : /* @__PURE__ */ o("span", {
6755
6757
  title: p.slug,
6756
- className: b("text-lg font-semibold whitespace-pre text-foreground/80 select-none", p.slug.length > 20 && "max-w-40 truncate whitespace-pre"),
6758
+ className: y("text-lg font-semibold whitespace-pre text-foreground/80 select-none", p.slug.length > 20 && "max-w-40 truncate whitespace-pre"),
6757
6759
  children: p.slug
6758
6760
  }),
6759
6761
  /* @__PURE__ */ o("span", {
@@ -6813,7 +6815,7 @@ function wv({ open: e, selectedOrg: t, allOrgs: n, onBack: r, onSubmit: a, newWo
6813
6815
  })]
6814
6816
  });
6815
6817
  }
6816
- var Sc = (e) => ee.forwardRef(e), Ec = "[&::-webkit-scrollbar-thumb]:bg-gray-200 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb:active]:bg-black/20 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb:active]:bg-white/50 [&::-webkit-scrollbar-track]:bg-gray-100 dark:[&::-webkit-scrollbar-track]:bg-neutral-900 [&::-webkit-scrollbar]:w-2";
6818
+ var Sc = (e) => Q.forwardRef(e), Ec = "[&::-webkit-scrollbar-thumb]:bg-gray-200 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb:active]:bg-black/20 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb:active]:bg-white/50 [&::-webkit-scrollbar-track]:bg-gray-100 dark:[&::-webkit-scrollbar-track]:bg-neutral-900 [&::-webkit-scrollbar]:w-2";
6817
6819
  function Cv({ items: e, renderItem: t }, n) {
6818
6820
  return /* @__PURE__ */ o(so, {
6819
6821
  className: Ec,
@@ -6857,6 +6859,8 @@ function na({ inputRef: e, search: t, setSearch: n, placeholder: r }) {
6857
6859
  className: "absolute right-3",
6858
6860
  children: t && /* @__PURE__ */ o("button", {
6859
6861
  className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-sm text-muted-foreground hover:bg-accent",
6862
+ type: "button",
6863
+ "aria-label": "Clear search",
6860
6864
  onClick: () => n(""),
6861
6865
  children: /* @__PURE__ */ o(K, {
6862
6866
  name: "x",
@@ -6868,7 +6872,7 @@ function na({ inputRef: e, search: t, setSearch: n, placeholder: r }) {
6868
6872
  });
6869
6873
  }
6870
6874
  function ri({ orgs: e, showRecents: t, selectedOrg: n, setSelectedOrg: r, enableRecents: a, onSelectRecent: i, filterOrgFunc: s }) {
6871
- const l = se(null), [d, f] = j(""), u = se(null), [p, h] = j(e);
6875
+ const l = ie(null), [d, f] = j(""), u = ie(null), [p, h] = j(e);
6872
6876
  return re(() => {
6873
6877
  h(e.filter((m) => s(m, d)));
6874
6878
  }, [
@@ -6900,7 +6904,7 @@ function ri({ orgs: e, showRecents: t, selectedOrg: n, setSelectedOrg: r, enable
6900
6904
  renderItem: (m) => /* @__PURE__ */ x(we, {
6901
6905
  onSelect: () => r(m),
6902
6906
  value: `org-${m.slug}`,
6903
- className: b("flex cursor-pointer flex-row gap-3 rounded-none p-4 text-base hover:!bg-accent/40 @[640px]:max-w-lg", !t && n?.slug === m.slug && "bg-accent/40 font-semibold text-accent-foreground"),
6907
+ className: y("flex cursor-pointer flex-row gap-3 rounded-none p-4 text-base hover:!bg-accent/40 @[640px]:max-w-lg", !t && n?.slug === m.slug && "bg-accent/40 font-semibold text-accent-foreground"),
6904
6908
  children: [
6905
6909
  /* @__PURE__ */ o(sr, { name: m.label }),
6906
6910
  /* @__PURE__ */ o(ae, {
@@ -6924,7 +6928,7 @@ function ri({ orgs: e, showRecents: t, selectedOrg: n, setSelectedOrg: r, enable
6924
6928
  className: "border-t border-neutral-softest bg-background",
6925
6929
  children: /* @__PURE__ */ x(we, {
6926
6930
  onSelect: i,
6927
- className: b("sticky top-0 z-10 m-1 flex cursor-pointer items-center bg-background p-4 text-base text-foreground/80", t && "font-semibold text-accent-foreground"),
6931
+ className: y("sticky top-0 z-10 m-1 flex cursor-pointer items-center bg-background p-4 text-base text-foreground/80", t && "font-semibold text-accent-foreground"),
6928
6932
  children: [
6929
6933
  /* @__PURE__ */ o(K, { name: "history" }),
6930
6934
  /* @__PURE__ */ o(ae, { children: "Recently used" }),
@@ -6946,7 +6950,7 @@ var Rc = fe(function({ workspace: t, selectedOrg: n, handleSelect: r, isSelected
6946
6950
  ref: i,
6947
6951
  value: `workspace-${n.id}-${t.id}`,
6948
6952
  onSelect: () => r(n, t),
6949
- className: b("flex w-full max-w-full cursor-pointer flex-row gap-3 rounded-none p-4 text-base hover:!bg-accent/40 data-[selected=true]:!bg-accent/40", a && "font-semibold", !t.active && "opacity-50"),
6953
+ className: y("flex w-full max-w-full cursor-pointer flex-row gap-3 rounded-none p-4 text-base hover:!bg-accent/40 data-[selected=true]:!bg-accent/40", a && "font-semibold", !t.active && "opacity-50"),
6950
6954
  children: [/* @__PURE__ */ o(sr, { name: t.label }), /* @__PURE__ */ o(ae, {
6951
6955
  className: "truncate",
6952
6956
  children: t.label
@@ -6954,7 +6958,7 @@ var Rc = fe(function({ workspace: t, selectedOrg: n, handleSelect: r, isSelected
6954
6958
  }, t.id);
6955
6959
  });
6956
6960
  function Sv({ selectedOrg: e, selectedWorkspace: t, handleCreateViewOpen: n, handleSelect: r, enableCreate: a = !0, filterWorkspaceFunc: i }) {
6957
- const s = se(null), [l, d] = j(""), f = se(null), u = e?.workspaces.filter((p) => i(p, l)) ?? [];
6961
+ const s = ie(null), [l, d] = j(""), f = ie(null), u = e?.workspaces.filter((p) => i(p, l)) ?? [];
6958
6962
  return re(() => {
6959
6963
  if (e && t && s.current) {
6960
6964
  const p = e.workspaces.findIndex((h) => h.slug === t.slug);
@@ -6994,7 +6998,7 @@ function Sv({ selectedOrg: e, selectedWorkspace: t, handleCreateViewOpen: n, han
6994
6998
  className: "border-t border-neutral-softest bg-background",
6995
6999
  children: /* @__PURE__ */ x(we, {
6996
7000
  onSelect: n,
6997
- className: b("m-1 cursor-pointer !items-center p-4 text-base"),
7001
+ className: y("m-1 cursor-pointer !items-center p-4 text-base"),
6998
7002
  children: [/* @__PURE__ */ o(K, { name: "plus" }), /* @__PURE__ */ o(ae, { children: "Create workspace" })]
6999
7003
  })
7000
7004
  })
@@ -7002,11 +7006,11 @@ function Sv({ selectedOrg: e, selectedWorkspace: t, handleCreateViewOpen: n, han
7002
7006
  });
7003
7007
  }
7004
7008
  function Ev({ orgsWithFilteredWorkspaces: e, onSelect: t, fullWidth: n = !1, selectedOrg: r, selectedWorkspace: a, handleCreateViewOpen: i }) {
7005
- const [s, l] = j(""), d = se(null), [f, u] = j(e);
7009
+ const [s, l] = j(""), d = ie(null), [f, u] = j(e);
7006
7010
  return re(() => {
7007
7011
  u(e.filter((p) => p.workspaces.some((h) => h.slug.includes(s))));
7008
7012
  }, [s, e]), /* @__PURE__ */ x("div", {
7009
- className: b("flex h-full flex-col", n ? "w-full" : "w-2/3"),
7013
+ className: y("flex h-full flex-col", n ? "w-full" : "w-2/3"),
7010
7014
  children: [
7011
7015
  /* @__PURE__ */ o(na, {
7012
7016
  inputRef: d,
@@ -7030,7 +7034,7 @@ function Ev({ orgsWithFilteredWorkspaces: e, onSelect: t, fullWidth: n = !1, sel
7030
7034
  className: "border-t border-neutral-softest bg-background",
7031
7035
  children: /* @__PURE__ */ x(we, {
7032
7036
  onSelect: i,
7033
- className: b("m-1 cursor-pointer !items-center p-4 text-base"),
7037
+ className: y("m-1 cursor-pointer !items-center p-4 text-base"),
7034
7038
  children: [/* @__PURE__ */ o(K, { name: "plus" }), /* @__PURE__ */ o(ae, { children: "Create workspace" })]
7035
7039
  })
7036
7040
  })
@@ -7038,7 +7042,7 @@ function Ev({ orgsWithFilteredWorkspaces: e, onSelect: t, fullWidth: n = !1, sel
7038
7042
  });
7039
7043
  }
7040
7044
  function Rv({ onSubmit: e }) {
7041
- const [t, n] = j(""), r = se(null);
7045
+ const [t, n] = j(""), r = ie(null);
7042
7046
  return re(() => {
7043
7047
  r.current && r.current.focus();
7044
7048
  }, []), /* @__PURE__ */ x(mt, {
@@ -7139,7 +7143,7 @@ var kv = () => {
7139
7143
  };
7140
7144
  };
7141
7145
  function Y4({ orgs: e, onSelect: t, onCreate: n, emptyText: r = "No workspaces found.", recents: a = [], height: i = "500px", onCreateOrg: s, createTriggersSelection: l = !1, showCreateWorkspaceView: d = !1, defaultSelectedOrg: f, filterOrgFunc: u, filterWorkspaceFunc: p }) {
7142
- const [h, m] = c.useState(null), [g, v] = c.useState(f), [y, C] = c.useState(d ?? !1), [w, N] = c.useState(e.length === 0), [R, M] = c.useState(""), S = c.useRef(null), [E, k] = c.useState(a.length > 0), { isTransitioning: T, startTransition: I, setIsTransitioning: _ } = kv(), [L, B] = c.useState(null);
7146
+ const [h, m] = c.useState(null), [g, v] = c.useState(f), [b, C] = c.useState(d ?? !1), [w, N] = c.useState(e.length === 0), [R, M] = c.useState(""), S = c.useRef(null), [E, k] = c.useState(a.length > 0), { isTransitioning: T, startTransition: I, setIsTransitioning: _ } = kv(), [L, B] = c.useState(null);
7143
7147
  c.useLayoutEffect(() => {
7144
7148
  w && (B("org"), _(!0));
7145
7149
  }, [w]);
@@ -7206,12 +7210,12 @@ function Y4({ orgs: e, onSelect: t, onCreate: n, emptyText: r = "No workspaces f
7206
7210
  style: { viewTransitionName: T ? "create-dialog" : "" },
7207
7211
  className: "h-full w-full",
7208
7212
  children: /* @__PURE__ */ o(Rv, { onSubmit: H })
7209
- }) : y ? /* @__PURE__ */ o("div", {
7213
+ }) : b ? /* @__PURE__ */ o("div", {
7210
7214
  style: { viewTransitionName: T ? "create-dialog" : "" },
7211
7215
  className: "h-full w-full",
7212
7216
  children: /* @__PURE__ */ o(wv, {
7213
7217
  backButtonEnabled: e.length > 0,
7214
- open: y,
7218
+ open: b,
7215
7219
  selectedOrg: g,
7216
7220
  onBack: L === null ? O : void 0,
7217
7221
  allOrgs: e,
@@ -7243,7 +7247,7 @@ function Y4({ orgs: e, onSelect: t, onCreate: n, emptyText: r = "No workspaces f
7243
7247
  }
7244
7248
  function Mv({ orgs: e, selectedOrg: t, selectedWorkspace: n, handleSelect: r, showRecents: a, setShowRecents: i, emptyText: s, height: l, recents: d, handleCreateWorkspaceViewOpen: f, handleSelectOrg: u, filterOrgFunc: p, filterWorkspaceFunc: h, backToOrgSelector: m }) {
7245
7249
  const g = c.useMemo(() => d.length > 0 && a, [d, a]);
7246
- return /* @__PURE__ */ x(ie, { children: [
7250
+ return /* @__PURE__ */ x(se, { children: [
7247
7251
  /* @__PURE__ */ o("div", {
7248
7252
  className: "hidden h-full flex-1/3 flex-col items-center justify-center border-r border-neutral-softest bg-surface-primary @[640px]:flex",
7249
7253
  children: /* @__PURE__ */ o("div", {
@@ -7296,9 +7300,9 @@ function Mv({ orgs: e, selectedOrg: t, selectedWorkspace: n, handleSelect: r, sh
7296
7300
  onSelectRecent: () => i(!0),
7297
7301
  showRecents: a,
7298
7302
  enableRecents: d.length > 0,
7299
- filterOrgFunc: (v, y) => p(v, y)
7303
+ filterOrgFunc: (v, b) => p(v, b)
7300
7304
  }), /* @__PURE__ */ o(Ev, {
7301
- onSelect: (v, y) => r(v, y, !1),
7305
+ onSelect: (v, b) => r(v, b, !1),
7302
7306
  handleCreateViewOpen: f,
7303
7307
  orgsWithFilteredWorkspaces: d,
7304
7308
  selectedOrg: t,
@@ -7308,7 +7312,7 @@ function Mv({ orgs: e, selectedOrg: t, selectedWorkspace: n, handleSelect: r, sh
7308
7312
  className: "flex h-full w-full flex-1 flex-col @[640px]:flex-row",
7309
7313
  children: [
7310
7314
  /* @__PURE__ */ o("div", {
7311
- className: b("flex-shrink-0 border-b border-neutral-softest p-3 @[640px]:hidden", t ? "flex" : "hidden"),
7315
+ className: y("flex-shrink-0 border-b border-neutral-softest p-3 @[640px]:hidden", t ? "flex" : "hidden"),
7312
7316
  children: /* @__PURE__ */ x("button", {
7313
7317
  onClick: m,
7314
7318
  className: "flex items-center gap-2 text-body-sm text-link-primary hover:text-link-secondary",
@@ -7316,7 +7320,7 @@ function Mv({ orgs: e, selectedOrg: t, selectedWorkspace: n, handleSelect: r, sh
7316
7320
  })
7317
7321
  }),
7318
7322
  /* @__PURE__ */ o("div", {
7319
- className: b(t ? "hidden @[640px]:contents" : "contents"),
7323
+ className: y(t ? "hidden @[640px]:contents" : "contents"),
7320
7324
  children: /* @__PURE__ */ o(ri, {
7321
7325
  orgs: e,
7322
7326
  selectedOrg: t,
@@ -7324,17 +7328,17 @@ function Mv({ orgs: e, selectedOrg: t, selectedWorkspace: n, handleSelect: r, sh
7324
7328
  onSelectRecent: () => i(!0),
7325
7329
  showRecents: a,
7326
7330
  enableRecents: d.length > 0,
7327
- filterOrgFunc: (v, y) => p(v, y)
7331
+ filterOrgFunc: (v, b) => p(v, b)
7328
7332
  })
7329
7333
  }),
7330
7334
  /* @__PURE__ */ o("div", {
7331
- className: b(t ? "contents" : "hidden @[640px]:contents"),
7335
+ className: y(t ? "contents" : "hidden @[640px]:contents"),
7332
7336
  children: /* @__PURE__ */ o(Sv, {
7333
7337
  selectedOrg: t,
7334
7338
  handleCreateViewOpen: f,
7335
- handleSelect: (v, y) => r(v, y, !1),
7339
+ handleSelect: (v, b) => r(v, b, !1),
7336
7340
  selectedWorkspace: n,
7337
- filterWorkspaceFunc: (v, y) => h(v, y)
7341
+ filterWorkspaceFunc: (v, b) => h(v, b)
7338
7342
  })
7339
7343
  })
7340
7344
  ]
@@ -7373,7 +7377,7 @@ function q4({ steps: e, currentStep: t, completedSteps: n, headerContent: r, cla
7373
7377
  }, []);
7374
7378
  const d = (u) => n.includes(u + 1) ? "completed" : u + 1 === t ? "current" : "upcoming", f = pe(() => Array.from({ length: n.length === e.length ? t : t - 1 }, (u, p) => p + 1).map((u) => (i.get(u) || 0) + 16).reduce((u, p) => u + p, 0), [t, i]);
7375
7379
  return /* @__PURE__ */ x("div", {
7376
- className: b("max-w-screen-x flex flex-col gap-2", a),
7380
+ className: y("max-w-screen-x flex flex-col gap-2", a),
7377
7381
  children: [/* @__PURE__ */ o("div", {
7378
7382
  className: "border-b p-6",
7379
7383
  children: /* @__PURE__ */ o("div", {
@@ -7400,15 +7404,15 @@ function q4({ steps: e, currentStep: t, completedSteps: n, headerContent: r, cla
7400
7404
  l.current.set(m, g);
7401
7405
  },
7402
7406
  children: /* @__PURE__ */ x("div", {
7403
- className: b("relative pl-16", h === "completed" && "text-body"),
7407
+ className: y("relative pl-16", h === "completed" && "text-body"),
7404
7408
  children: [
7405
7409
  /* @__PURE__ */ x("div", {
7406
7410
  className: "flex items-center gap-2",
7407
7411
  children: [/* @__PURE__ */ o("div", {
7408
- className: b("absolute left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-semibold", h === "completed" && "bg-success-default text-highlight-fixed-light", h === "current" && "scale-110 bg-surface-primary-inverse text-default-inverse", h === "upcoming" && "bg-muted text-muted"),
7412
+ className: y("absolute left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-semibold", h === "completed" && "bg-success-default text-highlight-fixed-light", h === "current" && "scale-110 bg-surface-primary-inverse text-default-inverse", h === "upcoming" && "bg-muted text-muted"),
7409
7413
  children: m
7410
7414
  }), /* @__PURE__ */ o("div", {
7411
- className: b(h === "upcoming" && "opacity-50"),
7415
+ className: y(h === "upcoming" && "opacity-50"),
7412
7416
  children: /* @__PURE__ */ o($e, {
7413
7417
  variant: "md",
7414
7418
  as: "h2",
@@ -7417,14 +7421,14 @@ function q4({ steps: e, currentStep: t, completedSteps: n, headerContent: r, cla
7417
7421
  })]
7418
7422
  }),
7419
7423
  /* @__PURE__ */ o("div", {
7420
- className: b("mt-2 mb-4", h === "upcoming" && "opacity-50"),
7424
+ className: y("mt-2 mb-4", h === "upcoming" && "opacity-50"),
7421
7425
  children: /* @__PURE__ */ o(ae, {
7422
7426
  muted: !0,
7423
7427
  children: u.description
7424
7428
  })
7425
7429
  }),
7426
7430
  /* @__PURE__ */ o("div", {
7427
- className: b("mt-8 flex w-full flex-col gap-5", h === "upcoming" && "opacity-50"),
7431
+ className: y("mt-8 flex w-full flex-col gap-5", h === "upcoming" && "opacity-50"),
7428
7432
  children: h === "current" && u.commands?.map((g, v) => /* @__PURE__ */ o(Dh, {
7429
7433
  code: g.code,
7430
7434
  language: g.language,
@@ -7482,32 +7486,32 @@ function J4({ variant: e = "default", children: t, inline: n = !1, dismissible:
7482
7486
  });
7483
7487
  return /* @__PURE__ */ o("div", {
7484
7488
  role: "alert",
7485
- className: b(_v({
7489
+ className: y(_v({
7486
7490
  variant: e,
7487
7491
  modifiers: n ? "inline" : void 0
7488
7492
  }), d && "opacity-0 transition-opacity duration-500", l),
7489
7493
  children: s ? /* @__PURE__ */ x("div", {
7490
7494
  className: "container flex",
7491
7495
  children: [h, m]
7492
- }) : /* @__PURE__ */ x(ie, { children: [h, m] })
7496
+ }) : /* @__PURE__ */ x(se, { children: [h, m] })
7493
7497
  });
7494
7498
  }
7495
7499
  var kc = function({ children: t, active: n, onClick: r, className: a }) {
7496
7500
  return /* @__PURE__ */ o("div", {
7497
- className: b("mb-[-1px] cursor-pointer px-4 py-2 text-sm text-body", n && "rounded-t-lg border-t border-r border-l bg-background text-foreground", a),
7501
+ className: y("mb-[-1px] cursor-pointer px-4 py-2 text-sm text-body", n && "rounded-t-lg border-t border-r border-l bg-background text-foreground", a),
7498
7502
  onClick: r,
7499
7503
  children: t
7500
7504
  });
7501
7505
  };
7502
7506
  function Tv({ children: e, selectedTab: t, onTabChange: n, className: r }) {
7503
- const [a, i] = j(t || e[0].props.id);
7507
+ const [a, i] = j(t ?? e[0].props.id);
7504
7508
  re(() => {
7505
- i(t || e[0].props.id);
7509
+ i(t ?? e[0].props.id);
7506
7510
  }, [t]);
7507
- const s = ee.Children.toArray(e).filter((l) => ee.isValidElement(l) && l.type.displayName === "Tabs.Tab");
7511
+ const s = Q.Children.toArray(e).filter((l) => Q.isValidElement(l) && l.type.displayName === "Tabs.Tab");
7508
7512
  return /* @__PURE__ */ o("div", {
7509
- className: b("flex flex-row justify-start gap-2 border-b border-border select-none", r),
7510
- children: ee.Children.map(s, (l) => ee.cloneElement(l, {
7513
+ className: y("flex flex-row justify-start gap-2 border-b border-border select-none", r),
7514
+ children: Q.Children.map(s, (l) => Q.cloneElement(l, {
7511
7515
  ...l.props,
7512
7516
  active: l.props.id === a,
7513
7517
  onClick: () => {
@@ -7567,20 +7571,20 @@ var $v = Pc, [lr, Q4] = Be("Tooltip", [Qe]), cr = Qe(), _c = "TooltipProvider",
7567
7571
  };
7568
7572
  Ic.displayName = _c;
7569
7573
  var Wt = "Tooltip", [Fv, an] = lr(Wt), Tc = (e) => {
7570
- const { __scopeTooltip: t, children: n, open: r, defaultOpen: a, onOpenChange: i, disableHoverableContent: s, delayDuration: l } = e, d = oa(Wt, e.__scopeTooltip), f = cr(t), [u, p] = c.useState(null), h = ue(), m = c.useRef(0), g = s ?? d.disableHoverableContent, v = l ?? d.delayDuration, y = c.useRef(!1), [C, w] = je({
7574
+ const { __scopeTooltip: t, children: n, open: r, defaultOpen: a, onOpenChange: i, disableHoverableContent: s, delayDuration: l } = e, d = oa(Wt, e.__scopeTooltip), f = cr(t), [u, p] = c.useState(null), h = ue(), m = c.useRef(0), g = s ?? d.disableHoverableContent, v = l ?? d.delayDuration, b = c.useRef(!1), [C, w] = je({
7571
7575
  prop: r,
7572
7576
  defaultProp: a ?? !1,
7573
7577
  onChange: (E) => {
7574
7578
  E ? (d.onOpen(), document.dispatchEvent(new CustomEvent(Yr))) : d.onClose(), i?.(E);
7575
7579
  },
7576
7580
  caller: Wt
7577
- }), N = c.useMemo(() => C ? y.current ? "delayed-open" : "instant-open" : "closed", [C]), R = c.useCallback(() => {
7578
- window.clearTimeout(m.current), m.current = 0, y.current = !1, w(!0);
7581
+ }), N = c.useMemo(() => C ? b.current ? "delayed-open" : "instant-open" : "closed", [C]), R = c.useCallback(() => {
7582
+ window.clearTimeout(m.current), m.current = 0, b.current = !1, w(!0);
7579
7583
  }, [w]), M = c.useCallback(() => {
7580
7584
  window.clearTimeout(m.current), m.current = 0, w(!1);
7581
7585
  }, [w]), S = c.useCallback(() => {
7582
7586
  window.clearTimeout(m.current), m.current = window.setTimeout(() => {
7583
- y.current = !0, w(!0), m.current = 0;
7587
+ b.current = !0, w(!0), m.current = 0;
7584
7588
  }, v);
7585
7589
  }, [v, w]);
7586
7590
  return c.useEffect(() => () => {
@@ -7674,15 +7678,15 @@ var Et = "TooltipContent", Oc = c.forwardRef((e, t) => {
7674
7678
  const n = an(Et, e.__scopeTooltip), r = oa(Et, e.__scopeTooltip), a = c.useRef(null), i = te(t, a), [s, l] = c.useState(null), { trigger: d, onClose: f } = n, u = a.current, { onPointerInTransitChange: p } = r, h = c.useCallback(() => {
7675
7679
  l(null), p(!1);
7676
7680
  }, [p]), m = c.useCallback((g, v) => {
7677
- const y = g.currentTarget, C = {
7681
+ const b = g.currentTarget, C = {
7678
7682
  x: g.clientX,
7679
7683
  y: g.clientY
7680
- }, w = Xv(C, Kv(C, y.getBoundingClientRect())), N = Zv(v.getBoundingClientRect());
7684
+ }, w = Xv(C, Kv(C, b.getBoundingClientRect())), N = Zv(v.getBoundingClientRect());
7681
7685
  l(qv([...w, ...N])), p(!0);
7682
7686
  }, [p]);
7683
7687
  return c.useEffect(() => () => h(), [h]), c.useEffect(() => {
7684
7688
  if (d && u) {
7685
- const g = (y) => m(y, u), v = (y) => m(y, d);
7689
+ const g = (b) => m(b, u), v = (b) => m(b, d);
7686
7690
  return d.addEventListener("pointerleave", g), u.addEventListener("pointerleave", v), () => {
7687
7691
  d.removeEventListener("pointerleave", g), u.removeEventListener("pointerleave", v);
7688
7692
  };
@@ -7695,10 +7699,10 @@ var Et = "TooltipContent", Oc = c.forwardRef((e, t) => {
7695
7699
  ]), c.useEffect(() => {
7696
7700
  if (s) {
7697
7701
  const g = (v) => {
7698
- const y = v.target, C = {
7702
+ const b = v.target, C = {
7699
7703
  x: v.clientX,
7700
7704
  y: v.clientY
7701
- }, w = d?.contains(y) || u?.contains(y), N = !Yv(C, s);
7705
+ }, w = d?.contains(b) || u?.contains(b), N = !Yv(C, s);
7702
7706
  w ? h() : N && (h(), f());
7703
7707
  };
7704
7708
  return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
@@ -7883,7 +7887,7 @@ function Jv(e) {
7883
7887
  var Qv = Ic, eg = Tc, tg = Ac, ng = Lc, Bc = Oc, dr = Qv, sn = (e) => /* @__PURE__ */ o(eg, { ...e }), ur = tg, rg = zc, og = ng, ln = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o(Bc, {
7884
7888
  ref: r,
7885
7889
  sideOffset: t,
7886
- className: b("z-50 animate-in overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
7890
+ className: y("z-50 animate-in overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
7887
7891
  ...n
7888
7892
  }));
7889
7893
  sn.displayName = "Tooltip";
@@ -7926,7 +7930,7 @@ function ig({ path: e = "~", branch: t, children: n, time: r }) {
7926
7930
  className: "text-zinc-500",
7927
7931
  children: e
7928
7932
  }),
7929
- t && /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o("span", { children: "git:" }), /* @__PURE__ */ x("span", {
7933
+ t && /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o("span", { children: "git:" }), /* @__PURE__ */ x("span", {
7930
7934
  className: "text-emerald-500",
7931
7935
  children: [
7932
7936
  "(",
@@ -7951,12 +7955,12 @@ function ig({ path: e = "~", branch: t, children: n, time: r }) {
7951
7955
  }
7952
7956
  function sg({ children: e, className: t }) {
7953
7957
  return /* @__PURE__ */ o("div", {
7954
- className: b("pl-4 text-zinc-400", t),
7958
+ className: y("pl-4 text-zinc-400", t),
7955
7959
  children: e
7956
7960
  });
7957
7961
  }
7958
7962
  function lg({ code: e, onSelectOrCopy: t, copyable: n = !0, fontSize: r = "medium", isActive: a = !1, comment: i, path: s }) {
7959
- const [l, d] = ee.useState(!1);
7963
+ const [l, d] = Q.useState(!1);
7960
7964
  return /* @__PURE__ */ x("div", {
7961
7965
  className: "group relative",
7962
7966
  children: [/* @__PURE__ */ o(ig, {
@@ -7969,7 +7973,7 @@ function lg({ code: e, onSelectOrCopy: t, copyable: n = !0, fontSize: r = "mediu
7969
7973
  className: "w-full text-left",
7970
7974
  "aria-label": l ? "Copied" : "Copy command",
7971
7975
  children: /* @__PURE__ */ o("div", {
7972
- className: b("relative -mx-2 rounded-md px-2 py-0.5 transition-colors", a && "bg-emerald-500/10", !a && "hover:bg-active"),
7976
+ className: y("relative -mx-2 rounded-md px-2 py-0.5 transition-colors", a && "bg-emerald-500/10", !a && "hover:bg-active"),
7973
7977
  children: /* @__PURE__ */ x("div", {
7974
7978
  className: "flex items-start gap-2",
7975
7979
  children: [
@@ -7978,11 +7982,11 @@ function lg({ code: e, onSelectOrCopy: t, copyable: n = !0, fontSize: r = "mediu
7978
7982
  children: "$"
7979
7983
  }),
7980
7984
  /* @__PURE__ */ o("span", {
7981
- className: b("mt-0.5 flex-1 font-mono font-medium tracking-normal text-default select-text", r === "small" && "text-sm", r === "medium" && "text-base", r === "large" && "text-lg"),
7985
+ className: y("mt-0.5 flex-1 font-mono font-medium tracking-normal text-default select-text", r === "small" && "text-sm", r === "medium" && "text-base", r === "large" && "text-lg"),
7982
7986
  children: e
7983
7987
  }),
7984
7988
  n && /* @__PURE__ */ o("span", {
7985
- className: b("mt-1.5 shrink-0", a && "opacity-100"),
7989
+ className: y("mt-1.5 shrink-0", a && "opacity-100"),
7986
7990
  children: l ? /* @__PURE__ */ o(W.div, {
7987
7991
  initial: { scale: 0.8 },
7988
7992
  animate: { scale: 1 },
@@ -7992,7 +7996,7 @@ function lg({ code: e, onSelectOrCopy: t, copyable: n = !0, fontSize: r = "mediu
7992
7996
  damping: 10
7993
7997
  },
7994
7998
  children: /* @__PURE__ */ o(Hn, { className: "h-3.5 w-3.5 text-emerald-500" })
7995
- }) : /* @__PURE__ */ o(of, { className: b("h-3.5 w-3.5 transition-colors", "text-body-muted group-hover:text-body") })
7999
+ }) : /* @__PURE__ */ o(of, { className: y("h-3.5 w-3.5 transition-colors", "text-body-muted group-hover:text-body") })
7996
8000
  })
7997
8001
  ]
7998
8002
  })
@@ -8064,7 +8068,7 @@ function fg({ steps: e, currentStep: t, completedSteps: n, onStepComplete: r })
8064
8068
  children: "Getting Started"
8065
8069
  })
8066
8070
  })
8067
- }), /* @__PURE__ */ o(ye, {
8071
+ }), /* @__PURE__ */ o(be, {
8068
8072
  initial: !1,
8069
8073
  children: /* @__PURE__ */ o(W.div, {
8070
8074
  initial: {
@@ -8124,7 +8128,7 @@ function fg({ steps: e, currentStep: t, completedSteps: n, onStepComplete: r })
8124
8128
  },
8125
8129
  children: /* @__PURE__ */ o("div", {
8126
8130
  className: "space-y-6",
8127
- children: /* @__PURE__ */ o(ye, {
8131
+ children: /* @__PURE__ */ o(be, {
8128
8132
  mode: "wait",
8129
8133
  children: f.map((p, h) => /* @__PURE__ */ o(W.div, {
8130
8134
  ...cg(h),
@@ -8185,7 +8189,7 @@ function pg({ steps: e, activeStep: t, isStepComplete: n, onSelectStep: r }) {
8185
8189
  children: a.title
8186
8190
  })
8187
8191
  })
8188
- }), /* @__PURE__ */ o(ye, {
8192
+ }), /* @__PURE__ */ o(be, {
8189
8193
  mode: "sync",
8190
8194
  children: l && /* @__PURE__ */ o(W.div, {
8191
8195
  id: `step-content-${i}`,
@@ -8241,12 +8245,12 @@ function mg({ isComplete: e, isActive: t, index: n }) {
8241
8245
  return /* @__PURE__ */ x("div", {
8242
8246
  className: "relative z-20 flex h-6 w-6 items-center justify-center",
8243
8247
  children: [/* @__PURE__ */ o(W.div, {
8244
- className: b("absolute inset-0 rounded-full", r),
8248
+ className: y("absolute inset-0 rounded-full", r),
8245
8249
  initial: !1
8246
8250
  }), /* @__PURE__ */ o(W.div, {
8247
- className: b("relative z-20 flex h-full w-full items-center justify-center rounded-full", r, a),
8251
+ className: y("relative z-20 flex h-full w-full items-center justify-center rounded-full", r, a),
8248
8252
  initial: !1,
8249
- children: /* @__PURE__ */ o(ye, {
8253
+ children: /* @__PURE__ */ o(be, {
8250
8254
  mode: "wait",
8251
8255
  children: e ? /* @__PURE__ */ o(W.div, {
8252
8256
  initial: {
@@ -8302,7 +8306,7 @@ function hg({ children: e, depth: t, expandedRowKeys: n }) {
8302
8306
  const d = new Set(l);
8303
8307
  return d.has(s) ? d.delete(s) : d.add(s), d;
8304
8308
  });
8305
- }, [r, a]);
8309
+ }, [a]);
8306
8310
  return /* @__PURE__ */ o(Fc.Provider, {
8307
8311
  value: {
8308
8312
  depth: t,
@@ -8361,7 +8365,7 @@ function Hc() {
8361
8365
  width: "64px"
8362
8366
  };
8363
8367
  }
8364
- function yg(e) {
8368
+ function bg(e) {
8365
8369
  if (process.env.NODE_ENV === "production") return;
8366
8370
  const t = /* @__PURE__ */ new Set();
8367
8371
  for (const n of e) {
@@ -8380,15 +8384,15 @@ var ii = fe(({ children: e, className: t, tableDepth: n, colWidths: r, cellPaddi
8380
8384
  children: /* @__PURE__ */ o("table", {
8381
8385
  style: { "--grid-template-columns": r },
8382
8386
  ref: s,
8383
- className: b(ra.table, "relative grid w-full caption-bottom [border-collapse:separate] [border-spacing:0] [grid-template-columns:var(--grid-template-columns)] overflow-x-auto overflow-y-hidden rounded-lg border text-sm", n > 1 && "rounded-none border-none", t),
8387
+ className: y(ra.table, "relative grid w-full caption-bottom [border-collapse:separate] [border-spacing:0] [grid-template-columns:var(--grid-template-columns)] overflow-x-auto overflow-y-hidden rounded-lg border text-sm", n > 1 && "rounded-none border-none", t),
8384
8388
  "data-cell-padding": a,
8385
8389
  children: e
8386
8390
  })
8387
8391
  }));
8388
- function bg(e) {
8389
- const { depth: t } = ia(), n = t + 1, r = se(null), a = se(null);
8392
+ function yg(e) {
8393
+ const { depth: t } = ia(), n = t + 1, r = ie(null), a = ie(null);
8390
8394
  let i = e.columns;
8391
- !Rt(e) && e.renderExpandedContent && (i = [Hc(), ...i]), yg(i);
8395
+ !Rt(e) && e.renderExpandedContent && (i = [Hc(), ...i]), bg(i);
8392
8396
  const s = pe(() => i.map((E) => E.width ?? "1fr").join(" "), [i]);
8393
8397
  if (Rt(e)) return /* @__PURE__ */ o(ii, {
8394
8398
  className: e.className,
@@ -8398,7 +8402,7 @@ function bg(e) {
8398
8402
  ref: a,
8399
8403
  children: e.children
8400
8404
  });
8401
- const { data: l, rowKey: d, onRowClick: f, onLoadMore: u, hasMore: p, noResultsMessage: h, renderGroupHeader: m, renderExpandedContent: g, className: v, hideHeader: y, cellPadding: C, sort: w, onSortChange: N } = e, [R, M] = j(!1), S = async () => {
8405
+ const { data: l, rowKey: d, onRowClick: f, onLoadMore: u, hasMore: p, noResultsMessage: h, renderGroupHeader: m, renderExpandedContent: g, className: v, hideHeader: b, cellPadding: C, sort: w, onSortChange: N } = e, [R, M] = j(!1), S = async () => {
8402
8406
  M(!0), await u?.(), M(!1);
8403
8407
  };
8404
8408
  return /* @__PURE__ */ x(ii, {
@@ -8410,7 +8414,7 @@ function bg(e) {
8410
8414
  expandedRowKeys: pe(() => {
8411
8415
  if (!ao(l)) return new Set(l.filter((E) => "defaultExpanded" in E && E.defaultExpanded).map((E) => d(E)));
8412
8416
  }, [l, d]),
8413
- children: [!y && /* @__PURE__ */ o(ui.Header, {
8417
+ children: [!b && /* @__PURE__ */ o(ui.Header, {
8414
8418
  columns: i,
8415
8419
  sort: w,
8416
8420
  onSortChange: N
@@ -8431,7 +8435,7 @@ function bg(e) {
8431
8435
  }
8432
8436
  function si({ className: e, children: t }) {
8433
8437
  return /* @__PURE__ */ o("thead", {
8434
- className: b("[grid-column:1/-1] grid [grid-template-columns:subgrid]", e),
8438
+ className: y("[grid-column:1/-1] grid [grid-template-columns:subgrid]", e),
8435
8439
  children: t
8436
8440
  });
8437
8441
  }
@@ -8470,7 +8474,7 @@ function Ng({ column: e, sort: t, onSortChange: n }) {
8470
8474
  children: e.header
8471
8475
  }), /* @__PURE__ */ o(i, {
8472
8476
  "aria-hidden": "true",
8473
- className: b("size-3.5 shrink-0 transition-colors", a ? "text-body" : "text-body-muted group-hover:text-body")
8477
+ className: y("size-3.5 shrink-0 transition-colors", a ? "text-body" : "text-body-muted group-hover:text-body")
8474
8478
  })]
8475
8479
  })
8476
8480
  });
@@ -8493,9 +8497,9 @@ function Sg(e) {
8493
8497
  }
8494
8498
  var li = fe(({ className: e, children: t }, n) => /* @__PURE__ */ o("tbody", {
8495
8499
  ref: n,
8496
- className: b("relative [grid-column:1/-1] grid [grid-template-columns:subgrid]", e),
8500
+ className: y("relative [grid-column:1/-1] grid [grid-template-columns:subgrid]", e),
8497
8501
  children: t
8498
- })), Eg = ee.forwardRef(function(t, n) {
8502
+ })), Eg = Q.forwardRef(function(t, n) {
8499
8503
  if (Rt(t)) return /* @__PURE__ */ o(li, {
8500
8504
  ref: n,
8501
8505
  className: t.className,
@@ -8520,7 +8524,7 @@ var li = fe(({ className: e, children: t }, n) => /* @__PURE__ */ o("tbody", {
8520
8524
  }, i(v));
8521
8525
  return /* @__PURE__ */ x(li, {
8522
8526
  ref: n,
8523
- className: b(s && "pb-16", h),
8527
+ className: y(s && "pb-16", h),
8524
8528
  children: [r.length === 0 ? /* @__PURE__ */ o(jc, { children: d }) : r.map(g), s && u && /* @__PURE__ */ o(kg, {
8525
8529
  columns: a,
8526
8530
  handleLoadMore: u,
@@ -8530,7 +8534,7 @@ var li = fe(({ className: e, children: t }, n) => /* @__PURE__ */ o("tbody", {
8530
8534
  });
8531
8535
  function ci({ className: e, children: t, onClick: n }) {
8532
8536
  return /* @__PURE__ */ o("tr", {
8533
- className: b("-z-0 [grid-column:1/-1] grid max-w-full [grid-template-columns:subgrid] border-b transition-colors last:border-none hover:bg-muted/50 data-[state=selected]:bg-muted", n && "cursor-pointer", e),
8537
+ className: y("-z-0 [grid-column:1/-1] grid max-w-full [grid-template-columns:subgrid] border-b transition-colors last:border-none hover:bg-muted/50 data-[state=selected]:bg-muted", n && "cursor-pointer", e),
8534
8538
  onClick: n,
8535
8539
  children: t
8536
8540
  });
@@ -8575,13 +8579,13 @@ function Rg({ row: e, onClick: t, columns: n, rowKey: r, renderExpandedContent:
8575
8579
  ]), h = n.find((g) => g.key === Hc().key);
8576
8580
  h && (h.render = p);
8577
8581
  let m = t;
8578
- return !t && u && (m = () => l(r(e))), /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(fr, {
8582
+ return !t && u && (m = () => l(r(e))), /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(fr, {
8579
8583
  row: e,
8580
8584
  onClick: m,
8581
8585
  columns: n,
8582
8586
  className: i
8583
8587
  }), /* @__PURE__ */ o("div", {
8584
- className: b("[grid-column:1/-1] grid overflow-hidden transition-[grid-template-rows] duration-300", d ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
8588
+ className: y("[grid-column:1/-1] grid overflow-hidden transition-[grid-template-rows] duration-300", d ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
8585
8589
  children: /* @__PURE__ */ o("div", {
8586
8590
  className: "min-h-0 overflow-auto",
8587
8591
  children: u
@@ -8590,7 +8594,7 @@ function Rg({ row: e, onClick: t, columns: n, rowKey: r, renderExpandedContent:
8590
8594
  }
8591
8595
  function Vc({ group: e, columns: t, rowKey: n, renderGroupHeader: r, className: a, onRowClick: i }) {
8592
8596
  return /* @__PURE__ */ x("div", {
8593
- className: b("[grid-column:1/-1] grid [grid-template-columns:subgrid]", a),
8597
+ className: y("[grid-column:1/-1] grid [grid-template-columns:subgrid]", a),
8594
8598
  children: [/* @__PURE__ */ o("div", {
8595
8599
  className: "[grid-column:1/-1]",
8596
8600
  children: r?.(e)
@@ -8603,7 +8607,7 @@ function Vc({ group: e, columns: t, rowKey: n, renderGroupHeader: r, className:
8603
8607
  }
8604
8608
  function di({ children: e, className: t }) {
8605
8609
  return /* @__PURE__ */ x("td", {
8606
- className: b(ra.tableCell, "flex max-w-full items-center", t),
8610
+ className: y(ra.tableCell, "flex max-w-full items-center", t),
8607
8611
  children: [/* @__PURE__ */ o(Wc, {}), e]
8608
8612
  });
8609
8613
  }
@@ -8620,7 +8624,7 @@ function la(e) {
8620
8624
  }
8621
8625
  function jc({ className: e, children: t }) {
8622
8626
  return /* @__PURE__ */ o(({ children: a, className: i }) => /* @__PURE__ */ o("div", {
8623
- className: b("[grid-column:1/-1] grid [grid-template-columns:subgrid]", i),
8627
+ className: y("[grid-column:1/-1] grid [grid-template-columns:subgrid]", i),
8624
8628
  children: a
8625
8629
  }), {
8626
8630
  className: e,
@@ -8633,25 +8637,25 @@ function jc({ className: e, children: t }) {
8633
8637
  function kg({ columns: e, handleLoadMore: t, isLoading: n }) {
8634
8638
  const r = ({ children: i, className: s }) => /* @__PURE__ */ o("tr", {
8635
8639
  style: { "--grid-template-columns": e.map((l) => l.width ?? "1fr").join(" ") },
8636
- className: b("absolute right-0 bottom-0 left-0 -z-0 [grid-column:1/-1] grid min-h-16 max-w-full cursor-pointer [grid-template-columns:var(--grid-template-columns)] items-center border-b opacity-30 transition-colors", s),
8640
+ className: y("absolute right-0 bottom-0 left-0 -z-0 [grid-column:1/-1] grid min-h-16 max-w-full cursor-pointer [grid-template-columns:var(--grid-template-columns)] items-center border-b opacity-30 transition-colors", s),
8637
8641
  children: i
8638
8642
  }), a = ({ children: i }) => /* @__PURE__ */ o("div", {
8639
8643
  className: "absolute right-0 bottom-0 left-0 z-10 flex min-h-14 w-full items-center justify-center py-4",
8640
8644
  children: i
8641
8645
  });
8642
- return /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(r, {
8643
- className: b(n && "animate-pulse opacity-100 duration-[2.5s]"),
8646
+ return /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(r, {
8647
+ className: y(n && "animate-pulse opacity-100 duration-[2.5s]"),
8644
8648
  children: e.map((i) => /* @__PURE__ */ o(la, { children: /* @__PURE__ */ o("div", { className: "h-4 w-full rounded bg-muted" }) }, i.key.toString()))
8645
8649
  }), /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o("button", {
8646
8650
  className: "inline-flex h-9 items-center justify-center gap-2 rounded-md border border-input bg-background px-4 py-2 text-sm font-medium whitespace-nowrap normal-case transition-colors select-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8647
8651
  onClick: t,
8648
- children: n ? /* @__PURE__ */ x(ie, { children: ["Loading", /* @__PURE__ */ o(lf, { className: "animate-spin" })] }) : "Load more"
8652
+ children: n ? /* @__PURE__ */ x(se, { children: ["Loading", /* @__PURE__ */ o(lf, { className: "animate-spin" })] }) : "Load more"
8649
8653
  }) })] });
8650
8654
  }
8651
8655
  function Jr({ className: e, children: t, ...n }) {
8652
8656
  return /* @__PURE__ */ x("th", {
8653
8657
  ...n,
8654
- className: b(ra.tableHeader, "flex items-center align-middle font-medium whitespace-nowrap text-body select-none", e),
8658
+ className: y(ra.tableHeader, "flex items-center align-middle font-medium whitespace-nowrap text-body select-none", e),
8655
8659
  children: [/* @__PURE__ */ o(Wc, {}), t]
8656
8660
  });
8657
8661
  }
@@ -8665,7 +8669,7 @@ function Rt(e) {
8665
8669
  function Mg(e, t) {
8666
8670
  return typeof e == "string" && Object.keys(t).includes(e);
8667
8671
  }
8668
- var ui = Object.assign(bg, {
8672
+ var ui = Object.assign(yg, {
8669
8673
  Header: Object.assign(Sg, { Cell: Jr }),
8670
8674
  Body: Eg,
8671
8675
  Row: fr,
@@ -8689,7 +8693,7 @@ function t5({ value: e, onChange: t, placeholder: n, disabled: r, icon: a, multi
8689
8693
  ...d,
8690
8694
  onFocus: p,
8691
8695
  onBlur: h,
8692
- className: b("h-full w-full bg-surface-primary-default text-sm text-default shadow-none outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:opacity-50", f && "placeholder:text-default")
8696
+ className: y("h-full w-full bg-surface-primary-default text-sm text-default shadow-none outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:opacity-50", f && "placeholder:text-default")
8693
8697
  });
8694
8698
  return i && (g = /* @__PURE__ */ o("textarea", {
8695
8699
  ...m,
@@ -8698,9 +8702,9 @@ function t5({ value: e, onChange: t, placeholder: n, disabled: r, icon: a, multi
8698
8702
  onBlur: h,
8699
8703
  cols: 30,
8700
8704
  rows: 10,
8701
- className: b("my-2 h-full max-h-60 min-h-16 w-full bg-surface-primary-default px-3 py-3 text-sm text-default shadow-none outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:opacity-50", f && "placeholder:text-default")
8705
+ className: y("my-2 h-full max-h-60 min-h-16 w-full bg-surface-primary-default px-3 py-3 text-sm text-default shadow-none outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:opacity-50", f && "placeholder:text-default")
8702
8706
  })), /* @__PURE__ */ x("div", {
8703
- className: b("flex items-center gap-3 rounded-md border border-input bg-surface-primary-default px-4 py-3 text-muted-foreground", a && "px-3", f && "border-focus text-default", s && "border-destructive-default", l),
8707
+ className: y("flex items-center gap-3 rounded-md border border-input bg-surface-primary-default px-4 py-3 text-muted-foreground", a && "px-3", f && "border-focus text-default", s && "border-destructive-default", l),
8704
8708
  children: [a && /* @__PURE__ */ o(K, {
8705
8709
  name: a,
8706
8710
  size: "small"
@@ -8747,7 +8751,7 @@ var Pg = "_pageHeader_qvbvl_1", _g = "_contextBar_qvbvl_6", Ig = "_titleBar_qvbv
8747
8751
  return /* @__PURE__ */ x(p, {
8748
8752
  ref: u,
8749
8753
  target: a,
8750
- className: b(Og({
8754
+ className: y(Og({
8751
8755
  size: n,
8752
8756
  variant: t
8753
8757
  }), h, l),
@@ -8777,19 +8781,19 @@ var Pg = "_pageHeader_qvbvl_1", _g = "_contextBar_qvbvl_6", Ig = "_titleBar_qvbv
8777
8781
  });
8778
8782
  Gc.displayName = "Link";
8779
8783
  var $g = ({ children: e, underline: t, variant: n }) => /* @__PURE__ */ o("span", {
8780
- className: b(Uc({
8784
+ className: y(Uc({
8781
8785
  underline: t,
8782
8786
  variant: n
8783
8787
  })),
8784
8788
  children: e
8785
8789
  }), fi = ({ children: e, size: t }) => /* @__PURE__ */ o("span", {
8786
- className: b(Dg({ size: t })),
8790
+ className: y(Dg({ size: t })),
8787
8791
  children: e
8788
8792
  }), zg = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8789
- className: b("page-header group/page-header", It.pageHeader, t),
8793
+ className: y("page-header group/page-header", It.pageHeader, t),
8790
8794
  children: e
8791
8795
  }), Kc = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8792
- className: b(It.contextBar, "context-bar flex flex-row items-center justify-start pt-6", t),
8796
+ className: y(It.contextBar, "context-bar flex flex-row items-center justify-start pt-6", t),
8793
8797
  children: e
8794
8798
  });
8795
8799
  Kc.displayName = "PageHeader.ContextBar";
@@ -8804,36 +8808,36 @@ var Xc = ({ children: e, className: t, onClick: n, href: r }) => /* @__PURE__ */
8804
8808
  });
8805
8809
  Xc.displayName = "PageHeader.ParentLink";
8806
8810
  var Zc = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8807
- className: b(It.titleBar, "flex flex-row items-center justify-between gap-4 border-b py-10 group-has-[.context-bar]/page-header:pt-8", t),
8811
+ className: y(It.titleBar, "flex flex-row items-center justify-between gap-4 border-b py-10 group-has-[.context-bar]/page-header:pt-8", t),
8808
8812
  children: e
8809
8813
  });
8810
8814
  Zc.displayName = "PageHeader.TitleBar";
8811
8815
  var Yc = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8812
- className: b(It.titleArea, "flex flex-row items-center gap-2", t),
8816
+ className: y(It.titleArea, "flex flex-row items-center gap-2", t),
8813
8817
  children: e
8814
8818
  });
8815
8819
  Yc.displayName = "PageHeader.TitleArea";
8816
8820
  var qc = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8817
- className: b("order-1", t),
8821
+ className: y("order-1", t),
8818
8822
  children: e
8819
8823
  });
8820
8824
  qc.displayName = "PageHeader.LeadingVisual";
8821
8825
  var Jc = ({ children: e, className: t, viewTransitionName: n }) => /* @__PURE__ */ o($e, {
8822
8826
  variant: "xl",
8823
- className: b("order-2 flex-1", t),
8827
+ className: y("order-2 flex-1", t),
8824
8828
  viewTransitionName: n,
8825
8829
  children: e
8826
8830
  });
8827
8831
  Jc.displayName = "PageHeader.Title";
8828
8832
  var Qc = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8829
- className: b(It.actions, "flex min-w-max flex-row items-start justify-end gap-2", t),
8833
+ className: y(It.actions, "flex min-w-max flex-row items-start justify-end gap-2", t),
8830
8834
  children: e
8831
8835
  });
8832
8836
  Qc.displayName = "PageHeader.Actions";
8833
8837
  var ed = ({ children: e, className: t }) => {
8834
- const n = jn(), r = de.toArray(e).filter((s) => ee.isValidElement(s) && s.type === ca), a = de.count(r), i = n === "xs" || n === "sm";
8838
+ const n = jn(), r = de.toArray(e).filter((s) => Q.isValidElement(s) && s.type === ca), a = de.count(r), i = n === "xs" || n === "sm";
8835
8839
  return /* @__PURE__ */ o("div", {
8836
- className: b(It.footer, "flex w-full flex-col flex-wrap items-stretch justify-start gap-y-2 border-b py-6 md:flex-row md:gap-y-4", t),
8840
+ className: y(It.footer, "flex w-full flex-col flex-wrap items-stretch justify-start gap-y-2 border-b py-6 md:flex-row md:gap-y-4", t),
8837
8841
  children: de.map(r, (s, l) => /* @__PURE__ */ x(Ni, { children: [s, l < a - 1 && /* @__PURE__ */ o(td.FooterItem, { children: /* @__PURE__ */ o(mo, {
8838
8842
  orientation: i ? "horizontal" : "vertical",
8839
8843
  className: "footer-item-separator md:mx-6"
@@ -8842,7 +8846,7 @@ var ed = ({ children: e, className: t }) => {
8842
8846
  };
8843
8847
  ed.displayName = "PageHeader.Footer";
8844
8848
  var ca = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
8845
- className: b("flex flex-row items-center [&:has(.footer-item-separator)]:hidden [&:has(.footer-item-separator)]:md:flex", t),
8849
+ className: y("flex flex-row items-center [&:has(.footer-item-separator)]:hidden [&:has(.footer-item-separator)]:md:flex", t),
8846
8850
  children: e
8847
8851
  });
8848
8852
  ca.displayName = "PageHeader.FooterItem";
@@ -8884,8 +8888,9 @@ function n5({ href: e, icon: t, text: n, target: r = "_blank", title: a, classNa
8884
8888
  }, [t]), /* @__PURE__ */ x("a", {
8885
8889
  href: e,
8886
8890
  target: r,
8891
+ rel: r === "_blank" ? "noopener noreferrer" : void 0,
8887
8892
  title: a,
8888
- className: b("inline-flex flex-row items-center gap-1.5 rounded-xl border px-3.5 py-2 text-zinc-700 transition-colors duration-500 hover:border-zinc-300 hover:bg-zinc-50 hover:text-black dark:text-zinc-300 dark:hover:border-zinc-700 dark:hover:bg-zinc-900 hover:dark:text-white", i),
8893
+ className: y("inline-flex flex-row items-center gap-1.5 rounded-xl border px-3.5 py-2 text-zinc-700 transition-colors duration-500 hover:border-zinc-300 hover:bg-zinc-50 hover:text-black dark:text-zinc-300 dark:hover:border-zinc-700 dark:hover:bg-zinc-900 hover:dark:text-white", i),
8889
8894
  children: [s ? /* @__PURE__ */ o(s, {}) : /* @__PURE__ */ o(K, { name: "external-link" }), /* @__PURE__ */ o("p", {
8890
8895
  className: "text-xs font-normal",
8891
8896
  children: n
@@ -8927,7 +8932,7 @@ var Hg = {
8927
8932
  };
8928
8933
  function r5({ language: e, className: t, indicatorOnly: n = !1 }) {
8929
8934
  return /* @__PURE__ */ x("div", {
8930
- className: b("gap flex items-center gap-2 select-none", t),
8935
+ className: y("flex items-center gap-2 select-none", t),
8931
8936
  children: [/* @__PURE__ */ o("div", { className: `mx-1 h-2 w-2 rounded-full ${Vg[e]}` }), !n && /* @__PURE__ */ o("span", {
8932
8937
  className: "font-medium text-body",
8933
8938
  children: Hg[e]
@@ -8937,7 +8942,7 @@ function r5({ language: e, className: t, indicatorOnly: n = !1 }) {
8937
8942
  function o5({ href: e, prNumber: t, status: n = "open", target: r = "_blank", className: a }) {
8938
8943
  const i = t ?? (e.split("/").pop() || "Unknown");
8939
8944
  return /* @__PURE__ */ x("a", {
8940
- className: b("inline-flex flex-row items-center gap-1 rounded-lg border px-1.5 py-1 text-sm transition-colors duration-500 hover:bg-muted-foreground/5", a),
8945
+ className: y("inline-flex flex-row items-center gap-1 rounded-lg border px-1.5 py-1 text-sm transition-colors duration-500 hover:bg-muted-foreground/5", a),
8941
8946
  href: e,
8942
8947
  target: r,
8943
8948
  children: [/* @__PURE__ */ o("span", {
@@ -8982,7 +8987,7 @@ var Ug = [
8982
8987
  "ArrowUp",
8983
8988
  "ArrowDown"
8984
8989
  ], Gg = [" ", "Enter"], ft = "Select", [pr, mr, Kg] = Wo(ft), [Tt, a5] = Be(ft, [Kg, Qe]), hr = Qe(), [Xg, nt] = Tt(ft), [Zg, Yg] = Tt(ft), rd = (e) => {
8985
- const { __scopeSelect: t, children: n, open: r, defaultOpen: a, onOpenChange: i, value: s, defaultValue: l, onValueChange: d, dir: f, name: u, autoComplete: p, disabled: h, required: m, form: g } = e, v = hr(t), [y, C] = c.useState(null), [w, N] = c.useState(null), [R, M] = c.useState(!1), S = Uo(f), [E, k] = je({
8990
+ const { __scopeSelect: t, children: n, open: r, defaultOpen: a, onOpenChange: i, value: s, defaultValue: l, onValueChange: d, dir: f, name: u, autoComplete: p, disabled: h, required: m, form: g } = e, v = hr(t), [b, C] = c.useState(null), [w, N] = c.useState(null), [R, M] = c.useState(!1), S = Uo(f), [E, k] = je({
8986
8991
  prop: r,
8987
8992
  defaultProp: a ?? !1,
8988
8993
  onChange: i,
@@ -8992,13 +8997,13 @@ var Ug = [
8992
8997
  defaultProp: l,
8993
8998
  onChange: d,
8994
8999
  caller: ft
8995
- }), _ = c.useRef(null), L = y ? g || !!y.closest("form") : !0, [B, V] = c.useState(/* @__PURE__ */ new Set()), U = Array.from(B).map((G) => G.props.value).join(";");
9000
+ }), _ = c.useRef(null), L = b ? g || !!b.closest("form") : !0, [B, V] = c.useState(/* @__PURE__ */ new Set()), U = Array.from(B).map((G) => G.props.value).join(";");
8996
9001
  return /* @__PURE__ */ o(Jt, {
8997
9002
  ...v,
8998
9003
  children: /* @__PURE__ */ x(Xg, {
8999
9004
  required: m,
9000
9005
  scope: t,
9001
- trigger: y,
9006
+ trigger: b,
9002
9007
  onTriggerChange: C,
9003
9008
  valueNode: w,
9004
9009
  onValueNodeChange: N,
@@ -9045,7 +9050,7 @@ var Ug = [
9045
9050
  rd.displayName = ft;
9046
9051
  var od = "SelectTrigger", ad = c.forwardRef((e, t) => {
9047
9052
  const { __scopeSelect: n, disabled: r = !1, ...a } = e, i = hr(n), s = nt(od, n), l = s.disabled || r, d = te(t, s.onTriggerChange), f = mr(n), u = c.useRef("touch"), [p, h, m] = _d((v) => {
9048
- const y = f().filter((w) => !w.disabled), C = Id(y, v, y.find((w) => w.value === s.value));
9053
+ const b = f().filter((w) => !w.disabled), C = Id(b, v, b.find((w) => w.value === s.value));
9049
9054
  C !== void 0 && s.onValueChange(C.value);
9050
9055
  }), g = (v) => {
9051
9056
  l || (s.onOpenChange(!0), m()), v && (s.triggerPointerDownPosRef.current = {
@@ -9075,12 +9080,12 @@ var od = "SelectTrigger", ad = c.forwardRef((e, t) => {
9075
9080
  }),
9076
9081
  onPointerDown: z(a.onPointerDown, (v) => {
9077
9082
  u.current = v.pointerType;
9078
- const y = v.target;
9079
- y.hasPointerCapture(v.pointerId) && y.releasePointerCapture(v.pointerId), v.button === 0 && v.ctrlKey === !1 && v.pointerType === "mouse" && (g(v), v.preventDefault());
9083
+ const b = v.target;
9084
+ b.hasPointerCapture(v.pointerId) && b.releasePointerCapture(v.pointerId), v.button === 0 && v.ctrlKey === !1 && v.pointerType === "mouse" && (g(v), v.preventDefault());
9080
9085
  }),
9081
9086
  onKeyDown: z(a.onKeyDown, (v) => {
9082
- const y = p.current !== "";
9083
- !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && h(v.key), !(y && v.key === " ") && Ug.includes(v.key) && (g(), v.preventDefault());
9087
+ const b = p.current !== "";
9088
+ !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && h(v.key), !(b && v.key === " ") && Ug.includes(v.key) && (g(), v.preventDefault());
9084
9089
  })
9085
9090
  })
9086
9091
  });
@@ -9094,7 +9099,7 @@ var id = "SelectValue", sd = c.forwardRef((e, t) => {
9094
9099
  ...l,
9095
9100
  ref: p,
9096
9101
  style: { pointerEvents: "none" },
9097
- children: Pd(d.value) ? /* @__PURE__ */ o(ie, { children: s }) : i
9102
+ children: Pd(d.value) ? /* @__PURE__ */ o(se, { children: s }) : i
9098
9103
  });
9099
9104
  });
9100
9105
  sd.displayName = id;
@@ -9134,14 +9139,14 @@ var pt = "SelectContent", dd = c.forwardRef((e, t) => {
9134
9139
  });
9135
9140
  dd.displayName = pt;
9136
9141
  var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ lt("SelectContent.RemoveScroll"), fd = c.forwardRef((e, t) => {
9137
- const { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: i, onPointerDownOutside: s, side: l, sideOffset: d, align: f, alignOffset: u, arrowPadding: p, collisionBoundary: h, collisionPadding: m, sticky: g, hideWhenDetached: v, avoidCollisions: y, ...C } = e, w = nt(pt, n), [N, R] = c.useState(null), [M, S] = c.useState(null), E = te(t, (A) => R(A)), [k, T] = c.useState(null), [I, _] = c.useState(null), L = mr(n), [B, V] = c.useState(!1), U = c.useRef(!1);
9142
+ const { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: i, onPointerDownOutside: s, side: l, sideOffset: d, align: f, alignOffset: u, arrowPadding: p, collisionBoundary: h, collisionPadding: m, sticky: g, hideWhenDetached: v, avoidCollisions: b, ...C } = e, w = nt(pt, n), [N, R] = c.useState(null), [M, S] = c.useState(null), E = te(t, (A) => R(A)), [k, T] = c.useState(null), [I, _] = c.useState(null), L = mr(n), [B, V] = c.useState(!1), U = c.useRef(!1);
9138
9143
  c.useEffect(() => {
9139
9144
  if (N) return Kn(N);
9140
9145
  }, [N]), Un();
9141
9146
  const G = c.useCallback((A) => {
9142
- const [Q, ...Y] = L().map((ve) => ve.ref.current), [J] = Y.slice(-1), Ne = document.activeElement;
9147
+ const [ee, ...Y] = L().map((ve) => ve.ref.current), [J] = Y.slice(-1), Ne = document.activeElement;
9143
9148
  for (const ve of A)
9144
- if (ve === Ne || (ve?.scrollIntoView({ block: "nearest" }), ve === Q && M && (M.scrollTop = 0), ve === J && M && (M.scrollTop = M.scrollHeight), ve?.focus(), document.activeElement !== Ne)) return;
9149
+ if (ve === Ne || (ve?.scrollIntoView({ block: "nearest" }), ve === ee && M && (M.scrollTop = 0), ve === J && M && (M.scrollTop = M.scrollHeight), ve?.focus(), document.activeElement !== Ne)) return;
9145
9150
  }, [L, M]), H = c.useCallback(() => G([k, N]), [
9146
9151
  G,
9147
9152
  k,
@@ -9157,19 +9162,19 @@ var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ l
9157
9162
  x: 0,
9158
9163
  y: 0
9159
9164
  };
9160
- const Q = (J) => {
9165
+ const ee = (J) => {
9161
9166
  A = {
9162
9167
  x: Math.abs(Math.round(J.pageX) - (O.current?.x ?? 0)),
9163
9168
  y: Math.abs(Math.round(J.pageY) - (O.current?.y ?? 0))
9164
9169
  };
9165
9170
  }, Y = (J) => {
9166
- A.x <= 10 && A.y <= 10 ? J.preventDefault() : N.contains(J.target) || $(!1), document.removeEventListener("pointermove", Q), O.current = null;
9171
+ A.x <= 10 && A.y <= 10 ? J.preventDefault() : N.contains(J.target) || $(!1), document.removeEventListener("pointermove", ee), O.current = null;
9167
9172
  };
9168
- return O.current !== null && (document.addEventListener("pointermove", Q), document.addEventListener("pointerup", Y, {
9173
+ return O.current !== null && (document.addEventListener("pointermove", ee), document.addEventListener("pointerup", Y, {
9169
9174
  capture: !0,
9170
9175
  once: !0
9171
9176
  })), () => {
9172
- document.removeEventListener("pointermove", Q), document.removeEventListener("pointerup", Y, { capture: !0 });
9177
+ document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", Y, { capture: !0 });
9173
9178
  };
9174
9179
  }
9175
9180
  }, [
@@ -9183,14 +9188,14 @@ var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ l
9183
9188
  };
9184
9189
  }, [$]);
9185
9190
  const [oe, ne] = _d((A) => {
9186
- const Q = L().filter((J) => !J.disabled), Y = Id(Q, A, Q.find((J) => J.ref.current === document.activeElement));
9191
+ const ee = L().filter((J) => !J.disabled), Y = Id(ee, A, ee.find((J) => J.ref.current === document.activeElement));
9187
9192
  Y && setTimeout(() => Y.ref.current.focus());
9188
- }), P = c.useCallback((A, Q, Y) => {
9193
+ }), P = c.useCallback((A, ee, Y) => {
9189
9194
  const J = !U.current && !Y;
9190
- (w.value !== void 0 && w.value === Q || J) && (T(A), J && (U.current = !0));
9191
- }, [w.value]), F = c.useCallback(() => N?.focus(), [N]), X = c.useCallback((A, Q, Y) => {
9195
+ (w.value !== void 0 && w.value === ee || J) && (T(A), J && (U.current = !0));
9196
+ }, [w.value]), F = c.useCallback(() => N?.focus(), [N]), X = c.useCallback((A, ee, Y) => {
9192
9197
  const J = !U.current && !Y;
9193
- (w.value !== void 0 && w.value === Q || J) && _(A);
9198
+ (w.value !== void 0 && w.value === ee || J) && _(A);
9194
9199
  }, [w.value]), D = r === "popper" ? Qr : pd, Z = D === Qr ? {
9195
9200
  side: l,
9196
9201
  sideOffset: d,
@@ -9201,7 +9206,7 @@ var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ l
9201
9206
  collisionPadding: m,
9202
9207
  sticky: g,
9203
9208
  hideWhenDetached: v,
9204
- avoidCollisions: y
9209
+ avoidCollisions: b
9205
9210
  } : {};
9206
9211
  return /* @__PURE__ */ o(ud, {
9207
9212
  scope: n,
@@ -9253,8 +9258,8 @@ var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ l
9253
9258
  ...C.style
9254
9259
  },
9255
9260
  onKeyDown: z(C.onKeyDown, (A) => {
9256
- const Q = A.ctrlKey || A.altKey || A.metaKey;
9257
- if (A.key === "Tab" && A.preventDefault(), !Q && A.key.length === 1 && ne(A.key), [
9261
+ const ee = A.ctrlKey || A.altKey || A.metaKey;
9262
+ if (A.key === "Tab" && A.preventDefault(), !ee && A.key.length === 1 && ne(A.key), [
9258
9263
  "ArrowUp",
9259
9264
  "ArrowDown",
9260
9265
  "Home",
@@ -9276,26 +9281,26 @@ var ke = 10, [ud, rt] = Tt(pt), Qg = "SelectContentImpl", e3 = /* @__PURE__ */ l
9276
9281
  });
9277
9282
  fd.displayName = Qg;
9278
9283
  var t3 = "SelectItemAlignedPosition", pd = c.forwardRef((e, t) => {
9279
- const { __scopeSelect: n, onPlaced: r, ...a } = e, i = nt(pt, n), s = rt(pt, n), [l, d] = c.useState(null), [f, u] = c.useState(null), p = te(t, (S) => u(S)), h = mr(n), m = c.useRef(!1), g = c.useRef(!0), { viewport: v, selectedItem: y, selectedItemText: C, focusSelectedItem: w } = s, N = c.useCallback(() => {
9280
- if (i.trigger && i.valueNode && l && f && v && y && C) {
9284
+ const { __scopeSelect: n, onPlaced: r, ...a } = e, i = nt(pt, n), s = rt(pt, n), [l, d] = c.useState(null), [f, u] = c.useState(null), p = te(t, (S) => u(S)), h = mr(n), m = c.useRef(!1), g = c.useRef(!0), { viewport: v, selectedItem: b, selectedItemText: C, focusSelectedItem: w } = s, N = c.useCallback(() => {
9285
+ if (i.trigger && i.valueNode && l && f && v && b && C) {
9281
9286
  const S = i.trigger.getBoundingClientRect(), E = f.getBoundingClientRect(), k = i.valueNode.getBoundingClientRect(), T = C.getBoundingClientRect();
9282
9287
  if (i.dir !== "rtl") {
9283
- const Y = T.left - E.left, J = k.left - Y, Ne = S.left - J, ve = S.width + Ne, Ge = Math.max(ve, E.width), gr = window.innerWidth - ke, yr = pi(J, [ke, Math.max(ke, gr - Ge)]);
9284
- l.style.minWidth = ve + "px", l.style.left = yr + "px";
9288
+ const Y = T.left - E.left, J = k.left - Y, Ne = S.left - J, ve = S.width + Ne, Ge = Math.max(ve, E.width), gr = window.innerWidth - ke, br = pi(J, [ke, Math.max(ke, gr - Ge)]);
9289
+ l.style.minWidth = ve + "px", l.style.left = br + "px";
9285
9290
  } else {
9286
- const Y = E.right - T.right, J = window.innerWidth - k.right - Y, Ne = window.innerWidth - S.right - J, ve = S.width + Ne, Ge = Math.max(ve, E.width), gr = window.innerWidth - ke, yr = pi(J, [ke, Math.max(ke, gr - Ge)]);
9287
- l.style.minWidth = ve + "px", l.style.right = yr + "px";
9291
+ const Y = E.right - T.right, J = window.innerWidth - k.right - Y, Ne = window.innerWidth - S.right - J, ve = S.width + Ne, Ge = Math.max(ve, E.width), gr = window.innerWidth - ke, br = pi(J, [ke, Math.max(ke, gr - Ge)]);
9292
+ l.style.minWidth = ve + "px", l.style.right = br + "px";
9288
9293
  }
9289
- const I = h(), _ = window.innerHeight - ke * 2, L = v.scrollHeight, B = window.getComputedStyle(f), V = parseInt(B.borderTopWidth, 10), U = parseInt(B.paddingTop, 10), G = parseInt(B.borderBottomWidth, 10), H = parseInt(B.paddingBottom, 10), $ = V + U + L + H + G, O = Math.min(y.offsetHeight * 5, $), oe = window.getComputedStyle(v), ne = parseInt(oe.paddingTop, 10), P = parseInt(oe.paddingBottom, 10), F = S.top + S.height / 2 - ke, X = _ - F, D = y.offsetHeight / 2, Z = y.offsetTop + D, A = V + U + Z, Q = $ - A;
9294
+ const I = h(), _ = window.innerHeight - ke * 2, L = v.scrollHeight, B = window.getComputedStyle(f), V = parseInt(B.borderTopWidth, 10), U = parseInt(B.paddingTop, 10), G = parseInt(B.borderBottomWidth, 10), H = parseInt(B.paddingBottom, 10), $ = V + U + L + H + G, O = Math.min(b.offsetHeight * 5, $), oe = window.getComputedStyle(v), ne = parseInt(oe.paddingTop, 10), P = parseInt(oe.paddingBottom, 10), F = S.top + S.height / 2 - ke, X = _ - F, D = b.offsetHeight / 2, Z = b.offsetTop + D, A = V + U + Z, ee = $ - A;
9290
9295
  if (A <= F) {
9291
- const Y = I.length > 0 && y === I[I.length - 1].ref.current;
9296
+ const Y = I.length > 0 && b === I[I.length - 1].ref.current;
9292
9297
  l.style.bottom = "0px";
9293
9298
  const J = f.clientHeight - v.offsetTop - v.offsetHeight, Ne = A + Math.max(X, D + (Y ? P : 0) + J + G);
9294
9299
  l.style.height = Ne + "px";
9295
9300
  } else {
9296
- const Y = I.length > 0 && y === I[0].ref.current;
9301
+ const Y = I.length > 0 && b === I[0].ref.current;
9297
9302
  l.style.top = "0px";
9298
- const J = Math.max(F, V + v.offsetTop + (Y ? ne : 0) + D) + Q;
9303
+ const J = Math.max(F, V + v.offsetTop + (Y ? ne : 0) + D) + ee;
9299
9304
  l.style.height = J + "px", v.scrollTop = A - F + v.offsetTop;
9300
9305
  }
9301
9306
  l.style.margin = `${ke}px 0`, l.style.minHeight = O + "px", l.style.maxHeight = _ + "px", r?.(), requestAnimationFrame(() => m.current = !0);
@@ -9307,7 +9312,7 @@ var t3 = "SelectItemAlignedPosition", pd = c.forwardRef((e, t) => {
9307
9312
  l,
9308
9313
  f,
9309
9314
  v,
9310
- y,
9315
+ b,
9311
9316
  C,
9312
9317
  i.dir,
9313
9318
  r
@@ -9366,7 +9371,7 @@ var n3 = "SelectPopperPosition", Qr = c.forwardRef((e, t) => {
9366
9371
  Qr.displayName = n3;
9367
9372
  var [r3, da] = Tt(pt, {}), eo = "SelectViewport", md = c.forwardRef((e, t) => {
9368
9373
  const { __scopeSelect: n, nonce: r, ...a } = e, i = rt(eo, n), s = da(eo, n), l = te(t, i.onViewportChange), d = c.useRef(0);
9369
- return /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o("style", {
9374
+ return /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o("style", {
9370
9375
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
9371
9376
  nonce: r
9372
9377
  }), /* @__PURE__ */ o(pr.Slot, {
@@ -9387,7 +9392,7 @@ var [r3, da] = Tt(pt, {}), eo = "SelectViewport", md = c.forwardRef((e, t) => {
9387
9392
  if (h?.current && p) {
9388
9393
  const m = Math.abs(d.current - u.scrollTop);
9389
9394
  if (m > 0) {
9390
- const g = window.innerHeight - ke * 2, v = parseFloat(p.style.minHeight), y = parseFloat(p.style.height), C = Math.max(v, y);
9395
+ const g = window.innerHeight - ke * 2, v = parseFloat(p.style.minHeight), b = parseFloat(p.style.height), C = Math.max(v, b);
9391
9396
  if (C < g) {
9392
9397
  const w = C + m, N = Math.min(g, w), R = w - N;
9393
9398
  p.style.height = N + "px", p.style.bottom === "0px" && (u.scrollTop = R > 0 ? R : 0, p.style.justifyContent = "flex-end");
@@ -9414,7 +9419,7 @@ var hd = "SelectGroup", [o3, a3] = Tt(hd), vd = c.forwardRef((e, t) => {
9414
9419
  });
9415
9420
  });
9416
9421
  vd.displayName = hd;
9417
- var gd = "SelectLabel", yd = c.forwardRef((e, t) => {
9422
+ var gd = "SelectLabel", bd = c.forwardRef((e, t) => {
9418
9423
  const { __scopeSelect: n, ...r } = e, a = a3(gd, n);
9419
9424
  return /* @__PURE__ */ o(q.div, {
9420
9425
  id: a.id,
@@ -9422,9 +9427,9 @@ var gd = "SelectLabel", yd = c.forwardRef((e, t) => {
9422
9427
  ref: t
9423
9428
  });
9424
9429
  });
9425
- yd.displayName = gd;
9426
- var zn = "SelectItem", [i3, bd] = Tt(zn), xd = c.forwardRef((e, t) => {
9427
- const { __scopeSelect: n, value: r, disabled: a = !1, textValue: i, ...s } = e, l = nt(zn, n), d = rt(zn, n), f = l.value === r, [u, p] = c.useState(i ?? ""), [h, m] = c.useState(!1), g = te(t, (w) => d.itemRefCallback?.(w, r, a)), v = ue(), y = c.useRef("touch"), C = () => {
9430
+ bd.displayName = gd;
9431
+ var zn = "SelectItem", [i3, yd] = Tt(zn), xd = c.forwardRef((e, t) => {
9432
+ const { __scopeSelect: n, value: r, disabled: a = !1, textValue: i, ...s } = e, l = nt(zn, n), d = rt(zn, n), f = l.value === r, [u, p] = c.useState(i ?? ""), [h, m] = c.useState(!1), g = te(t, (w) => d.itemRefCallback?.(w, r, a)), v = ue(), b = c.useRef("touch"), C = () => {
9428
9433
  a || (l.onValueChange(r), l.onOpenChange(!1));
9429
9434
  };
9430
9435
  if (r === "") throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
@@ -9456,16 +9461,16 @@ var zn = "SelectItem", [i3, bd] = Tt(zn), xd = c.forwardRef((e, t) => {
9456
9461
  onFocus: z(s.onFocus, () => m(!0)),
9457
9462
  onBlur: z(s.onBlur, () => m(!1)),
9458
9463
  onClick: z(s.onClick, () => {
9459
- y.current !== "mouse" && C();
9464
+ b.current !== "mouse" && C();
9460
9465
  }),
9461
9466
  onPointerUp: z(s.onPointerUp, () => {
9462
- y.current === "mouse" && C();
9467
+ b.current === "mouse" && C();
9463
9468
  }),
9464
9469
  onPointerDown: z(s.onPointerDown, (w) => {
9465
- y.current = w.pointerType;
9470
+ b.current = w.pointerType;
9466
9471
  }),
9467
9472
  onPointerMove: z(s.onPointerMove, (w) => {
9468
- y.current = w.pointerType, a ? d.onItemLeave?.() : y.current === "mouse" && w.currentTarget.focus({ preventScroll: !0 });
9473
+ b.current = w.pointerType, a ? d.onItemLeave?.() : b.current === "mouse" && w.currentTarget.focus({ preventScroll: !0 });
9469
9474
  }),
9470
9475
  onPointerLeave: z(s.onPointerLeave, (w) => {
9471
9476
  w.currentTarget === document.activeElement && d.onItemLeave?.();
@@ -9479,7 +9484,7 @@ var zn = "SelectItem", [i3, bd] = Tt(zn), xd = c.forwardRef((e, t) => {
9479
9484
  });
9480
9485
  xd.displayName = zn;
9481
9486
  var Dt = "SelectItemText", wd = c.forwardRef((e, t) => {
9482
- const { __scopeSelect: n, className: r, style: a, ...i } = e, s = nt(Dt, n), l = rt(Dt, n), d = bd(Dt, n), f = Yg(Dt, n), [u, p] = c.useState(null), h = te(t, (C) => p(C), d.onItemTextChange, (C) => l.itemTextRefCallback?.(C, d.value, d.disabled)), m = u?.textContent, g = c.useMemo(() => /* @__PURE__ */ o("option", {
9487
+ const { __scopeSelect: n, className: r, style: a, ...i } = e, s = nt(Dt, n), l = rt(Dt, n), d = yd(Dt, n), f = Yg(Dt, n), [u, p] = c.useState(null), h = te(t, (C) => p(C), d.onItemTextChange, (C) => l.itemTextRefCallback?.(C, d.value, d.disabled)), m = u?.textContent, g = c.useMemo(() => /* @__PURE__ */ o("option", {
9483
9488
  value: d.value,
9484
9489
  disabled: d.disabled,
9485
9490
  children: m
@@ -9487,12 +9492,12 @@ var Dt = "SelectItemText", wd = c.forwardRef((e, t) => {
9487
9492
  d.disabled,
9488
9493
  d.value,
9489
9494
  m
9490
- ]), { onNativeOptionAdd: v, onNativeOptionRemove: y } = f;
9491
- return me(() => (v(g), () => y(g)), [
9495
+ ]), { onNativeOptionAdd: v, onNativeOptionRemove: b } = f;
9496
+ return me(() => (v(g), () => b(g)), [
9492
9497
  v,
9493
- y,
9498
+ b,
9494
9499
  g
9495
- ]), /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(q.span, {
9500
+ ]), /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(q.span, {
9496
9501
  id: d.textId,
9497
9502
  ...i,
9498
9503
  ref: h
@@ -9501,7 +9506,7 @@ var Dt = "SelectItemText", wd = c.forwardRef((e, t) => {
9501
9506
  wd.displayName = Dt;
9502
9507
  var Cd = "SelectItemIndicator", Nd = c.forwardRef((e, t) => {
9503
9508
  const { __scopeSelect: n, ...r } = e;
9504
- return bd(Cd, n).isSelected ? /* @__PURE__ */ o(q.span, {
9509
+ return yd(Cd, n).isSelected ? /* @__PURE__ */ o(q.span, {
9505
9510
  "aria-hidden": !0,
9506
9511
  ...r,
9507
9512
  ref: t
@@ -9640,9 +9645,9 @@ function Id(e, t, n) {
9640
9645
  function d3(e, t) {
9641
9646
  return e.map((n, r) => e[(t + r) % e.length]);
9642
9647
  }
9643
- var u3 = rd, Td = ad, f3 = sd, p3 = ld, m3 = cd, Ad = dd, h3 = md, v3 = vd, Ld = yd, Od = xd, g3 = wd, y3 = Nd, Dd = Sd, $d = Ed, zd = kd, b3 = u3, i5 = v3, x3 = f3, Bd = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ x(Td, {
9648
+ var u3 = rd, Td = ad, f3 = sd, p3 = ld, m3 = cd, Ad = dd, h3 = md, v3 = vd, Ld = bd, Od = xd, g3 = wd, b3 = Nd, Dd = Sd, $d = Ed, zd = kd, y3 = u3, i5 = v3, x3 = f3, Bd = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ x(Td, {
9644
9649
  ref: r,
9645
- className: b("flex h-full w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap normal-case shadow-sm ring-offset-background placeholder:text-muted-foreground focus:ring-1 focus:ring-ring focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", e),
9650
+ className: y("flex h-full w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap normal-case shadow-sm ring-offset-background placeholder:text-muted-foreground focus:ring-1 focus:ring-ring focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", e),
9646
9651
  ...n,
9647
9652
  children: [t, /* @__PURE__ */ o(p3, {
9648
9653
  asChild: !0,
@@ -9652,27 +9657,27 @@ var u3 = rd, Td = ad, f3 = sd, p3 = ld, m3 = cd, Ad = dd, h3 = md, v3 = vd, Ld =
9652
9657
  Bd.displayName = Td.displayName;
9653
9658
  var Fd = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(Dd, {
9654
9659
  ref: n,
9655
- className: b("flex cursor-default items-center justify-center py-1", e),
9660
+ className: y("flex cursor-default items-center justify-center py-1", e),
9656
9661
  ...t,
9657
9662
  children: /* @__PURE__ */ o(Ri, { className: "h-4 w-4" })
9658
9663
  }));
9659
9664
  Fd.displayName = Dd.displayName;
9660
9665
  var Hd = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o($d, {
9661
9666
  ref: n,
9662
- className: b("flex cursor-default items-center justify-center py-1", e),
9667
+ className: y("flex cursor-default items-center justify-center py-1", e),
9663
9668
  ...t,
9664
9669
  children: /* @__PURE__ */ o(Ei, { className: "h-4 w-4" })
9665
9670
  }));
9666
9671
  Hd.displayName = $d.displayName;
9667
9672
  var Vd = c.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, a) => /* @__PURE__ */ o(m3, { children: /* @__PURE__ */ x(Ad, {
9668
9673
  ref: a,
9669
- className: b("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
9674
+ className: y("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
9670
9675
  position: n,
9671
9676
  ...r,
9672
9677
  children: [
9673
9678
  /* @__PURE__ */ o(Fd, {}),
9674
9679
  /* @__PURE__ */ o(h3, {
9675
- className: b("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
9680
+ className: y("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
9676
9681
  children: t
9677
9682
  }),
9678
9683
  /* @__PURE__ */ o(Hd, {})
@@ -9681,28 +9686,28 @@ var Vd = c.forwardRef(({ className: e, children: t, position: n = "popper", ...r
9681
9686
  Vd.displayName = Ad.displayName;
9682
9687
  var w3 = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(Ld, {
9683
9688
  ref: n,
9684
- className: b("px-2 py-1.5 text-sm font-semibold", e),
9689
+ className: y("px-2 py-1.5 text-sm font-semibold", e),
9685
9690
  ...t
9686
9691
  }));
9687
9692
  w3.displayName = Ld.displayName;
9688
9693
  var jd = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ x(Od, {
9689
9694
  ref: r,
9690
- className: b("relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
9695
+ className: y("relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
9691
9696
  ...n,
9692
9697
  children: [/* @__PURE__ */ o("span", {
9693
9698
  className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
9694
- children: /* @__PURE__ */ o(y3, { children: /* @__PURE__ */ o(Hn, { className: "h-4 w-4" }) })
9699
+ children: /* @__PURE__ */ o(b3, { children: /* @__PURE__ */ o(Hn, { className: "h-4 w-4" }) })
9695
9700
  }), /* @__PURE__ */ o(g3, { children: t })]
9696
9701
  }));
9697
9702
  jd.displayName = Od.displayName;
9698
9703
  var C3 = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(zd, {
9699
9704
  ref: n,
9700
- className: b("-mx-1 my-1 h-px bg-muted", e),
9705
+ className: y("-mx-1 my-1 h-px bg-muted", e),
9701
9706
  ...t
9702
9707
  }));
9703
9708
  C3.displayName = zd.displayName;
9704
9709
  function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", variant: r = "interactive", tooltips: a = !0, className: i }) {
9705
- const [s, l] = j(null), [d, f] = j(null), [u, p] = j(!1), [h, m] = j(!1), g = se(!1), v = fo(jn(), n, "medium"), y = 0.6, C = Ho[v] * 4, w = C * y, N = e.slice(0, t), R = e.slice(t), M = Math.max(0, e.length - t), S = se(null), E = se(null), [k, T] = j(0);
9710
+ const [s, l] = j(null), [d, f] = j(null), [u, p] = j(!1), [h, m] = j(!1), g = ie(!1), v = fo(jn(), n, "medium"), b = 0.6, C = Ho[v] * 4, w = C * b, N = e.slice(0, t), R = e.slice(t), M = Math.max(0, e.length - t), S = ie(null), E = ie(null), [k, T] = j(0);
9706
9711
  re(() => {
9707
9712
  if (E.current) {
9708
9713
  const H = () => {
@@ -9746,7 +9751,7 @@ function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", varian
9746
9751
  };
9747
9752
  return /* @__PURE__ */ x(W.div, {
9748
9753
  ref: S,
9749
- className: b("relative", i),
9754
+ className: y("relative", i),
9750
9755
  style: { height: C },
9751
9756
  animate: { width: U },
9752
9757
  transition: {
@@ -9769,7 +9774,7 @@ function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", varian
9769
9774
  maxFaces: t,
9770
9775
  interactive: r !== "static"
9771
9776
  }, H.name)),
9772
- r === "interactive" && /* @__PURE__ */ o(ye, { children: h && R.map((H, $) => /* @__PURE__ */ o(mi, {
9777
+ r === "interactive" && /* @__PURE__ */ o(be, { children: h && R.map((H, $) => /* @__PURE__ */ o(mi, {
9773
9778
  avatar: H,
9774
9779
  avatarSize: n,
9775
9780
  index: $ + t,
@@ -9801,7 +9806,7 @@ function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", varian
9801
9806
  ease: "easeInOut"
9802
9807
  }
9803
9808
  }, H.name)) }),
9804
- /* @__PURE__ */ o(ye, { children: a && u && s !== null && /* @__PURE__ */ o(W.div, {
9809
+ /* @__PURE__ */ o(be, { children: a && u && s !== null && /* @__PURE__ */ o(W.div, {
9805
9810
  ref: E,
9806
9811
  layout: !0,
9807
9812
  initial: { opacity: 0 },
@@ -9816,7 +9821,7 @@ function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", varian
9816
9821
  },
9817
9822
  className: "pointer-events-none absolute left-0 z-10 flex h-5 items-center justify-center rounded-full bg-black px-2 text-xs font-medium whitespace-nowrap text-white",
9818
9823
  style: { top: C + 4 },
9819
- children: /* @__PURE__ */ o(ye, {
9824
+ children: /* @__PURE__ */ o(be, {
9820
9825
  mode: "wait",
9821
9826
  children: /* @__PURE__ */ o(W.span, {
9822
9827
  ...G(s),
@@ -9830,7 +9835,7 @@ function s5({ avatars: e = [], maxFaces: t = 3, avatarSize: n = "medium", varian
9830
9835
  onMouseEnter: V,
9831
9836
  whileHover: { scale: r === "interactive" ? 1.1 : 1 },
9832
9837
  children: /* @__PURE__ */ x("div", {
9833
- className: b("ml-1.5 flex items-center justify-center rounded-full border-2 border-background bg-gray-200 text-sm font-medium text-gray-600", ge(n, pl)),
9838
+ className: y("ml-1.5 flex items-center justify-center rounded-full border-2 border-background bg-gray-200 text-sm font-medium text-gray-600", ge(n, pl)),
9834
9839
  children: ["+", M]
9835
9840
  })
9836
9841
  })
@@ -9870,7 +9875,7 @@ function mi({ avatar: e, avatarSize: t, index: n, size: r, offsetX: a, hoveredIn
9870
9875
  });
9871
9876
  }
9872
9877
  var vr = "Switch", [N3, l5] = Be(vr), [S3, E3] = N3(vr), Wd = c.forwardRef((e, t) => {
9873
- const { __scopeSwitch: n, name: r, checked: a, defaultChecked: i, required: s, disabled: l, value: d = "on", onCheckedChange: f, form: u, ...p } = e, [h, m] = c.useState(null), g = te(t, (N) => m(N)), v = c.useRef(!1), y = h ? u || !!h.closest("form") : !0, [C, w] = je({
9878
+ const { __scopeSwitch: n, name: r, checked: a, defaultChecked: i, required: s, disabled: l, value: d = "on", onCheckedChange: f, form: u, ...p } = e, [h, m] = c.useState(null), g = te(t, (N) => m(N)), v = c.useRef(!1), b = h ? u || !!h.closest("form") : !0, [C, w] = je({
9874
9879
  prop: a,
9875
9880
  defaultProp: i ?? !1,
9876
9881
  onChange: f,
@@ -9892,9 +9897,9 @@ var vr = "Switch", [N3, l5] = Be(vr), [S3, E3] = N3(vr), Wd = c.forwardRef((e, t
9892
9897
  ...p,
9893
9898
  ref: g,
9894
9899
  onClick: z(e.onClick, (N) => {
9895
- w((R) => !R), y && (v.current = N.isPropagationStopped(), v.current || N.stopPropagation());
9900
+ w((R) => !R), b && (v.current = N.isPropagationStopped(), v.current || N.stopPropagation());
9896
9901
  })
9897
- }), y && /* @__PURE__ */ o(Kd, {
9902
+ }), b && /* @__PURE__ */ o(Kd, {
9898
9903
  control: h,
9899
9904
  bubbles: !v.current,
9900
9905
  name: r,
@@ -9954,25 +9959,25 @@ function Xd(e) {
9954
9959
  return e ? "checked" : "unchecked";
9955
9960
  }
9956
9961
  var Zd = Wd, k3 = Gd, M3 = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(Zd, {
9957
- className: b("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-emerald-700 data-[state=unchecked]:bg-surface-tertiary-default", e),
9962
+ className: y("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-emerald-700 data-[state=unchecked]:bg-surface-tertiary-default", e),
9958
9963
  ...t,
9959
9964
  ref: n,
9960
- children: /* @__PURE__ */ o(k3, { className: b("pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=checked]:bg-white data-[state=unchecked]:translate-x-0 data-[state=unchecked]:bg-surface-tertiary-inverse") })
9965
+ children: /* @__PURE__ */ o(k3, { className: y("pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=checked]:bg-white data-[state=unchecked]:translate-x-0 data-[state=unchecked]:bg-surface-tertiary-inverse") })
9961
9966
  }));
9962
9967
  M3.displayName = Zd.displayName;
9963
9968
  var P3 = "_active_1gz0n_1", _3 = { active: P3 }, Yd = ({ children: e, className: t }) => {
9964
- const [n, r] = ee.useState(null), a = pe(() => ee.Children.map(e, (i) => {
9965
- if (!ee.isValidElement(i)) return i;
9969
+ const [n, r] = Q.useState(null), a = pe(() => Q.Children.map(e, (i) => {
9970
+ if (!Q.isValidElement(i)) return i;
9966
9971
  const s = i.props.id, l = (f) => {
9967
9972
  r(s ?? null), i.props.onClick?.(f);
9968
9973
  }, d = n ? s === n : i.props.active;
9969
- return ee.cloneElement(i, {
9974
+ return Q.cloneElement(i, {
9970
9975
  highlighted: d,
9971
9976
  onClick: l
9972
9977
  });
9973
- }), [e]);
9978
+ }), [e, n]);
9974
9979
  return /* @__PURE__ */ o("div", {
9975
- className: b("relative inline-flex flex-row items-center overflow-hidden rounded-full border border-neutral-softest shadow-xs backdrop-blur-md", t),
9980
+ className: y("relative inline-flex flex-row items-center overflow-hidden rounded-full border border-neutral-softest shadow-xs backdrop-blur-md", t),
9976
9981
  children: a
9977
9982
  });
9978
9983
  };
@@ -9982,14 +9987,14 @@ var qd = ({ children: e, className: t, highlighted: n, ...r }) => /* @__PURE__ *
9982
9987
  ...r,
9983
9988
  children: [n && /* @__PURE__ */ o(W.span, {
9984
9989
  layoutId: "segmented-highlight",
9985
- className: b("absolute inset-0 -z-10 rounded-full shadow-sm", _3.active),
9990
+ className: y("absolute inset-0 -z-10 rounded-full shadow-sm", _3.active),
9986
9991
  transition: {
9987
9992
  type: "spring",
9988
9993
  duration: 0.7,
9989
9994
  bounce: 0.3
9990
9995
  }
9991
9996
  }), /* @__PURE__ */ o("span", {
9992
- className: b("relative z-10", n && "text-highlight", t),
9997
+ className: y("relative z-10", n && "text-highlight", t),
9993
9998
  children: e
9994
9999
  })]
9995
10000
  });
@@ -10019,7 +10024,7 @@ var I3 = {
10019
10024
  };
10020
10025
  function Bn({ value: e, className: t }) {
10021
10026
  return /* @__PURE__ */ o("span", {
10022
- className: b("rounded-lg border bg-gradient-to-br from-background to-card px-2 py-0.5 text-sm text-foreground/70 dark:text-foreground", t),
10027
+ className: y("rounded-lg border bg-gradient-to-br from-background to-card px-2 py-0.5 text-sm text-foreground/70 dark:text-foreground", t),
10023
10028
  children: e
10024
10029
  });
10025
10030
  }
@@ -10027,31 +10032,32 @@ function T3({ modifiers: e, keys: t }) {
10027
10032
  return /* @__PURE__ */ x("div", {
10028
10033
  className: "flex flex-row items-center gap-1",
10029
10034
  children: [
10030
- e.map((n, r) => /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(Bn, { value: I3[n] }), r < e.length - 1 && /* @__PURE__ */ o("span", {
10035
+ e.map((n, r) => /* @__PURE__ */ x(Q.Fragment, { children: [/* @__PURE__ */ o(Bn, { value: I3[n] }), r < e.length - 1 && /* @__PURE__ */ o("span", {
10031
10036
  className: "text-sm text-body-muted",
10032
10037
  children: "+"
10033
- })] })),
10038
+ })] }, `${n}-${r}`)),
10034
10039
  t.length > 0 && /* @__PURE__ */ o("span", {
10035
10040
  className: "text-sm text-body-muted",
10036
10041
  children: "+"
10037
10042
  }),
10038
- t.map((n, r) => /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(Bn, { value: n.toUpperCase() }), r < t.length - 1 && /* @__PURE__ */ o("span", {
10043
+ t.map((n, r) => /* @__PURE__ */ x(Q.Fragment, { children: [/* @__PURE__ */ o(Bn, { value: n.toUpperCase() }), r < t.length - 1 && /* @__PURE__ */ o("span", {
10039
10044
  className: "text-sm text-body-muted",
10040
10045
  children: "+"
10041
- })] }))
10046
+ })] }, `${n}-${r}`))
10042
10047
  ]
10043
10048
  });
10044
10049
  }
10045
10050
  function d5({ modifiers: e, keys: t, actionText: n, className: r, dismissable: a = !0, onDismiss: i, titleText: s = "Key hint", ...l }) {
10046
10051
  return /* @__PURE__ */ x("div", {
10047
- className: b("inline-flex min-w-24 flex-col items-start gap-1 rounded-lg border text-base font-semibold tracking-tight text-black shadow-sm shadow-black/5 select-none dark:text-white dark:shadow-white/10", r),
10052
+ className: y("inline-flex min-w-24 flex-col items-start gap-1 rounded-lg border text-base font-semibold tracking-tight text-black shadow-sm shadow-black/5 select-none dark:text-white dark:shadow-white/10", r),
10048
10053
  ...l,
10049
10054
  children: [/* @__PURE__ */ x("div", {
10050
10055
  className: "flex w-full flex-row items-center self-start border-b px-2.5 py-0.5 text-[10px] font-semibold tracking-wide text-body-muted uppercase select-none dark:text-body-muted/80",
10051
- children: [/* @__PURE__ */ o("div", { children: s }), a && /* @__PURE__ */ o("div", {
10056
+ children: [/* @__PURE__ */ o("div", { children: s }), a && /* @__PURE__ */ o("button", {
10057
+ type: "button",
10052
10058
  className: "ml-auto cursor-pointer hover:text-foreground",
10053
10059
  onClick: i,
10054
- title: "Close",
10060
+ "aria-label": "Dismiss",
10055
10061
  children: /* @__PURE__ */ o(K, {
10056
10062
  name: "x",
10057
10063
  className: "h-3.5 w-3.5"
@@ -10084,7 +10090,7 @@ function A3() {
10084
10090
  var L3 = () => {
10085
10091
  const [e, t] = j(!1);
10086
10092
  return re(() => (t(!0), () => t(!1)), []), e;
10087
- }, bn = [{
10093
+ }, yn = [{
10088
10094
  key: "light",
10089
10095
  icon: /* @__PURE__ */ o(uf, {})
10090
10096
  }, {
@@ -10092,21 +10098,21 @@ var L3 = () => {
10092
10098
  icon: /* @__PURE__ */ o(df, {})
10093
10099
  }];
10094
10100
  function O3({ className: e, onThemeSwitch: t, orientation: n = "horizontal" }) {
10095
- const r = L3(), { theme: a, setTheme: i } = Wn(), s = Uu(), l = pe(() => 100 * bn.findIndex((p) => p.key === a), [a]), d = n === "vertical", f = 2.125, u = d ? {
10101
+ const r = L3(), { theme: a, setTheme: i } = Wn(), s = Uu(), l = pe(() => 100 * yn.findIndex((p) => p.key === a), [a]), d = n === "vertical", f = 2.125, u = d ? {
10096
10102
  width: `${f}rem`,
10097
- height: `calc(${f}rem * ${bn.length} + 2px)`
10103
+ height: `calc(${f}rem * ${yn.length} + 2px)`
10098
10104
  } : {
10099
- width: `calc(${f}rem * ${bn.length} + 2px)`,
10105
+ width: `calc(${f}rem * ${yn.length} + 2px)`,
10100
10106
  height: `${f}rem`
10101
10107
  };
10102
10108
  return r ? /* @__PURE__ */ x("div", {
10103
10109
  className: "relative h-fit w-fit overflow-hidden rounded-full border border-neutral-300 bg-neutral-100 p-0 dark:border-neutral-800/30 dark:bg-neutral-900",
10104
10110
  children: [/* @__PURE__ */ x("fieldset", {
10105
- className: b("group m-0 flex", d ? "flex-col items-stretch" : "flex-row items-center", e),
10111
+ className: y("group m-0 flex", d ? "flex-col items-stretch" : "flex-row items-center", e),
10106
10112
  children: [/* @__PURE__ */ o("legend", {
10107
10113
  className: "sr-only",
10108
10114
  children: "Select a display theme:"
10109
- }), bn.map(({ key: p, icon: h }) => {
10115
+ }), yn.map(({ key: p, icon: h }) => {
10110
10116
  const m = p === a, g = `theme-toggle-${p}-${s}`;
10111
10117
  return /* @__PURE__ */ x("span", {
10112
10118
  className: "h-full",
@@ -10123,7 +10129,7 @@ function O3({ className: e, onThemeSwitch: t, orientation: n = "horizontal" }) {
10123
10129
  value: p,
10124
10130
  suppressHydrationWarning: !0
10125
10131
  }), /* @__PURE__ */ x("label", {
10126
- className: b("relative flex size-[2.125rem] cursor-pointer items-center justify-center rounded-full text-foreground opacity-50 transition-opacity duration-300 dark:text-neutral-300 dark:opacity-70", "peer-checked:cursor-default peer-checked:!opacity-100", "peer-interact:!opacity-100", "peer-checked:!inset-ring-0 peer-focus-visible:inset-ring-2 peer-focus-visible:ring-foreground", "relative z-[1] [&_svg]:size-4 [&_svg]:text-current"),
10132
+ className: y("relative flex size-[2.125rem] cursor-pointer items-center justify-center rounded-full text-foreground opacity-50 transition-opacity duration-300 dark:text-neutral-300 dark:opacity-70", "peer-checked:cursor-default peer-checked:!opacity-100", "peer-interact:!opacity-100", "peer-checked:!inset-ring-0 peer-focus-visible:inset-ring-2 peer-focus-visible:ring-foreground", "relative z-[1] [&_svg]:size-4 [&_svg]:text-current"),
10127
10133
  htmlFor: g,
10128
10134
  children: [/* @__PURE__ */ o("span", {
10129
10135
  className: "sr-only",
@@ -10170,7 +10176,7 @@ var Qd = ({ children: e, className: t }) => {
10170
10176
  header: null
10171
10177
  });
10172
10178
  return /* @__PURE__ */ x("div", {
10173
- className: b("flex h-screen w-full gap-3 overflow-hidden bg-surface-secondary p-2 pr-0 pb-0", t),
10179
+ className: y("flex h-screen w-full gap-3 overflow-hidden bg-surface-secondary p-2 pr-0 pb-0", t),
10174
10180
  children: [!n && r, /* @__PURE__ */ x(W.div, {
10175
10181
  layout: !0,
10176
10182
  className: "flex w-full flex-col",
@@ -10182,7 +10188,7 @@ var Qd = ({ children: e, className: t }) => {
10182
10188
  bounce: 0
10183
10189
  },
10184
10190
  children: [s, /* @__PURE__ */ x("main", {
10185
- className: b("mr-2 mb-2 flex h-full flex-col overflow-hidden rounded-xl bg-surface-primary shadow-sm"),
10191
+ className: y("mr-2 mb-2 flex h-full flex-col overflow-hidden rounded-xl bg-surface-primary shadow-sm"),
10186
10192
  children: [/* @__PURE__ */ o("div", {
10187
10193
  className: "flex w-full flex-shrink-0 items-center border-b p-2",
10188
10194
  children: i
@@ -10196,7 +10202,7 @@ var Qd = ({ children: e, className: t }) => {
10196
10202
  };
10197
10203
  Qd.displayName = "AppLayout";
10198
10204
  var eu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10199
- className: b("h-full overflow-auto", t),
10205
+ className: y("h-full overflow-auto", t),
10200
10206
  ...n,
10201
10207
  children: e
10202
10208
  });
@@ -10206,7 +10212,7 @@ var tu = ({ children: e, className: t, onHomeNavigation: n }) => {
10206
10212
  return /* @__PURE__ */ x(W.div, {
10207
10213
  initial: !1,
10208
10214
  layout: "position",
10209
- className: b("mt-4 flex w-fit flex-col items-start px-1", t),
10215
+ className: y("mt-4 flex w-fit flex-col items-start px-1", t),
10210
10216
  transition: {
10211
10217
  duration: 0.25,
10212
10218
  type: "spring",
@@ -10216,7 +10222,7 @@ var tu = ({ children: e, className: t, onHomeNavigation: n }) => {
10216
10222
  className: "flex flex-col gap-4",
10217
10223
  children: [/* @__PURE__ */ o(Br, {
10218
10224
  variant: r ? "icon" : "wordmark",
10219
- className: b("cursor-pointer", !r && "min-w-[140px]"),
10225
+ className: y("cursor-pointer", !r && "min-w-[140px]"),
10220
10226
  onClick: n
10221
10227
  }), a]
10222
10228
  }), /* @__PURE__ */ o("div", {
@@ -10230,7 +10236,7 @@ var nu = ({ className: e }) => {
10230
10236
  const { collapsed: t } = At();
10231
10237
  return /* @__PURE__ */ o(W.div, {
10232
10238
  "data-theme-switcher": !0,
10233
- className: b("mt-auto mb-6", e),
10239
+ className: y("mt-auto mb-6", e),
10234
10240
  children: /* @__PURE__ */ o(O3, { orientation: t ? "vertical" : "horizontal" })
10235
10241
  });
10236
10242
  };
@@ -10242,17 +10248,17 @@ var ru = ({ children: e, className: t }) => {
10242
10248
  return i || console.warn(`Invalid child type: ${a.displayName}. Must be one of: CodeEditor.Pane, CodeEditor.Tabs, CodeEditor.CommandBar, CodeEditor.Empty`), i;
10243
10249
  });
10244
10250
  return /* @__PURE__ */ o("div", {
10245
- className: b("flex min-h-8 items-center gap-1.5 bg-surface-primary", t),
10246
- children: n.map((r, a) => /* @__PURE__ */ x(ee.Fragment, { children: [r, a < n.length - 1 && /* @__PURE__ */ o(D3, {})] }, a))
10251
+ className: y("flex min-h-8 items-center gap-1.5 bg-surface-primary", t),
10252
+ children: n.map((r, a) => /* @__PURE__ */ x(Q.Fragment, { children: [r, a < n.length - 1 && /* @__PURE__ */ o(D3, {})] }, a))
10247
10253
  });
10248
10254
  };
10249
10255
  ru.displayName = "AppLayout.Breadcrumb";
10250
10256
  var D3 = () => /* @__PURE__ */ o("span", {
10251
10257
  className: "typography-body-lg text-muted-foreground select-none",
10252
10258
  children: "/"
10253
- }), ou = ee.forwardRef(({ asChild: e = !1, children: t, className: n, active: r = !1, disabled: a = !1, ...i }, s) => /* @__PURE__ */ o(e ? st : "a", {
10259
+ }), ou = Q.forwardRef(({ asChild: e = !1, children: t, className: n, active: r = !1, disabled: a = !1, ...i }, s) => /* @__PURE__ */ o(e ? st : "a", {
10254
10260
  ref: s,
10255
- className: b("cursor-pointer rounded-md px-1.5 typography-body-md text-lg font-light text-muted-foreground select-none", r && "cursor-default text-foreground", !r && "hover:bg-accent hover:text-foreground", a && "cursor-default opacity-50 hover:bg-transparent hover:text-muted-foreground", n),
10261
+ className: y("cursor-pointer rounded-md px-1.5 typography-body-md text-lg font-light text-muted-foreground select-none", r && "cursor-default text-foreground", !r && "hover:bg-accent hover:text-foreground", a && "cursor-default opacity-50 hover:bg-transparent hover:text-muted-foreground", n),
10256
10262
  ...i,
10257
10263
  children: t
10258
10264
  }));
@@ -10262,7 +10268,7 @@ au.displayName = "AppLayout.HeaderDivider";
10262
10268
  var iu = ({ className: e }) => {
10263
10269
  const { collapsed: t, setCollapsed: n, keybinds: r } = At();
10264
10270
  return A3(), /* @__PURE__ */ o("div", {
10265
- className: b("flex items-center gap-2", e),
10271
+ className: y("flex items-center gap-2", e),
10266
10272
  children: /* @__PURE__ */ o(dr, { children: /* @__PURE__ */ x(sn, {
10267
10273
  delayDuration: 800,
10268
10274
  disableHoverableContent: !0,
@@ -10300,22 +10306,22 @@ var iu = ({ className: e }) => {
10300
10306
  };
10301
10307
  iu.displayName = "AppLayout.CollapseButton";
10302
10308
  var su = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
10303
- className: b("flex w-full items-center gap-3", t),
10309
+ className: y("flex w-full items-center gap-3", t),
10304
10310
  children: e
10305
10311
  });
10306
10312
  su.displayName = "AppLayout.SurfaceHeader";
10307
10313
  var lu = ({ children: e, className: t }) => /* @__PURE__ */ o("div", {
10308
- className: b("flex w-full items-center gap-3", t),
10314
+ className: y("flex w-full items-center gap-3", t),
10309
10315
  children: e
10310
10316
  });
10311
10317
  lu.displayName = "AppLayout.Header";
10312
10318
  var cu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("nav", {
10313
- className: b("mt-3 flex flex-col items-start gap-1", t),
10319
+ className: y("mt-3 flex flex-col items-start gap-1", t),
10314
10320
  ...n,
10315
10321
  children: e
10316
10322
  });
10317
10323
  cu.displayName = "AppLayout.Nav";
10318
- var du = ee.forwardRef(({ asChild: e = !1, title: t, icon: n, render: r, className: a, active: i, disabled: s, children: l, ...d }, f) => {
10324
+ var du = Q.forwardRef(({ asChild: e = !1, title: t, icon: n, render: r, className: a, active: i, disabled: s, children: l, ...d }, f) => {
10319
10325
  const { collapsed: u } = At();
10320
10326
  if (r) return r({
10321
10327
  title: t,
@@ -10332,12 +10338,12 @@ var du = ee.forwardRef(({ asChild: e = !1, title: t, icon: n, render: r, classNa
10332
10338
  transition: { duration: 0.2 },
10333
10339
  className: "typography-body-sm",
10334
10340
  children: t
10335
- }), g = e ? l : /* @__PURE__ */ x(ie, { children: [h, m] });
10341
+ }), g = e ? l : /* @__PURE__ */ x(se, { children: [h, m] });
10336
10342
  return /* @__PURE__ */ o(dr, { children: /* @__PURE__ */ x(sn, { children: [/* @__PURE__ */ o(ur, {
10337
10343
  asChild: !0,
10338
10344
  children: /* @__PURE__ */ o(p, {
10339
10345
  ref: f,
10340
- className: b("flex h-8 w-full cursor-pointer items-center gap-3 rounded-md px-2 text-muted-foreground hover:bg-accent hover:text-foreground", i && "bg-accent text-foreground", s && "cursor-default opacity-50 hover:bg-transparent hover:text-muted-foreground", a),
10346
+ className: y("flex h-8 w-full cursor-pointer items-center gap-3 rounded-md px-2 text-muted-foreground hover:bg-accent hover:text-foreground", i && "bg-accent text-foreground", s && "cursor-default opacity-50 hover:bg-transparent hover:text-muted-foreground", a),
10341
10347
  ...d,
10342
10348
  ...e && {
10343
10349
  "data-title": t,
@@ -10356,7 +10362,7 @@ var du = ee.forwardRef(({ asChild: e = !1, title: t, icon: n, render: r, classNa
10356
10362
  });
10357
10363
  du.displayName = "AppLayout.NavItem";
10358
10364
  var uu = ({ children: e, className: t, name: n, ...r }) => /* @__PURE__ */ x("div", {
10359
- className: b("mb-4 flex w-full flex-col", t),
10365
+ className: y("mb-4 flex w-full flex-col", t),
10360
10366
  ...r,
10361
10367
  children: [/* @__PURE__ */ o("div", {
10362
10368
  className: "mb-1.5 px-2 text-codeline-sm uppercase",
@@ -10397,7 +10403,7 @@ var $3 = { toggle: {
10397
10403
  });
10398
10404
  }, z3 = [Cf];
10399
10405
  function B3({ children: e, modifiers: t = z3, className: n, collisionDetectionAlgo: r }) {
10400
- return /* @__PURE__ */ o(bf, {
10406
+ return /* @__PURE__ */ o(yf, {
10401
10407
  collisionDetection: r,
10402
10408
  modifiers: t,
10403
10409
  children: /* @__PURE__ */ o("div", {
@@ -10442,7 +10448,7 @@ var pu = ({ children: e, id: t, initialPosition: n = {
10442
10448
  ...m
10443
10449
  },
10444
10450
  className: "fixed flex min-w-36 flex-row items-center justify-center gap-3 rounded-lg border bg-card py-2 pr-2 pl-2 shadow-lg shadow-white/5",
10445
- children: [a && /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(F3, {
10451
+ children: [a && /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(F3, {
10446
10452
  listeners: f,
10447
10453
  attributes: d
10448
10454
  }), /* @__PURE__ */ o(ua, {})] }), e]
@@ -10453,7 +10459,7 @@ var mu = ({ children: e, onClick: t, disabled: n, className: r, iconName: a }) =
10453
10459
  delayDuration: 100,
10454
10460
  children: [/* @__PURE__ */ o(ur, {
10455
10461
  onClick: t,
10456
- className: b("flex cursor-pointer items-center justify-center text-foreground select-none last-of-type:mr-1", "focus: focus:rounded-md focus:ring-1 focus:ring-blue-500/70 focus:ring-offset-4 focus:ring-offset-slate-900 focus:outline-none", !n && "cursor-pointer hover:text-foreground", n && "cursor-not-allowed text-body-muted/70", r),
10462
+ className: y("flex cursor-pointer items-center justify-center text-foreground select-none last-of-type:mr-1", "focus: focus:rounded-md focus:ring-1 focus:ring-blue-500/70 focus:ring-offset-4 focus:ring-offset-slate-900 focus:outline-none", !n && "cursor-pointer hover:text-foreground", n && "cursor-not-allowed text-body-muted/70", r),
10457
10463
  children: /* @__PURE__ */ o(K, {
10458
10464
  name: a,
10459
10465
  size: "small"
@@ -10479,7 +10485,7 @@ var F3 = ({ listeners: e, attributes: t }) => /* @__PURE__ */ o("div", {
10479
10485
  Separator: ua
10480
10486
  });
10481
10487
  function p5({ children: e, color: t = "green", muted: n = !1, animate: r = !0, className: a, animationTrigger: i = "inView", animationDuration: s = 1 }) {
10482
- const l = pe(() => e.split(""), [e]), [d, f] = j(0), u = se(null), p = gf(u, { once: i === "inView" });
10488
+ const l = pe(() => e.split(""), [e]), [d, f] = j(0), u = ie(null), p = gf(u, { once: i === "inView" });
10483
10489
  re(() => {
10484
10490
  if (!r) {
10485
10491
  f(l.length);
@@ -10495,14 +10501,14 @@ function p5({ children: e, color: t = "green", muted: n = !1, animate: r = !0, c
10495
10501
  l
10496
10502
  ]);
10497
10503
  const h = pe(() => l.slice(0, d).map((m, g) => /* @__PURE__ */ o(W.span, {
10498
- className: b("py-0.5 leading-7 first:pl-0.5", g === l.length - 1 && "pr-0.5"),
10504
+ className: y("py-0.5 leading-7 first:pl-0.5", g === l.length - 1 && "pr-0.5"),
10499
10505
  initial: {
10500
10506
  background: r ? "transparent" : n ? vi[t] : hi[t],
10501
- color: r ? "inherit" : n ? gi[t] : yi[t]
10507
+ color: r ? "inherit" : n ? gi[t] : bi[t]
10502
10508
  },
10503
10509
  animate: r ? {
10504
10510
  background: n ? vi[t] : hi[t],
10505
- color: n ? gi[t] : yi[t]
10511
+ color: n ? gi[t] : bi[t]
10506
10512
  } : {},
10507
10513
  transition: {
10508
10514
  background: { duration: s },
@@ -10520,7 +10526,7 @@ function p5({ children: e, color: t = "green", muted: n = !1, animate: r = !0, c
10520
10526
  ]);
10521
10527
  return /* @__PURE__ */ x("div", {
10522
10528
  ref: u,
10523
- className: b("relative inline", a),
10529
+ className: y("relative inline", a),
10524
10530
  children: [h, l.slice(d).length > 0 && /* @__PURE__ */ o("span", {
10525
10531
  className: "border border-transparent box-decoration-clone",
10526
10532
  children: l.slice(d).map((m, g) => /* @__PURE__ */ o("span", {
@@ -10548,7 +10554,7 @@ var hi = {
10548
10554
  purple: "hsl(0, 0%, 10%)",
10549
10555
  orange: "hsl(0, 0%, 10%)",
10550
10556
  emerald: "hsl(0, 0%, 10%)"
10551
- }, yi = {
10557
+ }, bi = {
10552
10558
  green: "hsl(0, 0%, 20%)",
10553
10559
  blue: "hsl(0, 0%, 20%)",
10554
10560
  purple: "hsl(0, 0%, 100%)",
@@ -10556,7 +10562,7 @@ var hi = {
10556
10562
  emerald: "hsl(0, 0%, 20%)"
10557
10563
  }, m5 = xf;
10558
10564
  function h5({ children: e, id: t, onDragEnd: n, onDragStart: r, onDragCancel: a, onDragOver: i, className: s, disabled: l, data: d }) {
10559
- const { attributes: f, listeners: u, setNodeRef: p, over: h, transform: m, active: g, isDragging: v, activeNodeRect: y, node: C } = Mi({
10565
+ const { attributes: f, listeners: u, setNodeRef: p, over: h, transform: m, active: g, isDragging: v, activeNodeRect: b, node: C } = Mi({
10560
10566
  id: t,
10561
10567
  data: d,
10562
10568
  disabled: l
@@ -10575,7 +10581,7 @@ function h5({ children: e, id: t, onDragEnd: n, onDragStart: r, onDragCancel: a,
10575
10581
  children: typeof e == "function" ? e({
10576
10582
  over: h,
10577
10583
  active: g,
10578
- activeNodeRect: y,
10584
+ activeNodeRect: b,
10579
10585
  isDragging: v,
10580
10586
  node: C
10581
10587
  }) : e
@@ -10612,7 +10618,7 @@ var H3 = ({ children: e, className: t, useDefaultHandle: n = !0, onLayout: r, ..
10612
10618
  onLayout: r,
10613
10619
  ...a,
10614
10620
  className: t,
10615
- children: ee.Children.map(i, (s, l) => ce(s) ? /* @__PURE__ */ x(ie, { children: [s, l < i.length - 1 && n && /* @__PURE__ */ o(V3, { direction: a.direction })] }) : s)
10621
+ children: Q.Children.map(i, (s, l) => ce(s) ? /* @__PURE__ */ x(se, { children: [s, l < i.length - 1 && n && /* @__PURE__ */ o(V3, { direction: a.direction })] }) : s)
10616
10622
  });
10617
10623
  }, vu = ({ children: e, className: t, panelRef: n, ...r }) => /* @__PURE__ */ o(lo, {
10618
10624
  className: t,
@@ -10629,9 +10635,9 @@ var V3 = ({ direction: e }) => {
10629
10635
  coarse: 10,
10630
10636
  fine: 10
10631
10637
  },
10632
- className: b("relative border-[1.25px] border-zinc-900/50", t && "border-foreground/10"),
10638
+ className: y("relative border-[1.25px] border-zinc-900/50", t && "border-foreground/10"),
10633
10639
  children: /* @__PURE__ */ o("div", {
10634
- className: b("absolute top-[50%] flex translate-x-[-50%] items-center justify-center rounded-md border bg-card text-body-muted shadow-sm shadow-zinc-400/5", e === "vertical" ? "cursor-ns-resize" : "cursor-ew-resize", t && "text-foreground"),
10640
+ className: y("absolute top-[50%] flex translate-x-[-50%] items-center justify-center rounded-md border bg-card text-body-muted shadow-sm shadow-zinc-400/5", e === "vertical" ? "cursor-ns-resize" : "cursor-ew-resize", t && "text-foreground"),
10635
10641
  children: /* @__PURE__ */ o(K, {
10636
10642
  name: "grip-vertical",
10637
10643
  className: "h-8 w-5"
@@ -10641,7 +10647,7 @@ var V3 = ({ direction: e }) => {
10641
10647
  }, g5 = Object.assign(H3, {
10642
10648
  Pane: vu,
10643
10649
  ResizeHandle: hu
10644
- }), bi = {
10650
+ }), yi = {
10645
10651
  hidden: {
10646
10652
  opacity: 0,
10647
10653
  scale: 0.5
@@ -10651,11 +10657,11 @@ var V3 = ({ direction: e }) => {
10651
10657
  scale: 1
10652
10658
  }
10653
10659
  }, gu = ({ children: e, snippets: t, copyable: n = !0, selectedLanguage: r, className: a, onChangeLanguage: i, error: s, showLineNumbers: l = !0, showLanguageSelector: d = !0, wordWrap: f = !0 }) => {
10654
- const u = se(null), p = de.toArray(e).filter((_) => {
10660
+ const u = ie(null), p = de.toArray(e).filter((_) => {
10655
10661
  if (!ce(_)) return !1;
10656
10662
  const L = _.type, B = L.displayName === "CodePlayground.Header" || L.displayName === "CodePlayground.Footer" || L.displayName === "CodePlayground.Code";
10657
10663
  return B || console.warn(`Invalid child type: ${L.displayName}. Must be one of: CodePlayground.Header, CodePlayground.Footer`), B;
10658
- }), h = p.find((_) => ce(_) && _.type.displayName === "CodePlayground.Header"), [m, g] = j(null), v = t[r], { theme: y } = Wn(), C = pe(() => {
10664
+ }), h = p.find((_) => ce(_) && _.type.displayName === "CodePlayground.Header"), [m, g] = j(null), v = t[r], { theme: b } = Wn(), C = pe(() => {
10659
10665
  const _ = u.current?.getBoundingClientRect().height ?? 400, L = Math.ceil(_ / 40);
10660
10666
  return /* @__PURE__ */ o(d1, {
10661
10667
  className: "w-full",
@@ -10672,15 +10678,15 @@ var V3 = ({ direction: e }) => {
10672
10678
  showLineNumbers: l,
10673
10679
  wordWrap: f,
10674
10680
  className: "relative m-0 mr-4 w-full bg-muted/15 px-4 py-3 text-sm dark:bg-background"
10675
- }) : null), N = pe(() => p.find((_) => ce(_) && _.type.displayName === "CodePlayground.Code"), [p]), R = N ? ee.cloneElement(N, {
10681
+ }) : null), N = pe(() => p.find((_) => ce(_) && _.type.displayName === "CodePlayground.Code"), [p]), R = N ? Q.cloneElement(N, {
10676
10682
  __children__: w,
10677
10683
  ref: u
10678
10684
  }) : /* @__PURE__ */ o(fa, {
10679
10685
  __children__: w,
10680
10686
  ref: u
10681
10687
  }), M = p.find((_) => ce(_) && _.type.displayName === "CodePlayground.Footer"), S = le(async (_, L) => {
10682
- g(await hl(_, L, y === "dark" ? ml : Vo));
10683
- }, [y]), [E, k] = j(!1), T = le(() => {
10688
+ g(await hl(_, L, b === "dark" ? ml : Vo));
10689
+ }, [b]), [E, k] = j(!1), T = le(() => {
10684
10690
  k(!0), navigator.clipboard.writeText(v.code ?? ""), setTimeout(() => {
10685
10691
  k(!1);
10686
10692
  }, 1e3);
@@ -10696,7 +10702,7 @@ var V3 = ({ direction: e }) => {
10696
10702
  i?.(_);
10697
10703
  }, [i]);
10698
10704
  return /* @__PURE__ */ x("div", {
10699
- className: b("overflow-hidden rounded-lg border shadow-md shadow-white/5", a),
10705
+ className: y("overflow-hidden rounded-lg border shadow-md shadow-white/5", a),
10700
10706
  children: [
10701
10707
  /* @__PURE__ */ x("div", {
10702
10708
  className: "flex items-center border-b bg-card p-2",
@@ -10705,7 +10711,7 @@ var V3 = ({ direction: e }) => {
10705
10711
  children: h && h
10706
10712
  }), d && /* @__PURE__ */ o("div", {
10707
10713
  className: "ml-auto",
10708
- children: /* @__PURE__ */ x(b3, {
10714
+ children: /* @__PURE__ */ x(y3, {
10709
10715
  value: r,
10710
10716
  onValueChange: I,
10711
10717
  children: [/* @__PURE__ */ o(Bd, {
@@ -10729,13 +10735,13 @@ var V3 = ({ direction: e }) => {
10729
10735
  className: "pointer-events-auto absolute top-5 right-6 bg-transparent",
10730
10736
  children: /* @__PURE__ */ o("button", {
10731
10737
  role: "button",
10732
- className: b("ml-2 border-none bg-transparent outline-none"),
10738
+ className: y("ml-2 border-none bg-transparent outline-none"),
10733
10739
  onClick: T,
10734
- children: /* @__PURE__ */ o(ye, {
10740
+ children: /* @__PURE__ */ o(be, {
10735
10741
  mode: "wait",
10736
10742
  initial: !1,
10737
10743
  children: E ? /* @__PURE__ */ o(W.span, {
10738
- variants: bi,
10744
+ variants: yi,
10739
10745
  initial: "hidden",
10740
10746
  animate: "visible",
10741
10747
  className: "text-green-500",
@@ -10745,7 +10751,7 @@ var V3 = ({ direction: e }) => {
10745
10751
  stroke: "currentColor"
10746
10752
  })
10747
10753
  }, "checkmark") : /* @__PURE__ */ o(W.span, {
10748
- variants: bi,
10754
+ variants: yi,
10749
10755
  initial: "hidden",
10750
10756
  animate: "visible",
10751
10757
  className: "text-body-muted hover:text-foreground",
@@ -10767,25 +10773,25 @@ gu.displayName = "CodePlayground";
10767
10773
  var fa = fe(({ className: e, __children__: t, ...n }, r) => /* @__PURE__ */ o("div", {
10768
10774
  ref: r,
10769
10775
  ...n,
10770
- className: b("overflow-auto bg-background", e),
10776
+ className: y("overflow-auto bg-background", e),
10771
10777
  children: t
10772
10778
  }));
10773
10779
  fa.displayName = "CodePlayground.Code";
10774
- var yu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10775
- className: b("flex items-center bg-card", t),
10780
+ var bu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10781
+ className: y("flex items-center bg-card", t),
10776
10782
  ...n,
10777
10783
  children: e
10778
10784
  });
10779
- yu.displayName = "CodePlayground.Header";
10780
- var bu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10781
- className: b("flex items-center border-t bg-card p-2 select-none", t),
10785
+ bu.displayName = "CodePlayground.Header";
10786
+ var yu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10787
+ className: y("flex items-center border-t bg-card p-2 select-none", t),
10782
10788
  ...n,
10783
10789
  children: e
10784
10790
  });
10785
- bu.displayName = "CodePlayground.Footer";
10786
- var y5 = Object.assign(gu, {
10787
- Header: yu,
10788
- Footer: bu,
10791
+ yu.displayName = "CodePlayground.Footer";
10792
+ var b5 = Object.assign(gu, {
10793
+ Header: bu,
10794
+ Footer: yu,
10789
10795
  Code: fa
10790
10796
  }), j3 = "_editorTabLoadingBar_13oan_10", W3 = {
10791
10797
  editorTabLoadingBar: j3,
@@ -10799,9 +10805,9 @@ var y5 = Object.assign(gu, {
10799
10805
  return /* @__PURE__ */ x("div", {
10800
10806
  className: "flex h-full w-full flex-col rounded-lg",
10801
10807
  children: [n.find((i) => ce(i) ? i.type.displayName === "CodeEditor.CommandBar" : !1), /* @__PURE__ */ x(Pi, {
10802
- className: b("flex min-h-0 flex-row", t),
10808
+ className: y("flex min-h-0 flex-row", t),
10803
10809
  direction: "horizontal",
10804
- children: [de.map(r, (i, s) => s < r.length - 1 ? /* @__PURE__ */ x(ie, { children: [i, /* @__PURE__ */ o(co, { className: "bg-background" })] }) : i), a && /* @__PURE__ */ o(lo, { children: a })]
10810
+ children: [de.map(r, (i, s) => s < r.length - 1 ? /* @__PURE__ */ x(se, { children: [i, /* @__PURE__ */ o(co, { className: "bg-background" })] }) : i), a && /* @__PURE__ */ o(lo, { children: a })]
10805
10811
  })]
10806
10812
  });
10807
10813
  };
@@ -10810,9 +10816,9 @@ var wu = ({ children: e, className: t, minSize: n, maxSize: r, containerRef: a,
10810
10816
  ...s,
10811
10817
  minSize: n,
10812
10818
  maxSize: r,
10813
- className: b(t),
10819
+ className: y(t),
10814
10820
  children: [i, /* @__PURE__ */ o("div", {
10815
- className: b("h-full flex-1 overflow-x-hidden overflow-y-scroll border border-neutral-softest bg-background [&::-webkit-scrollbar-thumb]:bg-foreground/10 [&::-webkit-scrollbar-thumb]:hover:bg-foreground/20 [&::-webkit-scrollbar-track]:bg-card", t),
10821
+ className: y("h-full flex-1 overflow-x-hidden overflow-y-scroll border border-neutral-softest bg-background [&::-webkit-scrollbar-thumb]:bg-foreground/10 [&::-webkit-scrollbar-thumb]:hover:bg-foreground/20 [&::-webkit-scrollbar-track]:bg-card", t),
10816
10822
  ref: a,
10817
10823
  children: e
10818
10824
  })]
@@ -10826,18 +10832,18 @@ var Cu = ({ children: e, className: t, ...n }) => {
10826
10832
  });
10827
10833
  return /* @__PURE__ */ o("div", {
10828
10834
  ...n,
10829
- className: b("code-editor-tabs flex w-full flex-row overflow-x-scroll overflow-y-hidden border-b border-neutral-softest bg-background [&::-webkit-scrollbar]:hidden", t),
10835
+ className: y("code-editor-tabs flex w-full flex-row overflow-x-scroll overflow-y-hidden border-b border-neutral-softest bg-background [&::-webkit-scrollbar]:hidden", t),
10830
10836
  children: r
10831
10837
  });
10832
10838
  };
10833
10839
  Cu.displayName = "CodeEditor.Tabs";
10834
10840
  var Nu = ({ id: e, title: t, className: n, active: r, closable: a, grow: i, dirty: s, invalid: l, saving: d, onClick: f, onClose: u, icon: p, disabled: h, customStyles: m, ...g }) => {
10835
- const [v, y] = j(!1), C = (N) => {
10836
- N.stopPropagation(), u?.(e), y(!1);
10841
+ const [v, b] = j(!1), C = (N) => {
10842
+ N.stopPropagation(), u?.(e), b(!1);
10837
10843
  }, w = pe(() => /* @__PURE__ */ o("button", {
10838
- className: b("ml-auto h-full rounded-sm p-0.5 text-body-muted hover:bg-muted hover:text-foreground hover:dark:bg-foreground/15", v && "bg-background/80", v && s && "!bg-foreground/5 dark:!bg-foreground/10"),
10839
- onMouseEnter: () => y(!0),
10840
- onMouseLeave: () => y(!1),
10844
+ className: y("ml-auto h-full rounded-sm p-0.5 text-body-muted hover:bg-muted hover:text-foreground hover:dark:bg-foreground/15", v && "bg-background/80", v && s && "!bg-foreground/5 dark:!bg-foreground/10"),
10845
+ onMouseEnter: () => b(!0),
10846
+ onMouseLeave: () => b(!1),
10841
10847
  onClick: C,
10842
10848
  children: /* @__PURE__ */ o(K, {
10843
10849
  name: "x",
@@ -10851,7 +10857,7 @@ var Nu = ({ id: e, title: t, className: n, active: r, closable: a, grow: i, dirt
10851
10857
  ]);
10852
10858
  return /* @__PURE__ */ Or("div", {
10853
10859
  ...g,
10854
- className: b("code-editor-tab relative flex w-fit cursor-pointer items-center justify-start gap-2.5 rounded-sm rounded-t-none border-r bg-background py-2 pr-2 pl-3 text-sm whitespace-nowrap select-none first-of-type:border-l-0", i && "flex-1", r && "bg-background text-foreground", !r && "bg-muted text-body-muted", s && !d && "text-yellow-700/90 italic dark:text-yellow-300/70", l && "text-red-700 dark:text-red-400", h && "cursor-not-allowed opacity-75", n, m && m.active, m && m.inactive, m && m.dirty, m && m.invalid, m && m.disabled, m && m.saving),
10860
+ className: y("code-editor-tab relative flex w-fit cursor-pointer items-center justify-start gap-2.5 rounded-sm rounded-t-none border-r bg-background py-2 pr-2 pl-3 text-sm whitespace-nowrap select-none first-of-type:border-l-0", i && "flex-1", r && "bg-background text-foreground", !r && "bg-muted text-body-muted", s && !d && "text-yellow-700/90 italic dark:text-yellow-300/70", l && "text-red-700 dark:text-red-400", h && "cursor-not-allowed opacity-75", n, m && m.active, m && m.inactive, m && m.dirty, m && m.invalid, m && m.disabled, m && m.saving),
10855
10861
  key: e,
10856
10862
  onClick: () => f?.(e)
10857
10863
  }, /* @__PURE__ */ x("div", {
@@ -10864,7 +10870,7 @@ var Nu = ({ id: e, title: t, className: n, active: r, closable: a, grow: i, dirt
10864
10870
  children: t
10865
10871
  })]
10866
10872
  }), a && !s && w, s && !d && /* @__PURE__ */ o("span", {
10867
- onMouseEnter: () => y(!0),
10873
+ onMouseEnter: () => b(!0),
10868
10874
  className: "ml-auto flex h-full w-3 items-center justify-center text-xs text-body-muted",
10869
10875
  children: v ? a ? w : /* @__PURE__ */ o(K, {
10870
10876
  name: "circle",
@@ -10881,29 +10887,29 @@ var Nu = ({ id: e, title: t, className: n, active: r, closable: a, grow: i, dirt
10881
10887
  })
10882
10888
  }), d && /* @__PURE__ */ o("div", {
10883
10889
  className: "pointer-events-none absolute bottom-0 left-0 h-0.5 w-full overflow-hidden",
10884
- children: /* @__PURE__ */ o("div", { className: b("absolute h-full w-3/4 -translate-x-full bg-blue-500 dark:bg-blue-300", W3.editorTabLoadingBar) })
10890
+ children: /* @__PURE__ */ o("div", { className: y("absolute h-full w-3/4 -translate-x-full bg-blue-500 dark:bg-blue-300", W3.editorTabLoadingBar) })
10885
10891
  }));
10886
10892
  };
10887
10893
  Nu.displayName = "CodeEditor.Tab";
10888
10894
  var Su = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10889
10895
  ...n,
10890
- className: b("code-editor-command-bar rounded-sm rounded-b-none bg-muted px-3 py-1", t),
10896
+ className: y("code-editor-command-bar rounded-sm rounded-b-none bg-muted px-3 py-1", t),
10891
10897
  children: e
10892
10898
  });
10893
10899
  Su.displayName = "CodeEditor.CommandBar";
10894
10900
  var Eu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10895
- className: b("h-full w-full", t),
10901
+ className: y("h-full w-full", t),
10896
10902
  ...n,
10897
10903
  children: e
10898
10904
  });
10899
10905
  Eu.displayName = "CodeEditor.CustomTabElement";
10900
10906
  var Ru = ({ children: e, className: t, ...n }) => /* @__PURE__ */ o("div", {
10901
- className: b("h-full w-full", t),
10907
+ className: y("h-full w-full", t),
10902
10908
  ...n,
10903
10909
  children: e
10904
10910
  });
10905
10911
  Ru.displayName = "CodeEditor.Empty";
10906
- var b5 = Object.assign(xu, {
10912
+ var y5 = Object.assign(xu, {
10907
10913
  Pane: wu,
10908
10914
  CommandBar: Su,
10909
10915
  Empty: Ru,
@@ -10922,8 +10928,8 @@ function x5({ children: e }) {
10922
10928
  n((v) => (g >= 0 && g < v.length && (d(g > r ? "forward" : "backward"), a(g)), v));
10923
10929
  }, h = (g) => {
10924
10930
  n((v) => {
10925
- const y = [...v, g];
10926
- return a(y.length - 1), y;
10931
+ const b = [...v, g];
10932
+ return a(b.length - 1), b;
10927
10933
  }), d("forward");
10928
10934
  }, m = () => {
10929
10935
  n((g) => g.length > 1 ? (d("backward"), a((v) => v - 1), g.slice(0, g.length - 1)) : (u(), g));
@@ -10988,7 +10994,7 @@ function w5({ renderTitle: e }) {
10988
10994
  const d = t[n];
10989
10995
  Fu(d, "No current screen");
10990
10996
  const f = s === "forward";
10991
- return /* @__PURE__ */ o(ye, { children: r && /* @__PURE__ */ x(W.div, {
10997
+ return /* @__PURE__ */ o(be, { children: r && /* @__PURE__ */ x(W.div, {
10992
10998
  className: "fixed inset-0 z-50 flex flex-col bg-transparent",
10993
10999
  initial: { opacity: 0 },
10994
11000
  animate: { opacity: 1 },
@@ -11008,7 +11014,7 @@ function w5({ renderTitle: e }) {
11008
11014
  })
11009
11015
  }), /* @__PURE__ */ o("div", {
11010
11016
  className: "relative h-7 w-fit min-w-xs overflow-x-hidden",
11011
- children: /* @__PURE__ */ o(ye, {
11017
+ children: /* @__PURE__ */ o(be, {
11012
11018
  initial: !1,
11013
11019
  mode: "sync",
11014
11020
  custom: f,
@@ -11039,7 +11045,7 @@ function w5({ renderTitle: e }) {
11039
11045
  })]
11040
11046
  }), /* @__PURE__ */ o("div", {
11041
11047
  className: "relative flex-1 overflow-hidden",
11042
- children: /* @__PURE__ */ o(ye, {
11048
+ children: /* @__PURE__ */ o(be, {
11043
11049
  initial: !1,
11044
11050
  mode: "wait",
11045
11051
  custom: f,
@@ -11062,7 +11068,7 @@ function w5({ renderTitle: e }) {
11062
11068
  }
11063
11069
  var Ut = c.forwardRef(({ icon: e, size: t = "md", className: n, ...r }, a) => /* @__PURE__ */ o(Ve, {
11064
11070
  ref: a,
11065
- className: b({
11071
+ className: y({
11066
11072
  xs: "h-7 w-7 [&_svg]:size-3",
11067
11073
  sm: "h-8 w-8 [&_svg]:size-3.5",
11068
11074
  md: "h-9 w-9 [&_svg]:size-4",
@@ -11079,8 +11085,8 @@ var C5 = ({ closable: e = !1, className: t, layout: n = "default", onClose: r })
11079
11085
  return !s || !d ? null : /* @__PURE__ */ o(vo, {
11080
11086
  open: s,
11081
11087
  onOpenChange: f,
11082
- children: /* @__PURE__ */ x(yo, { children: [/* @__PURE__ */ o(bo, { className: "fixed top-0 z-10 h-screen w-screen bg-surface-secondary opacity-85" }), n === "default" ? /* @__PURE__ */ x(Bt, {
11083
- className: b("fixed top-1/2 left-1/2 z-20 flex h-auto max-h-[85vh] min-h-[40vh] w-[90vw] max-w-[800px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3 overflow-y-auto rounded-md border-neutral-default bg-surface-primary p-10 shadow-lg outline-none", t),
11088
+ children: /* @__PURE__ */ x(bo, { children: [/* @__PURE__ */ o(yo, { className: "fixed top-0 z-10 h-screen w-screen bg-surface-secondary opacity-85" }), n === "default" ? /* @__PURE__ */ x(Bt, {
11089
+ className: y("fixed top-1/2 left-1/2 z-20 flex h-auto max-h-[85vh] min-h-[40vh] w-[90vw] max-w-[800px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3 overflow-y-auto rounded-md border-neutral-default bg-surface-primary p-10 shadow-lg outline-none", t),
11084
11090
  children: [
11085
11091
  e && /* @__PURE__ */ o(Pn, {
11086
11092
  asChild: !0,
@@ -11101,7 +11107,7 @@ var C5 = ({ closable: e = !1, className: t, layout: n = "default", onClose: r })
11101
11107
  /* @__PURE__ */ o(Co, { children: d.component })
11102
11108
  ]
11103
11109
  }) : /* @__PURE__ */ x(Bt, {
11104
- className: b("fixed top-1/2 left-1/2 z-20 flex h-auto max-h-[85vh] min-h-[40vh] w-[90vw] max-w-[800px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3 overflow-y-auto rounded-md border-neutral-default bg-surface-primary p-10 shadow-lg outline-none", t),
11110
+ className: y("fixed top-1/2 left-1/2 z-20 flex h-auto max-h-[85vh] min-h-[40vh] w-[90vw] max-w-[800px] -translate-x-1/2 -translate-y-1/2 flex-col gap-3 overflow-y-auto rounded-md border-neutral-default bg-surface-primary p-10 shadow-lg outline-none", t),
11105
11111
  children: [e && /* @__PURE__ */ o(Pn, {
11106
11112
  asChild: !0,
11107
11113
  children: /* @__PURE__ */ o(Ut, {
@@ -11128,7 +11134,7 @@ var C5 = ({ closable: e = !1, className: t, layout: n = "default", onClose: r })
11128
11134
  function oo({ icon: e, children: t, className: n, index: r = 0, isLast: a = !1, setsize: i }) {
11129
11135
  const s = de.map(t, (l) => ce(l) && l.type === Pu ? io(l, { isLast: a }) : l);
11130
11136
  return /* @__PURE__ */ x("li", {
11131
- className: b("relative flex items-start gap-4", n),
11137
+ className: y("relative flex items-start gap-4", n),
11132
11138
  "data-timeline-item": !0,
11133
11139
  "aria-posinset": r + 1,
11134
11140
  "aria-setsize": i,
@@ -11154,7 +11160,7 @@ function Pu({ children: e, className: t, isLast: n }) {
11154
11160
  return r.forEach((l) => {
11155
11161
  ce(l) ? l.type === _u ? a = l : l.type === Iu ? i = l : s.push(l) : s.push(l);
11156
11162
  }), /* @__PURE__ */ x("div", {
11157
- className: b("min-w-0 flex-1", !n && "pb-6", t),
11163
+ className: y("min-w-0 flex-1", !n && "pb-6", t),
11158
11164
  "data-testid": n ? "timeline-content-last" : "timeline-content",
11159
11165
  children: [(a || i) && /* @__PURE__ */ x("div", {
11160
11166
  className: "mb-1 flex items-start justify-between gap-4",
@@ -11173,12 +11179,12 @@ function Pu({ children: e, className: t, isLast: n }) {
11173
11179
  }
11174
11180
  function _u({ children: e, className: t, as: n = "div" }) {
11175
11181
  return n === "div" ? /* @__PURE__ */ o("div", {
11176
- className: b("text-heading-xs", Ae.transition, t),
11182
+ className: y("text-heading-xs", Ae.transition, t),
11177
11183
  children: e
11178
11184
  }) : /* @__PURE__ */ o($e, {
11179
11185
  variant: "xs",
11180
11186
  as: n,
11181
- className: b(Ae.transition, t),
11187
+ className: y(Ae.transition, t),
11182
11188
  children: e
11183
11189
  });
11184
11190
  }
@@ -11186,7 +11192,7 @@ function G3({ children: e, className: t }) {
11186
11192
  return /* @__PURE__ */ o(ae, {
11187
11193
  variant: "sm",
11188
11194
  muted: !0,
11189
- className: b("leading-relaxed", Ae.transition, t),
11195
+ className: y("leading-relaxed", Ae.transition, t),
11190
11196
  children: e
11191
11197
  });
11192
11198
  }
@@ -11194,12 +11200,12 @@ function Iu({ children: e, className: t }) {
11194
11200
  return /* @__PURE__ */ o(ae, {
11195
11201
  variant: "xs",
11196
11202
  muted: !0,
11197
- className: b(Ae.transition, t),
11203
+ className: y(Ae.transition, t),
11198
11204
  children: e
11199
11205
  });
11200
11206
  }
11201
11207
  function K3({ children: e, className: t, hasMore: n = !1 }) {
11202
- const r = de.toArray(e), a = r.filter((u) => ce(u) && u.type === oo).length, i = se(null), [s, l] = j(null);
11208
+ const r = de.toArray(e), a = r.filter((u) => ce(u) && u.type === oo).length, i = ie(null), [s, l] = j(null);
11203
11209
  let d = 0;
11204
11210
  const f = r.map((u) => {
11205
11211
  if (ce(u) && u.type === oo) {
@@ -11225,12 +11231,12 @@ function K3({ children: e, className: t, hasMore: n = !1 }) {
11225
11231
  e,
11226
11232
  n
11227
11233
  ]), /* @__PURE__ */ o("div", {
11228
- className: b("relative", t),
11234
+ className: y("relative", t),
11229
11235
  children: a > 0 && /* @__PURE__ */ x("div", {
11230
11236
  className: "relative",
11231
11237
  ref: i,
11232
11238
  children: [a > 1 && /* @__PURE__ */ o("div", {
11233
- className: b(Ae.line, "absolute top-6 left-6 w-px"),
11239
+ className: y(Ae.line, "absolute top-6 left-6 w-px"),
11234
11240
  style: { height: s ? `${s}px` : n ? "calc(100% - 2.5rem)" : "calc(100% - 4.5rem)" },
11235
11241
  "aria-hidden": "true",
11236
11242
  "data-testid": "timeline-connector"
@@ -11247,7 +11253,7 @@ var N5 = Object.assign(K3, {
11247
11253
  Title: _u,
11248
11254
  Description: G3,
11249
11255
  Timestamp: Iu
11250
- }), xi = ee.memo(function({ label: t, className: n = "" }) {
11256
+ }), xi = Q.memo(function({ label: t, className: n = "" }) {
11251
11257
  const r = { visible: { transition: { staggerChildren: 0.03 } } }, a = {
11252
11258
  hidden: {
11253
11259
  opacity: 0,
@@ -11275,7 +11281,7 @@ var N5 = Object.assign(K3, {
11275
11281
  }
11276
11282
  };
11277
11283
  return /* @__PURE__ */ o(W.span, {
11278
- className: b("inline-flex", n),
11284
+ className: y("inline-flex", n),
11279
11285
  variants: r,
11280
11286
  initial: "hidden",
11281
11287
  animate: "visible",
@@ -11294,7 +11300,7 @@ function X3({ modelSelector: e, className: t }) {
11294
11300
  const { model: n, onModelChange: r, availableModels: a } = e, [i, s] = j(!1), l = a.find((p) => p.value === n) || {
11295
11301
  label: "Unknown",
11296
11302
  value: ""
11297
- }, d = se(l.label), [f, u] = j(null);
11303
+ }, d = ie(l.label), [f, u] = j(null);
11298
11304
  return re(() => {
11299
11305
  if (l.label !== d.current) {
11300
11306
  const p = d.current;
@@ -11309,7 +11315,7 @@ function X3({ modelSelector: e, className: t }) {
11309
11315
  asChild: !0,
11310
11316
  children: /* @__PURE__ */ o("button", {
11311
11317
  type: "button",
11312
- className: b("flex h-8 items-center rounded-md px-1 text-xs", t),
11318
+ className: y("flex h-8 items-center rounded-md px-1 text-xs", t),
11313
11319
  children: /* @__PURE__ */ x(W.div, {
11314
11320
  layout: !0,
11315
11321
  transition: {
@@ -11319,7 +11325,7 @@ function X3({ modelSelector: e, className: t }) {
11319
11325
  },
11320
11326
  className: "relative inline-flex items-center gap-1 overflow-hidden whitespace-nowrap",
11321
11327
  children: [
11322
- /* @__PURE__ */ o(ye, {
11328
+ /* @__PURE__ */ o(be, {
11323
11329
  initial: !1,
11324
11330
  children: f && /* @__PURE__ */ o(W.div, {
11325
11331
  initial: { opacity: 1 },
@@ -11350,7 +11356,7 @@ function X3({ modelSelector: e, className: t }) {
11350
11356
  onClick: () => {
11351
11357
  r(p.value), s(!1);
11352
11358
  },
11353
- className: b("flex items-center justify-between gap-2 px-5 py-2 text-xs transition-colors"),
11359
+ className: y("flex items-center justify-between gap-2 px-5 py-2 text-xs transition-colors"),
11354
11360
  children: [/* @__PURE__ */ o("span", { children: p.label }), p.value === n && /* @__PURE__ */ o(K, {
11355
11361
  name: "check",
11356
11362
  className: "size-3"
@@ -11385,7 +11391,7 @@ var it = (e, t, n, r) => {
11385
11391
  className: "size-4"
11386
11392
  }),
11387
11393
  "aria-label": "Send message",
11388
- className: b("h-8 w-8 rounded-[7px]", n)
11394
+ className: y("h-8 w-8 rounded-[7px]", n)
11389
11395
  }),
11390
11396
  modelSelector: ({ model: e, onModelChange: t, availableModels: n, className: r }) => /* @__PURE__ */ o(X3, {
11391
11397
  modelSelector: {
@@ -11393,42 +11399,42 @@ var it = (e, t, n, r) => {
11393
11399
  onModelChange: t,
11394
11400
  availableModels: n
11395
11401
  },
11396
- className: b("rounded-[7px]", r)
11402
+ className: y("rounded-[7px]", r)
11397
11403
  }),
11398
11404
  additionalActions: null
11399
11405
  };
11400
11406
  function Z3({ className: e, components: t }) {
11401
- const { onSendMessage: n, isLoading: r, model: a, onModelChange: i, availableModels: s, initialInput: l } = pa(), [d, f] = j(l || ""), [u, p] = j(!1), h = se(null), m = () => {
11402
- const y = h.current;
11403
- y && (y.style.height = "auto", y.style.height = `${y.scrollHeight}px`);
11407
+ const { onSendMessage: n, isLoading: r, model: a, onModelChange: i, availableModels: s, initialInput: l } = pa(), [d, f] = j(l || ""), [u, p] = j(!1), h = ie(null), m = () => {
11408
+ const b = h.current;
11409
+ b && (b.style.height = "auto", b.style.height = `${b.scrollHeight}px`);
11404
11410
  };
11405
11411
  re(() => {
11406
11412
  m();
11407
11413
  }, [d]), re(() => {
11408
11414
  l && f(l);
11409
11415
  }, []);
11410
- const g = (y) => {
11411
- y?.preventDefault(), d.trim() && n && !r && (n(d), f(""), h.current && (h.current.style.height = "auto"));
11412
- }, v = (y) => {
11413
- y.key === "Enter" && !y.shiftKey && (y.preventDefault(), g());
11416
+ const g = (b) => {
11417
+ b?.preventDefault(), d.trim() && n && !r && (n(d), f(""), h.current && (h.current.style.height = "auto"));
11418
+ }, v = (b) => {
11419
+ b.key === "Enter" && !b.shiftKey && (b.preventDefault(), g());
11414
11420
  };
11415
11421
  return /* @__PURE__ */ o("form", {
11416
11422
  onSubmit: g,
11417
- className: b("mt-auto p-4", e),
11423
+ className: y("mt-auto p-4", e),
11418
11424
  children: /* @__PURE__ */ o("div", {
11419
11425
  className: "flex flex-col",
11420
11426
  children: /* @__PURE__ */ x("div", {
11421
- className: b("flex flex-col overflow-hidden rounded-lg border transition-shadow", u && "ring-1 ring-offset-1"),
11427
+ className: y("flex flex-col overflow-hidden rounded-lg border transition-shadow", u && "ring-1 ring-offset-1"),
11422
11428
  children: [/* @__PURE__ */ o("textarea", {
11423
11429
  ref: h,
11424
11430
  value: d,
11425
- onChange: (y) => f(y.target.value),
11431
+ onChange: (b) => f(b.target.value),
11426
11432
  onKeyDown: v,
11427
11433
  onFocus: () => p(!0),
11428
11434
  onBlur: () => p(!1),
11429
11435
  placeholder: "Send a message...",
11430
11436
  rows: 1,
11431
- className: b("max-h-[300px] min-h-[44px] w-full resize-none bg-transparent px-4 pt-3", "focus:outline-none", "text-sm"),
11437
+ className: y("max-h-[300px] min-h-[44px] w-full resize-none bg-transparent px-4 pt-3", "focus:outline-none", "text-sm"),
11432
11438
  disabled: r
11433
11439
  }), /* @__PURE__ */ x("div", {
11434
11440
  className: "flex items-center justify-between p-3 pt-2",
@@ -11499,7 +11505,7 @@ function Y3({ mimeType: e, data: t, fileName: n, className: r }) {
11499
11505
  })
11500
11506
  }), i = `data:${e};base64,${t}`;
11501
11507
  return /* @__PURE__ */ x("div", {
11502
- className: b("rounded-md border border-neutral-600 bg-neutral-800 p-3", r),
11508
+ className: y("rounded-md border border-neutral-600 bg-neutral-800 p-3", r),
11503
11509
  children: [/* @__PURE__ */ x("div", {
11504
11510
  className: "mb-2 flex items-center gap-2",
11505
11511
  children: [/* @__PURE__ */ o("div", {
@@ -11535,7 +11541,7 @@ function Y3({ mimeType: e, data: t, fileName: n, className: r }) {
11535
11541
  }
11536
11542
  function q3({ reasoning: e, className: t }) {
11537
11543
  return /* @__PURE__ */ x("div", {
11538
- className: b("rounded-md bg-neutral-800 p-3", t),
11544
+ className: y("rounded-md bg-neutral-800 p-3", t),
11539
11545
  children: [/* @__PURE__ */ o(ae, {
11540
11546
  variant: "sm",
11541
11547
  className: "mb-1 font-medium text-neutral-50",
@@ -11549,7 +11555,7 @@ function q3({ reasoning: e, className: t }) {
11549
11555
  }
11550
11556
  function J3({ source: e, className: t }) {
11551
11557
  return /* @__PURE__ */ x("div", {
11552
- className: b("rounded-md border border-neutral-600 bg-neutral-800 p-3", t),
11558
+ className: y("rounded-md border border-neutral-600 bg-neutral-800 p-3", t),
11553
11559
  children: [/* @__PURE__ */ x("div", {
11554
11560
  className: "mb-1 flex items-center gap-2",
11555
11561
  children: [/* @__PURE__ */ o("svg", {
@@ -11590,7 +11596,7 @@ function J3({ source: e, className: t }) {
11590
11596
  }
11591
11597
  function Q3({ text: e, className: t }) {
11592
11598
  return /* @__PURE__ */ o("div", {
11593
- className: b("prose prose-sm min-w-0 break-words dark:prose-invert", "prose-headings:font-light prose-headings:tracking-[0.0015em]", "prose-h1:text-heading-xl", "prose-h2:text-heading-lg", "prose-h3:text-heading-md", "prose-h4:text-heading-sm", "prose-h5:text-heading-xs", "prose-p:font-normal prose-p:tracking-[0.0025em]", "prose-a:font-normal prose-a:tracking-[0.0025em] prose-a:text-link prose-a:decoration-1 prose-a:underline-offset-4", t),
11599
+ className: y("prose prose-sm min-w-0 break-words dark:prose-invert", "prose-headings:font-light prose-headings:tracking-[0.0015em]", "prose-h1:text-heading-xl", "prose-h2:text-heading-lg", "prose-h3:text-heading-md", "prose-h4:text-heading-sm", "prose-h5:text-heading-xs", "prose-p:font-normal prose-p:tracking-[0.0025em]", "prose-a:font-normal prose-a:tracking-[0.0025em] prose-a:text-link prose-a:decoration-1 prose-a:underline-offset-4", t),
11594
11600
  children: /* @__PURE__ */ o(Sf, {
11595
11601
  remarkPlugins: [Ef],
11596
11602
  children: e
@@ -11624,27 +11630,27 @@ function S5({ executeToolCall: e, requiresApproval: t }) {
11624
11630
  var Ci = "typography-body-xs max-h-48 overflow-auto rounded p-2 break-all whitespace-pre-wrap text-foreground bg-muted", xn = {
11625
11631
  toolName: ({ toolName: e, confirmMessage: t, className: n }) => /* @__PURE__ */ o(ae, {
11626
11632
  variant: "xs",
11627
- className: b("flex-1 py-1 font-medium text-foreground", n),
11633
+ className: y("flex-1 py-1 font-medium text-foreground", n),
11628
11634
  children: t || e
11629
11635
  }),
11630
11636
  statusIndicator: ({ status: e, className: t }) => /* @__PURE__ */ o(r4, {
11631
11637
  status: e,
11632
11638
  className: t
11633
11639
  }),
11634
- input: ({ args: e, className: t }) => /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(ae, {
11640
+ input: ({ args: e, className: t }) => /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(ae, {
11635
11641
  variant: "xs",
11636
11642
  className: "mb-1 font-medium text-foreground",
11637
11643
  children: "Input"
11638
11644
  }), /* @__PURE__ */ o("pre", {
11639
- className: b(Ci, t),
11645
+ className: y(Ci, t),
11640
11646
  children: e
11641
11647
  })] }),
11642
- result: ({ result: e, className: t }) => /* @__PURE__ */ x(ie, { children: [/* @__PURE__ */ o(ae, {
11648
+ result: ({ result: e, className: t }) => /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ o(ae, {
11643
11649
  variant: "xs",
11644
11650
  className: "mb-1 font-medium text-foreground",
11645
11651
  children: "Result"
11646
11652
  }), /* @__PURE__ */ o("pre", {
11647
- className: b(Ci, t),
11653
+ className: y(Ci, t),
11648
11654
  children: e
11649
11655
  })] })
11650
11656
  };
@@ -11663,12 +11669,12 @@ function n4({ toolInvocation: e, className: t, components: n }) {
11663
11669
  return /* @__PURE__ */ o(vf, {
11664
11670
  transition: { duration: 0.2 },
11665
11671
  children: /* @__PURE__ */ x(W.div, {
11666
- className: b("overflow-hidden rounded-lg border transition-all duration-300", t),
11672
+ className: y("overflow-hidden rounded-lg border transition-all duration-300", t),
11667
11673
  initial: !1,
11668
11674
  animate: l ? "expanded" : "collapsed",
11669
11675
  children: [
11670
11676
  /* @__PURE__ */ x("div", {
11671
- className: b("flex items-center gap-3 bg-muted px-4 py-2", { "border-b": l }),
11677
+ className: y("flex items-center gap-3 bg-muted px-4 py-2", { "border-b": l }),
11672
11678
  children: [
11673
11679
  /* @__PURE__ */ o("div", {
11674
11680
  className: "relative flex h-6 w-6 items-center justify-center",
@@ -11810,7 +11816,7 @@ var r4 = ({ status: e, className: t }) => {
11810
11816
  switch (e) {
11811
11817
  case "success":
11812
11818
  return /* @__PURE__ */ o(W.div, {
11813
- className: b(r, "bg-success", t),
11819
+ className: y(r, "bg-success", t),
11814
11820
  initial: { scale: 0.8 },
11815
11821
  animate: { scale: 1 },
11816
11822
  transition: {
@@ -11822,7 +11828,7 @@ var r4 = ({ status: e, className: t }) => {
11822
11828
  });
11823
11829
  case "error":
11824
11830
  return /* @__PURE__ */ o(W.div, {
11825
- className: b(r, "bg-destructive", t),
11831
+ className: y(r, "bg-destructive", t),
11826
11832
  initial: { scale: 0.8 },
11827
11833
  animate: { scale: 1 },
11828
11834
  transition: {
@@ -11833,7 +11839,7 @@ var r4 = ({ status: e, className: t }) => {
11833
11839
  children: /* @__PURE__ */ o(hf, { className: "h-full w-full" })
11834
11840
  });
11835
11841
  case "pending":
11836
- return /* @__PURE__ */ x(ie, { children: [
11842
+ return /* @__PURE__ */ x(se, { children: [
11837
11843
  /* @__PURE__ */ o(W.div, {
11838
11844
  className: "absolute inset-0 rounded-full",
11839
11845
  initial: { opacity: 0 },
@@ -11851,7 +11857,7 @@ var r4 = ({ status: e, className: t }) => {
11851
11857
  })
11852
11858
  }),
11853
11859
  /* @__PURE__ */ o(W.div, {
11854
- className: b("relative h-4 w-4 rounded-full", t),
11860
+ className: y("relative h-4 w-4 rounded-full", t),
11855
11861
  initial: { scale: 0.8 },
11856
11862
  animate: { scale: 1 },
11857
11863
  transition: {
@@ -11863,7 +11869,7 @@ var r4 = ({ status: e, className: t }) => {
11863
11869
  })
11864
11870
  ] });
11865
11871
  case "in-progress":
11866
- return /* @__PURE__ */ x(ie, { children: [
11872
+ return /* @__PURE__ */ x(se, { children: [
11867
11873
  /* @__PURE__ */ o(W.div, {
11868
11874
  className: "bg-information-fill/20 absolute inset-0 rounded-full",
11869
11875
  initial: { opacity: 0 },
@@ -11881,7 +11887,7 @@ var r4 = ({ status: e, className: t }) => {
11881
11887
  })
11882
11888
  }),
11883
11889
  /* @__PURE__ */ o(W.div, {
11884
- className: b(n, "bg-information-fill relative rounded-full", t),
11890
+ className: y(n, "bg-information-fill relative rounded-full", t),
11885
11891
  initial: { scale: 0.8 },
11886
11892
  animate: { scale: 1 },
11887
11893
  transition: {
@@ -11897,7 +11903,7 @@ var r4 = ({ status: e, className: t }) => {
11897
11903
  viewBox: "0 0 20 20",
11898
11904
  role: "img",
11899
11905
  "aria-label": "User",
11900
- className: b("h-6 w-6 rounded-full bg-muted text-body-muted ring-1 ring-inset", e),
11906
+ className: y("h-6 w-6 rounded-full bg-muted text-body-muted ring-1 ring-inset", e),
11901
11907
  children: [/* @__PURE__ */ o("defs", { children: /* @__PURE__ */ x("linearGradient", {
11902
11908
  id: "moonshine-ai-chat-user-avatar-gradient",
11903
11909
  x1: "0",
@@ -11920,12 +11926,12 @@ var r4 = ({ status: e, className: t }) => {
11920
11926
  })]
11921
11927
  }),
11922
11928
  assistant: ({ className: e }) => /* @__PURE__ */ o("div", {
11923
- className: b("flex h-6 w-6 items-center justify-center rounded border text-[10px] font-medium", e),
11929
+ className: y("flex h-6 w-6 items-center justify-center rounded border text-[10px] font-medium", e),
11924
11930
  children: "AI"
11925
11931
  }),
11926
11932
  system: ({ className: e }) => /* @__PURE__ */ o("svg", {
11927
11933
  xmlns: "http://www.w3.org/2000/svg",
11928
- className: b("h-6 w-6", e),
11934
+ className: y("h-6 w-6", e),
11929
11935
  fill: "none",
11930
11936
  viewBox: "0 0 24 24",
11931
11937
  stroke: "currentColor",
@@ -11940,7 +11946,7 @@ var r4 = ({ status: e, className: t }) => {
11940
11946
  function a4({ message: e, className: t, components: n }) {
11941
11947
  return /* @__PURE__ */ o("li", {
11942
11948
  role: "listitem",
11943
- className: b("px-4 py-3", t),
11949
+ className: y("px-4 py-3", t),
11944
11950
  children: /* @__PURE__ */ x("div", {
11945
11951
  className: "flex items-start gap-2",
11946
11952
  children: [/* @__PURE__ */ o("div", {
@@ -11976,12 +11982,12 @@ function a4({ message: e, className: t, components: n }) {
11976
11982
  });
11977
11983
  }
11978
11984
  function i4({ components: e, className: t }) {
11979
- const { messages: n } = pa(), r = se(null);
11985
+ const { messages: n } = pa(), r = ie(null);
11980
11986
  return re(() => {
11981
11987
  r.current?.scrollIntoView({ behavior: "smooth" });
11982
11988
  }, [n]), /* @__PURE__ */ x("ul", {
11983
11989
  role: "log",
11984
- className: b("h-full overflow-y-auto", t),
11990
+ className: y("h-full overflow-y-auto", t),
11985
11991
  children: [n.map((a) => /* @__PURE__ */ o(a4, {
11986
11992
  message: a,
11987
11993
  components: e
@@ -12001,7 +12007,7 @@ function E5({ messages: e, isLoading: t, onSendMessage: n, modelSelector: r, cla
12001
12007
  initialInput: d
12002
12008
  },
12003
12009
  children: /* @__PURE__ */ x("div", {
12004
- className: b("flex h-full min-h-0 max-w-3xl flex-col", a),
12010
+ className: y("flex h-full min-h-0 max-w-3xl flex-col", a),
12005
12011
  children: [
12006
12012
  /* @__PURE__ */ o("div", {
12007
12013
  className: "flex-1 overflow-hidden",
@@ -12029,8 +12035,8 @@ export {
12029
12035
  M4 as Badge,
12030
12036
  Ve as Button,
12031
12037
  R4 as Card,
12032
- b5 as CodeEditor,
12033
- y5 as CodePlayground,
12038
+ y5 as CodeEditor,
12039
+ b5 as CodePlayground,
12034
12040
  Dh as CodeSnippet,
12035
12041
  B4 as Combobox,
12036
12042
  mt as Command,
@@ -12095,7 +12101,7 @@ export {
12095
12101
  g5 as ResizablePanel,
12096
12102
  o1 as Score,
12097
12103
  c5 as SegmentedButton,
12098
- b3 as Select,
12104
+ y3 as Select,
12099
12105
  Vd as SelectContent,
12100
12106
  i5 as SelectGroup,
12101
12107
  jd as SelectItem,
@@ -12124,7 +12130,7 @@ export {
12124
12130
  q4 as Wizard,
12125
12131
  Y4 as WorkspaceSelector,
12126
12132
  R5 as beta,
12127
- b as cn,
12133
+ y as cn,
12128
12134
  _h as getMappedLanguage,
12129
12135
  hl as highlightCode,
12130
12136
  ao as isGroupOf,
@@ -12137,7 +12143,7 @@ export {
12137
12143
  At as useAppLayout,
12138
12144
  Mu as useModal,
12139
12145
  Wn as useMoonshineConfig,
12140
- b1 as useMoonshineTheme,
12146
+ y1 as useMoonshineTheme,
12141
12147
  jn as useTailwindBreakpoint,
12142
12148
  S5 as useToolCallApproval
12143
12149
  };