@gram-ai/elements 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/elements.js CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as l, Fragment as bt, jsxs as O } from "react/jsx-runtime";
1
+ import { jsx as u, Fragment as bt, jsxs as O } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import fr, { createContext as ia, useContext as sa, forwardRef as Rt, createElement as Kt, useLayoutEffect as ca, memo as la, useState as Qe, useEffect as ua } from "react";
4
4
  import { useLocalRuntime as da, AssistantRuntimeProvider as fa, MessagePrimitive as ve, ComposerPrimitive as ie, useAssistantApi as ma, useAssistantState as yt, AttachmentPrimitive as Xt, ThreadPrimitive as fe, ErrorPrimitive as Pn, BranchPickerPrimitive as Ye, ActionBarPrimitive as Ke, AssistantModalPrimitive as ot } from "@assistant-ui/react";
@@ -31,9 +31,9 @@ function ka(e) {
31
31
  let i = "", s = "";
32
32
  try {
33
33
  for (; ; ) {
34
- const { done: c, value: u } = await o.read();
34
+ const { done: c, value: l } = await o.read();
35
35
  if (c) break;
36
- for (i += a.decode(u, { stream: !0 }); ; ) {
36
+ for (i += a.decode(l, { stream: !0 }); ; ) {
37
37
  const f = i.indexOf(`
38
38
  `);
39
39
  if (f === -1) break;
@@ -64,7 +64,7 @@ function ka(e) {
64
64
  };
65
65
  }
66
66
  const Jt = {
67
- variant: "modal",
67
+ variant: "widget",
68
68
  theme: "system",
69
69
  welcome: {
70
70
  title: "Hello there!",
@@ -88,7 +88,7 @@ const Jt = {
88
88
  ...n?.welcome
89
89
  }
90
90
  };
91
- return /* @__PURE__ */ l(fa, { runtime: r, children: /* @__PURE__ */ l(pr.Provider, { value: { config: o }, children: e }) });
91
+ return /* @__PURE__ */ u(fa, { runtime: r, children: /* @__PURE__ */ u(pr.Provider, { value: { config: o }, children: e }) });
92
92
  }, Ee = () => {
93
93
  const e = sa(pr);
94
94
  if (!e)
@@ -141,7 +141,7 @@ const Oa = Rt(
141
141
  ...s
142
142
  },
143
143
  [
144
- ...i.map(([u, f]) => Kt(u, f)),
144
+ ...i.map(([l, f]) => Kt(l, f)),
145
145
  ...Array.isArray(a) ? a : [a]
146
146
  ]
147
147
  )
@@ -180,8 +180,8 @@ const Da = [
180
180
  const za = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], cn = Y("check", za);
181
181
  const $a = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], gr = Y("chevron-down", $a);
182
182
  const Fa = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Wa = Y("chevron-left", Fa);
183
- const Ba = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Va = Y("chevron-right", Ba);
184
- const ja = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ha = Y("chevron-up", ja);
183
+ const Ba = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ja = Y("chevron-right", Ba);
184
+ const Va = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ha = Y("chevron-up", Va);
185
185
  const Ua = [
186
186
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
187
187
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
@@ -258,10 +258,10 @@ function wr(e) {
258
258
  yr(a) && typeof wt == "function" && (a = wt(a._payload));
259
259
  const s = d.Children.toArray(a), c = s.find(li);
260
260
  if (c) {
261
- const u = c.props.children, f = s.map((m) => m === c ? d.Children.count(u) > 1 ? d.Children.only(null) : d.isValidElement(u) ? u.props.children : null : m);
262
- return /* @__PURE__ */ l(t, { ...i, ref: o, children: d.isValidElement(u) ? d.cloneElement(u, void 0, f) : null });
261
+ const l = c.props.children, f = s.map((m) => m === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : m);
262
+ return /* @__PURE__ */ u(t, { ...i, ref: o, children: d.isValidElement(l) ? d.cloneElement(l, void 0, f) : null });
263
263
  }
264
- return /* @__PURE__ */ l(t, { ...i, ref: o, children: a });
264
+ return /* @__PURE__ */ u(t, { ...i, ref: o, children: a });
265
265
  });
266
266
  return n.displayName = `${e}.Slot`, n;
267
267
  }
@@ -281,7 +281,7 @@ function ii(e) {
281
281
  var xr = Symbol("radix.slottable");
282
282
  // @__NO_SIDE_EFFECTS__
283
283
  function si(e) {
284
- const t = ({ children: n }) => /* @__PURE__ */ l(bt, { children: n });
284
+ const t = ({ children: n }) => /* @__PURE__ */ u(bt, { children: n });
285
285
  return t.displayName = `${e}.Slottable`, t.__radixId = xr, t;
286
286
  }
287
287
  var ci = /* @__PURE__ */ si("Slottable");
@@ -319,15 +319,15 @@ function Sr() {
319
319
  const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, fi = (e, t) => (n) => {
320
320
  var r;
321
321
  if (t?.variants == null) return Mn(e, n?.class, n?.className);
322
- const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((u) => {
323
- const f = n?.[u], m = a?.[u];
322
+ const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((l) => {
323
+ const f = n?.[l], m = a?.[l];
324
324
  if (f === null) return null;
325
325
  const g = _n(f) || _n(m);
326
- return o[u][g];
327
- }), s = n && Object.entries(n).reduce((u, f) => {
326
+ return o[l][g];
327
+ }), s = n && Object.entries(n).reduce((l, f) => {
328
328
  let [m, g] = f;
329
- return g === void 0 || (u[m] = g), u;
330
- }, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, f) => {
329
+ return g === void 0 || (l[m] = g), l;
330
+ }, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, f) => {
331
331
  let { class: m, className: g, ...p } = f;
332
332
  return Object.entries(p).every((v) => {
333
333
  let [h, b] = v;
@@ -339,10 +339,10 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
339
339
  ...s
340
340
  }[h] === b;
341
341
  }) ? [
342
- ...u,
342
+ ...l,
343
343
  m,
344
344
  g
345
- ] : u;
345
+ ] : l;
346
346
  }, []);
347
347
  return Mn(e, i, c, n?.class, n?.className);
348
348
  }, mi = (e, t) => {
@@ -373,8 +373,8 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
373
373
  },
374
374
  getConflictingClassGroupIds: (i, s) => {
375
375
  if (s) {
376
- const c = r[i], u = n[i];
377
- return c ? u ? mi(u, c) : c : u || Ln;
376
+ const c = r[i], l = n[i];
377
+ return c ? l ? mi(l, c) : c : l || Ln;
378
378
  }
379
379
  return n[i] || Ln;
380
380
  }
@@ -384,15 +384,15 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
384
384
  return n.classGroupId;
385
385
  const o = e[t], a = n.nextPart.get(o);
386
386
  if (a) {
387
- const u = kr(e, t + 1, a);
388
- if (u) return u;
387
+ const l = kr(e, t + 1, a);
388
+ if (l) return l;
389
389
  }
390
390
  const i = n.validators;
391
391
  if (i === null)
392
392
  return;
393
393
  const s = t === 0 ? e.join(xt) : e.slice(t).join(xt), c = i.length;
394
- for (let u = 0; u < c; u++) {
395
- const f = i[u];
394
+ for (let l = 0; l < c; l++) {
395
+ const f = i[l];
396
396
  if (f.validator(s))
397
397
  return f.classGroupId;
398
398
  }
@@ -489,7 +489,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
489
489
  } = e;
490
490
  let r = (o) => {
491
491
  const a = [];
492
- let i = 0, s = 0, c = 0, u;
492
+ let i = 0, s = 0, c = 0, l;
493
493
  const f = o.length;
494
494
  for (let h = 0; h < f; h++) {
495
495
  const b = o[h];
@@ -499,7 +499,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
499
499
  continue;
500
500
  }
501
501
  if (b === "/") {
502
- u = h;
502
+ l = h;
503
503
  continue;
504
504
  }
505
505
  }
@@ -514,7 +514,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
514
514
  */
515
515
  m.startsWith(Qt) && (g = m.slice(1), p = !0)
516
516
  );
517
- const v = u && u > c ? u - c : void 0;
517
+ const v = l && l > c ? l - c : void 0;
518
518
  return In(a, p, g, v);
519
519
  };
520
520
  if (t) {
@@ -555,8 +555,8 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
555
555
  sortModifiers: a
556
556
  } = t, i = [], s = e.trim().split(Oi);
557
557
  let c = "";
558
- for (let u = s.length - 1; u >= 0; u -= 1) {
559
- const f = s[u], {
558
+ for (let l = s.length - 1; l >= 0; l -= 1) {
559
+ const f = s[l], {
560
560
  isExternal: m,
561
561
  modifiers: g,
562
562
  hasImportantModifier: p,
@@ -606,12 +606,12 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
606
606
  }, Mi = (e, ...t) => {
607
607
  let n, r, o, a;
608
608
  const i = (c) => {
609
- const u = t.reduce((f, m) => m(f), e());
610
- return n = Pi(u), r = n.cache.get, o = n.cache.set, a = s, s(c);
609
+ const l = t.reduce((f, m) => m(f), e());
610
+ return n = Pi(l), r = n.cache.get, o = n.cache.set, a = s, s(c);
611
611
  }, s = (c) => {
612
- const u = r(c);
613
- if (u)
614
- return u;
612
+ const l = r(c);
613
+ if (l)
614
+ return l;
615
615
  const f = Ti(c, n);
616
616
  return o(c, f), f;
617
617
  };
@@ -619,19 +619,19 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
619
619
  }, Li = [], H = (e) => {
620
620
  const t = (n) => n[e] || Li;
621
621
  return t.isThemeGetter = !0, t;
622
- }, Nr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Pr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Di = /^\d+\/\d+$/, Ii = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, $i = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Fi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Pe = (e) => Di.test(e), T = (e) => !!e && !Number.isNaN(Number(e)), he = (e) => !!e && Number.isInteger(Number(e)), It = (e) => e.endsWith("%") && T(e.slice(0, -1)), de = (e) => Ii.test(e), Bi = () => !0, Vi = (e) => (
622
+ }, Nr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Pr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Di = /^\d+\/\d+$/, Ii = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, $i = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Fi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Pe = (e) => Di.test(e), T = (e) => !!e && !Number.isNaN(Number(e)), he = (e) => !!e && Number.isInteger(Number(e)), It = (e) => e.endsWith("%") && T(e.slice(0, -1)), de = (e) => Ii.test(e), Bi = () => !0, ji = (e) => (
623
623
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
624
624
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
625
625
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
626
626
  zi.test(e) && !$i.test(e)
627
- ), Or = () => !1, ji = (e) => Fi.test(e), Hi = (e) => Wi.test(e), Ui = (e) => !A(e) && !R(e), Gi = (e) => $e(e, Mr, Or), A = (e) => Nr.test(e), we = (e) => $e(e, Lr, Vi), zt = (e) => $e(e, Zi, T), zn = (e) => $e(e, Tr, Or), Yi = (e) => $e(e, _r, Hi), at = (e) => $e(e, Dr, ji), R = (e) => Pr.test(e), qe = (e) => Fe(e, Lr), qi = (e) => Fe(e, Ji), $n = (e) => Fe(e, Tr), Ki = (e) => Fe(e, Mr), Xi = (e) => Fe(e, _r), it = (e) => Fe(e, Dr, !0), $e = (e, t, n) => {
627
+ ), Or = () => !1, Vi = (e) => Fi.test(e), Hi = (e) => Wi.test(e), Ui = (e) => !A(e) && !R(e), Gi = (e) => $e(e, Mr, Or), A = (e) => Nr.test(e), we = (e) => $e(e, Lr, ji), zt = (e) => $e(e, Zi, T), zn = (e) => $e(e, Tr, Or), Yi = (e) => $e(e, _r, Hi), at = (e) => $e(e, Dr, Vi), R = (e) => Pr.test(e), qe = (e) => Fe(e, Lr), qi = (e) => Fe(e, Ji), $n = (e) => Fe(e, Tr), Ki = (e) => Fe(e, Mr), Xi = (e) => Fe(e, _r), it = (e) => Fe(e, Dr, !0), $e = (e, t, n) => {
628
628
  const r = Nr.exec(e);
629
629
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
630
630
  }, Fe = (e, t, n = !1) => {
631
631
  const r = Pr.exec(e);
632
632
  return r ? r[1] ? t(r[1]) : n : !1;
633
633
  }, Tr = (e) => e === "position" || e === "percentage", _r = (e) => e === "image" || e === "url", Mr = (e) => e === "length" || e === "size" || e === "bg-size", Lr = (e) => e === "length", Zi = (e) => e === "number", Ji = (e) => e === "family-name", Dr = (e) => e === "shadow", Qi = () => {
634
- const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), o = H("tracking"), a = H("leading"), i = H("breakpoint"), s = H("container"), c = H("spacing"), u = H("radius"), f = H("shadow"), m = H("inset-shadow"), g = H("text-shadow"), p = H("drop-shadow"), v = H("blur"), h = H("perspective"), b = H("aspect"), y = H("ease"), w = H("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
634
+ const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), o = H("tracking"), a = H("leading"), i = H("breakpoint"), s = H("container"), c = H("spacing"), l = H("radius"), f = H("shadow"), m = H("inset-shadow"), g = H("text-shadow"), p = H("drop-shadow"), v = H("blur"), h = H("perspective"), b = H("aspect"), y = H("ease"), w = H("animate"), S = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
635
635
  "center",
636
636
  "top",
637
637
  "bottom",
@@ -651,18 +651,18 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
651
651
  "left-bottom"
652
652
  ], E = () => [...C(), R, A], P = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], k = () => [R, A, c], M = () => [Pe, "full", "auto", ...k()], D = () => [he, "none", "subgrid", R, A], F = () => ["auto", {
653
653
  span: ["full", he, R, A]
654
- }, he, R, A], W = () => [he, "auto", R, A], B = () => ["auto", "min", "max", "fr", R, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...k()], I = () => [Pe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], x = () => [e, R, A], j = () => [...C(), $n, zn, {
654
+ }, he, R, A], W = () => [he, "auto", R, A], B = () => ["auto", "min", "max", "fr", R, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...k()], I = () => [Pe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], x = () => [e, R, A], V = () => [...C(), $n, zn, {
655
655
  position: [R, A]
656
656
  }], X = () => ["no-repeat", {
657
657
  repeat: ["", "x", "y", "space", "round"]
658
- }], je = () => ["auto", "cover", "contain", Ki, Gi, {
658
+ }], Ve = () => ["auto", "cover", "contain", Ki, Gi, {
659
659
  size: [R, A]
660
660
  }], He = () => [It, qe, we], U = () => [
661
661
  // Deprecated since Tailwind CSS v4.0.0
662
662
  "",
663
663
  "none",
664
664
  "full",
665
- u,
665
+ l,
666
666
  R,
667
667
  A
668
668
  ], G = () => ["", T, qe, we], ke = () => ["solid", "dashed", "dotted", "double"], nt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [T, It, $n, zn], Ue = () => [
@@ -1082,14 +1082,14 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1082
1082
  * @see https://tailwindcss.com/docs/justify-items
1083
1083
  */
1084
1084
  "justify-items": [{
1085
- "justify-items": [...V(), "normal"]
1085
+ "justify-items": [...j(), "normal"]
1086
1086
  }],
1087
1087
  /**
1088
1088
  * Justify Self
1089
1089
  * @see https://tailwindcss.com/docs/justify-self
1090
1090
  */
1091
1091
  "justify-self": [{
1092
- "justify-self": ["auto", ...V()]
1092
+ "justify-self": ["auto", ...j()]
1093
1093
  }],
1094
1094
  /**
1095
1095
  * Align Content
@@ -1103,7 +1103,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1103
1103
  * @see https://tailwindcss.com/docs/align-items
1104
1104
  */
1105
1105
  "align-items": [{
1106
- items: [...V(), {
1106
+ items: [...j(), {
1107
1107
  baseline: ["", "last"]
1108
1108
  }]
1109
1109
  }],
@@ -1112,7 +1112,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1112
1112
  * @see https://tailwindcss.com/docs/align-self
1113
1113
  */
1114
1114
  "align-self": [{
1115
- self: ["auto", ...V(), {
1115
+ self: ["auto", ...j(), {
1116
1116
  baseline: ["", "last"]
1117
1117
  }]
1118
1118
  }],
@@ -1128,14 +1128,14 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1128
1128
  * @see https://tailwindcss.com/docs/place-items
1129
1129
  */
1130
1130
  "place-items": [{
1131
- "place-items": [...V(), "baseline"]
1131
+ "place-items": [...j(), "baseline"]
1132
1132
  }],
1133
1133
  /**
1134
1134
  * Place Self
1135
1135
  * @see https://tailwindcss.com/docs/place-self
1136
1136
  */
1137
1137
  "place-self": [{
1138
- "place-self": ["auto", ...V()]
1138
+ "place-self": ["auto", ...j()]
1139
1139
  }],
1140
1140
  // Spacing
1141
1141
  /**
@@ -1624,7 +1624,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1624
1624
  * @see https://tailwindcss.com/docs/background-position
1625
1625
  */
1626
1626
  "bg-position": [{
1627
- bg: j()
1627
+ bg: V()
1628
1628
  }],
1629
1629
  /**
1630
1630
  * Background Repeat
@@ -1638,7 +1638,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
1638
1638
  * @see https://tailwindcss.com/docs/background-size
1639
1639
  */
1640
1640
  "bg-size": [{
1641
- bg: je()
1641
+ bg: Ve()
1642
1642
  }],
1643
1643
  /**
1644
1644
  * Background Image
@@ -2301,7 +2301,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
2301
2301
  * @see https://tailwindcss.com/docs/mask-position
2302
2302
  */
2303
2303
  "mask-position": [{
2304
- mask: j()
2304
+ mask: V()
2305
2305
  }],
2306
2306
  /**
2307
2307
  * Mask Repeat
@@ -2315,7 +2315,7 @@ const _n = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Sr, f
2315
2315
  * @see https://tailwindcss.com/docs/mask-size
2316
2316
  */
2317
2317
  "mask-size": [{
2318
- mask: je()
2318
+ mask: Ve()
2319
2319
  }],
2320
2320
  /**
2321
2321
  * Mask Type
@@ -3138,7 +3138,7 @@ function De({
3138
3138
  asChild: r = !1,
3139
3139
  ...o
3140
3140
  }) {
3141
- return /* @__PURE__ */ l(
3141
+ return /* @__PURE__ */ u(
3142
3142
  r ? ai : "button",
3143
3143
  {
3144
3144
  "data-slot": "button",
@@ -3156,7 +3156,7 @@ function q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3156
3156
  function ns(e, t) {
3157
3157
  const n = d.createContext(t), r = (a) => {
3158
3158
  const { children: i, ...s } = a, c = d.useMemo(() => s, Object.values(s));
3159
- return /* @__PURE__ */ l(n.Provider, { value: c, children: i });
3159
+ return /* @__PURE__ */ u(n.Provider, { value: c, children: i });
3160
3160
  };
3161
3161
  r.displayName = e + "Provider";
3162
3162
  function o(a) {
@@ -3172,18 +3172,18 @@ function dn(e, t = []) {
3172
3172
  function r(a, i) {
3173
3173
  const s = d.createContext(i), c = n.length;
3174
3174
  n = [...n, i];
3175
- const u = (m) => {
3175
+ const l = (m) => {
3176
3176
  const { scope: g, children: p, ...v } = m, h = g?.[e]?.[c] || s, b = d.useMemo(() => v, Object.values(v));
3177
- return /* @__PURE__ */ l(h.Provider, { value: b, children: p });
3177
+ return /* @__PURE__ */ u(h.Provider, { value: b, children: p });
3178
3178
  };
3179
- u.displayName = a + "Provider";
3179
+ l.displayName = a + "Provider";
3180
3180
  function f(m, g) {
3181
3181
  const p = g?.[e]?.[c] || s, v = d.useContext(p);
3182
3182
  if (v) return v;
3183
3183
  if (i !== void 0) return i;
3184
3184
  throw new Error(`\`${m}\` must be used within \`${a}\``);
3185
3185
  }
3186
- return [u, f];
3186
+ return [l, f];
3187
3187
  }
3188
3188
  const o = () => {
3189
3189
  const a = n.map((i) => d.createContext(i));
@@ -3206,8 +3206,8 @@ function rs(...e) {
3206
3206
  scopeName: o.scopeName
3207
3207
  }));
3208
3208
  return function(a) {
3209
- const i = r.reduce((s, { useScope: c, scopeName: u }) => {
3210
- const m = c(a)[`__scope${u}`];
3209
+ const i = r.reduce((s, { useScope: c, scopeName: l }) => {
3210
+ const m = c(a)[`__scope${l}`];
3211
3211
  return { ...s, ...m };
3212
3212
  }, {});
3213
3213
  return d.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
@@ -3220,10 +3220,10 @@ function Ir(e) {
3220
3220
  const t = /* @__PURE__ */ os(e), n = d.forwardRef((r, o) => {
3221
3221
  const { children: a, ...i } = r, s = d.Children.toArray(a), c = s.find(is);
3222
3222
  if (c) {
3223
- const u = c.props.children, f = s.map((m) => m === c ? d.Children.count(u) > 1 ? d.Children.only(null) : d.isValidElement(u) ? u.props.children : null : m);
3224
- return /* @__PURE__ */ l(t, { ...i, ref: o, children: d.isValidElement(u) ? d.cloneElement(u, void 0, f) : null });
3223
+ const l = c.props.children, f = s.map((m) => m === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : m);
3224
+ return /* @__PURE__ */ u(t, { ...i, ref: o, children: d.isValidElement(l) ? d.cloneElement(l, void 0, f) : null });
3225
3225
  }
3226
- return /* @__PURE__ */ l(t, { ...i, ref: o, children: a });
3226
+ return /* @__PURE__ */ u(t, { ...i, ref: o, children: a });
3227
3227
  });
3228
3228
  return n.displayName = `${e}.Slot`, n;
3229
3229
  }
@@ -3242,7 +3242,7 @@ function os(e) {
3242
3242
  var zr = Symbol("radix.slottable");
3243
3243
  // @__NO_SIDE_EFFECTS__
3244
3244
  function as(e) {
3245
- const t = ({ children: n }) => /* @__PURE__ */ l(bt, { children: n });
3245
+ const t = ({ children: n }) => /* @__PURE__ */ u(bt, { children: n });
3246
3246
  return t.displayName = `${e}.Slottable`, t.__radixId = zr, t;
3247
3247
  }
3248
3248
  function is(e) {
@@ -3284,7 +3284,7 @@ var ls = [
3284
3284
  ], K = ls.reduce((e, t) => {
3285
3285
  const n = /* @__PURE__ */ Ir(`Primitive.${t}`), r = d.forwardRef((o, a) => {
3286
3286
  const { asChild: i, ...s } = o, c = i ? n : t;
3287
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...s, ref: a });
3287
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...s, ref: a });
3288
3288
  });
3289
3289
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
3290
3290
  }, {});
@@ -3320,26 +3320,26 @@ var fs = "DismissableLayer", en = "dismissableLayer.update", ms = "dismissableLa
3320
3320
  onInteractOutside: i,
3321
3321
  onDismiss: s,
3322
3322
  ...c
3323
- } = e, u = d.useContext($r), [f, m] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, p] = d.useState({}), v = re(t, (N) => m(N)), h = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(b), w = f ? h.indexOf(f) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, E = vs((N) => {
3324
- const k = N.target, M = [...u.branches].some((D) => D.contains(k));
3323
+ } = e, l = d.useContext($r), [f, m] = d.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, p] = d.useState({}), v = re(t, (N) => m(N)), h = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(b), w = f ? h.indexOf(f) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, E = vs((N) => {
3324
+ const k = N.target, M = [...l.branches].some((D) => D.contains(k));
3325
3325
  !C || M || (o?.(N), i?.(N), N.defaultPrevented || s?.());
3326
3326
  }, g), P = bs((N) => {
3327
3327
  const k = N.target;
3328
- [...u.branches].some((D) => D.contains(k)) || (a?.(N), i?.(N), N.defaultPrevented || s?.());
3328
+ [...l.branches].some((D) => D.contains(k)) || (a?.(N), i?.(N), N.defaultPrevented || s?.());
3329
3329
  }, g);
3330
3330
  return ds((N) => {
3331
- w === u.layers.size - 1 && (r?.(N), !N.defaultPrevented && s && (N.preventDefault(), s()));
3331
+ w === l.layers.size - 1 && (r?.(N), !N.defaultPrevented && s && (N.preventDefault(), s()));
3332
3332
  }, g), d.useEffect(() => {
3333
3333
  if (f)
3334
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Fn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Wn(), () => {
3335
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Fn);
3334
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Fn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Wn(), () => {
3335
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Fn);
3336
3336
  };
3337
- }, [f, g, n, u]), d.useEffect(() => () => {
3338
- f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Wn());
3339
- }, [f, u]), d.useEffect(() => {
3337
+ }, [f, g, n, l]), d.useEffect(() => () => {
3338
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Wn());
3339
+ }, [f, l]), d.useEffect(() => {
3340
3340
  const N = () => p({});
3341
3341
  return document.addEventListener(en, N), () => document.removeEventListener(en, N);
3342
- }, []), /* @__PURE__ */ l(
3342
+ }, []), /* @__PURE__ */ u(
3343
3343
  K.div,
3344
3344
  {
3345
3345
  ...c,
@@ -3367,7 +3367,7 @@ var hs = "DismissableLayerBranch", gs = d.forwardRef((e, t) => {
3367
3367
  return n.branches.add(a), () => {
3368
3368
  n.branches.delete(a);
3369
3369
  };
3370
- }, [n.branches]), /* @__PURE__ */ l(K.div, { ...e, ref: o });
3370
+ }, [n.branches]), /* @__PURE__ */ u(K.div, { ...e, ref: o });
3371
3371
  });
3372
3372
  gs.displayName = hs;
3373
3373
  function vs(e, t = globalThis?.document) {
@@ -3380,11 +3380,11 @@ function vs(e, t = globalThis?.document) {
3380
3380
  Fr(
3381
3381
  ms,
3382
3382
  n,
3383
- u,
3383
+ l,
3384
3384
  { discrete: !0 }
3385
3385
  );
3386
3386
  };
3387
- const u = { originalEvent: s };
3387
+ const l = { originalEvent: s };
3388
3388
  s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
3389
3389
  } else
3390
3390
  t.removeEventListener("click", o.current);
@@ -3481,12 +3481,12 @@ function As(e) {
3481
3481
  function nn(e) {
3482
3482
  return e.replace(/start|end/g, (t) => Ss[t]);
3483
3483
  }
3484
- const Bn = ["left", "right"], Vn = ["right", "left"], Rs = ["top", "bottom"], Ns = ["bottom", "top"];
3484
+ const Bn = ["left", "right"], jn = ["right", "left"], Rs = ["top", "bottom"], Ns = ["bottom", "top"];
3485
3485
  function Ps(e, t, n) {
3486
3486
  switch (e) {
3487
3487
  case "top":
3488
3488
  case "bottom":
3489
- return n ? t ? Vn : Bn : t ? Bn : Vn;
3489
+ return n ? t ? jn : Bn : t ? Bn : jn;
3490
3490
  case "left":
3491
3491
  case "right":
3492
3492
  return t ? Rs : Ns;
@@ -3537,12 +3537,12 @@ function Et(e) {
3537
3537
  y: n
3538
3538
  };
3539
3539
  }
3540
- function jn(e, t, n) {
3540
+ function Vn(e, t, n) {
3541
3541
  let {
3542
3542
  reference: r,
3543
3543
  floating: o
3544
3544
  } = e;
3545
- const a = se(t), i = hn(t), s = pn(i), c = pe(t), u = a === "y", f = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
3545
+ const a = se(t), i = hn(t), s = pn(i), c = pe(t), l = a === "y", f = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
3546
3546
  let p;
3547
3547
  switch (c) {
3548
3548
  case "top":
@@ -3577,10 +3577,10 @@ function jn(e, t, n) {
3577
3577
  }
3578
3578
  switch (We(t)) {
3579
3579
  case "start":
3580
- p[i] -= g * (n && u ? -1 : 1);
3580
+ p[i] -= g * (n && l ? -1 : 1);
3581
3581
  break;
3582
3582
  case "end":
3583
- p[i] += g * (n && u ? -1 : 1);
3583
+ p[i] += g * (n && l ? -1 : 1);
3584
3584
  break;
3585
3585
  }
3586
3586
  return p;
@@ -3592,14 +3592,14 @@ const _s = async (e, t, n) => {
3592
3592
  middleware: a = [],
3593
3593
  platform: i
3594
3594
  } = n, s = a.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
3595
- let u = await i.getElementRects({
3595
+ let l = await i.getElementRects({
3596
3596
  reference: e,
3597
3597
  floating: t,
3598
3598
  strategy: o
3599
3599
  }), {
3600
3600
  x: f,
3601
3601
  y: m
3602
- } = jn(u, r, c), g = r, p = {}, v = 0;
3602
+ } = Vn(l, r, c), g = r, p = {}, v = 0;
3603
3603
  for (let h = 0; h < s.length; h++) {
3604
3604
  const {
3605
3605
  name: b,
@@ -3616,7 +3616,7 @@ const _s = async (e, t, n) => {
3616
3616
  placement: g,
3617
3617
  strategy: o,
3618
3618
  middlewareData: p,
3619
- rects: u,
3619
+ rects: l,
3620
3620
  platform: i,
3621
3621
  elements: {
3622
3622
  reference: e,
@@ -3629,14 +3629,14 @@ const _s = async (e, t, n) => {
3629
3629
  ...p[b],
3630
3630
  ...C
3631
3631
  }
3632
- }, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (g = E.placement), E.rects && (u = E.rects === !0 ? await i.getElementRects({
3632
+ }, E && v <= 50 && (v++, typeof E == "object" && (E.placement && (g = E.placement), E.rects && (l = E.rects === !0 ? await i.getElementRects({
3633
3633
  reference: e,
3634
3634
  floating: t,
3635
3635
  strategy: o
3636
3636
  }) : E.rects), {
3637
3637
  x: f,
3638
3638
  y: m
3639
- } = jn(u, g, c)), h = -1);
3639
+ } = Vn(l, g, c)), h = -1);
3640
3640
  }
3641
3641
  return {
3642
3642
  x: f,
@@ -3657,14 +3657,14 @@ async function Xe(e, t) {
3657
3657
  elements: s,
3658
3658
  strategy: c
3659
3659
  } = e, {
3660
- boundary: u = "clippingAncestors",
3660
+ boundary: l = "clippingAncestors",
3661
3661
  rootBoundary: f = "viewport",
3662
3662
  elementContext: m = "floating",
3663
3663
  altBoundary: g = !1,
3664
3664
  padding: p = 0
3665
3665
  } = me(t, e), v = Wr(p), b = s[g ? m === "floating" ? "reference" : "floating" : m], y = Et(await a.getClippingRect({
3666
3666
  element: (n = await (a.isElement == null ? void 0 : a.isElement(b))) == null || n ? b : b.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
3667
- boundary: u,
3667
+ boundary: l,
3668
3668
  rootBoundary: f,
3669
3669
  strategy: c
3670
3670
  })), w = m === "floating" ? {
@@ -3704,23 +3704,23 @@ const Ms = (e) => ({
3704
3704
  elements: s,
3705
3705
  middlewareData: c
3706
3706
  } = t, {
3707
- element: u,
3707
+ element: l,
3708
3708
  padding: f = 0
3709
3709
  } = me(e, t) || {};
3710
- if (u == null)
3710
+ if (l == null)
3711
3711
  return {};
3712
3712
  const m = Wr(f), g = {
3713
3713
  x: n,
3714
3714
  y: r
3715
- }, p = hn(o), v = pn(p), h = await i.getDimensions(u), b = p === "y", y = b ? "top" : "left", w = b ? "bottom" : "right", S = b ? "clientHeight" : "clientWidth", C = a.reference[v] + a.reference[p] - g[p] - a.floating[v], E = g[p] - a.reference[p], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
3715
+ }, p = hn(o), v = pn(p), h = await i.getDimensions(l), b = p === "y", y = b ? "top" : "left", w = b ? "bottom" : "right", S = b ? "clientHeight" : "clientWidth", C = a.reference[v] + a.reference[p] - g[p] - a.floating[v], E = g[p] - a.reference[p], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
3716
3716
  let N = P ? P[S] : 0;
3717
3717
  (!N || !await (i.isElement == null ? void 0 : i.isElement(P))) && (N = s.floating[S] || a.floating[v]);
3718
- const k = C / 2 - E / 2, M = N / 2 - h[v] / 2 - 1, D = be(m[y], M), F = be(m[w], M), W = D, B = N - h[v] - F, z = N / 2 - h[v] / 2 + k, V = tn(W, z, B), L = !c.arrow && We(o) != null && z !== V && a.reference[v] / 2 - (z < W ? D : F) - h[v] / 2 < 0, I = L ? z < W ? z - W : z - B : 0;
3718
+ const k = C / 2 - E / 2, M = N / 2 - h[v] / 2 - 1, D = be(m[y], M), F = be(m[w], M), W = D, B = N - h[v] - F, z = N / 2 - h[v] / 2 + k, j = tn(W, z, B), L = !c.arrow && We(o) != null && z !== j && a.reference[v] / 2 - (z < W ? D : F) - h[v] / 2 < 0, I = L ? z < W ? z - W : z - B : 0;
3719
3719
  return {
3720
3720
  [p]: g[p] + I,
3721
3721
  data: {
3722
- [p]: V,
3723
- centerOffset: z - V - I,
3722
+ [p]: j,
3723
+ centerOffset: z - j - I,
3724
3724
  ...L && {
3725
3725
  alignmentOffset: I
3726
3726
  }
@@ -3740,7 +3740,7 @@ const Ms = (e) => ({
3740
3740
  rects: i,
3741
3741
  initialPlacement: s,
3742
3742
  platform: c,
3743
- elements: u
3743
+ elements: l
3744
3744
  } = t, {
3745
3745
  mainAxis: f = !0,
3746
3746
  crossAxis: m = !0,
@@ -3752,7 +3752,7 @@ const Ms = (e) => ({
3752
3752
  } = me(e, t);
3753
3753
  if ((n = a.arrow) != null && n.alignmentOffset)
3754
3754
  return {};
3755
- const y = pe(o), w = se(s), S = pe(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = g || (S || !h ? [St(s)] : As(s)), P = v !== "none";
3755
+ const y = pe(o), w = se(s), S = pe(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), E = g || (S || !h ? [St(s)] : As(s)), P = v !== "none";
3756
3756
  !g && P && E.push(...Os(s, h, v, C));
3757
3757
  const N = [s, ...E], k = await Xe(t, b), M = [];
3758
3758
  let D = ((r = a.flip) == null ? void 0 : r.overflows) || [];
@@ -3765,8 +3765,8 @@ const Ms = (e) => ({
3765
3765
  overflows: M
3766
3766
  }], !M.every((z) => z <= 0)) {
3767
3767
  var F, W;
3768
- const z = (((F = a.flip) == null ? void 0 : F.index) || 0) + 1, V = N[z];
3769
- if (V && (!(m === "alignment" ? w !== se(V) : !1) || // We leave the current main axis only if every placement on that axis
3768
+ const z = (((F = a.flip) == null ? void 0 : F.index) || 0) + 1, j = N[z];
3769
+ if (j && (!(m === "alignment" ? w !== se(j) : !1) || // We leave the current main axis only if every placement on that axis
3770
3770
  // overflows the main axis.
3771
3771
  D.every((x) => se(x.placement) === w ? x.overflows[0] > 0 : !0)))
3772
3772
  return {
@@ -3775,7 +3775,7 @@ const Ms = (e) => ({
3775
3775
  overflows: D
3776
3776
  },
3777
3777
  reset: {
3778
- placement: V
3778
+ placement: j
3779
3779
  }
3780
3780
  };
3781
3781
  let L = (W = D.filter((I) => I.overflows[0] <= 0).sort((I, x) => I.overflows[1] - x.overflows[1])[0]) == null ? void 0 : W.placement;
@@ -3785,13 +3785,13 @@ const Ms = (e) => ({
3785
3785
  var B;
3786
3786
  const I = (B = D.filter((x) => {
3787
3787
  if (P) {
3788
- const j = se(x.placement);
3789
- return j === w || // Create a bias to the `y` side axis due to horizontal
3788
+ const V = se(x.placement);
3789
+ return V === w || // Create a bias to the `y` side axis due to horizontal
3790
3790
  // reading directions favoring greater width.
3791
- j === "y";
3791
+ V === "y";
3792
3792
  }
3793
3793
  return !0;
3794
- }).map((x) => [x.placement, x.overflows.filter((j) => j > 0).reduce((j, X) => j + X, 0)]).sort((x, j) => x[1] - j[1])[0]) == null ? void 0 : B[0];
3794
+ }).map((x) => [x.placement, x.overflows.filter((V) => V > 0).reduce((V, X) => V + X, 0)]).sort((x, V) => x[1] - V[1])[0]) == null ? void 0 : B[0];
3795
3795
  I && (L = I);
3796
3796
  break;
3797
3797
  }
@@ -3868,7 +3868,7 @@ async function Is(e, t) {
3868
3868
  placement: n,
3869
3869
  platform: r,
3870
3870
  elements: o
3871
- } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = pe(n), s = We(n), c = se(n) === "y", u = Br.has(i) ? -1 : 1, f = a && c ? -1 : 1, m = me(t, e);
3871
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = pe(n), s = We(n), c = se(n) === "y", l = Br.has(i) ? -1 : 1, f = a && c ? -1 : 1, m = me(t, e);
3872
3872
  let {
3873
3873
  mainAxis: g,
3874
3874
  crossAxis: p,
@@ -3884,9 +3884,9 @@ async function Is(e, t) {
3884
3884
  };
3885
3885
  return s && typeof v == "number" && (p = s === "end" ? v * -1 : v), c ? {
3886
3886
  x: p * f,
3887
- y: g * u
3887
+ y: g * l
3888
3888
  } : {
3889
- x: g * u,
3889
+ x: g * l,
3890
3890
  y: p * f
3891
3891
  };
3892
3892
  }
@@ -3937,11 +3937,11 @@ const zs = function(e) {
3937
3937
  }
3938
3938
  },
3939
3939
  ...c
3940
- } = me(e, t), u = {
3940
+ } = me(e, t), l = {
3941
3941
  x: n,
3942
3942
  y: r
3943
3943
  }, f = await Xe(t, c), m = se(pe(o)), g = mn(m);
3944
- let p = u[g], v = u[m];
3944
+ let p = l[g], v = l[m];
3945
3945
  if (a) {
3946
3946
  const b = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", w = p + f[b], S = p - f[y];
3947
3947
  p = tn(w, p, S);
@@ -3981,7 +3981,7 @@ const zs = function(e) {
3981
3981
  } = t, {
3982
3982
  offset: s = 0,
3983
3983
  mainAxis: c = !0,
3984
- crossAxis: u = !0
3984
+ crossAxis: l = !0
3985
3985
  } = me(e, t), f = {
3986
3986
  x: n,
3987
3987
  y: r
@@ -3999,7 +3999,7 @@ const zs = function(e) {
3999
3999
  const S = g === "y" ? "height" : "width", C = a.reference[g] - a.floating[S] + b.mainAxis, E = a.reference[g] + a.reference[S] - b.mainAxis;
4000
4000
  p < C ? p = C : p > E && (p = E);
4001
4001
  }
4002
- if (u) {
4002
+ if (l) {
4003
4003
  var y, w;
4004
4004
  const S = g === "y" ? "width" : "height", C = Br.has(pe(o)), E = a.reference[m] - a.floating[S] + (C && ((y = i.offset) == null ? void 0 : y[m]) || 0) + (C ? 0 : b.crossAxis), P = a.reference[m] + a.reference[S] + (C ? 0 : ((w = i.offset) == null ? void 0 : w[m]) || 0) - (C ? b.crossAxis : 0);
4005
4005
  v < E ? v = E : v > P && (v = P);
@@ -4024,8 +4024,8 @@ const zs = function(e) {
4024
4024
  } = t, {
4025
4025
  apply: c = () => {
4026
4026
  },
4027
- ...u
4028
- } = me(e, t), f = await Xe(t, u), m = pe(o), g = We(o), p = se(o) === "y", {
4027
+ ...l
4028
+ } = me(e, t), f = await Xe(t, l), m = pe(o), g = We(o), p = se(o) === "y", {
4029
4029
  width: v,
4030
4030
  height: h
4031
4031
  } = a.floating;
@@ -4055,7 +4055,7 @@ function Nt() {
4055
4055
  return typeof window < "u";
4056
4056
  }
4057
4057
  function Be(e) {
4058
- return Vr(e) ? (e.nodeName || "").toLowerCase() : "#document";
4058
+ return jr(e) ? (e.nodeName || "").toLowerCase() : "#document";
4059
4059
  }
4060
4060
  function J(e) {
4061
4061
  var t;
@@ -4063,9 +4063,9 @@ function J(e) {
4063
4063
  }
4064
4064
  function ue(e) {
4065
4065
  var t;
4066
- return (t = (Vr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
4066
+ return (t = (jr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
4067
4067
  }
4068
- function Vr(e) {
4068
+ function jr(e) {
4069
4069
  return Nt() ? e instanceof Node || e instanceof J(e).Node : !1;
4070
4070
  }
4071
4071
  function te(e) {
@@ -4087,9 +4087,9 @@ function et(e) {
4087
4087
  } = ne(e);
4088
4088
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Bs.has(o);
4089
4089
  }
4090
- const Vs = /* @__PURE__ */ new Set(["table", "td", "th"]);
4091
- function js(e) {
4092
- return Vs.has(Be(e));
4090
+ const js = /* @__PURE__ */ new Set(["table", "td", "th"]);
4091
+ function Vs(e) {
4092
+ return js.has(Be(e));
4093
4093
  }
4094
4094
  const Hs = [":popover-open", ":modal"];
4095
4095
  function Pt(e) {
@@ -4148,14 +4148,14 @@ function ye(e) {
4148
4148
  );
4149
4149
  return Gn(t) ? t.host : t;
4150
4150
  }
4151
- function jr(e) {
4151
+ function Vr(e) {
4152
4152
  const t = ye(e);
4153
- return Ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && et(t) ? t : jr(t);
4153
+ return Ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && et(t) ? t : Vr(t);
4154
4154
  }
4155
4155
  function Ze(e, t, n) {
4156
4156
  var r;
4157
4157
  t === void 0 && (t = []), n === void 0 && (n = !0);
4158
- const o = jr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = J(o);
4158
+ const o = Vr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = J(o);
4159
4159
  if (a) {
4160
4160
  const s = rn(i);
4161
4161
  return t.concat(i, i.visualViewport || [], et(o) ? o : [], s && n ? Ze(s) : []);
@@ -4210,20 +4210,20 @@ function Ce(e, t, n, r) {
4210
4210
  let i = ce(1);
4211
4211
  t && (r ? te(r) && (i = Me(r)) : i = Me(e));
4212
4212
  const s = Zs(a, n, r) ? Ur(a) : ce(0);
4213
- let c = (o.left + s.x) / i.x, u = (o.top + s.y) / i.y, f = o.width / i.x, m = o.height / i.y;
4213
+ let c = (o.left + s.x) / i.x, l = (o.top + s.y) / i.y, f = o.width / i.x, m = o.height / i.y;
4214
4214
  if (a) {
4215
4215
  const g = J(a), p = r && te(r) ? J(r) : r;
4216
4216
  let v = g, h = rn(v);
4217
4217
  for (; h && r && p !== v; ) {
4218
4218
  const b = Me(h), y = h.getBoundingClientRect(), w = ne(h), S = y.left + (h.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = y.top + (h.clientTop + parseFloat(w.paddingTop)) * b.y;
4219
- c *= b.x, u *= b.y, f *= b.x, m *= b.y, c += S, u += C, v = J(h), h = rn(v);
4219
+ c *= b.x, l *= b.y, f *= b.x, m *= b.y, c += S, l += C, v = J(h), h = rn(v);
4220
4220
  }
4221
4221
  }
4222
4222
  return Et({
4223
4223
  width: f,
4224
4224
  height: m,
4225
4225
  x: c,
4226
- y: u
4226
+ y: l
4227
4227
  });
4228
4228
  }
4229
4229
  function Tt(e, t) {
@@ -4250,18 +4250,18 @@ function Js(e) {
4250
4250
  let c = {
4251
4251
  scrollLeft: 0,
4252
4252
  scrollTop: 0
4253
- }, u = ce(1);
4253
+ }, l = ce(1);
4254
4254
  const f = ce(0), m = le(r);
4255
4255
  if ((m || !m && !a) && ((Be(r) !== "body" || et(i)) && (c = Ot(r)), le(r))) {
4256
4256
  const p = Ce(r);
4257
- u = Me(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
4257
+ l = Me(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
4258
4258
  }
4259
4259
  const g = i && !m && !a ? Gr(i, c) : ce(0);
4260
4260
  return {
4261
- width: n.width * u.x,
4262
- height: n.height * u.y,
4263
- x: n.x * u.x - c.scrollLeft * u.x + f.x + g.x,
4264
- y: n.y * u.y - c.scrollTop * u.y + f.y + g.y
4261
+ width: n.width * l.x,
4262
+ height: n.height * l.y,
4263
+ x: n.x * l.x - c.scrollLeft * l.x + f.x + g.x,
4264
+ y: n.y * l.y - c.scrollTop * l.y + f.y + g.y
4265
4265
  };
4266
4266
  }
4267
4267
  function Qs(e) {
@@ -4287,11 +4287,11 @@ function tc(e, t) {
4287
4287
  const f = vn();
4288
4288
  (!f || f && t === "fixed") && (s = o.offsetLeft, c = o.offsetTop);
4289
4289
  }
4290
- const u = Tt(r);
4291
- if (u <= 0) {
4290
+ const l = Tt(r);
4291
+ if (l <= 0) {
4292
4292
  const f = r.ownerDocument, m = f.body, g = getComputedStyle(m), p = f.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, v = Math.abs(r.clientWidth - m.clientWidth - p);
4293
4293
  v <= Yn && (a -= v);
4294
- } else u <= Yn && (a += u);
4294
+ } else l <= Yn && (a += l);
4295
4295
  return {
4296
4296
  width: a,
4297
4297
  height: i,
@@ -4301,12 +4301,12 @@ function tc(e, t) {
4301
4301
  }
4302
4302
  const nc = /* @__PURE__ */ new Set(["absolute", "fixed"]);
4303
4303
  function rc(e, t) {
4304
- const n = Ce(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = le(e) ? Me(e) : ce(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, c = o * a.x, u = r * a.y;
4304
+ const n = Ce(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = le(e) ? Me(e) : ce(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, c = o * a.x, l = r * a.y;
4305
4305
  return {
4306
4306
  width: i,
4307
4307
  height: s,
4308
4308
  x: c,
4309
- y: u
4309
+ y: l
4310
4310
  };
4311
4311
  }
4312
4312
  function qn(e, t, n) {
@@ -4352,9 +4352,9 @@ function ac(e) {
4352
4352
  rootBoundary: r,
4353
4353
  strategy: o
4354
4354
  } = e;
4355
- const i = [...n === "clippingAncestors" ? Pt(t) ? [] : oc(t, this._c) : [].concat(n), r], s = i[0], c = i.reduce((u, f) => {
4355
+ const i = [...n === "clippingAncestors" ? Pt(t) ? [] : oc(t, this._c) : [].concat(n), r], s = i[0], c = i.reduce((l, f) => {
4356
4356
  const m = qn(t, f, o);
4357
- return u.top = Z(m.top, u.top), u.right = be(m.right, u.right), u.bottom = be(m.bottom, u.bottom), u.left = Z(m.left, u.left), u;
4357
+ return l.top = Z(m.top, l.top), l.right = be(m.right, l.right), l.bottom = be(m.bottom, l.bottom), l.left = Z(m.left, l.left), l;
4358
4358
  }, qn(t, s, o));
4359
4359
  return {
4360
4360
  width: c.right - c.left,
@@ -4380,15 +4380,15 @@ function sc(e, t, n) {
4380
4380
  scrollTop: 0
4381
4381
  };
4382
4382
  const c = ce(0);
4383
- function u() {
4383
+ function l() {
4384
4384
  c.x = Tt(o);
4385
4385
  }
4386
4386
  if (r || !r && !a)
4387
4387
  if ((Be(t) !== "body" || et(o)) && (s = Ot(t)), r) {
4388
4388
  const p = Ce(t, !0, a, t);
4389
4389
  c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
4390
- } else o && u();
4391
- a && !r && o && u();
4390
+ } else o && l();
4391
+ a && !r && o && l();
4392
4392
  const f = o && !r && !a ? Gr(o, s) : ce(0), m = i.left + s.scrollLeft - c.x - f.x, g = i.top + s.scrollTop - c.y - f.y;
4393
4393
  return {
4394
4394
  x: m,
@@ -4422,7 +4422,7 @@ function qr(e, t) {
4422
4422
  return n;
4423
4423
  }
4424
4424
  let r = Kn(e, t);
4425
- for (; r && js(r) && $t(r); )
4425
+ for (; r && Vs(r) && $t(r); )
4426
4426
  r = Kn(r, t);
4427
4427
  return r && Ie(r) && $t(r) && !gn(r) ? n : r || qs(e) || n;
4428
4428
  }
@@ -4465,12 +4465,12 @@ function dc(e, t) {
4465
4465
  }
4466
4466
  function i(s, c) {
4467
4467
  s === void 0 && (s = !1), c === void 0 && (c = 1), a();
4468
- const u = e.getBoundingClientRect(), {
4468
+ const l = e.getBoundingClientRect(), {
4469
4469
  left: f,
4470
4470
  top: m,
4471
4471
  width: g,
4472
4472
  height: p
4473
- } = u;
4473
+ } = l;
4474
4474
  if (s || t(), !g || !p)
4475
4475
  return;
4476
4476
  const v = st(m), h = st(o.clientWidth - (f + g)), b = st(o.clientHeight - (m + p)), y = st(f), S = {
@@ -4487,7 +4487,7 @@ function dc(e, t) {
4487
4487
  i(!1, 1e-7);
4488
4488
  }, 1e3);
4489
4489
  }
4490
- N === 1 && !Kr(u, e.getBoundingClientRect()) && i(), C = !1;
4490
+ N === 1 && !Kr(l, e.getBoundingClientRect()) && i(), C = !1;
4491
4491
  }
4492
4492
  try {
4493
4493
  n = new IntersectionObserver(E, {
@@ -4510,21 +4510,21 @@ function fc(e, t, n, r) {
4510
4510
  elementResize: i = typeof ResizeObserver == "function",
4511
4511
  layoutShift: s = typeof IntersectionObserver == "function",
4512
4512
  animationFrame: c = !1
4513
- } = r, u = bn(e), f = o || a ? [...u ? Ze(u) : [], ...Ze(t)] : [];
4513
+ } = r, l = bn(e), f = o || a ? [...l ? Ze(l) : [], ...Ze(t)] : [];
4514
4514
  f.forEach((y) => {
4515
4515
  o && y.addEventListener("scroll", n, {
4516
4516
  passive: !0
4517
4517
  }), a && y.addEventListener("resize", n);
4518
4518
  });
4519
- const m = u && s ? dc(u, n) : null;
4519
+ const m = l && s ? dc(l, n) : null;
4520
4520
  let g = -1, p = null;
4521
4521
  i && (p = new ResizeObserver((y) => {
4522
4522
  let [w] = y;
4523
- w && w.target === u && p && (p.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
4523
+ w && w.target === l && p && (p.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
4524
4524
  var S;
4525
4525
  (S = p) == null || S.observe(t);
4526
4526
  })), n();
4527
- }), u && !c && p.observe(u), p.observe(t));
4527
+ }), l && !c && p.observe(l), p.observe(t));
4528
4528
  let v, h = c ? Ce(e) : null;
4529
4529
  c && b();
4530
4530
  function b() {
@@ -4609,7 +4609,7 @@ function Cc(e) {
4609
4609
  } = {},
4610
4610
  transform: s = !0,
4611
4611
  whileElementsMounted: c,
4612
- open: u
4612
+ open: l
4613
4613
  } = e, [f, m] = d.useState({
4614
4614
  x: 0,
4615
4615
  y: 0,
@@ -4623,7 +4623,7 @@ function Cc(e) {
4623
4623
  x !== P.current && (P.current = x, h(x));
4624
4624
  }, []), S = d.useCallback((x) => {
4625
4625
  x !== N.current && (N.current = x, y(x));
4626
- }, []), C = a || v, E = i || b, P = d.useRef(null), N = d.useRef(null), k = d.useRef(f), M = c != null, D = Ft(c), F = Ft(o), W = Ft(u), B = d.useCallback(() => {
4626
+ }, []), C = a || v, E = i || b, P = d.useRef(null), N = d.useRef(null), k = d.useRef(f), M = c != null, D = Ft(c), F = Ft(o), W = Ft(l), B = d.useCallback(() => {
4627
4627
  if (!P.current || !N.current)
4628
4628
  return;
4629
4629
  const x = {
@@ -4631,9 +4631,9 @@ function Cc(e) {
4631
4631
  strategy: n,
4632
4632
  middleware: g
4633
4633
  };
4634
- F.current && (x.platform = F.current), yc(P.current, N.current, x).then((j) => {
4634
+ F.current && (x.platform = F.current), yc(P.current, N.current, x).then((V) => {
4635
4635
  const X = {
4636
- ...j,
4636
+ ...V,
4637
4637
  // The floating element's position may be recomputed while it's closed
4638
4638
  // but still mounted (such as when transitioning out). To ensure
4639
4639
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -4646,11 +4646,11 @@ function Cc(e) {
4646
4646
  });
4647
4647
  }, [g, t, n, F, W]);
4648
4648
  ht(() => {
4649
- u === !1 && k.current.isPositioned && (k.current.isPositioned = !1, m((x) => ({
4649
+ l === !1 && k.current.isPositioned && (k.current.isPositioned = !1, m((x) => ({
4650
4650
  ...x,
4651
4651
  isPositioned: !1
4652
4652
  })));
4653
- }, [u]);
4653
+ }, [l]);
4654
4654
  const z = d.useRef(!1);
4655
4655
  ht(() => (z.current = !0, () => {
4656
4656
  z.current = !1;
@@ -4661,7 +4661,7 @@ function Cc(e) {
4661
4661
  B();
4662
4662
  }
4663
4663
  }, [C, E, B, D, M]);
4664
- const V = d.useMemo(() => ({
4664
+ const j = d.useMemo(() => ({
4665
4665
  reference: P,
4666
4666
  floating: N,
4667
4667
  setReference: w,
@@ -4677,26 +4677,26 @@ function Cc(e) {
4677
4677
  };
4678
4678
  if (!L.floating)
4679
4679
  return x;
4680
- const j = Zn(L.floating, f.x), X = Zn(L.floating, f.y);
4680
+ const V = Zn(L.floating, f.x), X = Zn(L.floating, f.y);
4681
4681
  return s ? {
4682
4682
  ...x,
4683
- transform: "translate(" + j + "px, " + X + "px)",
4683
+ transform: "translate(" + V + "px, " + X + "px)",
4684
4684
  ...Xr(L.floating) >= 1.5 && {
4685
4685
  willChange: "transform"
4686
4686
  }
4687
4687
  } : {
4688
4688
  position: n,
4689
- left: j,
4689
+ left: V,
4690
4690
  top: X
4691
4691
  };
4692
4692
  }, [n, s, L.floating, f.x, f.y]);
4693
4693
  return d.useMemo(() => ({
4694
4694
  ...f,
4695
4695
  update: B,
4696
- refs: V,
4696
+ refs: j,
4697
4697
  elements: L,
4698
4698
  floatingStyles: I
4699
- }), [f, B, V, L, I]);
4699
+ }), [f, B, j, L, I]);
4700
4700
  }
4701
4701
  const Sc = (e) => {
4702
4702
  function t(n) {
@@ -4743,7 +4743,7 @@ const Sc = (e) => {
4743
4743
  });
4744
4744
  var Tc = "Arrow", Zr = d.forwardRef((e, t) => {
4745
4745
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
4746
- return /* @__PURE__ */ l(
4746
+ return /* @__PURE__ */ u(
4747
4747
  K.svg,
4748
4748
  {
4749
4749
  ...a,
@@ -4752,7 +4752,7 @@ var Tc = "Arrow", Zr = d.forwardRef((e, t) => {
4752
4752
  height: o,
4753
4753
  viewBox: "0 0 30 10",
4754
4754
  preserveAspectRatio: "none",
4755
- children: e.asChild ? n : /* @__PURE__ */ l("polygon", { points: "0,0 30,0 15,10" })
4755
+ children: e.asChild ? n : /* @__PURE__ */ u("polygon", { points: "0,0 30,0 15,10" })
4756
4756
  }
4757
4757
  );
4758
4758
  });
@@ -4769,8 +4769,8 @@ function Mc(e) {
4769
4769
  const a = o[0];
4770
4770
  let i, s;
4771
4771
  if ("borderBoxSize" in a) {
4772
- const c = a.borderBoxSize, u = Array.isArray(c) ? c[0] : c;
4773
- i = u.inlineSize, s = u.blockSize;
4772
+ const c = a.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
4773
+ i = l.inlineSize, s = l.blockSize;
4774
4774
  } else
4775
4775
  i = e.offsetWidth, s = e.offsetHeight;
4776
4776
  n({ width: i, height: s });
@@ -4782,16 +4782,16 @@ function Mc(e) {
4782
4782
  }
4783
4783
  var yn = "Popper", [Jr, Qr] = dn(yn), [Lc, eo] = Jr(yn), to = (e) => {
4784
4784
  const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
4785
- return /* @__PURE__ */ l(Lc, { scope: t, anchor: r, onAnchorChange: o, children: n });
4785
+ return /* @__PURE__ */ u(Lc, { scope: t, anchor: r, onAnchorChange: o, children: n });
4786
4786
  };
4787
4787
  to.displayName = yn;
4788
4788
  var no = "PopperAnchor", ro = d.forwardRef(
4789
4789
  (e, t) => {
4790
4790
  const { __scopePopper: n, virtualRef: r, ...o } = e, a = eo(no, n), i = d.useRef(null), s = re(t, i), c = d.useRef(null);
4791
4791
  return d.useEffect(() => {
4792
- const u = c.current;
4793
- c.current = r?.current || i.current, u !== c.current && a.onAnchorChange(c.current);
4794
- }), r ? null : /* @__PURE__ */ l(K.div, { ...o, ref: s });
4792
+ const l = c.current;
4793
+ c.current = r?.current || i.current, l !== c.current && a.onAnchorChange(c.current);
4794
+ }), r ? null : /* @__PURE__ */ u(K.div, { ...o, ref: s });
4795
4795
  }
4796
4796
  );
4797
4797
  ro.displayName = no;
@@ -4805,19 +4805,19 @@ var wn = "PopperContent", [Dc, Ic] = Jr(wn), oo = d.forwardRef(
4805
4805
  alignOffset: i = 0,
4806
4806
  arrowPadding: s = 0,
4807
4807
  avoidCollisions: c = !0,
4808
- collisionBoundary: u = [],
4808
+ collisionBoundary: l = [],
4809
4809
  collisionPadding: f = 0,
4810
4810
  sticky: m = "partial",
4811
4811
  hideWhenDetached: g = !1,
4812
4812
  updatePositionStrategy: p = "optimized",
4813
4813
  onPlaced: v,
4814
4814
  ...h
4815
- } = e, b = eo(wn, n), [y, w] = d.useState(null), S = re(t, ($) => w($)), [C, E] = d.useState(null), P = Mc(C), N = P?.width ?? 0, k = P?.height ?? 0, M = r + (a !== "center" ? "-" + a : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, F = Array.isArray(u) ? u : [u], W = F.length > 0, B = {
4815
+ } = e, b = eo(wn, n), [y, w] = d.useState(null), S = re(t, ($) => w($)), [C, E] = d.useState(null), P = Mc(C), N = P?.width ?? 0, k = P?.height ?? 0, M = r + (a !== "center" ? "-" + a : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, F = Array.isArray(l) ? l : [l], W = F.length > 0, B = {
4816
4816
  padding: D,
4817
4817
  boundary: F.filter($c),
4818
4818
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
4819
4819
  altBoundary: W
4820
- }, { refs: z, floatingStyles: V, placement: L, isPositioned: I, middlewareData: x } = Cc({
4820
+ }, { refs: z, floatingStyles: j, placement: L, isPositioned: I, middlewareData: x } = Cc({
4821
4821
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
4822
4822
  strategy: "fixed",
4823
4823
  placement: M,
@@ -4847,21 +4847,21 @@ var wn = "PopperContent", [Dc, Ic] = Jr(wn), oo = d.forwardRef(
4847
4847
  Fc({ arrowWidth: N, arrowHeight: k }),
4848
4848
  g && Pc({ strategy: "referenceHidden", ...B })
4849
4849
  ]
4850
- }), [j, X] = so(L), je = xe(v);
4850
+ }), [V, X] = so(L), Ve = xe(v);
4851
4851
  ee(() => {
4852
- I && je?.();
4853
- }, [I, je]);
4852
+ I && Ve?.();
4853
+ }, [I, Ve]);
4854
4854
  const He = x.arrow?.x, U = x.arrow?.y, G = x.arrow?.centerOffset !== 0, [ke, nt] = d.useState();
4855
4855
  return ee(() => {
4856
4856
  y && nt(window.getComputedStyle(y).zIndex);
4857
- }, [y]), /* @__PURE__ */ l(
4857
+ }, [y]), /* @__PURE__ */ u(
4858
4858
  "div",
4859
4859
  {
4860
4860
  ref: z.setFloating,
4861
4861
  "data-radix-popper-content-wrapper": "",
4862
4862
  style: {
4863
- ...V,
4864
- transform: I ? V.transform : "translate(0, -200%)",
4863
+ ...j,
4864
+ transform: I ? j.transform : "translate(0, -200%)",
4865
4865
  // keep off the page when measuring
4866
4866
  minWidth: "max-content",
4867
4867
  zIndex: ke,
@@ -4878,19 +4878,19 @@ var wn = "PopperContent", [Dc, Ic] = Jr(wn), oo = d.forwardRef(
4878
4878
  }
4879
4879
  },
4880
4880
  dir: e.dir,
4881
- children: /* @__PURE__ */ l(
4881
+ children: /* @__PURE__ */ u(
4882
4882
  Dc,
4883
4883
  {
4884
4884
  scope: n,
4885
- placedSide: j,
4885
+ placedSide: V,
4886
4886
  onArrowChange: E,
4887
4887
  arrowX: He,
4888
4888
  arrowY: U,
4889
4889
  shouldHideArrow: G,
4890
- children: /* @__PURE__ */ l(
4890
+ children: /* @__PURE__ */ u(
4891
4891
  K.div,
4892
4892
  {
4893
- "data-side": j,
4893
+ "data-side": V,
4894
4894
  "data-align": X,
4895
4895
  ...h,
4896
4896
  ref: S,
@@ -4920,7 +4920,7 @@ var ao = "PopperArrow", zc = {
4920
4920
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
4921
4921
  // doesn't report size as we'd expect on SVG elements.
4922
4922
  // it reports their bounding box which is effectively the largest path inside the SVG.
4923
- /* @__PURE__ */ l(
4923
+ /* @__PURE__ */ u(
4924
4924
  "span",
4925
4925
  {
4926
4926
  ref: a.onArrowChange,
@@ -4943,7 +4943,7 @@ var ao = "PopperArrow", zc = {
4943
4943
  }[a.placedSide],
4944
4944
  visibility: a.shouldHideArrow ? "hidden" : void 0
4945
4945
  },
4946
- children: /* @__PURE__ */ l(
4946
+ children: /* @__PURE__ */ u(
4947
4947
  _c,
4948
4948
  {
4949
4949
  ...o,
@@ -4967,30 +4967,30 @@ var Fc = (e) => ({
4967
4967
  name: "transformOrigin",
4968
4968
  options: e,
4969
4969
  fn(t) {
4970
- const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [u, f] = so(n), m = { start: "0%", center: "50%", end: "100%" }[f], g = (o.arrow?.x ?? 0) + s / 2, p = (o.arrow?.y ?? 0) + c / 2;
4970
+ const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, f] = so(n), m = { start: "0%", center: "50%", end: "100%" }[f], g = (o.arrow?.x ?? 0) + s / 2, p = (o.arrow?.y ?? 0) + c / 2;
4971
4971
  let v = "", h = "";
4972
- return u === "bottom" ? (v = i ? m : `${g}px`, h = `${-c}px`) : u === "top" ? (v = i ? m : `${g}px`, h = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, h = i ? m : `${p}px`) : u === "left" && (v = `${r.floating.width + c}px`, h = i ? m : `${p}px`), { data: { x: v, y: h } };
4972
+ return l === "bottom" ? (v = i ? m : `${g}px`, h = `${-c}px`) : l === "top" ? (v = i ? m : `${g}px`, h = `${r.floating.height + c}px`) : l === "right" ? (v = `${-c}px`, h = i ? m : `${p}px`) : l === "left" && (v = `${r.floating.width + c}px`, h = i ? m : `${p}px`), { data: { x: v, y: h } };
4973
4973
  }
4974
4974
  });
4975
4975
  function so(e) {
4976
4976
  const [t, n = "center"] = e.split("-");
4977
4977
  return [t, n];
4978
4978
  }
4979
- var Wc = to, Bc = ro, Vc = oo, jc = io, Hc = "Portal", xn = d.forwardRef((e, t) => {
4979
+ var Wc = to, Bc = ro, jc = oo, Vc = io, Hc = "Portal", xn = d.forwardRef((e, t) => {
4980
4980
  const { container: n, ...r } = e, [o, a] = d.useState(!1);
4981
4981
  ee(() => a(!0), []);
4982
4982
  const i = n || o && globalThis?.document?.body;
4983
- return i ? xa.createPortal(/* @__PURE__ */ l(K.div, { ...r, ref: t }), i) : null;
4983
+ return i ? xa.createPortal(/* @__PURE__ */ u(K.div, { ...r, ref: t }), i) : null;
4984
4984
  });
4985
4985
  xn.displayName = Hc;
4986
4986
  function Uc(e, t) {
4987
4987
  return d.useReducer((n, r) => t[n][r] ?? n, e);
4988
4988
  }
4989
- var Ve = (e) => {
4989
+ var je = (e) => {
4990
4990
  const { present: t, children: n } = e, r = Gc(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), a = re(r.ref, Yc(o));
4991
4991
  return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: a }) : null;
4992
4992
  };
4993
- Ve.displayName = "Presence";
4993
+ je.displayName = "Presence";
4994
4994
  function Gc(e) {
4995
4995
  const [t, n] = d.useState(), r = d.useRef(null), o = d.useRef(e), a = d.useRef("none"), i = e ? "mounted" : "unmounted", [s, c] = Uc(i, {
4996
4996
  mounted: {
@@ -5006,22 +5006,22 @@ function Gc(e) {
5006
5006
  }
5007
5007
  });
5008
5008
  return d.useEffect(() => {
5009
- const u = ct(r.current);
5010
- a.current = s === "mounted" ? u : "none";
5009
+ const l = ct(r.current);
5010
+ a.current = s === "mounted" ? l : "none";
5011
5011
  }, [s]), ee(() => {
5012
- const u = r.current, f = o.current;
5012
+ const l = r.current, f = o.current;
5013
5013
  if (f !== e) {
5014
- const g = a.current, p = ct(u);
5015
- e ? c("MOUNT") : p === "none" || u?.display === "none" ? c("UNMOUNT") : c(f && g !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
5014
+ const g = a.current, p = ct(l);
5015
+ e ? c("MOUNT") : p === "none" || l?.display === "none" ? c("UNMOUNT") : c(f && g !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
5016
5016
  }
5017
5017
  }, [e, c]), ee(() => {
5018
5018
  if (t) {
5019
- let u;
5019
+ let l;
5020
5020
  const f = t.ownerDocument.defaultView ?? window, m = (p) => {
5021
5021
  const h = ct(r.current).includes(CSS.escape(p.animationName));
5022
5022
  if (p.target === t && h && (c("ANIMATION_END"), !o.current)) {
5023
5023
  const b = t.style.animationFillMode;
5024
- t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
5024
+ t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
5025
5025
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
5026
5026
  });
5027
5027
  }
@@ -5029,14 +5029,14 @@ function Gc(e) {
5029
5029
  p.target === t && (a.current = ct(r.current));
5030
5030
  };
5031
5031
  return t.addEventListener("animationstart", g), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
5032
- f.clearTimeout(u), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
5032
+ f.clearTimeout(l), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
5033
5033
  };
5034
5034
  } else
5035
5035
  c("ANIMATION_END");
5036
5036
  }, [t, c]), {
5037
5037
  isPresent: ["mounted", "unmountSuspended"].includes(s),
5038
- ref: d.useCallback((u) => {
5039
- r.current = u ? getComputedStyle(u) : null, n(u);
5038
+ ref: d.useCallback((l) => {
5039
+ r.current = l ? getComputedStyle(l) : null, n(l);
5040
5040
  }, [])
5041
5041
  };
5042
5042
  }
@@ -5068,7 +5068,7 @@ function co({
5068
5068
  ), f.current = s;
5069
5069
  }, [s, r]);
5070
5070
  }
5071
- const u = d.useCallback(
5071
+ const l = d.useCallback(
5072
5072
  (f) => {
5073
5073
  if (s) {
5074
5074
  const m = Xc(f) ? f(e) : f;
@@ -5078,7 +5078,7 @@ function co({
5078
5078
  },
5079
5079
  [s, e, a, i]
5080
5080
  );
5081
- return [c, u];
5081
+ return [c, l];
5082
5082
  }
5083
5083
  function Kc({
5084
5084
  defaultProp: e,
@@ -5107,7 +5107,7 @@ var Zc = Object.freeze({
5107
5107
  whiteSpace: "nowrap",
5108
5108
  wordWrap: "normal"
5109
5109
  }), Jc = "VisuallyHidden", lo = d.forwardRef(
5110
- (e, t) => /* @__PURE__ */ l(
5110
+ (e, t) => /* @__PURE__ */ u(
5111
5111
  K.span,
5112
5112
  {
5113
5113
  ...e,
@@ -5128,9 +5128,9 @@ var Qc = lo, [_t] = dn("Tooltip", [
5128
5128
  children: a
5129
5129
  } = e, i = d.useRef(!0), s = d.useRef(!1), c = d.useRef(0);
5130
5130
  return d.useEffect(() => {
5131
- const u = c.current;
5132
- return () => window.clearTimeout(u);
5133
- }, []), /* @__PURE__ */ l(
5131
+ const l = c.current;
5132
+ return () => window.clearTimeout(l);
5133
+ }, []), /* @__PURE__ */ u(
5134
5134
  tl,
5135
5135
  {
5136
5136
  scope: t,
@@ -5146,8 +5146,8 @@ var Qc = lo, [_t] = dn("Tooltip", [
5146
5146
  );
5147
5147
  }, [r]),
5148
5148
  isPointerInTransitRef: s,
5149
- onPointerInTransitChange: d.useCallback((u) => {
5150
- s.current = u;
5149
+ onPointerInTransitChange: d.useCallback((l) => {
5150
+ s.current = l;
5151
5151
  }, []),
5152
5152
  disableHoverableContent: o,
5153
5153
  children: a
@@ -5164,7 +5164,7 @@ var Je = "Tooltip", [nl, tt] = _t(Je), mo = (e) => {
5164
5164
  onOpenChange: a,
5165
5165
  disableHoverableContent: i,
5166
5166
  delayDuration: s
5167
- } = e, c = Cn(Je, e.__scopeTooltip), u = Mt(t), [f, m] = d.useState(null), g = pt(), p = d.useRef(0), v = i ?? c.disableHoverableContent, h = s ?? c.delayDuration, b = d.useRef(!1), [y, w] = co({
5167
+ } = e, c = Cn(Je, e.__scopeTooltip), l = Mt(t), [f, m] = d.useState(null), g = pt(), p = d.useRef(0), v = i ?? c.disableHoverableContent, h = s ?? c.delayDuration, b = d.useRef(!1), [y, w] = co({
5168
5168
  prop: r,
5169
5169
  defaultProp: o ?? !1,
5170
5170
  onChange: (N) => {
@@ -5182,7 +5182,7 @@ var Je = "Tooltip", [nl, tt] = _t(Je), mo = (e) => {
5182
5182
  }, [h, w]);
5183
5183
  return d.useEffect(() => () => {
5184
5184
  p.current && (window.clearTimeout(p.current), p.current = 0);
5185
- }, []), /* @__PURE__ */ l(Wc, { ...u, children: /* @__PURE__ */ l(
5185
+ }, []), /* @__PURE__ */ u(Wc, { ...l, children: /* @__PURE__ */ u(
5186
5186
  nl,
5187
5187
  {
5188
5188
  scope: t,
@@ -5207,8 +5207,8 @@ var Je = "Tooltip", [nl, tt] = _t(Je), mo = (e) => {
5207
5207
  mo.displayName = Je;
5208
5208
  var an = "TooltipTrigger", po = d.forwardRef(
5209
5209
  (e, t) => {
5210
- const { __scopeTooltip: n, ...r } = e, o = tt(an, n), a = Cn(an, n), i = Mt(n), s = d.useRef(null), c = re(t, s, o.onTriggerChange), u = d.useRef(!1), f = d.useRef(!1), m = d.useCallback(() => u.current = !1, []);
5211
- return d.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ l(Bc, { asChild: !0, ...i, children: /* @__PURE__ */ l(
5210
+ const { __scopeTooltip: n, ...r } = e, o = tt(an, n), a = Cn(an, n), i = Mt(n), s = d.useRef(null), c = re(t, s, o.onTriggerChange), l = d.useRef(!1), f = d.useRef(!1), m = d.useCallback(() => l.current = !1, []);
5211
+ return d.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ u(Bc, { asChild: !0, ...i, children: /* @__PURE__ */ u(
5212
5212
  K.button,
5213
5213
  {
5214
5214
  "aria-describedby": o.open ? o.contentId : void 0,
@@ -5222,10 +5222,10 @@ var an = "TooltipTrigger", po = d.forwardRef(
5222
5222
  o.onTriggerLeave(), f.current = !1;
5223
5223
  }),
5224
5224
  onPointerDown: q(e.onPointerDown, () => {
5225
- o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", m, { once: !0 });
5225
+ o.open && o.onClose(), l.current = !0, document.addEventListener("pointerup", m, { once: !0 });
5226
5226
  }),
5227
5227
  onFocus: q(e.onFocus, () => {
5228
- u.current || o.onOpen();
5228
+ l.current || o.onOpen();
5229
5229
  }),
5230
5230
  onBlur: q(e.onBlur, o.onClose),
5231
5231
  onClick: q(e.onClick, o.onClose)
@@ -5238,16 +5238,16 @@ var Sn = "TooltipPortal", [rl, ol] = _t(Sn, {
5238
5238
  forceMount: void 0
5239
5239
  }), ho = (e) => {
5240
5240
  const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = tt(Sn, t);
5241
- return /* @__PURE__ */ l(rl, { scope: t, forceMount: n, children: /* @__PURE__ */ l(Ve, { present: n || a.open, children: /* @__PURE__ */ l(xn, { asChild: !0, container: o, children: r }) }) });
5241
+ return /* @__PURE__ */ u(rl, { scope: t, forceMount: n, children: /* @__PURE__ */ u(je, { present: n || a.open, children: /* @__PURE__ */ u(xn, { asChild: !0, container: o, children: r }) }) });
5242
5242
  };
5243
5243
  ho.displayName = Sn;
5244
5244
  var ze = "TooltipContent", go = d.forwardRef(
5245
5245
  (e, t) => {
5246
5246
  const n = ol(ze, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = tt(ze, e.__scopeTooltip);
5247
- return /* @__PURE__ */ l(Ve, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l(vo, { side: o, ...a, ref: t }) : /* @__PURE__ */ l(al, { side: o, ...a, ref: t }) });
5247
+ return /* @__PURE__ */ u(je, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(vo, { side: o, ...a, ref: t }) : /* @__PURE__ */ u(al, { side: o, ...a, ref: t }) });
5248
5248
  }
5249
5249
  ), al = d.forwardRef((e, t) => {
5250
- const n = tt(ze, e.__scopeTooltip), r = Cn(ze, e.__scopeTooltip), o = d.useRef(null), a = re(t, o), [i, s] = d.useState(null), { trigger: c, onClose: u } = n, f = o.current, { onPointerInTransitChange: m } = r, g = d.useCallback(() => {
5250
+ const n = tt(ze, e.__scopeTooltip), r = Cn(ze, e.__scopeTooltip), o = d.useRef(null), a = re(t, o), [i, s] = d.useState(null), { trigger: c, onClose: l } = n, f = o.current, { onPointerInTransitChange: m } = r, g = d.useCallback(() => {
5251
5251
  s(null), m(!1);
5252
5252
  }, [m]), p = d.useCallback(
5253
5253
  (v, h) => {
@@ -5267,11 +5267,11 @@ var ze = "TooltipContent", go = d.forwardRef(
5267
5267
  if (i) {
5268
5268
  const v = (h) => {
5269
5269
  const b = h.target, y = { x: h.clientX, y: h.clientY }, w = c?.contains(b) || f?.contains(b), S = !fl(y, i);
5270
- w ? g() : S && (g(), u());
5270
+ w ? g() : S && (g(), l());
5271
5271
  };
5272
5272
  return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
5273
5273
  }
5274
- }, [c, f, i, u, g]), /* @__PURE__ */ l(vo, { ...e, ref: a });
5274
+ }, [c, f, i, l, g]), /* @__PURE__ */ u(vo, { ...e, ref: a });
5275
5275
  }), [il, sl] = _t(Je, { isInside: !1 }), cl = /* @__PURE__ */ as("TooltipContent"), vo = d.forwardRef(
5276
5276
  (e, t) => {
5277
5277
  const {
@@ -5281,7 +5281,7 @@ var ze = "TooltipContent", go = d.forwardRef(
5281
5281
  onEscapeKeyDown: a,
5282
5282
  onPointerDownOutside: i,
5283
5283
  ...s
5284
- } = e, c = tt(ze, n), u = Mt(n), { onClose: f } = c;
5284
+ } = e, c = tt(ze, n), l = Mt(n), { onClose: f } = c;
5285
5285
  return d.useEffect(() => (document.addEventListener(on, f), () => document.removeEventListener(on, f)), [f]), d.useEffect(() => {
5286
5286
  if (c.trigger) {
5287
5287
  const m = (g) => {
@@ -5289,7 +5289,7 @@ var ze = "TooltipContent", go = d.forwardRef(
5289
5289
  };
5290
5290
  return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
5291
5291
  }
5292
- }, [c.trigger, f]), /* @__PURE__ */ l(
5292
+ }, [c.trigger, f]), /* @__PURE__ */ u(
5293
5293
  fn,
5294
5294
  {
5295
5295
  asChild: !0,
@@ -5299,10 +5299,10 @@ var ze = "TooltipContent", go = d.forwardRef(
5299
5299
  onFocusOutside: (m) => m.preventDefault(),
5300
5300
  onDismiss: f,
5301
5301
  children: /* @__PURE__ */ O(
5302
- Vc,
5302
+ jc,
5303
5303
  {
5304
5304
  "data-state": c.stateAttribute,
5305
- ...u,
5305
+ ...l,
5306
5306
  ...s,
5307
5307
  ref: t,
5308
5308
  style: {
@@ -5314,8 +5314,8 @@ var ze = "TooltipContent", go = d.forwardRef(
5314
5314
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
5315
5315
  },
5316
5316
  children: [
5317
- /* @__PURE__ */ l(cl, { children: r }),
5318
- /* @__PURE__ */ l(il, { scope: n, isInside: !0, children: /* @__PURE__ */ l(Qc, { id: c.contentId, role: "tooltip", children: o || r }) })
5317
+ /* @__PURE__ */ u(cl, { children: r }),
5318
+ /* @__PURE__ */ u(il, { scope: n, isInside: !0, children: /* @__PURE__ */ u(Qc, { id: c.contentId, role: "tooltip", children: o || r }) })
5319
5319
  ]
5320
5320
  }
5321
5321
  )
@@ -5330,7 +5330,7 @@ var bo = "TooltipArrow", yo = d.forwardRef(
5330
5330
  return sl(
5331
5331
  bo,
5332
5332
  n
5333
- ).isInside ? null : /* @__PURE__ */ l(jc, { ...o, ...r, ref: t });
5333
+ ).isInside ? null : /* @__PURE__ */ u(Vc, { ...o, ...r, ref: t });
5334
5334
  }
5335
5335
  );
5336
5336
  yo.displayName = bo;
@@ -5392,8 +5392,8 @@ function fl(e, t) {
5392
5392
  const { x: n, y: r } = e;
5393
5393
  let o = !1;
5394
5394
  for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
5395
- const s = t[a], c = t[i], u = s.x, f = s.y, m = c.x, g = c.y;
5396
- f > r != g > r && n < (m - u) * (r - f) / (g - f) + u && (o = !o);
5395
+ const s = t[a], c = t[i], l = s.x, f = s.y, m = c.x, g = c.y;
5396
+ f > r != g > r && n < (m - l) * (r - f) / (g - f) + l && (o = !o);
5397
5397
  }
5398
5398
  return o;
5399
5399
  }
@@ -5431,7 +5431,7 @@ function xl({
5431
5431
  delayDuration: e = 0,
5432
5432
  ...t
5433
5433
  }) {
5434
- return /* @__PURE__ */ l(
5434
+ return /* @__PURE__ */ u(
5435
5435
  hl,
5436
5436
  {
5437
5437
  "data-slot": "tooltip-provider",
@@ -5443,12 +5443,12 @@ function xl({
5443
5443
  function wo({
5444
5444
  ...e
5445
5445
  }) {
5446
- return /* @__PURE__ */ l(xl, { children: /* @__PURE__ */ l(gl, { "data-slot": "tooltip", ...e }) });
5446
+ return /* @__PURE__ */ u(xl, { children: /* @__PURE__ */ u(gl, { "data-slot": "tooltip", ...e }) });
5447
5447
  }
5448
5448
  function xo({
5449
5449
  ...e
5450
5450
  }) {
5451
- return /* @__PURE__ */ l(vl, { "data-slot": "tooltip-trigger", ...e });
5451
+ return /* @__PURE__ */ u(vl, { "data-slot": "tooltip-trigger", ...e });
5452
5452
  }
5453
5453
  function Co({
5454
5454
  className: e,
@@ -5456,7 +5456,7 @@ function Co({
5456
5456
  children: n,
5457
5457
  ...r
5458
5458
  }) {
5459
- return /* @__PURE__ */ l(bl, { children: /* @__PURE__ */ O(
5459
+ return /* @__PURE__ */ u(bl, { children: /* @__PURE__ */ O(
5460
5460
  yl,
5461
5461
  {
5462
5462
  "data-slot": "tooltip-content",
@@ -5468,13 +5468,13 @@ function Co({
5468
5468
  ...r,
5469
5469
  children: [
5470
5470
  n,
5471
- /* @__PURE__ */ l(wl, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]" })
5471
+ /* @__PURE__ */ u(wl, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]" })
5472
5472
  ]
5473
5473
  }
5474
5474
  ) });
5475
5475
  }
5476
5476
  const Q = Rt(({ children: e, tooltip: t, side: n = "bottom", className: r, ...o }, a) => /* @__PURE__ */ O(wo, { children: [
5477
- /* @__PURE__ */ l(xo, { asChild: !0, children: /* @__PURE__ */ O(
5477
+ /* @__PURE__ */ u(xo, { asChild: !0, children: /* @__PURE__ */ O(
5478
5478
  De,
5479
5479
  {
5480
5480
  variant: "ghost",
@@ -5483,15 +5483,15 @@ const Q = Rt(({ children: e, tooltip: t, side: n = "bottom", className: r, ...o
5483
5483
  className: _("aui-button-icon size-6 p-1", r),
5484
5484
  ref: a,
5485
5485
  children: [
5486
- /* @__PURE__ */ l(ci, { children: e }),
5487
- /* @__PURE__ */ l("span", { className: "aui-sr-only sr-only", children: t })
5486
+ /* @__PURE__ */ u(ci, { children: e }),
5487
+ /* @__PURE__ */ u("span", { className: "aui-sr-only sr-only", children: t })
5488
5488
  ]
5489
5489
  }
5490
5490
  ) }),
5491
- /* @__PURE__ */ l(Co, { side: n, children: t })
5491
+ /* @__PURE__ */ u(Co, { side: n, children: t })
5492
5492
  ] }));
5493
5493
  Q.displayName = "TooltipIconButton";
5494
- const Cl = () => /* @__PURE__ */ l(
5494
+ const Cl = () => /* @__PURE__ */ u(
5495
5495
  ya,
5496
5496
  {
5497
5497
  remarkPlugins: [wa],
@@ -5501,12 +5501,12 @@ const Cl = () => /* @__PURE__ */ l(
5501
5501
  ), Sl = la(Cl), El = ({ language: e, code: t }) => {
5502
5502
  const { isCopied: n, copyToClipboard: r } = kl();
5503
5503
  return /* @__PURE__ */ O("div", { className: "aui-code-header-root bg-muted-foreground/15 text-foreground dark:bg-muted-foreground/20 mt-4 flex items-center justify-between gap-4 rounded-t-lg px-4 py-2 text-sm font-semibold", children: [
5504
- /* @__PURE__ */ l("span", { className: "aui-code-header-language lowercase [&>span]:text-xs", children: e }),
5504
+ /* @__PURE__ */ u("span", { className: "aui-code-header-language lowercase [&>span]:text-xs", children: e }),
5505
5505
  /* @__PURE__ */ O(Q, { tooltip: "Copy", onClick: () => {
5506
5506
  !t || n || r(t);
5507
5507
  }, children: [
5508
- !n && /* @__PURE__ */ l(vr, {}),
5509
- n && /* @__PURE__ */ l(cn, {})
5508
+ !n && /* @__PURE__ */ u(vr, {}),
5509
+ n && /* @__PURE__ */ u(cn, {})
5510
5510
  ] })
5511
5511
  ] });
5512
5512
  }, kl = ({
@@ -5519,7 +5519,7 @@ const Cl = () => /* @__PURE__ */ l(
5519
5519
  });
5520
5520
  } };
5521
5521
  }, Al = va({
5522
- h1: ({ className: e, ...t }) => /* @__PURE__ */ l(
5522
+ h1: ({ className: e, ...t }) => /* @__PURE__ */ u(
5523
5523
  "h1",
5524
5524
  {
5525
5525
  className: _(
@@ -5529,7 +5529,7 @@ const Cl = () => /* @__PURE__ */ l(
5529
5529
  ...t
5530
5530
  }
5531
5531
  ),
5532
- h2: ({ className: e, ...t }) => /* @__PURE__ */ l(
5532
+ h2: ({ className: e, ...t }) => /* @__PURE__ */ u(
5533
5533
  "h2",
5534
5534
  {
5535
5535
  className: _(
@@ -5539,7 +5539,7 @@ const Cl = () => /* @__PURE__ */ l(
5539
5539
  ...t
5540
5540
  }
5541
5541
  ),
5542
- h3: ({ className: e, ...t }) => /* @__PURE__ */ l(
5542
+ h3: ({ className: e, ...t }) => /* @__PURE__ */ u(
5543
5543
  "h3",
5544
5544
  {
5545
5545
  className: _(
@@ -5549,7 +5549,7 @@ const Cl = () => /* @__PURE__ */ l(
5549
5549
  ...t
5550
5550
  }
5551
5551
  ),
5552
- h4: ({ className: e, ...t }) => /* @__PURE__ */ l(
5552
+ h4: ({ className: e, ...t }) => /* @__PURE__ */ u(
5553
5553
  "h4",
5554
5554
  {
5555
5555
  className: _(
@@ -5559,7 +5559,7 @@ const Cl = () => /* @__PURE__ */ l(
5559
5559
  ...t
5560
5560
  }
5561
5561
  ),
5562
- h5: ({ className: e, ...t }) => /* @__PURE__ */ l(
5562
+ h5: ({ className: e, ...t }) => /* @__PURE__ */ u(
5563
5563
  "h5",
5564
5564
  {
5565
5565
  className: _(
@@ -5569,7 +5569,7 @@ const Cl = () => /* @__PURE__ */ l(
5569
5569
  ...t
5570
5570
  }
5571
5571
  ),
5572
- h6: ({ className: e, ...t }) => /* @__PURE__ */ l(
5572
+ h6: ({ className: e, ...t }) => /* @__PURE__ */ u(
5573
5573
  "h6",
5574
5574
  {
5575
5575
  className: _(
@@ -5579,7 +5579,7 @@ const Cl = () => /* @__PURE__ */ l(
5579
5579
  ...t
5580
5580
  }
5581
5581
  ),
5582
- p: ({ className: e, ...t }) => /* @__PURE__ */ l(
5582
+ p: ({ className: e, ...t }) => /* @__PURE__ */ u(
5583
5583
  "p",
5584
5584
  {
5585
5585
  className: _(
@@ -5589,7 +5589,7 @@ const Cl = () => /* @__PURE__ */ l(
5589
5589
  ...t
5590
5590
  }
5591
5591
  ),
5592
- a: ({ className: e, ...t }) => /* @__PURE__ */ l(
5592
+ a: ({ className: e, ...t }) => /* @__PURE__ */ u(
5593
5593
  "a",
5594
5594
  {
5595
5595
  className: _(
@@ -5599,29 +5599,29 @@ const Cl = () => /* @__PURE__ */ l(
5599
5599
  ...t
5600
5600
  }
5601
5601
  ),
5602
- blockquote: ({ className: e, ...t }) => /* @__PURE__ */ l(
5602
+ blockquote: ({ className: e, ...t }) => /* @__PURE__ */ u(
5603
5603
  "blockquote",
5604
5604
  {
5605
5605
  className: _("aui-md-blockquote border-l-2 pl-6 italic", e),
5606
5606
  ...t
5607
5607
  }
5608
5608
  ),
5609
- ul: ({ className: e, ...t }) => /* @__PURE__ */ l(
5609
+ ul: ({ className: e, ...t }) => /* @__PURE__ */ u(
5610
5610
  "ul",
5611
5611
  {
5612
5612
  className: _("aui-md-ul my-5 ml-6 list-disc [&>li]:mt-2", e),
5613
5613
  ...t
5614
5614
  }
5615
5615
  ),
5616
- ol: ({ className: e, ...t }) => /* @__PURE__ */ l(
5616
+ ol: ({ className: e, ...t }) => /* @__PURE__ */ u(
5617
5617
  "ol",
5618
5618
  {
5619
5619
  className: _("aui-md-ol my-5 ml-6 list-decimal [&>li]:mt-2", e),
5620
5620
  ...t
5621
5621
  }
5622
5622
  ),
5623
- hr: ({ className: e, ...t }) => /* @__PURE__ */ l("hr", { className: _("aui-md-hr my-5 border-b", e), ...t }),
5624
- table: ({ className: e, ...t }) => /* @__PURE__ */ l(
5623
+ hr: ({ className: e, ...t }) => /* @__PURE__ */ u("hr", { className: _("aui-md-hr my-5 border-b", e), ...t }),
5624
+ table: ({ className: e, ...t }) => /* @__PURE__ */ u(
5625
5625
  "table",
5626
5626
  {
5627
5627
  className: _(
@@ -5631,7 +5631,7 @@ const Cl = () => /* @__PURE__ */ l(
5631
5631
  ...t
5632
5632
  }
5633
5633
  ),
5634
- th: ({ className: e, ...t }) => /* @__PURE__ */ l(
5634
+ th: ({ className: e, ...t }) => /* @__PURE__ */ u(
5635
5635
  "th",
5636
5636
  {
5637
5637
  className: _(
@@ -5641,7 +5641,7 @@ const Cl = () => /* @__PURE__ */ l(
5641
5641
  ...t
5642
5642
  }
5643
5643
  ),
5644
- td: ({ className: e, ...t }) => /* @__PURE__ */ l(
5644
+ td: ({ className: e, ...t }) => /* @__PURE__ */ u(
5645
5645
  "td",
5646
5646
  {
5647
5647
  className: _(
@@ -5651,7 +5651,7 @@ const Cl = () => /* @__PURE__ */ l(
5651
5651
  ...t
5652
5652
  }
5653
5653
  ),
5654
- tr: ({ className: e, ...t }) => /* @__PURE__ */ l(
5654
+ tr: ({ className: e, ...t }) => /* @__PURE__ */ u(
5655
5655
  "tr",
5656
5656
  {
5657
5657
  className: _(
@@ -5661,14 +5661,14 @@ const Cl = () => /* @__PURE__ */ l(
5661
5661
  ...t
5662
5662
  }
5663
5663
  ),
5664
- sup: ({ className: e, ...t }) => /* @__PURE__ */ l(
5664
+ sup: ({ className: e, ...t }) => /* @__PURE__ */ u(
5665
5665
  "sup",
5666
5666
  {
5667
5667
  className: _("aui-md-sup [&>a]:text-xs [&>a]:no-underline", e),
5668
5668
  ...t
5669
5669
  }
5670
5670
  ),
5671
- pre: ({ className: e, ...t }) => /* @__PURE__ */ l(
5671
+ pre: ({ className: e, ...t }) => /* @__PURE__ */ u(
5672
5672
  "pre",
5673
5673
  {
5674
5674
  className: _(
@@ -5680,7 +5680,7 @@ const Cl = () => /* @__PURE__ */ l(
5680
5680
  ),
5681
5681
  code: function({ className: t, ...n }) {
5682
5682
  const r = ba();
5683
- return /* @__PURE__ */ l(
5683
+ return /* @__PURE__ */ u(
5684
5684
  "code",
5685
5685
  {
5686
5686
  className: _(
@@ -5700,18 +5700,18 @@ const Cl = () => /* @__PURE__ */ l(
5700
5700
  const [r, o] = Qe(!0);
5701
5701
  return /* @__PURE__ */ O("div", { className: "aui-tool-fallback-root mb-4 flex w-full flex-col gap-3 rounded-lg border py-3", children: [
5702
5702
  /* @__PURE__ */ O("div", { className: "aui-tool-fallback-header flex items-center gap-2 px-4", children: [
5703
- /* @__PURE__ */ l(cn, { className: "aui-tool-fallback-icon size-4" }),
5703
+ /* @__PURE__ */ u(cn, { className: "aui-tool-fallback-icon size-4" }),
5704
5704
  /* @__PURE__ */ O("p", { className: "aui-tool-fallback-title grow", children: [
5705
5705
  "Used tool: ",
5706
- /* @__PURE__ */ l("b", { children: e })
5706
+ /* @__PURE__ */ u("b", { children: e })
5707
5707
  ] }),
5708
- /* @__PURE__ */ l(De, { onClick: () => o(!r), children: r ? /* @__PURE__ */ l(Ha, {}) : /* @__PURE__ */ l(gr, {}) })
5708
+ /* @__PURE__ */ u(De, { onClick: () => o(!r), children: r ? /* @__PURE__ */ u(Ha, {}) : /* @__PURE__ */ u(gr, {}) })
5709
5709
  ] }),
5710
5710
  !r && /* @__PURE__ */ O("div", { className: "aui-tool-fallback-content flex flex-col gap-2 border-t pt-2", children: [
5711
- /* @__PURE__ */ l("div", { className: "aui-tool-fallback-args-root px-4", children: /* @__PURE__ */ l("pre", { className: "aui-tool-fallback-args-value whitespace-pre-wrap", children: t }) }),
5711
+ /* @__PURE__ */ u("div", { className: "aui-tool-fallback-args-root px-4", children: /* @__PURE__ */ u("pre", { className: "aui-tool-fallback-args-value whitespace-pre-wrap", children: t }) }),
5712
5712
  n !== void 0 && /* @__PURE__ */ O("div", { className: "aui-tool-fallback-result-root border-t border-dashed px-4 pt-2", children: [
5713
- /* @__PURE__ */ l("p", { className: "aui-tool-fallback-result-header font-semibold", children: "Result:" }),
5714
- /* @__PURE__ */ l("pre", { className: "aui-tool-fallback-result-content whitespace-pre-wrap", children: typeof n == "string" ? n : JSON.stringify(n, null, 2) })
5713
+ /* @__PURE__ */ u("p", { className: "aui-tool-fallback-result-header font-semibold", children: "Result:" }),
5714
+ /* @__PURE__ */ u("pre", { className: "aui-tool-fallback-result-content whitespace-pre-wrap", children: typeof n == "string" ? n : JSON.stringify(n, null, 2) })
5715
5715
  ] })
5716
5716
  ] })
5717
5717
  ] });
@@ -5723,7 +5723,7 @@ var Wt = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount", Jn
5723
5723
  onMountAutoFocus: o,
5724
5724
  onUnmountAutoFocus: a,
5725
5725
  ...i
5726
- } = e, [s, c] = d.useState(null), u = xe(o), f = xe(a), m = d.useRef(null), g = re(t, (h) => c(h)), p = d.useRef({
5726
+ } = e, [s, c] = d.useState(null), l = xe(o), f = xe(a), m = d.useRef(null), g = re(t, (h) => c(h)), p = d.useRef({
5727
5727
  paused: !1,
5728
5728
  pause() {
5729
5729
  this.paused = !0;
@@ -5759,16 +5759,16 @@ var Wt = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount", Jn
5759
5759
  const h = document.activeElement;
5760
5760
  if (!s.contains(h)) {
5761
5761
  const y = new CustomEvent(Wt, Jn);
5762
- s.addEventListener(Wt, u), s.dispatchEvent(y), y.defaultPrevented || (Pl(Ll(Eo(s)), { select: !0 }), document.activeElement === h && ge(s));
5762
+ s.addEventListener(Wt, l), s.dispatchEvent(y), y.defaultPrevented || (Pl(Ll(Eo(s)), { select: !0 }), document.activeElement === h && ge(s));
5763
5763
  }
5764
5764
  return () => {
5765
- s.removeEventListener(Wt, u), setTimeout(() => {
5765
+ s.removeEventListener(Wt, l), setTimeout(() => {
5766
5766
  const y = new CustomEvent(Bt, Jn);
5767
5767
  s.addEventListener(Bt, f), s.dispatchEvent(y), y.defaultPrevented || ge(h ?? document.body, { select: !0 }), s.removeEventListener(Bt, f), er.remove(p);
5768
5768
  }, 0);
5769
5769
  };
5770
5770
  }
5771
- }, [s, u, f, p]);
5771
+ }, [s, l, f, p]);
5772
5772
  const v = d.useCallback(
5773
5773
  (h) => {
5774
5774
  if (!n && !r || p.paused) return;
@@ -5780,7 +5780,7 @@ var Wt = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount", Jn
5780
5780
  },
5781
5781
  [n, r, p.paused]
5782
5782
  );
5783
- return /* @__PURE__ */ l(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: v });
5783
+ return /* @__PURE__ */ u(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: v });
5784
5784
  });
5785
5785
  So.displayName = Nl;
5786
5786
  function Pl(e, { select: t = !1 } = {}) {
@@ -5844,12 +5844,12 @@ function tr(e, t) {
5844
5844
  function Ll(e) {
5845
5845
  return e.filter((t) => t.tagName !== "A");
5846
5846
  }
5847
- var Vt = 0;
5847
+ var jt = 0;
5848
5848
  function Dl() {
5849
5849
  d.useEffect(() => {
5850
5850
  const e = document.querySelectorAll("[data-radix-focus-guard]");
5851
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? nr()), document.body.insertAdjacentElement("beforeend", e[1] ?? nr()), Vt++, () => {
5852
- Vt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Vt--;
5851
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? nr()), document.body.insertAdjacentElement("beforeend", e[1] ?? nr()), jt++, () => {
5852
+ jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), jt--;
5853
5853
  };
5854
5854
  }, []);
5855
5855
  }
@@ -5880,7 +5880,7 @@ function Il(e, t, n) {
5880
5880
  return e.concat(a || Array.prototype.slice.call(t));
5881
5881
  }
5882
5882
  var gt = "right-scroll-bar-position", vt = "width-before-scroll-bar", zl = "with-scroll-bars-hidden", $l = "--removed-body-scroll-bar-size";
5883
- function jt(e, t) {
5883
+ function Vt(e, t) {
5884
5884
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
5885
5885
  }
5886
5886
  function Fl(e, t) {
@@ -5908,7 +5908,7 @@ var Wl = typeof window < "u" ? d.useLayoutEffect : d.useEffect, rr = /* @__PURE_
5908
5908
  function Bl(e, t) {
5909
5909
  var n = Fl(null, function(r) {
5910
5910
  return e.forEach(function(o) {
5911
- return jt(o, r);
5911
+ return Vt(o, r);
5912
5912
  });
5913
5913
  });
5914
5914
  return Wl(function() {
@@ -5916,19 +5916,19 @@ function Bl(e, t) {
5916
5916
  if (r) {
5917
5917
  var o = new Set(r), a = new Set(e), i = n.current;
5918
5918
  o.forEach(function(s) {
5919
- a.has(s) || jt(s, null);
5919
+ a.has(s) || Vt(s, null);
5920
5920
  }), a.forEach(function(s) {
5921
- o.has(s) || jt(s, i);
5921
+ o.has(s) || Vt(s, i);
5922
5922
  });
5923
5923
  }
5924
5924
  rr.set(n, e);
5925
5925
  }, [e]), n;
5926
5926
  }
5927
- function Vl(e) {
5927
+ function jl(e) {
5928
5928
  return e;
5929
5929
  }
5930
- function jl(e, t) {
5931
- t === void 0 && (t = Vl);
5930
+ function Vl(e, t) {
5931
+ t === void 0 && (t = jl);
5932
5932
  var n = [], r = !1, o = {
5933
5933
  read: function() {
5934
5934
  if (r)
@@ -5967,12 +5967,12 @@ function jl(e, t) {
5967
5967
  var c = function() {
5968
5968
  var f = i;
5969
5969
  i = [], f.forEach(a);
5970
- }, u = function() {
5970
+ }, l = function() {
5971
5971
  return Promise.resolve().then(c);
5972
5972
  };
5973
- u(), n = {
5973
+ l(), n = {
5974
5974
  push: function(f) {
5975
- i.push(f), u();
5975
+ i.push(f), l();
5976
5976
  },
5977
5977
  filter: function(f) {
5978
5978
  return i = i.filter(f), n;
@@ -5984,7 +5984,7 @@ function jl(e, t) {
5984
5984
  }
5985
5985
  function Hl(e) {
5986
5986
  e === void 0 && (e = {});
5987
- var t = jl(null);
5987
+ var t = Vl(null);
5988
5988
  return t.options = ae({ async: !0, ssr: !1 }, e), t;
5989
5989
  }
5990
5990
  var Ao = function(e) {
@@ -6006,11 +6006,11 @@ var Ro = Hl(), Ht = function() {
6006
6006
  onScrollCapture: Ht,
6007
6007
  onWheelCapture: Ht,
6008
6008
  onTouchMoveCapture: Ht
6009
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, m = e.shards, g = e.sideCar, p = e.noRelative, v = e.noIsolation, h = e.inert, b = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, S = e.gapMode, C = ko(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g, P = Bl([n, t]), N = ae(ae({}, C), o);
6009
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, f = e.enabled, m = e.shards, g = e.sideCar, p = e.noRelative, v = e.noIsolation, h = e.inert, b = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, S = e.gapMode, C = ko(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g, P = Bl([n, t]), N = ae(ae({}, C), o);
6010
6010
  return d.createElement(
6011
6011
  d.Fragment,
6012
6012
  null,
6013
- f && d.createElement(E, { sideCar: Ro, removeScrollBar: u, shards: m, noRelative: p, noIsolation: v, inert: h, setCallbacks: a, allowPinchZoom: !!b, lockRef: n, gapMode: S }),
6013
+ f && d.createElement(E, { sideCar: Ro, removeScrollBar: l, shards: m, noRelative: p, noIsolation: v, inert: h, setCallbacks: a, allowPinchZoom: !!b, lockRef: n, gapMode: S }),
6014
6014
  i ? d.cloneElement(d.Children.only(s), ae(ae({}, N), { ref: P })) : d.createElement(w, ae({}, N, { className: c, ref: P }), s)
6015
6015
  );
6016
6016
  });
@@ -6209,7 +6209,7 @@ var Oe = sn ? { passive: !1 } : !1, au = function(e) {
6209
6209
  }, uu = function(e, t) {
6210
6210
  return e === "h" && t === "rtl" ? -1 : 1;
6211
6211
  }, du = function(e, t, n, r, o) {
6212
- var a = uu(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, c = t.contains(s), u = !1, f = i > 0, m = 0, g = 0;
6212
+ var a = uu(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, c = t.contains(s), l = !1, f = i > 0, m = 0, g = 0;
6213
6213
  do {
6214
6214
  if (!s)
6215
6215
  break;
@@ -6222,7 +6222,7 @@ var Oe = sn ? { passive: !1 } : !1, au = function(e) {
6222
6222
  !c && s !== document.body || // self content
6223
6223
  c && (t.contains(s) || t === s)
6224
6224
  );
6225
- return (f && Math.abs(m) < 1 || !f && Math.abs(g) < 1) && (u = !0), u;
6225
+ return (f && Math.abs(m) < 1 || !f && Math.abs(g) < 1) && (l = !0), l;
6226
6226
  }, ut = function(e) {
6227
6227
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
6228
6228
  }, ir = function(e) {
@@ -6289,7 +6289,7 @@ function hu(e) {
6289
6289
  C && b.cancelable && b.preventDefault();
6290
6290
  }
6291
6291
  }
6292
- }, []), u = d.useCallback(function(h, b, y, w) {
6292
+ }, []), l = d.useCallback(function(h, b, y, w) {
6293
6293
  var S = { name: h, delta: b, target: y, should: w, shadowParent: gu(y) };
6294
6294
  t.current.push(S), setTimeout(function() {
6295
6295
  t.current = t.current.filter(function(C) {
@@ -6299,9 +6299,9 @@ function hu(e) {
6299
6299
  }, []), f = d.useCallback(function(h) {
6300
6300
  n.current = ut(h), r.current = void 0;
6301
6301
  }, []), m = d.useCallback(function(h) {
6302
- u(h.type, ir(h), h.target, s(h, e.lockRef.current));
6302
+ l(h.type, ir(h), h.target, s(h, e.lockRef.current));
6303
6303
  }, []), g = d.useCallback(function(h) {
6304
- u(h.type, ut(h), h.target, s(h, e.lockRef.current));
6304
+ l(h.type, ut(h), h.target, s(h, e.lockRef.current));
6305
6305
  }, []);
6306
6306
  d.useEffect(function() {
6307
6307
  return Te.push(a), e.setCallbacks({
@@ -6351,10 +6351,10 @@ var bu = function(e) {
6351
6351
  }, wu = function(e, t, n, r) {
6352
6352
  var o = yu(t, Array.isArray(e) ? e : [e]);
6353
6353
  ft[n] || (ft[n] = /* @__PURE__ */ new WeakMap());
6354
- var a = ft[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(o), u = function(m) {
6355
- !m || s.has(m) || (s.add(m), u(m.parentNode));
6354
+ var a = ft[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(o), l = function(m) {
6355
+ !m || s.has(m) || (s.add(m), l(m.parentNode));
6356
6356
  };
6357
- o.forEach(u);
6357
+ o.forEach(l);
6358
6358
  var f = function(m) {
6359
6359
  !m || c.has(m) || Array.prototype.forEach.call(m.children, function(g) {
6360
6360
  if (s.has(g))
@@ -6388,13 +6388,13 @@ var bu = function(e) {
6388
6388
  defaultOpen: o,
6389
6389
  onOpenChange: a,
6390
6390
  modal: i = !0
6391
- } = e, s = d.useRef(null), c = d.useRef(null), [u, f] = co({
6391
+ } = e, s = d.useRef(null), c = d.useRef(null), [l, f] = co({
6392
6392
  prop: r,
6393
6393
  defaultProp: o ?? !1,
6394
6394
  onChange: a,
6395
6395
  caller: Dt
6396
6396
  });
6397
- return /* @__PURE__ */ l(
6397
+ return /* @__PURE__ */ u(
6398
6398
  Cu,
6399
6399
  {
6400
6400
  scope: t,
@@ -6403,7 +6403,7 @@ var bu = function(e) {
6403
6403
  contentId: pt(),
6404
6404
  titleId: pt(),
6405
6405
  descriptionId: pt(),
6406
- open: u,
6406
+ open: l,
6407
6407
  onOpenChange: f,
6408
6408
  onOpenToggle: d.useCallback(() => f((m) => !m), [f]),
6409
6409
  modal: i,
@@ -6415,7 +6415,7 @@ Do.displayName = Dt;
6415
6415
  var Io = "DialogTrigger", zo = d.forwardRef(
6416
6416
  (e, t) => {
6417
6417
  const { __scopeDialog: n, ...r } = e, o = oe(Io, n), a = re(t, o.triggerRef);
6418
- return /* @__PURE__ */ l(
6418
+ return /* @__PURE__ */ u(
6419
6419
  K.button,
6420
6420
  {
6421
6421
  type: "button",
@@ -6435,13 +6435,13 @@ var En = "DialogPortal", [Su, $o] = Lo(En, {
6435
6435
  forceMount: void 0
6436
6436
  }), Fo = (e) => {
6437
6437
  const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = oe(En, t);
6438
- return /* @__PURE__ */ l(Su, { scope: t, forceMount: n, children: d.Children.map(r, (i) => /* @__PURE__ */ l(Ve, { present: n || a.open, children: /* @__PURE__ */ l(xn, { asChild: !0, container: o, children: i }) })) });
6438
+ return /* @__PURE__ */ u(Su, { scope: t, forceMount: n, children: d.Children.map(r, (i) => /* @__PURE__ */ u(je, { present: n || a.open, children: /* @__PURE__ */ u(xn, { asChild: !0, container: o, children: i }) })) });
6439
6439
  };
6440
6440
  Fo.displayName = En;
6441
6441
  var At = "DialogOverlay", Wo = d.forwardRef(
6442
6442
  (e, t) => {
6443
6443
  const n = $o(At, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = oe(At, e.__scopeDialog);
6444
- return a.modal ? /* @__PURE__ */ l(Ve, { present: r || a.open, children: /* @__PURE__ */ l(ku, { ...o, ref: t }) }) : null;
6444
+ return a.modal ? /* @__PURE__ */ u(je, { present: r || a.open, children: /* @__PURE__ */ u(ku, { ...o, ref: t }) }) : null;
6445
6445
  }
6446
6446
  );
6447
6447
  Wo.displayName = At;
@@ -6451,7 +6451,7 @@ var Eu = /* @__PURE__ */ Ir("DialogOverlay.RemoveScroll"), ku = d.forwardRef(
6451
6451
  return (
6452
6452
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
6453
6453
  // ie. when `Overlay` and `Content` are siblings
6454
- /* @__PURE__ */ l(_o, { as: Eu, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l(
6454
+ /* @__PURE__ */ u(_o, { as: Eu, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u(
6455
6455
  K.div,
6456
6456
  {
6457
6457
  "data-state": An(o.open),
@@ -6465,7 +6465,7 @@ var Eu = /* @__PURE__ */ Ir("DialogOverlay.RemoveScroll"), ku = d.forwardRef(
6465
6465
  ), Se = "DialogContent", Bo = d.forwardRef(
6466
6466
  (e, t) => {
6467
6467
  const n = $o(Se, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = oe(Se, e.__scopeDialog);
6468
- return /* @__PURE__ */ l(Ve, { present: r || a.open, children: a.modal ? /* @__PURE__ */ l(Au, { ...o, ref: t }) : /* @__PURE__ */ l(Ru, { ...o, ref: t }) });
6468
+ return /* @__PURE__ */ u(je, { present: r || a.open, children: a.modal ? /* @__PURE__ */ u(Au, { ...o, ref: t }) : /* @__PURE__ */ u(Ru, { ...o, ref: t }) });
6469
6469
  }
6470
6470
  );
6471
6471
  Bo.displayName = Se;
@@ -6475,8 +6475,8 @@ var Au = d.forwardRef(
6475
6475
  return d.useEffect(() => {
6476
6476
  const a = r.current;
6477
6477
  if (a) return xu(a);
6478
- }, []), /* @__PURE__ */ l(
6479
- Vo,
6478
+ }, []), /* @__PURE__ */ u(
6479
+ jo,
6480
6480
  {
6481
6481
  ...e,
6482
6482
  ref: o,
@@ -6499,8 +6499,8 @@ var Au = d.forwardRef(
6499
6499
  ), Ru = d.forwardRef(
6500
6500
  (e, t) => {
6501
6501
  const n = oe(Se, e.__scopeDialog), r = d.useRef(!1), o = d.useRef(!1);
6502
- return /* @__PURE__ */ l(
6503
- Vo,
6502
+ return /* @__PURE__ */ u(
6503
+ jo,
6504
6504
  {
6505
6505
  ...e,
6506
6506
  ref: t,
@@ -6517,11 +6517,11 @@ var Au = d.forwardRef(
6517
6517
  }
6518
6518
  );
6519
6519
  }
6520
- ), Vo = d.forwardRef(
6520
+ ), jo = d.forwardRef(
6521
6521
  (e, t) => {
6522
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = oe(Se, n), c = d.useRef(null), u = re(t, c);
6522
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = oe(Se, n), c = d.useRef(null), l = re(t, c);
6523
6523
  return Dl(), /* @__PURE__ */ O(bt, { children: [
6524
- /* @__PURE__ */ l(
6524
+ /* @__PURE__ */ u(
6525
6525
  So,
6526
6526
  {
6527
6527
  asChild: !0,
@@ -6529,7 +6529,7 @@ var Au = d.forwardRef(
6529
6529
  trapped: r,
6530
6530
  onMountAutoFocus: o,
6531
6531
  onUnmountAutoFocus: a,
6532
- children: /* @__PURE__ */ l(
6532
+ children: /* @__PURE__ */ u(
6533
6533
  fn,
6534
6534
  {
6535
6535
  role: "dialog",
@@ -6538,36 +6538,36 @@ var Au = d.forwardRef(
6538
6538
  "aria-labelledby": s.titleId,
6539
6539
  "data-state": An(s.open),
6540
6540
  ...i,
6541
- ref: u,
6541
+ ref: l,
6542
6542
  onDismiss: () => s.onOpenChange(!1)
6543
6543
  }
6544
6544
  )
6545
6545
  }
6546
6546
  ),
6547
6547
  /* @__PURE__ */ O(bt, { children: [
6548
- /* @__PURE__ */ l(Pu, { titleId: s.titleId }),
6549
- /* @__PURE__ */ l(Tu, { contentRef: c, descriptionId: s.descriptionId })
6548
+ /* @__PURE__ */ u(Pu, { titleId: s.titleId }),
6549
+ /* @__PURE__ */ u(Tu, { contentRef: c, descriptionId: s.descriptionId })
6550
6550
  ] })
6551
6551
  ] });
6552
6552
  }
6553
- ), kn = "DialogTitle", jo = d.forwardRef(
6553
+ ), kn = "DialogTitle", Vo = d.forwardRef(
6554
6554
  (e, t) => {
6555
6555
  const { __scopeDialog: n, ...r } = e, o = oe(kn, n);
6556
- return /* @__PURE__ */ l(K.h2, { id: o.titleId, ...r, ref: t });
6556
+ return /* @__PURE__ */ u(K.h2, { id: o.titleId, ...r, ref: t });
6557
6557
  }
6558
6558
  );
6559
- jo.displayName = kn;
6559
+ Vo.displayName = kn;
6560
6560
  var Ho = "DialogDescription", Nu = d.forwardRef(
6561
6561
  (e, t) => {
6562
6562
  const { __scopeDialog: n, ...r } = e, o = oe(Ho, n);
6563
- return /* @__PURE__ */ l(K.p, { id: o.descriptionId, ...r, ref: t });
6563
+ return /* @__PURE__ */ u(K.p, { id: o.descriptionId, ...r, ref: t });
6564
6564
  }
6565
6565
  );
6566
6566
  Nu.displayName = Ho;
6567
6567
  var Uo = "DialogClose", Go = d.forwardRef(
6568
6568
  (e, t) => {
6569
6569
  const { __scopeDialog: n, ...r } = e, o = oe(Uo, n);
6570
- return /* @__PURE__ */ l(
6570
+ return /* @__PURE__ */ u(
6571
6571
  K.button,
6572
6572
  {
6573
6573
  type: "button",
@@ -6601,27 +6601,27 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
6601
6601
  const o = e.current?.getAttribute("aria-describedby");
6602
6602
  t && o && (document.getElementById(t) || console.warn(r));
6603
6603
  }, [r, e, t]), null;
6604
- }, _u = Do, Mu = zo, Lu = Fo, Du = Wo, Iu = Bo, zu = jo, $u = Go;
6604
+ }, _u = Do, Mu = zo, Lu = Fo, Du = Wo, Iu = Bo, zu = Vo, $u = Go;
6605
6605
  function Fu({
6606
6606
  ...e
6607
6607
  }) {
6608
- return /* @__PURE__ */ l(_u, { "data-slot": "dialog", ...e });
6608
+ return /* @__PURE__ */ u(_u, { "data-slot": "dialog", ...e });
6609
6609
  }
6610
6610
  function Wu({
6611
6611
  ...e
6612
6612
  }) {
6613
- return /* @__PURE__ */ l(Mu, { "data-slot": "dialog-trigger", ...e });
6613
+ return /* @__PURE__ */ u(Mu, { "data-slot": "dialog-trigger", ...e });
6614
6614
  }
6615
6615
  function Bu({
6616
6616
  ...e
6617
6617
  }) {
6618
- return /* @__PURE__ */ l(Lu, { "data-slot": "dialog-portal", ...e });
6618
+ return /* @__PURE__ */ u(Lu, { "data-slot": "dialog-portal", ...e });
6619
6619
  }
6620
- function Vu({
6620
+ function ju({
6621
6621
  className: e,
6622
6622
  ...t
6623
6623
  }) {
6624
- return /* @__PURE__ */ l(
6624
+ return /* @__PURE__ */ u(
6625
6625
  Du,
6626
6626
  {
6627
6627
  "data-slot": "dialog-overlay",
@@ -6633,14 +6633,14 @@ function Vu({
6633
6633
  }
6634
6634
  );
6635
6635
  }
6636
- function ju({
6636
+ function Vu({
6637
6637
  className: e,
6638
6638
  children: t,
6639
6639
  showCloseButton: n = !0,
6640
6640
  ...r
6641
6641
  }) {
6642
6642
  return /* @__PURE__ */ O(Bu, { "data-slot": "dialog-portal", children: [
6643
- /* @__PURE__ */ l(Vu, {}),
6643
+ /* @__PURE__ */ u(ju, {}),
6644
6644
  /* @__PURE__ */ O(
6645
6645
  Iu,
6646
6646
  {
@@ -6658,8 +6658,8 @@ function ju({
6658
6658
  "data-slot": "dialog-close",
6659
6659
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
6660
6660
  children: [
6661
- /* @__PURE__ */ l(br, {}),
6662
- /* @__PURE__ */ l("span", { className: "sr-only", children: "Close" })
6661
+ /* @__PURE__ */ u(br, {}),
6662
+ /* @__PURE__ */ u("span", { className: "sr-only", children: "Close" })
6663
6663
  ]
6664
6664
  }
6665
6665
  )
@@ -6672,7 +6672,7 @@ function Hu({
6672
6672
  className: e,
6673
6673
  ...t
6674
6674
  }) {
6675
- return /* @__PURE__ */ l(
6675
+ return /* @__PURE__ */ u(
6676
6676
  zu,
6677
6677
  {
6678
6678
  "data-slot": "dialog-title",
@@ -6688,18 +6688,18 @@ function Uu(e, t = []) {
6688
6688
  s.displayName = a + "Context";
6689
6689
  const c = n.length;
6690
6690
  n = [...n, i];
6691
- const u = (m) => {
6691
+ const l = (m) => {
6692
6692
  const { scope: g, children: p, ...v } = m, h = g?.[e]?.[c] || s, b = d.useMemo(() => v, Object.values(v));
6693
- return /* @__PURE__ */ l(h.Provider, { value: b, children: p });
6693
+ return /* @__PURE__ */ u(h.Provider, { value: b, children: p });
6694
6694
  };
6695
- u.displayName = a + "Provider";
6695
+ l.displayName = a + "Provider";
6696
6696
  function f(m, g) {
6697
6697
  const p = g?.[e]?.[c] || s, v = d.useContext(p);
6698
6698
  if (v) return v;
6699
6699
  if (i !== void 0) return i;
6700
6700
  throw new Error(`\`${m}\` must be used within \`${a}\``);
6701
6701
  }
6702
- return [u, f];
6702
+ return [l, f];
6703
6703
  }
6704
6704
  const o = () => {
6705
6705
  const a = n.map((i) => d.createContext(i));
@@ -6722,8 +6722,8 @@ function Gu(...e) {
6722
6722
  scopeName: o.scopeName
6723
6723
  }));
6724
6724
  return function(a) {
6725
- const i = r.reduce((s, { useScope: c, scopeName: u }) => {
6726
- const m = c(a)[`__scope${u}`];
6725
+ const i = r.reduce((s, { useScope: c, scopeName: l }) => {
6726
+ const m = c(a)[`__scope${l}`];
6727
6727
  return { ...s, ...m };
6728
6728
  }, {});
6729
6729
  return d.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
@@ -6752,7 +6752,7 @@ var Yu = [
6752
6752
  ], Rn = Yu.reduce((e, t) => {
6753
6753
  const n = /* @__PURE__ */ wr(`Primitive.${t}`), r = d.forwardRef((o, a) => {
6754
6754
  const { asChild: i, ...s } = o, c = i ? n : t;
6755
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...s, ref: a });
6755
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...s, ref: a });
6756
6756
  });
6757
6757
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
6758
6758
  }, {}), mt = { exports: {} }, Yt = {};
@@ -6791,10 +6791,10 @@ function qu() {
6791
6791
  return !0;
6792
6792
  }
6793
6793
  }
6794
- function u(m, g) {
6794
+ function l(m, g) {
6795
6795
  return g();
6796
6796
  }
6797
- var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : s;
6797
+ var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : s;
6798
6798
  return Yt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Yt;
6799
6799
  }
6800
6800
  var qt = {};
@@ -6831,7 +6831,7 @@ function Ku() {
6831
6831
  });
6832
6832
  },
6833
6833
  [p]
6834
- ), u(h), h;
6834
+ ), l(h), h;
6835
6835
  }
6836
6836
  function n(p) {
6837
6837
  var v = p.getSnapshot;
@@ -6847,7 +6847,7 @@ function Ku() {
6847
6847
  return v();
6848
6848
  }
6849
6849
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
6850
- var o = fr, a = typeof Object.is == "function" ? Object.is : e, i = o.useState, s = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, m = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
6850
+ var o = fr, a = typeof Object.is == "function" ? Object.is : e, i = o.useState, s = o.useEffect, c = o.useLayoutEffect, l = o.useDebugValue, f = !1, m = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
6851
6851
  qt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
6852
6852
  })()), qt;
6853
6853
  }
@@ -6870,13 +6870,13 @@ function Qu() {
6870
6870
  var Nn = "Avatar", [ed] = Uu(Nn), [td, Ko] = ed(Nn), Xo = d.forwardRef(
6871
6871
  (e, t) => {
6872
6872
  const { __scopeAvatar: n, ...r } = e, [o, a] = d.useState("idle");
6873
- return /* @__PURE__ */ l(
6873
+ return /* @__PURE__ */ u(
6874
6874
  td,
6875
6875
  {
6876
6876
  scope: n,
6877
6877
  imageLoadingStatus: o,
6878
6878
  onImageLoadingStatusChange: a,
6879
- children: /* @__PURE__ */ l(Rn.span, { ...r, ref: t })
6879
+ children: /* @__PURE__ */ u(Rn.span, { ...r, ref: t })
6880
6880
  }
6881
6881
  );
6882
6882
  }
@@ -6885,12 +6885,12 @@ Xo.displayName = Nn;
6885
6885
  var Zo = "AvatarImage", Jo = d.forwardRef(
6886
6886
  (e, t) => {
6887
6887
  const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
6888
- }, ...a } = e, i = Ko(Zo, n), s = nd(r, a), c = xe((u) => {
6889
- o(u), i.onImageLoadingStatusChange(u);
6888
+ }, ...a } = e, i = Ko(Zo, n), s = nd(r, a), c = xe((l) => {
6889
+ o(l), i.onImageLoadingStatusChange(l);
6890
6890
  });
6891
6891
  return ee(() => {
6892
6892
  s !== "idle" && c(s);
6893
- }, [s, c]), s === "loaded" ? /* @__PURE__ */ l(Rn.img, { ...a, ref: t, src: r }) : null;
6893
+ }, [s, c]), s === "loaded" ? /* @__PURE__ */ u(Rn.img, { ...a, ref: t, src: r }) : null;
6894
6894
  }
6895
6895
  );
6896
6896
  Jo.displayName = Zo;
@@ -6902,7 +6902,7 @@ var Qo = "AvatarFallback", ea = d.forwardRef(
6902
6902
  const c = window.setTimeout(() => s(!0), r);
6903
6903
  return () => window.clearTimeout(c);
6904
6904
  }
6905
- }, [r]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(Rn.span, { ...o, ref: t }) : null;
6905
+ }, [r]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ u(Rn.span, { ...o, ref: t }) : null;
6906
6906
  }
6907
6907
  );
6908
6908
  ea.displayName = Qo;
@@ -6920,9 +6920,9 @@ function nd(e, { referrerPolicy: t, crossOrigin: n }) {
6920
6920
  s(m);
6921
6921
  };
6922
6922
  if (!a) return;
6923
- const u = c("loaded"), f = c("error");
6924
- return a.addEventListener("load", u), a.addEventListener("error", f), t && (a.referrerPolicy = t), typeof n == "string" && (a.crossOrigin = n), () => {
6925
- a.removeEventListener("load", u), a.removeEventListener("error", f);
6923
+ const l = c("loaded"), f = c("error");
6924
+ return a.addEventListener("load", l), a.addEventListener("error", f), t && (a.referrerPolicy = t), typeof n == "string" && (a.crossOrigin = n), () => {
6925
+ a.removeEventListener("load", l), a.removeEventListener("error", f);
6926
6926
  };
6927
6927
  }, [a, n, t]), i;
6928
6928
  }
@@ -6931,7 +6931,7 @@ function id({
6931
6931
  className: e,
6932
6932
  ...t
6933
6933
  }) {
6934
- return /* @__PURE__ */ l(
6934
+ return /* @__PURE__ */ u(
6935
6935
  rd,
6936
6936
  {
6937
6937
  "data-slot": "avatar",
@@ -6947,7 +6947,7 @@ function sd({
6947
6947
  className: e,
6948
6948
  ...t
6949
6949
  }) {
6950
- return /* @__PURE__ */ l(
6950
+ return /* @__PURE__ */ u(
6951
6951
  od,
6952
6952
  {
6953
6953
  "data-slot": "avatar-image",
@@ -6960,7 +6960,7 @@ function cd({
6960
6960
  className: e,
6961
6961
  ...t
6962
6962
  }) {
6963
- return /* @__PURE__ */ l(
6963
+ return /* @__PURE__ */ u(
6964
6964
  ad,
6965
6965
  {
6966
6966
  "data-slot": "avatar-fallback",
@@ -6996,7 +6996,7 @@ const ld = (e) => {
6996
6996
  return ld(e) ?? t;
6997
6997
  }, ud = ({ src: e }) => {
6998
6998
  const [t, n] = Qe(!1);
6999
- return /* @__PURE__ */ l(
6999
+ return /* @__PURE__ */ u(
7000
7000
  "img",
7001
7001
  {
7002
7002
  src: e,
@@ -7008,7 +7008,7 @@ const ld = (e) => {
7008
7008
  }, dd = ({ children: e }) => {
7009
7009
  const t = ta();
7010
7010
  return t ? /* @__PURE__ */ O(Fu, { children: [
7011
- /* @__PURE__ */ l(
7011
+ /* @__PURE__ */ u(
7012
7012
  Wu,
7013
7013
  {
7014
7014
  className: "aui-attachment-preview-trigger hover:bg-accent/50 cursor-pointer transition-colors",
@@ -7016,9 +7016,9 @@ const ld = (e) => {
7016
7016
  children: e
7017
7017
  }
7018
7018
  ),
7019
- /* @__PURE__ */ O(ju, { className: "aui-attachment-preview-dialog-content [&_svg]:text-background [&>button]:bg-foreground/60 [&>button]:hover:[&_svg]:text-destructive p-2 sm:max-w-3xl [&>button]:rounded-full [&>button]:p-1 [&>button]:opacity-100 [&>button]:!ring-0", children: [
7020
- /* @__PURE__ */ l(Hu, { className: "aui-sr-only sr-only", children: "Image Attachment Preview" }),
7021
- /* @__PURE__ */ l("div", { className: "aui-attachment-preview bg-background relative mx-auto flex max-h-[80dvh] w-full items-center justify-center overflow-hidden", children: /* @__PURE__ */ l(ud, { src: t }) })
7019
+ /* @__PURE__ */ O(Vu, { className: "aui-attachment-preview-dialog-content [&_svg]:text-background [&>button]:bg-foreground/60 [&>button]:hover:[&_svg]:text-destructive p-2 sm:max-w-3xl [&>button]:rounded-full [&>button]:p-1 [&>button]:opacity-100 [&>button]:!ring-0", children: [
7020
+ /* @__PURE__ */ u(Hu, { className: "aui-sr-only sr-only", children: "Image Attachment Preview" }),
7021
+ /* @__PURE__ */ u("div", { className: "aui-attachment-preview bg-background relative mx-auto flex max-h-[80dvh] w-full items-center justify-center overflow-hidden", children: /* @__PURE__ */ u(ud, { src: t }) })
7022
7022
  ] })
7023
7023
  ] }) : e;
7024
7024
  }, fd = () => {
@@ -7026,7 +7026,7 @@ const ld = (e) => {
7026
7026
  ({ attachment: n }) => n.type === "image"
7027
7027
  ), t = ta();
7028
7028
  return /* @__PURE__ */ O(id, { className: "aui-attachment-tile-avatar h-full w-full rounded-none", children: [
7029
- /* @__PURE__ */ l(
7029
+ /* @__PURE__ */ u(
7030
7030
  sd,
7031
7031
  {
7032
7032
  src: t,
@@ -7034,7 +7034,7 @@ const ld = (e) => {
7034
7034
  className: "aui-attachment-tile-image object-cover"
7035
7035
  }
7036
7036
  ),
7037
- /* @__PURE__ */ l(cd, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ l(Ya, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
7037
+ /* @__PURE__ */ u(cd, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ u(Ya, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
7038
7038
  ] });
7039
7039
  }, na = () => {
7040
7040
  const t = ma().attachment.source === "composer", n = yt(
@@ -7063,7 +7063,7 @@ const ld = (e) => {
7063
7063
  n && "aui-attachment-root-composer only:[&>#attachment-tile]:size-24"
7064
7064
  ),
7065
7065
  children: [
7066
- /* @__PURE__ */ l(dd, { children: /* @__PURE__ */ l(xo, { asChild: !0, children: /* @__PURE__ */ l(
7066
+ /* @__PURE__ */ u(dd, { children: /* @__PURE__ */ u(xo, { asChild: !0, children: /* @__PURE__ */ u(
7067
7067
  "div",
7068
7068
  {
7069
7069
  className: _(
@@ -7073,29 +7073,29 @@ const ld = (e) => {
7073
7073
  role: "button",
7074
7074
  id: "attachment-tile",
7075
7075
  "aria-label": `${r} attachment`,
7076
- children: /* @__PURE__ */ l(fd, {})
7076
+ children: /* @__PURE__ */ u(fd, {})
7077
7077
  }
7078
7078
  ) }) }),
7079
- t && /* @__PURE__ */ l(md, {})
7079
+ t && /* @__PURE__ */ u(md, {})
7080
7080
  ]
7081
7081
  }
7082
7082
  ),
7083
- /* @__PURE__ */ l(Co, { side: "top", children: /* @__PURE__ */ l(Xt.Name, {}) })
7083
+ /* @__PURE__ */ u(Co, { side: "top", children: /* @__PURE__ */ u(Xt.Name, {}) })
7084
7084
  ] });
7085
- }, md = () => /* @__PURE__ */ l(Xt.Remove, { asChild: !0, children: /* @__PURE__ */ l(
7085
+ }, md = () => /* @__PURE__ */ u(Xt.Remove, { asChild: !0, children: /* @__PURE__ */ u(
7086
7086
  Q,
7087
7087
  {
7088
7088
  tooltip: "Remove file",
7089
7089
  className: "aui-attachment-tile-remove text-muted-foreground hover:[&_svg]:text-destructive absolute top-1.5 right-1.5 size-3.5 rounded-full bg-white opacity-100 shadow-sm hover:!bg-white [&_svg]:text-black",
7090
7090
  side: "top",
7091
- children: /* @__PURE__ */ l(br, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
7091
+ children: /* @__PURE__ */ u(br, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
7092
7092
  }
7093
- ) }), pd = () => /* @__PURE__ */ l("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ l(ve.Attachments, { components: { Attachment: na } }) }), hd = () => /* @__PURE__ */ l("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ l(
7093
+ ) }), pd = () => /* @__PURE__ */ u("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ u(ve.Attachments, { components: { Attachment: na } }) }), hd = () => /* @__PURE__ */ u("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ u(
7094
7094
  ie.Attachments,
7095
7095
  {
7096
7096
  components: { Attachment: na }
7097
7097
  }
7098
- ) }), gd = () => /* @__PURE__ */ l(ie.AddAttachment, { asChild: !0, children: /* @__PURE__ */ l(
7098
+ ) }), gd = () => /* @__PURE__ */ u(ie.AddAttachment, { asChild: !0, children: /* @__PURE__ */ u(
7099
7099
  Q,
7100
7100
  {
7101
7101
  tooltip: "Add Attachment",
@@ -7104,9 +7104,9 @@ const ld = (e) => {
7104
7104
  size: "icon",
7105
7105
  className: "aui-composer-add-attachment hover:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30 size-[34px] rounded-full p-1 text-xs font-semibold",
7106
7106
  "aria-label": "Add Attachment",
7107
- children: /* @__PURE__ */ l(Za, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
7107
+ children: /* @__PURE__ */ u(Za, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
7108
7108
  }
7109
- ) }), ra = () => /* @__PURE__ */ l(pa, { features: ha, children: /* @__PURE__ */ l(ga, { reducedMotion: "user", children: /* @__PURE__ */ l(
7109
+ ) }), ra = () => /* @__PURE__ */ u(pa, { features: ha, children: /* @__PURE__ */ u(ga, { reducedMotion: "user", children: /* @__PURE__ */ u(
7110
7110
  fe.Root,
7111
7111
  {
7112
7112
  className: "aui-root aui-thread-root bg-background @container flex h-full flex-col",
@@ -7114,8 +7114,8 @@ const ld = (e) => {
7114
7114
  "--thread-max-width": "44rem"
7115
7115
  },
7116
7116
  children: /* @__PURE__ */ O(fe.Viewport, { className: "aui-thread-viewport relative flex flex-1 flex-col overflow-x-auto overflow-y-scroll px-4", children: [
7117
- /* @__PURE__ */ l(fe.If, { empty: !0, children: /* @__PURE__ */ l(bd, {}) }),
7118
- /* @__PURE__ */ l(
7117
+ /* @__PURE__ */ u(fe.If, { empty: !0, children: /* @__PURE__ */ u(bd, {}) }),
7118
+ /* @__PURE__ */ u(
7119
7119
  fe.Messages,
7120
7120
  {
7121
7121
  components: {
@@ -7125,23 +7125,23 @@ const ld = (e) => {
7125
7125
  }
7126
7126
  }
7127
7127
  ),
7128
- /* @__PURE__ */ l(fe.If, { empty: !1, children: /* @__PURE__ */ l("div", { className: "aui-thread-viewport-spacer min-h-8 grow" }) }),
7129
- /* @__PURE__ */ l(wd, {})
7128
+ /* @__PURE__ */ u(fe.If, { empty: !1, children: /* @__PURE__ */ u("div", { className: "aui-thread-viewport-spacer min-h-8 grow" }) }),
7129
+ /* @__PURE__ */ u(wd, {})
7130
7130
  ] })
7131
7131
  }
7132
- ) }) }), vd = () => /* @__PURE__ */ l(fe.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ l(
7132
+ ) }) }), vd = () => /* @__PURE__ */ u(fe.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ u(
7133
7133
  Q,
7134
7134
  {
7135
7135
  tooltip: "Scroll to bottom",
7136
7136
  variant: "outline",
7137
7137
  className: "aui-thread-scroll-to-bottom dark:bg-background dark:hover:bg-accent absolute -top-12 z-10 self-center rounded-full p-4 disabled:invisible",
7138
- children: /* @__PURE__ */ l(_a, {})
7138
+ children: /* @__PURE__ */ u(_a, {})
7139
7139
  }
7140
7140
  ) }), bd = () => {
7141
7141
  const { config: e } = Ee(), { title: t, subtitle: n } = e.welcome ?? {};
7142
7142
  return /* @__PURE__ */ O("div", { className: "aui-thread-welcome-root mx-auto my-auto flex w-full max-w-(--thread-max-width) grow flex-col gap-10", children: [
7143
- /* @__PURE__ */ l("div", { className: "aui-thread-welcome-center flex w-full grow flex-col items-center justify-center", children: /* @__PURE__ */ O("div", { className: "aui-thread-welcome-message flex size-full flex-col justify-center px-8", children: [
7144
- /* @__PURE__ */ l(
7143
+ /* @__PURE__ */ u("div", { className: "aui-thread-welcome-center flex w-full grow flex-col items-center justify-center", children: /* @__PURE__ */ O("div", { className: "aui-thread-welcome-message flex size-full flex-col justify-center px-8", children: [
7144
+ /* @__PURE__ */ u(
7145
7145
  Zt.div,
7146
7146
  {
7147
7147
  initial: { opacity: 0, y: 10 },
@@ -7151,7 +7151,7 @@ const ld = (e) => {
7151
7151
  children: t
7152
7152
  }
7153
7153
  ),
7154
- /* @__PURE__ */ l(
7154
+ /* @__PURE__ */ u(
7155
7155
  Zt.div,
7156
7156
  {
7157
7157
  initial: { opacity: 0, y: 10 },
@@ -7163,11 +7163,11 @@ const ld = (e) => {
7163
7163
  }
7164
7164
  )
7165
7165
  ] }) }),
7166
- /* @__PURE__ */ l(yd, {})
7166
+ /* @__PURE__ */ u(yd, {})
7167
7167
  ] });
7168
7168
  }, yd = () => {
7169
7169
  const { config: e } = Ee(), t = e.welcome?.suggestions ?? [];
7170
- return /* @__PURE__ */ l("div", { className: "aui-thread-welcome-suggestions grid w-full gap-2 pb-10 @md:grid-cols-2", children: t.map((n, r) => /* @__PURE__ */ l(
7170
+ return /* @__PURE__ */ u("div", { className: "aui-thread-welcome-suggestions grid w-full gap-2 pb-10 @md:grid-cols-2", children: t.map((n, r) => /* @__PURE__ */ u(
7171
7171
  Zt.div,
7172
7172
  {
7173
7173
  initial: { opacity: 0, y: 20 },
@@ -7175,15 +7175,15 @@ const ld = (e) => {
7175
7175
  exit: { opacity: 0, y: 20 },
7176
7176
  transition: { delay: 0.05 * r },
7177
7177
  className: "aui-thread-welcome-suggestion-display nth-[n+3]:hidden @md:nth-[n+3]:block",
7178
- children: /* @__PURE__ */ l(fe.Suggestion, { prompt: n.action, send: !0, asChild: !0, children: /* @__PURE__ */ O(
7178
+ children: /* @__PURE__ */ u(fe.Suggestion, { prompt: n.action, send: !0, asChild: !0, children: /* @__PURE__ */ O(
7179
7179
  De,
7180
7180
  {
7181
7181
  variant: "ghost",
7182
7182
  className: "aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto w-full flex-1 flex-wrap items-start justify-start gap-1 rounded-3xl border px-5 py-4 text-left text-sm @md:flex-col",
7183
7183
  "aria-label": n.action,
7184
7184
  children: [
7185
- /* @__PURE__ */ l("span", { className: "aui-thread-welcome-suggestion-text-1 font-medium", children: n.title }),
7186
- /* @__PURE__ */ l("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground", children: n.label })
7185
+ /* @__PURE__ */ u("span", { className: "aui-thread-welcome-suggestion-text-1 font-medium", children: n.title }),
7186
+ /* @__PURE__ */ u("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground", children: n.label })
7187
7187
  ]
7188
7188
  }
7189
7189
  ) })
@@ -7196,10 +7196,10 @@ const ld = (e) => {
7196
7196
  attachments: !0
7197
7197
  };
7198
7198
  return /* @__PURE__ */ O("div", { className: "aui-composer-wrapper bg-background sticky bottom-0 mx-auto flex w-full max-w-(--thread-max-width) flex-col gap-4 overflow-visible rounded-t-3xl pb-4 md:pb-6", children: [
7199
- /* @__PURE__ */ l(vd, {}),
7199
+ /* @__PURE__ */ u(vd, {}),
7200
7200
  /* @__PURE__ */ O(ie.Root, { className: "aui-composer-root group/input-group border-input bg-background has-[textarea:focus-visible]:border-ring has-[textarea:focus-visible]:ring-ring/50 dark:bg-background relative flex w-full flex-col rounded-3xl border px-1 pt-2 shadow-xs transition-[color,box-shadow] outline-none has-[textarea:focus-visible]:ring-[3px]", children: [
7201
- t.attachments && /* @__PURE__ */ l(hd, {}),
7202
- /* @__PURE__ */ l(
7201
+ t.attachments && /* @__PURE__ */ u(hd, {}),
7202
+ /* @__PURE__ */ u(
7203
7203
  ie.Input,
7204
7204
  {
7205
7205
  placeholder: t.placeholder,
@@ -7209,14 +7209,14 @@ const ld = (e) => {
7209
7209
  "aria-label": "Message input"
7210
7210
  }
7211
7211
  ),
7212
- /* @__PURE__ */ l(xd, {})
7212
+ /* @__PURE__ */ u(xd, {})
7213
7213
  ] })
7214
7214
  ] });
7215
7215
  }, xd = () => {
7216
7216
  const { config: e } = Ee(), t = e.composer ?? { attachments: !0 };
7217
7217
  return /* @__PURE__ */ O("div", { className: "aui-composer-action-wrapper relative mx-1 mt-2 mb-2 flex items-center justify-between", children: [
7218
- t.attachments ? /* @__PURE__ */ l(gd, {}) : /* @__PURE__ */ l("div", { className: "aui-composer-add-attachment-placeholder" }),
7219
- /* @__PURE__ */ l(fe.If, { running: !1, children: /* @__PURE__ */ l(ie.Send, { asChild: !0, children: /* @__PURE__ */ l(
7218
+ t.attachments ? /* @__PURE__ */ u(gd, {}) : /* @__PURE__ */ u("div", { className: "aui-composer-add-attachment-placeholder" }),
7219
+ /* @__PURE__ */ u(fe.If, { running: !1, children: /* @__PURE__ */ u(ie.Send, { asChild: !0, children: /* @__PURE__ */ u(
7220
7220
  Q,
7221
7221
  {
7222
7222
  tooltip: "Send message",
@@ -7226,10 +7226,10 @@ const ld = (e) => {
7226
7226
  size: "icon",
7227
7227
  className: "aui-composer-send size-[34px] rounded-full p-1",
7228
7228
  "aria-label": "Send message",
7229
- children: /* @__PURE__ */ l(La, { className: "aui-composer-send-icon size-5" })
7229
+ children: /* @__PURE__ */ u(La, { className: "aui-composer-send-icon size-5" })
7230
7230
  }
7231
7231
  ) }) }),
7232
- /* @__PURE__ */ l(fe.If, { running: !0, children: /* @__PURE__ */ l(ie.Cancel, { asChild: !0, children: /* @__PURE__ */ l(
7232
+ /* @__PURE__ */ u(fe.If, { running: !0, children: /* @__PURE__ */ u(ie.Cancel, { asChild: !0, children: /* @__PURE__ */ u(
7233
7233
  De,
7234
7234
  {
7235
7235
  type: "button",
@@ -7237,18 +7237,18 @@ const ld = (e) => {
7237
7237
  size: "icon",
7238
7238
  className: "aui-composer-cancel border-muted-foreground/60 hover:bg-primary/75 dark:border-muted-foreground/90 size-[34px] rounded-full border",
7239
7239
  "aria-label": "Stop generating",
7240
- children: /* @__PURE__ */ l(ti, { className: "aui-composer-cancel-icon size-3.5 fill-white dark:fill-black" })
7240
+ children: /* @__PURE__ */ u(ti, { className: "aui-composer-cancel-icon size-3.5 fill-white dark:fill-black" })
7241
7241
  }
7242
7242
  ) }) })
7243
7243
  ] });
7244
- }, Cd = () => /* @__PURE__ */ l(ve.Error, { children: /* @__PURE__ */ l(Pn.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ l(Pn.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), Sd = () => /* @__PURE__ */ l(ve.Root, { asChild: !0, children: /* @__PURE__ */ O(
7244
+ }, Cd = () => /* @__PURE__ */ u(ve.Error, { children: /* @__PURE__ */ u(Pn.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ u(Pn.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), Sd = () => /* @__PURE__ */ u(ve.Root, { asChild: !0, children: /* @__PURE__ */ O(
7245
7245
  "div",
7246
7246
  {
7247
7247
  className: "aui-assistant-message-root animate-in fade-in slide-in-from-bottom-1 relative mx-auto w-full max-w-(--thread-max-width) py-4 duration-150 ease-out last:mb-24",
7248
7248
  "data-role": "assistant",
7249
7249
  children: [
7250
7250
  /* @__PURE__ */ O("div", { className: "aui-assistant-message-content text-foreground mx-2 leading-7 wrap-break-word", children: [
7251
- /* @__PURE__ */ l(
7251
+ /* @__PURE__ */ u(
7252
7252
  ve.Parts,
7253
7253
  {
7254
7254
  components: {
@@ -7257,11 +7257,11 @@ const ld = (e) => {
7257
7257
  }
7258
7258
  }
7259
7259
  ),
7260
- /* @__PURE__ */ l(Cd, {})
7260
+ /* @__PURE__ */ u(Cd, {})
7261
7261
  ] }),
7262
7262
  /* @__PURE__ */ O("div", { className: "aui-assistant-message-footer mt-2 ml-2 flex", children: [
7263
- /* @__PURE__ */ l(oa, {}),
7264
- /* @__PURE__ */ l(Ed, {})
7263
+ /* @__PURE__ */ u(oa, {}),
7264
+ /* @__PURE__ */ u(Ed, {})
7265
7265
  ] })
7266
7266
  ]
7267
7267
  }
@@ -7273,37 +7273,37 @@ const ld = (e) => {
7273
7273
  autohideFloat: "single-branch",
7274
7274
  className: "aui-assistant-action-bar-root text-muted-foreground data-floating:bg-background col-start-3 row-start-2 -ml-1 flex gap-1 data-floating:absolute data-floating:rounded-md data-floating:border data-floating:p-1 data-floating:shadow-sm",
7275
7275
  children: [
7276
- /* @__PURE__ */ l(Ke.Copy, { asChild: !0, children: /* @__PURE__ */ O(Q, { tooltip: "Copy", children: [
7277
- /* @__PURE__ */ l(ve.If, { copied: !0, children: /* @__PURE__ */ l(cn, {}) }),
7278
- /* @__PURE__ */ l(ve.If, { copied: !1, children: /* @__PURE__ */ l(vr, {}) })
7276
+ /* @__PURE__ */ u(Ke.Copy, { asChild: !0, children: /* @__PURE__ */ O(Q, { tooltip: "Copy", children: [
7277
+ /* @__PURE__ */ u(ve.If, { copied: !0, children: /* @__PURE__ */ u(cn, {}) }),
7278
+ /* @__PURE__ */ u(ve.If, { copied: !1, children: /* @__PURE__ */ u(vr, {}) })
7279
7279
  ] }) }),
7280
- /* @__PURE__ */ l(Ke.Reload, { asChild: !0, children: /* @__PURE__ */ l(Q, { tooltip: "Refresh", children: /* @__PURE__ */ l(Qa, {}) }) })
7280
+ /* @__PURE__ */ u(Ke.Reload, { asChild: !0, children: /* @__PURE__ */ u(Q, { tooltip: "Refresh", children: /* @__PURE__ */ u(Qa, {}) }) })
7281
7281
  ]
7282
7282
  }
7283
- ), kd = () => /* @__PURE__ */ l(ve.Root, { asChild: !0, children: /* @__PURE__ */ O(
7283
+ ), kd = () => /* @__PURE__ */ u(ve.Root, { asChild: !0, children: /* @__PURE__ */ O(
7284
7284
  "div",
7285
7285
  {
7286
7286
  className: "aui-user-message-root animate-in fade-in slide-in-from-bottom-1 mx-auto grid w-full max-w-(--thread-max-width) auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 px-2 py-4 duration-150 ease-out first:mt-3 last:mb-5 [&:where(>*)]:col-start-2",
7287
7287
  "data-role": "user",
7288
7288
  children: [
7289
- /* @__PURE__ */ l(pd, {}),
7289
+ /* @__PURE__ */ u(pd, {}),
7290
7290
  /* @__PURE__ */ O("div", { className: "aui-user-message-content-wrapper relative col-start-2 min-w-0", children: [
7291
- /* @__PURE__ */ l("div", { className: "aui-user-message-content bg-muted text-foreground rounded-3xl px-5 py-2.5 wrap-break-word", children: /* @__PURE__ */ l(ve.Parts, {}) }),
7292
- /* @__PURE__ */ l("div", { className: "aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2", children: /* @__PURE__ */ l(Ad, {}) })
7291
+ /* @__PURE__ */ u("div", { className: "aui-user-message-content bg-muted text-foreground rounded-3xl px-5 py-2.5 wrap-break-word", children: /* @__PURE__ */ u(ve.Parts, {}) }),
7292
+ /* @__PURE__ */ u("div", { className: "aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2", children: /* @__PURE__ */ u(Ad, {}) })
7293
7293
  ] }),
7294
- /* @__PURE__ */ l(oa, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
7294
+ /* @__PURE__ */ u(oa, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
7295
7295
  ]
7296
7296
  }
7297
- ) }), Ad = () => /* @__PURE__ */ l(
7297
+ ) }), Ad = () => /* @__PURE__ */ u(
7298
7298
  Ke.Root,
7299
7299
  {
7300
7300
  hideWhenRunning: !0,
7301
7301
  autohide: "not-last",
7302
7302
  className: "aui-user-action-bar-root flex flex-col items-end",
7303
- children: /* @__PURE__ */ l(Ke.Edit, { asChild: !0, children: /* @__PURE__ */ l(Q, { tooltip: "Edit", className: "aui-user-action-edit p-4", children: /* @__PURE__ */ l(Ka, {}) }) })
7303
+ children: /* @__PURE__ */ u(Ke.Edit, { asChild: !0, children: /* @__PURE__ */ u(Q, { tooltip: "Edit", className: "aui-user-action-edit p-4", children: /* @__PURE__ */ u(Ka, {}) }) })
7304
7304
  }
7305
- ), Rd = () => /* @__PURE__ */ l("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full max-w-(--thread-max-width) flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ O(ie.Root, { className: "aui-edit-composer-root bg-muted ml-auto flex w-full max-w-7/8 flex-col rounded-xl", children: [
7306
- /* @__PURE__ */ l(
7305
+ ), Rd = () => /* @__PURE__ */ u("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full max-w-(--thread-max-width) flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ O(ie.Root, { className: "aui-edit-composer-root bg-muted ml-auto flex w-full max-w-7/8 flex-col rounded-xl", children: [
7306
+ /* @__PURE__ */ u(
7307
7307
  ie.Input,
7308
7308
  {
7309
7309
  className: "aui-edit-composer-input text-foreground flex min-h-[60px] w-full resize-none bg-transparent p-4 outline-none",
@@ -7311,8 +7311,8 @@ const ld = (e) => {
7311
7311
  }
7312
7312
  ),
7313
7313
  /* @__PURE__ */ O("div", { className: "aui-edit-composer-footer mx-3 mb-3 flex items-center justify-center gap-2 self-end", children: [
7314
- /* @__PURE__ */ l(ie.Cancel, { asChild: !0, children: /* @__PURE__ */ l(De, { variant: "ghost", size: "sm", "aria-label": "Cancel edit", children: "Cancel" }) }),
7315
- /* @__PURE__ */ l(ie.Send, { asChild: !0, children: /* @__PURE__ */ l(De, { size: "sm", "aria-label": "Update message", children: "Update" }) })
7314
+ /* @__PURE__ */ u(ie.Cancel, { asChild: !0, children: /* @__PURE__ */ u(De, { variant: "ghost", size: "sm", "aria-label": "Cancel edit", children: "Cancel" }) }),
7315
+ /* @__PURE__ */ u(ie.Send, { asChild: !0, children: /* @__PURE__ */ u(De, { size: "sm", "aria-label": "Update message", children: "Update" }) })
7316
7316
  ] })
7317
7317
  ] }) }), oa = ({
7318
7318
  className: e,
@@ -7327,13 +7327,13 @@ const ld = (e) => {
7327
7327
  ),
7328
7328
  ...t,
7329
7329
  children: [
7330
- /* @__PURE__ */ l(Ye.Previous, { asChild: !0, children: /* @__PURE__ */ l(Q, { tooltip: "Previous", children: /* @__PURE__ */ l(Wa, {}) }) }),
7330
+ /* @__PURE__ */ u(Ye.Previous, { asChild: !0, children: /* @__PURE__ */ u(Q, { tooltip: "Previous", children: /* @__PURE__ */ u(Wa, {}) }) }),
7331
7331
  /* @__PURE__ */ O("span", { className: "aui-branch-picker-state font-medium", children: [
7332
- /* @__PURE__ */ l(Ye.Number, {}),
7332
+ /* @__PURE__ */ u(Ye.Number, {}),
7333
7333
  " / ",
7334
- /* @__PURE__ */ l(Ye.Count, {})
7334
+ /* @__PURE__ */ u(Ye.Count, {})
7335
7335
  ] }),
7336
- /* @__PURE__ */ l(Ye.Next, { asChild: !0, children: /* @__PURE__ */ l(Q, { tooltip: "Next", children: /* @__PURE__ */ l(Va, {}) }) })
7336
+ /* @__PURE__ */ u(Ye.Next, { asChild: !0, children: /* @__PURE__ */ u(Q, { tooltip: "Next", children: /* @__PURE__ */ u(ja, {}) }) })
7337
7337
  ]
7338
7338
  }
7339
7339
  ), Nd = () => {
@@ -7343,8 +7343,8 @@ const ld = (e) => {
7343
7343
  {
7344
7344
  defaultOpen: e.modal?.defaultOpen ?? !1,
7345
7345
  children: [
7346
- /* @__PURE__ */ l(ot.Anchor, { className: "aui-root aui-modal-anchor fixed right-4 bottom-4 size-11", children: /* @__PURE__ */ l(ot.Trigger, { asChild: !0, children: /* @__PURE__ */ l(aa, {}) }) }),
7347
- /* @__PURE__ */ l(
7346
+ /* @__PURE__ */ u(ot.Anchor, { className: "aui-root aui-modal-anchor fixed right-4 bottom-4 size-11", children: /* @__PURE__ */ u(ot.Trigger, { asChild: !0, children: /* @__PURE__ */ u(aa, {}) }) }),
7347
+ /* @__PURE__ */ u(
7348
7348
  ot.Content,
7349
7349
  {
7350
7350
  sideOffset: 16,
@@ -7352,14 +7352,14 @@ const ld = (e) => {
7352
7352
  "aui-root aui-modal-content data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2 data-[state=closed]:zoom-out data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=open]:zoom-in bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=open]:animate-in z-50 h-[600px] w-[600px] overflow-clip overscroll-contain rounded-xl border p-0 shadow-md outline-none [&>.aui-thread-root]:bg-inherit",
7353
7353
  t
7354
7354
  ),
7355
- children: /* @__PURE__ */ l(ra, {})
7355
+ children: /* @__PURE__ */ u(ra, {})
7356
7356
  }
7357
7357
  )
7358
7358
  ]
7359
7359
  }
7360
7360
  );
7361
7361
  }, aa = Rt(({ "data-state": e, ...t }, n) => {
7362
- const r = e === "open" ? "Close Assistant" : "Open Assistant", { config: o } = Ee(), a = o.modal?.icon ? o.modal.icon(e) : /* @__PURE__ */ l(
7362
+ const r = e === "open" ? "Close Assistant" : "Open Assistant", { config: o } = Ee(), a = o.modal?.icon ? o.modal.icon(e) : /* @__PURE__ */ u(
7363
7363
  Ia,
7364
7364
  {
7365
7365
  "data-state": e,
@@ -7377,14 +7377,14 @@ const ld = (e) => {
7377
7377
  ref: n,
7378
7378
  children: [
7379
7379
  a,
7380
- /* @__PURE__ */ l(
7380
+ /* @__PURE__ */ u(
7381
7381
  gr,
7382
7382
  {
7383
7383
  "data-state": e,
7384
7384
  className: "aui-modal-button-open-icon absolute size-6 transition-all data-[state=closed]:scale-0 data-[state=closed]:-rotate-90 data-[state=open]:scale-100 data-[state=open]:rotate-0"
7385
7385
  }
7386
7386
  ),
7387
- /* @__PURE__ */ l("span", { className: "aui-sr-only sr-only", children: r })
7387
+ /* @__PURE__ */ u("span", { className: "aui-sr-only sr-only", children: r })
7388
7388
  ]
7389
7389
  }
7390
7390
  );
@@ -7392,10 +7392,52 @@ const ld = (e) => {
7392
7392
  aa.displayName = "AssistantModalButton";
7393
7393
  const Fd = () => {
7394
7394
  const { config: e } = Ee();
7395
- return e.variant === "modal" ? /* @__PURE__ */ l(Nd, {}) : /* @__PURE__ */ l(ra, {});
7395
+ return e.variant === "widget" ? /* @__PURE__ */ u(Nd, {}) : /* @__PURE__ */ u(ra, {});
7396
7396
  };
7397
+ function Wd(e = {}) {
7398
+ const { endpoint: t = "/api/chat" } = e;
7399
+ return {
7400
+ async *run({ messages: n, abortSignal: r }) {
7401
+ const o = await fetch(t, {
7402
+ method: "POST",
7403
+ headers: { "Content-Type": "application/json" },
7404
+ body: JSON.stringify({ messages: n }),
7405
+ signal: r
7406
+ });
7407
+ if (!o.ok)
7408
+ throw new Error(`Chat request failed: ${o.statusText}`);
7409
+ const a = o.body?.getReader();
7410
+ if (!a) return;
7411
+ const i = new TextDecoder();
7412
+ let s = "", c = "";
7413
+ for (; ; ) {
7414
+ const { done: l, value: f } = await a.read();
7415
+ if (l) break;
7416
+ for (s += i.decode(f, { stream: !0 }); ; ) {
7417
+ const m = s.indexOf(`
7418
+
7419
+ `);
7420
+ if (m === -1) break;
7421
+ const g = s.slice(0, m);
7422
+ if (s = s.slice(m + 2), g.startsWith("data: ")) {
7423
+ const p = g.slice(6);
7424
+ if (p === "[DONE]") continue;
7425
+ try {
7426
+ const h = JSON.parse(p).choices?.[0]?.delta?.content;
7427
+ h && (c += h, yield {
7428
+ content: [{ type: "text", text: c }]
7429
+ });
7430
+ } catch {
7431
+ }
7432
+ }
7433
+ }
7434
+ }
7435
+ }
7436
+ };
7437
+ }
7397
7438
  export {
7398
- Fd as GramChat,
7439
+ Fd as Chat,
7399
7440
  zd as GramElementsProvider,
7441
+ Wd as createFetchAdapter,
7400
7442
  Ee as useGramElements
7401
7443
  };