@altimateai/ui-components 0.0.23-beta.3 → 0.0.23-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { j as h, d as gs, C as hs } from "./index2.js";
1
+ import { j as h, S as gs, C as hs } from "./index2.js";
2
2
  import * as l from "react";
3
- import he, { forwardRef as H, useState as vs, useLayoutEffect as bs, useEffect as ys } from "react";
3
+ import he, { forwardRef as G, useState as vs, useLayoutEffect as bs, useEffect as ys } from "react";
4
4
  import * as Un from "react-dom";
5
5
  import xs from "react-dom";
6
6
  function Kn(e) {
@@ -216,7 +216,7 @@ const qn = (e) => {
216
216
  e[r] && (t = qn(e[r])) && (n && (n += " "), n += t);
217
217
  return n;
218
218
  };
219
- function Ms(e, ...t) {
219
+ function js(e, ...t) {
220
220
  let n, r, o, s = a;
221
221
  function a(c) {
222
222
  const u = t.reduce((d, f) => f(d), e());
@@ -233,10 +233,10 @@ function Ms(e, ...t) {
233
233
  return s(Ds.apply(null, arguments));
234
234
  };
235
235
  }
236
- const j = (e) => {
236
+ const I = (e) => {
237
237
  const t = (n) => n[e] || [];
238
238
  return t.isThemeGetter = !0, t;
239
- }, Zn = /^\[(?:([a-z-]+):)?(.+)\]$/i, Is = /^\d+\/\d+$/, js = /* @__PURE__ */ new Set(["px", "full", "screen"]), _s = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ls = /\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$/, Fs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, $s = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ws = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, te = (e) => Ee(e) || js.has(e) || Is.test(e), ie = (e) => Te(e, "length", Ys), Ee = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => Te(e, "number", Ee), _e = (e) => !!e && Number.isInteger(Number(e)), Vs = (e) => e.endsWith("%") && Ee(e.slice(0, -1)), N = (e) => Zn.test(e), le = (e) => _s.test(e), Bs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zs = (e) => Te(e, Bs, Qn), Gs = (e) => Te(e, "position", Qn), Hs = /* @__PURE__ */ new Set(["image", "url"]), Us = (e) => Te(e, Hs, qs), Ks = (e) => Te(e, "", Xs), Le = () => !0, Te = (e, t, n) => {
239
+ }, Zn = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ms = /^\d+\/\d+$/, Is = /* @__PURE__ */ new Set(["px", "full", "screen"]), _s = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ls = /\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$/, Fs = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, $s = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ws = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, te = (e) => Ee(e) || Is.has(e) || Ms.test(e), ie = (e) => Te(e, "length", Ys), Ee = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => Te(e, "number", Ee), _e = (e) => !!e && Number.isInteger(Number(e)), Vs = (e) => e.endsWith("%") && Ee(e.slice(0, -1)), N = (e) => Zn.test(e), le = (e) => _s.test(e), Bs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), zs = (e) => Te(e, Bs, Qn), Gs = (e) => Te(e, "position", Qn), Hs = /* @__PURE__ */ new Set(["image", "url"]), Us = (e) => Te(e, Hs, qs), Ks = (e) => Te(e, "", Xs), Le = () => !0, Te = (e, t, n) => {
240
240
  const r = Zn.exec(e);
241
241
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
242
242
  }, Ys = (e) => (
@@ -245,7 +245,7 @@ const j = (e) => {
245
245
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
246
246
  Ls.test(e) && !Fs.test(e)
247
247
  ), Qn = () => !1, Xs = (e) => $s.test(e), qs = (e) => Ws.test(e), Zs = () => {
248
- const e = j("colors"), t = j("spacing"), n = j("blur"), r = j("brightness"), o = j("borderColor"), s = j("borderRadius"), a = j("borderSpacing"), i = j("borderWidth"), c = j("contrast"), u = j("grayscale"), d = j("hueRotate"), f = j("invert"), g = j("gap"), m = j("gradientColorStops"), v = j("gradientColorStopPositions"), p = j("inset"), b = j("margin"), y = j("opacity"), x = j("padding"), C = j("saturate"), w = j("scale"), E = j("sepia"), P = j("skew"), R = j("space"), S = j("translate"), I = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", N, t], A = () => [N, t], _ = () => ["", te, ie], M = () => ["auto", Ee, N], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Ee, N];
248
+ const e = I("colors"), t = I("spacing"), n = I("blur"), r = I("brightness"), o = I("borderColor"), s = I("borderRadius"), a = I("borderSpacing"), i = I("borderWidth"), c = I("contrast"), u = I("grayscale"), d = I("hueRotate"), f = I("invert"), g = I("gap"), m = I("gradientColorStops"), v = I("gradientColorStopPositions"), p = I("inset"), b = I("margin"), y = I("opacity"), x = I("padding"), C = I("saturate"), w = I("scale"), E = I("sepia"), P = I("skew"), R = I("space"), S = I("translate"), M = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", N, t], A = () => [N, t], _ = () => ["", te, ie], j = () => ["auto", Ee, N], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", N], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [Ee, N];
249
249
  return {
250
250
  cacheSize: 500,
251
251
  separator: ":",
@@ -253,26 +253,26 @@ const j = (e) => {
253
253
  colors: [Le],
254
254
  spacing: [te, ie],
255
255
  blur: ["none", "", le, N],
256
- brightness: G(),
256
+ brightness: H(),
257
257
  borderColor: [e],
258
258
  borderRadius: ["none", "", "full", le, N],
259
259
  borderSpacing: A(),
260
260
  borderWidth: _(),
261
- contrast: G(),
262
- grayscale: $(),
263
- hueRotate: G(),
264
- invert: $(),
261
+ contrast: H(),
262
+ grayscale: W(),
263
+ hueRotate: H(),
264
+ invert: W(),
265
265
  gap: A(),
266
266
  gradientColorStops: [e],
267
267
  gradientColorStopPositions: [Vs, ie],
268
268
  inset: L(),
269
269
  margin: L(),
270
- opacity: G(),
270
+ opacity: H(),
271
271
  padding: A(),
272
- saturate: G(),
273
- scale: G(),
274
- sepia: $(),
275
- skew: G(),
272
+ saturate: H(),
273
+ scale: H(),
274
+ sepia: W(),
275
+ skew: H(),
276
276
  space: A(),
277
277
  translate: A()
278
278
  },
@@ -396,21 +396,21 @@ const j = (e) => {
396
396
  * @see https://tailwindcss.com/docs/overscroll-behavior
397
397
  */
398
398
  overscroll: [{
399
- overscroll: I()
399
+ overscroll: M()
400
400
  }],
401
401
  /**
402
402
  * Overscroll Behavior X
403
403
  * @see https://tailwindcss.com/docs/overscroll-behavior
404
404
  */
405
405
  "overscroll-x": [{
406
- "overscroll-x": I()
406
+ "overscroll-x": M()
407
407
  }],
408
408
  /**
409
409
  * Overscroll Behavior Y
410
410
  * @see https://tailwindcss.com/docs/overscroll-behavior
411
411
  */
412
412
  "overscroll-y": [{
413
- "overscroll-y": I()
413
+ "overscroll-y": M()
414
414
  }],
415
415
  /**
416
416
  * Position
@@ -526,14 +526,14 @@ const j = (e) => {
526
526
  * @see https://tailwindcss.com/docs/flex-grow
527
527
  */
528
528
  grow: [{
529
- grow: $()
529
+ grow: W()
530
530
  }],
531
531
  /**
532
532
  * Flex Shrink
533
533
  * @see https://tailwindcss.com/docs/flex-shrink
534
534
  */
535
535
  shrink: [{
536
- shrink: $()
536
+ shrink: W()
537
537
  }],
538
538
  /**
539
539
  * Order
@@ -563,14 +563,14 @@ const j = (e) => {
563
563
  * @see https://tailwindcss.com/docs/grid-column
564
564
  */
565
565
  "col-start": [{
566
- "col-start": M()
566
+ "col-start": j()
567
567
  }],
568
568
  /**
569
569
  * Grid Column End
570
570
  * @see https://tailwindcss.com/docs/grid-column
571
571
  */
572
572
  "col-end": [{
573
- "col-end": M()
573
+ "col-end": j()
574
574
  }],
575
575
  /**
576
576
  * Grid Template Rows
@@ -593,14 +593,14 @@ const j = (e) => {
593
593
  * @see https://tailwindcss.com/docs/grid-row
594
594
  */
595
595
  "row-start": [{
596
- "row-start": M()
596
+ "row-start": j()
597
597
  }],
598
598
  /**
599
599
  * Grid Row End
600
600
  * @see https://tailwindcss.com/docs/grid-row
601
601
  */
602
602
  "row-end": [{
603
- "row-end": M()
603
+ "row-end": j()
604
604
  }],
605
605
  /**
606
606
  * Grid Auto Flow
@@ -1847,7 +1847,7 @@ const j = (e) => {
1847
1847
  * @see https://tailwindcss.com/docs/transition-duration
1848
1848
  */
1849
1849
  duration: [{
1850
- duration: G()
1850
+ duration: H()
1851
1851
  }],
1852
1852
  /**
1853
1853
  * Transition Timing Function
@@ -1861,7 +1861,7 @@ const j = (e) => {
1861
1861
  * @see https://tailwindcss.com/docs/transition-delay
1862
1862
  */
1863
1863
  delay: [{
1864
- delay: G()
1864
+ delay: H()
1865
1865
  }],
1866
1866
  /**
1867
1867
  * Animation
@@ -2273,8 +2273,8 @@ const j = (e) => {
2273
2273
  "font-size": ["leading"]
2274
2274
  }
2275
2275
  };
2276
- }, Qs = /* @__PURE__ */ Ms(Zs);
2277
- function W(...e) {
2276
+ }, Qs = /* @__PURE__ */ js(Zs);
2277
+ function F(...e) {
2278
2278
  return Qs(Vt(e));
2279
2279
  }
2280
2280
  function Cn(e, t) {
@@ -2391,6 +2391,7 @@ const En = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rn = Vt, e
2391
2391
  size: {
2392
2392
  default: "al-h-10 al-rounded-sm al-px-3 al-py-2",
2393
2393
  sm: "al-h-9 al-rounded-sm al-px-2 al-py-2",
2394
+ xs: "al-rounded-sm al-py-1.5 al-px-2 al-text-xs",
2394
2395
  lg: "al-h-11 al-rounded-md al-py-3 al-px-4",
2395
2396
  icon: "al-h-10 al-rounded-md al-w-10"
2396
2397
  }
@@ -2403,7 +2404,7 @@ const En = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rn = Vt, e
2403
2404
  ), la = l.forwardRef(
2404
2405
  ({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
2405
2406
  const a = r ? ta : "button";
2406
- return /* @__PURE__ */ h.jsx(a, { className: W(ia({ variant: t, size: n, className: e })), ref: s, ...o });
2407
+ return /* @__PURE__ */ h.jsx(a, { className: F(ia({ variant: t, size: n, className: e })), ref: s, ...o });
2407
2408
  }
2408
2409
  );
2409
2410
  la.displayName = "Button";
@@ -2688,7 +2689,7 @@ var ya = [
2688
2689
  "span",
2689
2690
  "svg",
2690
2691
  "ul"
2691
- ], F = ya.reduce((e, t) => {
2692
+ ], $ = ya.reduce((e, t) => {
2692
2693
  const n = l.forwardRef((r, o) => {
2693
2694
  const { asChild: s, ...a } = r, i = s ? nr : t;
2694
2695
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h.jsx(i, { ...a, ref: o });
@@ -2724,7 +2725,7 @@ var Gt = "Checkbox", [wa, _u] = se(Gt), [Ca, Ea] = wa(Gt), rr = l.forwardRef(
2724
2725
  }
2725
2726
  }, [g, x]), /* @__PURE__ */ h.jsxs(Ca, { scope: n, state: y, disabled: i, children: [
2726
2727
  /* @__PURE__ */ h.jsx(
2727
- F.button,
2728
+ $.button,
2728
2729
  {
2729
2730
  type: "button",
2730
2731
  role: "checkbox",
@@ -2767,7 +2768,7 @@ var or = "CheckboxIndicator", sr = l.forwardRef(
2767
2768
  (e, t) => {
2768
2769
  const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Ea(or, n);
2769
2770
  return /* @__PURE__ */ h.jsx(ae, { present: r || ue(s.state) || s.state === !0, children: /* @__PURE__ */ h.jsx(
2770
- F.span,
2771
+ $.span,
2771
2772
  {
2772
2773
  "data-state": ar(s.state),
2773
2774
  "data-disabled": s.disabled ? "" : void 0,
@@ -2816,11 +2817,11 @@ function ar(e) {
2816
2817
  return ue(e) ? "indeterminate" : e ? "checked" : "unchecked";
2817
2818
  }
2818
2819
  var ir = rr, Pa = sr;
2819
- const lr = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
2820
+ const lr = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
2820
2821
  ir,
2821
2822
  {
2822
2823
  ref: n,
2823
- className: W(
2824
+ className: F(
2824
2825
  "al-peer al-h-4 al-w-4 al-shrink-0 al-rounded-xs al-border al-border-primary al-ring-offset-background focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=checked]:al-text-primary-foreground",
2825
2826
  e
2826
2827
  ),
@@ -2828,7 +2829,7 @@ const lr = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
2828
2829
  children: /* @__PURE__ */ h.jsx(
2829
2830
  Pa,
2830
2831
  {
2831
- className: W("al-flex al-items-center al-justify-center al-text-current"),
2832
+ className: F("al-flex al-items-center al-justify-center al-text-current"),
2832
2833
  children: /* @__PURE__ */ h.jsx(
2833
2834
  "svg",
2834
2835
  {
@@ -2938,14 +2939,14 @@ function Re(e) {
2938
2939
  n((r) => r ?? String(Da++));
2939
2940
  }, [e]), t ? `radix-${t}` : "";
2940
2941
  }
2941
- var Ma = l.createContext(void 0);
2942
+ var ja = l.createContext(void 0);
2942
2943
  function cr(e) {
2943
- const t = l.useContext(Ma);
2944
+ const t = l.useContext(ja);
2944
2945
  return e || t || "ltr";
2945
2946
  }
2946
- var gt = "rovingFocusGroup.onEntryFocus", Ia = { bubbles: !1, cancelable: !0 }, ot = "RovingFocusGroup", [Ot, ur, ja] = Ta(ot), [_a, dr] = se(
2947
+ var gt = "rovingFocusGroup.onEntryFocus", Ma = { bubbles: !1, cancelable: !0 }, ot = "RovingFocusGroup", [Ot, ur, Ia] = Ta(ot), [_a, dr] = se(
2947
2948
  ot,
2948
- [ja]
2949
+ [Ia]
2949
2950
  ), [La, Fa] = _a(ot), fr = l.forwardRef(
2950
2951
  (e, t) => /* @__PURE__ */ h.jsx(Ot.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx(Ot.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h.jsx($a, { ...e, ref: t }) }) })
2951
2952
  );
@@ -2993,7 +2994,7 @@ var $a = l.forwardRef((e, t) => {
2993
2994
  []
2994
2995
  ),
2995
2996
  children: /* @__PURE__ */ h.jsx(
2996
- F.div,
2997
+ $.div,
2997
2998
  {
2998
2999
  tabIndex: y || P === 0 ? -1 : 0,
2999
3000
  "data-orientation": r,
@@ -3004,9 +3005,9 @@ var $a = l.forwardRef((e, t) => {
3004
3005
  E.current = !0;
3005
3006
  }),
3006
3007
  onFocus: k(e.onFocus, (S) => {
3007
- const I = !E.current;
3008
- if (S.target === S.currentTarget && I && !y) {
3009
- const D = new CustomEvent(gt, Ia);
3008
+ const M = !E.current;
3009
+ if (S.target === S.currentTarget && M && !y) {
3010
+ const D = new CustomEvent(gt, Ma);
3010
3011
  if (S.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
3011
3012
  const L = w().filter((T) => T.focusable), A = L.find((T) => T.active), _ = L.find((T) => T.id === p), z = [A, _, ...L].filter(
3012
3013
  Boolean
@@ -3041,7 +3042,7 @@ var $a = l.forwardRef((e, t) => {
3041
3042
  focusable: r,
3042
3043
  active: o,
3043
3044
  children: /* @__PURE__ */ h.jsx(
3044
- F.span,
3045
+ $.span,
3045
3046
  {
3046
3047
  tabIndex: d ? 0 : -1,
3047
3048
  "data-orientation": u.orientation,
@@ -3119,7 +3120,7 @@ var Ga = fr, Ha = mr, Ht = "Radio", [Ua, hr] = se(Ht), [Ka, Ya] = Ua(Ht), vr = l
3119
3120
  } = e, [f, g] = l.useState(null), m = B(t, (b) => g(b)), v = l.useRef(!1), p = f ? u || !!f.closest("form") : !0;
3120
3121
  return /* @__PURE__ */ h.jsxs(Ka, { scope: n, checked: o, disabled: a, children: [
3121
3122
  /* @__PURE__ */ h.jsx(
3122
- F.button,
3123
+ $.button,
3123
3124
  {
3124
3125
  type: "button",
3125
3126
  role: "radio",
@@ -3157,7 +3158,7 @@ var br = "RadioIndicator", yr = l.forwardRef(
3157
3158
  (e, t) => {
3158
3159
  const { __scopeRadio: n, forceMount: r, ...o } = e, s = Ya(br, n);
3159
3160
  return /* @__PURE__ */ h.jsx(ae, { present: r || s.checked, children: /* @__PURE__ */ h.jsx(
3160
- F.span,
3161
+ $.span,
3161
3162
  {
3162
3163
  "data-state": xr(s.checked),
3163
3164
  "data-disabled": s.disabled ? "" : void 0,
@@ -3239,7 +3240,7 @@ var qa = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ut = "RadioGroup",
3239
3240
  dir: v,
3240
3241
  loop: d,
3241
3242
  children: /* @__PURE__ */ h.jsx(
3242
- F.div,
3243
+ $.div,
3243
3244
  {
3244
3245
  role: "radiogroup",
3245
3246
  "aria-required": a,
@@ -3307,13 +3308,13 @@ var ei = "RadioGroupIndicator", Sr = l.forwardRef(
3307
3308
  );
3308
3309
  Sr.displayName = ei;
3309
3310
  var Ar = Er, Nr = Pr, ti = Sr;
3310
- const ni = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(Ar, { className: W("al-grid al-gap-2", e), ...t, ref: n }));
3311
+ const ni = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(Ar, { className: F("al-grid al-gap-2", e), ...t, ref: n }));
3311
3312
  ni.displayName = Ar.displayName;
3312
- const Or = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
3313
+ const Or = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
3313
3314
  Nr,
3314
3315
  {
3315
3316
  ref: n,
3316
- className: W(
3317
+ className: F(
3317
3318
  "al-aspect-square al-h-4 al-w-4 al-rounded-full al-border al-border-primary al-text-primary al-ring-offset-background focus:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50",
3318
3319
  e
3319
3320
  ),
@@ -3339,7 +3340,7 @@ const ri = l.forwardRef(
3339
3340
  "input",
3340
3341
  {
3341
3342
  type: t,
3342
- className: W(
3343
+ className: F(
3343
3344
  "al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
3344
3345
  e
3345
3346
  ),
@@ -3373,8 +3374,8 @@ var si = "DismissableLayer", Tt = "dismissableLayer.update", ai = "dismissableLa
3373
3374
  onDismiss: i,
3374
3375
  ...c
3375
3376
  } = e, u = l.useContext(Tr), [d, f] = l.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = l.useState({}), v = B(t, (R) => f(R)), p = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(b), x = d ? p.indexOf(d) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, w = x >= y, E = ci((R) => {
3376
- const S = R.target, I = [...u.branches].some((D) => D.contains(S));
3377
- !w || I || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
3377
+ const S = R.target, M = [...u.branches].some((D) => D.contains(S));
3378
+ !w || M || (o == null || o(R), a == null || a(R), R.defaultPrevented || i == null || i());
3378
3379
  }, g), P = ui((R) => {
3379
3380
  const S = R.target;
3380
3381
  [...u.branches].some((D) => D.contains(S)) || (s == null || s(R), a == null || a(R), R.defaultPrevented || i == null || i());
@@ -3392,7 +3393,7 @@ var si = "DismissableLayer", Tt = "dismissableLayer.update", ai = "dismissableLa
3392
3393
  const R = () => m({});
3393
3394
  return document.addEventListener(Tt, R), () => document.removeEventListener(Tt, R);
3394
3395
  }, []), /* @__PURE__ */ h.jsx(
3395
- F.div,
3396
+ $.div,
3396
3397
  {
3397
3398
  ...c,
3398
3399
  ref: v,
@@ -3419,7 +3420,7 @@ var li = "DismissableLayerBranch", kr = l.forwardRef((e, t) => {
3419
3420
  return n.branches.add(s), () => {
3420
3421
  n.branches.delete(s);
3421
3422
  };
3422
- }, [n.branches]), /* @__PURE__ */ h.jsx(F.div, { ...e, ref: o });
3423
+ }, [n.branches]), /* @__PURE__ */ h.jsx($.div, { ...e, ref: o });
3423
3424
  });
3424
3425
  kr.displayName = li;
3425
3426
  function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -3517,7 +3518,7 @@ var Fu = We, $u = kr, ht = "focusScope.autoFocusOnMount", vt = "focusScope.autoF
3517
3518
  const p = document.activeElement;
3518
3519
  if (!i.contains(p)) {
3519
3520
  const y = new CustomEvent(ht, Nn);
3520
- i.addEventListener(ht, u), i.dispatchEvent(y), y.defaultPrevented || (fi(vi(Mr(i)), { select: !0 }), document.activeElement === p && ce(i));
3521
+ i.addEventListener(ht, u), i.dispatchEvent(y), y.defaultPrevented || (fi(vi(jr(i)), { select: !0 }), document.activeElement === p && ce(i));
3521
3522
  }
3522
3523
  return () => {
3523
3524
  i.removeEventListener(ht, u), setTimeout(() => {
@@ -3538,7 +3539,7 @@ var Fu = We, $u = kr, ht = "focusScope.autoFocusOnMount", vt = "focusScope.autoF
3538
3539
  },
3539
3540
  [n, r, m.paused]
3540
3541
  );
3541
- return /* @__PURE__ */ h.jsx(F.div, { tabIndex: -1, ...a, ref: g, onKeyDown: v });
3542
+ return /* @__PURE__ */ h.jsx($.div, { tabIndex: -1, ...a, ref: g, onKeyDown: v });
3542
3543
  });
3543
3544
  Kt.displayName = di;
3544
3545
  function fi(e, { select: t = !1 } = {}) {
@@ -3547,10 +3548,10 @@ function fi(e, { select: t = !1 } = {}) {
3547
3548
  if (ce(r, { select: t }), document.activeElement !== n) return;
3548
3549
  }
3549
3550
  function pi(e) {
3550
- const t = Mr(e), n = On(t, e), r = On(t.reverse(), e);
3551
+ const t = jr(e), n = On(t, e), r = On(t.reverse(), e);
3551
3552
  return [n, r];
3552
3553
  }
3553
- function Mr(e) {
3554
+ function jr(e) {
3554
3555
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
3555
3556
  acceptNode: (r) => {
3556
3557
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -3608,11 +3609,11 @@ var bi = "Portal", Yt = l.forwardRef((e, t) => {
3608
3609
  const { container: n, ...r } = e, [o, s] = l.useState(!1);
3609
3610
  ve(() => s(!0), []);
3610
3611
  const a = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
3611
- return a ? xs.createPortal(/* @__PURE__ */ h.jsx(F.div, { ...r, ref: t }), a) : null;
3612
+ return a ? xs.createPortal(/* @__PURE__ */ h.jsx($.div, { ...r, ref: t }), a) : null;
3612
3613
  });
3613
3614
  Yt.displayName = bi;
3614
3615
  var bt = 0;
3615
- function Ir() {
3616
+ function Mr() {
3616
3617
  l.useEffect(() => {
3617
3618
  const e = document.querySelectorAll("[data-radix-focus-guard]");
3618
3619
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Dn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Dn()), bt++, () => {
@@ -3633,7 +3634,7 @@ var Q = function() {
3633
3634
  return t;
3634
3635
  }, Q.apply(this, arguments);
3635
3636
  };
3636
- function jr(e, t) {
3637
+ function Ir(e, t) {
3637
3638
  var n = {};
3638
3639
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3639
3640
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3671,7 +3672,7 @@ function Ci(e, t) {
3671
3672
  })[0];
3672
3673
  return n.callback = t, n.facade;
3673
3674
  }
3674
- var Ei = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Mn = /* @__PURE__ */ new WeakMap();
3675
+ var Ei = typeof window < "u" ? l.useLayoutEffect : l.useEffect, jn = /* @__PURE__ */ new WeakMap();
3675
3676
  function Ri(e, t) {
3676
3677
  var n = Ci(null, function(r) {
3677
3678
  return e.forEach(function(o) {
@@ -3679,7 +3680,7 @@ function Ri(e, t) {
3679
3680
  });
3680
3681
  });
3681
3682
  return Ei(function() {
3682
- var r = Mn.get(n);
3683
+ var r = jn.get(n);
3683
3684
  if (r) {
3684
3685
  var o = new Set(r), s = new Set(e), a = n.current;
3685
3686
  o.forEach(function(i) {
@@ -3688,7 +3689,7 @@ function Ri(e, t) {
3688
3689
  o.has(i) || yt(i, a);
3689
3690
  });
3690
3691
  }
3691
- Mn.set(n, e);
3692
+ jn.set(n, e);
3692
3693
  }, [e]), n;
3693
3694
  }
3694
3695
  function Pi(e) {
@@ -3755,7 +3756,7 @@ function Ai(e) {
3755
3756
  return t.options = Q({ async: !0, ssr: !1 }, e), t;
3756
3757
  }
3757
3758
  var _r = function(e) {
3758
- var t = e.sideCar, n = jr(e, ["sideCar"]);
3759
+ var t = e.sideCar, n = Ir(e, ["sideCar"]);
3759
3760
  if (!t)
3760
3761
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3761
3762
  var r = t.read();
@@ -3773,7 +3774,7 @@ var Lr = Ai(), xt = function() {
3773
3774
  onScrollCapture: xt,
3774
3775
  onWheelCapture: xt,
3775
3776
  onTouchMoveCapture: xt
3776
- }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, g = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = g, E = Ri([n, t]), P = Q(Q({}, C), o);
3777
+ }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, g = e.sideCar, m = e.noIsolation, v = e.inert, p = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, x = e.gapMode, C = Ir(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = g, E = Ri([n, t]), P = Q(Q({}, C), o);
3777
3778
  return l.createElement(
3778
3779
  l.Fragment,
3779
3780
  null,
@@ -3809,7 +3810,7 @@ function Di(e) {
3809
3810
  var t = document.head || document.getElementsByTagName("head")[0];
3810
3811
  t.appendChild(e);
3811
3812
  }
3812
- var Mi = function() {
3813
+ var ji = function() {
3813
3814
  var e = 0, t = null;
3814
3815
  return {
3815
3816
  add: function(n) {
@@ -3819,8 +3820,8 @@ var Mi = function() {
3819
3820
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3820
3821
  }
3821
3822
  };
3822
- }, Ii = function() {
3823
- var e = Mi();
3823
+ }, Mi = function() {
3824
+ var e = ji();
3824
3825
  return function(t, n) {
3825
3826
  l.useEffect(function() {
3826
3827
  return e.add(t), function() {
@@ -3829,12 +3830,12 @@ var Mi = function() {
3829
3830
  }, [t && n]);
3830
3831
  };
3831
3832
  }, Fr = function() {
3832
- var e = Ii(), t = function(n) {
3833
+ var e = Mi(), t = function(n) {
3833
3834
  var r = n.styles, o = n.dynamic;
3834
3835
  return e(r, o), null;
3835
3836
  };
3836
3837
  return t;
3837
- }, ji = {
3838
+ }, Ii = {
3838
3839
  left: 0,
3839
3840
  top: 0,
3840
3841
  right: 0,
@@ -3846,7 +3847,7 @@ var Mi = function() {
3846
3847
  return [wt(n), wt(r), wt(o)];
3847
3848
  }, Li = function(e) {
3848
3849
  if (e === void 0 && (e = "margin"), typeof window > "u")
3849
- return ji;
3850
+ return Ii;
3850
3851
  var t = _i(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3851
3852
  return {
3852
3853
  left: t[0],
@@ -3898,13 +3899,13 @@ var Mi = function() {
3898
3899
  `).concat(wi, ": ").concat(i, `px;
3899
3900
  }
3900
3901
  `);
3901
- }, In = function() {
3902
+ }, Mn = function() {
3902
3903
  var e = parseInt(document.body.getAttribute(Pe) || "0", 10);
3903
3904
  return isFinite(e) ? e : 0;
3904
3905
  }, Wi = function() {
3905
3906
  l.useEffect(function() {
3906
- return document.body.setAttribute(Pe, (In() + 1).toString()), function() {
3907
- var e = In() - 1;
3907
+ return document.body.setAttribute(Pe, (Mn() + 1).toString()), function() {
3908
+ var e = Mn() - 1;
3908
3909
  e <= 0 ? document.body.removeAttribute(Pe) : document.body.setAttribute(Pe, e.toString());
3909
3910
  };
3910
3911
  }, []);
@@ -3942,7 +3943,7 @@ var xe = kt ? { passive: !1 } : !1, Bi = function(e) {
3942
3943
  return $r(e, "overflowY");
3943
3944
  }, Gi = function(e) {
3944
3945
  return $r(e, "overflowX");
3945
- }, jn = function(e, t) {
3946
+ }, In = function(e, t) {
3946
3947
  var n = t.ownerDocument, r = t;
3947
3948
  do {
3948
3949
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -4023,15 +4024,15 @@ function Qi(e) {
4023
4024
  var y = Ue(p), x = n.current, C = "deltaX" in p ? p.deltaX : x[0] - y[0], w = "deltaY" in p ? p.deltaY : x[1] - y[1], E, P = p.target, R = Math.abs(C) > Math.abs(w) ? "h" : "v";
4024
4025
  if ("touches" in p && R === "h" && P.type === "range")
4025
4026
  return !1;
4026
- var S = jn(R, P);
4027
+ var S = In(R, P);
4027
4028
  if (!S)
4028
4029
  return !0;
4029
- if (S ? E = R : (E = R === "v" ? "h" : "v", S = jn(R, P)), !S)
4030
+ if (S ? E = R : (E = R === "v" ? "h" : "v", S = In(R, P)), !S)
4030
4031
  return !1;
4031
4032
  if (!r.current && "changedTouches" in p && (C || w) && (r.current = E), !E)
4032
4033
  return !0;
4033
- var I = r.current || E;
4034
- return Yi(I, b, p, I === "h" ? C : w, !0);
4034
+ var M = r.current || E;
4035
+ return Yi(M, b, p, M === "h" ? C : w, !0);
4035
4036
  }, []), c = l.useCallback(function(p) {
4036
4037
  var b = p;
4037
4038
  if (!(!we.length || we[we.length - 1] !== s)) {
@@ -4216,7 +4217,7 @@ var Kr = "DialogTrigger", Yr = l.forwardRef(
4216
4217
  (e, t) => {
4217
4218
  const { __scopeDialog: n, ...r } = e, o = Z(Kr, n), s = B(t, o.triggerRef);
4218
4219
  return /* @__PURE__ */ h.jsx(
4219
- F.button,
4220
+ $.button,
4220
4221
  {
4221
4222
  type: "button",
4222
4223
  "aria-haspopup": "dialog",
@@ -4252,7 +4253,7 @@ var ul = l.forwardRef(
4252
4253
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
4253
4254
  // ie. when `Overlay` and `Content` are siblings
4254
4255
  /* @__PURE__ */ h.jsx(Xt, { as: Gr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ h.jsx(
4255
- F.div,
4256
+ $.div,
4256
4257
  {
4257
4258
  "data-state": Jt(o.open),
4258
4259
  ...r,
@@ -4323,7 +4324,7 @@ var dl = l.forwardRef(
4323
4324
  ), Jr = l.forwardRef(
4324
4325
  (e, t) => {
4325
4326
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = Z(be, n), c = l.useRef(null), u = B(t, c);
4326
- return Ir(), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
4327
+ return Mr(), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
4327
4328
  /* @__PURE__ */ h.jsx(
4328
4329
  Kt,
4329
4330
  {
@@ -4356,14 +4357,14 @@ var dl = l.forwardRef(
4356
4357
  ), Qt = "DialogTitle", eo = l.forwardRef(
4357
4358
  (e, t) => {
4358
4359
  const { __scopeDialog: n, ...r } = e, o = Z(Qt, n);
4359
- return /* @__PURE__ */ h.jsx(F.h2, { id: o.titleId, ...r, ref: t });
4360
+ return /* @__PURE__ */ h.jsx($.h2, { id: o.titleId, ...r, ref: t });
4360
4361
  }
4361
4362
  );
4362
4363
  eo.displayName = Qt;
4363
4364
  var to = "DialogDescription", no = l.forwardRef(
4364
4365
  (e, t) => {
4365
4366
  const { __scopeDialog: n, ...r } = e, o = Z(to, n);
4366
- return /* @__PURE__ */ h.jsx(F.p, { id: o.descriptionId, ...r, ref: t });
4367
+ return /* @__PURE__ */ h.jsx($.p, { id: o.descriptionId, ...r, ref: t });
4367
4368
  }
4368
4369
  );
4369
4370
  no.displayName = to;
@@ -4371,7 +4372,7 @@ var ro = "DialogClose", oo = l.forwardRef(
4371
4372
  (e, t) => {
4372
4373
  const { __scopeDialog: n, ...r } = e, o = Z(ro, n);
4373
4374
  return /* @__PURE__ */ h.jsx(
4374
- F.button,
4375
+ $.button,
4375
4376
  {
4376
4377
  type: "button",
4377
4378
  ...r,
@@ -4444,14 +4445,14 @@ po.displayName = wl;
4444
4445
  var mo = po;
4445
4446
  const Cl = er(
4446
4447
  "al-text-sm al-font-medium al-leading-none peer-disabled:al-cursor-not-allowed peer-disabled:al-opacity-70"
4447
- ), El = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(mo, { ref: n, className: W(Cl(), e), ...t }));
4448
+ ), El = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(mo, { ref: n, className: F(Cl(), e), ...t }));
4448
4449
  El.displayName = mo.displayName;
4449
- const Rl = H(
4450
+ const Rl = G(
4450
4451
  ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
4451
4452
  "div",
4452
4453
  {
4453
4454
  ref: n,
4454
- className: W(
4455
+ className: F(
4455
4456
  "al-rounded-lg al-border al-bg-card al-text-card-foreground al-shadow-sm",
4456
4457
  e
4457
4458
  ),
@@ -4460,45 +4461,45 @@ const Rl = H(
4460
4461
  )
4461
4462
  );
4462
4463
  Rl.displayName = "Card";
4463
- const Pl = H(
4464
+ const Pl = G(
4464
4465
  ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
4465
4466
  "div",
4466
4467
  {
4467
4468
  ref: n,
4468
- className: W("al-flex al-flex-col al-space-y-1.5 al-p-6 al-pb-4", e),
4469
+ className: F("al-flex al-flex-col al-space-y-1.5 al-p-6 al-pb-4", e),
4469
4470
  ...t
4470
4471
  }
4471
4472
  )
4472
4473
  );
4473
4474
  Pl.displayName = "CardHeader";
4474
- const Sl = H(
4475
+ const Sl = G(
4475
4476
  ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
4476
4477
  "div",
4477
4478
  {
4478
4479
  ref: n,
4479
- className: W("al-text-2xl al-font-semibold al-leading-none al-tracking-tight", e),
4480
+ className: F("al-text-2xl al-font-semibold al-leading-none al-tracking-tight", e),
4480
4481
  ...t
4481
4482
  }
4482
4483
  )
4483
4484
  );
4484
4485
  Sl.displayName = "CardTitle";
4485
- const Al = H(
4486
- ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: W("al-text-sm al-text-muted-foreground", e), ...t })
4486
+ const Al = G(
4487
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: F("al-text-sm al-text-muted-foreground", e), ...t })
4487
4488
  );
4488
4489
  Al.displayName = "CardDescription";
4489
- const Nl = H(
4490
- ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: W("al-p-6 al-pt-0", e), ...t })
4490
+ const Nl = G(
4491
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: F("al-p-6 al-pt-0", e), ...t })
4491
4492
  );
4492
4493
  Nl.displayName = "CardContent";
4493
- const Ol = H(
4494
- ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: W("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
4494
+ const Ol = G(
4495
+ ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx("div", { ref: n, className: F("al-flex al-items-center al-p-6 al-pt-0", e), ...t })
4495
4496
  );
4496
4497
  Ol.displayName = "CardFooter";
4497
4498
  const Tl = l.forwardRef(
4498
4499
  ({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
4499
4500
  "textarea",
4500
4501
  {
4501
- className: W(
4502
+ className: F(
4502
4503
  "al-flex al-min-h-[80px] al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
4503
4504
  e
4504
4505
  ),
@@ -4516,11 +4517,11 @@ const kl = ["top", "right", "bottom", "left"], de = Math.min, K = Math.max, et =
4516
4517
  right: "left",
4517
4518
  bottom: "top",
4518
4519
  top: "bottom"
4519
- }, Ml = {
4520
+ }, jl = {
4520
4521
  start: "end",
4521
4522
  end: "start"
4522
4523
  };
4523
- function Mt(e, t, n) {
4524
+ function jt(e, t, n) {
4524
4525
  return K(e, de(t, n));
4525
4526
  }
4526
4527
  function re(e, t) {
@@ -4529,7 +4530,7 @@ function re(e, t) {
4529
4530
  function oe(e) {
4530
4531
  return e.split("-")[0];
4531
4532
  }
4532
- function Me(e) {
4533
+ function je(e) {
4533
4534
  return e.split("-")[1];
4534
4535
  }
4535
4536
  function en(e) {
@@ -4544,18 +4545,18 @@ function pe(e) {
4544
4545
  function nn(e) {
4545
4546
  return en(pe(e));
4546
4547
  }
4547
- function Il(e, t, n) {
4548
+ function Ml(e, t, n) {
4548
4549
  n === void 0 && (n = !1);
4549
- const r = Me(e), o = nn(e), s = tn(o);
4550
+ const r = je(e), o = nn(e), s = tn(o);
4550
4551
  let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
4551
4552
  return t.reference[s] > t.floating[s] && (a = tt(a)), [a, tt(a)];
4552
4553
  }
4553
- function jl(e) {
4554
+ function Il(e) {
4554
4555
  const t = tt(e);
4555
- return [It(e), t, It(t)];
4556
+ return [Mt(e), t, Mt(t)];
4556
4557
  }
4557
- function It(e) {
4558
- return e.replace(/start|end/g, (t) => Ml[t]);
4558
+ function Mt(e) {
4559
+ return e.replace(/start|end/g, (t) => jl[t]);
4559
4560
  }
4560
4561
  function _l(e, t, n) {
4561
4562
  const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
@@ -4571,9 +4572,9 @@ function _l(e, t, n) {
4571
4572
  }
4572
4573
  }
4573
4574
  function Ll(e, t, n, r) {
4574
- const o = Me(e);
4575
+ const o = je(e);
4575
4576
  let s = _l(oe(e), n === "start", r);
4576
- return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(It)))), s;
4577
+ return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Mt)))), s;
4577
4578
  }
4578
4579
  function tt(e) {
4579
4580
  return e.replace(/left|right|bottom|top/g, (t) => Dl[t]);
@@ -4651,7 +4652,7 @@ function Fn(e, t, n) {
4651
4652
  y: r.y
4652
4653
  };
4653
4654
  }
4654
- switch (Me(t)) {
4655
+ switch (je(t)) {
4655
4656
  case "start":
4656
4657
  m[a] -= g * (n && u ? -1 : 1);
4657
4658
  break;
@@ -4791,12 +4792,12 @@ const Wl = (e) => ({
4791
4792
  }, m = nn(o), v = tn(m), p = await a.getDimensions(u), b = m === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[m] - g[m] - s.floating[v], E = g[m] - s.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
4792
4793
  let R = P ? P[C] : 0;
4793
4794
  (!R || !await (a.isElement == null ? void 0 : a.isElement(P))) && (R = i.floating[C] || s.floating[v]);
4794
- const S = w / 2 - E / 2, I = R / 2 - p[v] / 2 - 1, D = de(f[y], I), L = de(f[x], I), A = D, _ = R - p[v] - L, M = R / 2 - p[v] / 2 + S, z = Mt(A, M, _), T = !c.arrow && Me(o) != null && M !== z && s.reference[v] / 2 - (M < A ? D : L) - p[v] / 2 < 0, V = T ? M < A ? M - A : M - _ : 0;
4795
+ const S = w / 2 - E / 2, M = R / 2 - p[v] / 2 - 1, D = de(f[y], M), L = de(f[x], M), A = D, _ = R - p[v] - L, j = R / 2 - p[v] / 2 + S, z = jt(A, j, _), T = !c.arrow && je(o) != null && j !== z && s.reference[v] / 2 - (j < A ? D : L) - p[v] / 2 < 0, V = T ? j < A ? j - A : j - _ : 0;
4795
4796
  return {
4796
4797
  [m]: g[m] + V,
4797
4798
  data: {
4798
4799
  [m]: z,
4799
- centerOffset: M - z - V,
4800
+ centerOffset: j - z - V,
4800
4801
  ...T && {
4801
4802
  alignmentOffset: V
4802
4803
  }
@@ -4828,24 +4829,24 @@ const Wl = (e) => ({
4828
4829
  } = re(e, t);
4829
4830
  if ((n = s.arrow) != null && n.alignmentOffset)
4830
4831
  return {};
4831
- const y = oe(o), x = pe(i), C = oe(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = g || (C || !p ? [tt(i)] : jl(i)), P = v !== "none";
4832
+ const y = oe(o), x = pe(i), C = oe(i) === i, w = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), E = g || (C || !p ? [tt(i)] : Il(i)), P = v !== "none";
4832
4833
  !g && P && E.push(...Ll(i, p, v, w));
4833
- const R = [i, ...E], S = await Fe(t, b), I = [];
4834
+ const R = [i, ...E], S = await Fe(t, b), M = [];
4834
4835
  let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
4835
- if (d && I.push(S[y]), f) {
4836
- const M = Il(o, a, w);
4837
- I.push(S[M[0]], S[M[1]]);
4836
+ if (d && M.push(S[y]), f) {
4837
+ const j = Ml(o, a, w);
4838
+ M.push(S[j[0]], S[j[1]]);
4838
4839
  }
4839
4840
  if (D = [...D, {
4840
4841
  placement: o,
4841
- overflows: I
4842
- }], !I.every((M) => M <= 0)) {
4842
+ overflows: M
4843
+ }], !M.every((j) => j <= 0)) {
4843
4844
  var L, A;
4844
- const M = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, z = R[M];
4845
+ const j = (((L = s.flip) == null ? void 0 : L.index) || 0) + 1, z = R[j];
4845
4846
  if (z)
4846
4847
  return {
4847
4848
  data: {
4848
- index: M,
4849
+ index: j,
4849
4850
  overflows: D
4850
4851
  },
4851
4852
  reset: {
@@ -4859,13 +4860,13 @@ const Wl = (e) => ({
4859
4860
  var _;
4860
4861
  const V = (_ = D.filter((O) => {
4861
4862
  if (P) {
4862
- const $ = pe(O.placement);
4863
- return $ === x || // Create a bias to the `y` side axis due to horizontal
4863
+ const W = pe(O.placement);
4864
+ return W === x || // Create a bias to the `y` side axis due to horizontal
4864
4865
  // reading directions favoring greater width.
4865
- $ === "y";
4866
+ W === "y";
4866
4867
  }
4867
4868
  return !0;
4868
- }).map((O) => [O.placement, O.overflows.filter(($) => $ > 0).reduce(($, U) => $ + U, 0)]).sort((O, $) => O[1] - $[1])[0]) == null ? void 0 : _[0];
4869
+ }).map((O) => [O.placement, O.overflows.filter((W) => W > 0).reduce((W, U) => W + U, 0)]).sort((O, W) => O[1] - W[1])[0]) == null ? void 0 : _[0];
4869
4870
  V && (T = V);
4870
4871
  break;
4871
4872
  }
@@ -4942,7 +4943,7 @@ async function zl(e, t) {
4942
4943
  placement: n,
4943
4944
  platform: r,
4944
4945
  elements: o
4945
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = oe(n), i = Me(n), c = pe(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = re(t, e);
4946
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = oe(n), i = je(n), c = pe(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, f = re(t, e);
4946
4947
  let {
4947
4948
  mainAxis: g,
4948
4949
  crossAxis: m,
@@ -5018,11 +5019,11 @@ const Gl = function(e) {
5018
5019
  let m = u[g], v = u[f];
5019
5020
  if (s) {
5020
5021
  const b = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", x = m + d[b], C = m - d[y];
5021
- m = Mt(x, m, C);
5022
+ m = jt(x, m, C);
5022
5023
  }
5023
5024
  if (a) {
5024
5025
  const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = v + d[b], C = v - d[y];
5025
- v = Mt(x, v, C);
5026
+ v = jt(x, v, C);
5026
5027
  }
5027
5028
  const p = i.fn({
5028
5029
  ...t,
@@ -5099,7 +5100,7 @@ const Gl = function(e) {
5099
5100
  apply: c = () => {
5100
5101
  },
5101
5102
  ...u
5102
- } = re(e, t), d = await Fe(t, u), f = oe(o), g = Me(o), m = pe(o) === "y", {
5103
+ } = re(e, t), d = await Fe(t, u), f = oe(o), g = je(o), m = pe(o) === "y", {
5103
5104
  width: v,
5104
5105
  height: p
5105
5106
  } = s.floating;
@@ -5116,8 +5117,8 @@ const Gl = function(e) {
5116
5117
  availableWidth: S,
5117
5118
  availableHeight: R
5118
5119
  });
5119
- const I = await a.getDimensions(i.floating);
5120
- return v !== I.width || p !== I.height ? {
5120
+ const M = await a.getDimensions(i.floating);
5121
+ return v !== M.width || p !== M.height ? {
5121
5122
  reset: {
5122
5123
  rects: !0
5123
5124
  }
@@ -5128,7 +5129,7 @@ const Gl = function(e) {
5128
5129
  function at() {
5129
5130
  return typeof window < "u";
5130
5131
  }
5131
- function Ie(e) {
5132
+ function Me(e) {
5132
5133
  return ho(e) ? (e.nodeName || "").toLowerCase() : "#document";
5133
5134
  }
5134
5135
  function Y(e) {
@@ -5161,7 +5162,7 @@ function Ve(e) {
5161
5162
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
5162
5163
  }
5163
5164
  function Yl(e) {
5164
- return ["table", "td", "th"].includes(Ie(e));
5165
+ return ["table", "td", "th"].includes(Me(e));
5165
5166
  }
5166
5167
  function it(e) {
5167
5168
  return [":popover-open", ":modal"].some((t) => {
@@ -5191,7 +5192,7 @@ function on() {
5191
5192
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5192
5193
  }
5193
5194
  function Ae(e) {
5194
- return ["html", "body", "#document"].includes(Ie(e));
5195
+ return ["html", "body", "#document"].includes(Me(e));
5195
5196
  }
5196
5197
  function q(e) {
5197
5198
  return Y(e).getComputedStyle(e);
@@ -5206,7 +5207,7 @@ function lt(e) {
5206
5207
  };
5207
5208
  }
5208
5209
  function me(e) {
5209
- if (Ie(e) === "html")
5210
+ if (Me(e) === "html")
5210
5211
  return e;
5211
5212
  const t = (
5212
5213
  // Step into the shadow DOM of the parent of a slotted node.
@@ -5226,12 +5227,12 @@ function $e(e, t, n) {
5226
5227
  t === void 0 && (t = []), n === void 0 && (n = !0);
5227
5228
  const o = vo(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Y(o);
5228
5229
  if (s) {
5229
- const i = jt(a);
5230
+ const i = It(a);
5230
5231
  return t.concat(a, a.visualViewport || [], Ve(o) ? o : [], i && n ? $e(i) : []);
5231
5232
  }
5232
5233
  return t.concat(o, $e(o, [], n));
5233
5234
  }
5234
- function jt(e) {
5235
+ function It(e) {
5235
5236
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
5236
5237
  }
5237
5238
  function bo(e) {
@@ -5282,10 +5283,10 @@ function ye(e, t, n, r) {
5282
5283
  let c = (o.left + i.x) / a.x, u = (o.top + i.y) / a.y, d = o.width / a.x, f = o.height / a.y;
5283
5284
  if (s) {
5284
5285
  const g = Y(s), m = r && X(r) ? Y(r) : r;
5285
- let v = g, p = jt(v);
5286
+ let v = g, p = It(v);
5286
5287
  for (; p && r && m !== v; ) {
5287
5288
  const b = Se(p), y = p.getBoundingClientRect(), x = q(p), C = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * b.x, w = y.top + (p.clientTop + parseFloat(x.paddingTop)) * b.y;
5288
- c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p = jt(v);
5289
+ c *= b.x, u *= b.y, d *= b.x, f *= b.y, c += C, u += w, v = Y(p), p = It(v);
5289
5290
  }
5290
5291
  }
5291
5292
  return nt({
@@ -5310,7 +5311,7 @@ function Ql(e) {
5310
5311
  scrollTop: 0
5311
5312
  }, u = fe(1);
5312
5313
  const d = fe(0), f = J(r);
5313
- if ((f || !f && !s) && ((Ie(r) !== "body" || Ve(a)) && (c = lt(r)), J(r))) {
5314
+ if ((f || !f && !s) && ((Me(r) !== "body" || Ve(a)) && (c = lt(r)), J(r))) {
5314
5315
  const g = ye(r);
5315
5316
  u = Se(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
5316
5317
  }
@@ -5389,7 +5390,7 @@ function rc(e, t) {
5389
5390
  const n = t.get(e);
5390
5391
  if (n)
5391
5392
  return n;
5392
- let r = $e(e, [], !1).filter((i) => X(i) && Ie(i) !== "body"), o = null;
5393
+ let r = $e(e, [], !1).filter((i) => X(i) && Me(i) !== "body"), o = null;
5393
5394
  const s = q(e).position === "fixed";
5394
5395
  let a = s ? me(e) : e;
5395
5396
  for (; X(a) && !Ae(a); ) {
@@ -5434,7 +5435,7 @@ function ac(e, t, n) {
5434
5435
  };
5435
5436
  const c = fe(0);
5436
5437
  if (r || !r && !s)
5437
- if ((Ie(t) !== "body" || Ve(o)) && (i = lt(t)), r) {
5438
+ if ((Me(t) !== "body" || Ve(o)) && (i = lt(t)), r) {
5438
5439
  const m = ye(t, !0, s, t);
5439
5440
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
5440
5441
  } else o && (c.x = _t(o));
@@ -5674,7 +5675,7 @@ function yc(e) {
5674
5675
  O !== P.current && (P.current = O, p(O));
5675
5676
  }, []), C = l.useCallback((O) => {
5676
5677
  O !== R.current && (R.current = O, y(O));
5677
- }, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d), I = c != null, D = Rt(c), L = Rt(o), A = Rt(u), _ = l.useCallback(() => {
5678
+ }, []), w = s || v, E = a || b, P = l.useRef(null), R = l.useRef(null), S = l.useRef(d), M = c != null, D = Rt(c), L = Rt(o), A = Rt(u), _ = l.useCallback(() => {
5678
5679
  if (!P.current || !R.current)
5679
5680
  return;
5680
5681
  const O = {
@@ -5682,16 +5683,16 @@ function yc(e) {
5682
5683
  strategy: n,
5683
5684
  middleware: g
5684
5685
  };
5685
- L.current && (O.platform = L.current), bc(P.current, R.current, O).then(($) => {
5686
+ L.current && (O.platform = L.current), bc(P.current, R.current, O).then((W) => {
5686
5687
  const U = {
5687
- ...$,
5688
+ ...W,
5688
5689
  // The floating element's position may be recomputed while it's closed
5689
5690
  // but still mounted (such as when transitioning out). To ensure
5690
5691
  // `isPositioned` will be `false` initially on the next open, avoid
5691
5692
  // setting it to `true` when `open === false` (must be specified).
5692
5693
  isPositioned: A.current !== !1
5693
5694
  };
5694
- M.current && !rt(S.current, U) && (S.current = U, Un.flushSync(() => {
5695
+ j.current && !rt(S.current, U) && (S.current = U, Un.flushSync(() => {
5695
5696
  f(U);
5696
5697
  }));
5697
5698
  });
@@ -5702,16 +5703,16 @@ function yc(e) {
5702
5703
  isPositioned: !1
5703
5704
  })));
5704
5705
  }, [u]);
5705
- const M = l.useRef(!1);
5706
- Qe(() => (M.current = !0, () => {
5707
- M.current = !1;
5706
+ const j = l.useRef(!1);
5707
+ Qe(() => (j.current = !0, () => {
5708
+ j.current = !1;
5708
5709
  }), []), Qe(() => {
5709
5710
  if (w && (P.current = w), E && (R.current = E), w && E) {
5710
5711
  if (D.current)
5711
5712
  return D.current(w, E, _);
5712
5713
  _();
5713
5714
  }
5714
- }, [w, E, _, D, I]);
5715
+ }, [w, E, _, D, M]);
5715
5716
  const z = l.useMemo(() => ({
5716
5717
  reference: P,
5717
5718
  floating: R,
@@ -5728,16 +5729,16 @@ function yc(e) {
5728
5729
  };
5729
5730
  if (!T.floating)
5730
5731
  return O;
5731
- const $ = Hn(T.floating, d.x), U = Hn(T.floating, d.y);
5732
+ const W = Hn(T.floating, d.x), U = Hn(T.floating, d.y);
5732
5733
  return i ? {
5733
5734
  ...O,
5734
- transform: "translate(" + $ + "px, " + U + "px)",
5735
+ transform: "translate(" + W + "px, " + U + "px)",
5735
5736
  ...Co(T.floating) >= 1.5 && {
5736
5737
  willChange: "transform"
5737
5738
  }
5738
5739
  } : {
5739
5740
  position: n,
5740
- left: $,
5741
+ left: W,
5741
5742
  top: U
5742
5743
  };
5743
5744
  }, [n, i, T.floating, d.x, d.y]);
@@ -5795,7 +5796,7 @@ const xc = (e) => {
5795
5796
  var Nc = "Arrow", Eo = l.forwardRef((e, t) => {
5796
5797
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
5797
5798
  return /* @__PURE__ */ h.jsx(
5798
- F.svg,
5799
+ $.svg,
5799
5800
  {
5800
5801
  ...s,
5801
5802
  ref: t,
@@ -5818,7 +5819,7 @@ var Ao = "PopperAnchor", No = l.forwardRef(
5818
5819
  const { __scopePopper: n, virtualRef: r, ...o } = e, s = Po(Ao, n), a = l.useRef(null), i = B(t, a);
5819
5820
  return l.useEffect(() => {
5820
5821
  s.onAnchorChange((r == null ? void 0 : r.current) || a.current);
5821
- }), r ? null : /* @__PURE__ */ h.jsx(F.div, { ...o, ref: i });
5822
+ }), r ? null : /* @__PURE__ */ h.jsx($.div, { ...o, ref: i });
5822
5823
  }
5823
5824
  );
5824
5825
  No.displayName = Ao;
@@ -5840,16 +5841,16 @@ var ln = "PopperContent", [kc, Dc] = Ro(ln), Oo = l.forwardRef(
5840
5841
  updatePositionStrategy: m = "optimized",
5841
5842
  onPlaced: v,
5842
5843
  ...p
5843
- } = e, b = Po(ln, n), [y, x] = l.useState(null), C = B(t, (je) => x(je)), [w, E] = l.useState(null), P = zt(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, I = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(u) ? u : [u], A = L.length > 0, _ = {
5844
+ } = e, b = Po(ln, n), [y, x] = l.useState(null), C = B(t, (Ie) => x(Ie)), [w, E] = l.useState(null), P = zt(w), R = (P == null ? void 0 : P.width) ?? 0, S = (P == null ? void 0 : P.height) ?? 0, M = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, L = Array.isArray(u) ? u : [u], A = L.length > 0, _ = {
5844
5845
  padding: D,
5845
- boundary: L.filter(Ic),
5846
+ boundary: L.filter(Mc),
5846
5847
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5847
5848
  altBoundary: A
5848
- }, { refs: M, floatingStyles: z, placement: T, isPositioned: V, middlewareData: O } = yc({
5849
+ }, { refs: j, floatingStyles: z, placement: T, isPositioned: V, middlewareData: O } = yc({
5849
5850
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
5850
5851
  strategy: "fixed",
5851
- placement: I,
5852
- whileElementsMounted: (...je) => dc(...je, {
5852
+ placement: M,
5853
+ whileElementsMounted: (...Ie) => dc(...Ie, {
5853
5854
  animationFrame: m === "always"
5854
5855
  }),
5855
5856
  elements: {
@@ -5866,26 +5867,26 @@ var ln = "PopperContent", [kc, Dc] = Ro(ln), Oo = l.forwardRef(
5866
5867
  c && Rc({ ..._ }),
5867
5868
  Pc({
5868
5869
  ..._,
5869
- apply: ({ elements: je, rects: yn, availableWidth: ds, availableHeight: fs }) => {
5870
- const { width: ps, height: ms } = yn.reference, ze = je.floating.style;
5870
+ apply: ({ elements: Ie, rects: yn, availableWidth: ds, availableHeight: fs }) => {
5871
+ const { width: ps, height: ms } = yn.reference, ze = Ie.floating.style;
5871
5872
  ze.setProperty("--radix-popper-available-width", `${ds}px`), ze.setProperty("--radix-popper-available-height", `${fs}px`), ze.setProperty("--radix-popper-anchor-width", `${ps}px`), ze.setProperty("--radix-popper-anchor-height", `${ms}px`);
5872
5873
  }
5873
5874
  }),
5874
5875
  w && Ac({ element: w, padding: i }),
5875
- jc({ arrowWidth: R, arrowHeight: S }),
5876
+ Ic({ arrowWidth: R, arrowHeight: S }),
5876
5877
  g && Sc({ strategy: "referenceHidden", ..._ })
5877
5878
  ]
5878
- }), [$, U] = Do(T), G = ne(v);
5879
+ }), [W, U] = Do(T), H = ne(v);
5879
5880
  ve(() => {
5880
- V && (G == null || G());
5881
- }, [V, G]);
5881
+ V && (H == null || H());
5882
+ }, [V, H]);
5882
5883
  const as = (pn = O.arrow) == null ? void 0 : pn.x, is = (mn = O.arrow) == null ? void 0 : mn.y, ls = ((gn = O.arrow) == null ? void 0 : gn.centerOffset) !== 0, [cs, us] = l.useState();
5883
5884
  return ve(() => {
5884
5885
  y && us(window.getComputedStyle(y).zIndex);
5885
5886
  }, [y]), /* @__PURE__ */ h.jsx(
5886
5887
  "div",
5887
5888
  {
5888
- ref: M.setFloating,
5889
+ ref: j.setFloating,
5889
5890
  "data-radix-popper-content-wrapper": "",
5890
5891
  style: {
5891
5892
  ...z,
@@ -5910,15 +5911,15 @@ var ln = "PopperContent", [kc, Dc] = Ro(ln), Oo = l.forwardRef(
5910
5911
  kc,
5911
5912
  {
5912
5913
  scope: n,
5913
- placedSide: $,
5914
+ placedSide: W,
5914
5915
  onArrowChange: E,
5915
5916
  arrowX: as,
5916
5917
  arrowY: is,
5917
5918
  shouldHideArrow: ls,
5918
5919
  children: /* @__PURE__ */ h.jsx(
5919
- F.div,
5920
+ $.div,
5920
5921
  {
5921
- "data-side": $,
5922
+ "data-side": W,
5922
5923
  "data-align": U,
5923
5924
  ...p,
5924
5925
  ref: C,
@@ -5937,13 +5938,13 @@ var ln = "PopperContent", [kc, Dc] = Ro(ln), Oo = l.forwardRef(
5937
5938
  }
5938
5939
  );
5939
5940
  Oo.displayName = ln;
5940
- var To = "PopperArrow", Mc = {
5941
+ var To = "PopperArrow", jc = {
5941
5942
  top: "bottom",
5942
5943
  right: "left",
5943
5944
  bottom: "top",
5944
5945
  left: "right"
5945
5946
  }, ko = l.forwardRef(function(t, n) {
5946
- const { __scopePopper: r, ...o } = t, s = Dc(To, r), a = Mc[s.placedSide];
5947
+ const { __scopePopper: r, ...o } = t, s = Dc(To, r), a = jc[s.placedSide];
5947
5948
  return (
5948
5949
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
5949
5950
  // doesn't report size as we'd expect on SVG elements.
@@ -5988,10 +5989,10 @@ var To = "PopperArrow", Mc = {
5988
5989
  );
5989
5990
  });
5990
5991
  ko.displayName = To;
5991
- function Ic(e) {
5992
+ function Mc(e) {
5992
5993
  return e !== null;
5993
5994
  }
5994
- var jc = (e) => ({
5995
+ var Ic = (e) => ({
5995
5996
  name: "transformOrigin",
5996
5997
  options: e,
5997
5998
  fn(t) {
@@ -6005,12 +6006,12 @@ function Do(e) {
6005
6006
  const [t, n = "center"] = e.split("-");
6006
6007
  return [t, n];
6007
6008
  }
6008
- var Mo = So, cn = No, Io = Oo, jo = ko;
6009
- const Bu = hl, zu = vl, _c = bl, Gu = fo, _o = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6009
+ var jo = So, cn = No, Mo = Oo, Io = ko;
6010
+ const Bu = hl, zu = vl, _c = bl, Gu = fo, _o = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6010
6011
  io,
6011
6012
  {
6012
6013
  ref: n,
6013
- className: W(
6014
+ className: F(
6014
6015
  "al-fixed al-inset-0 al-z-50 al-bg-black/80 al- data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0",
6015
6016
  e
6016
6017
  ),
@@ -6018,13 +6019,13 @@ const Bu = hl, zu = vl, _c = bl, Gu = fo, _o = H(({ className: e, ...t }, n) =>
6018
6019
  }
6019
6020
  ));
6020
6021
  _o.displayName = io.displayName;
6021
- const Lc = H(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(_c, { children: [
6022
+ const Lc = G(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h.jsxs(_c, { children: [
6022
6023
  /* @__PURE__ */ h.jsx(_o, {}),
6023
6024
  /* @__PURE__ */ h.jsxs(
6024
6025
  lo,
6025
6026
  {
6026
6027
  ref: r,
6027
- className: W(
6028
+ className: F(
6028
6029
  "al-fixed al-left-[50%] al-top-[50%] al-z-50 al-grid al-w-full al-max-w-lg al-translate-x-[-50%] al-translate-y-[-50%] al-gap-4 al-border al-bg-background al-p-6 al-shadow-lg al-duration-200 data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[state=closed]:al-slide-out-to-left-1/2 data-[state=closed]:al-slide-out-to-top-[48%] data-[state=open]:al-slide-in-from-left-1/2 data-[state=open]:al-slide-in-from-top-[48%] sm:al-rounded-lg",
6029
6030
  e
6030
6031
  ),
@@ -6043,7 +6044,7 @@ Lc.displayName = lo.displayName;
6043
6044
  const Fc = ({ className: e, ...t }) => /* @__PURE__ */ h.jsx(
6044
6045
  "div",
6045
6046
  {
6046
- className: W("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
6047
+ className: F("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
6047
6048
  ...t
6048
6049
  }
6049
6050
  );
@@ -6051,7 +6052,7 @@ Fc.displayName = "DialogHeader";
6051
6052
  const $c = ({ className: e, ...t }) => /* @__PURE__ */ h.jsx(
6052
6053
  "div",
6053
6054
  {
6054
- className: W(
6055
+ className: F(
6055
6056
  "al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
6056
6057
  e
6057
6058
  ),
@@ -6059,20 +6060,20 @@ const $c = ({ className: e, ...t }) => /* @__PURE__ */ h.jsx(
6059
6060
  }
6060
6061
  );
6061
6062
  $c.displayName = "DialogFooter";
6062
- const Wc = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6063
+ const Wc = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6063
6064
  co,
6064
6065
  {
6065
6066
  ref: n,
6066
- className: W("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
6067
+ className: F("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
6067
6068
  ...t
6068
6069
  }
6069
6070
  ));
6070
6071
  Wc.displayName = co.displayName;
6071
- const Vc = H(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6072
+ const Vc = G(({ className: e, ...t }, n) => /* @__PURE__ */ h.jsx(
6072
6073
  uo,
6073
6074
  {
6074
6075
  ref: n,
6075
- className: W("al-text-sm al-text-muted-foreground", e),
6076
+ className: F("al-text-sm al-text-muted-foreground", e),
6076
6077
  ...t
6077
6078
  }
6078
6079
  ));
@@ -6133,7 +6134,7 @@ var un = "Popover", [Fo, Hu] = se(un, [
6133
6134
  defaultProp: o,
6134
6135
  onChange: s
6135
6136
  });
6136
- return /* @__PURE__ */ h.jsx(Mo, { ...i, children: /* @__PURE__ */ h.jsx(
6137
+ return /* @__PURE__ */ h.jsx(jo, { ...i, children: /* @__PURE__ */ h.jsx(
6137
6138
  Uc,
6138
6139
  {
6139
6140
  scope: t,
@@ -6161,7 +6162,7 @@ Kc.displayName = Wo;
6161
6162
  var Vo = "PopoverTrigger", Bo = l.forwardRef(
6162
6163
  (e, t) => {
6163
6164
  const { __scopePopover: n, ...r } = e, o = ge(Vo, n), s = Be(n), a = B(t, o.triggerRef), i = /* @__PURE__ */ h.jsx(
6164
- F.button,
6165
+ $.button,
6165
6166
  {
6166
6167
  type: "button",
6167
6168
  "aria-haspopup": "dialog",
@@ -6261,7 +6262,7 @@ var qc = l.forwardRef(
6261
6262
  onInteractOutside: d,
6262
6263
  ...f
6263
6264
  } = e, g = ge(Ne, n), m = Be(n);
6264
- return Ir(), /* @__PURE__ */ h.jsx(
6265
+ return Mr(), /* @__PURE__ */ h.jsx(
6265
6266
  Kt,
6266
6267
  {
6267
6268
  asChild: !0,
@@ -6280,7 +6281,7 @@ var qc = l.forwardRef(
6280
6281
  onFocusOutside: u,
6281
6282
  onDismiss: () => g.onOpenChange(!1),
6282
6283
  children: /* @__PURE__ */ h.jsx(
6283
- Io,
6284
+ Mo,
6284
6285
  {
6285
6286
  "data-state": Ko(g.open),
6286
6287
  role: "dialog",
@@ -6307,7 +6308,7 @@ var qc = l.forwardRef(
6307
6308
  (e, t) => {
6308
6309
  const { __scopePopover: n, ...r } = e, o = ge(Uo, n);
6309
6310
  return /* @__PURE__ */ h.jsx(
6310
- F.button,
6311
+ $.button,
6311
6312
  {
6312
6313
  type: "button",
6313
6314
  ...r,
@@ -6321,7 +6322,7 @@ Qc.displayName = Uo;
6321
6322
  var Jc = "PopoverArrow", eu = l.forwardRef(
6322
6323
  (e, t) => {
6323
6324
  const { __scopePopover: n, ...r } = e, o = Be(n);
6324
- return /* @__PURE__ */ h.jsx(jo, { ...o, ...r, ref: t });
6325
+ return /* @__PURE__ */ h.jsx(Io, { ...o, ...r, ref: t });
6325
6326
  }
6326
6327
  );
6327
6328
  eu.displayName = Jc;
@@ -6329,13 +6330,13 @@ function Ko(e) {
6329
6330
  return e ? "open" : "closed";
6330
6331
  }
6331
6332
  var tu = $o, nu = Bo, ru = zo, Yo = Go;
6332
- const Uu = tu, Ku = nu, ou = H(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ h.jsx(ru, { children: /* @__PURE__ */ h.jsx(
6333
+ const Uu = tu, Ku = nu, ou = G(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, o) => /* @__PURE__ */ h.jsx(ru, { children: /* @__PURE__ */ h.jsx(
6333
6334
  Yo,
6334
6335
  {
6335
6336
  ref: o,
6336
6337
  align: t,
6337
6338
  sideOffset: n,
6338
- className: W(
6339
+ className: F(
6339
6340
  "al-z-50 al-w-72 al-rounded-md al-border al-bg-popover al-p-4 al-text-popover-foreground al-shadow-md al-outline-none data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
6340
6341
  e
6341
6342
  ),
@@ -6381,10 +6382,12 @@ const su = {
6381
6382
  "al-text-subheading": e === "subheading",
6382
6383
  "al-text-body": e === "body",
6383
6384
  "al-text-caption": e === "caption",
6385
+ "al-font-light": r === "light" || !r && i === "light",
6384
6386
  "al-font-regular": r === "regular" || !r && i === "regular",
6385
6387
  "al-font-medium": r === "medium" || !r && i === "medium",
6386
6388
  "al-font-semibold": r === "semibold" || !r && i === "semibold",
6387
6389
  "al-font-bold": r === "bold" || !r && i === "bold",
6390
+ "al-text-xs": o === "xs",
6388
6391
  "al-text-sm": o === "sm",
6389
6392
  "al-text-md": o === "md",
6390
6393
  "al-text-lg": o === "lg",
@@ -6440,7 +6443,7 @@ function uu(e) {
6440
6443
  }
6441
6444
  var du = "VisuallyHidden", qo = l.forwardRef(
6442
6445
  (e, t) => /* @__PURE__ */ h.jsx(
6443
- F.span,
6446
+ $.span,
6444
6447
  {
6445
6448
  ...e,
6446
6449
  ref: t,
@@ -6526,7 +6529,7 @@ var ft = "Tooltip", [gu, pt] = ut(ft), Jo = (e) => {
6526
6529
  }, [p, x]);
6527
6530
  return l.useEffect(() => () => {
6528
6531
  m.current && (window.clearTimeout(m.current), m.current = 0);
6529
- }, []), /* @__PURE__ */ h.jsx(Mo, { ...u, children: /* @__PURE__ */ h.jsx(
6532
+ }, []), /* @__PURE__ */ h.jsx(jo, { ...u, children: /* @__PURE__ */ h.jsx(
6530
6533
  gu,
6531
6534
  {
6532
6535
  scope: t,
@@ -6553,7 +6556,7 @@ var Wt = "TooltipTrigger", es = l.forwardRef(
6553
6556
  (e, t) => {
6554
6557
  const { __scopeTooltip: n, ...r } = e, o = pt(Wt, n), s = fn(Wt, n), a = dt(n), i = l.useRef(null), c = B(t, i, o.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), f = l.useCallback(() => u.current = !1, []);
6555
6558
  return l.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ h.jsx(cn, { asChild: !0, ...a, children: /* @__PURE__ */ h.jsx(
6556
- F.button,
6559
+ $.button,
6557
6560
  {
6558
6561
  "aria-describedby": o.open ? o.contentId : void 0,
6559
6562
  "data-state": o.stateAttribute,
@@ -6639,7 +6642,7 @@ var hu = "TooltipPortal", [qu, vu] = ut(hu, {
6639
6642
  onFocusOutside: (f) => f.preventDefault(),
6640
6643
  onDismiss: d,
6641
6644
  children: /* @__PURE__ */ h.jsxs(
6642
- Io,
6645
+ Mo,
6643
6646
  {
6644
6647
  "data-state": c.stateAttribute,
6645
6648
  ...u,
@@ -6670,7 +6673,7 @@ var rs = "TooltipArrow", wu = l.forwardRef(
6670
6673
  return xu(
6671
6674
  rs,
6672
6675
  n
6673
- ).isInside ? null : /* @__PURE__ */ h.jsx(jo, { ...o, ...r, ref: t });
6676
+ ).isInside ? null : /* @__PURE__ */ h.jsx(Io, { ...o, ...r, ref: t });
6674
6677
  }
6675
6678
  );
6676
6679
  wu.displayName = rs;
@@ -6772,7 +6775,7 @@ const Zu = Nu, ku = Ou, Du = Tu, ss = l.forwardRef(({ className: e, sideOffset:
6772
6775
  {
6773
6776
  ref: r,
6774
6777
  sideOffset: t,
6775
- className: W(
6778
+ className: F(
6776
6779
  "al-z-50 al-overflow-hidden al-rounded-md al-border al-bg-popover al-px-3 al-py-1.5 al-text-sm al-text-popover-foreground al-shadow-md al-animate-in al-fade-in-0 al-zoom-in-95 data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=closed]:al-zoom-out-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
6777
6780
  e
6778
6781
  ),
@@ -6785,87 +6788,157 @@ const Qu = ({
6785
6788
  title: t,
6786
6789
  ...n
6787
6790
  }) => t ? /* @__PURE__ */ h.jsxs(ku, { ...n, children: [
6788
- /* @__PURE__ */ h.jsx(Du, { asChild: !0, children: e }),
6791
+ /* @__PURE__ */ h.jsx(Du, { asChild: !0, children: /* @__PURE__ */ h.jsx(h.Fragment, { children: e }) }),
6789
6792
  /* @__PURE__ */ h.jsx(ss, { children: t })
6790
- ] }) : /* @__PURE__ */ h.jsx(h.Fragment, { children: e });
6793
+ ] }) : /* @__PURE__ */ h.jsx(h.Fragment, { children: e }), Ju = G(function({
6794
+ children: t,
6795
+ wrap: n = !1,
6796
+ justify: r,
6797
+ align: o,
6798
+ flex: s,
6799
+ gap: a = "md",
6800
+ className: i,
6801
+ direction: c = "row",
6802
+ ...u
6803
+ }, d) {
6804
+ const f = (m) => ({
6805
+ none: "al-gap-0",
6806
+ xxs: "al-gap-0.5",
6807
+ // 2px
6808
+ xs: "al-gap-1",
6809
+ // 4px
6810
+ sm: "al-gap-1.5",
6811
+ // 6px
6812
+ md: "al-gap-2",
6813
+ // 8px
6814
+ lg: "al-gap-3",
6815
+ // 12px
6816
+ xl: "al-gap-4",
6817
+ // 16px
6818
+ "2xl": "al-gap-5",
6819
+ // 20px
6820
+ "3xl": "al-gap-6",
6821
+ // 24px
6822
+ "4xl": "al-gap-8",
6823
+ // 32px
6824
+ "5xl": "al-gap-10",
6825
+ // 40px
6826
+ "6xl": "al-gap-12",
6827
+ // 48px
6828
+ "7xl": "al-gap-16",
6829
+ // 64px
6830
+ "8xl": "al-gap-20"
6831
+ // 80px
6832
+ })[m], g = F(
6833
+ "al-flex",
6834
+ // Direction
6835
+ c === "column" ? "al-flex-col" : "al-flex-row",
6836
+ // Wrap
6837
+ n ? "al-flex-wrap" : "al-flex-nowrap",
6838
+ // Justify
6839
+ {
6840
+ "al-justify-start": r === "start",
6841
+ "al-justify-end": r === "end",
6842
+ "al-justify-center": r === "center",
6843
+ "al-justify-between": r === "between",
6844
+ "al-justify-around": r === "around",
6845
+ "al-justify-evenly": r === "evenly"
6846
+ },
6847
+ // Align
6848
+ {
6849
+ "al-items-start": o === "start",
6850
+ "al-items-end": o === "end",
6851
+ "al-items-center": o === "center",
6852
+ "al-items-baseline": o === "baseline",
6853
+ "al-items-stretch": o === "stretch"
6854
+ },
6855
+ // Flex
6856
+ s && `al-flex-[${s}]`,
6857
+ // Gap
6858
+ f(a),
6859
+ i
6860
+ );
6861
+ return /* @__PURE__ */ h.jsx("div", { ...u, className: g, ref: d, children: t });
6862
+ });
6791
6863
  export {
6792
- Bu as $,
6793
- Ha as A,
6794
- $u as B,
6795
- ia as C,
6796
- ct as D,
6797
- cn as E,
6798
- We as F,
6799
- Io as G,
6800
- jo as H,
6801
- ri as I,
6802
- Mo as J,
6803
- Rl as K,
6804
- Nl as L,
6805
- El as M,
6806
- ni as N,
6807
- Or as O,
6808
- F as P,
6809
- Pl as Q,
6810
- Fu as R,
6864
+ Tl as $,
6865
+ cn as A,
6866
+ jo as B,
6867
+ fo as C,
6868
+ uo as D,
6869
+ Yt as E,
6870
+ Kt as F,
6871
+ Re as G,
6872
+ Bu as H,
6873
+ Ha as I,
6874
+ Lc as J,
6875
+ ve as K,
6876
+ Wu as L,
6877
+ ia as M,
6878
+ El as N,
6879
+ io as O,
6880
+ $ as P,
6881
+ la as Q,
6882
+ hl as R,
6811
6883
  ta as S,
6812
- Yu as T,
6813
- Ol as U,
6884
+ vl as T,
6885
+ Rl as U,
6814
6886
  qo as V,
6815
- Sl as W,
6816
- Al as X,
6817
- Tl as Y,
6818
- Qc as Z,
6819
- lr as _,
6887
+ Vu as W,
6888
+ Nl as X,
6889
+ Sl as Y,
6890
+ Ju as Z,
6891
+ Pl as _,
6820
6892
  se as a,
6821
- _c as a0,
6822
- _o as a1,
6823
- Gu as a2,
6824
- zu as a3,
6825
- Lc as a4,
6826
- Fc as a5,
6827
- $c as a6,
6828
- Wc as a7,
6829
- Vc as a8,
6830
- Qu as a9,
6831
- hl as aa,
6832
- vl as ab,
6833
- fo as ac,
6834
- bl as ad,
6835
- io as ae,
6836
- lo as af,
6837
- co as ag,
6838
- uo as ah,
6839
- ke as ai,
6840
- zr as aj,
6841
- Ir as ak,
6842
- Kt as al,
6843
- Xt as am,
6844
- Wu as an,
6845
- Vu as ao,
6893
+ Qu as a0,
6894
+ Yu as a1,
6895
+ Uu as a2,
6896
+ Ku as a3,
6897
+ ou as a4,
6898
+ ri as a5,
6899
+ lr as a6,
6900
+ _c as a7,
6901
+ _o as a8,
6902
+ $u as a9,
6903
+ Fu as aa,
6904
+ Zu as ab,
6905
+ ku as ac,
6906
+ Du as ad,
6907
+ ss as ae,
6908
+ ni as af,
6909
+ Or as ag,
6910
+ Ol as ah,
6911
+ Al as ai,
6912
+ Qc as aj,
6913
+ Gu as ak,
6914
+ zu as al,
6915
+ Fc as am,
6916
+ $c as an,
6917
+ Wc as ao,
6918
+ Vc as ap,
6846
6919
  De as b,
6847
- W as c,
6920
+ F as c,
6848
6921
  k as d,
6849
6922
  tr as e,
6850
6923
  zt as f,
6851
- ne as g,
6852
- ve as h,
6853
- Ta as i,
6854
- ae as j,
6855
- Yt as k,
6856
- xa as l,
6857
- er as m,
6858
- Uu as n,
6859
- Ku as o,
6860
- la as p,
6861
- ou as q,
6862
- Zu as r,
6863
- ku as s,
6864
- Du as t,
6924
+ bl as g,
6925
+ lo as h,
6926
+ co as i,
6927
+ er as j,
6928
+ ke as k,
6929
+ Ta as l,
6930
+ ct as m,
6931
+ dr as n,
6932
+ ae as o,
6933
+ zr as p,
6934
+ Mr as q,
6935
+ We as r,
6936
+ Ga as s,
6937
+ Mo as t,
6865
6938
  B as u,
6866
- ss as v,
6867
- dr as w,
6868
- cr as x,
6869
- Re as y,
6870
- Ga as z
6939
+ ne as v,
6940
+ Io as w,
6941
+ Xt as x,
6942
+ xa as y,
6943
+ cr as z
6871
6944
  };